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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var G8B,cU8,RCr,ZAB,KgT,PTT,cr,mfg,eCr,Zi,Pr,Nb8,lir,U0,uT,q08,wrg,Fg8,bT,Dfg,opr,$p,bAq,$fU,Mrf,zC0,Wgp,iA0,BbB,xfg,trq,dfp,R0,QB,a0,Xrq,OK,Nk,yU8,l2,b2,Y0r,GVf,zV,EK,Ipq,Q0g,mkB,fN,ONr,e9A,Nep,re,lpp,qK0,FA0,w08,nKf,te,apT,CN,vK8,Ukb,LAr,Ng,AeA,$k8,eG,bNr,Tr,kVB,s0b,WA8,fpU,Beg,DW,xkA,j0T,tig,h9p,dkA,HNr,X0A,YKO,Gri,R0f,KWr,QuO,e0q,lWA,N7g,Jd,qdq,oFr,Wu,Ugp,b18,Adr,suq,$gq,LWp,f1,C2i,Bu,r7,jG,Sdb,td,VGB,puO,MGg,y$,z0f,EF8,WWb,fWC,i1U,B78,rdb,jug,Hu,tGA,dg0,H1q,yd8,Py,Yd0,IJr,mo,Kor,mNb,czT,aJ0,
OGT,efU,vNA,qTg,oNf,uxq,bGq,sRr,Log,pyA,M_0,ENT,WoB,BSi,jRr,xNA,hfq,C5b,Xyr,GiC,PaT,pG,m30,T5O,OT8,i5,fG,rS,yx,Gi,cM,vmU,mz,omC,bT0,sEr,Lzf,A_b,w5,$3T,nT,vM,DT,oE,pMT,MnB,Vnf,zJ8,EmT,Wz8,iTT,fTA,B5g,jEA,km,ba,x38,tnb,hJA,Car,d3O,HTr,XMU,y_b,zi,E9,J_,WM,BM,Y9g,r5,csb,Pyq,xm,Q2U,mSf,a30,d5,TxA,O8C,epr,CT,qqr,Xe,nM0,vMg,yp,oMB,DSf,USB,uUf,b88,kMC,GM,s20,L3T,c6,Asr,$Sq,I2,R2,Z3,K8,SqC,MB0,p6C,Q0,zpU,EMC,JsO,a2,Oq,eB,NS,qS,wx,W3r,i8r,Bxr,rs0,xSr,tBb,hpg,dSA,Cyr,H8b,n8,X6C,ysT,YqO,GB8,cKC,ILf,RY0,ZS8,Kr8,
Uq,PR8,by,kM,QnB,TFb,OS0,eYf,lLB,qef,wDf,Dwr,o9O,Uw8,uOp,bSg,kBB,snq,Sei,$M,pDO,MTT,VTq,zYU,E98,JKO,iSU,yKq,g9U,YeU,Imf,Rqp,W6,Ztr,QWC,TNq,Otf,eqi,NN0,lmr,qZA,wXC,FuC,vsO,D8p,m8A,osU,U8r,uqA,btg,kyr,sW8,Lui,Ayr,$8T,VEp,pXb,Jyf,zq0,Esr,fmT,BN8,ryq,Wur,x8O,itT,hqB,In,d8U,Rn,KS,Cer,XXB,yyT,G2i,TK0,I$0,cIO,ZhA,PV0,RZB,w1g,NKT,FeT,ncO,vcg,DET,ocr,uG8,UE0,bhi,k20,sg0,Ler,$EA,p1f,MVB,VVB,EcC,zZO,CVr,an,Hh0,yIb,gcA,YGp,Gur,cwr,RM8,Z4T,Kb0,FO,nS,PWi,eMb,on,uR,wKO,n6B,Awr,LS,pKb,MAC,Jwf,zMp,E6U,Mw,WbC,i4r,
BHB,rwq,jai,xRg,tAq,hMf,dRO,H4A,XKp,g6r,ywg,c$A,x9,dF,R1r,ZjB,K_p,PrU,Qzi,mtT,TJ8,e1q,OjU,PX,mu,UtC,eE,A$f,$tC,N8,plf,Sog,BJA,r$T,jzr,tvU,HjU,y$O,g$g,Yoq,Gar,cgB,wN,R_C,Dm,KpU,PBg,QxC,a60,Zk8,I6r,mbC,nt,Okr,qfg,NjA,n7g,v7r,DbO,Ubg,u48,kaU,LpO,Agq,$br,SfO,Ay,p_b,Vci,Mcq,z_A,Jg0,pt,f6B,zy,Jy,EZ,xbO,ikr,Hkq,caA,ZYq,R20,QDg,rN,aqp,TZO,NZU,lqA,hy,wNp,Ct,HX,vtq,fq0,rar,jDp,xqU,yg,tKC,gN,dqA,CxC,HYT,XNU,gtO,Ig,Yp0,GmO,Z$,QL,RK0,ZFA,KIi,mh0,a00,OFq,eKC,vd8,DhT,wbg,UhO,uu8,bFO,nh,og,UG,A8r,$hB,bV,S$B,pbC,
ML8,VLC,EdU,J8O,WIC,iFr,zK8,f0C,AI,r8A,dhr,$c,hKb,Ci8,Bci,HFr,ph,y80,gdA,Y$q,GO8,IZ8,cO0,Rgr,P6g,ZRT,myC,lZU,wqT,n0T,o0U,DyU,v0i,Uy8,ulq,kOf,LYp,sQC,$yg,rK,pqA,MyT,Vyr,zgp,WYB,fZ8,iRr,Bqb,rOB,jQ8,xyq,hgg,C6r,yOr,YQO,g0B,NR,Gsr,dyf,QPg,aSC,TUr,OCC,vK,ewA,lSU,FJ0,D2r,vDi,bCf,ksf,sPp,LJC,$2U,zwC,SCr,MW0,VWT,EDO,JHb,iCb,WJg,BUb,fSi,MR,rHU,x20,tW0,HCp,BK,rH,Xdp,yHb,jA,Gvr,C4,HK,XA,ZpA,yU,Q6g,Gc,m9T,aYT,TL0,Opf,Rz,eRr,NLA,lYB,wYr,nVb,oVp,ufC,Nt,bpC,kvC,s6p,Lxf,AXT,$9O,S4q,pYr,wJ,zRp,EV8,JXg,WxB,ipb,fYB,
BLr,rXq,j6T,x9O,tCB,hRO,d9A,br,KcB,Puq,k$,so,Lj,QIg,mDB,abg,Tnf,OEb,eSO,NnU,naO,vap,DDr,oaA,UDp,pj,VN,zc,Eo,ir,fj,Bl,bEi,jv,sIC,x$,LcA,Aib,t$,$Di,SUq,pHb,Bnp,jIO,Cu0,gap,yiA,ri8,YUO,I4g,wBT,mY0,oWp,TDi,vWi,UYB,yN,bHU,Y$,ssq,L9T,$YO,SmC,pBT,VDC,Ix,EWr,Jc8,W9r,iHU,f4p,BDO,rcp,zXB,tDC,hX0,dYC,Z6,Ymq,GzB,gWA,IPp,RGr,Kw0,PDf,Zdb,N0g,qnU,Fwr,vCg,lB,sJB,bdO,kzU,pIp,Vk0,zGr,ECT,JNT,Wwi,idA,uB,CDb,XIr,hG0,tki,HdT,B0O,gCU,aXq,c08,IXi,R8q,v5f,o50,n5O,Lqq,FqC,fPC,s1b,G90,mxO,Dxg,yNr,jJr,rNT,xCT,dCq,wUC,rj,r0p,
xxO,tui,h8C,dxf,IAB,Q98,mjA,Y7,TPr,NPp,F7f,w8q,vZC,Djp,Uj0,beb,ucq,kf0,s9q,L7U,AYT,SNT,$jr,eK,JY8,EZO,zmb,BPg,W7r,rYb,fAA,j9q,xjO,Cmf,hmg,djb,X8p,YNr,G$O,Rkr,Zsb,KLr,PPi,moq,T8B,nY,ekA,qg0,N8r,wmb,Dop,oPO,bsA,slp,ux,bx,Sgp,pmB,kt,sp,Mhq,LY,Aa,Vhr,$t,zkr,SK,EPq,Jqr,Mq,WLb,isr,f2O,B8f,rqr,xog,jlA,hkp,HsB,CP0,XmA,yqi,thC,gPT,cAr,GFq,do8,Io8,RUU,WN,ZMO,PJC,KGA,Qwf,mB8,TGB,aor,OMO,fY,NG0,loO,eUr,wer,FGT,nXq,UB8,kF0,S_r,zUB,BN,WGU,iMT,rZ,foU,ha,dZ,hUf,xt,Xd,dBB,CJU,XeO,yAi,Y_b,c7b,Ikp,RVg,Zyg,Q3i,eVr,TIB,
PUU,NIO,lkp,If,Oyr,qHi,KF,wCU,FVr,nob,voO,uYT,DOf,UOU,LVB,A7T,Vgf,MgC,J7f,j3b,xOU,hVq,CUp,Hyr,y7U,goB,YHf,c5r,Inq,Rd8,PIq,T1r,Omp,Qb0,N18,qFf,lnA,edg,w7b,nqC,vqA,D0b,oqi,U0r,Fu,nF,of,bi,k7b,sbb,A5T,p7p,kd,s$,M18,LF,EqB,J58,WUr,$d,jbp,d08,Hmg,X7g,y5A,YFr,GRq,cEb,ZUb,pF,Kdp,mU0,Mh,arT,N4B,VX,wLr,zm,Wb,ii,Fdr,vzT,nz8,ozC,UU8,uCg,bUr,DUU,$UC,StC,MoC,zbb,iUA,WdU,frq,rEg,jKi,xUO,tor,hbO,dUb,CtO,yEp,HUU,xd,Ytb,t8,Gp8,dc,CF,cm8,Ihg,RnU,Z9g,KDi,Hb,PKp,QNq,mpO,ahp,O9O,enU,N2g,lhb,qcr,FD8,wzb,Xu,vbU,obT,Upr,
unr,b9p,LDr,$pT,cq,pzB,VjA,znA,Ebp,JmT,WDq,i9T,fhr,B2O,AmA,ScA,rmC,jNO,dpO,CKr,H9q,XzB,Oub,leg,qhg,wSr,Na8,UXr,k0O,u88,s5r,$Xi,pSg,VIO,WlA,J4b,r4p,OQ,j5f,xXq,ey,tIA,Ny,hDi,dXC,CbA,XSB,Hu8,y4p,g1i,Yhf,GZT,Qk8,a9b,OqT,TBT,Zqg,I9p,NBB,qBU,D7f,oSB,bqr,SBp,MdO,Fl,VdA,ESO,Jkq,iqA,jkB,hlU,HqB,Xwr,ykb,gS0,RLA,YBf,Qjr,mnB,aMr,O$f,oQ,eLB,lMr,qYg,wag,FZi,nni,vnC,DnC,UnB,u3T,sQ,b$q,kWi,sjg,AMT,AO,LZ8,SY0,zLr,pR,Enp,JMp,WZC,Bwq,rMi,i$g,xnO,C9T,H$B,Xag,Wq,yMg,cjT,Iuq,rq,K4U,RuA,ZVU,mer,aur,TAi,lui,F48,wpi,qAA,
nOC,De8,oOT,sHB,UeO,L4r,$er,AjC,EOB,iVp,BAr,jHU,gOq,kD,Gkf,ZJf,PvC,u8,EC,eyO,wEC,qPf,nhr,vh8,oh8,Dlr,Ulq,uFp,JH,HEO,NtC,F10,lI8,Vl,shr,L18,AtC,CC,M5f,Hd,V5B,zyi,EhC,JtO,W1U,yl,iJq,fIA,Btf,rtr,jhC,cY,xlC,dlr,HJr,XE8,RFC,KCi,P1T,QMr,aGi,TgU,Tv,eFr,Ng0,lG0,qOf,wkA,FCf,vLg,oLq,uiO,b7f,SOp,AhO,pkB,zFU,ELB,np,Jhb,WCi,i7q,rhC,x4O,jMB,hFO,C1r,U4,Xk8,yhU,H7O,gLr,YOT,cxC,R$q,Isb,ZxO,GbU,K$O,Pl8,QTB,mii,asr,Tmb,Ox8,e$T,NmA,wRC,qr0,F$T,vrg,nrq,un,DiT,uX8,L$p,orb,Srg,pRA,MP0,VPr,Jx8,xiC,tPr,dir,Cli,WY,grq,Idp,
K80,fp,adi,Pdr,Qpr,mHi,Ty0,q78,xV,wQb,F8r,v4T,DHA,o4g,UHC,bfT,kQ0,z7r,S7O,MNf,JGT,E48,W8b,ifq,ByU,jpU,tNO,dHO,CdO,XQT,PsC,agp,OIO,eTB,NQU,lg8,qXg,FOA,nwb,owO,U_T,u$b,bIr,k5r,sei,LOr,I5p,Kjf,a5b,II,RI,Zb,Tr0,OiT,QJ,NrB,UIr,AJU,svp,tJg,hzO,dIT,q6T,oeA,neg,Hi0,X$p,yJg,geB,bir,Y6p,cpA,R4f,PEA,QUr,FN,whr,ny0,DFT,oyB,bbr,sUg,kw0,$Fp,phA,ibr,Jpr,V4f,W20,z40,f1g,xFT,MD,VJ,Yyf,Xhg,cfq,ICB,Z00,KKA,EU,Pkq,aCO,TXC,O0U,eEf,DZq,vvU,ti,sX0,XN,Afg,$ZC,SE0,ptp,MSC,VSB,zE8,Evq,Jf8,WK0,i08,gn,fC0,BXA,rfT,jXq,xZO,tSp,
hEg,dZi,G1,CkT,H0U,Xtr,yfA,gv0,YEO,GUi,cZg,IcU,RB8,ZgC,Kyb,Pjr,KH,m60,TCb,eBA,qS0,nBq,vBp,D6T,U6q,bgf,kUU,s7b,NY,pWC,$6B,Mti,Vtf,zBA,WyO,igA,fcA,rZB,sm,x60,bO,hBg,d6b,LH,Cjp,Hgr,XWO,yZB,$W,cD0,RIC,mJ8,Qip,TRA,OPp,WB,eIA,NRi,qDg,FtB,nji,DJ0,oj0,w3f,UJf,Lt0,p3C,MwB,iO,VwC,zIf,fOp,Ejr,Wtb,iPg,hIT,rDr,dJr,HP8,yDA,gji,YDr,Ghf,cSp,IKp,ZoB,KkU,PSp,Qc8,mWO,TWp,evA,qvq,v_i,UWB,boB,Lkq,hc,AST,$Wi,Svr,p2O,Mff,zvp,E_r,JSb,WkA,ioC,fKf,BWO,rSB,jcU,xWf,tff,dWC,hvb,X2b,g_B,HB,YvA,I_0,cBf,K0b,PhO,Q4b,TTb,NTA,eW0,
a_O,wcq,q8q,oRA,F0C,cI,vR0,AB8,brC,kqC,s4A,L0U,$cT,pcb,S8f,IJ,RJ,irr,VaT,W0i,JBA,zWi,ERg,rBb,xc8,hW8,taq,dcA,yBO,XcC,Y8p,Iap,ZLb,cFr,K6B,Qdg,PQb,aaT,ear,mw,Nvi,lag,F6B,UaB,AFr,Tz,S1C,M98,FP,Eg8,V9U,zaU,w0,faU,JFr,W6A,BvA,jdT,rFA,ha0,daA,HL0,XxA,yFr,ggi,Y1r,c2r,IlO,Sk,ZlU,KFb,alT,TVB,En,OlC,NVi,UM0,BI,FFf,ofg,nfT,vfA,smT,kGB,SIr,LFf,pVC,M6r,jk,zcC,Ef0,J20,V6b,hN,WFg,xC,r2T,Hlq,XVi,y28,gfr,YIi,Gdr,ZDC,IEC,RQr,cbr,PGT,ThU,ODT,lE8,qzB,FPr,DuB,nT0,vTr,oTO,uE0,bDq,kdr,stT,LPr,Abg,SzC,M0i,V0r,JbT,ETO,iDg,
WPq,fEg,BhB,jtf,xuf,Yzf,yb0,INg,Rog,aNr,TlU,OOA,eoi,NlB,lNT,FM0,nYq,vYO,oYC,UVq,uJb,bOq,kYO,sYr,AQU,$VC,SkA,lf,zor,V8g,M80,pfq,JQi,fNp,WMr,rQr,jYi,t8B,ho8,dVg,CcB,HOb,GgC,Xfg,yQi,gYr,cTp,IRi,RN8,Ykg,nQ,PgT,m5O,QBb,DX,aRg,OZO,eNA,NYp,TYU,lRq,qJp,wAf,Ffq,nxf,D5r,oxB,U5r,u7A,sBT,kg8,pAA,bZ0,U3,MUf,LfT,SJr,zN8,ExU,JTT,Wfg,iZT,BYf,rTO,jBU,tUB,hNA,CgA,XAC,crB,YJ8,GLA,gxA,yTp,IBf,Mx,RPU,Ve,ZWg,Khp,T90,ePf,N9q,lBb,qjB,wnp,Fhf,BU,ri,U1f,v8r,n8p,D1A,Ve0,pnT,o8T,Sjr,fBr,B98,rrr,j8p,x1r,d1p,HWA,yrB,Yjr,GNB,cLf,
KiO,Z20,P0A,mTq,m7,O2A,eOb,NfU,l8A,qlB,wsU,FiO,eR,Nj,DTp,okp,ubU,sAi,Mpq,Wir,JL0,i2B,Bfp,rL0,jAg,xTb,tp8,hOA,DA,dTT,GAg,c1q,yLi,Xsf,Yl0,gkC,PFB,QrB,mrO,ajC,T_q,Owb,ljB,N_B,e5q,uwC,oQp,bwq,kAb,srp,$rC,pPO,LT8,A1i,fjB,r1b,xrA,h5O,CFr,XPU,GS0,cnp,IU0,KvT,Z5q,RxO,PNr,QoC,mGr,aUC,Tp8,O5A,exT,NpO,lUb,qwA,FvT,nE0,vEB,DGg,oEU,UGq,b5A,kSO,so8,LvC,AnO,$Gi,VZU,zxg,Jng,i5B,Wvb,fU8,Mj,BpA,rn0,joU,xGO,CNT,dGA,H5T,XiU,ynb,gE0,Ywf,Gtf,c9C,I7p,RsT,ZXB,K5r,P4C,QLU,mz8,a7A,OXp,Tk0,esO,Nkg,l7b,q5i,wJT,F5U,nU0,vUi,rP,
oUO,UzT,uvC,bXA,ktr,L5g,A9g,$zp,S5p,pJ8,MFT,zsi,EUg,W5i,hY,Bk0,hs0,xzb,jLO,r9g,tFT,HXp,XJU,y9A,gUb,GD8,cor,Itf,Zab,R6T,Kmi,P_U,QCf,TsA,OaA,e6f,Ns8,lt8,qiT,nui,vuC,cm,bag,kDf,LmC,SiB,$Lq,p50,M3T,Il,Z2,z60,EuA,QY,mL,ftr,Joi,Wmg,jCB,xLA,t3q,h6T,X5B,guq,YiO,GKA,clO,Ifr,ZBO,KSi,Pzg,QST,m$g,afA,T$8,Og,OBC,ej0,No,N$0,lfp,quO,w4b,FSp,n3p,w8,Ft,v3U,D$b,ns,o38,U$r,uor,bBT,sS0,LSi,$$p,zji,VYT,MYC,E3A,Jlq,x$r,ffr,B$T,rlp,iBg,jSr,tYU,hjA,Czr,X4r,ol,YuB,G_b,c6r,IV0,R38,KNA,Q_i,Tui,lV0,e3b,Ug,OKA,vJq,oJr,uP,UmT,
u1b,bKr,k_U,s_p,A6O,$mi,p9T,MqC,z3A,EJC,fVC,iKr,r60,j_r,xmp,tqA,dmB,CMT,HKU,X9r,y6r,gJi,YVg,G4g,c3B,RAg,Znf,azq,TMq,OnA,eAr,ps,qWr,wFr,FH0,nIr,vI8,DsO,Usg,u2r,bnp,k4p,LHb,A3O,$sq,z$,SWB,pFU,zAp,EI0,Eg,Jq,in0,J3U,fzq,jZO,BMr,xsB,hAf,r8,dsO,CpC,Hnb,gIp,GJf,jh,Ixp,RrU,ZvB,Ks8,PLb,QF0,mQg,axO,N60,lxO,nGg,qsr,FsB,vGr,DQC,oG0,bvO,kJf,sFC,AWB,$QT,EGq,zrB,rWg,tQU,yY,hrp,dQr,X1f,g8,CLf,Hvi,yWC,GHA,cVb,mKC,ayr,Tzb,O6T,eHB,Nzb,qxB,wvB,nli,DKO,FEr,vlb,UKT,ol0,b6r,LEb,kHb,AV8,$Kp,Sxf,pvf,MOf,VOb,ElU,zHU,fyr,j$T,
BzU,xKi,tOr,hHg,Qs,dK8,Cwr,eX,XvC,H6A,yVA,Yxb,glB,RhC,Zcb,PqB,QGr,aDr,T3B,Oc8,ehf,qbq,FRf,DAi,vAO,oAA,UAB,umA,sGU,JPC,Sbi,icb,fD0,rPB,jGr,dAB,CqB,HcA,Xo8,yPO,gAf,cR8,IQi,RtB,Z3U,QOT,aQg,ToU,md0,etp,O3C,Fnr,nHT,vH8,Ddg,oHr,Udq,upp,kCT,ARC,$dp,SLO,V2T,M2g,JRi,i3r,fQB,BoA,rRU,jOU,t2B,xdB,ddg,gHA,IF0,cvB,ReB,Zzf,KQp,QVB,Vs,aF8,We,OzU,Ndg,lFO,vib,oiT,knb,LQp,AvO,SRA,pGi,MzU,zeT,Jvr,WQi,fFf,jVi,rvB,BdA,jX,tzA,xvr,heq,dvf,CCC,HzU,XGr,yvg,giA,G3q,cCg,IvB,Rir,Z_q,Kap,PAC,Qyr,mPp,avr,O_b,eiA,NOp,o2O,UPr,uVb,
k3b,syb,LaT,SMg,gG,JCB,Wa0,fvU,BOb,rCg,jy8,xPp,Go,g2O,Qg,cC,R3,YMT,G8T,RCi,Kg2,ZAT,Ky,PT2,Qq9,mfA,ai9;G8B=function(){var G,c;return typeof CSS!=="undefined"&&((c=(G=CSS).supports)==null?void 0:c.call(G,"selector(:has(*))"))};
cU8=function(G){return G.visibility!=="hidden"&&G.display!=="none"};
RCr=function(G){if(G8B()||G.tagName!=="DETAILS"?!G.matches(Ii8):G.querySelector("summary")!==null)return-1;G=G.getAttribute("tabindex")||"0";return Number(G)};
ZAB=function(G){return G.some(function(c){return RCr(c)>0})};
KgT=function(G){if(G.textContent||G.ariaLabel)return!0;if(G instanceof HTMLInputElement){if(!G.labels)return!1;G=_.Q(G.labels);for(var c=G.next();!c.done;c=G.next())if(c.value.textContent)return!0}return!1};
PTT=function(G){return G.sort(function(c,I){return RCr(I)-RCr(c)})};
_.QqC=function(G){G=Array.from(G.querySelectorAll(Ii8)).filter(function(c){return(cU8(c.style)?cU8(window.getComputedStyle(c)):!1)&&KgT(c)});
return ZAB(G)?PTT(G):G};
_.G8=function(G,c){if(Error.captureStackTrace)Error.captureStackTrace(this,_.G8);else{var I=Error().stack;I&&(this.stack=I)}G&&(this.message=String(G));c!==void 0&&(this.cause=c)};
cr=function(){throw Error("E");};
mfg=function(G,c){c=String.fromCharCode.apply(null,c);return G==null?c:G+c};
eCr=function(G){var c=!1;c=c===void 0?!1:c;if(aiC){if(c&&(Tbf?!G.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(G)))throw Error("F");G=(OAO||(OAO=new TextEncoder)).encode(G)}else{for(var I=0,R=new Uint8Array(3*G.length),Z=0;Z<G.length;Z++){var K=G.charCodeAt(Z);if(K<128)R[I++]=K;else{if(K<2048)R[I++]=K>>6|192;else{if(K>=55296&&K<=57343){if(K<=56319&&Z<G.length){var m=G.charCodeAt(++Z);if(m>=56320&&m<=57343){K=(K-55296)*1024+m-56320+65536;R[I++]=K>>18|
240;R[I++]=K>>12&63|128;R[I++]=K>>6&63|128;R[I++]=K&63|128;continue}else Z--}if(c)throw Error("F");K=65533}R[I++]=K>>12|224;R[I++]=K>>6&63|128}R[I++]=K&63|128}}G=I===R.length?R:R.subarray(0,I)}return G};
Zi=function(G){_.Rq.setTimeout(function(){throw G;},0)};
_.KA=function(G,c){return G.lastIndexOf(c,0)==0};
Pr=function(G,c){var I=G.length-c.length;return I>=0&&G.indexOf(c,I)==I};
_.mg=function(G){return/^[\s\xa0]*$/.test(G)};
_.aq=function(G,c){return G.indexOf(c)!=-1};
_.er=function(G,c){return _.aq(G.toLowerCase(),c.toLowerCase())};
_.lT=function(G,c){var I=0;G=Nf(String(G)).split(".");c=Nf(String(c)).split(".");for(var R=Math.max(G.length,c.length),Z=0;I==0&&Z<R;Z++){var K=G[Z]||"",m=c[Z]||"";do{K=/(\d*)(\D*)(.*)/.exec(K)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(K[0].length==0&&m[0].length==0)break;I=Nb8(K[1].length==0?0:parseInt(K[1],10),m[1].length==0?0:parseInt(m[1],10))||Nb8(K[2].length==0,m[2].length==0)||Nb8(K[2],m[2]);K=K[3];m=m[3]}while(I==0)}return I};
Nb8=function(G,c){return G<c?-1:G>c?1:0};
_.wb=function(){var G=_.Rq.navigator;return G&&(G=G.userAgent)?G:""};
lir=function(G){if(!nA||!Di)return!1;for(var c=0;c<Di.brands.length;c++){var I=Di.brands[c].brand;if(I&&_.aq(I,G))return!0}return!1};
U0=function(G){return _.aq(_.wb(),G)};
uT=function(){return nA?!!Di&&Di.brands.length>0:!1};
q08=function(){return uT()?!1:U0("Opera")};
wrg=function(){return uT()?!1:U0("Trident")||U0("MSIE")};
Fg8=function(){return uT()?lir("Microsoft Edge"):U0("Edg/")};
bT=function(){return U0("Firefox")||U0("FxiOS")};
_.npp=function(){return U0("Safari")&&!(_.LA()||(uT()?0:U0("Coast"))||q08()||(uT()?0:U0("Edge"))||Fg8()||(uT()?lir("Opera"):U0("OPR"))||bT()||U0("Silk")||U0("Android"))};
_.LA=function(){return uT()?lir("Chromium"):(U0("Chrome")||U0("CriOS"))&&!(uT()?0:U0("Edge"))||U0("Silk")};
_.vpO=function(){return U0("Android")&&!(_.LA()||bT()||q08()||U0("Silk"))};
Dfg=function(G){var c={};G.forEach(function(I){c[I[0]]=I[1]});
return function(I){return c[I.find(function(R){return R in c})]||""}};
opr=function(G){var c=_.wb();if(G==="Internet Explorer"){if(wrg())if((G=/rv: *([\d\.]*)/.exec(c))&&G[1])c=G[1];else{G="";var I=/MSIE +([\d\.]+)/.exec(c);if(I&&I[1])if(c=/Trident\/(\d.\d)/.exec(c),I[1]=="7.0")if(c&&c[1])switch(c[1]){case "4.0":G="8.0";break;case "5.0":G="9.0";break;case "6.0":G="10.0";break;case "7.0":G="11.0"}else G="7.0";else G=I[1];c=G}else c="";return c}var R=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");I=[];for(var Z;Z=R.exec(c);)I.push([Z[1],Z[2],Z[3]||void 0]);
c=Dfg(I);switch(G){case "Opera":if(q08())return c(["Version","Opera"]);if(uT()?lir("Opera"):U0("OPR"))return c(["OPR"]);break;case "Microsoft Edge":if(uT()?0:U0("Edge"))return c(["Edge"]);if(Fg8())return c(["Edg"]);break;case "Chromium":if(_.LA())return c(["Chrome","CriOS","HeadlessChrome"])}return G==="Firefox"&&bT()||G==="Safari"&&_.npp()||G==="Android Browser"&&_.vpO()||G==="Silk"&&U0("Silk")?(c=I[2])&&c[1]||"":""};
_.Ufr=function(G){if(uT()&&G!=="Silk"){var c=Di.brands.find(function(I){return I.brand===G});
if(!c||!c.version)return NaN;c=c.version.split(".")}else{c=opr(G);if(c==="")return NaN;c=c.split(".")}return c.length===0?NaN:Number(c[0])};
$p=function(){return nA?!!Di&&!!Di.platform:!1};
_.uBU=function(){return $p()?Di.platform==="Android":U0("Android")};
bAq=function(){return U0("iPhone")&&!U0("iPod")&&!U0("iPad")};
_.Sr=function(){return bAq()||U0("iPad")||U0("iPod")};
_.k8f=function(){return $p()?Di.platform==="macOS":U0("Macintosh")};
_.sqr=function(){return $p()?Di.platform==="Windows":U0("Windows")};
_.Lg0=function(){return $p()?Di.platform==="Chrome OS":U0("CrOS")};
_.pA=function(G){return G[G.length-1]};
_.Mf=function(G,c,I){c=_.AUp(G,c,I);return c<0?null:typeof G==="string"?G.charAt(c):G[c]};
_.AUp=function(G,c,I){for(var R=G.length,Z=typeof G==="string"?G.split(""):G,K=0;K<R;K++)if(K in Z&&c.call(I,Z[K],K,G))return K;return-1};
$fU=function(G){for(var c=_.E0,I=typeof G==="string"?G.split(""):G,R=G.length-1;R>=0;R--)if(R in I&&c.call(void 0,I[R],R,G))return R;return-1};
_.fA=function(G,c){return _.JU(G,c)>=0};
_.S00=function(G,c){_.fA(G,c)||G.push(c)};
_.rb=function(G,c){c=_.JU(G,c);var I;(I=c>=0)&&_.prr(G,c);return I};
_.prr=function(G,c){Array.prototype.splice.call(G,c,1)};
_.jr=function(G){var c=G.length;if(c>0){for(var I=Array(c),R=0;R<c;R++)I[R]=G[R];return I}return[]};
_.tU=function(G,c){for(var I=1;I<arguments.length;I++){var R=arguments[I];if(_.xp(R)){var Z=G.length||0,K=R.length||0;G.length=Z+K;for(var m=0;m<K;m++)G[Z+m]=R[m]}else G.push(R)}};
_.Vrg=function(G,c,I,R){Array.prototype.splice.apply(G,Mrf(arguments,1))};
Mrf=function(G,c,I){return arguments.length<=2?Array.prototype.slice.call(G,c):Array.prototype.slice.call(G,c,I)};
zC0=function(G,c){c=c||G;for(var I=0,R=0,Z={};R<G.length;){var K=G[R++],m=_.db(K)?"o"+_.XB(K):(typeof K).charAt(0)+K;Object.prototype.hasOwnProperty.call(Z,m)||(Z[m]=!0,c[I++]=K)}c.length=I};
_.JUC=function(G,c,I){I=I||_.EpC;for(var R=0,Z=G.length,K;R<Z;){var m=R+(Z-R>>>1);var a=I(c,G[m]);a>0?R=m+1:(Z=m,K=!a)}return K?R:-R-1};
_.gb=function(G,c,I){if(!_.xp(G)||!_.xp(c)||G.length!=c.length)return!1;var R=G.length;I=I||Wgp;for(var Z=0;Z<R;Z++)if(!I(G[Z],c[Z]))return!1;return!0};
_.EpC=function(G,c){return G>c?1:G<c?-1:0};
Wgp=function(G,c){return G===c};
iA0=function(G,c,I){c=Array.prototype.splice.call(G,c,1);Array.prototype.splice.call(G,I,0,c[0])};
BbB=function(G){return fiT[G]||""};
xfg=function(G){if(!rUT)return _.Yp(G);G=jqr.test(G)?G.replace(jqr,BbB):G;G=atob(G);for(var c=new Uint8Array(G.length),I=0;I<G.length;I++)c[I]=G.charCodeAt(I);return c};
trq=function(G,c){G.__closure__error__context__984382||(G.__closure__error__context__984382={});G.__closure__error__context__984382.severity=c};
_.c0=function(G){G=Error(G);trq(G,"warning");return G};
dfp=function(G,c){if(G!=null){var I;var R=(I=hCT)!=null?I:hCT={};I=R[G]||0;I>=c||(R[G]=I+1,G=Error(),trq(G,"incident"),Zi(G))}};
R0=function(G,c,I){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&G?Symbol.for(G):G!=null?Symbol(G):Symbol():c};
QB=function(G,c){KN||_.P0 in G||CT0(G,HAA);G[_.P0]|=c};
a0=function(G,c){KN||_.P0 in G||CT0(G,HAA);G[_.P0]=c};
Xrq=function(G){if(4&G)return 512&G?512:1024&G?1024:0};
OK=function(G){QB(G,34);return G};
Nk=function(G){QB(G,8192);return G};
yU8=function(G){QB(G,32);return G};
l2=function(){return typeof BigInt==="function"};
b2=function(G,c){return c===void 0?G.copyOnWrite!==o0&&!!(2&(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.P0]|0)):!!(2&c)&&G.copyOnWrite!==o0};
_.Mk=function(G,c){if(G!=null)if(typeof G==="string")G=G?new LN(G,Ae):_.Si();else if(G.constructor!==LN)if(gp0&&G!=null&&G instanceof Uint8Array)G=G.length?new LN(new Uint8Array(G),Ae):_.Si();else{if(!c)throw Error();G=void 0}return G};
Y0r=function(G,c){if(typeof c!=="number"||c<0||c>=G.length)throw Error();};
GVf=function(G,c,I){var R=c&128?0:-1,Z=G.length,K;if(K=!!Z)K=G[Z-1],K=K!=null&&typeof K==="object"&&K.constructor===Object;var m=Z+(K?-1:0);for(c=c&128?1:0;c<m;c++)I(c-R,G[c]);if(K){G=G[Z-1];for(var a in G)!isNaN(a)&&I(+a,G[a])}};
zV=function(G){return G&128?VB:void 0};
EK=function(G){G.isGuard_doNotManuallySetPrettyPlease=!0;return G};
Ipq=function(){var G=ce8;return EK(function(c){for(var I in G)if(c===G[I]&&!/^[0-9]+$/.test(I))return!0;return!1})};
_.Je=function(G){var c=G;if(R9A(c)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(c))throw Error(String(c));}else if(ZNr(c)&&!Number.isSafeInteger(c))throw Error(String(c));return KAf?BigInt(G):G=P2A(G)?G?"1":"0":R9A(G)?G.trim()||"0":String(G)};
Q0g=function(G,c){if(G.length>c.length)return!1;if(G.length<c.length||G===c)return!0;for(var I=0;I<G.length;I++){var R=G[I],Z=c[I];if(R>Z)return!1;if(R<Z)return!0}};
mkB=function(G){var c=G>>>0;W0=c;i2=(G-c)/4294967296>>>0};
fN=function(G){if(G<0){mkB(-G);var c=_.Q(apT(W0,i2));G=c.next().value;c=c.next().value;W0=G>>>0;i2=c>>>0}else mkB(G)};
ONr=function(G){var c=Te8||(Te8=new DataView(new ArrayBuffer(8)));c.setFloat32(0,+G,!0);i2=0;W0=c.getUint32(0,!0)};
e9A=function(G,c){var I=c*4294967296+(G>>>0);return Number.isSafeInteger(I)?I:_.B0(G,c)};
Nep=function(G,c){return _.Je(l2()?BigInt.asUintN(64,(BigInt(c>>>0)<<BigInt(32))+BigInt(G>>>0)):_.B0(G,c))};
re=function(G,c){var I=c&2147483648;I&&(G=~G+1>>>0,c=~c>>>0,G==0&&(c=c+1>>>0));G=e9A(G,c);return typeof G==="number"?I?-G:G:I?"-"+G:G};
lpp=function(G,c){return l2()?_.Je(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(c))<<BigInt(32))+BigInt.asUintN(32,BigInt(G)))):_.Je(_.ji(G,c))};
qK0=function(G){var c=W0,I=i2,R=I>>31;I=(I<<1|c>>>31)^R;G(c<<1^R,I)};
FA0=function(G,c){return w08(G,c,re)};
w08=function(G,c,I){var R=-(G&1);G=(G>>>1|c<<31)^R;c=c>>>1^R;return I(G,c)};
_.B0=function(G,c){c>>>=0;G>>>=0;if(c<=2097151)var I=""+(4294967296*c+G);else l2()?I=""+(BigInt(c)<<BigInt(32)|BigInt(G)):(I=(G>>>24|c<<8)&16777215,c=c>>16&65535,G=(G&16777215)+I*6777216+c*6710656,I+=c*8147497,c*=2,G>=1E7&&(I+=G/1E7>>>0,G%=1E7),I>=1E7&&(c+=I/1E7>>>0,I%=1E7),I=c+nKf(I)+nKf(G));return I};
nKf=function(G){G=String(G);return"0000000".slice(G.length)+G};
_.ji=function(G,c){c&2147483648?l2()?G=""+(BigInt(c|0)<<BigInt(32)|BigInt(G>>>0)):(c=_.Q(apT(G,c)),G=c.next().value,c=c.next().value,G="-"+_.B0(G,c)):G=_.B0(G,c);return G};
te=function(G){if(G.length<16)fN(Number(G));else if(l2())G=BigInt(G),W0=Number(G&BigInt(4294967295))>>>0,i2=Number(G>>BigInt(32)&BigInt(4294967295));else{var c=+(G[0]==="-");i2=W0=0;for(var I=G.length,R=c,Z=(I-c)%6+c;Z<=I;R=Z,Z+=6)R=Number(G.slice(R,Z)),i2*=1E6,W0=W0*1E6+R,W0>=4294967296&&(i2+=Math.trunc(W0/4294967296),i2>>>=0,W0>>>=0);c&&(c=_.Q(apT(W0,i2)),G=c.next().value,c=c.next().value,W0=G,i2=c)}};
apT=function(G,c){c=~c;G?G=~G+1:c+=1;return[G,c]};
CN=function(G){return Array.prototype.slice.call(G)};
_.H0=function(G,c){throw Error(c===void 0?"unexpected value "+G+"!":c);};
_.yB=function(G){if(G!=null&&typeof G!=="number")throw Error("L`"+typeof G+"`"+G);return G};
_.ge=function(G){if(G==null||typeof G==="number")return G;if(G==="NaN"||G==="Infinity"||G==="-Infinity")return Number(G)};
vK8=function(G){if(G!=null&&typeof G!=="boolean")throw Error("M`"+_.Gr(G)+"`"+G);return G};
_.Dkr=function(G){if(G==null||typeof G==="boolean")return G;if(typeof G==="number")return!!G};
_.Ru=function(G){switch(typeof G){case "bigint":return!0;case "number":return cu(G);case "string":return oKf.test(G);default:return!1}};
_.K1=function(G){if(!cu(G))throw _.c0("enum");return G|0};
_.Pu=function(G){return G==null?G:cu(G)?G|0:void 0};
Ukb=function(G){if(typeof G!=="number")throw _.c0("int32");if(!cu(G))throw _.c0("int32");return G|0};
_.mW=function(G){return G==null?G:Ukb(G)};
_.au=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return cu(G)?G|0:void 0};
_.uTU=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return cu(G)?G>>>0:void 0};
LAr=function(G){var c=0;c=c===void 0?0:c;if(!_.Ru(G))throw _.c0("int64");var I=typeof G;switch(c){case 512:switch(I){case "string":return Tr(G);case "bigint":return String(Od(64,G));default:return bNr(G)}case 1024:switch(I){case "string":return kVB(G);case "bigint":return _.Je(Od(64,G));default:return s0b(G)}case 0:switch(I){case "string":return Tr(G);case "bigint":return _.Je(Od(64,G));default:return eG(G)}default:return _.H0(c,"Unknown format requested type for int64")}};
Ng=function(G){return G==null?G:LAr(G)};
AeA=function(G){var c=G.length;if(G[0]==="-"?c<20||c===20&&G<="-9223372036854775808":c<19||c===19&&G<="9223372036854775807")return G;te(G);return _.ji(W0,i2)};
$k8=function(G){if(G[0]==="-")var c=!1;else c=G.length,c=c<20?!0:c===20&&G<="18446744073709551615";if(c)return G;te(G);return _.B0(W0,i2)};
eG=function(G){G=lH(G);qg(G)||(fN(G),G=re(W0,i2));return G};
_.SKq=function(G){G=lH(G);G>=0&&qg(G)||(fN(G),G=e9A(W0,i2));return G};
bNr=function(G){G=lH(G);qg(G)?G=String(G):(fN(G),G=_.ji(W0,i2));return G};
_.p08=function(G){G=lH(G);G>=0&&qg(G)?G=String(G):(fN(G),G=_.B0(W0,i2));return G};
Tr=function(G){var c=lH(Number(G));if(qg(c))return String(c);c=G.indexOf(".");c!==-1&&(G=G.substring(0,c));return AeA(G)};
kVB=function(G){var c=lH(Number(G));if(qg(c))return _.Je(c);c=G.indexOf(".");c!==-1&&(G=G.substring(0,c));return l2()?_.Je(Od(64,BigInt(G))):_.Je(AeA(G))};
s0b=function(G){return qg(G)?_.Je(eG(G)):_.Je(bNr(G))};
_.Mif=function(G){return qg(G)?_.Je(_.SKq(G)):_.Je(_.p08(G))};
_.Vi8=function(G){var c=lH(Number(G));if(qg(c)&&c>=0)return String(c);c=G.indexOf(".");c!==-1&&(G=G.substring(0,c));return $k8(G)};
_.z9B=function(G){var c=lH(Number(G));if(qg(c)&&c>=0)return _.Je(c);c=G.indexOf(".");c!==-1&&(G=G.substring(0,c));return l2()?_.Je((0,_.w7)(64,BigInt(G))):_.Je($k8(G))};
_.Jei=function(G){if(G==null)return G;if(typeof G==="bigint")return EKq(G)?G=Number(G):(G=Od(64,G),G=EKq(G)?Number(G):String(G)),G;if(_.Ru(G))return typeof G==="number"?eG(G):Tr(G)};
WA8=function(G,c){c=c===void 0?!1:c;var I=typeof G;if(G==null)return G;if(I==="bigint")return String(Od(64,G));if(_.Ru(G))return I==="string"?Tr(G):c?bNr(G):eG(G)};
_.iNT=function(G){var c=typeof G;if(G==null)return G;if(c==="bigint")return _.Je(Od(64,G));if(_.Ru(G))return c==="string"?kVB(G):s0b(G)};
fpU=function(G){if(G==null)return G;var c=typeof G;if(c==="bigint")return String(Od(64,G));if(_.Ru(G)){if(c==="string")return Tr(G);if(c==="number")return eG(G)}};
Beg=function(G){if(G==null)return G;var c=typeof G;if(c==="bigint")return String((0,_.w7)(64,G));if(_.Ru(G)){if(c==="string")return _.Vi8(G);if(c==="number")return _.SKq(G)}};
_.Fj=function(G){if(typeof G!=="string")throw Error();return G};
DW=function(G){if(G!=null&&typeof G!=="string")throw Error();return G};
_.Ud=function(G){return G==null||typeof G==="string"?G:void 0};
xkA=function(G,c,I,R){if(G!=null&&G[kF]===sd)return G;if(!Array.isArray(G))return I?R&2?c[reg]||(c[reg]=j0T(c)):new c:void 0;I=G[_.P0]|0;R=I|R&32|R&2;R!==I&&a0(G,R);return new c(G)};
j0T=function(G){G=new G;OK(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
tig=function(G,c,I){G=c?Ukb(G):_.au(G);return G==null?I?0:void 0:G|0};
h9p=function(G){return G};
dkA=function(G){return G};
HNr=function(G,c,I,R,Z,K){G=xkA(G,R,I,K);Z&&(G=C2i(G));return G};
X0A=function(G){return[G,this.get(G)]};
YKO=function(){return yeU||(yeU=new Ad(OK([]),void 0,void 0,void 0,gKA))};
Gri=function(G){var c=$F(p1);return c?G[c]:void 0};
R0f=function(G,c){var I=I===void 0?!1:I;if($F(cdT)&&$F(p1)&&void 0===cdT){var R=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=R[p1];if(!Z)return;if(Z=Z.reviveUnknownFields)try{Z(R,c,IWi);return}catch(K){Zi(K)}}I&&(G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(I=$F(p1))&&I in G&&(G=G[I])&&delete G[c])};
KWr=function(G,c){var I=$F(p1),R;KN&&I&&((R=G[I])==null?void 0:R[c])!=null&&dfp(Z1O,3)};
QuO=function(G,c){c<100||dfp(PHO,1)};
e0q=function(G,c,I,R){var Z=R!==void 0;R=!!R;var K=$F(p1),m;!Z&&KN&&K&&(m=G[K])&&mgB(m,QuO);K=[];var a=G.length;m=4294967295;var O=!1,N=!!(c&64),q=N?c&128?0:-1:void 0;if(!(c&1)){var w=a&&G[a-1];w!=null&&typeof w==="object"&&w.constructor===Object?(a--,m=a):w=void 0;if(N&&!(c&128)&&!Z){O=!0;var F;m=((F=aWb)!=null?F:h9p)(m-q,q,G,w,void 0)+q}}c=void 0;for(F=0;F<a;F++){var n=G[F];if(n!=null&&(n=I(n,R))!=null)if(N&&F>=m){var U=F-q,k=void 0;((k=c)!=null?k:c={})[U]=n}else K[F]=n}if(w)for(var p in w)a=w[p],
a!=null&&(a=I(a,R))!=null&&(F=+p,n=void 0,N&&!Number.isNaN(F)&&(n=F+q)<m?K[n]=a:(F=void 0,((F=c)!=null?F:c={})[p]=a));c&&(O?K.push(c):K[m]=c);Z&&$F(p1)&&(G=Gri(G))&&G instanceof T78&&(K[p1]=O1U(G));return K};
lWA=function(G){G[0]=N7g(G[0]);G[1]=N7g(G[1]);return G};
N7g=function(G){switch(typeof G){case "number":return Number.isFinite(G)?G:""+G;case "bigint":return EKq(G)?Number(G):""+G;case "boolean":return G?1:0;case "object":if(Array.isArray(G)){var c=G[_.P0]|0;return G.length===0&&c&1?void 0:e0q(G,c,N7g)}if(G!=null&&G[kF]===sd)return qdq(G);if(G instanceof LN){c=G.JSC$8989_value_;if(c==null)G="";else if(typeof c==="string")G=c;else{if(rUT){for(var I="",R=0,Z=c.length-10240;R<Z;)I+=String.fromCharCode.apply(null,c.subarray(R,R+=10240));I+=String.fromCharCode.apply(null,
R?c.subarray(R):c);c=btoa(I)}else c=_.zr(c);G=G.JSC$8989_value_=c}return G}if(G instanceof Ad)return G=G.size!==0?wuT(G,lWA):void 0,G;return}return G};
Jd=function(G,c){if(c){aWb=c==null||c===h9p||c[FWr]!==nFg?h9p:c;try{return qdq(G)}finally{aWb=void 0}}return qdq(G)};
qdq=function(G){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return e0q(G,G[_.P0]|0,N7g)};
oFr=function(G){switch(typeof G){case "boolean":return vFC||(vFC=[0,void 0,!0]);case "number":return G>0?void 0:G===0?Dgq||(Dgq=[0,void 0]):[-G,void 0];case "string":return[0,G];case "object":return G}};
Wu=function(G,c){return Ugp(G,c[0],c[1])};
_.iH=function(G,c,I){return Ugp(G,c,I,2048)};
Ugp=function(G,c,I,R){R=R===void 0?0:R;if(G==null){var Z=32;I?(G=[I],Z|=128):G=[];c&&(Z=Z&-16760833|(c&1023)<<14)}else{if(!Array.isArray(G))throw Error("O");Z=G[_.P0]|0;if(ujT&&1&Z)throw Error("P");2048&Z&&!(2&Z)&&b18();if(Z&256)throw Error("Q");if(Z&64)return(Z|R)!==Z&&a0(G,Z|R),G;if(I&&(Z|=128,I!==G[0]))throw Error("R");a:{I=G;Z|=64;var K=I.length;if(K){var m=K-1,a=I[m];if(a!=null&&typeof a==="object"&&a.constructor===Object){c=Z&128?0:-1;m-=c;if(m>=1024)throw Error("T");for(var O in a)K=+O,K<m&&
(I[K+c]=a[O],delete a[O]);Z=Z&-16760833|(m&1023)<<14;break a}}if(c){O=Math.max(c,K-(Z&128?0:-1));if(O>1024)throw Error("U");Z=Z&-16760833|(O&1023)<<14}}}a0(G,Z|64|R);return G};
b18=function(){if(ujT)throw Error("S");dfp(krr,5)};
Adr=function(G,c){if(typeof G!=="object")return G;if(Array.isArray(G)){var I=G[_.P0]|0;return G.length===0&&I&1?void 0:suq(G,I,c)}if(G!=null&&G[kF]===sd)return LWp(G);if(G instanceof Ad){c=G.arrayState;if(c&2)return G;if(!G.size)return;I=OK(wuT(G));if(G.valueCtor)for(G=0;G<I.length;G++){var R=I[G],Z=R[1];Z==null||typeof Z!=="object"?Z=void 0:Z!=null&&Z[kF]===sd?Z=LWp(Z):Array.isArray(Z)?Z=suq(Z,Z[_.P0]|0,!!(c&32)):Z=void 0;R[1]=Z}return I}if(G instanceof LN)return G};
suq=function(G,c,I){if(c&2)return G;!I||4096&c||16&c?G=f1(G,c,!1,I&&!(c&16)):(QB(G,34),c&4&&Object.freeze(G));return G};
$gq=function(G,c,I){G=new G.constructor(c);I&&(G.copyOnWrite=o0);G.noLegacyNull=o0;return G};
LWp=function(G){var c=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=c[_.P0]|0;return b2(G,I)?G:Sdb(G,c,I)?$gq(G,c):f1(c,I)};
f1=function(G,c,I,R){R!=null||(R=!!(34&c));G=e0q(G,c,Adr,R);R=32;I&&(R|=2);c=c&16769217|R;a0(G,c);return G};
C2i=function(G){var c=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=c[_.P0]|0;return b2(G,I)?Sdb(G,c,I)?$gq(G,c,!0):new G.constructor(f1(c,I,!1)):G};
Bu=function(G){if(G.copyOnWrite!==o0)return!1;var c=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=f1(c,c[_.P0]|0);QB(c,2048);G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=c;G.copyOnWrite=void 0;G.noLegacyNull=void 0;return!0};
r7=function(G){if(!Bu(G)&&b2(G,G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.P0]|0))throw Error();};
jG=function(G,c){c===void 0&&(c=G[_.P0]|0);c&32&&!(c&4096)&&a0(G,c|4096)};
Sdb=function(G,c,I){return I&2?!0:I&32&&!(I&4096)?(a0(c,I|2),G.copyOnWrite=o0,!0):!1};
td=function(G,c,I,R,Z){var K=I+(Z?0:-1),m=G.length-1;if(m>=1+(Z?0:-1)&&K>=m){var a=G[m];if(a!=null&&typeof a==="object"&&a.constructor===Object)return a[I]=R,c}if(K<=m)return G[K]=R,c;if(R!==void 0){var O;m=((O=c)!=null?O:c=G[_.P0]|0)>>14&1023||536870912;I>=m?R!=null&&(K={},G[m+(Z?0:-1)]=(K[I]=R,K)):G[K]=R}return c};
_.Xj=function(G,c,I,R,Z){var K=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=K[_.P0]|0;R=b2(G,m)?1:R;Z=!!Z||R===3;R===2&&Bu(G)&&(K=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=K[_.P0]|0);G=puO(K,c);var a=G===hd?7:G[_.P0]|0,O=MGg(a,m);var N=4&O?!1:!0;if(N){4&O&&(G=CN(G),a=0,O=Hu(O,m),m=td(K,m,c,G));for(var q=0,w=0;q<G.length;q++){var F=I(G[q]);F!=null&&(G[w++]=F)}w<q&&(G.length=w);I=(O|4)&-513;O=I&=-1025;O&=-4097}O!==a&&(a0(G,O),2&O&&Object.freeze(G));return G=VGB(G,O,K,
m,c,R,N,Z)};
VGB=function(G,c,I,R,Z,K,m,a){var O=c;K===1||(K!==4?0:2&c||!(16&c)&&32&R)?y$(c)||(c|=!G.length||m&&!(4096&c)||32&R&&!(4096&c||16&c)?2:256,c!==O&&a0(G,c),Object.freeze(G)):(K===2&&y$(c)&&(G=CN(G),O=0,c=Hu(c,R),R=td(I,R,Z,G)),y$(c)||(a||(c|=16),c!==O&&a0(G,c)));2&c||!(4096&c||16&c)||jG(I,R);return G};
puO=function(G,c,I){G=g7(G,c,I);return Array.isArray(G)?G:hd};
MGg=function(G,c){2&c&&(G|=2);return G|1};
y$=function(G){return!!(2&G)&&!!(4&G)||!!(256&G)};
z0f=function(G){return _.Mk(G,!0)};
EF8=function(G){G=CN(G);for(var c=0;c<G.length;c++){var I=G[c]=CN(G[c]);Array.isArray(I[1])&&(I[1]=OK(I[1]))}return Nk(G)};
_.Jd8=function(G,c,I,R,Z){var K=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=K[_.P0]|0;var a=b2(G,m);a:{!a&&Bu(G)&&(K=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=K[_.P0]|0);var O=g7(K,c);G=!1;if(O==null){if(a){c=YKO();break a}O=[]}else if(O.constructor===Ad)if(O.arrayState&2&&!a)O=wuT(O);else{c=O;break a}else Array.isArray(O)?G=!!((O[_.P0]|0)&2):O=[];if(a){if(!O.length){c=YKO();break a}G||(G=!0,OK(O))}else G&&(G=!1,Nk(O),O=EF8(O));!G&&m&32&&yU8(O);R=new Ad(O,I,R,Z);m=
td(K,m,c,R);G||jG(K,m);c=R}!a&&I&&(c.callToMutableOnAccess=!0);return c};
_.YF=function(G,c,I,R){r7(G);var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=Z[_.P0]|0;if(I==null)return td(Z,K,c),G;var m=I===hd?7:I[_.P0]|0,a=m,O=y$(m),N=O||Object.isFrozen(I);O||(m=0);N||(I=CN(I),a=0,m=Hu(m,K),N=!1);m|=5;var q;O=(q=Xrq(m))!=null?q:0;for(q=0;q<I.length;q++){var w=I[q],F=R(w,O);Object.is(w,F)||(N&&(I=CN(I),a=0,m=Hu(m,K),N=!1),I[q]=F)}m!==a&&(N&&(I=CN(I),m=Hu(m,K)),a0(I,m));td(Z,K,c,I);return G};
_.G6=function(G,c,I,R,Z){r7(G);var K=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;td(K,K[_.P0]|0,c,(R==="0"?Number(I)===0:I===R)?void 0:I,Z);return G};
_.cy=function(G,c,I){if(c&2)throw Error();var R=zV(c),Z=puO(G,I,R),K=Z===hd?7:Z[_.P0]|0,m=MGg(K,c);if(2&m||y$(m)||16&m)m===K||y$(m)||a0(Z,m),Z=CN(Z),K=0,m=Hu(m,c),td(G,c,I,Z,R);m&=-13;m!==K&&a0(Z,m);return Z};
WWb=function(G){if(KN){var c;return(c=G[ZJ])!=null?c:G[ZJ]=new Map}if(ZJ in G)return G[ZJ];c=new Map;Object.defineProperty(G,ZJ,{value:c});return c};
fWC=function(G,c,I,R,Z){var K=WWb(G),m=i1U(K,G,c,I,Z);m!==R&&(m&&(c=td(G,c,m,void 0,Z)),K.set(I,R));return c};
i1U=function(G,c,I,R,Z){var K=G.get(R);if(K!=null)return K;for(var m=K=0;m<R.length;m++){var a=R[m];g7(c,a,Z)!=null&&(K!==0&&(I=td(c,I,K,void 0,Z)),K=a)}G.set(R,K);return K};
B78=function(G,c,I,R,Z){var K=!1;R=g7(G,R,Z,function(m){var a=xkA(m,I,!1,c);K=a!==m&&a!=null;return a});
if(R!=null)return K&&!b2(R)&&jG(G,c),R};
rdb=function(G,c,I,R,Z,K,m,a){var O=b2(G,I);K=O?1:K;m=!!m||K===3;O=a&&!O;(K===2||O)&&Bu(G)&&(c=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=c[_.P0]|0);G=puO(c,Z);var N=G===hd?7:G[_.P0]|0,q=MGg(N,I);if(a=!(4&q)){var w=G,F=I,n=!!(2&q);n&&(F|=2);for(var U=!n,k=!0,p=0,M=0;p<w.length;p++){var z=xkA(w[p],R,!1,F);if(z instanceof R){if(!n){var t=b2(z);U&&(U=!t);k&&(k=t)}w[M++]=z}}M<p&&(w.length=M);q|=4;q=k?q&-4097:q|4096;q=U?q|8:q&-9}q!==N&&(a0(G,q),2&q&&Object.freeze(G));if(O&&!(8&q||!G.length&&
(K===1||(K!==4?0:2&q||!(16&q)&&32&I)))){y$(q)&&(G=CN(G),q=Hu(q,I),I=td(c,I,Z,G));R=G;O=q;for(N=0;N<R.length;N++)w=R[N],q=C2i(w),w!==q&&(R[N]=q);O|=8;q=O=R.length?O|4096:O&-4097;a0(G,q)}return G=VGB(G,q,c,I,Z,K,a,m)};
jug=function(G){G==null&&(G=void 0);return G};
Hu=function(G,c){return G=(2&c?G|2:G&-3)&-273};
_.xgr=function(G,c,I,R,Z){r7(G);c=_.Xj(G,c,Z,2,!0);var K;Z=(K=Xrq(c===hd?7:c[_.P0]|0))!=null?K:0;c.push(I(R,Z));return G};
tGA=function(G,c,I,R,Z,K,m){r7(G);var a=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=rdb(G,a,a[_.P0]|0,I,c,2,!0);if(K&&m)Z!=null||(Z=G.length-1),Y0r(G,Z),G.splice(Z,K),G.length||(G[_.P0]&=-4097);else{if(K){if(typeof Z!=="number"||Z<0||Z>G.length)throw Error();}else R=R!=null?R:new I;Z!=void 0?G.splice(Z,K,R):G.push(R);Z=I=G===hd?7:G[_.P0]|0;(R=b2(R))?(I&=-9,G.length===1&&(I&=-4097)):I|=4096;I!==Z&&a0(G,I);R||jG(a)}};
dg0=function(G,c){if(typeof G==="string")return new KG(xfg(G),c);if(Array.isArray(G))return new KG(new Uint8Array(G),c);if(G.constructor===Uint8Array)return new KG(G,!1);if(G.constructor===ArrayBuffer)return G=new Uint8Array(G),new KG(G,!1);if(G.constructor===LN)return c=h0r(G)||new Uint8Array(0),new KG(c,!0,G);if(G instanceof Uint8Array)return G=G.constructor===Uint8Array?G:new Uint8Array(G.buffer,G.byteOffset,G.byteLength),new KG(G,!1);throw Error();};
H1q=function(G){switch(typeof G){case "string":CHB(G)}};
yd8=function(G){switch(typeof G){case "string":XuO(G)}};
Py=function(){var G=function(){throw Error();};
Object.setPrototypeOf(G,G.prototype);return G};
Yd0=function(G,c){var I=I===void 0?gFi:I;return new Qx(G,c,I)};
IJr=function(G,c,I,R,Z){G6p(G,I,czT(c,R),Z)};
mo=function(G,c,I,R){var Z=R[G];if(Z)return Z;Z={};Z.binaryFields=R;Z.messageMetadata=oFr(R[0]);var K=R[1],m=1;K&&K.constructor===Object&&(Z.extensions=K,K=R[++m],typeof K==="function"&&(Z.isMessageSet=!0,Rfq!=null||(Rfq=K),ZGr!=null||(ZGr=R[m+1]),K=R[m+=2]));for(var a={};K&&Kor(K);){for(var O=0;O<K.length;O++)a[K[O]]=K;K=R[++m]}for(O=1;K!==void 0;){typeof K==="number"&&(O+=K,K=R[++m]);var N=void 0;if(K instanceof Qx)var q=K;else q=P5T,m--;K=void 0;if((K=q)==null?0:K.$$isMsg){K=R[++m];N=R;var w=m;
typeof K==="function"&&(K=K(),N[w]=K);N=K}K=R[++m];w=O+1;typeof K==="number"&&K<0&&(w-=K,K=R[++m]);for(;O<w;O++){var F=a[O];N?I(Z,O,q,N,F):c(Z,O,q,F)}}return R[G]=Z};
Kor=function(G){return Array.isArray(G)&&!!G.length&&typeof G[0]==="number"&&G[0]>0};
mNb=function(G){return Array.isArray(G)?G[0]instanceof Qx?G:[QRC,G]:[G,void 0]};
czT=function(G,c){if(G instanceof _.aR)return G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(G))return Wu(G,c)};
aJ0=function(G,c,I,R){var Z=I.$$binaryReaderFn;G[c]=R?function(K,m,a){return Z(K,m,a,R)}:Z};
OGT=function(G,c,I,R,Z){var K=I.$$binaryReaderFn,m,a;G[c]=function(O,N,q){return K(O,N,q,a||(a=mo(TS0,aJ0,OGT,R).messageMetadata),m||(m=efU(R)),Z)}};
efU=function(G){var c=G[NSC];if(c!=null)return c;var I=mo(TS0,aJ0,OGT,G);c=I.isMessageSet?function(R,Z){return Rfq(R,Z,I)}:function(R,Z){for(;lJp(Z)&&Z.nextWireType_!=4;){var K=Z.nextField_,m=I[K];
if(m==null){var a=I.extensions;a&&(a=a[K])&&(a=qTg(a),a!=null&&(m=I[K]=a))}if(m==null||!m(Z,R,K)){a=Z;m=a.fieldCursor_;wyB(a);if(a.discardUnknownFields)var O=void 0;else{var N=a.decoder_.cursor_-m;a.decoder_.cursor_=m;O=FoT(a.decoder_,N)}N=a=m=void 0;var q=R;O&&((m=(a=(N=q[p1])!=null?N:q[p1]=new T78)[K])!=null?m:a[K]=[]).push(O)}}if(R=Gri(R))R.reviveUnknownFields=I.binaryFields[nNp];return!0};
G[NSC]=c;G[nNp]=vNA.bind(G);return c};
vNA=function(G,c,I,R){var Z=this[TS0],K=this[NSC],m=Wu(void 0,Z.messageMetadata),a=Gri(G);if(a){var O=!1,N=Z.extensions;if(N){Z=function(U,k,p){if(p.length!==0)if(N[k])for(U=_.Q(p),k=U.next();!k.done;k=U.next()){k=DNi(k.value);try{O=!0,K(m,k)}finally{k.free()}}else R==null||R(G,k,p)};
if(c==null)mgB(a,Z);else if(a!=null){var q=a[c];q&&Z(a,c,q)}if(O){var w=G[_.P0]|0;if(w&2&&w&2048&&(I==null||!I.reviveIntoImmutable))throw Error();var F=zV(w),n=function(U,k){if(g7(G,U,F)!=null)switch(I==null?void 0:I.resolutionBehavior){case 1:return;default:throw Error();}k!=null&&(w=td(G,w,U,k,F));delete a[U]};
c==null?GVf(m,m[_.P0]|0,function(U,k){n(U,k)}):n(c,g7(m,c,F))}}}};
qTg=function(G){G=mNb(G);var c=G[0].$$binaryReaderFn;if(G=G[1]){var I=efU(G),R=mo(TS0,aJ0,OGT,G).messageMetadata;return function(Z,K,m){return c(Z,K,m,R,I)}}return c};
oNf=function(G,c,I){G[c]=I.$$binaryWriterFn};
uxq=function(G,c,I,R){var Z,K,m=I.$$binaryWriterFn;G[c]=function(a,O,N){return m(a,O,N,K||(K=mo(UNB,oNf,uxq,R).messageMetadata),Z||(Z=bGq(R)))}};
bGq=function(G){var c=G[k60];if(!c){var I=mo(UNB,oNf,uxq,G);c=function(R,Z){return sRr(R,Z,I)};
G[k60]=c}return c};
sRr=function(G,c,I){GVf(G,G[_.P0]|0,function(R,Z){if(Z!=null){var K=Log(I,R);K?K(c,Z,R):R<500||dfp(Azg,3)}});
(G=Gri(G))&&mgB(G,function(R,Z,K){OT(c,c.encoder_.end());for(R=0;R<K.length;R++)OT(c,h0r(K[R])||new Uint8Array(0))})};
Log=function(G,c){var I=G[c];if(I)return I;if(I=G.extensions)if(I=I[c]){I=mNb(I);var R=I[0].$$binaryWriterFn;if(I=I[1]){var Z=bGq(I),K=mo(UNB,oNf,uxq,I).messageMetadata;I=G.isMessageSet?ZGr(K,Z):function(m,a,O){return R(m,a,O,K,Z)}}else I=R;
return G[c]=I}};
_.$NO=function(G,c,I){if(Array.isArray(c)){var R=c[_.P0]|0;if(R&4)return c;for(var Z=0,K=0;Z<c.length;Z++){var m=G(c[Z]);m!=null&&(c[K++]=m)}K<Z&&(c.length=K);G=R|1;I&&(G=(G|4)&-1537);G!==R&&a0(c,G);I&&G&2&&Object.freeze(c);return c}};
_.e_=function(G,c,I){return new Qx(G,c,I)};
_.STb=function(G,c,I){return new Qx(G,c,I)};
_.NN=function(G,c,I){td(G,G[_.P0]|0,c,I,zV(G[_.P0]|0))};
pyA=function(G,c,I){c=_.ge(c);c!=null&&(_.l5(G,I,1),G=G.encoder_,I=Te8||(Te8=new DataView(new ArrayBuffer(8))),I.setFloat64(0,+c,!0),W0=I.getUint32(0,!0),i2=I.getUint32(4,!0),_.qN(G,W0),_.qN(G,i2))};
M_0=function(G,c,I){c=_.ge(c);c!=null&&(_.l5(G,I,5),G=G.encoder_,ONr(c),_.qN(G,W0))};
_.nG=function(G,c,I){c=fpU(c);if(c!=null&&(H1q(c),c!=null))switch(_.l5(G,I,0),typeof c){case "number":G=G.encoder_;fN(c);Fx(G,W0,i2);break;case "bigint":I=BigInt.asUintN(64,c);I=new V_p(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));Fx(G.encoder_,I.JSC$9032_lo,I.JSC$9032_hi);break;default:I=CHB(c),Fx(G.encoder_,I.JSC$9032_lo,I.JSC$9032_hi)}};
ENT=function(G,c,I){c=Beg(c);if(c!=null&&(yd8(c),c!=null))switch(_.l5(G,I,0),typeof c){case "number":G=G.encoder_;fN(c);Fx(G,W0,i2);break;case "bigint":I=zfU(c);Fx(G.encoder_,I.JSC$9030_lo,I.JSC$9030_hi);break;default:I=XuO(c),Fx(G.encoder_,I.JSC$9030_lo,I.JSC$9030_hi)}};
WoB=function(G,c,I){c=_.au(c);c!=null&&c!=null&&(_.l5(G,I,0),_.Jzq(G.encoder_,c))};
_.fJr=function(G,c,I){iGO(G,I,Beg(c))};
BSi=function(G,c,I){c=_.Dkr(c);c!=null&&(_.l5(G,I,0),G.encoder_.JSC$9034_buffer_.push(c?1:0))};
jRr=function(G,c,I){c=_.Ud(c);c!=null&&rz0(G,I,eCr(c))};
xNA=function(G,c,I,R,Z){G6p(G,I,czT(c,R),Z)};
_.t_B=function(G,c,I){c=c==null||typeof c=="string"||c instanceof LN?c:void 0;c!=null&&rz0(G,I,dg0(c,!0).buffer)};
hfq=function(G,c,I){c=_.uTU(c);c!=null&&c!=null&&(_.l5(G,I,0),vy(G.encoder_,c))};
_.dNB=function(G,c,I){c=_.au(c);c!=null&&(c=parseInt(c,10),_.l5(G,I,0),_.Jzq(G.encoder_,c))};
C5b=function(G,c,I){if(G.nextWireType_!==0)return!1;_.NN(c,I,_.DJ(G.decoder_,lpp));return!0};
_.HGA=function(G,c,I,R){if(G.nextWireType_!==0)return!1;_.oR(c,I,R,_.DJ(G.decoder_,lpp));return!0};
Xyr=function(G,c,I){if(G.nextWireType_!==0)return!1;_.NN(c,I,_.DJ(G.decoder_,Nep));return!0};
_.gNb=function(G,c,I){if(G.nextWireType_!==1)return!1;_.NN(c,I,yz8(G.decoder_));return!0};
_.b5=function(G,c){return function(I,R){var Z={treatNewDataAsImmutable:!0};R&&Object.assign(Z,R);I=DNi(I,void 0,void 0,Z);try{var K=new G,m=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;efU(c)(m,I);var a=K}finally{I.free()}return a}};
_.kN=function(G){return function(c){return YTr(c,G)}};
GiC=function(G){return function(){return YTr(this,G)}};
_.c_r=function(G){return EK(function(c){return c instanceof G&&!b2(c)})};
_.sT=function(G){return function(c){return ITA(G,c)}};
PaT=function(G,c){return RJq({child:G,origin:c||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:ZTr,getPayloadCase:function(I){return I.getPayloadCase()},
createInitMessage:function(I){var R=new LG,Z=new Kzq;I=_.Az(Z,1,I);return _.$N(R,5,S_,I)}})};
pG=function(G){return{valueOf:G}.valueOf()};
m30=function(){var G=null;if(!QE0)return G;try{var c=function(I){return I};
G=QE0.createPolicy("goog#html",{createHTML:c,createScript:c,createScriptURL:c})}catch(I){}return G};
T5O=function(){aTp===void 0&&(aTp=m30());return aTp};
_.Vx=function(G){var c=T5O();G=c?c.createScriptURL(G):G;return new MN(G)};
_.z6=function(G){if(G instanceof MN)return G.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Jz=function(G){return Object.isFrozen(G)&&Object.isFrozen(G.raw)};
OT8=function(G){return G.toString().indexOf("`")===-1};
i5=function(G){return new _.Wy(eJB,G)};
fG=function(G){return G instanceof _.Wy};
_.By=function(G){if(fG(G))return G.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
rS=function(G){return new N5q(function(c){return c.substr(0,G.length+1).toLowerCase()===G+":"})};
_.j_=function(G,c){c=c===void 0?lTO:c;if(fG(G))return G;for(var I=0;I<c.length;++I){var R=c[I];if(R instanceof N5q&&R.isValid(G))return i5(G)}};
_.dS=function(G,c){c=c===void 0?lTO:c;return _.j_(G,c)||hz};
_.CG=function(G){var c=window;if(typeof MediaSource!=="undefined"&&G instanceof MediaSource||typeof c.ManagedMediaSource!=="undefined"&&G instanceof c.ManagedMediaSource)return i5(URL.createObjectURL(G));c=G.type;c.toLowerCase()==="application/octet-stream"?c=!0:(c=c.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),c=(c==null?void 0:c.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(c[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(c[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(c[1])||/^font\/[\w-]+$/i.test(c[1])));if(!c)throw Error("Z");return i5(URL.createObjectURL(G))};
_.q9i=function(G){for(var c=_.Hy.apply(1,arguments),I=[G[0]],R=0;R<c.length;R++)I.push(String(c[R])),I.push(G[R+1]);return i5(I.join(""))};
_.Fzb=function(G){if(!wMg){a:{var c=document.createElement("a");try{c.href=G}catch(I){G=void 0;break a}G=c.protocol;G=G===":"||G===""?"https:":G}return G}try{c=new URL(G)}catch(I){return"https:"}return c.protocol};
_.Xx=function(G){G instanceof _.Wy?G=_.By(G):G=nmB.test(G)?G:void 0;return G};
yx=function(G,c){c=_.Xx(c);c!==void 0&&(G.href=c)};
Gi=function(G){var c=T5O();G=c?c.createHTML(G):G;return new YN(G)};
cM=function(G){if(G instanceof YN)return G.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.IE=function(G,c){G.src=_.z6(c).toString()};
vmU=function(G,c){G.setAttribute("sandbox","");for(var I=0;I<c.length;I++)G.sandbox.supports&&!G.sandbox.supports(c[I])||G.sandbox.add(c[I])};
_.RE=function(G,c,I){G.removeAttribute("srcdoc");switch(c){case 0:if(I instanceof MN)throw new D3i("TrustedResourceUrl",0);vmU(G,[]);c=_.Xx(I);c!==void 0&&(G.src=c);break;case 1:if(!(I instanceof MN))throw new D3i(typeof I,1);vmU(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.IE(G,I);break;case 2:if(I instanceof MN)throw new D3i("TrustedResourceUrl",2);vmU(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
c=_.Xx(I);c!==void 0&&(G.src=c);break;default:_.H0(c)}};
_.ZT=function(G,c,I,R){c=_.Xx(c);return c!==void 0?G.open(c,I,R):null};
_.KT=function(G){G=G===void 0?document:G;var c,I;G=(I=(c=G).querySelector)==null?void 0:I.call(c,"script[nonce]");return G==null?"":G.nonce||G.getAttribute("nonce")||""};
_.Qp=function(G){var c=T5O();G=c?c.createScript(G):G;return new _.PM(G)};
mz=function(G){if(G instanceof _.PM)return G.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
omC=function(G){var c=_.KT(G.ownerDocument);c&&G.setAttribute("nonce",c)};
_.aE=function(G,c){G.textContent=mz(c);omC(G)};
_.Ti=function(G,c){G.src=_.z6(c);omC(G)};
_.O9=function(G,c){if(G.nodeType===1&&/^(script|style)$/i.test(G.tagName))throw Error("Z");G.innerHTML=cM(c)};
_.N3=function(G,c,I,R){if(G.length===0)throw Error("Z");G=G.map(function(K){if(K instanceof U3A)K=K.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return K});
var Z=I.toLowerCase();if(G.every(function(K){return Z.indexOf(K)!==0}))throw Error("aa`"+I);
c.setAttribute(I,R)};
_.la=function(G,c,I){if(c instanceof MN)G.href=_.z6(c).toString(),G.rel=I;else{if(ueq.indexOf(I)===-1)throw Error("ba`"+I);c=_.Xx(c);c!==void 0&&(G.href=c,G.rel=I)}};
bT0=function(G){if(G instanceof q3)return G.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.ki0=function(G,c){c=_.Xx(c);c!==void 0&&(G.href=c)};
sEr=function(G){return new Worker(_.z6(G),void 0)};
Lzf=function(G){return _.Vx(G)};
A_b=function(G,c){G&&(c=G.indexOf(c),0<=c&&G.splice(c,1))};
w5=function(G){return typeof G==="function"};
$3T=function(G){return G instanceof Fe||G&&"closed"in G&&w5(G.remove)&&w5(G.add)&&w5(G.unsubscribe)};
nT=function(){};
vM=function(G){S98(function(){throw G;})};
DT=function(G){return G};
oE=function(){return pMT(_.Hy.apply(0,arguments))};
pMT=function(G){return G.length===0?DT:G.length===1?G[0]:function(c){return G.reduce(function(I,R){return R(I)},c)}};
MnB=function(G){var c;return(c=G!=null?G:void 0)!=null?c:Promise};
Vnf=function(G,c){return new U9(function(I){var R=0;return c.schedule(function(){R===G.length?I.complete():(I.next(G[R++]),I.closed||this.schedule())})})};
zJ8=function(G,c){if(!G)throw Error("ca");return new U9(function(I){var R=new Fe;R.add(c.schedule(function(){var Z=G[Symbol.asyncIterator]();R.add(c.schedule(function(){var K=this;Z.next().then(function(m){m.done?I.complete():(I.next(m.value),K.schedule())})}))}));
return R})};
EmT=function(G,c,I){c=c.schedule(function(){try{I.call(this)}catch(R){G.error(R)}},0);
G.add(c)};
Wz8=function(G,c){return new U9(function(I){var R;I.add(c.schedule(function(){R=G[J_p]();EmT(I,c,function(){var Z=R.next(),K=Z.value;Z.done?I.complete():(I.next(K),this.schedule())})}));
return function(){var Z;return w5((Z=R)==null?void 0:Z.return)&&R.return()}})};
iTT=function(G,c){return new U9(function(I){var R=new Fe;R.add(c.schedule(function(){var Z=G[ua]();R.add(Z.subscribe({next:function(K){R.add(c.schedule(function(){return I.next(K)}))},
error:function(K){R.add(c.schedule(function(){return I.error(K)}))},
complete:function(){R.add(c.schedule(function(){return I.complete()}))}}))}));
return R})};
fTA=function(G,c){return new U9(function(I){return c.schedule(function(){return G.then(function(R){I.add(c.schedule(function(){I.next(R);I.add(c.schedule(function(){return I.complete()}))}))},function(R){I.add(c.schedule(function(){return I.error(R)}))})})})};
B5g=function(G){return new TypeError("da`"+(G!==null&&typeof G==="object"?"an invalid object":"'"+G+"'"))};
jEA=function(G,c){if(G!=null){if(w5(G[ua]))return iTT(G,c);if(r_O(G))return Vnf(G,c);if(w5(G==null?void 0:G.then))return fTA(G,c);if(Symbol.asyncIterator&&w5(G==null?void 0:G[Symbol.asyncIterator]))return zJ8(G,c);if(w5(G==null?void 0:G[J_p]))return Wz8(G,c)}throw B5g(G);};
km=function(G,c){return c?jEA(G,c):ba(G)};
ba=function(G){if(G instanceof U9)return G;if(G!=null){if(w5(G[ua]))return x38(G);if(r_O(G))return tnb(G);if(w5(G==null?void 0:G.then))return hJA(G);if(Symbol.asyncIterator&&w5(G==null?void 0:G[Symbol.asyncIterator]))return d3O(G);if(w5(G==null?void 0:G[J_p]))return Car(G)}throw B5g(G);};
x38=function(G){return new U9(function(c){var I=G[ua]();if(w5(I.subscribe))return I.subscribe(c);throw new TypeError("ea");})};
tnb=function(G){return new U9(function(c){for(var I=0;I<G.length&&!c.closed;I++)c.next(G[I]);c.complete()})};
hJA=function(G){return new U9(function(c){G.then(function(I){c.closed||(c.next(I),c.complete())},function(I){return c.error(I)}).then(null,vM)})};
Car=function(G){return new U9(function(c){for(var I=G[J_p]();!c.closed;){var R=I.next(),Z=R.value;R.done?c.complete():c.next(Z)}return function(){return w5(I==null?void 0:I.return)&&I.return()}})};
d3O=function(G){return new U9(function(c){HTr(G,c).catch(function(I){return c.error(I)})})};
HTr=function(G,c){var I,R,Z,K,m,a;return _.T(function(O){switch(O.nextAddress){case 1:_.s9(O,2,3),K=_.LT(G);case 5:return O.yield(K.next(),8);case 8:R=O.yieldResult;if(R.done){O.jumpTo(3);break}m=R.value;c.next(m);O.jumpTo(5);break;case 3:_.A_(O);_.$m(O,9);if(!R||R.done||!(Z=K.return)){O.jumpTo(9);break}return O.yield(Z.call(K),9);case 9:_.A_(O,0,0,1);if(I)throw I.error;_.pT(O,10,1);break;case 10:_.pT(O,4);break;case 2:a=_.M3(O);I={error:a};O.jumpTo(3);break;case 4:c.complete(),_.Vp(O)}})};
XMU=function(G,c){return c?Vnf(G,c):tnb(G)};
y_b=function(G){return w5(G[G.length-1])?G.pop():void 0};
zi=function(G){var c=G[G.length-1];return c&&w5(c.schedule)?G.pop():void 0};
E9=function(){var G=_.Hy.apply(0,arguments),c=zi(G);return c?Vnf(G,c):XMU(G)};
J_=function(G){var c=w5(G)?G:function(){return G};
return new U9(function(I){return I.error(c())})};
WM=function(G){return function(c){if(w5(c==null?void 0:c.lift))return c.lift(function(I){try{return G(I,this)}catch(R){this.error(R)}});
throw new TypeError("fa");}};
BM=function(){return WM(function(G,c){var I=null;G._refCount++;var R=new fT(c,void 0,void 0,void 0,function(){if(!G||G._refCount<=0||0<--G._refCount)I=null;else{var Z=G._connection,K=I;I=null;!Z||K&&Z!==K||Z.unsubscribe();c.unsubscribe()}});
G.subscribe(R);R.closed||(I=G.connect())})};
Y9g=function(){var G=gmp;var c=c===void 0?0:c;return WM(function(I,R){R.add(G.schedule(function(){return I.subscribe(R)},c))})};
r5=function(G){return WM(function(c,I){var R=0;c.subscribe(new fT(I,function(Z){I.next(G.call(void 0,Z,R++))}))})};
csb=function(G){return r5(function(c){return GMA(c)?G.apply(null,_.jn(c)):G(c)})};
Pyq=function(G){if(G.length===1){var c=G[0];if(I3b(c))return{args:c,keys:null};if(c&&typeof c==="object"&&Rpr(c)===Z8i)return G=K3r(c),{args:G.map(function(I){return c[I]}),
keys:G}}return{args:G,keys:null}};
xm=function(){var G=_.Hy.apply(0,arguments),c=zi(G),I=y_b(G);G=Pyq(G);var R=G.args,Z=G.keys;if(R.length===0)return km([],c);c=new U9(Q2U(R,c,Z?function(K){for(var m={},a=0;a<K.length;a++)m[Z[a]]=K[a];return m}:DT));
return I?c.pipe(csb(I)):c};
Q2U=function(G,c,I){I=I===void 0?DT:I;return function(R){mSf(c,function(){for(var Z=G.length,K=Array(Z),m=Z,a=G.map(function(){return!1}),O=!0,N={i$jscomp$217:0};N.i$jscomp$217<Z;N={i$jscomp$217:N.i$jscomp$217},N.i$jscomp$217++)mSf(c,function(q){return function(){km(G[q.i$jscomp$217],c).subscribe(new t_(R,function(w){K[q.i$jscomp$217]=w;
O&&(a[q.i$jscomp$217]=!0,O=!a.every(DT));O||R.next(I(K.slice()))},function(){return--m===0}))}}(N),R)},R)}};
mSf=function(G,c,I){G?I.add(G.schedule(c)):c()};
a30=function(G,c,I,R){var Z=[],K=0,m=0,a=!1,O=function(N){K++;ba(I(N,m++)).subscribe(new fT(c,function(q){c.next(q)},void 0,function(){K--;
for(var q={};Z.length&&K<R;q={bufferedValue:void 0})q.bufferedValue=Z.shift(),O(q.bufferedValue);!a||Z.length||K||c.complete()}))};
G.subscribe(new fT(c,function(N){return K<R?O(N):Z.push(N)},void 0,function(){a=!0;
!a||Z.length||K||c.complete()}));
return function(){Z=null}};
d5=function(G,c){var I=I===void 0?Infinity:I;if(w5(c))return d5(function(R,Z){return r5(function(K,m){return c(R,K,Z,m)})(ba(G(R,Z)))},I);
typeof c==="number"&&(I=c);return WM(function(R,Z){return a30(R,Z,G,I)})};
TxA=function(G){G=G===void 0?Infinity:G;return d5(DT,G)};
O8C=function(){var G=_.Hy.apply(0,arguments);return TxA(1)(XMU(G,zi(G)))};
epr=function(G){return new U9(function(c){ba(G()).subscribe(c)})};
CT=function(G,c,I){if(w5(I)){var R=I;I=void 0}if(R)return CT(G,c,I).pipe(csb(R));R=_.Q(w5(G.addEventListener)&&w5(G.removeEventListener)?NxT.map(function(m){return function(a){return G[m](c,a,I)}}):w5(G.addListener)&&w5(G.removeListener)?l3p.map(qqr(G,c)):w5(G.on)&&w5(G.off)?w6A.map(qqr(G,c)):[]);
var Z=R.next().value,K=R.next().value;return!Z&&r_O(G)?d5(function(m){return CT(m,c,I)})(XMU(G)):new U9(function(m){if(!Z)throw new TypeError("ga");
var a=function(){var O=_.Hy.apply(0,arguments);return m.next(1<O.length?O:O[0])};
Z(a);return function(){return K(a)}})};
qqr=function(G,c){return function(I){return function(R){return G[I](c,R)}}};
Xe=function(){var G=_.Hy.apply(0,arguments),c=zi(G);var I=typeof G[G.length-1]==="number"?G.pop():Infinity;return G.length?G.length===1?ba(G[0]):TxA(I)(XMU(G,c)):HM};
nM0=function(G){return G.length===1&&F38(G[0])?G[0]:G};
vMg=function(){var G=nM0(_.Hy.apply(0,arguments));return WM(function(c,I){var R=[c].concat(_.jn(G)),Z=function(){if(!I.closed)if(R.length>0){try{var K=ba(R.shift())}catch(a){Z();return}var m=new fT(I,void 0,nT,nT);I.add(K.subscribe(m));m.add(Z)}else I.complete()};
Z()})};
yp=function(G){return WM(function(c,I){var R=0;c.subscribe(new fT(I,function(Z){return G.call(void 0,Z,R++)&&I.next(Z)}))})};
oMB=function(){var G=_.Hy.apply(0,arguments);G=nM0(G);return G.length===1?ba(G[0]):new U9(DSf(G))};
DSf=function(G){return function(c){for(var I=[],R={i$jscomp$220:0};I&&!c.closed&&R.i$jscomp$220<G.length;R={i$jscomp$220:R.i$jscomp$220},R.i$jscomp$220++)I.push(ba(G[R.i$jscomp$220]).subscribe(new fT(c,function(Z){return function(K){if(I){for(var m=0;m<I.length;m++)m!==Z.i$jscomp$220&&I[m].unsubscribe();I=null}c.next(K)}}(R))))}};
USB=function(){var G=_.Hy.apply(0,arguments),c=y_b(G),I=nM0(G);return I.length?new U9(function(R){var Z=I.map(function(){return[]}),K=I.map(function(){return!1});
R.add(function(){Z=K=null});
for(var m={sourceIndex$jscomp$1:0};!R.closed&&m.sourceIndex$jscomp$1<I.length;m={sourceIndex$jscomp$1:m.sourceIndex$jscomp$1},m.sourceIndex$jscomp$1++)ba(I[m.sourceIndex$jscomp$1]).subscribe(new fT(R,function(a){return function(O){Z[a.sourceIndex$jscomp$1].push(O);Z.every(function(N){return N.length})&&(O=Z.map(function(N){return N.shift()}),R.next(c?c.apply(null,_.jn(O)):O),Z.some(function(N,q){return!N.length&&K[q]})&&R.complete())}}(m),void 0,function(a){return function(){K[a.sourceIndex$jscomp$1]=
!0;
!Z[a.sourceIndex$jscomp$1].length&&R.complete()}}(m)));
return function(){Z=K=null}}):HM};
uUf=function(G){var c,I,R;return!!G&&typeof G.active==="boolean"&&typeof((c=G.clock)==null?void 0:c.now)==="function"&&((I=G.clock)==null?void 0:I.timeline)!==void 0&&!((R=G.lastMeasurement)==null||!R.timestamp)&&typeof G.equivalentTo==="function"&&typeof G.extrapolateToNow==="function"&&typeof G.extrapolateToTime==="function"&&typeof G.map==="function"&&typeof G.joinWith==="function"};
b88=function(G){function c(I){return typeof I==="boolean"||typeof I==="string"||typeof I==="number"||I===void 0||I===null}
return c(G)?!0:Array.isArray(G)?G.every(c):typeof G==="object"?Object.keys(G).every(function(I){return typeof I==="string"})&&Object.values(G).every(function(I){return Array.isArray(I)?I.every(c):c(I)}):!1};
kMC=function(G){if(b88(G))return G;if(uUf(G))return{lastMeasurement:{value:kMC(G.lastMeasurement.value),timestamp:g5(G.lastMeasurement.timestamp,new Ym(0,G.lastMeasurement.timestamp.timeline))},active:G.active};try{return JSON.parse(JSON.stringify(G))}catch(c){}return String(G)};
GM=function(G,c){return function(I){return new U9(function(R){return I.subscribe(function(Z){G.timeExecution(c,function(){R.next(Z)})()},function(Z){G.timeExecution(c,function(){R.error(Z)})()},function(){G.timeExecution(c,function(){R.complete()})()})})}};
s20=function(G,c){var I=!1;return new U9(function(R){var Z=G.setTimeout(function(){I=!0;R.next(!0);R.complete()},c);
return function(){I||G.clearTimeout(Z)}})};
L3T=function(G){G=G.global;if(G.fetchLater)return G.fetchLater.bind(G)};
c6=function(G){return WM(function(c,I){var R=null,Z=!1,K;R=c.subscribe(new fT(I,void 0,function(m){K=ba(G(m,c6(G)(c)));R?(R.unsubscribe(),R=null,K.subscribe(I)):Z=!0}));
Z&&(R.unsubscribe(),R=null,K.subscribe(I))})};
Asr=function(G,c,I){return function(R,Z){var K=I,m=c,a=0;R.subscribe(new fT(Z,function(O){var N=a++;m=K?G(m,O,N):(K=!0,O);Z.next(m)},void 0,void 0))}};
$Sq=function(G){G=G===void 0?null:G;return WM(function(c,I){var R=!1;c.subscribe(new fT(I,function(Z){R=!0;I.next(Z)},void 0,function(){R||I.next(G);
I.complete()}))})};
I2=function(){return WM(function(G,c){G.subscribe(new fT(c,nT))})};
R2=function(G){return WM(function(c,I){c.subscribe(new fT(I,function(){return I.next(G)}))})};
Z3=function(G){return G<=0?function(){return HM}:WM(function(c,I){var R=0;
c.subscribe(new fT(I,function(Z){++R<=G&&(I.next(Z),G<=R&&I.complete())}))})};
K8=function(G){var c=c===void 0?DT:c;var I;G=(I=G)!=null?I:SqC;return WM(function(R,Z){var K,m=!0;R.subscribe(new fT(Z,function(a){var O=c(a);if(m||!G(K,O))m=!1,K=O,Z.next(a)}))})};
SqC=function(G,c){return G===c};
MB0=function(G){G=G===void 0?p6C:G;return WM(function(c,I){var R=!1;c.subscribe(new fT(I,function(Z){R=!0;I.next(Z)},void 0,function(){return R?I.complete():I.error(G())}))})};
p6C=function(){return new VBO};
Q0=function(){var G=_.Hy.apply(0,arguments);return function(c){return O8C(c,E9.apply(null,_.jn(G)))}};
zpU=function(G){return WM(function(c,I){var R=0;c.subscribe(new fT(I,function(Z){G.call(void 0,Z,R++,c)||(I.next(!1),I.complete())},void 0,function(){I.next(!0);
I.complete()}))})};
EMC=function(){return WM(function(G,c){var I=[];G.subscribe(new fT(c,function(R){I.push(R);1<I.length&&I.shift()},void 0,function(){for(var R=_.Q(I),Z=R.next();!Z.done;Z=R.next())c.next(Z.value);
c.complete()},function(){I=null}))})};
JsO=function(G,c){var I=arguments.length>=2;return function(R){return R.pipe(G?yp(function(Z,K){return G(Z,K,R)}):DT,EMC(),I?$Sq(c):MB0(function(){return new VBO}))}};
a2=function(G){var c=w5(G)?G:function(){return G};
return w5()?WM(function(I,R){var Z=c();(void 0)(Z).subscribe(R).add(I.subscribe(Z))}):function(I){var R=new m3(I,c);
w5(I==null?void 0:I.lift)&&(R.lift=I.lift);R.source=I;R.subjectFactory=c;return R}};
Oq=function(G){var c=new TM(G,void 0,void 0);return function(I){return a2(function(){return c})(I)}};
eB=function(G,c){return WM(Asr(G,c,arguments.length>=2))};
NS=function(){var G=_.Hy.apply(0,arguments),c=zi(G);return WM(function(I,R){(c?O8C(G,I,c):O8C(G,I)).subscribe(R)})};
qS=function(G){return WM(function(c,I){var R=null,Z=0,K=!1;c.subscribe(new fT(I,function(m){var a;(a=R)==null||a.unsubscribe();a=Z++;ba(G(m,a)).subscribe(R=new fT(I,function(O){return I.next(O)},void 0,function(){R=null;
K&&!R&&I.complete()}))},void 0,function(){(K=!0,!R)&&I.complete()}))})};
wx=function(G,c){c=c===void 0?!1:c;return WM(function(I,R){var Z=0;I.subscribe(new fT(R,function(K){var m=G(K,Z++);(m||c)&&R.next(K);!m&&R.complete()}))})};
W3r=function(G,c,I){var R=w5(G)||c||I?{next:G,error:c,complete:I}:G;return R?WM(function(Z,K){Z.subscribe(new fT(K,function(m){var a;(a=R.next)==null||a.call(R,m);K.next(m)},function(m){var a;
(a=R.error)==null||a.call(R,m);K.error(m)},function(){var m;
(m=R.complete)==null||m.call(R);K.complete()}))}):DT};
i8r=function(){var G=_.Hy.apply(0,arguments),c=y_b(G);return WM(function(I,R){for(var Z=G.length,K=Array(Z),m=G.map(function(){return!1}),a=!1,O={i$jscomp$230:0};O.i$jscomp$230<Z;O={i$jscomp$230:O.i$jscomp$230},O.i$jscomp$230++)ba(G[O.i$jscomp$230]).subscribe(new fT(R,function(N){return function(q){K[N.i$jscomp$230]=q;
a||m[N.i$jscomp$230]||(m[N.i$jscomp$230]=!0,(a=m.every(DT))&&(m=null))}}(O),void 0,nT));
I.subscribe(new fT(R,function(N){a&&(N=[N].concat(_.jn(K)),R.next(c?c.apply(null,_.jn(N)):N))}))})};
Bxr=function(G){var c=f30;if(c)for(var I in c)Object.prototype.hasOwnProperty.call(c,I)&&G(c[I],I,c)};
rs0=function(){var G=[];Bxr(function(c){G.push(c)});
return G};
xSr=function(G){try{return!!G&&G.location.href!=null&&j2r(G,"foo")}catch(c){return!1}};
_.FU=function(G){return new U3A(G[0].toLowerCase())};
tBb=function(G){for(var c=_.Hy.apply(1,arguments),I=G[0],R=0;R<G.length-1;R++)I+=String(c[R]),I+=G[R+1];c=document.implementation.createHTMLDocument("");R=c.createElement("style");c.head.appendChild(R);c=R.sheet;c.insertRule(I,0);if(c.cssRules.length===1&&(I=c.cssRules[0],I instanceof CSSStyleRule))return new q3(I.cssText.replace(/</g,"\\3C "))};
hpg=function(G){try{return new URL(G,window.document.baseURI)}catch(c){return new URL("about:invalid")}};
dSA=function(G,c){var I=c.createRange();I.selectNode(c.body);G=Gi(G);return I.createContextualFragment(cM(G))};
Cyr=function(G){G=G.nodeName;return typeof G==="string"?G:"FORM"};
H8b=function(G){G=G.nodeType;return G===1||typeof G!=="number"};
n8=function(G,c,I){G.setAttribute(c,I)};
X6C=function(G){return G.parts.map(function(c){var I=c.descriptor;return""+c.url+(I?" "+I:"")}).join(" , ")};
_.D3=function(G){var c=_.Hy.apply(1,arguments);if(c.length===0)return _.Vx(G[0]);for(var I=G[0],R=0;R<c.length;R++)I+=encodeURIComponent(c[R])+G[R+1];return _.Vx(I)};
_.o2=function(G,c){G=_.z6(G).toString();var I=G.split(/[?#]/),R=/[?]/.test(G)?"?"+I[1]:"";return ysT(I[0],R,/[#]/.test(G)?"#"+(R?I[2]:I[1]):"",c)};
ysT=function(G,c,I,R){function Z(m,a){m!=null&&(Array.isArray(m)?m.forEach(function(O){return Z(O,a)}):(c+=K+encodeURIComponent(a)+"="+encodeURIComponent(m),K="&"))}
var K=c.length?"&":"?";R.constructor===Object&&(R=Object.entries(R));Array.isArray(R)?R.forEach(function(m){return Z(m[1],m[0])}):R.forEach(Z);
return _.Vx(G+c+I)};
YqO=function(){var G=mz(gMT).toString();return _.Vx(URL.createObjectURL(new Blob([G],{type:"text/javascript"})))};
GB8=function(G){var c=[],I=0,R;for(R in G)c[I++]=R;return c};
cKC=function(G,c){for(var I in G)if(G[I]==c)return!0;return!1};
ILf=function(G,c,I){for(var R in G)if(c.call(I,G[R],R,G))return R};
RY0=function(G){if(!G||typeof G!=="object")return G;if(typeof G.clone==="function")return G.clone();if(typeof Map!=="undefined"&&G instanceof Map)return new Map(G);if(typeof Set!=="undefined"&&G instanceof Set)return new Set(G);if(G instanceof Date)return new Date(G.getTime());var c=Array.isArray(G)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(G)||G instanceof DataView?{}:new G.constructor(G.length),I;for(I in G)c[I]=RY0(G[I]);return c};
ZS8=function(G){var c=arguments.length;if(c==1&&Array.isArray(arguments[0]))return ZS8.apply(null,arguments[0]);if(c%2)throw Error("ma");for(var I={},R=0;R<c;R+=2)I[arguments[R]]=arguments[R+1];return I};
Kr8=function(G){var c=arguments.length;if(c==1&&Array.isArray(arguments[0]))return Kr8.apply(null,arguments[0]);for(var I={},R=0;R<c;R++)I[arguments[R]]=!0;return I};
Uq=function(G,c,I,R){this.top=G;this.right=c;this.bottom=I;this.left=R};
PR8=function(G){G=G.global;if(G.PendingGetBeacon)return G.PendingGetBeacon};
by=function(G){return function(c){return c.pipe(QnB(G,a2(new uy)))}};
kM=function(G){return function(c){return c.pipe(QnB(G,Oq(1)))}};
QnB=function(G,c){function I(R){return new U9(function(Z){return R.subscribe(function(K){sq(G,function(){return void Z.next(K)},3)},function(K){sq(G,function(){return void Z.error(K)},3)},function(){sq(G,function(){return void Z.complete()},3)})})}
return oE(I,Y9g(),c,BM(),I)};
TFb=function(G){var c=mwb(G);return c===null?new As(null):c.pipe(r5(function(I){I=I.serialize();if(aLg)I=_.Rq.btoa(I);else{for(var R=[],Z=0,K=0;K<I.length;K++){var m=I.charCodeAt(K);m>255&&(R[Z++]=m&255,m>>=8);R[Z++]=m}I=_.zr(R)}return I}),Z3(1),kM(G.queue))};
OS0=function(G){var c=c===void 0?{}:c;if(typeof Event==="function")return new Event(G,c);if(typeof document!=="undefined"){var I=document.createEvent("CustomEvent");I.initCustomEvent(G,c.bubbles||!1,c.cancelable||!1,c.detail);return I}throw Error();};
eYf=function(G){return typeof G==="string"?document.getElementById(G):G};
lLB=function(G){var c=!1;c=c===void 0?!1:c;if(G.tagName==="IMG"){if(G.complete&&(!G.naturalWidth||!G.naturalHeight))return!0;var I;if(c&&((I=G.style)==null?void 0:I.display)==="none")return!0}var R,Z;return NFr.test((R=G.getAttribute("width"))!=null?R:"")&&NFr.test((Z=G.getAttribute("height"))!=null?Z:"")};
qef=function(G,c){if(G.tagName==="IMG")return G.naturalWidth&&G.naturalHeight?!0:!1;try{if(G.readyState)var I=G.readyState;else{var R,Z;I=(R=G.contentWindow)==null?void 0:(Z=R.document)==null?void 0:Z.readyState}return I==="complete"}catch(K){return c===void 0?!1:c}};
wDf=function(G){G||(G=function(c,I,R){c.addEventListener(I,R)});
return G};
Dwr=function(G,c){var I=FrC();I=I===void 0?new n90:I;if(G=eYf(G)){var R=wDf(R);for(var Z=!1,K=function(p){Z||(Z=!0,c(p))},m,a=2,O=0;O<v9p.length;++O)if(v9p[O]===G.tagName){a=3;
m=[G];break}m||(m=G.querySelectorAll(v9p.join(",")));var N=0,q=0,w=!0,F=G=!1;O={};for(var n=0;n<m.length;O={isImg:void 0},n++){var U=m[n];if(!lLB(U))if(O.isImg=U.tagName==="IMG",qef(U,I.crossDomainLoadedDefault))G=!0,O.isImg&&(w=!0);else{N++;var k=function(p){return function(M){N--;!N&&w&&K(a);p.isImg&&(M=M&&M.type==="error",q--,M||(w=!0),!q&&F&&w&&K(a))}}(O);
R(U,"load",k);O.isImg&&(q++,R(U,"error",k))}}q===0&&(w=!0);m=null;m=_.Rq.document.readyState==="complete";if(N===0&&!G&&m)a=5;else if(N||!G){R(_.Rq,"load",function(){!I.pendingImagesBlockLoad||!q&&w?K(4):F=!0});
return}K(a)}};
o9O=function(G,c,I){if(G)for(var R=0;G!=null&&R<500&&!I(G);++R)G=c(G)};
Uw8=function(G,c){o9O(G,function(I){try{return I===I.parent?null:I.parent}catch(R){}return null},c)};
uOp=function(G,c){if(G.tagName=="IFRAME")c(G);else{G=G.querySelectorAll("IFRAME");for(var I=0;I<G.length&&!c(G[I]);++I);}};
bSg=function(G){return(G=G.ownerDocument)&&(G.parentWindow||G.defaultView)||null};
kBB=function(G,c,I){try{var R=JSON.parse(I.data)}catch(m){}if(typeof R==="object"&&R&&R.type==="creativeLoad"){var Z=bSg(G);if(I.source&&Z){var K;Uw8(I.source,function(m){try{if(m.parent===Z)return K=m,!0}catch(a){}});
K&&uOp(G,function(m){if(m.contentWindow===K)return c(R),!0})}}};
snq=function(G){return typeof G==="string"?document.getElementById(G):G};
Sei=function(){var G={};return G[0]=_.D3(Lri,"current"),G[1]=_.D3(AKb),G[2]=_.D3($wO),G};
$M=function(G,c){return G.left===c.left&&G.top===c.top&&G.width===c.width&&G.height===c.height};
pDO=function(G,c){return{left:Math.max(G.left,c.left),top:Math.max(G.top,c.top),width:Math.max(0,Math.min(G.left+G.width,c.left+c.width)-Math.max(G.left,c.left)),height:Math.max(0,Math.min(G.top+G.height,c.top+c.height)-Math.max(G.top,c.top))}};
MTT=function(G,c){return{left:Math.round(G.left+c.x),top:Math.round(G.top+c.y),width:G.width,height:G.height}};
VTq=function(G,c,I){if(G&&c!==null&&c!=c.top){if(!c.top)return new _.SB(-12245933,-12245933);c=c.top}try{return(I===void 0?0:I)?(new _.SB(c.innerWidth,c.innerHeight)).round():_.p8(c).round()}catch(R){return new _.SB(-12245933,-12245933)}};
zYU=function(G,c,I){try{if(G){if(!c.top)return new Uq(-12245933,-12245933,-12245933,-12245933);c=c.top}var R=VTq(G,c,I),Z=R.height,K=R.width;if(K===-12245933)return new Uq(K,K,K,K);var m=V0(zM(c.document)),a=m.x,O=m.y;return new Uq(O,a+K,O+Z,a)}catch(N){return new Uq(-12245933,-12245933,-12245933,-12245933)}};
E98=function(G){var c;return(c=G.google_tag_data)!=null?c:G.google_tag_data={}};
JKO=function(G){var c,I;return typeof((c=G.navigator)==null?void 0:(I=c.userAgentData)==null?void 0:I.getHighEntropyValues)==="function"};
iSU=function(G){if(!JKO(G))return null;var c=E98(G);if(c.uach_promise)return c.uach_promise;G=G.navigator.userAgentData.getHighEntropyValues(WrB).then(function(I){c.uach!=null||(c.uach=I);return I});
return c.uach_promise=G};
yKq=function(G){var c;return fLC(BFA(rKb(jnb(xwp(tT0(hYr(dwA(CRU(new HSq,G.architecture||""),G.bitness||""),G.mobile||!1),G.model||""),G.platform||""),G.platformVersion||""),G.uaFullVersion||""),((c=G.fullVersionList)==null?void 0:c.map(function(I){var R=new XDf;R=_.Eq(R,1,I.brand);return _.Eq(R,2,I.version)}))||[]),G.wow64||!1)};
g9U=function(G){var c,I;return(I=(c=iSU(G))==null?void 0:c.then(function(R){return yKq(R)}))!=null?I:null};
YeU=function(G,c){return new U9(function(I){var R=!1,Z=Array(c.length);Z.fill(void 0);var K=new Set,m=new Set,a=function(w,F){G.running?(Z[F]=w,K.add(F),R||(R=!0,sq(G,function(){R=!1;I.next(_.jr(Z))},1))):I.error(new Js(F))},O=function(w,F){m.add(F);
K.add(F);sq(G,function(){I.error(w)},1)},N=function(w){m.add(w);
sq(G,function(){m.size===c.length&&I.complete()},1)},q=c.map(function(w,F){return w.subscribe(function(n){return void a(n,F)},function(n){return void O(n,F)},function(){return void N(F)})});
return function(){q.forEach(function(w){return void w.unsubscribe()})}})};
Imf=function(G,c,I){function R(){if(c.debugChannel){var p=c.debugChannel,M=p.next;var z={creativeId:c.debugNames.getName(I),requiredSignals:Z,signals:Object.assign({},K),hasPrematurelyCompleted:m,errorMessage:a,erroredSignalKey:O};z={specMajor:2,specMinor:0,specPatch:0,timestamp:g5(c.timeProvider.now(),new Ym(0,c.timeProvider.timeline)),instanceId:c.debugNames.getName(c.symbol),creativeState:z};M.call(p,z)}}
for(var Z=Object.keys(G),K={},m=!1,a=null,O=null,N={},q=new Set,w=[],F=[],n=_.Q(Z),U=n.next(),k={};!U.done;k={key$jscomp$394:void 0},U=n.next())k.key$jscomp$394=U.value,U=G[k.key$jscomp$394],U instanceof As?(N[k.key$jscomp$394]=U.value,q.add(k.key$jscomp$394),c.debugChannel&&(K[String(k.key$jscomp$394)]=kMC(U.value))):(U=U.pipe(K8(function(p,M){return uUf(p)||uUf(M)?!1:p===M}),r5(function(p){return function(M){c.debugChannel&&(K[String(p.key$jscomp$394)]=kMC(M),R());
var z={};return z[p.key$jscomp$394]=M,z}}(k)),c6(function(p){return function(M){if(M instanceof Js)throw new GyA(String(p.key$jscomp$394));
throw M;}}(k)),W3r(function(p){return function(){q.add(p.key$jscomp$394)}}(k),function(p){return function(M){O=String(p.key$jscomp$394);
a=String(M);R()}}(k),function(p){return function(){q.has(p.key$jscomp$394)||(m=!0,R())}}(k))),F.push(k.key$jscomp$394),w.push(U));
(G=Object.keys(K).length>0)&&R();n=YeU(c.queue,w).pipe(c6(function(p){if(p instanceof Js)throw new cyr(String(F[p.inputObservableIndex]));throw p;}),r5(function(p){return Object.freeze(Object.assign.apply(Object,[{},
N].concat(_.jn(p))))}));
return(w=w.length>0)&&G?Xe(E9(Object.freeze(N)),n):w?n:E9(Object.freeze(N))};
Rqp=function(G,c,I,R,Z){return G.performanceMonitor.timeExecution.bind(G.performanceMonitor)(733,function(){var K={};try{return c.pipe(c6(function(m){R(Object.assign({},K,{error:m}));return HM}),d5(function(m){try{var a=I(G,m)}catch(N){return R(Object.assign({},K,{error:N instanceof Error?N:String(N)})),HM}var O={};
return Imf(a,G,m.symbol).pipe(W3r(function(N){O=N}),Oq(1),BM()).pipe(Z,c6(function(N){R(Object.assign({},O,{error:N}));
return HM}),Q0(void 0),r5(function(){return!0}))})).pipe(eB(function(m){return m+1},0),c6(function(m){R(Object.assign({},K,{error:m}));
return HM}))}catch(m){return R(Object.assign({},K,{error:m})),HM}})()};
W6=function(G){var c=new Map;if(typeof G!=="object"||G===null)return c;Object.values(G).forEach(function(I){I&&typeof I.extrapolateToNow==="function"&&(c.has(I.clock.timeline)||c.set(I.clock.timeline,I.clock.now()))});
return c};
Ztr=function(G,c){return typeof G==="string"?encodeURIComponent(G):typeof G==="number"?String(G):Array.isArray(G)?G.map(function(I){return Ztr(I,c)}).join(","):G instanceof Ym?G.toString():G&&typeof G.extrapolateToNow==="function"?Ztr(G.extrapolateUsingTimestampMap(c).value,c):G===!0?"1":G===!1?"0":G===void 0||G===null?null:G instanceof KuO?PeC(G):[G.top,
G.left,G.top+G.height,G.left+G.width].join()};
QWC=function(G,c){G=Object.entries(G).map(function(I){var R=_.Q(I);I=R.next().value;R=R.next().value;R=Ztr(R,c);return R===null?"":I+"="+R}).filter(function(I){return I!==""});
return G.length?G.join("&"):""};
TNq=function(G,c){var I=m8A,R=amb;c=c===void 0?.01:c;return function(Z){c>0&&Math.random()<=c&&(G.global.HTMLFencedFrameElement&&G.global.fence&&typeof G.global.fence.reportEvent==="function"&&G.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Z=Object.assign({},Z,{errorMessage:Z.error instanceof Error&&Z.error.message?Z.error.message:String(Z.error),errorStack:Z.error instanceof Error&&Z.error.stack?String(Z.error.stack):null,errorName:Z.error instanceof
Error&&Z.error.name?String(Z.error.name):null,errorContext:String(G.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Z.escapedQueryId}),I(Object.assign({},Z,{payloadMapper:function(){return function(K){try{return R(Object.assign({},K))}catch(m){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),W6(Z)).forEach(function(K){G.beaconFactory.makeBeacon(K).sendNow()}))}};
Otf=function(){var G=_.Hy.apply(0,arguments);return function(c){var I=c.pipe(Oq(1),BM());c=G.map(function(R){return I.pipe(R,Q0(!0))});
return xm(c).pipe(Z3(1),I2())}};
eqi=function(){var G=_.Hy.apply(0,arguments);return function(c){var I=c.pipe(Oq(1),BM());c=G.map(function(R){return I.pipe(R,Q0(!0))});
return Xe.apply(null,_.jn(c)).pipe(Z3(1),I2())}};
NN0=function(G,c){return function(I){var R=I.pipe(Oq(1),BM());I=R.pipe(G,Q0(!0));R=R.pipe(oE(c,Oq(),BM()),Q0(!0));I=xm([I,R]);return oMB(I,R).pipe(Z3(1),I2())}};
lmr=function(G,c,I){I(!0)};
qZA=function(G,c){return oE(qS(function(I){var R=G(I),Z=c(I),K={};return R&&Z&&K?new U9(function(m){Z(R,K,function(a){m.next(Object.assign({},I,{canEmit:a}));m.complete()});
return function(){}}):iy}),yp(function(I){return I.canEmit}))};
wXC=function(G){var c={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(I){return I.pipe(qS(function(R){return new U9(function(Z){function K(){a.disconnect();O.unsubscribe()}
var m=G.MutationObserver;if(m&&R.ref!==void 0){var a=new m(function(N){Z.next(N)});
a.observe(R.ref,c);var O=R.JSC$9529_released.subscribe(K);return K}})}))}};
FuC=function(G){if(G.measurementDeferralState===3)return null;if(G.timeOnScreenReason!==void 0){var c=G.creativeFound===!1?"n":null;if(c!==null)return c}return G.geometricMeasurementErrors instanceof f8?"msf":G.contextValidationErrors instanceof B6?"c":G.contextVisibilityKnown===!1?"pv":G.geometricMeasurementErrors||G.contextValidationErrors?"x":null};
vsO=function(G,c){return G.replace(ns8,function(I,R){try{var Z=_.rx.get(c,R);if(Z==null||Z.toString()==null)return I;Z=Z.toString();if(Z==""||!_.mg(Z==null?"":String(Z)))return encodeURIComponent(Z).replace(/%2C/g,",")}catch(K){}return I})};
D8p=function(G,c){var I=Object.assign({},G),R=G.userAgentClientHints;I=(delete I.userAgentClientHints,I);I=G.payloadMapper(I);var Z=QWC(I,c);return _.jB(G.urlPrefixes,function(K){var m="";typeof R==="string"&&(m="&"+QWC({uach:R},c));var a={};return vsO(K,(a.VIEWABILITY=Z,a))+m})};
m8A=function(G,c){var I=G.payloadMapper(G),R=QWC(I,c);return R?_.jB(G.urlPrefixes,function(Z){Z=Z.indexOf("?")>=0?Z:Z+"?";Z="?&".indexOf(Z.slice(-1))>=0?Z:Z+"&";return Z+R}):G.urlPrefixes};
osU=function(){return oE(yp(function(G){return G!==void 0}),r5(function(G){return G}))};
U8r=function(G){return oE(r5(function(){return!0}),NS(!1),kM(G))};
uqA=function(G){return G.length<=0?HM:xm(G.map(function(c){var I=0;return c.pipe(r5(function(R){return{index:I++,value:R}}))})).pipe(yp(function(c){return c.every(function(I){return I.index===c[0].index})}),r5(function(c){return c.map(function(I){return I.value})}))};
btg=function(G,c){G.currentState&&(G.previousState=G.currentState);G.currentState=c;G.previousState&&G.previousState.value?(c=Math.max(0,g5(c.timestamp,G.previousState.timestamp)),G.totalTime+=c,G.consecutiveTime+=c):G.consecutiveTime=0;return G};
kyr=function(){return oE(eB(btg,{totalTime:0,consecutiveTime:0}),r5(function(G){return G.totalTime}))};
sW8=function(){return oE(eB(btg,{totalTime:0,consecutiveTime:0}),r5(function(G){return G.consecutiveTime}))};
Lui=function(G,c){return function(I){return uqA(c.map(function(R){return I.pipe(G(R))}))}};
Ayr=function(){var G;return oE(W3r(function(c){return void(G=c.timestamp)}),sW8(),r5(function(c){return{timestamp:G,
value:Math.round(c)}}))};
$8T=function(G,c){return $M(G.topWindowViewportExternalGeometry,c.topWindowViewportExternalGeometry)&&$M(G.elementGeometry,c.elementGeometry)&&$M(G.exposedViewportLocalGeometry,c.exposedViewportLocalGeometry)&&$M(G.intersectionGeometry,c.intersectionGeometry)&&G.elementGeometrySourceName===c.elementGeometrySourceName&&G.measurementRequests===c.measurementRequests&&G.viewportGeometrySourceName===c.viewportGeometrySourceName&&G.viewportLocalAppOffset.x===c.viewportLocalAppOffset.x&&G.viewportLocalAppOffset.y===
c.viewportLocalAppOffset.y};
VEp=function(G,c){return function(I){return function(R){var Z=R.pipe(a2(new uy),BM());R=I.element.pipe(K8());Z=Z.pipe(r5(function(K){return K.value}));
return xm([R,Z,c]).pipe(r5(function(K){var m=_.Q(K);K=m.next().value;var a=m.next().value;m=m.next().value;if(K.ref===void 0)var O={top:0,left:0,width:0,height:0};else{O=K.ref.getBoundingClientRect();var N=K.ref,q=G.global,w=new _.ts(0,0),F=hs(_.dx(N));if(j2r(F,"parent")){do{if(F==q)var n=_.C8(N);else n=SZ0(N),n=new _.ts(n.left,n.top);w.x+=n.x;w.y+=n.y}while(F&&F!=q&&F!=F.parent&&(N=F.frameElement)&&(F=F.parent))}O={top:w.y,left:w.x,width:O.width,height:O.height}}O=MTT(O,a.viewportLocalAppOffset);
q=pDO(O,a.exposedViewportLocalGeometry);w=G.timeProvider.now();F=Object;N=F.assign;if(m!==2||G.inCrossDomainIframe||q.width<=0||q.height<=0)var U=!1;else try{var k=G.document.elementFromPoint(q.left+q.width/2,q.top+q.height/2);U=k?!pXb(k,K):!1}catch(p){U=!1}return{timestamp:w,value:N.call(F,{},a,{elementGeometrySourceName:"geo",intersectionGeometry:U?ME0.intersectionGeometry:q,elementGeometry:O})}}),by(G.queue))}}};
pXb=function(G,c,I){I=I===void 0?0:I;return G.ref===void 0||c.ref===void 0?!1:G.ref===c.ref||_.H6(c.ref,function(R){return R===G.ref})?!0:c.ref.ownerDocument&&c.ref.ownerDocument.defaultView&&c.ref.ownerDocument.defaultView===c.ref.ownerDocument.defaultView.top?!1:I<10&&c.ref.ownerDocument&&c.ref.ownerDocument.defaultView&&c.ref.ownerDocument.defaultView.frameElement?pXb(G,new XU(c.ref.ownerDocument.defaultView.frameElement),I+1):!0};
Jyf=function(G){return function(c){return c.pipe(G.ResizeObserver?zq0(G):Esr(G),Oq(1),BM())}};
zq0=function(G){return function(c){return c.pipe(qS(function(I){var R=G.ResizeObserver;if(!R||I.ref===void 0)return E9(ME0.elementGeometry);var Z=(new U9(function(K){function m(){I.ref!==void 0&&a.unobserve(I.ref);a.disconnect();O.unsubscribe()}
if(I.ref===void 0)return K.complete(),function(){};
var a=new R(function(N){N.forEach(function(q){K.next(q)})});
a.observe(I.ref);var O=I.JSC$9529_released.subscribe(m);return m})).pipe(GM(G.performanceMonitor,736),r5(function(K){return K.contentRect}));
return Xe(E9(I.ref.getBoundingClientRect()),Z)}),K8($M))}};
Esr=function(G){return function(c){var I=c.pipe(wXC(G)),R=G.onResize;I=Xe(c.pipe(r5(function(){return OS0("resize")})),I,R);
return xm(c,I).pipe(GM(G.performanceMonitor,737),r5(function(Z){Z=_.Q(Z).next().value;return Z.ref===void 0?void 0:Z.ref.getBoundingClientRect()}),osU(),K8($M))}};
fmT=function(G,c){var I=Wur(G,c).pipe(Oq(1),BM());return function(R){return function(Z){Z=Z.pipe(qS(function(K){return K.element}),K8());
return xm([I,Z]).pipe(qS(function(K){var m=_.Q(K);K=m.next().value;m=m.next().value;return itT(G,K.intersectionObserver,Jyf(G),K.observations,R,K.flushRecords,m)}),by(G.queue))}}};
BN8=function(G){return r5(function(c){return c.value.viewportGeometrySourceName!=="nio"?c:Object.assign({},c,{value:Object.assign({},c.value,{exposedViewportLocalGeometry:y0(G,!0),topWindowViewportExternalGeometry:y0(G,!0)})})})};
ryq=function(G,c){return E9(c).pipe(G,r5(function(){return c}))};
Wur=function(G,c){return G.timeProvider.timeline!==jWg?J_(new f8(2)):G.MutationObserver?typeof IntersectionObserver==="undefined"?J_(new f8(0)):(new U9(function(I){var R=new uy,Z=new YM(R.next.bind(R),{threshold:[].concat(_.jn(c))});I.next({observations:R.pipe(GM(G.performanceMonitor,735)),intersectionObserver:Z,flushRecords:function(K){K=Z.takeRecords(K);K.length>0&&R.next(K)}})})).pipe(Z3(1),Oq(1),BM()):J_(new f8(1))};
x8O=function(G){return jEA(G.sort(function(c,I){return c.time-I.time}),gmp)};
itT=function(G,c,I,R,Z,K,m){return new U9(function(a){function O(){U||(U=!0,m.ref!==void 0&&c.unobserve(Z,m.ref),q.unsubscribe(),n.unsubscribe(),F.unsubscribe(),k.unsubscribe())}
if(m.ref!==void 0){tET(c,Z);c.observe(Z,m.ref);var N=new GB({timestamp:G.timeProvider.now(),value:Object.assign({},ME0,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),q=R.pipe(d5(function(p){return x8O(p)}),yp(function(p){return p.target===m.ref}),r5(function(p){return{timestamp:new Ym(p.time,jWg),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:p.rootBounds||cD,topWindowViewportExternalGeometry:p.rootBounds||y0(G,!0),measurementRequests:w,elementGeometrySourceName:"nio",intersectionGeometry:p.intersectionRect,elementGeometry:p.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:p.isIntersecting,isV2Visible:p.isVisible}}}),a2(N),BM()).subscribe(a),w=new uy,F=w.subscribe(function(){K(Z);
a.next({timestamp:G.timeProvider.now(),value:N.value.value});m.ref!==void 0&&(c.unobserve(Z,m.ref),c.observe(Z,m.ref))}),n=ryq(I,m).subscribe(function(){w.next()}),U=!1,k=m.JSC$9529_released.subscribe(function(){return O()});
return O}})};
hqB=function(G,c){var I=G.getOnBackgrounded().pipe(r5(function(){return"b"}));
return oMB(c,I).pipe(Z3(1),kM(G.queue))};
In=function(G){return function(c){var I;return c.pipe(W3r(function(R){return void(I=R.timestamp)}),r5(function(R){return R.value}),G,r5(function(R){return{timestamp:I,
value:R}}))}};
d8U=function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.elementGeometry.width*G.elementGeometry.height)};
Rn=function(G,c,I){I=I===void 0?function(R,Z){return R===Z}:I;
return G.timestamp.equals(c.timestamp)&&I(G.value,c.value)};
KS=function(G,c){return c.pipe(r5(function(I){return new ZL(G.timeProvider,{timestamp:G.timeProvider.now(),value:I})}))};
Cer=function(G){return function(c){return c.pipe(i8r(G),r5(function(I){var R=_.Q(I);I=R.next().value;R=R.next().value;var Z=I.value;return{timestamp:I.timestamp,value:Z>=1?!0:Z<=0?!1:Z>=R}}))}};
XXB=function(){return oE(yp(function(G,c){return c>0}),Htr,NS(-1),K8())};
yyT=function(G,c,I){return G?xm([c,I]).pipe(yp(function(R){var Z=_.Q(R);R=Z.next().value;Z=Z.next().value;return R.timestamp.equals(Z.timestamp)}),r5(function(R){var Z=_.Q(R);
R=Z.next().value;Z=Z.next().value;return R.value>Z.value?R:Z})):c};
G2i=function(G){return function(c){var I=c.pipe(gsg),R=c.pipe(YZi);return G instanceof U9?G.pipe(qS(function(Z){return yyT(Z,I,R)})):yyT(G.value,I,R)}};
TK0=function(G,c,I,R){var Z=R.geometryIsOccluded,K=R.exposureThreshold,m=R.wasLargeAdAtRender,a=R.allowLargeAdThreshold,O=R.largeAdExposureThreshold,N=R.mayUseViewportShareExposure,q=R.hasMeasurementStarted;R=R.useIntersectionObserverV2;c=cIO(G,I,c);I=I$0(G,I);R=RZB(c,R);var w=ZhA(G,Z,N,c),F=w.pipe(r5(function(C){return C.value}),K8(),kM(G),eB(function(C,H){return Math.max(C,H)},0)),n=w.pipe(r5(function(C){return C.value}),XXB(),kM(G)),U=c.pipe(Keq,r5(function(C){return C.value}),Z3(2),K8(),kM(G));
m=PV0(G,c,m,a);var k=m.pipe(NS(!1),K8(),r5(function(C){return C?O:K}));
a=w.pipe(Cer(k),K8(),kM(G));var p=xm([a,c]).pipe(yp(function(C){var H=_.Q(C);C=H.next().value;H=H.next().value;return C.timestamp.equals(H.timestamp)}),r5(function(C){var H=_.Q(C);
C=H.next().value;H=H.next().value;return{visible:C.value,geometry:H.value.elementGeometry}}),eB(function(C,H){return!H.visible&&C.visible?C:H},{visible:!1,
geometry:cD}),r5(function(C){return C.geometry}),NS(cD),kM(G),K8($M));
N=N instanceof U9?N.pipe(K8(),R2()):iy;k=xm([N,k]).pipe(R2());var M=c.pipe(yp(function(C){return C.value.viewportGeometrySourceName!=="ns"&&C.value.elementGeometrySourceName!=="ns"}),eB(function(C){return C+1},0),NS(0),kM(G)),z=I.pipe(R2(!0),NS(!1),kM(G));
z=xm([q,z]).pipe(r5(function(C){var H=_.Q(C);C=H.next().value;H=H.next().value;return C&&!H}),kM(G));
var t=c.pipe(Qgf,K8()),x=t.pipe(r5(function(C){return C.value}),eB(function(C,H){return Math.max(C,H)},0),K8(),kM(G));
G=t.pipe(r5(function(C){return C.value}),XXB(),kM(G));
return{shouldResetExposureSignals:N,shouldResetViewabilitySignals:k,geometrySignals:{readyGeometryWithDefault:c,measurementStrategy:c.pipe(mE0),creativePosition:p.pipe(K8($M)),visible:a.pipe(K8(Rn)),timestampedExposure:w.pipe(K8(Rn)),maximumExposure:F,minimumExposure:n,browserSize:c.pipe(a$f,K8(_.gb)),timestampedScreenShare:t,maxScreenShare:x,minScreenShare:G,geometricMeasurementErrors:I,measurementRequests:c.pipe(r5(function(C){return C.value.measurementRequests})),
isLargeAd:m,geometryIsOccluded:Z,hasMeasurementStarted:q,geometryMeasurable:z,validMeasurementCount:M,loadTimeExposure:U,v2VisibilityBitVector:R}}};
I$0=function(G,c){return c.pipe(yp(function(){return!1}),r5(function(I){return I}),c6(function(I){return PD(new As(I),G)}))};
cIO=function(G,c,I){return c.pipe(vMg(iy),kM(G)).pipe(K8(function(R,Z){return Rn(R,Z,$8T)}),NS({timestamp:I.now(),
value:ME0}),kM(G))};
ZhA=function(G,c,I,R){I=R.pipe(G2i(I),In(r5(function(Z){return Math.round(Z*100)/100})),kM(G));
return c instanceof As?I:xm([I,c]).pipe(r5(function(Z){var K=_.Q(Z);Z=K.next().value;K=K.next().value;return{timestamp:K.timestamp.maximum(Z.timestamp),value:K.value?0:Z.value}}),K8(Rn),kM(G))};
PV0=function(G,c,I,R){c=[c.pipe(r5(function(Z){return Z.value.elementGeometry.width*Z.value.elementGeometry.height>=242500}))];
I instanceof U9&&c.push(I.pipe(r5(function(Z){return!!Z})));
I=xm(c);return R?I.pipe(r5(function(Z){return Z.some(function(K){return K})}),NS(!1),K8(),kM(G)):PD(new As(!1),G)};
RZB=function(G,c){G=xm([G,c]).pipe(r5(function(Z){var K=_.Q(Z);Z=K.next().value;if(K.next().value&&Z.value.isIntersecting)return Z.value.isV2Visible}),K8());
var I=G.pipe(r5(function(Z){return Z===void 0?!0:Z}),eB(function(Z,K){return Z||!K},!1)),R=G.pipe(eB(function(Z,K){return K===void 0?Z:K?!1:Z!=null?Z:!0},void 0),r5(function(Z){return!!Z}));
return xm([c,USB(G,I,R)]).pipe(r5(function(Z){var K=_.Q(Z);Z=K.next().value;var m=_.Q(K.next().value);K=m.next().value;var a=m.next().value;m=m.next().value;var O=0;if(!Z)return 0;if(K===void 0)return 16;K&&(O|=1);K||(O|=2);a&&(O|=4);m&&(O|=8);return O}))};
w1g=function(G,c,I,R,Z){var K=Ohb.timeThresholdMs;var m=m===void 0?new eZA(c,R):m;return(new U9(function(a){var O=I.pipe(NS(void 0),qS(function(){return NKT(Z)})).pipe(r5(function(N){var q=N.value;
N=N.timestamp;var w=q.visible;q=q.consecutiveViewTime;var F=q>=K;F||!w?l$r(m):(N=Math.max(0,g5(c.now(),N)),qGr(m,Math.max(0,K-q-N)));return F}),eB(function(N,q){return q||N},!1),K8()).subscribe(a);
return function(){m.dispose();O.unsubscribe()}})).pipe(wx(function(a){return!a},!0),kM(G))};
NKT=function(G){return uqA([G,G.pipe(Ayr())]).pipe(r5(function(c){var I=_.Q(c);c=I.next().value;I=I.next().value;return{timestamp:c.timestamp,value:{visible:c.value,consecutiveViewTime:I.value}}}),K8(function(c,I){return Rn(c,I,function(R,Z){return R.consecutiveViewTime===Z.consecutiveViewTime&&R.visible===Z.visible})}))};
FeT=function(){return oE(sW8(),eB(function(G,c){return Math.max(G,c)},0),r5(function(G){return Math.round(G)}))};
ncO=function(G){return oE(Cer(E9(G)),FeT())};
vcg=function(G,c){return c instanceof U9?c.pipe(qS(function(I){return(I=I?15:null)?J_(new f8(I)):G})):(c=c.value?15:null)?J_(new f8(c)):G};
DET=function(G){var c=new f8(13);if(G.length<1)return{chain:HM,capturedErrors:HM};var I=new uy,R=G[0];return{chain:G.slice(1).reduce(function(Z,K){return Z.pipe(c6(function(m){I.next(m);return K}))},R).pipe(c6(function(Z){I.next(Z);
return J_(c)}),a2(new uy),BM()),
capturedErrors:I}};
ocr=function(G,c){var I=G.pipe(a2(new uy),BM());return qS(function(R){return I.pipe(c(R))})};
uG8=function(G,c){if(G.inCrossDomainIframe)return J_(new f8(6));var I=new uy;return Xe(E9({}),c,I).pipe(r5(function(){return{timestamp:G.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:UE0(G),topWindowViewportExternalGeometry:y0(G,!0),measurementRequests:I,viewportLocalAppOffset:{x:0,y:0}}}}),by(G.queue))};
UE0=function(G){var c=y0(G,!1);if(!G.inIframe||!xSr(G.global.parent)||G.global.parent===G.global)return c;var I=new QC(G.global.parent,G.debugChannel);I.beaconFactory=G.beaconFactory;I=UE0(I);G=G.global.frameElement.getBoundingClientRect();return pDO(MTT(pDO(I,G),{x:c.left-G.left,y:c.top-G.top}),c)};
bhi=function(G){if(G.prerendering)return 3;var c;return(c={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[G.visibilityState||G.webkitVisibilityState||G.mozVisibilityState||""])!=null?c:0};
k20=function(G){return G.document.JSC$9540_onVisibilityChange.pipe(r5(function(c){return c==="visible"}),K8(),kM(G.queue))};
sg0=function(G,c,I){var R;return c.pipe(K8(),qS(function(Z){return I.pipe(r5(function(){if(!R){R=!0;try{Z.next()}finally{R=!1}}return!0}))}),NS(!1),kM(G.queue))};
Ler=function(G){return oE(In(r5(function(c){return c>=1?!0:c<=0?!1:c>=G})),kyr(),r5(function(c){return Math.round(c)}))};
$EA=function(G,c,I,R,Z){var K=AIC;if(K.length>1)for(var m=0;m<K.length-1;m++)if(K[m]<K[m+1])throw Error();m=Z.pipe(NS(void 0),qS(function(){return I.pipe(Ayr())}),K8(),kM(G));
Z=Z.pipe(NS(void 0),qS(function(){return I.pipe(FeT())}),K8(),kM(G));
return{totalMeasurementTime:R.pipe(NS(void 0),qS(function(){return c.pipe(r5(function(a){return{timestamp:a.timestamp,value:!0}}),kyr())}),K8(),kM(G)),
totalUnviewedTime:R.pipe(NS(void 0),qS(function(){return c.pipe(r5(function(a){return{timestamp:a.timestamp,value:a.value===0}}),kyr())}),K8(),kM(G)),
maxTimeOnScreen:R.pipe(NS(void 0),qS(function(){return c.pipe(Lui(ncO,K))}),K8(_.gb),kM(G)),
timeOnScreen:R.pipe(NS(void 0),qS(function(){return c.pipe(Lui(Ler,K),r5(function(a){return a.map(function(O,N){return N>0?O-a[N-1]:O})}))}),K8(_.gb),kM(G)),
maxConsecutiveViewTime:Z,consecutiveViewTime:m.pipe(K8(Rn),kM(G))}};
p1f=function(G){var c=!0;c=c===void 0?!1:c;return oE(qS(function(I){return SGi(G.document,I,c)}),kM(G.queue))};
MVB=function(G,c,I){var R=I.pipe(r5(function(Z){return{value:Z,timestamp:G.timeProvider.now()}}),K8(Rn));
return c instanceof U9?c.pipe(K8(),qS(function(Z){return Z?PD(new As({value:!1,timestamp:G.timeProvider.now()}),G.queue):R})):c.value===!1?R:new As(!1)};
VVB=function(G,c,I,R,Z,K,m){var a=Ohb;c=c instanceof U9?c.pipe(NS(!1),K8()):c;var O=!G.isMobile();I=MVB(G,I,R);G=m.measurableCreative.pipe(U8r(G.queue));return Object.assign({},a,{geometryIsOccluded:I,wasLargeAdAtRender:Z,allowLargeAdThreshold:O,mayUseViewportShareExposure:c,hasMeasurementStarted:G,useIntersectionObserverV2:K})};
EcC=function(G,c,I,R,Z,K){var m=1;K=K===void 0?!0:K;m=m===void 0?.01:m;var a=a===void 0?G.timeProvider.intervalObservable(100).pipe(kM(G.queue)):a;return G.performanceMonitor.timeExecution(916,function(){return zZO(G,c.pipe(by(G.queue)),I.pipe(by(G.queue)),R,Z,K,m,a)})()};
zZO=function(G,c,I,R,Z,K,m,a){var O=k20(G).pipe(r5(function(q){return!q})),N=new JI8(G,[new Wei(G,AIC),
new ihq(G,a)]);a=Otf(f$b,BKq);return Rqp(G,c,function(q,w){var F=PD(new As(w.element),q.queue).pipe(p1f(q),kM(q.queue)),n={loadedElement:F,shouldMeasure:F.pipe(R2(!0)),measurableCreative:F.pipe(r5(function(C){var H=H===void 0?Symbol():H;return Object.freeze({symbol:H,element:PD(new As(C),q.queue)})})),
creativeSearchResult:PD(new As("mue"),q.queue)},U=new As(!1),k=new As(!1),p=new As(17),M=new As(!1),z=new As(!1),t=PD(mr,q.queue);U=N.buildGeometrySource(n,{inApp:U,useV2:!1,requestSource:PD(p,q.queue)}).geometrySource;n=VVB(q,M,k,O,z,t,n);k=TK0(q.queue,q.timeProvider,U,n);n=k.geometrySignals;M=k.shouldResetViewabilitySignals;k=$EA(q.queue,n.timestampedExposure,n.visible,k.shouldResetExposureSignals,M);M=w1g(q.queue,q.timeProvider,M,n.measurementRequests,n.visible);z=I.pipe(yp(function(C){return C===
w.element.ref}),r5(function(){return"ur"}));
t=s20(q.timeProvider,Z).pipe(R2("t"));z=hqB(q,Xe(z,t));t=sg0(q,n.measurementRequests,z.pipe(yp(function(C){return C!==null})));
U=z.pipe(yp(function(C){return C!==null}),r5(function(){return bhi(q.global.document)===1}));
var x=rIi(q.document);return Object.assign({},{beaconFactory:new As(q.beaconFactory),context:new As(q),inferredPingId:new As("lidar2"),timeOnScreenPingId:new As("lidartos"),binaryContext:new As(17),binaryVersion:new As(R),requestSource:p,contextValidationErrors:new As(q.validate()?null:new B6),contextVisibilityKnown:new As(x),payloadMapper:new As(amb),endOfSessionReason:z,timeOnScreenReason:z,requestMeasurementOnEndOfSession:t,hasImpressionFired:jgB,crossDomainIframeState:new As(q.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:mr,inFetchLaterBeaconExperiment:mr,isTurtlex:mr,turtlexReportEventData:new As(""),reportFencedFrameEvent:iy,isViewableAttributionEnabled:mr,inViewableAttributionExperiment:new As(0),fetchBeaconFactory:iy,supportsPendingBeacon:mr,supportsFetchLater:mr,emit:new As(lmr),beginToRenderEvent:new As(Symbol()),activeViewUnmeasurableEvent:new As(Symbol()),activeViewViewableEvent:new As(Symbol()),creativeFound:jgB,immediateUrlPrefixes:new As(w.immediateUrls),timeOnScreenUrlPrefixes:new As(w.timeOnScreenUrls),
cpmavUrls:iy,viewableRelayUrls:iy,measurementDeferralState:new As(2),urlSerializer:new As(D8p),viewUrlSerializer:new As(xE0),isCreativeLoaded:F.pipe(U8r(q.queue)),pageVisible:O.pipe(r5(function(C){return!C})),
eosPageVisible:U,timestampedExposureHistory:n.timestampedExposure.pipe(eB(function(C,H){C.push(H);return C},[]))},n,{viewable:KS(q,M),
maxTimeOnScreen:KS(q,k.maxTimeOnScreen),timeOnScreen:KS(q,k.timeOnScreen),maxConsecutiveViewTime:KS(q,k.maxConsecutiveViewTime),consecutiveViewTime:k.consecutiveViewTime.pipe(r5(function(C){return new ZL(q.timeProvider,C)})),
totalMeasurementTime:KS(q,k.totalMeasurementTime),totalUnviewedTime:KS(q,k.totalUnviewedTime),userAgentClientHints:TFb(q),clientOrderPingCounter:new As(new KuO)})},TNq(G,m),eqi(K?NN0(a,tVC):NN0(a,hZb),dEp))};
CVr=function(G){var c=_.Hy.apply(1,arguments).filter(Boolean).join("&");if(!c)return G;var I=G.match(/[?&]adurl=/);return I?G.slice(0,I.index+1)+c+"&"+G.slice(I.index+1):G+(G.indexOf("?")<0?"?":"&")+c};
an=function(G,c){return c?"&"+G+"="+encodeURIComponent(c):""};
Hh0=function(){try{var G,c;return!!((G=window)==null?0:(c=G.top)==null?0:c.location.href)&&!1}catch(I){return!0}};
_.TB=function(G){G&&typeof G.dispose=="function"&&G.dispose()};
_.Oe=function(G){for(var c=0,I=arguments.length;c<I;++c){var R=arguments[c];_.xp(R)?_.Oe.apply(null,R):_.TB(R)}};
yIb=function(){var G=X1f();G=G===void 0?"bevasrsg":G;return new Promise(function(c){var I=window===window.top?window:Hh0()?window:window.top,R=I[G],Z;((Z=R)==null?0:Z.bevasrs)?c(new Nw(R.bevasrs)):(R||(R={},R=(R.nqfbel=[],R),I[G]=R),R.nqfbel.push(function(K){c(new Nw(K))}))})};
gcA=function(G){var c={c:G.yR,e:G.mbZ,mc:G.lxw,me:G.fxB};G.wB&&(c.co={c:G.wB.pZF,a:G.wB.h2l,s:G.wB.fxk});return c};
YGp=function(G){var c,I,R={yR:G.c,mbZ:G.e,lxw:(c=G.mc)!=null?c:!1,fxB:(I=G.me)!=null?I:!1};G.co&&(R.wB={pZF:G.co.c,h2l:G.co.a,fxk:G.co.s});return R};
Gur=function(G){return function(){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(G(),2);c=I.yieldResult;return I.return({f:function(){return c.syA()},
c:function(R){return c.uEK(R)},
m:function(R){return c.lJ(YGp(R))},
mws:function(R){return c.b6N(YGp(R))}})})}};
cwr=function(G,c){var I=X1f();I=I===void 0?"bevasrsg":I;c={s:function(K){var m;return G.snapshot(Object.assign({},K.c&&{yR:K.c},K.s&&{tJ0:K.s},{rZf:(m=K.p)!=null?m:!0}))},
e:function(K){var m;return void((m=G.jdo)==null?void 0:m.call(G,K))},
c:function(K,m){return G.j9g(K,m)},
p:G.zKM,l:function(){return G.zeo()},
wpc:c?Gur(c):void 0};var R=window===window.top?window:Hh0()?window:window.top,Z=R[I];if(Z){Z.bevasrs=c;if(Z.nqfbel!==void 0)for(I=_.Q(Z.nqfbel),R=I.next();!R.done;R=I.next())R=R.value,R(c);Z.nqfbel=void 0}else Z={},Z=(Z.bevasrs=c,Z.nqfbel=void 0,Z),R[I]=Z};
RM8=function(G){var c=c===void 0?52:c;var I=[];_.lR(G,IHU,6,_.qw()).forEach(function(R){_.wF(R,2)<=c&&I.push(_.wF(R,1))});
return I};
Z4T=function(G){var c=c===void 0?52:c;var I=[];_.lR(G,IHU,6,_.qw()).forEach(function(R){_.wF(R,2)>c&&I.push(_.wF(R,1))});
return I};
Kb0=function(G){G.then(function(){},function(){})};
FO=function(G){return{fieldType:1,fieldName:G}};
nS=function(G){return{fieldType:2,fieldName:G}};
_.vD=function(G){return{fieldType:3,fieldName:G}};
PWi=function(){function G(){Z[0]=1732584193;Z[1]=4023233417;Z[2]=2562383102;Z[3]=271733878;Z[4]=3285377520;q=N=0}
function c(w){for(var F=m,n=0;n<64;n+=4)F[n/4]=w[n]<<24|w[n+1]<<16|w[n+2]<<8|w[n+3];for(n=16;n<80;n++)w=F[n-3]^F[n-8]^F[n-14]^F[n-16],F[n]=(w<<1|w>>>31)&4294967295;w=Z[0];var U=Z[1],k=Z[2],p=Z[3],M=Z[4];for(n=0;n<80;n++){if(n<40)if(n<20){var z=p^U&(k^p);var t=1518500249}else z=U^k^p,t=1859775393;else n<60?(z=U&k|p&(U|k),t=2400959708):(z=U^k^p,t=3395469782);z=((w<<5|w>>>27)&4294967295)+z+M+t+F[n]&4294967295;M=p;p=k;k=(U<<30|U>>>2)&4294967295;U=w;w=z}Z[0]=Z[0]+w&4294967295;Z[1]=Z[1]+U&4294967295;Z[2]=
Z[2]+k&4294967295;Z[3]=Z[3]+p&4294967295;Z[4]=Z[4]+M&4294967295}
function I(w,F){if(typeof w==="string"){w=unescape(encodeURIComponent(w));for(var n=[],U=0,k=w.length;U<k;++U)n.push(w.charCodeAt(U));w=n}F||(F=w.length);n=0;if(N==0)for(;n+64<F;)c(w.slice(n,n+64)),n+=64,q+=64;for(;n<F;)if(K[N++]=w[n++],q++,N==64)for(N=0,c(K);n+64<F;)c(w.slice(n,n+64)),n+=64,q+=64}
function R(){var w=[],F=q*8;N<56?I(a,56-N):I(a,64-(N-56));for(var n=63;n>=56;n--)K[n]=F&255,F>>>=8;c(K);for(n=F=0;n<5;n++)for(var U=24;U>=0;U-=8)w[F++]=Z[n]>>U&255;return w}
for(var Z=[],K=[],m=[],a=[128],O=1;O<64;++O)a[O]=0;var N,q;G();return{reset:G,update:I,digest:R,digestString:function(){for(var w=R(),F="",n=0;n<w.length;n++)F+="0123456789ABCDEF".charAt(Math.floor(w[n]/16))+"0123456789ABCDEF".charAt(w[n]%16);return F}}};
eMb=function(G,c){c=c===void 0?QaT:c;if(!mRb){var I;G=(I=G.navigator)==null?void 0:I.userAgentData;if(!G||typeof G.getHighEntropyValues!=="function"||G.brands&&typeof G.brands.map!=="function")return Promise.reject(Error("ua"));aHr((G.brands||[]).map(function(Z){var K=new THi;K=_.Eq(K,1,Z.brand);return _.Eq(K,2,Z.version)}));
typeof G.mobile==="boolean"&&_.DL(O4q,2,G.mobile);mRb=G.getHighEntropyValues(c)}var R=new Set(c);return mRb.then(function(Z){var K=O4q.clone();R.has("platform")&&_.Eq(K,3,Z.platform);R.has("platformVersion")&&_.Eq(K,4,Z.platformVersion);R.has("architecture")&&_.Eq(K,5,Z.architecture);R.has("model")&&_.Eq(K,6,Z.model);R.has("uaFullVersion")&&_.Eq(K,7,Z.uaFullVersion);return K.serialize()}).catch(function(){return O4q.serialize()})};
on=function(G,c,I,R){this.initialValue_=G;this.maxValue_=c;this.currBaseValue_=this.currValue_=G;this.randomFactor_=I||0;this.backoffFactor_=R||2};
uR=function(G){this.src=G;this.listeners={};this.typeCount_=0};
wKO=function(){for(var G;G=NHq.remove();){try{G.fn.call(G.scope)}catch(c){Zi(c)}lHB.put(G)}q2q=!1};
_.Fb8=function(G){switch(G){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
n6B=function(G){switch(G){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.v6g=function(){};
Awr=function(G,c,I,R){G=DRr(o60(URr(new _.bR(1828,"0"),G),new uAA)).disableWithCredentials();c.length&&b4A(G,kuT(new saU,c));R!==void 0&&(G.destinationUrl=R);var Z=new Lb0(1828,"","",!1,"",G.build());_.k9(Z,G);var K=new se({flush:function(m){try{Z.flush(m)}catch(a){I(a)}}});
K.addOnDisposeCallback(function(){setTimeout(function(){try{K.snapshotAndFlush()}finally{Z.dispose()}})});
K.invocationLimit=1E5;K.flushInterval=3E4;K.JSC$9956_flushTimer.setInterval(3E4);return K};
LS=function(){var G,c,I;return(I=(G=globalThis.performance)==null?void 0:(c=G.now)==null?void 0:c.call(G))!=null?I:Date.now()};
pKb=function(G,c){if(G.disable)return new $RU;c=c?RM8(c):[];G={un:G.un,iCH:G.fGa,i2B:G.r0P,destinationUrl:G.destinationUrl,uAD:G.uAD,hSe:G.hSe};c=c===void 0?[]:c;return new S28(G,c)};
MAC=function(G){if(!G)return null;G=_.AK(G,2);return G===null||G===void 0?null:Gi(G)};
_.VAg=function(G){if(!G)return null;G=_.AK(G,4);return G===null||G===void 0?null:_.Vx(G)};
Jwf=function(G,c){return c?zMp(c):G?E6U(G):Promise.resolve()};
zMp=function(G){return new Promise(function(c,I){var R=_.$9("SCRIPT"),Z=_.VAg(G);_.Ti(R,Z);R.onload=function(){_.ST(R);c()};
R.onerror=function(){_.ST(R);I(Error("Fa"))};
(pS("HEAD")[0]||document.documentElement).appendChild(R)})};
E6U=function(G){return new Promise(function(c){var I=_.$9("SCRIPT");if(G){var R=_.AK(G,6);R=R===null||R===void 0?null:_.Qp(R)}else R=null;_.aE(I,R);(pS("HEAD")[0]||document.documentElement).appendChild(I);_.ST(I);c()})};
Mw=function(G,c,I){var R,Z=new Promise(function(K){R=setTimeout(K,c)});
return Promise.race([G.finally(function(){return void clearTimeout(R)}),
Z.then(I)])};
WbC=function(G,c){try{return globalThis.sessionStorage.setItem(G,c),!0}catch(I){return!1}};
i4r=function(G,c,I,R){c=c===void 0?0:c;I=I===void 0?G.length:I;var Z=0;for(R&&(Z=i4r(R));c<I;c++)R=typeof G==="string"?G.charCodeAt(c):G[c],Z=fH8(31,Z)+R|0;return Z};
BHB=function(G,c){return[i4r(G,0,G.length>>1,c),i4r(G,G.length>>1)]};
rwq=function(G){var c=_.Q(BHB(G,VC));G=c.next().value;c=c.next().value;return G.toString(16)+c.toString(16)};
jai=function(G,c){var I=BHB(c);G=new Uint32Array(G.buffer);c=G[0];var R=_.Q(I);I=R.next().value;R=R.next().value;for(var Z=1;Z<G.length;Z+=2){for(var K=c,m=Z,a=I,O=R,N=0;N<22;N++)m=m>>>8|m<<24,m+=K|0,m^=a+38293,K=K<<3|K>>>29,K^=m,O=O>>>8|O<<24,O+=a|0,O^=N+38293,a=a<<3|a>>>29,a^=O;K=[K,m];G[Z]^=K[0];Z+1<G.length&&(G[Z+1]^=K[1])}};
xRg=function(G,c,I,R,Z){var K=(4-(VC.length+I.length)%4)%4,m=new Uint8Array(4+K+VC.length+4+I.length),a=new DataView(m.buffer),O=0;a.setUint32(O,Math.random()*4294967295);O=O+4+K;m.set(VC,O);O+=VC.length;a.setUint32(O,Z);m.set(I,O+4);jai(m,R);return G.insert(c,function(N){return void globalThis.sessionStorage.removeItem(N)})?WbC(c,_.zr(m))?"s":"t":"i"};
tAq=function(G,c){var I=globalThis.sessionStorage.getItem(G);if(!I)return["m"];try{var R=_.Yp(I);jai(R,c)}catch(Z){return globalThis.sessionStorage.removeItem(G),["c"]}for(c=4;c<7&&R[c]===0;)c++;for(I=0;I<VC.length;I++)if(R[c++]!==VC[I])return globalThis.sessionStorage.removeItem(G),["d"];I=(new DataView(R.buffer)).getUint32(c);return Math.floor(Date.now()/1E3)>=I?(globalThis.sessionStorage.removeItem(G),["e"]):["a",new Uint8Array(R.buffer,c+4)]};
hMf=function(G){return globalThis.TextEncoder?(new TextEncoder).encode(G):_.zB(G)};
dRO=function(G){var c=G,I;return function(){if(c){var R=c;c=void 0;I=R.apply(this,arguments)}return I}};
H4A=function(G){return EK(function(c){if(c instanceof G)return!0;var I,R,Z=c==null?void 0:(I=c.ownerDocument)==null?void 0:(R=I.defaultView)==null?void 0:R[G.name];return CWU(Z)&&c instanceof Z})};
_.iR=function(G,c,I){_.JK.call(this);this.JSC$10170_listener_=G;this.JSC$10170_interval_=c||0;this.handler_=I;this.callback_=(0,_.WD)(this.JSC$10172_doAction_,this)};
_.BD=function(G){G=XKp(G);return _.Vx(G)};
XKp=function(G){return G===null?"null":G===void 0?"undefined":G};
g6r=function(G){if(G&&G.focus)if(G!==document.activeElement)G.focus();else return ywg(function(){return _.T(function(c){document.activeElement&&document.activeElement.blur();return c.return(ywg(function(){G.focus()}))})})};
_.Y2g=function(G){var c=c===void 0?5:c;setTimeout(function(){var I;return _.T(function(R){R.nextAddress==1&&(I=document.activeElement);if(R.nextAddress!=5)return(document.activeElement===I||document.activeElement===document.body)&&c>=0&&G?R.yield(g6r(G),5):R.jumpTo(0);if(document.activeElement===G)return R.return();G=G.parentElement;--c;return R.jumpTo(2)})},15)};
ywg=function(G){return new Promise(function(c){requestAnimationFrame(function(){c(G())})})};
c$A=function(G){if(_.rF)G(_.rF);else{var c;((c=Gcq)!=null?c:Gcq=[]).push(G)}};
x9=function(){!_.rF&&_.jT&&_.IwT(_.jT());return _.rF};
_.IwT=function(G){_.rF=G;var c;(c=Gcq)==null||c.forEach(c$A);Gcq=void 0};
_.tK=function(G){_.rF&&_.rF.beforeLoadModuleCode(G)};
_.hK=function(){_.rF&&_.rF.JSC$11224_setLoaded()};
dF=function(G){return EKq(G)?Number(G):String(G)};
R1r=function(G){this.action=G;this.wfv=!1};
ZjB=function(G,c){R1r.call(this,"set-drive-options");this.appId=G;this.appOrigin=c};
K_p=function(G){R1r.call(this,"visibility");this.visible=G};
PrU=function(G,c,I){HD.call(this,G,c,I)};
Qzi=function(G){XO.call(this,G)};
mtT=function(G){G=G&&G.getWindow()||window;return G.gadgets&&G.gadgets.rpc};
TJ8=function(G,c){var I=c&&c.getWindow()||window;if(mtT(c))G();else if(awg)awg.push(G);else var R=awg=[G],Z=I.setInterval(function(){if(mtT(c)){I.clearInterval(Z);for(var K=0;K<R.length;K++)R[K]();awg=null}},100)};
e1q=function(G,c){var I=new yC(G);_.k9(c,I);var R={passive:!1};c.listen(I,"mousewheel",function(Z){return void OjU(G,Z)},R).listen(G,"scroll",function(Z){return void OjU(G,Z)},R)};
OjU=function(G,c){var I;a:{for(I=c.target;I;){if(I.nodeType==1){var R=_.gF(I,"overflowY");if(R=="auto"||R=="scroll")break a}I=I.parentNode}I=null}if(!I||!_.Y9(G,I)||I.scrollHeight==I.clientHeight||c.deltaY>0&&Math.abs(I.scrollTop-(I.scrollHeight-I.clientHeight))<=1||c.deltaY<0&&I.scrollTop==0)c.preventDefault(),c.stopPropagation()};
PX=function(G,c,I,R,Z,K,m,a,O){a=a===void 0?!1:a;O=O===void 0?!1:O;HD.call(this,void 0,void 0,void 0);HD.call(this,K?K+" picker modal-dialog":"picker modal-dialog",!0,I);_.Gy(G,"protocol");this.iframeManager_=new NJU;this.targetId_=cX();this.rpcToken_=cX();G=_.IW(G);_.RW(G,"hostId");I=_.RW(G,"parent");this.useGapi_=!O&&!0||(I==null?void 0:I.includes("onepick.corp.google.com"));a&&_.Zm(G,"fv2","true");this.setUrl(G.toString());this.preferredDialogWidth_=R;this.preferredDialogHeight_=Z;R!==void 0||
Z!==void 0?R=!0:(R=_.RW(_.IW(G.toString()),"hostId"),lwr||(lwr=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),R=!lwr.has(R));this.autoSizeDialog_=R;this.JSC$10360_gadgetsDomHelper_=m||this.JSC$10311_dom_;c&&(m=this.JSC$10360_gadgetsDomHelper_,c=_.RW(_.IW(this.JSC$10362_url_),"grugl")=="true"?qop:wlC,mtT(m)||(m=m||zM(document),R=m.createElement("SCRIPT"),_.Ti(R,c),R.type="text/javascript",m.JSC$9495_document_.body.appendChild(R)));
G=G.toString();c=null;m=G.indexOf("/picker?");m>-1?c=G.substring(0,m+8-1):Pr(G,"/picker")&&(c=G);c&&this.setRelayUrl(c+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(G=this.buttons_,G.JSC$10345_element_=this.buttonEl_,G.render()):_.O9(this.buttonEl_,F_r),_.Kt(this.buttonEl_,!!this.buttons_))};
_.o$r=function(G){var c=c===void 0?n$C:c;var I=_.XB(G),R=function(K){K=_.Q(K);K.next();K=Qg(K);return c(I,K)},Z=function(K){var m=_.Q(K);
K=m.next().value;m=Qg(m);return G.apply(K,m)};
return function(){var K=_.Hy.apply(0,arguments),m=this||_.Rq,a=v$B.get(m);a||(a={},v$B.set(m,a));return Dtq(a,[this].concat(_.jn(K)),Z,R)}};
mu=function(G){var c={};G=G.replace(/\r/g,"").split("\n");for(var I=0;I<G.length;I++){var R=G[I],Z=R.indexOf(":");Z<0||(c[R.substring(0,Z)]=R.substring(Z+2,R.length))}return c};
UtC=function(G,c,I){I=I===void 0?function(){}:I;
return G?c():I()};
_.bjb=function(G){var c;return((c=uar.documentOverride)!=null?c:G).__wizdispatcher};
_.Ty=function(G){var c=aW;aW=G;return c};
_.szg=function(G){return G===kcB||(G==null?void 0:G.name)==="\u0275NotFound"};
_.OZ=function(G,c){var I;if((I=G)==null?0:I.isDisposed)throw Error("jb`"+String(G.debugName));for(;G!==void 0;){I=G;if(I.retrieve)return I.retrieve(c,{optional:!0});G=G.parent}return kcB};
eE=function(G){return{"\u0275prov":{providedIn:"root",token:Symbol(G),factory:void 0,value:void 0}}};
_.L_f=function(G){var c=aW;if(!c){switch(G===void 0?3:G){case 0:G=Error("ib");break;case 1:G=Error("kb");break;case 2:G=Error("lb");break;default:G=Error("mb")}throw G;}return c};
A$f=function(G){var c=_.Ty(G);G={};return G[Symbol.dispose]=function(){_.Ty(c)},G};
$tC=function(G,c){G.disposables||(G.disposables=[]);G.disposables.push(c)};
N8=function(G){var c=aW;c&&!c.isDisposed&&($tC(c,G),G.parent=c)};
plf=function(G){if(G.disposables){for(var c=_.Q(G.disposables),I=c.next();!I.done;I=c.next())I=I.value,typeof I==="function"?I():Sog(I);G.disposables.length=0}};
Sog=function(G){if(!G.isDisposed){G.isDisposed=!0;var c;(c=G[Symbol.dispose])==null||c.call(G);delete G.parent;plf(G)}};
BJA=function(G){var c={retrieve:function(I){switch(I.\u0275prov.token){case Mvg.\u0275prov.token:var R=G.asyncDeps;break;case _.VvA.\u0275prov.token:R=G.rootElement;break;case z1A.\u0275prov.token:R=G.modelRootElement;break;case E$C.\u0275prov.token:R=G.appContext;break;case J$r.\u0275prov.token:R=G.rendererData;break;case W_q.\u0275prov.token:R=G.injectingConstructor;break;case ijq.\u0275prov.token:R=G.dispatcher}if(R)I=R;else a:{for(R=c.parent;R;){var Z=R;if(Z.retrieve){I=Z.retrieve(I);break a}R=
R.parent}R=I.\u0275prov.token;Z=fwO[R];Z!==void 0?I=Z:(Z=I.\u0275prov.providedIn,I.\u0275prov.factory?(I=I.\u0275prov.factory(),R&&Z==="root"&&(fwO[R]=I)):I=kcB)}return I}};
N8(c);return c};
r$T=function(){var G=_.L_f(1),c=_.OZ(G,E$C);if(!_.szg(c))return c;G=_.OZ(G,ijq);if(!_.szg(G))return G.getOptionalAppContext()};
jzr=function(G){if(typeof document!=="undefined"&&document&&document.getElementById&&(G=document.getElementById(G))){var c=G.tagName.toUpperCase();if(c=="SCRIPT"||c=="LINK")return G}return null};
tvU=function(G,c){if((G=G===void 0?"":G)&&c)throw Error("sb");var I="";var R=_.Rq._F_jsUrl;(G=c||jzr(G))&&(I=G.src?G.src:G.getAttribute("href"));if(R&&I){if(R!=I)throw Error("tb`"+R+"`"+I);I=R}else I=R||I;if(!xtC(I))throw Error("ub");return I};
HjU=function(){if(!h1T){h1T=!0;try{var G=tvU(_.Rq._F_jsUrl?"":"base-js")}catch(R){return}var c=dti(Cr8(G)),I=Object.keys(c);I.length!==0&&c$A(function(R){for(var Z=_.Q(I),K=Z.next();!K.done;K=Z.next()){K=K.value;for(var m=_.Q(Object.keys(c[K])),a=m.next();!a.done;a=m.next())R.addExtraEdge(K,a.value)}})}};
y$O=function(){var G=Object.assign({},Xl0);Object.getOwnPropertyNames(Xl0).forEach(function(c){le[c]!==void 0&&(G[c]=le[c])});
return G};
g$g=function(G,c){if(le.enablePerformanceTiming){var I,R;(R=(I=performance).mark)==null||R.call(I,G+"Start__"+c)}};
Yoq=function(G,c){if(le.enablePerformanceTiming){var I,R;(R=(I=performance).measure)==null||R.call(I,G+"__"+c,G+"Start__"+c)}};
Gar=function(G,c,I){var R;return G&&c?G+"__"+c:(R=G!=null?G:c)!=null?R:I};
cgB=function(G,c){return Object.is(G,c)};
wN=function(G){var c=q8;q8=G;return c};
R_C=function(G){if(Fq)throw Error("Z");if(q8!==null){var c=q8.producersTail;if(c===void 0||c.producer!==G){var I=void 0,R=q8.recomputing;if(R&&(I=c!==void 0?c.nextProducer:q8.producers,I!==void 0&&I.producer===G)){q8.producersTail=I;I.lastReadVersion=G.version;return}var Z=G.consumersTail,K;if(!(K=Z===void 0||Z.consumer!==q8)){if(R){a:{K=q8;R=K.producersTail;if(R!==void 0){K=K.producers;do{if(K===Z){R=!0;break a}if(K===R)break;K=K.nextProducer}while(K!==void 0)}R=!1}R=!R}K=R}K&&(R=nt(q8),I={producer:G,
consumer:q8,nextProducer:I,prevConsumer:Z,lastReadVersion:G.version,nextConsumer:void 0},q8.producersTail=I,c!==void 0?c.nextProducer=I:q8.producers=I,R&&I6r(G,I))}}};
Dm=function(G){if(!nt(G)||G.dirty)if(G.dirty||G.lastCleanEpoch!==vX)(G.producerMustRecompute(G)||Zk8(G))&&G.producerRecomputeValue(G),G.dirty=!1,G.lastCleanEpoch=vX};
KpU=function(G){if(G.consumers!==void 0){var c=Fq;Fq=!0;try{for(var I=G.consumers;I!==void 0;I=I.nextConsumer){var R=I.consumer;R.dirty||(G=void 0,R.dirty=!0,KpU(R),(G=R.consumerMarkedDirty)==null||G.call(R,R))}}finally{Fq=c}}};
PBg=function(){var G;return((G=q8)==null?void 0:G.consumerAllowSignalWrites)!==!1};
QxC=function(G){G&&(G.producersTail=void 0,G.recomputing=!0);return wN(G)};
a60=function(G){G.recomputing=!1;var c=G.producersTail,I=c!==void 0?c.nextProducer:G.producers;if(I!==void 0){if(nt(G)){do I=mbC(I);while(I!==void 0)}c!==void 0?c.nextProducer=void 0:G.producers=void 0}};
Zk8=function(G){for(G=G.producers;G!==void 0;G=G.nextProducer){var c=G.producer,I=G.lastReadVersion;if(I!==c.version)return!0;Dm(c);if(I!==c.version)return!0}return!1};
I6r=function(G,c){var I=G.consumersTail,R=nt(G);I!==void 0?(c.nextConsumer=I.nextConsumer,I.nextConsumer=c):(c.nextConsumer=void 0,G.consumers=c);c.prevConsumer=I;G.consumersTail=c;if(!R)for(G=G.producers;G!==void 0;G=G.nextProducer)I6r(G.producer,G)};
mbC=function(G){var c=G.producer,I=G.nextProducer,R=G.nextConsumer,Z=G.prevConsumer;G.nextConsumer=void 0;G.prevConsumer=void 0;R!==void 0?R.prevConsumer=Z:c.consumersTail=Z;if(Z!==void 0)Z.nextConsumer=R;else if(c.consumers=R,!nt(c))for(G=c.producers;G!==void 0;)G=mbC(G);return I};
nt=function(G){return G.consumerIsAlwaysLive||G.consumers!==void 0};
Okr=function(G){var c=Object.create(Tjq);c.computation=G;G=function(){Dm(c);R_C(c);if(c.value===oW)throw c.error;return c.value};
G[UZ]=c;return G};
qfg=function(G,c){var I=Object.create(e_0);I.value=G;c!==void 0&&(I.equal=c);G=function(){R_C(I);return I.value};
G[UZ]=I;return[G,function(R){return NjA(I,R)},
function(R){PBg()||l6q(I);NjA(I,R(I.value))}]};
NjA=function(G,c){PBg()||l6q(G);if(!G.equal(G.value,c)){G.value=c;G.version++;vX++;KpU(G);var I;(I=w_C)==null||I(G)}};
n7g=function(G,c,I){var R=Object.create(FpB);R.source=G;R.computation=c;I!=void 0&&(R.equal=I);G=function(){Dm(R);R_C(R);if(R.value===oW)throw R.error;return R.value};
G[UZ]=R;return G};
_.ue=function(G){var c=wN(null);try{return G()}finally{wN(c)}};
v7r=function(G,c){g$g("signalSet",c.debugName);try{G()}finally{Yoq("signalSet",c.debugName)}};
DbO=function(G,c,I){G=qfg(G,c.equals);var R=G[0],Z=R[UZ];Z.debugName=Gar(c.debugName,I,"[signal]");if(!le.enablePerformanceTiming)return G;var K=G[1],m=G[2];return[R,function(a){v7r(function(){return void K(a)},Z)},
function(a){v7r(function(){return void m(a)},Z)}]};
Ubg=function(G){var c=Object.create(o7B);c.debugName=G;!aW||N8(c);return c};
u48=function(G,c){var I=Ubg(c);c=_.Ty(I);try{G(I)}finally{_.Ty(c)}return function(){return void Sog(I)}};
kaU=function(G){return be(G)&&bkU in G};
_.ks=function(G,c,I){return DbO(G,c!=null?c:{},I===void 0?"":I)};
LpO=function(G,c){var I=_.Q(_.ks(G,void 0,"cPpJzc"));G=I.next().value;I=I.next().value;G[sxb]=I;G[sZ]=c;return G};
Agq=function(G){return!!G&&typeof G==="object"&&Object.getPrototypeOf(G)===Object.prototype};
$br=function(G){return typeof G==="function"&&sxb in G&&typeof G[sxb]==="function"};
SfO=function(G,c){Object.defineProperty(G,sZ,{get:function(){return c}})};
Ay=function(G,c){if(Lt(G)){var I=G.map(function(K){return Ay(K,c)});
SfO(I,c);return I}if(Agq(G)){I={};G=_.Q(Object.entries(G));for(var R=G.next();!R.done;R=G.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;I[R]=Ay(Z,c)}SfO(I,c);return I}return LpO(G,c)};
p_b=function(G){if(Lt(G))return G.map(function(Z){return p_b(Z)});
if(Agq(G)){var c={};G=_.Q(Object.entries(G));for(var I=G.next();!I.done;I=G.next()){var R=_.Q(I.value);I=R.next().value;R=R.next().value;c[I]=p_b(R)}return c}return $br(G)?G():G};
Vci=function(){var G={height:0,width:0};if(!Agq(G))throw Error("Jb");var c=Symbol("Kb");return[Ay(G,c),function(I,R){if(I[sZ]===c)if(typeof R==="function"){var Z=[].concat(_.jn(p_b(I)));R=R(Z)||Z;Mcq(I,[].concat(_.jn(R)))}else Mcq(I,R);else throw Error("Lb");}]};
Mcq=function(G,c){if($br(G))G[sxb](c);else if(Lt(G)&&Lt(c))c=Ay(c,G[sZ]),G.length=0,G.push.apply(G,_.jn(c));else if((Agq(G)||Lt(G))&&(Lt(c)||typeof c==="object"&&c!==null)){c=_.Q(Object.entries(c));for(var I=c.next();!I.done;I=c.next()){var R=_.Q(I.value);I=R.next().value;R=R.next().value;var Z=G,K=Z[I];Object.hasOwn(G,I)?Mcq(K,R):Z[I]=Ay(R,G[sZ])}}else throw Error("Mb");};
z_A=function(G){return Object.create(Object.assign({},$s,G))};
Jg0=function(){var G;return(G=E7q)!=null?G:E7q=z_A({consumerAllowSignalWrites:!0})};
_.SE=function(G,c,I){I=I===void 0?"":I;G=Okr(G);var R=G[UZ];R.debugName=Gar(c==null?void 0:c.debugName,I,"[computed]");(c==null?void 0:c.equals)!=null&&(R.equal=c.equals);return G};
pt=function(G){var c=wN(WpT);try{G()}finally{wN(c)}};
f6B=function(G,c,I){var R=ikr(G);M8={name:I?R+" ("+I+")":R,isReactive:G.componentType!==Vg,parent:M8};G=c();M8=M8.parent;return G};
zy=function(){var G=M8;return G?G.isReactive:!1};
Jy=function(G,c,I){var R=M8;c&&(M8=c);try{return I==null?G():G.call(I)}catch(K){G=K;EZ(G,M8);if(G!==Bjr){rgr=M8;c=[];for(I=aW;I;){var Z=void 0;c.push((Z=I.debugName)!=null?Z:"[context]");Z=void 0;I=(Z=I.parent)!=null?Z:null}jxg=c.reverse()}Bjr=G;throw G;}finally{M8=R}};
EZ=function(G,c){try{var I=xbO(c);if(I&&!G.componentStack&&(G.componentStack=I,le.enableComponentStacksInErrorMessages)){var R=G.message+"\n\nComponent stack: "+I;G.stack&&(G.stack=G.stack.replace(G.message,R));G.message=R}}catch(Z){}};
xbO=function(G){if(be(G)&&G.name!==void 0&&G.isReactive!==void 0&&G.parent!==void 0||G===null){for(var c=0,I="";c<20&&G;)I+=G.name+" > ",G=G.parent,c++;G=I.slice(0,-3)}else if(le.enableContextBasedComponentStacks){a:{for(G=G===void 0?aW:G;G;){if(kaU(G))break a;c=void 0;G=(c=G.parent)!=null?c:null}G=null}G=G.getComponentStack().slice(0,20).join(" > ")}else G="";return G};
ikr=function(G){return G.debugName||G.name||"[component]"};
Hkq=function(G){switch(G.onInitType){case tcU:h_T.schedule(G);break;case dbg:le.enableQueueEffectAndOnInitInitialRuns?CBg.enqueue(G):CBg.schedule(G);break;default:_.H0(G.onInitType)}};
caA=function(G){if(!G.isDisposed)switch(G.effectType){case WX:X_g.schedule(G);break;case yg0:g7T.schedule(G);break;case YfU:le.enableQueueEffectAndOnInitInitialRuns||G.version!==0?GPC.enqueue(G):GPC.schedule(G);break;default:_.H0(G.effectType)}};
ZYq=function(){if(ft>0)le.flushRenderEffectsDuringRender&&X_g.flush();else{for(var G=_.Q(IqO),c=G.next();!c.done;c=G.next())c.value.flush();R20()}};
R20=function(){_.T(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);for(var c=_.Q(KXr),I=c.next();!I.done;I=c.next())I.value.flush();_.Vp(G)})};
QDg=function(G){BX=!0;try{for(var c=_.Q(G),I=c.next();!I.done;I=c.next()){for(var R=I.value,Z=[R],K=R;K.parent!==void 0;)K=K.parent,Pxg(K)&&G.has(K)&&Z.push(K);for(;Z.length>0;){var m=Z.pop();G.delete(m);m.run()}}}finally{BX=!1}};
rN=function(G){ft--;if(G){G=_.Q(mqp);for(var c=G.next();!c.done;c=G.next())c.value.clear()}else ft>0||BX&&!le.flushRenderEffectsDuringRender||ZYq()};
aqp=function(G,c,I){G=Object.create(G);c&&(G.fn=c);I&&(G.debugName=I);N8(G);G.componentStack=M8;return G};
TZO=function(G){if(!G.isDisposed){if(Fq)throw Error("Qb");var c=_.Ty(G);g$g("effectRun",G.debugName);try{Jy(function(){G.dirty=!1;if(!(G.version>0)||Zk8(G)){G.version++;var I=QxC(G);try{G.cleanup(),G.fn()}finally{wN(I),G&&a60(G)}}},G.componentStack,G)}catch(I){throw le.enableContextBasedComponentStacks&&EZ(I),I;
}finally{Yoq("effectRun",G.debugName),_.Ty(c)}}};
_.jE=function(G,c){G=aqp(OYO,G,c);caA(G)};
_.xs=function(G,c){G=aqp(e2T,G,c);caA(G)};
NZU=function(G){return G};
lqA=function(G,c,I){function R(){return Z()}
I=I===void 0?"":I;var Z=typeof G==="function"?n7g(G,NZU,c==null?void 0:c.equals):n7g(G.source,G.computation,c==null?void 0:c.equals);var K=Z[UZ];K.debugName=Gar(c==null?void 0:c.debugName,I,"[linkedSignal]");R[UZ]=K;return[R,function(m){v7r(function(){Dm(K);NjA(K,m);K.dirty=!1;K.lastCleanEpoch=vX},K)},
function(m){v7r(function(){Dm(K);PBg()||l6q(K);NjA(K,m(K.value));K.dirty=!1;K.lastCleanEpoch=vX},K)}]};
_.ty=function(G){var c=aW;if(c){var I=M8;$tC(c,function(){var R=wN(Jg0());try{Jy(function(){return void G()},I)}catch(Z){throw le.enableContextBasedComponentStacks&&EZ(Z),Z;
}finally{wN(R)}})}};
hy=function(G,c){var I={};(c===void 0||c)&&N8(I);c=_.Ty(I);try{G(I)}finally{_.Ty(c)}return function(){return void Sog(I)}};
_.dN=function(G){return typeof G==="function"?G():(G==null?0:G[qpq])?G.get():G};
wNp=function(G){if(aW)throw Error("nb");hy(G,!1)};
Ct=function(G,c){G=_.Ty(G);try{return _.ue(c)}finally{_.Ty(G)}};
HX=function(G,c){var I=xbO(rgr),R,Z;var K=(Z=(R=jxg)==null?void 0:R.slice())!=null?Z:[];c={componentStack:I,contextTrace:K,errorSeverity:3,featureFlags:y$O(),tagName:c};return[G,c]};
vtq=function(G,c,I){if(Object.hasOwnProperty.call(FXp,G)&&(G=FXp[G],Object.hasOwnProperty.call(G,c)&&(G=G[c],G instanceof Array))){for(var R=null,Z=!1,K=0,m=G.length;K<m;++K){var a=G[K],O=a.contingentAttribute;if(!O)return a.contract;R===null&&(R={});O=Object.hasOwnProperty.call(R,O)?R[O]:R[O]=I(O);if(O===a.requiredValue)return a.contract;O==null&&(Z=!0)}if(Z)return null}c=ntp[c];return typeof c==="number"?c:null};
fq0=function(G,c,I){var R=null;(G=Dqq[G])&&(R=G[c]);return typeof R!=="number"&&((G=Dqq["*"])&&(R=G[c]),typeof R!=="number")?!1:!0===otA[R][String(I).toLowerCase()]};
rar=function(G,c){c=vtq(G.toLowerCase(),c,function(){var R;(R=le.handleError)==null||R.call.apply(R,[le].concat(_.jn(HX(Error("Tb"),G.toLowerCase()))))});
if(c===null)return null;var I;return(I=BZB[c])!=null?I:null};
jDp=function(G,c,I){if(I===null||I===void 0)return I;c=c.toLowerCase();G=rar(G,c);return G===null?I:G(c,I)};
xqU=function(){};
yg=function(G,c){for(;G.length>c;)G.pop()};
tKC=function(G){G=Array(G);yg(G,0);return G};
gN=function(G,c,I){if(I==null)G.removeAttribute(c);else{var R;(R=c.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":c.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?G.setAttributeNS(R,c,I):G.setAttribute(c,I)}};
dqA=function(G,c,I){G=G.style;if(typeof I==="string")G.cssText=I;else{G.cssText="";for(var R in I)if(h2g.call(I,R)){c=G;var Z=R,K=I[R];Z.indexOf("-")>=0?c.setProperty(Z,K):c[Z]=K}}};
CxC=function(G,c,I){var R=typeof I;R==="object"||R==="function"?G[c]=I:gN(G,c,I)};
HYT=function(){var G=new xqU;G[c1.default]=CxC;G.style=dqA;return G};
XNU=function(G,c,I,R){(R[c]||R[c1.default])(G,c,I)};
gtO=function(G,c,I){c=new yaO(c,I);return G.__incrementalDOMData=c};
Ig=function(G,c){if(G.__incrementalDOMData)return G.__incrementalDOMData;var I=G.nodeType===1?G.localName:G.nodeName,R=G.nodeType===1?G.getAttribute("key"):null;c=gtO(G,I,G.nodeType===1?R||c:null);if(G.nodeType===1&&(G=G.attributes,I=G.length)){R=c._attrsArr||(c._attrsArr=tKC(I*2));for(var Z=0,K=0;Z<I;Z+=1,K+=2){var m=G[Z],a=m.value;R[K]=m.name;R[K+1]=a}}return c};
Yp0=function(G,c,I,R,Z){return c==I&&R==Z};
GmO=function(G){for(var c=Rg,I=Z$();I!==G;){var R=I.nextSibling;c.removeChild(I);Kh.deleted.push(I);I=R}};
Z$=function(){return P1?P1.nextSibling:Rg.firstChild};
QL=function(){P1=Z$()};
RK0=function(G,c,I){QL();var R;a:{if(R=P1){do{var Z=R,K=G,m=c,a=Ig(Z,m);if(c8g(Z,K,a.nameOrCtor,m,a.key))break a}while(c&&(R=R.nextSibling))}R=null}R||(G==="#text"?(I=me.createTextNode(""),gtO(I,"#text",null),G=I):(R=me,Z=Rg,typeof G==="function"?R=new G:R=(Z=G==="svg"?"http://www.w3.org/2000/svg":G==="math"?"http://www.w3.org/1998/Math/MathML":Z==null||Ig(Z).nameOrCtor==="foreignObject"?null:Z.namespaceURI)?R.createElementNS(Z,G):R.createElement(G),gtO(R,G,c),G=R,I&&G.setAttribute("nonce",I)),Kh.created.push(G),
R=G);I=R;if(I!==P1){if(I0r.indexOf(I)>=0)for(G=Rg,c=I.nextSibling,R=P1;R!==null&&R!==I;)Z=R.nextSibling,G.insertBefore(R,c),R=Z;else Rg.insertBefore(I,P1);P1=I}};
ZFA=function(G,c,I){RK0(G,c,I);Rg=P1;P1=null;return Rg};
KIi=function(){GmO(null);P1=Rg;Rg=Rg.parentNode};
mh0=function(G,c){c=c===void 0?{}:c;var I=c.matches===void 0?Yp0:c.matches;return function(R,Z,K){var m=Kh,a=me,O=I0r,N=ag,q=T2,w=P1,F=Rg,n=c8g;me=R.ownerDocument;Kh=new Pii(R);c8g=I;ag=[];T2=[];P1=null;var U=Rg=R.parentNode,k,p=Qfi.call(R);if((k=p.nodeType===11||p.nodeType===9?p.activeElement:null)&&R.contains(k)){for(p=[];k!==U;)p.push(k),k=k.parentNode||(U?k.host:null);U=p}else U=[];I0r=U;try{return G(R,Z,K)}finally{R=Kh,OG&&R.deleted.length>0&&OG(R.deleted),me=a,Kh=m,c8g=n,ag=N,T2=q,P1=w,Rg=F,
I0r=O}}};
a00=function(G,c,I,R){eV.push(XNU);eV.push(G);eV.push(c);eV.push(I);eV.push(R)};
OFq=function(G,c,I){var R=T2;c=c._attrsArr||(c._attrsArr=tKC(R.length));for(var Z=!c.length||!1,K=0;K<R.length;K+=2){var m=R[K];if(Z)c[K]=m;else if(c[K]!==m)break;var a=R[K+1];if(Z||c[K+1]!==a)c[K+1]=a,a00(G,m,a,I)}if(K<R.length||K<c.length){for(K=Z=K;K<c.length;K+=2)NE[c[K]]=c[K+1];for(K=Z;K<R.length;K+=2)Z=R[K],m=R[K+1],NE[Z]!==m&&a00(G,Z,m,I),c[K]=Z,c[K+1]=m,delete NE[Z];yg(c,R.length);for(var O in NE)a00(G,O,void 0,I),delete NE[O]}G=TcU;TcU=I=eV.length;for(O=G;O<I;O+=5)(0,eV[O])(eV[O+1],eV[O+
2],eV[O+3],eV[O+4]);TcU=G;yg(eV,G);yg(R,0)};
eKC=function(G){RK0("#text",null);var c=P1;var I=Ig(c);if(I.text!==G){I=I.text=G;for(var R=1;R<arguments.length;R+=1)I=(0,arguments[R])(I);c.data!==I&&(c.data=I)}};
vd8=function(G,c,I){if(I===!1&&NcC.has(c))gN(G,c,null);else if(c!=="idomKey"&&c!=="skip"&&c!=="skipchildren"&&c!=="children"&&c!=="el")if(c.startsWith("on")){if(c[2]!==":")throw Error("Sb`"+c);if(I===void 0||I===null){var R;(R=le.handleError)==null||R.call.apply(R,[le].concat(_.jn(HX(Error("Xb`"+c),G.tagName))));G[c]=void 0}else{var Z=c.slice(3);R=zy();if(Z==="jsaction"){I=Array.isArray(I)?I:[I];I=_.Q(I);for(var K=I.next();!K.done;K=I.next()){K=K.value;if(typeof K!=="object"||K===null||typeof K.selfReg!==
"function")throw Error("$b`"+c);K.selfReg(0,G,R?_.ty:function(){})}}else{if(typeof I!=="object"||I===null)throw Error("Yb`"+c+"`"+typeof I);
if(typeof I.getFn!=="function")throw Error("Zb`"+c+"`"+Object.keys(I));if(I.selfReg)I.selfReg(0,G,Z,R?_.ty:function(){});
else if(R&&G["on"+Z]===void 0){var m=I.getFn(0);G.addEventListener(Z,m);_.ty(function(){return void G.removeEventListener(Z,m)})}else if(R||!l0B.includes(Z))G["on"+Z]=I.getFn(0)}}}else{if(c.startsWith("data-")&&typeof I==="string")try{I=q$p(I)}catch(a){I="zSoyz"}typeof I!=="function"||G._disposeEffects!=null?((R=c.startsWith("prop:"))&&(c=c.slice(5)),le.enableAttributeSanitization&&(R&&wbg(G.tagName)||(I=jDp(G.tagName,c,I))),c==="style"?("function"==typeof _.lV&&I instanceof _.lV&&(I=I.toString()),
FIi(G,c,I)):R?G[c]=I:ndC(G,c,I)):(G._signalProps||(G._signalProps=[]),G._signalValues||(G._signalValues=[]),G._signalProps.push(c))}};
DhT=function(G,c,I){I=(I===void 0?{}:I).isReactive;if(c==null?0:c.el){var R=c.el,Z;(Z=R.onRender)==null||Z.call(R,G);G._disposeRef||(G._disposeRef=function(){var K;(K=R.onUnmount)==null||K.call(R);delete G._disposeRef},I&&_.ty(function(){var K;
(K=G._disposeRef)==null||K.call(G)}))}};
wbg=function(G){return G.length>0&&G.includes("-")&&!odr.includes(G.toLowerCase())};
UhO=function(G){return be(G)&&qE in G};
uu8=function(G){return UhO(G)?G[qE].flattened:G};
bFO=function(G,c){var I=_.Hy.apply(2,arguments),R;c=(R=c)!=null?R:{};R={};return R.type=G,R.props=c,R.children=I,R[wK]=!0,R};
_.FG=function(G){return G.children};
nh=function(G){var c=kmO!==bFO;kmO=G?sfp:bFO;return c};
_.v1=function(G){return _.db(G)?"nodeType"in G:!1};
og=function(){return document.createTextNode("")};
UG=function(G){G=document.createTextNode(String(G));G._isSignalTextNode=!0;return G};
A8r=function(G){return G!=null&&G.contentKind===uV||G instanceof YN||LIq(G)};
$hB=function(G){var c=document.createElement("div");if(LIq(G)&&MAC(G))_.O9(c,MAC(G));else if(G instanceof YN)_.O9(c,G);else if(G!=null&&G.contentKind===uV){if(G.contentKind!==uV)throw Error("Wb");G=Gi(G.toString());_.O9(c,G)}G=_.Q(c.childNodes);for(var I=G.next();!I.done;I=G.next())I.value._isSafeOrSanitizedHtmlNode=!0;return c};
bV=function(G){G=typeof G;return G==="string"||G==="number"||G==="boolean"};
S$B=function(G){return G instanceof MN||fG(G)||G instanceof q3||"function"==typeof _.lV&&G instanceof _.lV};
pbC=function(G,c){var I=G.parentElement;if(!I)return c;I.replaceChild(c,G);return c};
ML8=function(G,c){var I=G[0].parentElement;if(I)if(G[0].previousSibling||G[G.length-1].nextSibling){I.insertBefore(c,G[0]);for(var R=G.length-1;R>=0;R--)I.removeChild(G[R])}else I.textContent="",I.appendChild(c);return c};
VLC=function(G,c){if(G[0].parentElement)for(var I=G[0].parentElement,R=c.length,Z=G.length,K=R,m=0,a=0,O=G[Z-1].nextSibling,N=null;m<Z||a<K;)if(G[m]===c[a])m++,a++;else{for(;G[Z-1]===c[K-1];)Z--,K--;if(Z===m)for(var q=K<R?a?c[a-1].nextSibling:c[K-a]:O;a<K;){var w=c[a++];I.insertBefore(w,q)}else if(K===a)for(;m<Z;)q=G[m],N&&N.has(q)||I.removeChild(q),m++;else if(G[m]===c[K-1]&&c[a]===G[Z-1])q=G[--Z].nextSibling,I.insertBefore(c[a++],G[m++].nextSibling),I.insertBefore(c[--K],q),G[Z]=c[K];else{if(!N)for(N=
new Map,q=a;q<K;)N.set(c[q],q++);q=N.get(G[m]);if(q==null)I.removeChild(G[m]),m++;else if(a<q&&q<K){w=m;for(var F=1,n=void 0;++w<Z&&w<K&&(n=N.get(G[w]))!=null&&n===q+F;)F++;if(F>q-a)for(w=G[m];a<q;)I.insertBefore(c[a++],w);else I.replaceChild(c[a++],G[m++])}else m++}}return c};
EdU=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("jc`"+G.length+"`"+G.map(zK8).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof _.PM)){var c,I;if((c=window)==null?0:(I=c.trustedTypes)==null?0:I.isScript(G))throw Error("ic");if(String(G).trim().length===0)return null;throw Error("kc`"+zK8(G));}return G};
J8O=function(G,c){c=EdU(c);c!==null&&_.aE(G,c)};
WIC=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("lc`"+G.length+"`"+G.map(zK8).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof q3)){if(String(G).trim().length===0)return null;throw Error("mc`"+zK8(G));}return G};
iFr=function(G,c){c=WIC(c);c!==null&&(G.textContent=bT0(c))};
zK8=function(G){return"("+typeof G+") "+(G!=null&&typeof G==="object"?G.constructor.name:typeof G)+" "+G};
f0C=function(){};
AI=function(G,c){c=c===void 0?{}:c;var I=Bci(),R=!0,Z,K=!!le.legacyTriggerSoyRendererEvents;K&&(Z=r$T());_.jE(function(){var m=!R&&c.isControlFlowComponent&&K,a=m?I[qE].flattened[0].parentElement:void 0;R=!1;_.sG.setUp();c.isControlFlowComponent&&ft++;var O=I[0],N=I[qE].flattened,q=nh(!0);try{var w=G(),F=r8A(O,w,I);Array.isArray(F)||(I[qE].flattened=[F]);var n=I[qE].flattened;if(N&&(!Array.isArray(N)||N.length!==0)){var U=Array.isArray(N)?N[0]:N,k=U[Lh],p=U._disposeEffects;U._disposeEffects=void 0;
U=Array.isArray(n)?n[0]:n;U[Lh]=k;U[Lh]&&(U[Lh].numNodes=U===n?1:n.length);U._disposeEffects=p}I[0]=F;c.isControlFlowComponent&&rN(!1)}catch(M){throw c.isControlFlowComponent&&rN(!0),M;}finally{nh(q),_.sG.tearDown()}m&&(m=Z,m!=null||(m=_.bjb(document).getAppContext()),m.get(jf0).JSC$29819_getEventTarget().dispatchEvent(new xh8(tLT,a,uV)))},c.debugName);
return I};
r8A=function(G,c,I){for(;typeof c==="function";)c=c();if(c!=null&&c[wK]){var R,Z,K;(K=le.handleError)==null||K.call.apply(K,[le].concat(_.jn(HX(Error("nc`"+((R=c.type)==null?void 0:R.TAG_NAME)),(Z=c.type)==null?void 0:Z.TAG_NAME))))}if(G==null)return c==null?og():bV(c)?UG(c):S$B(c)?UG(c.toString()):_.v1(c)?c:c.length===0?og():hKb(c,I);if(_.v1(G)){if(c==null)return pbC(G,og());if(bV(c))return dhr(G,c);if(S$B(c))return dhr(G,c.toString());if(_.v1(c))return pbC(G,c);if(c.length===0)return pbC(G,og());
c=hKb(c,I);VLC([G],I[qE].flattened);return c}G=$c(G);if(c==null)return ML8(G,og());if(bV(c))return ML8(G,UG(c));if(S$B(c))return ML8(G,UG(c.toString()));if(_.v1(c))return VLC(G,[c])[0];if(c.length===0)return ML8(G,og());c=hKb(c,I);VLC(G,I[qE].flattened);return c};
dhr=function(G,c){G.nodeType===Node.TEXT_NODE?G.textContent!==String(c)&&(G.textContent=String(c)):G=pbC(G,UG(c));return G};
$c=function(G,c,I){return Ci8(G,c!=null?c:[],I===void 0?!1:I)};
hKb=function(G,c){var I=$c(G,void 0,!0);if(I.length===0)return og();c[qE].flattened=I;return G};
Ci8=function(G,c,I,R,Z){c=c===void 0?[]:c;I=I===void 0?!1:I;Z=Z===void 0?-1:Z;if(G==null)return c;if(G instanceof SV){var K=G.render();return Ci8(K,c,I,R,Z)}if(_.v1(c)&&c.nodeType===Node.ELEMENT_NODE)switch(c.tagName){case "SCRIPT":J8O(c,G);return;case "STYLE":iFr(c,G);return}bV(G)&&(G=UG(G),R&&I&&(R[Z]=G));if(A8r(G)){I=$hB(G);I=Array.from(I.childNodes);I=_.Q(I);for(K=I.next();!K.done;K=I.next())HFr(c,K.value);return c}S$B(G)&&(G=UG(G.toString()),R&&I&&(R[Z]=G));if(_.v1(G))return HFr(c,G);if(Array.isArray(G)){for(K=
0;K<G.length;K++)Ci8(G[K],c,I,G,K);return c}if(typeof G==="function"){K=AI(function(){var a=G();return a!=null&&!bV(a)&&A8r(a)?(a=$hB(a),Array.from(a.childNodes)):a},{debugName:"qmF2ne",
debugFn:G})[0];if(Array.isArray(K)){I=_.Q(K);for(K=I.next();!K.done;K=I.next())HFr(c,K.value);return c}R&&I&&(R[Z]=K);return HFr(c,K)}if(G!=null&&G[wK]){R=G;Z=nh(!0);var m=kmO;try{K=m.apply(null,[R.type,R.props].concat(_.jn(R.children)))}finally{nh(Z)}return Ci8(K,c,I)}(m=le.handleError)==null||m.call.apply(m,[le].concat(_.jn(HX(Error("oc")))));return c};
Bci=function(G){var c={};c=Object.assign([],(c[qE]={flattened:[]},c));if(!G)return c;c[0]=hKb(G,c);return c};
HFr=function(G,c){Array.isArray(G)?G.push(c):G.appendChild(c);return G};
ph=function(G){if(!le.enableLazyTsx)return G;if(Array.isArray(G)){for(var c=0;c<G.length;c++)G[c]=ph(G[c]);return G}return G instanceof SV?(G=G.render(),ph(G)):G};
y80=function(G,c){var I,R,Z=ikr(G),K=function(n){R=n;n=nh(!0);var U=wN(ME);g$g("render",Z);try{I=ph(G(c))}finally{Yoq("render",Z),wN(U),nh(n)}};
K=le.enableContextPerComponent?u48(K,Z):hy(K,le.alwaysTrackContexts||!!aW);kaU(R);if(!c.renderedFromIdom){var m=_.Ty(R);try{return XbB(G,c,I),I}finally{_.Ty(m)}}!UhO(I)&&Array.isArray(I)&&(I=Bci(I));var a=uu8(I);m=Array.isArray(a)?a[0]:a;var O=!1;if(m){var N,q=(N=c==null?void 0:c.idomKey)!=null?N:G;N=a!==m;m._disposeEffects=K;var w=m[Lh]||{},F=UhO(I)?I:w.sourceDynamicRange;Object.assign(w,{key:q,numNodes:N?a.length:1,context:R,higherOrder:!!m[Lh],sourceDynamicRange:F});m[Lh]=w}else O=!0;(function(){var n=
_.Ty(R);try{XbB(G,c,a)}finally{_.Ty(n)}})();
O&&K();return I};
gdA=function(G){var c={},I;for(I in G)c={prev$jscomp$24:void 0,next$jscomp$33:void 0},c.prev$jscomp$24=VL[I],c.next$jscomp$33=G[I],VL[I]=function(R){return function(){var Z=_.Hy.apply(0,arguments);R.prev$jscomp$24.apply(null,_.jn(Z));R.next$jscomp$33.apply(null,_.jn(Z))}}(c)};
Y$q=function(){if(zy())throw Error("pc");return z2};
GO8=function(G,c){if(!G.__unmounted&&c){G.__unmounted=!0;try{G.didUnmount()}catch(Z){var I,R;(R=le.handleError)==null||R.call.apply(R,[le].concat(_.jn(HX(Z,(I=G.__type)==null?void 0:I.TAG_NAME))))}VL.didUnmount(G);G.el=null;c.__instance&&delete c.__instance}};
IZ8=function(G,c,I){G._signalProps!=null&&G._disposeEffects==null&&((I===void 0?0:I)?G._disposeEffects=hy(function(){return void cO0(G,c)},le.alwaysTrackContexts||!!aW):cO0(G,c))};
cO0=function(G,c){_.jE(function(){for(var I=G._signalProps,R=G._signalValues,Z=0;Z<I.length;Z++){var K=I[Z],m=c[K]();R[Z]!==m&&(R[Z]=m,vd8(G,K,m))}},"e3YVbb")};
Rgr=function(G,c,I){var R,Z=[];G._disposeEffects=hy(function(){_.jE(function(){var K=I();if(K===null||K===void 0)K="";if(bV(K)||K===null)R!=null||(R=document.createTextNode("")),R.parentNode!==G&&(R._isSignalTextNode=!0,G.insertBefore(R,c)),R.textContent=String(K);else if(A8r(K)){for(var m=Z.length>0?Z[Z.length-1].nextSibling:c,a=_.Q(Z),O=a.next();!O.done;O=a.next())G.removeChild(O.value);K=$hB(K);Z=Array.from(K.childNodes);K=_.Q(Z);for(a=K.next();!a.done;a=K.next())G.insertBefore(a.value,m)}else throw O=
(a=(m=M8)==null?void 0:m.name)!=null?a:"unknown",Error("ec`"+O+"`"+typeof K);},"VvDgC")},le.alwaysTrackContexts||!!aW)};
P6g=function(G,c){var I=_.Hy.apply(2,arguments);c!=null||(c={});return!le.enableLazyTsx||M8!=null&&!zy()?ZRT(G,c,I):new KYT(G,c,I)};
ZRT=function(G,c,I){if(G===_.FG)return I;if(typeof G==="function")return M8&&!zy()&&(c.renderedFromIdom=!0),f6B(G,function(){var K=QQU(G,c,I);if(K)return K;I.length>0&&(c.children=I.length===1?I[0]:I);if(G.componentType===Vg){var m;u48(function(){var a=c;if(G.componentType!==Vg)m=!1;else{a||(a={});var O=new EG(a,G),N=wN(ME);try{var q=O.render(a)}finally{wN(N)}q instanceof HTMLElement?(q.__instance=O,O.el=q,O.__type=G,G.TAG_NAME=q.tagName.toLowerCase(),VL.didPatch(O),m=q):m=q}},G.name);
if(m)return m}return y80(G,c)},c.debugInstance);
var R=myC(G,c),Z;for(Z in c)vd8(R,Z,c[Z]);IZ8(R,c);$c(I,R);DhT(R,c,{isReactive:!0});aZT(R,c);return R};
myC=function(G,c){G=(Tqr.has(G.toLowerCase())?0:ORr.has(G.startsWith("svg:")?G.replace("svg:",""):G))?document.createElementNS("http://www.w3.org/2000/svg",G.startsWith("svg:")?G.replace("svg:",""):G):egi(G,c)||document.createElement(G);G[Nqq]=!0;return G};
lZU=function(G){if(G){var c;(c=G._disposeRef)==null||c.call(G);var I;(I=G._disposeEffects)==null||I.call(G);G.__instance&&G.__instance instanceof JI&&(c=G.__instance,GO8(c,G),c instanceof EG&&c.disposeEffects());for(c=0;c<G.childNodes.length;c++)lZU(G.childNodes[c])}};
wqT=function(G){qQO.push(G)===1&&requestAnimationFrame(function(){setTimeout(function(){var c=[].concat(_.jn(qQO));qQO=[];c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;try{for(var R=0;R<I.length;R++)lZU(I[R])}catch(Z){R=I=void 0,(R=(I=le).handleError)==null||R.call.apply(R,[I].concat(_.jn(HX(Z))))}}})})};
_.e=function(G,c){return kmO.apply(null,[G,c].concat(_.jn(_.Hy.apply(2,arguments))))};
_.W1=function(G){return G};
_.iV=function(G){return{isDefault:!0,children:G.children}};
_.l=function(G){var c=G.cond;if(c===void 0)return G.else&&G.else();var I=_.SE(function(){return!!c()},void 0,"JHVi8"),R=function(){var Z=c();
if(!Z){var K;(K=le.handleError)==null||K.call.apply(K,[le].concat(_.jn(HX(FYq.nonNullableCondIsNull()))))}return Z};
return AI(function(){var Z=I(),K;hy(function(){var m=wN(ME);try{K=ph(Z?G.then(R):G.else&&G.else())}finally{wN(m)}},!0);
return K},{debugName:G.debugInstance,
debugFn:G.then,isControlFlowComponent:!0})};
n0T=function(G){return _.l(G)};
_.fh=function(G){return G.keyBy==="INDEX"?v0i(G):DyU(G)};
o0U=function(G){G=_.Q(G);for(var c=G.next();!c.done;c=G.next()){var I=void 0;(I=c.value)==null||I()}};
DyU=function(G){var c=G.keyBy===void 0||G.keyBy==="REFERENCE",I=c?function(q){return q}:G.keyBy,R=[],Z=[],K=[],m=[],a=[],O=[],N=!0;
_.ty(function(){o0U(m)});
return AI(function(){var q=Uy8(G),w=q.length;if(w===0){if(R.length===0&&!N)return K;o0U(m);R=q;Z=[];for(q=0;q<R.length;q++)Z.push(I(R[q]));K=[];m=[];a=[];O=[];G.fallback&&(m[0]=ulq(function(){K[0]=ph(G.fallback())}));
N=!1;return K}for(var F=new bR0,n=R.length-1;n>=0;n--)F.push(Z[n],n);n=Array(w);for(var U=Array(w),k=Array(w),p=Array(w),M=Array(c?0:w),z={i$jscomp$450:0};z.i$jscomp$450<w;z={i$jscomp$450:z.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},z.i$jscomp$450++){z.item$jscomp$104=q[z.i$jscomp$450];z.key$jscomp$563=I(z.item$jscomp$104);var t=F.pop(z.key$jscomp$563);t!=null?(k[z.i$jscomp$450]=K[t],U[z.i$jscomp$450]=Z[t],n[z.i$jscomp$450]=m[t],p[z.i$jscomp$450]=a[t],c||(M[z.i$jscomp$450]=O[t]),pt(function(x){return function(){p[x.i$jscomp$450](x.i$jscomp$450);
if(!c)M[x.i$jscomp$450](x.item$jscomp$104)}}(z)),delete m[t]):n[z.i$jscomp$450]=ulq(function(x){return function(){var C=_.Q(_.ks(x.i$jscomp$450,void 0,"Fqk1zd")),H=C.next().value;
C=C.next().value;p[x.i$jscomp$450]=C;U[x.i$jscomp$450]=x.key$jscomp$563;if(c)k[x.i$jscomp$450]=ph(G.children(x.item$jscomp$104,H));else{var g=_.Q(_.ks(x.item$jscomp$104,void 0,"GBj5de"));C=g.next().value;g=g.next().value;M[x.i$jscomp$450]=g;k[x.i$jscomp$450]=ph(G.children(C,H))}}}(z))}o0U(m);
R=q;Z=U;K=k;m=n;a=p;O=M;N=!1;return k},{debugName:G.debugInstance,
debugFn:G.each,isControlFlowComponent:!0})};
v0i=function(G){var c=[],I=[],R=[],Z=[],K=!1;_.ty(function(){for(var m=_.Q(Z),a=m.next();!a.done;a=m.next())a=a.value,a()});
return AI(function(){var m=Uy8(G);K&&m.length>0&&(Z.pop()(),c.pop(),K=!1);for(var a=Array(m.length),O={i$jscomp$451:0};O.i$jscomp$451<m.length;O={i$jscomp$451:O.i$jscomp$451},O.i$jscomp$451++)if(O.i$jscomp$451<c.length)c[O.i$jscomp$451]!==m[O.i$jscomp$451]&&(pt(function(q){return function(){return void I[q.i$jscomp$451](m[q.i$jscomp$451])}}(O)),c[O.i$jscomp$451]=m[O.i$jscomp$451]),a[O.i$jscomp$451]=R[O.i$jscomp$451];
else{var N=ulq(function(q){return function(){c[q.i$jscomp$451]=m[q.i$jscomp$451];var w=_.Q(_.ks(m[q.i$jscomp$451],void 0,"JMMLmd")),F=w.next().value;w=w.next().value;I[q.i$jscomp$451]=w;a[q.i$jscomp$451]=ph(G.children(F,q.i$jscomp$451))}}(O));
Z[O.i$jscomp$451]=N}for(;c.length>m.length;)c.pop(),Z.pop()(),I.pop();m.length===0&&!K&&G.fallback&&(O=ulq(function(){a[0]=ph(G.fallback())}),Z[0]=O,K=!0);
return R=a},{debugName:G.debugInstance,
isControlFlowComponent:!0})};
Uy8=function(G){G=G.each();return Array.isArray(G)?G:Array.from(G)};
ulq=function(G){var c=aW;return hy(function(I){var R=wN(ME);try{I.parent=c,G(I)}finally{wN(R)}},!1)};
_.B1=function(G){var c=kOf(G),I=_.SE(function(){return sQC(c)},void 0,"F1PF4");
return AI(function(){var R=I(),Z;hy(function(){var K=wN(ME);try{Z=ph(R())}finally{wN(K)}});
return Z},{debugName:G.debugInstance,
isControlFlowComponent:!0})};
kOf=function(G){G=G.children;return Array.isArray(G)?G:[G]};
LYp=function(G){var c=G.props;G=G.getChildren()[0];return c.when?{when:c.when,children:G}:{isDefault:!0,children:G}};
sQC=function(G){var c=function(){return null};
G=_.Q(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I!=null&&I[wK]&&(I=I.type===_.iV?{isDefault:!0,children:I.children[0]}:{when:I.props.when,children:I.children[0]}),I instanceof SV&&(I=LYp(I)),I.isDefault)c=I.children;else if(I.when())return I.children;return c};
$yg=function(G){var c=null,I,R={get value(){var K,m;(m=(K=Z).validateGetValue)==null||m.call(K);return Z.__value},set value(K){var m,a;(a=(m=Z).validateSetValue)==null||a.call(m,K);Z.__value=K;Z.__hasBeenSet=!0}},Z=(R.__value=null,R.__hasBeenSet=!1,R.__hasErrored=!1,R.onRender=function(K){if(I&&K!==I){I._disposeRef=void 0;var m;(m=c)==null||m()}I=K;c=G(K)||null},R.onUnmount=function(){var K;
(K=c)==null||K();c=Z.value=null},R[_.AOC]=!0,R);
return Z};
rK=function(G){return typeof G==="symbol"};
pqA=function(G){var c=Y$q();if(c==null)throw _.SQC.PRIMITIVE_INVALID_HOOK_CALL();var I=c.hookCounter++;c.hooks||(c.hooks=[]);var R=c.hooks;R[I]||(R[I]={key:G,host:c});if(G!==R[I].key){if(c.__type){var Z;G=(Z=c.__type)==null?void 0:Z.name}else G=c instanceof EG?ikr(c.functionComponent):"<"+c.el.tagName.toLowerCase()+">";throw _.SQC.OUT_OF_ORDER_HOOK_CALL(G);}return R[I]};
MyT=function(G,c){return!G||G.length!==(c==null?void 0:c.length)||G.some(function(I,R){return I!==c[R]})};
Vyr=function(G,c){var I=pqA("onChange"),R=Y$q();MyT(I.deps,c)&&(I.deps=c,I.pendingEffect=G,R.__syncEffects||(R.__syncEffects=[]),R.__syncEffects.push(I))};
_.jV=function(G,c,I){I!=null||(I={});I=I.appContext;var R=!!le.legacyTriggerSoyRendererEvents;_.sG.setUp();try{var Z=zgp(G,c,I);R&&(c=I,c!=null||(c=_.bjb(document).getAppContext()),c.get(jf0).JSC$29819_getEventTarget().dispatchEvent(new xh8(E0B,G,uV)));_.sG.log(G);return Z}finally{_.sG.tearDown()}};
zgp=function(G,c,I){var R=Jy(function(){var Z=wN(ME);try{return hy(function(){var K=_.bjb(_.dx(G)),m;var a=BJA({rootElement:{value:G},appContext:I||(K==null?void 0:(m=K.getOptionalAppContext)==null?void 0:m.call(K)),dispatcher:K});K=_.Ty(a);a=nh(!0);ft++;try{$c(c(),G),rN(!1)}catch(O){throw rN(!0),O;}finally{nh(a),_.Ty(K)}},!1)}catch(K){throw le.enableContextBasedComponentStacks&&EZ(K),K;
}finally{wN(Z)}});
G[JO0]=!0;return function(){G.textContent="";R();G[JO0]=!1}};
_.xc=function(G){if(Pxg(q8)){var c;(c=le.handleError)==null||c.call.apply(c,[le].concat(_.jn(HX(Error("dc")))))}var I=aW,R=M8;Hkq({onInitType:dbg,run:function(){if(I&&!I.isDisposed){var Z=_.Ty(I);try{Jy(function(){return void G()},R)}catch(K){throw le.enableContextBasedComponentStacks&&EZ(K),K;
}finally{_.Ty(Z)}}}})};
WYB=function(G,c){Vyr(function(){return _.ue(G)},c)};
_.tI=function(G){zy()?_.xc(function(){_.ue(G)}):Vyr(function(){return _.ue(G)},[])};
fZ8=function(G){var c=[].concat(_.jn(G));G.length=0;G=_.Q(c);for(c=G.next();!c.done;c=G.next()){c=c.value;iRr(c);var I=c.pendingEffect;c.pendingEffect=null;if(I=I==null?void 0:I())c.pendingCleanup=I}};
iRr=function(G){var c=G.pendingCleanup;G.pendingCleanup=null;c==null||c()};
Bqb=function(G,c){if(zy())return G();var I=pqA("useMemoInternal");MyT(I.deps,c)&&(I.deps=c,I.value=G());return I.value};
rOB=function(G,c){return Bqb(G,c)};
jQ8=function(G){return Bqb(function(){return{value:G}},[])};
_.hI=function(G,c){if(!G)return null;G=Object.keys(G);G=_.Q(G);for(var I=G.next();!I.done;I=G.next()){I=I.value;var R=I.toLowerCase();if(R.indexOf(c,R.length-c.length)>-1)return I}return null};
_.Ch=function(){var G=arguments,c=_.dK;G.length>1?c[G[0]]=G[1]:G.length===1&&Object.assign(c,G[0])};
_.H1=function(G,c){return G in _.dK?_.dK[G]:c};
_.XG=function(G,c){return!!_.H1(G,c)};
xyq=function(G){var c=_.dK.EXPERIMENT_FLAGS;return c?c[G]:void 0};
hgg=function(G){typ.forEach(function(c){return c(G)})};
_.gK=function(G){return G&&window.yterr?function(){try{return G.apply(this,arguments)}catch(c){_.yL(c)}}:G};
_.yL=function(G){var c=_.Yc("yt.logging.errors.log");c?c(G,"ERROR",void 0,void 0,void 0,void 0,void 0):(c=_.H1("ERRORS",[]),c.push([G,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Ch("ERRORS",c));hgg(G)};
_.Ra=function(G,c,I,R,Z){var K=_.Yc("yt.logging.errors.log");K?K(G,"WARNING",c,I,R,void 0,Z):(K=_.H1("ERRORS",[]),K.push([G,"WARNING",c,I,R,void 0,Z]),_.Ch("ERRORS",K))};
C6r=function(G,c){c=G.split(c);for(var I={},R=0,Z=c.length;R<Z;R++){var K=c[R].split("=");if(K.length===1&&K[0]||K.length===2)try{var m=dyf(K[0]||""),a=dyf(K[1]||"");if(m in I){var O=I[m];Array.isArray(O)?_.tU(O,a):I[m]=[O,a]}else I[m]=a}catch(F){var N=F,q=K[0],w=String(C6r);N.args=[{key:q,value:K[1],query:G,method:HRb===w?"unchanged":w}];Xqp.hasOwnProperty(q)||_.Ra(N)}}return I};
yOr=function(G){var c=[];_.rx.forEach(G,function(I,R){var Z=_.ZH(R);I=Array.isArray(I)?I:[I];_.K4(I,function(K){K==""?c.push(Z):c.push(Z+"="+_.ZH(K))})});
return c.join("&")};
_.PK=function(G){G.charAt(0)==="?"&&(G=G.substring(1));return C6r(G,"&")};
_.QU=function(G){return G.indexOf("?")!==-1?(G=(G||"").split("#")[0],G=G.split("?",2),_.PK(G.length>1?G[1]:G[0])):{}};
_.mb=function(G,c){return g0B(G,c||{},!0)};
YQO=function(G,c){return g0B(G,c||{},!1)};
g0B=function(G,c,I){var R=G.split("#",2);G=R[0];R=R.length>1?"#"+R[1]:"";var Z=G.split("?",2);G=Z[0];Z=_.PK(Z[1]||"");for(var K in c)if(I||!_.rx.containsKey(Z,K))Z[K]=c[K];return _.aa(G,Z)+R};
NR=function(G){if(!c)var c=window.location.href;var I=_.Tu(G)[1]||null,R=_.O2(G);return I&&R?eA(G,c):R?_.O2(c)===R&&(Number(_.Tu(c)[4]||null)||null)===(Number(_.Tu(G)[4]||null)||null):!0};
_.cHO=function(G){G=Gsr(G);return G===null?!1:G[0]==="com"&&G[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Gsr=function(G){G=_.O2(G);return G!==null?G.split(".").reverse():null};
dyf=function(G){return G&&G.match(ISp)?G:lW(G)};
_.qR=function(G){return new Rwf(G)};
_.wH=function(){ZC0||(ZC0=new KJT);return ZC0};
QPg=function(){var G=P80;return function(){var c=_.wH();if(!c.resolve(_.qR(G))){var I={};c.addProvider((I.provide=G,I.useClass=G,I[FA]=void 0,I))}return c.resolve(G)}};
aSC=function(G){var c=_.n4,I,R;_.T(function(Z){I=_.wH();return(R=I.resolve(_.qR(c)))?(G(R),Z.return(Promise.resolve(R))):Z.return(I.resolve(new m2f(c)).then(function(K){G(K);return K}))})};
_.v=function(G){G=vK(G);return typeof G==="string"&&G==="false"?!1:!!G};
_.DH=function(G,c){G=vK(G);return G===void 0&&c!==void 0?c:Number(G||0)};
TUr=function(G){G=vK(G);return Array.isArray(G)?_.jB(G,function(c){return Number(c||0)}):[Number(G||0)]};
_.oa=function(G){G=vK(G);return G!==void 0?String(G):""};
_.U2=function(G){G=vK(G);return Array.isArray(G)?_.jB(G,function(c){return String(c||"")}):[String(G||"")]};
OCC=function(){return _.H1("EXPERIMENTS_TOKEN","")};
vK=function(G){return _.H1("EXPERIMENT_FLAGS",{})[G]};
ewA=function(){for(var G=[],c=_.H1("EXPERIMENTS_FORCED_FLAGS",{}),I=_.Q(Object.keys(c)),R=I.next();!R.done;R=I.next())R=R.value,G.push({key:R,value:String(c[R])});I=_.H1("EXPERIMENT_FLAGS",{});R=_.Q(Object.keys(I));for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.startsWith("force_")&&c[Z]===void 0&&G.push({key:Z,value:String(I[Z])});return G};
lSU=function(){if(!NUr)return null;var G=NUr();return"open"in G?G:null};
_.qCb=function(G){switch(_.bW(G)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.bW=function(G){return G&&"status"in G?G.status:-1};
_.k6=function(G,c){typeof G==="function"&&(G=_.gK(G));return window.setTimeout(G,c)};
_.s2=function(G,c){typeof G==="function"&&(G=_.gK(G));return window.setInterval(G,c)};
_.L4=function(G){window.clearTimeout(G)};
FJ0=function(G){G=_.QU(G);for(var c=_.Q(wdi),I=c.next();!I.done;I=c.next())if(G[I.value]!==void 0)return!0;return!1};
D2r=function(G,c,I,R,Z,K,m,a,O){I=I===void 0?"GET":I;R=R===void 0?"":R;a=a===void 0?!1:a;var N=lSU();if(!N)return null;var q=function(){(N&&"readyState"in N?N.readyState:0)===4&&c&&_.gK(c)(N)};
"onloadend"in N?N.addEventListener("loadend",q,!1):N.onreadystatechange=q;_.v("debug_forward_web_query_parameters")&&(G=nDO(G,window.location.search));N.open(I,G,!0);K&&(N.responseType=K);m&&(N.withCredentials=!0);I=I==="POST"&&(window.FormData===void 0||!(R instanceof FormData));if(Z=vDi(G,Z))for(var w in Z)N.setRequestHeader(w,Z[w]),"content-type"===w.toLowerCase()&&(I=!1);I&&N.setRequestHeader("Content-Type","application/x-www-form-urlencoded");O&&"onprogress"in N&&(N.onprogress=function(){O(N.responseText)});
if(a&&"setAttributionReporting"in XMLHttpRequest.prototype){G={eventSourceEligible:!0,triggerEligible:!1};try{N.setAttributionReporting(G)}catch(F){_.Ra(F)}}N.send(R);return N};
vDi=function(G,c){c=c===void 0?{}:c;var I=NR(G),R=_.H1("INNERTUBE_CLIENT_NAME"),Z=_.v("web_ajax_ignore_global_headers_if_set"),K;for(K in oD8){var m=_.H1(oD8[K]),a=K==="X-Goog-AuthUser"||K==="X-Goog-PageId";K!=="X-Goog-Visitor-Id"||m||(m=_.H1("VISITOR_DATA"));var O;if(!(O=!m)){if(!(O=I||(_.O2(G)?!1:!0))){O=G;var N;if(N=_.v("add_auth_headers_to_remarketing_google_dot_com_ping")&&K==="Authorization"&&(R==="TVHTML5"||R==="TVHTML5_UNPLUGGED"||R==="TVHTML5_SIMPLY"))N=Gsr(O),N=N===null?!1:N[1]==="google"?
!0:N[2]==="google"?N[0]==="au"&&N[1]==="com"?!0:N[0]==="uk"&&N[1]==="co"?!0:!1:!1;N&&(O=_.Aw(O)||"",O=O.split("/"),O="/"+(O.length>1?O[1]:""),N=O==="/pagead");O=N?!0:!1}O=!O}O||Z&&c[K]!==void 0||R==="TVHTML5_UNPLUGGED"&&a||(c[K]=m)}"X-Goog-EOM-Visitor-Id"in c&&"X-Goog-Visitor-Id"in c&&delete c["X-Goog-Visitor-Id"];if(I||!_.O2(G))c["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(I||!_.O2(G)){try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(w){}q&&(c["X-YouTube-Time-Zone"]=
q)}document.location.hostname.endsWith("youtubeeducation.com")||!I&&_.O2(G)||(c["X-YouTube-Ad-Signals"]=yOr(U2f()));return c};
_.uLp=function(G,c){var I=_.O2(G);_.v("debug_handle_relative_url_for_query_forward_killswitch")||!I&&NR(G)&&(I=document.location.hostname);var R=_.Aw(G);R=(I=I&&(I.endsWith("youtube.com")||I.endsWith("youtube-nocookie.com")))&&R&&R.startsWith("/api/");if(!I||R)return G;var Z=_.PK(c),K={};_.K4(wdi,function(m){Z[m]&&(K[m]=Z[m])});
return YQO(G,K)};
bCf=function(G,c){c.method="POST";c.postParams||(c.postParams={});return _.$6(G,c)};
ksf=function(G,c){var I=_.H1("XSRF_FIELD_NAME"),R;c.headers&&(R=c.headers["Content-Type"]);return!c.excludeXsrf&&(!_.O2(G)||c.withCredentials||_.O2(G)===document.location.hostname)&&c.method==="POST"&&(!R||R==="application/x-www-form-urlencoded")&&!(c.postParams&&c.postParams[I])};
_.$6=function(G,c){var I=c.format||"JSON";G=sPp(G,c);var R=LJC(G,c),Z=!1,K=AHg(G,function(O){if(!Z){Z=!0;a&&_.L4(a);var N=_.qCb(O),q=null,w=400<=O.status&&O.status<500,F=500<=O.status&&O.status<600;if(N||w||F)q=$2U(G,I,O,c.convertToSafeHtml);N&&(N=SCr(I,O,q));q=q||{};w=c.context||_.Rq;N?c.onSuccess&&c.onSuccess.call(w,O,q):c.onError&&c.onError.call(w,O,q);c.onFinish&&c.onFinish.call(w,O,q)}},c.method,R,c.headers,c.responseType,c.withCredentials,!1,c.onProgress);
R=c.timeout||0;if(c.onTimeout&&R>0){var m=c.onTimeout;var a=_.k6(function(){Z||(Z=!0,K.abort(),_.L4(a),m.call(c.context||_.Rq,K))},R)}return K};
sPp=function(G,c){c.includeDomain&&(G=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+G);var I=_.H1("XSRF_FIELD_NAME");if(c=c.urlParams)c[I]&&delete c[I],G=_.mb(G,c);return G};
LJC=function(G,c){var I=_.H1("XSRF_FIELD_NAME"),R=_.H1("XSRF_TOKEN"),Z=c.postBody||"",K=c.postParams;ksf(G,c)&&(K||(K={}),K[I]=R);(_.v("ajax_parse_query_data_only_when_filled")&&K&&Object.keys(K).length>0||K)&&typeof Z==="string"&&(Z=_.PK(Z),_.rx.extend(Z,K),Z=c.postBodyFormat&&c.postBodyFormat==="JSON"?JSON.stringify(Z):_.SA(Z));K=Z||K&&!_.rx.isEmpty(K);!pd0&&K&&c.method!=="POST"&&(pd0=!0,_.yL(Error("Jc")));return Z};
$2U=function(G,c,I,R){var Z=null;switch(c){case "JSON":try{var K=I.responseText}catch(m){throw R=Error("Kc"),R.params=G,_.Ra(R),m;}G=I.getResponseHeader("Content-Type")||"";K&&G.indexOf("json")>=0&&(K.substring(0,5)===")]}'\n"&&(K=K.substring(5)),Z=JSON.parse(K));break;case "XML":if(G=(G=I.responseXML)?MW0(G):null)Z={},_.K4(G.getElementsByTagName("*"),function(m){Z[m.tagName]=VWT(m)})}R&&zwC(Z);
return Z};
zwC=function(G){if(_.db(G))for(var c in G)c==="html_content"||Pr(c,"_html")?G[c]=Gi(G[c]):zwC(G[c])};
SCr=function(G,c,I){if(c&&c.status===204)return!0;switch(G){case "JSON":return!!I;case "XML":return Number(I&&I.return_code)===0;case "RAW":return!0;default:return!!I}};
MW0=function(G){return G?(G=("responseXML"in G?G.responseXML:G).getElementsByTagName("root"))&&G.length>0?G[0]:null:null};
VWT=function(G){var c="";_.K4(G.childNodes,function(I){c+=I.nodeValue});
return c};
EDO=function(G){if(G.name==="JavaException")return!0;G=G.stack;return G.includes("chrome://")||G.includes("-extension://")||G.includes("webkit-masked-url://")};
JHb=function(G){if(!G.stack)return!0;var c=!G.stack.includes("\n");return c&&G.stack.includes("ErrorType: ")||c&&G.stack.includes("Anonymous function (Unknown script")||G.stack.toLowerCase()==="not available"||G.fileName==="user-script"||G.fileName.startsWith("user-script:")?!0:!1};
_.p4=function(G){_.JK.call(this);this.JSC$10688_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!G};
iCb=function(G,c){var I=G.length,R=0,Z=function(){return G.charCodeAt(R++)};
do{var K=WJg(Z);if(K===Infinity)break;var m=K>>3;switch(K&7){case 0:K=WJg(Z);if(m===c)return K;break;case 1:if(m===c)return;R+=8;break;case 2:K=WJg(Z);if(m===c)return G.substr(R,K);R+=K;break;case 5:if(m===c)return;R+=4;break;default:return}}while(R<I)};
WJg=function(G){var c=G(),I=c&127;if(c<128)return I;c=G();I|=(c&127)<<7;if(c<128)return I;c=G();I|=(c&127)<<14;if(c<128)return I;c=G();return c<128?I|(c&127)<<21:Infinity};
BUb=function(G,c,I,R){if(G)if(Array.isArray(G)){var Z=R;for(R=0;R<G.length&&!(G[R]&&(Z+=fSi(R,G[R],c,I),Z>500));R++);R=Z}else if(typeof G==="object")for(Z in G){if(G[Z]){var K=Z;var m=G[Z],a=c,O=I;K=typeof m!=="string"||K!=="clickTrackingParams"&&K!=="trackingParams"?0:(m=iCb(atob(m.replace(/-/g,"+").replace(/_/g,"/")),2))?fSi(K+".ve",m,a,O):0;R+=K;R+=fSi(Z,G[Z],c,I);if(R>500)break}}else I[c]=MR(G),R+=I[c].length;else I[c]=MR(G),R+=I[c].length;return R};
fSi=function(G,c,I,R){I+="."+G;G=MR(c);R[I]=G;return I.length+G.length};
MR=function(G){try{return(typeof G==="string"?G:String(JSON.stringify(G))).substr(0,500)}catch(c){return"unable to serialize "+typeof G+" ("+c.message+")"}};
rHU=function(G){switch(G){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.zu=function(G,c,I,R,Z){_.VU.set(G,c,{maxAge:I,path:"/",domain:R===void 0?"youtube.com":R,secure:Z===void 0?!1:Z})};
_.jPq=function(G,c,I){_.VU.remove(G,c===void 0?"/":c,I===void 0?"youtube.com":I)};
_.E2=function(){if(_.v("embeds_web_enable_cookie_detection_fix")){if(!_.Rq.navigator.cookieEnabled)return!1}else if(!_.VU.isEnabled())return!1;if(!_.VU.isEmpty())return!0;_.v("embeds_web_enable_cookie_detection_fix")?_.VU.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.VU.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.VU.get("TESTCOOKIESENABLED")!=="1")return!1;_.VU.remove("TESTCOOKIESENABLED");return!0};
x20=function(){var G=_.Rq.navigator;return G?G.connection:void 0};
tW0=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(G){}};
_.d2B=function(){var G=x20();if(G){var c=hw0[G.type||"unknown"]||"CONN_UNKNOWN";G=hw0[G.effectiveType||"unknown"]||"CONN_UNKNOWN";c==="CONN_CELLULAR_UNKNOWN"&&G!=="CONN_UNKNOWN"&&(c=G);if(c!=="CONN_UNKNOWN")return c;if(G!=="CONN_UNKNOWN")return G}};
HCp=function(){var G=x20();if(G!=null&&G.effectiveType)return C88.hasOwnProperty(G.effectiveType)?C88[G.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.WK=function(){try{return _.Jw(),!0}catch(G){return!1}};
_.Jw=function(G){if(_.H1("DATASYNC_ID")!==void 0)return _.H1("DATASYNC_ID");throw new _.iW("Datasync ID not set",G===void 0?"unknown":G);};
_.f4=function(G){this.mechanism=G};
BK=function(G){this.mechanism=G};
rH=function(G){this.storage_=G;this.cachedIsStorageAvailable_=null};
Xdp=function(){var G=null;try{G=_.Rq.localStorage||null}catch(c){}rH.call(this,G)};
yHb=function(){var G=null;try{G=_.Rq.sessionStorage||null}catch(c){}rH.call(this,G)};
jA=function(G,c){this.mechanism_=G;this.JSC$10791_prefix_=c+"::"};
_.x6=function(G){var c=new Xdp;return c.isAvailable()?G?new jA(c,G):c:null};
_.gDT=function(G){var c=new yHb;return c.isAvailable()?G?new jA(c,G):c:null};
Gvr=function(){var G;return(G=YC0())==null?void 0:G.get("LAST_RESULT_ENTRY_KEY",!0)};
_.dH=function(G){cXq||(_.tw?_.tw.logError(G):(_.hw.push({type:"ERROR",payload:G}),_.hw.length>10&&_.hw.shift()))};
C4=function(G,c){cXq||(_.tw?_.tw.logEvent(G,c):(_.hw.push({type:"EVENT",eventType:G,payload:c}),_.hw.length>10&&_.hw.shift()))};
HK=function(G){if(G.indexOf(":")>=0)throw Error("Rc");};
XA=function(G){return G.substr(0,G.indexOf(":"))||G};
ZpA=function(){return(IYU||RRb)&&yU("applewebkit")&&!yU("version")&&(!yU("safari")||yU("gsa/"))};
yU=function(G){var c=_.wb();return c?c.toLowerCase().indexOf(G)>=0:!1};
Q6g=function(G,c,I,R){c=XA(c);var Z=G instanceof Error?G:Error("Sc`"+G);if(Z instanceof gH)return Z;G={objectStoreNames:I,dbName:c,dbVersion:R};if(Z.name==="QuotaExceededError")return new gH("QUOTA_EXCEEDED",G);if(_.Y6&&Z.name==="UnknownError")return new gH("QUOTA_MAYBE_EXCEEDED",G);if(Z instanceof Kxr)return new gH("MISSING_INDEX",Object.assign({},G,{objectStore:Z.objectStore,index:Z.index}));if(Z.name==="InvalidStateError"&&Pni.some(function(K){return Z.message.includes(K)}))return new gH("EXECUTE_TRANSACTION_ON_CLOSED_DB",
G);
if(Z.name==="AbortError")return new gH("UNKNOWN_ABORT",G,Z.message);Z.args=[Object.assign({},G,{name:"IdbError",originalName:Z.name})];Z.level="WARNING";return Z};
Gc=function(G,c,I){var R=Gvr();return new gH("IDB_NOT_SUPPORTED",{context:{caller:G,publicName:c,version:I,hasSucceededOnce:R==null?void 0:R.hasSucceededOnce}})};
m9T=function(G){if(!G)throw Error();throw G;};
aYT=function(G){return G};
TL0=function(G,c,I){var R=function(){try{G.removeEventListener("success",Z),G.removeEventListener("error",K)}catch(m){}},Z=function(){c(G.result);
R()},K=function(){I(G.error);
R()};
G.addEventListener("success",Z);G.addEventListener("error",K)};
Opf=function(G){return new Promise(function(c,I){TL0(G,c,I)})};
Rz=function(G){return new cl(new Iz(function(c,I){TL0(G,c,I)}))};
eRr=function(G,c){return new cl(new Iz(function(I,R){var Z=function(){var K=G?c(G):null;K?K.then(function(m){G=m;Z()},R):I()};
Z()}))};
NLA=function(G,c,I){return new Promise(function(R,Z){var K=c!==void 0?self.indexedDB.open(G,c):self.indexedDB.open(G);var m=I.blocked,a=I.blocking,O=I.terminated,N=I.upgrade,q=I.closed,w,F=function(){w||(w=new Zw(K.result,{closed:q}));return w};
K.addEventListener("upgradeneeded",function(n){try{if(n.newVersion===null)throw Error("Xc");if(K.transaction===null)throw Error("Yc");n.dataLoss&&n.dataLoss!=="none"&&C4("IDB_DATA_CORRUPTED",{reason:n.dataLossMessage||"unknown reason",dbName:XA(G)});var U=F(),k=new Kj(K.transaction);N&&N(U,function(p){return n.oldVersion<p&&n.newVersion>=p},k);
k.done.catch(function(p){Z(p)})}catch(p){Z(p)}});
K.addEventListener("success",function(){var n=K.result;a&&n.addEventListener("versionchange",function(){a(F())});
n.addEventListener("close",function(){C4("IDB_UNEXPECTEDLY_CLOSED",{dbName:XA(G),dbVersion:n.version});O&&O()});
R(F())});
K.addEventListener("error",function(){Z(K.error)});
m&&K.addEventListener("blocked",function(){m()})})};
lYB=function(G,c,I){I=I===void 0?{}:I;return NLA(G,c,I)};
_.QN=function(G,c){c=c===void 0?{}:c;var I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return _.s9(m,2),I=self.indexedDB.deleteDatabase(G),R=c,(Z=R.blocked)&&I.addEventListener("blocked",function(){Z()}),m.yield(Opf(I),4);
if(m.nextAddress!=2)return _.Pl(m,0);K=_.M3(m);throw Q6g(K,G,"",-1);})};
wYr=function(G,c){var I;return _.T(function(R){if(R.nextAddress==1)return R.yield(_.m_(q4b,c),2);I=R.yieldResult;return R.return(_.az(I,["databases"],{enableRetries:!0,mode:"readwrite"},function(Z){var K=Z.objectStore("databases");return K.get(G.actualName).then(function(m){if(m?G.actualName!==m.actualName||G.publicName!==m.publicName||G.userIdentifier!==m.userIdentifier:1)return K.put(G).then(function(){})})}))})};
_.Tc=function(G,c){var I;return _.T(function(R){if(R.nextAddress==1)return G?R.yield(_.m_(q4b,c),2):R.return();I=R.yieldResult;return R.return(I.delete("databases",G))})};
_.Fxi=function(G,c){var I,R;return _.T(function(Z){return Z.nextAddress==1?(I=[],Z.yield(_.m_(q4b,c),2)):Z.nextAddress!=3?(R=Z.yieldResult,Z.yield(_.az(R,["databases"],{enableRetries:!0,mode:"readonly"},function(K){I.length=0;return Oo(K.objectStore("databases"),{},function(m){G(m.getValue())&&I.push(m.getValue());return m.continue()})}),3)):Z.return(I)})};
nVb=function(G,c){return _.Fxi(function(I){return I.publicName===G&&I.userIdentifier!==void 0},c)};
oVp=function(){var G,c,I,R;return _.T(function(Z){switch(Z.nextAddress){case 1:G=Gvr();if((c=G)==null?0:c.hasSucceededOnce)return Z.return(!0);var K;if(K=vVp)K=/WebKit\/([0-9]+)/.exec(_.wb()),K=!!(K&&parseInt(K[1],10)>=600);K&&(K=/WebKit\/([0-9]+)/.exec(_.wb()),K=!(K&&parseInt(K[1],10)>=602));if(K||ev)return Z.return(!1);try{if(I=self,!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore))return Z.return(!1)}catch(m){return Z.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Z.return(!1);
_.s9(Z,2);R={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Z.yield(wYr(R,D90),4);case 4:return Z.yield(_.Tc("yt-idb-test-do-not-use",D90),5);case 5:return Z.return(!0);case 2:return _.M3(Z),Z.return(!1)}})};
ufC=function(){if(U9g!==void 0)return U9g;cXq=!0;return U9g=oVp().then(function(G){cXq=!1;var c;if((c=YC0())!=null&&c.hasLocalStorage()){var I;c={hasSucceededOnce:((I=Gvr())==null?void 0:I.hasSucceededOnce)||G};var R;(R=YC0())==null||R.set("LAST_RESULT_ENTRY_KEY",c,2592E3,!0)}return G})};
Nt=function(){return _.Yc("ytglobal.idbToken_")||void 0};
_.qt=function(){var G=Nt();return G?Promise.resolve(G):ufC().then(function(c){(c=c?D90:void 0)&&_.lr("ytglobal.idbToken_",c);return c})};
bpC=function(G){if(!_.WK())throw G=new gH("AUTH_INVALID",{dbName:G}),_.dH(G),G;var c=_.Jw();return{actualName:G+":"+c,publicName:G,userIdentifier:c}};
kvC=function(G,c,I,R){var Z,K,m,a,O,N;return _.T(function(q){switch(q.nextAddress){case 1:return K=(Z=Error().stack)!=null?Z:"",q.yield(_.qt(),2);case 2:m=q.yieldResult;if(!m)throw a=Gc("openDbImpl",G,c),_.v("ytidb_async_stack_killswitch")||(a.stack=a.stack+"\n"+K.substring(K.indexOf("\n")+1)),_.dH(a),a;HK(G);O=I?{actualName:G,publicName:G,userIdentifier:void 0}:bpC(G);_.s9(q,3);return q.yield(wYr(O,m),5);case 5:return q.yield(lYB(O.actualName,c,R),6);case 6:return q.return(q.yieldResult);case 3:return N=
_.M3(q),_.s9(q,7),q.yield(_.Tc(O.actualName,m),9);case 9:_.Pl(q,8);break;case 7:_.M3(q);case 8:throw N;}})};
s6p=function(G,c,I){I=I===void 0?{}:I;return kvC(G,c,!1,I)};
Lxf=function(G,c,I){I=I===void 0?{}:I;return kvC(G,c,!0,I)};
AXT=function(G,c){c=c===void 0?{}:c;var I,R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(_.qt(),2);if(Z.nextAddress!=3){I=Z.yieldResult;if(!I)return Z.return();HK(G);R=bpC(G);return Z.yield(_.QN(R.actualName,c),3)}return Z.yield(_.Tc(R.actualName,I),0)})};
$9O=function(G,c,I){G=G.map(function(R){return _.T(function(Z){return Z.nextAddress==1?Z.yield(_.QN(R.actualName,c),2):Z.yield(_.Tc(R.actualName,I),0)})});
return Promise.all(G).then(function(){})};
S4q=function(G){var c=c===void 0?{}:c;var I,R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(_.qt(),2);if(Z.nextAddress!=3){I=Z.yieldResult;if(!I)return Z.return();HK(G);return Z.yield(nVb(G,I),3)}R=Z.yieldResult;return Z.yield($9O(R,c,I),0)})};
pYr=function(G,c){c=c===void 0?{}:c;var I;return _.T(function(R){if(R.nextAddress==1)return R.yield(_.qt(),2);if(R.nextAddress!=3){I=R.yieldResult;if(!I)return R.return();HK(G);return R.yield(_.QN(G,c),3)}return R.yield(_.Tc(G,I),0)})};
wJ=function(G,c){return MC8(G,c)};
zRp=function(G){return _.m_(VCp(),G)};
EV8=function(G,c,I,R){var Z,K,m;return _.T(function(a){switch(a.nextAddress){case 1:return Z={config:G,hashData:c,timestamp:R!==void 0?R:(0,_.Fa)()},a.yield(zRp(I),2);case 2:return K=a.yieldResult,a.yield(K.clear("hotConfigStore"),3);case 3:return a.yield(K.put("hotConfigStore",Z),4);case 4:return m=a.yieldResult,a.return(m)}})};
JXg=function(G,c,I,R,Z){var K,m,a;return _.T(function(O){switch(O.nextAddress){case 1:return K={config:G,hashData:c,configData:I,timestamp:Z!==void 0?Z:(0,_.Fa)()},O.yield(zRp(R),2);case 2:return m=O.yieldResult,O.yield(m.clear("coldConfigStore"),3);case 3:return O.yield(m.put("coldConfigStore",K),4);case 4:return a=O.yieldResult,O.return(a)}})};
WxB=function(G){var c,I;return _.T(function(R){return R.nextAddress==1?R.yield(zRp(G),2):R.nextAddress!=3?(c=R.yieldResult,I=void 0,R.yield(_.az(c,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Z){return _.nj(Z.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(K){I=K.getValue()})}),3)):R.return(I)})};
ipb=function(G){var c,I;return _.T(function(R){return R.nextAddress==1?R.yield(zRp(G),2):R.nextAddress!=3?(c=R.yieldResult,I=void 0,R.yield(_.az(c,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Z){return _.nj(Z.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(K){I=K.getValue()})}),3)):R.return(I)})};
fYB=function(){return _.T(function(G){return G.yield(S4q("ytGcfConfig"),0)})};
BLr=function(){return"INNERTUBE_API_KEY"in _.dK&&"INNERTUBE_API_VERSION"in _.dK};
_.vl=function(){return{innertubeApiKey:_.H1("INNERTUBE_API_KEY"),innertubeApiVersion:_.H1("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.H1("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.H1("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.H1("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.H1("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.H1("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.H1("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.H1("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.XG("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.XG("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.H1("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Cnf=function(G){var c={client:{hl:G.innertubeContextHostLanguage,gl:G.innertubeContextGeoLocation,clientName:G.innertubeContextClientName,clientVersion:G.innertubeContextClientVersion,configInfo:G.innertubeContextClientConfigInfo}};navigator.userAgent&&(c.client.userAgent=String(navigator.userAgent));var I=_.Rq.devicePixelRatio;I&&I!=1&&(c.client.screenDensityFloat=String(I));I=OCC();I!==""&&(c.client.experimentsToken=I);I=ewA();I.length>0&&(c.request={internalExperimentFlags:I});rXq(G,void 0,c);
j6T(void 0,c);x9O(void 0,c);tCB(G,void 0,c);hRO(void 0,c);_.v("start_client_gcf")&&d9A(void 0,c);_.H1("DELEGATED_SESSION_ID")&&!_.v("pageid_as_header_web")&&(c.user={onBehalfOfUser:_.H1("DELEGATED_SESSION_ID")});!_.v("fill_delegate_context_in_gel_killswitch")&&(G=_.H1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(c.user=Object.assign({},c.user,{serializedDelegationContext:G}));G=_.H1("INNERTUBE_CONTEXT");var R;if(_.v("enable_persistent_device_token")&&(G==null?0:(R=G.client)==null?0:R.rolloutToken)){var Z;
c.client.rolloutToken=G==null?void 0:(Z=G.client)==null?void 0:Z.rolloutToken}R=Object;Z=R.assign;G=c.client;I={};for(var K=_.Q(Object.entries(_.PK(_.H1("DEVICE","")))),m=K.next();!m.done;m=K.next()){var a=_.Q(m.value);m=a.next().value;a=a.next().value;m==="cbrand"?I.deviceMake=a:m==="cmodel"?I.deviceModel=a:m==="cbr"?I.browserName=a:m==="cbrver"?I.browserVersion=a:m==="cos"?I.osName=a:m==="cosver"?I.osVersion=a:m==="cplatform"&&(I.platform=a)}c.client=Z.call(R,G,I);return c};
rXq=function(G,c,I){G=G.innertubeContextClientName;if(G==="WEB"||G==="MWEB"||G===1||G===2)if(c){I=_.Dw(c,HpU,96)||new HpU;var R=XYB();R=Object.keys(yXC).indexOf(R);R=R===-1?null:R;R!==null&&_.oz(I,3,R);_.Az(c,96,I)}else I&&(I.client.mainAppWebInfo=(R=I.client.mainAppWebInfo)!=null?R:{},I.client.mainAppWebInfo.webDisplayMode=XYB())};
j6T=function(G,c){var I=_.Yc("yt.embedded_player.embed_url");I&&(G?(c=_.Dw(G,gVB,7)||new gVB,_.Eq(c,4,I),_.Az(G,7,c)):c&&(c.thirdParty={embedUrl:I}))};
x9O=function(G,c){var I;if(_.v("web_log_memory_total_kbytes")&&((I=_.Rq.navigator)==null?0:I.deviceMemory)){var R;I=(R=_.Rq.navigator)==null?void 0:R.deviceMemory;G?_.Uo(G,95,Ng(I*1E6)):c&&(c.client.memoryTotalKbytes=""+I*1E6)}};
tCB=function(G,c,I){if(G.appInstallData)if(c){var R;I=(R=_.Dw(c,ur,62))!=null?R:new ur;_.Eq(I,6,G.appInstallData);_.Az(c,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},I.client.configInfo.appInstallData=G.appInstallData)};
hRO=function(G,c){var I=_.d2B();I&&(G?_.oz(G,61,Y4q[I]):c&&(c.client.connectionType=I));_.v("web_log_effective_connection_type")&&(I=HCp())&&(G?_.oz(G,94,Gep[I]):c&&(c.client.effectiveConnectionType=I))};
_.RSq=function(G,c,I){I=I===void 0?{}:I;var R={};_.H1("EOM_VISITOR_DATA")?R={"X-Goog-EOM-Visitor-Id":_.H1("EOM_VISITOR_DATA")}:R={"X-Goog-Visitor-Id":I.visitorData||_.H1("VISITOR_DATA","")};if(c&&c.includes("www.youtube-nocookie.com"))return R;c=I.authorization||_.H1("AUTHORIZATION");c||(G?c="Bearer "+_.Yc("gapi.auth.getToken")().access_token:(cir.instance||(cir.instance=new cir),G=IbA(),_.v("pageid_as_header_web")||delete G["X-Goog-PageId"],R=Object.assign({},R,G)));c&&(R.Authorization=c);return R};
d9A=function(G,c){var I=ZEi();if(I){var R=I.coldConfigData,Z=I.coldHashData;I=I.hotHashData;if(G){var K;c=(K=_.Dw(G,ur,62))!=null?K:new ur;R=_.Eq(c,1,R);_.Eq(R,3,Z).setHotHashData(I);_.Az(G,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},R&&(c.client.configInfo.coldConfigData=R),Z&&(c.client.configInfo.coldHashData=Z),I&&(c.client.configInfo.hotHashData=I))}};
br=function(G){for(var c=G.length;--c>=0;)G[c]=0};
KcB=function(G,c,I,R,Z){this.static_tree=G;this.extra_bits=c;this.extra_base=I;this.elems=R;this.max_length=Z;this.has_stree=G&&G.length};
Puq=function(G,c){this.dyn_tree=G;this.max_code=0;this.stat_desc=c};
k$=function(G,c){G.pending_buf[G.pending++]=c&255;G.pending_buf[G.pending++]=c>>>8&255};
so=function(G,c,I){G.bi_valid>16-I?(G.bi_buf|=c<<G.bi_valid&65535,k$(G,G.bi_buf),G.bi_buf=c>>16-G.bi_valid,G.bi_valid+=I-16):(G.bi_buf|=c<<G.bi_valid&65535,G.bi_valid+=I)};
Lj=function(G,c,I){so(G,I[c*2],I[c*2+1])};
QIg=function(G,c){var I=0;do I|=G&1,G>>>=1,I<<=1;while(--c>0);return I>>>1};
mDB=function(G,c,I){var R=Array(16),Z=0,K;for(K=1;K<=15;K++)R[K]=Z=Z+I[K-1]<<1;for(I=0;I<=c;I++)Z=G[I*2+1],Z!==0&&(G[I*2]=QIg(R[Z]++,Z))};
abg=function(G){var c;for(c=0;c<286;c++)G.dyn_ltree[c*2]=0;for(c=0;c<30;c++)G.dyn_dtree[c*2]=0;for(c=0;c<19;c++)G.bl_tree[c*2]=0;G.dyn_ltree[512]=1;G.opt_len=G.static_len=0;G.last_lit=G.matches=0};
Tnf=function(G){G.bi_valid>8?k$(G,G.bi_buf):G.bi_valid>0&&(G.pending_buf[G.pending++]=G.bi_buf);G.bi_buf=0;G.bi_valid=0};
OEb=function(G,c,I){Tnf(G);k$(G,I);k$(G,~I);A$.arraySet(G.pending_buf,G.window,c,I,G.pending);G.pending+=I};
eSO=function(G,c,I,R){var Z=c*2,K=I*2;return G[Z]<G[K]||G[Z]===G[K]&&R[c]<=R[I]};
NnU=function(G,c,I){for(var R=G.heap[I],Z=I<<1;Z<=G.heap_len;){Z<G.heap_len&&eSO(c,G.heap[Z+1],G.heap[Z],G.depth)&&Z++;if(eSO(c,R,G.heap[Z],G.depth))break;G.heap[I]=G.heap[Z];I=Z;Z<<=1}G.heap[I]=R};
naO=function(G,c,I){var R=0;if(G.last_lit!==0){do{var Z=G.pending_buf[G.d_buf+R*2]<<8|G.pending_buf[G.d_buf+R*2+1];var K=G.pending_buf[G.l_buf+R];R++;if(Z===0)Lj(G,K,c);else{var m=$$[K];Lj(G,m+256+1,c);var a=lbg[m];a!==0&&(K-=qUT[m],so(G,K,a));Z--;m=Z<256?Sv[Z]:Sv[256+(Z>>>7)];Lj(G,m,I);a=wHq[m];a!==0&&(Z-=Fc8[m],so(G,Z,a))}}while(R<G.last_lit)}Lj(G,256,c)};
vap=function(G,c){var I=c.dyn_tree,R=c.stat_desc.static_tree,Z=c.stat_desc.has_stree,K=c.stat_desc.elems,m,a=-1;G.heap_len=0;G.heap_max=573;for(m=0;m<K;m++)I[m*2]!==0?(G.heap[++G.heap_len]=a=m,G.depth[m]=0):I[m*2+1]=0;for(;G.heap_len<2;){var O=G.heap[++G.heap_len]=a<2?++a:0;I[O*2]=1;G.depth[O]=0;G.opt_len--;Z&&(G.static_len-=R[O*2+1])}c.max_code=a;for(m=G.heap_len>>1;m>=1;m--)NnU(G,I,m);O=K;do m=G.heap[1],G.heap[1]=G.heap[G.heap_len--],NnU(G,I,1),R=G.heap[1],G.heap[--G.heap_max]=m,G.heap[--G.heap_max]=
R,I[O*2]=I[m*2]+I[R*2],G.depth[O]=(G.depth[m]>=G.depth[R]?G.depth[m]:G.depth[R])+1,I[m*2+1]=I[R*2+1]=O,G.heap[1]=O++,NnU(G,I,1);while(G.heap_len>=2);G.heap[--G.heap_max]=G.heap[1];m=c.dyn_tree;O=c.max_code;R=c.stat_desc.static_tree;Z=c.stat_desc.has_stree;K=c.stat_desc.extra_bits;var N=c.stat_desc.extra_base,q=c.stat_desc.max_length,w,F=0;for(w=0;w<=15;w++)G.bl_count[w]=0;m[G.heap[G.heap_max]*2+1]=0;for(c=G.heap_max+1;c<573;c++){var n=G.heap[c];w=m[m[n*2+1]*2+1]+1;w>q&&(w=q,F++);m[n*2+1]=w;if(!(n>
O)){G.bl_count[w]++;var U=0;n>=N&&(U=K[n-N]);var k=m[n*2];G.opt_len+=k*(w+U);Z&&(G.static_len+=k*(R[n*2+1]+U))}}if(F!==0){do{for(w=q-1;G.bl_count[w]===0;)w--;G.bl_count[w]--;G.bl_count[w+1]+=2;G.bl_count[q]--;F-=2}while(F>0);for(w=q;w!==0;w--)for(n=G.bl_count[w];n!==0;)R=G.heap[--c],R>O||(m[R*2+1]!==w&&(G.opt_len+=(w-m[R*2+1])*m[R*2],m[R*2+1]=w),n--)}mDB(I,a,G.bl_count)};
DDr=function(G,c,I){var R,Z=-1,K=c[1],m=0,a=7,O=4;K===0&&(a=138,O=3);c[(I+1)*2+1]=65535;for(R=0;R<=I;R++){var N=K;K=c[(R+1)*2+1];++m<a&&N===K||(m<O?G.bl_tree[N*2]+=m:N!==0?(N!==Z&&G.bl_tree[N*2]++,G.bl_tree[32]++):m<=10?G.bl_tree[34]++:G.bl_tree[36]++,m=0,Z=N,K===0?(a=138,O=3):N===K?(a=6,O=3):(a=7,O=4))}};
oaA=function(G,c,I){var R,Z=-1,K=c[1],m=0,a=7,O=4;K===0&&(a=138,O=3);for(R=0;R<=I;R++){var N=K;K=c[(R+1)*2+1];if(!(++m<a&&N===K)){if(m<O){do Lj(G,N,G.bl_tree);while(--m!==0)}else N!==0?(N!==Z&&(Lj(G,N,G.bl_tree),m--),Lj(G,16,G.bl_tree),so(G,m-3,2)):m<=10?(Lj(G,17,G.bl_tree),so(G,m-3,3)):(Lj(G,18,G.bl_tree),so(G,m-11,7));m=0;Z=N;K===0?(a=138,O=3):N===K?(a=6,O=3):(a=7,O=4)}}};
UDp=function(G){var c=4093624447,I;for(I=0;I<=31;I++,c>>>=1)if(c&1&&G.dyn_ltree[I*2]!==0)return 0;if(G.dyn_ltree[18]!==0||G.dyn_ltree[20]!==0||G.dyn_ltree[26]!==0)return 1;for(I=32;I<256;I++)if(G.dyn_ltree[I*2]!==0)return 1;return 0};
pj=function(G,c,I){G.pending_buf[G.d_buf+G.last_lit*2]=c>>>8&255;G.pending_buf[G.d_buf+G.last_lit*2+1]=c&255;G.pending_buf[G.l_buf+G.last_lit]=I&255;G.last_lit++;c===0?G.dyn_ltree[I*2]++:(G.matches++,c--,G.dyn_ltree[($$[I]+256+1)*2]++,G.dyn_dtree[(c<256?Sv[c]:Sv[256+(c>>>7)])*2]++);return G.last_lit===G.lit_bufsize-1};
VN=function(G,c){G.msg=Mt[c];return c};
zc=function(G){for(var c=G.length;--c>=0;)G[c]=0};
Eo=function(G){var c=G.state,I=c.pending;I>G.avail_out&&(I=G.avail_out);I!==0&&(A$.arraySet(G.output,c.pending_buf,c.pending_out,I,G.next_out),G.next_out+=I,c.pending_out+=I,G.total_out+=I,G.avail_out-=I,c.pending-=I,c.pending===0&&(c.pending_out=0))};
ir=function(G,c){var I=G.block_start>=0?G.block_start:-1,R=G.strstart-G.block_start,Z=0;if(G.level>0){G.strm.data_type===2&&(G.strm.data_type=UDp(G));vap(G,G.l_desc);vap(G,G.d_desc);DDr(G,G.dyn_ltree,G.l_desc.max_code);DDr(G,G.dyn_dtree,G.d_desc.max_code);vap(G,G.bl_desc);for(Z=18;Z>=3&&G.bl_tree[uN8[Z]*2+1]===0;Z--);G.opt_len+=3*(Z+1)+5+5+4;var K=G.opt_len+3+7>>>3;var m=G.static_len+3+7>>>3;m<=K&&(K=m)}else K=m=R+5;if(R+4<=K&&I!==-1)so(G,c?1:0,3),OEb(G,I,R);else if(G.strategy===4||m===K)so(G,2+(c?
1:0),3),naO(G,J$,Wl);else{so(G,4+(c?1:0),3);I=G.l_desc.max_code+1;R=G.d_desc.max_code+1;Z+=1;so(G,I-257,5);so(G,R-1,5);so(G,Z-4,4);for(K=0;K<Z;K++)so(G,G.bl_tree[uN8[K]*2+1],3);oaA(G,G.dyn_ltree,I-1);oaA(G,G.dyn_dtree,R-1);naO(G,G.dyn_ltree,G.dyn_dtree)}abg(G);c&&Tnf(G);G.block_start=G.strstart;Eo(G.strm)};
fj=function(G,c){G.pending_buf[G.pending++]=c};
Bl=function(G,c){G.pending_buf[G.pending++]=c>>>8&255;G.pending_buf[G.pending++]=c&255};
bEi=function(G,c){var I=G.max_chain_length,R=G.strstart,Z=G.prev_length,K=G.nice_match,m=G.strstart>G.w_size-262?G.strstart-(G.w_size-262):0,a=G.window,O=G.w_mask,N=G.prev,q=G.strstart+258,w=a[R+Z-1],F=a[R+Z];G.prev_length>=G.good_match&&(I>>=2);K>G.lookahead&&(K=G.lookahead);do{var n=c;if(a[n+Z]===F&&a[n+Z-1]===w&&a[n]===a[R]&&a[++n]===a[R+1]){R+=2;for(n++;a[++R]===a[++n]&&a[++R]===a[++n]&&a[++R]===a[++n]&&a[++R]===a[++n]&&a[++R]===a[++n]&&a[++R]===a[++n]&&a[++R]===a[++n]&&a[++R]===a[++n]&&R<q;);
n=258-(q-R);R=q-258;if(n>Z){G.match_start=c;Z=n;if(n>=K)break;w=a[R+Z-1];F=a[R+Z]}}}while((c=N[c&O])>m&&--I!==0);return Z<=G.lookahead?Z:G.lookahead};
jv=function(G){var c=G.w_size,I;do{var R=G.window_size-G.lookahead-G.strstart;if(G.strstart>=c+(c-262)){A$.arraySet(G.window,G.window,c,c,0);G.match_start-=c;G.strstart-=c;G.block_start-=c;var Z=I=G.hash_size;do{var K=G.head[--Z];G.head[Z]=K>=c?K-c:0}while(--I);Z=I=c;do K=G.prev[--Z],G.prev[Z]=K>=c?K-c:0;while(--I);R+=c}if(G.strm.avail_in===0)break;Z=G.strm;I=G.window;K=G.strstart+G.lookahead;var m=Z.avail_in;m>R&&(m=R);m===0?I=0:(Z.avail_in-=m,A$.arraySet(I,Z.input,Z.next_in,m,K),Z.state.wrap===
1?Z.adler=keT(Z.adler,I,m,K):Z.state.wrap===2&&(Z.adler=rJ(Z.adler,I,m,K)),Z.next_in+=m,Z.total_in+=m,I=m);G.lookahead+=I;if(G.lookahead+G.insert>=3)for(R=G.strstart-G.insert,G.ins_h=G.window[R],G.ins_h=(G.ins_h<<G.hash_shift^G.window[R+1])&G.hash_mask;G.insert&&!(G.ins_h=(G.ins_h<<G.hash_shift^G.window[R+3-1])&G.hash_mask,G.prev[R&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=R,R++,G.insert--,G.lookahead+G.insert<3););}while(G.lookahead<262&&G.strm.avail_in!==0)};
sIC=function(G,c){for(var I;;){if(G.lookahead<262){jv(G);if(G.lookahead<262&&c===0)return 1;if(G.lookahead===0)break}I=0;G.lookahead>=3&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,I=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);I!==0&&G.strstart-I<=G.w_size-262&&(G.match_length=bEi(G,I));if(G.match_length>=3)if(I=pj(G,G.strstart-G.match_start,G.match_length-3),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=3){G.match_length--;
do G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart;while(--G.match_length!==0);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else I=pj(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(I&&(ir(G,!1),G.strm.avail_out===0))return 1}G.insert=G.strstart<2?G.strstart:2;return c===4?(ir(G,
!0),G.strm.avail_out===0?3:4):G.last_lit&&(ir(G,!1),G.strm.avail_out===0)?1:2};
x$=function(G,c){for(var I,R;;){if(G.lookahead<262){jv(G);if(G.lookahead<262&&c===0)return 1;if(G.lookahead===0)break}I=0;G.lookahead>=3&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,I=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);G.prev_length=G.match_length;G.prev_match=G.match_start;G.match_length=2;I!==0&&G.prev_length<G.max_lazy_match&&G.strstart-I<=G.w_size-262&&(G.match_length=bEi(G,I),G.match_length<=5&&(G.strategy===1||G.match_length===3&&
G.strstart-G.match_start>4096)&&(G.match_length=2));if(G.prev_length>=3&&G.match_length<=G.prev_length){R=G.strstart+G.lookahead-3;I=pj(G,G.strstart-1-G.prev_match,G.prev_length-3);G.lookahead-=G.prev_length-1;G.prev_length-=2;do++G.strstart<=R&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);while(--G.prev_length!==0);G.match_available=0;G.match_length=2;G.strstart++;if(I&&(ir(G,!1),G.strm.avail_out===0))return 1}else if(G.match_available){if((I=
pj(G,0,G.window[G.strstart-1]))&&ir(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return 1}else G.match_available=1,G.strstart++,G.lookahead--}G.match_available&&(pj(G,0,G.window[G.strstart-1]),G.match_available=0);G.insert=G.strstart<2?G.strstart:2;return c===4?(ir(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(ir(G,!1),G.strm.avail_out===0)?1:2};
LcA=function(G,c){for(var I,R,Z,K=G.window;;){if(G.lookahead<=258){jv(G);if(G.lookahead<=258&&c===0)return 1;if(G.lookahead===0)break}G.match_length=0;if(G.lookahead>=3&&G.strstart>0&&(R=G.strstart-1,I=K[R],I===K[++R]&&I===K[++R]&&I===K[++R])){for(Z=G.strstart+258;I===K[++R]&&I===K[++R]&&I===K[++R]&&I===K[++R]&&I===K[++R]&&I===K[++R]&&I===K[++R]&&I===K[++R]&&R<Z;);G.match_length=258-(Z-R);G.match_length>G.lookahead&&(G.match_length=G.lookahead)}G.match_length>=3?(I=pj(G,1,G.match_length-3),G.lookahead-=
G.match_length,G.strstart+=G.match_length,G.match_length=0):(I=pj(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++);if(I&&(ir(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return c===4?(ir(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(ir(G,!1),G.strm.avail_out===0)?1:2};
Aib=function(G,c){for(var I;;){if(G.lookahead===0&&(jv(G),G.lookahead===0)){if(c===0)return 1;break}G.match_length=0;I=pj(G,0,G.window[G.strstart]);G.lookahead--;G.strstart++;if(I&&(ir(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return c===4?(ir(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(ir(G,!1),G.strm.avail_out===0)?1:2};
t$=function(G,c,I,R,Z){this.good_length=G;this.max_lazy=c;this.nice_length=I;this.max_chain=R;this.func=Z};
$Di=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 A$.Buf16(1146);this.dyn_dtree=new A$.Buf16(122);this.bl_tree=new A$.Buf16(78);zc(this.dyn_ltree);zc(this.dyn_dtree);zc(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new A$.Buf16(16);this.heap=new A$.Buf16(573);zc(this.heap);this.heap_max=this.heap_len=0;this.depth=new A$.Buf16(573);zc(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};
SUq=function(G,c){if(!G||!G.state||c>5||c<0)return G?VN(G,-2):-2;var I=G.state;if(!G.output||!G.input&&G.avail_in!==0||I.status===666&&c!==4)return VN(G,G.avail_out===0?-5:-2);I.strm=G;var R=I.last_flush;I.last_flush=c;if(I.status===42)if(I.wrap===2)G.adler=0,fj(I,31),fj(I,139),fj(I,8),I.gzhead?(fj(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),fj(I,I.gzhead.time&255),fj(I,I.gzhead.time>>8&255),fj(I,I.gzhead.time>>16&255),fj(I,I.gzhead.time>>
24&255),fj(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),fj(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(fj(I,I.gzhead.extra.length&255),fj(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(G.adler=rJ(G.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(fj(I,0),fj(I,0),fj(I,0),fj(I,0),fj(I,0),fj(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),fj(I,3),I.status=113);else{var Z=8+(I.w_bits-8<<4)<<8;Z|=(I.strategy>=2||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6;I.strstart!==0&&(Z|=
32);I.status=113;Bl(I,Z+(31-Z%31));I.strstart!==0&&(Bl(I,G.adler>>>16),Bl(I,G.adler&65535));G.adler=1}if(I.status===69)if(I.gzhead.extra){for(Z=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>Z&&(G.adler=rJ(G.adler,I.pending_buf,I.pending-Z,Z)),Eo(G),Z=I.pending,I.pending!==I.pending_buf_size));)fj(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++;I.gzhead.hcrc&&I.pending>Z&&(G.adler=rJ(G.adler,I.pending_buf,I.pending-Z,Z));I.gzindex===I.gzhead.extra.length&&
(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){Z=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>Z&&(G.adler=rJ(G.adler,I.pending_buf,I.pending-Z,Z)),Eo(G),Z=I.pending,I.pending===I.pending_buf_size)){var K=1;break}K=I.gzindex<I.gzhead.name.length?I.gzhead.name.charCodeAt(I.gzindex++)&255:0;fj(I,K)}while(K!==0);I.gzhead.hcrc&&I.pending>Z&&(G.adler=rJ(G.adler,I.pending_buf,I.pending-Z,Z));K===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===
91)if(I.gzhead.comment){Z=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>Z&&(G.adler=rJ(G.adler,I.pending_buf,I.pending-Z,Z)),Eo(G),Z=I.pending,I.pending===I.pending_buf_size)){K=1;break}K=I.gzindex<I.gzhead.comment.length?I.gzhead.comment.charCodeAt(I.gzindex++)&255:0;fj(I,K)}while(K!==0);I.gzhead.hcrc&&I.pending>Z&&(G.adler=rJ(G.adler,I.pending_buf,I.pending-Z,Z));K===0&&(I.status=103)}else I.status=103;I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&Eo(G),
I.pending+2<=I.pending_buf_size&&(fj(I,G.adler&255),fj(I,G.adler>>8&255),G.adler=0,I.status=113)):I.status=113);if(I.pending!==0){if(Eo(G),G.avail_out===0)return I.last_flush=-1,0}else if(G.avail_in===0&&(c<<1)-(c>4?9:0)<=(R<<1)-(R>4?9:0)&&c!==4)return VN(G,-5);if(I.status===666&&G.avail_in!==0)return VN(G,-5);if(G.avail_in!==0||I.lookahead!==0||c!==0&&I.status!==666){R=I.strategy===2?Aib(I,c):I.strategy===3?LcA(I,c):h$[I.level].func(I,c);if(R===3||R===4)I.status=666;if(R===1||R===3)return G.avail_out===
0&&(I.last_flush=-1),0;if(R===2&&(c===1?(so(I,2,3),Lj(I,256,J$),I.bi_valid===16?(k$(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)):c!==5&&(so(I,0,3),OEb(I,0,0),c===3&&(zc(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),Eo(G),G.avail_out===0))return I.last_flush=-1,0}if(c!==4)return 0;if(I.wrap<=0)return 1;I.wrap===2?(fj(I,G.adler&255),fj(I,G.adler>>8&255),fj(I,G.adler>>16&255),fj(I,G.adler>>24&255),fj(I,
G.total_in&255),fj(I,G.total_in>>8&255),fj(I,G.total_in>>16&255),fj(I,G.total_in>>24&255)):(Bl(I,G.adler>>>16),Bl(I,G.adler&65535));Eo(G);I.wrap>0&&(I.wrap=-I.wrap);return I.pending!==0?0:1};
pHb=function(G){if(!(this instanceof pHb))return new pHb(G);G=this.options=A$.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},G||{});G.raw&&G.windowBits>0?G.windowBits=-G.windowBits:G.gzip&&G.windowBits>0&&G.windowBits<16&&(G.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Mxg;this.strm.avail_out=0;var c=this.strm;var I=G.level,R=G.method,Z=G.windowBits,K=G.memLevel,m=G.strategy;if(c){var a=1;I===-1&&(I=6);Z<0?(a=0,Z=-Z):Z>15&&
(a=2,Z-=16);if(K<1||K>9||R!==8||Z<8||Z>15||I<0||I>9||m<0||m>4)c=VN(c,-2);else{Z===8&&(Z=9);var O=new $Di;c.state=O;O.strm=c;O.wrap=a;O.gzhead=null;O.w_bits=Z;O.w_size=1<<O.w_bits;O.w_mask=O.w_size-1;O.hash_bits=K+7;O.hash_size=1<<O.hash_bits;O.hash_mask=O.hash_size-1;O.hash_shift=~~((O.hash_bits+3-1)/3);O.window=new A$.Buf8(O.w_size*2);O.head=new A$.Buf16(O.hash_size);O.prev=new A$.Buf16(O.w_size);O.lit_bufsize=1<<K+6;O.pending_buf_size=O.lit_bufsize*4;O.pending_buf=new A$.Buf8(O.pending_buf_size);
O.d_buf=O.lit_bufsize;O.l_buf=3*O.lit_bufsize;O.level=I;O.strategy=m;O.method=R;if(c&&c.state){c.total_in=c.total_out=0;c.data_type=2;I=c.state;I.pending=0;I.pending_out=0;I.wrap<0&&(I.wrap=-I.wrap);I.status=I.wrap?42:113;c.adler=I.wrap===2?0:1;I.last_flush=0;if(!Vx8){R=Array(16);for(K=m=0;K<28;K++)for(qUT[K]=m,Z=0;Z<1<<lbg[K];Z++)$$[m++]=K;$$[m-1]=K;for(K=m=0;K<16;K++)for(Fc8[K]=m,Z=0;Z<1<<wHq[K];Z++)Sv[m++]=K;for(m>>=7;K<30;K++)for(Fc8[K]=m<<7,Z=0;Z<1<<wHq[K]-7;Z++)Sv[256+m++]=K;for(Z=0;Z<=15;Z++)R[Z]=
0;for(Z=0;Z<=143;)J$[Z*2+1]=8,Z++,R[8]++;for(;Z<=255;)J$[Z*2+1]=9,Z++,R[9]++;for(;Z<=279;)J$[Z*2+1]=7,Z++,R[7]++;for(;Z<=287;)J$[Z*2+1]=8,Z++,R[8]++;mDB(J$,287,R);for(Z=0;Z<30;Z++)Wl[Z*2+1]=5,Wl[Z*2]=QIg(Z,5);zSp=new KcB(J$,lbg,257,286,15);EaA=new KcB(Wl,wHq,0,30,15);Jir=new KcB([],Wcb,0,19,7);Vx8=!0}I.l_desc=new Puq(I.dyn_ltree,zSp);I.d_desc=new Puq(I.dyn_dtree,EaA);I.bl_desc=new Puq(I.bl_tree,Jir);I.bi_buf=0;I.bi_valid=0;abg(I);I=0}else I=VN(c,-2);I===0&&(c=c.state,c.window_size=2*c.w_size,zc(c.head),
c.max_lazy_match=h$[c.level].max_lazy,c.good_match=h$[c.level].good_length,c.nice_match=h$[c.level].nice_length,c.max_chain_length=h$[c.level].max_chain,c.strstart=0,c.block_start=0,c.lookahead=0,c.insert=0,c.match_length=c.prev_length=2,c.match_available=0,c.ins_h=0);c=I}}else c=-2;if(c!==0)throw Error(Mt[c]);G.header&&(c=this.strm)&&c.state&&c.state.wrap===2&&(c.state.gzhead=G.header);if(G.dictionary){var N;typeof G.dictionary==="string"?N=iEq(G.dictionary):fb0.call(G.dictionary)==="[object ArrayBuffer]"?
N=new Uint8Array(G.dictionary):N=G.dictionary;G=this.strm;K=N;m=K.length;if(G&&G.state)if(N=G.state,c=N.wrap,c===2||c===1&&N.status!==42||N.lookahead)c=-2;else{c===1&&(G.adler=keT(G.adler,K,m,0));N.wrap=0;m>=N.w_size&&(c===0&&(zc(N.head),N.strstart=0,N.block_start=0,N.insert=0),I=new A$.Buf8(N.w_size),A$.arraySet(I,K,m-N.w_size,N.w_size,0),K=I,m=N.w_size);I=G.avail_in;R=G.next_in;Z=G.input;G.avail_in=m;G.next_in=0;G.input=K;for(jv(N);N.lookahead>=3;){K=N.strstart;m=N.lookahead-2;do N.ins_h=(N.ins_h<<
N.hash_shift^N.window[K+3-1])&N.hash_mask,N.prev[K&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=K,K++;while(--m);N.strstart=K;N.lookahead=2;jv(N)}N.strstart+=N.lookahead;N.block_start=N.strstart;N.insert=N.lookahead;N.lookahead=0;N.match_length=N.prev_length=2;N.match_available=0;G.next_in=R;G.input=Z;G.avail_in=I;N.wrap=c;c=0}else c=-2;if(c!==0)throw Error(Mt[c]);this._dict_set=!0}};
Bnp=function(G,c){c=c||{};c.gzip=!0;c=new pHb(c);c.push(G,!0);if(c.err)throw c.msg||Mt[c.err];return c.result};
jIO=function(G,c){var I=ri8();I&&I.publish.call(I,G.toString(),G,c)};
Cu0=function(G,c,I){var R=ri8();if(!R)return 0;var Z=R.subscribe(G.toString(),function(K,m){var a=_.Yc("ytPubsub2Pubsub2SkipSubKey");a&&a==Z||(a=function(){if(xDr[Z])try{if(m&&G instanceof txO&&G!=K)try{var O=G.dataClass,N=m;if(!N.args||!N.version)throw Error("$c");try{if(!O.version_){var q=new O;O.version_=q.version}var w=O.version_}catch(F){}if(!w||N.version!=w)throw Error("ad");try{m=Reflect.construct(O,_.jr(N.args))}catch(F){throw F.message="yt.pubsub2.Data.deserialize(): "+F.message,F;}}catch(F){throw F.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+G.toString()+": "+F.message,F;}c.call(I||window,m)}catch(F){_.yL(F)}},hSi[G.toString()]?_.Yc("yt.scheduler.instance")?_.dJ.addLowPriorityJob(a):_.k6(a,0):a())});
xDr[Z]=!0;dD8[G.toString()]||(dD8[G.toString()]=[]);dD8[G.toString()].push(Z);return Z};
gap=function(){var G=HEO,c=Cu0(XH0,function(I){G.apply(void 0,arguments);yiA(c)});
return c};
yiA=function(G){var c=ri8();c&&(typeof G==="number"&&(G=[G]),_.K4(G,function(I){c.unsubscribeByKey(I);delete xDr[I]}))};
ri8=function(){return _.Yc("ytPubsub2Pubsub2Instance")};
YUO=function(G,c,I){I=I===void 0?{sampleRate:.1}:I;Math.random()<Math.min(.02,I.sampleRate/100)&&jIO("meta_logging_csi_event",{timerName:G,timelineData:c})};
_.G1g=function(G){return G?(G=G.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Qp(G):null:null};
_.Cj=function(G){return G?(G=G.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Vx(G):null:null};
I4g=function(){ccr||(ccr=_.Cj(_.H1("WORKER_SERIALIZATION_URL")));return ccr||void 0};
_.ZH8=function(){var G=I4g();RXb||G===void 0||(RXb=sEr(G));return RXb};
_.K9b=function(){return typeof Worker==="function"&&I4g()?!0:!1};
_.a4O=function(){if(_.K9b()&&!POA){var G=function(I){I=I.data;if(I.op==="gzippedGelBatch"){var R=Qsg.get(I.key);R&&(mY0(I.gzippedBatch,R.latencyPayload,R.url,R.options,R.sendFn),Qsg.delete(I.key))}},c=_.ZH8();
c&&(c.addEventListener("message",G),c.onerror=function(){Qsg.clear()},POA=!0)}};
wBT=function(G,c,I,R,Z){Z=Z===void 0?!1:Z;var K={startTime:(0,_.Fa)(),ticks:{},infos:{}};if(Hl)try{var m=TDi(c);if(m!=null&&(m>OH0||m<eXr))R(G,I);else{if(_.v("gzip_gel_with_worker")&&(_.v("initial_gzip_use_main_thread")&&!NDg||!_.v("initial_gzip_use_main_thread"))){POA||_.a4O();var a=_.ZH8();if(a&&!Z){Qsg.set(l4O,{latencyPayload:K,url:G,options:I,sendFn:R});a.postMessage({op:"gelBatchToGzip",serializedBatch:c,key:l4O});l4O++;return}}var O=Bnp(qmO(c));mY0(O,K,G,I,R)}}catch(N){_.Ra(N),R(G,I)}else R(G,
I)};
mY0=function(G,c,I,R,Z){NDg=!1;var K=(0,_.Fa)();c.ticks.gelc=K;Xa++;_.v("disable_compression_due_to_performance_degredation")&&K-c.startTime>=F9r&&(nWp++,Hl=!1);vWi(c);R.headers||(R.headers={});R.headers["Content-Encoding"]="gzip";R.postBody=G;R.postParams=void 0;Z(I,R)};
oWp=function(G){var c=c===void 0?!1:c;var I=I===void 0?!1:I;var R=(0,_.Fa)(),Z={startTime:R,ticks:{},infos:{}},K=c?_.Yc("yt.logging.gzipForFetch",!1):!0;if(Hl&&K){if(!G.body)return G;try{var m=I?G.body:typeof G.body==="string"?G.body:JSON.stringify(G.body);K=m;if(!I&&typeof m==="string"){var a=TDi(m);if(a!=null&&(a>OH0||a<eXr))return G;I=c?{level:1}:void 0;K=Bnp(qmO(m),I);var O=(0,_.Fa)();Z.ticks.gelc=O;if(c){Xa++;if((_.v("disable_compression_due_to_performance_degredation")||_.v("disable_compression_due_to_performance_degradation_lr"))&&
O-R>=F9r)if(nWp++,_.v("abandon_compression_after_N_slow_zips_lr")){c=nWp/Xa;var N=DYb/_.DH("compression_disable_point");Xa>0&&Xa%_.DH("compression_disable_point")===0&&c>=N&&(Hl=!1)}else Hl=!1;vWi(Z)}}G.headers=Object.assign({},{"Content-Encoding":"gzip"},G.headers||{});G.body=K;return G}catch(q){return _.Ra(q),G}}else return G};
TDi=function(G){try{return(new Blob(G.split(""))).size}catch(c){return _.Ra(c),null}};
vWi=function(G){_.v("gel_compression_csi_killswitch")||!_.v("log_gel_compression_latency")&&!_.v("log_gel_compression_latency_lr")||YUO("gel_compression",G,{sampleRate:.1})};
UYB=function(){this.blockSize=-1};
yN=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var G=1;G<this.blockSize;++G)this.pad_[G]=0;this.total_=this.inbuf_=0;this.reset()};
bHU=function(G){G=Object.assign({},G);delete G.Authorization;var c=_.uZ8();if(c){var I=new yN;I.update(_.H1("INNERTUBE_API_KEY"));I.update(c);G.hash=_.zr(I.digest(),3)}return G};
Y$=function(){k1U||(k1U=new _.gJ("yt.innertube"));return k1U};
ssq=function(G,c,I,R){if(R)return null;R=Y$().get("nextId",!0)||1;var Z=Y$().get("requests",!0)||{};Z[R]={method:G,request:c,authState:bHU(I),requestTime:Math.round((0,_.Fa)())};Y$().set("nextId",R+1,86400,!0);Y$().set("requests",Z,86400,!0);return R};
L9T=function(G){var c=Y$().get("requests",!0)||{};delete c[G];Y$().set("requests",c,86400,!0)};
$YO=function(G){var c=Y$().get("requests",!0);if(c){for(var I in c){var R=c[I];if(!(Math.round((0,_.Fa)())-R.requestTime<6E4)){var Z=R.authState,K=bHU(_.RSq(!1));_.rx.equals(Z,K)&&(Z=R.request,"requestTimeMs"in Z&&(Z.requestTimeMs=Math.round((0,_.Fa)())),Acr(G,R.method,Z,{}));delete c[I]}}Y$().set("requests",c,86400,!0)}};
SmC=function(G){var c;return(G=G==null?void 0:(c=G.error)==null?void 0:c.code)&&G>=400&&G<=599?!1:!0};
pBT=function(G){var c;G=G==null?void 0:(c=G.error)==null?void 0:c.code;return!(G!==400&&G!==415)};
VDC=function(){if(MDO)return MDO();var G={};MDO=wJ("LogsDatabaseV2",{objectStores:(G.LogsRequestsStore={addedAtVersion:2},G),shared:!1,upgrade:function(c,I,R){I(2)&&Ga(c,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});I(3);I(5)&&(R=R.objectStore("LogsRequestsStore"),R.JSC$10850_wrapped.indexNames.contains("newRequest")&&R.JSC$10850_wrapped.deleteIndex("newRequest"),c_(R,"newRequestV2",["status","interface","timestamp"]));I(7)&&c.JSC$10835_wrapped.objectStoreNames.contains("sapisid")&&c.JSC$10835_wrapped.deleteObjectStore("sapisid");
I(9)&&c.JSC$10835_wrapped.objectStoreNames.contains("SWHealthLog")&&c.JSC$10835_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return MDO()};
Ix=function(G){return _.m_(VDC(),G)};
EWr=function(G,c){var I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return I={startTime:(0,_.Fa)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},m.yield(Ix(c),2);if(m.nextAddress!=3)return R=m.yieldResult,Z=Object.assign({},G,{options:JSON.parse(JSON.stringify(G.options)),interface:_.H1("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),m.yield(R.put("LogsRequestsStore",Z),3);K=m.yieldResult;I.ticks.tc=(0,_.Fa)();zXB(I);return m.return(K)})};
Jc8=function(G,c){var I,R,Z,K,m,a,O,N,q;return _.T(function(w){if(w.nextAddress==1)return I={startTime:(0,_.Fa)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},w.yield(Ix(c),2);if(w.nextAddress!=3)return R=w.yieldResult,Z=_.H1("INNERTUBE_CONTEXT_CLIENT_NAME",0),K=[G,Z,0],m=[G,Z,(0,_.Fa)()],a=IDBKeyRange.bound(K,m),O="prev",_.v("use_fifo_for_networkless")&&(O="next"),N=void 0,q=G==="NEW"?"readwrite":"readonly",_.v("use_readonly_for_get_most_recent_by_status_killswitch")&&(q="readwrite"),
w.yield(_.az(R,["LogsRequestsStore"],{mode:q,enableRetries:!0},function(F){return _.nj(F.objectStore("LogsRequestsStore").index("newRequestV2"),{query:a,direction:O},function(n){n.getValue()&&(N=n.getValue(),G==="NEW"&&(N.status="QUEUED",n.update(N)))})}),3);
I.ticks.tc=(0,_.Fa)();zXB(I);return w.return(N)})};
W9r=function(G,c){var I;return _.T(function(R){if(R.nextAddress==1)return R.yield(Ix(c),2);I=R.yieldResult;return R.return(_.az(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Z){var K=Z.objectStore("LogsRequestsStore");return K.get(G).then(function(m){if(m)return m.status="QUEUED",K.put(m).then(function(){return m})})}))})};
iHU=function(G,c,I,R){I=I===void 0?!0:I;var Z;return _.T(function(K){if(K.nextAddress==1)return K.yield(Ix(c),2);Z=K.yieldResult;return K.return(_.az(Z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(m){var a=m.objectStore("LogsRequestsStore");return a.get(G).then(function(O){return O?(O.status="NEW",I&&(O.sendCount+=1),R!==void 0&&(O.options.compress=R),a.put(O).then(function(){return O})):cl.resolve(void 0)})}))})};
f4p=function(G,c){var I;return _.T(function(R){if(R.nextAddress==1)return R.yield(Ix(c),2);I=R.yieldResult;return R.return(I.delete("LogsRequestsStore",G))})};
BDO=function(G){var c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(Ix(G),2);c=R.yieldResult;I=(0,_.Fa)()-2592E6;return R.yield(_.az(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Z){return Oo(Z.objectStore("LogsRequestsStore"),{},function(K){if(K.getValue().timestamp<=I)return K.delete().then(function(){return K.continue()})})}),0)})};
rcp=function(){_.T(function(G){return G.yield(S4q("LogsDatabaseV2"),0)})};
zXB=function(G){_.v("nwl_csi_killswitch")||YUO("networkless_performance",G,{sampleRate:1})};
_.xY8=function(G){return _.m_(jsr(),G)};
tDC=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(_.xY8(G),2);c=R.yieldResult;I=(0,_.Fa)()-2592E6;return R.yield(_.az(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Z){return Oo(Z.objectStore("SWHealthLog"),{},function(K){if(K.getValue().timestamp<=I)return K.delete().then(function(){return K.continue()})})}),0)})};
hX0=function(G){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(_.xY8(G),2);c=I.yieldResult;return I.yield(c.clear("SWHealthLog"),0)})};
_.Rx=function(G,c,I,R,Z,K,m){Z=Z===void 0?"":Z;K=K===void 0?!1:K;m=m===void 0?!1:m;if(G)if(I&&!yU("cobalt"))_.Ra(new _.iW("Legacy referrer-scrubbed ping detected")),G&&dYC(G,void 0,{scrubReferrer:!0});else if(Z)D2r(G,c,"POST",Z,R);else if(_.H1("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||R||m)D2r(G,c,"GET","",R,void 0,K,m);else{b:{try{c:{var a=new COO({url:G});if(a.urlParamValues_.dsh==="1")var O=null;else{var N=a.urlParamValues_.ae;if(N==="1"){var q=a.urlParamValues_.adurl;if(q)try{O={version:3,directUrl:decodeURIComponent(q),
asyncUrl:CVr(a.JSC$9645_url_,"act=1","ri=1",HH8(a))};break c}catch(U){}}O=N==="2"?{version:4,directUrl:CVr(a.JSC$9645_url_,"dct=1","suid="+a.suid_,"ri=1"),asyncUrl:CVr(a.JSC$9645_url_,"act=1","ri=1","suid="+a.suid_)}:null}}if(O){var w=_.Aw(G);var F=!(!w||!w.endsWith("/aclk")||_.Gy(G,"ri")!=="1");break b}}catch(U){}F=!1}if(F){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(G,"")){var n=!0;break b}}catch(U){}n=!1}n?(c&&c(),I=!0):I=!1}else I=!1;I||dYC(G,c)}};
dYC=function(G,c,I){I=I===void 0?{}:I;var R=new Image,Z=""+XB0++;ycp[Z]=R;R.onload=R.onerror=function(){c&&ycp[Z]&&c();delete ycp[Z]};
I.scrubReferrer&&(R.referrerPolicy="no-referrer");R.src=G};
Z6=function(G,c){gWA(G,c==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Ymq=function(G){var c;return((c=document.featurePolicy)==null?0:c.allowedFeatures().includes("attribution-reporting"))?G+"&nis=6":G+"&nis=5"};
GzB=function(G){if(!G)return!1;try{var c;if(((c=_.PK(G))==null?void 0:c.asm)==="4")return!0}catch(I){_.yL(I)}return!1};
gWA=function(G,c){c?(G=Ymq(G),_.Rx(G,void 0,void 0,void 0,"",!0,!0)):_.Rx(G)};
IPp=function(){cN8||(cN8=new _.gJ("yt.offline"));return cN8};
RGr=function(G){if(_.v("offline_error_handling")){var c=IPp().get("errors",!0)||{};c[G.message]={name:G.name,stack:G.stack};G.level&&(c[G.message].level=G.level);IPp().set("errors",c,2592E3,!0)}};
Kw0=function(G,c,I,R){R=R===void 0?!1:R;c=_.v("web_fp_via_jspb")?Object.assign({},c):c;_.v("use_cfr_monitor")&&Zdb(G,c);if(_.v("use_request_time_ms_header"))c.headers&&NR(G)&&(c.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Fa)())));else{var Z;if((Z=c.postParams)==null?0:Z.requestTimeMs)c.postParams.requestTimeMs=Math.round((0,_.Fa)())}I&&Object.keys(c).length===0?_.Rx(G):c.compress?c.postBody?(typeof c.postBody!=="string"&&(c.postBody=JSON.stringify(c.postBody)),wBT(G,c.postBody,
c,_.$6,R)):wBT(G,JSON.stringify(c.postParams),c,bCf,R):_.$6(G,c)};
PDf=function(G,c){_.v("use_event_time_ms_header")&&NR(G)&&(c.headers||(c.headers={}),c.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Fa)())));return c};
_.mCf=function(){QJ0||(QJ0=new _.Kk({logOfflineErrors:!0,enablePolling:!0}));return QJ0};
Zdb=function(G,c){var I=c.onError?c.onError:function(){};
c.onError=function(Z,K){P_().requestComplete(G,!1);I(Z,K)};
var R=c.onSuccess?c.onSuccess:function(){};
c.onSuccess=function(Z,K){P_().requestComplete(G,!0);R(Z,K)}};
_.aPU=function(){return _.O2(document.location.toString())!=="www.youtube-nocookie.com"};
_.eGT=function(){return _.Yc("ytNetworklessLoggingInitializationOptions")?_.T0r.isNwlInitialized:_.Odi};
N0g=function(G,c){if(_.v("polymer_on_demand_shady_dom")){var I;var R=(I=G.__shady_native_firstElementChild)!=null?I:G.firstElementChild}else R=G.firstElementChild;for(;R;){if(G=c(R)?R:N0g(R,c))return G;R=R.nextElementSibling}return null};
qnU=function(){var G=document;if("visibilityState"in G)return G.visibilityState;var c=lPq+"VisibilityState";if(c in G)return G[c]};
_.wIi=function(G,c){var I;QG(G,function(R){I=c[R];return!!I});
return I};
_.ax=function(G){var c=Fwr(G);c?c.focus(void 0):_.mp(G)};
Fwr=function(G){return(G=N0g(G,function(c){return _.Ta(c)?nC0(c)&&!!c.offsetParent:!1}))?G:null};
_.mp=function(G,c){G.hasAttribute("tabindex")||G.setAttribute("tabindex","-1");G.focus(c)};
vCg=function(G,c,I,R){R=R===void 0?{}:R;G.addEventListener&&(c!="mouseenter"||"onmouseenter"in document?c!="mouseleave"||"onmouseenter"in document?c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"):c="mouseout":c="mouseover");return _.rx.findKey(Of,function(Z){var K=typeof Z[4]==="boolean"&&Z[4]==!!R,m=_.db(Z[4])&&_.db(R)&&_.rx.equals(Z[4],R);return!!Z.length&&Z[0]==G&&Z[1]==c&&Z[2]==I&&(K||m)})};
_.Nb=function(G,c,I,R){R=R===void 0?{}:R;if(!G||!G.addEventListener&&!G.attachEvent)return"";var Z=vCg(G,c,I,R);if(Z)return Z;Z=++DCB.count+"";var K=!(c!="mouseenter"&&c!="mouseleave"||!G.addEventListener||"onmouseenter"in document);var m=K?function(a){a=new ec(a);if(!_.H6(a.relatedTarget,function(O){return O==G},!0))return a.currentTarget=G,a.type=c,I.call(G,a)}:function(a){a=new ec(a);
a.currentTarget=G;return I.call(G,a)};
m=_.gK(m);G.addEventListener?(c=="mouseenter"&&K?c="mouseover":c=="mouseleave"&&K?c="mouseout":c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"),oCp()||typeof R==="boolean"?G.addEventListener(c,m,R):G.addEventListener(c,m,!!R.capture)):G.attachEvent("on"+c,m);Of[Z]=[G,c,I,m,R];return Z};
_.uPb=function(G,c,I){var R=R===void 0?{}:R;var Z=_.Nb(G,c,function(){_.UCA(Z);I.apply(G,arguments)},R)};
_.UCA=function(G){G&&(typeof G=="string"&&(G=[G]),_.K4(G,function(c){if(c in Of){var I=Of[c],R=I[0],Z=I[1],K=I[3];I=I[4];R.removeEventListener?oCp()||typeof I==="boolean"?R.removeEventListener(Z,K,I):R.removeEventListener(Z,K,!!I.capture):R.detachEvent&&R.detachEvent("on"+Z,K);delete Of[c]}}))};
lB=function(G){this.callback_=G;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(G=0;G<4;G++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Nb(window,"mousemove",(0,_.WD)(this.onMouseMove_,this));this.timerId_=_.s2((0,_.WD)(this.checkPosition_,this),25)};
sJB=function(){var G={};var c=G.preferMobileEvents===void 0?!1:G.preferMobileEvents;G=G.enableScrollEventListener===void 0?!0:G.enableScrollEventListener;if(_.Yc("_lact",window)==null){var I=parseInt(_.H1("LACT"),10);I=isFinite(I)?Date.now()-Math.max(I,0):-1;_.lr("_lact",I,window);_.lr("_fact",I,window);I==-1&&_.qb();bdO(window,c,G);new lB(function(){kzU("mouse",100)})}};
bdO=function(G,c,I){c=c===void 0?!1:c;I=I===void 0?!0:I;_.Nb(G.document,"keydown",_.qb);_.Nb(G.document,"keyup",_.qb);_.Nb(G.document,"mousedown",_.qb);_.Nb(G.document,"mouseup",_.qb);c?_.Nb(G,"touchmove",function(){kzU("touchmove",200)},{passive:!0}):(_.Nb(G,"resize",function(){kzU("resize",200)}),I&&_.Nb(G,"scroll",function(){kzU("scroll",200)}));
_.Nb(G.document,"touchstart",_.qb,{passive:!0});_.Nb(G.document,"touchend",_.qb,{passive:!0})};
kzU=function(G,c){Lwr[G]||(Lwr[G]=!0,_.dJ.addLowPriorityJob(function(){_.qb();Lwr[G]=!1},c))};
_.qb=function(){_.Yc("_lact",window)==null&&sJB();var G=Date.now();_.lr("_lact",G,window);_.Yc("_fact",window)==-1&&_.lr("_fact",G,window);(G=_.Yc("ytglobal.ytUtilActivityCallback_"))&&G()};
_.wj=function(){var G=_.Yc("_lact",window);return G==null?-1:Math.max(Date.now()-G,0)};
_.D6=function(G,c,I){var R=_.F4();if(R&&c){var Z=R.subscribe(G,function(){var K=arguments,m=function(){nk[Z]&&c.apply&&typeof c.apply=="function"&&c.apply(I||window,K)};
try{_.ANq[G]?m():_.k6(m,0)}catch(a){_.yL(a)}},I);
nk[Z]=!0;v_[G]||(v_[G]=[]);v_[G].push(Z);return Z}return 0};
_.$CU=function(G){var c=_.F4();c&&(typeof G==="number"?G=[G]:typeof G==="string"&&(G=[parseInt(G,10)]),_.K4(G,function(I){c.unsubscribeByKey(I);delete nk[I]}))};
_.SnO=function(G,c){var I=_.F4();I&&I.publish.apply(I,arguments)};
_.MkC=function(G){var c=_.F4();if(c)if(c.clear(G),G)pIp(G);else for(var I in v_)pIp(I)};
_.F4=function(){return _.Rq.ytPubsubPubsubInstance};
pIp=function(G){v_[G]&&(G=v_[G],_.K4(G,function(c){nk[c]&&delete nk[c]}),G.length=0)};
Vk0=function(){var G,c;return"h5vcc"in ox&&((G=ox.h5vcc.traceEvent)==null?0:G.traceBegin)&&((c=ox.h5vcc.traceEvent)==null?0:c.traceEnd)?1:"performance"in ox&&ox.performance.mark&&ox.performance.measure?2:0};
zGr=function(G){var c=Vk0();switch(c){case 1:ox.h5vcc.traceEvent.traceBegin("YTLR",G);break;case 2:ox.performance.mark(G+"-start");break;case 0:break;default:_.H0(c,"unknown trace type")}};
ECT=function(G){var c=Vk0();switch(c){case 1:ox.h5vcc.traceEvent.traceEnd("YTLR",G);break;case 2:c=G+"-start";var I=G+"-end";ox.performance.mark(I);ox.performance.measure(G,c,I);break;case 0:break;default:_.H0(c,"unknown trace type")}};
JNT=function(G){var c,I;(I=(c=window).onerror)==null||I.call(c,G.message,"",0,0,G)};
Wwi=function(G){if(_.v("web_lifecycle_error_handling_killswitch"))return G();try{return G()}catch(c){JNT(c)}};
idA=function(G){return[G.auth===void 0?"undefined":G.auth,G.isJspb===void 0?"undefined":G.isJspb,G.cttAuthInfo===void 0?"undefined":G.cttAuthInfo,G.tier===void 0?"undefined":G.tier].join("/")};
_.D=function(G,c){if(G)return G[c.name]};
uB=function(){var G=_.Yc("yt.logging.ims");G||(G=new Uf,_.lr("yt.logging.ims",G));return G};
CDb=function(G,c){if(G.endpoint==="log_event"){fPC(G);var I=B0O(G),R=rNT(G.payload)||"",Z=jJr(R),K=200;if(Z){if(Z.enabled===!1&&!_.v("web_payload_policy_disabled_killswitch"))return;K=xCT(Z.tier);if(K===400){tki(G,c);return}}bB[I]=!0;I={cttAuthInfo:I,isJspb:!1,tier:K};uB().storePayload(I,G.payload);hG0(c,!1,I,dCq(R))}};
XIr=function(G,c,I){if(c.endpoint==="log_event"){fPC(void 0,c);var R=B0O(c,!0),Z=jJr(G),K=200;if(Z){if(Z.enabled===!1&&!_.v("web_payload_policy_disabled_killswitch"))return;K=xCT(Z.tier);if(K===400){HdT(G,c,I);return}}bB[R]=!0;R={cttAuthInfo:R,isJspb:!0,tier:K};uB().storePayload(R,Jd(c.payload));hG0(I,!0,R,dCq(G))}};
hG0=function(G,c,I,R){c=c===void 0?!1:c;R=R===void 0?!1:R;G&&(k7=new G);G=_.DH("tvhtml5_logging_max_batch_ads_fork")||_.DH("tvhtml5_logging_max_batch")||_.DH("web_logging_max_batch")||100;var Z=(0,_.Fa)(),K=yNr(c,I.tier),m=K.lastDebounceQueueFromLogTimeMs;R&&(K.useVideoStatsEndPoint=!0);R=0;I&&(R=uB().getSequenceCount(I));var a=function(){gCU({writeThenSend:!0},c,I.tier)};
R>=1E3?a():R>=G?YnC||(YnC=G90(function(){a();YnC=void 0},0)):Z-m>=10&&(c08(c,I.tier),K.lastDebounceQueueFromLogTimeMs=Z)};
tki=function(G,c){if(G.endpoint==="log_event"){_.v("more_accurate_gel_parser")&&uB().storePayload({isJspb:!1},G.payload);fPC(G);var I=B0O(G),R=new Map;R.set(I,[G.payload]);var Z=rNT(G.payload)||"";c&&(k7=new c);return new _.Lk(function(K,m){k7&&k7.isReady()?IXi(R,k7,K,m,{bypassNetworkless:!0},!0,dCq(Z)):K()})}};
HdT=function(G,c,I){if(c.endpoint==="log_event"){fPC(void 0,c);var R=B0O(c,!0),Z=new Map;Z.set(R,[Jd(c.payload)]);I&&(k7=new I);return new _.Lk(function(K){k7&&k7.isReady()?R8q(Z,k7,K,{bypassNetworkless:!0},!0,dCq(G)):K()})}};
B0O=function(G,c){var I="";if(G.dangerousLogToVisitorSession)I="visitorOnlyApprovedKey";else if(G.cttAuthInfo){if(c===void 0?0:c){c=G.cttAuthInfo.token;I=G.cttAuthInfo;var R=new ZQA;I.videoId?R.setVideoId(I.videoId):I.playlistId&&Ag(R,2,Kqb,DW(I.playlistId));Pfp[c]=R}else c=G.cttAuthInfo,I={},c.videoId?I.videoId=c.videoId:c.playlistId&&(I.playlistId=c.playlistId),Q10[G.cttAuthInfo.token]=I;I=G.cttAuthInfo.token}return I};
gCU=function(G,c,I){G=G===void 0?{}:G;c=c===void 0?!1:c;new _.Lk(function(R,Z){var K=yNr(c,I),m=K.useVideoStatsEndPoint;K.useVideoStatsEndPoint=!1;mxO(K.queueTimer);mxO(K.queueMaxTimer);K.queueMaxTimer=0;k7&&k7.isReady()?I===void 0&&_.v("enable_web_tiered_gel")?aXq(R,Z,G,c,300,m):aXq(R,Z,G,c,I,m):(c08(c,I),R())})};
aXq=function(G,c,I,R,Z,K){var m=k7;I=I===void 0?{}:I;R=R===void 0?!1:R;Z=Z===void 0?200:Z;K=K===void 0?!1:K;var a=new Map,O=new Map,N={isJspb:R,cttAuthInfo:void 0,tier:Z},q={isJspb:R,cttAuthInfo:void 0};if(R){c=_.Q(Object.keys(bB));for(Z=c.next();!Z.done;Z=c.next())Z=Z.value,O=_.v("enable_web_tiered_gel")?uB().smartExtractMatchingEntries({keys:[N,q],sizeLimit:1E3}):uB().extractMatchingEntries({isJspb:!0,cttAuthInfo:Z}),O.length>0&&a.set(Z,O),(_.v("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.v("web_fp_via_jspb_and_json"))&&
delete bB[Z];R8q(a,m,G,I,!1,K)}else{a=_.Q(Object.keys(bB));for(N=a.next();!N.done;N=a.next())N=N.value,q=_.v("enable_web_tiered_gel")?uB().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:N,tier:Z},{isJspb:!1,cttAuthInfo:N}],sizeLimit:1E3}):uB().extractMatchingEntries({isJspb:!1,cttAuthInfo:N}),q.length>0&&O.set(N,q),(_.v("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.v("web_fp_via_jspb_and_json"))&&delete bB[N];IXi(O,m,G,c,I,!1,K)}};
c08=function(G,c){G=G===void 0?!1:G;c=c===void 0?200:c;var I=function(){gCU({writeThenSend:!0},G,c)},R=yNr(G,c),Z=R===Tip||R===OQq?5E3:e80;
_.v("web_gel_timeout_cap")&&!R.queueMaxTimer&&(Z=G90(function(){I()},Z),R.queueMaxTimer=Z);
mxO(R.queueTimer);Z=_.H1("LOGGING_BATCH_TIMEOUT",_.DH("web_gel_debounce_ms",1E4));_.v("shorten_initial_gel_batch_timeout")&&Nig&&(Z=lXb);Z=G90(function(){_.DH("gel_min_batch_size")>0?uB().getSequenceCount({cttAuthInfo:void 0,isJspb:G,tier:c})>=q3r&&I():I()},Z);
R.queueTimer=Z};
IXi=function(G,c,I,R,Z,K,m){Z=Z===void 0?{}:Z;var a=Math.round((0,_.Fa)()),O=G.size,N=wUC(m);G=_.Q(G);var q=G.next();for(m={};!q.done;m={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},q=G.next()){var w=_.Q(q.value);q=w.next().value;w=w.next().value;m.batchRequest=_.rx.unsafeClone({context:_.Cnf(c.config_||_.vl())});if(!_.xp(w)&&!_.v("throw_err_when_logevent_malformed_killswitch")){R();break}m.batchRequest.events=w;
(w=Q10[q])&&FqC(m.batchRequest,q,w);delete Q10[q];m.dangerousLogToVisitorSession=q==="visitorOnlyApprovedKey";n5O(m.batchRequest,a,m.dangerousLogToVisitorSession);v5f(Z);m.onSuccess$jscomp$3=function(F){_.v("start_client_gcf")&&_.dJ.addLowPriorityJob(function(){return _.T(function(n){return n.yield(Dxg(F),0)})});
O--;O||I()};
m.networkFailures=0;m.onError$jscomp$5=function(F){return function(){F.networkFailures++;if(Z.bypassNetworkless&&F.networkFailures===1)try{Acr(c,N,F.batchRequest,o50({writeThenSend:!0},F.dangerousLogToVisitorSession,F.onSuccess$jscomp$3,F.onError$jscomp$5,K)),Nig=!1}catch(n){_.yL(n),R()}O--;O||I()}}(m);
try{Acr(c,N,m.batchRequest,o50(Z,m.dangerousLogToVisitorSession,m.onSuccess$jscomp$3,m.onError$jscomp$5,K)),Nig=!1}catch(F){_.yL(F),R()}}};
R8q=function(G,c,I,R,Z,K){R=R===void 0?{}:R;var m=Math.round((0,_.Fa)()),a={value:G.size},O=new Map([].concat(_.jn(G)));O=_.Q(O);for(var N=O.next();!N.done;N=O.next()){var q=_.Q(N.value).next().value,w=G.get(q);N=new UxO;var F=c.config_||_.vl(),n=new $7,U=new u6g;_.Eq(U,1,F.innertubeContextHostLanguage);_.Eq(U,2,F.innertubeContextGeoLocation);_.oz(U,16,F.innertubeContextClientNameFieldNumber);_.Eq(U,17,F.innertubeContextClientVersion);if(F.innertubeContextClientConfigInfo){var k=F.innertubeContextClientConfigInfo,
p=new ur;k.coldConfigData&&_.Eq(p,1,k.coldConfigData);k.appInstallData&&_.Eq(p,6,k.appInstallData);k.coldHashData&&_.Eq(p,3,k.coldHashData);k.hotHashData&&p.setHotHashData(k.hotHashData);_.Az(U,62,p)}(k=_.Rq.devicePixelRatio)&&k!=1&&_.Uo(U,65,_.yB(k));k=OCC();k!==""&&_.Eq(U,54,k);k=ewA();if(k.length>0){p=new bQf;for(var M=0;M<k.length;M++){var z=new Sc;z.setKey(k[M].key);Ag(z,2,k9U,DW(k[M].value));pk(p,15,Sc,z)}_.Az(n,5,p)}rXq(F,U);j6T(n);x9O(U);tCB(F,U);hRO(U);_.v("start_client_gcf")&&d9A(U);_.H1("DELEGATED_SESSION_ID")&&
!_.v("pageid_as_header_web")&&(F=new Mb,_.Eq(F,3,_.H1("DELEGATED_SESSION_ID")));!_.v("fill_delegate_context_in_gel_killswitch")&&(k=_.H1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(p=_.Dw(n,Mb,3)||new Mb,F=n,k=_.Eq(p,18,k),_.Az(F,3,k));F=U;k=_.Q(Object.entries(_.PK(_.H1("DEVICE",""))));for(p=k.next();!p.done;p=k.next())M=_.Q(p.value),p=M.next().value,M=M.next().value,p==="cbrand"?_.Eq(F,12,M):p==="cmodel"?_.Eq(F,13,M):p==="cbr"?_.Eq(F,87,M):p==="cbrver"?_.Eq(F,88,M):p==="cos"?_.Eq(F,18,
M):p==="cosver"?_.Eq(F,19,M):p==="cplatform"&&_.oz(F,42,rHU(M));n.setClient(U);_.Az(N,1,n);if(U=Pfp[q])a:{if(_.AK(U,VG(U,Kqb,1)))n=1;else if(U.getPlaylistId())n=2;else break a;_.Az(N,4,U);U=N.getContext()||new $7;F=_.Dw(U,Mb,3)||new Mb;k=new za;k.setToken(q);_.oz(k,1,n);pk(F,12,za,k);_.Az(U,3,F)}delete Pfp[q];q=q==="visitorOnlyApprovedKey";s1b()||_.Ef(N,2,m);!q&&(n=_.H1("EVENT_ID"))&&(U=Lqq(),F=new A0O,_.Eq(F,1,n),_.Ef(F,2,U),_.Az(N,5,F));v5f(R);if(_.v("jspb_serialize_with_worker")&&(n=_.ZH8())&&
R.writeThenSend){_.$xB.set(S3i,{client:c,resolve:I,networklessOptions:R,isIsolated:Z,useVSSEndpoint:K,dangerousLogToVisitorSession:q,requestsOutstanding:a});n.postMessage({op:"gelBatchToSerialize",batchRequest:Jd(N),clientEvents:w,key:S3i});S3i++;break}if(w){n=[];for(U=0;U<w.length;U++)try{n.push(new Jg(w[U]))}catch(t){_.yL(new _.iW("Transport failed to deserialize "+String(w[U])))}w=n}else w=[];w=_.Q(w);for(n=w.next();!n.done;n=w.next())pk(N,3,Jg,n.value);w={startTime:(0,_.Fa)(),ticks:{},infos:{}};
N=N.serialize();w.ticks.geljspc=(0,_.Fa)();_.v("log_jspb_serialize_latency")&&YUO("gel_jspb_serialize",w,{sampleRate:.1});_.pUO(N,c,I,R,Z,K,q,a)}};
_.pUO=function(G,c,I,R,Z,K,m,a){R=R===void 0?{}:R;a=a===void 0?{value:0}:a;K=wUC(K);R=o50(R,m,function(O){_.v("start_client_gcf")&&_.dJ.addLowPriorityJob(function(){return _.T(function(N){return N.yield(Dxg(O),0)})});
a.value--;a.value||I()},function(){a.value--;
a.value||I()},Z);
R.headers["Content-Type"]="application/json+protobuf";R.postBodyFormat="JSPB";R.postBody=G;Acr(c,K,"",R);Nig=!1};
v5f=function(G){_.v("always_send_and_write")&&(G.writeThenSend=!1)};
o50=function(G,c,I,R,Z){G={retry:!0,onSuccess:I,onError:R,networklessOptions:G,dangerousLogToVisitorSession:c,bypassMonitoring:!!Z,headers:{},postBodyFormat:"",postBody:"",compress:_.v("compress_gel")||_.v("compress_gel_lr")};s1b()&&(G.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Fa)())));return G};
n5O=function(G,c,I){s1b()||(G.requestTimeMs=String(c));_.v("unsplit_gel_payloads_in_logs")&&(G.unsplitGelPayloadsInLogs=!0);!I&&(c=_.H1("EVENT_ID"))&&(I=Lqq(),G.serializedClientEventId={serializedEventId:c,clientCounter:String(I)})};
Lqq=function(){var G=_.H1("BATCH_CLIENT_COUNTER")||0;G||(G=Math.floor(Math.random()*65535/2));G++;G>65535&&(G=1);_.Ch("BATCH_CLIENT_COUNTER",G);return G};
FqC=function(G,c,I){if(I.videoId)var R="VIDEO";else if(I.playlistId)R="PLAYLIST";else return;G.credentialTransferTokenTargetId=I;G.context=G.context||{};G.context.user=G.context.user||{};G.context.user.credentialTransferTokens=[{token:c,scope:R}]};
fPC=function(G,c){var I=_.oa("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Yc("yt.logging.transport.enableScrapingForTest"))if(I)Muq=[],_.lr("yt.logging.transport.enableScrapingForTest",!0),_.lr("yt.logging.transport.scrapedPayloadsForTesting",Muq),_.lr("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.lr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.lr("yt.logging.transport.scrapeClientEvent",!0);else return;I=_.Yc("yt.logging.transport.scrapedPayloadsForTesting");var R=_.Yc("yt.logging.transport.payloadToScrape");c&&(c=_.Yc("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(c.payload)())&&I.push(c);c=_.Yc("yt.logging.transport.scrapeClientEvent");if(R&&R.length>=1)for(var Z=0;Z<R.length;Z++)if(G&&G.payload[R[Z]])if(c)I.push(G.payload);else{var K=void 0;I.push(((K=G)==null?void 0:K.payload)[R[Z]])}_.lr("yt.logging.transport.scrapedPayloadsForTesting",
I)};
s1b=function(){return _.v("use_request_time_ms_header")||_.v("lr_use_request_time_ms_header")};
G90=function(G,c){return _.v("transport_use_scheduler")===!1?_.k6(G,c):_.v("logging_avoid_blocking_during_navigation")||_.v("lr_logging_avoid_blocking_during_navigation")?_.W_(_.dJ,function(){if(_.Vu8().currentState==="none")G();else{var I={};_.Vu8().install((I.none={callback:G},I))}},c):_.W_(_.dJ,G,c)};
mxO=function(G){_.v("transport_use_scheduler")?_.dJ.cancelJob(G):_.L4(G)};
Dxg=function(G){var c,I,R,Z,K,m,a,O,N,q;return _.T(function(w){return w.nextAddress==1?(R=(c=G)==null?void 0:(I=c.responseContext)==null?void 0:I.globalConfigGroup,Z=_.D(R,z8p),m=(K=R)==null?void 0:K.hotHashData,a=_.D(R,E5r),N=(O=R)==null?void 0:O.coldHashData,(q=_.wH().resolve(_.qR(iB)))?m?Z?w.yield(J0q(q,m,Z),2):w.yield(J0q(q,m),2):w.jumpTo(2):w.return()):N?a?w.yield(WqT(q,N,a),0):w.yield(WqT(q,N),0):w.jumpTo(0)})};
yNr=function(G,c){c=c===void 0?200:c;return G?c===300?Tip:iQp:c===300?OQq:fXp};
jJr=function(G){if(_.v("enable_web_tiered_gel")){G=Bib[G||""];var c,I,R,Z=_.wH().resolve(_.qR(iB))==null?void 0:(c=fk())==null?void 0:(I=c.loggingHotConfig)==null?void 0:(R=I.eventLoggingConfig)==null?void 0:R.payloadPolicies;if(Z)for(c=0;c<Z.length;c++)if(Z[c].payloadNumber===G)return Z[c]}};
rNT=function(G){G=Object.keys(G);G=_.Q(G);for(var c=G.next();!c.done;c=G.next())if(c=c.value,Bib[c])return c};
xCT=function(G){switch(G){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
dCq=function(G){return G==="gelDebuggingEvent"};
wUC=function(G){return(G===void 0?0:G)&&_.v("vss_through_gel_video_stats")?"video_stats":"log_event"};
rj=function(G,c,I,R){R=R===void 0?{}:R;var Z={},K=Math.round(R.timestamp||(0,_.Fa)());Z.eventTimeMs=K<Number.MAX_SAFE_INTEGER?K:0;Z[G]=c;G=_.wj();Z.context={lastActivityMs:String(R.timestamp||!isFinite(G)?-1:G),automatedLogEventSource:R.automatedLogEventSource};R.sequenceGroup&&!_.v("web_gel_sequence_info_killswitch")&&(G=Z.context,c=R.sequenceGroup,c={index:r0p(c),groupKey:c},G.sequence=c,R.endOfSequence&&delete B_[R.sequenceGroup]);_.v("web_tag_automated_log_events")&&(Z.context.automatedLogEventSource=
R.automatedLogEventSource);(R.sendIsolatedPayload?tki:CDb)({endpoint:"log_event",payload:Z,cttAuthInfo:R.cttAuthInfo,dangerousLogToVisitorSession:R.dangerousLogToVisitorSession},I)};
r0p=function(G){B_[G]=G in B_?B_[G]+1:0;return B_[G]};
_.x7=function(G,c,I){I=I===void 0?{}:I;var R=jc;_.XG("ytLoggingEventsDefaultDisabled",!1)&&jc===jc&&(R=null);rj(G,c,R,I)};
_.tg=function(){if(_.v("web_fp_via_jspb")){var G=!0;G=G===void 0?!1:G;var c=j1U;j1U=[];if(c){c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=I.value,G?rj(I.payloadName,I.payload,jc,I.options):_.x7(I.payloadName,I.payload,I.options)}gCU(void 0,!0);if(!_.v("web_fp_via_jspb_and_json"))return}gCU(void 0,!1)};
xxO=function(G,c){var I;if((I=c)==null?0:I.componentStack)return c;if(G=G.componentStack)c||(c={}),c.componentStack=G;return c};
tui=function(){_.K4(_.H1("ERRORS")||[],function(G){_.hg.apply(null,G)});
_.Ch("ERRORS",[])};
_.dj=function(G){_.hg(G)};
_.Ck=function(G){_.hg(G,"WARNING")};
h8C=function(G){G instanceof Error?_.hg(G):(G=_.db(G)?JSON.stringify(G):String(G),G=new _.iW(G),G.name="RejectedPromiseError",_.Ck(G))};
dxf=function(G,c,I,R,Z,K){c=c===void 0?"Unknown file":c;I=I===void 0?0:I;var m=!1,a=xyq("log_window_onerror_fraction");if(a&&Math.random()<a)m=!0;else{a=document.getElementsByTagName("script");for(var O=0,N=a.length;O<N;O++)if(a[O].src.indexOf("/debug-")>0){m=!0;break}}m&&(m=!1,Z?m=!0:(typeof G==="string"?a=G:ErrorEvent&&G instanceof ErrorEvent?(m=!0,a=G.message,c=G.filename,I=G.lineno,R=G.colno):(a="Unknown error",c="Unknown file",I=0),Z=new _.iW(a),Z.name="UnhandledWindowError",Z.message=a,Z.fileName=
c,Z.lineNumber=I,isNaN(R)?delete Z.columnNumber:Z.columnNumber=R),_.v("wiz_enable_component_stack_propagation_killswitch")||(K=xxO(Z,K)),K&&_.H_(Z,K),m?_.hg(Z):_.Ck(Z))};
_.hg=function(G,c,I,R,Z,K,m,a){K=K===void 0?{}:K;K.name=I||_.H1("INNERTUBE_CONTEXT_CLIENT_NAME",1);K.version=R||_.H1("INNERTUBE_CONTEXT_CLIENT_VERSION");I=K;c=c===void 0?"ERROR":c;m=m===void 0?!1:m;c=c===void 0?"ERROR":c;m=m===void 0?!1:m;if(G&&(G.hasOwnProperty("level")&&G.level&&(c=G.level),_.v("console_log_js_exceptions")&&(R=[],R.push("Name: "+G.name),R.push("Message: "+G.message),G.hasOwnProperty("params")&&R.push("Error Params: "+JSON.stringify(G.params)),G.hasOwnProperty("args")&&R.push("Error args: "+
JSON.stringify(G.args)),R.push("File name: "+G.fileName),R.push("Stacktrace: "+G.stack),R=R.join("\n"),window.console.log(R,G)),!(Cfi>=5))){R=[];Z=_.Q(HQ0);for(K=Z.next();!K.done;K=Z.next()){K=K.value;try{K()&&R.push(K())}catch(p){}}R=[].concat(_.jn(XUg),_.jn(R));var O=y0B(G);Z=O.message||"Unknown Error";K=O.name||"UnknownError";var N=O.stack||G.stacktrace||"Not available";if(N.startsWith(K+": "+Z)){var q=N.split("\n");q.shift();N=q.join("\n")}q=O.lineNumber||"Not available";O=O.fileName||"Not available";
var w=0;if(G.hasOwnProperty("args")&&G.args&&G.args.length)for(var F=0;F<G.args.length&&!(w=BUb(G.args[F],"params."+F,I,w),w>=500);F++);else if(G.hasOwnProperty("params")&&G.params){var n=G.params;if(typeof G.params==="object")for(F in n){if(n[F]){var U="params."+F,k=MR(n[F]);I[U]=k;w+=U.length+k.length;if(w>500)break}}else I.params=MR(n)}if(R.length)for(F=0;F<R.length&&!(w=BUb(R[F],"params.context."+F,I,w),w>=500);F++);navigator.vendor&&!I.hasOwnProperty("vendor")&&(I["device.vendor"]=navigator.vendor);
F={message:Z,name:K,lineNumber:q,fileName:O,stack:N,params:I,sampleWeight:1};I=Number(G.columnNumber);isNaN(I)||(F.lineNumber=F.lineNumber+":"+I);if(G.level==="IGNORED")G=0;else a:{G=g5B();I=_.Q(G.messageWeights);for(R=I.next();!R.done;R=I.next())if(R=R.value,F.message&&F.message.match(R.messageRegExp)){G=R.weight;break a}G=_.Q(G.callbackWeights);for(I=G.next();!I.done;I=G.next())if(I=I.value,I.callback(F)){G=I.weight;break a}G=1}F.sampleWeight=G;G=_.Q(Y3q);for(I=G.next();!I.done;I=G.next())if(I=
I.value,I.patternsForType[F.name])for(Z=_.Q(I.patternsForType[F.name]),R=Z.next();!R.done;R=Z.next())if(K=R.value,R=F.message.match(K.regexp)){F.params["params.error.original"]=R[0];Z=K.groups;K={};for(q=0;q<Z.length;q++)K[Z[q]]=R[q+1],F.params["params.error."+Z[q]]=R[q+1];F.message=I.messageFn(K);break}F.params||(F.params={});G=g5B();F.params["params.errorServiceSignature"]="msg="+G.messageWeights.length+"&cb="+G.callbackWeights.length;F.params["params.serviceWorker"]="false";_.Rq.document&&_.Rq.document.querySelectorAll&&
(F.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new X4(Gfr,"sample")).constructor!==X4&&(F.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(F);if(F.sampleWeight!==0&&!cYf.has(F.message)){if(m)IAB(c===void 0?"ERROR":c,F);else{c=c===void 0?"ERROR":c;c==="ERROR"?(yG.publish("handleError",F),_.v("record_app_crashed_web")&&RmO===0&&F.sampleWeight===1&&(RmO++,m={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.v("report_client_error_with_app_crash_ks")||
(m.systemHealth={crashData:{clientError:{logMessage:{message:F.message}}}}),_.x7("appCrashed",m)),Ze0++):c==="WARNING"&&yG.publish("handleWarning",F);if(_.v("kevlar_gel_error_routing")){m=c;a=a===void 0?{}:a;b:{G=_.Q(K7f);for(I=G.next();!I.done;I=G.next())if(yU(I.value.toLowerCase())){G=!0;break b}G=!1}if(G)a=void 0;else{I={stackTrace:F.stack};F.fileName&&(I.filename=F.fileName);G=F.lineNumber&&F.lineNumber.split?F.lineNumber.split(":"):[];G.length!==0&&(G.length!==1||isNaN(Number(G[0]))?G.length!==
2||isNaN(Number(G[0]))||isNaN(Number(G[1]))||(I.lineNumber=Number(G[0]),I.columnNumber=Number(G[1])):I.lineNumber=Number(G[0]));G={level:"ERROR_LEVEL_UNKNOWN",message:F.message,errorClassName:F.name,sampleWeight:F.sampleWeight};m==="ERROR"?G.level="ERROR_LEVEL_ERROR":m==="WARNING"&&(G.level="ERROR_LEVEL_WARNNING");I={isObfuscated:!0,browserStackInfo:I};a.pageUrl=window.location.href;a.kvPairs=[];_.H1("FEXP_EXPERIMENTS")&&(a.experimentIds=_.H1("FEXP_EXPERIMENTS"));R=_.H1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!xyq("web_disable_gel_stp_ecatcher_killswitch")&&R)for(Z=_.Q(Object.keys(R)),K=Z.next();!K.done;K=Z.next())K=K.value,a.kvPairs.push({key:K,value:String(R[K])});if(R=F.params)for(Z=_.Q(Object.keys(R)),K=Z.next();!K.done;K=Z.next())K=K.value,a.kvPairs.push({key:"client."+K,value:String(R[K])});R=_.H1("SERVER_NAME");Z=_.H1("SERVER_VERSION");R&&Z&&(a.kvPairs.push({key:"server.name",value:R}),a.kvPairs.push({key:"server.version",value:Z}));a={errorMetadata:a,stackTrace:I,logMessage:G}}a&&(_.x7("clientError",
a),(m==="ERROR"||_.v("errors_flush_gel_always_killswitch"))&&_.tg())}_.v("suppress_error_204_logging")||IAB(c,F)}try{cYf.add(F.message)}catch(p){}Cfi++}}};
IAB=function(G,c){var I=c.params||{};G={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,level:G,"client.name":I.name},postParams:{url:_.H1("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};I.version&&(G["client.version"]=I.version);if(G.postParams){c.stack&&(G.postParams.stack=c.stack);c=_.Q(Object.keys(I));for(var R=c.next();!R.done;R=c.next())R=R.value,G.postParams["client."+R]=I[R];if(I=_.H1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(c=
_.Q(Object.keys(I)),R=c.next();!R.done;R=c.next())R=R.value,G.postParams[R]=I[R];(I=_.H1("LAVA_VERSION"))&&(G.postParams["lava.version"]=I);I=_.H1("SERVER_NAME");c=_.H1("SERVER_VERSION");I&&c&&(G.postParams["server.name"]=I,G.postParams["server.version"]=c)}_.$6(_.H1("ECATCHER_REPORT_HOST","")+"/error_204",G)};
_.Pmr=function(G,c){c=c===void 0?"ERROR":c;var I=I===void 0?{}:I;var R=_.Yc("ytbin.polymer.shared.lib.tampering.info");R&&(R=R())&&(I["params.tamperingInfo"]=R.sort().join(","));_.hg(G,c,void 0,void 0,!0,I)};
_.H_=function(G){var c=_.Hy.apply(1,arguments);G.args||(G.args=[]);Array.isArray(G.args)&&G.args.push.apply(G.args,_.jn(c))};
Q98=function(G){G.level="IGNORED"};
mjA=function(G,c){XUg.push(G);c();XUg.pop()};
Y7=function(G,c){for(var I in c)c.hasOwnProperty(I)&&(G=_.gj(G,I,c[I]));return G};
_.aA0=function(G,c,I){I=I===void 0?!1:I;if(!G)return null;if(G.adInfoDialogEndpoint||G.backstageImageUploadEndpoint||G.confirmDialogEndpoint||G.clientActionEndpoint||G.createBackstagePostDialogEndpoint||G.createCommentReplyDialogEndpoint||G.flowEndpoint||G.guideBuilderEndpoint||G.liveChatDialogEndpoint||G.modalEndpoint||G.openPopupAction||G.shareEndpoint||G.shareEntityEndpoint||G.showLiveChatItemEndpoint||G.subscriptionManagerEndpoint||G.unlimitedCreateFamilyEndpoint||G.unlimitedFamilyFlowEndpoint||
G.updateCommentDialogEndpoint||G.updateCommentReplyDialogEndpoint||G.userFeedbackEndpoint||G.videoEditorEndpoint||G.ypcCancelSurveyEndpoint)return c=_.DH("polymer_report_client_url_requested_rate"),!I&&Math.random()<c&&_.Ck(new _.iW("urlForEndpoint used on client endpoint",G)),null;var R=_.DH("polymer_report_missing_web_navigation_endpoint_rate");if(G.liveChatEndpoint||G.liveChatReplayEndpoint)R=0;if(!G.commandMetadata&&!G.clickTrackingParams&&Math.random()<R){var Z={},K;for(K in G)Z[K]="1";_.Ck(new _.iW("Missing navigation data",
Z))}Z="";if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url)Z=G.commandMetadata.webCommandMetadata.url;else if(G.searchEndpoint)Math.random()<R&&_.Ck(new _.iW("Should not manually handle search",G)),Z="/results?search_query="+encodeURIComponent(G.searchEndpoint.query).replace(/%20/g,"+"),G.searchEndpoint.params&&(Z+="&sp="+G.searchEndpoint.params);else if(G.watchEndpoint)Math.random()<R&&_.Ck(new _.iW("Should not manually handle watch",G)),Z="/watch?v="+
G.watchEndpoint.videoId,G.watchEndpoint.playlistId&&(Z+="&list="+G.watchEndpoint.playlistId),G.watchEndpoint.index&&(Z+="&index="+G.watchEndpoint.index),G.watchEndpoint.startTimeSeconds&&(Z+="&t="+G.watchEndpoint.startTimeSeconds);else if(G.browseEndpoint)R=G.browseEndpoint.browseId,(K=G.browseEndpoint.canonicalBaseUrl)?Z=K:R&&(Z=R.substr(0,2),Z=Z==="FE"?R==="FEwhat_to_watch"?"/":R==="FEmy_videos"?"/my_videos":"/feed/"+R.substr(2):Z==="VL"?"/playlist?list="+R.substr(2):"/channel/"+R),Z&&G.browseEndpoint.query&&
(Z=Y7(Z+"/search",{query:G.browseEndpoint.query})),Z&&G.browseEndpoint.params&&(Z=Y7(Z,{params:G.browseEndpoint.params}));else{if(G.urlEndpoint)return G.urlEndpoint.url;G.signInEndpoint?(Z="https://accounts.google.com/ServiceLogin",R={},_.rx.extend(R,c||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),c=R):G.uploadEndpoint?Z="//www.youtube.com/upload":G.liveChatEndpoint?(Z=G.liveChatEndpoint,R=_.rx.clone(Z),_.db(Z.continuation)&&(K=Object.keys(Z.continuation)[0],
R.continuation=Z.continuation[K].continuation),Z=Y7("/youtubei/v1/live_chat/get_live_chat",R)):G.liveChatReplayEndpoint?(Z=_.rx.clone(G.liveChatReplayEndpoint),Z.currentPlayerState&&(_.rx.extend(Z,Z.currentPlayerState),delete Z.currentPlayerState),Z=Y7("/youtubei/v1/live_chat/get_live_chat_replay",Z)):G.liveChatItemContextMenuEndpoint?Z=Y7("/youtubei/v1/live_chat/get_item_context_menu",G.liveChatItemContextMenuEndpoint):G.liveChatPurchaseMessageEndpoint?Z=Y7("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
G.liveChatPurchaseMessageEndpoint):G.openSuperStickerBuyFlowCommand?Z=Y7("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",G.openSuperStickerBuyFlowCommand):G.videoEditEndpoint?Z=Y7("/edit",{video_id:G.videoEditEndpoint.videoId}):G.liveDashboardEndpoint?Z=G.liveDashboardEndpoint.videoId?Y7("/live_dashboard",{v:G.liveDashboardEndpoint.videoId}):"/live_dashboard":G.signalNavigationEndpoint&&G.signalNavigationEndpoint.signal&&G.signalNavigationEndpoint.signal==="WEBCAM"?Z="/webcam":G.getPdgBuyFlowCommand&&
(Z=Y7(G.getPdgBuyFlowCommand.buyflowApiPath,{params:G.getPdgBuyFlowCommand.params}))}return Z||I?Y7(Z,c||{}):(_.Ck(new _.iW("Error: Can't construct url for endpoint","keys:"+Object.keys(G).sort().join(","),G)),null)};
TPr=function(G){if(G){if(G.browseEndpoint)return!!G.browseEndpoint.nofollow;if(G.watchEndpoint)return!!G.watchEndpoint.nofollow;if(G.urlEndpoint)return!!G.urlEndpoint.nofollow}return!1};
_.emg=function(G,c){var I=c+G,R=Oef.get(I);if(R)return R;G=c+"-"+G.replace(/([A-Z])/g,"-$1").toLowerCase();Oef.set(I,G);return G};
NPp=function(G){var c=_.hI(G,"action")||_.hI(G,"command")||_.hI(G,"endpoint");if(!c)return null;c=_.emg(c,"yt");_.D(G,_.GP)&&(c+="-"+_.D(G,_.GP).signal.toLowerCase().replace(/_/g,"-"));return c};
F7f=function(G){try{var c=Object.keys(G)}catch(Z){return[]}for(var I=0;I<c.length;I++){var R=c[I];if(lAA.test(R)||qNr.test(R))return w8q(G[R])}return[]};
w8q=function(G){return G.command?[G.command]:G.onExecutionAction?[G.onExecutionAction]:G.onResponseReceivedCommand?[G.onResponseReceivedCommand]:G.updateFlowCommand?[G.updateFlowCommand]:G.clientActions?G.clientActions:G.action?[G.action]:G.actions||G.commands||G.onResponseReceivedActions||G.onResponseReceivedCommands||G.onResponseReceivedEndpoints||[]};
vZC=function(G,c){c=c===void 0?!1:c;var I=_.wH().resolve(_.qR(cN));I||(I=new nZB,_.wH().addProvider({provide:cN,useValue:I}));return I&&G&&!_.rx.isEmpty(G)?I.getUrl(G,c):""};
Djp=function(G,c,I){I=I===void 0?"":I;if(c){G.data=c;var R=vZC(c);R?(yx(G,R),TPr(c)||!NR(R)?G.rel="nofollow":G.removeAttribute("rel"),_.D(c,_.ID)&&_.D(c,_.ID).target==="TARGET_NEW_WINDOW"?G.target="_blank":I?G.target=I:G.removeAttribute("target")):(G.removeAttribute("href"),G.removeAttribute("rel"),G.removeAttribute("target"))}};
_.QF=function(G,c){var I=aW;if(zy())oZB(G,function(){var K=_.Hy.apply(0,arguments);Ct(I,function(){c.apply(null,_.jn(K))})});
else{var R=_.RD.getInstance(),Z=jQ8(c);Vyr(function(){Z.value=c});
_.tI(function(){var K={},m=_.KY(R,(K[G]=function(){var a=_.Hy.apply(0,arguments);Ct(I,function(){Z.value.apply(Z,_.jn(a))})},K));
return function(){var a={};_.PN(R,(a[G]="",a),m)}})}};
_.mX=function(G,c){return Uj0(G,!1,c)};
_.Op=function(G,c){return Uj0(G,!0,c)};
Uj0=function(G,c,I){return zy()?ucq(G,c,I):beb(G,c,I)};
beb=function(G,c,I){return Bqb(function(){return ucq(G,c,I)},[])};
ucq=function(G,c,I){var R=$yg(function(Z){R.value=Z;var K=function(){var m=wN(null);try{return I==null?void 0:I(Z)}finally{wN(m)}}();
return function(){K==null||K()}});
R.__expectedTagName=G;R.__optional=c;R.isIdom=!zy();return R};
kf0=function(G){var c=aW,I=M8;return{getFn:function(){return function(R){if(!c.isDisposed){var Z=function(){return G(R)};
Jy(function(){return _.ue(Z)},I)!==!0&&R.stopPropagation()}}}}};
s9q=function(G){if(typeof G.children==="function")return G.children(),null;G=_.Q(G.children);for(var c=G.next();!c.done;c=G.next())c=c.value,c();return null};
L7U=function(G){var c;return((c=G.prototype)==null?void 0:c.render)===void 0};
AYT=function(G){var c=Array.isArray(G.items)?G.items:Array.from(G.items);G=G.children;return(Array.isArray(c)?c:Array.from(c)).map(G)};
SNT=function(G,c,I){I=I===void 0?!1:I;Jy(function(){return $jr(G,c,I)})};
$jr=function(G,c,I){var R=null;ft++;I=(I===void 0?0:I)?p80:MRA;try{R=I(G,function(){eK(c)}),rN(!1)}catch(Z){throw rN(!0),Z;
}return R===null?G:R};
eK=function(G){if(G!==void 0&&G!==null)if(G instanceof SV)for(var c=Rg;Z$()!=null&&Nqq in Z$()&&c.contains(Z$());)QL();else if(Array.isArray(G))for(c=_.Q(G),G=c.next();!G.done;G=c.next())eK(G.value);else if(G instanceof MN||G instanceof q3||"function"==typeof _.lV&&G instanceof _.lV)eKC(G.toString());else if(_.v1(G)){if(Z$()!==G){var I,R;c=(R=(I=M8)==null?void 0:I.name)!=null?R:"unknown";throw Error("hc`"+G.tagName+"`"+c);}QL()}else if(G!=null&&G.contentKind===uV||G instanceof YN||LIq(G))for(c=$hB(G),
c=Array.from(c.childNodes),c=_.Q(c),G=c.next();!G.done;G=c.next())Rg.appendChild(G.value),QL();else if(fG(G)&&(G=G.toString()),I=typeof G,I==="boolean"||I==="number"||I==="string")eKC(G);else if(typeof G==="function"){c=Rg;var Z=Z$();Z&&(Z._isSignalTextNode||Z._isSafeOrSanitizedHtmlNode)||Rgr(c,Z,G);QL()}else if(G.type===AYT)eK(G.type(Object.assign({},G.props,{children:G.children[0]})));else{if(typeof G.type==="string"){a:{G.__open||ZFA(G.type,G.props.idomKey);Z=Rg;for(c in G.props)if(G.props[c]!==
VRO){var K=G.props[c];I=T2;I.push(c);I.push(K)}c=le.attributes;c=c===void 0?Nq:c;K=Rg;I=Ig(K);OFq(K,I,c);IZ8(Z,G.props,!0);if((G.props.skip||G.props.skipchildren)&&Rg.hasChildNodes())P1=Rg.lastChild;else{if(G.type==="style"&&WIC(G.children)===null){P1=Rg.lastChild;c=void 0;break a}eK(G.children)}KIi();G.__open&&(G.__open=!1);DhT(Z,G.props);c=Z}return c}if(G.type===_.FG)eK(G.children);else if(!zmb(G)){c=G;try{EZO(c)}catch(m){G=m,(K=le.handleError)==null||K.call.apply(K,[le].concat(_.jn(HX(G,(Z=c.type)==
null?void 0:Z.TAG_NAME))))}c.__open&&(KIi(),c.__open=!1)}}};
JY8=function(G,c){var I;L7U(G)?I=new EG(c,G):I=new G(c);I.__type=G;I.__updateContext={nextState:I.state,isForced:!1};return I};
EZO=function(G){var c=G.type,I=c.TAG_NAME;if(c===s9q)G.props.children=G.children,c(G.props);else{G.children.length>0&&(G.props.children=G.children);var R;(R=G.props).idomKey||(R.idomKey=c);if(I){var Z=ZFA(I,G.props.idomKey);G.__open=!0;var K=Z.__instance}K||(K=JY8(c,G.props),K.props=null,Z&&(Z.__instance=K,K.el=Z));var m;I=((m=K.__updateContext)!=null?m:{nextState:K.state,isForced:!1}).nextState;K.__updateContext=void 0;c.getDerivedStateFromProps&&(I=c.getDerivedStateFromProps(G.props,I));K.props=
G.props;K.state=I;m=function(){var a=K;VL.beforeRender(a);var O=a.render(a.props);O?(a.props.idomKey&&(O.props.idomKey=a.props.idomKey),a=O):a=void 0;if(O=a)if(O.__open=G.__open,a=eK(O),G.__open=O.__open,!c.TAG_NAME)if(a)c.TAG_NAME=a.tagName.toLowerCase(),a.__instance=K,K.el=a;else{var N;if((N=K.hooks)==null?0:N.length){var q;(q=le.handleError)==null||q.call.apply(q,[le].concat(_.jn(HX(Error("od")))))}}K.didPatch();VL.didPatch(K)};
(I=K.functionComponent)?f6B(I,m,K.props.debugInstance):m()}};
zmb=function(G){var c=G.type;if(!L7U(c)||c===s9q||c.componentType===Vg)return!1;G.props.children=G.children.length>1?G.children:G.children[0];var I,R=(I=G.props.idomKey)!=null?I:G.type,Z;if(Z$()&&((Z=Z$()[Lh])==null?void 0:Z.key)===R){var K=Z$(),m=K[Lh];if(!m)throw Error("gc`"+K.tagName);var a;(a=m.updateSignalsFromIdomProps)==null||a.call(m,G.props);W7r(m);return!0}if(ief.has(c.name))throw a=c.name,c=(m=(K=M8)==null?void 0:K.name)!=null?m:"unknown",Error("fc`"+a+"`"+c);QQU(G.type,G.props,G.children);
G.props.renderedFromIdom=!0;(a=f6B(G.type,function(){return y80(G.type,G.props)},G.props.debugInstance))&&fAA(a);
return!0};
BPg=function(G){for(var c=0;c<$c(G).length;c++)QL()};
W7r=function(G){var c=rYb();if(c)BPg(c);else for(var I=0;I<G.numNodes;I++)(c=rYb())?BPg(c):QL()};
rYb=function(){var G;return(G=Z$()[Lh])==null?void 0:G.sourceDynamicRange};
fAA=function(G){G=uu8(G);G=Array.isArray(G)?G:[G];G=_.Q(G);for(var c=G.next();!c.done;c=G.next())Rg.insertBefore(c.value,Z$()),QL()};
j9q=function(){var G=Y$q(),c=Bqb(function(){return{value:0}},[]);
return[c.value,function(I){if(z2!==null){var R;(R=le.handleError)==null||R.call.apply(R,[le].concat(_.jn(HX(Error("pd")))))}c.value=typeof I==="function"?I(c.value):I;G.__updateContext={nextState:G.state,isForced:!0};I=_.Ty(G.effectContext);R=nh(!1);try{if(G.el){var Z,K={},m=(K.props=G.props,K.type=G.__type,K.children=(Z=G.props.children)!=null?Z:[],K[wK]=!0,K);try{SNT(G.el,m,!0)}catch(N){var a,O;(O=le.handleError)==null||O.call.apply(O,[le].concat(_.jn(HX(N,(a=G.__type)==null?void 0:a.TAG_NAME))))}}}finally{nh(R),
_.Ty(I)}}]};
_.lx=function(G,c){var I=aW,R=function(Z){Ct(I,function(){c(Z)})};
window.addEventListener(G,R,void 0);_.ty(function(){window.removeEventListener(G,R,void 0)})};
_.wZ=function(G){var c=aW;return function(I){var R,Z=(R=G.observer)!=null?R:_.wH().resolve(qq);R=xjO(I);var K=[];G.showOption&&K.push(Z.observe(I,function(){Ct(c,function(){G.visibilityCallback(!0,I)})},G.showOption));
G.hideOption&&K.push(Z.observe(I,function(){Ct(c,function(){G.visibilityCallback(!1,I)})},G.hideOption));
G.prescanOption&&G.prescanCallback&&K.push(Z.observe(I,function(){Ct(c,function(){G.prescanCallback()})},G.prescanOption));
var m;R.visibilityMonitorKeys=((m=R.visibilityMonitorKeys)!=null?m:[]).concat(K)}};
xjO=function(G){var c;return(c=G.polymerController)!=null?c:G};
Cmf=function(G,c){var I=tR8;return _.e(_.FG,null,UtC(le.enableLazyTsx,function(){return _.e(hmg,{id:I,value:G,children:c})},function(){var R=djb(I,G);
N8(R);R=_.Ty(R);try{return c()}finally{_.Ty(R)}}))};
hmg=function(G){var c=G.children;G=djb(G.id,G.value);N8(G);G=_.Ty(G);try{return _.e(_.FG,null,ph(c()))}finally{_.Ty(G)}};
djb=function(G,c){return Object.assign(Object.create(Her),{id:G,contextValue:c})};
X8p=function(G){var c,I=aW;_.jE(function(){var R=_.Ty(I),Z=nh(!c);try{if(c)SNT(c,G.children(),!0);else if(c=ph(G.children()),!(c instanceof Element))throw Error("qd");}finally{nh(Z),_.Ty(R)}},"g");
return c};
_.yYi=function(G,c){var I;c=hy(function(){var R=nh(!0);ft++;try{I=$c(G()),rN(!1)}catch(Z){throw rN(!0),Z;}finally{nh(R)}},c===void 0?!1:c);
return[I,c]};
YNr=function(G){var c=new gZb;c.abort(G);return c.signal};
G$O=function(){if(this.aborted){var G;throw(G=this.reason)!=null?G:new DOMException("signal is aborted without reason","AbortError");}};
Rkr=function(G){var c=new gZb;G=_.Q(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.aborted){c.abort(I.reason);break}else cqT.set(c.signal,c),I2r.add(I,c.signal);return c.signal};
Zsb=function(){for(var G=_.Q(I2r.get(this)),c=G.next();!c.done;c=G.next())cqT.get(c.value).abort(this.reason)};
KLr=function(G){var c=new gZb;setTimeout(function(){c.abort(new DOMException("signal timed out","TimeoutError"))},G);
return c.signal};
PPi=function(){var G,c;return{promise:new Promise(function(I,R){G=I;c=R}),
resolve:G,reject:c}};
moq=function(G){var c=PPi(),I=c.promise;Ql0.set(G,{promise:I,resolve:c.resolve,reject:c.reject});Fd||(Fd=[],queueMicrotask(function(){var R=[].concat(_.jn(Fd));Fd=null;var Z=x9().loadMultiple(R);R=_.Q(R);for(var K=R.next();!K.done;K=R.next())K=K.value,Z[K].then(Ql0.get(K).resolve,Ql0.get(K).reject)}));
Fd.push(G);return I};
T8B=function(G){G=G.buf.charCodeAt(G.pos++);return a2p[G]};
nY=function(G){var c=0,I=0;do{var R=T8B(G);c|=(R&31)<<I;I+=5}while(R&32);return c<0?c+4294967296:c};
ekA=function(G,c,I,R){var Z=!0;Z=Z===void 0?!1:Z;c=c===void 0?!1:c;R=R===void 0?{}:R;var K=R.cssRowKey||"",m=R.combinedSignature||"";!K&&window&&window._F_cssRowKey&&(K=window._F_cssRowKey,!m&&window._F_combinedSignature&&(m=window._F_combinedSignature));if(K&&typeof window._F_installCss!=="function")throw Error("Ad");var a=R.loaderClass||_.vN;G=jzr(G===void 0?"base-js":G);c=new a(Lzf(tvU("",G)),K,m,Z,c);Z=R.useCors||G&&G.hasAttribute("crossorigin");G=R.corsMode||G&&G.getAttribute("crossorigin");
Z&&(c.useCors_=Z);G&&(c.corsMode_=G);R.urlMaxLength&&(c.urlMaxLength=R.urlMaxLength);I&&(c.insertPos=I);R.fetchPriority&&(c.fetchPriority=R.fetchPriority);var O=x9();O.JSC$10223_loader_=c;O.setBatchModeEnabled(!0);_.OsU=R.batchingStrategy==="BATCH"?moq:function(N){return Promise.resolve(O.load(N))}};
qg0=function(G,c,I){N8r(G,c);G[c][l2O].unshift(I)};
N8r=function(G,c){if(!G[c]||!G[c][l2O]){var I=G[c],R=I?[I]:[];G[c]=function(){for(var Z=_.Q(R),K=Z.next();!K.done;K=Z.next())K.value.apply(this,arguments)};
G[c][l2O]=R}};
wmb=function(G){if(!G)return[];var c=[];G=_.Q(G);for(var I=G.next();!I.done;I=G.next())I=I.value,Array.isArray(I)?c.push.apply(c,_.jn(wmb(I))):c.push(I);return c};
_.oD=function(G,c){if(G&&FLr.test(G)||G==="//")return G;if(nPr===void 0){nPr=!1;try{var I=new URL("b","http://a");I.pathname="c%20d";nPr=I.href==="http://a/c%20d"}catch(R){}}c||(c=document.baseURI||window.location.href);if(nPr)try{return(new URL(G,c)).href}catch(R){return G}Dq||(Dq=document.implementation.createHTMLDocument("temp"),Dq.base=Dq.createElement("base"),Dq.head.appendChild(Dq.base),Dq.anchor=Dq.createElement("a"),Dq.body.appendChild(Dq.anchor));Dq.base.href=c;Dq.anchor.href=G;return Dq.anchor.href||
G};
Dop=function(G,c){return G.replace(vPO,function(I,R,Z,K){return R+"'"+_.oD(Z.replace(/["']/g,""),c)+"'"+K})};
oPO=function(G){return G.substring(0,G.lastIndexOf("/")+1)};
bsA=function(){Uof=!1;for(var G=Up.length,c=0;c<G;c++){var I=Up[c];if(I)try{I()}catch(R){setTimeout(function(){throw R;})}}Up.splice(0,G);
utp+=G};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(G){console.log("["+G.is+"]: registered")};
slp=function(G){k$8.push(G)};
ux=function(G){return LLp[G]||(LLp[G]=G.indexOf("-")<0?G:G.replace(Aqi,function(c){return c[1].toUpperCase()}))};
bx=function(G){return LLp[G]||(LLp[G]=G.replace($oA,"-$1").toLowerCase())};
Sgp=function(G,c){var I=c.parentInfo&&Sgp(G,c.parentInfo);if(I)for(G=I.firstChild,I=0;G;G=G.nextSibling){if(c.parentIndex===I++)return G}else return G};
pmB=function(G,c){G=G._methodHost||G;return function(I){if(G[c])G[c](I,I.detail);else console.warn("listener method `"+c+"` not defined")}};
kt=function(G){return G.indexOf(".")>=0};
sp=function(G){var c=G.indexOf(".");return c===-1?G:G.slice(0,c)};
Mhq=function(G,c){return G.indexOf(c+".")===0};
LY=function(G,c){return c.indexOf(G+".")===0};
Aa=function(G,c,I){return c+I.slice(G.length)};
Vhr=function(G,c){return G===c||Mhq(G,c)||LY(G,c)};
$t=function(G){if(Array.isArray(G)){for(var c=[],I=0;I<G.length;I++)for(var R=G[I].toString().split("."),Z=0;Z<R.length;Z++)c.push(R[Z]);return c.join(".")}return G};
zkr=function(G){return Array.isArray(G)?$t(G).split("."):G.toString().split(".")};
SK=function(G,c,I){c=zkr(c);for(var R=0;R<c.length;R++){if(!G)return;G=G[c[R]]}I&&(I.path=c.join("."));return G};
EPq=function(G,c,I){var R=zkr(c),Z=R[R.length-1];if(R.length>1){for(c=0;c<R.length-1;c++)if(G=G[R[c]],!G)return;G[Z]=I}else G[c]=I;return R.join(".")};
Jqr=function(G,c,I){var R=G[c];if(!R)R=G[c]={};else if(!G.hasOwnProperty(c)&&(R=G[c]=Object.create(G[c]),I))for(var Z in R)for(G=R[Z],c=R[Z]=Array(G.length),I=0;I<G.length;I++)c[I]=G[I];return R};
Mq=function(G,c,I,R,Z,K){if(c){var m=!1,a=pY++,O;for(O in I){var N=Z?sp(O):O;if(N=c[N])for(var q=0,w=N.length,F=void 0;q<w&&(F=N[q]);q++)F.info&&F.info.lastRun===a||Z&&!WLb(O,F.trigger)||(F.info&&(F.info.lastRun=a),F.fn(G,O,I,R,F.info,Z,K),m=!0)}return m}return!1};
WLb=function(G,c){if(c){var I=c.name;return I==G||!(!c.structured||!Mhq(I,G))||!(!c.wildcard||!LY(I,G))}return!0};
isr=function(G,c,I,R,Z){c=typeof Z.method==="string"?G[Z.method]:Z.method;I=Z.property;c?c.call(G,G.__data[I],R[I]):Z.dynamicFn||console.warn("observer method `"+Z.method+"` not defined")};
f2O=function(G,c,I,R){I={value:I,queueProperty:!0};R&&(I.path=R);(0,_.VF)(G).dispatchEvent(new CustomEvent(c,{detail:I}))};
B8f=function(G,c,I,R,Z,K){K=(R=(K?sp(c):c)!=c?c:null)?SK(G,R):G.__data[c];R&&K===void 0&&(K=I[c]);f2O(G,Z.eventName,K,R)};
rqr=function(G,c,I,R,Z){I=G.__data[c];zP&&(I=zP(I,Z.attrName,"attribute",G));G._propertyToAttribute(c,Z.attrName,I)};
xog=function(G){var c=G.constructor.__orderedComputedDeps;if(!c){c=new Map;for(var I=G.__computeEffects,R=jlA(G),Z=R.counts,K=R.ready,m=R.total;R=K.shift();)c.set(R,c.size),(R=I[R])&&R.forEach(function(a){a=a.info.methodInfo;--m;--Z[a]===0&&K.push(a)});
m!==0&&console.warn("Computed graph for "+G.localName+" incomplete; circular?");G.constructor.__orderedComputedDeps=c}return c};
jlA=function(G){var c=G.__computeInfo,I={};G=G.__computeEffects;var R=[],Z=0,K;for(K in c){var m=c[K];Z+=I[K]=m.args.filter(function(O){return!O.literal}).length+(m.dynamicFn?1:0)}for(var a in G)c[a]||R.push(a);
return{counts:I,ready:R,total:Z}};
hkp=function(G,c,I,R,Z){c=thC(G,c,I,R,Z);if(c===Ep)return!1;Z=Z.methodInfo;if(G.__dataHasAccessor&&G.__dataHasAccessor[Z])return G._setPendingProperty(Z,c,!0);G[Z]=c;return!1};
HsB=function(G,c,I,R,Z,K,m){I.bindings=I.bindings||[];R={kind:R,target:Z,parts:K,literal:m,isCompound:K.length!==1};I.bindings.push(R);R.target&&R.kind!="attribute"&&R.kind!="text"&&!R.isCompound&&R.parts[0].mode==="{"&&(I=R.parts[0],K=I.negate,R.listenerEvent=I.event||bx(Z)+"-changed",R.listenerNegate=K);Z=c.nodeInfoList.length;for(I=0;I<R.parts.length;I++){var a=R.parts[I];a.compoundIndex=I;K=G;m=c;var O=R,N=a,q=Z;if(!N.literal)if(O.kind==="attribute"&&O.target[0]==="-")console.warn("Cannot set attribute "+
O.target+' because "-" is not a valid attribute starting character');else for(a=N.dependencies,O={index:q,binding:O,part:N,evaluator:K},N=0;N<a.length;N++)q=a[N],typeof q=="string"&&(q=do8(q),q.wildcard=!0),K._addTemplatePropertyEffect(m,q.rootProperty,{fn:CP0,info:O,trigger:q})}};
CP0=function(G,c,I,R,Z,K,m){m=m[Z.index];var a=Z.binding,O=Z.part;K&&O.source&&c.length>O.source.length&&a.kind=="property"&&!a.isCompound&&m.__isPropertyEffectsClient&&m.__dataHasAccessor&&m.__dataHasAccessor[a.target]?(I=I[c],c=Aa(O.source,a.target,c),m._setPendingPropertyOrPath(c,I,!1,!0)&&G._enqueueClient(m)):(c=Z.evaluator._evaluateBinding(G,O,c,I,R,K),c!==Ep&&(a.isCompound&&(I=m.__dataCompoundStorage[a.target],I[O.compoundIndex]=c,c=I.join("")),a.kind==="attribute"||a.target!=="textContent"&&
(a.target!=="value"||m.localName!=="input"&&m.localName!=="textarea")||(c=c==void 0?"":c),O=c,zP&&(O=zP(O,a.target,a.kind,m)),a.kind=="attribute"?G._valueToNodeAttribute(m,O,a.target):(a=a.target,m.__isPropertyEffectsClient&&m.__dataHasAccessor&&m.__dataHasAccessor[a]?m.__readOnly&&m.__readOnly[a]||m._setPendingProperty(a,O)&&G._enqueueClient(m):G._setUnmanagedPropertyToNode(m,a,O))))};
XmA=function(G,c,I){if(I.listenerEvent){var R=I.parts[0];G.addEventListener(I.listenerEvent,function(Z){var K=I.target,m=R.source,a=R.negate,O=Z.detail,N=O&&O.path;N?(m=Aa(K,m,N),Z=O&&O.value):Z=Z.currentTarget[K];c.__readOnly&&c.__readOnly[m]||!c._setPendingPropertyOrPath(m,a?!Z:Z,!0,!!N)||O&&O.queueProperty||c._invalidateProperties()})}};
yqi=function(G,c,I,R,Z,K){K=c.static||K&&(typeof K!=="object"||K[c.methodName]);Z={methodName:c.methodName,args:c.args,methodInfo:Z,dynamicFn:K};for(var m=0,a=void 0;m<c.args.length&&(a=c.args[m]);m++)a.literal||G._addPropertyEffect(a.rootProperty,I,{fn:R,info:Z,trigger:a});K&&G._addPropertyEffect(c.methodName,I,{fn:R,info:Z});return Z};
thC=function(G,c,I,R,Z){R=G._methodHost||G;var K=R[Z.methodName];if(K)return G=G._marshalArgs(Z.args,c,I),G===Ep?Ep:K.apply(R,G);Z.dynamicFn||console.warn("method `"+Z.methodName+"` not defined")};
gPT=function(G){for(var c="",I=0;I<G.length;I++)c+=G[I].literal||"";return c};
cAr=function(G){if(G=G.match(/([^\s]+?)\(([\s\S]*)\)/)){var c={methodName:G[1],static:!0,args:YgO};return G[2].trim()?GFq(G[2].replace(/\\,/g,"&comma;").split(","),c):c}return null};
GFq=function(G,c){c.args=G.map(function(I){I=do8(I);I.literal||(c.static=!1);return I},this);
return c};
do8=function(G){G=G.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var c={name:G,value:"",literal:!1},I=G[0];I==="-"&&(I=G[1]);I>="0"&&I<="9"&&(I="#");switch(I){case "'":case '"':c.value=G.slice(1,-1);c.literal=!0;break;case "#":c.value=Number(G),c.literal=!0}c.literal||(c.rootProperty=sp(G),c.structured=kt(G),c.structured&&(c.wildcard=G.slice(-2)==".*",c.wildcard&&(c.name=G.slice(0,-2))));return c};
Io8=function(G,c,I){G=SK(G,I);G===void 0&&(G=c[I]);return G};
RUU=function(G,c,I,R){R={indexSplices:R};Ja&&!G._overrideLegacyUndefined&&(c.splices=R);G.notifyPath(I+".splices",R);G.notifyPath(I+".length",c.length);Ja&&!G._overrideLegacyUndefined&&(R.indexSplices=[])};
WN=function(G,c,I,R,Z,K){RUU(G,c,I,[{index:R,addedCount:Z,removed:K,object:c,type:"splice"}])};
ZMO=function(G){G=Dop((G.body?G.body:G).textContent,G.baseURI);var c=document.createElement("style");c.textContent=G;return c};
PJC=function(G){G=G.trim().split(/\s+/);for(var c=[],I=0;I<G.length;I++)c.push.apply(c,_.jn(KGA(G[I])));return c};
KGA=function(G){var c=ix.import(G);if(!c)return console.warn("Could not find style data in module named",G),[];if(c._styles===void 0){G=[];G.push.apply(G,_.jn(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c)));var I=c.querySelector("template");I&&G.push.apply(G,_.jn(Qwf(I,c.assetpath)));c._styles=G}return c._styles};
Qwf=function(G,c){if(!G._styles){for(var I=[],R=G.content.querySelectorAll("style"),Z=0;Z<R.length;Z++){var K=R[Z],m=K.getAttribute("include");m&&I.push.apply(I,_.jn(PJC(m).filter(function(a,O,N){return N.indexOf(a)===O})));
c&&(K.textContent=Dop(K.textContent,c));I.push(K)}G._styles=I}return G._styles};
mB8=function(G){return(G=ix.import(G))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var c=[];G=G.querySelectorAll("link[rel=import][type~=css]");for(var I=0;I<G.length;I++){var R=G[I];if(R.import){var Z=R.import;if((R=R.hasAttribute("shady-unscoped"))&&!Z._unscopedStyle){var K=ZMO(Z);K.setAttribute("shady-unscoped","");Z._unscopedStyle=K}else Z._style||(Z._style=ZMO(Z));c.push(R?Z._unscopedStyle:Z._style)}}return c};
TGB=function(G){G=G.trim().split(/\s+/);for(var c="",I=0;I<G.length;I++)c+=aor(G[I]);return c};
aor=function(G){var c=ix.import(G);if(c&&c._cssText===void 0){var I=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c),R=c.querySelector("template");R&&(I+=OMO(R,c.assetpath));c._cssText=I||null}c||console.warn("Could not find style data in module named",G);return c&&c._cssText||""};
OMO=function(G,c){var I="";G=Qwf(G,c);for(c=0;c<G.length;c++){var R=G[c];R.parentNode&&R.parentNode.removeChild(R);I+=R.textContent}return I};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var c="";G=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G);for(var I=0;I<G.length;I++)c+=G[I].textContent;return c};
fY=function(G,c){return{index:G,removed:[],addedCount:c}};
NG0=function(G,c,I,R){var Z=0,K=0,m=0,a=0,O=Math.min(c-Z,R-K);if(Z==0&&K==0)a:{for(m=0;m<O;m++)if(G[m]!==I[m])break a;m=O}if(c==G.length&&R==I.length){a=G.length;for(var N=I.length,q=0;q<O-m&&eUr(G[--a],I[--N]);)q++;a=q}Z+=m;K+=m;c-=a;R-=a;if(c-Z==0&&R-K==0)return[];if(Z==c){for(c=fY(Z,0);K<R;)c.removed.push(I[K++]);return[c]}if(K==R)return[fY(Z,c-Z)];O=Z;m=K;R=R-m+1;a=c-O+1;c=Array(R);for(N=0;N<R;N++)c[N]=Array(a),c[N][0]=N;for(N=0;N<a;N++)c[0][N]=N;for(N=1;N<R;N++)for(q=1;q<a;q++)if(G[O+q-1]===
I[m+N-1])c[N][q]=c[N-1][q-1];else{var w=c[N-1][q]+1,F=c[N][q-1]+1;c[N][q]=w<F?w:F}O=c.length-1;m=c[0].length-1;R=c[O][m];for(G=[];O>0||m>0;)O==0?(G.push(2),m--):m==0?(G.push(3),O--):(a=c[O-1][m-1],N=c[O-1][m],q=c[O][m-1],w=N<q?N<a?N:a:q<a?q:a,w==a?(a==R?G.push(0):(G.push(1),R=a),O--,m--):w==N?(G.push(3),O--,R=N):(G.push(2),m--,R=q));G.reverse();c=void 0;O=[];for(m=0;m<G.length;m++)switch(G[m]){case 0:c&&(O.push(c),c=void 0);Z++;K++;break;case 1:c||(c=fY(Z,0));c.addedCount++;Z++;c.removed.push(I[K]);
K++;break;case 2:c||(c=fY(Z,0));c.addedCount++;Z++;break;case 3:c||(c=fY(Z,0)),c.removed.push(I[K]),K++}c&&O.push(c);return O};
loO=function(G,c){return NG0(G,G.length,c,c.length)};
eUr=function(G,c){return G===c};
wer=function(G){if(G instanceof q_p)return G.value;throw Error("Id`"+G);};
FGT=function(G,c){for(var I in c)I===null?G.style.removeProperty(I):G.style.setProperty(I,c[I])};
nXq=function(G,c){return(G=window.getComputedStyle(G).getPropertyValue(c))?G.trim():""};
UB8=function(G){requestAnimationFrame(function(){vXO?vXO(G):(DBf||(DBf=new Promise(function(c){oXB=c}),document.readyState==="complete"?oXB():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&oXB()})),DBf.then(function(){G&&G()}))})};
kF0=function(G){u0A=G&&G.shimcssproperties?!1:bMb||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
S_r=function(G){if(!(swf.indexOf(G)>-1)&&G!=="touchend"&&LGi&&AAg&&$BU)return{passive:!0}};
zUB=function(G){for(var c=per?["click"]:swf,I=0,R;I<c.length;I++)R=c[I],G?(MXg.length=0,document.addEventListener(R,VXp,!0)):document.removeEventListener(R,VXp,!0)};
BN=function(G){var c=G.type;return swf.indexOf(c)>-1?c==="mousemove"?(c=G.buttons===void 0?1:G.buttons,G instanceof window.MouseEvent&&!EXB&&(c=JA0[G.which]||0),!!(c&1)):(G.button===void 0?0:G.button)===0:!1};
WGU=function(G){if(G.type==="click"){if(G.detail===0)return!0;var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);if(!c.nodeType||c.nodeType!==Node.ELEMENT_NODE)return!0;c=c.getBoundingClientRect();var I=G.pageX;G=G.pageY;return!(I>=c.left&&I<=c.right&&G>=c.top&&G<=c.bottom)}return!1};
iMT=function(G,c,I){G.movefn=c;G.upfn=I;document.addEventListener("mousemove",c);document.addEventListener("mouseup",I)};
rZ=function(G){document.removeEventListener("mousemove",G.movefn);document.removeEventListener("mouseup",G.upfn);G.movefn=null;G.upfn=null};
foU=function(G,c){for(var I=document.elementFromPoint(G,c),R=I;R&&R.shadowRoot&&!window.ShadyDOM;){var Z=R;R=R.shadowRoot.elementFromPoint(G,c);if(Z===R)break;R&&(I=R)}return I};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var c=BGC(G);return c.length>0?c[0]:G.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var c=G.type,I=G.currentTarget.__polymerGestures;if(I&&(I=I[c])){if(!G.__polymerGesturesHandled&&(G.__polymerGesturesHandled={},c.slice(0,5)==="touch")){var R=G.changedTouches[0];c==="touchstart"&&G.touches.length===1&&(rA8=R.identifier);if(rA8!==R.identifier)return;LGi||(c==="touchstart"||c==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)}R=
G.__polymerGesturesHandled;if(!R.skip){for(var Z=0,K;Z<jK.length;Z++)K=jK[Z],I[K.name]&&!R[K.name]&&K.flow&&K.flow.start.indexOf(G.type)>-1&&K.reset&&K.reset();for(Z=0;Z<jK.length;Z++)K=jK[Z],I[K.name]&&!R[K.name]&&(R[K.name]=!0,K[c](G))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var c=G.changedTouches[0],I=G.type;if(I==="touchstart")jwO=c.clientX,xBB=c.clientY,tXr=!1;else if(I==="touchmove"&&!tXr){tXr=!0;I="auto";for(var R=BGC(G),Z=0,K;Z<R.length;Z++)if(K=R[Z],K.__polymerGesturesTouchAction){I=K.__polymerGesturesTouchAction;break}R=!1;Z=Math.abs(jwO-c.clientX);c=Math.abs(xBB-c.clientY);G.cancelable&&(I==="none"?R=!0:I==="pan-x"?R=c>Z:I==="pan-y"&&(R=Z>c));R?G.preventDefault():
xt("track")}};
ha=function(G,c,I){return ta[c]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,c,I),!0):!1};
dZ=function(G,c,I){return ta[c]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,c,I),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,c,I){var R=ta[c],Z=R.deps,K=R.name,m=G.__polymerGestures;m||(G.__polymerGestures=m={});for(var a=0,O,N;a<Z.length;a++)O=Z[a],per&&swf.indexOf(O)>-1&&O!=="click"||((N=m[O])||(m[O]=N={_count:0}),N._count===0&&G.addEventListener(O,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,S_r(O)),N[K]=(N[K]||0)+1,N._count=(N._count||0)+1);G.addEventListener(c,I);R.touchAction&&_.CY(G,R.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,c,I){var R=ta[c],Z=R.deps;R=R.name;var K=G.__polymerGestures;if(K)for(var m=0,a,O;m<Z.length;m++)a=Z[m],(O=K[a])&&O[R]&&(O[R]=(O[R]||1)-1,O._count=(O._count||1)-1,O._count===0&&G.removeEventListener(a,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,S_r(a)));G.removeEventListener(c,I)};
hUf=function(G){jK.push(G);for(var c=0;c<G.emits.length;c++)ta[G.emits[c]]=G};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){for(var c=0,I;c<jK.length;c++){I=jK[c];for(var R=0,Z;R<I.emits.length;R++)if(Z=I.emits[R],Z===G)return I}return null};
_.CY=function(G,c){LGi&&G instanceof HTMLElement&&HN.run(function(){G.style.touchAction=c});
G.__polymerGesturesTouchAction=c};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,c,I){c=new Event(c,{bubbles:!0,cancelable:!0,composed:!0});c.detail=I;(0,_.VF)(G).dispatchEvent(c);c.defaultPrevented&&(G=I.preventer||I.sourceEvent)&&G.preventDefault&&G.preventDefault()};
xt=function(G){G=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G.info&&(G.info.prevent=!0)};
Xd=function(G,c,I,R){c&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,G,{x:I.clientX,y:I.clientY,sourceEvent:I,preventer:R,prevent:function(Z){return xt(Z)}})};
dBB=function(G,c,I){if(G.prevent)return!1;if(G.started)return!0;I=Math.abs(G.y-I);return Math.abs(G.x-c)>=5||I>=5};
CJU=function(G,c,I){if(c){var R=G.moves[G.moves.length-2],Z=G.moves[G.moves.length-1],K=Z.x-G.x,m=Z.y-G.y,a=0;if(R){var O=Z.x-R.x;a=Z.y-R.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,"track",{state:G.state,x:I.clientX,y:I.clientY,dx:K,dy:m,ddx:O,ddy:a,sourceEvent:I,hover:function(){return foU(I.clientX,I.clientY)}})}};
XeO=function(G,c,I){var R=Math.abs(c.clientX-G.x),Z=Math.abs(c.clientY-G.y),K=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I||c);!K||HMA[K.localName]&&K.hasAttribute("disabled")||!(isNaN(R)||isNaN(Z)||R<=25&&Z<=25||WGU(c))||G.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,"tap",{x:c.clientX,y:c.clientY,sourceEvent:c,preventer:I})};
yAi=function(G,c,I,R,Z){var K;Z&&(K=typeof I==="object"&&I!==null)&&(R=G.__dataTemp[c]);R=R!==I&&(R===R||I===I);K&&R&&(G.__dataTemp[c]=I);return R};
Y_b=function(){if(yF&&!gZ){if(!gXr){gXr=!0;var G=document.createElement("style");G.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(G)}return!0}return!1};
c7b=function(){return GoC};
Ikp=function(G,c){GoC=G;Object.setPrototypeOf(G,c.prototype);new c;GoC=null};
RVg=function(G,c){for(var I=0;I<c.length;I++){var R=c[I];if(!!G!=!!R.__hideTemplateChildren__)if(R.nodeType===Node.TEXT_NODE)G?(R.__polymerTextContent__=R.textContent,R.textContent=""):R.textContent=R.__polymerTextContent__;else if(R.localName==="slot")if(G)R.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.VF)((0,_.VF)(R).parentNode).replaceChild(R.__polymerReplaced__,R);else{var Z=R.__polymerReplaced__;Z&&(0,_.VF)((0,_.VF)(Z).parentNode).replaceChild(R,Z)}else R.style&&(G?(R.__polymerDisplay__=
R.style.display,R.style.display="none"):R.style.display=R.__polymerDisplay__);R.__hideTemplateChildren__=G;R._showHideChildren&&R._showHideChildren(G)}};
Zyg=function(G){return(G=G.__dataHost)&&G._methodHost||G};
Q3i=function(G,c,I){var R=I.mutableData?KVO:cb;If.mixin&&(R=If.mixin(R));var Z=function(){return R.apply(this,arguments)||this};
_.u(Z,R);Z.prototype.__templatizeOptions=I;Z.prototype._bindTemplate(G);PUU(Z,G,c,I);return Z};
eVr=function(G,c,I,R){var Z=I.forwardHostProp;if(Z&&c.hasHostProps){var K=G.localName=="template",m=c.templatizeTemplateClass;if(!m){if(K){var a=I.mutableData?mOA:akb;m=function(){return a.apply(this,arguments)||this};
_.u(m,a);m=c.templatizeTemplateClass=m}else{var O=G.constructor;m=function(){return O.apply(this,arguments)||this};
_.u(m,O);m=c.templatizeTemplateClass=m}var N=c.hostProps,q;for(q in N)m.prototype._addPropertyEffect("_host_"+q,m.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:TIB(Z)}),m.prototype._createNotifyingProperty("_host_"+q);Rf&&R&&Oyr(c,I,R)}G.__dataProto&&Object.assign(G.__data,G.__dataProto);if(K)Ikp(G,m),G.__dataTemp={},G.__dataPending=null,G.__dataOld=null,G._enableProperties();else{Object.setPrototypeOf(G,m.prototype);c=c.hostProps;for(var w in c)w="_host_"+w,w in G&&(c=G[w],delete G[w],G.__data[w]=
c)}}};
TIB=function(G){return function(c,I,R){G.call(c.__templatizeOwner,I.substring(6),R[I])}};
PUU=function(G,c,I,R){var Z=I.hostProps||{},K;for(K in R.instanceProps){delete Z[K];var m=R.notifyInstanceProp;m&&G.prototype._addPropertyEffect(K,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:NIO(m)})}if(R.forwardHostProp&&c.__dataHost)for(var a in Z)I.hasHostProps||(I.hasHostProps=!0),G.prototype._addPropertyEffect(a,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:lkp()})};
NIO=function(G){return function(c,I,R){G.call(c.__templatizeOwner,c,I,R[I])}};
lkp=function(){return function(G,c,I){G.__dataHost._setPendingPropertyOrPath("_host_"+c,I[c],!0,!0)}};
If=function(G,c,I){if(Z0&&!Zyg(G))throw Error("Od");I=I||{};if(G.__templatizeOwner)throw Error("Pd");G.__templatizeOwner=c;var R=(c?c.constructor:cb)._parseTemplate(G),Z=R.templatizeInstanceClass;Z||(Z=Q3i(G,R,I),R.templatizeInstanceClass=Z);var K=Zyg(G);eVr(G,R,I,K);I=function(){return Z.apply(this,arguments)||this};
_.u(I,Z);I.prototype._methodHost=K;I.prototype.__dataHost=G;I.prototype.__templatizeOwner=c;I.prototype.__hostProps=R.hostProps;return I};
Oyr=function(G,c,I){I=I.constructor._properties;G=G.propertyEffects;c=c.instanceProps;for(var R in G)if(!(I[R]||c&&c[R]))for(var Z=G[R],K=0;K<Z.length;K++){var m=Z[K].info.part;if(!m.signature||!m.signature.static){console.warn("Property '"+R+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
qHi=function(G,c){for(var I;c;)if(I=c.__dataHost?c:c.__templatizeInstance)if(I.__dataHost!=G)c=I.__dataHost;else return I;else c=(0,_.VF)(c).parentNode;return null};
KF=function(G){return G.localName==="slot"};
wCU=function(){for(var G=Pb.prototype,c="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),I={},R=0;R<c.length;I={method$jscomp$33:void 0},R++)I.method$jscomp$33=c[R],G[I.method$jscomp$33]=function(Z){return function(){return this.node[Z.method$jscomp$33].apply(this.node,arguments)}}(I)};
FVr=function(G,c){for(var I={},R=0;R<c.length;I={name$jscomp$448:void 0},R++)I.name$jscomp$448=c[R],Object.defineProperty(G,I.name$jscomp$448,{get:function(Z){return function(){return this.node[Z.name$jscomp$448]}}(I),
configurable:!0})};
nob=function(){for(var G=Pb.prototype,c=["textContent","innerHTML","className"],I={},R=0;R<c.length;I={name$jscomp$449:void 0},R++)I.name$jscomp$449=c[R],Object.defineProperty(G,I.name$jscomp$449,{get:function(Z){return function(){return this.node[Z.name$jscomp$449]}}(I),
set:function(Z){return function(K){this.node[Z.name$jscomp$449]=K}}(I),
configurable:!0})};
voO=function(){QX=document.documentElement.getAttribute("dir");QX=document.documentElement.getAttribute("dir");for(var G=0;G<mI.length;G++){var c=mI[G];c.__autoDirOptOut||c.setAttribute("dir",QX)}};
uYT=function(){af=!0;requestAnimationFrame(function(){af=!1;DOf(ooT);setTimeout(function(){for(var G=0,c=Tm.length;G<c;G++)UOU(Tm.shift())})})};
DOf=function(G){for(;G.length;)UOU(G.shift())};
UOU=function(G){var c=G[0],I=G[1];G=G[2];try{I.apply(c,G)}catch(R){setTimeout(function(){throw R;})}};
_.byr=function(G,c,I){af||uYT();ooT.push([G,c,I])};
_.O$=function(G,c,I){af||uYT();Tm.push([G,c,I])};
LVB=function(G,c){c=c===void 0?!1:c;if(!kob||!s3A||!kob.handlesDynamicScoping)return null;var I=s3A.ScopingShim;if(!I)return null;var R=I.scopeForNode(G),Z=(0,_.VF)(G).getRootNode(),K=function(m){if((0,_.VF)(m).getRootNode()===Z){var a=Array.from(kob.nativeMethods.querySelectorAll.call(m,"*"));a.push(m);for(m=0;m<a.length;m++){var O=a[m];if((0,_.VF)(O).getRootNode()===Z){var N=I.currentScopeForNode(O);N!==R&&(N!==""&&I.unscopeNode(O,N),I.scopeNode(O,R))}}}};
K(G);return c?(c=new MutationObserver(function(m){for(var a=0;a<m.length;a++)for(var O=m[a],N=0;N<O.addedNodes.length;N++){var q=O.addedNodes[N];q.nodeType===Node.ELEMENT_NODE&&K(q)}}),c.observe(G,{childList:!0,
subtree:!0}),c):null};
A7T=function(){document.body.removeAttribute("unresolved")};
Vgf=function(G){var c=G=G.replace($Or,"").replace(SHf,""),I=new pC8;I.start=0;I.end=c.length;for(var R=I,Z=0,K=c.length;Z<K;Z++)if(c[Z]==="{"){R.rules||(R.rules=[]);var m=R,a=m.rules[m.rules.length-1]||null;R=new pC8;R.start=Z+1;R.parent=m;R.previous=a;m.rules.push(R)}else c[Z]==="}"&&(R.end=Z+1,R=R.parent||I);return MgC(I,G)};
MgC=function(G,c){var I=c.substring(G.start,G.end-1);G.parsedCssText=G.cssText=I.trim();G.parent&&(I=c.substring(G.previous?G.previous.end:G.parent.start,G.start-1),I=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(I),I=I.replace(zVf," "),I=I.substring(I.lastIndexOf(";")+1),I=G.parsedSelector=G.selector=I.trim(),G.atRule=I.indexOf("@")===0,G.atRule?I.indexOf("@media")===0?G.type=4:I.match(Eof)&&(G.type=7,G.keyframesName=G.selector.split(zVf).pop()):I.indexOf("--")===
0?G.type=1E3:G.type=1);if(I=G.rules)for(var R=0,Z=I.length,K=void 0;R<Z&&(K=I[R]);R++)MgC(K,c);return G};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(G){return G.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var c=arguments[1],I=6-c.length;I--;)c="0"+c;return"\\"+c})};
J7f=function(G,c,I){I=I===void 0?"":I;var R="";if(G.cssText||G.rules){var Z=G.rules;if(Z&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Z))for(var K=0,m=Z.length,a=void 0;K<m&&(a=Z[K]);K++)R=J7f(a,c,R);else c?c=G.cssText:(c=G.cssText,c=c.replace(WVb,"").replace(iyf,""),c=c.replace(fk0,"").replace(BIO,"")),(R=c.trim())&&(R="  "+R+"\n")}R&&(G.selector&&(I+=G.selector+" {\n"),I+=R,G.selector&&(I+="}\n\n"));return I};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(G){G=G[0];return!!G&&!!G.selector&&G.selector.indexOf("--")===0};
j3b=function(G){if(G=r7B[G])G._applyShimCurrentVersion=G._applyShimCurrentVersion||0,G._applyShimValidatingVersion=G._applyShimValidatingVersion||0,G._applyShimNextVersion=(G._applyShimNextVersion||0)+1};
xOU=function(G){return G._applyShimCurrentVersion===G._applyShimNextVersion};
hVq=function(G){G._applyShimValidatingVersion=G._applyShimNextVersion;G._validating||(G._validating=!0,tgB.then(function(){G._applyShimCurrentVersion=G._applyShimNextVersion;G._validating=!1}))};
CUp=function(G){if(!G)return"";typeof G==="string"&&(G=Vgf(G));return J7f(G,dOO)};
Hyr=function(G){!G.__cssRules&&G.textContent&&(G.__cssRules=Vgf(G.textContent));return G.__cssRules||null};
y7U=function(G,c,I,R){if(G){var Z=!1,K=G.type;if(R&&K===4){var m=G.selector.match(XCg);m&&(window.matchMedia(m[1]).matches||(Z=!0))}K===1?c(G):I&&K===7?I(G):K===1E3&&(Z=!0);if((G=G.rules)&&!Z)for(Z=0,K=G.length,m=void 0;Z<K&&(m=G[Z]);Z++)y7U(m,c,I,R)}};
goB=function(G,c){var I=G.indexOf("var(");if(I===-1)return c(G,"","","");a:{var R=0;var Z=I+3;for(var K=G.length;Z<K;Z++)if(G[Z]==="(")R++;else if(G[Z]===")"&&--R===0)break a;Z=-1}R=G.substring(I+4,Z);I=G.substring(0,I);G=goB(G.substring(Z+1),c);K=R.indexOf(",");if(K===-1)return c(I,R.trim(),"",G);Z=R.substring(0,K).trim();R=R.substring(K+1).trim();return c(I,Z,R,G)};
YHf=function(G){if(eL!==void 0)return eL;if(G.__cssBuild===void 0){var c=G.getAttribute("css-build");if(c)G.__cssBuild=c;else{a:{c=G.localName==="template"?G.content.firstChild:G.firstChild;if(c instanceof Comment&&(c=c.textContent.trim().split(":"),c[0]==="css-build")){c=c[1];break a}c=""}if(c!==""){var I=G.localName==="template"?G.content.firstChild:G.firstChild;I.parentNode.removeChild(I)}G.__cssBuild=c}}return G.__cssBuild||""};
c5r=function(G,c,I,R){for(var Z=c._noAccessors,K=Object.getOwnPropertyNames(c),m=0;m<K.length;m++){var a=K[m];if(!(a in R))if(Z)G[a]=c[a];else{var O=Object.getOwnPropertyDescriptor(c,a);O&&(O.configurable=!0,Object.defineProperty(G,a,O))}}for(var N in G7r)c[N]&&(I[N]=I[N]||[],I[N].push(c[N]))};
Inq=function(G,c,I){c=c||[];for(var R=G.length-1;R>=0;R--){var Z=G[R];Z?Array.isArray(Z)?Inq(Z,c):c.indexOf(Z)<0&&(!I||I.indexOf(Z)<0)&&c.unshift(Z):console.warn("behavior is null, check for missing or 404 import")}return c};
Rd8=function(G,c){for(var I in c){var R=G[I],Z=c[I];G[I]=!("value"in Z)&&R&&"value"in R?Object.assign({value:R.value},Z):Z}};
PIq=function(G,c,I){var R={},Z=function(){return c.apply(this,arguments)||this};
_.u(Z,c);Z._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(m)for(var O=0,N;O<m.length;O++)N=m[O],N.properties&&this.createProperties(N.properties),N.observers&&this.createObservers(N.observers,N.properties);G.properties&&this.createProperties(G.properties);G.observers&&this.createObservers(G.observers,G.properties);this._prepareTemplate()}else c._finalizeClass.call(this)};
Z.prototype.created=function(){c.prototype.created.call(this);var O=R.created;if(O)for(var N=0;N<O.length;N++)O[N].call(this)};
Z.prototype._registered=function(){var O=Z.prototype;if(!O.hasOwnProperty("__hasRegisterFinished")){O.__hasRegisterFinished=!0;c.prototype._registered.call(this);yF&&a(O);O=Object.getPrototypeOf(this);var N=R.beforeRegister;if(N)for(var q=0;q<N.length;q++)N[q].call(O);if(N=R.registered)for(q=0;q<N.length;q++)N[q].call(O)}};
Z.prototype._applyListeners=function(){c.prototype._applyListeners.call(this);var O=R.listeners;if(O)for(var N=0;N<O.length;N++){var q=O[N];if(q)for(var w in q)this._addMethodEventListenerToNode(this,w,q[w])}};
Z.prototype._ensureAttributes=function(){var O=R.hostAttributes;if(O)for(var N=O.length-1;N>=0;N--){var q=O[N],w;for(w in q)this._ensureAttribute(w,q[w])}c.prototype._ensureAttributes.call(this)};
Z.prototype.ready=function(){c.prototype.ready.call(this);var O=R.ready;if(O)for(var N=0;N<O.length;N++)O[N].call(this)};
Z.prototype.attached=function(){c.prototype.attached.call(this);var O=R.attached;if(O)for(var N=0;N<O.length;N++)O[N].call(this)};
Z.prototype.detached=function(){c.prototype.detached.call(this);var O=R.detached;if(O)for(var N=0;N<O.length;N++)O[N].call(this)};
Z.prototype.attributeChanged=function(O,N,q){c.prototype.attributeChanged.call(this);var w=R.attributeChanged;if(w)for(var F=0;F<w.length;F++)w[F].call(this,O,N,q)};
_.Nh.Object.defineProperties(Z,{properties:{configurable:!0,enumerable:!0,get:function(){var O={};if(m)for(var N=0;N<m.length;N++)Rd8(O,m[N].properties);Rd8(O,G.properties);return O}},
observers:{configurable:!0,enumerable:!0,get:function(){var O=[];if(m)for(var N=0,q;N<m.length;N++)q=m[N],q.observers&&(O=O.concat(q.observers));G.observers&&(O=O.concat(G.observers));return O}}});
if(I){Array.isArray(I)||(I=[I]);var K=c.prototype.behaviors;var m=Inq(I,null,K);Z.prototype.behaviors=K?K.concat(I):m}var a=function(O){if(m)for(var N=m,q=0;q<N.length;q++)c5r(O,N[q],R,ZmB);c5r(O,G,R,KUq)};
yF||a(Z.prototype);Z.generatedFrom=G;return Z};
T1r=function(G){var c=typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0};c.fastInit===void 0&&(c.fastInit=!0);return function(I){if(!c.disableInheritanceCheck&&Object.getPrototypeOf(I.prototype).constructor!==_.li)throw Error("Td");var R=I.prototype;R.is=c.is;qg0(R,"created",function(){this.hostElement=this;this.polymerController=this});
Qb0(R,I,c.fastInit);c.notifyObserversOnUndefined&&(R._overrideLegacyUndefined=!0);if(m0C)for(var Z=_.Q(Object.getOwnPropertyNames(R)),K=Z.next();!K.done;K=Z.next()){K=K.value;var m=Object.getOwnPropertyDescriptor(R,K);m.enumerable===!1&&(m.enumerable=!0,Object.defineProperty(R,K,m))}if("template"in I)var a=function(){return I.template};
else c.template!==void 0&&(a=c.template);if(a!==void 0){var O;Object.defineProperty(R,"_template",{get:function(){O===void 0&&(O=a());return O},
set:function(N){O=N},
configurable:!0,enumerable:!0})}Polymer(R);I[anf]=R}};
Omp=function(G){G=G===void 0?{}:G;G.fastInit===void 0&&(G.fastInit=!0);return function(c){if(!G.disableInheritanceCheck&&Object.getPrototypeOf(c.prototype).constructor!==qh)throw Error("Ud");Qb0(c.prototype,c,G.fastInit)}};
Qb0=function(G,c,I){I=I===void 0?!1:I;edg(c);I?qg0(G,"created",function(){this.disableEnforceFastDefaultValuesCheck||N18(c,this)}):qg0(G,"ready",function(){for(var R={},Z=_.Q(wmb(this.behaviors)),K=Z.next();!K.done;K=Z.next())K=K.value,K.properties&&Object.assign(R,lnA(this,K.properties));
Object.assign(R,lnA(this,this.properties));N18(c,this);Z=_.Q(Object.keys(R));for(K=Z.next();!K.done;K=Z.next())K=K.value,this[K]=R[K]})};
N18=function(G,c){if(m0C){G=new G;for(var I=_.Q(Object.getOwnPropertyNames(G)),R=I.next();!R.done;R=I.next())R=R.value,c[R]=G[R];for(I=c;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){R=_.Q(Object.getOwnPropertyNames(I));for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,G.hasOwnProperty(Z)||Object.defineProperty(G,Z,qFf(c,Z))}}else G.apply(c)};
qFf=function(G,c){return{get:function(){var I=G[c];return I instanceof Function?I.bind(G):I},
set:function(I){G[c]=I}}};
lnA=function(G,c){if(!c)return{};for(var I={},R=_.Q(Object.keys(c)),Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,!c[Z].readOnly){var K=G[Z];K!==void 0&&(I[Z]=K)}return I};
edg=function(G){var c=new G;G=G.prototype.properties||{};for(var I=_.Q(Object.keys(G)),R=I.next();!R.done;R=I.next())if(R=R.value,c.hasOwnProperty(R)){var Z=G[R];typeof Z==="function"&&(G[R]=Z={type:Z});c[R]!=null&&Z.type===Object&&(Z.type=w7b(c[R].constructor))}};
w7b=function(G){for(var c=_.Q(FUO),I=c.next();!I.done;I=c.next())if(I=I.value,G===I)return I;return Object};
nqC=function(G){return function(c,I){c.behaviors=c.behaviors||[];c.behaviors.push(G||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",c,I).prototype:void 0));Object.defineProperty(c,I,{get:function(){return this},
enumerable:!0,configurable:!0})}};
vqA=function(G){G=G===void 0?{}:G;return function(c,I){c.properties=c.properties||{};G.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?G.type=w7b(Reflect.getMetadata("design:type",c,I)):G.type=String);var R=G,Z=c.properties[I];c.properties[I]=Z?Object.assign({},Z,R):R}};
D0b=function(G){return function(c,I){c.listeners=c.listeners||{};c.listeners[G]=I}};
oqi=function(){var G=_.Hy.apply(0,arguments);if(G.length===0)throw Error("Vd");return function(c,I){c.observers=c.observers||[];c.observers.push(I+"("+G.join(",")+")")}};
U0r=function(){var G=_.Hy.apply(0,arguments);return function(c,I,R){var Z=Object.getOwnPropertyDescriptor(c,I).get,K="__compute__"+I;Object.defineProperty(c,K,{value:Z,enumerable:!0});c.properties=c.properties||{};Z=c.properties[I];Z||(Z={},c.properties[I]=Z);Z.computed=K+"("+G.join(",")+")";R.get=void 0}};
_.wc=function(G,c,I){_.JK.call(this);this.JSC$11480_id_=null;this.usingListeners_=!1;this.JSC$11480_listener_=G;this.handler_=I;this.JSC$11480_win_=c||window;this.callback_=(0,_.WD)(this.JSC$11482_doAction_,this)};
Fu=function(G){this.range_=G};
nF=function(G){this.range_=G};
of=function(G,c,I){_.JK.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=G;this.scrollTimer_=new _.vb(50);this.JSC$11559_eventHandler_=new _.D0(this);this.scrollDelta_=new _.ts;this.containerIsActuallyContent_=G.tagName==="BODY"||G.tagName==="HTML";this.containerBounds_=uIB(G);this.containerIsActuallyContent_&&(G=_.p8(),this.containerBounds_.height=G.height,this.containerBounds_.width=G.width);this.margin_=c||0;if(c){if(c=this.containerBounds_.clone(),G=this.margin_){var R=
Math.min(G,c.height*.25);c.top+=R;c.height-=2*R;G=Math.min(G,c.width*.25);c.left+=G;c.width-=2*G}}else c=this.containerBounds_;this.scrollBounds_=c;I||this.JSC$11559_eventHandler_.listen(_.dx(this.containerNode_),"mousemove",this.JSC$11561_onMouseMove);this.JSC$11559_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11561_onTick_)};
_.ui=function(G){this.mechanism=G};
bi=function(G,c){this.JSC$11657_key_=G;this.JSC$11657_value_=c};
k7b=function(G){if(G>=55296&&G<=57343||G>1114111)return"\ufffd";G in bmB&&(G=bmB[G]);var c="";G>65535&&(G-=65536,c+=String.fromCharCode(G>>>10&1023|55296),G=56320|G&1023);return c+=String.fromCharCode(G)};
sbb=function(G,c){return G<c?1:-1};
A5T=function(){return function(G){return G.charAt(1)==="#"?G.charAt(2)==="X"||G.charAt(2)==="x"?k7b(parseInt(G.substr(3),16)):k7b(parseInt(G.substr(2),10)):LUb[G.slice(1,-1)]}};
p7p=function(G){return G.slice(1,G.length-1).trim().replace($08,function(c){return SFi[c]||" "})};
kd=function(G){return G===32||G===9};
s$=function(G,c){return c<G.length?G.charCodeAt(c):-1};
M18=function(G){for(;G;){if(G._lastLineBlank)return!0;var c=G.type;if(c==="list"||c==="item")G=G._lastChild;else break}return!1};
LF=function(G){if(V1r.test(G)){var c=1,I=0,R=0;for(G[I]=="|"&&I++;I<G.length;){switch(G[I]){case "|":R=1;break;case " ":break;case "\t":break;default:R&&(R=0,c++)}I++}return zdr.test(G)?-c:c}return 0};
EqB=function(G){return G=="table"||G=="row"||G=="cell"};
J58=function(){return new A8("document",[[1,1],[0,0]])};
WUr=function(){};
$d=function(){var G={safe:!1};G=G||{};G.softbreak=G.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=G};
jbp=function(G,c){var I="";if(G)if(G=G.toLowerCase(),G===" "||imb.test(G))I="space";else if(fnO.test(G))I="esc";else if(G.length==1){if(!c||B1p.test(G))I=G}else I=r5T.test(G)?G.replace("arrow",""):G=="multiply"?"*":G;return I};
d08=function(G,c){var I=G.hasModifiers;if(c.key)I=jbp(c.key,I);else if(c.detail&&c.detail.key)I=jbp(c.detail.key,I);else{I=c.keyIdentifier;var R="";I&&(I in x0q?R=x0q[I]:t1r.test(I)?(I=parseInt(I.replace("U+","0x"),16),R=String.fromCharCode(I).toLowerCase()):R=I.toLowerCase());(I=R)||(I=c.keyCode,R="",Number(I)&&(I>=65&&I<=90?R=String.fromCharCode(32+I):I>=112&&I<=123?R="f"+(I-112+1):I>=48&&I<=57?R=String(I-48):I>=96&&I<=105?R=String(I-96):R=hdi[I]),I=R);I=I||""}return I===G.key&&(!G.hasModifiers||
!!c.shiftKey===!!G.shiftKey&&!!c.ctrlKey===!!G.ctrlKey&&!!c.altKey===!!G.altKey&&!!c.metaKey===!!G.metaKey)};
Hmg=function(G){return G.length===1?{combo:G,key:G,event:"keydown"}:G.split("+").reduce(function(c,I){var R=I.split(":");I=R[0];R=R[1];I in CIr?(c[CIr[I]]=!0,c.hasModifiers=!0):(c.key=I,c.event=R||"keydown");return c},{combo:G.split(":").shift()})};
X7g=function(G){return G.trim().split(" ").map(function(c){return Hmg(c)})};
y5A=function(G,c){if(G&&G.fn){var I=G.fn;G.fn=function(){try{I.apply(this,arguments)}catch(R){if(R instanceof SL)console.warn("Argument '"+R.arg+"'"+(c?" for method '"+c+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw R;}}}return G};
YFr=function(){var G=[],c;var I=I||_.gqr.length;for(c=0;c<8;c++)G[c]=_.gqr[0|Math.random()*I];return G.join("")};
GRq=function(){var G=_.Hy.apply(0,arguments);return G.length===0?function(c){return c}:G.length===1?G[0]:G.reduce(function(c,I){return function(){return c(I.apply(null,_.jn(_.Hy.apply(0,arguments))))}})};
cEb=function(){var G=_.Hy.apply(0,arguments);return function(c){return function(I,R){I=c(I,R);var Z=function(){throw Error("Fe");},K={getState:I.getState,
dispatch:function(m){return Z.apply(null,[m].concat(_.jn(_.Hy.apply(1,arguments))))}};
R=G.map(function(m){return m(K)});
Z=GRq.apply(null,_.jn(R))(I.dispatch);return Object.assign({},I,{dispatch:Z})}}};
ZUb=function(G){Object.keys(G).forEach(function(c){var I=G[c];if(typeof I(void 0,{type:Ir8})==="undefined")throw Error("Ge`"+c);if(typeof I(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+RbT()})==="undefined")throw Error("He`"+c+"`"+Ir8);})};
pF=function(G){for(var c=Object.keys(G),I={},R=0;R<c.length;R++){var Z=c[R];typeof G[Z]==="function"&&(I[Z]=G[Z])}var K=Object.keys(I);try{ZUb(I)}catch(a){var m=a}return function(a,O){a=a===void 0?{}:a;if(m)throw m;for(var N=!1,q={},w=0;w<K.length;w++){var F=K[w],n=a[F],U=(0,I[F])(n,O);if(typeof U==="undefined")throw a=O&&O.type,Error("Ie`"+(a?'"'+String(a)+'"':"(unknown type)")+"`"+F);q[F]=U;N=N||U!==n}return(N=N||K.length!==Object.keys(a).length)?q:a}};
Kdp=function(G,c,I){function R(){if(q)throw Error("Je");return a}
function Z(n){if(typeof n!=="function")throw Error("Ke`"+typeof n);if(q)throw Error("Le");var U=!0;N===O&&(N=O.slice());N.push(n);return function(){if(U){if(q)throw Error("Me");U=!1;N===O&&(N=O.slice());var k=N.indexOf(n);N.splice(k,1);O=null}}}
function K(n){if(typeof n!=="object"||n===null)var U=!1;else{for(U=n;Object.getPrototypeOf(U)!==null;)U=Object.getPrototypeOf(U);U=Object.getPrototypeOf(n)===U}if(!U)throw Error("Ne`"+typeof n);if(typeof n.type==="undefined")throw Error("Oe");if(q)throw Error("Pe");try{q=!0,a=m(a,n)}finally{q=!1}U=O=N;for(var k=0;k<U.length;k++)(0,U[k])();return n}
if(typeof c==="function"&&typeof I==="function"||typeof I==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof c==="function"&&typeof I==="undefined"&&(I=c,c=void 0);if(typeof I!=="undefined"){if(typeof I!=="function")throw Error("Re`"+typeof I);return I(Kdp)(G,c)}if(typeof G!=="function")throw Error("Se`"+typeof G);var m=G,a=c,O=[],N=O,q=!1;K({type:Ir8});var w={},F=(w.dispatch=K,w.subscribe=Z,w.getState=R,w.replaceReducer=function(n){if(typeof n!=="function")throw Error("Te`"+
typeof n);m=n;K({type:Ptg});return F},w[QKT]=function(){var n={};
return n.subscribe=function(U){function k(){U.next&&U.next(R())}
if(typeof U!=="object"||U===null)throw new TypeError("Ue`"+typeof U);k();return{unsubscribe:Z(k)}},n[QKT]=function(){return this},n},w);
return F};
mU0=function(G){function c(){Z&&(Z=!1,G());K&&R()}
function I(){requestAnimationFrame(c)}
function R(){var a=Date.now();if(Z){if(a-m<2)return;K=!0}else Z=!0,K=!1,setTimeout(I,20);m=a}
var Z=!1,K=!1,m=0;return R};
Mh=function(G){return typeof G==="number"?G:parseFloat(G)||0};
arT=function(G){return _.Hy.apply(1,arguments).reduce(function(c,I){return c+Mh(G["border-"+I+"-width"])},0)};
N4B=function(G){if(T4p[G])return T4p[G];var c=globalThis[G],I=c.prototype,R=G in OUB?OUB[G]:void 0;R=!(!R||!R.every(function(O){var N,q;return!!((N=Object.getOwnPropertyDescriptor(I,O))==null?0:(q=N.get)==null?0:q.toString().includes("[native code]"))}));
var Z=G in ebb?ebb[G]:void 0;Z=!(!Z||!Z.every(function(O){var N;return typeof I[O]==="function"&&((N=I[O])==null?void 0:N.toString().includes("[native code]"))}));
if(R&&Z&&!globalThis.Zone)return T4p[G]=c.prototype;try{var K=document.createElement("iframe");document.body.appendChild(K);var m=K.contentWindow;if(!m)return c.prototype;var a=m[G].prototype;document.body.removeChild(K);return a?T4p[G]=a:I}catch(O){return I}};
VX=function(G,c,I){var R=G+"."+String(I);if(lrp[R])return lrp[R].call(c);G=N4B(G);var Z;G=(Z=Object.getOwnPropertyDescriptor(G,I))==null?void 0:Z.get;if(!G)return c[I];lrp[R]=G;return G.call(c)};
wLr=function(G,c){var I="Node."+String(c);if(qt8[I])return qt8[I].bind(G);var R=N4B("Node")[c];if(typeof R!=="function")return G[c];qt8[I]=R;return R.bind(G)};
zm=function(G,c,I){try{if(!(c in G))return function(){};
var R=G[c],Z=I(R);typeof Z==="function"&&(Z.prototype=Z.prototype||{},Object.defineProperties(Z,{__rrweb_original__:{enumerable:!1,value:R}}));G[c]=Z;return function(){G[c]=R}}catch(K){return function(){}}};
Wb=function(G){var c=G&&"host"in G&&"mode"in G&&E$(G)||null;return!!(c&&"shadowRoot"in c&&J8(c)===G)};
ii=function(G){return Object.prototype.toString.call(G)==="[object ShadowRoot]"};
Fdr=function(G){G.includes(" background-clip: text;")&&!G.includes(" -webkit-background-clip: text;")&&(G=G.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return G};
vzT=function(G){try{var c=G.rules||G.cssRules;if(!c)return null;var I=G.href;!I&&G.ownerNode&&(I=G.ownerNode.baseURI);var R=Array.from(c,function(Z){return nz8(Z,I)}).join("");
return Fdr(R)}catch(Z){return null}};
nz8=function(G,c){if("styleSheet"in G){try{var I;if(!(I=vzT(G.styleSheet))){var R=G.cssText;if(R.split('"').length<3)I=R;else{var Z=["@import","url("+JSON.stringify(G.href)+")"];G.layerName===""?Z.push("layer"):G.layerName&&Z.push("layer("+G.layerName+")");G.supportsText&&Z.push("supports("+G.supportsText+")");G.media.length&&Z.push(G.media.mediaText);I=Z.join(" ")+";"}}var K=I}catch(m){K=G.cssText}return G.styleSheet.href?DUU(K,G.styleSheet.href):K}K=G.cssText;"selectorText"in G&&G.selectorText.includes(":")&&
(K=K.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return c?DUU(K,c):K};
ozC=function(G){var c=G.element;var I=G.maskInputOptions;var R=G.tagName;var Z=G.type;var K=G.value;G=G.maskInputFn;K=K||"";Z=Z&&Z.toLowerCase();if(I[R.toLowerCase()]||Z&&I[Z])K=G?G(K,c):"*".repeat(K.length);return K};
UU8=function(G){var c=G.getContext("2d");if(!c)return!0;for(var I=0;I<G.width;I+=50)for(var R=0;R<G.height;R+=50){var Z=c.getImageData;if((new Uint32Array(("__rrweb_original__"in Z?Z.__rrweb_original__:Z).call(c,I,R,Math.min(50,G.width-I),Math.min(50,G.height-R)).data.buffer)).some(function(K){return K!==0}))return!1}return!0};
uCg=function(G){var c=G.type;return G.hasAttribute("data-rr-is-password")?"password":c?c.toLowerCase():null};
bUr=function(G){try{var c=new URL(G,window.location.href)}catch(Z){return null}var I,R;return(R=(I=c.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:I[1])!=null?R:null};
DUU=function(G,c){return(G||"").replace(kRg,function(I,R,Z,K,m,a){Z=Z||m||a;R=R||K||"";if(!Z)return I;if(sKU.test(Z)||LdT.test(Z)||AEf.test(Z))return"url("+R+Z+R+")";if(Z[0]==="/")return I=c.indexOf("//")>-1?c.split("/").slice(0,3).join("/"):c.split("/")[0],I=I.split("?")[0],"url("+R+(I+Z)+R+")";I=c.split("/");K=Z.split("/");I.pop();K=_.Q(K);for(Z=K.next();!Z.done;Z=K.next())Z=Z.value,Z!=="."&&(Z===".."?I.pop():I.push(Z));return"url("+R+I.join("/")+R+")"})};
$UC=function(G,c){return(c=c===void 0?!1:c)?G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
StC=function(G,c){var I=I===void 0?!1:I;c=Array.from(c.childNodes);var R=[],Z=0;if(c.length>1&&G&&typeof G==="string")for(var K=$UC(G,I),m=K.length/G.length,a=1;a<c.length;a++)if(c[a].textContent&&typeof c[a].textContent==="string"){for(var O=$UC(c[a].textContent,I),N=3;N<O.length&&(O[N].match(/[a-zA-Z0-9]/)||O.indexOf(O.substring(0,N),1)!==-1);N++);for(;N<O.length;N++){var q=O.substring(0,N),w=K.split(q),F=-1;if(w.length===2)F=w[0].length;else if(w.length>2&&w[0]===""&&c[a-1].textContent!=="")F=
K.indexOf(q,1);else if(w.length===1){q=q.substring(0,q.length-1);w=K.split(q);if(w.length<=1)return R.push(G),R;N=101}else N===O.length-1&&(F=K.indexOf(q));if(w.length>=2&&N>100){var n=c[a-1].textContent;n&&typeof n==="string"&&(F=K.indexOf(q,$UC(n).length));F===-1&&(F=w[0].length)}if(F!==-1){for(O=Math.floor(F/m);O>0&&O<G.length;){Z+=1;if(Z>50*c.length)return R.push(G),R;N=$UC(G.substring(0,O),I);if(N.length===F){R.push(G.substring(0,O));G=G.substring(O);K=K.substring(F);break}else O=N.length<F?
O+Math.max(1,Math.floor((F-N.length)/m)):O-Math.max(1,Math.floor((N.length-F)*m))}break}}}R.push(G);return R};
MoC=function(){return pLO++};
zbb=function(G){if(G instanceof HTMLFormElement)return"form";G=G.tagName.toLowerCase();return Vog.test(G)?"div":G};
iUA=function(G,c){function I(N){return(N=N.exec(c.substring(R)))?(N=N[0],R+=N.length,N):""}
if(c.trim()==="")return c;for(var R=0,Z=[];;){I(EzU);if(R>=c.length)break;var K=I(JE8);if(K.slice(-1)===",")K=WdU(G,K.substring(0,K.length-1)),Z.push(K);else{var m="";K=WdU(G,K);for(var a=!1;;){var O=c.charAt(R);if(O===""){Z.push((K+m).trim());break}else if(a)O===")"&&(a=!1);else if(O===","){R+=1;Z.push((K+m).trim());break}else O==="("&&(a=!0);m+=O;R+=1}}}return Z.join(", ")};
WdU=function(G,c){return c&&c.trim()!==""?frq(G,c):c};
frq=function(G,c){var I=B4r.get(G);I||(I=G.createElement("a"),B4r.set(G,I));if(!c)c="";else if(c.startsWith("blob:")||c.startsWith("data:"))return c;yx(I,c);return I.href};
rEg=function(G,c,I,R){return R?I==="src"||I==="href"&&(c!=="use"||R[0]!=="#")||I==="xlink:href"&&R[0]!=="#"||I==="background"&&(c==="table"||c==="td"||c==="th")?WdU(G,R):I==="srcset"?iUA(G,R):I==="style"?DUU(R,frq(G)):c==="object"&&I==="data"?WdU(G,R):R:R};
jKi=function(G,c){return(G==="video"||G==="audio")&&c==="autoplay"};
xUO=function(G,c,I){try{if(typeof c==="string"){if(G.classList.contains(c))return!0}else for(var R=G.classList.length;R--;)if(c.test(G.classList[R]))return!0;if(I)return G.matches(I)}catch(Z){}return!1};
tor=function(G,c,I){if(!G)return!1;if(G.nodeType!==G.ELEMENT_NODE)return I?tor(fF(G),c,I):!1;for(var R=G.classList.length;R--;)if(c.test(G.classList[R]))return!0;return I?tor(fF(G),c,I):!1};
hbO=function(G,c,I,R){if(G.nodeType===G.ELEMENT_NODE){if(!Bb(G).length)return!1}else{if(rc(G)===null)return!1;G=rc(G)}try{if(typeof c==="string")if(R){if(G.closest("."+c))return!0}else{if(G.classList.contains(c))return!0}else if(tor(G,c,R))return!0;if(I)if(R){if(G.closest(I))return!0}else if(G.matches(I))return!0}catch(Z){}return!1};
dUb=function(G,c,I){var R=G.contentWindow;if(R){var Z=!1;try{var K=R.document.readyState}catch(a){return}if(K!=="complete"){var m=setTimeout(function(){Z||(c(),Z=!0)},I);
G.addEventListener("load",function(){clearTimeout(m);Z=!0;c()})}else R.location.href==="about:blank"&&G.src!=="about:blank"&&G.src!==""||setTimeout(c,0),G.addEventListener("load",c)}};
CtO=function(G,c,I){var R=!1;try{var Z=G.sheet}catch(m){return}if(!Z){var K=setTimeout(function(){R||(c(),R=!0)},I);
G.addEventListener("load",function(){clearTimeout(K);R=!0;c()})}};
yEp=function(G,c){var I=c.doc,R=c.blockClass,Z=c.blockSelector,K=c.needsMask,m=c.inlineStylesheet,a=c.maskInputOptions===void 0?{}:c.maskInputOptions,O=c.maskTextFn,N=c.maskInputFn,q=c.dataURLOptions===void 0?{}:c.dataURLOptions,w=c.inlineImages,F=c.recordCanvas,n=c.keepIframeSrcFn,U=c.newlyAddedElement===void 0?!1:c.newlyAddedElement,k=c.cssCaptured===void 0?!1:c.cssCaptured;c=c.mirror;c.nodeMetaMap.has(I)?(c=c.getId(I),c=c===1?void 0:c):c=void 0;switch(G.nodeType){case G.DOCUMENT_NODE:return G.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:G.compatMode}:{type:0,childNodes:[]};case G.DOCUMENT_TYPE_NODE:return{type:1,name:G.name,publicId:G.publicId,systemId:G.systemId,rootId:c};case G.ELEMENT_NODE:return HUU(G,{doc:I,blockClass:R,blockSelector:Z,inlineStylesheet:m,maskInputOptions:a,maskInputFn:N,dataURLOptions:q,inlineImages:w,recordCanvas:F,keepIframeSrcFn:n,newlyAddedElement:U,rootId:c});case G.TEXT_NODE:return m=(R=fF(G))&&R.tagName,R="",Z=m==="STYLE"?!0:void 0,(m=m==="SCRIPT"?!0:void 0)?
R="SCRIPT_PLACEHOLDER":k||(R=XLg(G),Z&&R&&(R=DUU(R,frq(I)))),!Z&&!m&&R&&K&&(R=O?O(R,rc(G)):R.replace(/[\S]/g,"*")),{type:3,textContent:R||"",rootId:c};case G.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:c};case G.COMMENT_NODE:return{type:5,textContent:XLg(G)||"",rootId:c};default:return!1}};
HUU=function(G,c){var I=c.doc,R=c.inlineStylesheet,Z=c.maskInputOptions===void 0?{}:c.maskInputOptions,K=c.maskInputFn,m=c.dataURLOptions===void 0?{}:c.dataURLOptions,a=c.inlineImages,O=c.recordCanvas,N=c.keepIframeSrcFn,q=c.newlyAddedElement===void 0?!1:c.newlyAddedElement,w=c.rootId;c=xUO(G,c.blockClass,c.blockSelector);for(var F=zbb(G),n={},U=G.attributes.length,k=0;k<U;k++){var p=G.attributes[k];jKi(F,p.name)||(n[p.name]=rEg(I,F,p.name.toLowerCase(),p.value))}F==="link"&&R&&(R=Array.from(I.styleSheets).find(function(C){return C.href===
G.href}),U=null,R&&(U=vzT(R)),U&&(delete n.rel,delete n.href,n._cssText=U));
F==="style"&&G.sheet&&(R=vzT(G.sheet))&&(G.childNodes.length>1&&(R=StC(R,G).join("/* rr_split */")),n._cssText=R);if(F==="input"||F==="textarea"||F==="select")R=G.value,U=G.checked,n.type!=="radio"&&n.type!=="checkbox"&&n.type!=="submit"&&n.type!=="button"&&R?n.value=ozC({element:G,type:uCg(G),tagName:F,value:R,maskInputOptions:Z,maskInputFn:K}):U&&(n.checked=U);F==="option"&&(G.selected&&!Z.select?n.selected=!0:delete n.selected);F==="dialog"&&G.open&&(n.rr_open_mode=G.matches("dialog:modal")?"modal":
"non-modal");F==="canvas"&&O&&(G.__context==="2d"?UU8(G)||(n.rr_dataURL=G.toDataURL(m.type,m.quality)):"__context"in G||(Z=G.toDataURL(m.type,m.quality),K=I.createElement("canvas"),K.width=G.width,K.height=G.height,K=K.toDataURL(m.type,m.quality),Z!==K&&(n.rr_dataURL=Z)));if(F==="img"&&a){jL||(jL=I.createElement("canvas"),gzC=jL.getContext("2d"));var M=G.currentSrc||G.getAttribute("src")||"<unknown-src>",z=G.crossOrigin,t=function(){G.removeEventListener("load",t);try{jL.width=G.naturalWidth,jL.height=
G.naturalHeight,gzC.drawImage(G,0,0),n.rr_dataURL=jL.toDataURL(m.type,m.quality)}catch(C){if(G.crossOrigin!=="anonymous"){G.crossOrigin="anonymous";G.complete&&G.naturalWidth!==0?t():G.addEventListener("load",t);return}console.warn("Cannot inline img src="+M+"! Error: "+C)}G.crossOrigin==="anonymous"&&(z?n.crossOrigin=z:G.removeAttribute("crossorigin"))};
G.complete&&G.naturalWidth!==0?t():G.addEventListener("load",t)}if(F==="audio"||F==="video")I=n,I.rr_mediaState=G.paused?"paused":"played",I.rr_mediaCurrentTime=G.currentTime,I.rr_mediaPlaybackRate=G.playbackRate,I.rr_mediaMuted=G.muted,I.rr_mediaLoop=G.loop,I.rr_mediaVolume=G.volume;q||(G.scrollLeft&&(n.rr_scrollLeft=G.scrollLeft),G.scrollTop&&(n.rr_scrollTop=G.scrollTop));c&&(q=G.getBoundingClientRect(),n={class:n.class,rr_width:q.width+"px",rr_height:q.height+"px"});F!=="iframe"||N(n.src)||(G.contentDocument||
(n.rr_src=n.src),delete n.src);var x;try{customElements.get(F)&&(x=!0)}catch(C){}return{type:2,tagName:F,attributes:n,childNodes:[],isSVG:!(G.tagName!=="svg"&&!G.ownerSVGElement)||void 0,needBlock:c,rootId:w,isCustom:x}};
xd=function(G){return G===void 0||G===null?"":G.toLowerCase()};
Ytb=function(G,c){return c.comment&&G.type===5||G.type===2&&(c.script&&(G.tagName==="script"||G.tagName==="link"&&(G.attributes.rel==="preload"&&G.attributes.as==="script"||G.attributes.rel==="modulepreload")||G.tagName==="link"&&G.attributes.rel==="prefetch"&&typeof G.attributes.href==="string"&&bUr(G.attributes.href)==="js")||c.headFavicon&&(G.tagName==="link"&&G.attributes.rel==="shortcut icon"||G.tagName==="meta"&&(xd(G.attributes.name).match(/^msapplication-tile(image|color)$/)||xd(G.attributes.name)===
"application-name"||xd(G.attributes.rel)==="icon"||xd(G.attributes.rel)==="apple-touch-icon"||xd(G.attributes.rel)==="shortcut icon"))||G.tagName==="meta"&&(c.headMetaDescKeywords&&xd(G.attributes.name).match(/^description|keywords$/)||c.headMetaSocial&&(xd(G.attributes.property).match(/^(og|twitter|fb):/)||xd(G.attributes.name).match(/^(og|twitter):/)||xd(G.attributes.name)==="pinterest")||c.headMetaRobots&&(xd(G.attributes.name)==="robots"||xd(G.attributes.name)==="googlebot"||xd(G.attributes.name)===
"bingbot")||c.headMetaHttpEquiv&&G.attributes["http-equiv"]!==void 0||c.headMetaAuthorship&&(xd(G.attributes.name)==="author"||xd(G.attributes.name)==="generator"||xd(G.attributes.name)==="framework"||xd(G.attributes.name)==="publisher"||xd(G.attributes.name)==="progid"||xd(G.attributes.property).match(/^article:/)||xd(G.attributes.property).match(/^product:/))||c.headMetaVerification&&(xd(G.attributes.name)==="google-site-verification"||xd(G.attributes.name)==="yandex-verification"||xd(G.attributes.name)===
"csrf-token"||xd(G.attributes.name)==="p:domain_verify"||xd(G.attributes.name)==="verify-v1"||xd(G.attributes.name)==="verification"||xd(G.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
t8=function(G,c){var I=c.doc,R=c.mirror,Z=c.blockClass,K=c.blockSelector,m=c.maskTextClass,a=c.maskTextSelector,O=c.skipChild===void 0?!1:c.skipChild,N=c.inlineStylesheet===void 0?!0:c.inlineStylesheet,q=c.maskInputOptions===void 0?{}:c.maskInputOptions,w=c.maskTextFn,F=c.maskInputFn,n=c.slimDOMOptions,U=c.dataURLOptions===void 0?{}:c.dataURLOptions,k=c.inlineImages===void 0?!1:c.inlineImages,p=c.recordCanvas===void 0?!1:c.recordCanvas,M=c.onSerialize,z=c.onIframeLoad,t=c.iframeLoadTimeout===void 0?
5E3:c.iframeLoadTimeout,x=c.onStylesheetLoad,C=c.stylesheetLoadTimeout===void 0?5E3:c.stylesheetLoadTimeout,H=c.keepIframeSrcFn===void 0?function(){return!1}:c.keepIframeSrcFn,g=c.newlyAddedElement===void 0?!1:c.newlyAddedElement,QO=c.cssCaptured===void 0?!1:c.cssCaptured,T8=c.needsMask,kp=c.preserveWhiteSpace===void 0?!0:c.preserveWhiteSpace;
T8||(T8=hbO(G,m,a,T8===void 0));var FB=yEp(G,{doc:I,mirror:R,blockClass:Z,blockSelector:K,needsMask:T8,inlineStylesheet:N,maskInputOptions:q,maskTextFn:w,maskInputFn:F,dataURLOptions:U,inlineImages:k,recordCanvas:p,keepIframeSrcFn:H,newlyAddedElement:g,cssCaptured:QO});if(!FB)return console.warn(G,"not serialized"),null;g=R.nodeMetaMap.has(G)?R.getId(G):Ytb(FB,n)||!kp&&FB.type===3&&!FB.textContent.replace(/^\s+|\s+$/gm,"").length?-2:pLO++;c=Object.assign(FB,{id:g});R.add(G,c);if(g===-2)return null;
M&&M(G);g=!O;c.type===2&&(g=g&&!c.needBlock,delete c.needBlock,(QO=J8(G))&&ii(QO)&&(c.isShadowHost=!0));if((c.type===0||c.type===2)&&g){n.headWhitespace&&c.type===2&&c.tagName==="head"&&(kp=!1);O={doc:I,mirror:R,blockClass:Z,blockSelector:K,needsMask:T8,maskTextClass:m,maskTextSelector:a,skipChild:O,inlineStylesheet:N,maskInputOptions:q,maskTextFn:w,maskInputFn:F,slimDOMOptions:n,dataURLOptions:U,inlineImages:k,recordCanvas:p,preserveWhiteSpace:kp,onSerialize:M,onIframeLoad:z,iframeLoadTimeout:t,
onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:H,cssCaptured:!1};if(c.type!==2||c.tagName!=="textarea"||c.attributes.value===void 0)for(c.type===2&&c.attributes._cssText!==void 0&&typeof c.attributes._cssText==="string"&&(O.cssCaptured=!0),g=_.Q(Array.from(Bb(G))),QO=g.next();!QO.done;QO=g.next())(QO=t8(QO.value,O))&&c.childNodes.push(QO);g=null;if(G.nodeType===G.ELEMENT_NODE&&(g=J8(G))){QO=_.Q(Array.from(Bb(g)));for(var oq=QO.next();!oq.done;oq=QO.next())if(oq=t8(oq.value,O))ii(g)&&(oq.isShadow=
!0),c.childNodes.push(oq)}}(O=fF(G))&&Wb(O)&&ii(O)&&(c.isShadow=!0);c.type===2&&c.tagName==="iframe"&&dUb(G,function(){var Wr=G.contentDocument;Wr&&z&&(Wr=t8(Wr,{doc:Wr,mirror:R,blockClass:Z,blockSelector:K,needsMask:T8,maskTextClass:m,maskTextSelector:a,skipChild:!1,inlineStylesheet:N,maskInputOptions:q,maskTextFn:w,maskInputFn:F,slimDOMOptions:n,dataURLOptions:U,inlineImages:k,recordCanvas:p,preserveWhiteSpace:kp,onSerialize:M,onIframeLoad:z,iframeLoadTimeout:t,onStylesheetLoad:x,stylesheetLoadTimeout:C,
keepIframeSrcFn:H}))&&z(G,Wr)},t);
c.type===2&&c.tagName==="link"&&typeof c.attributes.rel==="string"&&(c.attributes.rel==="stylesheet"||c.attributes.rel==="preload"&&typeof c.attributes.href==="string"&&bUr(c.attributes.href)==="css")&&CtO(G,function(){if(x){var Wr=t8(G,{doc:I,mirror:R,blockClass:Z,blockSelector:K,needsMask:T8,maskTextClass:m,maskTextSelector:a,skipChild:!1,inlineStylesheet:N,maskInputOptions:q,maskTextFn:w,maskInputFn:F,slimDOMOptions:n,dataURLOptions:U,inlineImages:k,recordCanvas:p,preserveWhiteSpace:kp,onSerialize:M,
onIframeLoad:z,iframeLoadTimeout:t,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:H});Wr&&x(G,Wr)}},C);
return c};
Gp8=function(G){var c=document;G=G||{};var I=G.maskAllInputs===void 0?!1:G.maskAllInputs,R=G.slimDOM===void 0?!1:G.slimDOM;return t8(c,{doc:c,mirror:G.mirror===void 0?new h8:G.mirror,blockClass:G.blockClass===void 0?"rr-block":G.blockClass,blockSelector:G.blockSelector===void 0?null:G.blockSelector,maskTextClass:G.maskTextClass===void 0?"rr-mask":G.maskTextClass,maskTextSelector:G.maskTextSelector===void 0?null:G.maskTextSelector,skipChild:!1,inlineStylesheet:G.inlineStylesheet===void 0?!0:G.inlineStylesheet,
maskInputOptions:I===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:I===!1?{password:!0}:I,maskTextFn:G.maskTextFn,maskInputFn:G.maskInputFn,slimDOMOptions:R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R,dataURLOptions:G.dataURLOptions,
inlineImages:G.inlineImages===void 0?!1:G.inlineImages,recordCanvas:G.recordCanvas===void 0?!1:G.recordCanvas,preserveWhiteSpace:G.preserveWhiteSpace,onSerialize:G.onSerialize,onIframeLoad:G.onIframeLoad,iframeLoadTimeout:G.iframeLoadTimeout,onStylesheetLoad:G.onStylesheetLoad,stylesheetLoadTimeout:G.stylesheetLoadTimeout,keepIframeSrcFn:G.keepIframeSrcFn===void 0?function(){return!1}:G.keepIframeSrcFn,
newlyAddedElement:!1})};
dc=function(G,c,I){I=I===void 0?document:I;var R={capture:!0,passive:!0};I.addEventListener(G,c,R);return function(){return I.removeEventListener(G,c,R)}};
CF=function(G,c,I){I=I===void 0?{}:I;var R=null,Z=0;return function(){var K=_.Hy.apply(0,arguments),m=Date.now();Z||I.leading!==!1||(Z=m);var a=c-(m-Z),O=this;a<=0||a>c?(R&&(clearTimeout(R),R=null),Z=m,G.apply(O,K)):R||I.trailing===!1||(R=setTimeout(function(){Z=I.leading===!1?0:Date.now();R=null;G.apply(O,K)},a))}};
cm8=function(G,c,I,R,Z){Z=Z===void 0?window:Z;var K=Z.Object.getOwnPropertyDescriptor(G,c);Z.Object.defineProperty(G,c,R?I:{set:function(m){var a=this;setTimeout(function(){I.set.call(a,m)},0);
K&&K.set&&K.set.call(this,m)}});
return function(){return cm8(G,c,K||{},!0)}};
Ihg=function(G){var c=G.document,I,R,Z,K;return{left:c.scrollingElement?c.scrollingElement.scrollLeft:G.pageXOffset!==void 0?G.pageXOffset:c.documentElement.scrollLeft||(c==null?void 0:c.body)&&((I=rc(c.body))==null?void 0:I.scrollLeft)||(c==null?void 0:(R=c.body)==null?void 0:R.scrollLeft)||0,top:c.scrollingElement?c.scrollingElement.scrollTop:G.pageYOffset!==void 0?G.pageYOffset:(c==null?void 0:c.documentElement.scrollTop)||(c==null?void 0:c.body)&&((Z=rc(c.body))==null?void 0:Z.scrollTop)||(c==
null?void 0:(K=c.body)==null?void 0:K.scrollTop)||0}};
RnU=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
Z9g=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
KDi=function(G){return G?G.nodeType===G.ELEMENT_NODE?G:rc(G):null};
Hb=function(G,c,I,R){if(!G)return!1;G=KDi(G);if(!G)return!1;try{if(typeof c==="string"){if(G.classList.contains(c)||R&&G.closest("."+c)!==null)return!0}else if(tor(G,c,R))return!0}catch(Z){}return I&&(G.matches(I)||R&&G.closest(I)!==null)?!0:!1};
PKp=function(G,c,I){return G.tagName==="TITLE"&&I.headTitleMutations?!0:c.getId(G)===-2};
QNq=function(G,c){if(Wb(G))return!1;var I=c.getId(G);return c.has(I)?(I=fF(G))&&I.nodeType===G.DOCUMENT_NODE?!1:I?QNq(I,c):!0:!0};
mpO=function(){var G=G===void 0?window:G;"NodeList"in G&&!G.NodeList.prototype.forEach&&(G.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in G&&!G.DOMTokenList.prototype.forEach&&(G.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
ahp=function(G,c){return!(G.nodeName!=="LINK"||G.nodeType!==G.ELEMENT_NODE||!G.getAttribute||G.getAttribute("rel")!=="stylesheet"||!c.nodeMetaMap.get(G))};
O9O=function(G){var c=null,I;"getRootNode"in G&&((I=T2b(G))==null?void 0:I.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&E$(T2b(G))&&(c=E$(T2b(G)));return c};
enU=function(G){var c=G.ownerDocument;if(c){if(!(c=wLr(c,"contains")(G)))if(c=G.ownerDocument){for(var I;I=O9O(G);)G=I;c=wLr(c,"contains")(G)}else c=!1}else c=!1;return c};
N2g=function(G,c){G.delete(c);Bb(c).forEach(function(I){return N2g(G,I)})};
lhb=function(G,c){for(var I=[G];I.length;)G=I.pop(),c.has(G)||(c.add(G),Bb(G).forEach(function(R){return I.push(R)}))};
qcr=function(G,c){G.size===0?G=!1:G=(c=fF(c))?G.has(c):!1;return G};
FD8=function(G,c){return G.size===0?!1:wzb(G,c)};
wzb=function(G,c){return(c=fF(c))?G.has(c)?!0:wzb(G,c):!1};
Xu=function(G){try{if("composedPath"in G){var c=G.composedPath();if(c.length)return c[0]}else if("path"in G&&G.path.length)return G.path[0]}catch(I){}return G&&G.target};
vbU=function(G,c){var I=new nbT;yX.push(I);I.init(G);G=new (N4B("MutationObserver").constructor)(Yd(I.processMutations.bind(I)));G.observe(c,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return G};
obT=function(G){var c=G.mousemoveCb;var I=G.sampling;var R=G.doc;var Z=G.mirror;if(I.mousemove===!1)return function(){};
var K=[],m,a=CF(Yd(function(N){var q=Date.now()-m;c(K.map(function(w){w.timeOffset-=q;return w}),N);
K=[];m=null}),typeof I.mousemoveCallback==="number"?I.mousemoveCallback:500);
G=Yd(CF(Yd(function(N){var q=Xu(N),w=N.changedTouches?N.changedTouches[0]:N,F=w.clientX;w=w.clientY;m||(m=Dp8());K.push({x:F,y:w,id:Z.getId(q),timeOffset:Dp8()-m});a(typeof DragEvent!=="undefined"&&N instanceof DragEvent?12:N instanceof MouseEvent?1:6)}),typeof I.mousemove==="number"?I.mousemove:50,{trailing:!1}));
var O=[dc("mousemove",G,R),dc("touchmove",G,R),dc("drag",G,R)];return Yd(function(){O.forEach(function(N){return N()})})};
Upr=function(G){var c=G.mouseInteractionCb;var I=G.doc;var R=G.mirror;var Z=G.blockClass;var K=G.blockSelector;G=G.sampling;if(G.mouseInteraction===!1)return function(){};
var m=G.mouseInteraction===!0||G.mouseInteraction===void 0?{}:G.mouseInteraction,a=[],O=null,N=function(q){return function(w){var F=Xu(w);if(!Hb(F,Z,K,!0)){var n=null,U=q;if("pointerType"in w){switch(w.pointerType){case "mouse":n=0;break;case "touch":n=2;break;case "pen":n=1}n===2&&(GO[q]===1?U="TouchStart":GO[q]===0&&(U="TouchEnd"))}else w.changedTouches&&(n=2);if(n!==null){if(O=n,U.startsWith("Touch")&&n===2||U.startsWith("Mouse")&&n===0)n=null}else GO[q]===2&&(n=O,O=null);if(w=w.changedTouches?
w.changedTouches[0]:w)F=R.getId(F),Yd(c)(Object.assign({},{type:GO[U],id:F,x:w.clientX,y:w.clientY},n!==null&&{pointerType:n}))}}};
Object.keys(GO).filter(function(q){return Number.isNaN(Number(q))&&!q.endsWith("_Departed")&&m[q]!==!1}).forEach(function(q){var w=q.toLowerCase(),F=N(q);
if(window.PointerEvent)switch(GO[q]){case 1:case 0:w=w.replace("mouse","pointer");break;case 7:case 9:return}a.push(dc(w,F,I))});
return Yd(function(){a.forEach(function(q){return q()})})};
unr=function(G){var c=G.scrollCb;var I=G.doc;var R=G.mirror;var Z=G.blockClass;var K=G.blockSelector;return dc("scroll",Yd(CF(Yd(function(m){var a=Xu(m);a&&!Hb(a,Z,K,!0)&&(m=R.getId(a),a===I&&I.defaultView?(a=Ihg(I.defaultView),c({id:m,x:a.left,y:a.top})):c({id:m,x:a.scrollLeft,y:a.scrollTop}))}),G.sampling.scroll||100)),I)};
b9p=function(G,c){var I=G.viewportResizeCb;var R=-1,Z=-1;return dc("resize",Yd(CF(Yd(function(){var K=RnU(),m=Z9g();if(R!==K||Z!==m)I({width:Number(m),height:Number(K)}),R=K,Z=m}),200)),c.win)};
LDr=function(G){function c(p){var M=Xu(p),z=p.isTrusted,t=M&&M.tagName;M&&t==="OPTION"&&(M=rc(M));if(!(!M||!t||kpf.indexOf(t)<0||Hb(M,m,a,!0)||M.classList.contains(O)||N&&M.matches(N))){var x=M.value,C=!1;p=uCg(M)||"";if(p==="radio"||p==="checkbox")C=M.checked;else if(q[t.toLowerCase()]||q[p])x=ozC({element:M,maskInputOptions:q,tagName:t,type:p,value:x,maskInputFn:w});I(M,n?{text:x,isChecked:C,userTriggered:z}:{text:x,isChecked:C});z=M.name;p==="radio"&&z&&C&&Z.querySelectorAll('input[type="radio"][name="'+
z+'"]').forEach(function(H){if(H!==M){var g=H.value;I(H,n?{text:g,isChecked:!C,userTriggered:!1}:{text:g,isChecked:!C})}})}}
function I(p,M){var z=sNr.get(p);z&&z.text===M.text&&z.isChecked===M.isChecked||(sNr.set(p,M),p=K.getId(p),Yd(R)(Object.assign({},M,{id:p})))}
var R=G.inputCb;var Z=G.doc;var K=G.mirror;var m=G.blockClass;var a=G.blockSelector;var O=G.ignoreClass;var N=G.ignoreSelector;var q=G.maskInputOptions;var w=G.maskInputFn;var F=G.sampling;var n=G.userTriggeredOnInput;var U=(F.input==="last"?["change"]:["input","change"]).map(function(p){return dc(p,Yd(c),Z)}),k=Z.defaultView;
if(!k)return function(){U.forEach(function(p){return p()})};
G=k.Object.getOwnPropertyDescriptor(k.HTMLInputElement.prototype,"value");F=[[k.HTMLInputElement.prototype,"value"],[k.HTMLInputElement.prototype,"checked"],[k.HTMLSelectElement.prototype,"value"],[k.HTMLTextAreaElement.prototype,"value"],[k.HTMLSelectElement.prototype,"selectedIndex"],[k.HTMLOptionElement.prototype,"selected"]];G&&G.set&&U.push.apply(U,_.jn(F.map(function(p){return cm8(p[0],p[1],{set:function(){Yd(c)({target:this,isTrusted:!1})}},!1,k)})));
return Yd(function(){U.forEach(function(p){return p()})})};
$pT=function(G){var c=[],I,R,Z,K;AmA("CSSGroupingRule")&&((I=G.parentRule)==null?void 0:(R=I.constructor)==null?void 0:R.name)==="CSSGroupingRule"||AmA("CSSMediaRule")&&G.parentRule instanceof CSSMediaRule||AmA("CSSSupportsRule")&&G.parentRule instanceof CSSSupportsRule||AmA("CSSConditionRule")&&((Z=G.parentRule)==null?void 0:(K=Z.constructor)==null?void 0:K.name)==="CSSConditionRule"?(G=Array.from(G.parentRule.cssRules).indexOf(G),c.unshift(G)):G.parentStyleSheet&&(G=Array.from(G.parentStyleSheet.cssRules).indexOf(G),
c.unshift(G));return c};
cq=function(G,c,I){var R,Z;if(!G)return{};G.ownerNode?R=c.getId(G.ownerNode):Z=I.getId(G);return{styleId:Z,id:R}};
pzB=function(G,c){var I=G.styleSheetRuleCb;var R=G.mirror;var Z=G.stylesheetManager;var K=c.win;if(!K.CSSStyleSheet||!K.CSSStyleSheet.prototype)return function(){};
var m=K.CSSStyleSheet.prototype.insertRule;K.CSSStyleSheet.prototype.insertRule=new IQ(m,{apply:Yd(function(F,n,U){var k=_.Q(U),p=k.next().value;k=k.next().value;var M=cq(n,R,Z.styleMirror),z=M.id;M=M.styleId;(z&&z!==-1||M&&M!==-1)&&I({id:z,styleId:M,adds:[{rule:p,index:k}]});return F.apply(n,U)})});
K.CSSStyleSheet.prototype.addRule=function(F,n,U){U=U===void 0?this.cssRules.length:U;return K.CSSStyleSheet.prototype.insertRule.apply(this,[F+" { "+n+" }",U])};
var a=K.CSSStyleSheet.prototype.deleteRule;K.CSSStyleSheet.prototype.deleteRule=new IQ(a,{apply:Yd(function(F,n,U){var k=_.Q(U).next().value,p=cq(n,R,Z.styleMirror),M=p.id;p=p.styleId;(M&&M!==-1||p&&p!==-1)&&I({id:M,styleId:p,removes:[{index:k}]});return F.apply(n,U)})});
K.CSSStyleSheet.prototype.removeRule=function(F){return K.CSSStyleSheet.prototype.deleteRule.apply(this,[F])};
if(K.CSSStyleSheet.prototype.replace){var O=K.CSSStyleSheet.prototype.replace;K.CSSStyleSheet.prototype.replace=new IQ(O,{apply:Yd(function(F,n,U){var k=_.Q(U).next().value,p=cq(n,R,Z.styleMirror),M=p.id;p=p.styleId;(M&&M!==-1||p&&p!==-1)&&I({id:M,styleId:p,replace:k});return F.apply(n,U)})})}if(K.CSSStyleSheet.prototype.replaceSync){var N=K.CSSStyleSheet.prototype.replaceSync;
K.CSSStyleSheet.prototype.replaceSync=new IQ(N,{apply:Yd(function(F,n,U){var k=_.Q(U).next().value,p=cq(n,R,Z.styleMirror),M=p.id;p=p.styleId;(M&&M!==-1||p&&p!==-1)&&I({id:M,styleId:p,replaceSync:k});return F.apply(n,U)})})}var q={};
ScA("CSSGroupingRule")?q.CSSGroupingRule=K.CSSGroupingRule:(ScA("CSSMediaRule")&&(q.CSSMediaRule=K.CSSMediaRule),ScA("CSSConditionRule")&&(q.CSSConditionRule=K.CSSConditionRule),ScA("CSSSupportsRule")&&(q.CSSSupportsRule=K.CSSSupportsRule));var w={};Object.entries(q).forEach(function(F){var n=_.Q(F);F=n.next().value;n=n.next().value;w[F]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule};n.prototype.insertRule=new IQ(w[F].insertRule,{apply:Yd(function(U,k,p){var M=_.Q(p),z=M.next().value;
M=M.next().value;var t=cq(k.parentStyleSheet,R,Z.styleMirror),x=t.id;t=t.styleId;(x&&x!==-1||t&&t!==-1)&&I({id:x,styleId:t,adds:[{rule:z,index:[].concat(_.jn($pT(k)),[M||0])}]});return U.apply(k,p)})});
n.prototype.deleteRule=new IQ(w[F].deleteRule,{apply:Yd(function(U,k,p){var M=_.Q(p).next().value,z=cq(k.parentStyleSheet,R,Z.styleMirror),t=z.id;z=z.styleId;(t&&t!==-1||z&&z!==-1)&&I({id:t,styleId:z,removes:[{index:[].concat(_.jn($pT(k)),[M])}]});return U.apply(k,p)})})});
return Yd(function(){K.CSSStyleSheet.prototype.insertRule=m;K.CSSStyleSheet.prototype.deleteRule=a;O&&(K.CSSStyleSheet.prototype.replace=O);N&&(K.CSSStyleSheet.prototype.replaceSync=N);Object.entries(q).forEach(function(F){var n=_.Q(F);F=n.next().value;n=n.next().value;n.prototype.insertRule=w[F].insertRule;n.prototype.deleteRule=w[F].deleteRule})})};
VjA=function(G,c){var I=G.mirror;var R=G.stylesheetManager;var Z=null;Z=c.nodeName==="#document"?I.getId(c):I.getId(E$(c));var K,m,a;G=c.nodeName==="#document"?(K=c.defaultView)==null?void 0:K.Document:(m=c.ownerDocument)==null?void 0:(a=m.defaultView)==null?void 0:a.ShadowRoot;var O=(G==null?0:G.prototype)?Object.getOwnPropertyDescriptor(G==null?void 0:G.prototype,"adoptedStyleSheets"):void 0;if(Z===null||Z===-1||!G||!O)return function(){};
Object.defineProperty(c,"adoptedStyleSheets",{configurable:O.configurable,enumerable:O.enumerable,get:function(){var N;return(N=O.get)==null?void 0:N.call(this)},
set:function(N){var q,w=(q=O.set)==null?void 0:q.call(this,N);if(Z!==null&&Z!==-1)try{Mjr(R,N,Z)}catch(F){}return w}});
return Yd(function(){Object.defineProperty(c,"adoptedStyleSheets",{configurable:O.configurable,enumerable:O.enumerable,get:O.get,set:O.set})})};
znA=function(G,c){var I=G.styleDeclarationCb;var R=G.mirror;var Z=G.ignoreCSSAttributes;var K=G.stylesheetManager;var m=c.win;var a=m.CSSStyleDeclaration.prototype.setProperty;m.CSSStyleDeclaration.prototype.setProperty=new IQ(a,{apply:Yd(function(N,q,w){var F=_.Q(w),n=F.next().value,U=F.next().value;F=F.next().value;if(Z.has(n))return a.apply(q,[n,U,F]);var k,p=cq((k=q.parentRule)==null?void 0:k.parentStyleSheet,R,K.styleMirror);k=p.id;p=p.styleId;(k&&k!==-1||p&&p!==-1)&&I({id:k,styleId:p,set:{property:n,
value:U,priority:F},index:$pT(q.parentRule)});return N.apply(q,w)})});
var O=m.CSSStyleDeclaration.prototype.removeProperty;m.CSSStyleDeclaration.prototype.removeProperty=new IQ(O,{apply:Yd(function(N,q,w){var F=_.Q(w).next().value;if(Z.has(F))return O.apply(q,[F]);var n,U=cq((n=q.parentRule)==null?void 0:n.parentStyleSheet,R,K.styleMirror);n=U.id;U=U.styleId;(n&&n!==-1||U&&U!==-1)&&I({id:n,styleId:U,remove:{property:F},index:$pT(q.parentRule)});return N.apply(q,w)})});
return Yd(function(){m.CSSStyleDeclaration.prototype.setProperty=a;m.CSSStyleDeclaration.prototype.removeProperty=O})};
Ebp=function(G){var c=G.mediaInteractionCb;var I=G.blockClass;var R=G.blockSelector;var Z=G.mirror;var K=G.sampling;G=G.doc;var m=Yd(function(O){return CF(Yd(function(N){if((N=Xu(N))&&!Hb(N,I,R,!0)){var q=N.currentTime,w=N.volume,F=N.muted,n=N.playbackRate,U=N.loop;c({type:O,id:Z.getId(N),currentTime:q,volume:w,muted:F,playbackRate:n,loop:U})}}),K.media||500)}),a=[dc("play",m(0),G),
dc("pause",m(1),G),dc("seeked",m(2),G),dc("volumechange",m(3),G),dc("ratechange",m(4),G)];return Yd(function(){a.forEach(function(O){return O()})})};
JmT=function(G){var c=G.fontCb;G=G.doc;var I=G.defaultView;if(!I)return function(){};
var R=[],Z=new WeakMap,K=I.FontFace;I.FontFace=function(m,a,O){var N=new K(m,a,O);Z.set(N,{family:m,buffer:typeof a!=="string",descriptors:O,fontSource:typeof a==="string"?a:JSON.stringify(Array.from(new Uint8Array(a)))});return N};
G=zm(G.fonts,"add",function(m){return function(a){setTimeout(Yd(function(){var O=Z.get(a);O&&(c(O),Z.delete(a))}),0);
return m.apply(this,[a])}});
R.push(function(){I.FontFace=K});
R.push(G);return Yd(function(){R.forEach(function(m){return m()})})};
WDq=function(G){var c=G.doc,I=G.mirror,R=G.blockClass,Z=G.blockSelector,K=G.selectionCb,m=!0;G=Yd(function(){var a=c.getSelection();if(a&&!(m&&(a==null?0:a.isCollapsed))){m=a.isCollapsed||!1;for(var O=[],N=a.rangeCount||0,q=0;q<N;q++){var w=a.getRangeAt(q),F=w.startContainer,n=w.startOffset,U=w.endContainer;w=w.endOffset;Hb(F,R,Z,!0)||Hb(U,R,Z,!0)||O.push({start:I.getId(F),startOffset:n,end:I.getId(U),endOffset:w})}K({ranges:O})}});
G();return dc("selectionchange",G)};
i9T=function(G){var c=G.doc;var I=G.customElementCb;return(G=c.defaultView)&&G.customElements?zm(G.customElements,"define",function(R){return function(Z,K,m){try{I({define:{name:Z}})}catch(a){console.warn("Custom element callback failed for "+Z)}return R.apply(this,[Z,K,m])}}):function(){}};
fhr=function(G,c){var I=G.mutationCb,R=G.mousemoveCb,Z=G.mouseInteractionCb,K=G.scrollCb,m=G.viewportResizeCb,a=G.inputCb,O=G.mediaInteractionCb,N=G.styleSheetRuleCb,q=G.styleDeclarationCb,w=G.canvasMutationCb,F=G.fontCb,n=G.selectionCb,U=G.customElementCb;G.mutationCb=function(){var k=_.Hy.apply(0,arguments);c.mutation&&c.mutation.apply(c,_.jn(k));I.apply(null,_.jn(k))};
G.mousemoveCb=function(){var k=_.Hy.apply(0,arguments);c.mousemove&&c.mousemove.apply(c,_.jn(k));R.apply(null,_.jn(k))};
G.mouseInteractionCb=function(){var k=_.Hy.apply(0,arguments);c.mouseInteraction&&c.mouseInteraction.apply(c,_.jn(k));Z.apply(null,_.jn(k))};
G.scrollCb=function(){var k=_.Hy.apply(0,arguments);c.scroll&&c.scroll.apply(c,_.jn(k));K.apply(null,_.jn(k))};
G.viewportResizeCb=function(){var k=_.Hy.apply(0,arguments);c.viewportResize&&c.viewportResize.apply(c,_.jn(k));m.apply(null,_.jn(k))};
G.inputCb=function(){var k=_.Hy.apply(0,arguments);c.input&&c.input.apply(c,_.jn(k));a.apply(null,_.jn(k))};
G.mediaInteractionCb=function(){var k=_.Hy.apply(0,arguments);c.mediaInteaction&&c.mediaInteaction.apply(c,_.jn(k));O.apply(null,_.jn(k))};
G.styleSheetRuleCb=function(){var k=_.Hy.apply(0,arguments);c.styleSheetRule&&c.styleSheetRule.apply(c,_.jn(k));N.apply(null,_.jn(k))};
G.styleDeclarationCb=function(){var k=_.Hy.apply(0,arguments);c.styleDeclaration&&c.styleDeclaration.apply(c,_.jn(k));q.apply(null,_.jn(k))};
G.canvasMutationCb=function(){var k=_.Hy.apply(0,arguments);c.canvasMutation&&c.canvasMutation.apply(c,_.jn(k));w.apply(null,_.jn(k))};
G.fontCb=function(){var k=_.Hy.apply(0,arguments);c.font&&c.font.apply(c,_.jn(k));F.apply(null,_.jn(k))};
G.selectionCb=function(){var k=_.Hy.apply(0,arguments);c.selection&&c.selection.apply(c,_.jn(k));n.apply(null,_.jn(k))};
G.customElementCb=function(){var k=_.Hy.apply(0,arguments);c.customElement&&c.customElement.apply(c,_.jn(k));U.apply(null,_.jn(k))}};
B2O=function(G,c){c=c===void 0?{}:c;var I=G.doc.defaultView;if(!I)return function(){};
fhr(G,c);var R;G.recordDOM&&(R=vbU(G,G.doc));var Z=obT(G),K=Upr(G),m=unr(G),a=b9p(G,{win:I}),O=LDr(G),N=Ebp(G),q=function(){},w=function(){},F=function(){},n=function(){};
G.recordDOM&&(q=pzB(G,{win:I}),w=VjA(G,G.doc),F=znA(G,{win:I}),G.collectFonts&&(n=JmT(G)));var U=WDq(G),k=i9T(G),p=[];G=_.Q(G.plugins);for(c=G.next();!c.done;c=G.next())c=c.value,p.push(c.observer(c.callback,I,c.options));return Yd(function(){yX.forEach(function(z){return z.reset()});
var M;(M=R)==null||M.disconnect();Z();K();m();a();O();N();q();w();F();n();U();k();p.forEach(function(z){return z()})})};
AmA=function(G){return typeof window[G]!=="undefined"};
ScA=function(G){return!!(typeof window[G]!=="undefined"&&window[G].prototype&&"insertRule"in window[G].prototype&&"deleteRule"in window[G].prototype)};
rmC=function(G){G=new Uint8Array(G);for(var c="",I=0;I<G.byteLength;I++)c+=String.fromCharCode(G[I]);return btoa(c)};
jNO=function(G,c,I){if(G instanceof Array)return G.map(function(Z){return jNO(Z,c,I)});
if(G!==null){if(G instanceof Float32Array||G instanceof Float64Array||G instanceof Int32Array||G instanceof Uint32Array||G instanceof Uint8Array||G instanceof Uint16Array||G instanceof Int16Array||G instanceof Int8Array||G instanceof Uint8ClampedArray)return{rr_type:G.constructor.name,args:[Object.values(G)]};if(G instanceof ArrayBuffer){var R=G.constructor.name;G=rmC(G);return{rr_type:R,base64:G}}if(G instanceof DataView)return{rr_type:G.constructor.name,args:[jNO(G.buffer,c,I),G.byteOffset,G.byteLength]};
if(G instanceof HTMLImageElement)return{rr_type:G.constructor.name,src:G.src};if(G instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:G.toDataURL()};if(G instanceof ImageData)return{rr_type:G.constructor.name,args:[jNO(G.data,c,I),G.width,G.height]};if(xp0(G,c)||typeof G==="object")return R=G.constructor.name,G=tjr(G,c,I),{rr_type:R,index:G}}return G};
dpO=function(G,c,I,R){for(var Z=[],K=_.Q(Object.getOwnPropertyNames(c.CanvasRenderingContext2D.prototype)),m=K.next(),a={};!m.done;a={prop$jscomp$58:void 0},m=K.next()){a.prop$jscomp$58=m.value;try{if(typeof c.CanvasRenderingContext2D.prototype[a.prop$jscomp$58]==="function"){var O=zm(c.CanvasRenderingContext2D.prototype,a.prop$jscomp$58,function(N){return function(q){return function(){var w=_.Hy.apply(0,arguments),F=this;Hb(this.canvas,I,R,!0)||setTimeout(function(){var n=hnr(w,c,F);G(F.canvas,{type:RQ["2D"],
property:N.prop$jscomp$58,args:n})},0);
return q.apply(this,w)}}}(a));
Z.push(O)}}catch(N){m=cm8(c.CanvasRenderingContext2D.prototype,a.prop$jscomp$58,{set:function(q){return function(w){G(this.canvas,{type:RQ["2D"],property:q.prop$jscomp$58,args:[w],setter:!0})}}(a)}),Z.push(m)}}return function(){Z.forEach(function(N){return N()})}};
CKr=function(G,c,I,R){var Z=[];try{var K=zm(G.HTMLCanvasElement.prototype,"getContext",function(m){return function(a){var O=_.Hy.apply(1,arguments);if(!Hb(this,c,I,!0)){var N=a==="experimental-webgl"?"webgl":a;"__context"in this||(this.__context=N);R&&["webgl","webgl2"].includes(N)&&(O[0]&&typeof O[0]==="object"?(N=O[0],N.preserveDrawingBuffer||(N.preserveDrawingBuffer=!0)):O.splice(0,1,{preserveDrawingBuffer:!0}))}return m.apply(this,[a].concat(_.jn(O)))}});
Z.push(K)}catch(m){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){Z.forEach(function(m){return m()})}};
H9q=function(G,c,I,R,Z,K){for(var m=[],a=_.Q(Object.getOwnPropertyNames(G)),O=a.next(),N={};!O.done;N={prop$jscomp$59:void 0},O=a.next())if(N.prop$jscomp$59=O.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(N.prop$jscomp$59))try{if(typeof G[N.prop$jscomp$59]==="function"){var q=zm(G,N.prop$jscomp$59,function(w){return function(F){return function(){var n=_.Hy.apply(0,arguments),U=F.apply(this,n);tjr(U,K,this);"tagName"in this.canvas&&!Hb(this.canvas,R,Z,!0)&&(n=
hnr(n,K,this),I(this.canvas,{type:c,property:w.prop$jscomp$59,args:n}));return U}}}(N));
m.push(q)}}catch(w){O=cm8(G,N.prop$jscomp$59,{set:function(F){return function(n){I(this.canvas,{type:c,property:F.prop$jscomp$59,args:[n],setter:!0})}}(N)}),m.push(O)}return m};
XzB=function(G,c,I,R){var Z=[];Z.push.apply(Z,_.jn(H9q(c.WebGLRenderingContext.prototype,1,G,I,R,c)));typeof c.WebGL2RenderingContext!=="undefined"&&Z.push.apply(Z,_.jn(H9q(c.WebGL2RenderingContext.prototype,2,G,I,R,c)));return function(){Z.forEach(function(K){return K()})}};
Oub=function(G){var c=G=G===void 0?{}:G,I=c.emit,R=c.checkoutEveryNms,Z=c.checkoutEveryNth,K=c.blockClass===void 0?"rr-block":c.blockClass,m=c.blockSelector===void 0?null:c.blockSelector,a=c.ignoreClass===void 0?"rr-ignore":c.ignoreClass,O=c.ignoreSelector===void 0?null:c.ignoreSelector,N=c.maskTextClass===void 0?"rr-mask":c.maskTextClass,q=c.maskTextSelector===void 0?null:c.maskTextSelector,w=c.inlineStylesheet===void 0?!0:c.inlineStylesheet,F=c.maskAllInputs,n=c.maskInputOptions,U=c.slimDOMOptions,
k=c.maskInputFn,p=c.maskTextFn,M=c.hooks,z=c.packFn,t=c.sampling===void 0?{}:c.sampling,x=c.dataURLOptions===void 0?{}:c.dataURLOptions,C=c.mousemoveWait,H=c.recordDOM===void 0?!0:c.recordDOM,g=c.recordCanvas===void 0?!1:c.recordCanvas,QO=c.recordCrossOriginIframes===void 0?!1:c.recordCrossOriginIframes,T8=c.recordAfter===void 0?G.recordAfter==="DOMContentLoaded"?G.recordAfter:"load":c.recordAfter,kp=c.userTriggeredOnInput===void 0?!1:c.userTriggeredOnInput,FB=c.collectFonts===void 0?!1:c.collectFonts,
oq=c.inlineImages===void 0?!1:c.inlineImages,Wr=c.plugins,iT=c.keepIframeSrcFn===void 0?function(){return!1}:c.keepIframeSrcFn,z8=c.ignoreCSSAttributes===void 0?new Set([]):c.ignoreCSSAttributes;
ZZ=c.errorHandler;var GV=QO?window.parent===window:!0,ei=!1;if(!GV)try{window.parent.document&&(ei=!1)}catch(FT){ei=!0}if(GV&&!I)throw Error("$e");if(!GV&&!ei)return function(){};
C!==void 0&&t.mousemove===void 0&&(t.mousemove=C);KR.reset();var Hr=F===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:n!==void 0?n:{password:!0},v0=U===!0||U==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:U==="all",headMetaDescKeywords:U==="all",headTitleMutations:U==="all"}:
U?U:{};mpO();var kK,pN=0,bH=function(FT){for(var ZW=_.Q(Wr||[]),yO=ZW.next();!yO.done;yO=ZW.next())yO=yO.value,yO.eventProcessor&&(FT=yO.eventProcessor(FT));z&&!ei&&(FT=z(FT));return FT};
Pq=function(FT,ZW){FT.timestamp=Dp8();var yO;((yO=yX[0])==null?0:yO.isFrozen())&&FT.type!==2&&(FT.type!==3||FT.data.source!==0)&&yX.forEach(function(Iu){return Iu.unfreeze()});
GV?I==null||I(bH(FT),ZW):ei&&(ZW={type:"rrweb",event:bH(FT),origin:window.location.origin,isCheckout:ZW},window.parent.postMessage(ZW,"*"));FT.type===2?(kK=FT,pN=0):FT.type!==3||FT.data.source===0&&FT.data.isAttachIframe||(pN++,FT=R&&FT.timestamp-kK.timestamp>R,(Z&&pN>=Z||FT)&&ymf(!0))};
var n1=function(FT){Pq({type:3,data:Object.assign({},{source:0},FT)})},qf=function(FT){return Pq({type:3,
data:Object.assign({},{source:3},FT)})},hU=function(FT){return Pq({type:3,
data:Object.assign({},{source:9},FT)})},we=new gbr({mutationCb:n1,
adoptedStyleSheetCb:function(FT){return Pq({type:3,data:Object.assign({},{source:15},FT)})}}),xK=new Yci({mirror:KR,
mutationCb:n1,stylesheetManager:we,recordCrossOriginIframes:QO,wrappedEmit:Pq});G=_.Q(Wr||[]);for(c=G.next();!c.done;c=G.next())c=c.value,c.getMirror&&c.getMirror({nodeMirror:KR,crossOriginIframeMirror:xK.crossOriginIframeMirror,crossOriginIframeStyleMirror:xK.crossOriginIframeStyleMirror});var UK=new G0O;c4r=new Ie0({recordCanvas:g,mutationCb:hU,win:window,blockClass:K,blockSelector:m,mirror:KR,sampling:t.canvas,dataURLOptions:x});var YK=new RDO({mutationCb:n1,scrollCb:qf,bypassOptions:{blockClass:K,
blockSelector:m,maskTextClass:N,maskTextSelector:q,inlineStylesheet:w,maskInputOptions:Hr,dataURLOptions:x,maskTextFn:p,maskInputFn:k,recordCanvas:g,inlineImages:oq,sampling:t,slimDOMOptions:v0,iframeManager:xK,stylesheetManager:we,canvasManager:c4r,keepIframeSrcFn:iT,processedNodeManager:UK},mirror:KR});ymf=function(FT){FT=FT===void 0?!1:FT;if(H){Pq({type:4,data:{href:window.location.href,width:Z9g(),height:RnU()}},FT);we.reset();YK.init();yX.forEach(function(yO){return yO.lock()});
var ZW=Gp8({mirror:KR,blockClass:K,blockSelector:m,maskTextClass:N,maskTextSelector:q,inlineStylesheet:w,maskAllInputs:Hr,maskTextFn:p,maskInputFn:k,slimDOM:v0,dataURLOptions:x,recordCanvas:g,inlineImages:oq,onSerialize:function(yO){yO.nodeName==="IFRAME"&&KR.nodeMetaMap.get(yO)&&ZuA(xK,yO);ahp(yO,KR)&&KlU(we,yO);yO&&J8(yO)&&Pbr(YK,J8(yO),document)},
onIframeLoad:function(yO,Iu){Q5b(xK,yO,Iu);yO.contentWindow&&yO.contentDocument&&mX8(YK,yO.contentWindow.Element,yO.contentDocument)},
onStylesheetLoad:function(yO,Iu){aeB(we,yO,Iu)},
keepIframeSrcFn:iT});ZW?(Pq({type:2,data:{node:ZW,initialOffset:Ihg(window)}},FT),yX.forEach(function(yO){return yO.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Mjr(we,document.adoptedStyleSheets,KR.getId(document))):console.warn("Failed to snapshot the document")}};
try{var en=[],de=function(FT){var ZW;return Yd(B2O)({mutationCb:n1,mousemoveCb:function(yO,Iu){return Pq({type:3,data:{source:Iu,positions:yO}})},
mouseInteractionCb:function(yO){return Pq({type:3,data:Object.assign({},{source:2},yO)})},
scrollCb:qf,viewportResizeCb:function(yO){return Pq({type:3,data:Object.assign({},{source:4},yO)})},
inputCb:function(yO){return Pq({type:3,data:Object.assign({},{source:5},yO)})},
mediaInteractionCb:function(yO){return Pq({type:3,data:Object.assign({},{source:7},yO)})},
styleSheetRuleCb:function(yO){return Pq({type:3,data:Object.assign({},{source:8},yO)})},
styleDeclarationCb:function(yO){return Pq({type:3,data:Object.assign({},{source:13},yO)})},
canvasMutationCb:hU,fontCb:function(yO){return Pq({type:3,data:Object.assign({},{source:10},yO)})},
selectionCb:function(yO){Pq({type:3,data:Object.assign({},{source:14},yO)})},
customElementCb:function(yO){Pq({type:3,data:Object.assign({},{source:16},yO)})},
blockClass:K,ignoreClass:a,ignoreSelector:O,maskTextClass:N,maskTextSelector:q,maskInputOptions:Hr,inlineStylesheet:w,sampling:t,recordDOM:H,recordCanvas:g,inlineImages:oq,userTriggeredOnInput:kp,collectFonts:FB,doc:FT,maskInputFn:k,maskTextFn:p,keepIframeSrcFn:iT,blockSelector:m,slimDOMOptions:v0,dataURLOptions:x,mirror:KR,iframeManager:xK,stylesheetManager:we,shadowDomManager:YK,processedNodeManager:UK,canvasManager:c4r,ignoreCSSAttributes:z8,plugins:(Wr==null?void 0:(ZW=Wr.filter(function(yO){return yO.observer}))==
null?void 0:ZW.map(function(yO){return{observer:yO.observer,
options:yO.options,callback:function(Iu){return Pq({type:6,data:{plugin:yO.name,payload:Iu}})}}}))||[]},M)};
TaT(xK,function(FT){try{en.push(de(FT.contentDocument))}catch(ZW){console.warn(ZW)}});
var qk=function(){ymf();en.push(de(document))};
document.readyState==="interactive"||document.readyState==="complete"?qk():(en.push(dc("DOMContentLoaded",function(){Pq({type:0,data:{}});T8==="DOMContentLoaded"&&qk()})),en.push(dc("load",function(){Pq({type:1,
data:{}});T8==="load"&&qk()},window)));
return function(){en.forEach(function(FT){try{FT()}catch(ZW){String(ZW).toLowerCase().includes("cross-origin")||console.warn(ZW)}});
UK.destroy();ZZ=void 0}}catch(FT){console.warn(FT)}};
_.b=function(G,c){c=cM(Gi(c));G.innerHTML=c};
leg=function(G){var c=eD8;c||(c=Na8(),c=eD8=_.rx.transpose(c));c=c[G];return typeof c==="string"?c:_.Qm(G)};
qhg=function(G){G=String(G).toLowerCase();var c=Na8()[G];return typeof c==="string"?c:_.mY(G)};
wSr=function(G){G=G.toLowerCase();G=Na8()[G];return typeof G==="string"?G:null};
Na8=function(){if(!FlT){for(var G=Object.assign({},n1r),c=_.Q(v1g),I=c.next();!I.done;I=c.next())I=I.value,G[I.toLowerCase()]=I;FlT=G}return FlT};
UXr=function(G,c){var I=window.customElements;return I&&I.get(G)||DXp[G]===!0?2:c.name==="HTMLUnknownElement"?1:c.name==="HTMLElement"&&o1O.test(G)?3:0};
k0O=function(G,c){switch(c){case "innerHTML":return u88(G)===1?2:null;case "textContent":return G=u88(G),G===1||G===6?1:null;default:var I,R;return(R=(I=buO[G.localName])==null?void 0:I[c])!=null?R:null}};
u88=function(G){var c=G.localName,I=UXr(c,G.constructor);switch(I){case 0:case 1:return s5r(c,G);case 3:case 2:return 1;default:_.H0(I,"got an unknown element classification")}};
s5r=function(G,c){var I=Object.hasOwnProperty.call(Llp,G)?Llp[G]:null;return I!==null?I:Object.hasOwnProperty.call(A4T,G)&&c instanceof SVGElement?A4T[G]:null};
$Xi=function(G,c){return c};
pSg=function(G){return(G=G.split(Shr,2))?{url:G[0],metadata:G[1]}:null};
VIO=function(G){var c=String(G.url).replace(MIT,encodeURIComponent);if(G=G.metadata){MIT.lastIndex=0;if(MIT.test(G))return null;c+=" "+G}return c};
WlA=function(G){function c(N){var q=N.localName;if(!N.getAttribute("is")&&UXr(q,N.constructor)===2){var w;return(w=O)!=null?w:O=document.createElement("polyresinuncustomized")}(N=a[q])||(N=a[q]=document.createElement(q));return N}
var I=G.reportHandler||void 0,R=G.safeTypesBridge||zDr,Z=/^$/;if(G=G.allowedIdentifierPrefixes){G=_.Q(G);for(var K=G.next();!K.done;K=G.next())Z=new RegExp(Z.source+"|^"+_.E1O(K.value))}I&&I(!1,"initResin",null);var m=J4b(Z,R,I),a={},O=null;return function(N,q,w){var F=N.nodeType;if(F!==Node.ELEMENT_NODE){if(F===Node.TEXT_NODE){q=N.parentElement;w=!q;if(q&&q.nodeType===Node.ELEMENT_NODE){F=q.localName;var n=UXr(F,q.constructor);switch(n){case 0:case 1:q=s5r(F,q);w=q===1||q===6;break;case 3:case 2:w=
!0;break;default:_.H0(n,"got an unknown element classification")}}if(w)return function(M){return""+R(M,"STRING",M)}}return function(M){if(!M&&M!==document.all)return M;
I&&I(!0,"Failed to sanitize "+(N.parentElement&&N.parentElement.nodeName)+" #text node to value "+M,N.parentElement);return aQ}}var U=N.localName;
F=c(N);var k=null;switch(w){case "attribute":if(qhg(q)in F)break;return function(M){return M};
case "property":if(q in F){k=k0O(F,q);break}if((n=wSr(q))&&n in F)break;return function(M){return M};
default:_.H0(w,"got an unknown resin type, expected either 'property' or 'attribute'")}var p=w==="attribute"?q.toLowerCase():leg(q);k||(k=vtq(U,p,function(M){var z=N.getAttribute(M);return!z||/[\[\{]/.test(M)?null:z}));
return function(M){var z=TO,t=null;if(!M&&M!==document.all)return M;if(k!=null){var x=m[k],C=x.safeType;t=x.safeReplacement;C&&(z=R(M,C,TO));z===TO&&(x.filterString?(z=String(R(M,"STRING",M)),z=x.filterString(U,p,z)):x.filterRaw&&(z=x.filterRaw(U,p,M,N)),z===t&&(z=TO))}z===TO&&(z=t||aQ,I&&I(!0,"Failed to sanitize attribute of <"+U+">: <"+U+" "+p+'="'+M+'">',N));return z}}};
J4b=function(G,c,I){return[,{filterRaw:function(R,Z,K){return K},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:iu8,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:iu8,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:aQ,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:fe8,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(R,Z,K){K=
String(K).toLowerCase();return fq0(R,Z,K)?K:aQ},
safeReplacement:aQ,safeType:void 0},,{filterRaw:void 0,filterString:function(R,Z,K){return G.test(K)?K:aQ},
safeReplacement:aQ,safeType:"CONSTANT"},{filterRaw:function(R,Z,K,m){if(typeof K==="string")var a=(a=K.match(Baf))?a.map(pSg).filter(Boolean):[];else if(Array.isArray(K))a=K;else return iu8;var O=a;a=[];var N=[],q={};if(Array.isArray(O))for(var w=0,F=O.length;w<F;++w){var n=O[w],U=n&&n.url;if(U){var k=c(U,"URL",q);if(k){var p=k!==q;(p?a:N).push({url:p?k:U,metadata:n.metadata})}}}else N.push(O);O=N.length?JSON.stringify(N):null;N=TO;if(a.length){if(!Array.isArray(a))throw Error();N=a.map(VIO).filter(Boolean).join(" , ")||
TO}O&&I&&I(!0,"Failed to sanitize attribute value of <"+R+">: <"+R+" "+Z+'="'+K+'">: '+O,m);return N===TO?iu8:N},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
r4p=function(G){var c=WlA(G);return function(I,R,Z,K){return K||K===document.all?c(I,R,Z)(K):K}};
OQ=function(G,c){function I(){function Z(a,O,N){for(O=Reflect.getMetadata("parameters",a)||[];O.length<=N;)O.push(null);O[N]=O[N]||[];O[N].push(m);Reflect.defineMetadata(O,a);return a}
var K=_.Hy.apply(0,arguments);if(this instanceof I)return R.apply(this,K),this;var m=new (Function.prototype.bind.apply(I,[null].concat(_.jn(K))));Z.annotation=m;return Z}
var R=j5f(c);I.prototype.toString=function(){return"@"+G};
return I.annotationCls=I};
j5f=function(G){return function(){var c=_.Hy.apply(0,arguments),I=this;G.forEach(function(R,Z){Z=c[Z];if(Array.isArray(R))I[R[0]]=Z&&Z!==void 0?Z:R[1];else for(var K in R)I[K]=Z&&Z[K]!==void 0?Z[K]:R[K]})}};
xXq=function(G){return G!==void 0&&G!==null};
ey=function(G){if(typeof G==="string")return G;if(G===void 0||G===null)return""+G;if(G.overriddenName)return G.overriddenName;if(G.name)return G.name;G=G.toString();var c=G.indexOf("\n");return c===-1?G:G.substring(0,c)};
tIA=function(G){G.__forward_ref__=tIA;G.toString=function(){return ey(this())};
return G};
Ny=function(G){return typeof G==="function"&&G.hasOwnProperty("__forward_ref__")&&G.__forward_ref__===tIA?G():G};
hDi=function(G){return G?G.map(function(c){return new (Function.prototype.bind.apply(c.type.annotationCls,[null].concat(_.jn(c.args?c.args:[]))))}):[]};
dXC=function(G){for(var c=[],I=0;I<G.length;++I){if(c.indexOf(G[I])>-1){c.push(G[I]);break}c.push(G[I])}return c};
CbA=function(G){return G.length>1?" ("+dXC(G.slice().reverse()).map(function(c){return ey(c.token)}).join(" -> ")+")":""};
XSB=function(G,c,I,R){if(R){var Z=Error("cf``"+(R instanceof Error?R.message:R));Z.ngOriginalError=R}else Z=Error();Z.addKey=Hu8;Z.keys=[c];Z.injectors=[G];Z.constructResolvingMessage=I;Z.message=Z.constructResolvingMessage();Z.ngOriginalError=R;return Z};
Hu8=function(G,c){this.injectors.push(G);this.keys.push(c);this.message=this.constructResolvingMessage()};
y4p=function(G,c){return XSB(G,c,function(){return"No provider for "+ey(this.keys[0].token)+"!"+CbA(this.keys)})};
g1i=function(G,c){return XSB(G,c,function(){return"Cannot instantiate cyclic dependency!"+CbA(this.keys)})};
Yhf=function(G,c,I){return XSB(G,I,function(){var R=ey(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+R+"!"+CbA(this.keys)+"."},c)};
GZT=function(G,c){for(var I=[],R=0,Z=c.length;R<Z;R++){var K=c[R];K&&K.length!=0?I.push(K.map(ey).join(" ")):I.push("?")}return Error("gf`"+ey(G)+"`"+I.join(", ")+"`"+ey(G))};
Qk8=function(G){var c=void 0,I=void 0;if(G&&G.useClass!==void 0){c=G.useClass;var R=Ny(G.useClass);var Z=ckO.factory(R);R=I9p(R)}else G&&G.useExisting!==void 0?(Z=function(K){return K},R=[RlU(l6.get(Ny(G.useExisting)))]):G&&G.useFactory!==void 0?(Z=G.useFactory,R=Zqg(G.useFactory,G.deps)):(I=G.useValue,Z=function(){return G.useValue},R=KBC);
return new P3i(Z,R,c,I)};
a9b=function(G){return new m7q(l6.get(Ny(G.provide)),[Qk8(G)],G.multi)};
OqT=function(G){G=TBT(G,[]).map(a9b);for(var c=new Map,I=0;I<G.length;I++){var R=G[I],Z=c.get(R.key.id);if(Z){if(R.multiProvider!==Z.multiProvider)throw Error("jf`"+Z+"`"+R);if(R.multiProvider)for(var K=0;K<R.resolvedFactories.length;K++)Z.resolvedFactories.push(R.resolvedFactories[K]);else c.set(R.key.id,R)}else Z=void 0,R.multiProvider?Z=new m7q(R.key,R.resolvedFactories.slice(),R.multiProvider):Z=R,c.set(R.key.id,Z)}return Array.from(c.values())};
TBT=function(G,c){G.forEach(function(I){if(I instanceof elO)c.push({provide:I,useClass:I});else if(I&&typeof I=="object"&&I.provide!==void 0)c.push(I);else if(I instanceof Array)TBT(I,c);else throw Error("ff`"+I);});
return c};
Zqg=function(G,c){if(c){var I=c.map(function(R){return[R]});
return c.map(function(R){return NBB(G,R,I)})}return I9p(G)};
I9p=function(G){var c=ckO.parameters(G);if(!c)return[];if(c.some(function(I){return I==null}))throw GZT(G,c);
return c.map(function(I){return NBB(G,I,c)})};
NBB=function(G,c,I){var R=null,Z=!1;if(!Array.isArray(c))return c instanceof l9f?qBU(c.token,Z,null):qBU(c,Z,null);for(var K=null,m=0;m<c.length;++m){var a=c[m];if(a instanceof elO)R=a;else if(a instanceof l9f)R=a.token;else if(a instanceof wwg)Z=!0;else if(a instanceof FBr||a instanceof nSb)K=a}R=Ny(R);if(R!=null)return qBU(R,Z,K);throw GZT(G,I);};
qBU=function(G,c,I){return new vSA(l6.get(Ny(G)),c,I)};
D7f=function(G,c){for(var I=Array(G.providers.length),R=0;R<G.providers.length;++R){var Z=R;if(R<0||R>=G.providers.length)throw Error("hf`"+R);I[Z]=c(G.providers[R])}return I};
oSB=function(G){return typeof G==="function"&&ckO.parameters(G).every(function(c){return!!c})};
bqr=function(G){var c=U7g;ugC.get(G)||ugC.set(G,new c);return ugC.get(G)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(G)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(G)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,c){var I,R;if(G.contains(c))return!0;G=_.qy(G).querySelectorAll("content,slot");for(I=0;I<G.length;++I){var Z=_.qy(G[I]).getDistributedNodes();for(R=0;R<Z.length;++R)if(Z[R].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Z[R],c))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){G.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G)&&G.preventDefault();G.targetTouches&&(G=G.targetTouches[0],kZO=G.pageX,sk0=G.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var G=0,c=wq.length;G<c;G++)document.addEventListener(wq[G],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var G=0,c=wq.length;G<c;G++)document.removeEventListener(wq[G],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){var c=_.qy(G).rootTarget;G.type!=="touchmove"&&LBr!==c&&(LBr=c,AkC=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.qy(G).path));if(!AkC.length)return!0;if(G.type==="touchstart")return!1;G=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(AkC,G.deltaX,G.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){for(var c=[],I=G.indexOf($7f),R=0;R<=I;R++)if(G[R].nodeType===Node.ELEMENT_NODE){var Z=G[R],K=Z.style;K.overflow!=="scroll"&&K.overflow!=="auto"&&(K=window.getComputedStyle(Z));K.overflow!=="scroll"&&K.overflow!=="auto"||c.push(Z)}return c};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,c,I){if(c||I)for(var R=Math.abs(I)>=Math.abs(c),Z=0;Z<G.length;Z++){var K=G[Z];if(R?I<0?K.scrollTop>0:K.scrollTop<K.scrollHeight-K.clientHeight:c<0?K.scrollLeft>0:K.scrollLeft<K.scrollWidth-K.clientWidth)return K}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){var c={deltaX:G.deltaX,deltaY:G.deltaY};"deltaX"in G||("wheelDeltaX"in G&&"wheelDeltaY"in G?(c.deltaX=-G.wheelDeltaX,c.deltaY=-G.wheelDeltaY):"wheelDelta"in G?(c.deltaX=0,c.deltaY=-G.wheelDelta):"axis"in G?(c.deltaX=G.axis===1?G.detail:0,c.deltaY=G.axis===2?G.detail:0):G.targetTouches&&(G=G.targetTouches[0],c.deltaX=kZO-G.pageX,c.deltaY=sk0-G.pageY));return c};
SBp=function(G){this.element=G;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
MdO=function(G){this.element=G;this.color=window.getComputedStyle(G).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.qy(this.waveContainer).appendChild(this.wave);pwq(this)};
Fl=function(G,c){for(var I in G)if(I.toLowerCase()===c.toLowerCase())return G[I]};
VdA=function(G,c){for(var I in G)if(I.toLowerCase()===c.toLowerCase()){delete G[I];break}};
ESO=function(G){G=_.rx.clone(G);for(var c=0;c<zlb.length;++c){var I=zlb[c],R=Fl(G,I);R&&(G["X-Goog-Upload-Header-"+I]=R,VdA(G,I))}return G};
Jkq=function(G){G=_.rx.clone(G);VdA(G,"X-Goog-Upload-Status")};
iqA=function(G){return WBO.some(function(c){return c.test(G)})};
jkB=function(G,c){var I;var R=(I=G.formContent)==null?void 0:I.locale;I=R==null?void 0:R.split("-")[0];R=R&&f9U.includes(R)?R:I&&f9U.includes(I)?I:void 0;R=(R!=null?R:"en").replaceAll("-","_").toLowerCase();var Z;G=((Z=G.initializationData)==null?0:Z.useNightlyRelease)?"nightly":"live";var K;return(c==null?0:(K=c.getEnableAlohaBinarySplit)==null?0:K.call(c))?_.D3(BBA,G):_.D3(rkO,G,R)};
hlU=function(G,c,I,R){if(x7A&&tdO===c)return x7A;tdO=c;var Z=jkB(G,R);return x7A=c.feedbackV2GlobalObject?Promise.resolve(c.feedbackV2GlobalObject):new Promise(function(K,m){var a=_.$9("SCRIPT");_.Ti(a,Z);a.onload=function(){c.feedbackV2GlobalObject?K(c.feedbackV2GlobalObject):m(Error("mf"))};
a.onerror=function(){m(Error("nf`"+Z.toString()))};
I.body.appendChild(a)})};
HqB=function(G,c,I,R){if(d7T&&C3b===c)return d7T;C3b=c;var Z=jkB(G,R);return d7T=c.feedbackV2GlobalObject?Promise.resolve(c.feedbackV2GlobalObject):new Promise(function(K,m){var a=_.$9("SCRIPT");_.Ti(a,Z);a.onload=function(){c.feedbackV2GlobalObject?K(c.feedbackV2GlobalObject):m(Error("mf"))};
a.onerror=function(){m(Error("nf`"+Z.toString()))};
I.body.appendChild(a)})};
Xwr=function(G,c,I,R,Z){Z=Z===void 0?!0:Z;var K,m,a,O,N;return _.T(function(q){switch(q.nextAddress){case 1:return K=Date.now(),q.yield(hlU(G,I,R,c),2);case 2:m=q.yieldResult;if(!(Z||((O=G.initializationData)==null?0:O.useNightlyRelease)||((N=G.initializationData)==null?0:N.isLocalServer))){a=m.initializeFeedbackClient(G,K,c);q.jumpTo(3);break}return q.yield(m.initializeFeedbackClientAsync(G,K,c),4);case 4:a=q.yieldResult;case 3:return a.initiateAloha(),q.return(a)}})};
ykb=function(G,c,I,R){var Z,K,m;return _.T(function(a){if(a.nextAddress==1)return Z=Date.now(),a.yield(HqB(G,I,R.document,c),2);if(a.nextAddress!=3)return K=a.yieldResult,a.yield(K.initializeFeedbackClientAsync(G,Z,c,R),3);m=a.yieldResult;m.initiateAloha();return a.return(m)})};
gS0=function(G,c,I){var R=!0;R=R===void 0?!0:R;var Z,K,m,a,O,N,q,w;return _.T(function(F){Z=I||_.Rq;if((K=c)==null?0:(a=(m=K).getEnableAlohaBinarySplit)==null?0:a.call(m)){O=Z;if(O.isFormOpened)throw new nR;O.isFormOpened=!0;G.callbacks=G.callbacks||{};N=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(n){O.isFormOpened=!1;N(n)};
try{return F.return(ykb(G,c,O,Z))}catch(n){throw O.isFormOpened=!1,n;}}else{q=Z;if(q.isFormOpened)throw new nR;q.isFormOpened=!0;G.callbacks=G.callbacks||{};w=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(n){q.isFormOpened=!1;w(n)};
try{return F.return(Xwr(G,c,q,Z.document,R))}catch(n){throw q.isFormOpened=!1,n;}}_.Vp(F)})};
RLA=function(G,c){return _.T(function(I){return I.return(new Promise(function(R,Z){Number.isInteger(Number(G))&&Number(G)>0?(Z=YBf(c!=null?c:"")+"/aloha_form_properties?productId="+G,GW8(Z,function(K){K=K.target;var m=null;try{var a=JSON,O=a.stringify;if(K.JSC$9965_xhr_){var N=K.JSC$9965_xhr_.responseText;N.indexOf(")]}'\n")==0&&(N=N.substring(5));var q=(0,_.vq)(N)}else q=void 0;m=ITA(cMi,O.call(a,q))}catch(w){O=new cMi,q=IMp(),q=_.DZ(q,13,!1),q=_.DZ(q,14,!0),q=_.DZ(q,15,!0),q=_.DZ(q,20,!1),m=_.Az(O,
1,q)}R(m)},"GET","",{},2E3,!0)):Z(Error("of`"+G))}))})};
YBf=function(G){return iqA(G)?G:"https://www.google.com/tools/feedback"};
Qjr=function(G){G=G.match(new RegExp(Z$U,"gi"))||[];G=_.Q(G);for(var c=G.next();!c.done;c=G.next()){c=c.value;a:{var I=_.Q(KZ0);for(var R=I.next();!R.done;R=I.next())if(R.value.test(c)){I=!1;break a}I=!0}if(!I)a:{I=_.Q(P9r);for(R=I.next();!R.done;R=I.next())if(R.value.test(c)){I=!0;break a}I=!1}if(I)return!0}return!1};
mnB=function(G,c){var I={},R=Object.keys(G);R=_.Q(R);for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,I[Z]=c(Z,G[Z]);return I};
aMr=function(G){switch(G){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
O$f=function(G){if(window.crypto&&window.crypto.getRandomValues)try{var c=Array(G),I=new Uint8Array(G);window.crypto.getRandomValues(I);for(var R=0;R<c.length;R++)c[R]=I[R];return c}catch(K){}c=Array(G);for(I=0;I<G;I++){R=Date.now();for(var Z=0;Z<R%23;Z++)c[I]=Math.random();c[I]=Math.floor(Math.random()*256)}if(Twf)for(I=1,R=0;R<Twf.length;R++)c[I%G]^=c[(I-1)%G]/4^Twf.charCodeAt(R),I++;return c};
oQ=function(G){G=O$f(G);for(var c=[],I=0;I<G.length;I++)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[I]&63));return c.join("")};
eLB=function(){var G=_.Rq.ytLoggingDocDocumentNonce_;G||(G=oQ(16),_.lr("ytLoggingDocDocumentNonce_",G));return G};
lMr=function(G){G&&_.x7("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:NwO,clientScreenNonce:G})};
qYg=function(G){return _.H1("client-screen-nonce-store",{})[G===void 0?0:G]};
wag=function(G,c){c=c===void 0?0:c;var I=_.H1("client-screen-nonce-store");I||(I={},_.Ch("client-screen-nonce-store",I));I[c]=G};
FZi=function(G){G=G===void 0?0:G;return G===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+G};
nni=function(G){return _.H1(FZi(G===void 0?0:G))};
_.u6=function(G){return(G=nni(G===void 0?0:G))?new UQ({veType:G,youtubeData:void 0,jspbYoutubeData:void 0}):null};
vnC=function(){var G=_.H1("csn-to-ctt-auth-info");G||(G={},_.Ch("csn-to-ctt-auth-info",G));return G};
DnC=function(){return Object.values(_.H1("client-screen-nonce-store",{})).filter(function(G){return G!==void 0})};
_.k0=function(G){G=qYg(G===void 0?0:G);if(!G&&!_.XG("USE_CSN_FALLBACK",!0))return null;G||(G="UNDEFINED_CSN");return G?G:null};
UnB=function(G){for(var c=_.Q(Object.values(onb)),I=c.next();!I.done;I=c.next())if(_.k0(I.value)===G)return!0;return!1};
u3T=function(G,c,I){var R=vnC();(I=_.k0(I))&&delete R[I];c&&(R[G]=c)};
sQ=function(G){return vnC()[G]};
_.LR=function(G,c,I,R){I=I===void 0?0:I;if(G!==qYg(I)||c!==_.H1(FZi(I)))if(u3T(G,R,I),wag(G,I),_.Ch(FZi(I),c),c=function(){setTimeout(function(){lMr(G)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(c)}catch(Z){c()}else c()};
b$q=function(G){var c=_.k0(0),I=nni(0);c&&I&&(_.LR(c,I,G),G===0&&wag(void 0,0))};
kWi=function(G,c){c=c===void 0?"":c;var I=[],R;for(R in G)if(G.hasOwnProperty(R)){var Z=c!==""?c+"."+R:R;typeof G[R]==="object"?I.push.apply(I,_.jn(kWi(G[R],Z))):I.push([Z,G[R]])}I.sort();return I};
_.$0=function(G){var c=_.Hy.apply(1,arguments);if(!AO(G)||c.some(function(R){return!AO(R)}))throw Error("pf");
c=_.Q(c);for(var I=c.next();!I.done;I=c.next())sjg(G,I.value)};
sjg=function(G,c){for(var I in c)if(AO(c[I])){if(I in G&&!AO(G[I]))throw Error("qf");I in G||(G[I]={});sjg(G[I],c[I])}else if(LZ8(c[I])){if(I in G&&!LZ8(G[I]))throw Error("rf");I in G||(G[I]=[]);AMT(G[I],c[I])}else G[I]=c[I];return G};
AMT=function(G,c){c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=I.value,AO(I)?G.push(sjg({},I)):LZ8(I)?G.push(AMT([],I)):G.push(I);return G};
AO=function(G){return typeof G==="object"&&!Array.isArray(G)};
LZ8=function(G){return typeof G==="object"&&Array.isArray(G)};
SY0=function(G){for(var c=_.Q(Object.entries($n8)),I=c.next();!I.done;I=c.next())if(I=_.Q(I.value),I.next(),I=I.next().value,I==="SLI_STATUS_"+G)return I;return"SLI_STATUS_UNKNOWN"};
_.Sy=function(G,c,I,R){return paC(G,c,function(){return new _.M7A(G,c,I,R)})};
_.V7g=function(){return _.Sy("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
zLr=function(){return _.Sy("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
pR=function(){return _.Sy("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
Enp=function(){return _.Sy("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
JMp=function(){return _.Sy("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
WZC=function(){return _.Sy("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Bwq=function(G){G&&(G.dataset?G.dataset[i$g()]="true":_.N3([_.FU(fMi)],G,"data-loaded","true".toString()))};
rMi=function(G){return G?G.dataset?G.dataset[i$g()]:G.getAttribute("data-loaded"):null};
i$g=function(){return jjT.loaded||(jjT.loaded="loaded".replace(/\-([a-z])/g,function(G,c){return c.toUpperCase()}))};
_.My=function(G,c,I){xnO(G,c,I===void 0?null:I)};
_.hLr=function(G,c){G&&c&&(G=""+_.XB(c),(G=t7g[G])&&_.$CU(G))};
xnO=function(G,c,I){I=I===void 0?null:I;var R=_.dng(typeof G==="string"?G:G.toString()),Z=document.getElementById(R),K=Z&&rMi(Z),m=Z&&!K;K?c&&c():(c&&(K=_.D6(R,c),c=""+_.XB(c),t7g[c]=K),m||(Z=C9T(G,R,function(){rMi(Z)||(Bwq(Z),_.SnO(R),_.k6(function(){_.MkC(R)},0))},I)))};
C9T=function(G,c,I,R){R=R===void 0?null:R;var Z=_.$9("SCRIPT");Z.id=c;Z.onload=function(){I&&setTimeout(I,0)};
Z.onreadystatechange=function(){switch(Z.readyState){case "loaded":case "complete":Z.onload()}};
R&&Z.setAttribute("nonce",R);_.Ti(Z,typeof G==="string"?_.BD(G):G);G=document.getElementsByTagName("head")[0]||document.body;G.insertBefore(Z,G.firstChild);return Z};
_.dng=function(G){var c=document.createElement("a");yx(c,G);return"js-"+Vm(c.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
H$B=function(G){var c=_.H1("INNERTUBE_HOST_OVERRIDE");c&&(G=String(c)+String(_.zO(G)));return G};
Xag=function(G){var c={};_.v("json_condensed_response")&&(c.prettyPrint="false");return G=YQO(G,c)};
_.EQ=function(G){return NR(G)?"same-origin":"include"};
_.JO=function(G){return NR(G)?"same-origin":"cors"};
Wq=function(G,c,I){I=I===void 0?{}:I;G={method:c===void 0?"POST":c,mode:_.JO(G),credentials:_.EQ(G)};c={};for(var R=_.Q(Object.keys(I)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,I[Z]&&(c[Z]=I[Z]);Object.keys(c).length>0&&(G.headers=c);return G};
_.i6=function(G,c){c=c===void 0?{}:c;return"service:"+G+"/"+Object.keys(c).sort().map(function(I){return I+":"+c[I]}).join("/")};
yMg=function(G){var c,I,R,Z;G=(c=_.D(G,_.fR))==null?void 0:(I=c.watchEndpointSupportedOnesieConfig)==null?void 0:(R=I.html5PlaybackOnesieConfig)==null?void 0:(Z=R.commonConfig)==null?void 0:Z.url;if(!G)return[];c=new _.Bq(G);return c.JSC$10201_domain_?["https://"+c.JSC$10201_domain_+"/generate_204"]:[]};
_.GEp=function(){return gnr()||ZpA()||YYb&&yU("version/")?!0:_.H1("EOM_VISITOR_DATA")?!1:!0};
cjT=function(G){var c=G.docid||G.video_id||G.videoId||G.id;if(c)return c;c=G.raw_player_response;c||(G=G.player_response)&&(c=JSON.parse(G));return c&&c.videoDetails&&c.videoDetails.videoId||null};
Iuq=function(G){return G.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
rq=function(G){return!isNaN(Number(G))&&!_.mg(G)};
_.x0=function(G,c,I,R){R=R===void 0?!0:R;var Z=_.H1("VALID_SESSION_TEMPDATA_DOMAINS",[]),K=_.O2(window.location.href);K&&Z.push(K);K=_.O2(G);if(_.fA(Z,K)||!K&&_.KA(G,"/"))if(Z=document.createElement("a"),yx(Z,G),G=Z.href)if(G=_.zO(G),G=_.jy(G))R&&!c.csn&&(c.itct||c.ved)&&(c=Object.assign({csn:_.k0()},c)),I?(I=parseInt(I,10),isFinite(I)&&I>0&&RuA(G,c,I)):RuA(G,c)};
K4U=function(G){var c=_.H1("VALID_SESSION_TEMPDATA_DOMAINS",[]),I=_.O2(window.location.href);I&&c.push(I);I=_.O2(G);if(!(_.fA(c,I)||!I&&_.KA(G,"/")))return null;G=_.zO(G);(G=_.jy(G))?(G=ZVU(G),G=(G=_.VU.get(G,void 0)||null)?_.PK(G):{}):G=null;return G};
RuA=function(G,c,I){G=ZVU(G);c=c?_.SA(c):"";I=I||5;_.GEp()&&_.zu(G,c,I)};
ZVU=function(G){for(var c=_.Q(PYr),I=c.next();!I.done;I=c.next())G=_.tO(G,I.value);return"ST-"+Vm(G).toString(36)};
_.QHB=function(G){if(G.requestFullscreen)G=G.requestFullscreen(void 0);else if(G.webkitRequestFullscreen)G=G.webkitRequestFullscreen();else if(G.mozRequestFullScreen)G=G.mozRequestFullScreen();else if(G.msRequestFullscreen)G=G.msRequestFullscreen();else if(G.webkitEnterFullscreen)G=G.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return G instanceof Promise?G:Promise.resolve()};
_.dq=function(G){var c;_.wIi(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.hO()==G&&(c=document):c=G;if(c&&(G=_.wIi(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],c))){G.call(c)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.hO=function(){var G=G===void 0?!1:G;var c=_.wIi(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(G)for(;c&&c.shadowRoot;)c=c.shadowRoot.fullscreenElement;return c?c:null};
_.CR=function(G,c){c=c===void 0?!0:c;G.addEventListener("wheel",mer);G.overscrollConfig={cooldown:c}};
_.Hq=function(G){G.overscrollConfig=void 0;G.removeEventListener("wheel",mer)};
mer=function(G){var c=G.deltaY,I=G.target,R=null;if(window.Polymer&&window.Polymer.Element){if(I=G.path||G.composedPath&&G.composedPath()){I=_.Q(I);for(var Z=I.next();!Z.done&&(Z=Z.value,!aur(Z,c));Z=I.next())if(Z.overscrollConfig){R=Z;break}}}else for(;I&&!aur(I,c);){if(I.overscrollConfig){R=I;break}I=I.parentElement}R&&(c=R.overscrollConfig,c.cooldown?(R=G.deltaY,I=c.lastDeltaY||0,c.lastDeltaY=R,Z=c.lastStopped||0,I&&Z&&I>0==R>0?Math.abs(I)>=Math.abs(R)?(R=Z+1200,I=!1):(R=Z+600,I=!0):(R=Date.now()+
600,I=!0),R>Date.now()&&(G.preventDefault(),I&&(c.lastStopped=Date.now()))):G.preventDefault())};
aur=function(G,c){return c<0&&G.scrollTop>0||c>0&&G.scrollTop<G.scrollHeight-G.clientHeight-1?(G=getComputedStyle(G).overflowY,G=="auto"||G=="scroll"):!1};
_.Xl=function(G,c,I,R){R||(R={bubbles:!0,cancelable:!1,composed:!0});I!==null&&I!==void 0&&(R.detail=I);var Z=new CustomEvent(c,R);_.v("untrack_fire_custom_event_killswitch")?G.dispatchEvent(Z):_.ue(function(){return void G.dispatchEvent(Z)});
return Z};
TAi=function(G){var c=window,I=function(R){c.removeEventListener("yt-navigate-start",I);return G.call(c,R)};
c.addEventListener("yt-navigate-start",I,void 0)};
_.ym=function(G,c,I,R){c=new OVT(c,!(R===void 0||!R),I);_.Xl(G,"yt-action",c);return c.returnValue};
_.gq=function(G,c,I){return _.ym(G,c,I,!0)};
_.Y0=function(G,c,I){return _.ym(G,c,I)[0]};
_.cd=function(G,c,I,R){c&&c.length&&c.forEach(function(Z){var K=NPp(Z);K&&(_.v("handle_service_request_actions")&&Z.commandMetadata&&Z.commandMetadata.webCommandMetadata&&Z.commandMetadata.webCommandMetadata.sendPost?_.Gs(I?I:G,[Z]):_.gq(G,K,[Z,I,R]))})};
_.Gs=function(G,c){var I=[G];c&&I.push.apply(I,c);c=_.ym(G,"yt-service-request",I);return c.length>0&&(c=c[0],_.Xl(G,"yt-service-request-sent",c),c&&c.ajaxPromise)?(c.ajaxPromise.then(function(R){_.Xl(G,"yt-service-request-completed",R)},function(R){_.Xl(G,"yt-service-request-error",{error:R,
params:I})},G),c.ajaxPromise):_.IP()};
_.ZS=function(G,c){if(_.v("handle_service_request_actions"))_.cd(c,G,c);else{G=_.Q(G);for(var I=G.next();!I.done;I=G.next()){I=I.value;var R=void 0;((R=_.D(I,_.RP))==null?0:R.commands)?_.ZS(_.D(I,_.RP).commands,c):(R=void 0,((R=_.D(I,_.KC))==null?0:R.actions)?_.ZS(_.D(I,_.KC).actions,c):(R=void 0,((R=_.D(I.commandMetadata,_.Pd))==null?0:R.sendPost)?_.Gs(c,[I]):_.cd(c,[I],c)))}}};
_.NAp=function(G,c,I){c=c===void 0?{}:c;typeof c==="function"&&(c={callback:c});I||c._c&&c._c.jsl&&c._c.jsl.h||_.rx.extend(c,{_c:{jsl:{h:_.H1("GAPI_HINT_PARAMS")}}});(c.gapiHintOverride||_.H1("GAPI_HINT_OVERRIDE"))&&(I=_.QU(document.location.href).gapi_jsh)&&_.rx.extend(c,{_c:{jsl:{h:I}}});eup(G,c)};
_.mJ=function(G,c,I){c=c===void 0?{}:c;G=(G=G in Ql?Ql[G]:I)||"";I={};for(var R in c){I={key$jscomp$844:I.key$jscomp$844};I.key$jscomp$844=R;var Z=function(K){return function(){return String(c[K.key$jscomp$844])}}(I);
G=G.replace(new RegExp("\\$\\{"+I.key$jscomp$844+"\\}","gi"),Z);G=G.replace(new RegExp("\\$"+I.key$jscomp$844,"gi"),Z)}return G};
_.aP=function(G,c){return lui(G in Ql?Ql[G]:{},c)};
lui=function(G,c){var I=_.H1("I18N_PLURAL_RULES");I||(I=function(R){return R==1?"one":"other"});
return(G=G["case"+c]||G[I(c)])?G.replace("#",c.toString()):c+""};
F48=function(G){var c=qAA(G),I=document.getElementById(c),R=I&&rMi(I);R||I&&!R||(I=wpi(G,c,function(){if(!rMi(I)){Bwq(I);_.SnO(c);var Z=_.Ts(_.MkC,c);_.k6(Z,0)}}))};
wpi=function(G,c,I){var R=document.createElement("link");R.id=c;R.onload=function(){I&&setTimeout(I,0)};
G=_.BD(G);_.la(R,G,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(R);return R};
qAA=function(G){var c=_.$9("A");yx(c,i5(G));return"css-"+Vm(c.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.vOp=function(G){var c=nOC();G!==c&&(c=_.OC(),!_.v("web_autonav_allow_off_by_default")&&G||_.eW(0,141,!0),_.eW(0,140,!G),c.save())};
nOC=function(){var G=_.OC();return _.v("web_autonav_allow_off_by_default")&&!G.getFlag(141)&&_.H1("AUTONAV_OFF_BY_DEFAULT")?!1:!G.getFlag(140)};
De8=function(G,c){var I,R;G=((I=G.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(R=I.videoAuthorizationToken)==null?void 0:R.credentialTransferTokens)||[];for(I=0;I<G.length;++I)if(G[I].scope===c)return G[I].token||void 0};
oOT=function(G){for(var c=0,I=0;I<G.length;I++)c=c*31+G.charCodeAt(I),I<G.length-1&&(c%=0x800000000000);return c%1E5};
_.N2=function(G){return _.Yc("ytcsi."+(G||"")+"data_")||UeO(G)};
_.uRb=function(G){G=_.N2(G);G.metadata||(G.metadata={});return G.metadata};
_.bVf=function(G){G=_.N2(G);G.tick||(G.tick={});return G.tick};
_.l8=function(G){G=_.N2(G);if(G.gel){var c=G.gel;c.gelInfos||(c.gelInfos={});c.gelTicks||(c.gelTicks={})}else G.gel={gelTicks:{},gelInfos:{}};return G.gel};
_.kEU=function(G){G=_.l8(G);G.gelInfos||(G.gelInfos={});return G.gelInfos};
sHB=function(G){var c=_.N2(G).nonce;c||(c=oQ(16),_.N2(G).nonce=c);return c};
UeO=function(G){var c={tick:{},info:{}};_.lr("ytcsi."+(G||"")+"data_",c);return c};
L4r=function(){var G=_.Yc("ytcsi.debug");G||(G=[],_.lr("ytcsi.debug",G),_.lr("ytcsi.reference",{}));return G};
_.q2=function(G){G=G||"";var c=AjC();if(c[G])return c[G];var I=L4r(),R={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};I.push(R);return c[G]=R};
$er=function(G){G=G||"";var c=AjC();c[G]&&delete c[G];var I=L4r(),R={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};I.push(R);c[G]=R};
AjC=function(){var G=_.Yc("ytcsi.reference");if(G)return G;L4r();return _.Yc("ytcsi.reference")};
_.ppg=function(G){return SAi[G]||"LATENCY_ACTION_UNKNOWN"};
EOB=function(G,c,I){I=I===void 0?{}:I;var R=!1;_.XG("ytLoggingEventsDefaultDisabled",!1)&&(R=!0);R=R?null:jc;I=I===void 0?{}:I;var Z=Math.round(I.timestamp||(0,_.Fa)());_.Ef(c,1,Z<Number.MAX_SAFE_INTEGER?Z:0);Z=new MMb;if(I.lact)_.Ef(Z,1,isFinite(I.lact)?I.lact:-1);else if(I.timestamp)_.Ef(Z,1,-1);else{var K=_.wj();_.Ef(Z,1,isFinite(K)?K:-1)}if(I.sequenceGroup&&!_.v("web_gel_sequence_info_killswitch")){K=I.sequenceGroup;var m=r0p(K),a=new VMT;_.Ef(a,2,m);_.Eq(a,1,K);_.Az(Z,3,a);I.endOfSequence&&delete zuT[I.sequenceGroup]}_.Az(c,
33,Z);(I.sendIsolatedPayload?HdT:XIr)(G,{endpoint:"log_event",payload:c,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession},R)};
_.FL=function(){return(_.v("csi_use_time_origin")||_.v("csi_use_time_origin_tvhtml5"))&&_.wU.timeOrigin?Math.floor(_.wU.timeOrigin):_.wU.timing.navigationStart};
_.Jjp=function(G,c){_.DS("_start",G,c)};
_.oP=function(G,c){if(!_.v("web_csi_action_sampling_enabled")||!_.N2(c).actionDisabled){var I=_.q2(c||"");_.$0(I.info,G);G.loadType&&(I=G.loadType,_.uRb(c).loadType=I);_.$0(_.kEU(c),G);I=sHB(c);c=_.N2(c).cttAuthInfo;W4r().info(G,I,c)}};
iVp=function(){var G,c,I,R;return((R=_.wH().resolve(_.qR(iB))==null?void 0:(G=fk())==null?void 0:(c=G.loggingHotConfig)==null?void 0:(I=c.csiConfig)==null?void 0:I.debugTicks)!=null?R:[]).map(function(Z){return Object.values(Z)[0]})};
_.DS=function(G,c,I){if(!_.v("web_csi_action_sampling_enabled")||!_.N2(I).actionDisabled){var R=sHB(I),Z;if(Z=_.v("web_csi_debug_sample_enabled")&&R){(_.wH().resolve(_.qR(iB))==null?0:fk())&&!fup&&(fup=!0,_.DS("gcfl",(0,_.Fa)(),I));var K,m,a;Z=(_.wH().resolve(_.qR(iB))==null?void 0:(K=fk())==null?void 0:(m=K.loggingHotConfig)==null?void 0:(a=m.csiConfig)==null?void 0:a.debugSampleWeight)||0;if(K=Z!==0)b:{K=iVp();if(K.length>0)for(m=0;m<K.length;m++)if(G===K[m]){K=!0;break b}K=!1}K?(Z=oOT(R)%Z!==0,
_.N2(I).debugTicksExcludedLogged||(K={},K.debugTicksExcluded=Z,_.oP(K,I)),_.N2(I).debugTicksExcludedLogged=!0):Z=!1}if(!Z){G[0]!=="_"&&BAr(G,I,c);Z=_.q2(I||"");Z.tick[G]=c||(0,_.Fa)();if(Z.callback&&Z.callback[G])for(Z=_.Q(Z.callback[G]),K=Z.next();!K.done;K=Z.next())K=K.value,K();Z=_.l8(I);Z.gelTicks&&(Z.gelTicks[G]=!0);K=_.bVf(I);Z=c||(0,_.Fa)();_.v("log_repeated_ytcsi_ticks")?G in K||(K[G]=Z):K[G]=Z;K=_.N2(I).cttAuthInfo;G==="_start"?W4r().baseline(R,c,K):W4r().tick(G,R,c,K);_.rjO(I);return Z}}};
BAr=function(G,c,I){if(_.wU.mark)if(G.startsWith("mark_")||(G="mark_"+G),c&&(G+=" ("+c+")"),I===void 0||_.v("web_csi_disable_alt_time_performance_mark"))_.wU.mark(G);else{I=_.v("csi_use_performance_navigation_timing")?I-_.wU.timeOrigin:I-(_.wU.timeOrigin||_.wU.timing.navigationStart);try{_.wU.mark(G,{startTime:I})}catch(R){}}};
jHU=function(){var G,c=(G=_.wU.getEntriesByType)==null?void 0:G.call(_.wU,"mark");c&&c.forEach(function(I){if(I.name.startsWith("mark_")){var R;(R=_.wU.clearMarks)==null||R.call(_.wU,I.name)}})};
_.xeb=function(){switch(qnU()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.tMB=function(G){var c={},I=function(K,m,a){m=m.match("_rid")?m.split("_rid")[0]:m;typeof a==="number"&&(a=JSON.stringify(a));K.requestIds?K.requestIds.push({endpoint:m,id:a}):K.requestIds=[{endpoint:m,id:a}]};
G=_.Q(Object.entries(G));for(var R=G.next();!R.done;R=G.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;switch(R){case "GetBrowse_rid":I(c,R,Z);break;case "GetGuide_rid":I(c,R,Z);break;case "GetHome_rid":I(c,R,Z);break;case "GetPlayer_rid":I(c,R,Z);break;case "GetSearch_rid":I(c,R,Z);break;case "GetSettings_rid":I(c,R,Z);break;case "GetTrending_rid":I(c,R,Z);break;case "GetWatchNext_rid":I(c,R,Z);break;case "yt_red":c.isRedSubscriber=!!Z;break;case "yt_ad":c.isMonetized=!!Z}}return c};
_.hu0=function(G){var c=_.UC("aft",G);if(c)return c;c=_.H1((G||"")+"TIMING_AFT_KEYS",["ol"]);for(var I=c.length,R=0;R<I;R++){var Z=_.UC(c[R],G);if(Z)return Z}return NaN};
_.deT=function(G,c){_.lr("ytglobal.timing"+(c||"")+"ready_",G)};
_.UC=function(G,c){if(G=_.bVf(c)[G])return typeof G==="number"?G:G[G.length-1]};
_.rjO=function(G){var c=_.UC("_start",G),I=_.hu0(G),R=!CYU;c&&I&&R&&(jIO(HVT,new XpB(Math.round(I-c),G)),CYU=!0)};
gOq=function(G){UeO(G);yjO();jHU();G||(_.H1("TIMING_ACTION")&&_.Ch("PREVIOUS_ACTION",_.H1("TIMING_ACTION")),_.Ch("TIMING_ACTION",""))};
_.YAi=function(G){G=G===void 0?{}:G;_.gK(function(){u8();$er();gOq();_.deT(!1);G.cttAuthInfo&&(_.N2().cttAuthInfo=G.cttAuthInfo);_.Ch("TIMING_AFT_KEYS",[]);G.isHot?_.b8({loadType:"hot"}):_.b8({loadType:"warm"});_.Ch("TIMING_ACTION","");delete _.H1("TIMING_INFO",{}).yt_lt;_.gK(_.Jjp)(G.startTime,void 0)})()};
_.sC=function(G,c,I,R){c=c===void 0?{}:c;_.gK(function(){var Z=I?I:G;kD(Z);var K=c.sampleRate;if(!_.v("web_csi_action_sampling_enabled")||K===void 0||K<=1)K=!1;else{var m=sHB(Z);K=oOT(m)%K!==0}K&&(_.N2(Z).actionDisabled=!0);_.q2(Z||"").info.actionType=G;c.cttAuthInfo&&(_.N2(Z).cttAuthInfo=c.cttAuthInfo);_.Ch(Z+"TIMING_ACTION",G);_.gK(_.Jjp)(c.startTime,Z);K={actionType:R||_.ppg(G)};c.logPreviousAction&&(K.previousAction=_.ppg(_.H1("TIMING_ACTION")));(m=_.k0())&&m!=="UNDEFINED_CSN"&&(K.clientScreenNonce=
m);_.b8(K,Z);_.deT(!0,Z)})()};
kD=function(G){_.gK(function(){u8(G);$er(G);gOq(G)})()};
Gkf=function(){_.gK(function(){var G=[],c;for(c in _.Yc("ytcsi.".slice(0,-1)))c.endsWith("data_")&&G.push(c.slice(0,-5));G=_.Q(G);for(c=G.next();!c.done;c=G.next())kD(c.value);u8()})()};
_.II8=function(G){return _.gK(function(){return _.ctr("_start",G)})()};
_.b8=function(G,c,I){_.gK(_.oP)(G,c,I===void 0?!1:I)};
_.LC=function(G,c,I){return _.gK(_.DS)(G,c,I)};
_.ctr=function(G,c){return _.gK(function(){var I=_.bVf(c);return G in I})()};
ZJf=function(G){if(!_.v("universal_csi_network_ticks"))return"";G=_.Aw(G)||"";for(var c=Object.keys(RyU),I=0;I<c.length;I++){var R=c[I];if(G.includes(R))return R}return""};
PvC=function(G){if(!_.v("universal_csi_network_ticks"))return function(){};
var c=RyU[G];return c?(_.SW(c),function(){var I=_.v("universal_csi_network_ticks")?(I=K1r[G])?_.SW(I):!1:!1;return I}):function(){}};
_.SW=function(G,c,I){return _.gK(function(){if(_.ctr(G,I))return!1;_.LC(G,c,I);return!0})()};
_.pC=function(G,c,I){_.gK(function(){if(!_.II8(I)||_.ctr(G,I))return!1;_.LC(G,c,I);return!0})()};
_.M2=function(G){return _.gK(_.UC)(G,void 0)};
u8=function(G){_.II8(G)&&_.LC("aa",void 0,G)};
_.OJp=function(G,c,I,R,Z,K,m,a,O,N){var q=Qh0();K=new UQ({veType:c,youtubeData:K,jspbYoutubeData:a});N=Vl({automatedLogEventSource:N},q);Z&&(N.cttAuthInfo=Z);Z={csn:q,pageVe:K.getAsJson()};_.v("expectation_logging")&&O&&O.screenCreatedLoggingExpectations&&(Z.screenCreatedLoggingExpectations=O.screenCreatedLoggingExpectations);I&&I.visualElement?(Z.implicitGesture={parentCsn:I.clientScreenNonce,gesturedVe:I.visualElement.getAsJson()},m&&(Z.implicitGesture.gestureType=m)):I&&_.Ck(new _.iW("newScreen() parent element does not have a VE - rootVe",
c));R&&(Z.cloneCsn=R);G?rj("screenCreated",Z,G,N):_.x7("screenCreated",Z,N);jIO(XH0,new mlf(q));zs.clear();aIr.clear();TtU.clear();return q};
EC=function(G,c,I,R,Z,K){K=K===void 0?{}:K;eyO(G,c,I,[R],Z===void 0?!1:Z,K)};
eyO=function(G,c,I,R,Z,K){Z=Z===void 0?!1:Z;K=K===void 0?{}:K;Object.assign(K,Vl({cttAuthInfo:sQ(c)||void 0},c));for(var m=_.Q(R),a=m.next();!a.done;a=m.next()){a=a.value;var O=a.getAsJson();(_.rx.isEmpty(O)||!O.trackingParams&&!O.veType)&&_.Ck(Error("Bf"));if(_.v("no_client_ve_attach_unless_shown")){var N=NtC(a,c);if(O.veType&&!aIr.has(N)&&!TtU.has(N)&&!Z){if(!_.v("il_attach_cache_limit")||zs.size<1E3){zs.set(N,[G,c,I,a]);return}_.v("il_attach_cache_limit")&&zs.size>1E3&&_.Ck(new _.iW("IL Attach cache exceeded limit"))}a=
NtC(I,c);zs.has(a)?lI8(I,c):TtU.set(a,!0)}}R=R.filter(function(q){q.csn!==c?(q.csn=c,q=!0):q=!1;return q});
I={csn:c,parentVe:I.getAsJson(),childVes:_.jB(R,function(q){return q.getAsJson()})};
c==="UNDEFINED_CSN"?JH("visualElementAttached",K,I):G?rj("visualElementAttached",I,G,K):_.x7("visualElementAttached",I,K)};
wEC=function(G,c,I,R,Z,K,m){qPf(G,c,I,Z,m)};
qPf=function(G,c,I,R,Z){F10(I,c);Z=Vl({cttAuthInfo:sQ(c)||void 0,automatedLogEventSource:Z},c);I={csn:c,ve:I.getAsJson(),eventType:1};R&&(I.clientData=R);c==="UNDEFINED_CSN"?JH("visualElementShown",Z,I):G?rj("visualElementShown",I,G,Z):_.x7("visualElementShown",I,Z)};
nhr=function(G,c,I,R){F10(I,c);var Z=Vl({cttAuthInfo:sQ(c)||void 0,automatedLogEventSource:void 0},c);I={csn:c,ve:I.getAsJson(),eventType:4};R&&(I.clientData=R);c==="UNDEFINED_CSN"?JH("visualElementShown",Z,I):G?rj("visualElementShown",I,G,Z):_.x7("visualElementShown",I,Z)};
vh8=function(G,c,I,R,Z,K){var m=(R=R===void 0?!1:R)?16:8;R=Vl({cttAuthInfo:sQ(c)||void 0,endOfSequence:R,automatedLogEventSource:K},c);I={csn:c,ve:I.getAsJson(),eventType:m};Z&&(I.clientData=Z);c==="UNDEFINED_CSN"?JH("visualElementHidden",R,I):G?rj("visualElementHidden",I,G,R):_.x7("visualElementHidden",I,R)};
oh8=function(G,c,I,R,Z,K){Dlr(G,c,I,void 0,R,Z,K)};
Dlr=function(G,c,I,R,Z,K,m){F10(I,c);R=R||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";K=Vl({cttAuthInfo:sQ(c)||void 0,automatedLogEventSource:m},c);I={csn:c,ve:I.getAsJson(),gestureType:R};Z&&(I.clientData=Z);c==="UNDEFINED_CSN"?JH("visualElementGestured",K,I):G?rj("visualElementGestured",I,G,K):_.x7("visualElementGestured",I,K)};
Ulq=function(G,c,I,R){var Z=Vl({cttAuthInfo:sQ(c)||void 0},c);I={csn:c,ve:I.getAsJson(),clientData:R};c==="UNDEFINED_CSN"?JH("visualElementStateChanged",Z,I):G?rj("visualElementStateChanged",I,G,Z):_.x7("visualElementStateChanged",I,Z)};
uFp=function(){var G=O$f(16);for(var c=[],I=0;I<G.length;I++)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[I]&63));return c.join("")};
JH=function(G,c,I){bJO.push({payloadName:G,payload:I,jspbPayload:void 0,options:c});kk0||(kk0=gap())};
HEO=function(G){if(bJO){for(var c=_.Q(bJO),I=c.next();!I.done;I=c.next())I=I.value,I.payload&&(I.payload.csn=G.csn,_.x7(I.payloadName,I.payload,I.options));bJO.length=0}kk0=0};
NtC=function(G,c){return""+G.getAsJson().veType+G.getAsJson().veCounter+c};
F10=function(G,c){if(_.v("no_client_ve_attach_unless_shown")){var I=NtC(G,c);aIr.set(I,!0);lI8(G,c)}};
lI8=function(G,c){G=NtC(G,c);zs.has(G)&&(c=zs.get(G)||[],EC(c[0],c[1],c[2],c[3],!0),zs.delete(G))};
Vl=function(G,c){_.v("log_sequence_info_on_gel_web")&&(G.sequenceGroup=c);return G};
_.Wd=function(G,c,I){_.gK(EC)(void 0,G,c,I)};
_.i8=function(G,c,I){_.gK(eyO)(void 0,G,c,I)};
_.fC=function(G,c){_.gK(wEC)(void 0,G,c,void 0,void 0,void 0)};
_.Bd=function(G,c,I){_.gK(function(){_.K4(c,function(R){nhr(void 0,G,R,I)})})()};
_.rU=function(G,c,I,R){_.gK(function(){_.K4(c,function(Z){vh8(void 0,G,Z,I,R)})})()};
_.jW=function(G,c,I){_.gK(oh8)(void 0,G,c,I,void 0)};
_.xD=function(G,c,I,R){_.gK(Dlr)(void 0,G,c,I,R,void 0)};
_.tH=function(G,c,I){_.gK(Ulq)(void 0,G,c,I,void 0)};
shr=function(G,c){hH.set(G,c)};
L18=function(G){dU.initialized=!0;dU.sessionId=G.sessionId||"";dU.enabledSpans=G.enabledSpans;G.shouldSampleFn!=null&&(dU.shouldSampleFn=G.shouldSampleFn)};
AtC=function(G){dU.processors.push(G)};
CC=function(G){return dU.initialized?dU.enabledSpans?dU.enabledSpans[G]:!0:!1};
M5f=function(G,c,I){return CC(G)&&dU.shouldSampleFn(G,c,$lO)?new SPC(G,c,I):pEq};
Hd=function(G,c,I){if(typeof I==="function"){var R=I;I=void 0}var Z=M5f(G,c,I),K;if(((K=I)==null?void 0:K.endTime)!=null)return R&&_.Ck(Error("Ff")),Z;var m;Z!==pEq&&((m=I)==null?void 0:m.active)!==!1&&dU.stack.push(Z);if(!R)return Z;if(Z===pEq)return R(Z);try{var a=R(Z);if(a instanceof Promise)return a.then(function(O){Z.end();return O},function(O){Z.end("SPAN_STATUS_ERROR");
throw O;});
Z.end();return a}catch(O){throw Z.end("SPAN_STATUS_ERROR"),O;}};
V5B=function(){yG.subscribe("handleError",function(G){try{for(var c in XL)try{var I=XL[c];typeof XL[c]==="function"&&(I=I());G.params[c]=typeof XL[c]==="object"?JSON.stringify(I):String(I)}catch(R){_.Ck(R)}}catch(R){_.Ck(R)}})};
zyi=function(){};
EhC=function(G,c){var I=Object.keys(G);G=new _.iW("[Command Handler] "+c,{filteredCommandNames:I,originalCommand:G});_.hg(G)};
JtO=function(G,c){EhC(G,c+" was called but not set")};
W1U=function(G){return function(){return new G}};
yl=function(G){return function(){return _.wH().resolve(G)}};
iJq=function(G,c){var I=_.D(G,_.GP);if(I&&(I=c[I.signal]))return I();G=_.Q(Object.keys(G));for(I=G.next();!I.done;I=G.next())if(I=I.value,c[I]&&(I=c[I]))return I()};
_.gU=function(G,c,I,R){return{browseEndpoint:{browseId:G},commandMetadata:{webCommandMetadata:{url:c,rootVe:I,webPageType:R===void 0?"WEB_PAGE_TYPE_BROWSE":R}}}};
fIA=function(G,c,I){var R=c=c===void 0?0:c;I=I===void 0?0:I;var Z=I-R;return _.YD(G,"PPSV",void 0,void 0,(Z>600?0:Z<60||I<=0||R/I>.9)?0:c)};
_.YD=function(G,c,I,R,Z){var K="/watch?v="+G;G={videoId:G};c&&(G.playlistId=c,K+="&list="+c);R&&(K+="&pp="+R);Z&&(G.startTimeSeconds=Z,K+="&t="+Z+"s");c={watchEndpoint:G,commandMetadata:{webCommandMetadata:{url:K,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};I&&(c.clickTrackingParams=I);R&&(_.D(c,_.fR).playerParams=R);return c};
Btf=function(G){return{browseEndpoint:{browseId:"VL"+G},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+G,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
rtr=function(G){if(G){var c;if(G){var I=(c=_.D(G.commandMetadata,_.Pd))==null?void 0:c.url;c=!(!I||I==="/service_ajax")}else c=!1;if(c)return G;var R;if(G=(R=_.D(G,_.RP))==null?void 0:R.commands)for(R=_.Q(G),G=R.next();!G.done;G=R.next())if(G=rtr(G.value))return G}};
_.Gv=function(G){return{runs:[{text:G}]}};
jhC=function(G,c){return G&&c?{runs:[{text:G,navigationEndpoint:c}]}:void 0};
cY=function(G){return G?_.Gv(G):void 0};
_.I6=function(G){return G?{simpleText:G}:void 0};
_.R6=function(G){var c=G.type;G=G.payload;c={type:c};G!==void 0&&(c.payload=G);return c};
xlC=function(G,c,I){for(var R=Object.assign({},G),Z=_.Q(Object.keys(c)),K=Z.next();!K.done;K=Z.next()){K=K.value;var m=G[K],a=c[K];if(a===void 0)delete R[K];else if(m===void 0)R[K]=a;else if(Array.isArray(a)&&Array.isArray(m))R[K]=I?[].concat(_.jn(m),_.jn(a)):a;else if(!Array.isArray(a)&&_.db(a)&&!Array.isArray(m)&&_.db(m))R[K]=xlC(m,a,I);else if(typeof a===typeof m)R[K]=a;else return c=new _.iW("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:K,originalValue:m,updateValue:a}),
_.hg(c),G}return R};
dlr=function(G){if(!G.length)return"";try{if(t5f)return t5f.decode(G);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(G)}catch(m){}for(var c=0,I=[],R=G.length;c<R;){for(var Z=0;Z<1024&&c<R;){var K=G[c++];if(K<128)hyU[Z++]=K;else{if(K<224)K=(K&31)<<6|G[c++]&63;else if(K<240)K=(K&15)<<12|(G[c++]&63)<<6|G[c++]&63;else{if(Z+1===1024){--c;break}K=(K&7)<<18|(G[c++]&63)<<12|(G[c++]&63)<<6|G[c++]&63;K-=65536;hyU[Z++]=55296|K>>10;K=56320|K&1023}hyU[Z++]=K}}K=String.fromCharCode.apply(String,
hyU);Z<1024&&(K=K.substring(0,Z));I.push(K)}return I.join("")};
HJr=function(G,c){var I;if((I=CvT)==null?0:I.encodeInto)return c=CvT.encodeInto(G,c),c.read<G.length?G.length*4:c.written;for(var R=I=0;R<G.length;R++){var Z=G.charCodeAt(R);Z<128?c[I++]=Z:(Z<2048?c[I++]=Z>>6|192:((Z&64512)===55296&&R+1<G.length&&(G.charCodeAt(R+1)&64512)===56320?(Z=65536+((Z&1023)<<10)+(G.charCodeAt(++R)&1023),c[I++]=Z>>18|240,c[I++]=Z>>12&63|128):c[I++]=Z>>12|224,c[I++]=Z>>6&63|128),c[I++]=Z&63|128)}return I};
XE8=function(G,c,I){if(c&&I&&I.buffer===c.exports.memory.buffer){var R=c.realloc(I.byteOffset,G);if(R)return new Uint8Array(c.exports.memory.buffer,R,G)}G=c?new Uint8Array(c.exports.memory.buffer,c.malloc(G),G):new Uint8Array(G);I&&G.set(I);return G};
_.Kp=function(G){G=new ytB(new ghr([_.Yp(decodeURIComponent(G))]));if(YPC(G,2)){var c=ZY(G);var I=G.pos;var R=G.arrayView;I=I===void 0?0:I;var Z=c===void 0?-1:c;I=I===void 0?0:I;Z=Z===void 0?-1:Z;if(R.totalLength&&Z){Z<0&&(Z=R.totalLength-I);R.focus(I);if(!(I-R.arrayPos+Z<=R.arrays[R.arrayIdx].length)){var K=R.arrayIdx,m=R.arrayPos;R.focus(I+Z-1);m=new Uint8Array(R.arrayPos+R.arrays[R.arrayIdx].length-m);for(var a=0,O=K;O<=R.arrayIdx;O++)m.set(R.arrays[O],a),a+=R.arrays[O].length;R.arrays.splice(K,
R.arrayIdx-K+1,m);R.arrayIdx=0;R.arrayPos=0;R.focus(I)}K=R.arrays[R.arrayIdx];R=new DataView(K.buffer,K.byteOffset+I-R.arrayPos,Z)}else R=new DataView(new ArrayBuffer(0));R=new Uint8Array(R.buffer,R.byteOffset,R.byteLength);G.pos+=c;c=R}else c=void 0;c=c?dlr(c):void 0;G=YPC(G,4)?ZY(G):void 0;R=GIq[G];if(typeof R==="undefined")throw G=new _.iW("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:G}),_.hg(G),G;return{entityTypeFieldNumber:G,entityType:R,entityId:c}};
_.mx=function(G,c,I){I=I===void 0?0:I;var R=new chU;if(CvT)G=CvT.encode(G);else{var Z=new Uint8Array(Math.ceil(G.length*1.2)),K=HJr(G,Z);Z.length<K&&(Z=new Uint8Array(K),K=HJr(G,Z));Z.length>K&&(Z=Z.subarray(0,K));G=Z}G!==void 0&&(PY(R,18),Z=G.length,PY(R,Z),Q4(R,Z),R.buf.set(G,R.pos),R.pos+=Z);G=IG0[c];if(typeof G==="undefined")throw I=new _.iW("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:c}),_.hg(I),I;G!==void 0&&(PY(R,32),PY(R,G));PY(R,40);PY(R,1);c=new Uint8Array(R.buf.buffer,
R.buf.byteOffset,R.pos);return encodeURIComponent(_.zr(c,I))};
RFC=function(G){G=G.key||G.id;if(!G)throw Error("Hf");return G};
KCi=function(G,c){G=G===void 0?{}:G;return Z7r(G,c)};
P1T=function(G,c,I,R){if(R===void 0)return R=Object.assign({},G[c]||{}),I=(delete R[I],R),R={},Object.assign({},G,(R[c]=I,R));var Z={},K={};return Object.assign({},G,(K[c]=Object.assign({},G[c],(Z[I]=R,Z)),K))};
QMr=function(G,c,I,R,Z){var K=G[c];if(K==null||!K[I])return G;R=xlC(K[I],R,Z==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Z={};K={};return Object.assign({},G,(K[c]=Object.assign({},G[c],(Z[I]=R,Z)),K))};
_.a6=function(G,c,I){return G[c]?G[c][I]||null:null};
aGi=function(){if(m4r)return m4r();var G={};m4r=wJ("PersistentEntityStoreDb",{objectStores:(G.EntityStore={addedAtVersion:1},G.EntityAssociationStore={addedAtVersion:2},G),shared:!1,upgrade:function(c,I){I(1)&&c_(Ga(c,"EntityStore",{keyPath:"key"}),"entityType","entityType");I(2)&&(c=Ga(c,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),c_(c,"byParentEntityKey","parentEntityKey"),c_(c,"byChildEntityKey","childEntityKey"))},
version:3});return m4r()};
TgU=function(G){return _.m_(aGi(),G)};
Tv=function(G){return window.Int32Array?new Int32Array(G):Array(G)};
eFr=function(G){return _.m_(O7i(),G)};
Ng0=function(G){return new O4("WRONG_DATA_TYPE",{encoderVersion:G})};
lG0=function(G){return G instanceof Error?new O4("UNKNOWN_ENCODE_ERROR",{originalMessage:G.message}):new O4("UNKNOWN_ENCODE_ERROR")};
qOf=function(G){return G instanceof Error?new O4("UNKNOWN_DECODE_ERROR",{originalMessage:G.message}):new O4("UNKNOWN_DECODE_ERROR")};
wkA=function(G,c){G=G instanceof O4?G:c(G);_.hg(G);throw G;};
FCf=function(G){G=(new TextEncoder).encode(G).subarray(0,16);var c=new Uint8Array(16);c.set(G);return c};
vLg=function(G){var c=nLU[G];if(c)return c;_.Ck(new _.iW("Entity model not found.",{entityType:G}))};
_.eC=function(){D4U||(D4U=oLq());return D4U};
oLq=function(){var G,c,I;return _.T(function(R){if(R.nextAddress==1)return _.s9(R,2),R.yield(_.qt(),4);if(R.nextAddress!=2){G=R.yieldResult;if(!G||!_.WK()||typeof _.Rq.BroadcastChannel==="undefined")return R.return();c=new U4T;return R.return(new N9(G,c))}I=_.M3(R);I instanceof Error&&_.hg(I);return R.return()})};
_.ln=function(G,c){var I;return _.T(function(R){if(R.nextAddress==1){I=G.mutations;if(!I||I.length<=0)return R.return();c&&c.dispatch(_.R6({type:"ENTITY_LOADED",payload:I}));return R.yield(uiO(I),2)}I.length=0;_.Vp(R)})};
uiO=function(G){var c;return _.T(function(I){return I.nextAddress==1?I.yield(_.eC(),2):(c=I.yieldResult)?I.yield(_.q9(c,"readwrite",function(R){for(var Z={},K=_.Q(G),m=K.next(),a={};!m.done;a={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},m=K.next())a.mutation$jscomp$8=m.value,a.mutation$jscomp$8.entityKey&&b7f(a.mutation$jscomp$8)&&(a.mutationEntityType$jscomp$3=(0,_.rx.getAnyKey)(a.mutation$jscomp$8.payload),m=void 0,a.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(m=function(O){return function(){return _.kIA(R,
O.mutation$jscomp$8.payload[O.mutationEntityType$jscomp$3],O.mutationEntityType$jscomp$3)}}(a)),a.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(m=function(O){return function(){return sMp(R,O.mutation$jscomp$8.entityKey)}}(a)),a.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(m=function(O){return function(){return LC0(R,O.mutation$jscomp$8.entityKey,O.mutation$jscomp$8.payload[O.mutationEntityType$jscomp$3],O.mutationEntityType$jscomp$3)}}(a)),m&&(Z[a.mutation$jscomp$8.entityKey]=
Z[a.mutation$jscomp$8.entityKey]?Z[a.mutation$jscomp$8.entityKey].then(m):m()));
return cl.all(Object.values(Z))}),0):I.return()})};
b7f=function(G){var c;G=(c=G.options)==null?void 0:c.persistenceOption;return G==="ENTITY_PERSISTENCE_OPTION_PERSIST"||G==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
SOp=function(G,c){var I,R;_.T(function(Z){if(Z.nextAddress==1)return Z.yield(_.eC(),2);if(Z.nextAddress!=3)return(I=Z.yieldResult)?Z.yield(_.q9(I,"readonly",function(K){var m={},a=Object.keys(c).map(function(O){var N=c[O]?[].concat(_.jn(c[O])):[];return AhO(K,O,N,m)});
return cl.all(a).then(function(){return m})}),3):Z.return();
R=Z.yieldResult;Object.keys(R).length>0&&G.dispatch($4f(R));_.Vp(Z)})};
AhO=function(G,c,I,R){return Ff(G,c,I).then(function(Z){R[c]=pkB(I,Z)})};
pkB=function(G,c){if(c.length!==G.length)throw Error("Kf");return c.reduce(function(I,R,Z){I[G[Z]]=R;return I},{})};
zFU=function(G){var c=G.filter(function(Z){var K;return(Z==null?void 0:(K=Z.transferEntity)==null?void 0:K.transferState)==="TRANSFER_STATE_COMPLETE"}).length,I=G.filter(function(Z){var K;
return(Z==null?void 0:(K=Z.transferEntity)==null?void 0:K.transferState)==="TRANSFER_STATE_FAILED"}).length,R=G.filter(function(Z){var K;
return(Z==null?void 0:(K=Z.transferEntity)==null?void 0:K.transferState)&&Msq.includes(Z.transferEntity.transferState)});
if(!(c||R!=null&&R.length))return 0;c=_.Vsq(R)+c;G=G.length-I;return G===0?0:Math.round(c*100/G)/100};
_.Vsq=function(G){var c=[];c=c.concat.apply(c,_.jn(G.filter(function(K){return K.streamEntity}).map(function(K){var m=Object.assign({},K.streamEntity),a,O=(a=K.transferEntity)==null?void 0:a.transferState;
m.streamsProgress=m.streamsProgress||[];m.streamsProgress=m.streamsProgress.map(function(N){var q=Object.assign({},N);q.numBytesDownloaded=O==="TRANSFER_STATE_COMPLETE"?N.numTotalBytes:N.numBytesDownloaded;return q});
return m}).map(function(K){return K.streamsProgress})));
var I=G=0;c=_.Q(c);for(var R=c.next();!R.done;R=c.next()){var Z=R.value;R=Number(Z.numBytesDownloaded);Z=Number(Z.numTotalBytes);I+=isNaN(R)?0:R;G+=isNaN(Z)?0:Z}return G===0?0:Math.round(I*100/G)/100};
ELB=function(G){if(!G||!G.expirationTimestamp||!G.action)return!1;var c=(0,_.Fa)()/1E3;return Number(G.expirationTimestamp)>=c};
np=function(G){return G&&G.expirationTimestamp&&G.action?ELB(G)&&G.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.vY=function(G){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(G||"TRANSFER_STATE_UNKNOWN")};
Jhb=function(G){var c=new chU;if(G!==void 0){var I=Math.ceil(Math.log2(G.length*4+2)/7);I=I===void 0?2:I;PY(c,10);c.submessagePosStack.push(c.pos);c.submessagePosStack.push(I);c.pos+=I;Q4(c,G.length*1.2);I=HJr(G,c.buf.subarray(c.pos));c.pos+I>c.buf.length&&(Q4(c,I),I=HJr(G,c.buf.subarray(c.pos)));c.pos+=I;G=c.submessagePosStack.pop();I=c.submessagePosStack.pop();for(var R=c.pos-I-G;G--;){var Z=G?128:0;c.view.setUint8(I++,R&127|Z);R>>=7}}c=new Uint8Array(c.buf.buffer,c.buf.byteOffset,c.pos);return(new TextDecoder("utf-8")).decode(c)};
_.DY=function(G){var c=0;G=_.Q(G);for(var I=G.next(),R={};!I.done;R={transferState$jscomp$3:void 0},I=G.next()){var Z=I.value,K=void 0;I=(K=Z.streamEntity)!=null?K:{};K=void 0;R.transferState$jscomp$3=(K=Z.transferEntity)==null?void 0:K.transferState;K=Z=void 0;((Z=I)==null?0:(K=Z.streamsProgress)==null?0:K.length)&&I.streamsProgress.forEach(function(m){return function(a){a=Number(m.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?a.numTotalBytes:a.numBytesDownloaded);isFinite(a)&&(c+=a)}}(R))}return c};
WCi=function(G){return G.some(function(c){var I;if(!(c==null?0:(I=c.transferEntity)==null?0:I.transferState)){var R;return!(c==null?0:(R=c.policyEntity)==null?0:R.action)||c.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Msq.includes(c.transferEntity.transferState)})};
i7q=function(G,c){if(!c)return!1;if(_.v("of_pb_en_po_ks"))return!0;var I;G=(I=_.a6(G,"offlineVideoPolicy",_.mx(c,"offlineVideoPolicy")))!=null?I:void 0;return!!G&&np(G)};
_.Bgb=function(G){var c=["TRANSFER_STATE_COMPLETE"];c=c===void 0?fGg:c;return G.filter(function(I){var R,Z;return c.includes((Z=(R=I.transferEntity)==null?void 0:R.transferState)!=null?Z:"TRANSFER_STATE_UNKNOWN")})};
rhC=function(G,c){if(c){var I,R=(I=_.a6(G,"playbackData",_.mx(c,"playbackData")))!=null?I:null,Z;I=(Z=_.a6(G,"transfer",_.mx(c,"transfer")))!=null?Z:null;var K;Z=(K=_.a6(G,"offlineVideoStreams",_.mx(c,"offlineVideoStreams")))!=null?K:null;var m;G=(m=_.a6(G,"offlineVideoPolicy",_.mx(c,"offlineVideoPolicy")))!=null?m:null;if(R||I||Z||G)return{playbackDataEntity:R,transferEntity:I,streamEntity:Z,policyEntity:G}}};
_.o6=function(G){var c=G.playbackData;if(!c)return[];var I=[];c=_.Q(Object.keys(c));for(var R=c.next();!R.done;R=c.next()){var Z=R.value;if(!jMB(G,_.Kp(Z).entityId)&&(R=rhC(G,_.Kp(Z).entityId))){var K=void 0,m=void 0;Z=(m=Number((K=_.a6(G,"playbackData",Z))==null?void 0:K.streamDownloadTimestampSeconds))!=null?m:(0,_.Fa)();I.push({entity:R,streamDownloadTimestamp:Z})}}return I.sort(function(a,O){var N=a.streamDownloadTimestamp,q=O.streamDownloadTimestamp;return q===N?a.entity.streamEntity&&!O.entity.streamEntity?
1:-1:q-N}).map(function(a){return a.entity})};
x4O=function(G){return _.Bgb(_.o6(G))};
_.tsC=function(G){return _.o6(G).filter(function(c){var I;if(((I=c.policyEntity)==null?0:I.action)&&c.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var R;if((R=c.transferEntity)==null?0:R.transferState){var Z;return Msq.includes((Z=c.transferEntity)==null?void 0:Z.transferState)}return!0})};
jMB=function(G,c){var I;return((I=_.a6(G,"downloadStatusEntity",_.mx(c,"downloadStatusEntity")))==null?void 0:I.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
hFO=function(G){var c;if(G==null?0:(c=G.playbackDataEntity)==null?0:c.key)return _.Kp(G.playbackDataEntity.key).entityId;var I;if(G==null?0:(I=G.transferEntity)==null?0:I.key)return _.Kp(G.transferEntity.key).entityId;var R;if(G==null?0:(R=G.streamEntity)==null?0:R.key)return _.Kp(G.streamEntity.key).entityId;var Z;if(G==null?0:(Z=G.policyEntity)==null?0:Z.key)return _.Kp(G.policyEntity.key).entityId};
C1r=function(G){var c=new Set,I;G=(I=G.mainDownloadsListEntity)==null?void 0:I[d4B];var R;if(!(G==null?0:(R=G.downloads)==null?0:R.length))return c;var Z;G==null||(Z=G.downloads)==null||Z.forEach(function(K){(K==null?0:K.videoItem)&&c.add(K.videoItem)});
return c};
U4=function(G,c){if(c){var I=_.a6(G,"mainVideoEntity",_.mx(c,"mainVideoEntity")),R=_.a6(G,"downloadStatusEntity",_.mx(c,"downloadStatusEntity")),Z=_.a6(G,"ytMainChannelEntity",_.mx(c,"ytMainChannelEntity")),K={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};G=rhC(G,c);R=(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.v("woffle_render_failed_download_state_ks")&&(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_FAILED";!G&&R&&(G=K);if(G&&I&&
Z)return Object.assign({},{videoEntity:I,channelEntity:Z},G)}};
Xk8=function(G,c){return H7O(G,c)==="TRANSFER_STATE_COMPLETE"&&i7q(G,c)};
yhU=function(G,c){if(!c)return!1;var I;G=(I=_.a6(G,"playbackData",_.mx(c,"playbackData")))!=null?I:void 0;return!!G&&!!G.playerResponseJson};
H7O=function(G,c){if(!c)return"TRANSFER_STATE_UNKNOWN";var I=_.a6(G,"transfer",_.mx(c,"transfer"));if(I){var R;return(R=I.transferState)!=null?R:"TRANSFER_STATE_UNKNOWN"}I=_.a6(G,"offlineOrchestrationActionWrapperEntity",_.mx(c,"offlineOrchestrationActionWrapperEntity"));G=_.a6(G,"mainVideoEntity",_.mx(c,"mainVideoEntity"));return I||G?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
gLr=function(G,c){if(!c)return"TRANSFER_STATE_UNKNOWN";if(G=_.a6(G,"transfer",_.mx(c,"transfer"))){var I;return(I=G.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
YOT=function(G,c){return c&&(G=_.a6(G,"videoPlaybackPositionEntity",_.mx(c,"videoPlaybackPositionEntity")),G==null?0:G.lastPlaybackPositionSeconds)?Number(G.lastPlaybackPositionSeconds):0};
cxC=function(G,c){return GbU(G).some(function(I){var R;return(I==null?void 0:(R=I.mainPlaylistEntity)==null?void 0:R.playlistId)===c})};
R$q=function(G,c,I){var R=Isb(G,c);if(!R.length)return[];c=[];R=_.Q(R);for(var Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var K=U4(G,Z);I&&H7O(G,Z)!=="TRANSFER_STATE_COMPLETE"||K&&c.push(K)}return c};
Isb=function(G,c){if(!c)return[];var I=_.mx(c,"mainPlaylistEntity"),R;c=(R=G.mainPlaylistEntity)==null?void 0:R[I];R=[];if(c==null||!c.videos)return R;c=_.Q(c.videos);for(I=c.next();!I.done;I=c.next()){I=I.value;var Z=void 0,K=void 0,m=void 0,a=(Z=G)==null?void 0:(K=Z.mainPlaylistVideoEntity)==null?void 0:(m=K[I])==null?void 0:m.video;a&&(I=_.Kp(a).entityId)&&R.push(I)}return R};
ZxO=function(G,c){if(c){var I=_.a6(G,"mainPlaylistEntity",_.mx(c,"mainPlaylistEntity")),R=_.a6(G,"mainPlaylistDownloadStateEntity",_.mx(c,"mainPlaylistDownloadStateEntity"));G=_.a6(G,"ytMainChannelEntity",_.mx(c,"ytMainChannelEntity"));if(R&&I)return Object.assign({},{mainPlaylistEntity:I,mainPlaylistDownloadStateEntity:R},!!G&&{channelEntity:G})}};
GbU=function(G){return K$O(G).sort(function(c,I){return I.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return c.downloadedPlaylistEntities})};
K$O=function(G){var c=G.mainPlaylistDownloadStateEntity,I=[];if(!c)return I;for(var R=_.Q(Object.keys(c)),Z=R.next();!Z.done;Z=R.next()){var K=Z.value;Z=ZxO(G,_.Kp(K).entityId);var m=void 0;K=Number((m=c[K])==null?void 0:m.addedTimestampMillis);m=isNaN(K)?(0,_.Fa)():K;Z!==void 0&&I.push({downloadedPlaylistEntities:Z,addedTimestampMillis:m})}return I};
Pl8=function(G){var c,I=(c=G.mainPlaylistVideoEntity)!=null?c:{};return new Set(GbU(G).reduce(function(R,Z){R=R===void 0?[]:R;var K,m;Z==null||(K=Z.mainPlaylistEntity)==null||(m=K.videos)==null||m.forEach(function(a){var O;(a=(O=I[a])==null?void 0:O.video)&&R.push(a)});
return R},[]))};
QTB=function(G){return"downloadedMusicPlaylistEntities"in G};
mii=function(G){return"mainPlaylistEntity"in G&&"mainPlaylistDownloadStateEntity"in G};
asr=function(G){return"videoEntity"in G&&"channelEntity"in G};
Tmb=function(G){var c=G.musicPlaylistDownloadMetadataEntity,I=[];if(!c)return I;for(var R=_.Q(Object.keys(c)),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;a:{var K=G,m=_.Kp(Z).entityId;if(m){var a=_.a6(K,"musicPlaylist",_.mx(m,"musicPlaylist"));K=_.a6(K,"musicPlaylistDownloadMetadataEntity",_.mx(m,"musicPlaylistDownloadMetadataEntity"));if(a&&K){a={musicPlaylistEntity:a,musicPlaylistDownloadStateEntity:K};break a}}a=void 0}K=void 0;Z=Number((K=c[Z])==null?void 0:K.addedTimestampMillis);Z=isNaN(Z)?(0,_.Fa)():
Z;a!==void 0&&I.push({downloadedMusicPlaylistEntities:a,addedTimestampMillis:Z})}return I};
Ox8=function(G){var c=new Set;G=_.Q(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,"musicPlaylistEntity"in I&&"musicPlaylistDownloadStateEntity"in I){I=_.Q(I.musicPlaylistEntity.tracks);for(var R=I.next();!R.done;R=I.next())c.add(R.value)}return c};
e$T=function(G,c){if(c){var I=_.a6(G,"musicTrack",_.mx(c,"musicTrack")),R=_.a6(G,"musicArtist",_.mx(c,"musicArtist"))||{};if((G=rhC(G,c))&&I&&R)return Object.assign({},{musicTrackEntity:I,musicArtistEntity:R},G)}};
NmA=function(G){var c=G.musicTrackDownloadMetadataEntity,I=[];if(!c)return[];c=_.Q(Object.keys(c));for(var R=c.next();!R.done;R=c.next()){var Z=R.value;R=e$T(G,_.Kp(Z).entityId);var K=void 0;Z=Number((K=_.a6(G,"musicTrackDownloadMetadataEntity",Z))==null?void 0:K.addedTimestampMillis);K=isNaN(Z)?(0,_.Fa)():Z;R!==void 0&&I.push({downloadedMusicEntities:R,addedTimestampMillis:K})}return I};
wRC=function(G,c){if(!c)return[];if(Object.values(lsA).includes(c))return qr0(G,c);c=_.mx(c,"musicPlaylist");var I;G=(I=G.musicPlaylist)==null?void 0:I[c];I=[];if(G==null||!G.tracks)return I;G=_.Q(G.tracks);for(c=G.next();!c.done;c=G.next())(c=_.Kp(c.value).entityId)&&I.push(c);return I};
qr0=function(G,c){var I=new Set,R=Tmb(G).map(function(K){return K.downloadedMusicPlaylistEntities});
R=Ox8(R);R=_.Q(R);for(var Z=R.next();!Z.done;Z=R.next())(Z=_.Kp(Z.value).entityId)&&I.add(Z);return F$T(G).downloadedMusicEntities.filter(function(K){var m;if((m=K.musicTrackEntity)!=null&&m.videoId){K=K.musicTrackEntity;if(m=c==="PPOM"?!0:!I.has(K.videoId))b:switch(K=K.musicVideoType,c){case "PPSE":m=K==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:m=K!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}K=m}else K=!1;return K}).map(function(K){var m;
return(m=K.musicTrackEntity)==null?void 0:m.videoId})};
F$T=function(G){var c=NmA(G).sort(function(I,R){return R.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:QTB(I)?I.downloadedMusicPlaylistEntities:{}});
G=Tmb(G).sort(function(I,R){return R.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:QTB(I)?I.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:c,downloadedMusicPlaylistEntities:G}};
vrg=function(G,c){c=_.H1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?wRC(G,c):Isb(G,c);if(!c.length)return"TRANSFER_STATE_UNKNOWN";c=c.map(function(I){return gLr(G,I)});
return nrq(c)};
nrq=function(G){var c=new Set(G);if(c.has("TRANSFER_STATE_FAILED")&&c.size===1)return"TRANSFER_STATE_FAILED";c.delete("TRANSFER_STATE_FAILED");if(c.has("TRANSFER_STATE_UNKNOWN")&&c.size===1)return"TRANSFER_STATE_PRE_TRANSFER";c.delete("TRANSFER_STATE_UNKNOWN");if(c.has("TRANSFER_STATE_PRE_TRANSFER")&&c.size===1||c.size===0)return"TRANSFER_STATE_PRE_TRANSFER";G=c.has("TRANSFER_STATE_TRANSFERRING");c=c.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return G||c?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
un=function(G){var c=G.mainVideoDownloadStateEntity,I=[];if(!c)return[];c=_.Q(Object.keys(c));for(var R=c.next();!R.done;R=c.next()){var Z=R.value;if(!jMB(G,_.Kp(Z).entityId)){R=U4(G,_.Kp(Z).entityId);var K=void 0,m=void 0;Z=(m=Number((K=_.a6(G,"mainVideoDownloadStateEntity",Z))==null?void 0:K.addedTimestampMillis))!=null?m:(0,_.Fa)();R!==void 0&&I.push({downloadedVideoEntities:R,addedTimestampMillis:Z})}}return I};
DiT=function(G){return un(G).sort(function(c,I){return I.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities})};
_.Ui0=function(G){var c=Pl8(G),I=_.bn(G),R=C1r(G),Z=un(G).filter(function(m){var a,O;if((m==null?void 0:(a=m.downloadedVideoEntities)==null?void 0:(O=a.transferEntity)==null?void 0:O.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var N,q;m=m==null?void 0:(N=m.downloadedVideoEntities)==null?void 0:(q=N.videoEntity)==null?void 0:q.key;return _.v("kevlar_use_library_entity")?m&&(R.has(m)||I[m]):m&&!c.has(m)}),K=K$O(G).filter(function(m){return vrg(G,m.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.jn(Z),_.jn(K)).sort(function(m,a){return a.addedTimestampMillis-m.addedTimestampMillis}).map(function(m){return orb(m)})};
uX8=function(G,c){if(c&&i7q(G,c)){var I,R,Z=(R=(I=_.a6(G,"playbackData",_.mx(c,"playbackData")))!=null?I:void 0)==null?void 0:R.playerResponseJson;if(Z){try{var K=JSON.parse(Z);var m=_.a6(G,"transfer",_.mx(c,"transfer")),a=YOT(G,c);a&&(K=Object.assign({},K,{playerConfig:Object.assign({},K.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+a*1E3}}})}));K.cotn=m==null?void 0:m.cotn}catch(O){}return K}}};
_.kbA=function(G){var c,I,R;G=(R=(I=((c=G.downloadsPageViewConfigurationEntity)!=null?c:{})[_.kV])==null?void 0:I.smartDownloadsOptInBannerVisibility)!=null?R:{};var Z;return(Z=_.D(G,bxg))!=null?Z:{}};
_.bn=function(G){var c,I,R;G=(R=(I=((c=G.mainDownloadsListEntity)!=null?c:{})[_.sT8])==null?void 0:I.downloads)!=null?R:[];c={};I=_.Q(G);for(R=I.next();!R.done;R=I.next())G=void 0,c[(G=R.value.videoItem)!=null?G:""]=!0;return c};
L$p=function(G){var c=_.bn(G);if(Object.keys(c).length===0)return!1;var I=G.mainVideoEntity;if(!I)return!0;I=_.Q(Object.keys(I));for(var R=I.next();!R.done;R=I.next()){R=R.value;var Z=_.Kp(R).entityId;if(c[R]&&!jMB(G,Z))return!1}return!0};
_.s4=function(G){var c=_.bn(G);return un(G).sort(function(I,R){return I.addedTimestampMillis-R.addedTimestampMillis}).map(function(I){return I.downloadedVideoEntities}).filter(function(I){var R;
return(I=I==null?void 0:(R=I.videoEntity)==null?void 0:R.key)&&!!c[I]})};
_.$iT=function(G){var c,I,R;G=(R=(I=((c=G.downloadsPageViewConfigurationEntity)!=null?c:{})[_.kV])==null?void 0:I.downloadsUpsellBannerVisibility)!=null?R:{};var Z;return(Z=_.D(G,Axr))!=null?Z:{}};
orb=function(G){return"downloadedVideoEntities"in G?G.downloadedVideoEntities:"downloadedPlaylistEntities"in G?G.downloadedPlaylistEntities:{}};
Srg=function(G){var c=_.bn(G),I=Pl8(G),R=un(G).filter(function(Z){var K,m;return(Z=Z==null?void 0:(K=Z.downloadedVideoEntities)==null?void 0:(m=K.videoEntity)==null?void 0:m.key)&&!c[Z]&&!I.has(Z)});
G=K$O(G);return[].concat(_.jn(R),_.jn(G)).sort(function(Z,K){return K.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return orb(Z)})};
_.Lp=function(G){if(!_.v("kevlar_use_library_entity"))return Srg(G);var c=un(G).filter(function(R){var Z,K;if(Z=R=R==null?void 0:(Z=R.downloadedVideoEntities)==null?void 0:(K=Z.videoEntity)==null?void 0:K.key){var m,a,O;Z=((a=(m=G.mainDownloadsListEntity)==null?void 0:m[d4B])==null?0:(O=a.downloads)==null?0:O.length)?C1r(G).has(R):!1}return Z}),I=K$O(G);
return[].concat(_.jn(c),_.jn(I)).sort(function(R,Z){return Z.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return orb(R)})};
pRA=function(G){var c=_.bn(G),I=Pl8(G);return DiT(G).filter(function(R){var Z;return(R=R==null?void 0:(Z=R.videoEntity)==null?void 0:Z.key)&&!c[R]&&!I.has(R)})};
MP0=function(G){if(!_.v("kevlar_use_library_entity"))return pRA(G);var c=_.bn(G),I=C1r(G);return DiT(G).filter(function(R){var Z;return(R=R==null?void 0:(Z=R.videoEntity)==null?void 0:Z.key)&&!c[R]&&I.has(R)})};
VPr=function(G,c){c=_.mx(c,"settingEntity");var I,R,Z;return!!((Z=(R=((I=G.settingEntity)!=null?I:{})[c])==null?void 0:R.settingOptionValue)!=null?Z:{}).boolValue};
_.AX=function(G){var c=_.s4(G);if(WCi(c))return 0;var I=[];c=_.Q(c);for(var R=c.next();!R.done;R=c.next()){R=R.value;var Z=void 0,K=void 0;if((Z=R)==null?0:(K=Z.videoEntity)==null?0:K.key)Z=_.Kp(R.videoEntity.key).entityId,R=G,Z=_.mx(Z,"mainVideoDownloadStateEntity"),R=_.a6(R,"mainVideoDownloadStateEntity",Z),(R=Number(R==null?void 0:R.addedTimestampMillis))&&I.push(R)}return Math.max.apply(Math,_.jn(I))};
_.$V=function(G){return G.ui.richGridMiniMode};
_.SC=function(G){return G.ui.richGridItemsPerRow};
_.z$g=function(G){return G.ui.richGridSlimItemsPerRow};
_.ErU=function(G){return G.ui.guideIsExpanded};
_.pp=function(G){return G.ui.miniplayerIsActive};
Jx8=function(G){return G.ui.singleOptionSurveyIsActive};
_.M9=function(G){var c;return((c=G.ui)==null?void 0:c.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.W$O=function(G){return _.M9(G)==="WEB_PAGE_TYPE_WATCH"};
_.ixb=function(G){return _.M9(G)==="WEB_PAGE_TYPE_SHORTS"};
_.fs0=function(G){return G.ui.inlinePreviewIsActive};
_.BmO=function(G){return G.ui.inlinePreviewIsEnabled};
_.rxp=function(G){return G.ui.miniplayerPlaybackState};
_.V4=function(G){return G.ui.isOnline};
_.jTg=function(G){return G.ui.frostedGlassMode};
_.E4=function(G,c){return H7O(G.entities,c)};
_.JX=function(G,c){return vrg(G.entities,c)};
xiC=function(G,c){var I;if(c){var R;G=(R=_.a6(G.entities,"offlineVideoPolicy",_.mx(c,"offlineVideoPolicy")))==null?void 0:R.action}else G=void 0;return(I=G)!=null?I:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
tPr=function(G,c){var I;c?(G=_.a6(G.entities,"offlineVideoPolicy",_.mx(c,"offlineVideoPolicy")),G=Number(G==null?void 0:G.expirationTimestamp)):G=void 0;return(I=G)!=null?I:0};
_.h$g=function(G){return _.o6(G.entities).length};
dir=function(G,c){return U4(G.entities,c)};
Cli=function(G,c){return ZxO(G.entities,c)};
WY=function(G,c){return(G=U4(G.entities,c))?_.Vsq([G]):0};
_.Hxb=function(G,c){var I=_.H1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(I){var R=G.entities;var Z=wRC(R,c);if(Z.length){var K=[];Z=_.Q(Z);for(var m=Z.next();!m.done;m=Z.next())(m=e$T(R,m.value))&&K.push(m);R=K}else R=[]}else R=R$q(G.entities,c);var a;if(I){var O=G.entities;c?(c=_.mx(c,"musicPlaylist"),O=(a=O.musicPlaylist)==null?void 0:a[c],a=O!=null&&O.tracks?O.tracks.length:0):a=0}else a=G.entities,c?(c=_.mx(c,"mainPlaylistEntity"),a=(O=a.mainPlaylistEntity)==null?void 0:O[c],a=a!=null&&a.videos?
a.videos.length:0):a=0;return R.length!==a?0:R?zFU(R):0};
_.XRg=function(G){return G.download.isLeaderTab};
_.yxB=function(G,c,I){if(!c&&I){var R=G.entities;if(I){var Z=Jhb(I),K,m;c=(m=(K=_.a6(R,"offlineabilityEntity",_.mx(Z,"offlineabilityEntity")))==null?void 0:K.addToOfflineButtonState)!=null?m:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else c="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else K=G.entities,c?(m=Jhb(c),c=(Z=(R=_.a6(K,"offlineabilityEntity",_.mx(m,"offlineabilityEntity")))==null?void 0:R.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):c="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return c};
grq=function(G,c){G=G.entities;if(c){c=Jhb(c);var I,R;c=(R=(I=_.a6(G,"offlineabilityEntity",_.mx(c,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?R:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else c="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return c};
_.Yrb=function(G){var c=G.entities;G=_.V4(G);var I=VPr(c,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.v("kevlar_modern_downloads_page")&&I)var R=!1;else{var Z,K;c=(K=(Z=((R=c.downloadsPageViewConfigurationEntity)!=null?R:{})[_.kV])==null?void 0:Z.smartDownloadsOptInBannerVisibility)!=null?K:{};R=G?!!c.visibleWithConnection:!!c.visibleWithoutConnection}return R};
_.GQ8=function(G){return VPr(G.entities,"SMART_DOWNLOADS_ENABLED")};
_.cGC=function(G){return L$p(G.entities)};
Idp=function(G){return _.s4(G.entities).every(function(c){var I;return(c==null?void 0:(I=c.transferEntity)==null?void 0:I.transferState)&&!Msq.includes(c.transferEntity.transferState)})};
_.R7r=function(G){var c,I,R,Z=(R=(I=((c=G.entities.downloadsPageViewConfigurationEntity)!=null?c:{})[_.kV])==null?void 0:I.downloadsUpsellBannerVisibility)!=null?R:{};return _.V4(G)?!!Z.visibleWithConnection:!!Z.visibleWithoutConnection};
_.Zf0=function(G,c){return jMB(G.entities,c)};
K80=function(G,c){if(c){var I,R;G=(R=(I=_.a6(G.entities,"downloadStatusEntity",_.mx(c,"downloadStatusEntity")))==null?void 0:I.downloadState)!=null?R:"DOWNLOAD_STATE_UNKNOWN"}else G="DOWNLOAD_STATE_UNKNOWN";return G};
fp=function(G,c){return YOT(G.entities,c)};
adi=function(G){G=Pdr(G);var c=G.hours===void 0?0:G.hours,I=G.minutes===void 0?0:G.minutes,R=G.seconds===void 0?0:G.seconds,Z=c>0;G=[];Z&&(c=Qpr(c),G.push(c));c=Z;c=c===void 0?!1:c;I=(["af","be","lt"].includes(BY)||c)&&I<10?mHi().format(I):(new Intl.NumberFormat("en-u-nu-latn")).format(I);G.push(I);I=mHi().format(R);G.push(I);I=":";"da fi id si sr sr-Latn".split(" ").includes(BY)&&(I=".");return G.join(I)};
_.OfA=function(G){G=Pdr(G);var c=G.hours===void 0?0:G.hours,I=G.minutes===void 0?0:G.minutes,R=G.seconds===void 0?0:G.seconds;G=[];if(c>0){var Z=Ty0().format({hours:c});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(BY)||c>9999)Z=Z.replace(c.toString(),Qpr(c)),BY==="km"&&(Z=Z.replace(".",","));G.push(Z)}I>0&&G.push(Ty0().format({minutes:I}));R>0&&G.push(Ty0().format({seconds:R}));c="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");I=BY=="am"?"{0}\u1363 ":BY=="fa"?"{0}\u060c\u200f ":
BY=="my"?"{0} - ":BY=="ne"?"{0},":BY=="th"?"{0} ":BY=="ur"?"{0}\u060c ":BY=="ar"||BY=="ar-XB"?"{0} \u0648":BY=="ja"||BY=="zh-CN"||BY=="zh-HK"||BY=="zh-TW"?"{0}\u3001":"{0}, ";R=BY=="am"?"\u1363 ":BY=="fa"?"\u060c\u200f ":BY=="my"?" - ":BY=="th"?" ":BY=="ur"?"\u060c ":BY=="ar"||BY=="ar-XB"?" \u0648":BY=="ja"||BY=="zh-CN"||BY=="zh-HK"||BY=="zh-TW"?"\u3001":", ";Z=BY=="am"?" \u12a5\u1293 {0}":BY=="as"?" \u0986\u09f0\u09c1 {0}":BY=="az"?" v\u0259 {0}":BY=="bn"?" \u098f\u09ac\u0982 {0}":BY=="cs"?" a\u00a0{0}":
BY=="de"?" und {0}":BY=="el"?" \u03ba\u03b1\u03b9 {0}":BY=="eu"?" eta {0}":BY=="fa"?"\u060c \u0648 {0}":BY=="fil"?", at {0}":BY=="gu"?" \u0a85\u0aa8\u0ac7 {0}":BY=="hi"?", \u0914\u0930 {0}":BY=="hu"?" \u00e9s {0}":BY=="hy"?" \u0587 {0}":BY=="id"?", dan {0}":BY=="iw"?" \u05d5-{0}":BY=="ja"?"\u3001{0}":BY=="ka"?" \u10d3\u10d0 {0}":BY=="km"?" \u1793\u17b7\u1784 {0}":BY=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":BY=="ko"?" \ubc0f {0}":BY=="ky"?" \u0436\u0430\u043d\u0430 {0}":BY=="lt"?" ir {0}":BY==
"lv"?" un {0}":BY=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":BY=="mr"?" \u0906\u0923\u093f {0}":BY=="ms"?" dan {0}":BY=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":BY=="ne"?" \u0930 {0}":BY=="or"?", \u0b13 {0}":BY=="pa"?" \u0a05\u0a24\u0a47 {0}":BY=="ro"?" \u0219i {0}":BY=="si"?", \u0dc3\u0dc4 {0}":BY=="sk"?" a {0}":BY=="sl"?" in {0}":BY=="sq"?" dhe {0}":BY=="sv"?" och {0}":BY=="sw"?" na {0}":BY=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":BY=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
BY=="th"?" \u0e41\u0e25\u0e30{0}":BY=="tr"?" ve {0}":BY=="ur"?"\u060c \u0627\u0648\u0631 {0}":BY=="uz"?" va {0}":BY=="vi"?" v\u00e0 {0}":BY=="zh-HK"?"\u53ca{0}":BY=="zu"?", ne-{0}":BY=="af"||BY=="nl"?" en {0}":BY=="ar"||BY=="ar-XB"?" \u0648{0}":BY=="be"||BY=="uk"?" \u0456 {0}":BY=="en-GB"||BY=="en-IN"?" and {0}":BY=="en"||BY=="en-XA"?", and {0}":BY=="et"||BY=="fi"?" ja {0}":BY=="fr"||BY=="fr-CA"?" et {0}":BY=="zh-CN"||BY=="zh-TW"?"\u548c{0}":BY=="da"||BY=="is"||BY=="no"?" og {0}":BY=="es"||BY=="es-419"||
BY=="es-US"?" y {0}":BY=="kk"||BY=="lo"||BY=="mn"?", {0}":BY=="bg"||BY=="mk"||BY=="ru"||BY=="sr"?" \u0438 {0}":BY=="gl"||BY=="it"||BY=="pt-BR"||BY=="pt-PT"?" e {0}":" i {0}";var K=BY=="am"?"{0} \u12a5\u1293 {1}":BY=="as"?"{0} \u0986\u09f0\u09c1 {1}":BY=="az"?"{0} v\u0259 {1}":BY=="bn"?"{0} \u098f\u09ac\u0982 {1}":BY=="de"?"{0} und {1}":BY=="el"?"{0} \u03ba\u03b1\u03b9 {1}":BY=="eu"?"{0} eta {1}":BY=="fa"?"{0} \u0648 {1}":BY=="fil"?"{0} at {1}":BY=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":BY=="hi"?"{0} \u0914\u0930 {1}":
BY=="hu"?"{0} \u00e9s {1}":BY=="hy"?"{0} \u0587 {1}":BY=="iw"?"{0} \u05d5-{1}":BY=="ja"?"{0}\u3001{1}":BY=="ka"?"{0} \u10d3\u10d0 {1}":BY=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":BY=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":BY=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":BY=="ko"?"{0} \ubc0f {1}":BY=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":BY=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":BY=="lt"?"{0} ir {1}":BY=="lv"?"{0} un {1}":BY=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":BY=="mn"?"{0}, {1}":BY==
"mr"?"{0} \u0906\u0923\u093f {1}":BY=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":BY=="ne"?"{0} \u0930 {1}":BY=="or"?"{0} \u0b13 {1}":BY=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":BY=="ro"?"{0} \u0219i {1}":BY=="si"?"{0} \u0dc3\u0dc4 {1}":BY=="sl"?"{0} in {1}":BY=="sq"?"{0} dhe {1}":BY=="sv"?"{0} och {1}":BY=="sw"?"{0} na {1}":BY=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":BY=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":BY=="th"?"{0}\u0e41\u0e25\u0e30{1}":BY=="tr"?"{0} ve {1}":BY=="ur"?
"{0} \u0627\u0648\u0631 {1}":BY=="uz"?"{0} va {1}":BY=="vi"?"{0} v\u00e0 {1}":BY=="zh-HK"?"{0}\u53ca{1}":BY=="zu"?"{0} ne-{1}":BY=="af"||BY=="nl"?"{0} en {1}":BY=="ar"||BY=="ar-XB"?"{0} \u0648{1}":BY=="be"||BY=="uk"?"{0} \u0456 {1}":BY=="cs"||BY=="sk"?"{0} a\u00a0{1}":BY=="et"||BY=="fi"?"{0} ja {1}":BY=="fr"||BY=="fr-CA"?"{0} et {1}":BY=="id"||BY=="ms"?"{0} dan {1}":BY=="zh-CN"||BY=="zh-TW"?"{0}\u548c{1}":BY=="da"||BY=="is"||BY=="no"?"{0} og {1}":BY=="es"||BY=="es-419"||BY=="es-US"?"{0} y {1}":BY==
"bg"||BY=="mk"||BY=="ru"||BY=="sr"?"{0} \u0438 {1}":BY=="en"||BY=="en-GB"||BY=="en-IN"||BY=="en-XA"?"{0} and {1}":BY=="gl"||BY=="it"||BY=="pt-BR"||BY=="pt-PT"?"{0} e {1}":"{0} i {1}";BY==="sq"?(Z=Z.replace("dhe","e"),K=K.replace("dhe","e")):BY==="th"?(R=R.replace("{0}"," {0}"),K=K.replace("{0}","{0} "),K=K.replace("{1}"," {1}")):BY==="ne"?R=",":BY==="zh-CN"?R="":c.includes(BY)&&(R=" ");return G.length<2?G.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(BY)?
G.length===2?K.replace("{0}",G[0]).replace("{1}",G[1]):I.replace("{0}",G[0])+G.slice(1,-1).join(R)+Z.replace("{0}",G[G.length-1]):G.join(R)};
Pdr=function(G){var c=G.hours||0,I=G.minutes||0,R=G.seconds||0;c=R+I*60+c*3600+(G.days||0)*86400+(G.weeks||0)*604800+(G.months||0)*2629800+(G.years||0)*31557600;if(c<=0)return{hours:0,minutes:0,seconds:0};G=c;c=Math.floor(G/3600);G%=3600;I=Math.floor(G/60);R=Math.floor(G%60);return{hours:c,minutes:I,seconds:R}};
Qpr=function(G){G=(new Intl.NumberFormat("en-u-nu-latn")).format(G);var c=["fr"],I="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(BY)?G.replace(",","\u00a0"):c.includes(BY)?G.replace(",","\u202f"):I.includes(BY)?G.replace(",","."):G};
mHi=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Ty0=function(){e78||(rL=Nyi,e78=new ld8);return e78};
q78=function(G){try{return(new _.jC(5)).format(G)}catch(c){}};
xV=function(G){return{thumbnailOverlayDownloadingRenderer:{state:G}}};
wQb=function(){var G=_.mJ("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Gv(G),icon:{iconType:"PLAY_ALL"}}}};
F8r=function(G){G=_.tX(G,2);return BY!=="ru"&&BY!=="es_419"&&BY!=="es-419"&&BY!=="es"&&BY!=="es_US"&&BY!=="es-US"&&BY!=="fr"&&BY!=="pl"&&BY!=="it"&&BY!=="nl"&&BY!=="uk"&&BY!=="fr_CA"&&BY!=="fr-CA"||G===""?G:G[0].toLocaleUpperCase()+G.substring(1)};
v4T=function(G){return function(c){var I=G(),R=_.tX(c,I.dateFormat);c=_.tX(c,I.timeFormat);var Z=n4A.DATETIMEFORMATS[I.joinerStyle];Z=Z.replace(/'(?!')/g,"");Z=Z.replace("{0}",c);Z=Z.replace("{1}",R);return I.capitalize(Z)}};
DHA=function(G){return G?typeof G.seconds==="string"&&(G.nanos===void 0||typeof G.nanos==="number"):!1};
o4g=function(G){return new Date(Number(G.seconds)*1E3+(G.nanos||0)*1E-6)};
_.tX=function(G,c){if(typeof G.getTime==="function")G={date:G};else if(DHA(G))G={date:o4g(G)};else if(typeof DHA(G.timestamp)&&typeof G.i18nInternalSecondsEastOfUtc==="number")G={date:o4g(G.timestamp),timeZone:hX(-G.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(G));var I=G;G=I.date;I=I.timeZone;c=UHC(c).format(G,I);BY==="zh-TW"&&(G=I?Number(UHC("H").format(G,I)):G.getHours(),c=G<5?c.replace("\u4e0a\u5348","\u51cc\u6668"):G<8?c.replace("\u4e0a\u5348","\u65e9\u4e0a"):G<12?
c.replace("\u4e0a\u5348","\u4e0a\u5348"):G<13?c.replace("\u4e0b\u5348","\u4e2d\u5348"):G<19?c.replace("\u4e0b\u5348","\u4e0b\u5348"):c.replace("\u4e0b\u5348","\u665a\u4e0a"));return c};
UHC=function(G){if(u5A.has(G))return u5A.get(G);var c=bfT(G);c=kQ0(c);spr!==!0&&(spr=!0);L8p=!0;L8p=!1;c=new dL(c,n4A);u5A.set(G,c);return c};
bfT=function(G){return(new dL(G,n4A)).patternParts_.map(function(c){return c.type===0?"'"+c.text+"'":c.text}).join("")};
kQ0=function(G){return BY==="en"||BY==="es_US"||BY==="es-US"?G:G.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(c,I,R){return"H".repeat(I.length)+R})};
z7r=function(G,c){AGB||(rL=Nyi,AGB=new $HA);var I=AGB;a:if(G=S7O(G),c=S7O(c||new Date),G>c)I=G.getTime()-c.getTime()>6048E5?_.tX(G,1):pQO(G);else{for(var R=0;MNf(G,12*(R+1))<c;)++R;if(R>0)I=I.format(-R,0);else{for(R=0;MNf(G,R+1)<c;)++R;if(R>0)I=I.format(-R,2);else{G=c.getTime()-G.getTime();c=_.Q(VNr);for(R=c.next();!R.done;R=c.next()){R=R.value;var Z=R.unit,K=Math.floor(G/R.unitDuration);if(K>=(R.threshold===void 0?1:R.threshold)){I=I.format(-K,Z);break a}}I=I.format(-0,7)}}}return I};
S7O=function(G){if(typeof G.getTime==="function")return G;if(DHA(G))return o4g(G);throw Error("Mf`"+JSON.stringify(G));};
MNf=function(G,c){for(var I=0,R;;++I)if(R=new Date(G.getFullYear(),G.getMonth()+c,G.getDate()-I,G.getHours(),G.getMinutes(),G.getSeconds()),R.getMonth()===(G.getMonth()+c)%12)return R};
_.Cp=function(G){return{runs:[{text:G}]}};
_.HY=function(G){if(G&&G.simpleText)return G.simpleText;var c="";if(G&&G.runs)for(var I=0;I<G.runs.length;I++)G.runs[I].text&&(c+=G.runs[I].text);return c};
JGT=function(G,c,I,R){return G.videoEntity&&!G.policyEntity&&I!=="DOWNLOAD_STATE_FAILED"?[xV("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:np(G.policyEntity)&&c!=="TRANSFER_STATE_FAILED"&&c!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?c==="TRANSFER_STATE_PAUSED_BY_USER"?[xV("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.vY(c)?[xV("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:G.videoEntity.lengthSeconds?E48(G.videoEntity.lengthSeconds,R):[]:
[xV("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
E48=function(G,c){var I=[{thumbnailOverlayTimeStatusRenderer:{text:_.Gv(adi({seconds:G})),style:"DEFAULT"}}];c&&(G=c<=0||G<=0?0:c>=G?100:Math.ceil(c*100/G),G>0&&I.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:G}}));return I};
W8b=function(G,c,I,R,Z){if(c==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(_.vY(c)||c==="TRANSFER_STATE_PRE_TRANSFER")var K=[xV("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var m,a;if(c==="TRANSFER_STATE_COMPLETE"&&((m=G.mainPlaylistEntity)==null?0:(a=m.videos)==null?0:a.length)){var O;G=(K=G.mainPlaylistEntity)==null?void 0:(O=K.videos)==null?void 0:O.length;K=(K=q78(G))?{thumbnailOverlayBottomPanelRenderer:{text:_.Gv(K),icon:{iconType:"PLAYLISTS"}}}:void 0;K=[wQb(),Object.assign({},
K!=null?K:{})]}else K=[]}a:if(c==="TRANSFER_STATE_PRE_TRANSFER")I=cY(_.mJ("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(c==="TRANSFER_STATE_TRANSFER_IN_QUEUE")I=cY(_.mJ("WAITING_TO_DOWNLOAD"));else if(_.vY(c))I=Math.floor(I*100).toString(),I=cY(_.mJ("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%"));else{if(R&&(_.v("playlist_is_offline_selector_killswitch")&&(Z=_.wH().resolve(_.Kk).isNetworkAvailable()),Z)){I=jhC(_.mJ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
Btf(R));break a}I=void 0}c=c==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.mJ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},K.length?{thumbnailOverlays:K}:{},I?{viewPlaylistText:I}:{viewPlaylistText:_.Cp("")},c.length?{badges:c}:{})};
ifq=function(G,c,I,R,Z,K){if(c==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(R==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var m=JGT(G,c,R);if(G.videoEntity&&!G.policyEntity&&R!=="DOWNLOAD_STATE_FAILED"){var a=_.mJ("WAITING_TO_DOWNLOAD");if(a)return{shortViewCountText:_.Cp(a),publishedTimeText:void 0,thumbnailOverlays:m}}if(!np(G.policyEntity)){K=G.policyEntity&&!ELB(G.policyEntity)?_.mJ("DOWNLOAD_EXPIRED",{},"Download expired"):
_.mJ("TRANSFER_FAILED",{},"Download failed");var O;if((O=G.policyEntity)==null?0:O.shortMessageForDisabledAction)K=G.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:cY(K),publishedTimeText:void 0,thumbnailOverlays:m}}if(c==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Cp(_.mJ("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:m};if(c==="TRANSFER_STATE_FAILED"||c==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Cp(_.mJ("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:m};if(c==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(O=_.mJ("WAITING_TO_DOWNLOAD"),R==="DOWNLOAD_STATE_PAUSED"&&(O=_.mJ("DOWNLOAD_PAUSED",{},"Download paused")),O))return{shortViewCountText:_.Cp(O),publishedTimeText:void 0,thumbnailOverlays:m};if(_.vY(c))return G=Math.floor(I*100).toString(),{shortViewCountText:_.Cp(_.mJ("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%")),publishedTimeText:void 0,thumbnailOverlays:m};c=void 0;G.videoEntity.publishedTimestampMillis&&
(c=new Date,Z&&(c=new Date(Z)),c=cY(z7r(new Date(Number(G.videoEntity.publishedTimestampMillis)),c)));Z=[];_.v("kevlar_woffle_badge_killswitch")||(Z=[{metadataBadgeRenderer:{label:_.mJ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var N;G=cY((N=G.videoEntity.localizedStrings)==null?void 0:N.viewCount);return Object.assign({},K?{shortViewCountText:void 0}:{shortViewCountText:G},K?{}:{publishedTimeText:c},{badges:Z,thumbnailOverlays:m})};
ByU=function(G,c){G=G===void 0?fd8:G;switch(c.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:c.payload.playlistId,inviteLinkURL:c.payload.inviteLinkUrl};default:return G}};
jpU=function(G,c){G=G===void 0?rGp:G;switch(c.type){case "SET_CURRENT_FORM_ID":return c=c.payload.formId,G.currentFormId===c?G:{currentFormId:c,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var I=c.payload;c=I.groupId;I=I.command;if(G.currentFormId){var R=Object.assign({},G.commandsMap);R[c]=I;G=Object.assign({},G,{commandsMap:R})}return G;case "RESET_COMMAND_MAP":return Object.assign({},G,{commandsMap:{}});default:return G}};
tNO=function(G,c){G=G===void 0?xHC:G;switch(c.type){case "UPDATE_CANVAS_MODE":return Object.assign({},G,{currentMode:c.payload.currentMode});default:return G}};
dHO=function(G,c){G=G===void 0?h7p:G;switch(c.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},G,{guideIsExpanded:c.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},G,{scrollAtTop:c.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},G,{guideIsVisibleButNotPersistent:c.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},G,{miniplayerIsActive:c.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},G,{singleOptionSurveyIsActive:c.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},G,{slimlineSurveyRatingSelectedIndex:c.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},G,{richGridMiniMode:c.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},G,{richGridItemsPerRow:c.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},G,{richGridSlimItemsPerRow:c.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},G,{richGridContainerWidth:c.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},G,{richGridStyle:c.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:c.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},G,{inlinePreviewIsActive:c.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},G,{inlinePreviewIsEnabled:c.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},G,{darkModeIsEnabled:c.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
G,{miniplayerPlaybackState:c.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},G,{tabGesturesIsActive:c.payload});case "SET_ONLINE_STATUS":return Object.assign({},G,{isOnline:c.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},G,{chipBarIsSticky:c.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},G,{frostedGlassMode:c.payload});default:return G}};
CdO=function(){return _.v("kevlar_disable_theater_mode_persistence")?!1:_.XG("START_IN_THEATER_MODE")};
XQT=function(G,c){G=G===void 0?HfT:G;switch(c.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},G,{transcription:c.payload});case "SET_OVERLAY_STATE":return Object.assign({},G,{overlay:c.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return G}};
PsC=function(){return pF(Object.assign({},{continuation:yGq,download:g4O,canvas:tNO,reportChannelAbuse:Y7f,share:G5B,talkToRecs:cuT,ui:dHO,voiceSearch:XQT,watch:Igi,ypc:RTB,shorts:ZIr,radioButtonGroup:jpU,collabInviteLink:ByU},KOr))};
agp=function(){return _.v("web_player_entities_middleware")?new Xf(PsC(),[Qef,m_U]):new Xf(PsC(),[Qef])};
_.y4=function(){TQC||(TQC=agp());return TQC};
OIO=function(G,c,I){if(G.length)return{titleText:_.Gv(c!=null?c:_.mJ("DOWNLOADS",void 0,"Downloads")),contents:G.map(function(R){var Z=R.videoEntity;R={videoId:Z.videoId,title:cY(Z.title),shortBylineText:cY(R.channelEntity.title),thumbnail:Z.thumbnail};var K=Z.videoId?fp(_.y4().getState(),Z.videoId):0;Z.videoId&&I?R.navigationEndpoint=_.YD(Z.videoId,I,void 0,void 0,K):Z.videoId&&(R.navigationEndpoint=fIA(Z.videoId,K,Z.lengthSeconds));Z.lengthSeconds&&(R.thumbnailOverlays=E48(Z.lengthSeconds,K));return{playlistPanelVideoRenderer:R}}),
totalVideos:G.length}};
eTB=function(G){return(G=(0,_.rx.getValueByKeys)(G,"playlistId"))?{playlistId:G}:null};
NQU=function(){return{}};
lg8=function(G,c){return new _.Lk(function(I,R){G.then(function(Z){if(Z){if(Z=c(Z))return I(Z);R()}},R)})};
qXg=function(G){var c,I,R,Z=(c=G.contents)==null?void 0:(I=c.twoColumnWatchNextResults)==null?void 0:(R=I.autoplay)==null?void 0:R.autoplay,K,m,a;c=(K=G.contents)==null?void 0:(m=K.twoColumnWatchNextResults)==null?void 0:(a=m.playlist)==null?void 0:a.playlist;return Z&&c&&c.playlistId?{rawResponse:G,autoplayRenderer:Z,playlistPanelRenderer:c,playlistId:c.playlistId}:null};
FOA=function(G){var c=c===void 0?"UNKNOWN_INTERFACE":c;if(G.length===1)return G[0];var I=wTT[c];if(I){I=new RegExp(I);for(var R=_.Q(G),Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,I.exec(Z))return Z}var K=[];Object.entries(wTT).forEach(function(m){var a=_.Q(m);m=a.next().value;a=a.next().value;c!==m&&K.push(a)});
I=new RegExp(K.join("|"));G.sort(function(m,a){return m.length-a.length});
R=_.Q(G);for(Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,!I.exec(Z))return Z;return G[0]};
_.gL=function(G){return"/youtubei/v1/"+FOA(G)};
_.YV=function(G,c){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:G}}},c!==void 0?{durationHintMs:c}:{})}};
_.Ge=function(G,c){return _.YV(_.Cp(G),c)};
nwb=function(G,c){var I={mode:"NORMAL"};G&&(I.autoplayVideo=G.navigationEndpoint,I.nextButtonVideo=G.navigationEndpoint);c&&(I.previousButtonVideo=c.navigationEndpoint);return I};
owO=function(G,c,I){if(!I||!I.sets)return{sets:[nwb(G,c)]};var R=I.sets.find(function(m){return m.mode==="NORMAL"}),Z=(0,_.rx.unsafeClone)(I);
if(!R)return Z.sets.push(nwb(G,c)),Z;if(!G)return I;R=_.rx.getValueByKeys.apply(null,[R].concat(_.jn(vwC)));var K=_.rx.getValueByKeys.apply(null,[G].concat(_.jn(D_0)));if(R===K)return I;Z.sets=Z.sets.filter(function(m){return m.mode!=="NORMAL"});
Z.sets.push(nwb(G,c));return Z};
U_T=function(G){return!!G.playlistPanelVideoRenderer&&!G.playlistPanelVideoRenderer.unplayableText};
u$b=function(G){return!!G.playlistPanelVideoRenderer&&!!G.playlistPanelVideoRenderer.title};
bIr=function(G,c){if(c.contents&&!(G>=c.contents.length)&&(G=c.contents.slice(G).find(U_T)))return G.playlistPanelVideoRenderer};
k5r=function(G,c){if(c.contents)return(c=c.contents.find(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===G}))?c.playlistPanelVideoRenderer:void 0};
sei=function(G,c){return c.contents?c.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===G}):-1};
LOr=function(G,c){return c.contents?c.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.playlistSetVideoId===G}):-1};
I5p=function(G,c){G.contents&&c!==-1&&G.contents.splice(c,1).length===1&&G.totalVideos!==void 0&&(--G.totalVideos,delete G.videoCountText)};
_.Rz0=function(G){var c=[];if(!G||!G.contents)return c;G=_.Q(G.contents);for(var I=G.next();!I.done;I=G.next())I=I.value,I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId&&c.push(I.playlistPanelVideoRenderer.videoId);return c};
_.ZiT=function(G){if(G&&G.contents)return(G=G.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&!!c.playlistPanelVideoRenderer.selected})||G.contents[G.currentIndex])?G.playlistPanelVideoRenderer:void 0};
Kjf=function(G,c,I,R,Z,K,m){Z=Z===void 0?!1:Z;K=K===void 0?!1:K;m=m===void 0?!1:m;if(G.contents&&G.contents.length!==0){R&&(G.contents=G.contents.filter(R));R=G.contents.length;for(var a=0;a<R;a++){var O=G.contents[a].playlistPanelVideoRenderer;O&&(a===c?(K&&delete O.menu,O.indexText=_.Cp("\u25b6")):Z||G.isInfinite||O.indexText===void 0?delete O.indexText:O.indexText=_.Cp((a+1+I).toString()))}G.currentIndex=c+I;m&&(delete G.videoCountText,G.totalVideos=R)}};
_.cH=function(G){G=PX0(G);if(G){var c=G.length;var I=-12%c;I<0&&(I=c+I);G=G.slice(c-I)+G.slice(0,c-I)}else G="";I="";for(c=0;c<G.length&&G[c]!==QvU;c++)I+=G[c];return I};
_.mI8=function(G,c){var I=document.body;c=c===void 0?function(a){return a}:c;
var R,Z=null;G=_.Q(G);for(R=G.next();!R.done;R=G.next()){var K=R.value;R="div";K[2]&&(R=c(K[2]));R=document.createElement(R);Z||(Z=R);var m=K[0];K=K[1];m&&(R.id=c(m));if(K)for(K=_.Q(K),m=K.next();!m.done;m=K.next())R.classList.add(c(m.value));I.appendChild(R);I=R}return[Z,I]};
a5b=function(G,c){for(var I="",R=0;R<c;R++)I+=G.charAt(Math.floor(Math.random()*G.length));return I};
II=function(G){return a5b("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",G)};
RI=function(G){return a5b("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",G)};
Zb=function(G){return a5b("0123456789",G)};
Tr0=function(){var G=performance.now(),c=new Date;var I="2."+c.getFullYear()+String(c.getMonth()+1).padStart(2,"0")+String(c.getDate()).padStart(2,"0");for(var R,Z=Math.floor(Math.random()*11)+15,K=[],m=0;m<Z;m++)K.push(Math.floor(Math.random()*26476865)+24547720);R=K.join(",");var a=II(10),O=II(100),N=II(102),q=II(106),w=II(108),F=II(11),n=II(1140),U=II(123),k=II(14),p=II(16),M=II(1900),z=II(23),t=II(26),x=II(34),C=II(397),H=II(44),g=II(5),QO=II(72),T8=II(74),kp=II(75),FB=II(88),oq=II(91),Wr="rr5---sn-hgn7rnll rr3---sn-q4flrnl6 rr5---sn-4g5ednsy rr1---sn-q4flrnsk rr4---sn-4g5edndk rr4---sn-q4fzenee rr5---sn-q4flrnes rr4---sn-ntq7yned rr4---sn-aigzrnz7 rr5---sn-5hne6nsd rr2---sn-aigl6nzs rr1---sn-q4flrne6 rr2---sn-hgn7rn7y rr4---sn-q4fl6nlz rr1---sn-q4fl6nsl rr1---sn-t0a7sn7d rr1---sn-q4fl6nsd rr4---sn-q4flrnle rr5---sn-q4flrne6 rr2---sn-q4fl6ndz".split(" ");
var iT=Wr[Math.floor(Math.random()*Wr.length)];var z8=(new Date("2010-01-01")).getTime();var GV=(new Date(z8+Math.random()*((new Date).getTime()-z8))).toISOString().split("T")[0];for(var ei,Hr=[],v0=0;v0<4;v0++)Hr.push(Math.floor(Math.random()*100));ei=Hr.join(".");var kK=Number(Zb(5)),pN=Number(Zb(6)),bH=Number(Zb(7)),n1=Number(Zb(9)),qf=Zb(1),hU=Zb(10),we=Zb(16),xK=Zb(19),UK=Zb(2),YK=Zb(20),en=Zb(21),de=Zb(3),qk=Zb(4),FT=Zb(5),ZW=Zb(6),yO=Zb(7),Iu=Zb(8),wS=Zb(9);var IR=a5b("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var vu=[RI(5),RI(5),RI(5)].join("%2C"),xF=[Zb(3),Zb(5),Zb(5)].join("%2C"),eT=RI(0),v6=RI(1),he=RI(10),L1=RI(108),Q$=RI(11),CS=RI(12),L8=RI(13),MS=RI(14),Ee=RI(15),P6=RI(16),wL=RI(17),AU=RI(18),Br=RI(19),CA=RI(2),u2=RI(20),uH=RI(22),ET=RI(23),Mg=RI(24),$K=RI(266),sK=RI(3),d7=RI(30),xN=RI(34),Dp=RI(35),gx=RI(36),D$=RI(4),tz=RI(40),Xq=RI(43),Zq=RI(47),U$=RI(5),ie=RI(6),lD=RI(7),bM=RI(75),rn=RI(8),$y=RI(80),nC=RI(9),ia="https://www."+RI(12)+".com",S4={},Et={},dB={},iZ={},Cq={},pb={},MF={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:R}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:I},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+RI(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:I},{key:"client.name",value:"WEB"},{key:"client.fexp",value:R}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:en+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+RI(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:tz,ypcGetOfflineUpsellEndpoint:{params:$y}},trackingParams:Dp+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&cnr="+UK+"&ratebypass=yes&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&c=WEB&txp="+yO+"&n="+p+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:pN,width:640,height:360,lastModified:we,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:yO,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+xF+"&mn="+
vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&cnr="+UK+"&ratebypass=yes&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&c=WEB&txp="+yO+"&n="+p+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+L1+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:pN,width:1280,
height:720,lastModified:we,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:yO,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+xF+"&mn="+vu+"&ms="+
vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+wS+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:bH,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:de,end:qk},lastModified:we,contentLength:wS,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:bH,approxDurationMs:yO},{itag:248,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+xF+"&mn="+vu+"&ms="+vu+"&mv="+
v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fwebm&ns="+Mg+"&gir="+sK+"&clen="+wS+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&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="+w,mimeType:'video/webm; codecs="vp9"',bitrate:bH,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:de,end:qk},lastModified:we,contentLength:wS,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:bH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:399,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+wS+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:bH,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:de,end:qk},lastModified:we,contentLength:wS,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:bH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:136,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+wS+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:bH,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:de,end:qk},lastModified:we,contentLength:wS,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:pN,approxDurationMs:yO},{itag:247,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+xF+"&mn="+
vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fwebm&ns="+Mg+"&gir="+sK+"&clen="+wS+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:bH,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:de,end:qk},lastModified:we,contentLength:wS,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:pN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:398,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+wS+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:bH,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:de,end:qk},lastModified:we,contentLength:wS,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:pN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:135,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:pN,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:pN,approxDurationMs:yO},{itag:244,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+xF+"&mn="+
vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fwebm&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L1+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:pN,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:pN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:397,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:pN,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:pN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:134,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:pN,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:pN,highReplication:!0,approxDurationMs:yO},{itag:243,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fwebm&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&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="+w,mimeType:'video/webm; codecs="vp9"',bitrate:pN,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:pN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:396,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:pN,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:pN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:133,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:pN,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:pN,approxDurationMs:yO},{itag:242,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+xF+"&mn="+
vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fwebm&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:pN,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:pN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:395,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:pN,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:pN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:160,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&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="+w,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:pN,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kK,approxDurationMs:yO},{itag:278,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+xF+"&mn="+
vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fwebm&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:pN,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:394,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&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="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=video%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:kK,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:kK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yO},{itag:140,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=audio%2Fmp4&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:pN,
initRange:{start:"0",end:"631"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:pN,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:yO,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+
UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=audio%2Fwebm&ns="+Mg+"&gir="+sK+"&clen="+yO+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:kK,initRange:{start:"0",end:"265"},indexRange:{start:de,
end:qk},lastModified:we,contentLength:yO,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:kK,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:yO,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=audio%2Fwebm&ns="+
Mg+"&gir="+sK+"&clen="+yO+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:kK,initRange:{start:"0",end:"265"},indexRange:{start:de,end:qk},lastModified:we,contentLength:yO,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:kK,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:yO,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+iT+".googlevideo.com/videoplayback?expire="+hU+"&ei="+z+"&ip="+ei+"&id=o-AF"+Xq+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+xF+"&mn="+vu+"&ms="+vu+"&mv="+v6+"&mvi="+qf+"&pl="+UK+"&initcwndbps="+yO+"&siu="+qf+"&spc="+H+"&vprv="+qf+"&svpuc="+qf+"&mime=audio%2Fwebm&ns="+Mg+"&gir="+sK+"&clen="+Iu+"&dur="+Iu+"&lmt="+we+"&mt="+hU+"&fvip=3&keepalive="+sK+"&c=WEB&txp="+
yO+"&n="+P6+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:pN,initRange:{start:"0",end:"265"},indexRange:{start:de,end:qk},lastModified:we,contentLength:Iu,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:pN,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:yO,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="+wS+"&docid="+F+"&ei="+z+"&feature="+a+"&fexp="+eT+"&ns="+CA+"&plid="+p+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+v6+"&el="+he+"&len="+qk+"&of="+uH+
"&uga="+UK+"&vm="+$K},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+wS+"&docid="+F+"&ei="+z+"&feature="+a+"&fexp="+eT+"&ns="+CA+"&plid="+p+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+v6+"&el="+he+"&len="+qk+"&of="+uH+"&uga="+UK+"&vm="+$K},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+wS+"&docid="+F+"&ei="+z+"&feature="+a+"&fexp="+eT+"&ns="+CA+"&plid="+p+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
v6+"&el="+he+"&len="+qk+"&of="+uH+"&uga="+UK+"&vm="+$K},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+z+"&m="+FB+"&oid="+uH+"&plid="+p+"&pltype="+lD+"&ptchn="+uH+"&ptk="+k+"&video_id="+F},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+wS+"&docid="+F+"&ei="+z+"&event="+MS+"&feature="+a+"&fexp="+eT+"&ns="+CA+"&plid="+p+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+v6},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
P6+"&ver=2&cmt=1."+de+"&fmt="+de+"&fs=0&rt="+FT+"&euri&lact="+de+"&cl="+wS+"&mos="+qf+"&volume=100&cbrand="+U$+"&cbr="+ie+"&cbrver="+ei+"&c=WEB&cver="+I+"&cplayer=UNIPLAYER&cos="+nC+"&cosver="+yO+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+UK+"&len="+Iu+"&fexp="+vu+"&feature=g-high-rec&afmt="+de+"&muted=0&conn=1&docid="+F+"&ei="+z+"&plid="+p+"&vm="+RI(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
F+"&caps="+sK+"&opi="+wS+"&xoaf="+qf+"&hl="+CA+"&ip="+ei+"&ipbits="+qf+"&expire="+hU+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ei+"&key="+sK+"&lang="+g,name:{simpleText:he},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+F+"&caps="+sK+"&opi="+wS+"&xoaf="+qf+"&hl="+CA+"&ip="+ei+"&ipbits="+qf+"&expire="+hU+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ei+"&key="+sK+"&kind="+sK+"&lang="+CA,name:{simpleText:u2},
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:Q$,title:u2,lengthSeconds:"1155",keywords:[Ee,Ee,he,u2],channelId:Mg,isOwnerViewing:!1,shortDescription:MS,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+F+"/hqdefault.jpg?sqp=-oaymwE"+gx+"G&rs="+xN,width:168,height:94},{url:"https://i.ytimg.com/vi/"+F+"/hqdefault.jpg?sqp=-oaymwE"+gx+
"G&rs="+xN,width:196,height:110},{url:"https://i.ytimg.com/vi/"+F+"/hqdefault.jpg?sqp=-oaymwE"+gx+"G&rs="+x,width:246,height:138},{url:"https://i.ytimg.com/vi/"+F+"/hqdefault.jpg?sqp=-oaymwE"+gx+"G&rs="+x,width:336,height:188},{url:"https://i.ytimg.com/vi/"+F+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:yO,author:L8,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:yO,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
uH+"/featured_channel.jpg?v="+rn,width:40,height:40}]},trackingParams:Dp+"=",navigationEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"/channel/"+Mg,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Mg}},channelName:L8,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:ie}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Mg,showPreferences:!1,subscribedButtonText:{runs:[{text:he}]},unsubscribedButtonText:{runs:[{text:MS}]},
trackingParams:Dp+"=",unsubscribeButtonText:{runs:[{text:lD}]},serviceEndpoints:[{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Mg],params:rn}},{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:tz,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Dp+"=",dialogMessages:[{runs:[{text:Ee},
{text:ie},{text:Ee}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:P6}]},serviceEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Mg],params:rn}},accessibility:{label:U$},trackingParams:Dp+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:MS}]},accessibility:{label:Br},
trackingParams:Dp+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:wL}},unsubscribeAccessibility:{accessibilityData:{label:Br}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Iu},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Mg],
params:rn}},unsubscribeCommand:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Mg],params:rn}},addToWatchLaterCommand:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Q$,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Q$}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+F+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+gx+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+F+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Q$,width:1280,
height:720},title:{simpleText:D$},description:{simpleText:D$},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+U$,externalChannelId:Mg,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:yO,category:"Travel & Events",publishDate:GV,ownerChannelName:L8,uploadDate:GV}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:L8},trackingParams:Dp+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:tz,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Dp+"="}}],headerText:{simpleText:lD},icon:{infoCardIconRenderer:{trackingParams:Dp+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Dp+"="}},trackingParams:Dp+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Dp+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Q$+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:IR,interpreterSafeUrl:(S4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+d7+".js",S4),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:AU},{text:Br,bold:!0}]},endpoint:{clickTrackingParams:tz,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:Dp+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:ie}]},actionButton:{buttonRenderer:{text:{runs:[{text:wL}]},navigationEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+F,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
F,target:"TARGET_NEW_WINDOW"}},trackingParams:Dp+"="}},trackingParams:Dp+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+QO+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+QO+"=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:yO,endMs:yO,title:{accessibility:{accessibilityData:{label:CS}},simpleText:lD},metadata:{simpleText:U$},callToAction:{simpleText:Br},dismiss:{simpleText:u2},endpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"/channel/"+Mg,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Mg}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:AU}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Mg,showPreferences:!1,
subscribedButtonText:{runs:[{text:Br}]},unsubscribedButtonText:{runs:[{text:Q$}]},trackingParams:Dp+"=",unsubscribeButtonText:{runs:[{text:MS}]},serviceEndpoints:[{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Mg],params:rn}},{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:tz,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Dp+
"=",dialogMessages:[{runs:[{text:nC},{text:Q$},{text:nC}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:D$}]},serviceEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Mg],params:rn}},accessibility:{label:D$},trackingParams:Dp+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:nC}]},
accessibility:{label:U$},trackingParams:Dp+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:AU}},unsubscribeAccessibility:{accessibilityData:{label:MS}}}},trackingParams:Dp+"=",isSubscribe:!0,id:YK}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+F+"/hqdefault.jpg?sqp=-oaymwE"+gx+"G&rs="+x,width:168,height:94},{url:"https://i.ytimg.com/vi/"+F+"/hqdefault.jpg?sqp=-oaymwE"+gx+"G&rs="+xN,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+F+"/hqdefault.jpg?sqp=-oaymwE"+gx+"G&rs="+x,width:246,height:138},{url:"https://i.ytimg.com/vi/"+F+"/hqdefault.jpg?sqp=-oaymwE"+gx+"G&rs="+x,width:336,height:188},{url:"https://i.ytimg.com/vi/"+F+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:yO,endMs:yO,title:{accessibility:{accessibilityData:{label:rn}},simpleText:U$},metadata:{simpleText:AU},endpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Q$,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Q$,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+iT+".googlevideo.com/videoplayback?source=youtube&oeis="+qf+"&c=WEB&oad="+qk+"&ovd="+qk+"&oaad="+FT+"&oavd="+FT+"&ocs="+de+"&oewis="+qf+"&oputc="+qf+"&ofpcc="+qf+"&siu="+qf+"&msp="+qf+"&odepv="+qf+
"&id=o-AF"+Xq+"&ip="+ei+"&initcwndbps="+yO+"&mt="+hU+"&oweuc="+eT}}}}},trackingParams:Dp+"=",id:YK,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:L8}},simpleText:lD},style:"DEFAULT"}}]}}],startMs:yO,trackingParams:Dp+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:qf,offsetEndMilliseconds:FT},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+wS+";dc_trk_cid="+wS+";dc_dbm_token="+w+";ord="+hU+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";dc_rui="+qf+";dc_exteid="+YK+";dc_av="+de+";dc_sk="+qf+";dc_ctype="+UK+";dc_ref=http://www.youtube.com/video/"+Q$+";dc_pubid="+qf+";dc_btype=23?gclid="+oq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+qf+"&ns="+qf+"&event="+qf+"&device="+qf+"&content_v="+F+"&el="+he+"&ei="+z+"&devicever="+I+"&bti="+yO+"&format="+ZW+"&break_type="+qf+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+qf+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ei+"&slot_pos="+qf+"&slot_len="+qf+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+xF+"&ad_len="+FT+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Q$+"&aqi="+z+"&ad_rmp="+qf+"&sli="+qf}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+
";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+ZW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&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"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&ctype="+de+"&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"+
n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_engaged_view&ctype="+de+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+ZW+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
wS+";dc_trk_cid="+wS+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";ord="+wS+";dc_rui="+qf+";dc_exteid="+xK+";dc_av="+qf+";dc_sk="+qf+";dc_ctype="+UK+";dc_pubid="+qf+";dc_btype=3?gclid="+oq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+ET+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&dc_pubid="+qf+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+ET+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+qf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&avm="+qf+"&dc_pubid="+qf+"&dc_exteid="+
YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&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="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
N+"&sig="+ET+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+qf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&dc_pubid="+qf+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+ZW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+ZW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:tz,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+
de+"&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/"+F+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Dp+"="},trackingParams:Dp+
"=",templatedCountdown:{templatedAdText:{text:lD,isTemplated:!0,trackingParams:Dp+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:nC,isTemplated:!1,trackingParams:Dp+"="},trackingParams:Dp+"="}},trackingParams:Dp+"=",skipOffsetMilliseconds:5E3}},trackingParams:Dp+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Ee},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Dp+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:MS,isTemplated:!1,trackingParams:Dp+"="},trackingParams:Dp+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:MS,isTemplated:!0,trackingParams:Dp+"="}},trackingParams:Dp+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:tz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Et.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+CA+"&origin=www.youtube.com&ata_theme="+D$,Et),trackingParams:Dp+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Dp+"="}},hoverText:{runs:[{text:U$}]},trackingParams:Dp+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zq+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Dp+"="},headline:{text:wL,isTemplated:!1,trackingParams:Dp+"="},description:{text:lD,
trackingParams:Dp+"="},actionButton:{buttonRenderer:{text:{simpleText:rn},navigationEndpoint:{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+wS+";dc_trk_cid="+wS+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";ord="+wS+";dc_rui="+qf+";dc_exteid="+YK+";dc_av="+qf+";dc_sk="+qf+";dc_ctype="+UK+";dc_pubid="+qf+";dc_btype=3?gclid="+oq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Dp+"="}},startMs:qf,trackingParams:Dp+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ee},elementId:U$}},elementId:P6,trackingParams:Dp+"=",legacyInfoCardVastExtension:he,sodarExtensionData:{siub:L8,bgub:Ee,scs:D$,bgp:he},externalVideoId:Q$,adLayoutLoggingData:{serializedAdServingDataEntry:AU},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zq+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Dp+"="},
headline:{text:nC,isTemplated:!1,trackingParams:Dp+"="},description:{text:MS,isTemplated:!1,trackingParams:Dp+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:D$},navigationEndpoint:{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+wS+";dc_trk_cid="+wS+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";ord="+wS+";dc_rui="+qf+";dc_exteid="+
YK+";dc_av="+qf+";dc_sk="+qf+";dc_ctype="+UK+";dc_pubid="+qf+";dc_btype=3?gclid="+oq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+
qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Dp+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Dp+"="}},navigationEndpoint:{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+wS+";dc_trk_cid="+
wS+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";ord="+wS+";dc_rui="+qf+";dc_exteid="+YK+";dc_av="+qf+";dc_sk="+qf+";dc_ctype="+UK+";dc_pubid="+qf+";dc_btype=3?gclid="+oq+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+
U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Dp+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Dp+"="},abandonCommands:{commands:[{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&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="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+
qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:tz,commandExecutorCommand:{commands:[{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:nC,isTemplated:!1,trackingParams:Dp+
"="},trackingParams:Dp+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:MS},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+yO+";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="+wS+";dc_trk_cid="+wS+";ord="+hU+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";dc_rui="+qf+";dc_exteid="+YK+";dc_av="+de+";dc_sk="+qf+";dc_ctype="+UK+";dc_ref=http://www.youtube.com/video/"+Q$+";dc_pubid="+qf+";dc_btype=23?gclid="+oq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+qf+"&ns="+qf+"&event="+qf+"&device="+qf+"&content_v="+F+"&el="+he+"&ei="+z+"&devicever="+I+"&bti="+yO+"&format="+ZW+"&break_type="+qf+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+qf+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ei+"&slot_pos="+qf+"&slot_len="+qf+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
xF+"&ad_len="+FT+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Q$+"&aqi="+z+"&ad_rmp="+qf+"&sli="+qf}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+ZW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+
t+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&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"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&ctype="+de+"&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"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_engaged_view&ctype="+de+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+ZW+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+ET+"&ad_cpn=[AD_CPN]&id="+
ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&dc_pubid="+qf+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+
"&sig="+ET+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+qf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&avm="+qf+"&dc_pubid="+qf+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&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="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+ET+"&ad_cpn=[AD_CPN]&id="+ie+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+qf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ie+"&dc_pubid="+qf+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+ZW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+ZW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+
de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&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/"+F+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Dp+"="},trackingParams:Dp+"=",templatedCountdown:{templatedAdText:{text:lD,isTemplated:!0,trackingParams:Dp+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:CS,isTemplated:!1,trackingParams:Dp+"="},trackingParams:Dp+"="}},
trackingParams:Dp+"=",skipOffsetMilliseconds:5E3}},trackingParams:Dp+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ie},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Dp+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Q$,isTemplated:!1,trackingParams:Dp+"="},trackingParams:Dp+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:U$,
isTemplated:!0,trackingParams:Dp+"="}},trackingParams:Dp+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:tz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(dB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+CA+"&origin=www.youtube.com&ata_theme="+D$,dB),trackingParams:Dp+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Dp+"="}},hoverText:{runs:[{text:L8}]},trackingParams:Dp+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T8+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Dp+"="},headline:{text:L8,isTemplated:!1,trackingParams:Dp+"="},description:{text:MS,trackingParams:Dp+"="},actionButton:{buttonRenderer:{text:{simpleText:D$},navigationEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Dp+"="}},startMs:qf,trackingParams:Dp+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:L8},elementId:U$}},elementId:Q$,trackingParams:Dp+"=",legacyInfoCardVastExtension:U$,sodarExtensionData:{siub:nC,bgub:rn,scs:U$,bgp:Br},externalVideoId:Q$,adLayoutLoggingData:{serializedAdServingDataEntry:CS},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T8+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Dp+"="},headline:{text:ie,
isTemplated:!1,trackingParams:Dp+"="},description:{text:L8,isTemplated:!1,trackingParams:Dp+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:P6},navigationEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Dp+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Dp+"="}},navigationEndpoint:{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+
qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Dp+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Dp+"="},abandonCommands:{commands:[{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&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="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+UK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:tz,commandExecutorCommand:{commands:[{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:he,isTemplated:!1,trackingParams:Dp+"="},trackingParams:Dp+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lD},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+qf+";dc_exteid="+YK+";met="+qf+";ecn"+qf+"="+qf+";etm1="+qf+";eid1="+
yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Ee}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rn}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FT,offsetEndMilliseconds:ZW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+UK+"&token=ALHj"+C+"&index="+qf+"&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="+I+"&m_pos_ms="+FT}},adSlotLoggingData:{serializedSlotAdServingDataEntry:MS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:ZW,offsetEndMilliseconds:ZW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+de+"&token=ALHj"+C+"&index="+qf+"&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="+
I+"&m_pos_ms="+ZW}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Br}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ZW,offsetEndMilliseconds:ZW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+de+"&token=ALHj"+C+"&index="+qf+"&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="+
I+"&m_pos_ms="+ZW}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ee}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ZW,offsetEndMilliseconds:ZW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+de+"&token=ALHj"+C+"&index="+qf+"&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="+
I+"&m_pos_ms="+ZW}},adSlotLoggingData:{serializedSlotAdServingDataEntry:u2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ZW,offsetEndMilliseconds:UK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+de+"&token=ALHj"+C+"&index="+qf+"&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="+
I+"&m_pos_ms="+ZW}},adSlotLoggingData:{serializedSlotAdServingDataEntry:U$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:UK,offsetEndMilliseconds:UK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+UK+"&token=ALHj"+C+"&index="+qf+"&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="+
I+"&m_pos_ms="+UK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:AU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:he,isTemplated:!1,trackingParams:Dp+"="},description:{text:L8,isTemplated:!1,trackingParams:Dp+"="},actionButton:{buttonRenderer:{text:{simpleText:nC},navigationEndpoint:{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
wS+";dc_trk_cid="+wS+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";ord="+wS+";dc_rui="+qf+";dc_exteid="+YK+";dc_av="+qf+";dc_sk="+qf+";dc_ctype="+UK+";dc_pubid="+qf+";dc_btype=3?gclid="+oq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Dp+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zq+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Dp+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kp+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Dp+"="},navigationEndpoint:{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+wS+";dc_trk_cid="+wS+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";ord="+wS+
";dc_rui="+qf+";dc_exteid="+YK+";dc_av="+qf+";dc_sk="+qf+";dc_ctype="+UK+";dc_pubid="+qf+";dc_btype=3?gclid="+oq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Dp+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:tz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(iZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+CA+"&origin=www.youtube.com&ata_theme="+D$,iZ),trackingParams:Dp+"="}},popupType:"DIALOG"}},trackingParams:Dp+"="}},hoverText:{runs:[{text:L8}]},trackingParams:Dp+"="}},adVideoId:Q$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:U$},associatedCompositePlayerBytesLayoutId:P6}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:nC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:lD,isTemplated:!1,trackingParams:Dp+"="},description:{text:CS,isTemplated:!1,trackingParams:Dp+"="},actionButton:{buttonRenderer:{text:{simpleText:Q$},navigationEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+
U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Dp+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T8+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Dp+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bM+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Dp+"="},navigationEndpoint:{clickTrackingParams:tz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+
qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Dp+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:tz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Cq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+CA+"&origin=www.youtube.com&ata_theme="+D$,Cq),trackingParams:Dp+"="}},popupType:"DIALOG"}},trackingParams:Dp+"="}},
hoverText:{runs:[{text:AU}]},trackingParams:Dp+"="}},adVideoId:Q$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+Q$+"&cid="+t+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:AU},associatedCompositePlayerBytesLayoutId:P6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:u2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:L8,
isTemplated:!1,trackingParams:Dp+"="},description:{text:ie,isTemplated:!1,trackingParams:Dp+"="},actionButton:{buttonRenderer:{text:{simpleText:AU},navigationEndpoint:{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+wS+";dc_trk_cid="+wS+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";ord="+wS+";dc_rui="+qf+";dc_exteid="+YK+";dc_av="+qf+";dc_sk="+qf+";dc_ctype="+
UK+";dc_pubid="+qf+";dc_btype=3?gclid="+oq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+
x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Dp+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Zq+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Dp+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kp+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Dp+
"="},navigationEndpoint:{clickTrackingParams:tz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+wS+";dc_trk_cid="+wS+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+qf+";ord="+wS+";dc_rui="+qf+";dc_exteid="+YK+";dc_av="+qf+";dc_sk="+qf+";dc_ctype="+UK+";dc_pubid="+qf+";dc_btype=3?gclid="+oq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+U+"AxAA&ase=2&num="+qf+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+x+"&adurl="+ia+"&label=video_click_to_advertiser_site&ctype="+de+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Dp+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:tz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(pb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+CA+"&origin=www.youtube.com&ata_theme="+D$,pb),trackingParams:Dp+"="}},popupType:"DIALOG"}},trackingParams:Dp+
"="}},hoverText:{runs:[{text:Br}]},trackingParams:Dp+"="}},adVideoId:Q$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+U+"AxAA&sigh="+F+"&cid="+t+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nC},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:P6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Br}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:d7,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:d7,command:{innertubeCommand:{clickTrackingParams:tz,ypcGetOfflineUpsellEndpoint:{params:$y}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Dp+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:hU,nanos:n1}}}},vd=JSON.stringify(MF),rg=performance.now()-G;return{objectRepresentation:MF,jsonRepresentation:vd,generationTime:rg}};
OiT=function(G,c){if(G===c)return!0;if(!G||!c||typeof G!==typeof c)return!1;if(G instanceof Array&&c instanceof Array){if(G.length!==c.length)return!1;for(var I=0;I<G.length;I++)if(!OiT(G[I],c[I]))return!1;return!0}if(typeof G==="object"&&typeof c==="object"&&G&&c){for(I in G)if(!(I in c&&OiT(G[I],c[I])))return!1;for(var R in c)if(!(R in G))return!1;return!0}return!1};
_.PH=function(){if(!KE){KE=new se(new ez0);var G=_.DH("client_streamz_web_flush_count",-1);G!==-1&&(KE.invocationLimit=G)}return KE};
QJ=function(G,c,I,R){if(G===c)return!0;if(Array.isArray(G)&&Array.isArray(c)){if(G.length!==c.length)return!1;for(var Z=0;Z<G.length;Z++)if(!QJ(G[Z],c[Z],I,R))return!1;return!0}if(G instanceof Set||c instanceof Set){if(G instanceof Set&&c instanceof Set){if(G.size!==c.size)return!1;R=_.Q(G.values());for(Z=R.next();!Z.done;Z=R.next())if(!c.has(Z.value))return!1;return!0}return!1}if(G instanceof Function){if(R)return!0;G.name===""&&_.hg(Error("Qf"),"ERROR");return!1}if(G instanceof Date&&c instanceof
Date)return G.getTime()===c.getTime();if(G instanceof Object&&c instanceof Object){if(NrB(G)&&NrB(c))try{return G.equals(c)}catch(m){_.hg(Error("Rf`"+m),"ERROR")}Z=Object.getOwnPropertyNames(G).filter(function(m){return I?G[m]!==void 0:!0});
var K=Object.getOwnPropertyNames(c).filter(function(m){return I?c[m]!==void 0:!0});
if(Z.length!==K.length)return!1;Z=_.Q(Z);for(K=Z.next();!K.done;K=Z.next())if(K=K.value,!QJ(G[K],c[K],I,R))return!1;return!0}return!1};
NrB=function(G){G=Object.getPrototypeOf(G).equals;return G instanceof Function&&G.length===1};
_.w$8=function(){return _.T(function(G){if(G.nextAddress==1)return l5r!==2?G.jumpTo(2):G.yield(q6T(),3);G.nextAddress!=2&&(l5r=G.yieldResult);return G.return(l5r)})};
_.vef=function(){return _.T(function(G){if(G.nextAddress==1)return _.v("ab_pl_man")?FjO!==2?G.jumpTo(2):G.yield(neg(),3):G.return(1);G.nextAddress!=2&&(FjO=G.yieldResult);return G.return(FjO)})};
UIr=function(){return _.T(function(G){if(G.nextAddress==1)return _.v("ab_fk_sk_cl")?DIi!==2?G.jumpTo(2):G.yield(oeA(),3):G.return(1);G.nextAddress!=2&&(DIi=G.yieldResult);return G.return(DIi)})};
_.kl8=function(){return _.T(function(G){if(G.nextAddress==1)return _.v("ab_det_apb_b")?uKU!==2?G.jumpTo(2):G.yield(bir(),3):G.return(1);G.nextAddress!=2&&(uKU=G.yieldResult);return G.return(uKU)})};
AJU=function(){var G;return _.T(function(c){if(c.nextAddress==1)return c.yield(Promise.all([_.w$8(),_.kl8(),_.vef(),UIr()]),2);if(c.nextAddress!=3)return svp()?c.return(!0):c.yield(_.Ljr(),3);G=c.yieldResult;return c.return(G===0)})};
svp=function(){var G=!1,c=function(I,R){$IC.increment(R,I);I===0&&(G=!0)};
c(_.S6r(),"j.s_");c(l5r,"f.i_");c(uKU,"a.b_");c(FjO,"p.m_");c(DIi,"i.f_");p$r===2&&(p$r=_.MJf(VJf));c(p$r,"e.h_");_.v("ks_det_gpbl")||c(_.zzU(),"p.i_");_.v("ks_get_o_pp")||c(_.EeU(),"g.o_");_.v("ab_deg_unex_thr")||c(_.JJi(),"a.o_");c(Wjr,"s.t_");_.v("ab_det_sc_inj_enf")&&c(_.iiT(),"s.i_");c(f5T,"d.p_");c(_.BrB(_.mc),"o.p_");c(_.rJ8()===0?0:_.jvC(),"o.a_");return _.v("debug_sk_em_precheck")?!0:G};
tJg=function(){var G=[].concat(_.jn(xIr));try{var c=Tr0();G.push({jsonRepresentation:c.jsonRepresentation,objectRepresentation:c.objectRepresentation})}catch(I){G=[].concat(_.jn(xIr))}return G};
hzO=function(){var G=["adPlacements","adSlots"];try{return G.filter(function(){return!0}).length!==G.length?0:1}catch(c){return 0}};
_.EeU=function(){if(hzO()===0)return 0;var G=Tr0(),c=G.objectRepresentation,I=(0,_.rx.unsafeClone)(c),R=[];if(c&&typeof c==="object")for(var Z in c)R.push(Z);else return 4;G=G.objectRepresentation.adPlacements;if(!(G&&G.length>0))return 4;try{if(!OiT(R,Object.getOwnPropertyNames(c)))return 0}catch(K){return 0}return OiT(I,c)?1:0};
_.BrB=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var c=Object.getOwnPropertyNames(Object.prototype),I=0;I<G.length;I++)for(var R=_.cH(G[I]),Z=_.Q(c),K=Z.next();!K.done;K=Z.next())if(R===K.value)return 0;return 1};
dIT=function(G){var c=_.cH(G[1]);if(G[0]===null)return c;G=G[0];for(var I={},R=0;R<G.length;R++){var Z=_.cH(G[R]);if(R===0)I[Z]=c;else{var K={};K[Z]=I;I=K}}return I};
_.rJ8=function(){for(var G=_.aI,c=0;c<G.length;c++){var I=dIT(G[c]),R=[];R.push(I);if(R.length===0)return 0}return 1};
_.jvC=function(){for(var G=_.aI,c={},I=0;I<G.length;c={nwH:void 0},I++){var R=[dIT(G[I])];c.nwH=[];R.forEach(function(Z){return function(K){Z.nwH[Z.nwH.length]=K}}(c));
if(c.nwH.length===0)return 0}return 1};
_.S6r=function(){for(var G=_.Q(tJg()),c=G.next();!c.done;c=G.next()){var I=c.value;c=I.jsonRepresentation;I=I.objectRepresentation;try{var R=JSON.parse(c);if(!QJ(R,I,!1,!1))return 0}catch(Z){return 0}}return 1};
_.iiT=function(){try{var G=_.U2("ab_det_sc_inj_val");G.length===1&&G[0]===""&&(G=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var c=document.querySelectorAll("script"),I=_.Q(c),R=I.next();!R.done;R=I.next())for(var Z=R.value,K=_.Q(G),m=K.next();!m.done;m=K.next()){var a=m.value;c=void 0;if((c=Z.textContent)==null?0:c.includes(a))return 0}}catch(O){return 4}return 1};
_.Ljr=function(){var G,c,I,R,Z,K,m;return _.T(function(a){switch(a.nextAddress){case 1:_.s9(a,2),G=_.Q(xIr),c=G.next();case 4:if(c.done)return a.return(1);R=I=c.value;Z=R.jsonRepresentation;K=R.objectRepresentation;return a.yield((new Response(Z,{status:200})).json(),7);case 7:m=a.yieldResult;if(!QJ(m,K,!1,!1))return a.return(0);c=G.next();a.jumpTo(4);break;case 2:return _.M3(a),a.return(4)}})};
_.JJi=function(){try{btoa("abc")}catch(G){return 0}return 1};
q6T=function(){var G,c,I,R,Z,K,m,a,O,N,q;return _.T(function(w){switch(w.nextAddress){case 1:_.s9(w,2),G=_.Q(tJg()),c=G.next();case 4:if(c.done)return w.return(1);R=I=c.value;Z=R.jsonRepresentation;K=R.objectRepresentation;m=btoa(Z);a="data:application/json;base64,"+m;O=new Request(a);Object.defineProperty(O,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(O,"method",{get:function(){return"POST"}});
Object.defineProperty(O,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(O,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(O,"body",{get:function(){return new ReadableStream}});
return w.yield(fetch(O),7);case 7:return N=w.yieldResult,w.yield(N.json(),8);case 8:q=w.yieldResult;if(!QJ(q,K,!1,!1))return w.return(0);c=G.next();w.jumpTo(4);break;case 2:return _.M3(w),w.return(4)}})};
_.MJf=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var c=function(Z){return _.cH(Z)},I=2,R=0;R<G.length&&(I=_.CXB(_.mI8(G[R],c)),I!==0);R++);
return I};
_.CXB=function(G){var c=_.Q(G);G=c.next().value;c=c.next().value;try{var I=document.createElement("div");document.body.appendChild(I);var R=getComputedStyle(I).display;document.body.removeChild(I);if(R==="none")return 4;var Z=getComputedStyle(c).display==="none"?0:1;document.body.removeChild(G);return Z}catch(K){return 4}};
oeA=function(){var G,c,I;return _.T(function(R){G=new _.Te;c=document.createElement("button");c.classList.add("ytp-ad-skip-button");c.style.opacity="0";c.style.height="0px";c.style.width="0px";c.style.padding="0px";c.style.border="none";I=function(){c.parentElement&&c.parentElement.removeChild(c)};
c.onclick=function(){G.resolve(0);I()};
document.body.appendChild(c);setTimeout(function(){I();G.resolve(1)},50);
return R.return(G.promise)})};
neg=function(){var G,c,I,R,Z,K,m;return _.T(function(a){G=new _.Te;c=document.createElement("ytd-player");try{document.body.prepend(c)}catch(O){return a.return(4)}I=function(){c.parentElement&&c.parentElement.removeChild(c)};
c.getElementsByTagName("div").length>0?R=c.getElementsByTagName("div")[0]:(R=document.createElement("div"),c.appendChild(R));Z=document.createElement("div");R.appendChild(Z);K=document.createElement("video");m=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});K.src=_.By(_.CG(m));K.ontimeupdate=function(){I();G.resolve(0)};
Z.appendChild(K);K.classList.add("html5-main-video");setTimeout(function(){Z.classList.add("ad-interrupting")},200);
setTimeout(function(){I();G.resolve(1)},5E3);
return a.return(G.promise)})};
Hi0=function(G){var c=Tr0().objectRepresentation.playbackTracking;if(c){var I=[],R;I.push(c==null?void 0:(R=c.videostatsPlaybackUrl)==null?void 0:R.baseUrl);var Z;I.push(c==null?void 0:(Z=c.videostatsDelayplayUrl)==null?void 0:Z.baseUrl);var K;I.push(c==null?void 0:(K=c.videostatsWatchtimeUrl)==null?void 0:K.baseUrl);var m;I.push(c==null?void 0:(m=c.ptrackingUrl)==null?void 0:m.baseUrl);var a;I.push(c==null?void 0:(a=c.qoeUrl)==null?void 0:a.baseUrl);var O;I.push(c==null?void 0:(O=c.atrUrl)==null?
void 0:O.baseUrl);c=_.Q(I);for(I=c.next();!I.done;I=c.next())if((I=I.value)&&G.test(I))return I.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
X$p=function(G,c){var I,R;return _.T(function(Z){switch(Z.nextAddress){case 1:I=[],R=0;case 2:if(!(R<3)){Z.jumpTo(4);break}return Z.yield(fetch(G,{cache:"no-store",method:c}).then(function(K){I.push(K.status)}).catch(function(){I.push(-1)}),3);
case 3:R++;Z.jumpTo(2);break;case 4:return Z.return(I)}})};
yJg=function(G){return G.domainLookupStart===0&&G.domainLookupEnd===0&&G.connectStart===0&&G.connectEnd===0||G.duration===0};
geB=function(G,c,I){I=I===void 0?"GET":I;var R,Z,K,m,a,O,N,q,w,F;return _.T(function(n){if(n.nextAddress==1)return n.yield(Promise.all([X$p(G,I),X$p(c,I)]),2);R=n.yieldResult;Z=_.Q(R);K=Z.next().value;m=Z.next().value;a=K;O=m;if(Math.min.apply(Math,_.jn(O))!==Math.max.apply(Math,_.jn(O))||Math.min.apply(Math,_.jn(a))!==Math.max.apply(Math,_.jn(a)))return n.return(2);if(Math.min.apply(Math,_.jn(O))===Math.min.apply(Math,_.jn(a)))return n.return(1);q=(N=performance.getEntriesByName(G))==null?void 0:
N[0];F=(w=performance.getEntriesByName(c))==null?void 0:w[0];return q&&F?yJg(F)?n.return(1):yJg(q)?n.return(0):n.return(1):n.return(2)})};
bir=function(){var G;return _.T(function(c){var I=[];var R;var Z,K,m;(Z=R=(Z=Tr0().objectRepresentation.streamingData)==null?void 0:(K=Z.formats)==null?void 0:(m=K[0])==null?void 0:m.url)&&Z&&!R.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Z=Z.replace("initcwndbps","ctier=L&initcwndbps"),Z=Z.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),R={testUrl:Z,baseUrl:R,method:"GET"}):R=void 0;R&&I.push(R);_.v("ab_net_tp_e")&&I.push({testUrl:_.Rq.location.origin+"/ad_companion",baseUrl:_.Rq.location.origin+
"/generate_204",method:"OPTIONS"});_.v("ab_fix_creator_view_cnt")&&(I.length=0,(R=Hi0(/api\/stats\/atr/))&&I.push({testUrl:_.Rq.location.origin+R,baseUrl:_.Rq.location.origin+"/generate_204",method:"POST"}));_.v("ad_net_pb_pbp")&&(R=Hi0(/api\/stats\/qoe/))&&I.push({testUrl:_.Rq.location.origin+R,baseUrl:_.Rq.location.origin+"/feed/download",method:"GET"});I=I.length!==0?I[Math.floor(Math.random()*I.length)]:void 0;return(G=I)?c.return(geB(G.testUrl,G.baseUrl,G.method)):c.return(4)})};
_.zzU=function(){if(_.Rq.uOK===void 0||_.Rq.uOK===null||typeof _.Rq.uOK!=="function")return 2;try{return _.Rq.uOK()===!0?0:1}catch(G){return 0}};
Y6p=function(G){switch(G){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.H0(G,"unknown result type")}};
_.Gwr=function(G,c){var I=Number(_.H1("CATSTAT",0));if(c.pdF===void 0)return I;c=c.pdF;G=Y6p(G);return I&~(3<<c)|G<<c};
cpA=function(G){var c,I;if((G=(c=G.auxiliaryUi)==null?void 0:(I=c.messageRenderers)==null?void 0:I.bkaEnforcementMessageViewModel)&&G.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return G};
R4f=function(){for(var G=_.Q(Object.values(_.I1U)),c=G.next();!c.done;c=G.next())c=c.value,c.qC0&&c.pdF&&_.Ch("CATSTAT",_.Gwr(2,c))};
_.ND=function(G,c){G=_.OU("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",G);(c===void 0?0:c)?_.ZbB(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.ex().logFlowEvent(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
PEA=function(){if(!K2r){if(Polymer.Base){var G=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{G.apply(this,arguments)}catch(w){_.yL(w)}};
var c=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{c.apply(this,arguments)}catch(w){_.yL(w)}};
var I=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{I.apply(this,arguments)}catch(w){_.yL(w)}};
var R=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{R.apply(this,arguments)}catch(w){_.yL(w)}};
var Z=Polymer.Base._listen,K=new WeakMap;Polymer.Base._listen=function(w,F,n){var U=function(){try{n.apply(this,arguments)}catch(k){_.yL(k)}};
K.set(n,U);Z.call(this,w,F,U)};
var m=Polymer.Base._unlisten;Polymer.Base._unlisten=function(w,F,n){m.call(this,w,F,K.get(n))}}if(Polymer.Async){var a=Polymer.Async,O=a._atEndOfMicrotask;
a._atEndOfMicrotask=function(){try{O.apply(a,arguments)}catch(w){_.yL(w)}}}if(Polymer.RenderStatus){var N=Polymer.RenderStatus,q=N.afterNextRender;
N.afterNextRender=function(w,F,n){q.call(N,w,function(){try{F.apply(this,arguments)}catch(U){_.yL(U)}},n)}}K2r=!0}};
_.mFb=function(G){var c=G?_.Aw(G):"";if(c){if(c.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(c.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(c.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(c.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(c.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.v("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(c.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";c=c.toLowerCase();if(c==="/")return"home";if(c==="/channel_memberships")return"channel-memberships-shopfront";if(c.indexOf("/feed/trending")===0)return"trending";if(c.indexOf("/feed/explore")===0)return"explore";if(c.indexOf("/live")===0)return"live";if(c.indexOf("/results")===0)return"search";if(c.indexOf("/sports")===0)return"sports";if(c.indexOf("/fashion")===0||c.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(c))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(c))return _.v("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(c.indexOf("/channel/")===0||c.indexOf("/user/")===0||c.indexOf("/gaming")===0||c.indexOf("/post/")===0)return"channel";if(QUr(G))return"show";if(c==="/playlist"||c.indexOf("/playlist/")===0||c==="/view_play_list"||c.indexOf("/view_play_list/")===0||c.indexOf("/show/")===0)return"playlist";if(c==="/companion_canvas")return"companion-canvas";if(c==="/feed/history"||
c.indexOf("/feed/history/")===0)return"history";if(c==="/new")return"labs";if(c==="/feed/subscriptions")return"subscriptions";if(c.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(c==="/history_controls")return"standalone";if(c.indexOf("/account")===0||c==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(c.indexOf("/paid_memberships")===0||c.indexOf("/refund")===0||c.indexOf("/purchases")===0||c.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(c.indexOf("/product")===
0)return"yts-products";if(c.indexOf("/premium")===0||c.indexOf("/musicpremium")===0)return c.indexOf("/premium/offers")===0||c.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(c==="/cart/checkout"||c==="/cart")return"ypc-checkout";if(c.indexOf("/reporthistory")===0)return _.v("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(c.indexOf("/feed/downloads")===0||c.indexOf("/redeem")===0)return"browse";if(c.indexOf("/hashtag")===0)return"hashtag-landing-page";if(c.indexOf("/handle")===
0)return"handle";if(c.indexOf("/source")===0)return"audio-pivot";if(c.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(c.indexOf("/playables")===0)return"playables";if(c.indexOf("/create/live/join")===0)return"open-in-app";if(c.indexOf("/shorts")===0)return"shorts";if(c.indexOf("/feed/channels")===0)return"subscriptions-channels";var I=G?_.Aw(G):"";I&&I.indexOf("/watch")===0&&_.v("web_watch_enable_learning_journey")?(G=_.QU(G),G=!!G.list&&G.list.indexOf("LJPP")===0):G=!1;if(G)return"learning_journey_watch";
if(_.v("enable_new_page_subtypes_for_ai_companion")&&c==="/feed/courses")return"your-courses"}};
_.lu=function(G){var c,I;(G=(I=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?void 0:I.url)&&(c=_.mFb(G));return c};
QUr=function(G){var c=G?_.Aw(G):"";if(!c)return!1;c=c.toLowerCase();return c.indexOf("/show/")===0||c.indexOf("/playlist")===0&&(G=_.QU(G),G.list&&G.list.indexOf("EL")===0)?!0:!1};
FN=function(G){var c="unknown",I;var R=((I=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?void 0:I.webPageType)||"";R?(I=R.toLowerCase(),I.startsWith("web_page_type_")&&(I=I.slice(14))):I=R;I&&a1r[I.toUpperCase()]?c=a1r[I.toUpperCase()]:_.D(G,_.qD)||_.D(G,TEp)?c="browse":_.D(G,_.wn)?c="search":_.D(G,_.fR)&&(c="watch");c==="watch"&&_.lu(G||null)==="learning_journey_watch"&&(c="learning_journey_watch");c==="unknown"&&_.Ck(Error("Tf`"+JSON.stringify({clickTrackingParams:G==null?void 0:G.clickTrackingParams,
commandMetadata:G==null?void 0:G.commandMetadata,allEndpointKeys:Object.keys(G||[])})));return c};
_.nE=function(G){if(!_.Obi||G)_.Obi=_.p8();return _.Obi};
_.e40=function(G){return!!_.D(G,_.fR)||!!_.D(G,_.vH)&&_.v("kevlar_enable_shorts_prefetch")};
_.NEb=function(G,c){G=_.D(G,_.fR)||_.D(G,_.vH);return"v"+G.videoId+(G.playlistId?"-pl"+G.playlistId:"")+(c?"-an1":"")+(G.params?"-pr"+G.params:"")};
_.l1p=function(G){var c=new Db(_.H1("ONE_PICK_URL",""));c.urlParamMap_.set("hostId",G);(G=_.H1("GAPI_LOCALE"))&&c.urlParamMap_.set("hl",G);(G=_.H1("SESSION_INDEX"))&&c.urlParamMap_.set("authuser",G);(G=_.H1("DELEGATED_SESSION_ID"))&&c.urlParamMap_.set("groupId",G);return c};
whr=function(){var G=_.wH(),c=G.resolve(_.oI);G=G.resolve(_.UU);return new qyO(c,G)};
ny0=function(G){if(window.IntersectionObserver)return new F2r(G,400);throw new TypeError("Vf");};
DFT=function(){var G=Hammer.TouchAction,c=G.prototype.preventDefaults;G.prototype.preventDefaults=function(I){var R=this.actions.indexOf("pan-down")>-1;if(!R)return c.call(this,I);if(!vyC){var Z=I.srcEvent;I=I.direction;var K;if((K=this.manager)==null?0:K.session.prevented)Z.preventDefault();else if(R&&I&Hammer.DIRECTION_DOWN)return this.preventSrc(Z)}}};
oyB=function(G){if(!G||G.size===0)return Hammer.DIRECTION_ALL;if(G.size===2){if(G.has("up")&&G.has("down"))return Hammer.DIRECTION_VERTICAL;if(G.has("right")&&G.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(G.size===1){if(G.has("up"))return Hammer.DIRECTION_UP;if(G.has("down"))return Hammer.DIRECTION_DOWN;if(G.has("right"))return Hammer.DIRECTION_RIGHT;if(G.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.uhB=function(){return UFB?Promise.resolve(UFB):new Promise(function(G,c){var I=self.indexedDB.open("swpushnotificationsdb");I.onerror=c;I.onsuccess=function(){var R=I.result;if(R.objectStoreNames.contains("swpushnotificationsstore"))UFB=R,G(UFB);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.uhB()};
I.onupgradeneeded=bbr})};
bbr=function(G){G=G.target.result;G.objectStoreNames.contains("swpushnotificationsstore")&&G.deleteObjectStore("swpushnotificationsstore");G.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.bu=function(G,c,I){var R=I&&I>0?I:0;I=R?Date.now()+R*1E3:0;if((R=R?_.uu.getLocalStorage():_.uu.getSessionStorage())&&window.JSON){typeof c!=="string"&&(c=JSON.stringify(c,void 0));try{R.set(G,c,I)}catch(Z){R.remove(G)}}};
_.ka=function(G){var c=_.uu.getSessionStorage(),I=_.uu.getLocalStorage();if(!c&&!I||!window.JSON)return null;try{var R=c.get(G)}catch(Z){}if(typeof R!=="string")try{R=I.get(G)}catch(Z){}if(typeof R!=="string")return null;try{R=JSON.parse(R,void 0)}catch(Z){}return R};
_.sU=function(G){try{var c=_.uu.getSessionStorage(),I=_.uu.getLocalStorage();c&&c.remove(G);I&&I.remove(G)}catch(R){}};
sUg=function(G){var c=kw0(),I;return _.T(function(R){switch(R.nextAddress){case 1:return _.s9(R,2),R.yield(G.match(c,{cacheName:"yt-appshell-assets"}),4);case 4:I=R.yieldResult;_.Pl(R,3);break;case 2:_.M3(R);case 3:return R.return(I)}})};
kw0=function(){var G=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?L2C.registration.scope:ApO;G.endsWith("/")&&(G=G.slice(0,-1));return G+"/app_shell_home"};
$Fp=function(G){G.map(function(c){return c.source}).join("|")};
_.Syb=function(G){return _.T(function(c){return c.return(sUg(G))})};
phA=function(){var G=window.caches,c;return _.T(function(I){if(I.nextAddress==1)return I.yield(_.Syb(G),2);c=I.yieldResult;return I.return(!!c)})};
ibr=function(){_.T(function(G){if(G.nextAddress==1){if(M4g)return G.jumpTo(0);M4g=!0;if(_.v("enable_system_health_primes_monitoring"))return _.s2(V4f,3E4),z40(),G.return();if(!(Math.random()<_.DH("web_system_health_fraction")))return G.jumpTo(0);Eyp={heightPixels:screen.height,widthPixels:screen.width};LE&&!isNaN(LE.jsHeapSizeLimit)&&(Eyp.memoryTotalKbytes=String(Math.round(LE.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Eyp.devicePixelRatio=window.devicePixelRatio);return G.yield(Jpr(),4)}_.s2(V4f,
3E4);return G.yield(W20(),0)})};
Jpr=function(){return _.T(function(G){if(G.nextAddress==1)return Ai.intersectionObserverPresent="IntersectionObserver"in window,Ai.serviceWorkerPresent="serviceWorker"in navigator,Ai.webSharePresent="share"in navigator,Ai.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Ai.cacheStoragePresent="caches"in window,Ai.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Ai.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Ai.webkitTemporaryStoragePresent="webkitTemporaryStorage"in $a&&$a.webkitTemporaryStorage&&"queryUsageAndQuota"in $a.webkitTemporaryStorage,Ai.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",G.yield(ufC(),2);Ai.indexedDbPresent=G.yieldResult;Ai.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Ai.broadcastChannelPresent="BroadcastChannel"in window;Ai.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Ai.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Ai.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Vp(G)})};
V4f=function(){var G=9E4+Math.random()*2E3;_.wj()>G||(_.v("enable_system_health_primes_monitoring")?z40():W20())};
W20=function(){var G;return _.T(function(c){if(c.nextAddress==1)return c.yield(f1g(),2);G=c.yieldResult;_.x7("systemHealthCaptured",G);_.Vp(c)})};
z40=function(){var G={metric:{}},c=BE8();c.networkEvents.length&&(G.metric.networkEvents=rpA(c));_.x7("systemHealthCaptured",G)};
f1g=function(){var G,c,I,R,Z,K,m,a,O,N;return _.T(function(q){switch(q.nextAddress){case 1:G={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};c=window.screen;_.v("enable_is_extended_monitoring")&&c&&"isExtended"in c&&(G.isExtended=!!c.isExtended);I={metric:{staticContext:Eyp,dynamicContext:G,webMetric:jUr,webApiSupport:Ai}};
if(R=_.k0())I.csn=R;LE&&(I.metric.webMetric.currentHeapKbytes=Math.round(LE.usedJSHeapSize/1E3));window.matchMedia&&(I.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,I.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,I.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in $a&&typeof $a.getBattery==="function")){q.jumpTo(2);break}return q.yield($a.getBattery(),3);case 3:if(Z=
q.yieldResult)I.metric.dynamicContext.chargingStatus=Z.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(I.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Ai.storageEstimatePresent)return q.yield(navigator.storage.estimate(),8);if(!Ai.webkitTemporaryStoragePresent){q.jumpTo(5);break}return q.yield(xFT(),7);case 7:K=q.yieldResult;q.jumpTo(5);break;case 8:K=q.yieldResult;case 5:return I.metric.dynamicContext.deviceStorageQuotaMbytes=((m=K)==null?0:m.quota)?String(Math.round(K.quota/
1048576/10)*10):"-1",I.metric.dynamicContext.deviceStorageUsageMbytes=((a=K)==null?0:a.usage)?String(Math.round(K.usage/1048576/10)*10):"-1",O=I.metric.dynamicContext,q.yield(phA(),9);case 9:return O.hasAppShell=q.yieldResult,N=BE8(),N.networkEvents.length&&(I.metric.networkEvents=rpA(N)),q.return(I)}})};
xFT=function(){return new Promise(function(G){var c;Ai.webkitTemporaryStoragePresent&&(c=$a.webkitTemporaryStorage)!=null&&c.queryUsageAndQuota?$a.webkitTemporaryStorage.queryUsageAndQuota(function(I,R){G({usage:I,quota:R})}):G(void 0)})};
_.Sx=function(G){G&=16777215;G=[(G&16711680)>>16,(G&65280)>>8,G&255];return t4C(G[0],G[1],G[2])};
_.pE=function(G){G=[(G&16711680)>>>16,(G&65280)>>>8,G&255,(G&4278190080)>>>24];if(!_.h4O(G,function(c){return c===(c&255)}))throw Error("Wf`"+G.join(","));
return"rgba("+G[0]+","+G[1]+","+G[2]+","+(G[3]/255).toFixed(3)+")"};
_.dFO=function(G){return[(G&16711680)>>>16,(G&65280)>>>8,G&255]};
_.CEC=function(G){G=G.map(function(c){c/=255;return c<=.03928?c/12.92:Math.pow((c+.05)/1.05,2.4)});
return G[0]*.2126+G[1]*.7152+G[2]*.0722};
MD=function(G,c){G=_.dFO(G);return"rgba("+G[0]+", "+G[1]+", "+G[2]+", "+c+")"};
VJ=function(G){return(G&4278190080)>>>24===0?MD(G,"1"):_.pE(G)};
_.Hbg=function(){try{return!!self.localStorage}catch(G){return!1}};
Yyf=function(){if(Xhg())_.Ck(Error("Xf"));else{var G=document.createElement("iframe");G.style.display="none";var c=c===void 0?window.location.href:c;var I=_.Cj(_.H1("PERSIST_IDENTITY_IFRAME_URL"));c=I?I:(new URL(c)).host.indexOf("studio")===0?_.D3(yp8,"persist_identity"):_.D3(gyi,"persist_identity");_.RE(G,1,c);G.id="persist_identity";var R;(R=document.body)==null||R.appendChild(G)}};
Xhg=function(){var G=GXr;G||(G=document.querySelector("#persist_identity"));return G};
cfq=function(){var G=!1;try{G=!!window.sessionStorage.getItem("session_logininfo")}catch(c){G=!0}return(_.H1("INNERTUBE_CLIENT_NAME")==="WEB"||_.H1("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&G};
ICB=function(G,c){if(!cfq())return!1;c||(c=_.H1("LOGIN_INFO"));return c?(G.session_logininfo=c,!0):!1};
Z00=function(G,c){G=G===void 0?!1:G;if((c===void 0||!c)&&REU!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.XG("LOG_STICKINESS",!1)){c=_.k0();var I=_.u6(),R={identityStickinessData:{initialState:REU}};c&&I&&_.tH(c,I,R)}if(c=Xhg())if(I=c.src?(new URL(c.src)).origin:"*",G){var Z;(Z=c.contentWindow)==null||Z.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(G=window.sessionStorage.getItem("session_logininfo"))){var K;(K=c.contentWindow)==null||K.postMessage({loginInfo:G},I)}};
_.ze=function(G){G=G===void 0?!0:G;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Ch("LOGIN_INFO",""),G&&window.sessionStorage.setItem("from_switch_account","1"),Z00(!0,G)}catch(c){}};
KKA=function(G){G&&(G.startsWith("https://accounts.google.com/AddSession")?_.ze():G.startsWith("https://accounts.google.com/ServiceLogin")?_.ze():G.startsWith("https://myaccount.google.com")&&_.IW(G).getPath().endsWith("/youtubeoptions")&&_.ze())};
EU=function(G,c){KKA(G);if(_.XG("LOGGED_IN",!0)&&cfq()){var I=K4U(G);I==null&&(I={});ICB(I,c)&&_.x0(G,I)}};
Pkq=function(){function G(c){for(c=c.target;c&&c.nodeName!=="A";)if(c=c.parentNode,!(c&&c instanceof HTMLElement))return;if(c&&!c.hasAttribute("download")&&c.getAttribute("rel")!=="external"&&c.href)return c.href}
document.addEventListener("mousedown",function(c){c.button!==0&&(c=G(c))&&EU(c)});
document.addEventListener("click",function(c){(c=G(c))&&EU(c)})};
aCO=function(){var G=new QXg;try{if(_.XG("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(a){G.increment(5,!1);return}if(_.H1("LOGIN_INFO")){var c=mZ8?mZ8:window.location;_.H1("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Yyf();var I=K4U(c.href);I==null&&(I={});var R=I.session_logininfo,Z=Number(window.sessionStorage.getItem("stickiness_reload")),K=R===_.H1("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Z>=2||K)Z>=2?G.increment(2,K):K?G.increment(7,K):window.sessionStorage.getItem("session_logininfo")||(G.increment(3,K),REU="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.H1("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.H1("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))G.increment(4,K),window.sessionStorage.removeItem("stickiness_reload");
else if(Z<2){window.sessionStorage.setItem("stickiness_reload",String(Z+1));var m=c.href;m=_.tO(m,"sttick");EU(m,window.sessionStorage.getItem("session_logininfo"));m=_.mb(m,{sttick:Z});G.increment(Z,K);_.ki0(c,m)}}else G.increment(6,!1)}else _.ze(!1)}catch(a){}};
_.Ji=function(G,c,I,R,Z){c=c===void 0?{}:c;I=I===void 0?"":I;R=R===void 0?window:R;G=_.aa(G,c);EU(G);I=_.dS(G+I,Z);_.ki0(R.location,I)};
TXC=function(G){if(G.urlEndpoint){if(G=_.QU(G.urlEndpoint.url),G.adurl)return lW(G.adurl)}else if(G.watchEndpoint)return"//www.youtube.com/watch?v="+G.watchEndpoint.videoId;return null};
O0U=function(G){if(!G||!G.reportingPings)return null;var c={};G.reportingPings.forEach(function(I){I.pingType in c?c[I.pingType].push(I.url):c[I.pingType]=[I.url]});
return{adpings:yOr(c)}};
_.iu=function(G){G=G===void 0?!1:G;var c=_.OC(),I="USER_INTERFACE_THEME_LIGHT";c.getFlag(165)?I="USER_INTERFACE_THEME_DARK":c.getFlag(174)?I="USER_INTERFACE_THEME_LIGHT":_.WH()&&(I="USER_INTERFACE_THEME_DARK");return G?I:eEf()||I};
_.NXB=function(){return!_.v("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.WH=function(){return _.NXB()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.fE=function(){var G=_.OC();return _.NXB()&&!G.getFlag(165)&&!G.getFlag(174)};
eEf=function(){var G=G===void 0?window.location.href:G;if(_.v("kevlar_disable_theme_param"))return null;var c=_.Aw(G);if(_.lCr(c))return"USER_INTERFACE_THEME_DARK";try{var I=_.QU(G).theme;return qET.get(I)||null}catch(R){}return null};
_.lCr=function(G){return _.v("enable_dark_theme_only_on_shorts")?!(G==null||!G.startsWith("/shorts/")):!1};
_.nvp=function(G,c,I,R,Z){c=c===void 0?!1:c;I=I===void 0?!1:I;var K=_.H1("INNERTUBE_CONTEXT");if(!K)return _.hg(Error("ag")),{};K=(0,_.rx.unsafeClone)(K);_.v("web_no_tracking_params_in_shell_killswitch")||delete K.clickTracking;K.client||(K.client={});var m=K.client;m.clientName==="MWEB"&&m.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(m.clientFormFactor=_.H1("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");m.screenWidthPoints=window.innerWidth;m.screenHeightPoints=window.innerHeight;m.screenPixelDensity=
Math.round(window.devicePixelRatio||1);m.screenDensityFloat=window.devicePixelRatio||1;m.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());m.userInterfaceTheme=_.iu();if(!c){var a=_.d2B();a&&(m.connectionType=a);_.v("web_log_effective_connection_type")&&(a=HCp())&&(K.client.effectiveConnectionType=a)}var O;if(_.v("web_log_memory_total_kbytes")&&((O=_.Rq.navigator)==null?0:O.deviceMemory)){var N;O=(N=_.Rq.navigator)==null?void 0:N.deviceMemory;K.client.memoryTotalKbytes=""+O*1E6}c&&R&&!_.v("web_it_context_set_original_url_ks")&&
(m.originalUrl=wt8(_.Rq.location.href,R).toString());_.v("web_gcf_hashes_innertube")&&(a=ZEi())&&(N=a.coldConfigData,O=a.coldHashData,a=a.hotHashData,K.client.configInfo=K.client.configInfo||{},N&&(K.client.configInfo.coldConfigData=N),O&&(K.client.configInfo.coldHashData=O),a&&(K.client.configInfo.hotHashData=a));N=_.QU(_.Rq.location.href);!_.v("web_populate_internal_geo_killswitch")&&N.internalcountrycode&&(m.internalGeo=N.internalcountrycode);!_.v("web_populate_client_screen_killswitch")&&Z&&(m.clientScreen=
Z);m.clientName==="MWEB"||m.clientName==="WEB"?(m.mainAppWebInfo||(m.mainAppWebInfo={}),m.mainAppWebInfo.graftUrl=R||_.Rq.location.href,_.v("kevlar_woffle")&&_.BH.instance&&(R=_.BH.instance,m.mainAppWebInfo.pwaInstallabilityStatus=!R.appInstalledEventFired&&R.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),m.mainAppWebInfo.webDisplayMode=XYB(),m.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):m.clientName==="TVHTML5"&&
(!_.v("web_lr_app_quality_killswitch")&&(R=_.H1("LIVING_ROOM_APP_QUALITY"))&&(m.tvAppInfo=Object.assign(m.tvAppInfo||{},{appQuality:R})),R=_.H1("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(m.tvAppInfo=Object.assign(m.tvAppInfo||{},{certificationScope:R}));!_.v("web_populate_time_zone_itc_killswitch")&&(R=tW0())&&(m.timeZone=R);(R=OCC())?m.experimentsToken=R:delete m.experimentsToken;m=ewA();R=_.FKq();R=(0,_.rx.getValues)(R.tokenJars);K.request=Object.assign({},K.request,{internalExperimentFlags:m,consistencyTokenJars:R});
!_.v("web_prequest_context_killswitch")&&(m=_.H1("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(K.request.externalPrequestContext=m);R=_.OC();m=R.getFlag(58);R=R.get("gsml","");K.user=Object.assign({},K.user);m&&(K.user.enableSafetyMode=m);R&&(K.user.lockedSafetyMode=!0);_.v("warm_op_csn_cleanup")?I&&(c=_.k0())&&(K.clientScreenNonce=c):!c&&(c=_.k0())&&(K.clientScreenNonce=c);G&&(K.clickTracking={clickTrackingParams:G});if(G=_.Yc("yt.mdx.remote.remoteClient_"))K.remoteClient=G;_.jx.getInstance().setLocationOnInnerTubeContext(K);
try{var q=U2f(),w=q.bid;delete q.bid;K.adSignalsInfo={params:[],bid:w};for(var F=_.Q(Object.entries(q)),n=F.next();!n.done;n=F.next()){var U=_.Q(n.value),k=U.next().value,p=U.next().value;q=k;w=p;G=void 0;(G=K.adSignalsInfo.params)==null||G.push({key:q,value:""+w})}var M,z;if(((M=K.client)==null?void 0:M.clientName)==="TVHTML5"||((z=K.client)==null?void 0:z.clientName)==="TVHTML5_UNPLUGGED"){var t=_.H1("INNERTUBE_CONTEXT");t.adSignalsInfo&&(K.adSignalsInfo.advertisingId=t.adSignalsInfo.advertisingId,
K.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",K.adSignalsInfo.limitAdTracking=t.adSignalsInfo.limitAdTracking)}}catch(x){_.hg(x)}return K};
_.xa=function(){return{isShellLoad:_.XG("IS_SHELL_LOAD",!1)}};
DZq=function(){navigator.serviceWorker.getRegistrations().then(function(G){G.forEach(vvU)})};
vvU=function(G){G&&_.ovA(UZq,G.scope)};
_.ovA=function(G,c){c={scope:c||_.oa("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.z6(G),c)};
ti=function(G,c,I,R){if(c&&c.serializedYpcCujLoggingParams){if(I){var Z={};Z.transactionErrorType=I;R&&(Z.errorMessage=R);c.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Z}}}I={};I.ypcCujContext=c;G=_.OU("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",G,I);_.ex().logFlowEvent(G,"FLOW_TYPE_YPC_ACQUISITION")}};
_.u_A=function(G,c,I,R){var Z={};Z.serializedTransactionFlowLoggingParams=c;I&&(Z.errorType=I);R&&(Z.errorMessage=R);_.x7(G,Z);_.tg()};
_.b0T=function(G){G&&_.u_A("transactionFlowStarted",G)};
_.kXr=function(G){G&&_.u_A("transactionFlowCancelled",G)};
_.hi=function(G,c,I){c&&_.u_A("transactionFlowFailed",c,G,I)};
sX0=function(G){var c=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");c&&(c.inert=G)};
_.dn=function(){this.megabloxUrl_=null};
_.CE=function(G){try{var c=LKr==null?void 0:LKr.composedPath(G)}catch(I){c=G.composedPath?G.composedPath():[]}return c&&c.length>0?c:G.composedPath?G.composedPath():[]};
_.HH=function(G){return _.CE(G)[0]};
XN=function(G){return G instanceof ShadowRoot?ShadowRoot:G instanceof DocumentFragment?DocumentFragment:G instanceof Document?Document:HTMLElement};
Afg=function(G){if(G instanceof Element)return Element.prototype;if(G instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+G);};
$ZC=function(G,c){return _.v("sunnydom_native_scoped_query_selectors")?Afg(G).querySelector.call(G,c):XN(G).prototype.querySelector.call(G,c)};
SE0=function(G,c){return _.v("sunnydom_native_scoped_query_selectors")?Afg(G).querySelectorAll.call(G,c):XN(G).prototype.querySelectorAll.call(G,c)};
ptp=function(G){var c,I,R;return(R=(I=(c=G.parentElement)!=null?c:G.__shady_native_parentElement)!=null?I:G.__shady_parentElement)!=null?R:null};
MSC=function(G){var c,I,R;return(R=(I=(c=G.parentNode)!=null?c:G.__shady_native_parentNode)!=null?I:G.__shady_parentNode)!=null?R:null};
VSB=function(G){var c,I,R;return(R=(I=(c=G.nextSibling)!=null?c:G.__shady_native_nextSibling)!=null?I:G.__shady_nextSibling)!=null?R:null};
zE8=function(G){var c,I,R;return(R=(I=(c=G.previousSibling)!=null?c:G.__shady_native_previousSibling)!=null?I:G.__shady_previousSibling)!=null?R:null};
Evq=function(G){var c,I,R;return(R=(I=(c=G.nextElementSibling)!=null?c:G.__shady_native_nextElementSibling)!=null?I:G.__shady_nextElementSibling)!=null?R:null};
Jf8=function(G){var c,I,R;return(R=(I=(c=G.previousElementSibling)!=null?c:G.__shady_native_previousElementSibling)!=null?I:G.__shady_previousElementSibling)!=null?R:null};
WK0=function(G){var c,I,R;return new Set([].concat(_.jn((c=G.children)!=null?c:[]),_.jn((I=G.__shady_native_children)!=null?I:[]),_.jn((R=G.__shady_children)!=null?R:[])))};
i08=function(G){var c,I,R;return new Set([].concat(_.jn((c=G.childNodes)!=null?c:[]),_.jn((I=G.__shady_native_childNodes)!=null?I:[]),_.jn((R=G.__shady_childNodes)!=null?R:[])))};
_.yJ=function(G){if(!(G instanceof Element))return null;G=G.classList?Array.from(G.classList):void 0;if(!G)return null;var c=G.indexOf("style-scope");return c>-1&&c+1<G.length?G[c+1]:null};
gn=function(G){if(!(G instanceof HTMLElement))return null;var c=G&&(G.$$||G.polymerController)?G.tagName.toLowerCase():null;return c?c:_.yJ(G)};
fC0=function(G,c){return _.v("sunnydom_native_scoped_query_selectors")?G+".style-scope."+c:G.replace(/[^a-z]*[^\s]+/g,function(I){return I+".style-scope."+c})};
BXA=function(G,c){return c?G.split(",").map(function(I){return fC0(I.trim(),c)}).join(", "):G};
_.Ya=function(G){var c,I,R,Z;return(Z=(R=(I=(c=G.root)!=null?c:G.shadowRoot)!=null?I:G.__shady_native_shadowRoot)!=null?R:G.__shady_shadowRoot)!=null?Z:G};
rfT=function(G){var c,I,R;return(R=(I=(c=G.__shady_parentNode)!=null?c:G.__shady_native_parentNode)!=null?I:G.parentNode)!=null?R:null};
jXq=function(G){var c,I;return(I=(c=MSC(G))!=null?c:G.host)!=null?I:null};
xZO=function(G){for(;G&&!(G instanceof HTMLElement);)G=jXq(G);return G};
tSp=function(G){var c=xZO(G);return G===c?_.yJ(G):c?gn(c):null};
hEg=function(G){return(G=xZO(G))?gn(G):null};
dZi=function(G){if(G instanceof Comment)return!1;if(G instanceof Text){var c,I;if(((I=(c=G.textContent)==null?void 0:c.trim())!=null?I:"")==="")return!1}return!0};
G1=function(G,c,I){var R=c(G);for(I=I===void 0?hEg(G):I;R&&(tSp(R)!==I||!dZi(R));)G=R,R=c(G);return R};
CkT=function(G,c,I){if(!c)return null;G=hEg(G);return tSp(c)===G&&dZi(c)?c:G1(c,I,G)};
H0U=function(G){return G1(G,rfT,_.yJ(G))};
Xtr=function(G){return G1(G,Evq)};
yfA=function(G){return G1(G,VSB)};
gv0=function(G){return G1(G,Jf8)};
YEO=function(G){return G1(G,zE8)};
GUi=function(G){return CkT(G,G.firstChild||null,VSB)};
cZg=function(G){var c,I,R;var Z=(R=(I=(c=G.firstElementChild)!=null?c:G.__shady_native_firstElementChild)!=null?I:G.__shady_firstElementChild)!=null?R:null;return CkT(G,Z,Evq)};
IcU=function(G){var c,I,R;var Z=(R=(I=(c=G.lastChild)!=null?c:G.__shady_native_lastChild)!=null?I:G.__shady_lastChild)!=null?R:null;return CkT(G,Z,zE8)};
RB8=function(G){var c,I,R;var Z=(R=(I=(c=G.lastElementChild)!=null?c:G.__shady_native_lastElementChild)!=null?I:G.__shady_lastElementChild)!=null?R:null;return CkT(G,Z,Jf8)};
ZgC=function(G){var c=hEg(G);return Array.from(i08(G)).filter(function(I){return tSp(I)===c})};
Kyb=function(G){var c=gn(G);return Array.from(WK0(G)).filter(function(I){return _.yJ(I)===c})};
Pjr=function(G){if(!G)return null;var c=_.yJ(G);if(!c){var I;return(I=Node.prototype.getRootNode)==null?void 0:I.call(G)}c=c.toUpperCase();for(G=ptp(G);G&&G.tagName!==c;)G=ptp(G);return G?_.Ya(G):null};
_.Rs=function(G){var c=_.v(G);XL["counterfactuals."+G]=String(c);return c};
_.Z4=function(G,c,I){if(G instanceof HTMLElement&&_.yJ(G)===I){var R=Array.from(G.classList).indexOf("style-scope");if(R===-1)G.classList.add("style-scope"),G.classList.add(c);else if(!(R+1>=G.classList.length)){R=G.classList[R+1];var Z,K;G==null||(Z=G.classList)==null||(K=Z.replace)==null||K.call(Z,R,c)}}if(G instanceof HTMLElement||G instanceof DocumentFragment)for(Z=_.Q(WK0(G)),K=Z.next();!K.done;K=Z.next())_.Z4(K.value,c,I);return G};
KH=function(G,c){if(G instanceof HTMLElement&&_.yJ(G)===c){var I=Array.from(G.classList).indexOf("style-scope");I===-1||I+1>=G.classList.length||G.classList.remove("style-scope",G.classList[I+1])}if(G instanceof HTMLElement||G instanceof DocumentFragment){I=_.Q(G.children);for(var R=I.next();!R.done;R=I.next())KH(R.value,c)}return G};
_.Q7p=function(G,c){return XN(G).prototype.appendChild.call(G,c)};
m60=function(G,c){if(G===c)return!0;G=i08(G);return Array.from(G).some(function(I){return m60(I,c)})};
_.Q1=function(G,c){if(G instanceof PB)return G;(c==null?0:c.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(G,"ownerDocument")&&Object.defineProperty(G,"ownerDocument",{get:function(){return window.document}});
return new PB(G)};
TCb=function(){var G=PB.prototype,c=[].concat(_.jn(acq?[]:["getRootNode"]),["setAttribute","removeAttribute"]);c=_.Q(c);for(var I=c.next(),R={};!I.done;R={method$jscomp$53:void 0},I=c.next())R.method$jscomp$53=I.value,G[R.method$jscomp$53]=function(Z){return function(){return this.host[Z.method$jscomp$53].apply(this.host,arguments)}}(R)};
eBA=function(){var G=PB.prototype,c=[].concat(_.jn(acq?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.jn(Ogp?[]:["querySelector","querySelectorAll"]));c=_.Q(c);for(var I=c.next(),R={};!I.done;R={method$jscomp$54:void 0},I=c.next())R.method$jscomp$54=I.value,G[R.method$jscomp$54]=function(Z){return function(){return this.root[Z.method$jscomp$54].apply(this.root,arguments)}}(R)};
qS0=function(){var G=PB.prototype,c=[].concat(_.jn(NCA?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.jn(lcb?[]:["parentNode"]));c=_.Q(c);for(var I=c.next(),R={};!I.done;R={prop$jscomp$67:void 0},I=c.next())R.prop$jscomp$67=I.value,Object.defineProperty(G,R.prop$jscomp$67,{get:function(Z){return function(){return this.host[Z.prop$jscomp$67]}}(R),
configurable:!0})};
nBq=function(){var G=PB.prototype,c=["activeElement"].concat(_.jn(NCA?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.jn(wWO?[]:["children"]),_.jn(FyB?[]:["lastChild"]));c=_.Q(c);for(var I=c.next(),R={};!I.done;R={prop$jscomp$68:void 0},I=c.next())R.prop$jscomp$68=I.value,Object.defineProperty(G,R.prop$jscomp$68,{get:function(Z){return function(){return this.root[Z.prop$jscomp$68]}}(R),
configurable:!0})};
vBp=function(){for(var G=PB.prototype,c=_.Q(["innerHTML","textContent"]),I=c.next(),R={};!I.done;R={prop$jscomp$69:void 0},I=c.next())R.prop$jscomp$69=I.value,Object.defineProperty(G,R.prop$jscomp$69,{get:function(Z){return function(){return this.root[Z.prop$jscomp$69]}}(R),
set:function(Z){return function(K){this.root[Z.prop$jscomp$69]=K}}(R),
configurable:!0})};
D6T=function(G){var c=PB.prototype;G=_.Q(Object.entries(G));for(var I=G.next(),R={};!I.done;R={fn$jscomp$403:void 0},I=G.next()){var Z=_.Q(I.value);I=Z.next().value;Z=Z.next().value;R.fn$jscomp$403=Z;c[I]=function(K){return function(){return K.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.jn(arguments)))}}(R)}};
U6q=function(){for(var G=PB.prototype,c=_.Q(Object.entries(oBb)),I=c.next(),R={};!I.done;R={fn$jscomp$404:void 0},I=c.next()){var Z=_.Q(I.value);I=Z.next().value;Z=Z.next().value;R.fn$jscomp$404=Z;Object.defineProperty(G,I,{get:function(K){return function(){return K.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.jn(arguments)))}}(R),
configurable:!0})}};
_.m9=function(G){return G instanceof u9r||G instanceof Document?G:new u9r(G)};
bgf=function(){for(var G=u9r.prototype,c=_.Q("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),I=c.next(),R={};!I.done;R={method$jscomp$55:void 0},I=c.next())R.method$jscomp$55=I.value,G[R.method$jscomp$55]=function(Z){return function(){return HTMLElement.prototype[Z.method$jscomp$55].call.apply(HTMLElement.prototype[Z.method$jscomp$55],[this.node].concat(_.jn(arguments)))}}(R)};
kUU=function(){for(var G=u9r.prototype,c=_.Q("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),I=c.next(),R={};!I.done;R={prop$jscomp$70:void 0},I=c.next())R.prop$jscomp$70=I.value,Object.defineProperty(G,R.prop$jscomp$70,{get:function(Z){return function(){var K;return(K=this.node["__shady_native_"+Z.prop$jscomp$70])!=null?K:this.node[Z.prop$jscomp$70]}}(R),
configurable:!0})};
_.as=function(G,c,I){I===void 0&&(I=!G.classList.contains(c));I?G.classList.add(c):G.classList.remove(c)};
_.T1=function(G,c,I){I===void 0&&(I=!G.hasAttribute(c));if(c==="class")throw Error("fg");I?_.m9(G).setAttribute(c,""):_.m9(G).removeAttribute(c)};
s7b=function(G){return(G.localName!=="slot"?[]:(0,_.Om)(G).assignedNodes({flatten:!0})).filter(function(c){return c.nodeType===Node.ELEMENT_NODE})};
_.LyU=function(G){return(G=_.Q1(G).querySelector("slot"))&&G.localName==="slot"?s7b(G):[]};
_.eD=function(G,c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(G,c)};
NY=function(G,c){var I=c.bind(G);return function(R){I(R,R.detail)}};
_.lO=function(G,c){var I=AZr.get(G);I||(I=new WeakMap,AZr.set(G,I));if(I.has(c))return I.get(c);if(_.v("web_fi_listen_disable_bound_fn_helper")){var R=c.bind(G);G=function(Z){R(Z,Z==null?void 0:Z.detail)}}else G=NY(G,c);
I.set(c,G);return G};
pWC=function(G,c){$6B(G);G.created[SSB].push(c)};
$6B=function(G){if(!G.created||!G.created[SSB]){var c=G.created,I=c?[c]:[];G.created=function(){for(var R=_.Q(I),Z=R.next();!Z.done;Z=R.next())Z.value.apply(this)};
G.created[SSB]=I}};
Mti=function(G){return function(){var c=_.Hy.apply(0,arguments);return function(I,R,Z){G.apply(null,_.jn(c))(I,R,Z)}}};
Vtf=function(){return function(){var G=_.Hy.apply(0,arguments);return function(c,I,R){nqC.apply(null,_.jn(G))(c,I,R)}}};
_.L=function(G){return Vtf()(G)};
_.A=function(){return Mti(U0r).apply(null,_.jn(_.Hy.apply(0,arguments)))};
_.qY=function(G){return _.v("pbcm_fi_listen_decorators")?zBA(G):Mti(D0b)(G)};
zBA=function(G){return function(c,I){pWC(c,function(){var R=this[I],Z=_.v("web_fi_listen_disable_bound_fn_helper")?function(K){R(K,K.detail)}.bind(this):NY(this,R);
EBq.has(G)?ha(this.hostElement,G,Z):this.hostElement.addEventListener(G,Z)})}};
_.wD=function(){return Mti(oqi).apply(null,_.jn(_.Hy.apply(0,arguments)))};
_.E=function(G){G=G===void 0?{}:G;return Mti(vqA)(G)};
_.FZ=function(G){if(G.hostElement&&G!==G.hostElement){var c=_.qy(G.hostElement);c=G.renderIdom?c:c.shadowRoot}c||(G=G.root,c=G instanceof Node?_.qy(G):null);return c};
_.nH=function(G){return JZb?WyO(G):function(c,I){Object.defineProperty(c,I,{get:function(){var R;return(R=_.FZ(this))==null?void 0:R.querySelector(G)},
enumerable:!0,configurable:!0})}};
WyO=function(G){return function(c,I){Object.defineProperty(c,I,{get:function(){var R,Z=(R=_.Q1(this.hostElement))==null?void 0:R.querySelector(G);if(Z)return Z;var K;return(K=_.FZ(this))==null?void 0:K.querySelector(G)},
enumerable:!0,configurable:!0})}};
_.vB=function(G){return JZb?igA(G):function(c,I){Object.defineProperty(c,I,{get:function(){var R;return(R=_.FZ(this))==null?void 0:R.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
igA=function(G){return function(c,I){Object.defineProperty(c,I,{get:function(){var R,Z=(R=_.Q1(this.hostElement))==null?void 0:R.querySelectorAll(G);if(Z==null?0:Z.length)return Z;var K;return(K=_.FZ(this))==null?void 0:K.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
fcA=function(G){return function(c){if(![_.li,_.J].includes(Object.getPrototypeOf(c.prototype).constructor))throw Error("gg");T1r(Object.assign({},typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(c)}};
_.Um=function(){var G=G===void 0?{}:G;return function(c){if(![qh,_.D4].includes(Object.getPrototypeOf(c.prototype).constructor))throw Error("hg");Omp(Object.assign({},G,{disableInheritanceCheck:!0}))(c)}};
rZB=function(G,c){BCi[G]!=null||(BCi[G]=new Set);BCi[G].add(c)};
_.uO=function(){var G=_.wD.apply(null,_.jn(_.Hy.apply(0,arguments)));return function(c,I){rZB(c.is,I);G(c,I)}};
sm=function(G,c,I){if(bO(G)&&!j7O.has(c)){c=c.replace(/^JSC\$[\d]+_/,"");c=c.replace(/\.\d+(\.|$)/g,function(K,m){return".#"+m});
kW[G]!=null||(kW[G]={});var R,Z;(R=kW[G])[Z=c]!=null||(R[Z]=new Set);kW[G][c].has(I)||(kW[G][c].add(I),_.x7("polymerPropertyAccessEvent",{componentName:G,propertyName:c,accessType:I}))}};
x60=function(){return _.v("polymer_property_access_logging_debug")||_.v("polymer_enable_property_access_logging")};
bO=function(G){if(_.v("polymer_property_access_logging_debug"))return!0;if(!_.v("polymer_enable_property_access_logging"))return!1;tt0||(tt0=Date.now());return(Vm(G)+tt0)%100<_.DH("polymer_property_access_logging_percent")};
hBg=function(G,c){return bO(c)&&G.hostElement.loggingStatus?new Proxy(G,{get:function(I,R,Z){if(I.hostElement.loggingStatus.bypassProxyController)return I[R];I.hostElement.loggingStatus.isExternalGet=!0;var K=I[R];I.hostElement.loggingStatus.isExternalGet=!1;if(K instanceof Function)return function(){var m=_.Hy.apply(0,arguments);try{return I.hostElement.loggingStatus.currentExternalCall=R,sm(c,R,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),K.apply(this===Z?I:this,m)}finally{I.hostElement.loggingStatus.currentExternalCall=
void 0}};
sm(c,R,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return K},
set:function(I,R,Z){if(I.hostElement.loggingStatus.bypassProxyController)return I[R]=Z,!0;I.hostElement.loggingStatus.isRendererStamper?sm(c,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):I.hostElement.loggingStatus.isDeclarativeExternal||sm(c,R,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{I.hostElement.loggingStatus.currentExternalSet=R,I[R]=Z}finally{I.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):G};
d6b=function(G,c){G&&G.loggingStatus&&!G.loggingStatus.isDeclarativeExternal&&!G.loggingStatus.isExternalGet&&G.loggingStatus.currentExternalSet!==c&&sm(G.tagName.toLowerCase(),c,"PROPERTY_ACCESS_GET_INTERNAL")};
LH=function(G,c,I){G&&(I||G.loggingStatus&&!G.loggingStatus.isInitializing&&!G.loggingStatus.isDefiningPropertyAccessor&&G.loggingStatus.currentExternalSet!==c)&&sm(G.tagName.toLowerCase(),c,"PROPERTY_ACCESS_SET_INTERNAL")};
Cjp=function(){return{_definePropertyAccessor:function(G,c){var I=this,R=I.hostElement.loggingStatus;R&&(R.isDefiningPropertyAccessor=!0);var Z=I[G];Z!==void 0&&(I.__data?I._setPendingProperty(G,Z):(I.__dataProto!=null||(I.__dataProto={}),I.__dataProto[G]=Z));R&&(R.isDefiningPropertyAccessor=!1);Object.defineProperty(this,G,{get:function(){d6b(I.hostElement,G);return this.__data[G]},
set:function(K){c||this._setPendingProperty(G,K,!0)&&this._invalidateProperties()}})},
created:function(){var G=this._setPendingProperty.bind(this);this._setPendingProperty=function(c,I,R){LH(this.hostElement,c);return G.apply(this,[c,I,R])}}}};
Hgr=function(G){x60()&&_.L(Ac.prototype)(G.prototype,"__templateBindingLoggingBehavior")};
XWO=function(G,c){if(c.resolvedFactories.length!==G.resolvedFactories.length)return!0;c=_.Q(c.resolvedFactories.entries());for(var I=c.next();!I.done;I=c.next()){var R=_.Q(I.value);I=R.next().value;R=R.next().value;if(R.providerClass){if(R.providerClass!==G.resolvedFactories[I].providerClass)return!0}else if(R.providerValue){if(R.providerValue!==G.resolvedFactories[I].providerValue)return!0}else if(R.factory!==G.resolvedFactories[I].factory)return!0}return!1};
yZB=function(G,c){G=_.Q(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.constructor===Array)yZB(I,c);else{var R=c;R.has(I)||(I.inject&&R.add(I),I.behaviors&&yZB(I.behaviors,R))}};
$W=function(G,c){var I=G[c];G[c]=function(){var R=_.Hy.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(I)return I.apply(this,R)}};
cD0=function(){_.SD.Class=function(I,R){I=gBb(I,R);$W(I.prototype,"created");return I};
$W(pH.prototype,"_initializeProperties");$W(_.MY.prototype,"_initializeProperties");if(YS8)$W(GxA,"created");else{var G=function(){$W(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))G();else{var c=customElements.define;customElements.define=function(I,R,Z){c.call(customElements,I,R,Z);I==="tp-yt-iron-list"&&(G(),customElements.define=c)}}}};
RIC=function(G,c){G.prototype.behaviors=G.prototype.behaviors||[];G.prototype.behaviors.unshift(IO0.InjectBehavior);G.prototype.provide=c};
_.Em=function(G){return function(c){if(!G.disableElementRegistration){G.noInjection||RIC(c,G.providers);var I=c.prototype;I.__templateHelpers||nqC(V1.prototype)(I,"__templateHelpers");I=G.is;ZPO||(ZPO=Date.now());(Vm(I)+ZPO)%100<_.DH("polymer_log_prop_change_observer_percent")&&nqC(z1.prototype)(c.prototype,"__propertyObserverObserver");c.prototype.behaviors=c.prototype.behaviors||[];c.prototype.behaviors.unshift(_.KtT.YtHostElementBehavior);Hgr(c);fcA({is:G.is,notifyObserversOnUndefined:G.notifyObserversOnUndefined!==
!1,fastInit:G.fastInit,template:G.template,disableEnforceFastDefaultValuesCheck:!0})(c)}}};
_.Jc=function(G){return _.Em({is:G.is,template:G.template,disableElementRegistration:G.disableElementRegistration,cssBuildOptOut:G.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
mJ8=function(G,c){if(PoB){G=new G;for(var I=_.Q(Object.getOwnPropertyNames(G)),R=I.next();!R.done;R=I.next())R=R.value,c[R]=G[R];for(I=c;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){R=_.Q(Object.getOwnPropertyNames(I));for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,G.hasOwnProperty(Z)||Object.defineProperty(G,Z,Qip(c,Z))}}else G.apply(c)};
Qip=function(G,c){return{get:function(){var I=G[c];return I instanceof Function?I.bind(G):I},
set:function(I){G[c]=I}}};
TRA=function(G,c){for(var I=G._noAccessors,R=_.Q(Object.getOwnPropertyNames(G)),Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,!aOi.has(Z))if(I)c[Z]=G[Z];else{var K=Object.getOwnPropertyDescriptor(G,Z);K&&(K.configurable=!0,Object.defineProperty(c,Z,K))}};
OPp=function(G,c,I){return function(R){if(I){var Z=I();R.model=Z}if(G[c])G[c](R,R.detail)}};
WB=function(G){var c=[];if(typeof G==="string")G.length>0&&c.push.apply(c,_.jn(G.split(".")));else{G=_.Q(G);for(var I=G.next();!I.done;I=G.next())I=I.value,typeof I==="string"?c.push.apply(c,_.jn(I.split("."))):c.push(I)}return c};
eIA=function(G,c){if(c[c.length-1]!=="*"&&c[c.length-1]!=="splices"){for(var I=0;I<c.length;I++){if(!G)return;G=G[c[I]]}return G}};
NRi=function(G,c){if(G.length>c.length)return!1;for(var I=0;I<G.length;I++)if(G[I]!==c[I])return!1;return!0};
qDg=function(G,c,I){if(c.type==="compute"){var R=c.getter.bind(I);var Z=c.args}else R=function(){return I[c.method.methodName].apply(I,_.jn(_.Hy.apply(0,arguments)))},Z=c.method.args;
lOC(G,c.propertyKey,R,Z,c.value)};
FtB=function(G,c){if(c.readOnly){var I=Object.getOwnPropertyDescriptor(G.model,c.propertyKey);Object.defineProperty(G.model,c.propertyKey,{get:I.get,set:function(){}});
G.model[w3f(c.propertyKey)]=I.set}};
nji=function(G,c,I){if(I){var R=c.propertyKey,Z=c.selector;c=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.jn(c.selectorArgs.map(function(K){return{type:"path",path:K}})));
lOC(G,R,function(K){var m=_.Hy.apply(1,arguments);return Z.apply(null,[I.getState()].concat(_.jn(m)))},c)}};
DJ0=function(G,c,I){var R=_.Qm(c.propertyKey)+"-changed";vj0(G,function(Z){var K={value:Z.value,queueProperty:!0};Z.path.split(".").length>1&&(K.path=Z.path);I.dispatchEvent(new CustomEvent(R,{detail:K}))},[{type:"wildcard",
path:c.propertyKey}])};
oj0=function(G,c,I){vj0(G,function(){I[c.method.methodName].apply(I,_.jn(_.Hy.apply(0,arguments)))},c.method.args)};
w3f=function(G){return"_set"+(G.charAt(0).toUpperCase()+G.slice(1))};
UJf=function(){var G,c=hy(function(I){G=I},!1);
return[G,c]};
Lt0=function(G){G=G.trim().replace(uMr,",").replace(bPg,"$1");var c=G[0];c==="-"&&(c=G[1]);if(c>="0"&&c<="9")return{type:"literal",value:Number(G)};if(c==="'"||c==='"')return{type:"literal",value:G.slice(1,-1)};if(c=G.match(kxB)){c=c[1];var I=sib[c];if(I)return{type:I,path:G.slice(0,-(c.length+1))}}return{type:"path",path:G}};
p3C=function(G){var c=G.match(ADq);if(c)return G={methodName:c[1],args:$JU},c[2].trim()&&(c=c[2].replace(SDg,"&comma;").split(","),G.args=c.map(Lt0)),G};
MwB=function(G,c,I,R){R=R===void 0?!1:R;c=_.Qm(c);var Z=zP;Z&&(I=Z(I,c,"attribute",G));iO(G,I,c,R)};
iO=function(G,c,I,R){c=VwC(c,R===void 0?!1:R);c===void 0?G.removeAttribute(I):G.setAttribute(I,c)};
VwC=function(G,c){switch(typeof G){case "object":case "function":if(G instanceof Date)return G.toString();if(G){if((c===void 0?0:c)&&!_.v("polymer_reflect_objects_as_boolean_killswitch"))return G?"":void 0;c=window.trustedTypes?window.trustedTypes.isHTML(G)||window.trustedTypes.isScript(G)||window.trustedTypes.isScriptURL(G):void 0;if(c)return G;try{return JSON.stringify(G)}catch(I){_.Ck(Error("Dg`"+G))}}break;case "boolean":return G?"":void 0;default:return G!==null&&G!==void 0?G.toString():void 0}};
zIf=function(G){if(G===void 0)throw Error("Eg");return G};
fOp=function(G,c,I,R){var Z=Ejr(R);if(Z.length){R=I;var K="property";JDr.test(I)?K="attribute":I[I.length-1]==="$"&&(I=I.slice(0,-1),K="attribute");var m=Wtb(Z);m&&K==="attribute"&&(I==="class"&&G.hasAttribute("class")&&(m+=" "+G.getAttribute(I)),iO(G,m,I));K==="attribute"&&R==="disable-upgrade$"&&G.setAttribute("disable-upgrade","");G.localName==="input"&&R==="value"&&G.setAttribute("value","");G.removeAttribute(R);K==="property"&&(I=_.mY(I));c=zIf(c);iPg(c,K,I,Z);return!0}return I.slice(0,3)===
"on-"?(G.removeAttribute(I),(K=c).events!=null||(K.events=[]),c.events.push({name:I.slice(3),value:R}),!0):I==="id"?(c.id=R,!0):!1};
Ejr=function(G){for(var c=[],I=0,R;(R=BRf.exec(G))!==null;){R.index>I&&c.push({type:"literal",value:G.slice(I,R.index)});var Z=R[1][0];I=!!R[2];R=R[3].trim();if(Z==="{")throw Error("Fg");(Z=p3C(R))?c.push({type:"method",negate:I,signature:Z}):c.push({type:"path",negate:I,path:R});I=BRf.lastIndex}I&&I<G.length&&(G=G.substring(I))&&c.push({type:"literal",value:G});return c};
Wtb=function(G){for(var c="",I=0;I<G.length;I++){var R=G[I];R.type==="literal"&&(c+=R.value)}return c};
iPg=function(G,c,I,R){G.bindings!=null||(G.bindings=[]);G.bindings.push({kind:c,target:I,parts:R})};
hIT=function(G,c,I){var R=!1;if(G.localName==="template"){R=I;var Z=c.stripWhitespace;Z=rDr(G,Z===void 0?!1:Z);var K=G.content.ownerDocument.createDocumentFragment();Z.content=K;K.appendChild(G.content);R&&(R.templateInfo=Z);R=!0}else G.localName==="slot"&&(c.hasInsertionPoint=!0);if(G.firstChild&&(Z=I,G.localName!=="script"&&G.localName!=="style")){K=0;for(var m=G.firstChild;m;){var a=m;if(a.localName==="template"){var O=a.getAttribute("is");if((m=O==="dom-if")||O==="dom-repeat"){a.removeAttribute("is");
O=a.ownerDocument.createElement("ps-"+O);a.parentNode.replaceChild(O,a);O.appendChild(a);var N=Array.from(a.attributes);N=_.Q(N);for(var q=N.next();!q.done;q=N.next())q=q.value,m?jir.has(q.name)&&iO(O,q.value,q.name):xJ8.has(q.name)?iO(O,q.value,q.name):twC.has(q.name),a.removeAttribute(q.name);m=O}else m=a}if(m.nodeType===Node.TEXT_NODE){a=void 0;O=G;for(N=m;((a=N.nextSibling)==null?void 0:a.nodeType)===Node.TEXT_NODE;)q=void 0,(q=N).textContent!=null||(q.textContent=""),N.nextSibling.textContent&&
(N.textContent+=N.nextSibling.textContent),O.removeChild(N.nextSibling);if(c.stripWhitespace&&m.textContent&&!m.textContent.trim()){G.removeChild(m);m=m.nextSibling;continue}}hIT(m,c,{parentIndex:K,parentInfo:Z});m.parentNode&&K++;m=m.nextSibling}}var w;if((w=G.hasAttributes)==null?0:w.call(G)){w=I=zIf(I);Z=!1;K=Array.from(G.attributes);K=_.Q(K);for(a=K.next();!a.done;a=K.next())a=a.value,Z=fOp(G,w,a.name,a.value)||Z;R=Z||R}G.nodeType===Node.TEXT_NODE&&(w=Ejr(G.textContent),w.length&&(G.textContent=
Wtb(w)||" ",I=zIf(I),iPg(I,"text","textContent",w),R=!0));I&&R&&(I.infoIndex=c.nodeInfoList.push(I)-1)};
rDr=function(G,c){c={nodeInfoList:[],stripWhitespace:(c===void 0?!1:c)||G.hasAttribute("strip-whitespace")};hIT(G.content,c);return c};
dJr=function(G){Object.assign(G,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
HP8=function(G,c,I){c.signalCache!=null||(c.signalCache={});var R=c.signalCache[I];if(!R){var Z=I.split(".");R=!CoU(G,Z[0]);if(Z.length>1&&R){var K=G.getPathMutationSignal(Z);R=function(){var m=Ct(G.owner,function(){return G.getWithPath([Z[0]])}),a,O=(a=K())==null?void 0:a.value;
return{rootWasDefined:m!==void 0,value:O}}}else R=function(){var m=G.getWithPath(Z);
return{rootWasDefined:m!==void 0,value:m}};
c.signalCache[I]=R}return R()};
yDA=function(G,c,I,R,Z){c=c.parts.map(function(m,a){if(m.type==="literal"){I.partWasDefined!=null||(I.partWasDefined=[]);var O;(O=I.partWasDefined)[a]||(O[a]=m.value!==void 0);return m.value}var N;if(m.type==="method"){var q,w=(q=(N=I.partWasDefined)==null?void 0:N[a])!=null?q:!1;w||(w=m.signature.args.every(function(U){return U.type==="literal"}));
var F=!1,n=!0;N=m.signature.args.map(function(U){if(U.type==="literal")return U.value;if(U.type!=="path")throw Error("Gg`"+U.type);var k=HP8(G,I,U.path);U=k.value;k=k.rootWasDefined;F||(F=k);n&&(n=k);return U});
w||(w=Z===1?n:F);I.partWasDefined!=null||(I.partWasDefined={});I.partWasDefined[a]=w;if(!w)return;N=(a=HP8(G,I,m.signature.methodName).value)&&typeof a==="function"?a.apply(R,N):void 0}else q=HP8(G,I,m.path),N=q.value,I.partWasDefined!=null||(I.partWasDefined={}),(w=I.partWasDefined)[a]||(w[a]=N!==void 0||q.rootWasDefined);m.negate&&(N=!N);return N});
if(c.length===1){var K;return((K=I.partWasDefined)==null?0:K[0])?c[0]:X3g}return c.join("")};
gji=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G&&"canNotifyPath"in G};
YDr=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G};
Ghf=function(G){return"polymerController"in G};
cSp=function(G,c){c=""+WB(c)[0];if(gji(G))return G.canNotifyPath(c);if(Ghf(G)&&gji(G.polymerController))return G.polymerController.canNotifyPath(c);if(YDr(G)){var I;return!((I=G.properties)==null||!I[c])}if(Ghf(G)&&YDr(G.polymerController)){var R;return!((R=G.polymerController.properties)==null||!R[c])}return!1};
IKp=function(G,c,I){gji(G)||YDr(G)?G.notifyPath(c,I):Ghf(G)&&(gji(G.polymerController)||YDr(G.polymerController))&&G.polymerController.notifyPath(c,I)};
ZoB=function(G,c,I){if(I!==X3g){G.kind==="attribute"||G.target!=="textContent"&&(G.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(I=I===void 0?"":I);var R,Z=(R=Rvr.Polymer)==null?void 0:R.sanitizeDOMValue;Z&&(I=Z(I,G.target,G.kind,c));if(G.kind==="attribute"){G=G.target;if(G==="class"||G==="name"||G==="slot")c=(0,_.Om)(c);iO(c,I,G)}else if(G=G.target,I!==c[G]||typeof I==="object")c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!0,sm(c.localName,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
c[G]=I,c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!1)}};
KkU=function(G,c,I,R){var Z=c.parts[0];if(c.parts.length!==1||Z.type!=="path"||!cSp(I,c.target))return!1;var K=_.Q(Z.path.split(".")),m=K.next().value,a=Qg(K);if(CoU(G,m))return!1;R.signalCache!=null||(R.signalCache={});K=R.signalCache[Z.path];var O;K=(O=K)==null?void 0:O().value;if((K==null?void 0:K.path)!==void 0){R=WB(K.path);var N=WB(Z.path);R=[c.target].concat(_.jn(R.slice(N.length-1)));IKp(I,R,Z.negate?!K.value:K.value);return!0}var q=fH(G,m);var w=q.getChangeRecordSignal(a),F=!1;K=function(){if(!F){var U=
Ct(G.owner,function(){return q.getWithPath([])});
F||(F=U!==void 0)}return{value:w(),rootWasDefined:F}};
R.signalCache[Z.path]=K;R.partWasDefined!=null||(R.partWasDefined={});K=K();(N=R.partWasDefined)[0]||(N[0]=K.rootWasDefined);var n=Ct(G.owner,function(){return q.getWithPath(a)});
R.partWasDefined[0]&&Ct(G.owner,function(){return void ZoB(c,I,Z.negate?!n:n)});
return!0};
PSp=function(G,c,I,R,Z,K){if(!KkU(G,c,I,R)){var m=yDA(G,c,R,Z,K);Ct(G.owner,function(){return void ZoB(c,I,m)})}};
Qc8=function(G,c,I,R,Z,K){I=_.Q(I);for(var m=I.next(),a={};!m.done;a={infoIndex:void 0},m=I.next()){m=m.value;var O=m.bindings;a.infoIndex=m.infoIndex;m=m.parentInfo;if(O){O=_.Q(O);for(var N=O.next(),q={};!N.done;q={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},N=O.next()){q.b$jscomp$257=N.value;if(a.infoIndex===void 0)throw Error("Hg");q.bindingCtx$jscomp$4={};G.effect(function(w,F){return function(){Z&&!Z()||PSp(G,w.b$jscomp$257,c[F.infoIndex],w.bindingCtx$jscomp$4,R,K)}}(q,a))}}m&&Qc8(G,c,[m],
R,Z,K)}};
mWO=function(G,c){G=(c.parentInfo?mWO(G,c.parentInfo):G).firstChild;for(var I=0;G;G=G.nextSibling)if(c.parentIndex===I++)return G;throw Error("Ig");};
TWp=function(G,c,I,R){G=document.importNode(G.content,!0);G.__noInsertionPoint=!(R==null?0:R.hasInsertionPoint);for(var Z=Array(c.length),K={},m=0;m<c.length;m++){var a=c[m],O=mWO(G,a);Z[m]=O;a.id&&(K[a.id]=O);if(a.templateInfo){var N=O.parentElement;N&&(N.templateInfo=a.templateInfo,N.parentSignalProxy=I,N.eventListenerHost=R.eventListenerHost,N.stampingEnabled=R.enabledSignal)}N=void 0;if((N=a.events)==null?0:N.length)for(N=0;N<a.events.length;N++){var q=a.events[N];aKr(R.eventListenerHost,O,q.name,
q.value,R.getModel)}}Qc8(I,Z,c,R.thisCtx,R.enabledSignal,R.methodInvocationRequirement);return{root:G,nodes:Z,nodesById:K}};
evA=function(G,c){G=G();var I;(I=Ooq.ShadyCSS)==null||I.prepareTemplate(G,c);c=rDr(G);return{template:G,nodeInfoList:c.nodeInfoList,hasInsertionPoint:c.hasInsertionPoint}};
qvq=function(){NWB=!1;for(var G=BB.length,c=0;c<G;c++){var I=BB[c];if(I)try{I()}catch(R){Promise.resolve().then(function(){throw R;})}}BB.splice(0,G);
lKb+=G};
v_i=function(G){NWB||(NWB=!0,w2p.textContent=(FkO++).toString());BB.push(G);return n_O++};
_.xW=function(G,c,I){rD++;G=c?new DW8(rD,G,c,I):new o_B(rD,G);jD.set(rD,G);return rD};
UWB=function(G){(G=jD.get(G))&&G.cancel()};
boB=function(G,c){G=uSA.get(G);return G?(c=G.get(c))?c:null:null};
_.tc=function(G,c,I,R){var Z=boB(G,c);if(!Z){Z=new khg;var K=uSA.get(G);K||(K=new Map,uSA.set(G,K));K.set(c,Z)}G=I.bind(G);Z.run(G,R,void 0)};
_.scO=function(G,c){var I;(I=boB(G,c))==null||I.cancel()};
Lkq=function(G){var c;(c=boB(G,"doRender"))==null||c.flush()};
hc=function(G){var c;return(c=G.hostElement)!=null?c:G};
AST=function(G){var c=G.indexOf(".");return c===-1?G:G.slice(0,c)};
$Wi=function(G,c,I,R,Z,K){K=(Z=(R=K?AST(c):c)?c:null)?G.get(Z):G.__data[c];Z&&K===void 0&&(K=I[c]);_.Xl(G.hostElement,Iuq(R)+"-changed",{value:K,queueProperty:!0,path:Z!=null?Z:void 0},{bubbles:!1,composed:!1})};
Svr=function(G,c){G.__isReflecting=!0;MwB(G.hostElement,c,G.__data[c]);G.__isReflecting=!1};
p2O=function(G){if(G._onIronRequestResizeNotifications){var c=G._onIronRequestResizeNotifications.bind(G);G._onIronRequestResizeNotifications=function(I){_.HH(I)!==G.hostElement&&c(I)}}G._ariaActiveAttributeChanged&&(G._ariaActiveAttributeChanged=G._ariaActiveAttributeChanged.bind(G.hostElement));
G._activeChanged&&(G._activeChanged=function(I){G.toggles?iO(G.hostElement,I?"true":"false",G.ariaActiveAttribute):G.hostElement.removeAttribute(G.ariaActiveAttribute);G._changedButtonState()});
G._asyncClick&&(G._asyncClick=function(){_.xW(function(){G.hostElement.click()},1)});
!G.keyEventTarget||G.keyEventTarget instanceof EventTarget||(G.keyEventTarget=hc(G.keyEventTarget));G._disabledChanged&&(G._disabledChanged=G._disabledChanged.bind(G.hostElement));G._observeItems&&(G._observeItems=function(I){var R=hc(I);return _.qy(R).observeNodes(function(Z){G._updateItems();G._updateSelected();_.Xl(R,"iron-items-changed",Z,{bubbles:!1,cancelable:!1})})});
G._updateItems&&G._updateItems===_.dD._updateItems&&(G._updateItems=function(){var I=_.qy(G.hostElement).queryDistributedElements(G.selectable||"*");I=Array.prototype.filter.call(I,G._bindFilterItem);G._setItems(I)});
G._computeKeyboardClass&&(G._computeKeyboardClass=function(I){_.as(G.hostElement,"keyboard-focus",I)});
G.ensureRipple&&(G.ensureRipple=function(I){if(G.hasRipple&&!G.hasRipple()){if(!G._createRipple)return;G._ripple=G._createRipple();G._ripple.noink=G.noink;var R=G._rippleContainer||G.hostElement;R&&_.Q1(R).appendChild(G._ripple)}var Z;if(I&&((Z=G._ripple)==null?0:Z.uiDownAction)){R=_.Q1(G._rippleContainer||G.hostElement);var K;Z=(K=I.composedPath())==null?void 0:K[0];R.contains(Z)&&G._ripple.uiDownAction(I)}});
G._updateMultiselectable&&(G._updateMultiselectable=function(I){I?G.hostElement.setAttribute("aria-multiselectable","true"):G.hostElement.removeAttribute("aria-multiselectable")})};
Mff=function(G,c,I){I=_.Q(I);for(var R=I.next();!R.done;R=I.next())mJ8(R.value.constructor,G);mJ8(c.constructor,G)};
zvp=function(G,c){G=_.Q(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.type==="signal"){var R=I.propertyKey;if(c.hasOwnProperty(R)&&c[R]!=null&&I.attributeType===Object){a:{R=c[R].constructor;for(var Z=_.Q(VfU),K=Z.next();!K.done;K=Z.next())if(K=K.value,R===K){R=K;break a}R=Object}I.attributeType=R}}};
E_r=function(){};
JSb=function(G){var c;return(c=G.hostElement)!=null?c:G};
WkA=function(){throw Error("Mg");};
ioC=function(G,c){G.constructor.prototype.useSignals=!0;var I=new G.constructor;Mff(I,G,c.behaviors);zvp(c.reactiveSchemas,I);I={};for(var R=_.Q(c.reactiveSchemas),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.type==="signal"&&(I[Z.propertyKey]=Z.attributeType);var K={copyPropertiesToProto:WkA,didRegister:!1,typesForSignals:I},m=["disable-upgrade"].concat(_.jn(c.observedAttributes)),a=function(O){CH.call(this,G,c,K,O)};
_.u(a,CH);_.Nh.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return m}}});
K.copyPropertiesToProto=function(){for(var O=0;O<c.behaviors.length;O++)TRA(c.behaviors[O],a.prototype);TRA(G,a.prototype)};
c.legacyOptimizations||K.copyPropertiesToProto();a.prototype.is=G.is;return a};
fKf=function(G,c){if(Object.getPrototypeOf(c.prototype).constructor!==_.J)throw Error("Ng");c.prototype.is=G.is;return ioC(c.prototype,G)};
BWO=function(G){return G.type==="compute"||G.type==="computeWithMethod"};
rSB=function(G){for(var c=G.reactiveSchemas.filter(BWO),I=new Map,R=new Map,Z=new Map,K=_.Q(c),m=K.next();!m.done;m=K.next())m=m.value,I.set(m.propertyKey,m),R.set(m.propertyKey,[]),Z.set(m.propertyKey,0);K=0;c=_.Q(c);for(m=c.next();!m.done;m=c.next()){m=m.value;for(var a=_.Q(m.type==="computeWithMethod"?m.method.args:m.args),O=a.next();!O.done;O=a.next())O=O.value,O.type!=="literal"&&(O=O.path.split(".")[0],R.has(O)&&(R.get(O).push(m.propertyKey),Z.set(m.propertyKey,Z.get(m.propertyKey)+1),K++))}m=
[].concat(_.jn(R.keys())).filter(function(N){return Z.get(N)===0});
for(c=[];m.length;)for(a=m.shift(),c.push(I.get(a)),a=_.Q(R.get(a)),O=a.next();!O.done;O=a.next())O=O.value,Z.set(O,Z.get(O)-1),K--,Z.get(O)===0&&m.push(O);I=G.reactiveSchemas.filter(function(N){return!BWO(N)});
G.reactiveSchemas=[].concat(_.jn(I),_.jn(c))};
jcU=function(G,c){if(c.properties)for(var I=_.Q(Object.entries(c.properties)),R=I.next();!R.done;R=I.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;G.properties[R]=typeof Z==="function"?{type:Z}:Z}c.observers&&G.observers.push.apply(G.observers,_.jn(c.observers));c.disabledPolySiReactions&&G.disabledPolySiReactions.push.apply(G.disabledPolySiReactions,_.jn(c.disabledPolySiReactions))};
xWf=function(G,c){for(var I=c.length-1;I>=0;I--){var R=c[I];Array.isArray(R)?xWf(G,R):G.indexOf(R)<0&&G.unshift(R)}};
tff=function(G,c){G.reactiveSchemas=G.reactiveSchemas.filter(function(I){return I.type==="observe"&&c.includes(I.method.methodName)||BWO(I)&&c.includes(I.propertyKey)?!1:!0})};
dWC=function(G,c){var I=c.prototype,R,Z,K={is:G.is,reactiveSchemas:[],observedAttributes:[],behaviors:[IO0.InjectBehavior,V1.prototype],disableElementRegistration:G.disableElementRegistration,provide:(R=G.providers)!=null?R:[],reactivityMode:G.reactivityMode,signalProperties:(Z=I.signalProperties)!=null?Z:[]};"template"in c?K.templateGetter=function(){return c.template}:G.getTemplate&&(K.templateGetter=G.getTemplate);
I.behaviors&&xWf(K.behaviors,I.behaviors);hvb(K,c);return K};
hvb=function(G,c){for(var I=c.prototype,R={properties:{},observers:[],disabledPolySiReactions:[]},Z=_.Q(G.behaviors),K=Z.next();!K.done;K=Z.next())jcU(R,K.value);jcU(R,I);if(G.signalProperties)for(I=_.Q(G.signalProperties),Z=I.next();!Z.done;Z=I.next())delete R.properties[Z.value];I=_.Q(Object.entries(R.properties));for(Z=I.next();!Z.done;Z=I.next()){K=_.Q(Z.value);Z=K.next().value;K=K.next().value;var m=void 0;if((m=G.signalProperties)==null||!m.includes(Z)){m=void 0;var a=G,O=K.type;if(!O)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{O=Reflect.getMetadata("design:type",c,Z);for(var N=_.Q(CSO),q=N.next();!q.done;q=N.next())if(q=q.value,O===q){O=q;break a}O=Object}else O=String;K.computed||K.selector||(a.reactiveSchemas.push({type:"signal",propertyKey:Z,value:K.value,attributeType:O,readOnly:K.readOnly}),a.observedAttributes.push(_.Qm(Z)));K.reflectToAttribute&&a.reactiveSchemas.push({type:"reflect",propertyKey:Z});if(K.computed){O=p3C(K.computed);if(!O)throw Error("Og");a.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Z,method:O,value:K.value})}K.observer&&a.reactiveSchemas.push({type:"observe",method:{methodName:K.observer,args:[{type:"path",path:Z}]}});K.notify&&a.reactiveSchemas.push({type:"notify",propertyKey:Z});K.selector&&a.reactiveSchemas.push({type:"redux",propertyKey:Z,selector:K.selector,selectorArgs:(m=K.selectorArgs)!=null?m:[]})}}Hog&&rSB(G);c=_.Q(R.observers);for(Z=c.next();!Z.done;Z=c.next())I=G,Z=Z.value,(K=p3C(Z))?I.reactiveSchemas.push({type:"observe",method:K}):console.log('Warning: unable to parse observe declaration: "'+
Z+'"');tff(G,R.disabledPolySiReactions)};
X2b=function(G,c){for(var I=0;I<c.length;I++){var R=c[I],Z=void 0;(Z=R).showHideApi!=null||(Z.showHideApi={});Z=void 0;!!G!==!((Z=R.showHideApi)==null||!Z.hideTemplateChildren)&&(R.nodeType===Node.TEXT_NODE?G?(R.showHideApi.polymerTextContent=R.textContent,R.textContent=""):(Z=void 0,R.textContent=(Z=R.showHideApi.polymerTextContent)!=null?Z:null):R instanceof Element&&R.localName==="slot"?G?(R.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Om)((0,_.Om)(R).parentNode).replaceChild(R.showHideApi.polymerReplaced,
R)):(Z=R.showHideApi.polymerReplaced)&&(0,_.Om)((0,_.Om)(Z).parentNode).replaceChild(R,Z):R instanceof HTMLElement&&R.style&&(G?(R.showHideApi.polymerDisplay=R.style.display,R.style.display="none"):R.style.display=R.showHideApi.polymerDisplay));R.showHideApi.hideTemplateChildren=G;R.showHideChildren&&R.showHideChildren(G)}};
g_B=function(){if(!ySB){var G=document.createElement("style");G.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(G);ySB=!0}};
HB=function(){return _.v("disable_hidden_dom_if_using_stamper")};
YvA=function(G,c){var I=_.XZ().getState();return c?G.apply(null,[I].concat(_.jn(c))):G(I)};
I_0=function(){if(GqC)return GqC;var G=_.Q(_.ks(0,void 0,"MB1Hb")),c=G.next().value;G.next();var I=G.next().value;_.XZ().subscribe(function(){cBf(I)});
return GqC=c};
cBf=function(G){RWb||(RWb=!0,Promise.resolve().then(function(){G(function(c){return c+1});
RWb=!1}))};
_.XZ=function(){return Zrg.getAppStore()};
K0b=function(G,c){return Zrg.getSelectFn()(G,c)};
_.y1=function(G){Zrg.getDispatchFn()(G)};
PhO=function(G,c){var I={},R;for(R in G)I[R]=c(G[R],R);return I};
_.gD=function(G,c){return function(){var I;return(I=_.dN(G))!=null?I:c}};
_.YW=function(G,c){var I=Object.assign({},G),R;for(R in c)c.hasOwnProperty(R)&&(I[R]=_.gD(G[R],c[R]));return I};
Q4b=function(G,c,I,R){G instanceof Element&&(I.debugName||(I.debugName="<"+G.tagName.toLowerCase()+(G.tagName.includes("-")?">":"."+G.className+">")),_.v("ytwiz_enable_debug_component_props")&&(G.debugProps||(G.debugProps=PhO(c,function(Z){return function(){return Z()}})),c.data===void 0||"data"in G&&!G.isWebComponentWrapper||Object.defineProperty(G.debugProps,"data",{get:function(){return _.dN(c.data)},
set:function(Z){var K;R==null||(K=R.data)==null||K.call(R,Z)},
enumerable:!0,configurable:!0})))};
_.Gz=function(G,c){if(G.length===0&&(c==null||!c.initial))return lqA(G,{debugName:c==null?void 0:c.debugName},"j");var I=_.Q(lqA({source:function(){return G()},
computation:function(K,m){return(m==null?0:m.value)?G(m.value):(c==null?0:c.initial)?G(c.initial):K}},{debugName:c==null?void 0:c.debugName},"k")),R=I.next().value,Z=I.next().value;
I=I.next().value;return[R,Z,I]};
_.W=function(G,c){var I=function(R){return Hd("ytComponent",{},function(Z){var K=mcb={};var m;if(((m=I)==null?0:m.idomCompat)&&R.renderedFromIdom){var a;m=typeof I.idomCompat==="object"?(a=I)==null?void 0:a.idomCompat.callbacks:{};m=_.Q(a_O(R,m));a=m.next().value;var O=m.next().value;m=m.next().value;var N=TTb(G,a);K.privateValue=N;mcb=void 0;Q4b(N,a,I,O);Z.addAttributes({debugName:I.debugName});Z=uu8(N);Z=Array.isArray(Z)?Z[0]:Z;Z[Lh]||(Z[Lh]={});Z[Lh].updateSignalsFromIdomProps=m;OrT(a,N);return N}m=
PhO(R,eW0);a=TTb(G,m);Q4b(a,m,I);K.privateValue=a;mcb=void 0;Z.addAttributes({debugName:I.debugName});OrT(m,a);return a})};
I.debugName=c===void 0?"":c;return I};
TTb=function(G,c){G=G(c);return ph(G)};
NTA=function(G,c){G[c]||(G=new _.iW("IDOM interop setter undefined. Key:",c),_.hg(G))};
eW0=function(G,c){return c==="children"||c==="ref"||typeof G==="function"||G===void 0?G:function(){return _.dN(G)}};
a_O=function(G,c){var I={},R={},Z={},K={},m;for(m in G){K={key$jscomp$952:K.key$jscomp$952};K.key$jscomp$952=m;var a=G[K.key$jscomp$952];if(K.key$jscomp$952==="children"||K.key$jscomp$952==="ref")I[K.key$jscomp$952]=a;else if(typeof a==="function")if(K.key$jscomp$952 in c||a.length>0)Z[K.key$jscomp$952]=a,I[K.key$jscomp$952]=function(N){return function(){return Z[N.key$jscomp$952].apply(Z,_.jn(_.Hy.apply(0,arguments)))}}(K);
else if(K.key$jscomp$952==="data"){var O=_.Q(_.Gz(a,{debugName:K.key$jscomp$952+":cwis"}));a=O.next().value;O=O.next().value;I[K.key$jscomp$952]=a;R[K.key$jscomp$952]=O}else I[K.key$jscomp$952]=a;else G[K.key$jscomp$952]===void 0&&K.key$jscomp$952 in c||(O=_.Q(_.ks(G[K.key$jscomp$952],{debugName:K.key$jscomp$952+":cwis"},"HQMSk")),a=O.next().value,O=O.next().value,I[K.key$jscomp$952]=a,R[K.key$jscomp$952]=O)}return[I,R,function(N){var q={},w;for(w in N)q={key$jscomp$951:q.key$jscomp$951,val$jscomp$122:void 0},
q.key$jscomp$951=w,q.val$jscomp$122=N[q.key$jscomp$951],q.key$jscomp$951!=="children"&&q.key$jscomp$951!=="ref"&&(typeof q.val$jscomp$122==="function"?q.key$jscomp$951 in c?Z[q.key$jscomp$951]=q.val$jscomp$122:q.val$jscomp$122.length>0&&(Z[q.key$jscomp$951]=q.val$jscomp$122,_.Ck(new _.iW("Callback detected that was not set in the idomCompat callbacks map. Key:",q.key$jscomp$951))):q.key$jscomp$951 in c&&q.val$jscomp$122===void 0||(NTA(R,q.key$jscomp$951),pt(function(F){return function(){R[F.key$jscomp$951](F.val$jscomp$122)}}(q))))}]};
wcq=function(G,c,I){var R=PIq(G.prototype,l_r,G.prototype.behaviors);R.prototype.is=c;R.prototype.localName=c;I&&q8q(R,I);return function(Z){Z&&(R.prototype.hostElement=Z);var K=new R;K.root=K;K.hostElement=Z;return K}};
q8q=function(G,c){var I;Object.defineProperty(G.prototype,"_template",{get:function(){I===void 0&&(I=c());return I},
set:function(R){I=R},
configurable:!0,enumerable:!0})};
oRA=function(G,c,I,R){function Z(){if(!n){for(var U=new Set,k=_.Q(q),p=k.next();!p.done;p=k.next()){p=p.value;for(var M=_.Q(Object.getOwnPropertyNames(p)),z=M.next();!z.done;z=M.next()){z=z.value;var t=void 0,x=(t=Object.getOwnPropertyDescriptor(p,z))==null?void 0:t.value;x&&x instanceof Function&&!cI(z)&&(!a[z]||_.v("polymer_forward_method_killswitch"))&&U.add(z)}}k=_.Q(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(p=k.next();!p.done;p=k.next())M=_.Q(p.value),p=M.next().value,
M=M.next().value,M.value instanceof Function&&!cI(p)&&U.add(p);n=U}return n}
F0C(G,c,R==null?void 0:R.providers);Qb0(G.prototype,G,!0);var K=wcq(G,c,I),m,a=(m=G.prototype.properties)!=null?m:{},O,N,q=(N=(O=G.prototype.behaviors)==null?void 0:O.flat(Infinity))!=null?N:[];I=_.Q(q);for(m=I.next();!m.done;m=I.next())a=Object.assign({},m.value.properties,a);var w=[].concat(_.jn(nRA),_.jn(Object.keys(a).map(function(U){return _.Qm(U)}))),F=!1,n;
return{ctor:function(U,k){var p=K(U),M,z;U=[].concat(_.jn((M=R==null?void 0:R.allowedProps)!=null?M:[]),_.jn((z=R==null?void 0:R.allowedPropsFromBehaviors)!=null?z:[]));p.allowedProps=U.length>0?U:void 0;M={};z=_.Q(w);for(U=z.next();!U.done;U=z.next())U=U.value,M[U]=_.mY(U);p.__dataAttributes=M;var t=p.ready.bind(p);p.ready=function(){k.beforeReady();t();if(bO(c)&&!F){var x=p.__templateInfo;if(x==null?0:x.hostProps){x=_.Q(Object.keys(x.hostProps));for(var C=x.next();!C.done;C=x.next())sm(c,C.value,
"PROPERTY_ACCESS_GET_INTERNAL")}F=!0}};
p._overrideLegacyUndefined=!0;return p},
props:a,observedAttributes:w,getInitialMethods:Z,getPropsToForwardBeforeRegister:function(){for(var U=[],k=new Set,p=_.Q(Object.keys(a)),M=p.next();!M.done;M=p.next())M=M.value,U.push([M,a[M].readOnly]),k.add(M);p=Z();M=_.Q(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var z=M.next();!z.done;z=M.next())z=z.value,!vR0(z)||p.has(z)||k.has(z)||(U.push([z,!1]),k.add(z));k=_.Q(Dci);for(p=k.next();!p.done;p=k.next())U.push([p.value,!0]);return U},
getPropsToForwardBeforeReady:function(U){for(var k=[],p=_.Q(Object.entries(U)),M=p.next();!M.done;M=p.next()){var z=_.Q(M.value);M=z.next().value;z=z.next().value;if(vR0(M)&&!(z instanceof Function)&&(k.push([M,!1]),bO(c))){var t=z=void 0;(t=(z=U)._createPropertyAccessor)==null||t.call(z,M)}}return k},
shouldForwardProp:vR0,shouldLog:bO}};
F0C=function(G,c,I){RIC(G,I);G.prototype.behaviors.unshift(UcU);if(x60()){if(bO(c)){var R;(R=G.prototype).behaviors!=null||(R.behaviors=[]);G.prototype.behaviors.unshift(Cjp())}Hgr(G)}_.L(V1.prototype)(G.prototype,"__templateHelpers")};
cI=function(G){return uzT.has(G)||G.startsWith("__compute__")};
vR0=function(G){return!cI(G)&&!G.startsWith("_")&&!G.endsWith("_")};
AB8=function(G,c){function I(){var F=O();F=_.Q(F);for(var n=F.next();!n.done;n=F.next()){var U=_.Q(n.value);n=U.next().value;U=U.next().value;brC(w.prototype,n,U)}R=!0}
var R=!1,Z=G.ctor,K=G.getInitialMethods,m=G.observedAttributes,a=G.getPropsToForwardBeforeReady,O=G.getPropsToForwardBeforeRegister,N=G.shouldForwardProp,q=G.shouldLog,w=function(){var F=HTMLElement.call(this)||this;F.didForwardDynamicProps=!1;F.loggingStatus={};R||I();F.inst=Z(F,{beforeReady:function(){F.didForwardDynamicProps||(F.forwardDynamicProps(),F.didForwardDynamicProps=!0)}});
F.controllerProxy=hBg(F.inst,c);F.forwardMethods();return F};
_.u(w,HTMLElement);w.prototype.forwardMethods=function(){for(var F=this,n=_.Q(this.inst.getExtraMethodsToForward()),U=n.next(),k={};!U.done;k={method$jscomp$65:void 0},U=n.next()){var p=_.Q(U.value);U=p.next().value;p=p.next().value;k.method$jscomp$65=p;this[U]=function(M){return function(){return M.method$jscomp$65.call.apply(M.method$jscomp$65,[F.inst].concat(_.jn(_.Hy.apply(0,arguments))))}}(k)}n=_.Q(K());
for(k=n.next();!k.done;k=n.next())k=k.value,N(k)&&kqC(this,k),q(c)&&!cI(k)&&s4A(this.inst,k)};
w.prototype.forwardDynamicProps=function(){var F=a(this.inst);F=_.Q(F);for(var n=F.next();!n.done;n=F.next()){var U=_.Q(n.value);n=U.next().value;U=U.next().value;brC(this,n,U);q(c)&&!cI(n)&&L0U(this.inst,n)}};
w.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
w.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
w.prototype.attributeChangedCallback=function(F,n,U){this.inst.attributeChangedCallbackWrapper(F,n,U)};
_.Nh.Object.defineProperties(w.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return c}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Nh.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return m}}});
customElements.define(c,w)};
brC=function(G,c,I){G.hasOwnProperty(c)||Object.defineProperty(G,c,{get:function(){var R,Z=((R=G.is)!=null?R:G.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||sm(Z,c,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,R=this.polymerController[c],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,R},
set:function(R){if(!I){var Z,K=((Z=G.is)!=null?Z:G.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||sm(K,c,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=c,this.loggingStatus.bypassProxyController=!0,this.polymerController[c]!==R&&(Z={},this.polymerController.setProperties((Z[c]=R,Z)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
kqC=function(G,c,I){var R=G.polymerController;G[c]=function(){var Z=_.Hy.apply(0,arguments);G.loggingStatus.currentExternalCall=c;G.loggingStatus.bypassProxyController=!0;var K,m=((K=G.is)!=null?K:G.tagName).toLowerCase();sm(m,c,"PROPERTY_ACCESS_CALL_EXTERNAL");var a;K=(a=I!=null?I:R[c])==null?void 0:a.call.apply(a,[R].concat(_.jn(Z)));G.loggingStatus.currentExternalCall=void 0;G.loggingStatus.bypassProxyController=!1;return K}};
s4A=function(G,c){var I=G.hostElement,R=G[c];G[c]=function(){var Z=_.Hy.apply(0,arguments);if(I.loggingStatus.currentExternalCall!==c){var K,m=((K=I.is)!=null?K:I.tagName).toLowerCase();sm(m,c,"PROPERTY_ACCESS_CALL_INTERNAL")}return R==null?void 0:R.apply(G,Z)}};
L0U=function(G,c){var I=Object.getOwnPropertyDescriptor(G,c);I&&!I.get&&Object.defineProperty(G,c,{get:function(){d6b(G.hostElement,c);return I.value},
set:function(R){LH(G.hostElement,c);I.value=R}})};
$cT=function(G){return _.v("poly_si_dom_repeat_detached_fix_killswitch")||G.tagName!=="PS-DOM-REPEAT"?G.tagName==="DOM-REPEAT":!0};
pcb=function(G,c){var I=S8f(G);G instanceof Element&&I.unshift(G);G=_.Q(I.filter($cT));for(var R=G.next();!R.done;R=G.next()){var Z=void 0;R=_.Q((Z=R.value.__instances)!=null?Z:[]);for(Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z.root){Z=Array.from(Z.root.children);Z=_.Q(Z);for(var K=Z.next();!K.done;K=Z.next())I.push.apply(I,_.jn(pcb(K.value,c)))}}return I.filter(function(m){return m.usePatchedLifecycles&&m.lifecycleIsConnected===c})};
S8f=function(G){var c=null;G instanceof Element?c=Element.prototype.querySelectorAll:G instanceof DocumentFragment&&(c=DocumentFragment.prototype.querySelectorAll);return c?Array.from(c.call(G,"*")):[]};
IJ=function(G){_.ue(function(){for(var c=_.Q(pcb(G,!1)),I=c.next();!I.done;I=c.next()){I=I.value;I.lifecycleIsConnected=!0;try{var R=void 0,Z=void 0,K=void 0,m=void 0;(R=(m=I.polymerController)!=null?m:I)==null||(K=(Z=R).connectedCallback)==null||K.call(Z)}catch(a){_.hg(a)}}})};
RJ=function(G){_.ue(function(){for(var c=_.Q(pcb(G,!0)),I=c.next();!I.done;I=c.next()){I=I.value;I.lifecycleIsConnected=!1;try{var R=void 0,Z=void 0,K=void 0,m=void 0;(R=(m=I.polymerController)!=null?m:I)==null||(K=(Z=R).disconnectedCallback)==null||K.call(Z)}catch(a){_.hg(a)}}})};
irr=function(){if(!Ma0){Ma0=!0;var G=[Node];ZP&&G.push(ZP.Wrapper);var c=Node.prototype.insertBefore,I=Node.prototype.removeChild;G=_.Q(G);for(var R=G.next(),Z={};!R.done;Z={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},R=G.next())R=R.value,Z.nativeInsertBefore=R.prototype.insertBefore,R.prototype.insertBefore=function(m){return function(a,O){if(a instanceof DocumentFragment){var N=Array.from(a.children);a=m.nativeInsertBefore.call(this,a,O);
if(this.isConnected&&m.nativeInsertBefore===c)for(O=_.Q(N),N=O.next();!N.done;N=O.next())IJ(N.value);return a}N=a instanceof Element&&a.isConnected;O=m.nativeInsertBefore.call(this,a,O);N&&RJ(a);this.isConnected&&IJ(a);return O}}(Z),Z.nativeAppendChild=R.prototype.appendChild,R.prototype.appendChild=function(m){return function(a){if(a instanceof DocumentFragment){var O=Array.from(a.children);
a=m.nativeAppendChild.call(this,a);if(this.isConnected){O=_.Q(O);for(var N=O.next();!N.done;N=O.next())IJ(N.value)}return a}O=a instanceof Element&&a.isConnected;N=m.nativeAppendChild.call(this,a);O&&RJ(a);this.isConnected&&IJ(a);return N}}(Z),Z.nativeRemoveChild=R.prototype.removeChild,R.prototype.removeChild=function(m){return function(a){var O=a instanceof Element&&a.isConnected,N=m.nativeRemoveChild.call(this,a);
O&&I===m.nativeRemoveChild&&RJ(a);return N}}(Z),Z.nativeReplaceChild=R.prototype.replaceChild,R.prototype.replaceChild=function(m){return function(a,O){if(a instanceof DocumentFragment){var N=Array.from(a.children);
a=m.nativeReplaceChild.call(this,a,O);if(this.isConnected)for(RJ(O),O=_.Q(N),N=O.next();!N.done;N=O.next())IJ(N.value);return a}N=a instanceof Element&&a.isConnected;var q=this.isConnected,w=m.nativeReplaceChild.call(this,a,O);q&&RJ(O);N&&RJ(a);q&&IJ(a);return w}}(Z);
G=[Element];ZP&&G.push(ZP.Wrapper);G=_.Q(G);R=G.next();for(Z={};!R.done;Z={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},R=G.next())R=R.value,R.prototype.before=VaT(R.prototype.before),R.prototype.after=VaT(R.prototype.after),Z.nativeReplaceWith=R.prototype.replaceWith,R.prototype.replaceWith=function(m){return function(){var a=_.Hy.apply(0,arguments),O=_.Q(zWi(a)),N=O.next().value,
q=O.next().value;O=this.isConnected;m.nativeReplaceWith.apply(this,a);a=_.Q(q);for(q=a.next();!q.done;q=a.next())RJ(q.value);if(O)for(RJ(this),N=_.Q(N),O=N.next();!O.done;O=N.next())O=O.value,O instanceof Element&&IJ(O)}}(Z),Z.nativeRemove=R.prototype.remove,R.prototype.remove=function(m){return function(){var a=this.isConnected;
m.nativeRemove.call(this);a&&RJ(this)}}(Z),Z.nativeInsertAdjacentElement=R.prototype.insertAdjacentElement,R.prototype.insertAdjacentElement=function(m){return function(a,O){var N=O.isConnected;
a=m.nativeInsertAdjacentElement.call(this,a,O);N&&RJ(O);a.isConnected&&IJ(a);return a}}(Z),Z.nativeSetAttribute=R.prototype.setAttribute,R.prototype.setAttribute=function(m){return function(a,O){var N=ERg(this);
if(!N.usePatchedLifecycles)return m.nativeSetAttribute.call(this,a,O);var q=this.getAttribute(a);m.nativeSetAttribute.call(this,a,O);O=this.getAttribute(a);JBA(N,a,q,O)}}(Z),Z.nativeRemoveAttribute=R.prototype.removeAttribute,R.prototype.removeAttribute=function(m){return function(a){var O=ERg(this);
if(!O.usePatchedLifecycles)return m.nativeRemoveAttribute.call(this,a);var N=this.getAttribute(a);m.nativeRemoveAttribute.call(this,a);N!==null&&JBA(O,a,N,null)}}(Z),Z.nativeToggleAttribute=R.prototype.toggleAttribute,R.prototype.toggleAttribute=function(m){return function(a,O){var N=ERg(this);
if(!this.usePatchedLifecycles)return m.nativeToggleAttribute.call(this,a,O);var q=this.getAttribute(a),w=q!==null;O=m.nativeToggleAttribute.call(this,a,O);O!==w&&JBA(N,a,q,O?"":null);return O}}(Z);
G=[Document,DocumentFragment,Element,ShadowRoot];ZP&&G.push(ZP.Wrapper);G=_.Q(G);for(Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z.prototype.prepend=VaT(Z.prototype.prepend),Z.prototype.append=VaT(Z.prototype.append);(ZP==null?void 0:ZP.noPatch)===!0&&W0i();document.readyState==="complete"?IJ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&IJ(document.body)});
var K=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");K&&K.get&&K.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:K.enumerable,configurable:!0,get:K.get,set:function(m){m||RJ(this);K.set.call(this,m);return m}})}};
VaT=function(G){return function(){var c=_.Hy.apply(0,arguments),I=_.Q(zWi(c)),R=I.next().value;I=I.next().value;G.apply(this,c);c=_.Q(I);for(I=c.next();!I.done;I=c.next())RJ(I.value);if(this.isConnected)for(R=_.Q(R),c=R.next();!c.done;c=R.next())c=c.value,c instanceof Element&&IJ(c)}};
W0i=function(){for(var G=_.Q(f_T),c=G.next();!c.done;c=G.next()){c=c.value.prototype;for(var I=_.Q(BTA),R=I.next();!R.done;R=I.next()){R=R.value;var Z=Object.getOwnPropertyDescriptor(c,R);Z&&Object.defineProperty(c,"__shady_native_"+R,Z)}}};
JBA=function(G,c,I,R){var Z,K;if((Z=G.polymerController)==null?0:(K=Z.observedAttributes)==null?0:K.includes(c))if(G=G.polymerController,G.attributeChangedCallbackWrapper)G.attributeChangedCallbackWrapper.call(G,c,I,R);else{var m;(m=G.attributeChangedCallback)==null||m.call(G,c,I,R)}};
zWi=function(G){var c=[],I=[];G=_.Q(G);for(var R=G.next();!R.done;R=G.next())R=R.value,R instanceof Element&&R.isConnected&&I.push(R),R instanceof DocumentFragment?c.push.apply(c,_.jn(Array.from(R.children))):c.push(R);return[c,I]};
ERg=function(G){return!(G instanceof Element)&&G.node instanceof Element?G.node:G};
rBb=function(G,c){var I=c?["children"].concat(_.jn(c)):["children"];c=[];I=_.Q(I);for(var R=I.next();!R.done;R=I.next()){var Z=R.value;if(G.hasOwnProperty(Z)){R=G[Z];R=typeof R==="function"?R():R;R=Array.isArray(R)?R:[R];R=ph(R).flat();if(Z!=="children"){Z=Iuq(Z);for(var K=_.Q(R),m=K.next();!m.done;m=K.next())m=m.value,m instanceof Element&&m.setAttribute("slot",Z)}c.push(R)}}c.length===0?G=[]:(G=ph(_.e("div",null,c)),G=Array.from(G.childNodes));return G};
xc8=function(G,c,I){var R={};_.jE(function(){var Z={},K;for(K in c)if(c.hasOwnProperty(K)){var m=void 0,a=void 0;if(!(((m=I.slotProps)==null?0:m.includes(K))||K==="children"||((a=I.callbackProps)==null?0:a.includes(K))||K==="ref")&&(m=_.dN(c[K]),R[K]!==m)){R[K]=m;a=void 0;var O=(a=G.hostElement)!=null?a:G;!I.skipHostForwardedProps&&j4r.has(K)&&(O[K]=m);Z[K]=m}}pt(function(){if(G.setProperties)G.setProperties(Z);else for(var N=_.Q(Object.entries(Z)),q=N.next();!q.done;q=N.next()){var w=_.Q(q.value);
q=w.next().value;w=w.next().value;G[q]=w}})},"l")};
hW8=function(G,c,I,R){var Z=rBb(I,R.slotProps),K=(0,_.Om)(G);Z=_.Q(Z);for(var m=Z.next();!m.done;m=Z.next())K.appendChild(m.value);xc8(c,I,R);R=_.Q(R.callbackProps||[]);Z=R.next();for(K={};!Z.done;K={kebabEventName:void 0,eventListener:void 0},Z=R.next())m=Z=Z.value,String(Z).substring(0,2)==="on"&&I[m]?(K.kebabEventName=Iuq(String(Z).substring(2)),K.eventListener=I[m],G.addEventListener(K.kebabEventName,K.eventListener),_.ty(function(q){return function(){G.removeEventListener(q.kebabEventName,q.eventListener)}}(K))):
c[m]=I[m];
if(I.ref){I=_.Q(taq(I.ref));var a=I.next().value,O=I.next().value,N=c.attached.bind(c);c.attached=function(){a(G);N()};
_.ty(function(){O()})}};
taq=function(G){if(typeof G==="function"){var c;return[function(I){c=G(I)},
function(){var I;(I=c)==null||I()}]}if(!G.onRender||!G.onUnmount)throw Error("Sg");
return[G.onRender,G.onUnmount]};
dcA=function(G,c){c=c===void 0?{}:c;var I=function(R){var Z=document.createElement(G),K;var m=(K=Z.polymerController)!=null?K:Z;hW8(Z,m,R,c);return Z};
I.debugName=G;return I};
yBO=function(G,c,I,R,Z){R=R===void 0?{}:R;var K=Chi,m=!1;K?(m=!0,Chi=void 0):(HrO=c,K=document.createElement(c),HrO=void 0);var a=K;a.usePatchedLifecycles=!0;a.lifecycleIsConnected=!1;K.loggingStatus={};var O=XcC(G,c,K,R,Z);_.ty(function(){a.lifecycleIsConnected&&(a.lifecycleIsConnected=!1,O.disconnectedCallback())});
m||(K.__noInsertionPoint=!0,hW8(K,O,I,R));return K};
XcC=function(G,c,I,R,Z){Z=Z===void 0?oRA:Z;gR8[c]!=null||(gR8[c]=Z(G,c,R==null?void 0:R.getTemplate,R));var K=gR8[c],m=K.ctor;Z=K.getInitialMethods;var a=K.getPropsToForwardBeforeReady;G=K.getPropsToForwardBeforeRegister;R=K.shouldForwardProp;var O=K.observedAttributes,N=K.shouldLog,q=m(I,{beforeReady:function(){var w=q;w._takeAttributes?w._takeAttributes():w.setPropertiesFromInitialAttributeValues&&w.setPropertiesFromInitialAttributeValues();w=_.Q(a(I.polymerController));for(var F=w.next();!F.done;F=
w.next()){var n=_.Q(F.value);F=n.next().value;n=n.next().value;brC(I,F,n);N(c)&&!cI(F)&&L0U(I.polymerController,F)}I.polymerController=hBg(q,c)}});
I.polymerController=q;I.polymerController.observedAttributes=O;K=_.Q(q.getExtraMethodsToForward());for(m=K.next();!m.done;m=K.next())O=_.Q(m.value),m=O.next().value,O=O.next().value,kqC(I,m,O);Z=_.Q(Z());for(K=Z.next();!K.done;K=Z.next())K=K.value,R(K)&&kqC(I,K),N(c)&&!cI(K)&&s4A(q,K);G=_.Q(G());for(R=G.next();!R.done;R=G.next())Z=_.Q(R.value),R=Z.next().value,Z=Z.next().value,brC(I,R,Z);return q};
Y8p=function(G){var c=Kd;Kd=G;return c};
Iap=function(G){if(GTg.has(G)&&Kd&&cFr(Kd)===G){var c;(c=Kd)._numRenders!=null||(c._numRenders=0);Kd._numRenders++;if(Kd._numRenders>1)throw Error("Tg");return Kd}};
ZLb=function(G){var c=cFr(G);Kd!==G&&c.includes("-")&&Rag.set(G,!0)};
cFr=function(G){var c;return(c=G==null?void 0:G.tagName.toLowerCase())!=null?c:""};
K6B=function(G,c){if(G.componentType===Vg)throw Error("Ug");GTg.add(c);var I=function(){var R=HTMLElement.call(this)||this;R.is=c;if(HrO===c)return R.isInert=!0,R;R.createElement();return R};
_.u(I,HTMLElement);I.prototype.createElement=function(){if(!this.isInert){Chi=this;var R=_.Q(_.yYi(function(){return _.e(G,null)})).next().value;
Chi=void 0;dJr(this);return R}};
customElements.define(c,I)};
Qdg=function(G,c,I,R,Z){G.prototype.is=c;(R==null?0:R.useSink)?PQb(G,c,I,R,Z):(I=oRA(G,c,I,R),AB8(I,c));return G};
PQb=function(G,c,I,R,Z){irr();var K=_.W(function(m){return yBO(G,c,m,Object.assign({},R,{getTemplate:I}),Z)},"m");
K.debugName=c;K6B(K,c);return K};
aaT=function(G){return!mar.has(G)};
ear=function(G,c,I,R){function Z(){if(!w){for(var F=new Set(TvT),n=_.Q(K.behaviors),U=n.next();!U.done;U=n.next()){U=U.value;for(var k=_.Q(Object.getOwnPropertyNames(U)),p=k.next();!p.done;p=k.next()){p=p.value;var M=void 0,z=(M=Object.getOwnPropertyDescriptor(U,p))==null?void 0:M.value;z&&z instanceof Function&&(!N[p]||_.v("polymer_forward_method_killswitch"))&&F.add(p)}}n=_.Q(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(U=n.next();!U.done;U=n.next())k=_.Q(U.value),U=k.next().value,
k=k.next().value,k.value instanceof Function&&F.add(U);w=F}return w}
var K=dWC({is:c,disableElementRegistration:!1,getTemplate:I,providers:R==null?void 0:R.providers,reactivityMode:R==null?void 0:R.reactivityMode},G);if((R==null?0:R.allowedProps)||(R==null?0:R.allowedPropsFromBehaviors)){var m,a;K.allowedProps=[].concat(_.jn((m=R.allowedProps)!=null?m:[]),_.jn((a=R.allowedPropsFromBehaviors)!=null?a:[]))}var O=fKf(K,G);c=O.observedAttributes;var N={};I=_.Q(K.reactiveSchemas);for(R=I.next();!R.done;R=I.next())if(R=R.value,R.type==="signal")N[R.propertyKey]={readOnly:R.readOnly},
R.readOnly&&(N[w3f(R.propertyKey)]={readOnly:!0});else if(R.type==="compute"||R.type==="computeWithMethod"||R.type==="redux")N[R.propertyKey]={readOnly:!0};var q=K.reactiveSchemas.length,w;return{ctor:function(F,n){F=new O(F);F.beforeReady=n.beforeReady;return F},
props:N,observedAttributes:c,getInitialMethods:Z,getPropsToForwardBeforeRegister:function(){for(var F=[],n=new Set,U=_.Q(OLA),k=U.next();!k.done;k=U.next())k=k.value,F.push([k,k!=="observers"&&k!=="properties"]),n.add(k);U=_.Q(Object.keys(N));for(k=U.next();!k.done;k=U.next())k=k.value,F.push([k,N[k].readOnly]),n.add(k);U=Z();k=_.Q(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var p=k.next();!p.done;p=k.next())p=p.value,!aaT(p)||U.has(p)||n.has(p)||(F.push([p,!1]),n.add(p));F.push(["allowedProps",
!0]);return F},
getPropsToForwardBeforeReady:function(F){var n=[];F=_.Q(Object.keys(F));for(var U=F.next();!U.done;U=F.next()){U=U.value;var k=Z();aaT(U)&&!k.has(U)&&n.push([U,!1])}F=_.Q(K.reactiveSchemas.slice(q));for(U=F.next();!U.done;U=F.next())U=U.value,U.type!=="compute"&&U.type!=="computeWithMethod"&&U.type!=="redux"&&U.type!=="signal"||n.push([U.propertyKey,U.type==="signal"?U.readOnly:!0]);return n},
shouldForwardProp:aaT,shouldLog:bO}};
_.B=function(G,c,I,R){var Z,K,m=(K=(Z=R)==null?void 0:Z.mode)!=null?K:0;R!=null||(R={});var a;(a=R).reactivityMode!=null||(a.reactivityMode=0);m===1&&_.U2("creator_poly_si_disable_list").includes(c)&&(m=2);return m===1?Qdg(G,c,I,Object.assign({},R,{useSink:!0}),ear):Qdg(G,c,I,Object.assign({},R,{useSink:m===2}))};
_.PI=function(){return function(G,c,I,R){var Z,K,m=(K=(Z=R)==null?void 0:Z.mode)!=null?K:2;R!=null||(R={});var a;(a=R).reactivityMode!=null||(a.reactivityMode=0);if(m===0)throw Error("Vg`"+m);return PQb(G,c,I,R,m===1?ear:void 0)}};
_.Qc=function(G){return _.v("creator_poly_si_killswitch")?!1:_.v("force_all_poly_si_batches")&&(G==="poly_si_all_on_test_check"||G==="creator_poly_si_batch_050"?0:G)||document.documentElement.hasAttribute("use-signals")?!0:!G||_.v(G+"_holdback_enabled")&&_.v("kevlar_polysi_holdback")?!1:_.v(G)};
mw=function(G){return G?G.icon?G.icon.iconType.toLowerCase():G.customThumbnail?"member":"":""};
Nvi=function(G){if(!G)return"";G=_.Q(G);for(var c=G.next();!c.done;c=G.next())if((c=c.value)&&c.liveChatAuthorBadgeRenderer&&(c=mw(c.liveChatAuthorBadgeRenderer))&&c!=="verified")return c;return""};
lag=function(G,c){if(!G)return null;var I;return((I=G.find(function(R){return R&&R.liveChatAuthorBadgeRenderer?mw(R.liveChatAuthorBadgeRenderer)===c:!1}))==null?void 0:I.liveChatAuthorBadgeRenderer)||null};
_.Dab=function(G){var c=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;G=q1r(G);c=q1r(c);var I=wxr(G.hex);c=wxr(c.hex);var R=c[0]/255;var Z=c[1]/255,K=c[2]/255,m=Math.max(R,Z,K),a=Math.min(R,Z,K),O=0,N=0,q=.5*(m+a);m!=a&&(m==R?O=60*(Z-K)/(m-a):m==Z?O=60*(K-R)/(m-a)+120:m==K&&(O=60*(R-Z)/(m-a)+240),N=0<q&&q<=.5?(m-a)/(2*q):(m-a)/(2-2*q));R=[Math.round(O+360)%360,N,q];I=F6B(I,c);for(G=ngB(G.hex);I<4.5;){G=R[2]>=.5?G.darker((4.5-I)/2):G.brighter((4.5-I)/2);I=G.toString();
Z=vg0(I);if(!Z.length)throw Error("Xd`"+I);I=Z;I=F6B(I,c)}return G.hex()};
F6B=function(G,c){G=_.CEC(G);c=_.CEC(c);return(Math.max(G,c)+.05)/(Math.min(G,c)+.05)};
_.aJ=function(G){return"#"+("000000"+(G&16777215).toString(16)).slice(-6)};
_.ogp=function(G){for(var c=0,I=0;I<G.length;I++)c=G.charCodeAt(I)+((c<<5)-c);G="#";for(I=0;I<3;I++)G+=("00"+(c>>I*8&255).toString(16)).slice(-2);return G};
UaB=function(G){G=(G||"").split(":");G.length===1&&G.unshift("yt-icons");G[1]=G[1].toLowerCase();return G};
AFr=function(G,c){var I=(c=c===void 0?!1:c)?usg:bLg,R=c?kT8:sdU;G.getIconNames().forEach(function(Z){Z=c?Z:Z.substring(Z.indexOf(":")+1);G.name==="yt-icons"?L6C.add(Z):Z.includes("-filled")?I.add(Z):R.add(Z)})};
Tz=function(G,c,I,R){I=I===void 0?!1:I;R=R===void 0?!1:R;var Z,K,m;return _.T(function(a){if(a.nextAddress==1)return a.yield($ab,2);if(R)return a.return(L6C.has(G));Z=I?usg:bLg;K=I?kT8:sdU;return c?(m=G.includes("-filled")?G:G.concat("-filled"),a.return(Z.has(m))):a.return(K.has(G))})};
_.On=function(G){if(S1C(G))return G.toString();var c=pxf.get(G);if(c)return c;c=G.toLowerCase();var I="yt-icons",R=c.replace(/_/g,"-");switch(G){case "MY_CHANNEL":c="account_circle";break;case "ADD_TO_LIBRARY":c="add";break;case "ALERT_WARN_RED":c="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":c="person_music";break;case "BLOCK_USER":c="block";break;case "CAPTIONS":c="closed_caption";break;case "CLOSED_CAPTION":I="av";c="closed-caption";break;case "COLLECTION":I="maps";c="layers";break;case "CONTACT":I=
"icons";c="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":I="yt-studio-system-icons";c=R.split("creator-studio-")[1];break;case "DISMISSAL":c="close";break;case "DO_NOT_DISTURB":c="block";break;case "DOGFOOD":I="icons";c="pets";break;case "DRAFT":c="paper_corner_folded";
break;case "EMPTY_LIKE":c="like_outline";break;case "EXIT_APP":c="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":c=R;break;case "GAMES":I="ytg";c="my-games";break;case "GO_TO_PAGE":c="arrow-forward";break;case "GROUP":I="social";break;case "HIDE":c="not_interested";break;case "INPUT_COMPONENT":I="icons";c="settings-input-component";break;case "KIDS_BLOCK":c="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":I="ytg";c="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":I=
"ytg";c="membership-post-purchase";break;case "MULTIVIEW":c="screen_multi_view";break;case "MY_LOCATION":I="maps";c=R;break;case "NOTIFICATIONS_INBOX":c="NOTIFICATIONS";break;case "NEXT":c="chevron_right";break;case "OFFLINE":c="power-settings-new";break;case "PAUSE":I="miniplayer";break;case "PAYMENT":I="icons";break;case "PHONE_DOWNLOAD":c="phone_download";break;case "PREMIUM_STANDALONE":I="yt-logos";c="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":I="yt-logos";c="premium_standalone_cairo";
break;case "QUESTION_ANSWER":c="question_answer";break;case "REDEEM":I="icons";c="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":c="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":c="library_add";break;case "SCHOOL":I="yt-sys-icons";c="creator_academy";break;case "SETTINGS_LIGHT":c="settings_applications";break;case "SETTINGS_MATERIAL":c="settings";break;case "SEARCH_HISTORY":c="watch_history";break;case "SHOPPING_BAG":c="bag";break;case "SOCIAL":case "PEOPLE":I=
"yt-icons";c="people";break;case "STAFF_PICK":I="ytg";c="spotlight";break;case "START_DVR":c="add";break;case "STOP_DVR":I="av";c="stop";break;case "TAB_LIKED":c="like";break;case "TAB_INBOX":c="mail";break;case "TERMS_OF_SERVICE":I="icons";c="description";break;case "TRENDING":c="fire";break;case "UNBLOCK_USER":c="remove";break;case "UNPLUGGED_DARK_THEME":I="image";c="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":c="live";break;case "UNPLUGGED_SPORTS":I="ytu";c="visibility-off";break;
case "VIDEOS":I="av";c="play-circle-filled";break;case "YOUTUBE":I="yt-logos";c="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":I="yt-logos-ext";c="yt-logo-red-updated";break;case "YOUTUBE_LOGO":I="yt-logos-ext";c="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":I="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":I="shorts";c=R;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":I="yt-sys-icons";c="youtube_improve_tv";break;case "OUTLINE_BAG":I=
"yt-sys-icons";c="bag";break;case "QUEUE_PLAY_LAST":I="yt-sys-icons";c="list_queue_last";break;case "SLASH_CIRCLE_LEFT":c="slash_circle_left";break;case "SPEED_1_POINT_2X":c="1_point_2x";break;case "SPEED_1_POINT_5X":c="1_point_5x";break;case "SPEED_1_POINT_8X":c="1_point_8x";break;case "SPEED_POINT_2X":c="point_2x";break;case "SPEED_POINT_5X":c="point_5x";break;case "SPEED_POINT_8X":c="point_8x";break;case "SPEED_1X":c="1x";break;case "SPEED_2X":c="2x";break;case "TAB_BOOKMARK":c="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":I="yt-sys-icons";c="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":I="yt-sys-icons";c="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":I="yt-sys-icons",c="tic_tac_toe"}c=I+":"+c;pxf.set(G,c);return c};
S1C=function(G){var c;_.v("kevlar_use_wil_icons")?c=!!_.wH().resolve(_.ek).resolveIcon({iconName:G.toString()}):c=!1;return c};
_.qC=function(G,c,I,R){I=I===void 0?{}:I;R=R===void 0?!1:R;I===null&&(I={});var Z=_.U2("kevlar_command_handler_command_banlist");Z=_.Q(Z);for(var K=Z.next();!K.done;K=Z.next())if(K=G?G.hasOwnProperty(K.value):void 0,K)return!1;Z=_.D(G.commandMetadata,_.Pd);return R&&Z!=null&&Z.url?!1:!c.disableCommandHandlerOverride&&_.NC.instance?(R=_.NC.instance,I.form||(I.form={element:c}),I.form.element||(I.form.element=c),!I.clickedVisualElement&&c.visualElement&&(I.clickedVisualElement=c.visualElement),R.resolveCommand(G,
I),!0):!1};
M98=function(G,c){G=w0(G);for(var I=_.Q(G.visibilityMonitorKeys||[]),R=I.next();!R.done;R=I.next())c.unobserveByKey(R.value);G.visibilityMonitorKeys=void 0};
FP=function(G,c){if(_.k0()){if(_.v("kevlar_vimio_use_shared_monitor"))V9U(G,c.data);else if(!V9U(G,c.data))return;var I=c.data,R=zaU(I);if(_.v("enable_client_ve_spec_logging"))M98(G,c.observer);else{var Z=w0(G);Z.trackedParams&&Z.trackedParams!==R&&M98(G,c.observer)}Z=w0(G);!I||Z.data&&Z.data===I||(Z.data=I);Eg8(G,c);Z.trackedParams=R}};
Eg8=function(G,c){var I=c.observer;if(!I&&_.v("web_skip_missing_vimio_observer")){var R,Z;_.Ck(new _.iW("VisibilityObserver is not defined.",G.tagName,G.trackedParams,(R=c.data)==null?void 0:R.trackingParams,(Z=c.data)==null?void 0:Z.loggingDirectives))}else{var K=c.layer,m=c.visibilityCallback||function(){},a=c.prescanCallback,O=w0(G);
R=[];c.showOption&&R.push(I.observe(G,function(){c.skipLogging&&c.skipLogging()||_.nd().reportShown(O,void 0,K,7);m(!0)},c.showOption));
c.hideOption&&R.push(I.observe(G,function(){_.nd().reportHidden(O,void 0,K,7);m(!1)},c.hideOption));
c.prescanOption&&a&&R.push(I.observe(G,function(){a()},c.prescanOption));
O.visibilityMonitorKeys=R}};
V9U=function(G,c){G=w0(G);if(G.visualElement&&!c)return!0;if(!c)return!1;var I=!1;if(_.v("enable_client_ve_spec_logging")){var R,Z;I=!!((R=c.loggingDirectives)==null?0:(Z=R.clientVeSpec)==null?0:Z.uiType)}R=zaU(c);if(!R&&!I)return!1;_.v("mweb_component_visibility_logging")&&(G.veContainer||(G.veContainer={}),G.veContainer.trackingParams=R);if(G.trackedParams&&G.trackedParams===R)return!1;var K;if(_.v("enable_client_ve_spec_logging")&&((K=G.visualElement)==null?0:K.isClientVe())){var m;K=(m=G.visualElement)==
null?void 0:m.getAsJspb();var a,O,N,q;if(_.wF(K,2)===((a=c.loggingDirectives)==null?void 0:(O=a.clientVeSpec)==null?void 0:O.uiType)&&_.wF(K,3,-1)===((N=c.loggingDirectives)==null?void 0:(q=N.clientVeSpec)==null?void 0:q.elementIndex))return!1}if(_.v("enable_client_ve_spec_logging")){var w,F;!G.visualElement&&((w=c.loggingDirectives)==null?0:(F=w.clientVeSpec)==null?0:F.uiType)&&(a=c.loggingDirectives.clientVeSpec,c=a.uiType,m=a.elementIndex,a=a.clientYoutubeData,G.visualElement=_.vI(_.DP(),{veType:c,
elementIndex:m,clientYouTubeData:a}))}return!0};
zaU=function(G){if(G==null?0:G.rendererContext){var c=_.D(G.rendererContext,_.oJ);if(c==null?0:c.loggingDirectives)return c.loggingDirectives.trackingParams}return(G==null?0:G.loggingDirectives)?G.loggingDirectives.trackingParams:G==null?void 0:G.trackingParams};
w0=function(G){var c;return(c=G.polymerController)!=null?c:G};
faU=function(G){_.nd();if(_.gK(Un().JSC$12894_elementShouldLogGesture).bind(Un())(G,4)){JFr(G);var c=W6A(G);iLT.set(G,c)}};
JFr=function(G){iLT.has(G)&&(iLT.get(G).cancel("untrack hover element"),iLT.delete(G))};
W6A=function(G){var c,I=[],R=!1,Z=new _.Lk(function(K,m){uD(G,"mouseenter",_.gK(function(){var a,O,N;return _.T(function(q){if(q.nextAddress==1)return c=(0,_.Fa)(),a=BvA(G),I.push(a),O=rFA(G,function(){R=!0;m(Error("Wg"))}),q.yield(a,2);
if(q.nextAddress!=3)return O&&bD(O),N=jdT(G),I.push(N),q.yield(N,3);K();_.Vp(q)})}))});
Z.then(function(){var K=(0,_.Fa)()-c;K=Math.round(K);if(!(500>K||6E5<=K)){var m=G.getScreenLayer?G.getScreenLayer():void 0;m=_.k0(m)||"";var a=xaU(_.nd(),G);_.xD(m,G.visualElement?G.visualElement:_.kC(a),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:K}})}faU(G)},function(){sn&&(sn(),sn=null);
R&&(JFr(G),faU(G))});
return Z};
BvA=function(G){var c;return(new _.Lk(function(I,R){sn=function(){R(Error("Xg"))};
c=_.dJ.debounce(_.gK(function(){bD(Z);I()}),1,100);
var Z=_.Ld(G,"mousemove",c)})).thenCatch(function(){var I=_.dJ.cancelDebouncedJobMap.get(c);
I&&_.dJ.cancelJob(I)})};
jdT=function(G){var c;return(new _.Lk(function(I,R){sn=function(){R(Error("Yg"))};
c=uD(G,"mouseleave",_.gK(function(){I()}))})).thenCatch(function(){bD(c)})};
rFA=function(G,c){return uD(G,"mouseleave",_.gK(c))};
ha0=function(G){t9B&&_.AN.cancel(t9B);t9B=_.AN.run(function(){_.Xl(G,"yt-visibility-refresh");t9B=0})};
daA=function(G){G=Number(G);return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
HL0=function(G){if(!G)return!1;if(_.D(G,_.CQq))return!0;var c;if(G=(c=_.D(G,_.RP))==null?void 0:c.commands)for(c=_.Q(G),G=c.next();!G.done;G=c.next())if(_.D(G.value,_.CQq))return!0;return!1};
XxA=function(G){var c=!0;c=c===void 0?!0:c;if(!G.useSignals&&!G.experimentalPropertiesChanged||_.v("experimental_templating_behavior_nopatch_killswitch")){var I=G._propertiesChanged;G._propertiesChanged=function(R,Z,K){c?G.debounceRender():G.doRender();I&&I.call(G,R,Z,K)}}};
yFr=function(G,c){if(G.useSignals||G.experimentalPropertiesChanged)if(_.v("experimental_templating_behavior_nopatch_killswitch"))G.experimentalPropertiesChanged=function(){};
else return;var I=new Set,R=[G].concat(_.jn(G.behaviors));R=_.Q(R);for(var Z=R.next();!Z.done;Z=R.next()){Z=Z.value;for(var K in Z.properties)I.has(K)||(G._addPropertyEffect(K,"function",c),I.add(K))}};
ggi=function(){var G=Polymer.Element,c=G._prepareTemplate;G._prepareTemplate=function(){c.call(this);var I=this.prototype;if(I.experimentalTemplatingInUse&&I.experimentalTemplatingInUse()&&I.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.hg(Error("Zg"));else{I=this.template.content.childNodes;for(var R=I.length-1;R>=0;R--){var Z=I[R];Z.nodeName!=="STYLE"&&Z.nodeName!=="LINK"&&Z.nodeName!=="SCRIPT"&&Z.nodeName!=="#comment"&&Z.remove()}}}};
Y1r=function(G){var c=!0;c=c===void 0?!0:c;ggi();var I=G.ready;G.ready=function(){this._template=null;I.call(this)};
yFr(G,c?G.debounceRender:G.doRender)};
c2r=function(G,c,I){if(I===null||I===void 0)return I;var R=vtq(G.tagName.toLowerCase(),c,function(){throw Error("Tb");});
if(R===null)return I;R=GGT[R];var Z;if((Z=R.isUnwrappable)==null?0:Z.call(R,I)){if(R.unwrap)return R.unwrap(I);throw Error("bh");}return R.filterString?R.filterString(G.tagName,c,String(I)):I};
IlO=function(G,c,I){var R=c[c.length-1]!=="$";I=c2r(G,c,I);R?G[c]=I:(R=I==null?null:String(I),gN(G,c.slice(0,-1),R))};
Sk=function(G){RcU.length===0&&requestAnimationFrame(function(){setTimeout(function(){var c=RcU.slice();RcU.length=0;c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;try{I()}catch(R){_.$C(R)}}})});
RcU.push(G)};
ZlU=function(G){if(G){var c=G.component;if(c){var I;c==null||(I=c.events)==null||I.publish("DISCONNECTED");var R;c==null||(R=c.onDisconnected)==null||R.call(c)}var Z,K;(Z=G.__spec)==null||(K=Z.didUnmount)==null||K.call(Z);for(c=0;c<G.childNodes.length;c++)ZlU(G.childNodes[c])}};
KFb=function(G,c,I){var R=c&&c.key,Z=ag;Z[0]=G;Z[1]=R;Z[2]=void 0;for(var K in c)c.hasOwnProperty(K)&&(G=c[K],R=T2,R.push(K),R.push(G));c=ag;a:{if(K=ag[2])for(G=0;G<K.length;G+=2)if(K[G]==="nonce"){K=K[G+1];break a}K=""}K=ZFA(c[0],c[1],K);G=Ig(K);R=c[2];if(!G.staticsApplied&&(G.staticsApplied=!0,R&&R.length))if((Z=G._attrsArr)&&Z.length){for(Z=0;Z<R.length;Z+=2)pd[R[Z]]=Z+1;Z=G._attrsArr||(G._attrsArr=tKC(0));for(var m=0,a=0;a<Z.length;a+=2){var O=Z[a],N=Z[a+1],q=pd[O];q?R[q]===N&&delete pd[O]:(Z[m]=
O,Z[m+1]=N,m+=2)}yg(Z,m);for(var w in pd)XNU(K,w,R[pd[w]],Nq),delete pd[w]}else for(w=0;w<R.length;w+=2)XNU(K,R[w],R[w+1],Nq);OFq(K,G,Nq);yg(c,0);I&&I(Rg);KIi()};
_.MC=function(G,c,I){I===void 0?delete G[c.name]:G[c.name]=I};
_.Vc=function(G){var c={androidIncludeFontPadding:!1},I=0,R=[],Z=[],K=[];if(G.simpleText)return c.content=G.simpleText,c;if(G.runs===void 0)return c.content="",c;G=_.Q(G.runs);for(var m=G.next();!m.done;m=G.next()){m=m.value;var a=m.text,O=void 0,N=(O=a)==null?void 0:O.length;if(a&&N){R.push(a);if(m.bold||m.italics||m.strikethrough||m.underline||m.textColor!=null&&m.textColor!==0||m.deemphasize){a=Z;O=a.push;var q={startIndex:I,length:N};m.bold&&(q.weightLabel="FONT_WEIGHT_MEDIUM");m.italics&&(q.italic=
!0);m.strikethrough&&(q.strikethrough="LINE_STYLE_SINGLE");m.underline&&(q.underline="LINE_STYLE_SINGLE");m.textColor!=null&&m.textColor!==0?document.documentElement.hasAttribute("dark")?q.fontColor=m.darkModeTextColor||m.textColor:q.fontColor=m.textColor:m.deemphasize&&(document.documentElement.hasAttribute("dark")?q.fontColor=parseInt("ff"+PZB("#aaa").substring(1),16):q.fontColor=parseInt("ff"+PZB("#606060").substring(1),16));O.call(a,q)}m.navigationEndpoint&&(a=K,O=a.push,q={startIndex:I,length:N,
onTap:{innertubeCommand:m.navigationEndpoint}},m.loggingDirectives&&_.MC(q,QmC,m.loggingDirectives),O.call(a,q));I+=N}}c.content=R.join("");c.styleRuns=Z.length?Z:void 0;c.commandRuns=K.length?K:void 0;return c};
alT=function(G){if(G==null||!G.runs)return!0;G=_.Q(G.runs);for(var c=G.next();!c.done;c=G.next())if(c=c.value,c.bracket||c.errorUnderline||c.deemphasize||_.D(c,zz)||_.D(c,mMU))return!1;return!0};
TVB=function(G,c){return function(I){var R=c.unit;if(R!==I)throw Error("eh`"+G+"`"+R+"`"+I);return c}};
En=function(G){if(!((G==null?0:G.value)&&(G==null?0:G.unit)))return"";switch(G.unit){case "DIMENSION_UNIT_FRACTION":var c="%";break;default:c="px"}G=G.value;c==="%"&&(G*=100);return""+G+c};
OlC=function(G){try{return G()}catch(c){_.Ck(c)}};
_.WI=function(G){var c=_.D(G,_.JN);if(c)return c;if((c=_.D(G,ecO))&&c.commands)return NVi(c.commands);if((c=_.D(G,llb))&&c.commands)return NVi(c.commands);if((G=_.D(G,qI0))&&G.identifier&&G.command&&(wVr||(wVr=[]),!wVr.includes(G.identifier)))return wVr.push(G.identifier),_.D(G.command,_.JN)};
NVi=function(G){if(G.length!==0){var c=[];G=_.Q(G);for(var I=G.next();!I.done;I=G.next())(I=_.WI(I.value))&&c.push(I);return{commandExecutorCommand:{commands:c}}}};
_.fd=function(G){var c=G.defaultTarget,I=G.elementConfig,R=G.elementsCommand,Z=G.skipOnClick,K=G.forceNewState,m=G.additionalCommandArgs,a=G.innertubeCommand||_.WI(R);if(a){G={};var O=FFf(a);R=O.navigatingCommand;O=O.href;R&&O?(G.href$=O,nfT(G,R,O,c),_.v("web_atagconfig_pointerdown")&&vfA(G,R),K&&(G["force-new-state$"]=!0)):(G.role$="button",G.href$="javascript:void(0);");_.D(a,DMb)&&(G["aria-haspopup$"]=!0);Z||(G.onclick=function(N){var q={};if(ofg(N)){var w=(m==null?void 0:m.clickedVisualElement)||
(m==null?void 0:m.getClickedVisualElement)&&m.getClickedVisualElement();w&&(q={clickedVisualElement:w});q=Object.assign({},{form:{element:N.target,event:N,createScreenConfig:q}},m);N.preventDefault();_.iD(a,q)}});
return Object.assign({},I,G)}};
UM0=function(G){if(G.length){if(G.length===1)return G[0];var c={};_.MC(c,_.RP,{commands:G});return c}};
BI=function(G){return G&&G.href$!=="javascript:void(0);"};
FFf=function(G){var c,I=((c=_.D(G,_.RP))==null?void 0:c.commands)||[G];G=_.Q(I);for(c=G.next();!c.done;c=G.next()){c=c.value;var R=void 0,Z=void 0;I=(Z=_.D((R=c)==null?void 0:R.commandMetadata,_.Pd))==null?void 0:Z.url;_.v("web_remove_web_navigation_endpoint_data")||(R=void 0,I=I||((R=_.D(c,uyf))==null?void 0:R.url));if(I&&I!=="/service_ajax"){if(R=_.j_(I,blr))return G=_.By(R),{navigatingCommand:c,href:G};_.Ck(new _.iW("AttributedString URL could not be sanitized",I))}}return{}};
ofg=function(G){return G.button!==void 0?G.button===0&&!(G.shiftKey||G.altKey||G.metaKey||G.ctrlKey):!(G.shiftKey||G.altKey||G.metaKey||G.ctrlKey)};
nfT=function(G,c,I,R){I=!NR(I);var Z,K,m;if((Z=_.D(c,_.qD))!=null&&Z.nofollow||(K=_.D(c,_.fR))!=null&&K.nofollow||(m=_.D(c,_.ID))!=null&&m.nofollow||I)G.rel$="nofollow";var a;c=((a=_.D(c,_.ID))==null?void 0:a.target)==="TARGET_NEW_WINDOW"?"_blank":R===void 0?"":R;G.target$=c};
vfA=function(G,c){c.clickTrackingParams&&(G.params={itct:c.clickTrackingParams});G.onpointerdown=function(I){kGB(I)};
G._data=c};
smT=function(G){(G.loggingUrls||[]).forEach(function(c){Z6(c.baseUrl,c.attributionSrcMode)})};
kGB=function(G){var c=G.currentTarget;G=OlC(function(){return c.href});
var I=c.params;G&&_.x0(G,I||{},8,!0)};
_.r0=function(G,c){(G=_.WI(G))&&_.iD(G,c)};
_.iD=function(G,c){aSC(function(I){c?I.resolveCommand(G,c):I.resolveCommand(G)})};
SIr=function(G,c){var I=["yt-core-attributed-string__link"];c!=null&&c.noLinkColor||((c==null?0:c.isOverlay)?I.push("yt-core-attributed-string__link--overlay-call-to-action-color"):I.push("yt-core-attributed-string__link--call-to-action-color"),(c==null?0:c.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color"));I={className:I.join(" "),tabindex$:"0"};var R=G.onTap||G.onLongPress;if(!R)return I;var Z=LFf(G);Z&&(I["aria-label$"]=Z);c=_.fd({elementsCommand:R,elementConfig:I,skipOnClick:!(c==
null||!c.skipOnClick),forceNewState:!0});G.onLongPress&&(R=new A2b(function(){var K=_.WI(G.onLongPress);K&&_.wH().resolve(_.n4).resolveCommand(K)}),c&&$M8(R,c));
return c||I};
LFf=function(G){var c,I;return(c=G.onTapOptions)==null?void 0:(I=c.accessibilityInfo)==null?void 0:I.accessibilityLabel};
pVC=function(G){var c=G;G<=16777215&&(c+=parseInt("ff000000",16));return _.pE(c)};
M6r=function(G){var c=G.isDarkTheme;var I=G.extension;G=G.runColor;var R=void 0;if(I=I==null?void 0:I.colorMap){c=c?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I=_.Q(I);for(var Z=I.next();!Z.done;Z=I.next())if(Z=Z.value,c===Z.key){R=Z.value;break}}R==null&&G&&(R=G);if(R)return pVC(R)};
jk=function(G){var c=G.config;var I=G.image;var R=G.imageConfig;var Z=G.imageWrapperConfig;var K=G.run;var m=G.tag;var a=G.textLength;var O=G.startIndex===void 0?0:G.startIndex;G=G.length;O===void 0&&(O=0);K={run:K,startIndex:O,endIndex:G!==void 0?O+G:a,tag:m};I&&(K.image=I);R&&(K.imageConfig=R);Z&&(K.imageWrapperConfig=Z);c&&(K.config=c);return K};
zcC=function(G,c){var I=[];I.push("yt-core-attributed-string");(c==null?0:c.className)&&I.push(c==null?void 0:c.className);(c==null?0:c.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(c==null?0:c.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(c==null?0:c.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(c==null?0:c.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");G.alignment&&I.push(V6b(G.alignment));G.lineBreakMode&&
I.push("yt-core-attributed-string--word-wrapping");return I.join(" ")};
Ef0=function(G,c){if(G.weight)return G.weight;switch(G.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return c?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
J20=function(G){switch(G){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
V6b=function(G){switch(G){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
hN=function(G,c,I){var R=c;G.content&&I&&(I=G.content.indexOf("\n"),I!==-1&&(R=Math.min(c,I)));if(!G.content||G.content.length<=R)c=G;else if(G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.paragraphStyleRuns){c=xC(G.content,R);I=R;var Z=G.attachmentRuns;if(Z){var K=[];Z=_.Q(Z);for(var m=Z.next();!m.done;m=Z.next())m=Object.assign({},m.value),m.startIndex===void 0||m.startIndex>=I||(m.length||(m.length=0),m.length+m.startIndex>I&&(m.length=I-m.startIndex),K.push(m));I=K}else I=void 0;
K=WFg(R,G.commandRuns);Z=R;var a=G.decorationRuns;if(a){m=[];a=_.Q(a);for(var O=a.next();!O.done;O=a.next()){O=O.value;var N=_.D(O.textDecorator,tN);if(N&&N.startIndex!==void 0&&!(N.startIndex>=Z)){O=Object.assign({},O,{textDecorator:{highlightTextDecorator:Object.assign({},N)}});N=_.D(O.textDecorator,tN);if(!N.length||N.length+N.startIndex>Z)N.length=Z-N.startIndex;m.push(O)}}Z=m}else Z=void 0;m=WFg(R,G.styleRuns);if(a=G.paragraphStyleRuns)for(G=[],a=_.Q(a),O=a.next();!O.done;O=a.next()){var q=O.value;
O=Object.assign({},q);if(!(O.startIndex===void 0||O.startIndex>=R)){if(!O.length||O.length+O.startIndex>R)O.length=R-O.startIndex;N=[];var w=void 0,F=void 0;if((w=q)==null?0:(F=w.listGroup)==null?0:F.listItems)for(q=_.Q(q.listGroup.listItems),w=q.next();!w.done;w=q.next())if(w=Object.assign({},w.value),!(w.startIndex===void 0||w.startIndex>=R)){if(!w.length||w.length+w.startIndex>R)w.length=R-w.startIndex;N.push(w)}N.length>0&&(O.listGroup||(O.listGroup={}),O.listGroup=Object.assign({},O.listGroup,
{listItems:N}));G.push(O)}}else G=void 0;c={content:c,attachmentRuns:I,commandRuns:K,decorationRuns:Z,styleRuns:m,paragraphStyleRuns:G}}else c=Object.assign({},G,{content:xC(G.content,R)});return c};
WFg=function(G,c){if(c){var I=[];c=_.Q(c);for(var R=c.next();!R.done;R=c.next())if(R=Object.assign({},R.value),!(R.startIndex===void 0||R.startIndex>=G)){if(!R.length||R.length+R.startIndex>G)R.length=G-R.startIndex;I.push(R)}return I}};
xC=function(G,c){var I=c,R;if(R=I>0)R=G.charCodeAt(I-1),R=R>=55296&&R<=56319;R&&(I=G.charCodeAt(I),R=I>=56320&&I<=57343);R&&--c;return G.substring(0,c)};
r2T=function(G,c,I){I=I===void 0?ilU:I;if(G){var R=_.wH().resolve(qq);R||_.v("mweb_no_observer_killswitch")?FP(G,{data:c,observer:R,visibilityCallback:I,hideOption:flO,showOption:BVr,layer:G.layer}):_.Ck(new _.iW("Warning: monitorVisibility called with null observer",G.tagName,c==null?void 0:c.loggingDirectives,c==null?void 0:c.trackingParams))}else _.Ck(new _.iW("Warning: monitorVisibility called with null element",c==null?void 0:c.loggingDirectives,c==null?void 0:c.trackingParams,c==null?void 0:
c.rendererContext))};
Hlq=function(G,c){var I=[],R=G.content.length,Z,K=(Z=_.wH().resolve(_.qR(_.d0)))==null?void 0:Z();if(G.paragraphStyleRuns){Z=_.Q(G.paragraphStyleRuns);for(var m=Z.next();!m.done;m=Z.next()){var a=I.push,O=a.apply;var N=void 0;m=m.value;if((N=m.listGroup)!=null&&N.listItems){N=[];b:switch(m.listGroup.listType){case "LIST_TYPE_BULLET":var q="ul";break b;default:q="span"}N.push(jk({run:m,textLength:R,tag:q,config:{className:"yt-core-attributed-string__list-group"},startIndex:m.startIndex,length:m.length}));
q=_.Q(m.listGroup.listItems);for(var w=q.next();!w.done;w=q.next()){w=w.value;b:switch(m.listGroup.listType){case "LIST_TYPE_BULLET":var F="li";break b;default:F="span"}N.push(jk({run:m,textLength:R,tag:F,startIndex:w.startIndex,length:w.length}))}m=N}else m=[];O.call(a,I,_.jn(m))}}if(G.styleRuns&&(c==null||!c.noStyleRuns))for(Z=_.Q(G.styleRuns),a=Z.next();!a.done;a=Z.next()){m=a=a.value;N=K;O=c;N=M6r({extension:_.D(m.styleRunExtensions,jmB),isDarkTheme:N===void 0?!1:N,runColor:m.fontColor});w=m;
q=[];N&&q.push("yt-core-attributed-string--link-inherit-color");w.italic&&q.push("yt-core-attributed-string--italicized");w.underline&&w.strikethrough?q.push("yt-core-attributed-string--underline-strikethrough",J20(w.underline)):w.underline?q.push("yt-core-attributed-string--underlined",J20(w.underline)):w.strikethrough&&q.push("yt-core-attributed-string--strikethrough",J20(w.strikethrough));if(w.baselineOffset){a:switch(w.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":w="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":w="yt-core-attributed-string--baseline-offset-superscript";break a;default:w="yt-core-attributed-string--baseline-offset-unknown"}q.push(w)}q=q.join(" ");w={};if(m.weight||m.weightLabel)w.fontWeight=Ef0(m,O==null?void 0:O.isHeadline).toString();N&&(w.color=N);I.push(jk({run:a,textLength:R,tag:"span",config:{className:q,style:w},startIndex:a.startIndex,length:a.length}))}if(G.decorationRuns)for(Z=_.Q(G.decorationRuns),a=Z.next();!a.done;a=Z.next())a=a.value,
O={},a.textDecorator&&(q=a.textDecorator,m=K===void 0?!1:K,w=[],N=_.D(q,tN),q=_.D(q,xMr),N?(q=w,w=q.concat,F=[],(m=M6r({extension:_.D(N.highlightTextDecoratorExtensions,t6q),isDarkTheme:m,runColor:N.backgroundColor}))&&F.push("background-color: "+m+";"),N.backgroundCornerRadius!==void 0&&F.push("border-radius: "+N.backgroundCornerRadius+"px;"),N.leftPadding!==void 0&&F.push("padding-left: "+N.leftPadding+"px;"),N.rightPadding!==void 0&&F.push("padding-right: "+N.rightPadding+"px;"),N.topPadding!==
void 0&&F.push("padding-top: "+N.topPadding+"px;"),N.bottomPadding!==void 0&&F.push("padding-bottom: "+N.bottomPadding+"px;"),w=w.call(q,F)):q&&(N=w,w=N.concat,m=m?"#2ba640":"#107516",m=q.color?pVC(q.color):m,m=["padding: 2px;","border-top: solid "+m+" 2px;","border-bottom: solid "+m+" 2px;","background: linear-gradient(135deg, "+m+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+m+" 3px, rgba(0, 0, 0, 0) 3px);"],w=w.call(N,m)),m=w.join(" "),O.style$=m,m=a.textDecorator,N=[],q=_.D(m,
xMr),_.D(m,tN)?N.push("yt-core-attributed-string--highlight-text-decorator"):q&&N.push("yt-core-attributed-string--bracket-text-decorator"),m=N.join(" "),O.className=m,O.dir="auto"),m=_.D(a.textDecorator,tN),N=_.D(a.textDecorator,xMr),q=_.D(a.textDecorator,tN),w=_.D(a.textDecorator,xMr),I.push(jk({run:a,textLength:R,tag:"span",config:O,startIndex:(m==null?void 0:m.startIndex)||(N==null?void 0:N.startIndex)||0,length:(q==null?void 0:q.length)||(w==null?void 0:w.length)||0}));if(G.commandRuns&&(c==
null||!c.noEndpoints))for(K=_.Q(G.commandRuns),Z=K.next();!Z.done;Z=K.next())Z=Z.value,a=SIr(Z,c),I.push(jk({run:Z,textLength:R,tag:"a",config:a,startIndex:Z.startIndex,length:Z.length}));if(G.attachmentRuns)for(G=_.Q(G.attachmentRuns),K=G.next();!K.done;K=G.next()){K=K.value;O=a=void 0;Z={className:"yt-core-attributed-string--inline-block-mod"};if((O=K.element)==null?0:O.properties){O=(a=K.element)==null?void 0:a.properties;a=[];O=_.D(O,hc8);if(O==null?0:O.margin)O=O.margin,O.left&&a.push("margin-left: "+
En(O.left)+";"),O.right&&a.push("margin-right: "+En(O.right)+";"),O.top&&a.push("margin-top: "+En(O.top)+";"),O.bottom&&a.push("margin-bottom: "+En(O.bottom)+";");a=a.length!==0?a.join(" "):void 0;Z.style$=a}m=void 0;a={alt:"",preserveHeight:!0,preserveWidth:!0};O=["yt-core-attributed-string__image-element"];if(K.alignment){a:switch(K.alignment){case "ALIGNMENT_BASELINE":N="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":N="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:N="yt-core-attributed-string__image-element--image-alignment-bottom"}O.push(N)}if((m=K.element)==null?0:m.properties)m=[],N=_.D(K.element.properties,hc8),(N==null?0:N.height)&&m.push("height: "+En(N.height)+";"),(N==null?0:N.width)&&m.push("width: "+En(N.width)+";"),m=m.length!==0?m.join(" "):void 0,a.style$=m,N=void 0,m=((N=_.D(K.element.properties,dMA))==null?void 0:N.label)||"",a.alt=m;a.className=O.join(" ");O=void 0;q=N=void 0;m=((q=K.element)==null?0:q.type)?(N=_.D(K.element.type,
CZB))==null?void 0:N.image:void 0;I.push(jk({run:K,textLength:R,tag:"img",image:m,imageConfig:a,imageWrapperConfig:Z,startIndex:K.startIndex,length:(O=K.length)!=null?O:0}))}if(c==null?0:c.headerRuns)for(c=_.Q(c.headerRuns),G=c.next();!G.done;G=c.next())if(G=G.value,G.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(G.headerMapping)){a:{switch(G.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":K=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":K="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":K="yt-core-attributed-string--heading-3";break a}K=void 0}I.push(jk({run:G,textLength:R,tag:"span",config:K?{className:K}:void 0,startIndex:G.startIndex,length:G.length}))}return I};
_.Cd=function(G){return(G==null?void 0:G.content)!==void 0};
XVi=function(G){return G.image!==void 0&&G.imageConfig!==void 0};
y28=function(G,c){return!!c||!(G.commandRuns&&G.commandRuns.length!==0||G.paragraphStyleRuns&&G.paragraphStyleRuns.length!==0)};
gfr=function(G,c){if(c==null?0:c.userInput)for(G=_.Q(G),c=G.next();!c.done;c=G.next())if(c=c.value,c.tag!=="a"&&c.tag!=="li"){var I=void 0;(I=c).config||(I.config={});c.config.dir=c.tag==="ul"?_.wH().resolve(_.HI):"auto"}};
YIi=function(G){return function(c){var I=G.run;I.onTap===void 0&&I.onLongPress===void 0||!_.D(I,QmC)||(I={loggingDirectives:_.D(I,QmC)},_.v("web_attr_string_unified_vis_mon")?FP(c,{data:I,observer:_.wH().resolve(qq),hideOption:flO,showOption:BVr,layer:c.layer}):r2T(c,I))}};
Gdr=function(G){return function(c){for(var I in G)(Nq[I]||Nq[c1["default"]])(c,I,G[I])}};
ZDC=function(G,c){cbr(c);var I={data:null,start:0,end:G.length,parts:[]};c=_.Q(c);for(var R=c.next();!R.done;R=c.next())R=R.value,IEC(I,R.startIndex,R.endIndex,R);RQr(G,I);return I};
IEC=function(G,c,I,R){for(var Z=_.Q(G.parts),K=Z.next();!K.done;K=Z.next()){K=K.value;if(typeof K==="string")throw Error("gh");if(K.start<=c&&I<=K.end){IEC(K,c,I,R);return}}G.parts.push({data:R,parts:[],start:c,end:I})};
RQr=function(G,c){for(var I=c.parts.length;I>=0;I--){var R=c.parts[I],Z=c.parts[I-1],K=I===c.parts.length?c.end:R.start;Z=I===0?c.start:Z.end;K!==Z&&c.parts.splice(I,0,G.slice(Z,K));R&&RQr(G,R)}};
cbr=function(G){G.sort(function(c,I){if(c.startIndex<I.startIndex)return-1;if(I.startIndex<c.startIndex)return 1;c=c.endIndex-c.startIndex;I=I.endIndex-I.startIndex;return c>I?-1:I>c?1:0})};
_.KP0=function(G){var c=G.thumbnails;if(c){G={sources:[]};c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;var R={};R.url=I.url;R.width=I.width;R.height=I.height;G.sources.push(R)}return G}};
PGT=function(G,c,I,R){if(!c)return G.length>=1?G[G.length-1]:null;if(R)for(var Z=_.Q(G),K=Z.next();!K.done;K=Z.next()){K=K.value;var m=void 0,a=(m=K.url)==null?void 0:m.indexOf(R);if(a!==void 0&&a>=0)return K}R=_.Q(G);for(Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z.width&&Z.height&&(I&&Z.width>=c||!I&&Z.height>=c))return Z;for(c=G.length-1;c>=0;c--)if(I&&G[c].width||!I&&G[c].height)return G[c];return G[0]};
_.Qt8=function(G){var c;return(G=(c=G.sources)==null?void 0:c[0])?G.width/G.height:0};
_.muq=function(G){if(G.sources){G=_.Q(G.sources);for(var c=G.next();!c.done;c=G.next()){c=c.value;var I=void 0;if((I=c.clientResource)==null?0:I.imageName)return c}}};
ThU=function(G){var c={};G=_.D(G.processor,aE0);var I=(G=G==null?void 0:(I=G.imageTint)==null?void 0:I.color)?_.pE(G):void 0;I&&(c.color=I);return c};
ODT=function(G){var c;if((c=G.clientResource)!=null&&c.imageColor)return _.pE(G.clientResource.imageColor)};
_.Nhi=function(G,c,I,R,Z,K,m){if(!c||c.length===0||c[0].clientResource)return null;if(I&&c[0].url)return c[0].url;R===void 0&&(R=!0);if(R){var a;G=eQO*(Z||(G==null?void 0:(a=G.getBoundingClientRect())==null?void 0:a.width)||0)}else{var O;G=eQO*(K||(G==null?void 0:(O=G.getBoundingClientRect())==null?void 0:O.height)||0)}c=PGT(c,G,R,m);return(c==null?0:c.url)?c.url:(c==null?0:c.imageData)?c.imageData:null};
lE8=function(G,c,I){I=I?[I]:[];G.opacity&&I.push("opacity: "+G.opacity+";");c&&G.placeholderColor?(G=_.pE(G.placeholderColor),I.push("background-color: "+G+";")):I.push("background-color: transparent;");return I.join(" ")};
qzB=function(G,c,I,R,Z){var K=["ytCoreImageHost"];c&&K.push(c);I||K.push("ytCoreImageFillParentHeight");R||K.push("ytCoreImageFillParentWidth");switch(G.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":K.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":K.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":K.push("ytCoreImageContentModeCenter");break;default:K.push("ytCoreImageContentModeScaleToFill")}G.flipForRtlLayout&&K.push("ytCoreImageFlipRtl");
switch(Z){case "TOP_START":var m;K.push(((m=document.body)==null?void 0:m.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return K.join(" ")};
FPr=function(G){var c;if(G==null?0:(c=G.clientResource)==null?0:c.imageName){var I;G=(I=G.clientResource)==null?void 0:I.imageName;a:{switch(G){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":I="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":I="yt-logos-ext:yt-logo-updated";break a}I=void 0}return I||wjC.get(G)||G}};
DuB=function(G){return _.v("mweb_wiz_skip_render")?nT0(G):vTr(G)};
nT0=function(G){return function(c){var I=ZFA("wink-root");P1=Rg.lastChild;KIi();SNT(I,_.e(G,c))}};
vTr=function(G){var c=c===void 0?!1:c;return function(I){if(!c||!_.v("mweb_skip_keto_to_c3_if_no_data")||I.data!==void 0){var R=nh(!1);try{var Z=I.children;_.v("mweb_render_outside_patch_killswitch")||Rg?Z?eK(_.e(G,I,Z)):eK(_.e(G,I)):_.Ck(new _.iW("ketoToC3 called outside of a patch",{tagName:G.TAG_NAME}))}finally{nh(R)}}}};
oTO=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
uE0=function(G,c){G.onViewportEntered=c;UuB.observe(G)};
bDq=function(){var G={rootMargin:"10%",threshold:.01};_.v("mweb_enable_set_io_root_to_null_safari")?G.root=null:_.v("mweb_enable_set_io_root_to_body_safari")&&(G.root=document.body);return new IntersectionObserver(function(c,I){c.filter(function(R){return R.intersectionRect.height>0}).forEach(function(R){R=R.target;
if(!_.v("mweb_enable_only_update_image_when_connected")||R.isConnected!==!1){var Z;(Z=R.onViewportEntered)==null||Z.call(R);I.unobserve(R)}})},G)};
kdr=function(G,c,I,R,Z){function K(){if(R){var a=R.loadedClass,O=R.notifyOnUnloaded;a&&_.XP(G,a);O&&G.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function m(){var a=I(c,G);a&&G.getAttribute("src")!==a&&(_.v("mweb_enable_only_update_image_when_connected")&&G.isConnected===!1||a===G.src||(G.src=a),K())}
Z=Z===void 0?!0:Z;G.removeAttribute("src");K();c&&(Z?uE0(G,m):m())};
stT=function(G,c,I){if(!c)return!1;c=I(c,G);I=G.getAttribute("src");return c&&c===I&&G.complete};
LPr=function(G,c){for(var I in c)I==="className"?G.className=c[I]:(Nq[I]||Nq[c1.default])(G,I,c[I])};
Abg=function(G,c,I,R){DuB(_.yc)({contentMode:c.contentMode,loadedClass:c.loadedClass,isPreloaded:c.isPreloaded,notifyOnLoaded:c.notifyOnLoaded,notifyOnUnloaded:c.notifyOnUnloaded,preferredThumbnail:c.preferredThumbnail,preserveHeight:c.preserveHeight,preserveWidth:c.preserveWidth,objectPosition:c.objectPosition,targetWidth:c.targetWidth,targetHeight:c.targetHeight,shouldShowPlaceholder:c.shouldShowPlaceholder,useWidth:c.useWidth,isToggled:c.isToggled,alt:c.alt,className:c.className,onerror:c.onerror,
onload:c.onload,style$:c.style$,color:c.color,width:c.width,height:c.height,"aria-hidden$":c["aria-hidden$"],draggable:c.draggable,"data-disabled$":c["data-disabled$"],data:G,callback:I,renderLazy:R===void 0?!0:R,hideOn404:!1})};
SzC=function(G,c,I){I=I===void 0?!1:I;var R=G.sources!==void 0?G:_.KP0(G);if(R){var Z=c.onload;c.onload=function(N){var q=N.target;I&&q.naturalWidth===120||_.g0(q,"ytCoreImageLoaded");c.notifyOnLoaded&&q.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Z==null||Z(N)};
c.targetWidth&&c.preserveWidth&&(c.width=c.targetWidth);c.targetHeight&&c.preserveHeight&&(c.height=c.targetHeight);var K=_.muq(R),m=K&&FPr(K),a=ThU(R);if(m)return(G=ODT(K)||a.color)&&(c.color=G),{type:"icon",iconName:m,config:Object.assign({},c,c.alt?{}:{"aria-hidden$":"true"},{"aria-label$":c.alt,role:"img"})};if(G.sources===void 0){c.alt=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label||c.alt;c.style$=lE8(G,c.shouldShowPlaceholder,c.style$);var O;c.isPreloaded=
!((O=_.D(G,$uB))==null||!O.isPreloaded)}c.contentMode&&!R.contentMode&&(R.contentMode=c.contentMode);c.className=qzB(R,c.className,c.preserveHeight,c.preserveWidth,c.objectPosition);c.loadedClass="ytCoreImageLoaded";return{type:"image",image:R,config:c}}};
_.YC=function(){var G=_.Hy.apply(0,arguments);return _.Op(pjr,function(c){var I=G.map(function(R){return R==null?void 0:R(c)});
return function(){return void I.forEach(function(R){return void(R==null?void 0:R())})}})};
M0i=function(G,c){var I=c==null?void 0:c.initial;return _.SE(function(){_.dN(!0);return I=G(I)},{equals:c==null?void 0:c.isEqual},"rSlKsc")};
V0r=function(G,c){if(G===c)return!0;if(G===void 0||c===void 0)return!1;var I,R,Z,K,m,a,O,N;return G.content===c.content&&((I=G.styleRuns)==null?void 0:I.length)===((R=c.styleRuns)==null?void 0:R.length)&&((Z=G.commandRuns)==null?void 0:Z.length)===((K=c.commandRuns)==null?void 0:K.length)&&((m=G.attachmentRuns)==null?void 0:m.length)===((a=c.attachmentRuns)==null?void 0:a.length)&&((O=G.decorationRuns)==null?void 0:O.length)===((N=c.decorationRuns)==null?void 0:N.length)};
JbT=function(G,c){if(G){var I=_.Cd(G)?G:_.Vc(G);if(I!=null&&I.content)if(_.v("attr_string_reactive_c3"))c=c||{},c.contentAsserted=!0,DuB(zQg)({text:I,config:c});else{var R;G=y28(I,(R=c)==null?void 0:R.ariaLabel);var Z;R=G?(Z=c)==null?void 0:Z.ariaLabel:null;Z=G?"text":null;var K;KFb("span",{className:zcC(I,c),dir$:((K=c)==null?0:K.userInput)?"auto":void 0,"aria-label$":R,role$:Z},function(){if(I.styleRuns||I.commandRuns||I.attachmentRuns||I.decorationRuns||I.paragraphStyleRuns){var m=Hlq(I,c);gfr(m,
c);m=ZDC(I.content,m);m=_.Q(m.parts);for(var a=m.next();!a.done;a=m.next())ETO(a.value)}else eKC(I.content)})}}};
ETO=function(G){typeof G==="string"?eKC(G):XVi(G.data)?KFb("span",G.data.imageWrapperConfig,function(){Abg(G.data.image,G.data.imageConfig)}):KFb(G.data.tag,G.data.config,function(c){YIi(G.data)(c);
c=_.Q(G.parts);for(var I=c.next();!I.done;I=c.next())ETO(I.value)})};
iDg=function(G){return G.parts.map(WPq)};
WPq=function(G){if(typeof G==="string")return G;G=XVi(G.data)?_.e("span",{el:_.YC(Gdr(G.data.imageWrapperConfig))},_.e(_.yc,Object.assign({},{data:G.data.image},G.data.imageConfig))):_.e(G.data.tag,{el:_.YC(YIi(G.data),Gdr(G.data.config))},G.parts.map(WPq));return ph(G)};
fEg=function(G,c){return G===c?!0:G===void 0||c===void 0?!1:G.noStyleRuns===c.noStyleRuns&&G.noLinkColor===c.noLinkColor&&G.noEndpoints===c.noEndpoints&&G.headerRuns===c.headerRuns&&G.isOverlay===c.isOverlay&&G.linkInheritColor===c.linkInheritColor&&G.userInput===c.userInput&&G.isHeadline===c.isHeadline};
BhB=function(G){return function(){var c,I,R,Z,K,m,a,O,N,q,w,F,n,U;return{ariaLabel:(c=G.ariaLabel)==null?void 0:c.call(G),className:(I=G.className)==null?void 0:I.call(G),ellipsisTruncate:(R=G.ellipsisTruncate)==null?void 0:R.call(G),isOverlay:(Z=G.isOverlay)==null?void 0:Z.call(G),linkInheritColor:(K=G.linkInheritColor)==null?void 0:K.call(G),noEndpoints:(m=G.noEndpoints)==null?void 0:m.call(G),noStyleRuns:(a=G.noStyleRuns)==null?void 0:a.call(G),noLinkColor:(O=G.noLinkColor)==null?void 0:O.call(G),
noPreWrap:(N=G.noPreWrap)==null?void 0:N.call(G),noWrap:(q=G.noWrap)==null?void 0:q.call(G),skipOnClick:(w=G.skipOnClick)==null?void 0:w.call(G),userInput:(F=G.userInput)==null?void 0:F.call(G),headerRuns:(n=G.headerRuns)==null?void 0:n.call(G),isHeadline:(U=G.isHeadline)==null?void 0:U.call(G)}}};
jtf=function(G,c){G=new rbf(G,c);_.hg(G);throw G;};
xuf=function(G,c,I){var R=Y8p(G);G._numRenders=0;try{var Z=_.yYi(function(){return _.e(c,Object.assign({},I))})}catch(m){var K=function(a){a.args||(a.args=[]);
a.args.push("Error in web component wrapper");a.args.push(G.tagName.toLowerCase());return a};
_.dj(m instanceof Error?K(m):new rbf("Wiz rendering error",G.tagName.toLowerCase()));throw m;}finally{Y8p(R)}return Z};
_.R1=function(G,c,I){function R(q){var w={};q=_.Q(q);for(var F=q.next();!F.done;F=q.next()){F=F.value;var n=void 0,U=void 0,k=void 0,p=_.mY((k=(U=(n=F).getAttribute)==null?void 0:U.call(n,"slot"))!=null?k:"children");if(n=w[p])n.push(F);else if(p in K||p==="children")w[p]=[F]}q=_.Q(Object.keys(w));p=q.next();for(F={};!p.done;F={content$jscomp$59:void 0},p=q.next())p=p.value,p!=="children"&&(F.content$jscomp$59=w[p],w[p]=function(M){return function(){return M.content$jscomp$59}}(F));
return w}
I=I===void 0?{}:I;G.debugName=c+" (CoW)";var Z,K=(Z=I.props)!=null?Z:{};GTg.add(c);var m=t0g();Z=function(){var q=m.apply(this,arguments)||this;q.rawProps={};q.queuingRender=!1;q.dispose=function(){};
q.isWebComponentWrapper=!0;q.isReparenting=!1;q.hasRendered=!1;return q};
_.u(Z,m);Z.prototype.render=function(){this.hasRendered=!0;for(var q=_.Q([].concat(_.jn(this.attributes))),w=q.next();!w.done;w=q.next())w=w.value,w.name!=="slot"&&w.name!=="hidden"&&this.removeAttribute(w.name);q=Object.assign({},this.componentProps,this.slotProps);w=_.Q(xuf(this,G,q));q=w.next().value;w=w.next().value;!(q[0]instanceof Element)||q.length>1?jtf("Wrapped Wiz components must return a single root element.",c):(q=q[0].tagName.toLowerCase(),q!==c&&jtf("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(q+" !== '"+c),c),this.dispose=w)};
Z.prototype.setUpProps=function(){for(var q=this.rawProps,w=this.attributes,F=_.Q(Object.keys(K)),n=F.next();!n.done;n=F.next()){n=n.value;var U=void 0;((U=this)==null?0:U[n])&&this[n]!==hQT&&q[n]===void 0&&(q[n]=this[n],(U=Object.getOwnPropertyDescriptor(this.constructor.prototype,n))&&Object.defineProperty(this,n,U))}F=_.Q(w);for(n=F.next();!n.done;n=F.next()){U=n.value;n=_.mY(U.name);var k=n==="class"&&!w.getNamedItem("class-name");if(n in K||k)U=U.value===""||U.value==="true"?!0:U.value==="false"?
!1:isNaN(Number(U.value))?U.value:Number(U.value),n!=="class"||q.className?q[n]=U:q.className=U}w={};for(var p in K)K[p]!==_.G9&&K[p]!==duT&&(q[p]instanceof Function&&jtf("Function props must be configured as STATIC, not SIGNAL.",c),n=_.Q(_.ks(q[p],void 0,"tbseob")),F=n.next().value,n=n.next().value,w[p]=n,q[p]=F);q=_.Q([q,w]);this.componentProps=q.next().value;this.setters=q.next().value;this.slotProps=R(this.childNodes)};
Z.prototype.connectedCallback=function(){Rag.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in K&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Z.prototype.disconnectedCallback=function(){if(!Rag.has(this)){var q;a:{if(_.cU)for(q=this;q;){if(_.I1.has(q)){q=!0;break a}q=q.parentElement}q=!1}if(q)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){q=_.Q([].concat(_.jn(this.attributes)));for(var w=q.next();!w.done;w=q.next()){w=w.value;var F=void 0;w.name==="slot"||w.name==="hidden"&&((F=I.unsafeExternallySettableAttributes)==null?0:F.has("hidden"))||this.removeAttribute(w.name)}}this.innerText="";dJr(this)}}};
Z.prototype._setPendingPropertyOrPath=function(){};
Z.prototype.notifyPath=function(){};
_.Nh.Object.defineProperties(Z.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var a=_.Q(Object.keys(K)),O=a.next(),N={};!O.done;N={prop$jscomp$109:void 0},O=a.next())N.prop$jscomp$109=O.value,O=void 0,((O=I.legacyPolymer)==null?0:O.forwardHostProps)&&j4r.has(N.prop$jscomp$109)||Object.defineProperty(Z.prototype,N.prop$jscomp$109,{set:function(q){return function(w){var F=this;Rag.has(this)||(this.setters?pt(function(){var n,U;return void((U=(n=F.setters)[q.prop$jscomp$109])==null?void 0:U.call(n,w))}):(this.rawProps[q.prop$jscomp$109]=w,this.queuingRender&&q.prop$jscomp$109===
"data"&&w!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(N),
get:CG8.has(N.prop$jscomp$109)?void 0:function(){return hQT}});
customElements.define(c,Z)};
_.HDB=function(G,c){return(G=_.ZX(G,c))?_.By(_.dS(G)):null};
_.KQ=function(G){if(G=_.ZX(G,Number.MAX_VALUE,void 0,"width"))return _.dS(G)};
_.ZX=function(G,c,I,R){R=R===void 0?"width":R;if(!G||!G.length)return null;if(_.v("kevlar_tuner_should_always_use_device_pixel_ratio")){var Z=window.devicePixelRatio;_.v("kevlar_tuner_should_clamp_device_pixel_ratio")?Z=Math.min(Z,_.DH("kevlar_tuner_clamp_device_pixel_ratio")):_.v("kevlar_tuner_should_use_thumbnail_factor")&&(Z=_.DH("kevlar_tuner_thumbnail_factor"));XjT=Z}else XjT||(XjT=window.devicePixelRatio);Z=XjT;_.v("kevlar_tuner_should_always_use_device_pixel_ratio")?c*=Z:Z>1&&(c*=Z);if(_.v("kevlar_tuner_min_thumbnail_quality"))return G[0].url||
null;Z=G.length;if(_.v("kevlar_tuner_max_thumbnail_quality"))return G[Z-1].url||null;if(I)for(var K=0;K<Z;K++)if(G[K].url.indexOf(I)>=0)return G[K].url||null;for(I=0;I<Z;I++)if(G[I][R]>=c)return G[I].url||null;for(c=Z-1;c>0;c--)if(G[c][R])return G[c].url||null;return G[0].url||null};
Yzf=function(){PU.size?setTimeout(function(){Qe(yb0)},0):gTq=0};
yb0=function(){var G=(0,_.Fa)(),c=null,I=!1;PU.forEach(function(Z){Z.loaded=!0;Z.loadTime=G;Z.pendingPaint=!1;var K=GYi.get(Z);K&&K.resolve(G);c=Z;I||!Z.ftlEligible&&Z.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(I=!0)});
var R;((R=c)==null?0:R.markDirty)&&c.markDirty();PU.clear();gTq=0;I&&cQB(G)};
INg=function(G){PU.add(G);G.pendingPaint=!0;gTq||(gTq=_.mq(_.dJ,Yzf))};
Rog=function(G){G.loaded=!1;G.loadTime=Infinity;var c=GYi.get(G);c&&(c.reject(Error("mh")),GYi.delete(G));G.pendingPaint&&(PU.delete(G),G.pendingPaint=!1)};
_.ZOi=function(G){var c=G.indexOf(":");return c===-1?{originalName:G}:{originalName:G.substring(0,c),datasyncId:G.substring(c+1)}};
_.Pcb=function(){return _.T(function(G){if(KM0!==void 0)return G.return(KM0);KM0=new Promise(function(c){var I;return _.T(function(R){switch(R.nextAddress){case 1:return _.s9(R,2),R.yield(_.a1.open("test-only"),4);case 4:return R.yield(_.a1.delete("test-only"),5);case 5:_.Pl(R,3);break;case 2:if(I=_.M3(R),I instanceof Error&&I.name==="SecurityError")return c(!1),R.return();case 3:c("caches"in window),_.Vp(R)}})});
return G.return(KM0)})};
aNr=function(){return _.T(function(G){if(G.nextAddress==1)return G.yield(_.Pcb(),2);if(!G.yieldResult)return G.return(void 0);QYC||(QYC=new mVg);return G.return(QYC)})};
TlU=function(G){var c,I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:return K.yield(aNr(),2);case 2:c=K.yieldResult;if(!c)throw Error("oh");return K.yield(c.open("yt-player-local-img"),3);case 3:return I=K.yieldResult,K.yield(I.match(G),4);case 4:R=K.yieldResult;if(!R)throw Error("ph");return K.yield(R.blob(),5);case 5:return Z=K.yieldResult,K.return(Z)}})};
OOA=function(G,c){for(var I in G)if(G.hasOwnProperty(I)&&c[I])return I;return null};
eoi=function(G){return"stamp"+G.replace("-","_")+"_"};
NlB=function(G){var c=G.match(/\[\[([\w\.]+)\]\]/);if(c&&c.length>1)return c[1];_.hg(Error("rh`"+G));return null};
lNT=function(G){return G===void 0?_.XG("REUSE_COMPONENTS",!1):G||!1};
FM0=function(G,c,I){I&&(c.is?(qkb.has(c)&&(G=qkb.get(c),I=G.listener,delete c[G.property],I.type==="element"&&c.removeEventListener(I.eventName,I.handler),qkb.delete(c)),wfp(c)):c.__proto__==HTMLElement.prototype&&(c=new _.iW("Rendererstamper removed a non custom element","Stamper: "+G+" element: "+(c&&c.nodeName)),_.Ck(c)))};
nYq=function(G,c,I,R){var Z=c.node?c.node:c;_.Q1(I).parentNode===Z&&(c.removeChild(I),FM0(G,I,R));if(G=T9.get(I))T9.delete(I),_.dJ.cancelJob(G);I.hidden=!1};
vYO=function(G,c,I,R){if(c&&c.children&&(I=c.children[I]))if(_.XG("DEFERRED_DETACH"))for(;I&&!T9.has(I);){var Z=G,K=c,m=I,a=R;m.hidden=!0;Z=_.W_(_.dJ,nYq.bind(null,Z,K,m,a),0);T9.set(m,Z);I=I.nextElementSibling}else for(;(m=c.lastElementChild)&&(c.removeChild(m),FM0(G,m,R),m!=I););};
_.O3=function(){for(var G=_.Hy.apply(0,arguments),c=!0,I=_.Q(G),R=I.next();!R.done;R=I.next())if(typeof R.value!=="string"){c=!1;break}return c?G.join(" ").trim()||void 0:function(){for(var Z="",K=_.Q(G),m=K.next();!m.done;m=K.next())if(m=m.value,typeof m==="function"&&(m=m()),m)if(typeof m==="string")Z+=" "+m;else for(var a in m)if(m.hasOwnProperty(a)){var O=m[a];typeof O==="function"&&(O=O());O&&(Z+=" "+a)}Z=Z.trim()||void 0;return _.dN(Z)}};
_.DVf=function(G,c){return _.a6(G.entities,"markersEngagementPanelSyncEntity",c)};
_.eu=function(G,c){return _.a6(G.entities,"playerStateEntity",c)};
oYC=function(G,c){return _.a6(G.entities,"fantasyWinProbabilityEntity",c)};
UVq=function(G,c){return _.a6(G.entities,"fantasyTeamEntity",c)};
uJb=function(G,c){return _.a6(G.entities,"fantasyPlayerEntity",c)};
bOq=function(G,c){return _.a6(G.entities,"booleanEntity",c)};
kYO=function(G,c){return _.a6(G.entities,"qrCodeEntity",c)};
sYr=function(G){return _.a6(G.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
AQU=function(G){var c;return(c=LM0[G])!=null?c:"EVENT_SPAN_TYPE_UNKNOWN"};
$VC=function(G){var c=G.nodeName;if(G.id)return c+="#"+G.id;if(G.classList)for(var I=_.Q(G.classList),R=I.next();!R.done;R=I.next())c+="."+R.value;G.parentElement&&(c=$VC(G.parentElement)+" > "+c);return c};
SkA=function(G){return function(c){var I=AQU(c.type);return I==="EVENT_SPAN_TYPE_UNKNOWN"?G(c):Hd("event",{type:I,nodepath:c.target instanceof Element?$VC(c.target):void 0},function(){return G(c)})}};
_.Nx=function(G){G&&CC("event")&&(G=SkA(G));return kf0(function(c){var I,R=(I=G)==null?void 0:I(c);return typeof R==="boolean"?R:!0})};
lf=function(G){return function(){return G()?G():void 0}};
zor=function(G){var c=_.mX("animated-rolling-character"),I=jQ8(),R=rq(G.character)||rq(G.previousCharacter),Z=_.Q(j9q()),K=Z.next().value,m=Z.next().value;_.tI(function(){if(window.ResizeObserver&&_.v("web_fix_rolling_numbers_zoom_safari")){var a=new _.qx(function(){var N,q,w=Math.round(((q=(N=c.value.querySelector("div"))==null?void 0:N.getBoundingClientRect().height)!=null?q:0)*100)/100;w&&m(w)},500),O=new ResizeObserver(function(){a.fire()});
O.observe(c.value);return function(){O.disconnect();a.dispose()}}});
Vyr(function(){var a=_.v("web_fix_rolling_numbers_zoom_safari")?K:G.marginMultiplier;if(a){var O;(O=I.value)==null||O.cancel();R?(O=G.previousCharacter?Number(G.previousCharacter)+10:G.rollUp?0:30,G.shouldAnimate||(O-=pfq(G,O))):(O=G.rollUp?0:2,G.shouldAnimate||(O-=G.rollUp?-1:1));c.value.style.marginTop="-"+O*a+"px";G.shouldAnimate?I.value=M80(c.value,G,O,R,a):c.value.style.display=G.character?"":"none"}});
return _.e("animated-rolling-character",{el:c,class:"animatedRollingCharacterHost"},UtC(R,function(){for(var a=[],O=1;O<30;O++)a.push(_.e("div",null,O%10));return _.e(_.FG,null,_.e("div",null,"\u00a0"),a,_.e("div",null,"\u00a0"))},function(){return V8g(G.character)}))};
V8g=function(G){return _.e(_.FG,null,_.e("div",null,"\u00a0"),_.e(_.FG,null,UtC(!G||_.mg(G),function(){return _.e("div",null,"\u00a0")},function(){return _.e("div",null,G)})),_.e("div",null,"\u00a0"))};
M80=function(G,c,I,R,Z){I=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(R?pfq(c,I):c.rollUp?-1:1)*Z+"px)"}],EYi),document.timeline);c.character?(G.style.display="",I.onfinish=null):I.onfinish=function(){G.style.display="none"};
I.play();return I};
pfq=function(G,c){var I=Number(G.character)+10;if(G.previousCharacter)if(G.character){var R=Number(G.character),Z=Number(G.previousCharacter);G=G.rollUp?Z<R?I:I+10:Z<R?I-10:I}else G=G.rollUp?30:0;else G=G.character==="0"?I:G.rollUp?I-10:I+10;return c-G};
JQi=function(G){return function(c){var I={},R;for(R in c){var Z=void 0,K=void 0;((Z=void 0)==null?0:(K=Z.callbacks)==null?0:K[R])||(I[R]=c[R])}return _.e(X8p,null,function(){for(var m in I)c[m]=_.dN(I[m]);c.disableReactiveLogging=!0;return _.e(G,Object.assign({},c))})}};
fNp=function(G,c,I,R,Z,K,m){I=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(K?WMr(c,I,R,Z):R?-1:1)*m+"px)"}],iOi),document.timeline);c?(G.style.display="",I.onfinish=null):I.onfinish=function(){G.style.display="none"};
I.play();return I};
WMr=function(G,c,I,R){var Z=Number(G)+10;c?G?(G=Number(G),c=Number(c),I=I?c<G?Z:Z+10:c<G?Z-10:Z):I=I?30:0:I=G==="0"?Z:I?Z-10:Z+10;return R-I};
rQr=function(G){var c=jQ8(),I=jQ8();WYB(function(){c.value=G.numberText;I.value=G.numberValue},[G.numberText]);
var R=G.fontSizeMultiplier?G.heightPx*G.fontSizeMultiplier:G.heightPx,Z=rOB(function(){if(G.numberText){var m=G.numberText;var a=G.forceRollUp||!I.value||!G.numberValue||I.value<G.numberValue;var O=!!G.shouldAnimate,N=c.value,q=[],w=0,F=0,n=(N?N.replace(/\D/g,"").length:0)-(m?m.replace(/\D/g,"").length:0);N=N?N.split(/(\d)/).filter(Boolean):[];for(m=m.split(/(\d)/).filter(Boolean);n<0;){var U=m[F];q.push({character:U,rollUp:a,marginMultiplier:R,shouldAnimate:O});F++;rq(U)&&n++}for(;w<n;)U=N[w],q.push({previousCharacter:U,
rollUp:a,marginMultiplier:R,shouldAnimate:O}),w++,rq(U)||n++;for(;F<m.length;)n=m[F],U=N[w],rq(n)===rq(U)?(F++,w++):rq(n)?(w++,n=void 0):rq(U)&&(F++,U=void 0),q.push({character:n,previousCharacter:U,rollUp:a,marginMultiplier:R,shouldAnimate:O});a=q}else a=[];return a},[G.numberText]),K=G.numberText?["height: "+R+"px;",
"line-height: "+G.heightPx+"px;"].join(" "):"";return _.e("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:K,dir:"ltr","aria-hidden":"true"},Z.map(function(m){return _.e(Bli,Object.assign({},m))}))};
jYi=function(G){switch(G){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.xVU=function(G,c){if(!G&&!c)return"medium";G=Math.max(G||0,c||0);return G>=256?"large":G>=96?"medium":"small"};
t8B=function(G){switch(G){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
ho8=function(G){return new KeyframeEffect(G,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
dVg=function(G){return new KeyframeEffect(G,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.wi=function(G){return function(){var c="",I;for(I in G){for(var R=G[I];typeof R==="function";)R=R();R!==void 0&&R!==null&&(c+="; "+I+": "+R)}return c.length>0?_.dN(c.slice(2)):_.dN()}};
CcB=function(G){switch(G){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
HOb=function(G,c){if(c)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(G)switch(G){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
GgC=function(G,c,I,R,Z,K,m){var a=Xfg(G),O=a.disabled,N=a.iconPosition,q=a.style,w=a.focused,F=function(){return!!k()&&N()==="icon-only"},n=function(){return!!k()&&N()==="icon-only-40"},U=function(){return!!k()&&N()==="icon-with-label"},k=function(){return!!c||!(R==null||!R())};
return{type:function(){return q()==="call-to-action-inverse"?"text":q()==="overlay-dark"&&G().type!=="filled"&&G().type!=="tonal"?"tonal":G().type},
shouldFocus:function(){return(w()||(K==null?void 0:K()))&&!O()},
hasIconLeading:function(){return!!k()&&N()==="leading"},
hasIconTrailing:function(){return!!k()&&N()==="trailing"},
hasIconLeadingTrailing:function(){return!!k()&&!!(I||Z!=null&&Z())&&N()==="leading-trailing"},
hasIconOnly:F,hasIconOnly40:n,hasIconWithLabel:U,iconButton:function(){return F()||n()||U()},
visiblyDisabled:function(){return(O()?"disabled":G().state)==="disabled"||O()},
overrideSmallSizeIcon:function(){return!G().ignoreIconSizeOverride&&yQi(G(),k())},
iconToRender:c?c:function(){return _.e(_.F6,{icon:R,gradientColor:function(){var p;return(p=G().customColors)==null?void 0:p.iconGradientColor},
size:function(){return gYr(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return Ykg(G())},
animateIcon:m})},
secondaryIconToRender:I?I:function(){return _.e(_.F6,{icon:Z,size:function(){return gYr(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return Ykg(G())}})}}};
Xfg=function(G){return{size:function(){return G().size},
style:function(){return G().style},
focused:function(){return G().focused},
disabled:function(){return G().disabled},
onTap:function(c){var I,R;return(R=(I=G()).onTap)==null?void 0:R.call(I,c)},
alignByText:function(){return G().alignByText},
aTagConfig:function(){return G().aTagConfig},
customColors:function(){return G().customColors},
segmentedPosition:function(){return G().segmentedPosition},
toggled:function(){return G().toggled},
toggleable:function(){return G().toggleable},
accessibilityLabel:function(){return G().accessibilityLabel},
onToggle:function(c){var I,R;return(R=(I=G()).onToggle)==null?void 0:R.call(I,c)},
iconPosition:function(){return G().iconPosition},
oneOffCustomTextWrap:function(){return G().oneOffCustomTextWrap},
disableTextEllipsis:function(){return G().disableTextEllipsis},
disableBackdropFilter:function(){return G().disableBackdropFilter},
tooltipText:function(){return G().tooltipText},
tooltipShape:function(){return G().tooltipShape},
ariaHidden:function(){return G().ariaHidden},
tabIndex:function(){return G().tabIndex},
buttonText:function(){return G().buttonText},
formattedButtonText:function(){return G().formattedButtonText},
animatedTextProps:function(){return G().animatedTextProps},
onClickRateLimitMs:function(){return G().onClickRateLimitMs}}};
yQi=function(G,c){c=(G.iconPosition==="icon-only"||G.iconPosition==="icon-only-40"||G.iconPosition==="icon-with-label")&&c;return!G.segmentedPosition&&c&&G.size==="S"};
gYr=function(G,c,I){switch(G.size){case "XS":return 16;case "S":return!I&&yQi(G,c)?24:16;default:return 24}};
cTp=function(G){switch(G){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
IRi=function(G){switch(G){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
RN8=function(G){switch(G){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
Ykg=function(G){if(G.style==="overlay-dark"&&G.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
nQ=function(G){return G&&G.endsWith("px")?Number(G.slice(0,-2)):0};
PgT=function(G,c){var I=_.Q(_.Gz(function(){var Z,K;return(K=G())!=null?K:c==null?void 0:(Z=c())==null?void 0:Z.text})),R=I.next().value;
return[function(Z){var K=_.SE(function(){var O;return Object.assign({},{location:"bottom",offset:16,delay:1},c==null?void 0:c(),{text:(O=R())!=null?O:""})},void 0,"IJU38d");
_.xs(function(){var O=K();_.ue(function(){_.dJ.addJob(function(){vU.notify(Z,O)},4)})},"WlsgZc");
var m=function(){ZZb(Z,K())},a=function(){KfC()};
Z.addEventListener("mouseenter",m);Z.addEventListener("focus",m);Z.addEventListener("mouseleave",a);Z.addEventListener("blur",a);Z.addEventListener("tap",a);_.ty(function(){Z.removeEventListener("mouseenter",m);Z.removeEventListener("mouseleave",a);Z.removeEventListener("focus",m);Z.removeEventListener("blur",a);Z.removeEventListener("tap",a);KfC()})},
I.next().value]};
m5O=function(G,c){if(!aW){var I;wNp(function(){return I=Cmf(G,c)});
return I}G.parent=QBb();return Cmf(G,c)};
QBb=function(){var G=_.OZ(aW||void 0,tR8);return _.szg(G)?void 0:G};
DX=function(G,c){_.iD(G,Object.assign({},c,{forceClickLogging:!0}))};
aRg=function(G){switch(G){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
OZO=function(G,c){var I=_.WI(G==null?void 0:G.onTap),R={};I&&(R.getClickedVisualElement=function(){var Z;return TYU(G,I,c==null?void 0:(Z=c.value)==null?void 0:Z.visualElement)});
R=_.fd({elementsCommand:G.onTap,forceNewState:!0,additionalCommandArgs:R});return BI(R)?R:void 0};
eNA=function(G,c,I,R){DX(G,Object.assign({},{form:{element:c,event:I}},R))};
NYp=function(G,c,I,R,Z){var K=void 0;return function(m){var a=_.WI(I?G==null?void 0:G.onDisabledTap:G==null?void 0:G.onTap);if(a){var O;K=(O=K)!=null?O:c==null?void 0:c.value;if(a)if(_.v("web_button_vm_click_client_ve_killswitch"))eNA(a,K,m);else{var N;O=TYU(G,a,(N=K)==null?void 0:N.visualElement);if(Z){eNA(a,Z,m,{clickedVisualElement:O,form:{element:Z}});return}eNA(a,K,m,{clickedVisualElement:O})}}R&&R(m)}};
TYU=function(G,c,I){c=c==null?void 0:c.clickTrackingParams;var R,Z;G=G==null?void 0:(R=G.loggingDirectives)==null?void 0:(Z=R.clientVeSpec)==null?void 0:Z.uiType;if(I&&G&&!c)return I};
lRq=function(G){switch(G){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
qJp=function(G){switch(G){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
wAf=function(G){switch(G){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
Ffq=function(G){switch(G){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
_.o1=function(G){return _.SE(function(){I_0()();return K0b(G)},{debugName:"d8B62c"},"DEXkhd")};
nxf=function(G,c){return _.a6(G.entities,"engagementToolbarStateEntityPayload",c)};
D5r=function(G){(G=_.kC(G))&&_.vxT(G)};
_.vxT=function(G){var c=_.k0();c&&_.fC(c,G)};
oxB=function(G,c,I){_.ym(G,"yt-open-popup-action",[c,I||G])};
U5r=function(G,c){var I=_.hI(G,"endpoint"),R=_.hI(G,"action");return(I=R?R:I)&&c&&(I=c.navigationEndpointPopupMap[I])&&(G=_.Yc(I,G),(I=_.hI(G,"renderer"))&&c.supportedPopups.hasOwnProperty(I))?{openPopupAction:{popupType:c.popupTypeMap[I],popup:G}}:null};
u7A=function(G,c,I,R){if(R){var Z;I=I==null?void 0:(Z=I.data)==null?void 0:Z.contents;(Z=I instanceof Array&&I.length?I[0]:I)&&(I=_.hI(Z,"renderer"))&&R.supportedPopups.hasOwnProperty(I)&&(c.stopPropagation(),oxB(G,{openPopupAction:{popupType:R.popupTypeMap[I],popup:Z}}))}};
sBT=function(G,c,I,R){R=R===void 0?!1:R;var Z=bZ0(c);if(Z){Z.href&&EU(Z.href);var K=c.button;K=K!==void 0?K===0&&!U3(c):!U3(c);Z.data&&K&&kg8(G,Z,c,I,R)}};
kg8=function(G,c,I,R,Z){Z=Z===void 0?!1:Z;var K=_.DH("pbj_navigate_limit",-1)===0;LfT(c);_.wH().resolve(_.qR(cN));var m=c.data;if(Object.keys(m).length!==0)if(!_.v("unplugged_web_disable_actions_for_cec_endpoint")&&_.D(m,_.RP))_.v("endpoint_behavior_command_executor_fix_killswitch")||(I.preventDefault(),I.stopPropagation()),_.cd(G,[m],G);else if(R=U5r(m,R))m.loggingUrls&&m.loggingUrls.forEach(function(O){O.baseUrl&&_.Rx(O.baseUrl)}),I.preventDefault(),I.stopPropagation(),oxB(G,R,c);
else{var a=ATr(0,c.data,I);if(G=c.getForm)G=G(),a.tempData=a.tempData||{},a.tempData=Object.assign({},a.tempData,G);G=_.CE(I);if(R=G.find(function(O){return!!O.visualElement}))a.createScreenConfig=a.createScreenConfig||{},a.createScreenConfig.clickedVisualElement=R.visualElement;
if(!K)if(I.preventDefault(),I.stopPropagation(),_.D(m,_.$5b)&&!Z&&_.NC.instance)_.NC.instance.resolveCommand(m,a);else if(_.v("kevlar_command_handler_formatted_string")&&!Z&&_.NC.instance&&SJr(m))Z=G.find(function(O){return!!O.is})||I.target,I={form:Object.assign({},a,{event:I,
element:Z,originatingNode:c})},_.NC.instance.resolveCommand(m,I);else{m=_.CE(I);I=[];for(Z=0;Z<m.length;Z++)(K=m[Z].is)&&I.push(K);mjA({parents:I.join(","),text:c.innerText},function(){_.Xl(c,"yt-navigate",a)})}}};
pAA=function(G){if(G=bZ0(G))LfT(G),KKA(G.href)};
bZ0=function(G){G=_.CE(G);for(var c,I=0;I<G.length;I++)if(c=G[I],c.tagName==="A"&&c.classList.contains("yt-simple-endpoint")){if(!c.data)break;return c}return null};
U3=function(G){return G.shiftKey||G.altKey||G.metaKey||G.ctrlKey};
MUf=function(G,c){var I={itct:c.clickTrackingParams};_.v("kevlar_client_side_screens")&&(!_.D(c,_.vH)||_.v("kevlar_exclude_endpoint_killswitch"))&&(I.endpoint=JSON.stringify(c));_.v("enable_unknown_lact_fix_on_html5")&&_.wH().resolve(_.qR(_.uf))&&(I.lact=_.wj());ICB(I);_.x0(G,I)};
LfT=function(G){G.href&&Object.keys(G.data).length!==0&&MUf(G.href,G.data)};
SJr=function(G){for(var c=_.Q(VUg),I=c.next();!I.done;I=c.next())if(G[I.value])return!1;return!0};
zN8=function(){if(bf)return bf;if(window.lottie)return bf=Promise.resolve(window.lottie);var G=_.Cj(_.H1("LOTTIE_URL"));return G?bf=new Promise(function(c,I){var R=document.createElement("script");R.addEventListener("load",function(){c(lottie)});
R.addEventListener("error",function(Z){var K="Lottie library failed to load.";Z?Z.message&&(K+=" Original description: "+Z.message,_.H_(Z,K)):Z=Error(K);_.Ck(Z);I(Z)});
R.setAttribute("async","");_.Ti(R,G);document.head.appendChild(R)}):Promise.reject(Error("sh"))};
ExU=function(){return bf?bf:zN8()};
JTT=function(G){if(G)switch(G){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.v("kevlar_use_wil_icons"))return G=(G=sYr(_.y4().getState()))&&G.animationLightUrl&&G.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:G.animationLightUrl,pathDarkTheme:G.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,G?G:k5.get("LIKE");break;case "LIKE_DELHI_PLAYER":return k5.get("LIKE_DELHI_PLAYER")}};
Wfg=function(G){var c=JTT(G);if(c)return c;switch(G){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return k5.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return k5.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return k5.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return k5.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return k5.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return k5.get("NOTIFICATION_BELL")}};
iZT=function(G,c){if(!G.closest)return!1;c=!!JTT(c);return _.H1("ID_TOKEN")&&c?!!G.closest("segmented-like-dislike-button-view-model")||!!G.closest("yt-player-quick-action-buttons"):!1};
BYf=function(G,c){if(!G||fRp)c=!1;else{var I;if(!(I=iZT(G,c)))if(G.closest)if(I=!_.H1("ID_TOKEN"),G=G.closest("ytd-subscription-notification-toggle-button-renderer-next"),I||!G)I=!1;else{var R;I=((R=G.data)==null?void 0:R.targetId)==="notification-bell"&&c!=="EXPAND_MORE"}else I=!1;c=I}return c};
rTO=function(G){var c,I;return _.T(function(R){switch(R.nextAddress){case 1:return _.s9(R,2),R.yield(fetch(G),4);case 4:return c=R.yieldResult,R.yield(c.json(),5);case 5:return R.return(R.yieldResult);case 2:I=_.M3(R),_.Ck(I),_.Vp(R)}})};
jBU=function(G,c){var I,R,Z;return _.T(function(K){if(K.nextAddress==1)return(I=c?G.pathDarkTheme:G.path)?K.yield(Promise.all([rTO(I),zN8()]),2):K.return();R=K.yieldResult;Z=R[0];s3.set(I,Z);_.Vp(K)})};
tUB=function(G,c,I,R){function Z(m,a){if(c.value===a&&!c.cancelled){for(;G.firstChild;)G.removeChild(G.firstChild);G.classList.add("ytSpecIconShapeHost");m(G,R)}}
var K=_.x5b(_.wH().resolve(_.ek),I);typeof K==="function"?(c.value=null,Z(K,null)):(c.value=K,K.then(function(m){Z(m,K)}))};
hNA=function(G,c){var I=document.createElement("div"),R=_.jV(I,function(){return _.e(_.l,{cond:G,then:function(Z){return _.e(_.LQ,{data:Z,options:c})}})},"ca");
return[I,R]};
_.A0=function(G,c){if(c){var I={};d50.forEach(function(R){R=CgA(c,R,"--yt-lightsource-");Object.assign(I,R)});
HZB.forEach(function(R){R=CgA(c,R,"--yt-basic-");Object.assign(I,R)});
_.eD(G,I)}};
CgA=function(G,c,I){var R={};R[I+_.Qm(c)]=G&&G[c]?_.pE(G[c]):"";return R};
_.Su=function(G,c,I){$5[G]||($5[G]={});$5[G][c]=I};
_.pQ=function(G){$5[G]||($5[G]={});return $5[G]};
XAC=function(G){if(!G)return{};var c=G.foregroundTitleColor,I=G.backgroundColor;G=G.borderColor;var R="text";G?R="outline":I&&(R="filled");return{type:R,customColors:{color:c?_.pE(c):void 0,backgroundColor:I?_.pE(I):void 0,borderColor:G?_.pE(G):void 0}}};
crB=function(G){var c=G.renderer;var I=G.element;var R=G.commandController;var Z=G.onTapCallback;var K=G.skipCommandHandling;var m=G.overrides;var a=G.forceIcon;var O=G.forceModernIconButton;var N=G.forceDisabled;var q=G.isSubscribe===void 0?!1:G.isSubscribe;var w=G.isPressed===void 0?!1:G.isPressed;var F=G.useButtonSize===void 0?!1:G.useButtonSize;G=yTp(c);q&&(G.style="mono",G.type="filled");a=!c.icon||!a&&c.text?c.icon?c.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:O?"icon-only":"icon-only-40";a==="icon-only-40"&&(G.type="text");var n;O=Object;q=O.assign;F=gxA(c,F);w=!!c.isSelected||!_.v("web_propagate_is_pressed_killswitch")&&!!w;var U=c.isSelected!==void 0;N=N===void 0?c.isDisabled:N;var k=c.text?_.Vc(c.text):void 0;var p,M,z,t=((p=c.accessibilityData)==null?void 0:(M=p.accessibilityData)==null?void 0:M.label)||((z=c.accessibility)==null?void 0:z.label);p=t?t:_.HY(c.text);I=YJ8(c,I,R,Z,K);R=GLA(c);R!=null&&R.length?(R=_.fd({innertubeCommand:UM0(R),
forceNewState:!0}),R=BI(R)?R:void 0):R=void 0;return q.call(O,{},G,F,{iconPosition:a},m,{focused:!1,toggled:w,toggleable:U,disabled:N,formattedButtonText:k,accessibilityLabel:p,onTap:I,aTagConfig:R},XAC((n=c.colorData)==null?void 0:n.basicColorPaletteData),{oneOffCustomTextWrap:c.oneOffCustomTextWrap})};
YJ8=function(G,c,I,R,Z){return function(K){var m=GLA(G);R(m,K);if(!Z){m=_.Q(m);for(var a=m.next();!a.done;a=m.next())DX(a.value,{form:{element:c,event:K},commandController:I})}}};
GLA=function(G){var c=[];G.command&&c.push(G.command);G.serviceEndpoint&&c.push(G.serviceEndpoint);G.navigationEndpoint&&c.push(G.navigationEndpoint);return c};
gxA=function(G,c){if(c)switch(G.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(G.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
yTp=function(G){switch(G.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
IBf=function(G,c){return typeof G!=="object"||G===null?!1:Object.keys(c).every(function(I){return I in G})};
Mx=function(G){return Object.fromEntries(Object.keys(G).map(function(c){return[c,c]}))};
RPU=function(G,c,I){return mnB(I,function(R,Z){return function(K){var m=_.Hy.apply(1,arguments);return IBf(K,G)?Z.apply(null,[K[c]].concat(_.jn(m))):Z.apply(null,[K].concat(_.jn(m)))}})};
Ve=function(G){return function(c,I){return RPU(G,c,I)}};
ZWg=function(G,c){var I;return(I=_.a6(G,"playlistLoopStateEntity",c))!=null?I:void 0};
Khp=function(G,c){var I;return(I=_.a6(G,"toggleMenuServiceItemEntity",c))!=null?I:void 0};
_.z9=function(G){return G!=null&&G.watch?G.watch.isTheaterMode:!1};
_.E3=function(G){return G!=null&&G.watch?G.watch.isWatchFullscreen:!1};
_.J0=function(G){if(_.P$q(G))return!0;G=_.Q8T(G);return _.v("web_watch_enable_single_column_grid_view")?G:!1};
_.P$q=function(G){return G!=null&&G.watch?G.watch.isSwatcherooActive:!1};
_.Q8T=function(G){return G.watch.isWatchNarrowWidth};
_.m1r=function(G){return _.z9(G)||_.E3(G)||_.Q8T(G)};
_.aBg=function(G){return G.watch.openEngagementPanels};
_.WU=function(G,c){return _.a6(G.entities,"likeStatusEntity",c)};
T90=function(G,c){return _.a6(G.entities,"likeCountEntity",c)};
_.OWA=function(G,c){return _.a6(G.entities,"stringEntity",c)};
ePf=function(G,c){return _.a6(G.entities,"dataFreshnessEntity",c)};
N9q=function(G,c){if(!G)return!1;var I,R=(I=_.D(G,_.KC))==null?void 0:I.signal;if(R&&c.signalEndpointMap)return!!c.signalEndpointMap[R];var Z;if((I=(Z=_.D(G,_.fQ))==null?void 0:Z.request)&&c.continuationEndpointMap)return!!c.continuationEndpointMap[I];for(var K in G)if(c.commandEndpointMap[K])return!0;return!1};
lBb=function(G,c){if(c.streamingEndpointMap)for(var I in G)if(c.streamingEndpointMap[I]&&(G=c.streamingEndpointMap[I]))return G()};
qjB=function(G,c){var I,R=(I=_.D(G,_.KC))==null?void 0:I.signal;if(R&&c.signalEndpointMap&&(I=c.signalEndpointMap[R]))return I();var Z;if((I=(Z=_.D(G,_.fQ))==null?void 0:Z.request)&&c.continuationEndpointMap&&(Z=c.continuationEndpointMap[I]))return Z();for(var K in G)if(c.commandEndpointMap[K]&&(G=c.commandEndpointMap[K]))return G()};
wnp=function(G){var c={"Content-Type":"application/json"};_.H1("EOM_VISITOR_DATA")?c["X-Goog-EOM-Visitor-Id"]=_.H1("EOM_VISITOR_DATA"):_.H1("VISITOR_DATA")&&(c["X-Goog-Visitor-Id"]=_.H1("VISITOR_DATA"));c["X-Youtube-Bootstrap-Logged-In"]=_.H1("LOGGED_IN",!1);_.H1("DEBUG_SETTINGS_METADATA")&&(c["X-Debug-Settings-Metadata"]=_.H1("DEBUG_SETTINGS_METADATA"));G!=="cors"&&((G=_.H1("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(c["X-Youtube-Client-Name"]=G),(G=_.H1("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(c["X-Youtube-Client-Version"]=
G),(G=_.H1("CHROME_CONNECTED_HEADER"))&&(c["X-Youtube-Chrome-Connected"]=G),(G=_.H1("DOMAIN_ADMIN_STATE"))&&(c["X-Youtube-Domain-Admin-State"]=G));(G=_.H1("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(c["X-YouTube-Lava-Device-Context"]=G);return c};
Fhf=function(G,c){c.watchNextResponse||c.reelItemWatchResponse?c.watchNextResponse?G.content=c.watchNextResponse:G.content=c.reelItemWatchResponse:c.playerResponse?G.player=c.playerResponse:c.reelWatchSequenceResponse&&(G.reelSequence=c.reelWatchSequenceResponse)};
BU=function(G){return function(){return new G}};
ri=function(G){var c=_.wH();return function(){return c.resolve(G)}};
_.ju=function(G){if(!G)return null;for(var c=[],I=0;I<G.textSegments.length;I++){var R=G.textSegments[I];R.text?c.push(R):R.emojiId&&c.push({emoji_id:R.emojiId})}return{text_segments:c}};
U1f=function(G,c,I,R,Z,K,m){K=K===void 0?[]:K;var a=new _.x5;a.endpoint=I;if(!I)return _.dj(new _.iW("handle undefined endpoint",c.tagName)),a;var O=F7f(I);O.length&&(_.cd(G,O,c,R),a.actions=O);I.loggingUrls&&I.loggingUrls.forEach(function(q){q.baseUrl&&Z6(q.baseUrl,q.attributionSrcMode)});
O=!_.v("web_skip_impression_click_killswitch")&&R&&R.impression;if(I.clickTrackingParams&&!n8p(I)&&!v8r(c)&&!O&&(O=_.DP(),!_.t0(O,c))){var N=c.getScreenLayer&&c.getScreenLayer();N?O.clickCommand(I,null,N):O.clickCommand(I,null)}O=!1;for(N=0;N<K.length;N++)if((0,K[N])(c,I,R)){O=!0;break}!O&&D1A(I)&&(a.ajaxPromise=o8T(G,c,I,R,Z,m));return a};
v8r=function(G){var c;return(G=(c=G.data)==null?void 0:c.navigationEndpoint)&&!!G.clickTrackingParams};
n8p=function(G){var c=_.D(G,_.KC);if(c&&(c=c.signal)&&urO.indexOf(c)>=0)return!0;for(var I in G)if(bWr.indexOf(I)>=0)return!0;return!1};
D1A=function(G){var c;if(((c=_.D(G,_.KC))==null?void 0:c.signal)==="CLIENT_SIGNAL")return!1;for(var I in G)if(kLq.indexOf(I)>=0)return!1;G=Object.keys(G);return G.length===1&&G[0]==="loggingUrls"?!1:!0};
Ve0=function(G,c,I,R,Z,K,m){var a=_.h0.instance;if(a&&_.di(a,R))var O=_.CQ(a,R,Z).then(function(q){return(q==null?0:q.data)?q:{data:q}});
else O=G.requestDataForServiceEndpoint(R,Z),_.D(R,s8b)||_.D(R,LhA)||_.D(R,_.Ar8)||_.D(R,$1q)||_.Ck(new _.iW("No RequestBuilder for endpoint",R));var N=_.HU();N.promise.thenCatch(function(){var q=_.hI(R,"action")||_.hI(R,"command")||_.hI(R,"endpoint");q&&(q=R[q],q.hasOwnProperty("onFailureAction")?_.cd(c,[q.onFailureAction],I):q.hasOwnProperty("onFailureCommand")&&_.cd(c,q.onFailureCommand,I));O.cancel("Resolver promise rejected")});
O.then(function(q){if(q){var w=q.error;if(w){if(K&&K.onServerError)K.onServerError(R,q);N.reject(new _.iW("Response error",R,w))}else if(q=q.data)if(w=q.error){if(K&&K.onServerError)K.onServerError(R,q);N.reject(new _.iW("Returned error",R,w))}else{Sjr(c,I,q,R);pnT(q);if(w=w8q(q))for(var F=_.Q(w),n=F.next();!n.done;n=F.next()){n=n.value;var U=_.wH().resolve(_.qR(Mer))||X6;if(!_.h0.instance||!U.some(function(p){return!!_.D(R,p)})||_.v("kevlar_response_processor_allowlist_killswitch")){var k=U=void 0;
((k=_.D((U=n)==null?void 0:U.commandMetadata,_.Pd))==null?0:k.sendPost)?_.Gs(c,[n]):_.cd(c,[n],I)}}(F=_.D(q==null?void 0:q.frameworkUpdates,ye))&&m&&m(F);if(K&&K.onSuccess)K.onSuccess(R,q);N.resolve(new _.gi(q,w))}}else N.reject(new _.iW("Invalid service endpoint provided",R))},function(q){N.reject(q)});
return N.promise};
pnT=function(G){var c;(G=(c=_.D(G==null?void 0:G.onResponseReceivedCommand,_.zPr))==null?void 0:c.continuationItems)&&(G==null?void 0:G.length)===1&&_.D(G[0],E88)&&_.LC("so_r",void 0,"search_overview_answer")};
o8T=function(G,c,I,R,Z,K){var m;return(m=c.getNetworkManager&&c.getNetworkManager()?c.getNetworkManager():_.wH().resolve(_.qR(_.oI)))?Ve0(m,G,c,I,R,Z,K):_.$C("No network manager.")};
Sjr=function(G,c,I,R){if(I=I.trackingParams||I.loggingDirectives&&I.loggingDirectives.trackingParams){var Z;(_.D(R,_.Y5)||_.D(R,Jr0)||_.D(R,Whr))&&R.clickTrackingParams?Z=_.kC(R.clickTrackingParams):_.v("web_graft_to_parent_command")&&R.clickTrackingParams&&(Z=_.kC(R.clickTrackingParams));var K;R=(K=c.getScreenLayer)==null?void 0:K.call(c);c=_.DP().graftServerVe(I,Z,R);_.gq(G,"yt-store-grafted-ve-action",[c])}};
_.iWg=function(G){var c=new Image;return new _.Lk(function(I,R){c.addEventListener("load",function(){I()});
c.addEventListener("error",function(){R()});
c.src=G})};
fBr=function(G){return!!G};
B98=function(G){return!!G};
rrr=function(G,c,I){var R=G.rowIndex;R!==void 0&&_.gq(G.hostElement,"yt-section-reactive-dismissal",[R,c,I])};
_.Gf=function(G,c,I){G=_.Q(G);for(var R=G.next();!R.done;R=G.next()){R=R.value;if(R===c)break;for(var Z=_.Q(I),K=Z.next();!K.done;K=Z.next())if(K=K.value,R.tagName===K||!_.v("web_event_button_role_check_killswitch")&&R.role==="button"&&K==="BUTTON")return!0}return!1};
_.c8=function(G,c,I){G=_.Q(G);for(var R=G.next();!R.done;R=G.next()){R=R.value;if(R===c)break;for(var Z=_.Q(I),K=Z.next();!K.done;K=Z.next())if(R.id===K.value)return!0}return!1};
_.ZA=function(){var G=_.wH().resolve(_.qR(_.I9));return G?(G=G.getCurrentPage())?_.R9(G):null:null};
_.Ke=function(){var G=_.ZA();if(!G){var c=_.wH().resolve(_.qR(_.I9)),I=c?typeof c:"no page manager";c=c?c.getCurrentPage():null;I=new _.iW("Player is missing when requested.",I,c?c.tagName:"no page");_.hg(I)}return G};
_.R9=function(G){return G&&G.getPlayer?G.getPlayer():null};
j8p=function(G,c){G={args:{raw_player_response:G}};c&&(G.args=Object.assign({},G.args,c));return G};
x1r=function(G){if(G.args){if(G.args.raw_player_response)return G.args.raw_player_response;if(G.args.player_response)return JSON.parse(G.args.player_response)}};
_.ter=function(G,c){var I={url:"/watch?v="+G.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};G.playlistId&&(I.url+="&list="+G.playlistId);G.playerParams&&(I.url+="&pp="+G.playerParams);G={watchEndpoint:G,commandMetadata:{webCommandMetadata:I}};c&&(G.clickTrackingParams=c);return G};
d1p=function(){return hPO||!!_.Yc("yt.player.Application")};
HWA=function(){return C$0||!!document.querySelector("link#player-css")};
yrB=function(){function G(){hPO=!0;Xnq.resolve()}
var c,I;return _.T(function(R){Xnq||(Xnq=new _.Te,d1p()?G():(c=document.createElement("script"),c.addEventListener("load",G),I=_.BD(_.H1("PLAYER_JS_URL")),_.Ti(c,I),document.head.appendChild(c)));return R.return(Xnq.promise)})};
Yjr=function(){function G(){C$0=!0;g8r.resolve()}
if(!g8r)if(g8r=new _.Te,HWA())G();else{var c=document.createElement("link");c.id="player-css";c.addEventListener("load",G);var I=_.BD(_.H1("PLAYER_CSS_URL"));_.la(c,I,"stylesheet");document.head.appendChild(c)}return g8r.promise};
GNB=function(){return d1p()&&HWA()?Promise.resolve([]):Promise.all([yrB(),Yjr()])};
cLf=function(G,c,I){var R={args:{}};G&&(R.args.raw_player_response=G);c&&(R.args.raw_watch_next_response=c);I&&(R.args=Object.assign({},R.args,I));return R};
KiO=function(G,c,I){var R=!1;R=R===void 0?!0:R;G=typeof G==="string"?_.P8(document,G):G;var Z=I8O+"_"+_.XB(G),K=ROi[Z];if(K&&R)return Z20(c,I)?K.api.loadVideoByPlayerVars(c.args||null):K.loadNewVideoConfig(c),K.api;K=new QK(G,Z,c,I,void 0);ROi[Z]=K;K.addOnDisposeCallback(function(){delete ROi[K.getId()]});
return K.api};
Z20=function(G,c){return c&&c.serializedExperimentFlags?c.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):G&&G.args&&G.args.fflags?G.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
P0A=function(){var G=new _.Te;G.resolved=!1;var c=G.resolve;G.resolve=function(I){G.resolved=!0;c(I)};
return G};
mTq=function(G){var c={};QAr().install((c.document_disposed={callback:G},c))};
m7=function(G,c){if(!G&&Math.random()<=_.DH("kevlar_unified_player_logging_threshold")){G=Error("uh`"+(c?c:"Unspecified error"));if(_.v("kevlar_unified_player_throw_errors"))throw G;_.Ck(G)}};
_.a8p=function(){var G=_.Yc("ytDebugData.callbacks");G||(G={},_.lr("ytDebugData.callbacks",G));return G};
O2A=function(G,c){var I=_.a8p();if(_.v("web_dd_iu")||Tfq.includes(G))I[G]=c};
eOb=function(){return _.T(function(G){return G.return({isLeader:_.XRg(_.y4().getState()),c:_.H1("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.H1("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
NfU=function(){var G;_.T(function(c){if(c.nextAddress==1)return O2A("APP_STATE",eOb),c.yield(_.wH().resolve(_.a9),2);G=c.yieldResult;O2A("PI",function(){return _.T(function(I){return I.return(G.getVideoStats())})});
_.Vp(c)})};
l8A=function(G){return!!G&&G.length>0&&G[0].loggingUrls!=null&&G[0].loggingUrls.length>0};
qlB=function(){var G=_.H1("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
wsU=function(G){if(!G)return[];var c=[];G=_.Q(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.loggingUrls){I=_.Q(I.loggingUrls);for(var R=I.next();!R.done;R=I.next())R=R.value,R.baseUrl&&c.push(R.baseUrl)}return c};
FiO=function(G){var c=_.jy(_.zO(_.Rq.location.href));G=_.jy(_.zO(G));return _.v("kevlar_clear_non_displayable_url_params")?c==eR(G):eR(c)==eR(G)};
eR=function(G){var c=_.nkb(G);G=G.slice(0);var I=["frags"];_.v("kevlar_hide_pp_url_param")&&I.push("pp");_.v("kevlar_hide_time_continue_url_param")&&I.push("time_continue");I=_.Q(I);for(var R=I.next();!R.done;R=I.next())R=R.value,G=_.tO(_.jy(G),R);return _.jy(G)+(c?"#"+c:"")};
Nj=function(G,c){var I=I===void 0?!0:I;c=Number(c)*1E3;var R=Math.round((0,_.Fa)()),Z=R.toString();G={innertubeResponse:G,serverDateTimestampMs:Z,lastModifiedTimestampMs:Z,expireTimestampMs:(R+c).toString(),isProcessed:I};if(I=_.H1("INNERTUBE_CONTEXT_CLIENT_NAME"))G.clientName=I;return G};
DTp=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++vk0};
okp=function(G){return!isNaN(G)&&G>0};
ubU=function(){_.v("web_adaptive_repeat_ase")&&UT0&&_.x7("applicationStarted",UT0)};
_.b2U=function(){var G=_.u6(),c=_.k0();c&&G&&_.rU(c,[G],!0)};
sAi=function(G){return G&&kNO.some(function(c){return G.includes(c)})};
Mpq=function(G){var c=_.D(G,_.ID);if(!c)return!1;var I=c.url,R=c.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!I)return _.hg(Error("zh")),!1;if(c.target==="TARGET_NEW_WINDOW"){c={};_.v("resolve_url_parent_tracking_params")&&(!_.O2(I)||eA(window.location.href,I))&&(c={endpoint:G,itct:G.clickTrackingParams});ICB(c);G=null;try{if(R){a:{var Z=I,K=c;R=R===void 0?!1:R;K&&_.x0(Z,K);var m=_.dS(Z),a=_.By(m);Z!=a&&_.Ra(Error("Yf`"+Z));Z=a;try{if(R){a=Z;a=Ymq(a);EU(a);G=_.ZT(window,a,"_blank",
"attributionsrc");break a}}catch(F){_.yL(F)}EU(Z);G=_.ZT(window,m,"_blank")}Lir(_.wH().resolve(ALq),G,I);return!0}}catch(F){_.hg(F)}_.x0(I,c);c={target:"_blank",noopener:!1};m=window;a=fG(I)?I:_.dS(typeof I.href!="undefined"?I.href:String(I));R=self.crossOriginIsolated!==void 0;G="strict-origin-when-cross-origin";window.Request&&(G=(new Request("/")).referrerPolicy);Z=c.noreferrer;if(R&&Z&&G==="unsafe-url")throw Error("ve");G=Z&&!R;Z=c.target||I.target;K=[];var O=[],N=!1;for(w in c){var q=c[w];switch(w){case "width":case "height":case "top":case "left":K.push(w+
"="+q);break;case "target":break;case "noopener":case "noreferrer":q?O.push(w):(N=!0,O.push(w+"=false"));break;case "attributionsrc":K.push(w+(q?"="+q:""));break;default:K.push(w+"="+(q?1:0))}}var w=Z!==void 0&&!["_blank","_self","_top","_parent",""].includes(Z);w=bT()&&w;$T8&&R&&K.length===0&&O.length>0&&!w&&!N?(O.length===2&&(O=["noreferrer"]),_.ZT(m,a,Z,O[0]),G=SlC()):(w=K.join(","),_.Sr()&&m.navigator&&m.navigator.standalone&&Z&&Z!="_self"?(w=_.$9("A"),yx(w,a),w.target=Z,G&&(w.rel="noreferrer"),
((c=c.attributionsrc)||c==="")&&w.setAttribute("attributionsrc",c),c=document.createEvent("MouseEvent"),c.initMouseEvent("click",!0,!0,m,1),w.dispatchEvent(c),w=SlC()):G?(w=_.ZT(m,"",Z,w),m=_.By(a),w&&(w.opener=null,m===""&&(m="javascript:''"),m='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+lm(m)+'">',m=Gi(m),(c=w.document)&&c.write&&(c.write(cM(m)),c.close()))):((w=_.ZT(m,a,Z,w))&&c.noopener&&(w.opener=null),w&&c.noreferrer&&(w.opener=null)),G=w);Lir(_.wH().resolve(ALq),
G,I);return!0}w=_.Aw(I);w=sAi(w)||I==="https://studio.youtube.com/";if(_.O2(I)&&!eA(window.location.href,I)||w)EU(I),u8(),_.Ji(I,void 0,void 0,window.top,psb);else return _.Ck(new _.iW("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",G)),!1;return!0};
_.EkA=function(G,c){c=c===void 0?0:c;if(!(_.D(G,Vpq)||_.D(G,zO0)||_.D(G,_.ID)&&_.D(G,_.ID).url))return!1;var I,R=(I=_.D(G,_.ID))==null?void 0:I.url;I=R?{externalLinkData:{url:R}}:null;return _.DP().clickCommand(G,I,c)};
Wir=function(G,c,I,R,Z){Z=Z===void 0?{}:Z;return function(K){var m,a;var O=((m=G.loggingDirectives)==null?0:(a=m.clientVeSpec)==null?0:a.uiType)?_.qj(G.loggingDirectives.clientVeSpec.uiType):void 0;Z.clickedVisualElement||(Z.clickedVisualElement=O);O=JL0(G,c);I(O,K);O=_.Q(O);for(m=O.next();!m.done;m=O.next()){m=m.value;a=R;var N=K,q=Z;q.form?q.form.event=N:q.form={element:a,event:N};DX(m,q)}}};
JL0=function(G,c){var I=[];c?(G.toggledCommand&&I.push(G.toggledCommand),G.toggledServiceEndpoint&&I.push(G.toggledServiceEndpoint)):(G.defaultCommand&&I.push(G.defaultCommand),G.defaultServiceEndpoint&&I.push(G.defaultServiceEndpoint),G.defaultNavigationEndpoint&&I.push(G.defaultNavigationEndpoint));return I};
i2B=function(G,c){var I=G.toggledStyle||G.style,R;switch((R=c?I:G.style)==null?void 0:R.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"}}};
_.wP=function(){return _.T(function(G){return G.nextAddress==1?G.yield(_.wH().resolve(_.a9),2):G.return(_.wH().resolve(f8q)())})};
_.Fc=function(){return _.wH().resolve(f8q)()};
_.ne=function(){return{lottieEl:void 0}};
Bfp=function(G,c){return G.startsWith(c.uniqueId)};
rL0=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(_.wP(),2);c=R.yieldResult;if((I=c)==null||!I.addEventListener)return DA(),R.return();c.addEventListener("onCueRangeEnter",G);_.Vp(R)})};
jAg=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(_.wP(),2);c=R.yieldResult;if((I=c)==null||!I.removeEventListener)return DA(),R.return();c.removeEventListener("onCueRangeEnter",G);_.Vp(R)})};
xTb=function(G){var c,I,R,Z,K;_.T(function(m){if(m.nextAddress==1)return m.yield(_.wP(),2);c=m.yieldResult;if((I=c)==null||!I.addCueRange)return DA(),m.return();R=_.Q(G.timings);for(Z=R.next();!Z.done;Z=R.next())K=Z.value,c.addCueRange(G.uniqueId+"-"+K,K/1E3,(K+100)/1E3);_.Vp(m)})};
tp8=function(G){var c,I,R,Z,K;_.T(function(m){if(m.nextAddress==1)return m.yield(_.wP(),2);c=m.yieldResult;if((I=c)==null||!I.removeCueRange)return DA(),m.return();R=_.Q(G.timings);for(Z=R.next();!Z.done;Z=R.next())K=Z.value,c.removeCueRange(G.uniqueId+"-"+K);_.Vp(m)})};
hOA=function(){var G,c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(_.wP(),2);G=R.yieldResult;if((c=G)==null||!c.getPlayerState)return DA(),R.return();I=G.getPlayerState();return R.return(I===2)})};
DA=function(){_.Ck(new _.iW("Smartimation player does not exist or is corrupted"))};
dTT=function(){try{var G;return(G=window.CSS)!=null&&G.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(c){return _.Ck(new _.iW("Smartimation CSS.supports threw an error")),!1}};
GAg=function(G,c,I,R,Z){var K=G.playlistId?C0T:H2b;c=c();I=I();Z=!!G.videoId&&Z()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.vY(c))return Xsf({data:G,actionType:K,disabled:Z},I);if(G.videoId&&R())return yLi({data:G,actionType:K,disabled:Z});switch(c){case "TRANSFER_STATE_UNKNOWN":return yLi({data:G,actionType:K,disabled:Z});case "TRANSFER_STATE_FAILED":return G.videoId?gkC({data:G,actionType:K,disabled:Z}):Yl0({data:G,actionType:K,disabled:Z});case "TRANSFER_STATE_COMPLETE":return Yl0({data:G,
actionType:K,disabled:Z});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Xsf({data:G,actionType:K,disabled:Z},I);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return G.videoId?gkC({data:G,actionType:K,disabled:Z}):yLi({data:G,actionType:K,disabled:Z});default:return yLi({data:G,actionType:K,disabled:Z})}};
c1q=function(G,c){var I=G.onTapCommand,R=_.WI(I);if(G.videoId&&_.D(R,_.o9))return _.D(R,_.o9).action=c,I;G.playlistId&&_.D(R,_.UN)&&(_.D(R,_.UN).action=c);return I};
yLi=function(G){var c=G.data;var I=G.actionType;G=G.disabled;return{text:IjU,iconType:"OFFLINE_DOWNLOAD",onTap:c1q(c,I.ACTION_ADD),disabled:G}};
Xsf=function(G,c){var I=G.data;var R=G.actionType;G=G.disabled;var Z="OFFLINE_DOWNLOAD";c>=0&&c<=.1?Z="OFFLINE_DOWNLOADING_ZERO":c>.1&&c<=.3?Z="OFFLINE_DOWNLOADING_TWENTY":c>.3&&c<=.5?Z="OFFLINE_DOWNLOADING_FORTY":c>.5&&c<=.7?Z="OFFLINE_DOWNLOADING_SIXTY":c>.7&&c<1?Z="OFFLINE_DOWNLOADING_EIGHTY":c===1&&(Z="OFFLINE_PIN");return{text:R5O,iconType:Z,onTap:c1q(I,R.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
Yl0=function(G){var c=G.data;var I=G.actionType;G=G.disabled;return{text:Zw8,iconType:"OFFLINE_PIN",onTap:c1q(c,I.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
gkC=function(G){var c=G.data;var I=G.actionType;G=G.disabled;return{text:KTf,iconType:"OFFLINE_DOWNLOAD",onTap:c1q(c,I.ACTION_RETRY),disabled:G}};
_.um=function(G,c){var I=I_0();return _.SE(function(){I();return K0b(G,[_.dN(c)||""])},{debugName:"LUZslf"},"Z105t")};
PFB=function(G){var c=_.um(_.E4,function(){return G().videoId}),I=_.um(_.JX,function(){return G().playlistId});
return function(){return G().videoId?c:G().playlistId?I:_.Q(_.ks("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
QrB=function(G){var c=_.um(WY,function(){return G().videoId}),I=_.um(_.Hxb,function(){return G().playlistId});
return function(){return G().videoId?c:G().playlistId?I:_.Q(_.ks(0,void 0,"K4tgOc")).next().value}};
mrO=function(G){var c=_.um(_.Zf0,function(){return G().videoId});
return function(){return G().videoId?c:_.Q(_.ks(!1,void 0,"Oaxwcf")).next().value}};
ajC=function(G){var c=_.um(grq,function(){return G().videoId});
return function(){return G().videoId?c:_.Q(_.ks("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
T_q=function(){return{}};
_.qar=function(G,c,I){return{submitForm:function(){var R,Z,K,m;return _.T(function(a){if(a.nextAddress==1){R=Owb(G());if(!R)return a.return();if(R.onSubmit)return e5q(c),R.onSubmit(),e5q(I),a.return();if(!R.submitConfig||!R.formData)return a.jumpTo(0);R.disableDuringSubmission&&N_B(G(),!0);e5q(c);return a.yield(ljB(R.submitConfig,R.formData()),3)}Z=a.yieldResult;e5q(I);if(((K=Z)==null?0:K.submitResult)&&((m=R)==null?0:m.onSubmitResult))R.onSubmitResult(Z.submitResult);R.disableDuringSubmission&&N_B(G(),
!1);return a.return()})},
isValid:function(){var R=Owb(G());if(R){var Z;return!((Z=R.isValid)==null||!Z.call(R))}return!0},
isSubmitting:function(){var R,Z;return!!((R=Owb(G()))==null?0:(Z=R.isSubmitting)==null?0:Z.call(R))}}};
_.bm=function(){if(!wPi){var G=_.Q(_.ks(new Map,void 0,"Y1XnBc"));wPi=G.next().value;FTA=G.next().value}return wPi};
_.nQ0=function(G){FTA(new Map(G))};
Owb=function(G){if(G)return _.bm()().get(G)};
ljB=function(G,c){var I;return _.T(function(R){return R.nextAddress==1?c?(I=_.wH().resolve(_.qR(vQq)))&&G.submitId?R.yield(I.submitForm(G.submitId,c,Drr,G.params,G.clickTrackingParams),2):R.return(Promise.reject(Error("Bh"))):R.return(Promise.reject(Error("Ah"))):R.return(R.yieldResult)})};
N_B=function(G,c){if(G){var I=_.bm();I().set(G,Object.assign({},I().get(G),{isSubmitting:function(){return c}}));
_.nQ0(I())}};
e5q=function(G){if(G){var c=_.wH().resolve(_.n4);c&&(G=_.WI(G()))&&c.resolveCommand(G)}};
uwC=function(G,c){c=c===void 0?{shouldPersist:!0}:c;return{useUpdatableData:function(I,R){var Z=_.SE(function(){return G(I())},void 0,"Gmrblb"),K=oQp(I,Z,R,c);
_.xs(function(){if(Z()!=null){Ur0.set(Z(),K);var m=Z();_.ty(function(){Ur0.delete(m)})}},"j4hx9b");
return K},
getData:function(I){var R;return(R=Ur0.get(G(I)))==null?void 0:R[0]()},
updateData:function(I,R){I=G(I);I=Ur0.get(I);if(!I)return!1;var Z=_.Q(I);I=Z.next().value;Z=Z.next().value;R=R(I());Z(R);return!0}}};
oQp=function(G,c,I,R){R=R===void 0?{}:R;var Z=_.Q(_.Gz(function(){var a=G(),O=c();return bwq(a,O,I,R)})),K=Z.next().value,m=Z.next().value;
return[K,function(a){m(a);var O=c();if(R.shouldPersist&&O!=null){var N,q=(N=I==null?void 0:I.map(function(w){return w()}))!=null?N:[];
_.kZ.set(O,[a,q])}}]};
bwq=function(G,c,I,R){R=R===void 0?{}:R;if(c==null||!R.shouldPersist)return G;R=_.kZ.get(c);if(!R)return G;var Z=_.Q(R);R=Z.next().value;var K=Z.next().value,m;Z=(m=I==null?void 0:I.map(function(a){return a()}))!=null?m:[];
if((K==null?0:K.length)&&(I==null?0:I.length)&&Z.some(function(a,O){return a!==K[O]}))return _.kZ.remove(c),G;
(I==null?0:I.length)&&_.kZ.set(c,[R,Z]);return R};
kAb=function(G){var c=_.Q(_.ks(!0,void 0,"bKtO6d")),I=c.next().value;c.next();return function(){var R=ph(G.children());return _.e(_.l,{cond:I,then:function(){return R},
else:G.fallback})}()};
_.sN=function(G){var c=srp(G),I=c.data,R=c.mapping,Z=c.wrapper;c=c.pendingFallback;var K=function(){return LT8(_.dN(I))},m=function(){var a=K(),O=[];
a=_.Q(a);for(var N=a.next();!N.done;N=a.next()){var q=void 0;N=N.value;var w=void 0;for(q in N)if(!(!N).hasOwnProperty(q)){w=q;break}(q=w)&&O.push(q)}return O};
return G.data?_.e(kAb,{fallback:c},function(){return _.e(_.fh,{each:m},function(a,O){var N=Z?function(U){return Z(function(){return R[a](U,O)},q,O)}:function(U){return R[a](U,O)};
N.debugName||(N.debugName=String(a));if(!R[String(a)])return document.createComment("");N.componentType!==Vg&&A1i(String(a));var q=$rC(K,a,O);if(_.v("web_add_microtask_to_stamper")&&!SaC.has(String(a))){var w=_.Q(_.ks(!1,void 0,"afb1md")),F=w.next().value,n=w.next().value;Promise.resolve().then(function(){SaC.add(String(a));n(!0)});
return _.e(_.l,{cond:F,then:function(){return _.e(N,{data:q})}})}return _.e(N,{data:q})})}):_.e(_.FG,null)};
srp=function(G){var c=G.targetId||pPO(G.children);if(!G.data||!c)return Object.assign({},G,{mapping:G.children});var I="stamper-"+M$r++,R=function(){var a;return(a=typeof G.targetId==="function"?G.targetId(I):G.targetId)!=null?a:I};
c=_.Q(V$O(function(){var a=LT8(G.data());a.targetId=R;return a})).next().value;
var Z=Object.assign({},(_.wH().resolve(_.qR(z5p))||{}).replaceableMapping,G.children);if(G.replacementWrapper){var K=Z.notificationTextRenderer,m=Z.notificationMultiActionRenderer;K&&(Z.notificationTextRenderer=function(a,O){return G.replacementWrapper(K({data:a.data},O))});
m&&(Z.notificationMultiActionRenderer=function(a,O){return G.replacementWrapper(m({data:a.data},O))})}return Object.assign({},G,{data:c,
mapping:Z,wrapper:function(a,O,N){return m5O({targetId:R,stamperIndex:N},G.wrapper?function(){return G.wrapper(a,O,N)}:a)}})};
$rC=function(G,c,I){var R;return _.SE(function(){var Z=G()[I()];if(Z)R=Z[c];else return _.Ck(new _.iW("Stamper failed to find "+String(c)+" at index "+I()+" of data array of length "+(G().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),R;return Z[c]},void 0,"Su9U8")};
pPO=function(G){G=_.Q(Object.keys(G));for(var c=G.next();!c.done;c=G.next())if(c=c.value,EQC.includes(c)||J1r.includes(c)||WTB.includes(c))return!0;return!1};
LT8=function(G){return G?Array.isArray(G)&&G instanceof Array?G:[G]:[]};
A1i=function(G){if(_.v("web_enable_renderer_logger")){var c;(c=_.wH().resolve(_.qR(iwg)))!=null&&c.loggingEnabled&&!c.ids.has(G)&&c.ids.add(G)}};
fjB=function(){var G,c;return(c=(G=_.wH().resolve(_.qR(_.d0)))==null?void 0:G())!=null?c:!1};
r1b=function(G,c){G=G===void 0?B_q:G;switch(c.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},G,{isOpen:c.payload});default:return G}};
xrA=function(G,c){G=G===void 0?jrp:G;switch(c.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},G,{isAllowed:c.payload});default:return G}};
h5O=function(G,c){G=G===void 0?t$8:G;switch(c.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{errorMessage:c.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{title:c.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},G,{privacy:c.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},G,{isDisabled:c.payload});default:return G}};
CFr=function(G,c){G=G===void 0?drC:G;switch(c.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},G,{isOpen:c.payload});default:return G}};
XPU=function(G,c){G=G===void 0?Hw8:G;switch(c.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},G,{isFullscreen:c.payload});case "SET_NAVIGATION_BUTTON":var I=c.payload.targetId,R=Object.assign({},G.navigationButtons);R[I]=c.payload.button;return Object.assign({},G,{navigationButtons:R});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},G,{topPanelId:c.payload});case "SET_SECONDARY_HEADER":return I=c.payload.panelId,R=Object.assign({},G.secondaryHeader),R[I]=c.payload.secondaryHeader,
Object.assign({},G,{secondaryHeader:R});default:return G}};
GS0=function(){return pF(Object.assign({},{voiceSearch:XQT,engagementPanel:XPU,bottomSheet:r1b,cinematicSetting:xrA,shorts:ZIr,drawerLayout:CFr,createPlaylist:h5O,locationCollection:y1B,reportChannel:gQ0,reportForm:Yar},KOr))};
cnp=function(G,c){_.dJ.addLowPriorityJob(function(){var I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:return _.s9(K,2),K.yield(zN8(),4);case 4:return K.yield(fetch(G),5);case 5:return I=K.yieldResult,K.yield(I.json(),6);case 6:R=K.yieldResult;s3.set(G,R);requestAnimationFrame(function(){c(R)});
_.Pl(K,0);break;case 2:Z=_.M3(K),_.Ck(Z),_.Vp(K)}})})};
IU0=function(G){var c={animationConfig:{},listeners:{}},I=function(){G(!0)};
c.listeners.data_failed=I;c.listeners.error=I;c.listeners.data_ready=function(){G(!1)};
return c};
KvT=function(G){var c=G.model;var I=G.subscribed;var R=G.isOverlay;var Z=G.element;var K=G.commandController;var m=G.notificationState;if(I){var a,O;var N=(c==null?void 0:(a=c.buttonStyle)==null?void 0:a.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:c==null?void 0:(O=c.unsubscribeButtonContent)==null?void 0:O.buttonText}else{var q;N=c==null?void 0:(q=c.subscribeButtonContent)==null?void 0:q.buttonText}a:{var w;switch(c==null?void 0:(w=c.buttonStyle)==
null?void 0:w.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":a="S";break a;default:a="M"}}a:if(R)R="overlay";else switch(c.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":R="overlay";break a;default:R="mono"}a:if(I)var F="tonal";else switch((F=c.buttonStyle)==null?void 0:F.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":F=
"tonal";break a;default:F="filled"}return{style:R,type:F,state:c.disableSubscribeButton?"disabled":"active",size:a,focused:G.focused,toggled:I,accessibilityLabel:RxO(c,I,m),buttonText:N,iconPosition:c.disableNotificationBell?"none":"leading-trailing",onTap:Z5q(c,I,Z,K),disableTextEllipsis:!!G.disableTextEllipsis}};
Z5q=function(G,c,I,R){return function(Z){if(c){var K;var m=G.disableNotificationBell?_.WI(G==null?void 0:(K=G.unsubscribeButtonContent)==null?void 0:K.onTapCommand):_.WI(G==null?void 0:G.onShowSubscriptionOptions)}else{var a;m=_.WI(G==null?void 0:(a=G.subscribeButtonContent)==null?void 0:a.onTapCommand)}m&&DX(m,{form:{element:I==null?void 0:I.value},commandController:R});Z.stopPropagation()}};
RxO=function(G,c,I){if(c){if(G==null?0:G.disableNotificationBell){var R;return G==null?void 0:(R=G.unsubscribeButtonContent)==null?void 0:R.accessibilityText}switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Z;return G==null?void 0:(Z=G.bellAccessibilityData)==null?void 0:Z.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var K;return G==null?void 0:(K=G.bellAccessibilityData)==null?void 0:K.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var m;return G==null?void 0:(m=
G.bellAccessibilityData)==null?void 0:m.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var a;return G==null?void 0:(a=G.bellAccessibilityData)==null?void 0:a.disabledLabel;default:var O;return G==null?void 0:(O=G.unsubscribeButtonContent)==null?void 0:O.accessibilityText}}else{var N;return G==null?void 0:(N=G.subscribeButtonContent)==null?void 0:N.accessibilityText}};
PNr=function(G,c){return _.a6(G.entities,"subscriptionStateEntity",c)};
QoC=function(G,c){return _.a6(G.entities,"subscriptionNotificationStateEntity",c)};
mGr=function(G,c){return _.a6(G.entities,"upcomingEventReminderStateEntity",c)};
aUC=function(G,c){return _.a6(G.entities,"commentEntityPayload",c)};
Tp8=function(G,c){return _.a6(G.entities,"engagementToolbarSurfaceEntityPayload",c)};
O5A=function(G,c){return _.a6(G.entities,"triStateButtonStateEntityPayload",c)};
exT=function(G,c){return _.a6(G.entities,"commerceCartCheckoutButtonEntity",c)};
NpO=function(G,c){return _.a6(G.entities,"commandEntity",c)};
lUb=function(G){if(G){switch(G){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":G="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":G="NOTIFICATIONS_OFF";break;default:G="NOTIFICATIONS_NONE"}return G}};
qwA=function(G,c,I){I.subscribed!==c&&((I=I.key)&&_.y1(_.Le("subscriptionStateEntity",I,{key:I,subscribed:c})),G.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:c})),c||_.ym(G,"yt-unsubscribe-action"))};
FvT=function(G){G=_.D(_.WI(G),_.AY);var c,I,R,Z;return(Z=_.D(G==null?void 0:(c=G.panelLoadingStrategy)==null?void 0:(I=c.inlineContent)==null?void 0:(R=I.sheetViewModel)==null?void 0:R.content,wip))==null?void 0:Z.listItems};
nE0=function(G,c){if(G.onShowSubscriptionOptions&&c&&(G=FvT(G.onShowSubscriptionOptions),G!=null&&G.length)){var I=lUb(c);G.forEach(function(R){R=_.D(R,_.$Z);var Z,K,m,a,O=R==null?void 0:(Z=R.leadingImage)==null?void 0:(K=Z.sources)==null?void 0:(m=K[0])==null?void 0:(a=m.clientResource)==null?void 0:a.imageName;R&&O&&(R.isSelected=O===I)})}};
vEB=function(G,c,I,R){c&&I?G.style.width=I+"px":!c&&R&&(G.style.width=R+"px")};
DGg=function(G,c,I){var R;(R=G.lottieEl)==null||R.goToAndPlay(0);var Z;(Z=c.lottieEl)==null||Z.goToAndPlay(0);_.SR(_.dJ,function(){var K;(K=I.lottieEl)==null||K.goToAndPlay(0)},300)};
oEU=function(G){return!(G==null||!G.iconName||(G==null?0:G.title))};
UGq=function(G,c,I,R){I&&_.dJ.cancelJob(I);I=_.dJ.addLowPriorityJob(function(){R(void 0)},5E3);
R(I);c&&G!==(c.likeStatus==="LIKE")&&c.key&&_.y1(_.Le("likeStatusEntity",c.key,{key:c.key,likeStatus:G?"LIKE":"INDIFFERENT",hadUserInteraction:G}))};
_.uHC=function(G,c){return _.a6(G.entities,"accountLinkStatusEntity",c)};
b5A=function(G,c){return _.a6(G.entities,"hatsSurveyEntity",c)};
kSO=function(G,c){return _.a6(G.entities,"hatsSurveyStateEntity",c)};
so8=function(G,c){return _.a6(G.entities,"quantityIncrementerEntity",c)};
LvC=function(G){switch(G){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
AnO=function(G){switch(G){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
$Gi=function(G){switch(G){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.pir=function(G){var c=_.DH("web_generic_client_event_wait_period ",0);c||(c=3E5);var I=SwB.get(G);!_.v("enable_web_client_experiment_event_timeout_killswitch")&&I&&(0,_.Fa)()-I<c||(SwB.set(G,(0,_.Fa)()),_.x7("genericClientExperimentEvent",{eventType:G}))};
_.MZi=function(G,c){var I,R,Z,K;a:{var m=G.style;if(m===void 0)m=17;else switch(m){case "LIVE":m=18;break a;default:m=17}}return{type:m,text:c?adi({seconds:c}):_.HY(G.text),accessibilityText:(I=G.text)==null?void 0:(R=I.accessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label,icon:(K=G.icon)==null?void 0:K.iconType}};
VZU=function(G){switch(G){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
zxg=function(G){if(!G)return"";var c,I=(c=_.wH().resolve(_.qR(_.d0)))==null?void 0:c(),R;if(!I&&((R=G.vibrantColorPalette)==null?0:R.iconInactiveColor))return MD(G.vibrantColorPalette.iconInactiveColor,"1");var Z;return I&&((Z=G.darkColorPalette)==null?0:Z.iconInactiveColor)?MD(G.darkColorPalette.iconInactiveColor,"1"):G.color?MD(G.color,"1"):G.sampledThumbnailColor?(G=G.sampledThumbnailColor,"rgba("+G.red+","+G.green+","+G.blue+");"):""};
_.pe=function(G,c){if(!G.includes("DATE_PLACEHOLDER"))return G;var I=new Date(0);I.setUTCSeconds(c);return G.replace("DATE_PLACEHOLDER",EEr(I))};
Jng=function(G,c,I){return function(R){var Z=G.command;Z&&(DX(Z,{form:{element:I}}),c([Z],R))}};
i5B=function(G,c,I,R,Z){return function(K){var m=Wvb(G,c);m&&DX(m,{form:{element:I},commandController:R});Z&&K.stopPropagation()}};
Wvb=function(G,c){if(G.signInEndpoint&&!_.v("web_subscribe_sign_in_endpoint_killswitch"))return G.signInEndpoint;if(c){if(G.serviceEndpoints)return G.serviceEndpoints[1];if(G.onUnsubscribeEndpoints)return G.onUnsubscribeEndpoints[0]}else{if(G.serviceEndpoints)return G.serviceEndpoints[0];if(G.onSubscribeEndpoints)return G.onSubscribeEndpoints[0]}};
fU8=function(G,c){var I,R,Z,K;c=c&&((I=G.unsubscribeAccessibility)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label)||((Z=G.subscribeAccessibility)==null?void 0:(K=Z.accessibilityData)==null?void 0:K.label);return G.longSubscriberCountText?[c,_.HY(G.longSubscriberCountText)].filter(function(m){return m}).join(" "):c};
Mj=function(G,c){return c||(G==null?0:G.isChannelDelegate)?"disabled":"active"};
BpA=function(G,c){var I;switch((I=G.style)==null?void 0:I.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Mj(G)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Mj(G)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Mj(G,!0)};case "OVERLAY":return c?{style:"overlay",type:"tonal",state:Mj(G)}:{style:"overlay",type:"filled",state:Mj(G)};default:return c?{style:"mono",type:"tonal",state:Mj(G)}:{style:"mono",type:"filled",state:Mj(G)}}};
_.VK=function(){for(var G=[],c=_.Q(_.Hy.apply(0,arguments)),I=c.next();!I.done;I=c.next())if(I=I.value)if(typeof I==="string")G.push(I);else{I=_.Q(Object.entries(I));for(var R=I.next();!R.done;R=I.next()){var Z=_.Q(R.value);R=Z.next().value;(Z=Z.next().value)&&G.push(R)}}return G.join(" ")};
rn0=function(G){switch(G){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
joU=function(G){switch(G){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
xGO=function(G,c){var I=G.map(function(R){return R.toString()});
return _.Nx(function(R){if(I.includes(R.key)){c&&R.preventDefault();var Z;(Z=R.currentTarget)==null||Z.click()}})};
_.tZC=function(){return xGO(["Enter"])};
_.hx0=function(){return xGO(["Enter"," "],!0)};
_.zf=function(G){if(G.composedPath)return G.composedPath();if(!G.__composedPath){for(var c=[],I=G.target;I;)c.push(I),I=I.parentNode;c.push(window);G.__composedPath=c}return G.__composedPath};
_.EN=function(G,c,I){G=_.Q(G);for(var R=G.next();!R.done;R=G.next()){R=R.value;if(R===c)break;for(var Z=_.Q(I),K=Z.next();!K.done;K=Z.next())if(K=K.value,R.tagName===K||R.role==="button"&&K==="BUTTON")return!0}return!1};
CNT=function(G,c){var I,R=(I=c.observer)!=null?I:_.wH().resolve(qq);if(G){I=dGA(G);var Z=[];c.showOption&&Z.push(R.observe(G,function(){c.visibilityCallback(!0,G)},c.showOption));
c.hideOption&&Z.push(R.observe(G,function(){c.visibilityCallback(!1,G)},c.hideOption));
c.prescanOption&&c.prescanCallback&&Z.push(R.observe(G,function(){c.prescanCallback()},c.prescanOption));
var K;I.visibilityMonitorKeys=((K=I.visibilityMonitorKeys)!=null?K:[]).concat(Z)}};
dGA=function(G){var c;return(c=G.polymerController)!=null?c:G};
_.W8=function(G){return!!_.JY(G)};
_.im=function(G,c,I,R,Z){return function(K){var m=QBb();_.xs(function(){if(K){H5T(K,G(),Z);var a=XiU(K,G(),c,I,R,m);_.ty(a)}},"lrewVd")}};
H5T=function(G,c,I){var R=ynb(c),Z=gE0(c),K=R&&BVr,m=Z&&flO;(R||Z)&&CNT(G,{visibilityCallback:function(a){var O=_.wH().resolve(_.n4);a&&R?(O.resolveCommand(R,{form:{element:I?G:void 0},disableClickTracking:!0}),R=ynb(c)):!a&&Z&&(O.resolveCommand(Z,{form:{element:I?G:void 0},disableClickTracking:!0}),Z=gE0(c))},
showOption:K,hideOption:m})};
XiU=function(G,c,I,R,Z,K){var m=new Map;if(c=_.JY(c)){var a;G=(R==null?void 0:(a=R.onTap)==null?void 0:a.value)||G;I=Ywf(c,G,I==null?void 0:I.onTap,Z,K);G.addEventListener("click",I);m.set("click",I)}return function(){for(var O=_.Q(m),N=O.next();!N.done;N=O.next()){var q=_.Q(N.value);N=q.next().value;q=q.next().value;G.removeEventListener(N,q)}}};
_.JY=function(G){var c;return(G=(c=_.D(G,_.fe))==null?void 0:c.onTap)&&_.WI(G)};
ynb=function(G){var c;return(G=(c=_.D(G,_.fe))==null?void 0:c.onVisible)&&_.WI(G)};
gE0=function(G){var c;return(G=(c=_.D(G,_.fe))==null?void 0:c.onHidden)&&_.WI(G)};
Ywf=function(G,c,I,R,Z){var K=function(a){_.wH().resolve(_.n4).resolveCommand(G,a)},m=function(a){R&&_.EN(_.zf(a),c,R)||K(a.target?{form:{element:a.target,
sourceData:G,mutationContext:Z}}:void 0)};
I&&(m=function(a){I(a,K)});
return m};
Gtf=function(G){switch(G){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
c9C=function(G){var c=G.numAvatarsInCluster;switch(G.clusterSize){case "small":return c===2?22:18;case "40":return c===2?24:22;default:return c===2?24:20}};
I7p=function(G,c){return function(I){var R=Object.keys(c);_.xs(function(){if(G!=null&&G()){for(var Z=_.Q(R),K=Z.next();!K.done;K=Z.next())K=K.value,I.addEventListener(K,c[K]);_.ty(function(){for(var m=_.Q(R),a=m.next();!a.done;a=m.next())a=a.value,I.removeEventListener(a,c[a])})}},"bXZGfe")}};
RsT=function(G){switch(c9C(G)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
ZXB=function(G){switch(G){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
K5r=function(G){switch(c9C(G)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
P4C=function(G){switch(G){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
QLU=function(G){switch(G){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
mz8=function(G){return G==="medium"||G==="48"||G==="large"||G==="extra-large"||G==="extra-extra-large"||G==="giant"};
a7A=function(G){return!!((G==null?0:G.includes(3))||(G==null?0:G.includes(5)))};
OXp=function(G){var c=G.data;return{size:Tk0(c.avatarImageSize),type:c.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:G.onTap,decorations:G.decorations||[],badgeText:G.badgeText,accessibilityText:G.accessibilityText,avatarButtonCustomClassName:G.avatarButtonCustomClassName,clusterLayoutConfig:G.clusterLayoutConfig}};
Tk0=function(G){switch(G){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
esO=function(G){switch(G){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
Nkg=function(G){switch(G){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
l7b=function(G){var c=G.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",I,R=G.avatars&&G.avatars.length>0?(I=_.D(G.avatars[0],_.B8))==null?void 0:I.avatarImageSize:"AVATAR_SIZE_UNKNOWN";I=esO(R)||0;if(c){var Z,K=(Z=G.avatarClusterSize)!=null?Z:"AVATAR_SIZE_M";c=esO(K);var m,a,O=Math.min((a=(m=G.avatars)==null?void 0:m.length)!=null?a:0,4),N;return{avatars:((N=G.avatars)==null?void 0:N.slice(0,4))||[],avatarSizeInPx:I,avatarStackStyle:{width:c+"px",height:c+"px",position:"relative"},avatarStyle:function(w){var F=
c9C({clusterSize:Tk0(K),numAvatarsInCluster:O,avatarIndex:w});var n=esO(K);O===3&&w===2?(n=(n-F)/2,n=(_.H1("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*n):n=void 0;return{position:"absolute",top:O===2&&w===1||O===3&&w===2||O===4&&w>=2?"0":void 0,bottom:O===2&&w===0||O>2&&w<2?"0":void 0,left:O===2&&w===1||O>2&&(w===1||w===3)?"0":void 0,right:O<=3&&w===0||O===4&&(w===0||w===2)?"0":void 0,transform:n?"translateX("+n+"px)":void 0,width:F+"px",height:F+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(w){return{clusterSize:Tk0(G.avatarClusterSize),numAvatarsInCluster:O,avatarIndex:w}},
avatarButtonCustomClassName:void 0}}var q;return{avatars:((q=G.avatars)==null?void 0:q.slice())||[],avatarSizeInPx:I,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:Nkg(R),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
q5i=function(G,c,I){return function(){DX(G,{form:{element:c},commandController:I})}};
wJT=function(G){switch(G){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
F5U=function(G){switch(G){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
nU0=function(G){if("accessibilityText"in G)return G.accessibilityText||"";if("title"in G){var c,I,R;return((c=G.title)==null?void 0:(I=c.accessibility)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label)||""}if("accessibility"in G){var Z,K;return((Z=G.accessibility)==null?void 0:(K=Z.accessibilityData)==null?void 0:K.label)||""}return""};
vUi=function(G){return"inlinePlayerData"in G};
rP=function(G){return new Dzi(G)};
oUO=function(G){switch(G){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
UzT=function(G){switch(G){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
uvC=function(G){switch(G){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
bXA=function(G){return function(c){G&&(G.thumbnailElRef=c.thumbnailElRef,G.thumbnail=c.thumbnail,G.thumbnailOverlays=c.thumbnailOverlays,G.thumbnailSize=c.thumbnailSize)}};
ktr=function(G){switch(G){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
L5g=function(G){var c=_.Q(_.ks(!1,void 0,"E6wDDe")),I=c.next().value,R=c.next().value;_.tI(function(){var Z=G==null?void 0:G();if(Z){var K=_.wH().resolve(_.qR(sL8));if(K){var m={triggeringElement:Z,onDwellTriggeredFn:function(){R(!0)},
onDwellEndFn:function(){R(!1)}};
K.registerElement(m);_.ty(function(){_.jR(K,m)})}}});
return I};
A9g=function(G,c,I){I?I(c):_.r0(c,G.target?{form:{element:G.target}}:void 0)};
_.xZ=function(G,c,I,R){return function(Z){_.xs(function(){function K(q){q=q.composedPath();q=_.Q(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;if(w===Z)break;if(w.className.indexOf("HostIsClickableAdComponent")>=0||w.tagName==="A".toString()||w.tagName==="BUTTON".toString())return!0}return!1}
var m=new Map,a,O=(a=G())==null?void 0:a.onTap;if(O){a=function(q){K(q)||A9g(q,O,c)};
var N=function(q){K(q)||q.key!=="Enter"||A9g(q,O,c)};
(I==null?0:I())||_.v("enable_web_home_top_landscape_image_layout_level_click")?(Z.addEventListener("tap",a),m.set("tap",a)):(Z.addEventListener("click",a),m.set("click",a));if(R==null?0:R())Z.addEventListener("keydown",N),m.set("keydown",N)}_.ty(function(){for(var q=_.Q(m),w=q.next();!w.done;w=q.next()){var F=_.Q(w.value);w=F.next().value;F=F.next().value;Z.removeEventListener(w,F)}})},"D7XqOc")}};
$zp=function(G,c){var I,R=(I=G.interaction)==null?void 0:I.onTap;if(G=_.fd({elementsCommand:R,forceNewState:!0,skipOnClick:!0}))return G.onclick=function(Z){ofg(Z)&&(Z.preventDefault(),R&&A9g(Z,R,c))},BI(G)?G:void 0};
S5p=function(G){switch(G){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
pJ8=function(G){switch(G){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
MFT=function(G){switch(G){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.VFg=function(G){return _.v("rich_grid_enable_dynamic_offset")&&G?Math.max((G-_.DH("rich_grid_dynamic_offset_anchor_width",1300))/100*_.DH("rich_grid_dynamic_offset_offset_per_100",10),_.DH("rich_grid_dynamic_offset_lower_bound",-60)):0};
zsi=function(G,c){switch(c){case 4:return 16;case 1:return G<528?16:G<1024?32:48;case 2:return(G>=528?16:8)/2;case 3:return(G<528?16:G<1024?32:48)+(G>=528?16:8)/2;default:return 0}};
EUg=function(G){var c=G.originalContainerWidth;var I=G.sizing;var R=G.standardUnit;if(G.isCompactList&&c<528)return 1;switch(I){case "STANDARD":return R;case "COMPACT":return R+1;case "EXTRA_COMPACT":return _.v("web_responsive_extra_compact_2x")?R*2:_.v("web_responsive_current")?R===1?2:R%2===0?R/2*3:R+2:R<4?R*2:Math.ceil(R*3/2);case "MINI":return R>1?R*2:3;default:return R}};
W5i=function(G){var c=G.containerWidth;var I=G.peek;var R=G.gutter;var Z=G.numItems;G=G.ignoreMaxWidthLimit;c=I?Math.max((c-I-R*Z)/Z,0):Math.max((c-R*(Z-1))/Z,0);return G?c:Math.min(c,J98)};
_.tY=function(G){var c=G.containerWidth;var I=G.hasPeek;var R=G.sizing;var Z=G.marginSettings;var K=G.isCompactList;var m=G.enableFullBleedForSingleCol;var a=G.standardUnitMinWidth;R=R||"STANDARD";I=!!I;G=c>=528?16:8;var O=I?c>=528?48:24:0;Z=zsi(c,Z);var N=Math.max(c-Z*2,0);a=_.v("kevlar_disable_min_width_override")?void 0:a;a=Math.min(Math.max(Math.floor((N-O+G)/((a!=null?a:iXg)+_.VFg(c)+G)),1),6);var q=(m=!!m&&a===1)||a===1&&R!=="STANDARD";I=I||q?N:Math.min(N,(J98+G)*a-G);R=EUg({originalContainerWidth:c,
sizing:R,standardUnit:a,isCompactList:K});return{itemWidth:W5i({containerWidth:I,peek:O,gutter:G,numItems:R,ignoreMaxWidthLimit:q}),gutter:G,maxContainerWidth:I,numItems:R,margin:m?0:Z,contentMargin:zsi(c,1),typographyBump:W5i({containerWidth:I,peek:O,gutter:G,numItems:a,ignoreMaxWidthLimit:q})>400&&!(K&&c<528),standardUnit:a}};
hY=function(G){switch(G){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.f7T=function(G){if(G){var c;if((c=G.responsiveContainerConfiguration)==null?0:c.responsiveSize)return hY(G.responsiveContainerConfiguration.responsiveSize);if(G.layoutSizing)switch(G.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
Bk0=function(G){if(G.fullbleed)return 1;switch(G.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
hs0=function(G,c,I,R,Z,K,m,a,O){a:if(G===4&&R==="LOCKUP_CONTENT_TYPE_SOURCE")var N=1;else switch(G){case 3:N=1;break a;default:N=0}var q=r9g(G,R);a:switch(G){case 4:K=!!(K&&K<100);break a;default:K=!1}a:switch(G){case 3:case 4:var w=R==="LOCKUP_CONTENT_TYPE_CHANNEL"||R==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:w=!1}return{metadataOnThumbnail:q,isOverlay:a||q,isCard:jLO(R,m),sizing:c!=null?c:"STANDARD",typographyBump:I!=null?I:!1,isTiny:K,isCentered:w,isCollection:xzb(R),arrangement:N,addMarginForFullbleed:G===
1&&R!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:G===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:tFT(R,Z,O),disableRounding:G===5||jLO(R,m)||G===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:xzb(R)?2:0,useLegacyTypography:!(O==null||!O.useLegacyTypography),useRichGridLegacyTypography:!(O==null||!O.useRichGridLegacyTypography)&&!_.v("web_enable_typography_bump"),compactMetadata:N===0&&R==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:O==null?void 0:O.onFocusEffect,titleMaxLines:R==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
xzb=function(G){switch(G){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
jLO=function(G,c){if(c&&G==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(G){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
r9g=function(G,c){if(c==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(G){case 5:return!0;case 4:return!1;default:return!1}};
tFT=function(G,c,I){if(c&&(I==null||!I.alwaysRespectPodcastShowAspectRatio||G!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(G){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
_.dP=function(G){if(G){var c;return((c=_.wH().resolve(_.qR(_.d0)))==null?0:c())?G.darkThemeImage:G.image}};
HXp=function(G,c,I,R,Z,K){if(Z&&K&&c==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Z,height:K};if(!I)return{};Z=I.size;I=I.allowFullWidth;if(c==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&I)return{fullWidth:!0};if(Z===void 0)return{};switch(G){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Z,height:Z};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Z,height:1/dzU*Z};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Z*
C40,height:Z};default:return(R==null?0:R.height)&&(R==null?0:R.width)?R.width/R.height>1?{maxWidth:Z*C40}:{maxWidth:Z}:{maxWidth:Z}}};
XJU=function(G){var c;return G&&((c=_.dP(G.themedImage))!=null?c:G.image)};
y9A=function(G){var c;return G==null?void 0:(c=G.sources)==null?void 0:c[0]};
gUb=function(G){switch(G){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.Y5r=function(G){if(G)return"content-id-"+G};
GD8=function(G){switch(G.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
cor=function(G){var c=_.Ce.currentPageSubTypeSelector(_.XZ().getState())||"";return G?G+c:""};
Itf=function(G){switch(G){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Zab=function(G){var c=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],I=_.Q(_.ks(void 0,void 0,"JrqNsb")),R=I.next().value,Z=I.next().value,K=_.Q(_.ks(void 0,void 0,"rWytse"));I=K.next().value;var m=K.next().value;K=_.Q(_.ks(void 0,void 0,"DHRqxe"));var a=K.next().value,O=K.next().value;return{touchFeedbackEvents:{pointerUpEvent:R,pointerDownEvent:I,pointerLeaveEvent:a},touchFeedbackOnPointerUp:_.Nx(function(N){R6T(_.zf(N),c)||(Z(N),m(void 0),O(void 0))}),
touchFeedbackOnPointerDown:_.Nx(function(N){G==null||G(N);R6T(_.zf(N),c)||(m(N),Z(void 0),O(void 0))}),
touchFeedbackOnPointerLeave:_.Nx(function(N){R6T(_.zf(N),c)||(O(N),m(void 0),Z(void 0))})}};
R6T=function(G,c){c=c===void 0?[]:c;c=[].concat(_.jn(c),["BUTTON".toString()]);G=_.Q(G);for(var I=G.next();!I.done;I=G.next()){I=I.value;for(var R=_.Q(c),Z=R.next();!Z.done;Z=R.next())if(I.tagName===Z.value)return!0}return!1};
Kmi=function(G){switch(G){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
P_U=function(G){return G.scrollHeight-G.offsetHeight>1};
QCf=function(G,c){var I;return hN(G,((I=G.content)==null?void 0:I.length)||0,!c)};
TsA=function(G,c,I,R,Z,K){if(!c||mLp){var m;return hN(G,((m=G.content)==null?void 0:m.length)||0,!0)}c=R.value;if(!I.value||!c||!G.content)return G;I=0;R=G.content.length;m=0;atA||(atA=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var a=atA;for(Z=Z*K*a;I<=R;)K=Math.floor(I+(R-I)/2),a=hN(G,K)||G,c.firstChild&&(c.firstChild.textContent=a.content),c.scrollHeight>Z?R=K-1:(m=K,I=K+1);return hN(G,m)};
OaA=function(G,c){var I,R;return(((I=G.content)==null?void 0:I.length)||0)>(((R=c.content)==null?void 0:R.length)||0)};
e6f=function(G,c,I,R,Z,K){var m=_.mX("truncated-text-content"),a=_.mX("truncated-text-content"),O=_.mX("button"),N=_.mX("button"),q=_.mX("button"),w=_.wH().resolve(_.HI),F=_.Q(_.Gz(function(){return QCf(G(),Z())})),n=F.next().value,U=F.next().value;
F=_.Q(_.Gz(function(){return OaA(G(),n())}));
var k=F.next().value,p=F.next().value,M=null;_.xs(function(){function z(){if(m.value&&O.value&&q.value){var C=K()?G():TsA(G(),Z(),m,a,c(),I());U(C);requestAnimationFrame(function(){if(m.value&&O.value&&q.value){var H=P_U(m.value)||OaA(G(),C);p(H);if(!R()){var g=P_U(m.value),QO=I(),T8=m.value,kp=O.value,FB=q.value,oq=w==="rtl";if(T8&&kp){var Wr=kp.offsetLeft;oq&&(Wr=T8.offsetWidth-kp.offsetWidth-kp.offsetLeft);if(H){H=kp.offsetWidth;kp=T8.offsetWidth;var iT=g?kp-H-70:Wr-70;QO="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
QO+"rem,\n      #000 "+QO+"rem,\n      #000 100%), linear-gradient(\n      to "+((oq?"left":"right")+",\n      #000 0px,\n      #000 "+iT+"px,\n      transparent "+(g?kp-H:iT+70)+"px)");T8.style.setProperty("-webkit-mask-image",QO);T8.style.setProperty("mask-image",QO)}else T8.style.setProperty("-webkit-mask-image",""),T8.style.setProperty("mask-image","");g?oq?(FB.style.setProperty("left","0"),FB.style.setProperty("right","unset")):(FB.style.setProperty("left",""),FB.style.setProperty("right","0")):
oq?(FB.style.setProperty("left","unset"),FB.style.setProperty("right",Wr+"px")):(FB.style.setProperty("left",Wr+"px"),FB.style.setProperty("right","unset"))}}}})}}
var t,x;(t=M)==null||(x=t.stop)==null||x.call(t);t=new _.qx(z,17);z();M=t},"KjwIxd");
_.tI(function(){U(QCf(G(),Z()));p(OaA(G(),n()));var z=function(){atA=void 0;var x,C;(x=M)==null||(C=x.fire)==null||C.call(x)};
if(window.ResizeObserver){var t=new ResizeObserver(z);t.observe(m.value);_.ty(function(){var x,C;(x=M)==null||(C=x.stop)==null||C.call(x);t.disconnect()})}else window.addEventListener("resize",z),_.ty(function(){var x,C;
(x=M)==null||(C=x.stop)==null||C.call(x);window.removeEventListener("resize",z)})});
return{isTruncated:k,displayText:n,contentRef:m,hiddenRef:a,placeholderTruncationTextRef:O,hiddenTruncationTextRef:N,truncationTextRef:q}};
Ns8=function(G){return{content:G!=null?G:""}};
lt8=function(G){return _.WI(G.onTap)||_.JY(G.rendererContext)};
qiT=function(G){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:G.overflowMenuA11yLabel,onTap:function(c){c.preventDefault();c.stopPropagation();if(G.overflowMenuOnTap){var I=_.fd({elementsCommand:G.overflowMenuOnTap,forceNewState:!0});if(I==null?0:I.onclick)I.onclick(c)}}}};
_.H8=function(G,c,I,R,Z){R=R===void 0?{}:R;if(!Z||Math.random()<5E-4){c=c||null;I=I||null;G=G instanceof Error?G:new _.iW(G);if(G.args)for(var K=_.Q(G.args),m=K.next();!m.done;m=K.next())m=m.value,m instanceof Object&&(R=Object.assign({},m,R));R.category="H5 Ads Control Flow";c&&(R.slot=c?"slot:  "+c.slotType:"");I&&(R.layout=I?"layout:  "+I.layoutType:"",R.layoutId=I.layoutId);Z&&(R.known_error_aggressively_sampled=!0);G.args=[R];_.Ck(G)}};
_.w5g=function(G,c){c=_.YV(c);_.ym(G,"yt-open-popup-action",[c,G])};
_.Xc=function(G,c){_.w5g(G,_.Cp(c))};
nui=function(G){if(!G)return"";if(Fmg[G])return Fmg[G];yK||(yK=_.$9("A"));yK.href!==G&&yx(yK,G);var c=yK.pathname;Fmg[G]=c.startsWith("/")?c:"/"+c;return Fmg[G]};
vuC=function(){var G=nui(window.location.href);if(G==="/")return"home";if(G.startsWith("/results"))return"search";if(G.startsWith("/watch"))return"watch";if(G.startsWith("/shorts"))return"shorts";if(G.startsWith("/hashtag"))return"hashtag";if(G.startsWith("/create_channel"))return"create_channel";if(G.startsWith("/@")||G.startsWith("/user/")||G.startsWith("/channel/"))return"channel";if(G.startsWith("/experiments"))return"experiments";if(G.startsWith("/sponsor_channel"))return"sponsorship";if(G.startsWith("/select_site"))return"settings";
if(G.startsWith("/locate"))return"locate";if(G.startsWith("/redeem"))return"redeem";if(G.startsWith("/musicpremium")||G.startsWith("/premium")||G.startsWith("/red"))return"premium";if(G.startsWith("/paid_memberships"))return"paid_memberships";if(G.startsWith("/oops"))return"oops";if(G.startsWith("/clip"))return"clip";var c;return(gP==null?void 0:(c=gP.response)==null?void 0:c.page)==="404"?"404":G.startsWith("/feed/history")?"history":G.startsWith("/feed/library")?"library":G.startsWith("/feed/subscriptions")?
"subscriptions":G.startsWith("/feed/trending")?"trending":G.startsWith("/feed/news_destination")?"news":G.startsWith("/playlist")?"playlist":G.startsWith("/minor_moment")?"minor_moment":G.startsWith("/playable/")||G.match("^/playables/(?!saved).")?"mini_app":G.startsWith("/playables")?"playables":G.startsWith("/create/live/join")?"open_in_app":G.startsWith("/feed/explore")?"explore":"browse"};
_.G$=function(){var G=gP==null?void 0:gP.response,c=G==null?void 0:G.endpoint;if(!c)return(G==null?void 0:G.page)==="watch"?"watch":vuC();var I;G=(I=_.D(c==null?void 0:c.commandMetadata,_.Pd))==null?void 0:I.webPageType;I=!1;if(G&&!DL8.includes(G))switch(G){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var R;return((R=_.D(c==null?void 0:c.commandMetadata,_.Pd))==null?0:R.url)&&nui(_.D(c.commandMetadata,_.Pd).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Z;return(c=(Z=_.D(c,_.qD))==null?void 0:Z.browseId)?oup[c]||"browse":"browse";default:I=!0}if(_.D(c,_.YZ)||_.D(c,ULp))return"sponsorship";Z=nui(window.location.href);if(Z.startsWith("/experiments"))return"experiments";if(Z.startsWith("/create_channel"))return"create_channel";
if(_.D(c,_.ID)&&Z.startsWith("/shorts"))return"shorts";if(_.D(c,_.ID)&&Z.startsWith("/watch"))return"watch";I&&(c=new _.iW("Unsupported mWeb page type",{pathname:Z,webPageType:G}),_.hg(c));return"browse"};
cm=function(G,c,I,R){return G&&c?G!==I||c!==R?(_.H8(Error("Kh"),void 0,void 0,{"stored-slot":G,"stored-layout":c,"latest-slot":I,"latest-layout":R}),!1):!0:!1};
bag=function(G,c,I){return G({targetId:c},function(R){return I.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},R,{contents:[I.continuationItems?_.D(I.continuationItems[0],uWb):{}]}):I.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},R,{header:I.continuationItems?I.continuationItems[0]:void 0}):Object.assign({},R,{contents:I.continuationItems?I.continuationItems:[]})})};
kDf=function(G,c,I,R){if(c=c.trackingParams){var Z,K=(Z=I.getScreenLayer)==null?void 0:Z.call(I);I=_.k0(K);Z=_.u6(K);if(I&&Z){var m=_.kC(c);_.v("combine_ve_grafts")?G.graftServerVe(c,Z,K):_.Wd(I,Z,m);R==null||R(m)}}};
LmC=function(G){var c;return((c=sCB.get(G))==null?void 0:c.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
SiB=function(G,c){var I={type:c.slotType,controlFlowManagerLayer:AoA.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c.slotEntryTrigger&&(I.entryTriggerType=c.slotEntryTrigger.triggerType);c.slotPhysicalPosition!==1&&(I.slotPhysicalPosition=c.slotPhysicalPosition);if(G){I.debugData={slotId:c.slotId};if(G=c.slotEntryTrigger)I.debugData.slotEntryTriggerData=$Lq(G);G=c.slotFulfillmentTriggers;I.debugData.fulfillmentTriggerData=[];G=_.Q(G);for(var R=G.next();!R.done;R=G.next())I.debugData.fulfillmentTriggerData.push($Lq(R.value));
c=c.slotExpirationTriggers;I.debugData.expirationTriggerData=[];c=_.Q(c);for(G=c.next();!G.done;G=c.next())I.debugData.expirationTriggerData.push($Lq(G.value))}return I};
$Lq=function(G,c){var I={type:G.triggerType};c!=null&&(I.category=c);G.triggeringSlotId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedSlotId=G.triggeringSlotId);G.triggeringLayoutId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedLayoutId=G.triggeringLayoutId);return I};
p50=function(G,c,I,R){c={opportunityType:c};G&&(R||I)&&(R=_.jB(R||[],function(Z){return SiB(G,Z)}),c.debugData=Object.assign({},I&&I.length>0?{associatedSlotId:I}:{},R.length>0?{slots:R}:{}));
return c};
M3T=function(G){return Il(G.opportunityAdapterMap).concat(Il(G.triggerAdapterMap)).concat(Il(G.fulfillmentAdapterFactoryMap)).concat(Il(G.slotAdapterFactoryMap)).concat(Il(G.layoutRenderingAdapterFactoryMap))};
Il=function(G){var c=[];G=_.Q(G.values());for(var I=G.next();!I.done;I=G.next())I=I.value,I.isAdsControlFlowEventListener&&c.push(I);return c};
Z2=function(G){var c=G.slotId,I=G.slotType,R=G.slotPhysicalPosition;return c===void 0?new Rl("Cannot construct a slot due to the missing id.",{adSlotMetadata:G}):I===void 0?new Rl("Cannot construct a slot due to the missing type.",{adSlotMetadata:G}):R===void 0?new Rl("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:G}):{slotId:c,slotType:I,slotPhysicalPosition:R,managerLayer:"external",adSlotLoggingData:G.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new V3O}};
z60=function(G){var c=G.layoutId,I=G.layoutType;return c===void 0?new Ks("Cannot construct a layout due to the missing id.",{adLayoutMetadata:G}):I===void 0?new Ks("Cannot construct a layout due to the missing type.",{adLayoutMetadata:G}):{layoutId:c,layoutType:I,managerLayer:"external",adLayoutLoggingData:G.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new V3O,interactionLoggingAdsClientData:{}}};
EuA=function(G){if(G.querySelector("img")){var c=G.querySelector("img");c.addEventListener("error",function(){TlU(c.src).then(function(I){(I=_.CG(I).toString())?c.src=I:c.removeAttribute("src")}).catch(function(){c.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
QY=function(G,c){if(c&&(Joi(c.viewableCommand)||Joi(c.endOfSessionCommand))){var I=Wmg(c==null?void 0:c.viewableCommand);c=Wmg(c==null?void 0:c.endOfSessionCommand);if(!Pm){var R=_.DH("custom_active_view_tos_timeout_ms");Pm=R>0&&R!==36E5?new iab(ftr(),R):new iab(ftr())}BsA(Pm,G);rob(Pm,G,I,c)}};
mL=function(G){Pm&&BsA(Pm,G)};
ftr=function(){var G=_.H1("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
Joi=function(G){G=_.WI(G);return!(G==null||!G.loggingUrls)&&G.loggingUrls.length>0};
Wmg=function(G){if(!G)return[];var c=[],I,R;((R=(I=_.WI(G))==null?void 0:I.loggingUrls)!=null?R:[]).forEach(function(Z){Z.baseUrl&&c.push(Z.baseUrl)});
return c};
jCB=function(G){if(_.v("stop_av_measurement_on_detach"))return function(){mL(G)}};
xLA=function(G){return function(){_.v("stop_av_measurement_on_detach")&&mL(G)}};
t3q=function(G){if(_.v("stop_av_measurement_on_detach"))return function(){mL(G)}};
h6T=function(G){return G.shorts.isDesktopSmallWidth};
_.dLU=function(G){return G.shorts.isShortsActive};
_.C_i=function(G){return G.shorts.isWatchWhileMode};
_.al=function(G){return G.shorts.isFullscreen};
_.T$=function(G){return G.shorts.isShortsPipActive};
X5B=function(G){var c,I;if(G=(c=_.D(G.reelsAdCardButtoned,HaT))==null?void 0:(I=c.animatedRenderingConfig)==null?void 0:I.easeOutSeconds)return G+"s"};
guq=function(G,c,I){return _.T(function(R){return R.return(new Promise(function(Z){var K=new Image;K.onload=function(){Z(new yoA(G,c,I,K.naturalWidth,K.naturalHeight))};
K.src=I.toString()}))})};
YiO=function(G,c){return Math.round(G/1E-5)===Math.round(c/1E-5)};
GKA=function(G,c){return Math.round(G/1E-5)===Math.round(c/1E-5)};
clO=function(G,c){return G.year===c.year&&G.month===c.month&&G.day===c.day};
Ifr=function(G,c){return G.year!==c.year?G.year<c.year:G.month!==c.month?G.month<c.month:G.day<c.day};
ZBO=function(G){return G.day===Rjr(G.year,G.month)?G.month===11?{year:G.year+1,month:0,day:1}:{year:G.year,month:G.month+1,day:1}:{year:G.year,month:G.month,day:G.day+1}};
KSi=function(){var G=new Date,c={year:G.getFullYear(),month:G.getMonth(),day:G.getDate()};return{start:c,end:{year:G.getFullYear()+2,month:G.getMonth(),day:G.getDate()},selectedDate:ZBO(c)}};
Pzg=function(G){return(new dL(2)).format(new Date(G.year,G.month,G.day))};
QST=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
m$g=function(G,c){G=(G+(Number(c.utcOffsetSec)+(new Date(G*1E3)).getTimezoneOffset()*60))*1E3;c=QST(new Date(G));return{date:c,secondsSinceMidnight:Math.floor((G-(new Date(c.year,c.month,c.day)).getTime())/1E3)}};
afA=function(G,c){c=c.months.findIndex(function(I){return I.year===G.year&&I.month===G.month});
return c>=0?c:void 0};
T$8=function(G){if(!G)return!1;try{if(G.host&&G.host.tagName==="YT-FORMATTED-STRING"&&G.host.id==="contenteditable-textarea"||G.nodeType===Node.ELEMENT_NODE&&G.tagName==="YTD-COMMENTBOX")return!0}catch(c){return!1}return T$8(G.parentNode)};
Og=function(G){return G?!(G.tagName!=="A"||!G.href||!G.classList.contains("yt-simple-endpoint")):!1};
OBC=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
ej0=function(G,c,I){if(!G)return null;var R=Og(G);if(R&&I)return c=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+c);if(R&&!I)return document.createTextNode("");if(OBC(G))return I=G.alt,G=G.dataset.emojiId,!G&&c&&(c=_.eh(c,I))&&c.isCustomEmoji&&(G=c.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(I);R=G.cloneNode(!1);for(var Z=0;Z<G.childNodes.length;++Z){var K=ej0(G.childNodes[Z],c,I);K&&R.appendChild(K)}return R};
No=function(G){return G?Og(G)?G:No(G.lastChild):null};
N$0=function(G){return G?Og(G)?G:N$0(G.firstChild):null};
lfp=function(G){if(!G)return null;for(var c=G.previousSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.previousSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.previousSibling;else break;(c=No(c))?G=c:G=(G=G.parentNode)?No(G.previousElementSibling):null;return G};
quO=function(G){if(!G)return null;for(var c=G.nextSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.nextSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.nextSibling;else break;return(c=N$0(c))?c:quO(G.parentNode)};
w4b=function(G){var c=_.lP(),I=c.JSC$11513_getStartNode();if(!T$8(I.parentNode))return null;c=c.JSC$11513_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var R=_.H6(I,Og);if(R){if(G&&c===0||!G&&c===I.length)return R}else{if(G&&c===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.qo(I.nextElementSibling,"display")==="block"?null:N$0(I.nextElementSibling);if(!G&&c===0)return I?No(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(G){if(0<=c&&c<I.childNodes.length)return N$0(I.childNodes[c])}else if(0<
c&&c<=I.childNodes.length)return No(I.childNodes[c-1]);return null};
FSp=function(G,c,I){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(I){var R=lfp(G);if(R&&!/^\s+\S/.test(G.wholeText.substr(0,c)))return R}else if((R=quO(G))&&!/\S\s+/.test(G.wholeText.substr(c,G.wholeText.length)))return R;return G.nodeType===Node.ELEMENT_NODE?I?lfp(G.childNodes[c]):quO(G.childNodes[c]):FSp(G.parentNode,c,I)};
n3p=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var c="";for(G=G.firstChild;G;G=G.nextSibling)c+=n3p(G);return c;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
w8=function(G,c){return G.year===c.year&&G.month===c.month&&G.day===c.day};
Ft=function(G,c){return G.year!==c.year?G.year<c.year:G.month!==c.month?G.month<c.month:G.day<c.day};
v3U=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
D$b=function(G){var c=F8r;c=c===void 0?F8r:c;c(new Date(G.year,G.month,G.day))};
ns=function(G){return v3U(new Date(Number(G.seconds)*1E3))};
o38=function(G){return G.year!==void 0&&G.month!==void 0&&G.day!==void 0};
U$r=function(G){return G.start!==void 0&&G.end!==void 0};
uor=function(G){return U$r(G)?G.start:G};
bBT=function(G){return U$r(G)?G.end:void 0};
sS0=function(G,c){for(var I=[],R=new Date(G.start.year,G.start.month);R.getFullYear()<G.end.year||R.getFullYear()===G.end.year&&R.getMonth()<=G.end.month;){var Z=I,K=Z.push,m=R.getFullYear(),a=R.getMonth(),O=G,N=c,q=void 0,w=[],F=Object.freeze({extraCssClass:"invisible"}),n=new Date(m,a),U=v3U(n);n=n.getDay();for(var k=v3U(new Date);U.month===a;){n!==kKT&&q||(q=Array.from({length:7}).fill(F),w.push(q));var p={date:{year:m,month:a,day:U.day},extraCssClass:"",debugClass:""};p.extraCssClass=N(p.date,
U,k,O).trim();q[(n-kKT+7)%7]=p;U=U.day===Rjr(U.year,U.month)?U.month===11?{year:U.year+1,month:0,day:1}:{year:U.year,month:U.month+1,day:1}:{year:U.year,month:U.month,day:U.day+1};n=(n+1)%7}K.call(Z,{weeks:w,monthLabel:D2.SHORTMONTHS[a]+" "+m,year:m,month:a,monthLabelExtraCssClass:w[0][2]===F?"shift-down-label":""});R.setMonth(R.getMonth()+1)}return I};
LSi=function(G,c){c=c.months.findIndex(function(I){return I.year===G.year&&I.month===G.month});
return c>=0?c:void 0};
$$p=function(G,c){a:{var I=I===void 0?[2,3]:I;I=_.Q(I);for(var R=I.next();!R.done;R=I.next()){var Z=new Date;if((new Alr(R.value)).parse(c,Z,{validate:!0})){Z.setHours(0,0,0,0);c=Z;break a}}c=null}if(!c)return{isValid:!1,value:void 0};c=v3U(c);I=G.end;return Ft(c,G.start)||Ft(I,c)?{isValid:!1,value:void 0}:{isValid:!0,value:c}};
zji=function(G){var c=SuT;c=c===void 0?p4U:c;var I=G.columnsToShow||[],R=MYC(G.columnDimensions,G.columnsToShow,G.leftFloatingColumns,c);return I.map(function(Z,K){var m=G.columns[Z];if(m===void 0)throw Error("Qh");var a=R?R[K]:"";var O=G.getCustomTooltip?G.getCustomTooltip(Z,m.headerTooltipParagraphs):m.headerTooltipParagraphs;var N=VYT(G,Z);return{type:Z,index:K,style:a,classes:N,headerName:m.headerName||"",headerIcon:m.headerIcon,headerTooltipParagraphs:O||[],headerTooltipHelpContext:m.headerTooltipHelpContext,
sortOrders:m.sortOrders||[],selectionState:m.isSelectionCheckbox?G.selectionState:void 0}})};
VYT=function(G,c){var I=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],R=G.columns[c];if(R===void 0)return"";var Z=I.includes("DEFAULTS")&&R.cssClass?[R.cssClass]:[];if(I.includes("SORTING")){R.sortOrders&&R.sortOrders.length&&Z.push("sortable");if(G.sorting&&G.sorting.columnType===c)a:switch(G.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var K="column-sorted";break a;default:K=""}else K="";K&&Z.push(K)}I.includes("FLOATING")&&(c=G.columnsToShow.indexOf(c),G.leftFloatingColumns&&c<G.leftFloatingColumns&&
Z.push("floating-column"),G.leftFloatingColumns&&c===G.leftFloatingColumns-1&&Z.push("last-floating-column"));I.includes("RIGHT_ALIGN")&&R.rightAlignHeader&&Z.push("right-align");return Z.filter(function(m){return m}).join(" ")};
MYC=function(G,c,I,R){I=I===void 0?0:I;R=R===void 0?p4U:R;if(G){var Z=[],K=0;E3A(G,c,R).forEach(function(m,a){var O="min-width:"+m.minWidth+"px;padding-left:"+m.paddingLeft+"px;padding-right:"+m.paddingRight+"px;flex:"+m.flexGrow+" 0 "+m.minWidth+"px;";m.maxWidth!==Infinity&&(O=[O,"max-width:"+m.maxWidth+"px;"].join(""));K>0&&a<I&&(O=[O,"left:"+K+"px;"].join(""));Z.push(O);K+=m.minWidth+m.paddingLeft+m.paddingRight});
return Z}};
E3A=function(G,c,I){I=I===void 0?p4U:I;return c.map(function(R,Z){R=G&&G[R]||{};var K=Z===0?I.paddingLeftFirstColumn:I.padding;R.paddingLeft!==void 0&&(K=R.paddingLeft);Z=Z===c.length-1?I.paddingRightLastColumn:I.padding;R.paddingRight!==void 0&&(Z=R.paddingRight);return{paddingLeft:K,paddingRight:Z,minWidth:R.minWidth!==void 0?R.minWidth:I.minWidth,maxWidth:R.maxWidth!==void 0?R.maxWidth:I.maxWidth,flexGrow:R.flexGrow!==void 0?R.flexGrow:I.flexGrow}})};
Jlq=function(G){var c=G.reduce(function(R,Z){var K=Z.columnId,m={};Z.headerText&&(m.headerName=_.HY(Z.headerText));Z.rightAlignHeader&&(m.rightAlignHeader=Z.rightAlignHeader);var a;if((a=Z.headerIcon)==null?0:a.iconType)m.headerIcon=_.On(Z.headerIcon.iconType);R[K]=m;return R},{}),I=G.filter(function(R){return!R.hideColumn}).map(function(R){return R.columnId});
G=G.filter(function(R){return!!R.dimensions}).reduce(function(R,Z){R[Z.columnId]=Z.dimensions;
return R},{});
return{columns:c,columnsToShow:I,columnDimensions:G}};
_.WSq=function(G){return G?G.simpleText?G.simpleText:G.runs?G.runs.map(function(c){return c.text}).join(""):"":""};
x$r=function(G){var c=G.data;var I=G.onTap;var R=G.isSelected;var Z=G.onFocusIn;if(!c)return{};G=iBg(c);R===void 0&&(R=c==null?void 0:c.isSelected);var K;return{text:ffr(c,G),startIcon:(K=c.icon)==null?void 0:K.iconType,state:R?0:2,type:0,style:B$T(c),onTap:rlp(c,I),accessibilityLabel:jSr(c,G),onFocusIn:function(){return Z==null?void 0:Z()}}};
ffr=function(G,c){if(!c)return G.text?_.WSq(G.text):void 0};
B$T=function(G){var c;switch((c=G.style)==null?void 0:c.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
rlp=function(G,c){return function(I){c==null||c(I,G)}};
iBg=function(G){G=G.style&&G.style.styleType;return!mLp&&G==="STYLE_EXPLORE_LAUNCHER_CHIP"};
jSr=function(G,c){if(c){var I,R,Z;return(Z=(I=G.accessibilityData)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label)!=null?Z:ffr(G,!1)}};
tYU=function(){var G;return[function(c,I,R){return _.Xl(G,c,I,R)},
function(c){G=c}]};
hjA=function(G,c){return _.a6(G.entities,"chipEntity",c)};
Czr=function(G,c,I,R){return function(){var Z=d$g.has(G.displayType)&&G.selected,K=Z&&G.deselectCommand?G.deselectCommand:G.tapCommand;!K||Z&&R||_.r0(K,{form:{element:c==null?void 0:c.value}});I==null||I()}};
X4r=function(G,c){a:{if(G=G.onUpdateText)if(G=_.D(G,_.JN)){var I;G=(I=_.D(G,HB0))==null?void 0:I.stepId;break a}G=void 0}I=G;c=c==null?void 0:c.stepStates;if(I&&c){var R,Z;return(R=c[I])==null?void 0:(Z=R.userQuery)==null?void 0:Z.userQuery}};
ol=function(G){return{signalAction:{signal:G}}};
YuB=function(){return _.H1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ylU:_.g3r};
G_b=function(G,c){G=G===void 0?"SOFT_RELOAD_PAGE":G;c=c===void 0?49504:c;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Gv(_.mJ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:c}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:G}}]}}}};
c6r=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Gv(_.mJ("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:YuB()}};
IV0=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Gv(_.mJ("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:YuB()}};
R38=function(G,c){var I=_.Gv(_.mJ("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),R=_.Gv(_.mJ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Z={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Gv(_.mJ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Z.serviceEndpoint=G?G:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ol("SOFT_RELOAD_PAGE")]}};return{title:I,bodyText:R,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Z},
style:{value:c!=null?c:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
KNA=function(G){G=G===void 0?{}:G;return{title:_.Gv(G.localizedZeroStateTitleText===void 0?"":G.localizedZeroStateTitleText),bodyText:_.Gv(G.localizedZeroStateMessage===void 0?"":G.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Gv(G.localizedZeroStateButtonText===void 0?"":G.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[ZKr]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Q_i=function(G){G=G===void 0?{}:G;return{title:_.Gv(G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Gv(G.localizedOptInMessage===void 0?"":G.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Gv(_.mJ("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:_.Gv(_.mJ("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:[PMO]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Tui=function(G,c){var I=c=c===void 0?{}:c;c=I.offlineTitleText===void 0?"":I.offlineTitleText;var R=I.offlineDescriptionText===void 0?"":I.offlineDescriptionText,Z=I.formattedSupplementalText,K=I.actionButtonText===void 0?"":I.actionButtonText,m=I.titleText===void 0?"":I.titleText;I=I.descriptionText===void 0?"":I.descriptionText;var a={title:K,accessibilityText:K,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};G||(m=c,I=R,a={title:K,accessibilityText:K,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.Gv(m),titleLength:m.length,overrideTitleMaxFontSize:30,subtitle:_.Gv(I),supplementalText:Z,primaryButton:{buttonViewModel:a},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[mmr]},darkTileImage:{thumbnails:[aVC]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.Nuq=function(G,c,I,R,Z,K,m,a,O,N,q){Z=Z===void 0?!1:Z;K=K===void 0?!1:K;m=m===void 0?0:m;a=a===void 0?-Infinity:a;O=O===void 0?!1:O;N=N===void 0?!1:N;q=q===void 0?!1:q;var w=[],F=_.Gv(_.mJ("SMART_DOWNLOADS",void 0,"Smart downloads")),n=_.Gv(OKA(m,a,G.length));a=m=void 0;N?m={statementBannerRenderer:Tui(q,R)}:Z?G.length>0?a=e3b(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.v("kevlar_manual_downloads_above"),F,n):O?a={alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===
void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedPromptMessage===void 0?"":I.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.mJ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.mJ("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:_.sT8}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:K&&(a={backgroundPromoRenderer:{bodyText:_.Gv(_.mJ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
K&&(a={alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedOptInMessage===void 0?"":I.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.mJ("TURN_ON",void 0,"Turn on"),accessibilityText:_.mJ("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});I=_.Gv(_.mJ("YOUR_DOWNLOADS",void 0,"Your downloads"));R=void 0;c.length>0?(R=void 0,_.v("kevlar_display_downloads_numbers")&&(R=_.Gv(_.aP("VIDEO_COUNT",c.length))),R=e3b(c,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,I,R)):Z||G.length||
N||(R={backgroundPromoRenderer:{bodyText:_.Gv(_.mJ("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}}}});m?w.push({richSectionRenderer:{content:m}}):a&&!_.v("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:a,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
R&&w.push({richSectionRenderer:{content:R,loggingDirectives:{clientVeSpec:{uiType:51721}}}});a&&_.v("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:a,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(c.length>0||Z&&G.length>0&&!N)&&w.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Gv(_.mJ("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:w}};
_.qVr=function(G){return lV0(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.w9O=function(G){return lV0(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
lV0=function(G,c){var I=[];G=e3b(G,c,!0);I.push({richSectionRenderer:{content:G}});return{contents:I}};
e3b=function(G,c,I,R,Z){I=I===void 0?!1:I;var K="RESPONSIVE_SIZE_STANDARD";_.v("kevlar_standard_rich_grid_on_offline_home")&&c==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?K="RESPONSIVE_SIZE_STANDARD":_.v("kevlar_modern_downloads_compact")?K="RESPONSIVE_SIZE_COMPACT":_.v("kevlar_modern_downloads_extra_compact")?K="RESPONSIVE_SIZE_EXTRA_COMPACT":_.v("kevlar_modern_downloads_tiny")&&(K="RESPONSIVE_SIZE_TINY");G={isExpanded:I,contents:Ug(G),entitySelectorType:c,responsiveContainerConfiguration:{responsiveSize:K}};
R&&(G.title=R);Z&&(G.subtitle=Z);I||(_.v("kevlar_smart_downloads_show_more_button")?(G.showMoreButton={buttonRenderer:{accessibility:{label:_.mJ("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Gv(_.mJ("SHOW_MORE",void 0,"Show more"))}},G.showLessButton={buttonRenderer:{accessibility:{label:_.mJ("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.Gv(_.mJ("SHOW_LESS",void 0,"Show less"))}}):(G.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.mJ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},G.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.mJ("HORIZONTAL_LIST_NEXT_LABEL",
void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},G.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.mJ("VIEW_ALL",void 0,"View all"),accessibilityText:_.mJ("VIEW_ALL",void 0,"View all"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:242898}},onTap:{innertubeCommand:_.gU("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:G}};
Ug=function(G){var c=[];G=_.Q(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,asr(I)){var R=c,Z=R.push;var K=void 0;if(I==null?0:(K=I.videoEntity)==null?0:K.videoId){K=fp(_.y4().getState(),I.videoEntity.videoId);var m=_.y4().getState();var a=_.mx(I.videoEntity.videoId,"mainVideoEntity");m=!!_.bn(m.entities)[a];m={videoId:I.videoEntity.videoId,title:cY(I.videoEntity.title),shortBylineText:cY(I.channelEntity.title),thumbnail:I.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:m&&_.v("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:fIA(I.videoEntity.videoId,K,I.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.mJ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};I.videoEntity.lengthSeconds&&(m.thumbnailOverlays=E48(I.videoEntity.lengthSeconds,K));m.isWatched=K>0;_.v("kevlar_modern_downloads_page")&&(m.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:I.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.mJ("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},m.badges=void 0);I=m}else I={};Z.call(R,{richItemRenderer:{content:{videoRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(mii(I)){R=c;Z=R.push;var O=a=K=void 0,N=void 0,q=void 0,w=void 0,F=void 0,n=void 0,U=void 0,k=void 0,p=void 0,M=void 0;m=I.mainPlaylistEntity.playlistId;var z=I==null?void 0:(M=I.mainPlaylistEntity)==null?void 0:(p=M.thumbnailStyleData)==null?void 0:(k=p[0])==null?void 0:(U=k.value)==null?void 0:(n=U.collageThumbnail)==
null?void 0:n.coverThumbnail;if(m&&z){n=Btf(m);!_.v("enable_offline_playlist_page")&&(I==null?0:(F=I.mainPlaylistEntity)==null?0:F.videos)&&(F=I==null?void 0:(w=I.mainPlaylistEntity)==null?void 0:(q=w.videos)==null?void 0:q[0],q=_.Kp(F).entityId,q=JSON.parse(q).videoId,q!==void 0&&(n=fp(_.y4().getState(),q),n=_.YD(q,m,void 0,void 0,n)));q=[];if(I==null?0:(N=I.mainPlaylistEntity)==null?0:(O=N.videos)==null?0:O.length)O=wQb(),N=Object,q=N.assign,w=(w=q78(I==null?void 0:I.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.Gv(w),icon:{iconType:"PLAYLISTS"}}}:void 0,q=[O,q.call(N,{},(a=w)!=null?a:{})];I={playlistId:m,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:z}},navigationEndpoint:n,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:q,title:cY(I.mainPlaylistEntity.title),shortBylineText:cY(I==null?void 0:(K=I.channelEntity)==null?void 0:K.title),badges:[{metadataBadgeRenderer:{label:_.mJ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.v("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:FNT,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:m,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.mJ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},I.badges=void 0)}else I=void 0;Z.call(R,{richItemRenderer:{content:{playlistRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return c};
OKA=function(G,c,I){G=G?nJU(G):"";c!==void 0&&isFinite(c)?c===0?c=_.mJ("UPDATING",void 0,"Updating..."):(c=z7r(new Date(c),new Date),c=_.mJ("UPDATED_TIME",{relative_time:c},"Updated "+c)):c="";var R="";G&&c&&(R=" \u2022 ");if(I&&_.v("kevlar_display_downloads_numbers")){I=_.aP("VIDEO_COUNT",I);if(G||c)R=" \u2022 ";return I+R+G+R+c}return G+R+c};
vJq=function(G){return GbU(G.entities).length};
_.Dmq=function(G,c,I){var R=hY(G.responsiveSize),Z;G=!((Z=G.responsiveMap)==null||!Z.some(function(K){return K.containerSize==="CONTAINER_SIZE_NARROW"&&K.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:I,containerWidth:c,sizing:R,enableFullBleedForSingleCol:!1,isCompactList:R==="COMPACT"&&G}};
oJr=function(G,c){return _.a6(G.entities,"votingEntity",c)};
uP=function(G){if(G){var c;return((c=_.wH().resolve(_.qR(_.d0)))==null?0:c())?G.darkTheme:G.lightTheme}};
UmT=function(G,c){if(G.simpleText)return Object.assign({},G,{simpleText:xC(G.simpleText,c)});if(!G.runs)return G;for(var I=Object.assign({},G,{runs:[]}),R=0,Z=_.Q(G.runs),K=Z.next();!K.done;K=Z.next())if(K=K.value,K.text)if(R+K.text.length<=c)I.runs.push(K),R+=K.text.length;else return I.runs.push(Object.assign({},K,{text:xC(K.text,c-R)})),I;return G};
u1b=function(G,c){return _.a6(G.entities,"chipBarStateEntity",c)};
bKr=function(G){switch(G){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
k_U=function(G,c){return{triggeringElement:G,onDwellTriggeredFn:function(){var I={triggeringElement:G,loadVideoPreviewEventData:c},R=document.querySelector(".video-preview");R&&R.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:I}))},
onDwellEndFn:function(){var I=document.querySelector(".video-preview");I&&I.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
s_p=function(G,c){var I=_.wH().resolve(_.qR(sL8)),R=function(){var Z=c();return I&&Z?k_U(G.value,Z):null};
_.xs(function(){var Z=R();I&&Z&&Promise.resolve().then(function(){I.registerElement(Z)});
_.ty(function(){I&&Z&&Promise.resolve().then(function(){_.jR(I,Z)})})},"csPUge")};
A6O=function(G){var c=G.dataset.resizeObserverId;if(c)return c;c=""+LNq++;return G.dataset.resizeObserverId=c};
$mi=function(G){G=_.Q(G);for(var c=G.next();!c.done;c=G.next()){c=c.value;var I=A6O(c.target),R=Object.assign({},{target:c.target},bP.get(I));if(R!=null&&R.contentRect?R.contentRect.width!==c.contentRect.width||R.contentRect.height!==c.contentRect.height:1)for(bP.set(I,{borderBoxSize:c.borderBoxSize,contentBoxSize:c.contentBoxSize,contentRect:c.contentRect,devicePixelContentBoxSize:c.devicePixelContentBoxSize}),I=_.Q(kP.get(I)||[]),R=I.next();!R.done;R=I.next())R=R.value,R(c)}};
p9T=function(G,c){var I=A6O(G);kP.has(I)||kP.set(I,new Set);kP.get(I).add(c);bP.has(I)&&c(Object.assign({},{target:G},bP.get(I)));sg||(sg=new SVi($mi));c=sg;c.observe(G)};
MqC=function(G,c){var I=A6O(G);kP.has(I)&&(kP.get(I).delete(c),kP.get(I).size===0&&(kP.delete(I),bP.delete(I),sg.unobserve(G),delete G.dataset.resizeObserverId));kP.size===0&&sg&&(sg.disconnect(),sg=void 0)};
z3A=function(G,c){var I=_.wH().resolve(qq);return VqC.map(function(R){return I.observe(G,c,R)})};
EJC=function(G){var c=_.wH().resolve(qq);G.forEach(function(I){c.unobserveByKey(I)})};
_.Ls=function(G){var c=_.Q(Vci()),I=c.next().value,R=c.next().value,Z=Object.assign({},J6b,G),K=WNr(function(m){var a=m.contentRect.height;if((m=m.contentRect.width)||a||Z.canHaveZeroSize)I.width()===m&&I.height()===a||R(I,{height:a,width:m})},Z.throttleMs);
return[I,function(m){var a=[];Z.useVisibilityObserver&&(a=z3A(m,function(O,N){requestAnimationFrame(function(){N==="visible"?p9T(m,K):MqC(m,K)})}));
a.length||p9T(m,K);return function(){a.length&&(EJC(a),a.length=0);MqC(m,K)}}]};
fVC=function(G,c,I,R,Z){G=c?G.switchOffCommand:G.switchOnCommand;if(R&&Z)iKr(G,I,Z);else{var K,m;(K=_.fd({elementsCommand:G}))==null||(m=K.onclick)==null||m.call(K,I)}};
iKr=function(G,c,I){G=_.fd({elementsCommand:G,additionalCommandArgs:{commandController:{onSuccess:function(){I(!1)},
onServerError:function(){I(!1)}}}});
if(G==null?0:G.onclick)G.onclick(c),I(!0)};
r60=function(G){if(G)return _.D(G,BuO)};
j_r=function(G){if(G)switch(G){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
xmp=function(G,c){if(!((G==null?0:G.entitySelectorType)&&(G==null?0:G.entityKey)))return{};switch(G.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.v("enable_web_shorts_captions_language_command")){var I;var R=(I=_.Fc())==null?void 0:I.getOption("captions","track");var Z,K=typeof(R==null?void 0:R.translationLanguage)==="object"&&((Z=R.translationLanguage)==null?void 0:Z.languageName)||(R==null?void 0:R.displayName)||"";R={data:Object.assign({},
!!K&&{selectionText:{content:K}},!!K&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof R==="undefined"})}}else R={};return R;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.v("web_shorts_audio_track_picker")){var m;Z=((m=_.Fc())==null?void 0:m.getAudioTrack())||void 0;I=Z==null?void 0:(K=Z.getLanguageInfo())==null?void 0:K.getName();Z={data:Object.assign({},{selectionText:{content:I}},I&&!(Z==null?0:(R=Z.getLanguageInfo())==
null?0:R.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else Z={};return Z;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return R=G!=null&&G.entityKey?(R=_.eu(c,G.entityKey))?{isHidden:(R==null?void 0:R.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},R;default:return{}}};
tqA=function(G,c){return function(I){var R=function(Z){_.EN(_.zf(Z),I,c)||G(Z)};
I.addEventListener("click",R);return function(){I.removeEventListener("click",R)}}};
_.h3O=function(G){return function(){return _.D(G(),_.Aq)}};
dmB=function(G){switch(G){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
CMT=function(G){return dmB(G==null?void 0:G.all)};
HKU=function(G){var c={};(G=G==null?void 0:G.padding)&&(c.padding=dmB(G.vertical)+"px "+dmB(G.horizontal)+"px");return c};
X9r=function(G){switch(G){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
y6r=function(G){switch(G){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
gJi=function(G){switch(G){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
YVg=function(G,c){if(c)return{containerStyles:HKU(c),itemStyles:function(I,R){var Z={flex:"1"},K=c==null?void 0:c.flexDirection;b:switch(K){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":I=!!I;break b;default:I=!!R}I||(I=_.H1("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",K==="FLEX_DIRECTION_ROW"||K==="FLEX_DIRECTION_ROW_REVERSE"?(K=CMT(c==null?void 0:c.gap)+"px",I?Z["margin-left"]=K:Z["margin-right"]=K):Z["margin-bottom"]=CMT(c==null?void 0:c.gap)+"px",Z.flex=
"1");return Z},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(c==null?void 0:c.flexDirection)==="FLEX_DIRECTION_ROW"||(c==null?void 0:c.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
G4g=function(G){return G<528?"CONTAINER_SIZE_NARROW":G<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
c3B=function(G,c){G=_.Q(G.responsiveMap||[]);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.containerSize===c)return I.containerType};
_.Iz8=function(G,c){if(c){var I=c.responsiveSize;G=G4g(G);var R=c3B(c,G);if(R&&I){a:{if(R==="CONTAINER_TYPE_VERTICAL_LIST")if(I==="RESPONSIVE_SIZE_STANDARD"){if(G!=="CONTAINER_SIZE_NARROW"){var Z="50%";break a}}else{Z=G==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}Z=void 0}return{responsiveSize:I,containerSize:G,containerType:R,force16By9ThumbnailAspectRatio:!c.enableContentSpecificAspectRatio,contentPreviewWidth:Z,fullbleed:(R==="CONTAINER_TYPE_VERTICAL_LIST"||R==="CONTAINER_TYPE_GRID")&&G===
"CONTAINER_SIZE_NARROW"&&!1}}}};
RAg=function(G,c){var I={};switch(c){case "CONTAINER_TYPE_VERTICAL_LIST":I["flex-direction"]="column";I.padding="0 "+G.margin+"px";break;case "CONTAINER_TYPE_GRID":I["flex-direction"]="row";I.flex="none";I["flex-wrap"]="wrap";I.width=G.maxContainerWidth?G.maxContainerWidth+G.gutter+"px":void 0;I.padding="0 "+(G.margin-G.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":I["flex-direction"]="row",I.flex="none",I["overflow-x"]="auto",I.width=G.maxContainerWidth?G.maxContainerWidth+"px":void 0,
I.padding="0 "+G.margin+"px"}return I};
Znf=function(G,c){if(c){var I=c3B(c,G4g(G));a:switch(I){case "CONTAINER_TYPE_GRID":var R=3;break a;default:R=1}R=_.Dmq(c,G,R);var Z=_.tY(R);return{containerLayoutConfig:_.Iz8(G,c),containerStyles:RAg(Z,I),itemStyles:function(K,m){K={};switch(I){case "CONTAINER_TYPE_VERTICAL_LIST":m||(K["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":K.width=Z.itemWidth+"px";K["margin-right"]=Z.gutter/2+"px";K["margin-left"]=Z.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":K.width=Z.itemWidth+
"px",K.flex="none",m||(K["margin-right"]=Z.gutter+"px")}return K}}}};
azq=function(G,c,I){if(c)return[KHg];switch(G){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[$P];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return I?[$P]:[Ppi,$P];case "TRANSFER_STATE_PAUSED_BY_USER":return[QZB,$P];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[msr,$P];default:return[KHg]}};
TMq=function(G,c,I,R){return azq(G,c,R).map(function(Z){var K=Z.text,m=Z.iconType,a=Z.videoAction;Z=Z.playlistAction;K=K?{content:K}:void 0;m=m&&{sources:[{clientResource:{imageName:m}}]};var O=(0,_.rx.unsafeClone)(I);if(O){var N=_.D(O,_.o9),q=_.D(O,_.UN);N&&a?N.action=a:q&&Z&&(q.action=Z)}return{title:K,leadingImage:m,rendererContext:O&&{commandContext:{onTap:{innertubeCommand:O}}}}})};
OnA=function(G){G=_.JY(G.rendererContext);var c;return(c=_.D(G,_.UN))==null?void 0:c.playlistId};
eAr=function(G){var c;return(c=G.listItems)==null?void 0:c.some(function(I){var R;return _.W8((R=_.D(I,_.$Z))==null?void 0:R.rendererContext)})};
_.Sh=function(G){var c=_.wH().resolve(_.qR(_.d0));return c!=null&&c()?G.darkThemeColorPalette:G.lightThemeColorPalette};
_.Mo=function(G){return{primaryTextColor:ps(G,0),secondaryTextColor:ps(G,1),optionColor:ps(G,2),backgroundColor:ps(G,3),videoBackgroundColor:ps(G,4)}};
ps=function(G,c){if(G){switch(c){case 0:G=G.primaryTitleColor;break;case 1:G=G.secondaryTitleColor;break;case 2:G=G.surgeColor;break;case 3:G=G.section2Color;break;case 4:G=G.section3Color;break;default:return}if(G)return _.Sx(G)}};
qWr=function(G){var c=G.element;var I=G.veType;var R=G.storedVisualElement===void 0?null:G.storedVisualElement;var Z=G.elementIndex===void 0?0:G.elementIndex;G=G.clientYouTubeData;var K=_.k0();K!==NMr&&(lz8.clear(),NMr=K);if(c.visualElement&&lz8.has(c.visualElement))return null;if(R&&lz8.has(R))return c.visualElement=R,null;I=_.vI(_.DP(),{veType:I,elementIndex:Z,clientYouTubeData:G});if(!I)return null;c.visualElement=I;lz8.add(I);return I};
_.VY=function(G,c,I,R){I=I===void 0?null:I;R=R===void 0?ilU:R;var Z=Z===void 0?null:Z;Sk(function(){if(c){I instanceof Function&&(I=I());var K=qWr({element:c,veType:G,storedVisualElement:I,clientYouTubeData:void 0});K&&(_.v("web_graft_ve_unified_vis_mon")?FP(c,{data:Z,observer:_.wH().resolve(qq),hideOption:flO,showOption:BVr,layer:c.layer}):r2T(c,Z),R(K))}})};
wFr=function(G){return G?_.pE(G):""};
FH0=function(G){return(G==null?void 0:G.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
nIr=function(G,c){return _.a6(G.entities,"videoOverviewAsyncDataEntity",c)};
vI8=function(G,c){var I;return"linear-gradient(to bottom, "+((I=c==null?void 0:c.map(function(R){var Z=G?R.darkThemeColor:R.lightThemeColor;return Z?_.pE(Z)+" "+((R==null?void 0:R.startLocation)||0)*100+"%":"transparent"}))==null?void 0:I.join(", "))+")"};
DsO=function(G,c,I,R,Z){if(!((R==null?0:R.height)&&(R==null?0:R.width)))return{size:0};var K=R.width;R=R.height;if(Z)return c==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&K>R?{size:312/C40}:c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(I!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||G!==1&&G!==2||c!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&c!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&c!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(c==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||R===K)switch(G){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||R>K)switch(G){case 1:case 3:return{size:240*dzU};default:return{size:360*dzU}}switch(G){case 1:case 2:return{size:1/C40*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.oIT=function(G){if(!("matchMedia"in window))return _.Ra(Error("Rh")),function(){return!1};
var c=window.matchMedia(G);G=_.Q(_.ks(c.matches,void 0,"waIHpe"));var I=G.next().value,R=G.next().value,Z=function(K){R(K.matches)};
c.addEventListener?(c.addEventListener("change",Z),_.ty(function(){c.removeEventListener("change",Z)})):c.addListener&&(c.addListener(Z),_.ty(function(){c.removeListener(Z)}));
return I};
Usg=function(G){return G==="IMAGE_BANNER_STYLE_INSET"||G==="IMAGE_BANNER_STYLE_UNKNOWN"};
u2r=function(){if(!("matchMedia"in window))return _.Ra(Error("Rh")),function(){return 0};
var G=window.matchMedia("(max-width: 527.9px)"),c=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),I=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),R=window.matchMedia("(min-width: 1024px)"),Z=_.Q(_.ks(G.matches,void 0,"TmIKcb")),K=Z.next().value,m=Z.next().value;Z=_.Q(_.ks(c.matches,void 0,"Z0fTKd"));var a=Z.next().value,O=Z.next().value;Z=_.Q(_.ks(I.matches,void 0,"w4xy7b"));var N=Z.next().value,q=Z.next().value;Z=_.Q(_.ks(R.matches,void 0,"DrbNC"));var w=Z.next().value,
F=Z.next().value,n=function(M){m(M.matches)},U=function(M){O(M.matches)},k=function(M){q(M.matches)},p=function(M){F(M.matches)};
_.tI(function(){G.addEventListener?(G.addEventListener("change",n),c.addEventListener("change",U),I.addEventListener("change",k),R.addEventListener("change",p)):G.addListener&&(G.addListener(n),c.addListener(U),I.addListener(k),R.addListener(p));_.ty(function(){G.removeEventListener?(G.removeEventListener("change",n),c.removeEventListener("change",U),I.removeEventListener("change",k),R.removeEventListener("change",p)):G.removeListener&&(G.removeListener(n),c.removeListener(U),I.removeListener(k),
R.removeListener(p))})});
return function(){return K()?1:a()?2:N()?3:w()?4:0}};
bnp=function(G){var c=0;G=_.Q([G.title,G.metadata,G.actions,G.description,G.attribution]);for(var I=G.next();!I.done;I=G.next())I.value&&c++;return c};
k4p=function(G){return G===1||G===2?1:0};
LHb=function(G){G=(new sZT).parse(G);return(new $d).render(G).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(c){var I=c.split(":").map(Number),R=0,Z=0;if(I.length===3)I=_.Q(I),R=I.next().value,Z=I.next().value,I=I.next().value;else if(I.length===2)I=_.Q(I),Z=I.next().value,I=I.next().value;else if(I.length===1)I=_.Q(I).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(R*3600+Z*60+I)+'" role="button">'+c+"</span>"})};
A3O=function(G){G=_.Q(G.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var c=G.next(),I={};!c.done;I={clickHandler$jscomp$5:void 0},c=G.next()){c=c.value;I.clickHandler$jscomp$5=function(Z){Z=Number(Z.target.getAttribute("data-time"));if(isNaN(Z))throw Error("Th");var K;(K=_.Fc())==null||K.seekTo(Z,!0)};
var R=function(Z){return function(K){K.key!=="Enter"&&K.key!=="Space"||(0,Z.clickHandler$jscomp$5)(K)}}(I);
c.setAttribute("tabindex","0");c.removeEventListener("click",I.clickHandler$jscomp$5);c.removeEventListener("keydown",R);c.addEventListener("click",I.clickHandler$jscomp$5);c.addEventListener("keydown",R)}};
$sq=function(){return _.e("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.e(z$,{percentWidth:100}),_.e(z$,{animationDelay:200}),_.e(z$,{animationDelay:400}),_.e(z$,{animationDelay:600}),_.e(z$,{animationDelay:800,percentWidth:60}),_.e("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.e(z$,{percentWidth:100}),_.e(z$,{animationDelay:200}),_.e(z$,{animationDelay:400}),_.e(z$,{animationDelay:600,percentWidth:50}))};
z$=function(G){return _.e("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(G.percentWidth===void 0?100:G.percentWidth)+"%"},_.e("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(G.animationDelay===void 0?0:G.animationDelay)+"ms"}))};
SWB=function(){var G=_.Q(_.ks(function(){return""},void 0,"dXJHWc")),c=G.next().value;
return[function(){return c()()},
G.next().value]};
pFU=function(G,c){G=G?nJU(G):"";c!==void 0&&isFinite(c)?c===0?c=_.mJ("UPDATING",void 0,"Updating..."):(c=z7r(new Date(c),new Date),c=_.mJ("UPDATED_TIME",{relative_time:c},"Updated "+c)):c="";var I="";G&&c&&(I=" \u2022 ");return _.Gv(G+I+c)};
zAp=function(G,c,I,R,Z,K){c=c===void 0?0:c;var m=Mmq[c],a=m.title,O=m.iconType,N=m.topButtonRenderer,q=m.sectionClientVE;m=m.videoClientVE;var w;if(c!==1||G.length){I=[];G=_.Q(G);for(R=G.next();!R.done;R=G.next()){var F=R.value;if(asr(F))I.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:F.videoEntity.videoId,title:cY(F.videoEntity.title),shortBylineText:cY(F.channelEntity.title),thumbnail:F.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:F.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.mJ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:m}}}}}});else if(mii(F)){R=I;var n=R.push;var U=void 0,k=void 0,p=void 0,M=void 0,z=void 0,t=void 0,x=void 0,C=void 0,H=F.mainPlaylistEntity.playlistId,g=F==null?void 0:(C=F.mainPlaylistEntity)==null?void 0:(x=C.thumbnailStyleData)==null?void 0:(t=x[0])==null?void 0:(z=t.value)==null?void 0:(M=z.collageThumbnail)==null?void 0:M.coverThumbnail;M=Btf(H);if(!_.v("enable_offline_playlist_page")&&
(F==null?0:(p=F.mainPlaylistEntity)==null?0:p.videos)){b:{p=F==null?void 0:(k=F.mainPlaylistEntity)==null?void 0:k.videos;k=_.y4().getState().entities;if(p!=null&&p.length&&k)for(p=_.Q(p),z=p.next();!z.done;z=p.next())if(z=_.Kp(z.value).entityId,(z=JSON.parse(z).videoId)&&gLr(k,z)==="TRANSFER_STATE_COMPLETE"){k=z;break b}k=""}k!==void 0&&(M=fp(_.y4().getState(),k),M=_.YD(k,H,void 0,void 0,M))}k=jhC(_.mJ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Btf(H));F=H&&g&&k?{playlistId:H,navigationEndpoint:M,
viewPlaylistText:k,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:g}},title:cY(F.mainPlaylistEntity.title),shortBylineText:cY(F==null?void 0:(U=F.channelEntity)==null?void 0:U.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:VmA,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:H,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.mJ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:m}}}:
void 0;n.call(R,{gridPlaylistRenderer:F})}}m={gridRenderer:{items:I}};c===1&&(w=pFU(Z,K))}else if(R){var QO=_.Gv((n=I==null?void 0:I.localizedPromptMessage)!=null?n:"");m={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Gv(_.mJ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.sT8}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Gv(_.mJ("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};w=pFU(Z,K)}else QO=_.Gv(_.mJ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
m={};return{contents:[{shelfRenderer:{title:a,titleAnnotation:w,icon:{iconType:O},subtitle:QO,content:m,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:N}]}}}}],loggingDirectives:{clientVeSpec:{uiType:q}}}};
EI0=function(G,c,I,R,Z,K,m,a,O,N,q){I=I===void 0?{}:I;R=R===void 0?{}:R;Z=Z===void 0?!1:Z;K=K===void 0?!1:K;m=m===void 0?!1:m;a=a===void 0?!1:a;O=O===void 0?!1:O;N=N===void 0?0:N;q=q===void 0?-Infinity:q;if(!(c.length||G.length||Z||a))return K?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:KNA(I)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Gv(_.mJ("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 w=[];G.length&&w.push(zAp(G,0));a?w.push({contents:[{statementBannerRenderer:Tui(O,R)}]}):Z?w.push(zAp(c,1,I,m,N,q)):K&&w.push({contents:[{statementBannerRenderer:Q_i(I)}]});(Z&&c.length||G.length)&&w.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Gv(_.mJ("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 w.map(function(F){return{itemSectionRenderer:F}})};
Eg=function(G,c){if(typeof G!=="object")return null;G=_.Q(Object.entries(G));for(var I=G.next();!I.done;I=G.next()){var R=_.Q(I.value);I=R.next().value;R=R.next().value;if(I===c)return I;if(R=Eg(R,c))return I+"."+R}return null};
Jq=function(G){var c=G.content;return(G=G.styleRuns)&&c?{runs:G.map(function(I){var R={text:c.slice(I.startIndex,I.startIndex+I.length)};I.fontColor&&(R.textColor=I.fontColor);return R})}:{simpleText:c}};
in0=function(G,c,I,R){var Z=J3U;R&&(G.quantity=R);if(!G.quantity||!G.maxQuantity)return{};R=G.minusButton;var K=G.plusButton,m,a,O,N;return{value:G.quantity,maxValue:G.maxQuantity,onChangeCallback:function(q){Z(G,q)},
minusLabel:(m=_.D(R,WHg))==null?void 0:m.label,minimumReachedLabel:(a=_.D(R,WHg))==null?void 0:a.limitReachedLabel,plusLabel:(O=_.D(K,WHg))==null?void 0:O.label,maximumReachedLabel:(N=_.D(K,WHg))==null?void 0:N.limitReachedLabel,disabled:c,onRemoveCommand:I}};
J3U=function(G,c){var I=G.quantityIncrementerEntityKey;if(I){var R={};R.quantity=c;_.y1(_.Wm("quantityIncrementerEntity",I,R));G.onChangeCommand&&_.r0(G.onChangeCommand)}};
fzq=function(G){if(G)return G===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(G).overflowY)?G:fzq(G.parentElement)};
jZO=function(G,c){(G=BMr(G))&&((_.v("enable_mini_app_command_handler_mweb_fix")?0:c)?r3r.push({command:G,sourceData:{},commandContext:void 0}):_.wH().resolve(_.n4).resolveCommand(G))};
BMr=function(G){return _.D(G,_.JN)};
xsB=function(){var G=window.performance.timeOrigin+window.performance.now(),c=(new _.iP).setSeconds(G/1E9);return _.G6(c,2,_.mW(G%1E9),0)};
hAf=function(G,c){var I;G=(I=_.D(_.D(G,_.JN),tmC))==null?void 0:I.methodName;var R,Z;(I=window.youtubewebview||((R=window.webkit)==null?void 0:(Z=R.messageHandlers)==null?void 0:Z.youtubewebview))&&G&&(R=new Bm,G=_.Eq(R,1,G),G=_.zr(G.JSC$12717_serializeBinary()),c=_.zr(c),I.postMessage(G+","+c))};
r8=function(G,c){var I=_.D(_.D(G,_.JN),tmC);I&&(c&&(I.serializedAdditionalMetadata=_.zr(c)),jZO(G,!0))};
dsO=function(G,c,I){setTimeout(function(){_.IE(G,c)},I)};
CpC=function(G){switch(G){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
Hnb=function(){return!!_.H1("ID_TOKEN")};
gIp=function(G){return G instanceof Error&&G.cause instanceof XFA&&G.cause.rpcErrorCode!==void 0?!y3b.includes(G.cause.rpcErrorCode):!0};
GJf=function(){return _.aa(YWq,{authuser:""+(_.H1("SESSION_INDEX")||0)})};
jh=function(G,c,I,R){I=I===void 0?"MINI_APP_SDK_API_UNSPECIFIED":I;R=R===void 0?"":R;var Z=new _.iW;I={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:R,sdkApi:I};G instanceof Error&&(Z.message=G.message,Z.name=G.name,G.cause instanceof XFA&&G.cause.rpcErrorCode!==void 0&&(I.rpcErrorCode=G.cause.rpcErrorCode));var K;(K=c.onError)==null||K.call(c,{loggingError:Z,metadata:I})};
Ixp=function(G,c,I,R){switch(G){case "MINI_APP_SOURCE_GAMESNACKS":return new xP(c,I,R);default:return new cWO(c,I,R)}};
RrU=function(G){switch(G){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
ZvB=function(G){switch(G){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
Ks8=function(G){switch(G){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
PLb=function(){return Math.floor(Math.random()*4)+1};
QF0=function(G,c,I,R){G=_.Q(Object.entries(G));for(var Z=G.next(),K={};!Z.done;K={message$jscomp$995:void 0},Z=G.next()){var m=_.Q(Z.value);Z=m.next().value;m=m.next().value;K.message$jscomp$995=m;c.push(setTimeout(function(a){return function(){R(!1);I(a.message$jscomp$995.text)}}(K),K.message$jscomp$995.delayMs));
Number(Z)>0&&c.push(setTimeout(function(){R(!0)},K.message$jscomp$995.delayMs-400))}};
mQg=function(G,c){var I=I===void 0?ilU:I;_.v("mweb_fix_monitor_visibility_after_render")?G&&Sk(function(){r2T(G,c,I)}):Sk(function(){r2T(G,c,I)})};
axO=function(G,c){var I=document.createElement("ytd-engagement-panel-section-list-renderer");I.data=G;var R=c!=null?c:{};G=R.isPersistentPanel;c=R.hideDelayMs;R=R.overscrollContain;G=Object.assign({},G&&{isPersistentPanel:G},c&&{hideDelayMs:c},R&&{overscrollContain:R});Object.assign(I,G);return I};
N60=function(G){T6i||(T6i=OvO(new _.jC(1,void 0,void 0,eri),0));var c=T6i.format(Math.floor(G));c=BY==="be"||BY==="bg"||BY==="es"||BY==="et"||BY==="hu"||BY==="ka"||BY==="lv"||BY==="pl"||BY==="pt-PT"||BY==="sq"?c.replace(new RegExp("^(\\d)"+eri.GROUP_SEP.replace(".","\\.")+"(\\d+("+eri.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):c;return G>=1E3&&G<=9999&&c[1]==="."&&(BY==="sl"||BY==="it")?c.replace(".",""):c};
_.wOr=function(G,c,I){return window.spf&&!_.v("web_disable_spfjs_client")?lxO(G,c,I):qsr(G,c)};
lxO=function(G,c,I){var R=null,Z=(new _.Lk(function(K,m){var a={};if(c){a.method=c.method;var O=c.postParams||{};ksf(G,c)&&(O[_.H1("XSRF_FIELD_NAME")]=_.H1("XSRF_TOKEN"));a.postData=_.SA(O);c.type&&(a.type=c.type);O=c.headers}a.headers=vDi(G,O);_.v("debug_forward_web_query_parameters")&&(G=_.uLp(G,window.location.search));a.experimental_headers=a.headers;a.onError=function(N){N.err&&N.xhr&&(N.err.params={url:N.xhr.responseURL,response:N.xhr.responseText.substr(0,64)});m(N.err)};
a.onPartDone=function(N){I&&I.call(null,N.part)};
a.onDone=function(N){var q=FsB(N.response,"xsrf_token");eA(window.location.href,G)&&q&&_.Ch("XSRF_TOKEN",q);if(q=FsB(N.response,"service_worker_killswitch"))_.Ch("SERVICE_WORKER_KILLSWITCH",q),DZq();K(N.response)};
R=spf.request(G,a)})).then(nGg);
Z.thenCatch(function(K){var m=K instanceof _.tq,a=K&&K.hasOwnProperty("params")&&K.params.response?K.params.response:"";K instanceof Error&&(a?m?Q98(K):a===')]}\'\n{"reload":"now"}'?Q98(K):(vGr(K,G,a),DQC(K,a)?_.Ck(K):_.hg(K)):Q98(K));R&&R.abort()});
return Z};
nGg=function(G){if(G.type==="multipart"){var c=G.timing;G=G.parts.reduce(function(I,R){Object.assign(I,R);return I},{});
G.timing=G.timing||{};Object.assign(G.timing,c);G.type="reduced"}return G};
qsr=function(G,c){c=c===void 0?{}:c;var I=null,R=new _.Lk(function(Z,K){c.onFinish=function(m){if(m.readyState===XMLHttpRequest.DONE)if(m.status===200){if(m.responseType!=="json"){var a=m.response;a.substring(0,5)===")]}'\n"&&(a=a.substring(5));try{var O=JSON.parse(a)}catch(N){O=N}}else O=m.response;O instanceof Error?K(O):(a=FsB(O,"xsrf_token"),eA(window.location.href,G)&&a&&_.Ch("XSRF_TOKEN",a),m=m.responseURL,window.performance&&window.performance.getEntriesByName?(a=window.performance.getEntriesByName(m).pop())?
m={responseStart:(0,_.Fa)()-(a.responseEnd-a.responseStart)}:(Math.random()<.01&&(a=Error("ei"),a.params=m,_.Ck(a)),m={responseStart:-1}):m={responseStart:0},O.timing=O.timing||{},Object.assign(O.timing,m),Z(O))}else K(Error("di`"+m.status))};
(I=_.$6(G,c))||K(Error("di`"+I.status))});
R.thenCatch(function(Z){Z instanceof Error&&(vGr(Z,G),DQC(Z)&&(Z.level="WARNING"))});
_.v("cancel_pending_navs")&&R.thenCatch(function(){I.abort()});
return R};
FsB=function(G,c){var I=G[c],R=G.parts;G.type==="multipart"&&R&&(I=(G=R.find(function(Z){return c in Z}))&&G[c]);
return I};
vGr=function(G,c,I){var R=G.message||"";c={original:R,url:c};if(I)if(R=R.match(/position:?\s*(\d+)/)){R=R&&Number(R[1])?Number(R[1]):0;var Z=Math.max(R-25,0);c.position=R;c.response=I.substring(Z,R+25)}else c.response=I.substring(0,50);_.H_(G,c);try{G.message="JSON parse error"}catch(K){}};
DQC=function(G,c){G=G.message||"";G=!!(G.indexOf("<")>=0||G.indexOf("end of ")>=0||G.indexOf("Unterminated string")>=0||G.indexOf("Unexpected EOF"));if(!G&&c)for(var I=c.length,R=!1,Z=0;Z<I;Z++)if(R&&c[Z]==="\\")Z++;else if(c[Z]==='"')R=!R;else if(c[Z]==="<"&&!R){G=!0;break}return G};
oG0=function(){return document.documentElement.hasAttribute("dark")};
_.UQf=function(G,c){if(G!=="GFEEDBACK"&&G!=="GUIDED_HELP")_.yL(Error("fi`"+G));else{var I=_.wH().resolve(_.qR(_.I9));if(I&&(I=I.getCurrentPage())&&I.getServiceTrackingParams&&(I=I.getServiceTrackingParams()))for(var R=0,Z;Z=I[R++];)if(Z.service===G){if(G=Z.params)for(I=0;R=G[I++];)c[R.key]=R.value;break}}};
_.ukB=function(G){var c=_.ZA();c&&(c=c.getPlayer())&&(c.pauseVideo(),G.playback_id=c.getVideoData().cpn,G.eid=c.getVideoData().eventId,Object.assign(G,c.getFeedbackProductData()))};
bvO=function(){var G={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.H1("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(G.enableAnonymousFeedback=!0);_.H1("SESSION_INDEX")&&(G.authuser=String(_.H1("SESSION_INDEX")));_.v("enable_pageid_for_feedback")&&_.H1("DELEGATED_SESSION_ID")&&(G.pageId=String(_.H1("DELEGATED_SESSION_ID")));return G};
_.hq=function(G){_.v("enable_ypc_spinners")&&_.ym(G,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},G])};
_.d8=function(G){_.v("enable_ypc_spinners")&&_.ym(G,"yt-close-popup-action",["yt-loading-renderer"])};
kJf=function(G){return new Promise(function(c,I){_.iD({verifyCommand:{recaptchaToken:G.recaptchaResponse}},{commandController:{onSuccess:function(R,Z){Z||I("ChallengeService did not return a response.");var K;c({challengeCompleted:(K=Z.verified)!=null?K:!1})},
onServerError:function(R,Z){I(Z)}}})})};
sFC=function(G,c,I,R){c({recaptchaResponse:R}).then(function(Z){Z.challengeCompleted?_.E2()?(I(3),_.wH().resolve(_.n4).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:G}})):I(2):I(4)},function(){I(4)})};
AWB=function(G,c,I){_.My(_.D3(LsB,_.H1("HL")),function(){var R;(R=window.grecaptcha)==null||R.ready(function(){var Z=window.grecaptcha;Z?(I(Z.render(G,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:sFC.bind(null,G,kJf,c)})),c(1)):c(4)})})};
$QT=function(G,c){return function(){switch(c()){case 0:return G().captchaLoadingMessage;case 1:return G().challengeReason;case 3:return G().captchaSuccessfulMessage;case 2:return G().captchaCookieSetFailureMessage;case 4:return G().captchaFailedMessage;default:return G().challengeReason}}()};
_.Cs=function(){if(!Ssr){var G=document.querySelector("#player.skeleton");G&&(_.ST(G),Ssr=!0)}};
_.MQ0=function(){return pOf=svp()};
EGq=function(){return _.T(function(G){return VQr!==void 0?G.return():G.yield(zrB(),0)})};
zrB=function(){return _.T(function(G){if(G.nextAddress==1)return G.yield(AJU(),2);pOf=G.yieldResult;VQr=_.dJ.addLowPriorityJob(zrB,5E3);_.Vp(G)})};
rWg=function(G){var c=c===void 0?JWf:c;var I,R,Z=(I=G.responseContext)==null?void 0:(R=I.mainAppWebResponseContext)==null?void 0:R.trackingParam;if(!Z){c.increment("MISSING");var K,m,a,O,N,q;_.Ck(new _.iW("282054944_a",{wSl:!!((K=G.responseContext)==null?0:(m=K.mainAppWebResponseContext)==null?0:m.loggedOut),sA1:((a=G.responseContext)==null?void 0:a.mainAppWebResponseContext)===void 0,iET:G.responseContext===void 0,cp:(O=G.playabilityStatus)==null?void 0:O.contextParams,zOi:(((N=G.streamingData)==
null?void 0:N.formats)||[]).length>0,nDm:(((q=G.streamingData)==null?void 0:q.adaptiveFormats)||[]).length>0,os:!!G.offlineState,cotn:G.cotn}));return 2}I="";try{I=Wsg(Z)}catch(n){return c.increment("C_ERROR"),_.hg(n),2}try{var w=_.ivi(I);var F=fxB(w)}catch(n){return c.increment("P_ERROR"),_.hg(n),2}F=_.lR(F,B6B,1,_.qw());Z=[];F=_.Q(F);for(w=F.next();!w.done;w=F.next())R=w.value,w=R.getPath(),I=(0,_.rx.getValueByKeys)(G,w.split(".")),I=String(I===void 0||I===null?"":I),R=R.getValue()||"",K=/[+\-\/_]/g,
I.replace(K,"")!==R.replace(K,"")&&(c.increment("MISMATCH"),_.v("ab_mis_log_err")&&(I=new _.iW("282054944_p",{kuu:w,g:String(I),e:String(R)}),_.hg(I)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(w)||(w.match(/enforcementMessageViewModel/i)?Z.push(3):Z.push(2)));if(Z.length>0)return Math.max.apply(Math,_.jn(Z));c.increment("SUCCESS");return 1};
tQU=function(G){var c=new Hm;if(G.interpreterJavascript){var I=_.G1g(G.interpreterJavascript);I=mz(I).toString();var R=new jFC;_.Eq(R,6,I);_.Az(c,1,R,VB)}else G.interpreterUrl&&(I=_.Cj(G.interpreterUrl),I=_.z6(I).toString(),R=new _.xQ0,_.Eq(R,4,I),_.Az(c,2,R,VB));G.interpreterHash&&_.Xt(c,3,G.interpreterHash,VB);G.program&&_.Xt(c,4,G.program,VB);G.globalName&&_.Xt(c,5,G.globalName,VB);G.clientExperimentsStateBlob&&_.Xt(c,7,G.clientExperimentsStateBlob,VB);return c};
yY=function(G){var c={};G=_.Q(G.split("&"));for(var I=G.next();!I.done;I=G.next())I=I.value.split("="),I.length===2&&(c[I[0]]=I[1]);return c};
hrp=function(G){return Number(G.t)||7200};
dQr=function(){var G=G===void 0?window:G;var c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(yIb(),2);c=G;I=c.bgevmc;if(!I)throw Error("ji");return R.return({pause:function(){I.p()},
resume:function(){I.r()},
checkForRefresh:function(){return I.cr()}})})};
X1f=function(){if(_.v("bg_st_hr"))return"havuokmhhs-0";var G,c=((G=globalThis.performance)==null?void 0:G.timeOrigin)||0;return"havuokmhhs-"+Math.floor(c)};
g8=function(G){window.bgens=G};
CLf=function(){return new Promise(function(G){var c=window;c.ntpevasrs!==void 0?G(new YP(c.ntpevasrs)):(c.ntpqfbel===void 0&&(c.ntpqfbel=[]),c.ntpqfbel.push(function(I){G(new YP(I))}))})};
Hvi=function(G){if(_.v("attmusi")&&_.v("attmusi_ue")){G={s:G.cKZ.bind(G),ir:G.c6t.bind(G)};var c=window;c.attmp=G;if(c.attmq!==void 0)for(var I=_.Q(c.attmq),R=I.next();!R.done;R=I.next())R=R.value,R(G);c.attmq=void 0}else c=G.cKZ.bind(G),_.lr("yt.aba.att",c),G=G.c6t.bind(G),_.lr("yt.aba.att2",G)};
yWC=function(G){switch(_.Aw(G.input)){case _.gL(XO8):var c={};return c.encryptedVideoId=G.innerTubeRequest.externalVideoId,c}return{}};
GHA=function(G){switch(_.Aw(G.input)){case _.gL(XO8):if(_.v("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.gL(gGb):if(_.v("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.gL(GF):if(_.v("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&G.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.gL(YsC):var c,I;if(_.v("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((I=_.D((c=G.config)==null?void 0:c.command,_.Y5))==null?0:I.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.Iy0=function(G){var c;if(G.playlistVideoRenderer&&((c=G.playlistVideoRenderer)==null?0:c.engagementBar))return cVb(G.playlistVideoRenderer.engagementBar);if(_.D(G,ce)){var I;if(G=(I=_.D(G,ce))==null?void 0:I.engagementBar)return cVb(G)}return""};
cVb=function(G){if(!G)return"";G=_.D(G,_.RHU);if(G==null||!G.actions)return"";G=_.Q(G.actions);for(G=G.next();!G.done;G=G.next()){G=_.D(G.value,_.Z6O);var c=void 0;if((c=G)==null||!c.itemId)break;return G.itemId}return""};
_.KEB=function(G){var c;if(G.playlistVideoRenderer&&((c=G.playlistVideoRenderer)==null?0:c.videoId))return G.playlistVideoRenderer.videoId;if(_.D(G,ce)){var I,R;if(G=(I=_.D(G,ce))==null?void 0:(R=I.playlistItemData)==null?void 0:R.videoId)return G}return""};
_.PwT=function(G){var c;if(G.playlistVideoRenderer&&((c=G.playlistVideoRenderer)==null?0:c.voteCount))return G.playlistVideoRenderer.voteCount;if(_.D(G,ce)){var I,R;if(G=(I=_.D(G,ce))==null?void 0:(R=I.playlistItemData)==null?void 0:R.voteCount)return G}return 0};
_.Iw=function(G,c){return _.a6(G.entities,"flowStateEntity",c)};
mKC=function(G,c,I,R){var Z=void 0;G=_.Q(G[c.iconName]||[]);for(var K=G.next();!K.done;K=G.next()){K=K.value;var m=c.iconSize;var a=c.iconStyle;m=!m||m===K[2];var O=Q$p[K[0]];R&&R!==K[1]||!m||a&&a!==O?a=!1:Z?(a=Q$p[K[0]],a=!!c.iconStyle||a==="youtube_outline",m=Z.version<=K[1],a=(!!c.iconSize||K[2]===24)&&a&&m):a=!0;a&&(Z={name:c.iconName,style:Q$p[K[0]],size:K[2],version:K[1],allowMirroring:!!K[3],url:I(c.iconName,K)})}return Z};
ayr=function(G,c,I,R){return G+(""+Q$p[I[0]]+((R===void 0?0:R)?"_experimental":"")+"/"+c+"/v"+I[1]+"/")+(I[2]+"px.svg")};
Tzb=function(G){return _.H1("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.H1("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":G};
O6T=function(G,c){return ayr("https://fonts.gstatic.com/s/i/",G,c)};
eHB=function(G,c){return ayr("https://fonts.gstatic.com/s/i/",G,c,!0)};
Nzb=function(G,c){return ayr("https://www.gstatic.com/youtube/img/icons/web/",G,c)};
qxB=function(G){var c=G.enabled;var I=G.itemPlaybackModel;var R=G.thumbnailElRef;var Z=G.containerElRef;var K=G.options;var m;_.xs(function(){var a=Z==null?void 0:Z.value;var O,N=(O=R())==null?void 0:O.value;O=I();var q=K();if(c&&O&&a&&N&&(q==null?0:q.thumbnail)){var w={data:O,hostElement:a},F,n,U=[].concat(_.jn((F=q.thumbnailOverlays)!=null?F:[]),_.jn((n=O.overlays)!=null?n:[]));n=O.itemPlaybackOptions;F=(n==null?void 0:n.enableRoundedPlayer)||q.enableRounding;n=n==null?void 0:n.disableTimeStatusOverlay;
var k,p;a={mediaRenderer:w,lockupElement:a,thumbnailElement:N,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.WI((k=O.inlinePlayerData)==null?void 0:k.onVisible),navigationEndpoint:_.WI((p=O.inlinePlayerData)==null?void 0:p.onSelect),thumbnail:q.thumbnail,thumbnailOverlays:U,accessibilityText:q.accessibilityText||""},thumbnailSize:q.thumbnailSize,enableRounding:F,mouseleaveCallback:q.mouseleaveCallback,hideTimeDisplay:n}}}else a=void 0;if(k=a){var M;(M=m)==null||Rw(M);m=rP(k);var z,t;
((z=I())==null?0:(t=z.inlinePlayerData)==null?0:t.forceImpAutoplay)&&lyp(m)}},"BLiQOd");
_.ty(function(){var a;(a=m)==null||Rw(a)})};
wvB=function(G){G=atob(G);for(var c=[],I=0;I<G.length;I++)c.push(G.charCodeAt(I));return new Blob([new Uint8Array(c)],{type:"image/png"})};
nli=function(G,c,I,R){R=R===void 0?"INSERTION_POSITION_UNSPECIFIED":R;return G({targetId:c},function(Z){var K,m=(K=Z.contents)!=null?K:[];K=I!=null?I:[];var a=FEr(m);switch(R){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Z,{contents:[].concat(_.jn(m.slice(0,a)),_.jn(K),_.jn(m.slice(a+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Z,{contents:[].concat(_.jn(K),_.jn(m))});case "INSERTION_POSITION_LAST":return Object.assign({},Z,{contents:[].concat(_.jn(m),_.jn(K))});
default:return Z}})};
DKO=function(G,c,I,R,Z){Z=Z===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Z;return G({targetId:c},function(K){var m,a=(m=K.contents)!=null?m:[];m=vlb(a,I);if(m<0)return K;m=Z==="RELATIVE_INSERTION_POSITION_BEFORE"?m:m+1;return Object.assign({},K,{contents:[].concat(_.jn(a.slice(0,m)),_.jn(R),_.jn(a.slice(m)))})})};
FEr=function(G){var c=G.findIndex(function(I){return _.D(I,_.Zo)});
return c>=0?c:G.length};
vlb=function(G,c){return G.findIndex(function(I){a:{I=_.Q(Object.values(I));for(var R=I.next();!R.done;R=I.next())if((R=R.value)&&R.targetId){I=R.targetId;break a}I=""}return I===c})};
UKT=function(G,c,I){return G({targetId:c},function(R){var Z,K=(Z=R.contents)!=null?Z:[];return Object.assign({},R,{contents:ol0(K,I)})})};
ol0=function(G,c){return G.filter(function(I){var R=c.includes;a:{I=_.Q(Object.values(I));for(var Z=I.next();!Z.done;Z=I.next())if((Z=Z.value)&&Z.targetId){I=Z.targetId;break a}I=""}return!R.call(c,I||"")})};
_.uDT=function(G,c){return{engagementPanelSectionListRenderer:{panelIdentifier:G,identifier:c,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
b6r=function(G,c){G=G.getAvailableAudioTracks();if(G.length)return G==null?void 0:G.find(function(I){var R;return(I==null?void 0:(R=I.getLanguageInfo())==null?void 0:R.getId())===c})};
_.s$p=function(G){var c,I=(c=G.getOption("captions","tracklist",{includeAsr:!0}))!=null?c:[];return I=kHb(I,G)};
LEb=function(G){return G.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
kHb=function(G,c){c=LEb(c);if(c==null||!c.length)return G;var I=c.filter(function(m){return m});
c=G.filter(function(m){return m.languageCode.startsWith("en")});
I=_.Q(I);for(var R=I.next();!R.done;R=I.next())if(R=R.value,c.length){var Z=c[0],K=Object.assign({},Z);Z.languageCode!==R.languageCode&&(K.displayName=Z.languageName+" >> "+R.languageName,K.translationLanguage=R,G.push(K))}return G};
AV8=function(G,c,I){G=_.s$p(G);if(G.length)return I?G.find(function(R){if(typeof(R==null?void 0:R.translationLanguage)==="object"){var Z;return((Z=R.translationLanguage)==null?void 0:Z.languageCode)===c}return!1}):G==null?void 0:G.find(function(R){return R.languageCode===c})};
$Kp=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
Sxf=function(G){var c=G.getAvailableAudioTracks();if(c!=null&&c.length){var I=G.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.jn(c.map(function(R){return{listItemViewModel:{title:{content:R.getLanguageInfo().getName()},isSelected:R.getLanguageInfo().getId()===(I==null?void 0:I.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:R.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
pvf=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
MOf=function(G){var c=pvf(G);if(c==null?0:c.length)return c;G.loadModule("captions");return pvf(G)};
VOb=function(G){var c=G.getOption("captions","track");if(c)return c;G.loadModule("captions");return G.getOption("captions","track")};
ElU=function(G){var c=MOf(G);if(c!=null&&c.length){var I=VOb(G),R;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.mJ("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(I==null?0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.jn(c.map(function(Z){return{listItemViewModel:{title:{content:Z.displayName},
isSelected:Z.displayName===(I==null?void 0:I.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Z.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.mJ("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!I.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!I.translationLanguage&&{selectionText:{content:(I==null?void 0:(R=I.translationLanguage)==null?void 0:R.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[zHU(G)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
zHU=function(G){var c=LEb(G);if(c==null||!c.length)throw Error("Fi");var I=VOb(G);G=c.filter(function(R){return!R.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.jn(G.map(function(R){var Z;return{listItemViewModel:{title:{content:R.languageName},isSelected:R.languageName===(I==null?void 0:(Z=I.translationLanguage)==null?void 0:Z.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:R.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
fyr=function(G){return new Promise(function(c,I){if(G===void 0)_.hg(Error("Ji"),"ERROR"),I(Error("Ji"));else{I=new _.JV0;var R=_.WEf();I=I.init();var Z=_.i6B(_.H1("YPC_MB_URL"),!0);Promise.all([I,Z]).then(function(){var K=_.KM.payments.business.integration.ClientTokenFactory.createClientToken(G,R);c(K)})}})};
j$T=function(G,c,I,R,Z,K,m){var a=_.HU();I=I.replace(/-/g,"+").replace(/_/g,"/");var O=_.OC().get("hl"),N=_.Pe(_.dn),q=c==null?void 0:c.element;q&&_.hq(q);BzU(c,!0);_.rV0(N,I,a.resolve,function(){q&&_.d8(q)},function(w){q&&_.d8(q);
a.reject(w)},O,R?function(w){R&&_.CQ(G,R,{backend_analytics:w})}:void 0,a.resolve,Z,K,m);
return a.promise};
BzU=function(G,c){!(G=G==null?void 0:G.element)||G.tagName!=="YT-BUTTON-RENDERER"&&G.tagName!=="YTD-BUTTON-RENDERER"||(G.disabled=c)};
xKi=function(){var G=_.mJ("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Gv(G),actionButton:{buttonRenderer:IV0()}}},popupType:"TOAST"}};
tOr=function(){var G=_.mJ("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Gv(G),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
hHg=function(G){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:G}]}}};
Qs=function(G,c,I,R){var Z;return _.T(function(K){if(K.nextAddress==1)return _.s9(K,2),K.yield(G,4);if(K.nextAddress!=2)return(Z=_.o6(c.getState().entities).length>0)?K.return({title:_.Gv(_.mJ("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Gv(_.mJ("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:c6r()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
K.return(R38(I,R));_.M3(K);return K.return(R38(I,R))})};
dK8=function(G,c){return c?c==="PPSV"||cxC(G,c):!1};
Cwr=function(G){G.responseContext||(G.responseContext={});G.responseContext.maxAgeSeconds=0;return G};
eX=function(G){var c;return _.T(function(I){return I.nextAddress==1?I.yield(H6A(G,"service:topbar:fallback"),2):(c=I.yieldResult)&&_.mG(c)?I.return(Cwr(_.mG(c))):I.return()})};
XvC=function(G){var c;return _.T(function(I){return I.nextAddress==1?I.yield(H6A(G,"service:downloads_settings:fallback"),2):(c=I.yieldResult)&&_.mG(c)?I.return(c):I.return()})};
H6A=function(G,c){var I;return _.T(function(R){if(R.nextAddress==1)return G?R.yield(G.get(c),2):R.return();I=R.yieldResult;return!I||!_.mG(I)||!isNaN(Number(I.data.expireTimestampMs))&&I.isExpired()?R.return():R.return(I)})};
yVA=function(G){var c=_.wH().resolve(NB).getState().entities;return G.playlistId?dK8(c,G.playlistId):!1};
Yxb=function(G){var c=_.DH("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;if(!_.D(G,_.vH))return c&&_.Ck(Error("cj")),!1;var I;return _.v("shorts_controller_retrieve_seedless_sequence_v2")&&((I=_.D(G,_.vH))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:glB(G)?!0:(c&&_.Ck(Error("dj")),!1)};
glB=function(G){var c=(_.D(G,_.fR)||_.D(G,_.vH)).videoId;if(!c||!Gji.test(c))return!1;var I;return(G=(I=_.D(G.commandMetadata,_.Pd))==null?void 0:I.url)&&(G.includes(c)||G.startsWith("/clip"))?!0:!1};
_.IDB=function(){var G=_.OC();return G.getFlag(192)?G.getFlag(190):!(_.Rs("web_watch_cinematics_disabled_by_default")||_.Rs("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&cP8())};
_.lJ=function(G,c,I){var R={};R.currentUrl=c;R.vis=G.vis!==void 0?G.vis:0;R.splay=!1;c=_.OC();R.autoCaptionsDefaultOn=c.getFlag(66);c.getFlag(141)?c.getFlag(140)?R.autonavState="STATE_OFF":R.autonavState="STATE_ON":R.autonavState="STATE_NONE";R.html5Preference="HTML5_PREF_WANTS";isNaN(_.H1("STS"))||(R.signatureTimestamp=_.H1("STS"));G.autonav&&(R.autoplay=!0,R.autonav=!0);G.mutedAutoplay&&(R.autoplay=!0,R.mutedAutoplay=!0);G.inlinePlayback&&(R.autoplay=!0,R.autonav=!1,R.isInlineUnmutedPlayback=!!G.inlineUnmuted);
R.referer=I;R.lactMilliseconds=G.lact!==void 0?G.lact.toString():"-1";_.v("enable_unknown_lact_fix_on_html5")&&R.lactMilliseconds==="-1"&&_.Ck(new _.iW("Unknown LACT is set in playbackContext.",{"lact in tempData":G.lact||"undefined",autonav:G.autonav||"undefined"}));G={};c.getFlag(194)&&(G.hasShownAmbientMode=!0);c.getFlag(192)&&(G.hasToggledOffAmbientMode=!0);_.IDB()&&(G.watchAmbientModeEnabled=!0);R.watchAmbientModeContext=G;return R};
RhC=function(G){var c={},I=G.pbis||0;I&&(c.playbackBeginsInSeconds=I);G.prefetch_reason&&G.prefetch_reason==="hc_pbis"&&(c.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return c};
Zcb=function(G,c){var I;if(c==null?0:(I=c.requestTemplate)==null?0:I.panelId)G.panelId=c.requestTemplate.panelId;var R;if(c==null?0:(R=c.requestTemplate)==null?0:R.params)G.params=c.requestTemplate.params};
PqB=function(){if(KRq)return KRq();var G=!_.v("idb_response_store_auth_killswitch"),c={};KRq=wJ("yt-it-response-store",{objectStores:(c.ResponseStore={addedAtVersion:1},c),shared:!G,upgrade:function(I,R){R(1)&&(I=Ga(I,"ResponseStore",{keyPath:["key","clientName"]}),c_(I,"byExpiration","expireTimestampMs"),c_(I,"byInterface","clientName"))},
version:1});return KRq()};
QGr=function(G){return _.m_(PqB(),G)};
aDr=function(G,c){var I;return _.T(function(R){return R.nextAddress==1?R.yield(_.qt(),2):(I=R.yieldResult)?R.return(new mAg(G,c,I)):R.return()})};
T3B=function(G){var c=Object.keys(G)[0];if(c)return G.screenExit&&(c=c+";"+G.screenExit.screen),c};
Oc8=function(G){var c=new Map;G=_.Q(G);for(var I=G.next();!I.done;I=G.next())I=I.value,I!=null&&(c.has(I.taskType)||c.set(I.taskType,[]),c.get(I.taskType).push(I));return c};
ehf=function(G){G=[].concat(_.jn(G)).sort(function(I,R){return I-R});
var c=Math.floor(G.length/2);return G.length%2?G[c]:(G[c-1]+G[c])/2};
qbq=function(G,c){G=G===void 0?dxf:G;c=c===void 0?{}:c;_.lr("yt.logging.errors.log",_.hg);tui();N3q(g5B(),c);window.onerror=G;lDT=h8C;window.addEventListener("unhandledrejection",function(I){if(I.reason instanceof Error){var R=I.reason;_.H_(R,{source:"unhandledrejection"});R.name==="AbortError"&&(R.level="WARNING")}h8C(I.reason);I.preventDefault()})};
_.wob=function(G){var c,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H,g,QO,T8,kp,FB,oq,Wr,iT,z8,GV,ei,Hr,v0,kK,pN,bH,n1,qf;return _.T(function(hU){if(hU.nextAddress==1)return hU.yield(_.q9(G,{mode:"readonly",enableRetries:!0},function(we){return Ff(we,"playbackData").then(function(xK){var UK=xK.map(function(qk){return qk.transfer}).filter(function(qk){return!!qk}),YK=xK.map(function(qk){return qk.offlineVideoPolicy}).filter(function(qk){return!!qk}),en=xK.filter(function(qk){return!!qk.key}).map(function(qk){return _.mx(_.Kp(qk.key).entityId,
"downloadStatusEntity")});
UK=Ff(we,"transfer",UK);YK=Ff(we,"offlineVideoPolicy",YK);en=Ff(we,"downloadStatusEntity",en);var de=UK.then(function(qk){qk=qk.reduce(function(FT,ZW){(ZW==null?0:ZW.offlineVideoStreams)&&FT.push.apply(FT,_.jn(ZW.offlineVideoStreams));return FT},[]).filter(function(FT){return!!FT});
return Ff(we,"offlineVideoStreams",qk)});
return cl.all([UK,YK,de,en]).then(function(qk){var FT=_.Q(qk);qk=FT.next().value;var ZW=FT.next().value;var yO=FT.next().value;FT=FT.next().value;return[xK,qk,ZW,yO,FT]})})}),2);
if(hU.nextAddress!=3)return c=hU.yieldResult,hU.yield(_.q9(G,{mode:"readonly",enableRetries:!0},function(we){return Ff(we,"mainDownloadsListEntity").then(function(xK){var UK,YK;return(YK=(UK=xK[0])==null?void 0:UK.downloads)!=null?YK:[]})}),3);
I=hU.yieldResult;R=_.Q(c);Z=R.next().value;K=R.next().value;m=R.next().value;a=R.next().value;O=R.next().value;N=Z;q=K;w=m;F=a;n=O;U={};k={};p={};M={};z={};t=[];x=_.Q(q);for(C=x.next();!C.done;C=x.next())(H=C.value)&&(U[H.key]=H);g=_.Q(w);for(QO=g.next();!QO.done;QO=g.next())(T8=QO.value)&&(k[T8.key]=T8);kp=_.Q(n);for(FB=kp.next();!FB.done;FB=kp.next())(oq=FB.value)&&(p[oq.key]=oq);Wr=_.Q(F);for(iT=Wr.next();!iT.done;iT=Wr.next())(z8=iT.value)&&(M[z8.key]=z8);GV=_.Q(I);for(ei=GV.next();!ei.done;ei=
GV.next())Hr=ei.value,v0=void 0,z[(v0=Hr.videoItem)!=null?v0:""]=!0,Hr.videoItem&&(pN=kK=void 0,bH=(pN=(kK=_.Kp(Hr.videoItem))==null?void 0:kK.entityId)!=null?pN:"",t.push({externalVideoId:bH}));n1=N.filter(function(we){if(!we||!we.key||!we.offlineVideoPolicy)return!1;we=_.Kp(we.key).entityId;we=_.mx(we,"downloadStatusEntity");var xK;return!(we&&((xK=p[we])==null?void 0:xK.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
qf=n1.map(function(we){var xK=U[we.transfer],UK=[];if(xK==null?0:xK.offlineVideoStreams)for(var YK=_.Q(xK.offlineVideoStreams),en=YK.next();!en.done;en=YK.next())(en=M[en.value])&&UK.push(en);YK=k[we.offlineVideoPolicy];en=z;var de=we==null?void 0:we.playerResponseTimestamp,qk=_.Kp(YK.key).entityId;we=_.mx(qk,"mainVideoEntity");if(YK.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var FT="OFFLINE_VIDEO_STATE_DISABLED";YK.expirationTimestamp&&Number(YK.expirationTimestamp)<Date.now()/1E3&&(FT="OFFLINE_VIDEO_STATE_EXPIRED")}else if(YK.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")FT="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(xK==null?void 0:xK.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":FT="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":FT="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":FT="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":FT="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":FT="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":FT="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:FT="OFFLINE_VIDEO_STATE_UNKNOWN"}if(FT==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(xK==null?void 0:xK.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":FT="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":FT="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":FT=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}qk={id:qk,videoState:FT};if(xK==null?0:xK.cotn)qk.cotn=xK.cotn;if(xK==null?0:xK.maximumDownloadQuality)qk.selectedVideoQuality=xK==null?void 0:xK.maximumDownloadQuality;if(xK==null?0:xK.lastProgressTimeMs)qk.lastProgressTimeMs=xK.lastProgressTimeMs;de&&(qk.playerResponseSavedTimeMs=String(Number(de)*1E3));xK=String;de=0;UK=_.Q(UK);for(FT=UK.next();!FT.done;FT=UK.next())if(FT=FT.value,FT.streamsProgress){FT=_.Q(FT.streamsProgress);for(var ZW=FT.next();!ZW.done;ZW=
FT.next()){var yO=void 0;de+=Number((yO=ZW.value.numBytesDownloaded)!=null?yO:0)}}qk.downloadedBytes=xK(de);qk.selectedOfflineMode=en[we]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";YK.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(qk.offlinePlaybackDisabledReason=YK.offlinePlaybackDisabledReason);return qk});
return hU.return({offlineVideos:qf,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:t}}})})};
FRf=function(){var G;return _.T(function(c){return c.nextAddress==1?c.yield(_.eC(),2):(G=c.yieldResult)?c.return(_.wob(G)):c.return({state:"PES Unavailable"})})};
DAi=function(){var G,c,I,R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(_.eC(),2);if(Z.nextAddress!=3)return(G=Z.yieldResult)?Z.yield(nAT(G),3):Z.return({state:"PES Unavailable"});c=Z.yieldResult;I={};R=c.reduce(function(K,m){K[m.key]=m;return K},I);
return Z.return(vAO(R))})};
vAO=function(G){for(var c={},I=[],R=_.Q(Object.keys(G)),Z=R.next();!Z.done;Z=R.next()){var K=Z.value;Z=G[K];var m=void 0;if(((m=Z)==null?void 0:m.entityType)==="mainVideoEntity"){delete G[K];var a=Z.data;Z={};if(a){var O=void 0;m=(O=a.videoId)!=null?O:"vid-"+K;K=G;Z.video=a;delete Z.video.formattedDescription;delete Z.video.thumbnail;a.owner&&(O=K[a.owner],O==null?0:O.data)&&(delete K[O.key],Z.video.owner=O.data,delete Z.video.owner.avatar);if(a=a.downloadState)if(O=K[a],O==null?0:O.data)if(delete K[a],
a=O.data.playbackData)if(O=K[a],O!=null&&O.data){delete K[a];a=O.data;delete a.playerResponseJson;Z.playbackData=a;if(a.transfer&&(O=K[a.transfer],O==null?0:O.data)){delete K[O.key];var N=O.data;Z.transfer=N;O=[];N=_.Q(N.offlineVideoStreams||[]);for(var q=N.next();!q.done;q=N.next())if(q=K[q.value])delete K[q.key],O.push(q.data);O&&(Z.streams=O)}(a=a.offlineVideoPolicy)&&(a=K[a])&&a.data&&(delete K[a.key],Z.offlineVideoPolicy=a.data)}c[m]=Z}}else Z&&Z.entityType==="offlineOrchestrationActionWrapperEntity"&&
Z.data&&(delete G[Z.key],m=Z.data,K=void 0,I.push({id:m.rootActionId,type:((K=m.actionProto)==null?void 0:K.actionType)||"",entity:Z}))}c.wrapperEntities=I;Object.keys(G).length>0&&(c.unknownKeys=G);return c};
oAA=function(){var G,c,I,R,Z,K,m,a,O;return _.T(function(N){if(N.nextAddress==1)return G=(new _.gJ("")).hasLocalStorage(),R=!!((c=_.Rq.crypto)==null?0:(I=c.subtle)==null?0:I.importKey),Z=!!_.Rq.BroadcastChannel,K=!!_.Rq.navigator.locks,N.yield(ufC(),2);m=N.yieldResult;a=G&&R&&Z&&K&&m;O={isSupported:a};if(a)return N.return(O);O.missingBrowserFeatures=[];m||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");G||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
R||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Z||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");K||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return N.return(O)})};
UAB=function(G,c,I,R){var Z=!1,K={contentId:void 0,contentType:"video"};c=_.Q(Object.entries(c));for(var m=c.next();!m.done;m=c.next()){var a=_.Q(m.value);m=a.next().value;a=a.next().value;G.includes(m)&&!I.has(a)?(K.contentId=a,I.add(a),Z=!0):m==="contentType"?a==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(K.contentType="playlist"):typeof a==="object"&&a!==null&&UAB(G,a,I,R)}Z&&R.push(K)};
umA=function(){var G;return!((G=qB?qB:null)==null||!G.window)};
_.kjC=function(G){if(_.LA()&&_.Ufr("Chromium")>=120){var c=_.bcg().mediaSession;try{c.setActionHandler("enterpictureinpicture",function(){G()})}catch(I){}}};
sGU=function(G){for(var c=[],I=_.Q(document.styleSheets),R=I.next(),Z={};!R.done;Z={node$jscomp$779:void 0},R=I.next())Z.node$jscomp$779=R.value.ownerNode,Z.node$jscomp$779&&(Z.node$jscomp$779 instanceof HTMLStyleElement||Z.node$jscomp$779 instanceof HTMLLinkElement)&&c.push(new Promise(function(K){return function(m){var a=K.node$jscomp$779.cloneNode(!0);a.onload=function(){m()};
a.onerror=function(){_.Ck(Error("uj"));m()};
G.document.head.appendChild(a)}}(Z)));
return Promise.all(c)};
JPC=function(G){var c=[_.FU(LRp),_.FU(APp),_.FU($AA)];Sbi(window.document.documentElement,G.document.documentElement,[_.FU(pof),_.FU(MlB),_.FU(Vlr),_.FU(zhU),_.FU(EAq)]);Sbi(window.document.body,G.document.body,c)};
Sbi=function(G,c,I){G=_.Q(G.attributes);for(var R=G.next();!R.done;R=G.next())if(R=R.value)try{_.N3(I,c,R.name,R.value)}catch(Z){}};
icb=function(G,c){G=new _.wG(G.document.documentElement);G.start(WRT,c);return G};
fD0=function(G){var c=G.document.documentElement;c.addEventListener("click",function(I){sBT(c,I)});
c.addEventListener("touchstart",function(I){pAA(I)});
c.addEventListener("mousedown",function(I){pAA(I)})};
rPB=function(G,c,I,R){R=R===void 0?!1:R;c=new B3T(c||G,I||G);return{x:G.x+((R===void 0?0:R)?c.lengthX*-1:c.lengthX)*.2,y:G.y+((R===void 0?0:R)?c.lengthY*-1:c.lengthY)*.2}};
jGr=function(G){if(!G)return!1;var c=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",I,R,Z,K=(Z=(I=G.errorScreen)==null?void 0:I.playerLegacyDesktopYpcTrailerRenderer)!=null?Z:(R=G.errorScreen)==null?void 0:R.ypcTrailerRenderer;return!!c||!!K};
_.xAU=function(G,c){if(!G)return!1;var I,R=(I=G.errorScreen)==null?void 0:I.playerLegacyDesktopYpcOfferRenderer,Z;c=!!(c==null?0:(Z=c.playerOverlayRenderer)==null?0:Z.gatedActionsOverlayRenderer);return!!jGr(G)||!!R||!!c};
dAB=function(G){return tli(G,0,"gclid",G.search(hh8))>=0||tli(G,0,"gad_source",G.search(hh8))>=0};
CqB=function(G){var c=[],I=0;return{clear:function(){I=c.length=0},
push:function(R){c[I]=R;I=(I+1)%G},
iterate:function(){return function Z(){var K,m,a,O;return _.F0(Z,function(N){switch(N.nextAddress){case 1:_.$m(N,2),K=c.length,m=0;case 4:if(!(m<K)){N.jumpTo(2);break}a=I+m;O=_.nM;return N.yield(c[a%K],7);case 7:O(N.yieldResult);m++;N.jumpTo(4);break;case 2:_.A_(N),_.pT(N,0)}})}()}}};
HcA=function(G){G.eventsToIgnore||(G.eventsToIgnore=[]);var c=G.eventsToIgnore.map(AQU),I=new Set(c),R=CqB(G.bufferSize);return{flush:function(){var Z=Array.from(R.iterate());R.clear();Z=Z.map(function(K){return{name:K.name,timestamp:K.startTime,attributes:K.attributes}});
return JSON.stringify(Z)},
onSpanStart:function(Z){Z.name==="event"&&I.has(Z.attributes.type)||R.push(Z)}}};
Xo8=function(G){G=HcA(G);var c=G.flush;AtC({onSpanStart:G.onSpanStart});yG.subscribe("handleError",function(I){try{I.params.breadcrumbs=c()}catch(R){_.hg(R,"WARNING")}})};
yPO=function(){kD("web_tracing_action");_.sC("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
gAf=function(){kD("web_tracing_action");_.sC("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
cR8=function(G,c,I){if(c===void 0){Ybp||(gAf(),setInterval(gAf,6E5),Ybp=!0);var R="web_tracing_action"}else R=c;var Z,K=((Z=G.endTime)!=null?Z:G.startTime)-G.startTime;Z={};I=GCp(G.name,K,G.startTime,{webTracing:(Z[G.name]=G.attributes,Z)},I,R,{spanStatus:G.status});if(G.children)for(G=_.Q(G.children),R=G.next();!R.done;R=G.next())cR8(R.value,c,I)};
IQi=function(G){var c=zyi.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(I){I.data&&typeof I.data==="object"&&(I=I.data,I.from==="extension"&&I.app==="yt.telemetry"&&(c("Received message from extension",I),G.onMessage(I)))});
return function(I,R){I={app:"yt.telemetry",from:"app",key:I,payload:R};c("Sending message to extension",I);window.postMessage(I,"*")}};
RtB=function(){var G=G===void 0?3E3:G;var c=IQi({onMessage:function(){}}),I=[];
return{onSpanEnd:function(R){R.parentId==null&&I.push(R)===1&&setTimeout(function(){var Z=[].concat(_.jn(I));I.length=0;c("spansReported",{spans:Z})},G)}}};
Z3U=function(G){G=G===void 0?400:G;var c=[],I=[];return{start:function(){return Oub({checkoutEveryNth:G,emit:function(R,Z){Z&&(c=I,I=[]);I.push(R)}})},
getRecording:function(){return[].concat(_.jn(c),_.jn(I))}}};
QOT=function(){(new KnA({sessionReplayEvents:_.DH("web_tracing_session_replay",0)})).subscribe(function(G){if(G.sessionReplayEvents>0)try{var c=Z3U(G.sessionReplayEvents);c.start();if(_.v("web_tracing_session_replay_demo")){var I=console.log;window.exportSessionReplay=function(){var R=JSON.stringify(c.getRecording(),null,2);R=P70(new Blob([R],{type:"text/plain"}));var Z=document.createElement("a");Z.download="session_replay.json";Z.dataset.downloadurl=["application/json",Z.download,Z.href].join(":");
Z.style.display="none";Z.href=R;Z.click();URL.revokeObjectURL(R);I("View replay at go/yt-session-replay-viewer")}}}catch(R){_.Ck(Error("wj"))}})};
aQg=function(){var G=window.fetch;window.fetch=function(){var c=_.Hy.apply(0,arguments),I=_.Q(c),R=I.next().value;I=I.next().value;var Z=Hd("httpEvent",{method:(I===void 0?{}:I).method||"GET",path:md0(R),type:"fetch"},{active:!1});return G.apply(null,_.jn(c)).then(function(K){Z.addAttributes({statusCode:K.status,statusText:K.statusText});Z.end();return K}).catch(function(K){Z.end("SPAN_STATUS_ERROR");
throw K;})}};
ToU=function(){var G=XMLHttpRequest.prototype.open,c=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(I,R,Z,K,m){var a=this;Z=Z===void 0?!0:Z;this._requestData={method:I,url:R.toString()};this.addEventListener("load",function(){var O=a._span;O==null||O.addAttributes({statusCode:a.status,responseContentLength:a.responseText.length});O==null||O.end()});
this.addEventListener("error",function(){var O=a._span;O==null||O.addAttributes({statusCode:a.status,statusText:a.statusText});O==null||O.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var O=a._span;O==null||O.addAttributes({statusCode:a.status,aborted:!0});O==null||O.end()});
G.apply(this,[I,R,Z,K,m])};
XMLHttpRequest.prototype.send=function(I){var R=this._requestData||{method:"N/A",url:"N/A"};this._span=Hd("httpEvent",{method:R.method,path:md0(R.url),type:"xhr"},{active:!1});c.apply(this,[I])}};
md0=function(G){try{if(G instanceof URL)return G.pathname;G instanceof Request&&(G=G.url);return(new URL(G,"https://youtube.com")).pathname}catch(c){return"<unable to parse path>"}};
etp=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var G=window.performance.getEntriesByType("navigation");if(G.length>0){var c=G[0],I=window.performance.timeOrigin;Hd("pageLoad",{navigationType:O3C(c.type),unloadEventStart:Math.round(c.unloadEventStart),unloadEventEnd:Math.round(c.unloadEventEnd),domInteractive:Math.round(c.domInteractive),domContentLoadedEventStart:Math.round(c.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(c.domContentLoadedEventEnd),
domComplete:Math.round(c.domComplete),loadEventStart:Math.round(c.loadEventStart),loadEventEnd:Math.round(c.loadEventEnd),redirectCount:c.redirectCount},{active:!1,startTime:I+c.startTime,endTime:I+c.loadEventEnd})}}catch(R){}})};
O3C=function(G){switch(G){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
Fnr=function(){for(var G=Noq.value,c={},I=_.Q(G.enabledSpansArray),R=I.next();!R.done;R=I.next())c[R.value]=!0;L18({sessionId:eLB(),enabledSpans:c,shouldSampleFn:function(Z,K,m){if(lQB){var a;return Z==="shortToShort"||(m==null?void 0:(a=m.rootSpan())==null?void 0:a.name)==="shortToShort"}return!0}});
V5B();CC("pageLoad")&&etp();CC("httpEvent")&&(aQg(),ToU());G.exportToCsi&&AtC(qL0);G.exportToDevTools&&AtC(RtB());G.maxBreadcrumbs>0&&Xo8({eventsToIgnore:wgC,bufferSize:G.maxBreadcrumbs})};
nHT=function(G){return new Promise(function(c){window.setTimeout(c,G)})};
vH8=function(G){var c={bicf:function(K){G.ysj=K},
blc:function(){return G.getLatestChallengeResponse()},
bcr:function(K){G.pQX.push(K)}},I=window;
I.ntpevasrs=c;if(I.ntpqfbel!==void 0)for(var R=_.Q(I.ntpqfbel),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z(c);I.ntpqfbel=void 0};
Ddg=function(G){return _.T(function(c){if(c.nextAddress==1)return _.s9(c,2),c.yield(G.syA(),4);if(c.nextAddress!=2)return _.Pl(c,0);_.M3(c);_.Vp(c)})};
oHr=function(G){var c,I;(c=G.ytcsi)==null||(I=c.tick)==null||I.call(c,"pot_ist")};
Udq=function(G){if(G instanceof Error){var c=_.Yc("yt.logging.errors.log");c&&c(G,"WARNING")}};
upp=function(G){try{var c=JSON.parse(G);if(c.bgChallenge)return c}catch(I){}};
kCT=function(){var G=window,c={networkStatusManagerPromise:_.wH().resolve(new m2f(_.Kk)),initialChallengeSli:_.v("wpo_att_sli")?new _.M7A("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};G=G===void 0?window:G;var I=G.ytAtR,R;c==null||(R=c.initialChallengeSli)==null||_.ve(R);if(I){if(I=upp(I)){var Z;c==null||(Z=c.initialChallengeSli)==null||_.Do(Z,"SUCCESS");b3C(I,c)}G.ytAtR=void 0}else G.ytAtRC=function(K){if(K=upp(K)){var m;c==null||(m=c.initialChallengeSli)==null||
_.Do(m,"SUCCESS");b3C(K,c);G.ytAtRC=void 0}}};
ARC=function(){if(sOC)return sOC;try{var G=_.$9("IFRAME");_.IE(G,_.D3(Lnf));G.sandbox.add("allow-same-origin");G.style.display="none";document.body.appendChild(G);return sOC=G}catch(c){G=new _.iW("Failed to create sandbox iframe"),_.hg(G)}};
$dp=function(){return function(G,c){_.H1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[G]=c}};
SLO=function(){return function(G,c){var I={};I[G]=c;G=_.gK(_.tMB)(I);Object.keys(G).length>0&&_.b8(G)}};
V2T=function(){if(qnU()==="hidden")var G="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else qnU()==="visible"&&(G="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",pgq=null);G&&M2g(G)};
M2g=function(G){if(G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(ztT===G)return;ztT=G}var c=9E4+Math.random()*2E3;if(G!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.wj()>c)&&qnU()==="visible"){c=-1;pgq&&(c=Math.round((0,_.Fa)()-pgq));var I=String;var R=_.Yc("_fact",window);R=R==null||R==-1?-1:Math.max(Date.now()-R,0);_.x7("foregroundHeartbeat",{firstActivityMs:I(R),clientDocumentNonce:NwO,index:String(EHB),lastEventDeltaMs:String(c),trigger:G});
_.lr("_fact",-1,window);EHB++;pgq=(0,_.Fa)()}};
JRi=function(G,c,I,R,Z,K){c=new Uint8Array(c);if(G.length===0)return c;var m=0;Z=Z!=null?Z:G.length-1;for(var a=I;a<=Z;a++){var O=G[a],N=a===I?R:0,q=void 0,w=a===Z?(q=K)!=null?q:O.length:O.length;O=O.subarray(N,w);c.set(O,m);m+=O.length}return c};
_.Wn0=function(){try{return!!self.sessionStorage}catch(G){return!1}};
i3r=function(){var G=navigator;return new Promise(function(c,I){var R;(R=G.webkitTemporaryStorage)!=null&&R.queryUsageAndQuota?G.webkitTemporaryStorage.queryUsageAndQuota(function(Z,K){c({usage:Z,quota:K})},function(Z){I(Z)}):I(Error("Fj"))})};
fQB=function(G,c){var I={errorSeverity:c.errorSeverity.toString(),wizFeatureFlags:Object.entries(c.featureFlags).join("\n")};xxO(c,I);c=c.errorSeverity;c===3?_.hg(G,"ERROR",void 0,void 0,void 0,I):c===2&&_.hg(G,"WARNING",void 0,void 0,void 0,I);_.v("cow_if_errors_in_popup")&&c===3&&G.message.indexOf("<If>")!==-1&&window.alert(G.message)};
BoA=function(G,c){var I=hH.get(G)||{layerNode:c};I.layerNode=c;shr(G,I);G.getScreenLayer=function(){return ow(I.layerNode)}};
rRU=function(G){var c;G=G.parentNode;for(var I;G&&((c=hH.get(G))==null||!c.isRenderer)&&!((I=G.polymerController)!=null?I:G).isRenderer_;)G=G.parentNode||G.host;if(c=G)return hH.get(c)};
jOU=function(G){if(G){hH.delete(G);var c=_.wH().resolve(qq);M98(G,c)}};
t2B=function(G,c,I){if(I===void 0?0:I){if(I=G.getAttribute("client-ve-type"),c.data&&!c.disableReactiveLogging||I)_.jE(function(){xdB(G,_.dN(c.data))},"zg"),_.ty(function(){return void jOU(G)})}else typeof c.data!=="function"&&xdB(G,c.data)};
xdB=function(G,c){htU++;ddg(G,c)&&_.dJ.addJob(function(){_.U_(_.dJ,function(){if(ddg(G,c)&&G.ownerDocument.documentElement===document.documentElement&&G){var I;if(G.getAttribute("layer")){var R=I=Number(G.getAttribute("layer")),Z=hH.get(G);Z?Z.layerNode.layer=R:BoA(G,new C7C(R));(R=rRU(G))&&(Z=hH.get(G))!=null&&(Z.layerNode.parent=R.layerNode)}else if(I=hH.get(G))I=ow(I.layerNode);else{I=ow;R=new C7C;if(Z=rRU(G))R.parent=Z.layerNode;BoA(G,R);I=I(R)}I!=null||(I=0);R=G.getAttribute("client-ve-type");
Z=Number(R);var K=!1;R=!1;var m=hH.get(G),a;if((a=m)&&!(a=m[H3q]!==c)&&(a=Z)){var O;a=((O=hH.get(G))==null?void 0:O.clientVeType)===void 0}a&&(m[H3q]=c,K=R=m.isRenderer=!0);hH.has(G)&&(hH.get(G).clientVeType=Z);G.visualElement&&(R=!0);if(_.v("wiz_next_ld_fix_client_ve_spec")){var N;O=((N=_.D(c==null?void 0:c.rendererContext,_.oJ))==null?void 0:N.loggingDirectives)||(c==null?void 0:c.loggingDirectives)}else O=c==null?void 0:c.loggingDirectives;O&&O.clientVeSpec&&(N=XgB(_.nd(),G),N=_.yRi(_.DP(),O,N||
void 0,I))&&(G.visualElement=N);!G.visualElement&&Z&&K&&(G.veType=Z,N=void 0,_.v("wiz_next_client_ve_parent_fix")&&(N=XgB(_.nd(),G)),N=_.vI(_.DP(),G,N,I),G.visualElement=N);R&&(N=_.wH().resolve(qq),FP(G,{data:c,observer:N,layer:I,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
ddg=function(G,c){return(c==null?0:c.trackingParams)||(c==null?0:c.loggingDirectives)||_.D(c==null?void 0:c.rendererContext,_.oJ)||G.getAttribute("client-ve-type")?!0:!1};
gHA=function(G,c,I){G.componentType!==Vg&&I instanceof HTMLElement&&c&&!_.v("cow_logging_in_component_wrapper")&&t2B(I,c,!0)};
IF0=function(){if(!YLO){YLO=!0;var G=_.v("enable_wiz_context_per_component")||!1;G=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.v("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:G,enableContextBasedComponentStacks:G},{handleError:fQB,enableComponentStacksInErrorMessages:!1});Object.assign(le,G);_.v("web_c3_idom_interop_ks")&&(QQU=Gn0);cvB();egi=Iap;aZT=ZLb}};
cvB=function(){_.v("cow_logging_in_component_wrapper")?(OrT=function(G,c){c instanceof HTMLElement&&t2B(c,G,!0)},XbB=function(){}):(OrT=function(){},XbB=gHA)};
ReB=function(G,c,I){c=c===void 0?{}:c;var R,Z=(R=_.D(G.commandMetadata,_.Pd))==null?void 0:R.url;R=c.form||{};!I||R.element||R.skipDefaultElement||(c.form=c.form||{},c.form.element=I);if(Z&&Z!=="/service_ajax")return{type:0,command:G,form:c.form};if(_.v("kevlar_service_command_check")){if(_.di(_.wH().resolve(_.UU),G))return Object.assign({},{type:1,command:G},c)}else{var K;if((K=_.D(G.commandMetadata,_.Pd))==null?0:K.apiUrl)return Object.assign({},{type:1,command:G},c)}return{type:2,command:G,form:c.form}};
Zzf=function(G){if(G.form){var c=G.form,I=Object.assign({},c);c=c.element;I=(delete I.element,I);if(c)return[_.Gs(c,[G.command,I,G.commandController])]}return[]};
KQp=function(G){if(G.form){var c=G.form,I=Object.assign({},c);c=c.element;I=(delete I.element,I);c&&_.cd(c,[G.command],c,I)}};
QVB=function(G,c,I){var R=new PCp(G,c),Z=new uJ(G,c,I);G={"/youtubei/v1/browse":new bJ(G,c,I),"/youtubei/v1/player":R,"/youtubei/v1/navigation/resolve_url":new kX,"/youtubei/v1/next":Z,"/youtubei/v1/guide":new s_(I),"/youtubei/v1/search":new LM(G,c,I),"/youtubei/v1/reel/reel_item_watch":new AA(G,c,I),"/youtubei/v1/get_watch":new $X(R,Z)};G["/youtubei/v1/account/account_menu"]=new SX;G["/youtubei/v1/notification/get_notification_menu"]=new pM;return G};
Vs=function(){var G=_.wH().resolve(_.MB);return Promise.resolve(mvO(G,_.Rq.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
aF8=function(G){return G&&(G=_.zF(_.nkb(G)))?(new URLSearchParams(G)).get("service"):null};
We=function(G,c){_.mq(_.E_(),function(){_.LC("adl")});
_.wH().resolve(TdO)(c);G=G.root;G.loadData&&G.loadData(c);(c==null?0:c.response)?_.Do(Enp(),"SUCCESS"):_.Ck(new _.iW("Lifecycle: No response in data",_.XG("IS_SHELL_LOAD"),c?c.page:"NO_PAGE",c?c.endpoint:"NO_ENDPOINT"));G.polymerController.$["page-manager"].lazyPrepareCriticalPages((c==null?void 0:c.page)||"",c.endpoint);var I,R;((R=_.D(c==null?void 0:(I=c.endpoint)==null?void 0:I.commandMetadata,_.Pd))==null?0:R.webPageType)&&_.y4().dispatch(_.JA(_.D(c.endpoint.commandMetadata,_.Pd).webPageType))};
OzU=function(){var G,c;return _.T(function(I){switch(I.nextAddress){case 1:G=window;if(!G.getDataPromise){I.jumpTo(2);break}_.s9(I,3);return I.yield(G.getDataPromise(),5);case 5:return I.return(I.yieldResult);case 3:return _.M3(I),I.yield(Vs(),6);case 6:return I.return(I.yieldResult);case 2:if(G.getInitialData)return c=G.getInitialData(),G.getInitialData=void 0,I.return(c);throw Error("Hj`"+_.Rq.location.href);}})};
Ndg=function(){_.Ch("CSI_SERVICE_NAME","youtube");_.b8({loadType:"cold"});_.v("kevlar_log_lcp")&&eeq(function(G){_.LC("lcp",G.value)})};
lFO=function(){var G=_.Gy(document.location.href,"enable");G&&G.indexOf("scraper")>-1&&_.Ch("ADD_SCRAPER_ATTRIBUTES",!0)};
vib=function(G){var c=G.root;G=[qRb,wGi,_.iJ];_.v("web_feedback_endpoint_autolog_allowlist_killswitch")&&G.push(_.fM,FQ8);niA(function(I,R){return ReB(I,R,c)},function(I){if(!I.command)return[];
var R;((R=I.form)==null?0:R.element)?I.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},I.form,{endpoint:I.command})})):c.handleNavigate(I);return[]},G);
_.wH().addProvider({provide:_.n4,useValue:_.NC.instance})};
oiT=function(){var G={},c={},I;for(I in DvU){var R=_.Q(_.ks(DvU[I],void 0,"IAtZ7"));G[I]=R.next().value;c[I]=R.next().value}return[G,function(Z){for(var K in Z){var m=void 0;(m=c[K])==null||m(Z[K])}}]};
_.bzA=function(G,c){var I=!1;I=I===void 0?!1:I;var R=_.rx.getValueByKeys(G,"contents","twoColumnWatchNextResults","results","results","contents"),Z=_.rx.getValueByKeys(G,"contents","twoColumnWatchNextResults","playlist","playlist")||null;I&&(Z=null);var K=I=null;if(Z)I=_.rx.getValueByKeys(Z,"titleText"),K=_.rx.unsafeClone(_.rx.getValueByKeys(Z,"longBylineText")),R="",K&&(R=_.HY(K)),K=_.Cp(R);else if(R){R=_.Q(R);for(var m=R.next();!m.done;m=R.next())m=m.value,m.videoPrimaryInfoRenderer&&(I=_.rx.getValueByKeys.apply(_.rx,
[m].concat(_.jn(Uvp)))),m.videoSecondaryInfoRenderer&&(K=_.rx.getValueByKeys.apply(_.rx,[m].concat(_.jn(uQB))))}else _.Ra(Error("Mj"));var a;G.currentVideoEndpoint?a=G.currentVideoEndpoint:_.Ra(Error("Nj"));var O;c&&(O=_.rx.getValueByKeys(c,"playabilityStatus","miniplayer","miniplayerRenderer"));G={miniplayerTitle:I,miniplayerSubtitle:K,watchEndpoint:a,playlistData:Z};O&&(G.miniplayerRenderer=O);return G};
knb=function(G){if(G)return _.Vc(G)};
_.sVr=function(){return{isFullscreen:function(){throw Error("Oj");},
toggleFullscreen:function(){throw Error("Pj");},
exitFullscreen:function(){throw Error("Qj");},
isAutonavEnabled:function(){throw Error("Rj");},
setAutonavEnabled:function(){throw Error("Sj");},
isAutoplaySetExplicitly:function(){throw Error("Tj");}}};
LQp=function(G){return G.videoDuration?G.numTaps>1&&G.tapDirection!==0?_.Be(G.draggedTime/G.videoDuration,0,1):_.Be((G.playedTime||0)/G.videoDuration,0,1):0};
AvO=function(G){return G.videoDuration?G.isDragging||G.numTaps>1&&G.tapDirection!==0?_.Be(G.draggedTime/G.videoDuration,0,1):_.Be((G.playedTime||0)/G.videoDuration,0,1):0};
SRA=function(G){var c,I,R;return _.D(G==null?void 0:(c=G.markersMap)==null?void 0:(I=c.find(function(Z){return Z.key==="HEATSEEKER"}))==null?void 0:(R=I.value)==null?void 0:R.heatmap,$vi)};
pGi=function(G){var c,I;return(I=(c=SRA(G))==null?void 0:c.heatMarkersDecorations)!=null?I:[]};
MzU=function(G){if(_.v("mweb_supported_chapters_killswitch"))return!0;var c;return!!(G==null?0:(c=G.markersMap)==null?0:c.find(function(I){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(I.key)}))};
_.Vzg=function(G){var c=Object,I=c.assign,R;G={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(R=G==null?void 0:G.getPlayerState())!=null?R:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return I.call(c,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},G,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
zeT=function(G){return function(c){var I=G(),R,Z=(R=I.playerApi)==null?void 0:R.getPlayerState();c&&c!==I.playerState&&(c===1||c===2)&&I.setState({playerState:Z})}};
Jvr=function(G){return function(c){var I=G(),R=I.playerApi;R&&(c==null?void 0:c.type)==="newdata"&&(Eir&&(clearTimeout(Eir),Eir=void 0),_.v("web_shorts_use_progress_state_for_gapless")?(c=R==null?void 0:R.getProgressState(c==null?void 0:c.playertype),c=c.seekableEnd-c.seekableStart):c=R==null?void 0:R.getDuration(c==null?void 0:c.playertype),I.setState({playedTime:0,videoDuration:c}))}};
WQi=function(G){return function(c){var I=G(),R=I.playerApi;if(R){var Z=R.getPresentingPlayerType();_.v("web_shorts_use_progress_state_for_gapless")?(R=R.getProgressState(Z),R=R.seekableEnd-R.seekableStart):R=R.getDuration(Z);I.setState({playedTime:c,videoDuration:R})}}};
fFf=function(G){_.VY(112394,G,function(){return izg},function(c){izg=c})};
jVi=function(G,c){if(!G)return[];var I,R,Z;G=((I=G.markersMap)==null?void 0:(R=I.find(function(K){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(K.key)}))==null?void 0:(Z=R.value)==null?void 0:Z.chapters)||[];
!BdA(G)||(c==null?0:c.ignoreStub)||(G=[rvB()].concat(_.jn(G)));return G};
rvB=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
BdA=function(G){if(G.length===0)return!1;var c;return((c=_.D(G[0],rG))==null?void 0:c.timeRangeStartMillis)!==0};
jX=function(G){return G?G.timeRangeStartMillis||0:0};
tzA=function(G,c){if(G.isDragging&&c)return G=xvr(G,c),G===-1?rvB():jVi(c)[G]};
xvr=function(G,c){return G.isDragging&&c?jVi(c,{ignoreStub:!0}).findIndex(function(I,R,Z){I=heq(G);return dvf(I,Z,R).scrubberHovering}):-1};
heq=function(G){return Object.assign({},G,{videoDuration:G.videoDuration*1E3,playedTime:G.playedTime*1E3,draggedTime:G.draggedTime*1E3})};
dvf=function(G,c,I){var R=jX(_.D(c[I],rG));c=jX(_.D(c[I+1],rG))||G.videoDuration;I=G.isDragging;var Z;if(Z=G.isDragging)Z=G.draggedTime,Z=Z!==null&&Z>=R&&Z<c;var K=G.playedTime;return K!==null&&K>=R&&K<c?{videoPosition:"active",isScrubbing:I,scrubberHovering:Z}:G.playedTime<R?{videoPosition:"pending",isScrubbing:I,scrubberHovering:Z}:{videoPosition:"seen",isScrubbing:I,scrubberHovering:Z}};
CCC=function(G,c){return G.videoPosition==="seen"||(c===void 0?0:c)>0};
HzU=function(G,c,I){c=G/c.storyboardInterval;var R=jVi(I);if(!R.length)return-c*72;I=0;R=_.Q(R);for(var Z=R.next();!Z.done;Z=R.next())if(jX(_.D(Z.value,rG))/1E3<G)I++;else break;return-(c*72)-I*56};
XGr=function(G){return G?G.width/G.columns:0};
yvg=function(G){return G.isHovering?G.hoveredTime:G.draggedTime};
giA=function(G,c){G=G.draggedTime*1E3;return G>=c.visibleTimeRangeStartMillis&&G<=c.visibleTimeRangeEndMillis};
_.YR0=function(G){if(G===void 0||Number.isNaN(G))return"--:--";var c=Math.abs(Math.floor(G)),I=Math.floor(c/86400),R=Math.floor(c%86400/3600),Z=Math.floor(c%3600/60);c=Math.floor(c%60);var K="";I>0&&(K+=I+":",R<10&&(K+="0"));if(I>0||R>0)K+=R+":",Z<10&&(K+="0");K+=Z+":";c<10&&(K+="0");K+=c;return G>=0?K:"-"+K};
G3q=function(G,c){return function(){var I=yvg(G());var R=c();var Z=G().playerApi;if(Z&&Z.getNumberOfStoryboardLevels()!==0){var K=Z.getStoryboardFrameIndex(I,1);K!==-1?R=Z.getStoryboardFrame(K,1):(I=Z.getStoryboardFrameIndex(I,0),Z=Z.getStoryboardFrame(I,0),R&&Z&&(Z.height*=3,Z.width*=3),R=Z)}else R=null;if(!R)return null;c()&&(R.width=90*R.columns,R.height=160*R.rows);return R}};
_.xX=function(G){if(!G||G.getVideoData)return G};
cCg=function(){var G;return{playerApi:(G=_.Fc())!=null?G:void 0}};
IvB=function(G){var c;_.T(function(I){if(I.nextAddress==1)return I.yield(_.wP(),2);if(c=I.yieldResult)c.unMute(!0),c.setVolume(G,!0);_.Vp(I)})};
Rir=function(G,c){G&&(G.value=""+c,G.style.setProperty("--gradient-percent",c+"%"))};
Z_q=function(G){var c;return(c=G==null?void 0:G.value)!=null?c:0};
Kap=function(){var G;_.T(function(c){if(c.nextAddress==1)return c.yield(_.wP(),2);G=c.yieldResult;if(!G)return c.return();G.isMuted()?G.unMute(!0):G.mute(!0);_.Vp(c)})};
PAC=function(G){var c=_.wH().resolve(_.tA).getPlayerElement();c&&G&&(G===1?c.pause():c.play())};
Qyr=function(G){return!!_.D(G,_.hA)||!!_.D(G,_.dG)};
mPp=function(G){_.gq(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
avr=function(G){_.gq(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
O_b=function(G){return _.jV(G.document.body,function(){return _.e(TO0,null)},"mh")};
eiA=function(){var G;return(G=navigator.userActivation)==null?void 0:G.isActive};
NOp=function(){var G=window.performance.getEntriesByType("navigation");return G?G.map(function(c){return c.type}).includes("reload"):!1};
o2O=function(){CM(CM(CM(CM(CM(CM(CM(_.wH().resolve(_.He),_.lv0),_.qMC),_.wZq),_.FaC),_.n20),_.v2q),_.DPi)};
UPr=function(G,c){c=c===void 0?!1:c;var I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return c||!_.v("kevlar_shorts_seedless_retry_initial_load")||(I=window,R=!(!I.getDataPromise&&!I.getInitialData),R)?m.yield(OzU(),2):(setTimeout(UPr.bind(window,G,!0),1E3),m.return());if(m.nextAddress!=3)return Z=m.yieldResult,m.yield(uVb(Z),3);K=m.yieldResult;We(G,K);_.Vp(m)})};
uVb=function(G){var c;if((c=G.response)==null||!c.replacementEndpoint)return _.IP(G);c=_.wH().resolve(_.MB);G=G.response;_.D(G.replacementEndpoint,_.vH)&&G.sequenceContinuation&&(_.D(G.replacementEndpoint,_.vH).sequenceParams=G.sequenceContinuation);return X0(c,G.replacementEndpoint,{},_.Rq.location.href,"shorts",function(){},function(){return!1})};
k3b=function(G){var c=_.wH().resolve(b_q);G.playerResponse&&c.handleResponse(G.playerResponse);G.response&&c.handleResponse(G.response)};
syb=function(G){var c=_.y4(),I,R=_.D((I=G.response)==null?void 0:I.frameworkUpdates,ye),Z;I=_.D((Z=G.playerResponse)==null?void 0:Z.frameworkUpdates,ye);var K;G=_.D((K=G.reelWatchSequenceResponse)==null?void 0:K.frameworkUpdates,ye);R&&_.ln(R,c);I&&_.ln(I,c);G&&_.ln(G,c)};
LaT=function(G){var c;_.v("enable_redirect_linking_for_desktop_web_client")&&((c=window.location.hash)==null?0:c.includes("redirect_state"))&&G.url&&(G.url=G.url.toString()+window.location.hash)};
SMg=function(G){var c=_.wH(),I=c.resolve(_.MB);c=c.resolve(_.ACr);G.endpoint&&(I=$Pb(I,G.endpoint),I.content&&G.response&&_.ys(c,G.response,I.content),I.player&&G.playerResponse&&_.ys(c,G.playerResponse,I.player),I.reelSequence&&G.reelWatchSequenceResponse&&_.ys(c,G.reelWatchSequenceResponse,I.reelSequence))};
gG=function(G,c){k3b(c);syb(c);var I;(c==null?0:c.url)&&((I=window.location.hash)==null?0:I.includes("redirect_state"))&&(LaT(c),(I=aF8(c.url))&&_.ym(G.root,"yt-initialize-third-party",[I,c]));SMg(c);I=_.wH();var R=I.resolve(pZ0);c.playerResponse&&I.resolve(Mbr).handleResponse(c.playerResponse);if(c.playerResponse){I=void 0;if(_.v("ab_v_vid_sig")&&c.endpoint){var Z,K=(Z=_.D(c.endpoint,_.fR))!=null?Z:_.D(c.endpoint,_.vH);K&&(I=K.videoId)}VbB(R,c.playerResponse,I)}c.playerResponse&&cpA(c.playerResponse)&&
_.v("web_enable_ab_rsp_cl")?EGq().then(function(){ziq(R,c.playerResponse);We(G,c)}):We(G,c)};
JCB=function(G){if(G=G.root.data){var c=_.wH().resolve(E2r);G.endpoint&&(G.response&&c.handleResponse(G.response,void 0,document.querySelector("ytd-app")),G.playerResponse&&c.handleResponse(G.playerResponse),G.reelWatchSequenceResponse&&c.handleResponse(G.reelWatchSequenceResponse))}};
Wa0=function(G){var c,I,R,Z,K,m;return _.T(function(a){switch(a.nextAddress){case 1:c=window;if(!c.getDataPromise){a.jumpTo(2);break}_.s9(a,3);return a.yield(c.getDataPromise(),5);case 5:I=a.yieldResult;gG(G,I);_.Pl(a,4);break;case 3:return _.M3(a),a.yield(Vs(),6);case 6:R=a.yieldResult,We(G,R);case 4:return a.return();case 2:if(!_.v("sw_nav_preload_pbj")){a.jumpTo(7);break}c.fetchInitialData=function(){var O;return _.T(function(N){if(N.nextAddress==1)return N.yield(Vs(),2);O=N.yieldResult;We(G,O);
_.Vp(N)})};
if(c.getInitialData){c.loadInitialData=function(O){gG(G,O)};
Z=c.getInitialData();c.getInitialData=void 0;gG(G,Z);a.jumpTo(8);break}c.fetchInitialData=void 0;return a.yield(Vs(),9);case 9:K=a.yieldResult,We(G,K);case 8:return a.return();case 7:c.getInitialData?(m=c.getInitialData(),c.getInitialData=void 0,gG(G,m)):c.loadInitialData=function(O){gG(G,O)},_.Vp(a)}})};
fvU=function(){var G=new i_8;_.IwT(G);G.registerInitializationCallback(function(){ekA(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
G.registerCallback("error",function(c,I,R){_.yL(Error("Xj`"+I+"`"+R))})};
BOb=typeof Object.create=="function"?Object.create:function(G){var c=function(){};
c.prototype=G;return new c};
rCg=typeof Object.defineProperties=="function"?Object.defineProperty:function(G,c,I){if(G==Array.prototype||G==Object.prototype)return G;G[c]=I.value;return G};
jy8=function(G){G=["object"==typeof globalThis&&globalThis,G,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<G.length;++c){var I=G[c];if(I&&I.Math==Math)return I}throw Error("a");};
_.Nh=jy8(this);xPp="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.Nh.BigInt64Array&&(xPp.push("BigInt64"),xPp.push("BigUint64"));var hib=function(G,c){if(c)for(var I=0;I<xPp.length;I++)tbr(xPp[I]+"Array.prototype."+G,c)},YX=function(G,c){c&&tbr(G,c)},tbr=function(G,c){var I=_.Nh;
G=G.split(".");for(var R=0;R<G.length-1;R++){var Z=G[R];if(!(Z in I))return;I=I[Z]}G=G[G.length-1];R=I[G];c=c(R);c!=R&&c!=null&&rCg(I,G,{configurable:!0,writable:!0,value:c})},dPT=function(){function G(){function I(){}
new I;Reflect.construct(I,[],function(){});
return new I instanceof I}
if(typeof Reflect!="undefined"&&Reflect.construct){if(G())return Reflect.construct;var c=Reflect.construct;return function(I,R,Z){I=c(I,R);Z&&Reflect.setPrototypeOf(I,Z.prototype);return I}}return function(I,R,Z){Z===void 0&&(Z=I);
Z=BOb(Z.prototype||Object.prototype);return Function.prototype.apply.call(I,Z,R)||Z}}(),CA8;
if(typeof Object.setPrototypeOf=="function")CA8=Object.setPrototypeOf;else{var H_r;a:{var XZT={a:!0},yCB={};try{yCB.__proto__=XZT;H_r=yCB.a;break a}catch(G){}H_r=!1}CA8=H_r?function(G,c){G.__proto__=c;if(G.__proto__!==c)throw new TypeError("b`"+G);return G}:null}Go=CA8;
_.u=function(G,c){G.prototype=BOb(c.prototype);G.prototype.constructor=G;if(Go)Go(G,c);else for(var I in c)if(I!="prototype")if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(c,I);R&&Object.defineProperty(G,I,R)}else G[I]=c[I];G.superClass_=c.prototype};
g2O=function(G){var c=0;return function(){return c<G.length?{done:!1,value:G[c++]}:{done:!0}}};
_.Q=function(G){var c=typeof Symbol!="undefined"&&Symbol.iterator&&G[Symbol.iterator];if(c)return c.call(G);if(typeof G.length=="number")return{next:g2O(G)};throw Error("c`"+String(G));};
Qg=function(G){for(var c,I=[];!(c=G.next()).done;)I.push(c.value);return I};
_.jn=function(G){return G instanceof Array?G:Qg(_.Q(G))};
_.I3=function(G){return cC(G,G)};
cC=function(G,c){G.raw=c;Object.freeze&&(Object.freeze(G),Object.freeze(c));return G};
R3=function(G,c){return Object.prototype.hasOwnProperty.call(G,c)};
YMT=function(G){if(G==null)throw new TypeError("d");return Object(G)};
G8T=typeof Object.assign=="function"?Object.assign:function(G,c){G=YMT(G);for(var I=1;I<arguments.length;I++){var R=arguments[I];if(R)for(var Z in R)R3(R,Z)&&(G[Z]=R[Z])}return G};
YX("Object.assign",function(G){return G||G8T});
var Zk=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},cUV=function(G){if(G.isRunning_)throw new TypeError("f");
G.isRunning_=!0};
Zk.prototype.JSC$8882_next_=function(G){this.yieldResult=G};
var IiV=function(G,c){G.abruptCompletion_={exception:c,isException:!0};G.nextAddress=G.catchAddress_||G.finallyAddress_};
Zk.prototype.return=function(G){this.abruptCompletion_={return:G};this.nextAddress=this.finallyAddress_};
Zk.prototype.yield=function(G,c){this.nextAddress=c;return{value:G}};
Zk.prototype.jumpTo=function(G){this.nextAddress=G};
_.Vp=function(G){G.nextAddress=0};
_.s9=function(G,c,I){G.catchAddress_=c;I!=void 0&&(G.finallyAddress_=I)};
_.$m=function(G,c){G.catchAddress_=0;G.finallyAddress_=c||0};
_.Pl=function(G,c,I){G.nextAddress=c;G.catchAddress_=I||0};
_.M3=function(G,c){G.catchAddress_=c||0;c=G.abruptCompletion_.exception;G.abruptCompletion_=null;return c};
_.A_=function(G,c,I,R){R?G.finallyContexts_[R]=G.abruptCompletion_:G.finallyContexts_=[G.abruptCompletion_];G.catchAddress_=c||0;G.finallyAddress_=I||0};
_.pT=function(G,c,I){I=G.finallyContexts_.splice(I||0)[0];(I=G.abruptCompletion_=G.abruptCompletion_||I)?I.isException?G.nextAddress=G.catchAddress_||G.finallyAddress_:I.jumpTo!=void 0&&G.finallyAddress_<I.jumpTo?(G.nextAddress=I.jumpTo,G.abruptCompletion_=null):G.nextAddress=G.finallyAddress_:G.nextAddress=c};
RCi=function(G){this.JSC$8887_context_=new Zk;this.program_=G};
Kg2=function(G,c){cUV(G.JSC$8887_context_);var I=G.JSC$8887_context_.yieldAllIterator_;if(I)return ZAT(G,"return"in I?I["return"]:function(R){return{value:R,done:!0}},c,G.JSC$8887_context_.return);
G.JSC$8887_context_.return(c);return Ky(G)};
ZAT=function(G,c,I,R){try{var Z=c.call(G.JSC$8887_context_.yieldAllIterator_,I);if(!(Z instanceof Object))throw new TypeError("e`"+Z);if(!Z.done)return G.JSC$8887_context_.isRunning_=!1,Z;var K=Z.value}catch(m){return G.JSC$8887_context_.yieldAllIterator_=null,IiV(G.JSC$8887_context_,m),Ky(G)}G.JSC$8887_context_.yieldAllIterator_=null;R.call(G.JSC$8887_context_,K);return Ky(G)};
Ky=function(G){for(;G.JSC$8887_context_.nextAddress;)try{var c=G.program_(G.JSC$8887_context_);if(c)return G.JSC$8887_context_.isRunning_=!1,{value:c.value,done:!1}}catch(I){G.JSC$8887_context_.yieldResult=void 0,IiV(G.JSC$8887_context_,I)}G.JSC$8887_context_.isRunning_=!1;if(G.JSC$8887_context_.abruptCompletion_){c=G.JSC$8887_context_.abruptCompletion_;G.JSC$8887_context_.abruptCompletion_=null;if(c.isException)throw c.exception;return{value:c.return,done:!0}}return{value:void 0,done:!0}};
PT2=function(G){this.next=function(c){cUV(G.JSC$8887_context_);G.JSC$8887_context_.yieldAllIterator_?c=ZAT(G,G.JSC$8887_context_.yieldAllIterator_.next,c,G.JSC$8887_context_.JSC$8882_next_):(G.JSC$8887_context_.JSC$8882_next_(c),c=Ky(G));return c};
this.throw=function(c){cUV(G.JSC$8887_context_);G.JSC$8887_context_.yieldAllIterator_?c=ZAT(G,G.JSC$8887_context_.yieldAllIterator_["throw"],c,G.JSC$8887_context_.JSC$8882_next_):(IiV(G.JSC$8887_context_,c),c=Ky(G));return c};
this.return=function(c){return Kg2(G,c)};
this[Symbol.iterator]=function(){return this}};
_.F0=function(G,c){c=new PT2(new RCi(c));Go&&G.prototype&&Go(c,G.prototype);return c};
Qq9=function(G){function c(R){return G.next(R)}
function I(R){return G.throw(R)}
return new Promise(function(R,Z){function K(m){m.done?R(m.value):Promise.resolve(m.value).then(c,I).then(K,Z)}
K(G.next())})};
_.T=function(G){return Qq9(new PT2(new RCi(G)))};
YX("Symbol",function(G){if(G)return G;var c=function(K,m){this.$jscomp$symbol$id_=K;rCg(this,"description",{configurable:!0,writable:!0,value:m})};
c.prototype.toString=function(){return this.$jscomp$symbol$id_};
var I="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",R=0,Z=function(K){if(this instanceof Z)throw new TypeError("g");return new c(I+(K||"")+"_"+R++,K)};
return Z});
YX("Symbol.iterator",function(G){if(G)return G;G=Symbol("h");rCg(Array.prototype,G,{configurable:!0,writable:!0,value:function(){return mfA(g2O(this))}});
return G});
YX("Symbol.asyncIterator",function(G){return G?G:Symbol("i")});
mfA=function(G){G={next:G};G[Symbol.iterator]=function(){return this};
return G};
_.LT=function(G){var c=G[Symbol.asyncIterator];return c!==void 0?c.call(G):new ai9(_.Q(G))};
ai9=function(G){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return G};
this.next=function(c){return Promise.resolve(G.next(c))};
this["throw"]=function(c){return new Promise(function(I,R){var Z=G["throw"];Z!==void 0?I(Z.call(G,c)):(I=G["return"],I!==void 0&&I.call(G),R(new TypeError("j")))})};
G["return"]!==void 0&&(this["return"]=function(c){return Promise.resolve(G["return"](c))})};
_.Hy=function(){for(var G=Number(this),c=[],I=G;I<arguments.length;I++)c[I-G]=arguments[I];return c};
_.nM=function(G){return G};
YX("globalThis",function(G){return G||_.Nh});
YX("Reflect",function(G){return G?G:{}});
YX("Reflect.construct",function(){return dPT});
YX("Reflect.setPrototypeOf",function(G){return G?G:Go?function(c,I){try{return Go(c,I),!0}catch(R){return!1}}:null});
YX("Promise",function(G){function c(){this.batch_=null}
function I(m){return m instanceof Z?m:new Z(function(a){a(m)})}
if(G&&(typeof _.Nh.PromiseRejectionEvent!=="undefined"||!_.Nh.Promise||_.Nh.Promise.toString().indexOf("[native code]")===-1))return G;c.prototype.asyncExecute=function(m){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(m)};
var R=_.Nh.setTimeout;c.prototype.asyncExecuteFunction=function(m){R(m,0)};
c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var m=this.batch_;this.batch_=[];for(var a=0;a<m.length;++a){var O=m[a];m[a]=null;try{O()}catch(N){this.asyncThrow_(N)}}}this.batch_=null};
c.prototype.asyncThrow_=function(m){this.asyncExecuteFunction(function(){throw m;})};
var Z=function(m){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{m(a.resolve,a.reject)}catch(O){a.reject(O)}};
Z.prototype.createResolveAndReject_=function(){function m(N){return function(q){O||(O=!0,N.call(a,q))}}
var a=this,O=!1;return{resolve:m(this.resolveTo_),reject:m(this.JSC$8919_reject_)}};
Z.prototype.resolveTo_=function(m){if(m===this)this.JSC$8919_reject_(new TypeError("n"));else if(m instanceof Z)this.settleSameAsPromise_(m);else{a:switch(typeof m){case "object":var a=m!=null;break a;case "function":a=!0;break a;default:a=!1}a?this.resolveToNonPromiseObj_(m):this.fulfill_(m)}};
Z.prototype.resolveToNonPromiseObj_=function(m){var a=void 0;try{a=m.then}catch(O){this.JSC$8919_reject_(O);return}typeof a=="function"?this.settleSameAsThenable_(a,m):this.fulfill_(m)};
Z.prototype.JSC$8919_reject_=function(m){this.settle_(2,m)};
Z.prototype.fulfill_=function(m){this.settle_(1,m)};
Z.prototype.settle_=function(m,a){if(this.state_!=0)throw Error("o`"+m+"`"+a+"`"+this.state_);this.state_=m;this.result_=a;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Z.prototype.scheduleUnhandledRejectionCheck_=function(){var m=this;R(function(){if(m.notifyUnhandledRejection_()){var a=_.Nh.console;typeof a!=="undefined"&&a.error(m.result_)}},1)};
Z.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var m=_.Nh.CustomEvent,a=_.Nh.Event,O=_.Nh.dispatchEvent;if(typeof O==="undefined")return!0;typeof m==="function"?m=new m("unhandledrejection",{cancelable:!0}):typeof a==="function"?m=new a("unhandledrejection",{cancelable:!0}):(m=_.Nh.document.createEvent("CustomEvent"),m.initCustomEvent("unhandledrejection",!1,!0,m));m.promise=this;m.reason=this.result_;return O(m)};
Z.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var m=0;m<this.onSettledCallbacks_.length;++m)K.asyncExecute(this.onSettledCallbacks_[m]);this.onSettledCallbacks_=null}};
var K=new c;Z.prototype.settleSameAsPromise_=function(m){var a=this.createResolveAndReject_();m.callWhenSettled_(a.resolve,a.reject)};
Z.prototype.settleSameAsThenable_=function(m,a){var O=this.createResolveAndReject_();try{m.call(a,O.resolve,O.reject)}catch(N){O.reject(N)}};
Z.prototype.then=function(m,a){function O(F,n){return typeof F=="function"?function(U){try{N(F(U))}catch(k){q(k)}}:n}
var N,q,w=new Z(function(F,n){N=F;q=n});
this.callWhenSettled_(O(m,N),O(a,q));return w};
Z.prototype.catch=function(m){return this.then(void 0,m)};
Z.prototype.callWhenSettled_=function(m,a){function O(){switch(N.state_){case 1:m(N.result_);break;case 2:a(N.result_);break;default:throw Error("p`"+N.state_);}}
var N=this;this.onSettledCallbacks_==null?K.asyncExecute(O):this.onSettledCallbacks_.push(O);this.isRejectionHandled_=!0};
Z.resolve=I;Z.reject=function(m){return new Z(function(a,O){O(m)})};
Z.race=function(m){return new Z(function(a,O){for(var N=_.Q(m),q=N.next();!q.done;q=N.next())I(q.value).callWhenSettled_(a,O)})};
Z.all=function(m){var a=_.Q(m),O=a.next();return O.done?I([]):new Z(function(N,q){function w(U){return function(k){F[U]=k;n--;n==0&&N(F)}}
var F=[],n=0;do F.push(void 0),n++,I(O.value).callWhenSettled_(w(F.length-1),q),O=a.next();while(!O.done)})};
return Z});
var PC=function(G,c,I){if(G==null)throw new TypeError("q`"+I);if(c instanceof RegExp)throw new TypeError("r`"+I);return G+""};
YX("String.prototype.startsWith",function(G){return G?G:function(c,I){var R=PC(this,c,"startsWith"),Z=R.length,K=c.length;I=Math.max(0,Math.min(I|0,R.length));for(var m=0;m<K&&I<Z;)if(R[I++]!=c[m++])return!1;return m>=K}});
YX("Object.setPrototypeOf",function(G){return G||Go});
YX("Symbol.dispose",function(G){return G?G:Symbol("s")});
YX("SuppressedError",function(G){function c(I,R,Z){if(!(this instanceof c))return new c(I,R,Z);Z=Error(Z);"stack"in Z&&(this.stack=Z.stack);this.message=Z.message;this.error=I;this.suppressed=R}
if(G)return G;_.u(c,Error);c.prototype.name="SuppressedError";return c});
YX("Array.from",function(G){return G?G:function(c,I,R){I=I!=null?I:function(a){return a};
var Z=[],K=typeof Symbol!="undefined"&&Symbol.iterator&&c[Symbol.iterator];if(typeof K=="function"){c=K.call(c);for(var m=0;!(K=c.next()).done;)Z.push(I.call(R,K.value,m++))}else for(K=c.length,m=0;m<K;m++)Z.push(I.call(R,c[m],m));return Z}});
var Tbk=function(G,c,I){G instanceof String&&(G=String(G));for(var R=G.length,Z=0;Z<R;Z++){var K=G[Z];if(c.call(I,K,Z,G))return{i:Z,v:K}}return{i:-1,v:void 0}};
YX("Array.prototype.find",function(G){return G?G:function(c,I){return Tbk(this,c,I).v}});
YX("WeakMap",function(G){function c(){}
function I(O){var N=typeof O;return N==="object"&&O!==null||N==="function"}
function R(O){if(!R3(O,K)){var N=new c;rCg(O,K,{value:N})}}
function Z(O){var N=Object[O];N&&(Object[O]=function(q){if(q instanceof c)return q;Object.isExtensible(q)&&R(q);return N(q)})}
if(function(){if(!G||!Object.seal)return!1;try{var O=Object.seal({}),N=Object.seal({}),q=new G([[O,2],[N,3]]);if(q.get(O)!=2||q.get(N)!=3)return!1;q.delete(O);q.set(N,4);return!q.has(O)&&q.get(N)==4}catch(w){return!1}}())return G;
var K="$jscomp_hidden_"+Math.random();Z("freeze");Z("preventExtensions");Z("seal");var m=0,a=function(O){this.JSC$8927_id_=(m+=Math.random()+1).toString();if(O){O=_.Q(O);for(var N;!(N=O.next()).done;)N=N.value,this.set(N[0],N[1])}};
a.prototype.set=function(O,N){if(!I(O))throw Error("t");R(O);if(!R3(O,K))throw Error("u`"+O);O[K][this.JSC$8927_id_]=N;return this};
a.prototype.get=function(O){return I(O)&&R3(O,K)?O[K][this.JSC$8927_id_]:void 0};
a.prototype.has=function(O){return I(O)&&R3(O,K)&&R3(O[K],this.JSC$8927_id_)};
a.prototype.delete=function(O){return I(O)&&R3(O,K)&&R3(O[K],this.JSC$8927_id_)?delete O[K][this.JSC$8927_id_]:!1};
return a});
YX("Map",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var a=Object.seal({x:4}),O=new G(_.Q([[a,"s"]]));if(O.get(a)!="s"||O.size!=1||O.get({x:4})||O.set({x:4},"t")!=O||O.size!=2)return!1;var N=O.entries(),q=N.next();if(q.done||q.value[0]!=a||q.value[1]!="s")return!1;q=N.next();return q.done||q.value[0].x!=4||q.value[1]!="t"||!N.next().done?!1:!0}catch(w){return!1}}())return G;
var c=new WeakMap,I=function(a){this[0]={};this[1]=K();this.size=0;if(a){a=_.Q(a);for(var O;!(O=a.next()).done;)O=O.value,this.set(O[0],O[1])}};
I.prototype.set=function(a,O){a=a===0?0:a;var N=R(this,a);N.list||(N.list=this[0][N.id]=[]);N.entry?N.entry.value=O:(N.entry={next:this[1],previous:this[1].previous,head:this[1],key:a,value:O},N.list.push(N.entry),this[1].previous.next=N.entry,this[1].previous=N.entry,this.size++);return this};
I.prototype.delete=function(a){a=R(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this[0][a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};
I.prototype.clear=function(){this[0]={};this[1]=this[1].previous=K();this.size=0};
I.prototype.has=function(a){return!!R(this,a).entry};
I.prototype.get=function(a){return(a=R(this,a).entry)&&a.value};
I.prototype.entries=function(){return Z(this,function(a){return[a.key,a.value]})};
I.prototype.keys=function(){return Z(this,function(a){return a.key})};
I.prototype.values=function(){return Z(this,function(a){return a.value})};
I.prototype.forEach=function(a,O){for(var N=this.entries(),q;!(q=N.next()).done;)q=q.value,a.call(O,q[1],q[0],this)};
I.prototype[Symbol.iterator]=I.prototype.entries;var R=function(a,O){var N=O&&typeof O;N=="object"||N=="function"?c.has(O)?N=c.get(O):(N=""+ ++m,c.set(O,N)):N="p_"+O;var q=a[0][N];if(q&&R3(a[0],N))for(a=0;a<q.length;a++){var w=q[a];if(O!==O&&w.key!==w.key||O===w.key)return{id:N,list:q,index:a,entry:w}}return{id:N,list:q,index:-1,entry:void 0}},Z=function(a,O){var N=a[1];
return mfA(function(){if(N){for(;N.head!=a[1];)N=N.previous;for(;N.next!=N.head;)return N=N.next,{done:!1,value:O(N)};N=null}return{done:!0,value:void 0}})},K=function(){var a={};
return a.previous=a.next=a.head=a},m=0;
return I});
YX("Set",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var I=Object.seal({x:4}),R=new G(_.Q([I]));if(!R.has(I)||R.size!=1||R.add(I)!=R||R.size!=1||R.add({x:4})!=R||R.size!=2)return!1;var Z=R.entries(),K=Z.next();if(K.done||K.value[0]!=I||K.value[1]!=I)return!1;K=Z.next();return K.done||K.value[0]==I||K.value[0].x!=4||K.value[1]!=K.value[0]?!1:Z.next().done}catch(m){return!1}}())return G;
var c=function(I){this.JSC$8941_map_=new Map;if(I){I=_.Q(I);for(var R;!(R=I.next()).done;)this.add(R.value)}this.size=this.JSC$8941_map_.size};
c.prototype.add=function(I){I=I===0?0:I;this.JSC$8941_map_.set(I,I);this.size=this.JSC$8941_map_.size;return this};
c.prototype.delete=function(I){I=this.JSC$8941_map_.delete(I);this.size=this.JSC$8941_map_.size;return I};
c.prototype.clear=function(){this.JSC$8941_map_.clear();this.size=0};
c.prototype.has=function(I){return this.JSC$8941_map_.has(I)};
c.prototype.entries=function(){return this.JSC$8941_map_.entries()};
c.prototype.values=function(){return this.JSC$8941_map_.values()};
c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(I,R){var Z=this;this.JSC$8941_map_.forEach(function(K){return I.call(R,K,K,Z)})};
return c});
YX("Math.log2",function(G){return G?G:function(c){return Math.log(c)/Math.LN2}});
YX("Object.values",function(G){return G?G:function(c){var I=[],R;for(R in c)R3(c,R)&&I.push(c[R]);return I}});
YX("Object.is",function(G){return G?G:function(c,I){return c===I?c!==0||1/c===1/I:c!==c&&I!==I}});
YX("Array.prototype.includes",function(G){return G?G:function(c,I){var R=this;R instanceof String&&(R=String(R));var Z=R.length;I=I||0;for(I<0&&(I=Math.max(I+Z,0));I<Z;I++){var K=R[I];if(K===c||Object.is(K,c))return!0}return!1}});
YX("String.prototype.includes",function(G){return G?G:function(c,I){return PC(this,c,"includes").indexOf(c,I||0)!==-1}});
YX("Object.entries",function(G){return G?G:function(c){var I=[],R;for(R in c)R3(c,R)&&I.push([R,c[R]]);return I}});
YX("Number.isFinite",function(G){return G?G:function(c){return typeof c!=="number"?!1:!isNaN(c)&&c!==Infinity&&c!==-Infinity}});
YX("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
YX("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
YX("Number.isInteger",function(G){return G?G:function(c){return Number.isFinite(c)?c===Math.floor(c):!1}});
YX("Number.isSafeInteger",function(G){return G?G:function(c){return Number.isInteger(c)&&Math.abs(c)<=Number.MAX_SAFE_INTEGER}});
YX("String.prototype.endsWith",function(G){return G?G:function(c,I){var R=PC(this,c,"endsWith");I===void 0&&(I=R.length);I=Math.max(0,Math.min(I|0,R.length));for(var Z=c.length;Z>0&&I>0;)if(R[--I]!=c[--Z])return!1;return Z<=0}});
var OAB=function(G,c){G instanceof String&&(G+="");var I=0,R=!1,Z={next:function(){if(!R&&I<G.length){var K=I++;return{value:c(K,G[K]),done:!1}}R=!0;return{done:!0,value:void 0}}};
Z[Symbol.iterator]=function(){return Z};
return Z};
YX("Array.prototype.entries",function(G){return G?G:function(){return OAB(this,function(c,I){return[c,I]})}});
YX("Math.trunc",function(G){return G?G:function(c){c=Number(c);if(isNaN(c)||c===Infinity||c===-Infinity||c===0)return c;var I=Math.floor(Math.abs(c));return c<0?-I:I}});
YX("Number.isNaN",function(G){return G?G:function(c){return typeof c==="number"&&isNaN(c)}});
YX("Array.prototype.keys",function(G){return G?G:function(){return OAB(this,function(c){return c})}});
YX("Array.prototype.values",function(G){return G?G:function(){return OAB(this,function(c,I){return I})}});
YX("Array.prototype.fill",function(G){return G?G:function(c,I,R){var Z=this.length||0;I<0&&(I=Math.max(0,Z+I));if(R==null||R>Z)R=Z;R=Number(R);R<0&&(R=Math.max(0,Z+R));for(I=Number(I||0);I<R;I++)this[I]=c;return this}});
hib("fill",function(G){return G?G:Array.prototype.fill});
YX("Object.fromEntries",function(G){return G?G:function(c){var I={};if(!(Symbol.iterator in c))throw new TypeError("v`"+c);c=c[Symbol.iterator].call(c);for(var R=c.next();!R.done;R=c.next()){R=R.value;if(Object(R)!==R)throw new TypeError("w");I[R[0]]=R[1]}return I}});
YX("String.prototype.replaceAll",function(G){return G?G:function(c,I){if(c instanceof RegExp&&!c.global)throw new TypeError("x");return c instanceof RegExp?this.replace(c,I):this.replace(new RegExp(String(c).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),I)}});
YX("Object.getOwnPropertySymbols",function(G){return G?G:function(){return[]}});
YX("String.prototype.repeat",function(G){return G?G:function(c){var I=PC(this,null,"repeat");if(c<0||c>1342177279)throw new RangeError("y");c|=0;for(var R="";c;)if(c&1&&(R+=I),c>>>=1)I+=I;return R}});
YX("Array.prototype.findIndex",function(G){return G?G:function(c,I){return Tbk(this,c,I).i}});
YX("Array.prototype.flatMap",function(G){return G?G:function(c,I){var R=[];Array.prototype.forEach.call(this,function(Z,K){Z=c.call(I,Z,K,this);Array.isArray(Z)?R.push.apply(R,Z):R.push(Z)});
return R}});
YX("String.prototype.codePointAt",function(G){return G?G:function(c){var I=PC(this,null,"codePointAt"),R=I.length;c=Number(c)||0;if(c>=0&&c<R){c|=0;var Z=I.charCodeAt(c);if(Z<55296||Z>56319||c+1===R)return Z;c=I.charCodeAt(c+1);return c<56320||c>57343?Z:(Z-55296)*1024+c+9216}}});
YX("String.fromCodePoint",function(G){return G?G:function(c){for(var I="",R=0;R<arguments.length;R++){var Z=Number(arguments[R]);if(Z<0||Z>1114111||Z!==Math.floor(Z))throw new RangeError("z`"+Z);Z<=65535?I+=String.fromCharCode(Z):(Z-=65536,I+=String.fromCharCode(Z>>>10&1023|55296),I+=String.fromCharCode(Z&1023|56320))}return I}});
YX("String.prototype.trimLeft",function(G){function c(){return this.replace(/^[\s\xa0]+/,"")}
return G||c});
YX("String.prototype.trimStart",function(G){return G||String.prototype.trimLeft});
YX("String.prototype.padStart",function(G){return G?G:function(c,I){var R=PC(this,null,"padStart");c-=R.length;I=I!==void 0?String(I):" ";return(c>0&&I?I.repeat(Math.ceil(c/I.length)).substring(0,c):"")+R}});
YX("Promise.prototype.finally",function(G){return G?G:function(c){return this.then(function(I){return Promise.resolve(c()).then(function(){return I})},function(I){return Promise.resolve(c()).then(function(){throw I;
})})}});
YX("Math.imul",function(G){return G?G:function(c,I){c=Number(c);I=Number(I);var R=c&65535,Z=I&65535;return R*Z+((c>>>16&65535)*Z+R*(I>>>16&65535)<<16>>>0)|0}});
YX("Object.hasOwn",function(G){return G?G:function(c,I){return Object.prototype.hasOwnProperty.call(c,I)}});
YX("Math.sign",function(G){return G?G:function(c){c=Number(c);return c===0||isNaN(c)?c:c>0?1:-1}});
YX("Array.prototype.flat",function(G){return G?G:function(c){c=c===void 0?1:c;var I=[];Array.prototype.forEach.call(this,function(R){Array.isArray(R)&&c>0?(R=Array.prototype.flat.call(R,c-1),I.push.apply(I,R)):I.push(R)});
return I}});
YX("String.raw",function(G){return G?G:function(c,I){c=YMT(c);for(var R=c.raw,Z=R.length,K="",m=0;m<Z;++m)K+=R[m],m+1<Z&&m+1<arguments.length&&(K+=String(arguments[m+1]));return K}});
YX("WeakSet",function(G){if(function(){if(!G||!Object.seal)return!1;try{var I=Object.seal({}),R=Object.seal({}),Z=new G([I]);if(!Z.has(I)||Z.has(R))return!1;Z.delete(I);Z.add(R);return!Z.has(I)&&Z.has(R)}catch(K){return!1}}())return G;
var c=function(I){this.JSC$8955_map_=new WeakMap;if(I){I=_.Q(I);for(var R;!(R=I.next()).done;)this.add(R.value)}};
c.prototype.add=function(I){this.JSC$8955_map_.set(I,!0);return this};
c.prototype.has=function(I){return this.JSC$8955_map_.has(I)};
c.prototype.delete=function(I){return this.JSC$8955_map_.delete(I)};
return c});
YX("Reflect.ownKeys",function(G){return G?G:function(c){var I=[],R=Object.getOwnPropertyNames(c);c=Object.getOwnPropertySymbols(c);for(var Z=0;Z<R.length;Z++)(R[Z].substring(0,14)=="jscomp_symbol_"?c:I).push(R[Z]);return I.concat(c)}});
YX("Object.getOwnPropertyDescriptors",function(G){return G?G:function(c){for(var I={},R=Reflect.ownKeys(c),Z=0;Z<R.length;Z++)I[R[Z]]=Object.getOwnPropertyDescriptor(c,R[Z]);return I}});
YX("Promise.allSettled",function(G){function c(R){return{status:"fulfilled",value:R}}
function I(R){return{status:"rejected",reason:R}}
return G?G:function(R){var Z=this;R=Array.from(R,function(K){return Z.resolve(K).then(c,I)});
return Z.all(R)}});
YX("Number.parseInt",function(G){return G||parseInt});
_._DumpException=window._DumpException||function(G){throw G;};
window._DumpException=_._DumpException;var eCi=window.ytcsi;eCi&&typeof eCi.tick==="function"&&eCi.tick("rses_dpj");var NbV,Q2,mV,a3,li0,q0V,wrA,FgV,$F,npK;NbV=NbV||{};_.Rq=this||self;_.lr=function(G,c,I){G=G.split(".");I=I||_.Rq;for(var R;G.length&&(R=G.shift());)G.length||c===void 0?I[R]&&I[R]!==Object.prototype[R]?I=I[R]:I=I[R]={}:I[R]=c};
Q2=function(G,c){var I=_.Yc("WIZ_global_data.oxN3nb");G=I&&I[G];return G!=null?G:c};
mV=_.Rq._F_toggles_default_kevlar_base||[];a3=function(){};
a3.get=function(){return null};
_.OsU=null;_.Yc=function(G,c){G=G.split(".");c=c||_.Rq;for(var I=0;I<G.length;I++)if(c=c[G[I]],c==null)return null;return c};
_.To=function(G){G.instance_=void 0;G.getInstance=function(){return G.instance_?G.instance_:G.instance_=new G}};
_.Gr=function(G){var c=typeof G;return c!="object"?c:G?Array.isArray(G)?"array":c:"null"};
_.xp=function(G){var c=_.Gr(G);return c=="array"||c=="object"&&typeof G.length=="number"};
_.db=function(G){var c=typeof G;return c=="object"&&G!=null||c=="function"};
_.XB=function(G){return Object.prototype.hasOwnProperty.call(G,li0)&&G[li0]||(G[li0]=++q0V)};
li0="closure_uid_"+(Math.random()*1E9>>>0);q0V=0;wrA=function(G,c,I){return G.call.apply(G.bind,arguments)};
FgV=function(G,c,I){if(!G)throw Error();if(arguments.length>2){var R=Array.prototype.slice.call(arguments,2);return function(){var Z=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Z,R);return G.apply(c,Z)}}return function(){return G.apply(c,arguments)}};
_.WD=function(G,c,I){_.WD=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?wrA:FgV;return _.WD.apply(null,arguments)};
_.Ts=function(G,c){var I=Array.prototype.slice.call(arguments,1);return function(){var R=I.slice();R.push.apply(R,arguments);return G.apply(this,R)}};
_.OH=function(){return Date.now()};
$F=function(G){return G};
_.eg=function(G,c){function I(){}
I.prototype=c.prototype;G.superClass_=c.prototype;G.prototype=new I;G.prototype.constructor=G;G.base=function(R,Z,K){for(var m=Array(arguments.length-2),a=2;a<arguments.length;a++)m[a-2]=arguments[a];return c.prototype[Z].apply(R,m)}};
npK=function(G){return G};var vpB,DfA;_.r=function(G,c,I,R){var Z=arguments.length,K=Z<3?c:R===null?R=Object.getOwnPropertyDescriptor(c,I):R,m;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")K=Reflect.decorate(G,c,I,R);else for(var a=G.length-1;a>=0;a--)if(m=G[a])K=(Z<3?m(K):Z>3?m(c,I,K):m(c,I))||K;Z>3&&K&&Object.defineProperty(c,I,K)};
_.h=function(G,c){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(G,c)};
vpB=function(G,c){if(c!==null&&c!==void 0){if(typeof c!=="object"&&typeof c!=="function")throw new TypeError("A");if(I===void 0){if(!Symbol.dispose)throw new TypeError("C");var I=c[Symbol.dispose]}if(typeof I!=="function")throw new TypeError("D");G.stack.push({value:c,dispose:I,async:!1})}return c};
DfA=function(G){function c(K){G.error=G.hasError?new SuppressedError(K,G.error,"An error was suppressed during disposal."):K;G.hasError=!0}
function I(){for(;R=G.stack.pop();)try{if(!R.async&&Z===1)return Z=0,G.stack.push(R),Promise.resolve().then(I);if(R.dispose){var K=R.dispose.call(R.value);if(R.async)return Z|=2,Promise.resolve(K).then(I,function(m){c(m);return I()})}else Z|=1}catch(m){c(m)}if(Z===1)return G.hasError?Promise.reject(G.error):Promise.resolve();
if(G.hasError)throw G.error;}
var R,Z=0;I()};var opi="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");G8B()&&opi.push("details:not(:has(summary))");var Ii8=opi.join(",");_.eg(_.G8,Error);_.G8.prototype.name="CustomError";var Uf0;var uBe=void 0,bA0,k8k=typeof TextDecoder!=="undefined",OAO,Tbf=typeof String.prototype.isWellFormed==="function",aiC=typeof TextEncoder!=="undefined";var sqi;_.zB=function(G){for(var c=[],I=0,R=0;R<G.length;R++){var Z=G.charCodeAt(R);Z<128?c[I++]=Z:(Z<2048?c[I++]=Z>>6|192:((Z&64512)==55296&&R+1<G.length&&(G.charCodeAt(R+1)&64512)==56320?(Z=65536+((Z&1023)<<10)+(G.charCodeAt(++R)&1023),c[I++]=Z>>18|240,c[I++]=Z>>12&63|128):c[I++]=Z>>12|224,c[I++]=Z>>6&63|128),c[I++]=Z&63|128)}return c};
sqi=function(G){for(var c=[],I=0,R=0;I<G.length;){var Z=G[I++];if(Z<128)c[R++]=String.fromCharCode(Z);else if(Z>191&&Z<224){var K=G[I++];c[R++]=String.fromCharCode((Z&31)<<6|K&63)}else if(Z>239&&Z<365){K=G[I++];var m=G[I++],a=G[I++];Z=((Z&7)<<18|(K&63)<<12|(m&63)<<6|a&63)-65536;c[R++]=String.fromCharCode(55296+(Z>>10));c[R++]=String.fromCharCode(56320+(Z&1023))}else K=G[I++],m=G[I++],c[R++]=String.fromCharCode((Z&15)<<12|(K&63)<<6|m&63)}return c.join("")};var Nf=String.prototype.trim?function(G){return G.trim()}:function(G){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(G)[1]},LgK=/&/g,AUK=/</g,$fe=/>/g,S0K=/"/g,pri=/'/g,Mrk=/\x00/g,VrA=/[\x00&<>"']/;var NO=!!(mV[0]>>17&1),zCK=!!(mV[0]&4096),Ep9=!!(mV[0]>>18&1),JU9=!!(mV[0]&8),WgK=!!(mV[0]&2),iAK=!!(mV[0]&4),fi2=!!(mV[0]&16),BbT=!!(mV[0]&256),rU2=!!(mV[0]&32);var nA,jq0,xfA,tr0,$T8,ujT;nA=NO?Ep9:Q2(610401301,!1);jq0=NO?JU9:Q2(772657768,!1);xfA=NO?WgK:Q2(513659523,!1);tr0=NO?zCK||!iAK:Q2(568333945,!0);$T8=NO?fi2:Q2(1331761403,!1);ujT=NO?zCK||!BbT:Q2(748402147,!0);_.lU=NO?rU2:Q2(824648567,!1);var Di,hC2=_.Rq.navigator;Di=hC2?hC2.userAgentData||null:null;var QG;_.JU=function(G,c){return Array.prototype.indexOf.call(G,c,void 0)};
_.K4=function(G,c,I){Array.prototype.forEach.call(G,c,I)};
_.qO=function(G,c,I){return Array.prototype.filter.call(G,c,I)};
_.jB=function(G,c,I){return Array.prototype.map.call(G,c,I)};
QG=function(G,c,I){return Array.prototype.some.call(G,c,I)};
_.h4O=function(G,c,I){return Array.prototype.every.call(G,c,I)};var wI=function(G){wI[" "](G);return G};
wI[" "]=function(){};
var j2r=function(G,c){try{return wI(G[c]),!0}catch(I){}return!1},Dtq=function(G,c,I,R){R=R?R(c):c;
return Object.prototype.hasOwnProperty.call(G,R)?G[R]:G[R]=I(c)};var dfK,ev,CTK,HAN,yUV,gpK,YYb,Y0i,GVk,ceV,mLp,R9N,ZNi,mkT,ap2,TeV;_.bcg=function(){return _.Rq.navigator||null};
dfK=q08();_.FY=wrg();ev=U0("Edge");CTK=ev||_.FY;_.ny=U0("Gecko")&&!(_.er(_.wb(),"WebKit")&&!U0("Edge"))&&!(U0("Trident")||U0("MSIE"))&&!U0("Edge");_.vC=_.er(_.wb(),"WebKit")&&!U0("Edge");HAN=_.vC&&U0("Mobile");_.Xr0=_.k8f();yUV=_.sqr();gpK=($p()?Di.platform==="Linux":U0("Linux"))||_.Lg0();YYb=_.uBU();Y0i=bAq();GVk=U0("iPad");ceV=U0("iPod");_.Ip0=_.Sr();mLp=_.er(_.wb(),"KaiOS");R9N=function(){var G=_.Rq.document;return G?G.documentMode:void 0};
a:{var KAk="",P2N=function(){var G=_.wb();if(_.ny)return/rv:([^\);]+)(\)|;)/.exec(G);if(ev)return/Edge\/([\d\.]+)/.exec(G);if(_.FY)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(G);if(_.vC)return/WebKit\/(\S+)/.exec(G);if(dfK)return/(?:Version)[ \/]?(\S+)/.exec(G)}();
P2N&&(KAk=P2N?P2N[1]:"");if(_.FY){var Q0A=R9N();if(Q0A!=null&&Q0A>parseFloat(KAk)){ZNi=String(Q0A);break a}}ZNi=KAk}mkT=ZNi;ap2={};_.Dk=function(G){return Dtq(ap2,G,function(){return _.lT(mkT,G)>=0})};
if(_.Rq.document&&_.FY){var ONi=R9N();TeV=ONi?ONi:parseInt(mkT,10)||void 0}else TeV=void 0;_.e9N=TeV;var IYU,RRb,NeK;_.o3=bT();IYU=bAq()||U0("iPod");RRb=U0("iPad");NeK=_.vpO();_.UH=_.LA();_.Y6=_.npp()&&!_.Sr();var lpK,uU,aLg,PX0,w0V,qKK;lpK={};uU=null;aLg=_.ny||_.vC||typeof _.Rq.btoa=="function";_.zr=function(G,c){c===void 0&&(c=0);qKK();c=lpK[c];for(var I=Array(Math.floor(G.length/3)),R=c[64]||"",Z=0,K=0;Z<G.length-2;Z+=3){var m=G[Z],a=G[Z+1],O=G[Z+2],N=c[m>>2];m=c[(m&3)<<4|a>>4];a=c[(a&15)<<2|O>>6];O=c[O&63];I[K++]=N+m+a+O}N=0;O=R;switch(G.length-Z){case 2:N=G[Z+1],O=c[(N&15)<<2]||R;case 1:G=G[Z],I[K]=c[G>>2]+c[(G&3)<<4|N>>4]+O+R}return I.join("")};
PX0=function(G){var c="";w0V(G,function(I){c+=String.fromCharCode(I)});
return c};
_.ivi=function(G){var c=[];w0V(G,function(I){c.push(I)});
return c};
_.Yp=function(G){var c=G.length,I=c*3/4;I%3?I=Math.floor(I):_.aq("=.",G[c-1])&&(I=_.aq("=.",G[c-2])?I-2:I-1);var R=new Uint8Array(I),Z=0;w0V(G,function(K){R[Z++]=K});
return Z!==I?R.subarray(0,Z):R};
w0V=function(G,c){function I(O){for(;R<G.length;){var N=G.charAt(R++),q=uU[N];if(q!=null)return q;if(!_.mg(N))throw Error("H`"+N);}return O}
qKK();for(var R=0;;){var Z=I(-1),K=I(0),m=I(64),a=I(64);if(a===64&&Z===-1)break;c(Z<<2|K>>4);m!=64&&(c(K<<4&240|m>>2),a!=64&&c(m<<6&192|a))}};
qKK=function(){if(!uU){uU={};for(var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),c=["+/=","+/","-_=","-_.","-_"],I=0;I<5;I++){var R=G.concat(c[I].split(""));lpK[I]=R;for(var Z=0;Z<R.length;Z++){var K=R[Z];uU[K]===void 0&&(uU[K]=Z)}}}};var gp0=typeof Uint8Array!=="undefined",rUT=!_.FY&&typeof btoa==="function",jqr=/[-_.]/g,fiT={"-":"+",_:"/",".":"="},Ae={};var LN,nKk;LN=function(G,c){if(c!==Ae)throw Error("J");this.JSC$8989_value_=G;if(G!=null&&G.length===0)throw Error("I");};
_.Si=function(){return FAK||(FAK=new LN(null,Ae))};
nKk=function(G){return new Uint8Array(h0r(G)||0)};
LN.prototype.isEmpty=function(){return this.JSC$8989_value_==null};
LN.prototype.sizeBytes=function(){var G=h0r(this);return G?G.length:0};
var h0r=function(G){if(Ae!==Ae)throw Error("J");var c=G.JSC$8989_value_;c==null||gp0&&c!=null&&c instanceof Uint8Array||(typeof c==="string"?c=xfg(c):(_.Gr(c),c=null));return c==null?c:G.JSC$8989_value_=c},FAK;var hCT=void 0;var KN=typeof Symbol==="function"&&typeof Symbol()==="symbol",vKV=R0("jas",void 0,!0),reg=R0(void 0,"0di"),ZJ=R0(void 0,"1oa"),p1=R0(void 0,Symbol()),Z1O=R0(void 0,"0ub"),PHO=R0(void 0,"0ubs"),Azg=R0(void 0,"0ubsb"),krr=R0(void 0,"0actk"),kF=R0("m_m","messagePrototypeMarker",!0),FWr=R0(void 0,"vps"),cdT=R0();var HAA,CT0,hd,Dk0;HAA={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};CT0=Object.defineProperties;_.P0=KN?vKV:"internalArrayState";Dk0=[];a0(Dk0,7);hd=Object.freeze(Dk0);var sd={},o0={},oKk=function(G,c,I){this.iterable=G;this.mapper=c;this.thisArg=I};
oKk.prototype.next=function(){var G=this.iterable.next();G.done||(G.value=this.mapper.call(this.thisArg,G.value));return G};
oKk.prototype[Symbol.iterator]=function(){return this};
var Uke=Object.freeze({}),VB={};_.uTe=EK(function(G){return G!==null&&G!==void 0});var ZNr=EK(function(G){return typeof G==="number"}),R9A=EK(function(G){return typeof G==="string"}),P2A=EK(function(G){return typeof G==="boolean"}),bNi=EK(function(G){return G!=null&&typeof G==="object"&&typeof G.then==="function"}),CWU=EK(function(G){return typeof G==="function"}),be=EK(function(G){return!!G&&(typeof G==="object"||typeof G==="function")});var KAf=typeof _.Rq.BigInt==="function"&&typeof _.Rq.BigInt(0)==="bigint";var EKq=EK(function(G){return KAf?G>=kVT&&G<=s0e:G[0]==="-"?Q0g(G,LA0):Q0g(G,AeN)}),LA0=Number.MIN_SAFE_INTEGER.toString(),kVT=KAf?BigInt(Number.MIN_SAFE_INTEGER):void 0,AeN=Number.MAX_SAFE_INTEGER.toString(),s0e=KAf?BigInt(Number.MAX_SAFE_INTEGER):void 0;var $kV=typeof Uint8Array.prototype.slice==="function",W0=0,i2=0,Te8;var Od,qg,cu,lH,oKf;Od=typeof BigInt==="function"?BigInt.asIntN:void 0;_.w7=typeof BigInt==="function"?BigInt.asUintN:void 0;qg=Number.isSafeInteger;cu=Number.isFinite;lH=Math.trunc;oKf=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var nFg={};var gKA={},SK0=function(){try{var G=function(){return dPT(Map,[],this.constructor)};
_.u(G,Map);wI(new G);return!1}catch(c){return!0}}(),bU=function(){this.JSC$9008_map_=new Map};
_.P=bU.prototype;_.P.get=function(G){return this.JSC$9008_map_.get(G)};
_.P.set=function(G,c){this.JSC$9008_map_.set(G,c);this.size=this.JSC$9008_map_.size;return this};
_.P.delete=function(G){G=this.JSC$9008_map_.delete(G);this.size=this.JSC$9008_map_.size;return G};
_.P.clear=function(){this.JSC$9008_map_.clear();this.size=this.JSC$9008_map_.size};
_.P.has=function(G){return this.JSC$9008_map_.has(G)};
_.P.entries=function(){return this.JSC$9008_map_.entries()};
_.P.keys=function(){return this.JSC$9008_map_.keys()};
_.P.values=function(){return this.JSC$9008_map_.values()};
_.P.forEach=function(G,c){return this.JSC$9008_map_.forEach(G,c)};
bU.prototype[Symbol.iterator]=function(){return this.entries()};
var ko=function(){if(SK0)return Object.setPrototypeOf(bU.prototype,Map.prototype),Object.defineProperties(bU.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),bU;var G=function(){return dPT(Map,[],this.constructor)};
_.u(G,Map);return G}(),Ad=function(G,c,I,R){I=I===void 0?dkA:I;
R=R===void 0?dkA:R;var Z=ko.call(this)||this;Z.arrayState=G[_.P0]|0;Z.valueCtor=c;Z.keyToApi=I;Z.valueToApi=Z.valueCtor?HNr:R;for(var K=0;K<G.length;K++){var m=G[K],a=I(m[0],!1,!0),O=m[1];c?O===void 0&&(O=null):O=R(m[1],!1,!0,void 0,void 0,Z.arrayState);ko.prototype.set.call(Z,a,O)}return Z};
_.u(Ad,ko);var p0V=function(G){if(G.arrayState&2)throw Error("N");},wuT=function(G,c){return Nk(Array.from(ko.prototype.entries.call(G),c))};
_.P=Ad.prototype;_.P.clear=function(){p0V(this);ko.prototype.clear.call(this)};
_.P.delete=function(G){p0V(this);return ko.prototype.delete.call(this,this.keyToApi(G,!0,!1))};
_.P.entries=function(){if(this.valueCtor){var G=ko.prototype.keys.call(this);G=new oKk(G,X0A,this)}else G=ko.prototype.entries.call(this);return G};
_.P.values=function(){if(this.valueCtor){var G=ko.prototype.keys.call(this);G=new oKk(G,Ad.prototype.get,this)}else G=ko.prototype.values.call(this);return G};
_.P.forEach=function(G,c){this.valueCtor?ko.prototype.forEach.call(this,function(I,R,Z){G.call(c,Z.get(R),R,Z)}):ko.prototype.forEach.call(this,G,c)};
_.P.set=function(G,c){p0V(this);G=this.keyToApi(G,!0,!1);return G==null?this:c==null?(ko.prototype.delete.call(this,G),this):ko.prototype.set.call(this,G,this.valueToApi(c,!0,!0,this.valueCtor,!1,this.arrayState))};
_.P.has=function(G){return ko.prototype.has.call(this,this.keyToApi(G,!1,!1))};
_.P.get=function(G){G=this.keyToApi(G,!1,!1);var c=ko.prototype.get.call(this,G);if(c!==void 0){var I=this.valueCtor;return I?(I=this.valueToApi(c,!1,!0,I,this.callToMutableOnAccess,this.arrayState),I!==c&&ko.prototype.set.call(this,G,I),I):c}};
Ad.prototype[Symbol.iterator]=function(){return this.entries()};
Ad.prototype.toJSON=void 0;var yeU;var T78=function(){},mgB=function(G,c){for(var I in G)!isNaN(I)&&c(G,+I,G[I])},O1U=function(G){var c=new T78;
mgB(G,function(I,R,Z){c[R]=CN(Z)});
c.reviveUnknownFields=G.reviveUnknownFields;return c},IWi={reviveIntoImmutable:!0};var aWb;var vFC,Dgq;var Mik,g7,Ag,VG,ViV,MO,pk,z9T,EK0,J7,Jep,WC,BC,rI;Mik=_.Je(0);_.sH={};_.Ly=function(G,c,I,R,Z){c=g7(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,I,Z);if(c!==null||R&&G.noLegacyNull!==o0)return c};
g7=function(G,c,I,R){if(c===-1)return null;var Z=c+(I?0:-1),K=G.length-1;if(!(K<1+(I?0:-1))){if(Z>=K){var m=G[K];if(m!=null&&typeof m==="object"&&m.constructor===Object){I=m[c];var a=!0}else if(Z===K)I=m;else return}else I=G[Z];if(R&&I!=null){R=R(I);if(R==null)return R;if(!Object.is(R,I))return a?m[c]=R:G[Z]=R,R}return I}};
_.Uo=function(G,c,I,R){r7(G);var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;td(Z,Z[_.P0]|0,c,I,R);return G};
_.A7=function(G,c,I){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return B78(G,G[_.P0]|0,c,I)!==void 0};
_.$o=function(G,c,I,R){var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return B78(Z,Z[_.P0]|0,c,VG(G,R,I))!==void 0};
_.qw=function(G){return G===Uke?2:4};
_.Sg=function(G,c){G=_.Ly(G,c,void 0,void 0,z0f);return G==null?_.Si():G};
Ag=function(G,c,I,R){r7(G);var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=Z[_.P0]|0;if(R==null){var m=WWb(Z);if(i1U(m,Z,K,I)===c)m.set(I,0);else return G}else K=fWC(Z,K,I,c);td(Z,K,c,R);return G};
_.oR=function(G,c,I,R){var Z=G[_.P0]|0,K=zV(Z);Z=fWC(G,Z,I,c,K);td(G,Z,c,R,K)};
VG=function(G,c,I){return _.py(G,c)===I?I:-1};
_.py=function(G,c){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return i1U(WWb(G),G,void 0,c,void 0)};
ViV=function(G,c,I){var R=G[_.P0]|0,Z=zV(R),K=g7(G,I,Z);if(K!=null&&K[kF]===sd){if(!b2(K))return Bu(K),K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var m=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(K)&&(m=K);if(m){var a=m[_.P0]|0;a&2&&(m=f1(m,a))}m=Wu(m,c);m!==K&&td(G,R,I,m,Z);return m};
_.Dw=function(G,c,I,R){var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=Z[_.P0]|0;c=B78(Z,K,c,I,R);if(c==null)return c;K=Z[_.P0]|0;if(!b2(G,K)){var m=C2i(c);m!==c&&(Bu(G)&&(Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=Z[_.P0]|0),c=m,K=td(Z,K,I,c,R),jG(Z,K))}return c};
_.lR=function(G,c,I,R){var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rdb(G,Z,Z[_.P0]|0,c,I,R,!1,!0)};
_.Az=function(G,c,I,R){I=jug(I);_.Uo(G,c,I,R);I&&!b2(I)&&jG(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
_.$N=function(G,c,I,R){R=jug(R);Ag(G,c,I,R);R&&!b2(R)&&jG(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
MO=function(G,c,I){r7(G);var R=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=R[_.P0]|0;if(I==null)return td(R,Z,c),G;for(var K=I===hd?7:I[_.P0]|0,m=K,a=y$(K),O=a||Object.isFrozen(I),N=!0,q=!0,w=0;w<I.length;w++){var F=I[w];a||(F=b2(F),N&&(N=!F),q&&(q=F))}a||(K=N?13:5,K=q?K&-4097:K|4096);O&&K===m||(I=CN(I),m=0,K=Hu(K,Z));K!==m&&a0(I,K);Z=td(R,Z,c,I);2&K||!(4096&K||16&K)||jG(R,Z);return G};
pk=function(G,c,I,R){tGA(G,c,I,R);return G};
z9T=function(G,c,I){tGA(G,c,V2,void 0,I,1,!0);return G};
_.zo=function(G,c,I){G=_.Ly(G,c,void 0,I);c=typeof G;G=G==null?G:c==="bigint"?_.Je((0,_.w7)(64,G)):_.Ru(G)?c==="string"?_.z9B(G):_.Mif(G):void 0;return G};
_.EH=function(G,c){var I=I===void 0?!1:I;var R;return(R=_.Dkr(_.Ly(G,c)))!=null?R:I};
_.wF=function(G,c,I){I=I===void 0?0:I;var R;return(R=_.au(_.Ly(G,c)))!=null?R:I};
EK0=function(G,c){var I=I===void 0?0:I;G=_.uTU(_.Ly(G,c));return G!=null?G:I};
J7=function(G,c,I){I=I===void 0?Mik:I;var R;return(R=_.iNT(_.Ly(G,c)))!=null?R:I};
Jep=function(G){var c=c===void 0?Mik:c;var I;return(I=_.zo(G,23))!=null?I:c};
WC=function(G,c){var I=I===void 0?0:I;var R;return(R=_.Ly(G,c,void 0,void 0,_.ge))!=null?R:I};
_.iU=function(G,c,I,R){I=I===void 0?"":I;var Z;return(Z=_.Ud(_.Ly(G,c,R)))!=null?Z:I};
_.fy=function(G,c){var I=I===void 0?0:I;var R;return(R=_.Pu(_.Ly(G,c)))!=null?R:I};
BC=function(G,c){var I=I===void 0?"0":I;G=WA8(_.Ly(G,c),!0);return G!=null?G:I};
_.WAV=function(G,c,I){G=_.Xj(G,c,_.Ud,3,!0);Y0r(G,I);return G[I]};
rI=function(G,c,I){return _.iU(G,VG(G,I,c))};
_.jg=function(G,c,I,R){return _.Dw(G,c,VG(G,R,I),void 0)};
_.AK=function(G,c){return _.Ud(_.Ly(G,c,void 0,_.sH))};
_.DL=function(G,c,I){return _.Uo(G,c,vK8(I))};
_.DZ=function(G,c,I){return _.G6(G,c,vK8(I),!1)};
_.xo=function(G,c,I){return _.Uo(G,c,_.mW(I))};
_.Ef=function(G,c,I){return _.Uo(G,c,Ng(I))};
_.Eq=function(G,c,I){return _.Uo(G,c,DW(I))};
_.Xt=function(G,c,I,R){return _.G6(G,c,DW(I),"",R)};
_.oz=function(G,c,I){return _.Uo(G,c,I==null?I:_.K1(I))};
_.t7=function(G,c,I){return _.G6(G,c,I==null?I:_.K1(I),0)};var KG=function(G,c,I){this.buffer=G;if(I&&!c)throw Error();this.JSC$9020_isImmutable=c};var iN2=function(G,c,I,R){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9023_start_=0;this.init(G,c,I,R)},BeA,h7,reA,yz8,j02,xkN,tiA,h9K,FoT,fpe;
_.P=iN2.prototype;_.P.init=function(G,c,I,R){var Z=R===void 0?{}:R;R=Z.aliasBytesFields===void 0?!1:Z.aliasBytesFields;Z=Z.treatNewDataAsImmutable===void 0?!1:Z.treatNewDataAsImmutable;this.aliasBytesFields=R;this.treatNewDataAsImmutable=Z;G&&(G=dg0(G,this.treatNewDataAsImmutable),this.bytes_=G.buffer,this.bytesAreImmutable_=G.JSC$9020_isImmutable,this.JSC$9023_start_=c||0,this.end_=I!==void 0?this.JSC$9023_start_+I:this.bytes_.length,this.cursor_=this.JSC$9023_start_)};
_.P.free=function(){this.clear();fpe.length<100&&fpe.push(this)};
_.P.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9023_start_=0;this.aliasBytesFields=!1};
_.P.reset=function(){this.cursor_=this.JSC$9023_start_};
_.P.atEnd=function(){return this.cursor_==this.end_};
_.DJ=function(G,c){var I=0,R=0,Z=0,K=G.bytes_,m=G.cursor_;do{var a=K[m++];I|=(a&127)<<Z;Z+=7}while(Z<32&&a&128);if(Z>32)for(R|=(a&127)>>4,Z=3;Z<32&&a&128;Z+=7)a=K[m++],R|=(a&127)<<Z;h7(G,m);if(!(a&128))return c(I>>>0,R>>>0);throw Error();};
BeA=function(G){return _.DJ(G,function(c,I){return w08(c,I,lpp)})};
h7=function(G,c){G.cursor_=c;if(c>G.end_)throw Error();};
_.dI=function(G){var c=G.bytes_,I=G.cursor_,R=c[I++],Z=R&127;if(R&128&&(R=c[I++],Z|=(R&127)<<7,R&128&&(R=c[I++],Z|=(R&127)<<14,R&128&&(R=c[I++],Z|=(R&127)<<21,R&128&&(R=c[I++],Z|=R<<28,R&128&&c[I++]&128&&c[I++]&128&&c[I++]&128&&c[I++]&128&&c[I++]&128)))))throw Error();h7(G,I);return Z};
_.Cy=function(G){var c=G.bytes_,I=G.cursor_,R=c[I],Z=c[I+1],K=c[I+2];c=c[I+3];h7(G,G.cursor_+4);return(R<<0|Z<<8|K<<16|c<<24)>>>0};
reA=function(G){var c=_.Cy(G);G=_.Cy(G);return e9A(c,G)};
yz8=function(G){var c=_.Cy(G);G=_.Cy(G);return Nep(c,G)};
j02=function(G){var c=_.Cy(G);G=(c>>31)*2+1;var I=c>>>23&255;c&=8388607;return I==255?c?NaN:G*Infinity:I==0?G*1.401298464324817E-45*c:G*Math.pow(2,I-150)*(c+8388608)};
xkN=function(G){var c=_.Cy(G),I=_.Cy(G);G=(I>>31)*2+1;var R=I>>>20&2047;c=4294967296*(I&1048575)+c;return R==2047?c?NaN:G*Infinity:R==0?G*4.9E-324*c:G*Math.pow(2,R-1075)*(c+4503599627370496)};
tiA=function(G){for(var c=0,I=G.cursor_,R=I+10,Z=G.bytes_;I<R;){var K=Z[I++];c|=K;if((K&128)===0)return h7(G,I),!!(c&127)}throw Error();};
h9K=function(G,c){if(c<0)throw Error();var I=G.cursor_;c=I+c;if(c>G.end_)throw Error();G.cursor_=c;return I};
FoT=function(G,c){if(c==0)return _.Si();var I=h9K(G,c);G.aliasBytesFields&&G.bytesAreImmutable_?I=G.bytes_.subarray(I,I+c):(G=G.bytes_,c=I+c,I=I===c?new Uint8Array(0):$kV?G.slice(I,c):new Uint8Array(G.subarray(I,c)));return I.length==0?_.Si():new LN(I,Ae)};
fpe=[];var C2p=function(G,c,I,R){if(fpe.length){var Z=fpe.pop();Z.init(G,c,I,R);G=Z}else G=new iN2(G,c,I,R);this.decoder_=G;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;dkN(this,R)},dkN=function(G,c){c=c===void 0?{}:c;
G.discardUnknownFields=c.discardUnknownFields===void 0?!1:c.discardUnknownFields},DNi=function(G,c,I,R){if(HN0.length){var Z=HN0.pop();
dkN(Z,R);Z.decoder_.init(G,c,I,R);return Z}return new C2p(G,c,I,R)},lJp,wyB,HC,X0N,HN0;
C2p.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;HN0.length<100&&HN0.push(this)};
C2p.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
lJp=function(G){if(G.decoder_.atEnd())return!1;G.fieldCursor_=G.decoder_.cursor_;var c=_.dI(G.decoder_)>>>0,I=c>>>3;c&=7;if(!(c>=0&&c<=5))throw Error();if(I<1)throw Error();G.nextField_=I;G.nextWireType_=c;return!0};
wyB=function(G){switch(G.nextWireType_){case 0:G.nextWireType_!=0?wyB(G):tiA(G.decoder_);break;case 1:G=G.decoder_;h7(G,G.cursor_+8);break;case 2:if(G.nextWireType_!=2)wyB(G);else{var c=_.dI(G.decoder_)>>>0;G=G.decoder_;h7(G,G.cursor_+c)}break;case 5:G=G.decoder_;h7(G,G.cursor_+4);break;case 3:c=G.nextField_;do{if(!lJp(G))throw Error();if(G.nextWireType_==4){if(G.nextField_!=c)throw Error();break}wyB(G)}while(1);break;default:throw Error();}};
HC=function(G,c,I){var R=G.decoder_.end_,Z=_.dI(G.decoder_)>>>0;Z=G.decoder_.cursor_+Z;var K=Z-R;K<=0&&(G.decoder_.end_=Z,I(c,G,void 0,void 0,void 0),K=Z-G.decoder_.cursor_);if(K)throw Error();G.decoder_.cursor_=Z;G.decoder_.end_=R;return c};
X0N=function(G){var c=_.dI(G.decoder_)>>>0;G=G.decoder_;var I=h9K(G,c);G=G.bytes_;if(k8k){var R=G,Z;(Z=bA0)||(Z=bA0=new TextDecoder("utf-8",{fatal:!0}));c=I+c;R=I===0&&c===R.length?R:R.subarray(I,c);try{var K=Z.decode(R)}catch(N){if(uBe===void 0){try{Z.decode(new Uint8Array([128]))}catch(q){}try{Z.decode(new Uint8Array([97])),uBe=!0}catch(q){uBe=!1}}!uBe&&(bA0=void 0);throw N;}}else{K=I;c=K+c;I=[];for(var m=null,a,O;K<c;)a=G[K++],a<128?I.push(a):a<224?K>=c?cr():(O=G[K++],a<194||(O&192)!==128?(K--,
cr()):I.push((a&31)<<6|O&63)):a<240?K>=c-1?cr():(O=G[K++],(O&192)!==128||a===224&&O<160||a===237&&O>=160||((Z=G[K++])&192)!==128?(K--,cr()):I.push((a&15)<<12|(O&63)<<6|Z&63)):a<=244?K>=c-2?cr():(O=G[K++],(O&192)!==128||(a<<28)+(O-144)>>30!==0||((Z=G[K++])&192)!==128||((R=G[K++])&192)!==128?(K--,cr()):(a=(a&7)<<18|(O&63)<<12|(Z&63)<<6|R&63,a-=65536,I.push((a>>10&1023)+55296,(a&1023)+56320))):cr(),I.length>=8192&&(m=mfg(m,I),I.length=0);K=mfg(m,I)}return K};
_.yee=function(G){var c=_.dI(G.decoder_)>>>0;return FoT(G.decoder_,c)};
_.gKN=function(G,c,I){var R=_.dI(G.decoder_)>>>0;for(R=G.decoder_.cursor_+R;G.decoder_.cursor_<R;)I.push(c(G.decoder_))};
HN0=[];var YKB=function(G,c){this.JSC$9030_lo=G>>>0;this.JSC$9030_hi=c>>>0},zfU=function(G){G=BigInt.asUintN(64,G);
return new YKB(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)))},XuO=function(G){if(!G)return Grp||(Grp=new YKB(0,0));
if(!/^\d+$/.test(G))return null;te(G);return new YKB(W0,i2)},Grp,V_p=function(G,c){this.JSC$9032_lo=G>>>0;
this.JSC$9032_hi=c>>>0},CHB=function(G){if(!G)return cd2||(cd2=new V_p(0,0));
if(!/^-?\d+$/.test(G))return null;te(G);return new V_p(W0,i2)},cd2;var XY=function(){this.JSC$9034_buffer_=[]},Fx,vy,IWp;
XY.prototype.length=function(){return this.JSC$9034_buffer_.length};
XY.prototype.end=function(){var G=this.JSC$9034_buffer_;this.JSC$9034_buffer_=[];return G};
Fx=function(G,c,I){for(;I>0||c>127;)G.JSC$9034_buffer_.push(c&127|128),c=(c>>>7|I<<25)>>>0,I>>>=7;G.JSC$9034_buffer_.push(c)};
vy=function(G,c){for(;c>127;)G.JSC$9034_buffer_.push(c&127|128),c>>>=7;G.JSC$9034_buffer_.push(c)};
_.Jzq=function(G,c){if(c>=0)vy(G,c);else{for(var I=0;I<9;I++)G.JSC$9034_buffer_.push(c&127|128),c>>=7;G.JSC$9034_buffer_.push(1)}};
IWp=function(G,c){te(c);qK0(function(I,R){Fx(G,I>>>0,R>>>0)})};
XY.prototype.writeUint8=function(G){this.JSC$9034_buffer_.push(G>>>0&255)};
_.qN=function(G,c){G.JSC$9034_buffer_.push(c>>>0&255);G.JSC$9034_buffer_.push(c>>>8&255);G.JSC$9034_buffer_.push(c>>>16&255);G.JSC$9034_buffer_.push(c>>>24&255)};
XY.prototype.writeInt8=function(G){this.JSC$9034_buffer_.push(G>>>0&255)};var R0k,OT,iGO,rz0,G6p;R0k=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new XY};
OT=function(G,c){c.length!==0&&(G.blocks_.push(c),G.totalLength_+=c.length)};
_.Z1B=function(G,c){_.l5(G,c,2);c=G.encoder_.end();OT(G,c);c.push(G.totalLength_);return c};
_.KWi=function(G,c){var I=c.pop();for(I=G.totalLength_+G.encoder_.length()-I;I>127;)c.push(I&127|128),I>>>=7,G.totalLength_++;c.push(I);G.totalLength_++};
_.l5=function(G,c,I){vy(G.encoder_,c*8+I)};
iGO=function(G,c,I){if(I!=null)switch(yd8(I),_.l5(G,c,1),typeof I){case "number":G=G.encoder_;mkB(I);_.qN(G,W0);_.qN(G,i2);break;case "bigint":I=zfU(I);G=G.encoder_;c=I.JSC$9030_hi;_.qN(G,I.JSC$9030_lo);_.qN(G,c);break;default:I=XuO(I),G=G.encoder_,c=I.JSC$9030_hi,_.qN(G,I.JSC$9030_lo),_.qN(G,c)}};
rz0=function(G,c,I){_.l5(G,c,2);vy(G.encoder_,I.length);OT(G,G.encoder_.end());OT(G,I)};
G6p=function(G,c,I,R){I!=null&&(c=_.Z1B(G,c),R(I,G),_.KWi(G,c))};var gFi,PHB,QuB,mgT,aWe,O1e,e00,lWN,qd0;gFi=Py();PHB=Py();QuB=Py();mgT=Py();aWe=Py();_.T7V=Py();_.y2=Py();O1e=Py();e00=Py();_.N7A=Py();lWN=Py();qd0=Py();_.wu2=Py();_.FW0=Py();_.aR=function(G,c,I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G,c,I)};
_.aR.prototype.toJSON=function(){return Jd(this)};
_.aR.prototype.serialize=function(G){return JSON.stringify(Jd(this,G))};
var ITA=function(G,c){if(c==null||c=="")return new G;c=JSON.parse(c);if(!Array.isArray(c))throw Error("V");return new G(yU8(c))};
_.aR.prototype.getExtension=function(G){KWr(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G.fieldIndex);R0f(this,G.fieldIndex);return G.ctor?G.isRepeated?G.getExtensionFn(this,G.ctor,G.fieldIndex,_.qw(),G.JSC$9045_hasMessageId):G.getExtensionFn(this,G.ctor,G.fieldIndex,G.JSC$9045_hasMessageId):G.isRepeated?G.getExtensionFn(this,G.fieldIndex,_.qw(),G.JSC$9045_hasMessageId):G.getExtensionFn(this,G.fieldIndex,G.defaultValue,G.JSC$9045_hasMessageId)};
_.aR.prototype.clone=function(){var G=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=G[_.P0]|0;return Sdb(this,G,c)?$gq(this,G,!0):new this.constructor(f1(G,c,!1))};
_.aR.prototype[kF]=sd;_.aR.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Qx=function(G,c,I){this.$$binaryReaderFn=G;this.$$binaryWriterFn=c;G=$F(gFi);this.$$isMsg=!!G&&I===G||!1},P5T=Yd0(function(G,c,I,R,Z){if(G.nextWireType_!==2)return!1;
HC(G,ViV(c,R,I),Z);return!0},IJr),QRC=Yd0(function(G,c,I,R,Z){if(G.nextWireType_!==2)return!1;
HC(G,ViV(c,R,I),Z);return!0},IJr),UNB=Symbol(),TS0=Symbol(),NSC=Symbol(),k60=Symbol(),nNp=Symbol(),Rfq,ZGr;var nFA,YTr,vF9,gI,Dg0,oF0,UgK,uj2,G7,kr0,su0,LWK,Adi,$g0,puB,MGA,VGT,z0k,EFV,JdV;nFA=_.Je(0);YTr=function(G,c){var I=new R0k;sRr(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I,mo(UNB,oNf,uxq,c));OT(I,I.encoder_.end());G=new Uint8Array(I.totalLength_);c=I.blocks_;for(var R=c.length,Z=0,K=0;K<R;K++){var m=c[K];G.set(m,Z);Z+=m.length}I.blocks_=[G];return G};
vF9=Yd0(function(G,c,I,R,Z){if(G.nextWireType_!==2)return!1;G=HC(G,Wu([void 0,void 0],R),Z);G=CN(G);R=c[_.P0]|0;Z=zV(R);if(R&2)throw Error();var K=g7(c,I,Z);if(K instanceof Ad)(K.arrayState&2)!=0?(K=wuT(K),K.push(G),td(c,R,I,K,Z)):(c=K,I=c.keyToApi(G[0],!1,!0),G=G[1],G=c.valueCtor?G===void 0?null:G:c.valueToApi(G,!1,!0,void 0,!1,c.arrayState),ko.prototype.set.call(c,I,G));else if(Array.isArray(K)){var m=K[_.P0]|0;m&8192||a0(K,m|=8192);m&2&&(K=EF8(K),td(c,R,I,K,Z));K.push(G)}else td(c,R,I,Nk([G]),
Z);return!0},function(G,c,I,R,Z){if(c instanceof Ad)c.forEach(function(a,O){G6p(G,I,Wu([O,
a],R),Z)});
else if(Array.isArray(c)){for(var K=0;K<c.length;K++){var m=c[K];Array.isArray(m)&&G6p(G,I,Wu(m,R),Z)}Nk(c)}});
gI=_.e_(function(G,c,I){if(G.nextWireType_!==1)return!1;_.NN(c,I,xkN(G.decoder_));return!0},pyA,qd0);
Dg0=_.e_(function(G,c,I,R){if(G.nextWireType_!==1)return!1;_.oR(c,I,R,xkN(G.decoder_));return!0},pyA,qd0);
oF0=_.e_(function(G,c,I){if(G.nextWireType_!==5)return!1;_.NN(c,I,j02(G.decoder_));return!0},M_0,lWN);
UgK=_.STb(function(G,c,I){if(G.nextWireType_!==5&&G.nextWireType_!==2)return!1;c=_.cy(c,c[_.P0]|0,I);G.nextWireType_==2?_.gKN(G,j02,c):c.push(j02(G.decoder_));return!0},function(G,c,I){c=_.$NO(_.ge,c,!0);
if(c!=null&&c.length)for(_.l5(G,I,2),vy(G.encoder_,c.length*4),I=0;I<c.length;I++){var R=G.encoder_;ONr(c[I]);_.qN(R,W0)}},lWN);
uj2=_.e_(function(G,c,I,R){if(G.nextWireType_!==5)return!1;_.oR(c,I,R,j02(G.decoder_));return!0},M_0,lWN);
_.b1V=_.e_(function(G,c,I){if(_.lU)return C5b(G,c,I);if(G.nextWireType_!==0)return!1;_.NN(c,I,_.DJ(G.decoder_,_.ji));return!0},_.nG,_.y2);
_.Yo=_.e_(function(G,c,I){if(_.lU)return C5b(G,c,I);if(G.nextWireType_!==0)return!1;_.NN(c,I,_.DJ(G.decoder_,re));return!0},_.nG,_.y2);
G7=_.e_(function(G,c,I){if(_.lU)return G.nextWireType_!==0?c=!1:(G=_.DJ(G.decoder_,lpp),_.NN(c,I,G===nFA?void 0:G),c=!0),c;if(G.nextWireType_!==0)return!1;G=_.DJ(G.decoder_,re);_.NN(c,I,G===0?void 0:G);return!0},_.nG,_.y2);
kr0=_.e_(function(G,c,I,R){if(_.lU)return _.HGA(G,c,I,R);if(G.nextWireType_!==0)return!1;_.oR(c,I,R,_.DJ(G.decoder_,re));return!0},_.nG,_.y2);
su0=_.e_(function(G,c,I){if(_.lU)return Xyr(G,c,I);if(G.nextWireType_!==0)return!1;_.NN(c,I,_.DJ(G.decoder_,_.B0));return!0},ENT,O1e);
_.c7=_.e_(function(G,c,I){if(_.lU)return Xyr(G,c,I);if(G.nextWireType_!==0)return!1;_.NN(c,I,_.DJ(G.decoder_,e9A));return!0},ENT,O1e);
_.Rb=_.e_(function(G,c,I){if(G.nextWireType_!==0)return!1;_.NN(c,I,_.dI(G.decoder_));return!0},WoB,mgT);
LWK=_.e_(function(G,c,I){if(G.nextWireType_!==0)return!1;G=_.dI(G.decoder_);_.NN(c,I,G===0?void 0:G);return!0},WoB,mgT);
Adi=_.e_(function(G,c,I,R){if(G.nextWireType_!==0)return!1;_.oR(c,I,R,_.dI(G.decoder_));return!0},WoB,mgT);
$g0=_.e_(function(G,c,I){if(_.lU)return _.gNb(G,c,I);if(G.nextWireType_!==1)return!1;_.NN(c,I,reA(G.decoder_));return!0},_.fJr,_.N7A);
_.Sde=_.STb(function(G,c,I){if(_.lU)return G.nextWireType_!==1&&G.nextWireType_!==2?G=!1:(c=_.cy(c,c[_.P0]|0,I),G.nextWireType_==2?_.gKN(G,yz8,c):c.push(yz8(G.decoder_)),G=!0),G;if(G.nextWireType_!==1&&G.nextWireType_!==2)return!1;c=_.cy(c,c[_.P0]|0,I);G.nextWireType_==2?_.gKN(G,reA,c):c.push(reA(G.decoder_));return!0},function(G,c,I){c=_.$NO(Beg,c,!1);
if(c!=null)for(var R=0;R<c.length;R++)iGO(G,I,c[R])},_.N7A);
_.Zn=_.e_(function(G,c,I){if(G.nextWireType_!==0)return!1;_.NN(c,I,tiA(G.decoder_));return!0},BSi,PHB);
_.Km=_.e_(function(G,c,I){if(G.nextWireType_!==0)return!1;G=tiA(G.decoder_);_.NN(c,I,G===!1?void 0:G);return!0},BSi,PHB);
puB=_.e_(function(G,c,I,R){if(G.nextWireType_!==0)return!1;_.oR(c,I,R,tiA(G.decoder_));return!0},BSi,PHB);
_.P7=_.e_(function(G,c,I){if(G.nextWireType_!==2)return!1;_.NN(c,I,X0N(G));return!0},jRr,QuB);
_.Qz=_.e_(function(G,c,I){if(G.nextWireType_!==2)return!1;G=X0N(G);_.NN(c,I,G===""?void 0:G);return!0},jRr,QuB);
_.mU=_.e_(function(G,c,I,R){if(G.nextWireType_!==2)return!1;_.oR(c,I,R,X0N(G));return!0},jRr,QuB);
MGA=_.STb(function(G,c,I){if(G.nextWireType_!==2)return!1;G=X0N(G);_.cy(c,c[_.P0]|0,I).push(G);return!0},function(G,c,I){c=_.$NO(_.Ud,c,!0);
if(c!=null)for(var R=0;R<c.length;R++){var Z=G,K=I,m=c[R];m!=null&&rz0(Z,K,eCr(m))}},QuB);
VGT=void 0;VGT=VGT===void 0?gFi:VGT;_.ab=new Qx(function(G,c,I,R,Z){if(G.nextWireType_!==2)return!1;R=Wu(void 0,R);_.cy(c,c[_.P0]|0,I).push(R);HC(G,R,Z);return!0},function(G,c,I,R,Z){if(Array.isArray(c)){for(var K=0;K<c.length;K++)xNA(G,c[K],I,R,Z);
G=c[_.P0]|0;G&1||a0(c,G|1)}},VGT);
_.T7=Yd0(function(G,c,I,R,Z,K){if(G.nextWireType_!==2)return!1;var m=c[_.P0]|0;fWC(c,m,K,I,zV(m));c=ViV(c,R,I);HC(G,c,Z);return!0},xNA);
_.OF=_.e_(function(G,c,I){if(G.nextWireType_!==2)return!1;_.NN(c,I,_.yee(G));return!0},_.t_B,_.wu2);
z0k=_.e_(function(G,c,I,R){if(G.nextWireType_!==2)return!1;_.oR(c,I,R,_.yee(G));return!0},_.t_B,_.wu2);
_.e1=_.e_(function(G,c,I){if(G.nextWireType_!==0)return!1;_.NN(c,I,_.dI(G.decoder_)>>>0);return!0},hfq,aWe);
EFV=_.e_(function(G,c,I,R){if(G.nextWireType_!==0)return!1;_.oR(c,I,R,_.dI(G.decoder_)>>>0);return!0},hfq,aWe);
_.N0=_.e_(function(G,c,I){if(G.nextWireType_!==0)return!1;_.NN(c,I,_.dI(G.decoder_));return!0},_.dNB,_.FW0);
_.lI=_.e_(function(G,c,I){if(G.nextWireType_!==0)return!1;G=_.dI(G.decoder_);_.NN(c,I,G===0?void 0:G);return!0},_.dNB,_.FW0);
JdV=_.e_(function(G,c,I){if(_.lU)return G.nextWireType_!==0?G=!1:(_.NN(c,I,BeA(G.decoder_)),G=!0),G;if(G.nextWireType_!==0)return!1;_.NN(c,I,_.DJ(G.decoder_,FA0));return!0},function(G,c,I){c=fpU(c);
if(c!=null&&(H1q(c),c!=null))switch(_.l5(G,I,0),typeof c){case "number":G=G.encoder_;I=c;c=I<0;I=Math.abs(I)*2;mkB(I);I=W0;var R=i2;c&&(I==0?R==0?R=I=4294967295:(R--,I=4294967295):I--);W0=I;i2=R;Fx(G,W0,i2);break;case "bigint":G=G.encoder_;c=c<<BigInt(1)^c>>BigInt(63);W0=Number(BigInt.asUintN(32,c));i2=Number(BigInt.asUintN(32,c>>BigInt(32)));Fx(G,W0,i2);break;default:IWp(G.encoder_,c)}},e00);var fW9=function(){var G=WWe,c=i1e;this.fieldIndex=175237375;this.ctor=c;this.isRepeated=0;this.getExtensionFn=_.Dw;this.defaultValue=void 0;this.JSC$9045_hasMessageId=G.messageId!=null?VB:void 0};
fW9.prototype.register=function(){wI(this)};var B7V=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(B7V,_.aR);var rde=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(rde,_.aR);var Kzq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Kzq,_.aR);var juA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(juA,_.aR);var xg0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(xg0,_.aR);var tGN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(tGN,_.aR);var h00=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(h00,_.aR);h00.prototype.getData=function(){return _.Sg(this,2)};var dgK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(dgK,_.aR);var CHT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(CHT,_.aR);CHT.prototype.getStyle=function(){return _.Dw(this,B7V,1)};var LG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(LG,_.aR);LG.prototype.getPayloadCase=function(){return _.py(this,S_)};
LG.prototype.getStyle=function(){return _.jg(this,CHT,6,S_)};
var H10=function(){var G=new LG,c=new xg0;return _.$N(G,7,S_,c)},XuB=function(){var G=new LG,c=new tGN;
return _.$N(G,8,S_,c)},S_=[1,
2,3,4,5,6,7,8];var ydV=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(ydV,_.aR);var gFp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(gFp,_.aR);var YdK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(YdK,_.aR);var G6K=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(G6K,_.aR);var cz2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(cz2,_.aR);var IJi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(IJi,_.aR);var Rf0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Rf0,_.aR);var ZG0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(ZG0,_.aR);ZG0.prototype.getData=function(){return _.Sg(this,2)};var Koi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Koi,_.aR);var ZTr=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(ZTr,_.aR);ZTr.prototype.getPayloadCase=function(){return _.py(this,q0)};
var q0=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var w1=function(G,c){G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=c===void 0?2:c};
_.u(w1,Error);var P52=Promise;var QR9=function(G){this.channelPromise=G};
QR9.prototype.send=function(G,c,I){this.channelPromise.then(function(R){R.send(G,c,I)})};var mNe=function(G,c){this.data=G;this.channel=c};
mNe.prototype.reply=function(G,c,I){this.channel.send(G,c,I)};var aJK=function(G){this.JSC$9111_port_=G};
aJK.prototype.send=function(G,c,I){I=I===void 0?[]:I;var R=new MessageChannel;TSK(R.port1,c);this.JSC$9111_port_.postMessage(G,[R.port2].concat(I))};
var OG2=function(G,c){TSK(G,c);return new aJK(G)},TSK=function(G,c){c&&(G.onmessage=function(I){c(new mNe(I.data,OG2(I.ports[0])))})};var efe=function(G){this.verifier_=G};
efe.prototype.verify=function(G){return this.verifier_(G)};
var NS9=function(G){var c=Object.create(null);(typeof G==="string"?[G]:G).forEach(function(I){if(I==="null")throw Error("X");c[I]=!0});
return function(I){return c[I]===!0}};_.lJK=function(){if(!_.Rq.addEventListener||!Object.defineProperty)return!1;var G=!1,c=Object.defineProperty({},"passive",{get:function(){G=!0}});
try{var I=function(){};
_.Rq.addEventListener("test",I,c);_.Rq.removeEventListener("test",I,c)}catch(R){}return G}();var qTA;_.FI=function(G){var c=G.destination;var I=G.iframe;var R=G.origin;var Z=G.channelName===void 0?"ZNWN1d":G.channelName;var K=G.onMessage===void 0?void 0:G.onMessage;G=G.onEstablished===void 0?void 0:G.onEstablished;return qTA({destination:c,getSource:function(){return I.contentWindow},
originVerifier:R instanceof efe?R:typeof R==="function"?new efe(R):new efe(NS9(R)),channelName:Z,onMessage:K,onEstablished:G})};
qTA=function(G){var c=G.destination;var I=G.getSource;var R=G.originVerifier;var Z=G.token===void 0?void 0:G.token;var K=G.channelName;var m=G.onMessage===void 0?void 0:G.onMessage;var a=G.onEstablished===void 0?void 0:G.onEstablished;return new QR9(new P52(function(O,N){var q=function(w){w.source&&w.source===I()&&R.verify(w.origin)&&(w.data.n||w.data)===K&&(c.removeEventListener("message",q,!1),Z&&w.data.t!==Z?N(Error("Y`"+K+"`"+Z+"`"+w.data.t)):(O(OG2(w.ports[0],m)),a&&a(w)))};
c.addEventListener("message",q,!1)}))};var wyT=function(G){try{G()}catch(c){Zi(c)}};var nNK=function(G){var c=this;var I=G.getMessageType;var R=G.onUnregisteredMessage===void 0?function(){}:G.onUnregisteredMessage;
var Z=G.onBeforeRegisteredMessage===void 0?function(){}:G.onBeforeRegisteredMessage;
G=G.onAfterRegisteredMessage===void 0?function(){}:G.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=I;this.onUnregisteredMessage_=R;this.onBeforeRegisteredMessage_=Z;this.onAfterRegisteredMessage_=G;this.onMessage=function(K){return Fo2(c,K)}};
nNK.prototype.register=function(G,c){this.registry_.set(G,c);return this};
var Fo2=function(G,c){var I=G.getMessageType_(c.data),R=G.registry_.get(I);R?(wyT(function(){return G.onBeforeRegisteredMessage_(c,I)}),wyT(function(){return R(c)}),wyT(function(){return G.onAfterRegisteredMessage_(c,I)})):wyT(function(){return G.onUnregisteredMessage_(c,I)})};var vNN=function(G){this.JSC$9128_channel_=G},oNk,UNT;
vNN.prototype.send=function(G,c,I){this.JSC$9128_channel_.send(Jd(G),c,I)};
_.DNp=function(G,c){return function(I){var R=new G(I.data);return c(new mNe(R,I.channel))}};
oNk=function(G){return function(c){return G(new mNe(c.data,new vNN(c.channel)))}};
UNT=function(G,c){return oNk(_.DNp(G,c))};var ux0=function(G,c,I,R){this.registry=G;this.delegate=c;this.receiveMessageConstructor=I;this.createInitMessage=R;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},RJq=function(G){var c=new nNK({getMessageType:G.getPayloadCase});
return new ux0(c,new vNN(_.FI({iframe:G.child,destination:window,origin:G.origin,channelName:G.channelName,onMessage:UNT(G.receiveMessageConstructor,c.onMessage)})),G.receiveMessageConstructor,G.createInitMessage)},bG0=function(G,c){G.createInitMessage=c};
ux0.prototype.send=function(G){if(!this.initialised)throw new w1("Attempted to send a message before initialisation.");this.delegate.send(G)};
var k6K=function(G,c){return _.T(function(I){if(!G.initialised)throw new w1("Attempted to send a message before initialisation.");return I.return(new Promise(function(R){G.delegate.send(c,UNT(G.receiveMessageConstructor,R))}))})};
ux0.prototype.init=function(){var G=this;return _.T(function(c){if(G.initialised)throw new w1("Attempted to initialise twice. The SDK can only be initialised once.");if(G.createInitMessage!==void 0){var I=G.delegate,R=I.send,Z=G.createInitMessage;var K=new rde;var m=[].concat(_.jn(G.features));K=_.YF(K,1,m,_.K1);R.call(I,Z.call(G,K))}G.initialised=!0;_.Vp(c)})};
var nm=function(G,c){if(G.initialised)throw new w1('Attempted to set up API "'+c+'" after initialisation. All APIs must be set up before initialising the SDK.');G.features.add(c);return G.registry};
_.Nh.Object.defineProperties(ux0.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var sRi=function(G){this.channel=G;this.registered=!1};
sRi.prototype.update=function(G){if(this.channel.isInitialised){if(!this.registered)throw new w1("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var c=new LG;var I=new juA;I=_.DL(I,1,G);c=_.$N(c,2,S_,I);this.channel.send(c)}else this.register();this.JSC$9142_audioEnabled=G};
sRi.prototype.register=function(){nm(this.channel,1);this.registered=!0};
sRi.prototype.isAudioEnabled=function(){return this.JSC$9142_audioEnabled};var LoA=function(G){this.channel=G};
_.P=LoA.prototype;_.P.onFirstFrameReady=function(G){nm(this.channel,2).register(11,function(c){c=_.jg(c.data,ydV,11,q0);if(!c)throw new w1("Unexpectedly nonexistent GameFirstFrameReadyEvent");G(_.iU(c,1))})};
_.P.onReady=function(G){nm(this.channel,2).register(4,function(c){c=_.jg(c.data,YdK,4,q0);if(!c)throw new w1("Unexpectedly nonexistent GameReadyEvent");G(_.iU(c,1))})};
_.P.onLevelComplete=function(G){nm(this.channel,2).register(5,function(c){c=_.jg(c.data,G6K,5,q0);if(!c)throw new w1("Unexpectedly nonexistent LevelCompleteEvent");G(_.iU(c,1),_.wF(c,2))})};
_.P.onGameOver=function(G){nm(this.channel,2).register(6,function(c){c=_.jg(c.data,gFp,6,q0);if(!c)throw new w1("Unexpectedly nonexistent GameOverEvent");G(_.iU(c,1))})};
_.P.pause=function(){var G=this;if(!this.channel.isInitialised)return nm(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new w1("Using unregistered Game Feature: pause.");var c=H10();return new Promise(function(I){return _.T(function(R){if(R.nextAddress==1)return R.yield(k6K(G.channel,c),2);I();_.Vp(R)})})};
_.P.resume=function(){var G=this;if(!this.channel.isInitialised)return nm(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new w1("Using unregistered Game Feature: resume.");var c=XuB();return new Promise(function(I){return _.T(function(R){if(R.nextAddress==1)return R.yield(k6K(G.channel,c),2);I();_.Vp(R)})})};var AzA=function(G){this.channel=G};
AzA.prototype.onReady=function(G){nm(this.channel,5).register(8,function(c){if(!_.jg(c.data,cz2,8,q0))throw new w1("Unexpectedly nonexistent PageReadyEvent");G()})};var $NB=function(G){this.channel=G};
$NB.prototype.onChange=function(G){nm(this.channel,3).register(7,function(c){c=_.jg(c.data,IJi,7,q0);if(!c)throw new w1("Unexpectedly nonexistent ScoreEvent");G(_.iU(c,1),_.wF(c,2))})};var STe={load:function(){throw new w1("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new w1("Storage used, but storage.onSave() listener not set!");}},pyN=function(G){this.channel=G;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},M_K=function(G){nm(G.channel,4).register(2,STe.load).register(3,STe.save);
G.initialSetupDone=!0};
pyN.prototype.onLoad=function(G){this.initialSetupDone||M_K(this);this.loadRegistered||(this.loadRegistered=!0,nm(this.channel,4).register(2,function(c){var I,R,Z;return _.T(function(K){if(K.nextAddress==1){I=_.jg(c.data,Rf0,2,q0);if(!I)throw new w1("Unexpectedly nonexistent StorageLoad");R=_.iU(I,1);return K.yield(G(R),2)}Z=K.yieldResult;var m=c.reply,a=new LG;var O=new h00;O=_.Eq(O,1,R);O=_.Uo(O,2,_.Mk(Z,!1));a=_.$N(a,3,S_,O);m.call(c,a);_.Vp(K)})}))};
pyN.prototype.onSave=function(G){this.initialSetupDone||M_K(this);this.saveRegistered||(this.saveRegistered=!0,nm(this.channel,4).register(3,function(c){var I,R,Z;return _.T(function(K){if(K.nextAddress==1){I=_.jg(c.data,ZG0,3,q0);if(!I)throw new w1("Unexpectedly nonexistent StorageSave");R=_.iU(I,1);Z=nKk(I.getData());return K.yield(G(R,Z),2)}var m=c.reply,a=new LG;var O=new dgK;O=_.Eq(O,1,R);a=_.$N(a,4,S_,O);m.call(c,a);_.Vp(K)})}))};var V_K=function(G){this.channel=G};
V_K.prototype.update=function(G){if(!this.channel.features.has(6))throw new w1("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var c=new LG,I=new CHT;G=_.Az(I,1,G);c=_.$N(c,6,S_,G);this.channel.send(c)};
V_K.prototype.register=function(){nm(this.channel,6)};var zfe=function(G){this.channel=G;this.userActivityLoggingIntervalMs=0};
zfe.prototype.onUserActivity=function(G,c){this.userActivityLoggingIntervalMs=c;nm(this.channel,7).register(9,function(I){if(!_.jg(I.data,Koi,9,q0))throw new w1("Unexpectedly nonexistent ClickEvent");G()})};var EN2=function(G){var c=this;this.channel=G;this.init=this.channel.init.bind(this.channel);this.page=new AzA(this.channel);this.game=new LoA(this.channel);this.audio=new sRi(this.channel);this.score=new $NB(this.channel);this.storage=new pyN(this.channel);this.style=new V_K(this.channel);this.userActivity=new zfe(this.channel);bG0(this.channel,function(I){var R=new Kzq;I=_.Az(R,1,I);I=_.xo(I,3,c.userActivity.userActivityLoggingIntervalMs);R=c.audio.isAudioEnabled();R!==void 0&&_.DL(I,2,R);R=new LG;
return _.$N(R,5,S_,I)})};var Jz0=function(){this.timedFunctionContext=0};
Jz0.prototype.timeExecution=function(G,c){var I=this;return function(){var R=_.Hy.apply(0,arguments);I.timedFunctionContext=G;return c.apply(null,_.jn(R))}};var WoT=function(){var G={};this.priorityTasks=(G[3]=[],G[2]=[],G[1]=[],G);this.isFlushing=!1},sq=function(G,c,I){var R=iGB(G,I);
G.priorityTasks[I].push(c);R&&G.priorityTasks[I].length===1&&G.flush()},iGB=function(G,c){return Object.keys(G.priorityTasks).map(function(I){return Number(I)}).filter(function(I){return!isNaN(I)&&I>c}).every(function(I){return G.priorityTasks[I].length===0})};
WoT.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(G){return G.length>0});)fJi(this,3),fJi(this,2),fJi(this,1)}catch(G){throw Object.values(this.priorityTasks).forEach(function(c){return void c.splice(0,c.length)}),G;
}finally{this.isFlushing=!1}}};
var fJi=function(G,c){for(;iGB(G,c)&&G.priorityTasks[c].length>0;)G.priorityTasks[c][0](),G.priorityTasks[c].shift()};
_.Nh.Object.defineProperties(WoT.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(G){return G.length>0})}}});var eJB={};var BSp=globalThis.trustedTypes,QE0=BSp,aTp;var MN=function(G){this.privateDoNotAccessOrElseWrappedResourceUrl=G};
MN.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var rzK,jR0,xNN,t_T,hf0,dNT,C5e,HGN;rzK=_.I3([""]);jR0=cC(["\x00"],["\\0"]);xNN=cC(["\n"],["\\n"]);t_T=cC(["\x00"],["\\u0000"]);hf0=_.I3([""]);dNT=cC(["\x00"],["\\0"]);C5e=cC(["\n"],["\\n"]);HGN=cC(["\x00"],["\\u0000"]);_.Xyi=OT8(function(G){return G(rzK)})||OT8(function(G){return G(jR0)})||OT8(function(G){return G(xNN)})||OT8(function(G){return G(t_T)});
_.yzV=_.Jz(hf0)&&_.Jz(dNT)&&_.Jz(C5e)&&_.Jz(HGN);var hz;_.Wy=function(G,c){this.privateDoNotAccessOrElseWrappedUrl=c};
_.Wy.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.gNe=i5("about:blank");hz=i5("about:invalid#zClosurez");var N5q=function(G){this.isValid=G},YTi=new N5q(function(G){return/^[^:]*([/?#]|$)/.test(G)}),Gi9=rS("data"),c_0=rS("http"),ITN=rS("https"),RJ0=rS("ftp"),ZTi=rS("mailto"),Kz0=rS("intent"),Pa2=rS("vnd.youtube"),lTO=[Gi9,
c_0,ITN,ZTi,RJ0,YTi],wMg=pG(function(){return typeof URL==="function"}),QEK=["data:",
"http:","https:","mailto:","ftp:"],nmB=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var YN=function(G){this.privateDoNotAccessOrElseWrappedHtml=G};
YN.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var F_r=pG(function(){return new YN(BSp?BSp.emptyHTML:"")});var m3K={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"},D3i=function(G,c){var I=Error.call(this,G+" cannot be used with intent "+m3K[c]);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.type=G;this.intent=c;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.u(D3i,Error);_.PM=function(G){this.privateDoNotAccessOrElseWrappedScript=G};
_.PM.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var U3A=function(G){this.privateDoNotAccessOrElseWrappedAttributePrefix=G};
U3A.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var ueq="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var q3=function(G){this.privateDoNotAccessOrElseWrappedStyleSheet=G};
q3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var y0B=function(G){var c=_.Yc("window.location.href");G==null&&(G='Unknown Error of type "null/undefined"');if(typeof G==="string")return{message:G,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var I=!1;try{var R=G.lineNumber||G.line||"Not available"}catch(m){R="Not available",I=!0}try{var Z=G.fileName||G.filename||G.sourceURL||_.Rq.$googDebugFname||c}catch(m){Z="Not available",I=!0}c=aTK(G);if(!(!I&&G.lineNumber&&G.fileName&&G.stack&&G.message&&G.name)){I=G.message;
if(I==null){if(G.constructor&&G.constructor instanceof Function){if(G.constructor.name)I=G.constructor.name;else if(I=G.constructor,v7[I])I=v7[I];else{I=String(I);if(!v7[I]){var K=/function\s+([^\(]+)/m.exec(I);v7[I]=K?K[1]:"[Anonymous]"}I=v7[I]}I='Unknown Error of type "'+I+'"'}else I="Unknown Error of unknown type";typeof G.toString==="function"&&Object.prototype.toString!==G.toString&&(I+=": "+G.toString())}return{message:I,name:G.name||"UnknownError",lineNumber:R,fileName:Z,stack:c||"Not available"}}return{message:G.message,
name:G.name,lineNumber:G.lineNumber,fileName:G.fileName,stack:c}},aTK=function(G,c){c||(c={});
c[T5B(G)]=!0;var I=G.stack||"",R=G.cause;R&&!c[T5B(R)]&&(I+="\nCaused by: ",R.stack&&R.stack.indexOf(R.toString())==0||(I+=typeof R==="string"?R:R.message+"\n"),I+=aTK(R,c));G=G.errors;if(Array.isArray(G)){R=1;var Z;for(Z=0;Z<G.length&&!(R>4);Z++)c[T5B(G[Z])]||(I+="\nInner error "+R++ +": ",G[Z].stack&&G[Z].stack.indexOf(G[Z].toString())==0||(I+=typeof G[Z]==="string"?G[Z]:G[Z].message+"\n"),I+=aTK(G[Z],c));Z<G.length&&(I+="\n... "+(G.length-Z)+" more inner errors")}return I},T5B=function(G){var c=
"";
typeof G.toString==="function"&&(c=""+G);return c+G.stack},v7={};var OTV,lW,lm,N50,lTB,eJT,cX,Vm,wMA;OTV=function(G,c){for(var I=G.split("%s"),R="",Z=Array.prototype.slice.call(arguments,1);Z.length&&I.length>1;)R+=I.shift()+Z.shift();return R+I.join("%s")};
_.ZH=function(G){return encodeURIComponent(String(G))};
lW=function(G){return decodeURIComponent(G.replace(/\+/g," "))};
lm=function(G){VrA.test(G)&&(G.indexOf("&")!=-1&&(G=G.replace(LgK,"&amp;")),G.indexOf("<")!=-1&&(G=G.replace(AUK,"&lt;")),G.indexOf(">")!=-1&&(G=G.replace($fe,"&gt;")),G.indexOf('"')!=-1&&(G=G.replace(S0K,"&quot;")),G.indexOf("'")!=-1&&(G=G.replace(pri,"&#39;")),G.indexOf("\x00")!=-1&&(G=G.replace(Mrk,"&#0;")));return G};
N50=function(G){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var I=_.Rq.document.createElement("div");return G.replace(eJT,function(R,Z){var K=c[R];if(K)return K;Z.charAt(0)=="#"&&(Z=Number("0"+Z.slice(1)),isNaN(Z)||(K=String.fromCharCode(Z)));K||(_.O9(I,Gi(R+" ")),K=I.firstChild.nodeValue.slice(0,-1));return c[R]=K})};
lTB=function(G){return G.replace(/&([^;]+);/g,function(c,I){switch(I){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return I.charAt(0)!="#"||(I=Number("0"+I.slice(1)),isNaN(I))?c:String.fromCharCode(I)}})};
eJT=/&([^;\s<&]+);?/g;_.E1O=function(G){return String(G).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.q9p=String.prototype.repeat?function(G,c){return G.repeat(c)}:function(G,c){return Array(c+1).join(G)};
_.Dn=function(G,c){if(!Number.isFinite(G))return String(G);G=String(G);var I=G.indexOf(".");I===-1&&(I=G.length);var R=G[0]==="-"?"-":"";R&&(G=G.substring(1));return R+(0,_.q9p)("0",Math.max(0,c-I))+G};
cX=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.OH()).toString(36)};
Vm=function(G){for(var c=0,I=0;I<G.length;++I)c=31*c+G.charCodeAt(I)>>>0;return c};
_.mY=function(G){return String(G).replace(/\-([a-z])/g,function(c,I){return I.toUpperCase()})};
_.Qm=function(G){return String(G).replace(/([A-Z])/g,"-$1").toLowerCase()};
wMA=function(G){return G.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(c,I,R){return I+R.toUpperCase()})};var Fze=function(){this.names=new Map};
Fze.prototype.getName=function(G){var c=this.names.get(G);if(c)return c;var I;c=(I=G.description)!=null?I:cX();this.names.set(G,c);return c};var nmT=function(G){var c=Error.call(this,G?G.length+" errors occurred during unsubscription:\n"+G.map(function(I,R){return R+1+") "+I.toString()}).join("\n  "):"");
this.message=c.message;"stack"in c&&(this.stack=c.stack);this.errors=G;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.u(nmT,Error);var Fe=function(G){this.initialTeardown=G;this.closed=!1;this._teardowns=this._parentage=null};
_.P=Fe.prototype;
_.P.unsubscribe=function(){if(!this.closed){this.closed=!0;var G=this._parentage;if(Array.isArray(G))for(var c=_.Q(G),I=c.next();!I.done;I=c.next())I.value.remove(this);else G==null||G.remove(this);c=this.initialTeardown;if(w5(c))try{c()}catch(K){var R=K instanceof nmT?K.errors:[K]}var Z=this._teardowns;if(Z)for(this._teardowns=null,c=_.Q(Z),I=c.next();!I.done;I=c.next()){I=I.value;try{w5(I)?I():I.unsubscribe()}catch(K){I=void 0,R=(I=R)!=null?I:[],K instanceof nmT?R=[].concat(_.jn(R),_.jn(K.errors)):
R.push(K)}}if(R)throw new nmT(R);}};
_.P.add=function(G){if(G&&G!==this)if(this.closed)w5(G)?G():G.unsubscribe();else{if(G instanceof Fe){if(G.closed||G._hasParent(this))return;G._addParent(this)}var c;(this._teardowns=(c=this._teardowns)!=null?c:[]).push(G)}};
_.P._hasParent=function(G){var c=this._parentage;return c===G||Array.isArray(c)&&c.includes(G)};
_.P._addParent=function(G){var c=this._parentage;this._parentage=Array.isArray(c)?(c.push(G),c):c?[c,G]:G};
_.P._removeParent=function(G){var c=this._parentage;c===G?this._parentage=null:Array.isArray(c)&&A_b(c,G)};
_.P.remove=function(G){var c=this._teardowns;c&&A_b(c,G);G instanceof Fe&&G._removeParent(this)};
var vme=new Fe;vme.closed=!0;Fe.JSC$9238_EMPTY=vme;var S98=function(){setTimeout.apply(null,_.jn(_.Hy.apply(0,arguments)))};var ob=function(G){Fe.call(this);this.JSC$9243_isStopped=!1;this.destination=G instanceof ob?G:new UF(!G||w5(G)?{next:G!=null?G:void 0}:G);$3T(G)&&G.add(this)};
_.u(ob,Fe);ob.JSC$9238_EMPTY=Fe.JSC$9238_EMPTY;ob.create=function(G,c,I){return new uI(G,c,I)};
_.P=ob.prototype;_.P.next=function(G){this.JSC$9243_isStopped||this._next(G)};
_.P.error=function(G){this.JSC$9243_isStopped||(this.JSC$9243_isStopped=!0,this._error(G))};
_.P.complete=function(){this.JSC$9243_isStopped||(this.JSC$9243_isStopped=!0,this._complete())};
_.P.unsubscribe=function(){this.closed||(this.JSC$9243_isStopped=!0,Fe.prototype.unsubscribe.call(this))};
_.P._next=function(G){this.destination.next(G)};
_.P._error=function(G){this.destination.error(G);this.unsubscribe()};
_.P._complete=function(){this.destination.complete();this.unsubscribe()};
var UF=function(G){this.partialObserver=G};
UF.prototype.next=function(G){var c=this.partialObserver;if(c.next)try{c.next(G)}catch(I){vM(I)}};
UF.prototype.error=function(G){var c=this.partialObserver;if(c.error)try{c.error(G)}catch(I){vM(I)}else vM(G)};
UF.prototype.complete=function(){var G=this.partialObserver;if(G.complete)try{G.complete()}catch(c){vM(c)}};
var uI=function(G,c,I){ob.call(this);var R;w5(G)||!G?R={next:G!=null?G:void 0,error:c!=null?c:void 0,complete:I!=null?I:void 0}:R=G;this.destination=new UF(R)};
_.u(uI,ob);uI.JSC$9238_EMPTY=ob.JSC$9238_EMPTY;uI.create=ob.create;var ua=typeof Symbol==="function"&&Symbol.observable||"@@observable";var U9=function(G){G&&(this._subscribe=G)};
_.P=U9.prototype;_.P.lift=function(G){var c=new U9;c.source=this;c.operator=G;return c};
_.P.subscribe=function(G,c,I){G=G&&G instanceof ob||G&&w5(G.next)&&w5(G.error)&&w5(G.complete)&&$3T(G)?G:new uI(G,c,I);c=this.operator;I=this.source;G.add(c?c.call(G,I):I?this._subscribe(G):this._trySubscribe(G));return G};
_.P._trySubscribe=function(G){try{return this._subscribe(G)}catch(c){G.error(c)}};
_.P.forEach=function(G,c){var I=this;c=MnB(c);return new c(function(R,Z){var K=I.subscribe(function(m){try{G(m)}catch(a){Z(a),K==null||K.unsubscribe()}},Z,R)})};
_.P._subscribe=function(G){var c;return(c=this.source)==null?void 0:c.subscribe(G)};
U9.prototype[ua]=function(){return this};
U9.prototype.pipe=function(){var G=_.Hy.apply(0,arguments);return G.length?pMT(G)(this):this};
U9.create=function(G){return new U9(G)};var D3p=function(){var G=Error.call(this,"object unsubscribed");this.message=G.message;"stack"in G&&(this.stack=G.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.u(D3p,Error);var uy=function(){this.observers=[];this.hasError=this.JSC$9259_isStopped=this.closed=!1;this.thrownError=null};
_.u(uy,U9);_.P=uy.prototype;_.P.lift=function(G){var c=new bI(this,this);c.operator=G;return c};
_.P._throwIfClosed=function(){if(this.closed)throw new D3p;};
_.P.next=function(G){this._throwIfClosed();if(!this.JSC$9259_isStopped){var c=this.observers.slice();c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I.value.next(G)}};
_.P.error=function(G){this._throwIfClosed();if(!this.JSC$9259_isStopped){this.hasError=this.JSC$9259_isStopped=!0;this.thrownError=G;for(var c=this.observers;c.length;)c.shift().error(G)}};
_.P.complete=function(){this._throwIfClosed();if(!this.JSC$9259_isStopped){this.JSC$9259_isStopped=!0;for(var G=this.observers;G.length;)G.shift().complete()}};
_.P.unsubscribe=function(){this.JSC$9259_isStopped=this.closed=!0;this.observers=null};
_.P._trySubscribe=function(G){this._throwIfClosed();return U9.prototype._trySubscribe.call(this,G)};
_.P._subscribe=function(G){this._throwIfClosed();this._checkFinalizedStatuses(G);return this._innerSubscribe(G)};
_.P._innerSubscribe=function(G){var c=this,I=this.JSC$9259_isStopped,R=this.observers;return this.hasError||I?Fe.JSC$9238_EMPTY:(R.push(G),new Fe(function(){return A_b(c.observers,G)}))};
_.P._checkFinalizedStatuses=function(G){var c=this.thrownError,I=this.JSC$9259_isStopped;this.hasError?G.error(c):I&&G.complete()};
uy.create=function(G,c){return new bI(G,c)};
var bI=function(G,c){uy.call(this);this.destination=G;this.source=c};
_.u(bI,uy);bI.create=uy.create;bI.prototype.next=function(G){var c,I;(c=this.destination)==null||(I=c.next)==null||I.call(c,G)};
bI.prototype.error=function(G){var c,I;(c=this.destination)==null||(I=c.error)==null||I.call(c,G)};
bI.prototype.complete=function(){var G,c;(G=this.destination)==null||(c=G.complete)==null||c.call(G)};
bI.prototype._subscribe=function(G){var c,I;return(I=(c=this.source)==null?void 0:c.subscribe(G))!=null?I:Fe.JSC$9238_EMPTY};var GB=function(G){uy.call(this);this._value=G};
_.u(GB,uy);GB.create=uy.create;GB.prototype._subscribe=function(G){var c=uy.prototype._subscribe.call(this,G);!c.closed&&G.next(this._value);return c};
GB.prototype.getValue=function(){var G=this.thrownError,c=this._value;if(this.hasError)throw G;this._throwIfClosed();return c};
GB.prototype.next=function(G){uy.prototype.next.call(this,this._value=G)};
_.Nh.Object.defineProperties(GB.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var HM=new U9(function(G){return G.complete()});var J_p=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var r_O=function(G){return G&&typeof G.length==="number"&&typeof G!=="function"};var om9={now:function(){return(om9.delegate||Date).now()},
delegate:void 0};var TM=function(G,c,I){G=G===void 0?Infinity:G;c=c===void 0?Infinity:c;I=I===void 0?om9:I;uy.call(this);this.bufferSize=G;this.windowTime=c;this.timestampProvider=I;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=c===Infinity;this.bufferSize=Math.max(1,G);this.windowTime=Math.max(1,c)};
_.u(TM,uy);TM.create=uy.create;TM.prototype.next=function(G){var c=this.buffer,I=this.infiniteTimeWindow,R=this.timestampProvider,Z=this.windowTime;this.JSC$9259_isStopped||(c.push(G),!I&&c.push(R.now()+Z));U3N(this);uy.prototype.next.call(this,G)};
TM.prototype._subscribe=function(G){this._throwIfClosed();U3N(this);for(var c=this._innerSubscribe(G),I=this.infiniteTimeWindow,R=this.buffer.slice(),Z=0;Z<R.length&&!G.closed;Z+=I?1:2)G.next(R[Z]);this._checkFinalizedStatuses(G);return c};
var U3N=function(G){var c=G.bufferSize,I=G.timestampProvider,R=G.buffer;G=G.infiniteTimeWindow;var Z=(G?1:2)*c;c<Infinity&&Z<R.length&&R.splice(0,R.length-Z);if(!G){c=I.now();I=0;for(G=1;G<R.length&&R[G]<=c;G+=2)I=G;I&&R.splice(0,I+1)}};var bTK=function(G,c){c=c===void 0?ue0:c;this.schedulerActionCtor=G;this.now=c};
bTK.prototype.schedule=function(G,c,I){c=c===void 0?0:c;return(new this.schedulerActionCtor(this,G)).schedule(I,c)};
var ue0=om9.now;var VBO=function(){var G=Error.call(this,"no elements in sequence");this.message=G.message;"stack"in G&&(this.stack=G.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.u(VBO,Error);var fT=function(G,c,I,R,Z){ob.call(this,G);this.onUnsubscribe=Z;c&&(this._next=function(K){try{c(K)}catch(m){this.destination.error(m)}});
I&&(this._error=function(K){try{I(K)}catch(m){this.destination.error(m)}this.unsubscribe()});
R&&(this._complete=function(){try{R()}catch(K){this.destination.error(K)}this.unsubscribe()})};
_.u(fT,ob);fT.JSC$9238_EMPTY=ob.JSC$9238_EMPTY;fT.create=ob.create;fT.prototype.unsubscribe=function(){var G;this.closed||(G=this.onUnsubscribe)!=null&&G.call(this);ob.prototype.unsubscribe.call(this)};var m3=function(G,c){this.source=G;this.subjectFactory=c;this._subject=null;this._refCount=0;this._connection=null};
_.u(m3,U9);m3.create=U9.create;m3.prototype._subscribe=function(G){return kiK(this).subscribe(G)};
var kiK=function(G){var c=G._subject;if(!c||c.JSC$9259_isStopped)G._subject=G.subjectFactory();return G._subject};
m3.prototype._teardown=function(){this._refCount=0;var G=this._connection;this._subject=this._connection=null;G==null||G.unsubscribe()};
m3.prototype.connect=function(){var G=this,c=this._connection;if(!c){c=this._connection=new Fe;var I=kiK(this);c.add(this.source.subscribe(new fT(I,void 0,function(R){G._teardown();I.error(R)},function(){G._teardown();
I.complete()},function(){return G._teardown()})));
c.closed&&(this._connection=null,c=Fe.JSC$9238_EMPTY)}return c};var GMA=Array.isArray;var I3b=Array.isArray,sE0=Object,Rpr=sE0.getPrototypeOf,Z8i=sE0.prototype,K3r=sE0.keys;var t_=function(G,c,I){ob.call(this,G);this._next=c;this.shouldComplete=I};
_.u(t_,ob);t_.JSC$9238_EMPTY=ob.JSC$9238_EMPTY;t_.create=ob.create;t_.prototype._complete=function(){this.shouldComplete()?ob.prototype._complete.call(this):this.unsubscribe()};var l3p=["addListener","removeListener"],NxT=["addEventListener","removeEventListener"],w6A=["on","off"];var kq=function(){Fe.call(this)};
_.u(kq,Fe);kq.JSC$9238_EMPTY=Fe.JSC$9238_EMPTY;kq.prototype.schedule=function(){return this};var Lzk=function(G,c){return setInterval.apply(null,[G,c].concat(_.jn(_.Hy.apply(2,arguments))))};var sF=function(G,c){Fe.call(this);this.scheduler=G;this.work=c;this.pending=!1};
_.u(sF,kq);sF.JSC$9238_EMPTY=kq.JSC$9238_EMPTY;sF.prototype.schedule=function(G,c){c=c===void 0?0:c;if(this.closed)return this;this.state=G;G=this.id;var I=this.scheduler;G!=null&&(this.id=A_e(this,G,c));this.pending=!0;this.delay=c;this.id=this.id||this.requestAsyncId(I,this.id,c);return this};
sF.prototype.requestAsyncId=function(G,c,I){I=I===void 0?0:I;return Lzk(G.flush.bind(G,this),I)};
var A_e=function(G,c,I){I=I===void 0?0:I;if(I!=null&&G.delay===I&&G.pending===!1)return c;clearInterval(c)};
sF.prototype.execute=function(G,c){if(this.closed)return Error("ha");this.pending=!1;if(G=this._execute(G,c))return G;this.pending===!1&&this.id!=null&&(this.id=A_e(this,this.id,null))};
sF.prototype._execute=function(G){var c=!1;try{this.work(G)}catch(R){c=!0;var I=!!R&&R||Error(R)}if(c)return this.unsubscribe(),I};
sF.prototype.unsubscribe=function(){if(!this.closed){var G=this.id,c=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;A_b(c,this);G!=null&&(this.id=A_e(this,G,null));this.delay=null;kq.prototype.unsubscribe.call(this)}};var $32=function(G,c){c=c===void 0?ue0:c;bTK.call(this,G,c);this.actions=[];this.active=!1;this.scheduled=void 0};
_.u($32,bTK);$32.prototype.flush=function(G){var c=this.actions;if(this.active)c.push(G);else{var I;this.active=!0;do if(I=G.execute(G.state,G.delay))break;while(G=c.shift());this.active=!1;if(I){for(;G=c.shift();)G.unsubscribe();throw I;}}};var iy=new U9(nT);var F38=Array.isArray;var Lm=function(G,c){sF.call(this,G,c);this.scheduler=G;this.work=c};
_.u(Lm,sF);Lm.JSC$9238_EMPTY=sF.JSC$9238_EMPTY;Lm.prototype.schedule=function(G,c){c=c===void 0?0:c;if(c>0)return sF.prototype.schedule.call(this,G,c);this.delay=c;this.state=G;this.scheduler.flush(this);return this};
Lm.prototype.execute=function(G,c){return c>0||this.closed?sF.prototype.execute.call(this,G,c):this._execute(G,c)};
Lm.prototype.requestAsyncId=function(G,c,I){I=I===void 0?0:I;return I!=null&&I>0||I==null&&this.delay>0?sF.prototype.requestAsyncId.call(this,G,c,I):G.flush(this)};var S9V=function(){$32.apply(this,arguments)};
_.u(S9V,$32);var gmp=new S9V(Lm);var pM2=function(){this.performanceMonitor=new Jz0;this.queue=new WoT;this.internalSymbol=Symbol();this.debugNames=new Fze};
pM2.prototype.getOnBackgrounded=function(){return iy};
_.Nh.Object.defineProperties(pM2.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var A5=function(G,c){c=Error.call(this,c?G+": "+c:String(G));this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=G;this.__proto__=A5.prototype;this.name=String(G)};
_.u(A5,Error);var f8=function(G){A5.call(this,1E3,'sfr:"'+G+'"');this.measurementStrategyFailureReason=G;this.__proto__=f8.prototype};
_.u(f8,A5);var B6=function(){A5.call(this,1003);this.__proto__=B6.prototype};
_.u(B6,A5);var $q=function(){A5.call(this,1009);this.__proto__=$q.prototype};
_.u($q,A5);var MnT=function(){A5.call(this,1011);this.__proto__=MnT.prototype};
_.u(MnT,A5);var Vnk=function(){A5.call(this,1007);this.__proto__=B6.prototype};
_.u(Vnk,A5);var Js=function(G){A5.call(this,1004,String(G));this.inputObservableIndex=G;this.__proto__=Js.prototype};
_.u(Js,A5);var GyA=function(G){A5.call(this,1010,G);this.__proto__=cyr.prototype};
_.u(GyA,A5);var cyr=function(G){A5.call(this,1005,G);this.__proto__=cyr.prototype};
_.u(cyr,A5);var zJV=function(G){var c=_.Hy.apply(1,arguments),I=this;this.orderedFactories=[];this.orderedFactories.push(G);c.forEach(function(R){I.orderedFactories.push(R)})};
zJV.prototype.isSupported=function(G){return this.orderedFactories.some(function(c){return c.isSupported(G)})};
zJV.prototype.makeBeacon=function(G,c){for(var I=0;I<this.orderedFactories.length;I++)if(this.orderedFactories[I].isSupported(c))return this.orderedFactories[I].makeBeacon(G,c);throw new $q;};var jWg=Symbol("ia"),Em2=Symbol("ja"),Ym=function(G,c){this.value=G;this.timeline=c},g5=function(G,c){if(c.timeline!==G.timeline)throw new Vnk;
return G.value-c.value};
_.P=Ym.prototype;_.P.equals=function(G){return g5(this,G)===0};
_.P.maximum=function(G){if(G.timeline!==this.timeline)throw new Vnk;return this.value>=G.value?this:G};
_.P.round=function(){return new Ym(Math.round(this.value),this.timeline)};
_.P.add=function(G){return new Ym(this.value+G,this.timeline)};
_.P.toString=function(){return String(this.value)};var S1=function(G,c){this.context=G;this.JSC$9365_pinger=c};
S1.prototype.isSupported=function(G){return this.JSC$9365_pinger.isSupported(G)};
S1.prototype.makeBeacon=function(G,c){if(!this.isSupported(c))throw new $q;return new pm(this.context,this.JSC$9365_pinger,c!=null?c:void 0,G)};
var pm=function(G,c,I,R){var Z=this;this.JSC$9371_pinger=c;this.properties=I;this.url=R;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var K;this.method=(K=I==null?void 0:I.beaconMethod)!=null?K:"GET";this.backgroundedSubscription=G.getOnBackgrounded().subscribe(function(){Z.sendNow()})};
pm.prototype.deactivate=function(){this.internalIsPending=!1};
pm.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9371_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var G,c;this.JSC$9371_pinger.pingWithHeadersAndBody((G=this.properties)!=null?G:{},this.customHeaders,(c=this.body)!=null?c:"",this.url)}else this.JSC$9371_pinger.ping(this.url);this.internalIsPending=!1}catch(I){}else this.internalIsPending=!1};
pm.prototype.setHeader=function(G,c){this.customHeaders.set(G,c)};
_.Nh.Object.defineProperties(pm.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var WzV=function(){for(var G=_.Q(_.Hy.apply(0,arguments)),c=G.next();!c.done;c=G.next())if(c=c.value,c.available()){this.timeProvider=c;return}this.timeProvider=new J_K};
_.P=WzV.prototype;_.P.available=function(){return this.timeProvider.available()};
_.P.now=function(){return this.timeProvider.now()};
_.P.setTimeout=function(G,c){return this.timeProvider.setTimeout(G,c)};
_.P.clearTimeout=function(G){this.timeProvider.clearTimeout(G)};
_.P.interval=function(G,c){var I=this.intervalObservable(G).subscribe(c);return function(){return void I.unsubscribe()}};
_.P.intervalObservable=function(G){return this.timeProvider.intervalObservable(G)};
_.Nh.Object.defineProperties(WzV.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var J_K=function(){this.timeline=Symbol()};
_.P=J_K.prototype;_.P.available=function(){return!1};
_.P.now=function(){return new Ym(0,this.timeline)};
_.P.setTimeout=function(){return 0};
_.P.clearTimeout=function(){};
_.P.interval=function(){return function(){}};
_.P.intervalObservable=function(){return iy};var M0=function(G,c){this.intrinsicFunctionNamespace=G;this.performanceMonitor=c};
_.P=M0.prototype;_.P.setTimeout=function(G,c){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,G),c)};
_.P.clearTimeout=function(G){this.intrinsicFunctionNamespace.clearTimeout(G)};
_.P.interval=function(G,c){var I=this.intervalObservable(G).subscribe(c);return function(){return void I.unsubscribe()}};
_.P.intervalObservable=function(G){var c=this;return new U9(function(I){var R=0,Z=c.intrinsicFunctionNamespace.setInterval(function(){I.next(R++)},G);
return function(){c.intrinsicFunctionNamespace.clearInterval(Z)}})};
_.P.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var iT2=function(G,c){M0.call(this,G,c);this.timeline=Em2};
_.u(iT2,M0);iT2.prototype.now=function(){return new Ym(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
iT2.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&M0.prototype.available.call(this)};var fTN=function(G,c){M0.call(this,G,c);this.timeline=jWg};
_.u(fTN,M0);fTN.prototype.now=function(){return new Ym(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
fTN.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&M0.prototype.available.call(this)};var r_B=function(G){this.context=G;if(B5A===void 0)a:{var c,I,R=(c=G.global)==null?void 0:(I=c.document)==null?void 0:I.createElement("meta");if(R)try{R.httpEquiv="origin-trial";R.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";G.global.document.head.append(R);B5A=R;break a}catch(Z){}B5A=void 0}},
B5A;
r_B.prototype.isSupported=function(G){return L3T(this.context)!==void 0&&!(G==null||!G.endOfSession)&&!Vz(this.context)&&!(G==null?0:G.attributionEnabled)&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
r_B.prototype.makeBeacon=function(G,c){if(!this.isSupported(c))throw new $q;return new z7(this.context,G,c)};
var z7=function(G,c,I){this.context=G;this.properties=I;this.JSC$9398_urlWithoutToken=c;var R;this.beaconMethod=(R=I==null?void 0:I.beaconMethod)!=null?R:"GET";G=L3T(this.context);if(G===void 0)throw Error();this.fetchLater=G;jEN(this,x3V(this))},jEN=function(G,c){G.beaconResult&&G.beaconResult.activated||(G.beaconAbort=new AbortController,G.beaconResult=G.fetchLater(c,{method:G.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:G.beaconAbort.signal,activateAfter:96E4}))},x3V=function(G){G=G.JSC$9398_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"flapi=1"};
z7.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
z7.prototype.sendNow=function(){};
z7.prototype.setHeader=function(){};
_.Nh.Object.defineProperties(z7.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9398_urlWithoutToken},
set:function(G){this.JSC$9398_urlWithoutToken=G;G=x3V(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);jEN(this,G)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var tne=function(G){this.context=G};
tne.prototype.isSupported=function(){return!Vz(this.context)&&!!this.context.global.fetch};
tne.prototype.ping=function(){var G=this;return Xe.apply(null,_.jn(_.Hy.apply(0,arguments).map(function(c){return km(G.context.global.fetch(c,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(r5(function(I){return I.status===200}))}))).pipe(zpU(function(c){return c}),JsO())};
tne.prototype.pingWithHeadersAndBody=function(G,c,I){for(var R=_.Hy.apply(3,arguments),Z=this,K=new Headers,m=_.Q(c.entries()),a=m.next();!a.done;a=m.next()){var O=_.Q(a.value);a=O.next().value;O=O.next().value;K.set(a,O)}var N,q=(N=G.keepAlive)!=null?N:!1;Xe.apply(null,_.jn(R.map(function(w){return km(Z.context.global.fetch(w,Object.assign({},{method:String(G.beaconMethod),cache:"no-cache"},q?{keepalive:!0}:{},{mode:"no-cors",headers:K,body:I}))).pipe(r5(function(F){return F.status===200}))}))).pipe(zpU(function(w){return w}),
JsO())};var hJN,WNr,d3B;_.EF=function(){};
_.E0=function(G){return G};
hJN=function(G){var c=c||0;return function(){return G.apply(this,Array.prototype.slice.call(arguments,0,c))}};
_.J5=function(G){var c=!1,I;return function(){c||(I=G(),c=!0);return I}};
_.W7=function(G,c){var I=0;return function(R){_.Rq.clearTimeout(I);var Z=arguments;I=_.Rq.setTimeout(function(){G.apply(void 0,Z)},c)}};
WNr=function(G,c){var I=0,R=!1,Z=[],K=function(){I=0;R&&(R=!1,m())},m=function(){I=_.Rq.setTimeout(K,c);
var a=Z;Z=[];G.apply(void 0,a)};
return function(a){Z=arguments;I?R=!0:m()}};
d3B=function(G,c){var I=0,R=function(){I=0};
return function(Z){I||(I=_.Rq.setTimeout(R,c),G.apply(void 0,arguments))}};var HT0=function(){return nA&&Di?Di.mobile:!Cai()&&(U0("iPod")||U0("iPhone")||U0("Android")||U0("IEMobile"))},Cai=function(){return nA&&Di?!Di.mobile&&(U0("iPad")||U0("Android")||U0("Silk")):U0("iPad")||U0("Android")&&!U0("Mobile")||U0("Silk")};var iI=function(G,c,I,R,Z){this.allowedElements=G;this.elementPolicies=c;this.allowedGlobalAttributes=I;this.globalAttributePolicies=R;this.globallyAllowedAttributePrefixes=Z},XMe=function(G,c,I){I=G.elementPolicies.get(I);
return(I==null?0:I.has(c))?I.get(c):G.allowedGlobalAttributes.has(c)?{policyAction:1}:(I=G.globalAttributePolicies.get(c))?I:G.globallyAllowedAttributePrefixes&&[].concat(_.jn(G.globallyAllowedAttributePrefixes)).some(function(R){return c.indexOf(R)===0})?{policyAction:1}:{policyAction:0}};var y_e="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(" "),
gmK=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],Y9A="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
GMN=[["dir",{policyAction:3,conditions:pG(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:pG(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:pG(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:pG(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],cse=new iI(new Set(y_e),new Map(gmK),new Set(Y9A),new Map(GMN)),I3e=new iI(new Set(y_e.concat(["BUTTON",
"INPUT"])),new Map(gmK),new Set(pG(function(){return Y9A.concat(["class","id","name"])})),new Map(pG(function(){return GMN.concat([["style",
{policyAction:1}]])})));var Rpi,Z8p,Py0;Rpi=function(G,c,I,R,Z){this.JSC$9455_sanitizerTable=G;this.styleElementSanitizer=c;this.styleAttributeSanitizer=I;this.JSC$9455_resourceUrlPolicy=R;this.JSC$9455_navigationUrlPolicy=Z;this.changes=[]};
_.K3i=function(G,c){var I=document.implementation.createHTMLDocument("");G=Z8p(G,c,I);I=I.body;I.appendChild(G);I=(new XMLSerializer).serializeToString(I);I=I.slice(I.indexOf(">")+1,I.lastIndexOf("</"));return Gi(I)};
Z8p=function(G,c,I){c=dSA(c,I);c=document.createTreeWalker(c,5,function(a){if(a.nodeType===3)a=1;else if(H8b(a))if(a=Cyr(a),a===null)a=2;else{var O=G.JSC$9455_sanitizerTable;a=a!=="FORM"&&(O.allowedElements.has(a)||O.elementPolicies.has(a))?1:2}else a=2;return a});
for(var R=c.nextNode(),Z=I.createDocumentFragment(),K=Z;R!==null;){var m=void 0;if(R.nodeType===3)G.styleElementSanitizer&&K.nodeName==="STYLE"?(R=G.styleElementSanitizer(R.data),m=G.createTextNode(R)):m=G.createTextNode(R.data);else if(H8b(R))m=Py0(G,R,I);else throw Error("Z");K.appendChild(m);if(R=c.firstChild())K=m;else for(;!(R=c.nextSibling())&&(R=c.parentNode());)K=K.parentNode}return Z};
Rpi.prototype.createTextNode=function(G){return document.createTextNode(G)};
Py0=function(G,c,I){var R,Z=Cyr(c);I=I.createElement(Z);c=c.attributes;for(var K=_.Q(c),m=K.next();!m.done;m=K.next()){var a=m.value;m=a.name;a=a.value;var O=XMe(G.JSC$9455_sanitizerTable,m,Z);a:{if(R=O.conditions){R=_.Q(R);for(var N=R.next();!N.done;N=R.next()){var q=_.Q(N.value);N=q.next().value;q=q.next().value;var w=void 0;if((N=(w=c.getNamedItem(N))==null?void 0:w.value)&&!q.has(N)){R=!1;break a}}}R=!0}if(R)switch(O.policyAction){case 1:n8(I,m,a);break;case 2:throw Error();case 3:n8(I,m,a.toLowerCase());
break;case 4:G.styleAttributeSanitizer?(a=G.styleAttributeSanitizer(a),n8(I,m,a)):n8(I,m,a);break;case 5:G.JSC$9455_resourceUrlPolicy?(O={type:2,attributeName:m,elementName:Z},a=hpg(a),(a=G.JSC$9455_resourceUrlPolicy(a,O))&&n8(I,m,a.toString())):n8(I,m,a);break;case 6:if(G.JSC$9455_resourceUrlPolicy){O={type:2,attributeName:m,elementName:Z};R=[];a=_.Q(a.split(","));for(N=a.next();!N.done;N=a.next())q=_.Q(N.value.trim().split(/\s+/,2)),N=q.next().value,q=q.next().value,R.push({url:N,descriptor:q});
a={parts:[]};R=_.Q(R);for(N=R.next();!N.done;N=R.next())N=N.value,q=hpg(N.url),(q=G.JSC$9455_resourceUrlPolicy(q,O))&&a.parts.push({url:q.toString(),descriptor:N.descriptor});n8(I,m,X6C(a))}else n8(I,m,a);break;case 7:O=a;if(G.JSC$9455_navigationUrlPolicy){O={type:2,attributeName:m,elementName:Z};a=hpg(a);a=G.JSC$9455_navigationUrlPolicy(a,O);if(a===null)break;O=a.toString()}a=O;O=_.Fzb(a);O=O!==void 0&&QEK.indexOf(O.toLowerCase())!==-1?a:"about:invalid#zClosurez";n8(I,m,O)}}return I};
_.Q2e=pG(function(){return new Rpi(cse)});
_.mSk=pG(function(){return new Rpi(I3e)});var a3K=function(){this.calledBuild=!1;this.JSC$9467_sanitizerTable=cse},TxN=function(){a3K.apply(this,arguments)};
_.u(TxN,a3K);TxN.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new Rpi(this.JSC$9467_sanitizerTable,void 0,void 0,this.JSC$9467_resourceUrlPolicy,this.JSC$9467_navigationUrlPolicy)};var O89=/[^#]*/;var f30={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"},ep0=_.J5(function(){return rs0()}),
l3K=function(){var G=Nx2("IFRAME"),c={};
_.K4(ep0(),function(I){G.sandbox&&G.sandbox.supports&&G.sandbox.supports(I)&&(c[I]=!0)});
return c},Nx2=function(G,c){c=c===void 0?document:c;
return c.createElement(String(G).toLowerCase())};var fm;_.Be=function(G,c,I){return Math.min(Math.max(G,c),I)};
fm=function(G,c,I){return G+I*(c-G)};_.ts=function(G,c){this.x=G!==void 0?G:0;this.y=c!==void 0?c:0};
_.P=_.ts.prototype;_.P.clone=function(){return new _.ts(this.x,this.y)};
_.P.equals=function(G){return G instanceof _.ts&&(this==G?!0:this&&G?this.x==G.x&&this.y==G.y:!1)};
_.P.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.P.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.P.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.P.translate=function(G,c){G instanceof _.ts?(this.x+=G.x,this.y+=G.y):(this.x+=Number(G),typeof c==="number"&&(this.y+=c));return this};
_.P.scale=function(G,c){this.x*=G;this.y*=typeof c==="number"?c:G;return this};_.SB=function(G,c){this.width=G;this.height=c};
_.P=_.SB.prototype;_.P.clone=function(){return new _.SB(this.width,this.height)};
_.P.area=function(){return this.width*this.height};
_.P.aspectRatio=function(){return this.width/this.height};
_.P.isEmpty=function(){return!this.area()};
_.P.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.P.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.P.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.P.scale=function(G,c){this.width*=G;this.height*=typeof c==="number"?c:G;return this};var qq0;_.rx={};qq0="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.rx.add=function(G,c,I){if(G!==null&&c in G)throw Error("na`"+c);G[c]=I};
_.rx.clear=function(G){for(var c in G)delete G[c]};
_.rx.clone=function(G){var c={},I;for(I in G)c[I]=G[I];return c};
_.rx.contains=function(G,c){return cKC(G,c)};
_.rx.containsKey=function(G,c){return G!==null&&c in G};
_.rx.containsValue=cKC;_.rx.create=ZS8;_.rx.createImmutableView=function(G){var c=G;Object.isFrozen&&!Object.isFrozen(G)&&(c=Object.create(G),Object.freeze(c));return c};
_.rx.createSet=Kr8;_.rx.equals=function(G,c){for(var I in G)if(!(I in c)||G[I]!==c[I])return!1;for(var R in c)if(!(R in G))return!1;return!0};
_.rx.every=function(G,c,I){for(var R in G)if(!c.call(I,G[R],R,G))return!1;return!0};
_.rx.extend=function(G,c){for(var I,R,Z=1;Z<arguments.length;Z++){R=arguments[Z];for(I in R)G[I]=R[I];for(var K=0;K<qq0.length;K++)I=qq0[K],Object.prototype.hasOwnProperty.call(R,I)&&(G[I]=R[I])}};
_.rx.filter=function(G,c,I){var R={},Z;for(Z in G)c.call(I,G[Z],Z,G)&&(R[Z]=G[Z]);return R};
_.rx.findKey=ILf;_.rx.findValue=function(G,c,I){return(c=ILf(G,c,I))&&G[c]};
_.rx.forEach=function(G,c,I){for(var R in G)c.call(I,G[R],R,G)};
_.rx.get=function(G,c,I){return G!==null&&c in G?G[c]:I};
_.rx.getAllPropertyNames=function(G,c,I){if(!G)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return GB8(G);for(var R={};G&&(G!==Object.prototype||c)&&(G!==Function.prototype||I);){for(var Z=Object.getOwnPropertyNames(G),K=0;K<Z.length;K++)R[Z[K]]=!0;G=Object.getPrototypeOf(G)}return GB8(R)};
_.rx.getAnyKey=function(G){for(var c in G)return c};
_.rx.getAnyValue=function(G){for(var c in G)return G[c]};
_.rx.getCount=function(G){var c=0,I;for(I in G)c++;return c};
_.rx.getKeys=GB8;_.rx.getSuperClass=function(G){return(G=Object.getPrototypeOf(G.prototype))&&G.constructor};
_.rx.getValueByKeys=function(G,c){var I=_.xp(c),R=I?c:arguments;for(I=I?0:1;I<R.length;I++){if(G==null)return;G=G[R[I]]}return G};
_.rx.getValues=function(G){var c=[],I=0,R;for(R in G)c[I++]=G[R];return c};
_.rx.isEmpty=function(G){for(var c in G)return!1;return!0};
_.rx.isImmutableView=function(G){return!!Object.isFrozen&&Object.isFrozen(G)};
_.rx.map=function(G,c,I){var R={},Z;for(Z in G)R[Z]=c.call(I,G[Z],Z,G);return R};
_.rx.remove=function(G,c){var I;(I=c in G)&&delete G[c];return I};
_.rx.set=function(G,c,I){G[c]=I};
_.rx.setIfUndefined=function(G,c,I){return c in G?G[c]:G[c]=I};
_.rx.setWithReturnValueIfNotSet=function(G,c,I){if(c in G)return G[c];I=I();return G[c]=I};
_.rx.some=function(G,c,I){for(var R in G)if(c.call(I,G[R],R,G))return!0;return!1};
_.rx.transpose=function(G){var c={},I;for(I in G)c[G[I]]=I;return c};
_.rx.unsafeClone=RY0;var X4=function(G,c){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=G===Gfr&&c||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=w6N};
X4.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var F3V=function(G){return G instanceof X4&&G.constructor===X4&&G.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===w6N?G.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},w6N={},Gfr={};
new X4(Gfr,"");var zM,pS,r1,nMK,oMT,DSk,hs,uUk,kM9,b8V,h5,s2K,VBB,MBK,p69,zpe,EM9,JsB,W30,nC0,i8i,Bxi,rsK,f3K,B7;zM=function(G){return G?new B7(_.dx(G)):Uf0||(Uf0=new B7)};
_.P8=function(G,c){return typeof c==="string"?G.getElementById(c):c};
pS=function(G,c){return(c||document).getElementsByTagName(String(G))};
_.vMA=function(G){return nMK("yt-formatted-string","paper-input-input",G)};
r1=function(G,c,I,R){G=R||G;return(c=c&&c!="*"?String(c).toUpperCase():"")||I?G.querySelectorAll(c+(I?"."+I:"")):G.getElementsByTagName("*")};
nMK=function(G,c,I){var R=document,Z=G&&G!="*"?String(G).toUpperCase():"";return Z||c?(I||R).querySelector(Z+(c?"."+c:"")):r1(R,G,c,I)[0]||null};
oMT=function(G,c){_.rx.forEach(c,function(I,R){R=="style"?G.style.cssText=I:R=="class"?G.className=I:R=="for"?G.htmlFor=I:DSk.hasOwnProperty(R)?G.setAttribute(DSk[R],I):_.KA(R,"aria-")||_.KA(R,"data-")?G.setAttribute(R,I):G[R]=I})};
DSk={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"};_.p8=function(G){G=(G||window).document;G=G.compatMode=="CSS1Compat"?G.documentElement:G.body;return new _.SB(G.clientWidth,G.clientHeight)};
_.UST=function(G){var c=_.j1(G);G=G.defaultView;return new _.ts((G==null?void 0:G.pageXOffset)||c.scrollLeft,(G==null?void 0:G.pageYOffset)||c.scrollTop)};
_.j1=function(G){return G.scrollingElement?G.scrollingElement:_.vC||G.compatMode!="CSS1Compat"?G.body||G.documentElement:G.documentElement};
hs=function(G){return G?G.defaultView:window};
_.xq=function(G,c,I){return uUk(document,arguments)};
uUk=function(G,c){var I=c[1],R=b8V(G,String(c[0]));I&&(typeof I==="string"?R.className=I:Array.isArray(I)?R.className=I.join(" "):oMT(R,I));c.length>2&&kM9(G,R,c,2);return R};
kM9=function(G,c,I,R){function Z(a){a&&c.appendChild(typeof a==="string"?G.createTextNode(a):a)}
for(;R<I.length;R++){var K=I[R];if(!_.xp(K)||_.db(K)&&K.nodeType>0)Z(K);else{a:{if(K&&typeof K.length=="number"){if(_.db(K)){var m=typeof K.item=="function"||typeof K.item=="string";break a}if(typeof K==="function"){m=typeof K.item=="function";break a}}m=!1}_.K4(m?_.jr(K):K,Z)}}};
_.$9=function(G){return b8V(document,G)};
b8V=function(G,c){c=String(c);G.contentType==="application/xhtml+xml"&&(c=c.toLowerCase());return G.createElement(c)};
_.t5=function(){return document.createTextNode("\n")};
h5=function(G){if(G.nodeType!=1)return!1;switch(G.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
s2K=function(G,c){kM9(_.dx(G),G,arguments,1)};
_.d1=function(G){for(var c;c=G.firstChild;)G.removeChild(c)};
_.Cm=function(G,c){c.parentNode&&c.parentNode.insertBefore(G,c)};
_.H7=function(G,c){c.parentNode&&c.parentNode.insertBefore(G,c.nextSibling)};
_.ST=function(G){return G&&G.parentNode?G.parentNode.removeChild(G):null};
_.L32=function(G,c){var I=c.parentNode;I&&I.replaceChild(G,c)};
_.Asi=function(G){var c,I=G.parentNode;if(I&&I.nodeType!=11)if(G.removeNode)G.removeNode(!1);else{for(;c=G.firstChild;)I.insertBefore(c,G);_.ST(G)}};
_.XI=function(G){return G.children!=void 0?G.children:Array.prototype.filter.call(G.childNodes,function(c){return c.nodeType==1})};
_.Sq9=function(G){return G.nextElementSibling!==void 0?G.nextElementSibling:_.$S0(G.nextSibling,!0)};
_.$S0=function(G,c){for(;G&&G.nodeType!=1;)G=c?G.nextSibling:G.previousSibling;return G};
_.Ta=function(G){return _.db(G)&&G.nodeType==1};
_.Y9=function(G,c){if(!G||!c)return!1;if(G.contains&&c.nodeType==1)return G==c||G.contains(c);if(typeof G.compareDocumentPosition!="undefined")return G==c||!!(G.compareDocumentPosition(c)&16);for(;c&&G!=c;)c=c.parentNode;return c==G};
VBB=function(G,c){if(G==c)return 0;if(G.compareDocumentPosition)return G.compareDocumentPosition(c)&2?1:-1;if("sourceIndex"in G||G.parentNode&&"sourceIndex"in G.parentNode){var I=G.nodeType==1,R=c.nodeType==1;if(I&&R)return G.sourceIndex-c.sourceIndex;var Z=G.parentNode,K=c.parentNode;return Z==K?p69(G,c):!I&&_.Y9(Z,c)?-1*MBK(G,c):!R&&_.Y9(K,G)?MBK(c,G):(I?G.sourceIndex:Z.sourceIndex)-(R?c.sourceIndex:K.sourceIndex)}R=_.dx(G);I=R.createRange();I.selectNode(G);I.collapse(!0);G=R.createRange();G.selectNode(c);
G.collapse(!0);return I.compareBoundaryPoints(_.Rq.Range.START_TO_END,G)};
MBK=function(G,c){var I=G.parentNode;if(I==c)return-1;for(;c.parentNode!=I;)c=c.parentNode;return p69(c,G)};
p69=function(G,c){for(;c=c.previousSibling;)if(c==G)return-1;return 1};
zpe=function(G){var c,I=arguments.length;if(!I)return null;if(I==1)return arguments[0];var R=[],Z=Infinity;for(c=0;c<I;c++){for(var K=[],m=arguments[c];m;)K.unshift(m),m=m.parentNode;R.push(K);Z=Math.min(Z,K.length)}K=null;for(c=0;c<Z;c++){m=R[0][c];for(var a=1;a<I;a++)if(m!=R[a][c])return K;K=m}return K};
_.dx=function(G){return G.nodeType==9?G:G.ownerDocument||G.document};
EM9=function(G){return G.contentDocument||G.contentWindow.document};
_.yz=function(G,c){if("textContent"in G)G.textContent=c;else if(G.nodeType==3)G.data=String(c);else if(G.firstChild&&G.firstChild.nodeType==3){for(;G.lastChild!=G.firstChild;)G.removeChild(G.lastChild);G.firstChild.data=String(c)}else _.d1(G),G.appendChild(_.dx(G).createTextNode(String(c)))};
JsB={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};W30={IMG:" ",BR:"\n"};nC0=function(G){var c;G.tagName=="A"&&G.hasAttribute("href")||G.tagName=="INPUT"||G.tagName=="TEXTAREA"||G.tagName=="SELECT"||G.tagName=="BUTTON"?c=!G.disabled&&(!G.hasAttribute("tabindex")||i8i(G)):c=G.hasAttribute("tabindex")&&i8i(G);return c};
i8i=function(G){G=G.tabIndex;return typeof G==="number"&&G>=0&&G<32768};
Bxi=function(G){var c=[];f3K(G,c,!0);G=c.join("");G=G.replace(/ \xAD /g," ").replace(/\xAD/g,"");G=G.replace(/\u200B/g,"");G=G.replace(/ +/g," ");G!=" "&&(G=G.replace(/^\s*/,""));return G};
rsK=function(G){var c=[];f3K(G,c,!1);return c.join("")};
f3K=function(G,c,I){if(!(G.nodeName in JsB))if(G.nodeType==3)I?c.push(String(G.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(G.nodeValue);else if(G.nodeName in W30)c.push(W30[G.nodeName]);else for(G=G.firstChild;G;)f3K(G,c,I),G=G.nextSibling};
_.j20=function(G,c,I){if(!c&&!I)return null;var R=c?String(c).toUpperCase():null;return _.H6(G,function(Z){return(!R||Z.nodeName==R)&&(!I||typeof Z.className==="string"&&_.fA(Z.className.split(/\s+/),I))},!0)};
_.H6=function(G,c,I){G&&!I&&(G=G.parentNode);for(I=0;G;){if(c(G))return G;G=G.parentNode;I++}return null};
B7=function(G){this.JSC$9495_document_=G||_.Rq.document||document};
_.P=B7.prototype;_.P.getElement=function(G){return _.P8(this.JSC$9495_document_,G)};
_.P.$=B7.prototype.getElement;_.P.getElementsByTagName=function(G,c){return(c||this.JSC$9495_document_).getElementsByTagName(String(G))};
_.P.getElementsByTagNameAndClass=function(G,c,I){return r1(this.JSC$9495_document_,G,c,I)};
_.P.$$=B7.prototype.getElementsByTagNameAndClass;_.P.setProperties=oMT;_.P.JSC$9497_createDom=function(G,c,I){return uUk(this.JSC$9495_document_,arguments)};
_.P.createElement=function(G){return b8V(this.JSC$9495_document_,G)};
_.P.createTextNode=function(G){return this.JSC$9495_document_.createTextNode(String(G))};
_.P.getWindow=function(){return this.JSC$9495_document_.defaultView};
var V0=function(G){return _.UST(G.JSC$9495_document_)};
_.P=B7.prototype;_.P.appendChild=function(G,c){G.appendChild(c)};
_.P.append=s2K;_.P.canHaveChildren=h5;_.P.removeNode=_.ST;_.P.getChildren=_.XI;_.P.contains=_.Y9;_.P.isFocusable=nC0;_.P=Uq.prototype;_.P.getWidth=function(){return this.right-this.left};
_.P.getHeight=function(){return this.bottom-this.top};
_.P.clone=function(){return new Uq(this.top,this.right,this.bottom,this.left)};
_.P.contains=function(G){return this&&G?G instanceof Uq?G.left>=this.left&&G.right<=this.right&&G.top>=this.top&&G.bottom<=this.bottom:G.x>=this.left&&G.x<=this.right&&G.y>=this.top&&G.y<=this.bottom:!1};
_.P.expand=function(G,c,I,R){_.db(G)?(this.top-=G.top,this.right+=G.right,this.bottom+=G.bottom,this.left-=G.left):(this.top-=G,this.right+=Number(c),this.bottom+=Number(I),this.left-=Number(R));return this};
_.P.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.P.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.P.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.P.translate=function(G,c){G instanceof _.ts?(this.left+=G.x,this.right+=G.x,this.top+=G.y,this.bottom+=G.y):(this.left+=G,this.right+=G,typeof c==="number"&&(this.top+=c,this.bottom+=c));return this};
_.P.scale=function(G,c){c=typeof c==="number"?c:G;this.left*=G;this.right*=G;this.top*=c;this.bottom*=c;return this};var g1=function(G,c,I,R){this.left=G;this.top=c;this.width=I;this.height=R};
_.P=g1.prototype;_.P.clone=function(){return new g1(this.left,this.top,this.width,this.height)};
_.P.boundingRect=function(G){var c=Math.max(this.left+this.width,G.left+G.width),I=Math.max(this.top+this.height,G.top+G.height);this.left=Math.min(this.left,G.left);this.top=Math.min(this.top,G.top);this.width=c-this.left;this.height=I-this.top};
_.P.contains=function(G){return G instanceof _.ts?G.x>=this.left&&G.x<=this.left+this.width&&G.y>=this.top&&G.y<=this.top+this.height:this.left<=G.left&&this.left+this.width>=G.left+G.width&&this.top<=G.top&&this.top+this.height>=G.top+G.height};
_.P.distance=function(G){var c=G.x<this.left?this.left-G.x:Math.max(G.x-(this.left+this.width),0);G=G.y<this.top?this.top-G.y:Math.max(G.y-(this.top+this.height),0);return Math.sqrt(c*c+G*G)};
_.P.getSize=function(){return new _.SB(this.width,this.height)};
_.P.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.P.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.P.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.P.translate=function(G,c){G instanceof _.ts?(this.left+=G.x,this.top+=G.y):(this.left+=G,typeof c==="number"&&(this.top+=c));return this};
_.P.scale=function(G,c){c=typeof c==="number"?c:G;this.left*=G;this.width*=G;this.top*=c;this.height*=c;return this};var tBe,cL,SZ0,GR,H8e,Cy0,X69,uIB,ys2,YqB;_.Yq=function(G,c,I){if(typeof c==="string")(c=_.xSi(G,c))&&(G.style[c]=I);else for(var R in c){I=G;var Z=c[R],K=_.xSi(I,R);K&&(I.style[K]=Z)}};
tBe={};_.xSi=function(G,c){var I=tBe[c];if(!I){var R=_.mY(c);I=R;G.style[R]===void 0&&(R=(_.vC?"Webkit":_.ny?"Moz":null)+wMA(R),G.style[R]!==void 0&&(I=R));tBe[c]=I}return I};
_.qo=function(G,c){var I=_.dx(G);return I.defaultView&&I.defaultView.getComputedStyle&&(G=I.defaultView.getComputedStyle(G,null))?G[c]||G.getPropertyValue(c)||"":""};
_.gF=function(G,c){return _.qo(G,c)||(G.currentStyle?G.currentStyle[c]:null)||G.style&&G.style[c]};
_.hpA=function(G){return _.gF(G,"position")};
cL=function(G,c,I){if(c instanceof _.ts){var R=c.x;c=c.y}else R=c,c=I;G.style.left=GR(R,!1);G.style.top=GR(c,!1)};
SZ0=function(G){try{return G.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}};
_.C8=function(G){var c=_.dx(G),I=new _.ts(0,0);if(G==(c?_.dx(c):document).documentElement)return I;G=SZ0(G);c=V0(zM(c));I.x=G.left+c.x;I.y=G.top+c.y;return I};
_.dSN=function(G,c,I){if(c instanceof _.SB)I=c.height,c=c.width;else if(I==void 0)throw Error("oa");G.style.width=GR(c,!0);G.style.height=GR(I,!0)};
GR=function(G,c){typeof G=="number"&&(G=(c?Math.round(G):G)+"px");return G};
H8e=function(G){return Cy0(G)};
Cy0=function(G){var c=X69;if(_.gF(G,"display")!="none")return c(G);var I=G.style,R=I.display,Z=I.visibility,K=I.position;I.visibility="hidden";I.position="absolute";I.display="inline";G=c(G);I.display=R;I.position=K;I.visibility=Z;return G};
X69=function(G){var c=G.offsetWidth,I=G.offsetHeight,R=_.vC&&!c&&!I;return(c===void 0||R)&&G.getBoundingClientRect?(G=SZ0(G),new _.SB(G.right-G.left,G.bottom-G.top)):new _.SB(c,I)};
uIB=function(G){var c=_.C8(G);G=Cy0(G);return new g1(c.x,c.y,G.width,G.height)};
ys2=function(G,c){G=G.style;"opacity"in G?G.opacity=c:"MozOpacity"in G?G.MozOpacity=c:"filter"in G&&(G.filter=c===""?"":"alpha(opacity="+Number(c)*100+")")};
_.Kt=function(G,c){G.style.display=c?"":"none"};
_.gM2=function(G){return"rtl"==_.gF(G,"direction")};
YqB=function(G){var c=_.qo(G,"marginLeft"),I=_.qo(G,"marginRight"),R=_.qo(G,"marginTop");G=_.qo(G,"marginBottom");return new Uq(parseFloat(R),parseFloat(I),parseFloat(G),parseFloat(c))};
_.GBV=function(G){var c=_.qo(G,"borderLeftWidth"),I=_.qo(G,"borderRightWidth"),R=_.qo(G,"borderTopWidth");G=_.qo(G,"borderBottomWidth");return new Uq(parseFloat(R),parseFloat(I),parseFloat(G),parseFloat(c))};var IK=function(G){this.context=G};
IK.prototype.isSupported=function(G){return(G==null?0:G.attributionEnabled)||(G==null?void 0:G.beaconMethod)==="POST"||(G==null?0:G.customHeaders)||(G==null?0:G.customBody)||(G==null?0:G.keepAlive)?!1:!Vz(this.context)};
IK.prototype.ping=function(){var G=this;return E9(_.Hy.apply(0,arguments).map(function(c){try{var I=G.context.global,R=!1;R=R===void 0?!1:R;I.google_image_requests||(I.google_image_requests=[]);var Z=Nx2("IMG",I.document);R&&(Z.attributionSrc="");Z.src=c;I.google_image_requests.push(Z);return!0}catch(K){return!1}}).every(function(c){return c}))};
IK.prototype.pingWithHeadersAndBody=function(G,c,I){this.ping.apply(this,_.jn(_.Hy.apply(3,arguments)))};var cK9=function(G){this.context=G};
cK9.prototype.isSupported=function(G){return ILk&&!Vz(this.context)&&PR8(this.context)!==void 0&&!(G==null?0:G.attributionEnabled)&&(G==null?void 0:G.beaconMethod)!=="POST"&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
cK9.prototype.makeBeacon=function(G,c){if(!this.isSupported(c))throw new $q;return new RK(this.context,G)};
var ILk=!1,RK=function(G,c){this.context=G;this.JSC$9516_urlWithoutToken=c;G=PR8(this.context);if(G===void 0)throw Error();this.wrappedBeacon=new G(RYK(this),{})},RYK=function(G){G=G.JSC$9516_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"pbapi=1"};
RK.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
RK.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
RK.prototype.setHeader=function(){};
_.Nh.Object.defineProperties(RK.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9516_urlWithoutToken},
set:function(G){this.JSC$9516_urlWithoutToken=G;this.wrappedBeacon.setURL(RYK(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(G){if(G!=="GET")throw new $q;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var ZSV=function(G){this.context=G};
ZSV.prototype.isSupported=function(G){if((G==null?0:G.attributionEnabled)||(G==null?void 0:G.beaconMethod)==="GET"||(G==null?0:G.customHeaders)||(G==null?0:G.customBody)||(G==null?0:G.keepAlive))return!1;var c;return!Vz(this.context)&&((c=this.context.global.navigator)==null?void 0:c.sendBeacon)!==void 0};
ZSV.prototype.ping=function(){var G=this;return E9(_.Hy.apply(0,arguments).map(function(c){var I;return(I=G.context.global.navigator)==null?void 0:I.sendBeacon(c)}).every(function(c){return c}))};
ZSV.prototype.pingWithHeadersAndBody=function(G,c,I){this.ping.apply(this,_.jn(_.Hy.apply(3,arguments)))};var As=function(G){this.value=G},PD=function(G,c){return E9(G.value).pipe(kM(c))},mr=new As(!1),jgB=new As(!0);var XU=function(G){this.value=G;this.releasedSubject=new uy};
XU.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Nh.Object.defineProperties(XU.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9529_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var v9p=["FRAME","IMG","IFRAME"],NFr=/^[01](px)?$/,n90=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},FrC=function(){var G=new n90;
G.crossDomainLoadedDefault=!0;G.pendingImagesBlockLoad=!0;return G};var KrV=function(G,c){var I=snq(G);if(I)if(I.onCreativeLoad)I.onCreativeLoad(c);else{var R=c?[c]:[],Z=function(K){for(var m=0;m<R.length;++m)try{R[m](1,K)}catch(a){}R={push:function(a){a(1,K)}}};
I.onCreativeLoad=function(K){R.push(K)};
I.setAttribute("data-creative-load-listener","");I.addEventListener("creativeLoad",function(K){Z(K.detail)});
_.Rq.addEventListener("message",function(K){kBB(I,Z,K)})}};var Zr=function(G,c){var I=this;this.global=G;this.parentContext=c;this.JSC$9540_onVisibilityChange=this.document?Xe(E9(!0),CT(this.document,"visibilitychange")).pipe(GM(this.parentContext.performanceMonitor,748),r5(function(){return I.getVisibilityState()}),K8()):E9("visible");
this.document?CT(this.document,"DOMContentLoaded").pipe(GM(this.parentContext.performanceMonitor,739),Z3(1)):E9(OS0("DOMContentLoaded"))},rIi=function(G){return G.document!==null&&G.document.visibilityState!==void 0};
Zr.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Zr.prototype.querySelector=function(G){return this.document?this.document.querySelector(G):null};
Zr.prototype.querySelectorAll=function(G){return this.document?_.jr(this.document.querySelectorAll(G)):[]};
Zr.prototype.elementFromPoint=function(G,c){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;G=this.document.elementFromPoint(G,c);return G===null?null:new XU(G)};
var SGi=function(G,c,I){I=I===void 0?!1:I;if(c.ref===void 0||!G.document)return E9(c).pipe(GM(G.parentContext.performanceMonitor,749));var R=new TM(1),Z=function(){R.next(c)};
I||KrV(c.ref,Z);Dwr(c.ref,Z);return R.pipe(GM(G.parentContext.performanceMonitor,749),Z3(1))};
_.Nh.Object.defineProperties(Zr.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return j2r(this.global,"document")?this.global.document||null:null}}});var Lri=_.I3(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),AKb=_.I3(["./reach_worklet.js"]),$wO=_.I3(["./reach_worklet.js"]),PRV=_.I3(["./reach_worklet.html"]),QnT=_.I3(["./reach_worklet.js"]),mwe=_.I3(["./reach_worklet.js"]);_.D3(PRV);_.D3(QnT);_.D3(mwe);var cD={left:0,top:0,width:0,height:0};var aLA,TFe,OSK,eYk,eA,lLT,qek,wDk,tli,hh8,v9K,Dwi;aLA=function(G,c,I,R,Z,K,m){var a="";G&&(a+=G+":");I&&(a+="//",c&&(a+=c+"@"),a+=I,R&&(a+=":"+R));Z&&(a+=Z);K&&(a+="?"+K);m&&(a+="#"+m);return a};
TFe=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Tu=function(G){return G.match(TFe)};
_.zF=function(G,c){return G?c?decodeURI(G):decodeURIComponent(G):G};
OSK=function(G){G=_.Tu(G)[1]||null;!G&&_.Rq.self&&_.Rq.self.location&&(G=_.Rq.self.location.protocol.slice(0,-1));return G?G.toLowerCase():""};
_.O2=function(G){return _.zF(_.Tu(G)[3]||null,!0)};
_.Aw=function(G){return _.zF(_.Tu(G)[5]||null,!0)};
_.nkb=function(G){var c=G.indexOf("#");return c<0?null:G.slice(c+1)};
eYk=function(G){G=_.Tu(G);return aLA(G[1],G[2],G[3],G[4])};
_.NFi=function(G){G=_.Tu(G);return aLA(G[1],null,G[3],G[4])};
_.zO=function(G){G=_.Tu(G);return aLA(null,null,null,null,G[5],G[6],G[7])};
_.jy=function(G){var c=G.indexOf("#");return c<0?G:G.slice(0,c)};
eA=function(G,c){G=_.Tu(G);c=_.Tu(c);return G[3]==c[3]&&G[1]==c[1]&&G[4]==c[4]};
lLT=function(G,c){if(G){G=G.split("&");for(var I=0;I<G.length;I++){var R=G[I].indexOf("="),Z=null;if(R>=0){var K=G[I].substring(0,R);Z=G[I].substring(R+1)}else K=G[I];c(K,Z?lW(Z):"")}}};
qek=function(G){var c=G.indexOf("#");c<0&&(c=G.length);var I=G.indexOf("?");if(I<0||I>c){I=c;var R=""}else R=G.substring(I+1,c);return[G.slice(0,I),R,G.slice(c)]};
wDk=function(G,c){return c?G?G+"&"+c:c:G};
_.Fr9=function(G,c){if(!c)return G;G=qek(G);G[1]=wDk(G[1],c);return G[0]+(G[1]?"?"+G[1]:"")+G[2]};
_.n9K=function(G,c,I){if(Array.isArray(c))for(var R=0;R<c.length;R++)_.n9K(G,String(c[R]),I);else c!=null&&I.push(G+(c===""?"":"="+_.ZH(c)))};
_.SA=function(G){var c=[],I;for(I in G)_.n9K(I,G[I],c);return c.join("&")};
_.aa=function(G,c){c=_.SA(c);return _.Fr9(G,c)};
_.KU=function(G,c,I){I=I!=null?"="+_.ZH(I):"";return _.Fr9(G,c+I)};
tli=function(G,c,I,R){for(var Z=I.length;(c=G.indexOf(I,c))>=0&&c<R;){var K=G.charCodeAt(c-1);if(K==38||K==63)if(K=G.charCodeAt(c+Z),!K||K==61||K==38||K==35)return c;c+=Z+1}return-1};
hh8=/#|$/;_.Gy=function(G,c){var I=G.search(hh8),R=tli(G,0,c,I);if(R<0)return null;var Z=G.indexOf("&",R);if(Z<0||Z>I)Z=I;R+=c.length+1;return lW(G.slice(R,Z!==-1?Z:0))};
v9K=/[?&]($|#)/;_.tO=function(G,c){for(var I=G.search(hh8),R=0,Z,K=[];(Z=tli(G,R,c,I))>=0;)K.push(G.substring(R,Z)),R=Math.min(G.indexOf("&",Z)+1||I,I);K.push(G.slice(R));return K.join("").replace(v9K,"$1")};
_.gj=function(G,c,I){return _.KU(_.tO(G,c),c,I)};
Dwi=function(G){var c=qek(window.location.href),I=c[1],R=[];I&&I.split("&").forEach(function(Z){var K=Z.indexOf("=");K=K>=0?Z.slice(0,K):Z;G.hasOwnProperty(K)||R.push(Z)});
c[1]=wDk(R.join("&"),_.SA(G));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};var XDf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(XDf,_.aR);var HSq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(HSq,_.aR);var jnb=function(G,c){return _.Eq(G,2,c)},CRU=function(G,c){return _.Eq(G,3,c)};
HSq.prototype.getModel=function(){return _.iU(this,4)};
var tT0=function(G,c){return _.Eq(G,4,c)},rKb=function(G,c){return _.Eq(G,5,c)},dwA=function(G,c){return _.Eq(G,9,c)},BFA=function(G,c){return MO(G,10,c)},fLC=function(G,c){return _.DL(G,11,c)},xwp=function(G,c){return _.Eq(G,1,c)},hYr=function(G,c){return _.DL(G,7,c)};var WrB="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var QC=function(G,c,I,R){G=G===void 0?window:G;c=c===void 0?null:c;I=I===void 0?new Jz0:I;R=R===void 0?Sei():R;pM2.call(this);var Z=this;this.global=G;this.debugChannel=c;this.performanceMonitor=I;this.onPageHide=epr(function(){return CT(Z.global,"pagehide")}).pipe(GM(this.performanceMonitor,941));
this.onLoad=epr(function(){return CT(Z.global,"load")}).pipe(GM(this.performanceMonitor,738),Z3(1));
this.onResize=epr(function(){return CT(Z.global,"resize")}).pipe(GM(this.performanceMonitor,741));
this.onMessage=epr(function(){return CT(Z.global,"message")}).pipe(GM(this.performanceMonitor,740));
this.document=new Zr(this.global,this);this.timeProvider=new WzV(new fTN(this.intrinsicFunctionNamespace,this.performanceMonitor),new iT2(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new zJV(new r_B(this),new cK9(this),new S1(this,new tne(this)),new S1(this,new ZSV(this)),new S1(this,new IK(this)))};
_.u(QC,pM2);QC.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(G){return G}};
var Vz=function(G){var c=G.global;return!!G.global.HTMLFencedFrameElement&&!!c.fence&&typeof c.fence.reportEvent==="function"};
_.P=QC.prototype;_.P.reportFencedFrameEvent=function(G){Vz(this)&&this.global.fence.reportEvent(G)};
_.P.getOnBackgrounded=function(){return this.onPageHide.pipe(GM(this.performanceMonitor,942),kM(this.queue),r5(function(){}))};
_.P.postMessage=function(G,c,I){I=I===void 0?[]:I;this.global.postMessage(G,c,I)};
_.P.getWidth=function(){return xSr(this.global)?this.global.width:0};
_.P.getHeight=function(){return xSr(this.global)?this.global.height:0};
_.P.isMobile=function(){return Cai()||HT0()};
var y0=function(G,c){try{var I=zYU(c,G.global,G.isMobile());return{left:I.left,top:I.top,width:I.getWidth(),height:I.getHeight()}}catch(R){return cD}};
QC.prototype.validate=function(){var G=this.beaconFactory.isSupported()||Vz(this);return this.global&&this.timeProvider.available()&&G};
var mwb=function(G){return(G=g9U(G.global))?km(G):null};
_.Nh.Object.defineProperties(QC.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(G){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(G){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!xSr(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}}});_.o9B=!_.FY&&!_.npp();var xE0=function(G){return G};var hZb=function(G){return G.pipe(yp(function(c){var I=c.endOfSessionReason;var R;return((R=c.viewable)==null?void 0:R.extrapolateToNow().value)||I!=void 0}),Z3(1),I2())};var KuO=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},PeC=function(G){var c=G.sequenceNumber.toString(10).padStart(2,"0");
c=""+G.startTime+c;G.sequenceNumber<99&&G.sequenceNumber++;return c};var BKq=oE(wx(function(G){return G.endOfSessionReason===void 0}),r5(function(G){return Object.assign({},G,{timestamps:W6(G)})}),yp(function(G){var c=G.viewable;
G=G.timestamps;var I;return(I=c==null?void 0:c.extrapolateUsingTimestampMap(G).value)!=null?I:!1}),r5(function(G){var c=G.beaconFactory;
var I=G.timestampedExposureHistory;var R=G.timeOnScreen;var Z=G.binaryContext;G=G.timestamps;if(c===void 0||I===void 0||R===void 0||Z===void 0)return!1;if(R.extrapolateUsingTimestampMap(G).value.every(function(K){return K>=0}))return!0;
I=I.map(function(K){return K.timestamp+":"+K.value}).join(",");
R=QWC({bin:Z,tos:R},G);c.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+R+("&eh="+I)).sendNow();return!0}),wx(function(G){return!G}),I2());var amb=function(G){return{id:G.pingId,mcvt:G.maxConsecutiveViewTime,p:G.creativePosition,asp:G.adSpeedPosition,tm:G.totalMeasurementTime,tu:G.totalUnviewedTime,mtos:G.maxTimeOnScreen,tos:G.timeOnScreen,v:G.binaryVersion,bin:G.binaryContext,avms:G.measurementStrategy,bs:G.browserSize,mc:G.maximumExposure,"if":G.crossDomainIframeState,vu:G.delayedImpressionJsState,app:G.inApp,mse:G.mraidError,mtop:G.mraidSituation,itpl:G.injectedTemplateId,adk:G.adKey,exk:G.awbidKey,rs:G.requestSource,la:G.isLargeAd,
cr:G.isContentRecommendationAd,uach:G.userAgentClientHints,vs:G.viewState,r:G.reasonCode,pay:G.hasCpmavUrl,co:G.clientPingOrderCounter,rst:G.adRenderStartTime,rpt:G.adRenderPeriodTime,isd:G.initialScrollDepth,lsd:G.loadedScrollDepth,context:G.errorContext,msg:G.errorMessage,stack:G.errorStack,name:G.errorName,ec:G.hasElementChanged,sfr:G.strategyFailureReasons,met:G.creativeSearchResult,wmsd:G.webMeasurementStartDiagnostic,pv:G.pageVisible,epv:G.eosPageVisible,pbe:G.inStatefulBeaconExperiment,fle:G.inFetchLaterBeaconExperiment,
vae:G.inViewableAttributionExperiment,spb:G.supportsPendingBeacon,sfl:G.supportsFetchLater,ffslot:G.isFencedFrameSlotTurtlex,reach:G.sharedStorageReachMode,io2:G.v2VisibilityBitVector,rxdbg:G.rxDebugger,omida:G.omidAppId,omidp:G.omidPartner,omidpv:G.omidPartnerVersion,omidor:G.omidOcclusionReasons,omidv:G.omidVersion,omids:G.omidSessionType,omidam:G.omidAccessMode,omidct:G.omidCreativeType,omidia:G.omidInApp,omiddc:G.omidDeviceCategory,omidlat:G.omidLastActivity,omiddit:G.omidDeviceIdleTime,qid:G.errorEscapedQueryId}};var tVC=function(G){var c=[];return G.pipe(r5(function(I){var R=I.beaconFactory,Z=I.fetchBeaconFactory,K=I.timeOnScreen,m=I.timeOnScreenUrlPrefixes,a=I.payloadMapper,O=I.timeOnScreenPingId,N=I.timeOnScreenReason,q=I.urlSerializer,w=I.viewable,F=I.hasImpressionFired,n=I.inStatefulBeaconExperiment,U=I.supportsPendingBeacon,k=I.supportsFetchLater,p=I.turtlexReportEventData;if(!I.geometryMeasurable||!F||I.maxTimeOnScreen===void 0||K===void 0||m===void 0||a===void 0||O===void 0||q===void 0||R===void 0)return!1;
if(I.isTurtlex){if(N===void 0)return!1;m=I.reportFencedFrameEvent;if(!m)return!1;m({eventType:"active-view-time-on-screen",eventData:p!=null?p:"",destination:["buyer"]});return!0}if(!(n||k||N))return!1;p=W6(I);var M;w=(M=w==null?void 0:w.extrapolateUsingTimestampMap(p).value)!=null?M:!1;M=q(Object.assign({},I,{pingId:O,viewState:w?4:3,reasonCode:N!=null?N:"u",payloadMapper:a,urlPrefixes:m}),p);if(n){for(;c.length>m.length;)I=void 0,(I=c.shift())==null||I.deactivate();M.forEach(function(t,x){x>=c.length?
c.push(R.makeBeacon(t)):c[x].url=t});
return U&&Z&&N!==void 0?(M.forEach(function(t){Z.makeBeacon(t).sendNow()}),!0):N!==void 0}if(U&&Z&&N!==void 0)return M.forEach(function(t){Z.makeBeacon(t).sendNow()}),!0;
if(k&&Z){for(;c.length>m.length;)U=void 0,(U=c.shift())==null||U.deactivate();var z=q(Object.assign({},I,{pingId:O,viewState:w?4:3,reasonCode:N!=null?N:"u",payloadMapper:a,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),p)[0];M.forEach(function(t,x){x>=c.length?c.push(R.makeBeacon(z,{endOfSession:!0})):c[x].url=z});
return N!==void 0?(M.forEach(function(t){Z.makeBeacon(t).sendNow()}),!0):N!==void 0}return N!==void 0?(M.forEach(function(t){R.makeBeacon(t).sendNow()}),!0):!1}),wx(function(I){return!I}),I2())};var dEp=oE(yp(function(G){return G.immediateUrlPrefixes!==void 0&&G.payloadMapper!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),yp(function(G){return FuC(G)!==null}),qZA(function(G){return G.activeViewUnmeasurableEvent},function(G){return G.emit}),r5(function(G){if(G.isTurtlex){var c=G.reportFencedFrameEvent;
if(c){var I;c({eventType:"active-view-unmeasurable",eventData:(I=G.turtlexReportEventData)!=null?I:"",destination:["buyer"]})}}else{I=void 0;var R=FuC(G);if(R==="x"){var Z,K=(Z=G.geometricMeasurementErrors)!=null?Z:G.contextValidationErrors;K&&(c=K.stack,I=K.message)}G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:2,reasonCode:R,errorMessage:I,errorStack:c}),W6(G)).forEach(function(m){G.beaconFactory.makeBeacon(m).sendNow()})}}),
Z3(1),I2());var ns8=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var f$b=oE(yp(function(G){return G.payloadMapper!==void 0&&G.immediateUrlPrefixes!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),r5(function(G){return Object.assign({},G,{timestamps:W6(G)})}),yp(function(G){var c=G.viewable;
var I=G.hasImpressionFired;G=G.timestamps;var R;return!!I&&((R=c==null?void 0:c.extrapolateUsingTimestampMap(G).value)!=null?R:!1)}),qZA(function(G){return G.activeViewViewableEvent},function(G){return G.emit}),r5(function(G){var c=G.beaconFactory,I=G.turtlexReportEventData;
if(G.isTurtlex){var R=G.reportFencedFrameEvent;if(!R)return!1;R({eventType:"active-view-viewable",eventData:I!=null?I:"",destination:["buyer"]});return!0}I=G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:4,reasonCode:"v"}),G.timestamps);(R=G.cpmavUrls)&&R.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(R,G).forEach(function(Z){c.makeBeacon(Z).sendNow()});
(R=G.viewableRelayUrls)&&R.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(R,G).forEach(function(Z){c.makeBeacon(Z).sendNow()});
I.forEach(function(Z){c.makeBeacon(Z,{attributionEnabled:G.isViewableAttributionEnabled}).sendNow()});
return!0}),wx(function(G){return!G}),I2());var a$f=r5(function(G){return[G.value.topWindowViewportExternalGeometry.width,G.value.topWindowViewportExternalGeometry.height]});var YM=function(G,c){this.callback=G;this.options=c;this.intersectionObserverV2=this.intersectionObserverV1=null},tET=function(G,c){c?G.intersectionObserverV2||(c=Object.assign({},G.options,{delay:100,
trackVisibility:!0}),G.intersectionObserverV2=new IntersectionObserver(G.callback,c)):G.intersectionObserverV1||(G.intersectionObserverV1=new IntersectionObserver(G.callback,G.options))},UwV=function(G,c){G=c?G.intersectionObserverV2:G.intersectionObserverV1;
if(!G)throw new MnT;return G};
YM.prototype.observe=function(G,c){UwV(this,G).observe(c)};
YM.prototype.unobserve=function(G,c){UwV(this,G).unobserve(c)};
YM.prototype.disconnect=function(G){UwV(this,G).disconnect()};
YM.prototype.takeRecords=function(G){return UwV(this,G).takeRecords()};var ME0={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:cD,topWindowViewportExternalGeometry:cD,measurementRequests:new uy,elementGeometrySourceName:"ns",elementGeometry:cD,intersectionGeometry:cD,viewportLocalAppOffset:{x:0,y:0}};var gsg=In(oE(r5(function(G){var c;return(c=G.exposureOverride)!=null?c:d8U(G)}),r5(function(G){return isFinite(G)?G:0}))),Keq=In(oE(r5(function(G){var c;
return(c=G.exposureOverride)!=null?c:d8U(G)}),r5(function(G){return isFinite(G)?G:-1})));var PL=function(G,c){this.a=G;this.b=c;if(G.clock.timeline!==c.clock.timeline)throw Error();};
PL.prototype.equivalentTo=function(G){return G instanceof PL?this.a.equivalentTo(G.a)&&this.b.equivalentTo(G.b):!1};
PL.prototype.extrapolateToTime=function(G){var c=this.a.extrapolateToTime(G).value,I=this.b.extrapolateToTime(G).value;return{timestamp:G,value:[c,I]}};
_.Nh.Object.defineProperties(PL.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var G=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),c=this.a.lastMeasurement.timestamp.equals(G)?this.a.lastMeasurement.value:this.a.extrapolateToTime(G).value,I=this.b.lastMeasurement.timestamp.equals(G)?this.b.lastMeasurement.value:this.b.extrapolateToTime(G).value;return{timestamp:G,value:[c,I]}}}});var QM=function(G,c){this.input=G;this.mapFunction=c;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
QM.prototype.equivalentTo=function(G){return G instanceof QM?this.input.equivalentTo(G.input)&&this.mapFunction===G.mapFunction:!1};
QM.prototype.extrapolateToTime=function(G){G=this.input.extrapolateToTime(G);return{timestamp:G.timestamp,value:this.mapFunction(G.value)}};
_.Nh.Object.defineProperties(QM.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var md=function(){};
md.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
md.prototype.extrapolateUsingTimestampMap=function(G){var c=this.clock.timeline,I,R=(I=G.get(c))!=null?I:this.clock.now();G.set(c,R);return this.extrapolateToTime(R)};
md.prototype.map=function(G){return new bSA(this,G)};
md.prototype.joinWith=function(G){return new kBT(this,G)};
var kBT=function(){PL.apply(this,arguments);this.map=md.prototype.map;this.joinWith=md.prototype.joinWith;this.extrapolateToNow=md.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=md.prototype.extrapolateUsingTimestampMap};
_.u(kBT,PL);var bSA=function(){QM.apply(this,arguments);this.map=md.prototype.map;this.joinWith=md.prototype.joinWith;this.extrapolateToNow=md.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=md.prototype.extrapolateUsingTimestampMap};
_.u(bSA,QM);var ZL=function(G,c){this.lastMeasurement=c;this.extrapolateToNow=md.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=md.prototype.extrapolateUsingTimestampMap;this.map=md.prototype.map;this.joinWith=md.prototype.joinWith;this.clock=G};
ZL.prototype.equivalentTo=function(G){return G.active};
ZL.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Nh.Object.defineProperties(ZL.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var mE0=r5(function(G){if(G.value.viewportGeometrySourceName==="omid"){if(G.value.elementGeometrySourceName==="nio")return"omio";if(G.value.elementGeometrySourceName==="geo")return"omgeo"}return G.value.elementGeometrySourceName==="geo"||G.value.elementGeometrySourceName==="nio"?G.value.viewportGeometrySourceName:G.value.elementGeometrySourceName});var Htr=oE(yp(function(G){return!isNaN(G)}),eB(function(G,c){return isNaN(G)?c:Math.min(G,c)},NaN),K8());var YZi=In(oE(r5(function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.exposedViewportLocalGeometry.width*G.exposedViewportLocalGeometry.height)}),r5(function(G){return isFinite(G)?Math.min(1,G):0})));var Qgf=oE(In(r5(function(G){G=G.exposureOverride?G.elementGeometry.width*G.elementGeometry.height*G.exposureOverride/(G.topWindowViewportExternalGeometry.width*G.topWindowViewportExternalGeometry.height):G.intersectionGeometry.width*G.intersectionGeometry.height/(G.topWindowViewportExternalGeometry.width*G.topWindowViewportExternalGeometry.height);return isFinite(G)?G:0})));var eZA=function(G,c){var I=this;this.timeProvider=G;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=c.pipe(K8()).subscribe(function(R){l$r(I);I.measurementRequestObserver=R})},qGr=function(G,c){l$r(G);
G.lastMeasurementRequest=G.timeProvider.setTimeout(function(){var I;return void((I=G.measurementRequestObserver)==null?void 0:I.next())},c)},l$r=function(G){G.lastMeasurementRequest!==null&&G.timeProvider.clearTimeout(G.lastMeasurementRequest);
G.lastMeasurementRequest=null};
eZA.prototype.dispose=function(){l$r(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var sn0=function(){};var JI8=function(G,c){this.context=G;this.strategies=c};
_.u(JI8,sn0);JI8.prototype.buildGeometrySource=function(G,c){var I=this.strategies.map(function(K){return K.buildGeometrySource(G,c)}),R=DET(I.map(function(K){return K.geometrySource})),Z=R.capturedErrors.pipe(Lrp());
return{geometrySource:R.chain.pipe(kM(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Z,strategyErrors:R.capturedErrors}].concat(_.jn(I.map(function(K){return K.additionalOutputs}))))}};
var Lrp=function(){return eB(function(G,c){c instanceof f8?G.push(c.measurementStrategyFailureReason):G.push(-1);return G},[])};var ihq=function(G,c){this.context=G;this.poller=c};
_.u(ihq,sn0);ihq.prototype.buildGeometrySource=function(G,c){var I=ocr(uG8(this.context,this.poller),VEp(this.context,c.requestSource));return{geometrySource:vcg(G.measurableCreative.pipe(I),c.inApp),additionalOutputs:{}}};var Wei=function(G,c,I){I=I===void 0?fmT(G,c):I;this.context=G;this.intersectionObserverStrategy=I};
_.u(Wei,sn0);Wei.prototype.buildGeometrySource=function(G,c){var I=this.intersectionObserverStrategy(c.useV2);return{geometrySource:vcg(G.measurableCreative.pipe(I,BN8(this.context)),c.inApp),additionalOutputs:{}}};var AKe=function(G,c,I){var R=R===void 0?Symbol():R;this.element=G;this.immediateUrls=c;this.timeOnScreenUrls=I;this.symbol=R};var Ohb=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),AIC=Object.freeze([1,.75,Ohb.exposureThreshold,Ohb.largeAdExposureThreshold,0]);var iab=function(G,c){c=c===void 0?36E5:c;var I=I===void 0?!0:I;this.creatives=new uy;this.elementsToUnregister=new uy;this.elementMap=new Map;var R=new QC(window,null);R.beaconFactory=new S1(R,new IK(R));EcC(R,this.creatives,this.elementsToUnregister,G,c,I).subscribe()},rob=function(G,c,I,R){if(!G.elementMap.has(c)){var Z=new XU(c);
G.elementMap.set(c,Z);G.creatives.next(new AKe(Z,I,R))}},BsA=function(G,c){G.elementsToUnregister.next(c);
var I=G.elementMap.get(c);I!==void 0&&(I.release(),G.elementMap.delete(c))};var COO=function(G){var c=G.url;G=G.uaDataValues;this.JSC$9645_url_=c;this.uaDataValues_=G;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var I=/[?&]([^&=]+)=([^&]*)/g;G=I.exec(c);)this.urlParamValues_[G[1]]=G[2]},HH8=function(G){G=G.uaDataValues_;
if(!G)return"";var c=an("uap",G.platform)+an("uapv",G.platformVersion)+an("uafv",G.uaFullVersion)+an("uaa",G.architecture)+an("uam",G.model)+an("uab",G.bitness);G.fullVersionList&&(c+="&uafvl="+encodeURIComponent(G.fullVersionList.map(function(I){return encodeURIComponent(I.brand)+";"+encodeURIComponent(I.version)}).join("|")));
G.wow64!=null&&(c+="&uaw="+Number(G.wow64));return c.slice(1)};var $wB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u($wB,_.aR);$wB.prototype.getId=function(){return _.iU(this,1)};var aK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(aK,_.aR);aK.prototype.getSeconds=function(){return J7(this,1)};
aK.prototype.setSeconds=function(G){return _.G6(this,1,Ng(G),"0")};_.iP=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(_.iP,_.aR);_.iP.prototype.getSeconds=function(){return J7(this,1)};
_.iP.prototype.setSeconds=function(G){return _.G6(this,1,Ng(G),"0")};
_.Sep=function(G){var c=Number(BC(G,1));G=_.wF(G,2);return new Date(c*1E3+G/1E6)};var TR=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(TR,_.aR);TR.prototype.getUrl=function(){return _.iU(this,1)};
TR.prototype.setUrl=function(G){return _.Xt(this,1,G)};
TR.prototype.getHeight=function(){return _.wF(this,2)};
TR.prototype.getWidth=function(){return _.wF(this,3)};var Ot=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Ot,_.aR);Ot.prototype.getAspectRatio=function(){return WC(this,1)};
Ot.prototype.getDuration=function(){return _.Dw(this,aK,2)};var pDB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(pDB,_.aR);var MT2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(MT2,_.aR);var VT0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(VT0,_.aR);var zYe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(zYe,_.aR);var E9V=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(E9V,_.aR);var JKB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(JKB,_.aR);var WrT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(WrT,_.aR);var iSe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(iSe,_.aR);var fL9=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(fL9,_.aR);var eo=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(eo,_.aR);var NU=[2,4,5,6,7];var BFN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(BFN,_.aR);var V2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(V2,_.aR);_.P=V2.prototype;_.P.getId=function(){return _.Dw(this,$wB,1)};
_.P.getName=function(){return _.iU(this,2)};
_.P.setDescription=function(G){return _.Xt(this,3,G)};
_.P.getUrl=function(){return _.iU(this,8)};
_.P.setUrl=function(G){return _.Xt(this,8,G)};
var lt=function(G){return _.lR(G,TR,10,_.qw())};
V2.prototype.getOwner=function(G){return _.WAV(this,40,G)};
var qU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(qU,_.aR);_.w4=[0,G7,LWK];_.FC=[0,G7,LWK];var rKe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(rKe,_.aR);var nU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(nU,_.aR);nU.prototype.getStatus=function(){return _.fy(this,1)};
nU.prototype.removeItem=function(G){return z9T(this,2,G)};var jne=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(jne,_.aR);jne.prototype.getName=function(){return _.iU(this,8)};var vL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(vL,_.aR);vL.prototype.getCommand=function(){return _.fy(this,1)};
vL.prototype.getSource=function(){return _.Dw(this,jne,2)};
vL.prototype.setVisible=function(G){return _.DZ(this,5,G)};
vL.prototype.removeItem=function(G){return z9T(this,7,G)};var xwK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(xwK,_.aR);xwK.prototype.getCommand=function(){return _.fy(this,1)};
xwK.prototype.removeItem=function(G){return z9T(this,4,G)};
var tTK=_.sT(xwK);var Dr=function(G,c,I){I=I===void 0?Error():I;var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=G;c+=":";I instanceof Error?(this.message=c+I.message,this.stack=I.stack||""):(this.message=c+String(I),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(Dr,Error);_.JK=function(){this.JSC$9703_disposed_=this.JSC$9703_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.JK.prototype.JSC$9703_disposed_=!1;_.JK.prototype.isDisposed=function(){return this.JSC$9703_disposed_};
_.JK.prototype.dispose=function(){this.JSC$9703_disposed_||(this.JSC$9703_disposed_=!0,this.disposeInternal())};
_.JK.prototype[Symbol.dispose]=function(){this.dispose()};
_.k9=function(G,c){G.addOnDisposeCallback(_.Ts(_.TB,c))};
_.JK.prototype.addOnDisposeCallback=function(G,c){this.JSC$9703_disposed_?c!==void 0?G.call(c):G():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),c&&(G=G.bind(c)),this.onDisposeCallbacks_.push(G))};
_.JK.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var oK=function(G){_.JK.call(this);this.wpc=G};
_.u(oK,_.JK);oK.prototype.syA=function(){return this.wpc.f()};
oK.prototype.uEK=function(G){return this.wpc.c(G)};
oK.prototype.lJ=function(G){return this.wpc.m(gcA(G))};
oK.prototype.b6N=function(G){return this.wpc.mws(gcA(G))};
var Nw=function(G){_.JK.call(this);var c=this;this.vm=G;this.zWQ="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.vSW=void 0;this.zKM=this.vm.p;this.qxk=this.jdo.bind(this);this.addOnDisposeCallback(function(){return void hY0(c)})};
_.u(Nw,_.JK);var dwN=function(G){var c;return _.T(function(I){if(I.nextAddress==1){if(!G.vm.wpc)throw new Dr(30,"NWA");return G.pEg?I.return(G.pEg):I.yield(G.vm.wpc(),2)}c=I.yieldResult;G.pEg=new oK(c);return I.return(G.pEg)})};
Nw.prototype.snapshot=function(G){return this.vm.s(Object.assign({},G.yR&&{c:G.yR},G.tJ0&&{s:G.tJ0},G.hwK!==void 0&&{p:G.hwK}))};
Nw.prototype.jdo=function(G){this.vm.e(G)};
Nw.prototype.j9g=function(G,c){return this.vm.c(G,c,!1)};
var hY0=function(G){G.vSW!==void 0&&(G.zWQ.forEach(function(c){var I;(I=G.vSW)==null||I.removeEventListener(c,G.qxk)}),G.vSW=void 0)};
Nw.prototype.zeo=function(){return this.vm.l()};var Ut=function(){_.JK.apply(this,arguments);this.fg0=1};
_.u(Ut,_.JK);Ut.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.fg0++;return this};
Ut.prototype.dispose=function(){--this.fg0||_.JK.prototype.dispose.call(this)};var CRe=function(G){this.nyE=G;G.addNewEventMetric("/client_streamz/bg/frs",_.vD("mk"))};
CRe.prototype.record=function(G,c){this.nyE.record("/client_streamz/bg/frs",G,c)};
var HS0=function(G){this.zIg=G;G.addNewEventMetric("/client_streamz/bg/wrl",_.vD("mn"),nS("ac"),nS("sc"),_.vD("rk"),_.vD("mk"))};
HS0.prototype.record=function(G,c,I,R,Z,K){this.zIg.record("/client_streamz/bg/wrl",G,c,I,R,Z,K)};
var XDk=function(G){this.yD6=G;G.addNewCounter("/client_streamz/bg/ec",_.vD("en"),_.vD("mk"))};
XDk.prototype.increment=function(G,c){this.yD6.JSC$9956_incrementCounter("/client_streamz/bg/ec",G,c)};
var yK0=function(G){this.uOD=G;G.addNewEventMetric("/client_streamz/bg/el",_.vD("en"),_.vD("mk"))};
yK0.prototype.record=function(G,c,I){this.uOD.record("/client_streamz/bg/el",G,c,I)};
var g9e=function(G){this.eI6=G;G.addNewCounter("/client_streamz/bg/cec",nS("ec"),_.vD("mk"))};
g9e.prototype.increment=function(G,c){this.eI6.JSC$9956_incrementCounter("/client_streamz/bg/cec",G,c)};
var Yee=function(G){this.lw0=G;G.addNewCounter("/client_streamz/bg/po/csc",nS("cs"),_.vD("mk"))};
Yee.prototype.increment=function(G,c){this.lw0.JSC$9956_incrementCounter("/client_streamz/bg/po/csc",G,c)};
var GyN=function(G){this.fwX=G;G.addNewCounter("/client_streamz/bg/po/ctav",_.vD("av"),_.vD("mk"))};
GyN.prototype.increment=function(G,c){this.fwX.JSC$9956_incrementCounter("/client_streamz/bg/po/ctav",G,c)};
var cy0=function(G){this.rD0=G;G.addNewCounter("/client_streamz/bg/po/cwsc",_.vD("su"),_.vD("mk"))};
cy0.prototype.increment=function(G,c){this.rD0.JSC$9956_incrementCounter("/client_streamz/bg/po/cwsc",G,c)};var saU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(saU,_.aR);var kuT=function(G,c){return _.YF(G,3,c,Ukb)};var Imk=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Imk,_.aR);var RqK=[1,2,3];var Zt0=[0,RqK,_.mU,Adi,puB];var KuB=[0,_.ab,[0,gI,_.Yo]];var Pe9=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Pe9,_.aR);var QW9=[1,2,3];var m8N=[0,QW9,kr0,Dg0,_.T7,KuB];var ame=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(ame,_.aR);var TN0=[0,_.ab,Zt0,m8N];var Otk=[0,_.P7];var eqp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(eqp,_.aR);var NNK=[0,_.P7,-1,_.Zn];var lmi=[0,_.P7,-1,_.Rb,_.Zn];var qZN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(qZN,_.aR);var wX9=[1,2,3];var Fu9=[0,wX9,_.T7,NNK,_.T7,lmi,_.T7,Otk];var nsV=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(nsV,_.aR);nsV.prototype.JSC$9776_serializeBinary=GiC([0,_.P7,Fu9,MGA,_.ab,TN0,$g0,_.Sde]);var vsB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(vsB,_.aR);var U80=function(G){var c=new nsV;c=_.Eq(c,1,G.JSC$9892_metricName);var I=D8K(G);c=_.YF(c,3,I,_.Fj);I=[];for(var R=[],Z=_.Q(G.cellMap.keys()),K=Z.next();!K.done;K=Z.next())R.push(K.value.split(","));for(Z=0;Z<R.length;Z++){K=R[Z];for(var m=G.cellType,a=G.getCells(K)||[],O=[],N=0;N<a.length;N++){var q=a[N],w=q&&q.cellValue;q=new Pe9;switch(m){case 3:w=Number(w);Number.isFinite(w)&&Ag(q,1,QW9,Ng(w));break;case 2:Ag(q,2,QW9,_.yB(Number(w)))}O.push(q)}m=O;for(a=0;a<m.length;a++){O=m[a];N=new ame;O=_.Az(N,
2,O);N=[];q=ose(G);for(w=0;w<q.length;w++){var F=q[w],n=K[w],U=new Imk;switch(F){case 3:Ag(U,1,RqK,DW(String(n)));break;case 2:F=Number(n);Number.isFinite(F)&&Ag(U,2,RqK,_.mW(F));break;case 1:Ag(U,3,RqK,vK8(n==="true"))}N.push(U)}MO(O,1,N);I.push(O)}}MO(c,4,I);return c};var uqN=function(G){if(!G)return"";if(/^about:(?:blank|srcdoc)$/.test(G))return window.origin||"";G.indexOf("blob:")===0&&(G=G.substring(5));G=G.split("#")[0].split("?")[0];G=G.toLowerCase();G.indexOf("//")==0&&(G=window.location.protocol+G);/^[\w\-]*:\/\//.test(G)||(G=window.location.href);var c=G.substring(G.indexOf("://")+3),I=c.indexOf("/");I!=-1&&(c=c.substring(0,I));I=G.substring(0,G.indexOf("://"));if(!I)throw Error("qa`"+G);if(I!=="http"&&I!=="https"&&I!=="chrome-extension"&&I!=="moz-extension"&&
I!=="file"&&I!=="android-app"&&I!=="chrome-search"&&I!=="chrome-untrusted"&&I!=="chrome"&&I!=="app"&&I!=="devtools")throw Error("ra`"+I);G="";var R=c.indexOf(":");if(R!=-1){var Z=c.substring(R+1);c=c.substring(0,R);if(I==="http"&&Z!=="80"||I==="https"&&Z!=="443")G=":"+Z}return I+"://"+c+G};var kyi=function(G,c,I){var R=String(_.Rq.location.href);return R&&G&&c?[c,btA(uqN(R),G,I||null)].join(" "):null},btA=function(G,c,I){var R=[],Z=[];
if((Array.isArray(I)?2:1)==1)return Z=[c,G],_.K4(R,function(a){Z.push(a)}),sWV(Z.join(" "));
var K=[],m=[];_.K4(I,function(a){m.push(a.key);K.push(a.value)});
I=Math.floor((new Date).getTime()/1E3);Z=K.length==0?[I,c,G]:[K.join(":"),I,c,G];_.K4(R,function(a){Z.push(a)});
G=sWV(Z.join(" "));G=[I,G];m.length==0||G.push(m.join(""));return G.join("_")},sWV=function(G){var c=PWi();
c.update(G);return c.digestString().toLowerCase()};var ut=function(G){this.JSC$9787_document_=G||{cookie:""}},Lup;
_.P=ut.prototype;_.P.isEnabled=function(){if(!_.Rq.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.P.set=function(G,c,I){var R=!1;if(typeof I==="object"){var Z=I.sameSite;R=I.secure||!1;var K=I.domain||void 0;var m=I.path||void 0;var a=I.maxAge}if(/[;=\s]/.test(G))throw Error("sa`"+G);if(/[;\r\n]/.test(c))throw Error("ta`"+c);a===void 0&&(a=-1);I=K?";domain="+K:"";m=m?";path="+m:"";R=R?";secure":"";a=a<0?"":a==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+a*1E3)).toUTCString();this.JSC$9787_document_.cookie=G+"="+c+I+m+a+R+(Z!=null?";samesite="+Z:"")};
_.P.get=function(G,c){for(var I=G+"=",R=(this.JSC$9787_document_.cookie||"").split(";"),Z=0,K;Z<R.length;Z++){K=Nf(R[Z]);if(K.lastIndexOf(I,0)==0)return K.slice(I.length);if(K==G)return""}return c};
_.P.remove=function(G,c,I){var R=this.containsKey(G);this.set(G,"",{maxAge:0,path:c,domain:I});return R};
_.P.getKeys=function(){return Lup(this).keys};
_.P.getValues=function(){return Lup(this).values};
_.P.isEmpty=function(){return!this.JSC$9787_document_.cookie};
_.P.getCount=function(){return this.JSC$9787_document_.cookie?(this.JSC$9787_document_.cookie||"").split(";").length:0};
_.P.containsKey=function(G){return this.get(G)!==void 0};
_.P.containsValue=function(G){for(var c=Lup(this).values,I=0;I<c.length;I++)if(c[I]==G)return!0;return!1};
_.P.clear=function(){for(var G=Lup(this).keys,c=G.length-1;c>=0;c--)this.remove(G[c])};
Lup=function(G){G=(G.JSC$9787_document_.cookie||"").split(";");for(var c=[],I=[],R,Z,K=0;K<G.length;K++)Z=Nf(G[K]),R=Z.indexOf("="),R==-1?(c.push(""),I.push(Z)):(c.push(Z.substring(0,R)),I.push(Z.substring(R+1)));return{keys:c,values:I}};
_.VU=new ut(typeof document=="undefined"?null:document);var gnr,Ay0;gnr=function(){var G=_.Rq.__SAPISID||_.Rq.__APISID||_.Rq.__3PSAPISID||_.Rq.__1PSAPISID||_.Rq.__OVERRIDE_SID;if(G)return!0;typeof document!=="undefined"&&(G=new ut(document),G=G.get("SAPISID")||G.get("APISID")||G.get("__Secure-3PAPISID")||G.get("__Secure-1PAPISID"));return!!G};
Ay0=function(G,c,I,R){(G=_.Rq[G])||typeof document==="undefined"||(G=(new ut(document)).get(c));return G?kyi(G,I,R):null};
_.uZ8=function(G){var c=uqN(_.Rq==null?void 0:_.Rq.location.href),I=[];if(gnr()){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("chrome-untrusted://new-tab-page")==0||c.indexOf("moz-extension:")==0;var R=c?_.Rq.__SAPISID:_.Rq.__APISID;R||typeof document==="undefined"||(R=new ut(document),R=R.get(c?"SAPISID":"APISID")||R.get("__Secure-3PAPISID"));(R=R?kyi(R,c?"SAPISIDHASH":"APISIDHASH",G):null)&&I.push(R);c&&((c=Ay0("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",G))&&I.push(c),
(G=Ay0("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",G))&&I.push(G))}return I.length==0?null:I.join(" ")};var $82=function(){this.minSize=1024};
$82.prototype.compress=function(G){var c,I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:return c=new CompressionStream("gzip"),I=(new Response(c.readable)).arrayBuffer(),R=c.writable.getWriter(),K.yield(R.write((new TextEncoder).encode(G)),2);case 2:return K.yield(R.close(),3);case 3:return Z=Uint8Array,K.yield(I,4);case 4:return K.return(new Z(K.yieldResult))}})};
$82.prototype.isSupported=function(G){return G<this.minSize?!1:typeof CompressionStream!=="undefined"};var SZK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(SZK,_.aR);var bt=function(G,c){this.intervalMs=G;this.callback=c;this.enabled=!1;this.nowFn=function(){return _.OH()};
this.lastTimeMs=this.nowFn()};
bt.prototype.setInterval=function(G){this.intervalMs=G;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
bt.prototype.start=function(){var G=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){G.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
bt.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
bt.prototype.tick=function(){var G=this;if(this.enabled){var c=Math.max(this.nowFn()-this.lastTimeMs,0);c<this.intervalMs*.8?this.timer=setTimeout(function(){G.tick()},this.intervalMs-c):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var pXe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(pXe,_.aR);var MEK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(MEK,_.aR);var VEK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(VEK,_.aR);VEK.prototype.getTransmissionType=function(){return _.fy(this,1)};var THi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(THi,_.aR);var kz=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(kz,_.aR);var aHr=function(G){MO(O4q,1,G)};
kz.prototype.getModel=function(){return _.iU(this,6)};
var zqK=_.sT(kz);var Es0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Es0,_.aR);var QaT=["platform","platformVersion","architecture","model","uaFullVersion"],O4q=new kz,mRb=null;var st=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(st,_.aR);var Jyk=function(G){return _.oz(G,1,1)};var Wu0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G,4)};
_.u(Wu0,_.aR);_.LU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G,36)};
_.u(_.LU,_.aR);_.LU.prototype.getExperimentIds=function(){return _.Dw(this,SZK,16)};var it2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G,19)};
_.u(it2,_.aR);it2.prototype.setLogSource=function(G){return _.oz(this,2,G)};
it2.prototype.setScheduler=function(G){return _.oz(this,10,G)};var BNV=function(G,c){this.isServiceWorkerScope=c=c===void 0?!1:c;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new it2;Number.isInteger(G)&&this.logRequest.setLogSource(G);c||(this.locale=document.documentElement.getAttribute("lang"));fm2(this,new st)};
BNV.prototype.setLogSource=function(G){this.logRequest.setLogSource(G);return this};
var fm2=function(G,c){_.Az(G.logRequest,1,c);_.fy(c,1)||Jyk(c);G.isServiceWorkerScope||(c=AE(G),_.iU(c,5)||_.Eq(c,5,G.locale));G.uach&&(c=AE(G),_.Dw(c,kz,9)||_.Az(c,9,G.uach))},ry0=function(G,c){G.transmissionType=c},jWA=function(G){var c=c===void 0?QaT:c;
var I=G.isServiceWorkerScope?void 0:hs();I?eMb(I,c).then(function(R){G.uach=zqK(R!=null?R:"[]");R=AE(G);_.Az(R,9,G.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},AE=function(G){var c=_.Dw(G.logRequest,st,1);
c||(c=new st,fm2(G,c));G=c;c=_.Dw(G,Es0,11);c||(c=new Es0,_.Az(G,11,c));return c};
BNV.prototype.build=function(G,c,I,R,Z,K){c=c===void 0?0:c;I=I===void 0?0:I;R=R===void 0?null:R;Z=Z===void 0?0:Z;K=K===void 0?0:K;if(!this.isServiceWorkerScope){var m=AE(this);var a=new VEK;a=_.oz(a,1,this.transmissionType);a=_.DL(a,2,this.isFinal);I=_.xo(a,3,I>0?I:void 0);I=_.xo(I,4,Z>0?Z:void 0);I=_.xo(I,5,K>0?K:void 0);Z=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;K=Z[_.P0]|0;I=b2(I,K)?I:Sdb(I,Z,K)?$gq(I,Z):new I.constructor(f1(Z,K,!0));_.Az(m,10,I)}m=this.logRequest.clone();I=Date.now().toString();
m=_.Uo(m,4,Ng(I));G=G.slice();G=MO(m,3,G);R&&(m=new pXe,R=_.xo(m,13,R),m=new MEK,R=_.Az(m,2,R),m=new Wu0,R=_.Az(m,1,R),R=_.oz(R,2,9),_.Az(G,18,R));c&&_.Ef(G,14,c);return G};on.prototype.currBackoffCount_=0;on.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
on.prototype.getValue=function(){return this.currValue_};
var x8B=function(G){G.currBaseValue_=Math.min(G.maxValue_,G.currBaseValue_*G.backoffFactor_);G.currValue_=Math.min(G.maxValue_,G.currBaseValue_+(G.randomFactor_?Math.round(G.randomFactor_*(Math.random()-.5)*2*G.currBaseValue_):0));G.currBackoffCount_++};var WWe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G,8)};
_.u(WWe,_.aR);var tE2=_.sT(WWe);var i1e=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(i1e,_.aR);var $z;$z=new fW9;var So=function(G){_.JK.call(this);var c=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9865_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$9865_sendBeaconApiEnabled=!1;this.logSource=G.logSource;this.getAuthHeaderValue=
G.getAuthHeaderValue||function(){};
this.logRequestBuilder=new BNV(G.logSource,G.isServiceWorkerScope);this.network=G.network||null;this.productID=G.productID||null;this.bufferSize=1E3;this.clearcutUrl=G.urlOverride||null;this.sessionIndex=G.sessionIndex||null;this.disableAutomaticFlush=G.disableAutomaticFlush||!1;this.withCredentials=!G.disableWithCredentials;this.isServiceWorkerScope=G.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!hs()&&!!hs().navigator&&hs().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(hqT())).searchParams&&!!(new URL(hqT())).searchParams.set;var I=Jyk(new st);fm2(this.logRequestBuilder,I);this.flushBackoff=new on(1E4,3E5,.1);G=d8e(this,G.backgroundJobDeferrer);this.JSC$9865_flushTimer=new bt(this.flushBackoff.getValue(),G);this.backupTimer=new bt(6E5,G);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Cei(c);
var R;(R=c.metalogService)==null||R.flush()}}),document.addEventListener("pagehide",function(){Cei(c);
var R;(R=c.metalogService)==null||R.flush()}))};
_.u(So,_.JK);var d8e=function(G,c){return G.isBrowserSupported?c?function(){c().then(function(){G.flush()})}:function(){G.flush()}:function(){}};
So.prototype.disposeInternal=function(){Cei(this);this.JSC$9865_flushTimer.stop();this.backupTimer.stop();_.JK.prototype.disposeInternal.call(this)};
var Hti=function(G){G.clearcutUrl||(G.clearcutUrl=hqT());try{return(new URL(G.clearcutUrl)).toString()}catch(c){return(new URL(G.clearcutUrl,hs().location.origin)).toString()}};
So.prototype.dispatch=function(G){if(G instanceof _.LU)this.log(G);else try{var c=new _.LU,I=G.serialize();var R=_.Eq(c,8,I);this.log(R)}catch(Z){pU(this,4,1)}};
var pU=function(G,c,I){G.metalogService&&G.metalogService.increment(c,I)};
So.prototype.log=function(G){pU(this,2,1);if(this.isBrowserSupported){G=G.clone();var c=this.sequencePosition++;G=_.Ef(G,21,c);this.componentId&&_.Eq(G,26,this.componentId);c=G;if(WA8(_.Ly(c,1))==null){var I=Date.now();I=Number.isFinite(I)?I.toString():"0";_.Uo(c,1,Ng(I))}_.Jei(_.Ly(c,15))!=null||_.Ef(c,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),_.Az(c,16,I));pU(this,1,1);c=this.pendingEvents.length-this.bufferSize+1;c>0&&(this.pendingEvents.splice(0,c),
this.numLogsDroppedSinceLastFlush+=c,pU(this,3,c));this.pendingEvents.push(G);this.disableAutomaticFlush||this.JSC$9865_flushTimer.enabled||this.JSC$9865_flushTimer.start()}};
So.prototype.flush=function(G,c){var I=this;if(this.pendingEvents.length===0)G&&G();else if(this.JSC$9865_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,XXT(this);else{var R=Date.now();if(this.noFlushUntilMs>R&&this.startWaitingMs<R)c&&c("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?ry0(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Z=this.pendingEvents.length,
K=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),m=this.getAuthHeaderValue();if(m&&this.lastFailedAuth===m)c&&c("stale-auth-token");else{this.pendingEvents=[];this.JSC$9865_flushTimer.enabled&&this.JSC$9865_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;R=K.serialize();var a;this.JSC$9865_compressor&&this.JSC$9865_compressor.isSupported(R.length)&&
(a=this.JSC$9865_compressor.compress(R));var O=yy2(this,R,m),N=function(F){I.flushBackoff.reset();I.JSC$9865_flushTimer.setInterval(I.flushBackoff.getValue());if(F){var n=null;try{var U=JSON.stringify(JSON.parse(F.replace(")]}'\n","")));n=tE2(U)}catch(k){}n&&(F=Number(J7(n,1,_.Je("-1"))),F>0&&(I.startWaitingMs=Date.now(),I.noFlushUntilMs=I.startWaitingMs+F),KWr(n.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,$z.fieldIndex),R0f(n,$z.fieldIndex),n=$z.ctor?$z.getExtensionFn(n,$z.ctor,$z.fieldIndex,
$z.JSC$9045_hasMessageId):$z.getExtensionFn(n,$z.fieldIndex,null,$z.JSC$9045_hasMessageId),n=n===null?void 0:n)&&(n=_.wF(n,1,-1),n!==-1&&(I.flushBackoff=new on(n<1?1:n,3E5,.1),I.JSC$9865_flushTimer.setInterval(I.flushBackoff.getValue())))}G&&G();I.numRetriesSinceLastSuccessfulFlush=0},q=function(F,n){var U=_.lR(K,_.LU,3,_.qw());
var k=Number(J7(K,14));x8B(I.flushBackoff);I.JSC$9865_flushTimer.setInterval(I.flushBackoff.getValue());F===401&&m&&(I.lastFailedAuth=m);k&&(I.numLogsDroppedSinceLastFlush+=k);n===void 0&&(n=I.isRetryable(F));n&&(I.pendingEvents=U.concat(I.pendingEvents),I.disableAutomaticFlush||I.JSC$9865_flushTimer.enabled||I.JSC$9865_flushTimer.start());pU(I,7,1);c&&c("net-send-failed",F);++I.numRetriesSinceLastSuccessfulFlush},w=function(){I.network&&I.network.send(O,N,q)};
a?a.then(function(F){pU(I,5,Z);O.requestHeaders["Content-Encoding"]="gzip";O.requestHeaders["Content-Type"]="application/binary";O.body=F;O.bodyType=2;w()},function(){pU(I,6,Z);
w()}):w()}}}};
var yy2=function(G,c,I){I=I===void 0?null:I;var R=R===void 0?G.withCredentials:R;var Z={},K=new URL(Hti(G));I&&(Z.Authorization=I);G.sessionIndex&&(Z["X-Goog-AuthUser"]=G.sessionIndex,K.searchParams.set("authuser",G.sessionIndex));G.pageId&&(Object.defineProperty(Z,"X-Goog-PageId",{value:G.pageId}),K.searchParams.set("pageId",G.pageId));return{url:K.toString(),body:c,bodyType:1,requestHeaders:Z,requestType:"POST",withCredentials:R,timeoutMillis:G.timeoutMillis}},Cei=function(G){G.logRequestBuilder.isFinal=
!0;
G.flush();G.logRequestBuilder.isFinal=!1},XXT=function(G){gsA(G,function(c,I){c=new URL(c);
c.searchParams.set("format","json");var R=!1;try{R=hs().navigator.sendBeacon(c.toString(),I.serialize())}catch(Z){}R||(G.isSendBeaconSupported=!1);return R})},gsA=function(G,c){if(G.pendingEvents.length!==0){var I=new URL(Hti(G));
I.searchParams.delete("format");var R=G.getAuthHeaderValue();R&&I.searchParams.set("auth",R);I.searchParams.set("authuser",G.sessionIndex||"0");for(R=0;R<10&&G.pendingEvents.length;++R){var Z=G.pendingEvents.slice(0,32),K=G.logRequestBuilder.build(Z,G.numLogsDroppedSinceLastFlush,G.numRetriesSinceLastSuccessfulFlush,G.productID,G.persistedLogRecoveredCount,G.persistedLogExpiredCount);if(!c(I.toString(),K)){++G.numRetriesSinceLastSuccessfulFlush;break}G.numLogsDroppedSinceLastFlush=0;G.numRetriesSinceLastSuccessfulFlush=
0;G.persistedLogRecoveredCount=0;G.persistedLogExpiredCount=0;G.pendingEvents=G.pendingEvents.slice(Z.length)}G.JSC$9865_flushTimer.enabled&&G.JSC$9865_flushTimer.stop()}};
So.prototype.isRetryable=function(G){return 500<=G&&G<600||G===401||G===0};
var hqT=function(){return"https://play.google.com/log?format=json&hasfast=true"};var YZp=function(){this.abortSupported=typeof AbortController!=="undefined"};
YZp.prototype.send=function(G,c,I){var R=this,Z,K,m,a,O,N,q,w,F,n;return _.T(function(U){switch(U.nextAddress){case 1:return K=(Z=R.abortSupported?new AbortController:void 0)?setTimeout(function(){Z.abort()},G.timeoutMillis):void 0,_.s9(U,2,3),m=Object.assign({},{method:G.requestType,
headers:Object.assign({},G.requestHeaders)},G.body&&{body:G.body},G.withCredentials&&{credentials:"include"},{signal:G.timeoutMillis&&Z?Z.signal:null}),U.yield(fetch(G.url,m),5);case 5:a=U.yieldResult;if(a.status!==200){(O=I)==null||O(a.status);U.jumpTo(3);break}if((N=c)==null){U.jumpTo(7);break}return U.yield(a.text(),8);case 8:N(U.yieldResult);case 7:case 3:_.A_(U);clearTimeout(K);_.pT(U,0);break;case 2:q=_.M3(U);switch((w=q)==null?void 0:w.name){case "AbortError":(F=I)==null||F(408);break;default:(n=
I)==null||n(400)}U.jumpTo(3)}})};
YZp.prototype.getTransmissionType=function(){return 4};_.bR=function(G,c){c=c===void 0?"0":c;_.JK.call(this);this.logSource=G;this.sessionIndex=c;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9883_clearExperimentIds=this.productID=null;this.JSC$9883_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.u(_.bR,_.JK);var URr=function(G,c){G.buildLabel=c;return G},o60=function(G,c){G.network=c;
return G},b4A=function(G,c){G.JSC$9883_clearExperimentIds=c},DRr=function(G){G.JSC$9883_sendBeaconApiEnabled=!0;
return G};
_.bR.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.bR.prototype.build=function(){this.network||(this.network=new YZp);var G=new So({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.uZ8,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.k9(this,G);if(this.buildLabel){var c=this.buildLabel,I=
AE(G.logRequestBuilder);_.Eq(I,7,c)}G.JSC$9865_compressor=new $82;this.componentId&&(G.componentId=this.componentId);this.productID&&(G.productID=this.productID);this.pageId&&(G.pageId=this.pageId);this.JSC$9883_clearExperimentIds&&((I=this.JSC$9883_clearExperimentIds)?(G.experimentIds||(G.experimentIds=new SZK),c=G.experimentIds,I=I.serialize(),_.Eq(c,4,I)):G.experimentIds&&_.Uo(G.experimentIds,4));this.JSC$9883_sendBeaconApiEnabled&&(G.JSC$9865_sendBeaconApiEnabled=G.isSendBeaconSupported);jWA(G.logRequestBuilder);
this.bufferSize&&(G.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(G);return G};var Lb0=function(G,c,I,R,Z,K,m){G=G===void 0?-1:G;c=c===void 0?"":c;I=I===void 0?"":I;R=R===void 0?!1:R;Z=Z===void 0?"":Z;_.JK.call(this);this.logSource=G;this.componentId=c;K?c=K:(G=new _.bR(G,"0"),G.componentId=c,_.k9(this,G),I!==""&&(G.destinationUrl=I),R&&(G.serviceWorkerScopeEnabled=!0),Z&&URr(G,Z),m&&o60(G,m),c=G.build());this.JSC$9887_transport=c};
_.u(Lb0,_.JK);Lb0.prototype.flush=function(G){G=G||[];if(G.length){for(var c=new vsB,I=[],R=0;R<G.length;R++){var Z=G[R],K=U80(Z);I.push(K);Z.clear()}MO(c,1,I);this.JSC$9887_transport.dispatch(c);this.JSC$9887_transport.flush()}};var G2p=function(G){this.cellValue=G};var MU=function(G,c,I){this.JSC$9892_metricName=G;this.cellType=c;this.fields=I||[];this.cellMap=new Map},ose=function(G){return G.fields.map(function(c){return c.fieldType})},D8K=function(G){return G.fields.map(function(c){return c.fieldName})};
_.P=MU.prototype;_.P.addCell=function(G){var c=_.Hy.apply(1,arguments),I=this.getCells(c);I?I.push(new G2p(G)):this.JSC$9892_setCell(G,c)};
_.P.JSC$9892_setCell=function(G){var c=this.JSC$9892_getKey(_.Hy.apply(1,arguments));this.cellMap.set(c,[new G2p(G)])};
_.P.getCells=function(){var G=this.JSC$9892_getKey(_.Hy.apply(0,arguments));return this.cellMap.has(G)?this.cellMap.get(G):void 0};
_.P.getCell=function(){var G=this.getCells(_.Hy.apply(0,arguments));return G&&G.length?G[0]:void 0};
_.P.clear=function(){this.cellMap.clear()};
_.P.JSC$9892_getKey=function(){var G=_.Hy.apply(0,arguments);return G?G.join(","):"key"};var cIB=function(G,c){MU.call(this,G,3,c)};
_.u(cIB,MU);cIB.prototype.JSC$9895_incrementCounterBy=function(G){var c=_.Hy.apply(1,arguments),I=0,R=this.getCell(c);R&&(I=R.cellValue);this.JSC$9892_setCell(I+G,c)};var I$K=function(G,c){MU.call(this,G,2,c)};
_.u(I$K,MU);I$K.prototype.record=function(G){this.addCell(G,_.Hy.apply(1,arguments))};_.VM=function(G){this.id=G};
_.VM.prototype.toString=function(){return this.id};_.zR=function(G,c){this.type=G instanceof _.VM?String(G):G;this.currentTarget=this.target=c;this.defaultPrevented=this.propagationStopped_=!1};
_.zR.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.zR.prototype.preventDefault=function(){this.defaultPrevented=!0};_.JE=function(G,c){_.zR.call(this,G?G.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;G&&this.init(G,c)};
_.eg(_.JE,_.zR);
_.JE.prototype.init=function(G,c){var I=this.type=G.type,R=G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:null;this.target=G.target||G.srcElement;this.currentTarget=c;c=G.relatedTarget;c||(I=="mouseover"?c=G.fromElement:I=="mouseout"&&(c=G.toElement));this.relatedTarget=c;R?(this.clientX=R.clientX!==void 0?R.clientX:R.pageX,this.clientY=R.clientY!==void 0?R.clientY:R.pageY,this.screenX=R.screenX||0,this.screenY=R.screenY||0):(this.offsetX=_.vC||G.offsetX!==void 0?G.offsetX:G.layerX,
this.offsetY=_.vC||G.offsetY!==void 0?G.offsetY:G.layerY,this.clientX=G.clientX!==void 0?G.clientX:G.pageX,this.clientY=G.clientY!==void 0?G.clientY:G.pageY,this.screenX=G.screenX||0,this.screenY=G.screenY||0);this.button=G.button;this.keyCode=G.keyCode||0;this.key=G.key||"";this.charCode=G.charCode||(I=="keypress"?G.keyCode:0);this.ctrlKey=G.ctrlKey;this.altKey=G.altKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.pointerId=G.pointerId||0;this.pointerType=G.pointerType;this.state=G.state;
this.timeStamp=G.timeStamp;this.event_=G;G.defaultPrevented&&_.JE.superClass_.preventDefault.call(this)};
_.JE.prototype.isButton=function(G){return this.event_.button==G};
_.JE.prototype.stopPropagation=function(){_.JE.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.JE.prototype.preventDefault=function(){_.JE.superClass_.preventDefault.call(this);var G=this.event_;G.preventDefault?G.preventDefault():G.returnValue=!1};var RZT="closure_listenable_"+(Math.random()*1E6|0),WL=function(G){return!(!G||!G[RZT])};var ZhN=0;var Ke0=function(G,c,I,R,Z){this.listener=G;this.proxy=null;this.src=c;this.type=I;this.capture=!!R;this.handler=Z;this.key=++ZhN;this.removed=this.callOnce=!1},PVK=function(G){G.removed=!0;
G.listener=null;G.proxy=null;G.src=null;G.handler=null};uR.prototype.add=function(G,c,I,R,Z){var K=G.toString();G=this.listeners[K];G||(G=this.listeners[K]=[],this.typeCount_++);var m=Qgk(G,c,R,Z);m>-1?(c=G[m],I||(c.callOnce=!1)):(c=new Ke0(c,this.src,K,!!R,Z),c.callOnce=I,G.push(c));return c};
uR.prototype.remove=function(G,c,I,R){G=G.toString();if(!(G in this.listeners))return!1;var Z=this.listeners[G];c=Qgk(Z,c,I,R);return c>-1?(PVK(Z[c]),_.prr(Z,c),Z.length==0&&(delete this.listeners[G],this.typeCount_--),!0):!1};
var mEK=function(G,c){var I=c.type;if(!(I in G.listeners))return!1;var R=_.rb(G.listeners[I],c);R&&(PVK(c),G.listeners[I].length==0&&(delete G.listeners[I],G.typeCount_--));return R};
uR.prototype.removeAll=function(G){G=G&&G.toString();var c=0,I;for(I in this.listeners)if(!G||I==G){for(var R=this.listeners[I],Z=0;Z<R.length;Z++)++c,PVK(R[Z]);delete this.listeners[I];this.typeCount_--}return c};
uR.prototype.getListener=function(G,c,I,R){G=this.listeners[G.toString()];var Z=-1;G&&(Z=Qgk(G,c,I,R));return Z>-1?G[Z]:null};
uR.prototype.hasListener=function(G,c){var I=G!==void 0,R=I?G.toString():"",Z=c!==void 0;return _.rx.some(this.listeners,function(K){for(var m=0;m<K.length;++m)if(!(I&&K[m].type!=R||Z&&K[m].capture!=c))return!0;return!1})};
var Qgk=function(G,c,I,R){for(var Z=0;Z<G.length;++Z){var K=G[Z];if(!K.removed&&K.listener==c&&K.capture==!!I&&K.handler==R)return Z}return-1};var a$k,TKK,Ohe,NK2,l$i,uD,bD,Fe2,qGi,w1A,fU,ncB,eZN;a$k="closure_lm_"+(Math.random()*1E6|0);TKK={};Ohe=0;_.Ld=function(G,c,I,R,Z){if(R&&R.once)return uD(G,c,I,R,Z);if(Array.isArray(c)){for(var K=0;K<c.length;K++)_.Ld(G,c[K],I,R,Z);return null}I=eZN(I);return WL(G)?G.listen(c,I,_.db(R)?!!R.capture:!!R,Z):NK2(G,c,I,!1,R,Z)};
NK2=function(G,c,I,R,Z,K){if(!c)throw Error("va");var m=_.db(Z)?!!Z.capture:!!Z,a=fU(G);a||(G[a$k]=a=new uR(G));I=a.add(c,I,R,m,K);if(I.proxy)return I;R=l$i();I.proxy=R;R.src=G;R.listener=I;if(G.addEventListener)_.lJK||(Z=m),Z===void 0&&(Z=!1),G.addEventListener(c.toString(),R,Z);else if(G.attachEvent)G.attachEvent(qGi(c.toString()),R);else if(G.addListener&&G.removeListener)G.addListener(R);else throw Error("wa");Ohe++;return I};
l$i=function(){var G=w1A,c=function(I){return G.call(c.src,c.listener,I)};
return c};
uD=function(G,c,I,R,Z){if(Array.isArray(c)){for(var K=0;K<c.length;K++)uD(G,c[K],I,R,Z);return null}I=eZN(I);return WL(G)?G.listenOnce(c,I,_.db(R)?!!R.capture:!!R,Z):NK2(G,c,I,!0,R,Z)};
_.BL=function(G,c,I,R,Z){if(Array.isArray(c))for(var K=0;K<c.length;K++)_.BL(G,c[K],I,R,Z);else R=_.db(R)?!!R.capture:!!R,I=eZN(I),WL(G)?G.unlisten(c,I,R,Z):G&&(G=fU(G))&&(c=G.getListener(c,I,R,Z))&&bD(c)};
bD=function(G){if(typeof G==="number"||!G||G.removed)return!1;var c=G.src;if(WL(c))return mEK(c.eventTargetListeners_,G);var I=G.type,R=G.proxy;c.removeEventListener?c.removeEventListener(I,R,G.capture):c.detachEvent?c.detachEvent(qGi(I),R):c.addListener&&c.removeListener&&c.removeListener(R);Ohe--;(I=fU(c))?(mEK(I,G),I.typeCount_==0&&(I.src=null,c[a$k]=null)):PVK(G);return!0};
Fe2=function(G,c,I,R,Z){I=eZN(I);R=!!R;return WL(G)?G.getListener(c,I,R,Z):G?(G=fU(G))?G.getListener(c,I,R,Z):null:null};
qGi=function(G){return G in TKK?TKK[G]:TKK[G]="on"+G};
w1A=function(G,c){if(G.removed)G=!0;else{c=new _.JE(c,this);var I=G.listener,R=G.handler||G.src;G.callOnce&&bD(G);G=I.call(R,c)}return G};
fU=function(G){G=G[a$k];return G instanceof uR?G:null};
ncB="__closure_events_fn_"+(Math.random()*1E9>>>0);eZN=function(G){if(typeof G==="function")return G;G[ncB]||(G[ncB]=function(c){return G.handleEvent(c)});
return G[ncB]};_.r4=function(){_.JK.call(this);this.eventTargetListeners_=new uR(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.eg(_.r4,_.JK);_.r4.prototype[RZT]=!0;_.P=_.r4.prototype;_.P.setParentEventTarget=function(G){this.parentEventTarget_=G};
_.P.addEventListener=function(G,c,I,R){_.Ld(this,G,c,I,R)};
_.P.removeEventListener=function(G,c,I,R){_.BL(this,G,c,I,R)};
_.P.dispatchEvent=function(G){var c,I=this.parentEventTarget_;if(I)for(c=[];I;I=I.parentEventTarget_)c.push(I);I=this.actualEventTarget_;var R=G.type||G;if(typeof G==="string")G=new _.zR(G,I);else if(G instanceof _.zR)G.target=G.target||I;else{var Z=G;G=new _.zR(R,I);_.rx.extend(G,Z)}Z=!0;var K;if(c)for(K=c.length-1;!G.propagationStopped_&&K>=0;K--){var m=G.currentTarget=c[K];Z=vcA(m,R,!0,G)&&Z}G.propagationStopped_||(m=G.currentTarget=I,Z=vcA(m,R,!0,G)&&Z,G.propagationStopped_||(Z=vcA(m,R,!1,G)&&
Z));if(c)for(K=0;!G.propagationStopped_&&K<c.length;K++)m=G.currentTarget=c[K],Z=vcA(m,R,!1,G)&&Z;return Z};
_.P.disposeInternal=function(){_.r4.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.P.listen=function(G,c,I,R){return this.eventTargetListeners_.add(String(G),c,!1,I,R)};
_.P.listenOnce=function(G,c,I,R){return this.eventTargetListeners_.add(String(G),c,!0,I,R)};
_.P.unlisten=function(G,c,I,R){return this.eventTargetListeners_.remove(String(G),c,I,R)};
_.P.removeAllListeners=function(G){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(G):0};
var vcA=function(G,c,I,R){c=G.eventTargetListeners_.listeners[String(c)];if(!c)return!0;c=c.concat();for(var Z=!0,K=0;K<c.length;++K){var m=c[K];if(m&&!m.removed&&m.capture==I){var a=m.listener,O=m.handler||m.src;m.callOnce&&mEK(G.eventTargetListeners_,m);Z=a.call(O,R)!==!1&&Z}}return Z&&!R.defaultPrevented};
_.r4.prototype.getListener=function(G,c,I,R){return this.eventTargetListeners_.getListener(String(G),c,I,R)};
_.r4.prototype.hasListener=function(G,c){return this.eventTargetListeners_.hasListener(G!==void 0?String(G):void 0,c)};var jo=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(G){return G&&AsyncContext.Snapshot.wrap(G)}:function(G){return G};var DE2=function(G,c){this.create_=G;this.reset_=c;this.occupants_=0;this.JSC$9927_head_=null};
DE2.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var G=this.JSC$9927_head_;this.JSC$9927_head_=G.next;G.next=null}else G=this.create_();return G};
DE2.prototype.put=function(G){this.reset_(G);this.occupants_<100&&(this.occupants_++,G.next=this.JSC$9927_head_,this.JSC$9927_head_=G)};var oci=function(){this.workTail_=this.workHead_=null};
oci.prototype.add=function(G,c){var I=lHB.get();I.set(G,c);this.workTail_?this.workTail_.next=I:this.workHead_=I;this.workTail_=I};
oci.prototype.remove=function(){var G=null;this.workHead_&&(G=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),G.next=null);return G};
var lHB=new DE2(function(){return new UEK},function(G){return G.reset()}),UEK=function(){this.next=this.scope=this.fn=null};
UEK.prototype.set=function(G,c){this.fn=G;this.scope=c;this.next=null};
UEK.prototype.reset=function(){this.next=this.scope=this.fn=null};var uGV,q2q,NHq,bhp;q2q=!1;NHq=new oci;_.xz=function(G,c){uGV||bhp();q2q||(uGV(),q2q=!0);NHq.add(G,c)};
bhp=function(){var G=Promise.resolve(void 0);uGV=function(){G.then(wKO)}};var k2K=function(G){G.prototype.$goog_Thenable=!0},sgK=function(G){if(!G)return!1;
try{return!!G.$goog_Thenable}catch(c){return!1}};var Lei,AI9,$EN,p1k,MVT,VVT,Wep,BK0,tV9,jgT,lDT;_.Lk=function(G,c){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(G!=_.EF)try{var I=this;G.call(c,function(R){I.resolve_(2,R)},function(R){I.resolve_(3,R)})}catch(R){this.resolve_(3,R)}};
Lei=function(){this.next=this.context=this.JSC$9938_onRejected=this.JSC$9938_onFulfilled=this.child=null;this.always=!1};
Lei.prototype.reset=function(){this.context=this.JSC$9938_onRejected=this.JSC$9938_onFulfilled=this.child=null;this.always=!1};
AI9=new DE2(function(){return new Lei},function(G){G.reset()});
$EN=function(G,c,I){var R=AI9.get();R.JSC$9938_onFulfilled=G;R.JSC$9938_onRejected=c;R.context=I;return R};
_.IP=function(G){if(G instanceof _.Lk)return G;var c=new _.Lk(_.EF);c.resolve_(2,G);return c};
_.$C=function(G){return new _.Lk(function(c,I){I(G)})};
p1k=function(G,c,I){SGp(G,c,I,null)||_.xz(_.Ts(c,G))};
_.tE=function(G){return new _.Lk(function(c,I){var R=G.length,Z=[];if(R)for(var K=function(N,q){R--;Z[N]=q;R==0&&c(Z)},m=function(N){I(N)},a,O=0;O<G.length;O++)a=G[O],p1k(a,_.Ts(K,O),m);
else c(Z)})};
MVT=function(G){return new _.Lk(function(c){var I=G.length,R=[];if(I)for(var Z=function(a,O,N){I--;R[a]=O?{fulfilled:!0,value:N}:{fulfilled:!1,reason:N};I==0&&c(R)},K,m=0;m<G.length;m++)K=G[m],p1k(K,_.Ts(Z,m,!0),_.Ts(Z,m,!1));
else c(R)})};
VVT=function(G){return new _.Lk(function(c,I){var R=G.length,Z=[];if(R)for(var K=function(N){c(N)},m=function(N,q){R--;
Z[N]=q;R==0&&I(Z)},a,O=0;O<G.length;O++)a=G[O],p1k(a,K,_.Ts(m,O));
else c(void 0)})};
_.HU=function(){var G,c,I=new _.Lk(function(R,Z){G=R;c=Z});
return new zZB(I,G,c)};
_.Lk.prototype.then=function(G,c,I){return Ec9(this,jo(typeof G==="function"?G:null),jo(typeof c==="function"?c:null),I)};
k2K(_.Lk);Wep=function(G,c,I,R){JIV(G,$EN(c||_.EF,I||null,R))};
_.hE=function(G,c){c=jo(c);c=$EN(c,c);c.always=!0;JIV(G,c);return G};
_.Lk.prototype.finally=function(G){var c=this;G=jo(G);return new _.Lk(function(I,R){Wep(c,function(Z){G();I(Z)},function(Z){G();
R(Z)})})};
_.Lk.prototype.thenCatch=function(G,c){return Ec9(this,null,jo(G),c)};
_.Lk.prototype.catch=_.Lk.prototype.thenCatch;_.Lk.prototype.cancel=function(G){if(this.state_==0){var c=new _.tq(G);_.xz(function(){ih0(this,c)},this)}};
var ih0=function(G,c){if(G.state_==0)if(G.parent_){var I=G.parent_;if(I.callbackEntries_){for(var R=0,Z=null,K=null,m=I.callbackEntries_;m&&(m.always||(R++,m.child==G&&(Z=m),!(Z&&R>1)));m=m.next)Z||(K=m);Z&&(I.state_==0&&R==1?ih0(I,c):(K?(R=K,R.next==I.callbackEntriesTail_&&(I.callbackEntriesTail_=R),R.next=R.next.next):f$e(I),BK0(I,Z,3,c)))}G.parent_=null}else G.resolve_(3,c)},JIV=function(G,c){G.callbackEntries_||G.state_!=2&&G.state_!=3||rIp(G);
G.callbackEntriesTail_?G.callbackEntriesTail_.next=c:G.callbackEntries_=c;G.callbackEntriesTail_=c},Ec9=function(G,c,I,R){var Z=$EN(null,null,null);
Z.child=new _.Lk(function(K,m){Z.JSC$9938_onFulfilled=c?function(a){try{var O=c.call(R,a);K(O)}catch(N){m(N)}}:K;
Z.JSC$9938_onRejected=I?function(a){try{var O=I.call(R,a);O===void 0&&a instanceof _.tq?m(a):K(O)}catch(N){m(N)}}:m});
Z.child.parent_=G;JIV(G,Z);return Z.child};
_.Lk.prototype.unblockAndFulfill_=function(G){this.state_=0;this.resolve_(2,G)};
_.Lk.prototype.unblockAndReject_=function(G){this.state_=0;this.resolve_(3,G)};
_.Lk.prototype.resolve_=function(G,c){this.state_==0&&(this===c&&(G=3,c=new TypeError("xa")),this.state_=1,SGp(c,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=c,this.state_=G,this.parent_=null,rIp(this),G!=3||c instanceof _.tq||jgT(this,c)))};
var SGp=function(G,c,I,R){if(G instanceof _.Lk)return Wep(G,c,I,R),!0;if(sgK(G))return G.then(c,I,R),!0;if(_.db(G))try{var Z=G.then;if(typeof Z==="function")return xEK(G,Z,c,I,R),!0}catch(K){return I.call(R,K),!0}return!1},xEK=function(G,c,I,R,Z){var K=!1,m=function(O){K||(K=!0,I.call(Z,O))},a=function(O){K||(K=!0,R.call(Z,O))};
try{c.call(G,m,a)}catch(O){a(O)}},rIp=function(G){G.executing_||(G.executing_=!0,_.xz(G.executeCallbacks_,G))},f$e=function(G){var c=null;
G.callbackEntries_&&(c=G.callbackEntries_,G.callbackEntries_=c.next,c.next=null);G.callbackEntries_||(G.callbackEntriesTail_=null);return c};
_.Lk.prototype.executeCallbacks_=function(){for(var G;G=f$e(this);)BK0(this,G,this.state_,this.result_);this.executing_=!1};
BK0=function(G,c,I,R){if(I==3&&c.JSC$9938_onRejected&&!c.always)for(;G&&G.hadUnhandledRejection_;G=G.parent_)G.hadUnhandledRejection_=!1;if(c.child)c.child.parent_=null,tV9(c,I,R);else try{c.always?c.JSC$9938_onFulfilled.call(c.context):tV9(c,I,R)}catch(Z){lDT.call(null,Z)}AI9.put(c)};
tV9=function(G,c,I){c==2?G.JSC$9938_onFulfilled.call(G.context,I):G.JSC$9938_onRejected&&G.JSC$9938_onRejected.call(G.context,I)};
jgT=function(G,c){G.hadUnhandledRejection_=!0;_.xz(function(){G.hadUnhandledRejection_&&lDT.call(null,c)})};
lDT=Zi;_.tq=function(G){_.G8.call(this,G)};
_.eg(_.tq,_.G8);_.tq.prototype.name="cancel";var zZB=function(G,c,I){this.promise=G;this.resolve=c;this.reject=I};var d4;_.vb=function(G,c){_.r4.call(this);this.JSC$9950_interval_=G||1;this.timerObject_=c||_.Rq;this.boundTick_=(0,_.WD)(this.tick_,this);this.last_=_.OH()};
_.eg(_.vb,_.r4);_.P=_.vb.prototype;_.P.enabled=!1;_.P.JSC$9952_timer_=null;_.P.setInterval=function(G){this.JSC$9950_interval_=G;this.JSC$9952_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9952_timer_&&this.stop()};
_.P.tick_=function(){if(this.enabled){var G=_.OH()-this.last_;G>0&&G<this.JSC$9950_interval_*.8?this.JSC$9952_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9950_interval_-G):(this.JSC$9952_timer_&&(this.timerObject_.clearTimeout(this.JSC$9952_timer_),this.JSC$9952_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.P.start=function(){this.enabled=!0;this.JSC$9952_timer_||(this.JSC$9952_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9950_interval_),this.last_=_.OH())};
_.P.stop=function(){this.enabled=!1;this.JSC$9952_timer_&&(this.timerObject_.clearTimeout(this.JSC$9952_timer_),this.JSC$9952_timer_=null)};
_.P.disposeInternal=function(){_.vb.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
d4=function(G,c,I){if(typeof G==="function")I&&(G=(0,_.WD)(G,I));else if(G&&typeof G.handleEvent=="function")G=(0,_.WD)(G.handleEvent,G);else throw Error("ya");return Number(c)>2147483647?-1:_.Rq.setTimeout(G,c||0)};
_.hZe=function(G){var c=null;return(new _.Lk(function(I,R){c=d4(function(){I(void 0)},G);
c==-1&&R(Error("za"))})).thenCatch(function(I){_.Rq.clearTimeout(c);
throw I;})};var se=function(G){_.JK.call(this);this.streamzLogger=G;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9956_flushTimer=new _.vb(this.flushInterval);this.JSC$9956_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.k9(this,this.JSC$9956_flushTimer)};
_.u(se,_.JK);se.prototype.sendIsolatedPayload=function(G){this.shouldSendIsolatedPayload=G;this.invocationLimit=1};
var dEK=function(G){G.JSC$9956_flushTimer.enabled||G.JSC$9956_flushTimer.start();G.invocationCount++;G.invocationCount>=G.invocationLimit&&G.snapshotAndFlush()};
se.prototype.snapshotAndFlush=function(){var G=this.metricMap.values();G=[].concat(_.jn(G)).filter(function(c){return c.cellMap.size});
G.length&&this.streamzLogger.flush(G,this.shouldSendIsolatedPayload);CV0(G);this.invocationCount=0;this.JSC$9956_flushTimer.enabled&&this.JSC$9956_flushTimer.stop()};
se.prototype.addNewCounter=function(G){var c=_.Hy.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new cIB(G,c))};
se.prototype.addNewEventMetric=function(G){var c=_.Hy.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new I$K(G,c))};
var HhK=function(G,c){return G.disabledMetrics.has(c)?void 0:G.metricMap.get(c)};
se.prototype.JSC$9956_incrementCounter=function(G){this.JSC$9956_incrementCounterBy(G,1,_.Hy.apply(1,arguments))};
se.prototype.JSC$9956_incrementCounterBy=function(G,c){var I=_.Hy.apply(2,arguments),R=HhK(this,G);R&&R instanceof cIB&&(R.JSC$9895_incrementCounterBy(c,I),dEK(this))};
se.prototype.record=function(G,c){var I=_.Hy.apply(2,arguments),R=HhK(this,G);R&&R instanceof I$K&&(R.record(c,I),dEK(this))};
var CV0=function(G){for(var c=0;c<G.length;c++)G[c].clear()};_.CU=function(G,c,I){I=I===void 0?{}:I;c=Error.call(this,c);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=G;this.metadata=I;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(_.CU,Error);_.CU.prototype.toString=function(){var G="RpcError("+(n6B(this.code)||String(this.code))+")";this.message&&(G+=": "+this.message);return G};_.X1k=_.Rq.JSON.parse;_.HL=_.Rq.JSON.stringify;_.vq=_.Rq.JSON.parse;_.yIe=function(G){switch(G){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var gcN=function(G){switch(G){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var YGK,Gu0=function(){};
_.eg(Gu0,_.v6g);Gu0.prototype.createInstance=function(){return new XMLHttpRequest};
YGK=new Gu0;_.XC=function(G){_.r4.call(this);this.headers=new Map;this.JSC$9965_xmlHttpFactory_=G||null;this.JSC$9965_active_=!1;this.JSC$9965_xhr_=null;this.JSC$9965_lastUri_="";this.JSC$9965_lastErrorCode_=0;this.JSC$9965_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9965_timeoutId_=null;this.responseType_="";this.JSC$9965_withCredentials_=!1};
_.eg(_.XC,_.r4);var cw0=/^https?$/i,IHe=["POST","PUT"],RMV=[],GW8=function(G,c,I,R,Z,K,m){var a=new _.XC;RMV.push(a);c&&a.listen("complete",c);a.listenOnce("ready",a.cleanupSend_);K&&(a.timeoutInterval_=Math.max(0,K));m&&(a.JSC$9965_withCredentials_=m);a.send(G,I,R,Z)};
_.XC.prototype.cleanupSend_=function(){this.dispose();_.rb(RMV,this)};
_.XC.prototype.send=function(G,c,I,R){if(this.JSC$9965_xhr_)throw Error("Aa`"+this.JSC$9965_lastUri_+"`"+G);c=c?c.toUpperCase():"GET";this.JSC$9965_lastUri_=G;this.JSC$9965_lastError_="";this.JSC$9965_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9965_active_=!0;this.JSC$9965_xhr_=this.createXhr();this.JSC$9965_xhr_.onreadystatechange=jo((0,_.WD)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9965_xhr_.open(c,String(G),!0),this.inOpen_=!1}catch(m){Z42(this,m);return}G=I||"";I=new Map(this.headers);
if(R)if(Object.getPrototypeOf(R)===Object.prototype)for(var Z in R)I.set(Z,R[Z]);else if(typeof R.keys==="function"&&typeof R.get==="function"){Z=_.Q(R.keys());for(var K=Z.next();!K.done;K=Z.next())K=K.value,I.set(K,R.get(K))}else throw Error("Ba`"+String(R));R=Array.from(I.keys()).find(function(m){return"content-type"==m.toLowerCase()});
Z=_.Rq.FormData&&G instanceof _.Rq.FormData;!_.fA(IHe,c)||R||Z||I.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");c=_.Q(I);for(R=c.next();!R.done;R=c.next())I=_.Q(R.value),R=I.next().value,I=I.next().value,this.JSC$9965_xhr_.setRequestHeader(R,I);this.responseType_&&(this.JSC$9965_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9965_xhr_&&this.JSC$9965_xhr_.withCredentials!==this.JSC$9965_withCredentials_&&(this.JSC$9965_xhr_.withCredentials=this.JSC$9965_withCredentials_);
try{this.JSC$9965_timeoutId_&&(clearTimeout(this.JSC$9965_timeoutId_),this.JSC$9965_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9965_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9965_xhr_.send(G),this.inSend_=!1}catch(m){Z42(this,m)}};
_.XC.prototype.createXhr=function(){return this.JSC$9965_xmlHttpFactory_?this.JSC$9965_xmlHttpFactory_.createInstance():YGK.createInstance()};
_.XC.prototype.timeout_=function(){typeof NbV!="undefined"&&this.JSC$9965_xhr_&&(this.JSC$9965_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9965_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Z42=function(G,c){G.JSC$9965_active_=!1;G.JSC$9965_xhr_&&(G.inAbort_=!0,G.JSC$9965_xhr_.abort(),G.inAbort_=!1);G.JSC$9965_lastError_=c;G.JSC$9965_lastErrorCode_=5;KbK(G);PWp(G)},KbK=function(G){G.errorDispatched_||(G.errorDispatched_=!0,G.dispatchEvent("complete"),G.dispatchEvent("error"))};
_.XC.prototype.abort=function(G){this.JSC$9965_xhr_&&this.JSC$9965_active_&&(this.JSC$9965_active_=!1,this.inAbort_=!0,this.JSC$9965_xhr_.abort(),this.inAbort_=!1,this.JSC$9965_lastErrorCode_=G||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),PWp(this))};
_.XC.prototype.disposeInternal=function(){this.JSC$9965_xhr_&&(this.JSC$9965_active_&&(this.JSC$9965_active_=!1,this.inAbort_=!0,this.JSC$9965_xhr_.abort(),this.inAbort_=!1),PWp(this,!0));_.XC.superClass_.disposeInternal.call(this)};
_.XC.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Qa2(this);else this.onReadyStateChangeEntryPoint_()};
_.XC.prototype.onReadyStateChangeEntryPoint_=function(){Qa2(this)};
var Qa2=function(G){if(G.JSC$9965_active_&&typeof NbV!="undefined")if(G.inSend_&&_.yM(G)==4)setTimeout(G.onReadyStateChange_.bind(G),0);else if(G.dispatchEvent("readystatechange"),G.isComplete()){G.JSC$9965_active_=!1;try{if(G.isSuccess())G.dispatchEvent("complete"),G.dispatchEvent("success");else{G.JSC$9965_lastErrorCode_=6;try{var c=_.yM(G)>2?G.JSC$9965_xhr_.statusText:""}catch(I){c=""}G.JSC$9965_lastError_=c+" ["+G.getStatus()+"]";KbK(G)}}finally{PWp(G)}}},PWp=function(G,c){if(G.JSC$9965_xhr_){G.JSC$9965_timeoutId_&&
(clearTimeout(G.JSC$9965_timeoutId_),G.JSC$9965_timeoutId_=null);
var I=G.JSC$9965_xhr_;G.JSC$9965_xhr_=null;c||G.dispatchEvent("ready");try{I.onreadystatechange=null}catch(R){}}};
_.XC.prototype.isActive=function(){return!!this.JSC$9965_xhr_};
_.XC.prototype.isComplete=function(){return _.yM(this)==4};
_.XC.prototype.isSuccess=function(){var G=this.getStatus(),c;if(!(c=gcN(G))){if(G=G===0)G=OSK(String(this.JSC$9965_lastUri_)),G=!cw0.test(G);c=G}return c};
_.yM=function(G){return G.JSC$9965_xhr_?G.JSC$9965_xhr_.readyState:0};
_.P=_.XC.prototype;_.P.getStatus=function(){try{return _.yM(this)>2?this.JSC$9965_xhr_.status:-1}catch(G){return-1}};
_.P.getResponseText=function(){try{return this.JSC$9965_xhr_?this.JSC$9965_xhr_.responseText:""}catch(G){return""}};
_.P.getResponse=function(){try{if(!this.JSC$9965_xhr_)return null;if("response"in this.JSC$9965_xhr_)return this.JSC$9965_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9965_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9965_xhr_)return this.JSC$9965_xhr_.mozResponseArrayBuffer}return null}catch(G){return null}};
_.P.getAllResponseHeaders=function(){return this.JSC$9965_xhr_&&_.yM(this)>=2?this.JSC$9965_xhr_.getAllResponseHeaders()||"":""};
_.P.getLastError=function(){return typeof this.JSC$9965_lastError_==="string"?this.JSC$9965_lastError_:String(this.JSC$9965_lastError_)};var uAA=function(){};
uAA.prototype.send=function(G,c,I){c=c===void 0?function(){}:c;
I=I===void 0?function(){}:I;
GW8(G.url,function(R){R=R.target;R.isSuccess()?c(R.getResponseText()):I(R.getStatus())},G.requestType,G.body,G.requestHeaders,G.timeoutMillis,G.withCredentials)};
uAA.prototype.getTransmissionType=function(){return 1};var mRe=function(G,c){this.qfa=G;this.event=c;this.startTime=LS()},$RU;
mRe.prototype.done=function(){this.qfa.wE(this.event,LS()-this.startTime)};
var g4=function(){Ut.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.u(g4,Ut);_.Yz=function(G,c,I){var R=LS();c=c();G.wE(I,LS()-R);return c};
$RU=function(){g4.apply(this,arguments)};
_.u($RU,g4);_.P=$RU.prototype;_.P.grg=function(){};
_.P.us=function(){};
_.P.wE=function(){};
_.P.logError=function(){};
_.P.nC=function(){};
_.P.zje=function(){};
_.P.psH=function(){};
_.P.nJ2=function(){};
var aHi=function(G){g4.call(this);var c=this;this.qF=G;this.TEST_ONLY={djd:function(){return c.qF},
getExperimentIds:function(){return c.qF.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void c.qF.dispose()})};
_.u(aHi,g4);_.P=aHi.prototype;_.P.update=function(G){this.qF.dispose();this.qF=G};
_.P.us=function(G){this.qF.us(G)};
_.P.wE=function(G,c){this.qF.wE(G,c)};
_.P.logError=function(G){this.qF.logError(G)};
_.P.nC=function(){this.qF.nC()};
_.P.zje=function(G){this.qF.zje(G)};
_.P.psH=function(G){this.qF.psH(G)};
_.P.nJ2=function(G){this.qF.nJ2(G)};
_.P.grg=function(G){this.qF.grg(G)};
var THp=function(G,c){_.JK.call(this);var I=this;this.callback=G;this.tRA=c;this.pZK=-c;this.addOnDisposeCallback(function(){return void clearTimeout(I.timer)})};
_.u(THp,_.JK);var O40=function(G){if(G.timer===void 0){var c=Math.max(0,G.pZK+G.tRA-LS());G.timer=setTimeout(function(){try{G.callback()}finally{G.pZK=LS(),G.timer=void 0}},c)}},eMe=function(G,c){g4.call(this);
this.metrics=G;this.un=c};
_.u(eMe,g4);_.P=eMe.prototype;_.P.grg=function(G){this.metrics.i42.record(G,this.un)};
_.P.us=function(G){this.metrics.eventCount.increment(G,this.un)};
_.P.wE=function(G,c){this.metrics.vgE.record(c,G,this.un)};
_.P.logError=function(G){this.metrics.errorCount.increment(G,this.un)};
_.P.zje=function(G){this.metrics.lZZ.increment(G,this.un)};
_.P.psH=function(G){this.metrics.xHO.increment(G,this.un)};
_.P.nJ2=function(G){this.metrics.e0T.increment(G,this.un)};
var S28=function(G,c){c=c===void 0?[]:c;var I={un:G.un||"_",iCH:G.iCH||[],i2B:G.i2B|0,destinationUrl:G.destinationUrl,uAD:G.uAD||function(){},
hSe:G.hSe||function(K,m){return Awr(K,m,I.uAD,I.destinationUrl)}},R=I.hSe("52",I.iCH.concat(c));
eMe.call(this,{i42:new CRe(R),errorCount:new g9e(R),eventCount:new XDk(R),vgE:new yK0(R),iBy:new HS0(R),lZZ:new Yee(R),xHO:new GyN(R),e0T:new cy0(R)},I.un);var Z=this;this.TEST_ONLY={getExperimentIds:function(){return Z.options.iCH.concat(Z.xQE).sort(function(K,m){return K-m})}};
this.options=I;this.service=R;this.qw6=!G.hSe;this.flushDebouncer=new THp(function(){return void Z.service.snapshotAndFlush()},I.i2B);
this.addOnDisposeCallback(function(){Z.flushDebouncer.dispose();Z.qw6&&Z.service.dispose()});
(this.xQE=c.slice()).sort(_.EpC)};
_.u(S28,eMe);S28.prototype.nC=function(){O40(this.flushDebouncer)};var jFC=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(jFC,_.aR);_.xQ0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(_.xQ0,_.aR);var Hm=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G,0,Hm.messageId)};
_.u(Hm,_.aR);var NH0=_.c_r(Hm);Hm.messageId="bfkj";var IHU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(IHU,_.aR);var lHT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(lHT,_.aR);var q20=_.sT(lHT);_.Te=function(){var G=this;this.promise=new Promise(function(c,I){G.resolve=c;G.reject=I})};_.Gp=function(G){_.JK.call(this);var c=this;this.zK4=Math.floor(Math.random()*200);this.ito=new lHT;if("challenge"in G&&NH0(G.challenge)){var I=_.iU(G.challenge,4,void 0,VB);var R=_.iU(G.challenge,5,void 0,VB);_.iU(G.challenge,7,void 0,VB)&&(this.ito=q20(_.iU(G.challenge,7,void 0,VB)))}else I=G.program,R=G.globalName;this.addOnDisposeCallback(function(){var U,k,p;return _.T(function(M){if(M.nextAddress==1)return M.yield(c.yCK,2);U=M.yieldResult;k=U.b48;(p=k)==null||p();_.Vp(M)})});
this.p7=pKb(G.mgK||{},this.ito);_.k9(this,this.p7);var Z=new _.Te;this.yCK=Z.promise;this.p7.us("t");var K=this.p7.share(),m=new mRe(K,"t"),a=function(U,k,p,M){if(!c.p7.isDisposed()){var z="k";k?z="h":p&&(z="u");z!=="k"?M!==0&&(c.p7.us(z),c.p7.wE(z,U)):c.zK4<=0?(c.p7.us(z),c.p7.wE(z,U),c.zK4=Math.floor(Math.random()*200)):c.zK4--}},O=function(U,k,p,M){Promise.resolve().then(function(){m.done();
K.nC();K.dispose();Z.resolve({oZk:U,b48:k,aj5:p,sJk:M})})};
if(!_.Rq[R])throw this.p7.logError(25),Error("Ca");if(!_.Rq[R].a)throw this.p7.logError(26),Error("Da");try{var N=_.Rq[R].a;R=[];for(var q=[],w=RM8(this.ito),F=0;F<w.length;F++)R.push(w[F]),q.push(1);var n=Z4T(this.ito);for(w=0;w<n.length;w++)R.push(n[w]),q.push(2);this.w68=_.Q(N(I,O,!0,G.oIr,a,[R,q],_.iU(this.ito,5),!1)).next().value;this.zKM=Z.promise.then(function(){})}catch(U){throw this.p7.logError(28),U;
}};
_.u(_.Gp,_.JK);_.Gp.prototype.snapshot=function(G){if(this.isDisposed())throw Error("Ea");this.p7.us("n");var c=this.p7.share();return this.yCK.then(function(I){var R=I.oZk;return new Promise(function(Z){var K=new mRe(c,"n");R(function(m){K.done();c.grg(m.length);c.nC();c.dispose();Z(m)},[G.yR,
G.tJ0,G.waa,G.hwK])})})};
_.Gp.prototype.jdo=function(G){this.yCK.then(function(c){var I;(I=c.aj5)==null||I(G)})};
_.Gp.prototype.j9g=function(G,c){return this.yCK.then(function(I){var R;return(R=I.sJk)==null?void 0:R(G,c,!1)})};
_.Gp.prototype.zeo=function(){return this.p7.share()};var wKB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(wKB,_.aR);var LIq=_.c_r(wKB);var FbV=function(){this.promises={};this.nSA=null},n6T=function(){FbV.instance||(FbV.instance=new FbV);
return FbV.instance},DR0=function(G,c){return v6A(G,_.Dw(c,jFC,1,VB),_.Dw(c,_.xQ0,2,VB),_.iU(c,3,void 0,VB))},v6A=function(G,c,I,R){if(!c&&!I)return Promise.resolve();
if(!R)return Jwf(c,I);var Z;(Z=G.promises)[R]||(Z[R]=new Promise(function(K,m){Jwf(c,I).then(function(){G.nSA=R;K()},function(a){delete G.promises[R];
m(a)})}));
return G.promises[R]};var o6K=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(o6K,_.aR);var UR0=function(G,c){return _.Xt(G,1,c)},uAN=function(G,c){return _.Xt(G,2,c)};var cz=function(G){_.JK.call(this);var c=this;this.options=G;this.cTl=new _.Te;this.zKM=this.cTl.promise;this.lXH=new _.Te;this.jEW=1;this.kGK=new _.Te;this.ere=[];this.isPaused=!1;this.mBM=G.mBM||function(){};
this.nG0=new aHi(pKb(G.mgK||{}));b4N(this,G.uV,G.p8E,G.c0o,G.vPm,Object.assign({},ku2,G.tv2||{}));this.addOnDisposeCallback(function(){return void sae(c)})};
_.u(cz,_.JK);cz.prototype.snapshot=function(G){var c=this;return _.T(function(I){switch(I.nextAddress){case 1:if(c.isDisposed())throw Error("Ea");if(c.tE||c.chX){I.jumpTo(2);break}return I.yield(c.lXH.promise,2);case 2:if(!c.tE){I.jumpTo(4);break}return I.yield(c.tE.snapshot(G),5);case 5:return I.return(I.yieldResult);case 4:throw c.chX;}})};
cz.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.yn&&this.yn.pause())};
cz.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.yn&&this.yn.resume())};
cz.prototype.checkForRefresh=function(){var G=this;return _.T(function(c){if(G.isDisposed())throw Error("Ea");var I;if(I=G.yn)I=G.yn,I.isExpired()?(LbK(I),I.resolver(0),I=!0):I=!1,I=!I;return I?c.jumpTo(0):c.yield(G.kGK.promise,0)})};
var $Re=function(G){var c;return _.T(function(I){if(G.isDisposed())throw Error("Ea");(c=G.yn)==null||Awi(c);return I.yield(G.kGK.promise,0)})},sae=function(G){G.chX=Error("Ga");
G.lXH.resolve();Kb0(G.cTl.promise);G.cTl.reject(Error("Ga"));G.nG0.dispose();Promise.all(G.ere).then(function(){var I;return _.T(function(R){(I=G.tE)==null||I.dispose();G.tE=void 0;_.Vp(R)})});
G.ere=[];var c;(c=G.yn)==null||Awi(c);Kb0(G.kGK.promise);G.kGK.reject(Error("Ga"))};
cz.prototype.jdo=function(G){var c,I;(c=this.tE)==null||(I=c.jdo)==null||I.call(c,G)};
cz.prototype.j9g=function(G,c){var I,R,Z;return(Z=(I=this.tE)==null?void 0:(R=I.j9g)==null?void 0:R.call(I,G,c))!=null?Z:Promise.resolve()};
var S2V=function(G,c){var I=G.mBM;G.mBM=function(){I();c()}},pKe=function(G,c){G.isDisposed()||(G.tE=c,G.nG0.update(c.zeo()),G.lXH.resolve(),G.cTl.resolve(void 0),G.mBM())};
cz.prototype.handleError=function(G){if(!this.isDisposed()){this.chX=G;this.lXH.resolve();var c,I;(I=(c=this.options).sXT)==null||I.call(c,G)}};
var MA9=function(G,c){c&&(Promise.all(G.ere).then(function(){return void c.dispose()}),G.ere=[])},IN=function(G,c){G.jEW=c;
var I,R;(R=(I=G.options).uTZ)==null||R.call(I,c)},VAA=function(G){G.isDisposed()||(G.kGK.resolve(),G.kGK=new _.Te)},b4N=function(G,c,I,R,Z,K){R=R===void 0?n6T():R;
Z=Z===void 0?Promise.resolve(void 0):Z;var m,a,O,N,q,w,F,n,U,k,p,M;_.T(function(z){switch(z.nextAddress){case 1:return z.yield(0,3);case 3:a=null;if(!m){z.jumpTo(6);break}IN(G,7);_.s9(z,7);return z.yield(Mw(m.snapshot({}),K.j30,function(){return Promise.resolve("E:CTO")}),9);
case 9:a=z.yieldResult;_.Pl(z,6);break;case 7:_.M3(z),a="E:UCE";case 6:O=void 0,N=m?K.qOg:K.wGQ,q=new on(N,K.mKO,K.bSa,K.jB0),w=1;case 10:if(!(w<=K.maxAttempts)){z.jumpTo(12);break}if(w===1){z.jumpTo(13);break}IN(G,0);G.yn=new RN(q.getValue(),K.t9K,K.sqR);return z.yield(G.yn.promise,14);case 14:F=z.yieldResult,G.yn=void 0,F===1?(w=1,q.reset()):x8B(q);case 13:_.s9(z,15);n=void 0;if(I){n=I;z.jumpTo(17);break}IN(G,5);U=R.nSA;return z.yield(Mw(zMK(c,U,a),K.hma,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:n=z.yieldResult;case 17:return IN(G,3),z.yield(Mw(DR0(R,n),K.y2A,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return IN(G,8),z.yield(Z,20);case 20:return k=new _.Gp({challenge:n,mgK:G.options.mgK,oIr:G.options.oIr}),z.yield(Mw(k.zKM,K.foZ,function(){return Promise.reject(Error("Ja"))}),21);
case 21:O=k;z.jumpTo(12);break;case 15:p=_.M3(z),G.handleError(p),VAA(G);case 11:w++;z.jumpTo(10);break;case 12:if(G.isDisposed()){z.jumpTo(5);break}O&&(I=void 0,MA9(G,m),m=O,pKe(G,O),VAA(G));IN(G,2);G.yn=new RN(K.dL0,K.t9K,K.sqR);G.isPaused&&G.yn.pause();return z.yield(G.yn.promise,22);case 22:G.yn=void 0;if(G.isDisposed()){z.jumpTo(5);break}z.jumpTo(3);break;case 5:(M=m)==null||M.dispose(),_.Vp(z)}})};
cz.prototype.zeo=function(){return this.nG0.share()};
var ku2={dL0:432E5,t9K:3E5,sqR:10,j30:1E4,hma:3E4,y2A:3E4,foZ:6E4,wGQ:1E3,qOg:6E4,mKO:6E5,bSa:.25,jB0:2,maxAttempts:10},RN=function(G,c,I){var R=this;this.endTimeMs=0;this.jXg=null;this.isPaused=!1;this.tick=function(){if(!R.isPaused){var Z=R.endTimeMs-Date.now();Z<=R.nzA?(R.jXg=null,R.resolver(0)):R.jXg=setTimeout(R.tick,Math.min(Z,R.t9K))}};
this.t9K=c;this.nzA=I;this.promise=new Promise(function(Z){R.resolver=Z});
E6e(this,G)},E6e=function(G,c){G.endTimeMs=Date.now()+c;
G.tick()};
RN.prototype.pause=function(){this.isPaused||(this.isPaused=!0,LbK(this))};
RN.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var Awi=function(G){LbK(G);G.endTimeMs=0;G.isPaused=!1;G.resolver(1)},LbK=function(G){G.jXg&&(clearTimeout(G.jXg),G.jXg=null)};
RN.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var Jwk,fH8=(Jwk=Math.imul)!=null?Jwk:function(G,c){return G*c|0},VC=[196,
200,224,18],Zh=function(G,c,I){I=I===void 0?[]:I;this.maxItems=G;this.g3=c===void 0?0:c;this.fH=I},Wb9=function(G){var c=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!c)return new Zh(G);var I=c.split(",");if(I.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Zh(G);c=I.slice(1);c.length===1&&c[0]===""&&(c=[]);I=Number(I[0]);return isNaN(I)||I<0||I>c.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Zh(G)):new Zh(G,I,c)};
Zh.prototype.serialize=function(){return String(this.g3)+","+this.fH.join()};
Zh.prototype.insert=function(G,c){var I=void 0;if(this.fH[this.g3]!==G){var R=this.fH.indexOf(G);R!==-1?(this.fH.splice(R,1),R<this.g3&&this.g3--,this.fH.splice(this.g3,0,G)):(I=this.fH[this.g3],this.fH[this.g3]=G)}this.g3=(this.g3+1)%this.maxItems;G=WbC("iU5q-!O9@$",this.serialize());I&&G&&c(I);return G};
var i4i=function(G,c){this.pAD=c;try{var I=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(R){I=!1}I&&(this.index=Wb9(G))},fHV=function(G,c,I,R,Z){var K=G.index?_.Yz(G.pAD,function(){return xRg(G.index,rwq(c),I,R,Z)},"W"):"u";
G.pAD.nJ2(K)},BHT=function(G,c,I){var R=_.Q(G.index?_.Yz(G.pAD,function(){return tAq(rwq(c),I)},"R"):["u"]),Z=R.next().value;
R=R.next().value;G.pAD.psH(Z);return R};var rw0={toString:function(G){var c=[],I=0;G-=-2147483648;c[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(G%52);for(G=Math.floor(G/52);G>0;)c[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(G%62),G=Math.floor(G/62);return c.join("")}};var tA0=function(G){G=jap(G);for(var c=2654435769,I=2654435769,R=314159265,Z=G.length,K=Z,m=0,a=function(){c-=I;c-=R;c^=R>>>13;I-=R;I-=c;I^=c<<8;R-=c;R-=I;R^=I>>>13;c-=I;c-=R;c^=R>>>12;I-=R;I-=c;I^=c<<16;R-=c;R-=I;R^=I>>>5;c-=I;c-=R;c^=R>>>3;I-=R;I-=c;I^=c<<10;R-=c;R-=I;R^=I>>>15};K>=12;K-=12,m+=12)c+=xRA(G,m),I+=xRA(G,m+4),R+=xRA(G,m+8),a();
R+=Z;switch(K){case 11:R+=G[m+10]<<24;case 10:R+=G[m+9]<<16;case 9:R+=G[m+8]<<8;case 8:I+=G[m+7]<<24;case 7:I+=G[m+6]<<16;case 6:I+=G[m+5]<<8;case 5:I+=G[m+4];case 4:c+=G[m+3]<<24;case 3:c+=G[m+2]<<16;case 2:c+=G[m+1]<<8;case 1:c+=G[m]}a();return rw0.toString(R)},jap=function(G){for(var c=[],I=0;I<G.length;I++)c.push(G.charCodeAt(I));
return c},xRA=function(G,c){return G[c]+(G[c+1]<<8)+(G[c+2]<<16)+(G[c+3]<<24)};var K9=function(G){_.JK.call(this);this.uD=G;this.clw=new _.Te};
_.u(K9,_.JK);var hMk=function(G,c){var I=setTimeout(function(){G.clw.resolve()},c);
G.addOnDisposeCallback(function(){return void clearTimeout(I)})};
K9.prototype.b6N=function(G,c){var I=this.lJ(G);c==null||c(I);return _.Yz(this.uD,function(){return _.zr(I,2)},this.hM0)};
var dRB=function(G,c,I,R){return _.Yz(G.uD,function(){return I?G.b6N(c,R):G.lJ(c,R)},G.hOD)},CWe=function(G,c,I,R){K9.call(this,G);
this.qEu=c;this.mMZ=I;this.hOD="m";this.hM0="x";this.wQd=0;hMk(this,R)};
_.u(CWe,K9);CWe.prototype.lJ=function(G,c){var I=this;this.uD.us(this.hOD);++this.wQd>=this.mMZ&&this.clw.resolve();var R=G();G=_.Yz(this.uD,function(){return I.qEu(R)},"C");
if(G===void 0)throw new Dr(17,"YNJ:Undefined");if(!(G instanceof Uint8Array))throw new Dr(18,"ODM:Invalid");c==null||c(G);return G};
var H4N=function(G,c,I){K9.call(this,G);this.wY0=c;this.hOD="f";this.hM0="z";hMk(this,I)};
_.u(H4N,K9);H4N.prototype.lJ=function(){return this.wY0};
var XKK=function(G,c,I){K9.call(this,G);this.bZE=c;this.hOD="w";this.hM0="z";hMk(this,I)};
_.u(XKK,K9);XKK.prototype.lJ=function(){var G=this;return _.Yz(this.uD,function(){return _.Yp(G.bZE)},"d")};
XKK.prototype.b6N=function(){return this.bZE};
var ywA=function(G,c){K9.call(this,G);this.error=c;this.hOD="e";this.hM0="y"};
_.u(ywA,K9);var g6i=function(G,c){var I=(c(G.error.message)+":"+c(G.error.stack)).substring(0,2048);c=I.length+1;I=hMf(I);var R=new Uint8Array(4+I.length);R.set([42,c&127|128,c>>7,G.error.code]);R.set(I,4);return R};
ywA.prototype.lJ=function(){if(this.vCl)return this.vCl;this.vCl=g6i(this,function(G){return"_"+tA0(G)});
return g6i(this,function(G){return G})};
var Y2A=function(G,c,I){K9.call(this,G);this.exr=c;this.clientState=I;this.hOD="S";this.hM0="q"};
_.u(Y2A,K9);Y2A.prototype.lJ=function(){var G=Math.floor(Date.now()/1E3),c=[Math.random()*255,Math.random()*255],I=c.concat([this.exr&255,this.clientState],[G>>24&255,G>>16&255,G>>8&255,G&255]);G=new Uint8Array(2+I.length);G[0]=34;G[1]=I.length;G.set(I,2);I=G.subarray(2);for(var R=c=c.length;R<I.length;++R)I[R]^=I[R%c];this.uD.zje(this.clientState);return G};var Gc0={aI0:3E4,xR7:2E4},Pz=function(G){_.JK.call(this);var c=this;this.rZK=new _.Te;this.oD4=0;this.eE=void 0;this.state=2;this.vm=G.vm;this.uV=G.uV;this.tv2=Object.assign({},Gc0,G.tv2||{});this.hO=G.vm.zeo();var I;this.onError=(I=G.onError)!=null?I:function(){};
this.nyK=G.nyK||!1;if(c$N(G)){var R=this.vm;this.oaW=function(){return $Re(R).catch(function(m){m=c.reportError(new Dr(c.hw?20:32,"TRG:Disposed",m));c.eE=m;var a;(a=c.hw)==null||a.dispose();c.hw=void 0;c.rZK.reject(m)})};
S2V(R,function(){return void Iw2(c)});
R.jEW===2&&Iw2(this)}else this.oaW=G.pZT,Iw2(this);var Z=this.hO.share();Z.us("o");var K=new mRe(Z,"o");this.rZK.promise.then(function(){K.done();Z.nC();Z.dispose()},function(){return void Z.dispose()});
this.addOnDisposeCallback(function(){c.hw?(c.hw.dispose(),c.hw=void 0):c.eE?c.hO.nC():(c.eE=c.reportError(new Dr(32,"TNP:Disposed")),c.hO.nC(),c.rZK.reject(c.eE))});
_.k9(this,this.hO)};
_.u(Pz,_.JK);Pz.prototype.syA=function(){return this.rZK.promise};
var R10=function(G,c){if(!(c instanceof Dr))if(c instanceof _.CU){var I=Error(c.toString());I.stack=c.stack;c=new Dr(11,"EBH:Error",I)}else c=new Dr(12,"BSO:Unknown",c);return G.reportError(c)},Iw2=function(G){var c,I,R,Z,K,m,a,O,N,q,w,F,n,U,k;
return _.T(function(p){switch(p.nextAddress){case 1:c=void 0;G.oD4++;I=new _.Te;G.vm instanceof cz&&G.vm.ere.push(I.promise);if(!G.nyK){p.jumpTo(2);break}R=new _.Te;setTimeout(function(){return void R.resolve()});
return p.yield(R.promise,2);case 2:return Z=G.hO.share(),_.s9(p,4,5),G.state=5,K={},m=[],p.yield(Mw(G.vm.snapshot({yR:K,waa:m}),G.tv2.xR7,function(){return Promise.reject(new Dr(15,"MDA:Timeout"))}),7);
case 7:a=p.yieldResult;if(G.isDisposed())throw new Dr(G.hw?20:32,"MDA:Disposed");O=m[0];G.state=6;return p.yield(Mw(ZjT(G.uV,a),G.tv2.aI0,function(){return Promise.reject(new Dr(10,"BWB:Timeout"))}),8);
case 8:N=p.yieldResult;if(G.isDisposed())throw new Dr(G.hw?20:32,"BWB:Disposed");G.state=7;c=_.Yz(Z,function(){var z=K_K(G,N,I,O);z.clw.promise.then(function(){return void G.oaW()});
return z},"i");
case 5:_.A_(p);Z.dispose();_.pT(p,6);break;case 4:q=_.M3(p);(w=c)==null||w.dispose();if(!G.eE){F=R10(G,q);I.resolve();var M;if(M=G.vm instanceof cz&&G.oD4<2)a:if(q instanceof Dr)M=q.code!==32&&q.code!==20&&q.code!==10;else{if(q instanceof _.CU)switch(q.code){case 2:case 13:case 14:case 4:break;default:M=!1;break a}M=!0}if(M)return n=(1+Math.random()*.25)*(G.hw?6E4:1E3),U=setTimeout(function(){return void G.oaW()},n),G.addOnDisposeCallback(function(){return void clearTimeout(U)}),p.return();
G.eE=F}Z.logError(G.hw?13:14);G.rZK.reject(G.eE);return p.return();case 6:G.state=8,G.oD4=0,(k=G.hw)==null||k.dispose(),G.hw=c,G.rZK.resolve(),_.Vp(p)}})},K_K=function(G,c,I,R){var Z=EK0(c,2)*1E3;
if(Z<=0)throw new Dr(31,"TTM:Invalid");if(_.iU(c,4))return new XKK(G.hO,_.iU(c,4),Z);if(!EK0(c,3))return new H4N(G.hO,nKk(_.Sg(c,1)),Z);if(!R)throw new Dr(4,"PMD:Undefined");R=R(nKk(_.Sg(c,1)));if(!(R instanceof Function))throw new Dr(16,"APF:Failed");G.v0Q=Math.floor((Date.now()+Z)/1E3);G=new CWe(G.hO,R,EK0(c,3),Z);G.addOnDisposeCallback(function(){return void I.resolve()});
return G};
Pz.prototype.lJ=function(G){return Pre(this,Object.assign({},G),!1)};
Pz.prototype.b6N=function(G){return Pre(this,Object.assign({},G),!0)};
Pz.prototype.uEK=function(G){if(G>150)return!1;try{return this.cache=new i4i(G,this.hO),!0}catch(c){return this.reportError(new Dr(22,"GBJ:init",c)),!1}};
Pz.prototype.reportError=function(G){this.hO.logError(G.code);this.onError(G);return G};
var Qzp=function(G,c){c=c instanceof Dr?c:new Dr(5,"TVD:error",c);return G.reportError(c)},Pre=function(G,c,I){try{if(G.isDisposed())throw new Dr(21,"BNT:disposed");
if(!G.hw&&G.eE)throw G.eE;var R,Z;return(Z=(R=mt2(G,c,I))!=null?R:awA(G,c,I))!=null?Z:TJV(G,c,I)}catch(K){if(!c.fxB)throw Qzp(G,K);return Oje(G,I,K)}},mt2=function(G,c,I){var R;
return(R=G.hw)==null?void 0:dRB(R,function(){return e10(G,c)},I,function(Z){var K;
if(G.hw instanceof CWe&&((K=c.wB)==null?0:K.fxk))try{var m;(m=G.cache)==null||fHV(m,e10(G,c),Z,c.wB.pZF,G.v0Q-120)}catch(a){G.reportError(new Dr(24,"ELX:write",a))}})},awA=function(G,c,I){var R;
if((R=c.wB)!=null&&R.h2l)try{var Z,K=(Z=G.cache)==null?void 0:BHT(Z,e10(G,c),c.wB.pZF);return K?I?_.Yz(G.hO,function(){return _.zr(K,2)},"a"):K:void 0}catch(m){G.reportError(new Dr(23,"RXO:read",m))}},TJV=function(G,c,I){var R={stack:[],
error:void 0,hasError:!1};try{if(!c.lxw)throw new Dr(29,"SDF:notready");return dRB(vpB(R,new Y2A(G.hO,0,G.state)),function(){return e10(G,c)},I)}catch(Z){R.error=Z,R.hasError=!0}finally{DfA(R)}},Oje=function(G,c,I){var R={stack:[],
error:void 0,hasError:!1};try{var Z=Qzp(G,I);return dRB(vpB(R,new ywA(G.hO,Z)),function(){return[]},c)}catch(K){R.error=K,R.hasError=!0}finally{DfA(R)}},e10=function(G,c){return c.mbZ?c.mbZ:c.yR?_.Yz(G.hO,function(){return c.mbZ=hMf(c.yR)},"c"):[]},c$N=function(G){return EK(function(c){if(!be(c))return!1;
for(var I=_.Q(Object.entries(G)),R=I.next();!R.done;R=I.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;if(!(R in c)){if(Z.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Z(c[R]))return!1}return!0})}({vm:function(G){return EK(function(c){return c instanceof G})}(cz)},"");var NJe=function(){var G=_.PH();this.JSC$10083_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",FO("cookie_enabled"),FO("cookie_3p_enabled"),_.vD("browser"))};
NJe.prototype.increment=function(G,c,I){this.JSC$10083_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",G,c,I)};
var QXg=function(){var G=_.PH();this.JSC$10107_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",nS("tick"),FO("from_st_cookie"))};
QXg.prototype.increment=function(G,c){this.JSC$10107_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",G,c)};
var lw0=function(){var G=_.PH();this.JSC$10113_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.vD("status"))};
lw0.prototype.increment=function(G){this.JSC$10113_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",G)};
var qoK=function(){var G=_.PH();this.JSC$10116_streamzService=G;G.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.vD("stage"),FO("is_using_ytd_player"),FO("has_expandable_tiles"))};
qoK.prototype.increment=function(G,c,I){this.JSC$10116_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",G,c,I)};
var wl9=function(){var G=_.PH();this.JSC$10119_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/response_signature",_.vD("check_status"))};
wl9.prototype.increment=function(G){this.JSC$10119_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/response_signature",G)};
var F_i=function(){var G=_.PH();this.JSC$10122_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.vD("sig"),nS("de"))};
F_i.prototype.increment=function(G,c){this.JSC$10122_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/e_sig_log",G,c)};
var n$9=function(){var G=_.PH();this.JSC$10125_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.vD("sig"),nS("de"))};
n$9.prototype.increment=function(G,c){this.JSC$10125_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/e_sig_en",G,c)};
_.v$T=function(){var G=_.PH();this.JSC$10128_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.vD("action"))};
_.v$T.prototype.increment=function(G){this.JSC$10128_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/enforcement_intent",G)};var Qh=window;var Dt0=(new Date).getTime();_.rx.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.rx.createSet("action","cite","data","formaction","href","manifest","poster","src");var o$i=function(G){this.servicePromise_=G;G.then((0,_.WD)(function(){},this),function(){},this)},Ut9=function(G,c,I){G.servicePromise_.then(function(R){var Z=R[c];
if(!Z)throw Error("Ka`"+c);return Z.apply(R,I)})},kcT=function(G,c,I){for(var R=Array(arguments.length-2),Z=2;Z<arguments.length;Z++)R[Z-2]=arguments[Z];
Z=uai(G,c).then(function(K){return K.apply(null,R)},function(K){K=Error("La`"+c+"`"+G+"`"+K,{cause:K});
delete bje[c];return _.$C(K)});
return new o$i(Z)},bje={},uai=function(G,c){var I=bje[c];
if(I)return I;I=(I=_.Yc(c))?_.IP(I):(new _.Lk(function(R,Z){var K=(new B7(document)).createElement("SCRIPT");K.async=!0;_.Ti(K,_.Vx(F3V(G)));K.onload=K.onreadystatechange=function(){K.readyState&&K.readyState!="loaded"&&K.readyState!="complete"||R()};
K.onerror=function(m){Z(Error("Ma`"+c+"`"+G,{cause:m}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(K)})).then(function(){var R=_.Yc(c);
if(!R)throw Error("Na`"+c+"`"+G);return R});
return bje[c]=I};var szA={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},A$k=function(){var G=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=dRO(function(){return _.T(function(c){if(c.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?c.return(Promise.resolve()):c.yield(L_k(G),2);G.rsaForList.length>
0&&document.addEventListener("click",G.requestAccessForHelpPanel);_.Vp(c)})});
this.requestAccessForHelpPanel=function(){if(!(G.rsaForPromises.length>0)){for(var c=_.Q(G.rsaForList),I=c.next();!I.done;I=c.next()){I=I.value;try{G.rsaForPromises.push(document.requestStorageAccessFor(I))}catch(R){}}Promise.all(G.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){G.reset()})}}};
A$k.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var L_k=function(G){var c,I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:c=_.Q(Object.values(szA)),I=c.next();case 2:if(I.done){K.jumpTo(0);break}R=I.value;_.s9(K,5);return K.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:R}),7);case 7:Z=K.yieldResult;Z.state!=="granted"&&G.rsaForList.push(R);_.Pl(K,3);break;case 5:_.M3(K);K.jumpTo(0);break;case 3:I=c.next(),K.jumpTo(2)}})};(new A$k).initialize();var $t9=function(G){this.JSC$10142_loader_=G};
$t9.prototype.startHelp=function(G){Ut9(this.JSC$10142_loader_,"startHelp",arguments)};
$t9.prototype.JSC$10144_loadChatSupport=function(G){Ut9(this.JSC$10142_loader_,"loadChatSupport",arguments)};
var plk=function(G,c){c=c||{};G=kcT(SoA,"help.service.Lazy.create",G,{apiKey:c.apiKey||c.apiKey,asxUiUri:c.asxUiUri||c.asxUiUri,environment:c.environment||c.environment,flow:c.flow||c.flow,frdProductData:c.frdProductData||c.frdProductData,frdProductDataSerializedJspb:c.frdProductDataSerializedJspb||c.frdProductDataSerializedJspb,helpCenterPath:c.helpCenterPath||c.helpCenterPath,locale:c.locale||c.locale||"en-US".replace(/-/g,"_"),nonce:c.nonce||c.nonce,productData:c.productData||c.productData,receiverUri:c.receiverUri||
c.receiverUri,renderApiUri:c.renderApiUri||c.renderApiUri,theme:c.theme||c.theme,window:c.window||c.window});return new $t9(G)},SoA=new X4(Gfr,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var MvA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(MvA,_.aR);var VvN=_.sT(MvA);var z1N=[0,_.Qz,G7,LWK];_.E$9=new function(G,c,I,R){this.configType=G;this.flagName=I;this.defaultValue=R;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 W_0=function(){this.retriever=_.wH().resolve(J$i)};_.KM={get payments(){return window.payments}};H4A(Node);H4A(Element);var ij0=H4A(HTMLElement);H4A(SVGElement);var fwB,BJN,Tp,r$2;fwB=function(G){return typeof G.className=="string"?G.className:G.getAttribute&&G.getAttribute("class")||""};
BJN=function(G){return G.classList?G.classList:fwB(G).match(/\S+/g)||[]};
_.mD=function(G,c){typeof G.className=="string"?G.className=c:G.setAttribute&&G.setAttribute("class",c)};
_.aN=function(G,c){return G.classList?G.classList.contains(c):_.fA(BJN(G),c)};
_.g0=function(G,c){if(G.classList)G.classList.add(c);else if(!_.aN(G,c)){var I=fwB(G);_.mD(G,I+(I.length>0?" "+c:c))}};
Tp=function(G,c){if(G.classList)Array.prototype.forEach.call(c,function(Z){_.g0(G,Z)});
else{var I={};Array.prototype.forEach.call(BJN(G),function(Z){I[Z]=!0});
Array.prototype.forEach.call(c,function(Z){I[Z]=!0});
c="";for(var R in I)c+=c.length>0?" "+R:R;_.mD(G,c)}};
_.XP=function(G,c){G.classList?G.classList.remove(c):_.aN(G,c)&&_.mD(G,Array.prototype.filter.call(BJN(G),function(I){return I!=c}).join(" "))};
r$2=function(G,c){G.classList?Array.prototype.forEach.call(c,function(I){_.XP(G,I)}):_.mD(G,Array.prototype.filter.call(BJN(G),function(I){return!_.fA(c,I)}).join(" "))};var jz0=function(G){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=G.document},h12=function(G,c){xt9(G);
var I=document.createElement("div"),R;(R=c.parentNode)==null||R.insertBefore(I,c);I.tabIndex=0;I.id="fc-focus-trap-pre-div";I=document.createElement("div");var Z;(Z=c.parentNode)==null||Z.insertBefore(I,c.nextSibling);I.tabIndex=0;I.id="fc-focus-trap-post-div";var K=tve(G,c),m=tve(G,c,!0);K&&m&&(G.focusChangeHandler=function(){var a=G.document.activeElement;if(a)if(_.Y9(c,a))G.previouslyFocusedElement=a;else if(a===G.document.activeElement)switch(G.previouslyFocusedElement){case K:m.focus();G.previouslyFocusedElement=
m;break;default:K.focus(),G.previouslyFocusedElement=K}},G.document.addEventListener("focus",G.focusChangeHandler,!0),G.document.addEventListener("focusin",G.focusChangeHandler))},xt9=function(G){G.focusChangeHandler&&(document.removeEventListener("focus",G.focusChangeHandler,!0),document.removeEventListener("focusin",G.focusChangeHandler),G.focusChangeHandler=null);
var c;(c=document.getElementById("fc-focus-trap-pre-div"))==null||c.remove();var I;(I=document.getElementById("fc-focus-trap-post-div"))==null||I.remove()},dtp=function(G,c,I,R,Z){I=I===void 0?!0:I;
var K;Z=(K=Z===void 0?null:Z)!=null?K:tve(G,c,R===void 0?!1:R);Z!==null&&(Z.focus(),I&&h12(G,c))};
jz0.prototype.disableButton=function(G,c){c=c===void 0?null:c;G.disabled=!0;c&&_.g0(G,c)};
var tve=function(G,c,I){I=I===void 0?!1:I;if(nC0(c)&&!I)return c;var R=I?[].slice.call(c.children,0).reverse():c.children;R=_.Q(R);for(var Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,ij0(Z)&&(Z=tve(G,Z,I)))return Z;return nC0(c)&&I?c:null};var CrV=function(G){this.originalBodyOverflow="";this.JSC$10169_domHelper=zM(G);var c;this.isScrollingEnabled=((c=this.JSC$10169_domHelper.JSC$9495_document_.body)==null?void 0:c.style.overflow)!=="hidden"};
CrV.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10169_domHelper.JSC$9495_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.eg(_.iR,_.JK);_.P=_.iR.prototype;_.P.JSC$10172_id_=0;_.P.disposeInternal=function(){_.iR.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10170_listener_;delete this.handler_};
_.P.start=function(G){this.stop();this.JSC$10172_id_=d4(this.callback_,G!==void 0?G:this.JSC$10170_interval_)};
_.P.stop=function(){this.isActive()&&_.Rq.clearTimeout(this.JSC$10172_id_);this.JSC$10172_id_=0};
_.P.fire=function(){this.stop();this.JSC$10172_doAction_()};
_.P.isActive=function(){return this.JSC$10172_id_!=0};
_.P.JSC$10172_doAction_=function(){this.JSC$10172_id_=0;this.JSC$10170_listener_&&this.JSC$10170_listener_.call(this.handler_)};_.D0=function(G){_.JK.call(this);this.handler_=G;this.JSC$10173_keys_={}};
_.eg(_.D0,_.JK);var Hje=[];_.D0.prototype.listen=function(G,c,I,R){Array.isArray(c)||(c&&(Hje[0]=c.toString()),c=Hje);for(var Z=0;Z<c.length;Z++){var K=_.Ld(G,c[Z],I||this.handleEvent,R||!1,this.handler_||this);if(!K)break;this.JSC$10173_keys_[K.key]=K}return this};
_.D0.prototype.listenOnce=function(G,c,I,R){return XlK(this,G,c,I,R)};
var XlK=function(G,c,I,R,Z,K){if(Array.isArray(I))for(var m=0;m<I.length;m++)XlK(G,c,I[m],R,Z,K);else{c=uD(c,I,R||G.handleEvent,Z,K||G.handler_||G);if(!c)return G;G.JSC$10173_keys_[c.key]=c}return G};
_.D0.prototype.unlisten=function(G,c,I,R,Z){if(Array.isArray(c))for(var K=0;K<c.length;K++)this.unlisten(G,c[K],I,R,Z);else if(G=Fe2(G,c,I||this.handleEvent,_.db(R)?!!R.capture:!!R,Z||this.handler_||this))bD(G),delete this.JSC$10173_keys_[G.key];return this};
_.D0.prototype.removeAll=function(){_.rx.forEach(this.JSC$10173_keys_,function(G,c){this.JSC$10173_keys_.hasOwnProperty(c)&&bD(G)},this);
this.JSC$10173_keys_={}};
_.D0.prototype.disposeInternal=function(){_.D0.superClass_.disposeInternal.call(this);this.removeAll()};
_.D0.prototype.handleEvent=function(){throw Error("Oa");};var Oc=function(){_.JK.call(this);this.services_={}};
_.eg(Oc,_.JK);Oc.prototype.connect=function(G){G&&G()};
Oc.prototype.isConnected=function(){return!0};
Oc.prototype.registerService=function(G,c,I){this.services_[G]={callback:c,objectPayload:!!I}};
Oc.prototype.getService=function(G,c){var I=this.services_[G];return I?I:this.defaultService_?{callback:_.Ts(this.defaultService_,G),objectPayload:_.db(c)}:null};
var y$B=function(G,c){if(c&&typeof G==="string")try{return JSON.parse(G)}catch(I){return null}else if(!c&&typeof G!=="string")return(0,_.HL)(G);return G};
Oc.prototype.disposeInternal=function(){Oc.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 ej=function(G,c){this.sequence_=[];this.onCancelFunction_=G;this.defaultScope_=c||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};
ej.prototype.cancel=function(G){if(this.fired_)this.result_ instanceof ej&&this.result_.cancel();else{if(this.parent_){var c=this.parent_;delete this.parent_;G?c.cancel(G):(c.branches_--,c.branches_<=0&&c.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Np(this))}};
ej.prototype.continue_=function(G,c){this.blocked_=!1;g$A(this,G,c)};
var g$A=function(G,c,I){G.fired_=!0;G.result_=I;G.hadError_=!c;Yo0(G)},cgT=function(G){if(G.fired_){if(!G.silentlyCanceled_)throw new Gai(G);
G.silentlyCanceled_=!1}};
ej.prototype.callback=function(G){cgT(this);g$A(this,!0,G)};
ej.prototype.errback=function(G){cgT(this);g$A(this,!1,G)};
var I60=function(G,c,I){lK(G,c,null,I)};
ej.prototype.finally=function(G){var c=this;return R_9(new Promise(function(I,R){lK(c,function(Z){G();I(Z)},function(Z){G();
R(Z)})}))};
var lK=function(G,c,I,R){var Z=G.fired_;Z||(c===I?c=I=jo(c):(c=jo(c),I=jo(I)));G.sequence_.push([c,I,R]);Z&&Yo0(G)};
ej.prototype.then=function(G,c,I){var R,Z,K=new _.Lk(function(m,a){Z=m;R=a});
lK(this,Z,function(m){m instanceof Np?K.cancel():R(m);return ZkV},this);
return K.then(G,c,I)};
k2K(ej);var Kpe=function(G,c){c instanceof ej?I60(G,(0,_.WD)(c.branch,c)):I60(G,function(){return c})};
ej.prototype.branch=function(G){var c=new ej;lK(this,c.callback,c.errback,c);G&&(c.parent_=this,this.branches_++);return c};
ej.prototype.isError=function(G){return G instanceof Error};
var PBA=function(G){return QG(G.sequence_,function(c){return typeof c[1]==="function"})},ZkV={},Yo0=function(G){if(G.unhandledErrorId_&&G.fired_&&PBA(G)){var c=G.unhandledErrorId_,I=Qx9[c];
I&&(_.Rq.clearTimeout(I.JSC$10190_id_),delete Qx9[c]);G.unhandledErrorId_=0}G.parent_&&(G.parent_.branches_--,delete G.parent_);c=G.result_;for(var R=I=!1;G.sequence_.length&&!G.blocked_;){var Z=G.sequence_.shift(),K=Z[0],m=Z[1];Z=Z[2];if(K=G.hadError_?m:K)try{var a=K.call(Z||G.defaultScope_,c);a===ZkV&&(a=void 0);a!==void 0&&(G.hadError_=G.hadError_&&(a==c||G.isError(a)),G.result_=c=a);if(sgK(c)||typeof _.Rq.Promise==="function"&&c instanceof _.Rq.Promise)R=!0,G.blocked_=!0}catch(O){c=O,G.hadError_=
!0,PBA(G)||(I=!0)}}G.result_=c;R&&(a=(0,_.WD)(G.continue_,G,!0),R=(0,_.WD)(G.continue_,G,!1),c instanceof ej?(lK(c,a,R),c.blocking_=!0):c.then(a,R));I&&(c=new mb9(c),Qx9[c.JSC$10190_id_]=c,G.unhandledErrorId_=c.JSC$10190_id_)},R_9=function(G){var c=new ej;
G.then(function(I){c.callback(I)},function(I){c.errback(I)});
return c},Gai=function(){_.G8.call(this)};
_.eg(Gai,_.G8);Gai.prototype.message="Deferred has already fired";Gai.prototype.name="AlreadyCalledError";var Np=function(){_.G8.call(this)};
_.eg(Np,_.G8);Np.prototype.message="Deferred was canceled";Np.prototype.name="CanceledError";var mb9=function(G){this.JSC$10190_id_=_.Rq.setTimeout((0,_.WD)(this.throwError,this),0);this.JSC$10190_error_=G};
mb9.prototype.throwError=function(){delete Qx9[this.JSC$10190_id_];throw this.JSC$10190_error_;};
var Qx9={};var a6K={1:"NativeMessagingTransport"},Tj0=["pu","lru","pru","lpu","ppu"],e_K=function(){for(var G=10,c=Oki,I=c.length,R="";G-- >0;)R+=c.charAt(Math.floor(Math.random()*I));return R},Oki="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var qp=function(G){_.JK.call(this);this.JSC$10193_domHelper_=G||zM()};
_.eg(qp,_.JK);qp.prototype.transportType=0;qp.prototype.getWindow=function(){return this.JSC$10193_domHelper_.getWindow()};
qp.prototype.getName=function(){return a6K[String(this.transportType)]||""};var w2=function(G,c,I,R,Z){qp.call(this,I);this.JSC$10196_channel_=G;this.protocolVersion_=Z||2;this.peerHostname_=c||"*";this.JSC$10196_eventHandler_=new _.D0(this);this.maybeAttemptToConnectTimer_=new _.vb(100,this.getWindow());this.oneSidedHandshake_=!!R;this.setupAckReceived_=new ej;this.setupAckSent_=new ej;this.JSC$10196_connected_=new ej;this.endpointId_=e_K();this.peerEndpointId_=null;this.oneSidedHandshake_?NjN(this.JSC$10196_channel_)==1?Kpe(this.JSC$10196_connected_,this.setupAckReceived_):
Kpe(this.JSC$10196_connected_,this.setupAckSent_):(Kpe(this.JSC$10196_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Kpe(this.JSC$10196_connected_,this.setupAckSent_));I60(this.JSC$10196_connected_,this.notifyConnected_,this);this.JSC$10196_connected_.callback(!0);this.JSC$10196_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.eg(w2,qp);w2.prototype.peerProtocolVersion_=null;w2.prototype.initialized_=!1;w2.prototype.transportType=1;var l60={};w2.prototype.sendTimerId_=0;
var FpT=function(G){var c=G.event_.data;if(typeof c!=="string")return!1;var I=c.indexOf("|"),R=c.indexOf(":");if(I==-1||R==-1)return!1;var Z=c.substring(0,I);I=c.substring(I+1,R);c=c.substring(R+1);if(R=Fn[Z])return R.xpcDeliver(I,c,G.event_.origin),!0;R=qfA(c)[0];for(var K in Fn){var m=Fn[K];if(NjN(m)==1&&!m.isConnected()&&I=="tp"&&(R=="SETUP"||R=="SETUP_NTPV2")&&w_9(m,G.event_.origin))return delete Fn[m.name],m.name=Z,Fn[Z]=m,m.xpcDeliver(I,c),!0}return!1},n7A=function(G){G.protocolVersion_!=2||
G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||G.send("tp","SETUP_NTPV2,"+G.endpointId_);
G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||G.send("tp","SETUP")},v7i=function(G,c){if(G.protocolVersion_!=2||G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||c!=2){if(G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||c!=1)return;
G.send("tp","SETUP_ACK")}else G.send("tp","SETUP_ACK_NTPV2");G.setupAckSent_.fired_||G.setupAckSent_.callback(!0)},DbB=function(G,c){c>G.peerProtocolVersion_&&(G.peerProtocolVersion_=c);
G.peerProtocolVersion_==1&&(G.setupAckSent_.fired_||G.oneSidedHandshake_||G.setupAckSent_.callback(!0),G.peerEndpointId_=null)};
_.P=w2.prototype;_.P.connect=function(){var G=this.getWindow(),c=_.XB(G),I=l60[c];typeof I!=="number"&&(I=0);I==0&&_.Ld(G.postMessage?G:G.document,"message",FpT,!1,w2);l60[c]=I+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.P.maybeAttemptToConnect_=function(){var G=NjN(this.JSC$10196_channel_)==0;this.oneSidedHandshake_&&G||this.JSC$10196_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),n7A(this))};
_.P.send=function(G,c){var I=this.JSC$10196_channel_.peerWindowObject_;I&&(this.send=function(R,Z){var K=this,m=this.JSC$10196_channel_.name;this.sendTimerId_=d4(function(){K.sendTimerId_=0;try{var a=I.postMessage?I:I.document;a.postMessage&&a.postMessage(m+"|"+R+":"+Z,K.peerHostname_)}catch(O){}},0)},this.send(G,c))};
_.P.notifyConnected_=function(){var G=this.JSC$10196_channel_,c=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;G.isConnected()||G.connectionDelay_&&G.connectionDelay_.isActive()||(G.state_=2,_.TB(G.connectionDelay_),c!==void 0?(G.connectionDelay_=new _.iR(G.connectCb_,c),G.connectionDelay_.start()):(G.connectionDelay_=null,G.connectCb_()))};
_.P.disposeInternal=function(){if(this.initialized_){var G=this.getWindow(),c=_.XB(G),I=l60[c];l60[c]=I-1;I==1&&_.BL(G.postMessage?G:G.document,"message",FpT,!1,w2)}this.sendTimerId_&&(_.Rq.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.TB(this.JSC$10196_eventHandler_);delete this.JSC$10196_eventHandler_;_.TB(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10196_connected_.cancel();delete this.JSC$10196_connected_;delete this.send;w2.superClass_.disposeInternal.call(this)};
var qfA=function(G){G=G.split(",");G[1]=G[1]||null;return G};var UbA;_.n9=function(G){if(G.getValues&&typeof G.getValues=="function")return G.getValues();if(typeof Map!=="undefined"&&G instanceof Map||typeof Set!=="undefined"&&G instanceof Set)return Array.from(G.values());if(typeof G==="string")return G.split("");if(_.xp(G)){for(var c=[],I=G.length,R=0;R<I;R++)c.push(G[R]);return c}return _.rx.getValues(G)};
_.o7T=function(G){if(G.getKeys&&typeof G.getKeys=="function")return G.getKeys();if(!G.getValues||typeof G.getValues!="function"){if(typeof Map!=="undefined"&&G instanceof Map)return Array.from(G.keys());if(!(typeof Set!=="undefined"&&G instanceof Set)){if(_.xp(G)||typeof G==="string"){var c=[];G=G.length;for(var I=0;I<G;I++)c.push(I);return c}return _.rx.getKeys(G)}}};
UbA=function(G,c,I){if(G.forEach&&typeof G.forEach=="function")G.forEach(c,I);else if(_.xp(G)||typeof G==="string")Array.prototype.forEach.call(G,c,I);else for(var R=_.o7T(G),Z=_.n9(G),K=Z.length,m=0;m<K;m++)c.call(I,Z[m],R&&R[m],G)};var wt8,kb,L9,$b0,u4V,kae,bke,Ag0,sxe;
_.Bq=function(G,c){this.JSC$10201_domain_=this.userInfo_=this.scheme_="";this.JSC$10201_port_=null;this.fragment_=this.JSC$10201_path_="";this.JSC$10201_ignoreCase_=!1;var I;G instanceof _.Bq?(this.JSC$10201_ignoreCase_=c!==void 0?c:G.JSC$10201_ignoreCase_,_.vz(this,G.scheme_),this.userInfo_=G.userInfo_,_.Dh(this,G.JSC$10201_domain_),_.oN(this,G.JSC$10201_port_),_.Uc(this,G.getPath()),_.uK(this,G.JSC$10201_queryData_.clone()),_.bK(this,G.fragment_)):G&&(I=_.Tu(String(G)))?(this.JSC$10201_ignoreCase_=
!!c,_.vz(this,I[1]||"",!0),this.userInfo_=kb(I[2]||""),_.Dh(this,I[3]||"",!0),_.oN(this,I[4]),_.Uc(this,I[5]||"",!0),_.uK(this,I[6]||"",!0),_.bK(this,I[7]||"",!0)):(this.JSC$10201_ignoreCase_=!!c,this.JSC$10201_queryData_=new _.sc(null,this.JSC$10201_ignoreCase_))};
_.Bq.prototype.toString=function(){var G=[],c=this.scheme_;c&&G.push(L9(c,u4V,!0),":");var I=this.JSC$10201_domain_;if(I||c=="file")G.push("//"),(c=this.userInfo_)&&G.push(L9(c,u4V,!0),"@"),G.push(_.ZH(I).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),I=this.JSC$10201_port_,I!=null&&G.push(":",String(I));if(I=this.getPath())this.JSC$10201_domain_&&I.charAt(0)!="/"&&G.push("/"),G.push(L9(I,I.charAt(0)=="/"?bke:kae,!0));(I=this.JSC$10201_queryData_.toString())&&G.push("?",I);(I=this.fragment_)&&G.push("#",
L9(I,sxe));return G.join("")};
_.Bq.prototype.resolve=function(G){var c=this.clone(),I=!!G.scheme_;I?_.vz(c,G.scheme_):I=!!G.userInfo_;I?c.userInfo_=G.userInfo_:I=!!G.JSC$10201_domain_;I?_.Dh(c,G.JSC$10201_domain_):I=G.JSC$10201_port_!=null;var R=G.getPath();if(I)_.oN(c,G.JSC$10201_port_);else if(I=!!G.JSC$10201_path_){if(R.charAt(0)!="/")if(this.JSC$10201_domain_&&!this.JSC$10201_path_)R="/"+R;else{var Z=c.getPath().lastIndexOf("/");Z!=-1&&(R=c.getPath().slice(0,Z+1)+R)}Z=R;if(Z==".."||Z==".")R="";else if(_.aq(Z,"./")||_.aq(Z,
"/.")){R=_.KA(Z,"/");Z=Z.split("/");for(var K=[],m=0;m<Z.length;){var a=Z[m++];a=="."?R&&m==Z.length&&K.push(""):a==".."?((K.length>1||K.length==1&&K[0]!="")&&K.pop(),R&&m==Z.length&&K.push("")):(K.push(a),R=!0)}R=K.join("/")}else R=Z}I?_.Uc(c,R):I=G.JSC$10201_queryData_.toString()!=="";I?_.uK(c,G.JSC$10201_queryData_.clone()):I=!!G.fragment_;I&&_.bK(c,G.fragment_);return c};
_.Bq.prototype.clone=function(){return new _.Bq(this)};
_.vz=function(G,c,I){G.scheme_=I?kb(c,!0):c;G.scheme_&&(G.scheme_=G.scheme_.replace(/:$/,""));return G};
_.Dh=function(G,c,I){G.JSC$10201_domain_=I?kb(c,!0):c;return G};
_.oN=function(G,c){if(c){c=Number(c);if(isNaN(c)||c<0)throw Error("Pa`"+c);G.JSC$10201_port_=c}else G.JSC$10201_port_=null;return G};
_.Bq.prototype.getPath=function(){return this.JSC$10201_path_};
_.Uc=function(G,c,I){G.JSC$10201_path_=I?kb(c,!0):c;return G};
_.uK=function(G,c,I){c instanceof _.sc?(G.JSC$10201_queryData_=c,LpB(G.JSC$10201_queryData_,G.JSC$10201_ignoreCase_)):(I||(c=L9(c,Ag0)),G.JSC$10201_queryData_=new _.sc(c,G.JSC$10201_ignoreCase_));return G};
_.Zm=function(G,c,I){G.JSC$10201_queryData_.set(c,I);return G};
_.RW=function(G,c){return G.JSC$10201_queryData_.get(c)};
_.bK=function(G,c,I){G.fragment_=I?kb(c):c;return G};
_.Am=function(G){_.Zm(G,"zx",cX());return G};
_.IW=function(G,c){return G instanceof _.Bq?G.clone():new _.Bq(G,c)};
wt8=function(G,c){G instanceof _.Bq||(G=_.IW(G));c instanceof _.Bq||(c=_.IW(c));return G.resolve(c)};
kb=function(G,c){return G?c?decodeURI(G.replace(/%25/g,"%2525")):decodeURIComponent(G):""};
L9=function(G,c,I){return typeof G==="string"?(G=encodeURI(G).replace(c,$b0),I&&(G=G.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G):null};
$b0=function(G){G=G.charCodeAt(0);return"%"+(G>>4&15).toString(16)+(G&15).toString(16)};
u4V=/[#\/\?@]/g;kae=/[#\?:]/g;bke=/[#\?]/g;Ag0=/[#\?@]/g;sxe=/#/g;_.sc=function(G,c){this.count_=this.keyMap_=null;this.encodedQuery_=G||null;this.JSC$10202_ignoreCase_=!!c};
_.$b=function(G){G.keyMap_||(G.keyMap_=new Map,G.count_=0,G.encodedQuery_&&lLT(G.encodedQuery_,function(c,I){G.add(lW(c),I)}))};
_.P=_.sc.prototype;_.P.getCount=function(){_.$b(this);return this.count_};
_.P.add=function(G,c){_.$b(this);this.encodedQuery_=null;G=Sj(this,G);var I=this.keyMap_.get(G);I||this.keyMap_.set(G,I=[]);I.push(c);this.count_+=1;return this};
_.P.remove=function(G){_.$b(this);G=Sj(this,G);return this.keyMap_.has(G)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(G).length,this.keyMap_.delete(G)):!1};
_.P.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.P.isEmpty=function(){_.$b(this);return this.count_==0};
_.P.containsKey=function(G){_.$b(this);G=Sj(this,G);return this.keyMap_.has(G)};
_.P.containsValue=function(G){var c=this.getValues();return _.fA(c,G)};
_.P.forEach=function(G,c){_.$b(this);this.keyMap_.forEach(function(I,R){I.forEach(function(Z){G.call(c,Z,R,this)},this)},this)};
_.P.getKeys=function(){_.$b(this);for(var G=Array.from(this.keyMap_.values()),c=Array.from(this.keyMap_.keys()),I=[],R=0;R<c.length;R++)for(var Z=G[R],K=0;K<Z.length;K++)I.push(c[R]);return I};
_.P.getValues=function(G){_.$b(this);var c=[];if(typeof G==="string")this.containsKey(G)&&(c=c.concat(this.keyMap_.get(Sj(this,G))));else{G=Array.from(this.keyMap_.values());for(var I=0;I<G.length;I++)c=c.concat(G[I])}return c};
_.P.set=function(G,c){_.$b(this);this.encodedQuery_=null;G=Sj(this,G);this.containsKey(G)&&(this.count_-=this.keyMap_.get(G).length);this.keyMap_.set(G,[c]);this.count_+=1;return this};
_.P.get=function(G,c){if(!G)return c;G=this.getValues(G);return G.length>0?String(G[0]):c};
_.SfB=function(G,c,I){G.remove(c);I.length>0&&(G.encodedQuery_=null,G.keyMap_.set(Sj(G,c),_.jr(I)),G.count_+=I.length)};
_.sc.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var G=[],c=Array.from(this.keyMap_.keys()),I=0;I<c.length;I++){var R=c[I],Z=_.ZH(R);R=this.getValues(R);for(var K=0;K<R.length;K++){var m=Z;R[K]!==""&&(m+="="+_.ZH(R[K]));G.push(m)}}return this.encodedQuery_=G.join("&")};
_.sc.prototype.clone=function(){var G=new _.sc;G.encodedQuery_=this.encodedQuery_;this.keyMap_&&(G.keyMap_=new Map(this.keyMap_),G.count_=this.count_);return G};
var Sj=function(G,c){c=String(c);G.JSC$10202_ignoreCase_&&(c=c.toLowerCase());return c},LpB=function(G,c){c&&!G.JSC$10202_ignoreCase_&&(_.$b(G),G.encodedQuery_=null,G.keyMap_.forEach(function(I,R){var Z=R.toLowerCase();
R!=Z&&(this.remove(R),_.SfB(this,Z,I))},G));
G.JSC$10202_ignoreCase_=c};
_.sc.prototype.extend=function(G){for(var c=0;c<arguments.length;c++)UbA(arguments[c],function(I,R){this.add(R,I)},this)};var p9=function(G,c){Oc.call(this);for(var I=0,R;R=Tj0[I];I++)if(R in G&&!/^https?:\/\//.test(G[R]))throw Error("Ra`"+G[R]+"`"+R);this.cfg_=G;this.name=this.cfg_.cn||e_K();this.JSC$10197_domHelper_=c||zM();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.D0(this);G.lpu=G.lpu||eYk(this.JSC$10197_domHelper_.getWindow().location.href)+"/robots.txt";G.ppu=G.ppu||eYk(G.pu||"")+"/robots.txt";Fn[this.name]=this;Fe2(window,"unload",p_e)||uD(window,"unload",p_e)};
_.eg(p9,Oc);var Mc0=RegExp("^%*tp$"),Vcp=RegExp("^%+tp$");_.P=p9.prototype;_.P.connectionDelay_=null;_.P.peerWindowDeferred_=null;_.P.transport_=null;_.P.state_=1;_.P.isConnected=function(){return this.state_==2};
_.P.peerWindowObject_=null;_.P.iframeElement_=null;_.P.getConfig=function(){return this.cfg_};
_.P.connect=function(G){this.connectCb_=G||_.EF;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?I60(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.P.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10197_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var G=this.iframeElement_.contentWindow;G||(G=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=G}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");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$10197_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new w2(this,this.cfg_.ph,this.JSC$10197_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.P.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.TB(this.transport_);this.connectCb_=this.transport_=null;_.TB(this.connectionDelay_);this.connectionDelay_=null};
_.P.send=function(G,c){if(this.isConnected()){try{var I=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Z){I=!1}if(I){_.db(c)&&(c=(0,_.HL)(c));I=this.transport_;var R=I.send;Mc0.test(G)&&(G="%"+G);G=G.replace(/[%:|]/g,encodeURIComponent);R.call(I,G,c)}else this.close()}};
_.P.xpcDeliver=function(G,c,I){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.WD)(this.xpcDeliver,this,G,c,I));else if(w_9(this,I)&&!this.isDisposed()&&this.state_!=3)if(G&&G!="tp")this.isConnected()&&(G=G.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),G=Vcp.test(G)?G.substring(1):G,G=this.getService(G,c))&&(c=y$B(c,G.objectPayload),c!=null&&G.callback(c));else switch(G=this.transport_,I=qfA(c),c=I[1],I[0]){case "SETUP_ACK":DbB(G,1);G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":G.protocolVersion_==2&&(DbB(G,2),G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0));break;case "SETUP":DbB(G,1);v7i(G,1);break;case "SETUP_NTPV2":G.protocolVersion_==2&&(I=G.peerProtocolVersion_,DbB(G,2),v7i(G,2),I!=1&&G.peerEndpointId_==null||G.peerEndpointId_==c||n7A(G),G.peerEndpointId_=c)}};
var NjN=function(G){var c=G.cfg_.role;return typeof c==="number"?c:window.parent==G.peerWindowObject_?1:0},w_9=function(G,c){var I=G.cfg_.ph;
return _.mg(c==null?"":String(c))||_.mg(I==null?"":String(I))||c==G.cfg_.ph};
p9.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Fn[this.name];_.TB(this.peerLoadHandler_);delete this.peerLoadHandler_;p9.superClass_.disposeInternal.call(this)};
var p_e=function(){for(var G in Fn)_.TB(Fn[G])},Fn={};var E70=function(G,c){this.win=G;this.allowAdsHttpEndpoint=c;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10211_domHelper=zM(G);this.scrollManager=new CrV(G);this.accessibilityManager=new jz0(G);z_N(this)},z_N=function(G){var c=function(){G.allowAdsPopup&&G.allowAdsPopup.style.setProperty("display","none","important");
G.wallElement.style.setProperty("display","","important");xt9(G.accessibilityManager);dtp(G.accessibilityManager,G.wallElement.querySelector(".fc-dialog-container"),!1,!1,G.wallElement.querySelector(".fc-button-whitelist"));G.scrollManager.enableScrolling()};
G.allowAdsPopup=G.JSC$10211_domHelper.JSC$9497_createDom("DIV",{"class":"fc-whitelist-root"});G.allowAdsPopup.style.setProperty("display","none","important");G.JSC$10211_domHelper.appendChild(G.JSC$10211_domHelper.JSC$9495_document_.body,G.allowAdsPopup);var I=G.JSC$10211_domHelper.JSC$9497_createDom("DIV",{"class":"fc-dialog-overlay"});G.JSC$10211_domHelper.appendChild(G.allowAdsPopup,I);var R=G.JSC$10211_domHelper.JSC$9497_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:c});G.JSC$10211_domHelper.appendChild(G.allowAdsPopup,
R);I=G.JSC$10211_domHelper.JSC$9497_createDom("IFRAME");I.className="fc-whitelist-dialog";I.frameBorder="0";I.id="fc-whitelist-iframe";I.tabIndex="0";_.IE(I,G.allowAdsHttpEndpoint);G.JSC$10211_domHelper.appendChild(R,I);R={};R.pu=_.z6(G.allowAdsHttpEndpoint).toString();R.tp=1;R.cn="fc-whitelist-channel";R.ifrid=I.id;R.osh=!0;G.allowAdsCrossPageChannel=new p9(R);G.allowAdsCrossPageChannel.registerService("close",c);G.allowAdsCrossPageChannel.registerService("refresh",function(){G.win.location.reload()});
G.allowAdsCrossPageChannel.registerService("resize",function(Z){if(Z){var K=G.allowAdsPopup.querySelector(".fc-whitelist-dialog");Z.width&&K.style.setProperty("width",Z.width,"important");Z.height&&K.style.setProperty("height",Z.height,"important")}},!0);
G.allowAdsCrossPageChannel.connect()};
E70.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10211_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Mp=window,Vh=document,JgK=Mp.location,Wp2=function(){},ik0=/\[native code\]/,zp=function(G,c,I){return G[c]=G[c]||I},f6T=function(G){G=G.sort();
for(var c=[],I=void 0,R=0;R<G.length;R++){var Z=G[R];Z!=I&&c.push(Z);I=Z}return c},Ec=function(){var G;
if((G=Object.create)&&ik0.test(G))G=G(null);else{G={};for(var c in G)G[c]=void 0}return G},Jm=zp(Mp,"gapi",{});var Wz={};Wz=zp(Mp,"___jsl",Ec());zp(Wz,"I",0);zp(Wz,"hel",10);var Bji=function(){var G=JgK.href;if(Wz.dpo)var c=Wz.h;else{c=Wz.h;var I=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),R=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(G=G&&(I.exec(G)||R.exec(G)))try{c=decodeURIComponent(G[2])}catch(Z){}}return c},rgi=function(G){var c=zp(Wz,"PQ",[]);
Wz.PQ=[];var I=c.length;if(I===0)G();else for(var R=0,Z=function(){++R===I&&G()},K=0;K<I;K++)c[K](Z)},jxA=function(G){return zp(zp(Wz,"H",Ec()),G,Ec())};var iK=function(G){this.JSC$10213_obj_=G};
iK.prototype.value=function(){return this.JSC$10213_obj_};
iK.prototype.getWidth=function(){return this.JSC$10213_obj_.width};
iK.prototype.getHeight=function(){return this.JSC$10213_obj_.height};
iK.prototype.getStyle=function(){return this.JSC$10213_obj_.style};var xbB=function(G){this.JSC$10216_obj_=G||{}};
_.P=xbB.prototype;_.P.value=function(){return this.JSC$10216_obj_};
_.P.setUrl=function(G){this.JSC$10216_obj_.url=G;return this};
_.P.getUrl=function(){return this.JSC$10216_obj_.url};
_.P.getStyle=function(){return this.JSC$10216_obj_.style};
_.P.getId=function(){return this.JSC$10216_obj_.id};
_.P.getContext=function(){return this.JSC$10216_obj_.context};
var tce=function(G){G.JSC$10216_obj_.attributes=G.JSC$10216_obj_.attributes||{};return new iK(G.JSC$10216_obj_.attributes)};var h_2=function(){xbB.apply(this,arguments)};
_.u(h_2,xbB);var dbA=zp(Wz,"perf",Ec());zp(dbA,"g",Ec());var CBA=zp(dbA,"i",Ec());zp(dbA,"r",[]);Ec();Ec();var X_A=function(G,c,I){c&&c.length>0&&(c=Hk0(c),I&&I.length>0&&(c+="___"+Hk0(I)),c.length>28&&(c=c.substr(0,28)+(c.length-28)),I=c,c=zp(CBA,"_p",Ec()),zp(c,I,Ec())[G]=(new Date).getTime(),c=dbA.r,typeof c==="function"?c(G,"_p",I):c.push([G,"_p",I]))},Hk0=function(G){return G.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var ygK=Ec(),g72=[],f9=function(G){throw Error("Ua`"+G);};
g72.push(["jsl",function(G){for(var c in G)if(Object.prototype.hasOwnProperty.call(G,c)){var I=G[c];typeof I=="object"?Wz[c]=zp(Wz,c,[]).concat(I):zp(Wz,c,I)}if(c=G.u)G=zp(Wz,"us",[]),G.push(c),(c=/^https:(.*)$/.exec(c))&&G.push("http:"+c[1])}]);
var Yfe=/^(\/[a-zA-Z0-9_\-]+)+$/,GP9=[/\/amp\//,/\/amp$/,/^\/amp$/],caN=/^[a-zA-Z0-9\-_\.,!]+$/,IqB=/^gapi\.loaded_[0-9]+$/,R2K=/^[a-zA-Z0-9,._-]+$/,QDA=function(G,c,I,R,Z){var K=G.split(";"),m=K.shift(),a=ygK[m],O=null;a?O=a(K,c,I,R):f9("no hint processor for: "+m);O||f9("failed to generate load url");c=O;I=c.match(ZY0);(R=c.match(KX0))&&R.length===1&&PxA.test(c)&&I&&I.length===1||f9("failed sanity: "+G);try{G="?";if(Z&&Z.length>0){zC0(Z);var N=Z.join(",");O=O+"?le="+N;G="&"}if(Wz.rol){var q=Wz.ol;
q&&q.length&&(O=""+O+G+"ol="+q.length)}}catch(w){}return O},TZB=function(G,c,I,R){G=mqK(G);
IqB.test(I)||f9("invalid_callback");c=aqK(c);R=R&&R.length?aqK(R):null;var Z=function(K){return encodeURIComponent(K).replace(/%2C/g,",")};
return[encodeURIComponent(G.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Z(G.version),"/m=",Z(c),R?"/exm="+Z(R):"","/rt=j/sv=1/d=1/ed=1",G.activeMods?"/am="+Z(G.activeMods):"",G.resourceSig?"/rs="+Z(G.resourceSig):"",G.zcms?"/t="+Z(G.zcms):"","/cb=",Z(I)].join("")},mqK=function(G){G.charAt(0)!=="/"&&f9("relative path");
for(var c=G.substring(1).split("/"),I=[];c.length;){G=c.shift();if(!G.length||G.indexOf(".")==0)f9("empty/relative directory");else if(G.indexOf("=")>0){c.unshift(G);break}I.push(G)}G={};for(var R=0,Z=c.length;R<Z;++R){var K=c[R].split("="),m=decodeURIComponent(K[0]),a=decodeURIComponent(K[1]);K.length==2&&m&&a&&(G[m]=G[m]||a)}c="/"+I.join("/");Yfe.test(c)||f9("invalid_prefix");I=0;for(R=GP9.length;I<R;++I)GP9[I].test(c)&&f9("invalid_prefix");I=OYB(G,"k",!0);R=OYB(G,"am");Z=OYB(G,"rs");G=OYB(G,"t");
return{pathPrefix:c,version:I,activeMods:R,resourceSig:Z,zcms:G}},aqK=function(G){for(var c=[],I=0,R=G.length;I<R;++I){var Z=G[I].replace(/\./g,"_").replace(/-/g,"_");
R2K.test(Z)&&c.push(Z)}return c.join(",")},OYB=function(G,c,I){G=G[c];
!G&&I&&f9("missing: "+c);if(G){if(caN.test(G))return G;f9("invalid: "+c)}return null},PxA=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,KX0=/\/cb=/g,ZY0=/\/\//g;
ygK.m=function(G,c,I,R){(G=G[0])||f9("missing_hint");return"https://apis.google.com"+TZB(G,c,I,R)};
var e22=decodeURI("%73cript"),NZe=/^[-+_0-9\/A-Za-z]+={0,2}$/,lqN=function(G,c){for(var I=[],R=0;R<G.length;++R){var Z=G[R],K;if(K=Z){a:{for(K=0;K<c.length;K++)if(c[K]===Z)break a;K=-1}K=K<0}K&&I.push(Z)}return I},qp0=function(){var G=Wz.nonce;
return G!==void 0?G&&G===String(G)&&G.match(NZe)?G:Wz.nonce=null:Vh.querySelector?(G=Vh.querySelector("script[nonce]"))?(G=G.nonce||G.getAttribute("nonce")||"",G&&G===String(G)&&G.match(NZe)?Wz.nonce=G:Wz.nonce=null):null:null},ntK=function(G){if(Vh.readyState!="loading")wNK(G);
else{var c=qp0(),I="";c!==null&&(I=' nonce="'+c+'"');G="<"+e22+' src="'+encodeURI(G)+'"'+I+"></"+e22+">";Vh.write(FXK?FXK.createHTML(G):G)}},wNK=function(G){var c=Vh.createElement(e22);
c.setAttribute("src",FXK?FXK.createScriptURL(G):G);G=qp0();G!==null&&c.setAttribute("nonce",G);c.async="true";(G=Vh.getElementsByTagName(e22)[0])?G.parentNode.insertBefore(c,G):(Vh.head||Vh.body||Vh.documentElement).appendChild(c)},Dq0=function(G,c,I){vt0(function(){var R=c===Bji()?zp(Jm,"_",Ec()):Ec();
R=zp(jxA(c),"_",R);G(R)},I)},eup=function(G,c){var I=c||{};
typeof c=="function"&&(I={},I.callback=c);var R=(c=I)&&c._c;if(R)for(var Z=0;Z<g72.length;Z++){var K=g72[Z][0],m=g72[Z][1];m&&Object.prototype.hasOwnProperty.call(R,K)&&m(R[K],G,c)}c=[];G?c=G.split(":"):I.features&&(c=I.features);if(!(G=I.h)&&(G=Bji(),!G))throw Error("Va");otN(c||[],I,G)},otN=function(G,c,I){G=f6T(G)||[];
var R=c.callback,Z=c.config,K=c.timeout,m=c.ontimeout,a=c.onerror,O=void 0;typeof a=="function"&&(O=a);var N=null,q=!1;if(K&&!m||!K&&m)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";a=zp(jxA(I),"r",[]).sort();var w=zp(jxA(I),"L",[]).sort(),F=Wz.le||[],n=[].concat(a),U=function(t,x){if(q)return 0;Mp.clearTimeout(N);w.push.apply(w,k);var C=((Jm||{}).config||{}).update;C?C(Z):Z&&zp(Wz,"cu",[]).push(Z);if(x){X_A("me0",t,n);try{Dq0(x,I,O)}finally{X_A("me1",t,n)}}return 1};
K>0&&(N=Mp.setTimeout(function(){q=!0;m()},K));
var k=lqN(G,w);if(k.length){k=lqN(G,a);var p=zp(Wz,"CP",[]),M=p.length;p[M]=function(t){if(!t)return 0;X_A("ml1",k,n);var x=function(H){p[M]=null;U(k,t)&&rgi(function(){R&&R();H()})},C=function(){var H=p[M+1];
H&&H()};
M>0&&p[M-1]?p[M]=function(){x(C)}:x(C)};
if(k.length){var z="loaded_"+Wz.I++;Jm[z]=function(t){p[M](t);Jm[z]=null};
G=QDA(I,k,"gapi."+z,a,F);a.push.apply(a,k);X_A("ml0",k,n);c.sync||Mp.___gapisync?ntK(G):wNK(G)}else p[M](Wp2)}else U(k)&&R&&R()},Uqe;
var ud0=null,bYe=_.Rq.trustedTypes;if(bYe&&bYe.createPolicy){try{ud0=bYe.createPolicy("goog#gapi",{createHTML:npK,createScript:npK,createScriptURL:npK})}catch(G){_.Rq.console&&_.Rq.console.error(G.message)}Uqe=ud0}else Uqe=ud0;var FXK=Uqe,vt0=function(G,c){if(Wz.hee&&Wz.hel>0)try{return G()}catch(I){c&&c(I),Wz.hel--,eup("debug_error",function(){try{window.___jsl.hefn(I)}catch(R){throw I;}})}else try{return G()}catch(I){throw c&&c(I),I;
}},kPe=Jm.load;
kPe&&zp(Wz,"ol",[]).push(kPe);Jm.load=function(G,c){return vt0(function(){return eup(G,c)})};var Gcq;var LXe=function(G,c){var I=I||[];this.serviceId_=G;this.moduleId_=c||null;this.dependencies_=[];sDe(this,I)};
LXe.prototype.toString=function(){return this.serviceId_};
LXe.prototype.getModuleId=function(){return this.moduleId_};
var sDe=function(G,c){var I=!1;I=I===void 0?!1:I;G.dependencies_=G.dependencies_.concat(c);if(I){if(!G.moduleId_)throw Error("Wa`"+G.serviceId_);c.map(function(R){return R.getModuleId()}).forEach(function(R){c$A(function(Z){Z.addExtraEdge(G.moduleId_,R)})})}};var jf0=new LXe("MpJwZc","MpJwZc");var E0B=new _.VM("a"),tLT=new _.VM("c"),xh8=function(G,c,I){_.zR.call(this,G,c);this.node=c;this.kind=I};
_.u(xh8,_.zR);var AaK=function(){this.JSC$10229_keys_={};this.urlPrefix_="";this.JSC$10229_queryData_={}};
AaK.prototype.toString=function(){var G=this.urlPrefix_+$qi(this),c=_.SA(this.JSC$10229_queryData_),I="";c!=""&&(I="?"+c);return G+I};
var SpB=function(G){G=Bz(G,"md");return!!G&&G!=="0"},$qi=function(G){var c=[],I=function(R){G.JSC$10229_keys_[R]!==void 0&&c.push(R+"="+G.JSC$10229_keys_[R])};
SpB(G)?(I("md"),I("k"),I("ck"),I("am"),I("rs"),I("gssmodulesetproto"),I("slk"),I("dti")):(I("sdch"),I("k"),I("ck"),I("am"),I("rt"),"d"in G.JSC$10229_keys_||r2(G,"d","0"),I("d"),I("exm"),I("excm"),(G.JSC$10229_keys_.excm||G.JSC$10229_keys_.exm)&&c.push("ed=1"),I("im"),I("dg"),I("sm"),Bz(G,"br")!="1"&&Bz(G,"br")!="0"||I("br"),I("br-d"),Bz(G,"rb")=="1"&&I("rb"),Bz(G,"zs")!=="0"&&I("zs"),pNN(G)!==""&&I("wt"),I("gssmodulesetproto"),I("ujg"),I("sp"),I("rs"),I("cb"),I("ee"),I("slk"),I("dti"),I("m"));return c.join("/")},
Bz=function(G,c){return G.JSC$10229_keys_[c]?G.JSC$10229_keys_[c]:null},r2=function(G,c,I){I?G.JSC$10229_keys_[c]=I:delete G.JSC$10229_keys_[c]},MKB=function(G,c){G.urlPrefix_=c},VKe=function(G,c){c&&c.length>0?(c.sort(),r2(G,"exm",c.join(","))):r2(G,"exm",null)},z29=function(G,c){c&&c.length>0?(c.sort(),r2(G,"excm",c.join(","))):r2(G,"excm",null)},EtB=function(G){return(G=Bz(G,"m"))?G.split(","):[]},pNN=function(G){switch(Bz(G,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Jae=function(G,c){var I=Object.keys(c).filter(function(R){return!!Object.keys(c[R]).length}).map(function(R){var Z=Object.keys(c[R]);
Z.length>1&&Z.sort();return R+":"+Z.join(",")});
I.sort();r2(G,"ee",I.join(";"))},dti=function(G){var c=Bz(G,"ee");
if(!c)return{};G={};c=_.Q(c.split(";"));for(var I=c.next();!I.done;I=c.next()){var R=_.Q(I.value.split(":"));I=R.next().value;R=R.next().value;G[I]={};R=_.Q(R.split(","));for(var Z=R.next();!Z.done;Z=R.next())G[I][Z.value]=!0}return G},WXT=function(G){delete G.JSC$10229_keys_.m;
delete G.JSC$10229_keys_.exm;delete G.JSC$10229_keys_.ed};
AaK.prototype.clone=function(){var G=new AaK;G.JSC$10229_keys_=Object.assign({},this.JSC$10229_keys_);G.urlPrefix_=this.urlPrefix_;G.JSC$10229_queryData_=Object.assign({},this.JSC$10229_queryData_);return G};
var Cr8=function(G,c){c=c===void 0?!0:c;var I=iY0(G),R=new AaK,Z=_.Tu(I)[5];_.rx.forEach(fqK,function(m){var a=Z.match("/"+m+"=([^/]+)");a&&r2(R,m,a[1])});
var K="";K=G.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";MKB(R,G.substr(0,G.indexOf(K)+K.length));if(!c)return R;(G=_.Tu(I)[6]||null)&&lLT(G,function(m,a){R.JSC$10229_queryData_[m]=a});
return R},xtC=function(G){G=_.Aw(iY0(G));
return G===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(G)?/\/k=/.test(G):!1},iY0=function(G){return G.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?G.substr(65):G},fqK={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},BZT=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.jj=function(G){this.JSC$10241_id_=G;this.opts={}};
_.jj.prototype.JSC$10243_setLabel=function(G){this.label_=G||void 0;return this};
_.jj.prototype.addUploadMetadata=function(G,c){var I=this.opts.data||{};I[G]=c;this.opts.data=I;return this};
var rai=function(G){var c=_.rx.filter(G.opts,function(I){return I!==null});
c=_.rx.isEmpty(c)?null:c;G=[G.JSC$10241_id_,G.label_,c];c=$fU(G);return G=G.slice(0,c+1)};
_.jj.prototype.toString=function(){var G=rai(this);return"("+_.jB(G,function(c){return JSON.stringify(c)}).join(",")+")"};
_.jj.prototype.getId=function(){return this.JSC$10241_id_};
_.jj.prototype.getOptions=function(){return _.rx.clone(this.opts)};var xb=function(){_.jj.call(this,"image-search")};
_.u(xb,_.jj);xb.prototype.setSize=function(G){this.opts.imgsz=G;return this};
xb.prototype.JSC$10243_setLabel=function(G){_.jj.prototype.JSC$10243_setLabel.call(this,G);return this};
xb.prototype.addUploadMetadata=function(G,c){_.jj.prototype.addUploadMetadata.call(this,G,c);return this};var tm=function(){_.jj.call(this,"maps")};
_.u(tm,_.jj);tm.prototype.setZoom=function(G){this.opts.zoom=G;return this};
tm.prototype.JSC$10243_setLabel=function(G){_.jj.prototype.JSC$10243_setLabel.call(this,G);return this};
tm.prototype.addUploadMetadata=function(G,c){_.jj.prototype.addUploadMetadata.call(this,G,c);return this};_.hm=function(){_.jj.call(this,"photos")};
_.u(_.hm,_.jj);_.hm.prototype.JSC$10243_setLabel=function(G){_.jj.prototype.JSC$10243_setLabel.call(this,G);return this};
_.hm.prototype.addUploadMetadata=function(G,c){_.jj.prototype.addUploadMetadata.call(this,G,c);return this};var d2=function(){_.jj.call(this,"url")};
_.u(d2,_.jj);var jDK=function(){var G=new d2;G.opts.type="video";G.opts.site="youtube.com";return G};
d2.prototype.JSC$10243_setLabel=function(G){_.jj.prototype.JSC$10243_setLabel.call(this,G);return this};
d2.prototype.addUploadMetadata=function(G,c){_.jj.prototype.addUploadMetadata.call(this,G,c);return this};var C9=function(){_.jj.call(this,"video-search")};
_.u(C9,_.jj);var xqe=function(){var G=new C9;G.opts.site="youtube.com";return G};
C9.prototype.JSC$10243_setLabel=function(G){_.jj.prototype.JSC$10243_setLabel.call(this,G);return this};
C9.prototype.addUploadMetadata=function(G,c){_.jj.prototype.addUploadMetadata.call(this,G,c);return this};var tK9=function(){_.jj.call(this,"web")};
_.u(tK9,_.jj);tK9.prototype.JSC$10243_setLabel=function(G){_.jj.prototype.JSC$10243_setLabel.call(this,G);return this};
tK9.prototype.addUploadMetadata=function(G,c){_.jj.prototype.addUploadMetadata.call(this,G,c);return this};var Hz=function(){this.items_=[];this.opts={}},h2A=function(G){switch(G){case "image-search":return new xb;
case "maps":return new tm;case "photos":return new _.hm;case "url":return new d2;case "video-search":return new C9;case "web":return new tK9}return new _.jj(G)};
Hz.prototype.addView=function(G){this.items_.push(typeof G==="string"?h2A(G):G);return this};
var dqN=function(G){return"("+_.jB(G.items_,function(c){return c.toString()}).join(",")+")"};
Hz.prototype.toString=function(){return dqN(this)};
Hz.prototype.getViews=function(G,c){c=c===void 0?[]:c;for(var I=this.items_,R=0;R<I.length;R++){var Z=I[R];Z instanceof Hz?Z.getViews(G,c):Z.getId()==G&&c.push(Z)}return c};
Hz.prototype.getOptions=function(){return _.rx.clone(this.opts)};var XO=function(G){this.basePickerUrl_=G||"https://docs.google.com/picker";this.nav_=new Hz};
XO.prototype.nav_=null;XO.prototype.addView=function(G){this.nav_.addView(G);return this};
XO.prototype.getBaseUrl=function(){return this.basePickerUrl_};
XO.prototype.getViews=function(G){return this.nav_.getViews(G)};
_.Cx9=function(G,c){G.callback_=c;return G};var HY2=new Map;HY2.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");HY2.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");HY2.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var XNe=new Set;XNe.add("application/vnd.google-apps.kix");XNe.add("application/vnd.google-apps.ritz");XNe.add("application/vnd.google-apps.punch");var mhK=function(G,c,I){var R=I&&_.iU(I,1);I=yaB(I);var Z=G[0].getId();switch(_.fy(Z,2)){case 13:return gtB(G,c,R,I);case 3:return YpK(G,c,R,I);case 10:return GmB(G,c,R,I);case 27:return GmB(G,c,R,I);case 12:return c8A(G,c);case 2:return I0i(G,c,R,I);case 5:return RKK(G,c,R,I);case 9:return ZFN(G,c,R,I);case 6:return KIp(G,c,R,I);case 25:return Pip(G,c,R,I);case 1:return _.A7(G[0],pDB,26)?Qfp(G,c,R,I):GmB(G,c,R,I);default:return{}}},KIp=function(G,c,I,R){G=G.map(function(Z){return{id:Z.getId().getId(),
serviceId:"youtube",name:Z.getName(),description:_.iU(Z,3),type:Xn(Z),lastEditedUtc:_.Sep(_.Dw(Z,_.iP,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Z.getUrl(),embedUrl:_.iU(Z,13),thumbnails:yh(lt(Z))}});
return{action:c,docs:G,viewToken:R,view:I||"youtube",v2Translated:!0}},I0i=function(G,c,I,R){var Z=G.map(function(K){var m=K.getId().getId(),a=_.iU(K,7),O=K.getName(),N=Xn(K),q=_.Sep(_.Dw(K,_.iP,12)).getTime(),w=K.getUrl(),F=Number(Jep(K)),n=_.iU(K,3),U=_.iU(K,11),k=yh(lt(K));
var p=_.Dw(K,qU,21);p=_.EH(p,1);var M=_.Dw(K,qU,21);M=_.iU(M,10);var z=_.iU(K,13);var t=_.Dw(K,qU,21);t=_.EH(t,9);var x=_.Dw(K,qU,21);x=_.iU(x,11);m={id:m,serviceId:"docs",mimeType:a,name:O,type:N,lastEditedUtc:q,url:w,sizeBytes:F,description:n,iconUrl:U,thumbnails:k,isShared:p,downloadUrl:M,embedUrl:z,copyable:t,resourceKey:x};a=_.Dw(K,qU,21);_.EH(a,12)&&(m.uploadState="success",m.isNew=!0);a=_.Dw(K,qU,21);_.A7(a,Ot,3)&&(K=_.Dw(K,qU,21),K=_.Dw(K,Ot,3),_.A7(K,aK,2)&&(a=dF(K.getDuration().getSeconds()),
O=K.getDuration(),O=_.wF(O,2),m.duration=a+O/1E9),m.aspectRatio=K.getAspectRatio());return m});
return{action:c,docs:Z,viewToken:R,view:I||"all",extraUserInputs:a0K(G),v2Translated:!0}},RKK=function(G,c,I,R){G=G.map(function(Z){var K=_.Dw(Z,BFN,15);
K=_.Dw(K,TR,1);pk(Z,10,TR,K);return{id:Z.getId().getId(),serviceId:"web",mimeType:_.iU(Z,7),name:Z.getName(),type:Xn(Z),url:Z.getUrl(),description:_.iU(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(lt(Z))}});
return{action:c,docs:G,viewToken:R,view:I||"image-search",v2Translated:!0}},ZFN=function(G,c,I,R){G=G.map(function(Z){return{serviceId:"url",
name:lt(Z)[0].getUrl().split("/").pop(),type:Xn(Z),mimeType:_.iU(Z,7),url:Z.getUrl(),description:_.iU(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(lt(Z))}});
return{action:c,docs:G,viewToken:R,view:I||"url",v2Translated:!0}},Qfp=function(G,c,I,R){G=G.map(function(Z){return{id:Z.getId().getId(),
serviceId:"picasa",name:Z.getName(),type:Xn(Z),description:_.iU(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(lt(Z))}});
return{action:c,docs:G,viewToken:R,view:I||"webcam",v2Translated:!0}},GmB=function(G,c,I,R){return{action:c,
docs:G.map(Tce),viewToken:R,view:OF0(I||"upload",G),extraUserInputs:a0K(G),v2Translated:!0}},OF0=function(G,c){return c.some(function(I){var R;
return((R=_.Dw(I,eo,30))==null?void 0:_.fy(R,3))===9})?G+"/gmailphotos":G},YpK=function(G,c,I,R){var Z=G.map(function(K){var m={id:K.getId().getId(),
serviceId:"picasa",mimeType:_.iU(K,7),name:K.getName(),type:Xn(K),lastEditedUtc:_.Sep(_.Dw(K,_.iP,12)).getTime(),url:K.getUrl(),sizeBytes:Number(Jep(K)),description:_.iU(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(lt(K)),mediaKey:K.getId().getId(),parentId:_.iU(K,4)},a,O=(a=_.Dw(K,zYe,18))==null?void 0:_.Dw(a,VT0,3);O&&(m.latitude=WC(O,1),m.longitude=WC(O,2));var N;K=(N=_.Dw(K,zYe,18))==null?void 0:J7(N,6);N=K!=null?dF(K):void 0;N&&(m.version=
N);return m});
return{action:c,docs:Z,viewToken:R,view:I||"photos",extraUserInputs:a0K(G),v2Translated:!0}},gtB=function(G,c,I,R){G=G.map(function(Z){return{id:Z.getId().getId(),
serviceId:"et",name:lt(Z)[0].getUrl().split("/").pop(),description:_.iU(Z,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(lt(Z),"etjpg")}});
return{action:c,docs:G,viewToken:R,view:I||"et",v2Translated:!0}},Pip=function(G,c,I,R){G=G.map(function(Z){var K=Z.getId().getId(),m=R["2"];
return{id:K,serviceId:m.type!=="gmail_themes"&&m.parent==="6226252643674576769"?"picasa":"static_themes",name:Z.getName(),mimeType:_.iU(Z,7),type:Xn(Z),description:_.iU(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Z.getUrl(),embedUrl:Z.getUrl(),thumbnails:yh(lt(Z))}});
return{action:c,docs:G,viewToken:R,view:I||"photos",v2Translated:!0}},c8A=function(G,c){G=G.map(function(I){var R=_.Dw(I,MT2,27);
R=_.Xj(R,1,_.Ud,_.qw())[0];return{id:I.getId().getId(),serviceId:"contacts",mimeType:_.iU(I,7),name:I.getName(),description:_.iU(I,3),url:"mailto:"+R,thumbnail:[{url:_.iU(I,11)}],email:R}});
return{action:c,docs:G,view:"contacts",v2Translated:!0}},yaB=function(G){if(!G)return{};
var c=_.iU(G,3);c=c&&JSON.parse(c)||{};return{0:_.iU(G,1),1:_.iU(G,2),2:c}},yh=function(G,c){c=c===void 0?"":c;
if(!G.length)return null;c=="etjpg"&&(G=G.filter(function(I){return I.getUrl().includes("w1200-h300")}));
return G.map(function(I){return{url:I.getUrl(),height:I.getHeight(),width:I.getWidth(),type:c}})},a0K=function(G){return{isAttachment:G.some(function(c){return _.EH(c,31)})}},Tce=function(G){var c,I={id:(c=G.getId())==null?void 0:c.getId(),
serviceId:eK9(G),mimeType:_.iU(G,7),name:G.getName(),type:Xn(G),sizeBytes:Number(Jep(G)),description:_.iU(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(lt(G)),isNew:!0};if(c=_.Dw(G,eo,30)){I.dataUrl=_.iU(c,1)||null;a:{var R=_.Dw(G,eo,30);switch(_.fy(R,3)){case 9:R=_.jg(R,iSe,2,NU);R={remoteRefs:R&&_.iU(R,1)};break a;case 10:case 15:R=_.jg(R,WrT,4,NU);var Z=lt(G);R={photo_id:R&&_.iU(R,1),media_key:G.getId().getId(),media_type:_.fy(G,6)===1?1:2,image_url:Z&&
Z[0].getUrl(),width:Z&&String(Z[0].getWidth()),height:Z&&String(Z[0].getHeight())};break a}R=null}I.uploadMetadata=R;I.uploadId=_.iU(c,9)||null;I.uploadState=Nc9(c)||null}(R=c&&_.jg(c,WrT,4,NU))&&(I.id=_.iU(R,1));(R=c&&_.jg(c,fL9,5,NU))&&(I.contentId=_.iU(R,1));(R=c&&_.jg(c,E9V,7,NU))&&(I.contentId=_.iU(R,1));(R=c&&_.jg(c,JKB,6,NU))&&(I.contentId=_.iU(R,1));(c==null?void 0:_.fy(c,3))===1&&(I.mediaKey=G.getId().getId());return I},eK9=function(G){var c;
switch(((c=_.Dw(G,eo,30))==null?void 0:_.fy(c,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},Xn=function(G){switch(_.fy(G,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.iU(G,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},Nc9=function(G){switch(G==null?void 0:_.fy(G,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var FIp,l0T,q$K,wbA;_.nd9=function(G,c){var I=c||{};c=I.document||document;var R=_.z6(G).toString(),Z=(new B7(c)).createElement("SCRIPT"),K={script_:Z,timeout_:void 0},m=new ej(l0T,K),a=null,O=I.timeout!=null?I.timeout:5E3;O>0&&(a=window.setTimeout(function(){q$K(Z,!0);m.errback(new wbA(1,"Timeout reached for loading script "+R))},O),K.timeout_=a);
Z.onload=Z.onreadystatechange=function(){Z.readyState&&Z.readyState!="loaded"&&Z.readyState!="complete"||(q$K(Z,I.cleanupWhenDone||!1,a),m.callback(null))};
Z.onerror=function(){q$K(Z,!0,a);m.errback(new wbA(0,"Error while loading script "+R))};
K=I.attributes||{};_.rx.extend(K,{type:"text/javascript",charset:"UTF-8"});oMT(Z,K);_.Ti(Z,G);FIp(c).appendChild(Z);return m};
FIp=function(G){var c=pS("HEAD",G);return c&&c.length!==0?c[0]:G.documentElement};
l0T=function(){if(this&&this.script_){var G=this.script_;G&&G.tagName=="SCRIPT"&&q$K(G,!0,this.timeout_)}};
q$K=function(G,c,I){I!=null&&_.Rq.clearTimeout(I);G.onload=function(){};
G.onerror=function(){};
G.onreadystatechange=function(){};
c&&window.setTimeout(function(){_.ST(G)},0)};
wbA=function(G,c){var I="Jsloader error (code #"+G+")";c&&(I+=": "+c);_.G8.call(this,I);this.code=G};
_.eg(wbA,_.G8);var vdV=_.I3(["https://apis.google.com/js/api.js"]),Dh2=_.D3(vdV),bFB=function(G,c,I){I=I===void 0?{}:I;var R=!1,Z=od0(G,c,I).then(function(m){R=!0;return m}),K=_.hZe(5E3).then(function(){return R?od0(G,c,I):UhB(c,I).then(function(m){return uuV(m,G)})});
return VVT([Z,K])},od0=function(G,c,I){I=I===void 0?{}:I;
return kmB(c,I).then(function(R){return uuV(R,G)})},uuV=function(G,c){var I=_.KA(c,"gapi.")?c.slice(5):c;
return G[I]?_.IP(G[I]):new _.Lk(function(R,Z){var K=d4(function(){Z(Error("Ya"))},3E4);
G.load(c,{callback:function(){_.Rq.clearTimeout(K);R(G[I])},
onerror:function(m){_.Rq.clearTimeout(K);Z(m)}})})},kmB=function(G,c){c=c===void 0?{}:c;
return G.gapi&&G.gapi.load?_.IP(G.gapi):UhB(G,c)},UhB=function(G,c){c=c===void 0?{}:c;
return _.nd9(Dh2,{document:G.document,attributes:c}).then(function(){return G.gapi})},sfK=function(){};
sfK.prototype.load=function(G,c,I){c=c===void 0?window:c;I=I===void 0?{}:I;var R=Date.now();return bFB(G,c,I).then(function(Z){var K=Date.now();return{library:Z,loadStartMs:R,loadEndMs:K}},function(Z){throw Z instanceof Error?Z:Error(String(Z));
})};var NJU=function(){_.JK.call(this);this.gapiLoader_=new sfK;this.origin_=null;this.gapiPickerIframeResolver_=_.HU();this.gapiIframesResolver_=_.HU();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.u(NJU,_.JK);var LI0=function(G,c){var I=I===void 0?{}:I;var R=_.Yc("gapi.iframes",c);return R?(G=Date.now(),_.IP({library:R,loadStartMs:G,loadEndMs:G})):G.gapiLoader_.load("gapi.iframes",c,I)},A8i=function(G,c,I,R,Z,K){var m=!1;
m=m===void 0?!1:m;LI0(G,hs(c.ownerDocument)).then(function(a){var O=a.library;G.gapiIframesResolver_.resolve(O);a=G.gapiPickerIframeResolver_;var N=a.resolve,q=m;q=q===void 0?!1:q;var w={};w["host-message-handler"]=I;G.hostMessageHandlerInternal_=w;var F=_.IW(R);F=_.IW(F);F=_.oN(_.Dh(_.vz(new _.Bq,F.scheme_),F.JSC$10201_domain_),F.JSC$10201_port_).toString();G.origin_=F;F=(new h_2).setUrl(R);F.JSC$10216_obj_.where=c;F.JSC$10216_obj_.allowPost=q;F.JSC$10216_obj_.messageHandlers=w;q=_.Yc("makeWhiteListIframesFilter",
O)([G.origin_]);F.JSC$10216_obj_.messageHandlersFilter=q;Z!=null&&(F.JSC$10216_obj_.id=Z);K!=null&&(F.JSC$10216_obj_.rpctoken=K);q=tce(F);q.JSC$10213_obj_.style={display:"block","min-width":"100%",width:"1px"};q.JSC$10213_obj_.height="100%";tce(F).value().allow="camera 'src' "+G.origin_;O=O.getContext().openChild(F.value());N.call(a,O)},function(a){G.gapiIframesResolver_.reject(a);
G.gapiPickerIframeResolver_.reject(a)});
return G.gapiPickerIframeResolver_.promise},$hT=function(G,c){return _.tE([G.gapiIframesResolver_.promise,
G.gapiPickerIframeResolver_.promise]).then(function(I){var R=_.Q(I);I=R.next().value;return(R=R.next().value)?R.send("picker-message-handler",c,void 0,_.Yc("makeWhiteListIframesFilter",I)([G.origin_])):_.$C(Error("Za"))})};
NJU.prototype.disposeInternal=function(){S$T(this);_.JK.prototype.disposeInternal.call(this)};
var S$T=function(G){G.gapiPickerIframeResolver_.promise.then(function(c){c&&(c.unregister("host-message-handler"),delete G.hostMessageHandlerInternal_["host-message-handler"])})};var pb9=function(){this.nextId=0};var VL9=function(G,c){switch(G.action){case "select-contacts":G=MLV(G.contacts);break;case "visibility":G=G.visible;var I=new vL;G=_.t7(I,1,7).setVisible(G);I={};I["iframe-command"]=G.serialize();G=I;break;default:G=null}return G?$hT(c,G):_.IP()},MLV=function(G){if(!G||G.length==0)return null;
var c=new vL;_.t7(c,1,11);var I=new pb9;G.forEach(function(R){if(R.email){var Z=new V2;Z=_.Xt(Z,2,R.name?R.name:R.email);var K=new MT2;R=_.xgr(K,1,_.Fj,R.email,_.Ud);R=_.Az(Z,27,R);Z=new $wB;K=":"+(I.nextId++).toString(36);Z=_.Xt(Z,1,K);Z=_.t7(Z,2,12);R=_.Az(R,1,Z)}else R=null;R&&pk(c,7,V2,R)});
G={};G["iframe-command"]=c.serialize();return G};_.zKV=function(){if(yUV){var G=/Windows NT ([0-9.]+)/;return(G=G.exec(_.wb()))?G[1]:"0"}return _.Xr0?(G=/1[0|1][_.][0-9_.]+/,(G=G.exec(_.wb()))?G[0].replace(/_/g,"."):"10"):YYb?(G=/Android\s+([^\);]+)(\)|;)/,(G=G.exec(_.wb()))?G[1]:""):Y0i||GVk||ceV?(G=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(G=G.exec(_.wb()))?G[1].replace(/_/g,"."):""):""}();var g2;g2=function(G){return(G=G.exec(_.wb()))?G[1]:""};
_.Ede=function(){if(_.o3)return g2(/Firefox\/([0-9.]+)/);if(_.FY||ev||dfK)return mkT;if(_.UH){if(_.Sr()||_.k8f()){var G=g2(/CriOS\/([0-9.]+)/);if(G)return G}return g2(/Chrome\/([0-9.]+)/)}if(_.Y6&&!_.Sr())return g2(/Version\/([0-9.]+)/);if(IYU||RRb){if(G=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.wb()))return G[1]+"."+G[2]}else if(NeK)return(G=g2(/Android\s+([0-9.]+)/))?G:g2(/Version\/([0-9.]+)/);return""}();var J8B=function(){};
_.To(J8B);J8B.prototype.nextId_=0;_.Yb=function(G){return":"+(G.nextId_++).toString(36)};var G0=function(G){_.r4.call(this);this.JSC$10311_dom_=G||zM();this.JSC$10311_id_=null;this.inDocument_=!1;this.JSC$10311_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.eg(G0,_.r4);G0.prototype.idGenerator_=J8B.getInstance();G0.prototype.getId=function(){return this.JSC$10311_id_||(this.JSC$10311_id_=_.Yb(this.idGenerator_))};
G0.prototype.getElement=function(){return this.JSC$10311_element_};
var cS=function(G){G.googUiComponentHandler_||(G.googUiComponentHandler_=new _.D0(G));return G.googUiComponentHandler_},WI9=function(G,c){if(G==c)throw Error("$a");
var I;if(I=c&&G.parent_&&G.JSC$10311_id_){I=G.parent_;var R=G.JSC$10311_id_;I=I.childIndex_&&R?_.rx.get(I.childIndex_,R)||null:null}if(I&&G.parent_!=c)throw Error("$a");G.parent_=c;G0.superClass_.setParentEventTarget.call(G,c)};
G0.prototype.setParentEventTarget=function(G){if(this.parent_&&this.parent_!=G)throw Error("ab");G0.superClass_.setParentEventTarget.call(this,G)};
G0.prototype.JSC$10313_createDom=function(){this.JSC$10311_element_=this.JSC$10311_dom_.createElement("DIV")};
G0.prototype.render=function(G){iFi(this,G)};
var iFi=function(G,c,I){if(G.inDocument_)throw Error("bb");G.JSC$10311_element_||G.JSC$10313_createDom();c?c.insertBefore(G.JSC$10311_element_,I||null):G.JSC$10311_dom_.JSC$9495_document_.body.appendChild(G.JSC$10311_element_);G.parent_&&!G.parent_.inDocument_||G.enterDocument()};
_.P=G0.prototype;_.P.decorate=function(G){if(this.inDocument_)throw Error("bb");if(G&&this.canDecorate(G)){this.wasDecorated_=!0;var c=_.dx(G);this.JSC$10311_dom_&&this.JSC$10311_dom_.JSC$9495_document_==c||(this.JSC$10311_dom_=zM(G));this.decorateInternal(G);this.enterDocument()}else throw Error("cb");};
_.P.canDecorate=function(){return!0};
_.P.decorateInternal=function(G){this.JSC$10311_element_=G};
_.P.enterDocument=function(){this.inDocument_=!0;f09(this,function(G){!G.inDocument_&&G.getElement()&&G.enterDocument()})};
_.P.exitDocument=function(){f09(this,function(G){G.inDocument_&&G.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.P.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);f09(this,function(G){G.dispose()});
!this.wasDecorated_&&this.JSC$10311_element_&&_.ST(this.JSC$10311_element_);this.parent_=this.model_=this.JSC$10311_element_=this.childIndex_=this.children_=null;G0.superClass_.disposeInternal.call(this)};
_.P.getModel=function(){return this.model_};
_.P.addChild=function(G,c){var I=this.children_?this.children_.length:0;if(G.inDocument_&&(c||!this.inDocument_))throw Error("bb");if(I<0||I>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);G.parent_==this?(_.rx.set(this.childIndex_,G.getId(),G),_.rb(this.children_,G)):_.rx.add(this.childIndex_,G.getId(),G);WI9(G,this);_.Vrg(this.children_,I,0,G);G.inDocument_&&this.inDocument_&&G.parent_==this?(c=this.getContentElement(),
(c.childNodes[I]||null)!=G.getElement()&&(G.getElement().parentElement==c&&c.removeChild(G.getElement()),I=c.childNodes[I]||null,c.insertBefore(G.getElement(),I))):c?(this.JSC$10311_element_||this.JSC$10313_createDom(),I=this.children_?this.children_[I+1]||null:null,iFi(G,this.getContentElement(),I?I.JSC$10311_element_:null)):this.inDocument_&&!G.inDocument_&&G.JSC$10311_element_&&G.JSC$10311_element_.parentNode&&G.JSC$10311_element_.parentNode.nodeType==1&&G.enterDocument()};
_.P.getContentElement=function(){return this.JSC$10311_element_};
var f09=function(G,c){G.children_&&G.children_.forEach(c,void 0)};
G0.prototype.removeChild=function(G,c){if(G){var I=typeof G==="string"?G:G.getId();G=this.childIndex_&&I?_.rx.get(this.childIndex_,I)||null:null;I&&G&&(_.rx.remove(this.childIndex_,I),_.rb(this.children_,G),c&&(G.exitDocument(),G.JSC$10311_element_&&_.ST(G.JSC$10311_element_)),WI9(G,null))}if(!G)throw Error("eb");return G};_.eg(ZjB,R1r);_.eg(K_p,R1r);var Bcp;_.rx.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var r8N=function(G,c){c?G.setAttribute("role",c):G.removeAttribute("role")},I5=function(G,c,I){Array.isArray(I)&&(I=I.join(" "));
var R="aria-"+c;I===""||I==void 0?(Bcp||(I={},Bcp=(I.atomic=!1,I.autocomplete="none",I.dropeffect="none",I.haspopup=!1,I.live="off",I.multiline=!1,I.multiselectable=!1,I.orientation="vertical",I.readonly=!1,I.relevant="additions text",I.required=!1,I.sort="none",I.busy=!1,I.disabled=!1,I.hidden=!1,I.invalid="false",I)),I=Bcp,c in I?G.setAttribute(R,I[c]):G.removeAttribute(R)):G.setAttribute(R,I)};var jfK;_.R5=function(G,c,I){_.r4.call(this);this.target=G;this.handle=c||G;this.limits=I||new g1(NaN,NaN,NaN,NaN);this.JSC$10316_document_=_.dx(G);this.JSC$10316_eventHandler_=new _.D0(this);_.k9(this,this.JSC$10316_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;_.Ld(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=jfK};
_.eg(_.R5,_.r4);jfK=_.Rq.document&&_.Rq.document.documentElement&&!!_.Rq.document.documentElement.setCapture&&!!_.Rq.document.releaseCapture;_.xhV=function(G,c){G.hysteresisDistanceSquared_=Math.pow(c,2)};
_.P=_.R5.prototype;_.P.setEnabled=function(G){this.enabled_=G};
_.P.disposeInternal=function(){_.R5.superClass_.disposeInternal.call(this);_.BL(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10316_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10316_document_.releaseCapture();this.handle=this.target=null};
_.P.startDrag=function(G){var c=G.type=="mousedown";if(!this.enabled_||this.dragging_||c&&(!G.isButton(0)||_.Xr0&&G.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Ze("start",this,G.clientX,G.clientY,G)))this.dragging_=!0,c&&G.preventDefault();else return;else c&&G.preventDefault();c=this.JSC$10316_document_;var I=c.documentElement,R=!this.useSetCapture_;this.JSC$10316_eventHandler_.listen(c,["touchmove","mousemove"],this.handleMove_,
{capture:R,passive:!1});this.JSC$10316_eventHandler_.listen(c,["touchend","mouseup"],this.endDrag,R);this.useSetCapture_?(I.setCapture(!1),this.JSC$10316_eventHandler_.listen(I,"losecapture",this.endDrag)):this.JSC$10316_eventHandler_.listen(hs(c),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10316_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,R);this.clientX=this.startX=G.clientX;this.clientY=this.startY=G.clientY;this.screenX=G.screenX;this.screenY=G.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=V0(zM(this.JSC$10316_document_))}};
_.P.endDrag=function(G,c){this.JSC$10316_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10316_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Ze("end",this,G.clientX,G.clientY,G,tL2(this,this.deltaX),hKe(this,this.deltaY),c||G.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.P.handleMove_=function(G){if(this.enabled_){var c=G.clientX-this.clientX,I=G.clientY-this.clientY;this.clientX=G.clientX;this.clientY=G.clientY;this.screenX=G.screenX;this.screenY=G.screenY;if(!this.dragging_){var R=this.startX-this.clientX,Z=this.startY-this.clientY;if(R*R+Z*Z>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Ze("start",this,G.clientX,G.clientY,G)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(G);return}}I=dh0(this,c,I);c=I.x;I=I.y;this.dragging_&&this.dispatchEvent(new Ze("beforedrag",
this,G.clientX,G.clientY,G,c,I))&&(CiV(this,G,c,I),G.preventDefault())}};
var dh0=function(G,c,I){var R=V0(zM(G.JSC$10316_document_));c+=R.x-G.pageScroll.x;I+=R.y-G.pageScroll.y;G.pageScroll=R;G.deltaX+=c;G.deltaY+=I;return new _.ts(tL2(G,G.deltaX),hKe(G,G.deltaY))};
_.R5.prototype.onScroll_=function(G){var c=dh0(this,0,0);G.clientX=this.clientX;G.clientY=this.clientY;CiV(this,G,c.x,c.y)};
var CiV=function(G,c,I,R){G.target.style.left=I+"px";G.target.style.top=R+"px";G.dispatchEvent(new Ze("drag",G,c.clientX,c.clientY,c,I,R))},tL2=function(G,c){var I=G.limits;
G=isNaN(I.left)?null:I.left;I=isNaN(I.width)?0:I.width;return Math.min(G!=null?G+I:Infinity,Math.max(G!=null?G:-Infinity,c))},hKe=function(G,c){var I=G.limits;
G=isNaN(I.top)?null:I.top;I=isNaN(I.height)?0:I.height;return Math.min(G!=null?G+I:Infinity,Math.max(G!=null?G:-Infinity,c))};
_.R5.prototype.isDragging=function(){return this.dragging_};
var Ze=function(G,c,I,R,Z,K,m){_.zR.call(this,G);this.clientX=I;this.clientY=R;this.browserEvent=Z;this.left=K!==void 0?K:c.deltaX;this.top=m!==void 0?m:c.deltaY};
_.eg(Ze,_.zR);var Ku=function(G){this.JSC$10323_map_=new Map;var c=arguments.length;if(c>1){if(c%2)throw Error("ma");for(var I=0;I<c;I+=2)this.set(arguments[I],arguments[I+1])}else G&&this.addAll(G)};
_.P=Ku.prototype;_.P.getCount=function(){return this.JSC$10323_map_.size};
_.P.getValues=function(){return Array.from(this.JSC$10323_map_.values())};
_.P.getKeys=function(){return Array.from(this.JSC$10323_map_.keys())};
_.P.containsKey=function(G){return this.JSC$10323_map_.has(G)};
_.P.containsValue=function(G){return this.getValues().some(function(c){return c==G})};
_.P.equals=function(G,c){var I=this;c=c===void 0?function(R,Z){return R===Z}:c;
return this===G?!0:this.JSC$10323_map_.size!=G.getCount()?!1:this.getKeys().every(function(R){return c(I.JSC$10323_map_.get(R),G.get(R))})};
_.P.isEmpty=function(){return this.JSC$10323_map_.size==0};
_.P.clear=function(){this.JSC$10323_map_.clear()};
_.P.remove=function(G){return this.JSC$10323_map_.delete(G)};
_.P.get=function(G,c){return this.JSC$10323_map_.has(G)?this.JSC$10323_map_.get(G):c};
_.P.set=function(G,c){this.JSC$10323_map_.set(G,c);return this};
_.P.addAll=function(G){if(G instanceof Ku){G=_.Q(G.JSC$10323_map_);for(var c=G.next();!c.done;c=G.next()){var I=_.Q(c.value);c=I.next().value;I=I.next().value;this.JSC$10323_map_.set(c,I)}}else if(G)for(G=_.Q(Object.entries(G)),c=G.next();!c.done;c=G.next())I=_.Q(c.value),c=I.next().value,I=I.next().value,this.JSC$10323_map_.set(c,I)};
_.P.forEach=function(G,c){var I=this;c=c===void 0?this:c;this.JSC$10323_map_.forEach(function(R,Z){return G.call(c,R,Z,I)})};
_.P.clone=function(){return new Ku(this)};(function(){for(var G=["ms","moz","webkit","o"],c,I=0;c=G[I]&&!_.Rq.requestAnimationFrame;++I)_.Rq.requestAnimationFrame=_.Rq[c+"RequestAnimationFrame"],_.Rq.cancelAnimationFrame=_.Rq[c+"CancelAnimationFrame"]||_.Rq[c+"CancelRequestAnimationFrame"];if(!_.Rq.requestAnimationFrame){var R=0;_.Rq.requestAnimationFrame=function(Z){var K=(new Date).getTime(),m=Math.max(0,16-(K-R));R=K+m;return _.Rq.setTimeout(function(){Z(K+m)},m)};
_.Rq.cancelAnimationFrame||(_.Rq.cancelAnimationFrame=function(Z){clearTimeout(Z)})}})();
var HF0=[[],[]],XbT=0,y8K=!1,gdN=0,GOV=function(G,c){var I=gdN++,R={measureTask:{id:I,fn:G.measure,context:c},mutateTask:{id:I,fn:G.mutate,context:c},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(R.args||(R.args=[]),R.args.length=0,R.args.push.apply(R.args,arguments),R.args.push(R.state)):R.args&&R.args.length!=0?(R.args[0]=R.state,R.args.length=1):R.args=[R.state];R.isScheduled||(R.isScheduled=!0,HF0[XbT].push(R));y8K||(y8K=!0,window.requestAnimationFrame(Y$0))}},Y$0=
function(){y8K=!1;
var G=HF0[XbT],c=G.length;XbT=(XbT+1)%2;for(var I,R=0;R<c;++R){I=G[R];var Z=I.measureTask;I.isScheduled=!1;Z.fn&&Z.fn.apply(Z.context,I.args)}for(R=0;R<c;++R)I=G[R],Z=I.mutateTask,I.isScheduled=!1,Z.fn&&Z.fn.apply(Z.context,I.args),I.state={};G.length=0};var cOK=_.I3(["about:blank"]),IZV=_.I3(["javascript:undefined"]),Rgi=_.D3(cOK);_.z6(Rgi);var ZR2=_.D3(IZV);_.z6(ZR2);var PS=function(G){_.r4.call(this);this.JSC$10329_element_=G;this.listenKeyIn_=_.Ld(this.JSC$10329_element_,"focus",this,!0);this.listenKeyOut_=_.Ld(this.JSC$10329_element_,"blur",this,!0)};
_.eg(PS,_.r4);PS.prototype.handleEvent=function(G){var c=new _.JE(G.event_);c.type=G.type=="focusin"||G.type=="focus"?"focusin":"focusout";this.dispatchEvent(c)};
PS.prototype.disposeInternal=function(){PS.superClass_.disposeInternal.call(this);bD(this.listenKeyIn_);bD(this.listenKeyOut_);delete this.JSC$10329_element_};var KY2=function(G,c){this.JSC$10332_element_=G;this.JSC$10332_dom_=c};var Qa=function(G,c){G0.call(this,c);this.useIframeMask_=!!G;this.lastFocus_=null;this.resizeBackgroundTask_=GOV({mutate:this.resizeBackground_},this);GOV({mutate:this.updateModalAndBackground_},this)};
_.eg(Qa,G0);_.P=Qa.prototype;_.P.focusHandler_=null;_.P.visible_=!1;_.P.bgEl_=null;_.P.bgIframeEl_=null;_.P.tabCatcherElement_=null;_.P.backwardTabWrapInProgress_=!1;_.P.getCssClass=function(){return"goog-modalpopup"};
_.P.getBackgroundElement=function(){return this.bgEl_};
_.P.JSC$10313_createDom=function(){Qa.superClass_.JSC$10313_createDom.call(this);var G=this.getElement(),c=Nf(this.getCssClass()).split(" ");Tp(G,c);G.tabIndex=0;_.Kt(G,!1);P6A(this);QQe(this)};
var P6A=function(G){if(G.useIframeMask_&&!G.bgIframeEl_){var c=G.JSC$10311_dom_.JSC$9497_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.IE(c,Rgi);G.bgIframeEl_=c;G.bgIframeEl_.className=G.getCssClass()+"-bg";_.Kt(G.bgIframeEl_,!1);ys2(G.bgIframeEl_,0)}G.bgEl_||(G.bgEl_=G.JSC$10311_dom_.JSC$9497_createDom("DIV",G.getCssClass()+"-bg"),_.Kt(G.bgEl_,!1))},QQe=function(G){G.tabCatcherElement_||(G.tabCatcherElement_=G.JSC$10311_dom_.createElement("SPAN"),_.Kt(G.tabCatcherElement_,
!1),G.tabCatcherElement_.tabIndex=0,G.tabCatcherElement_.style.position="absolute")};
_.P=Qa.prototype;_.P.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.P.canDecorate=function(G){return!!G&&G.tagName=="DIV"};
_.P.decorateInternal=function(G){Qa.superClass_.decorateInternal.call(this,G);G=Nf(this.getCssClass()).split(" ");Tp(this.getElement(),G);P6A(this);QQe(this);this.getElement().tabIndex=0;_.Kt(this.getElement(),!1)};
_.P.enterDocument=function(){this.bgIframeEl_&&_.Cm(this.bgIframeEl_,this.getElement());_.Cm(this.bgEl_,this.getElement());Qa.superClass_.enterDocument.call(this);_.H7(this.tabCatcherElement_,this.getElement());this.focusHandler_=new PS(this.JSC$10311_dom_.JSC$9495_document_);cS(this).listen(this.focusHandler_,"focusin",this.onFocus);my9(this,!1)};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.TB(this.focusHandler_);Qa.superClass_.exitDocument.call(this);_.ST(this.bgIframeEl_);_.ST(this.bgEl_);_.ST(this.tabCatcherElement_)};
_.P.setVisible=function(G){if(G!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&my9(this,G),G){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10311_dom_.JSC$9495_document_.activeElement}catch(Z){}this.updateModalAndBackground_();cS(this).listen(this.JSC$10311_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10311_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);aZ2(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)uD(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){cS(this).unlisten(this.JSC$10311_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10311_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)uD(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var c=this.JSC$10311_dom_,I=c.JSC$9495_document_.body,R=c.JSC$9495_document_.activeElement||I;if(!this.lastFocus_||this.lastFocus_==I){this.lastFocus_=null;break a}(R==I||c.contains(this.getElement(),R))&&this.lastFocus_.focus()}catch(Z){}this.lastFocus_=
null}}};
var my9=function(G,c){G.modalAriaVisibilityHelper_||(G.modalAriaVisibilityHelper_=new KY2(G.JSC$10311_element_,G.JSC$10311_dom_));G=G.modalAriaVisibilityHelper_;if(c){G.hiddenElements_||(G.hiddenElements_=[]);c=G.JSC$10332_dom_.getChildren(G.JSC$10332_dom_.JSC$9495_document_.body);for(var I=0;I<c.length;I++){var R=c[I],Z;if(Z=R!=G.JSC$10332_element_)Z=R.getAttribute("aria-hidden"),Z=!(Z==null||Z==void 0?0:String(Z));Z&&(I5(R,"hidden",!0),G.hiddenElements_.push(R))}}else if(G.hiddenElements_){for(c=
0;c<G.hiddenElements_.length;c++)G.hiddenElements_[c].removeAttribute("aria-hidden");G.hiddenElements_=null}};
Qa.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var aZ2=function(G,c){G.bgIframeEl_&&_.Kt(G.bgIframeEl_,c);G.bgEl_&&_.Kt(G.bgEl_,c);_.Kt(G.getElement(),c);_.Kt(G.tabCatcherElement_,c)};
_.P=Qa.prototype;_.P.onShow=function(){this.dispatchEvent("show")};
_.P.onHide=function(){aZ2(this,!1);this.dispatchEvent("hide")};
_.P.isVisible=function(){return this.visible_};
_.P.focus=function(){this.focusElement_()};
_.P.resizeBackground_=function(){this.bgIframeEl_&&_.Kt(this.bgIframeEl_,!1);this.bgEl_&&_.Kt(this.bgEl_,!1);var G=this.JSC$10311_dom_.JSC$9495_document_;var c=_.p8(hs(this.JSC$10311_dom_.JSC$9495_document_)||window);var I=Math.max(c.width,Math.max(G.body.scrollWidth,G.documentElement.scrollWidth));G=Math.max(c.height,Math.max(G.body.scrollHeight,G.documentElement.scrollHeight));this.bgIframeEl_&&(_.Kt(this.bgIframeEl_,!0),_.dSN(this.bgIframeEl_,I,G));this.bgEl_&&(_.Kt(this.bgEl_,!0),_.dSN(this.bgEl_,
I,G))};
_.P.reposition=function(){var G;if(_.hpA(this.getElement())=="fixed")var c=G=0;else c=V0(this.JSC$10311_dom_),G=c.x,c=c.y;var I=H8e(this.getElement());var R=_.p8(hs(this.JSC$10311_dom_.JSC$9495_document_)||window);G=Math.max(G+R.width/2-I.width/2,0);c=Math.max(c+R.height/2-I.height/2,0);cL(this.getElement(),G,c);cL(this.tabCatcherElement_,G,c)};
_.P.onFocus=function(G){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():G.target==this.tabCatcherElement_&&d4(this.focusElement_,0,this)};
_.P.focusElement_=function(){try{this.getElement().focus()}catch(G){}};
_.P.disposeInternal=function(){_.TB(this.popupShowTransition_);this.popupShowTransition_=null;_.TB(this.popupHideTransition_);this.popupHideTransition_=null;_.TB(this.bgShowTransition_);this.bgShowTransition_=null;_.TB(this.bgHideTransition_);this.bgHideTransition_=null;Qa.superClass_.disposeInternal.call(this)};var HD=function(G,c,I){Qa.call(this,c,I);this.JSC$10342_class_=G||"modal-dialog";this.buttons_=(new ml).addButton(Tq0,!0).addButton(ORi,!1,!0)};
_.eg(HD,Qa);_.P=HD.prototype;_.P.escapeToCancel_=!0;_.P.hasTitleCloseButton_=!0;_.P.modal_=!0;_.P.draggable_=!0;_.P.backgroundElementOpacity_=.5;_.P.title_="";_.P.JSC$10344_dragger_=null;_.P.JSC$10344_disposeOnHide_=!1;_.P.titleEl_=null;_.P.titleTextEl_=null;_.P.titleTextId_=null;_.P.titleCloseEl_=null;_.P.contentEl_=null;_.P.buttonEl_=null;_.P.getCssClass=function(){return this.JSC$10342_class_};
_.P.setTitle=function(G){this.title_=G;this.titleTextEl_&&_.yz(this.titleTextEl_,G)};
_.P.getTitle=function(){return this.title_};
_.P.getContent=function(){return""};
_.P.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var egp=function(G){G.getElement()||G.render();return G.getElement()};
HD.prototype.getBackgroundElement=function(){this.getElement()||this.render();return HD.superClass_.getBackgroundElement.call(this)};
var Nq0=function(G,c){G.backgroundElementOpacity_=c;G.getElement()&&(c=G.getBackgroundElement())&&ys2(c,G.backgroundElementOpacity_)};
HD.prototype.setDraggable=function(G){this.draggable_=G;lZe(this,G&&this.inDocument_)};
HD.prototype.handleDrag=function(){};
var lZe=function(G,c){var I=Nf(G.JSC$10342_class_+"-title-draggable").split(" ");G.getElement()&&(c?Tp(G.titleEl_,I):r$2(G.titleEl_,I));c&&!G.JSC$10344_dragger_?(c=new _.R5(G.getElement(),G.titleEl_),G.JSC$10344_dragger_=c,Tp(G.titleEl_,I),_.Ld(G.JSC$10344_dragger_,"start",G.setDraggerLimits_,!1,G),_.Ld(G.JSC$10344_dragger_,"drag",G.handleDrag,!1,G)):!c&&G.JSC$10344_dragger_&&(G.JSC$10344_dragger_.dispose(),G.JSC$10344_dragger_=null)};
_.P=HD.prototype;
_.P.JSC$10313_createDom=function(){HD.superClass_.JSC$10313_createDom.call(this);var G=this.getElement(),c=this.JSC$10311_dom_;this.titleTextId_=this.getId();var I=this.getId()+".contentEl";this.titleEl_=c.JSC$9497_createDom("DIV",this.JSC$10342_class_+"-title",this.titleTextEl_=c.JSC$9497_createDom("SPAN",{className:this.JSC$10342_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=c.JSC$9497_createDom("SPAN",this.JSC$10342_class_+"-title-close"));s2K(G,this.titleEl_,this.contentEl_=
c.JSC$9497_createDom("DIV",{className:this.JSC$10342_class_+"-content",id:I}),this.buttonEl_=c.JSC$9497_createDom("DIV",this.JSC$10342_class_+"-buttons"));r8N(this.titleTextEl_,"heading");r8N(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;I5(this.titleCloseEl_,"label","Close");r8N(G,"dialog");I5(G,"labelledby",this.titleTextId_||"");_.Kt(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(G=this.buttons_,G.JSC$10345_element_=this.buttonEl_,G.render());_.Kt(this.buttonEl_,!!this.buttons_);
Nq0(this,this.backgroundElementOpacity_)};
_.P.decorateInternal=function(G){HD.superClass_.decorateInternal.call(this,G);G=this.getElement();var c=this.JSC$10342_class_+"-content";this.contentEl_=r1(document,null,c,G)[0];this.contentEl_||(this.contentEl_=this.JSC$10311_dom_.JSC$9497_createDom("DIV",c),G.appendChild(this.contentEl_));c=this.JSC$10342_class_+"-title";var I=this.JSC$10342_class_+"-title-text",R=this.JSC$10342_class_+"-title-close";(this.titleEl_=r1(document,null,c,G)[0])?(this.titleTextEl_=r1(document,null,I,this.titleEl_)[0],
this.titleCloseEl_=r1(document,null,R,this.titleEl_)[0]):(this.titleEl_=this.JSC$10311_dom_.JSC$9497_createDom("DIV",c),G.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Bxi(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.xq("SPAN",{className:I,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;I5(G,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10311_dom_.JSC$9497_createDom("SPAN",R),this.titleEl_.appendChild(this.titleCloseEl_));_.Kt(this.titleCloseEl_,this.hasTitleCloseButton_);c=this.JSC$10342_class_+"-buttons";(this.buttonEl_=r1(document,null,c,G)[0])?(this.buttons_=new ml(this.JSC$10311_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10311_dom_.JSC$9497_createDom("DIV",c),G.appendChild(this.buttonEl_),this.buttons_&&(G=this.buttons_,G.JSC$10345_element_=this.buttonEl_,G.render()),_.Kt(this.buttonEl_,
!!this.buttons_));Nq0(this,this.backgroundElementOpacity_)};
_.P.enterDocument=function(){HD.superClass_.enterDocument.call(this);cS(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);cS(this).listen(this.buttonEl_,"click",this.onButtonClick_);lZe(this,this.draggable_);cS(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var G=this.getElement();r8N(G,"dialog");this.titleTextEl_.id!==""&&I5(G,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){G=this.JSC$10311_dom_;
var c=this.getBackgroundElement();G.removeNode(this.bgIframeEl_);G.removeNode(c)}this.isVisible()&&my9(this,!1)}};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);lZe(this,!1);HD.superClass_.exitDocument.call(this)};
_.P.setVisible=function(G){G!=this.isVisible()&&(this.inDocument_||this.render(),HD.superClass_.setVisible.call(this,G))};
_.P.onShow=function(){HD.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.P.onHide=function(){HD.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10344_disposeOnHide_&&this.dispose()};
_.P.setDraggerLimits_=function(){var G=this.JSC$10311_dom_.JSC$9495_document_,c=_.p8(hs(G)||window),I=Math.max(G.body.scrollWidth,c.width);G=Math.max(G.body.scrollHeight,c.height);var R=H8e(this.getElement());_.hpA(this.getElement())=="fixed"?this.JSC$10344_dragger_.limits=new g1(0,0,Math.max(0,c.width-R.width),Math.max(0,c.height-R.height)):this.JSC$10344_dragger_.limits=new g1(0,0,I-R.width,G-R.height)};
_.P.onTitleCloseClick_=function(){qQB(this)};
var qQB=function(G){if(G.hasTitleCloseButton_){var c=G.buttons_,I=c&&c.cancelButton_;I?(c=c.get(I),G.dispatchEvent(new a5(I,c))&&G.setVisible(!1)):G.setVisible(!1)}},wq2=function(G){G.hasTitleCloseButton_=!1;
G.titleCloseEl_&&_.Kt(G.titleCloseEl_,G.hasTitleCloseButton_)};
HD.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;HD.superClass_.disposeInternal.call(this)};
HD.prototype.onButtonClick_=function(G){a:{for(G=G.target;G!=null&&G!=this.buttonEl_;){if(G.tagName=="BUTTON")break a;G=G.parentNode}G=null}if(G&&!G.disabled){G=G.name;var c=this.buttons_.get(G);this.dispatchEvent(new a5(G,c))&&this.setVisible(!1)}};
HD.prototype.onKey_=function(G){var c=!1,I=!1,R=this.buttons_,Z=G.target;if(G.type=="keydown")if(this.escapeToCancel_&&G.keyCode==27){var K=R&&R.cancelButton_;Z=Z.tagName=="SELECT"&&!Z.disabled;K&&!Z?(I=!0,c=R.get(K),c=this.dispatchEvent(new a5(K,c))):Z||(c=!0)}else{if(G.keyCode==9&&G.shiftKey&&Z==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(q){}d4(this.resetBackwardTabWrap_,0,this)}}else if(G.keyCode==13){if(Z.tagName=="BUTTON"&&!Z.disabled)K=Z.name;
else if(Z==this.titleCloseEl_)qQB(this);else if(R){var m=R.defaultButton_,a;if(a=m)a:{a=pS("BUTTON",R.JSC$10345_element_);for(var O,N=0;O=a[N];N++)if(O.name==m||O.id==m){a=O;break a}a=null}Z=(Z.tagName=="TEXTAREA"||Z.tagName=="SELECT"||Z.tagName=="A")&&!Z.disabled;!a||a.disabled||Z||(K=m)}K&&R&&(I=!0,c=this.dispatchEvent(new a5(K,String(R.get(K)))))}else Z!=this.titleCloseEl_||G.keyCode!=32&&G.key!=" "||qQB(this);if(c||I)G.stopPropagation(),G.preventDefault();c&&this.setVisible(!1)};
var a5=function(G,c){this.type="dialogselect";this.key=G;this.caption=c};
_.eg(a5,_.zR);var ml=function(G){Ku.call(this);G||zM();this.cancelButton_=this.JSC$10345_element_=this.defaultButton_=null};
_.eg(ml,Ku);_.P=ml.prototype;_.P.clear=function(){Ku.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.P.set=function(G,c,I,R){Ku.prototype.set.call(this,G,c);I&&(this.defaultButton_=G);R&&(this.cancelButton_=G);return this};
_.P.addButton=function(G,c,I){return this.set(G.key,G.caption,c,I)};
_.P.render=function(){if(this.JSC$10345_element_){_.O9(this.JSC$10345_element_,F_r);var G=zM(this.JSC$10345_element_);this.forEach(function(c,I){c=G.JSC$9497_createDom("BUTTON",{name:I},c);I==this.defaultButton_&&(c.className="goog-buttonset-default");this.JSC$10345_element_.appendChild(c)},this)}};
_.P.decorate=function(G){if(G&&G.nodeType==1){this.JSC$10345_element_=G;G=pS("BUTTON",this.JSC$10345_element_);for(var c,I,R,Z=0;c=G[Z];Z++)if(I=c.name||c.id,R=Bxi(c)||c.value,I){var K=Z==0;this.set(I,R,K,c.name=="cancel");K&&_.g0(c,"goog-buttonset-default")}}};
_.P.getElement=function(){return this.JSC$10345_element_};
var Tq0={key:"ok",caption:"OK"},ORi={key:"cancel",caption:"Cancel"},FY0={key:"yes",caption:"Yes"},n02={key:"no",caption:"No"},v0p={key:"save",caption:"Save"},Dye={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new ml).addButton(Tq0,!0,!0),(new ml).addButton(Tq0,!0).addButton(ORi,!1,!0),(new ml).addButton(FY0,!0).addButton(n02,!1,!0),(new ml).addButton(FY0).addButton(n02,!0).addButton(ORi,!1,!0),(new ml).addButton(Dye).addButton(v0p).addButton(ORi,!0,!0));_.eg(PrU,HD);_.eg(Qzi,XO);var o0e=_.I3(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),UyV=_.I3(["//apis.google.com/js/rpc.js"]),wlC=_.D3(o0e),qop=_.D3(UyV),awg=null;var yC=function(G,c){_.r4.call(this);this.JSC$10354_element_=G;G=_.Ta(this.JSC$10354_element_)?this.JSC$10354_element_:this.JSC$10354_element_?this.JSC$10354_element_.body:null;this.isRtl_=!!G&&_.gM2(G);this.listenKey_=_.Ld(this.JSC$10354_element_,_.ny?"DOMMouseScroll":"mousewheel",this,c)};
_.eg(yC,_.r4);yC.prototype.handleEvent=function(G){var c=0,I=0,R=G.event_;R.type=="mousewheel"?(G=ul0(-R.wheelDelta),R.wheelDeltaX!==void 0?(c=ul0(-R.wheelDeltaX),I=ul0(-R.wheelDeltaY)):I=G):(G=R.detail,G>100?G=3:G<-100&&(G=-3),R.axis!==void 0&&R.axis===R.HORIZONTAL_AXIS?c=G:I=G);typeof this.maxDeltaX_==="number"&&(c=_.Be(c,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(I=_.Be(I,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(c=-c);c=new bRK(G,R,c,I);this.dispatchEvent(c)};
var ul0=function(G){return _.vC&&(_.Xr0||gpK)&&G%40!=0?G:G/40};
yC.prototype.disposeInternal=function(){yC.superClass_.disposeInternal.call(this);bD(this.listenKey_);this.listenKey_=null};
var bRK=function(G,c,I,R){_.JE.call(this,c);this.type="mousewheel";this.detail=G;this.deltaX=I;this.deltaY=R};
_.eg(bRK,_.JE);_.Pe=function(G){var c="instance_";if(G.instance_&&G.hasOwnProperty(c))return G.instance_;c=new G;return G.instance_=c};var lwr;var kOk=_.I3(["https://about:blank"]),sQ9=_.I3(['javascript:""']),LYK=_.I3(["about:blank"]);_.eg(PX,PrU);_.P=PX.prototype;_.P.JSC$10362_url_="";_.P.JSC$10362_iframe_=null;_.P.iframeLoaded_=!1;_.P.loadedFired_=!1;_.P.callback_=function(){};
_.P.enterDocument=function(){PX.superClass_.enterDocument.call(this);e1q(this.getBackgroundElement(),cS(this))};
_.P.render=function(G){var c=this;PX.superClass_.render.call(this,G);this.useGapi_?LI0(this.iframeManager_,window).then(function(){return AO9(c)}).then(null,function(){c.callback_({action:"error"})}):$yA(this)};
var AO9=function(G){var c=G.JSC$10311_dom_.JSC$9497_createDom("div",["picker-dialog-content","picker-frame"]);_.Kt(c,!1);G.getContentElement().appendChild(c);return A8i(G.iframeManager_,c,function(I){var R=tTK(I["iframe-command"]);switch(R.getCommand()){case 1:I=G.callback_;R=_.Dw(R,nU,2);var Z="";switch(R.getStatus()){case 2:Z="cancel";break;case 1:Z="picked";break;case 3:Z="error"}var K=_.lR(R,V2,2,_.qw(Uke));R=K.length===0?{action:Z}:mhK(K,Z,_.Dw(R,rKe,7));I.call(G,R);G.setVisible(!1);break;case 4:wq2(G);
G.callback_({action:"loaded"});break;case 7:case 8:I=G.callback_;a:{Z=R.getCommand();K=_.Dw(R,nU,2);switch(Z){case 7:Z="uploadScheduled";break;case 8:Z="uploadStateChange";break;default:R={};break a}R=_.lR(K,V2,2,_.qw(Uke));if(R.length===0)R={action:Z};else{var m=_.Dw(K,rKe,7);K=m&&_.iU(m,1);m=yaB(m);R=GmB(R,Z,K,m)}}I.call(G,R)}},G.JSC$10362_url_,G.targetId_,G.rpcToken_).then(function(I){G.JSC$10362_iframe_=I.getIframeEl();
SQ9(G);_.Kt(G.JSC$10362_iframe_.parentElement,!0);_.g0(G.getElement(),"picker-dialog");pqN(G);return I})},$yA=function(G){G.JSC$10362_iframe_=G.JSC$10311_dom_.JSC$9497_createDom("IFRAME",{id:G.targetId_,
name:G.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.IE(G.JSC$10362_iframe_,My2(G));_.g0(G.getElement(),"picker-dialog");G.getContentElement().appendChild(G.JSC$10362_iframe_);cS(G).listen(G.JSC$10362_iframe_,"load",function(){return void SQ9(G)});
G.JSC$10362_iframe_.src=G.JSC$10362_url_;pqN(G)},zgK=function(G){Vyi(G,(0,_.WD)(function(c){c.setAuthToken(this.targetId_,this.rpcToken_)},G))},pqN=function(G){var c=_.RW(_.IW(G.JSC$10362_url_),"title");
c&&G.setTitle(c)},My2=function(G){return _.Ufr("Internet Explorer")>=7&&_.KA(G.JSC$10362_url_,"https")?_.D3(kOk):_.FY?_.D3(sQ9):_.D3(LYK)},SQ9=function(G){zgK(G);
G.iframeLoaded_=!0;G.JSC$10362_iframe_.tabIndex=0;G.isVisible()&&G.focus()};
PX.prototype.handleKeydown_=function(G){G.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),G.stopPropagation(),G.preventDefault())};
var Vyi=function(G,c){var I=G.JSC$10360_gadgetsDomHelper_;TJ8(function(){c(I.getWindow().gadgets.rpc)},I)};
PX.prototype.setUrl=function(G){G=_.Zm(new _.Bq(G),"rpcService",this.targetId_);_.Zm(G,"rpctoken",this.rpcToken_);_.bK(G,"rpctoken="+this.rpcToken_);_.vz(G,"https");this.JSC$10362_url_=G.toString();this.JSC$10362_iframe_&&(this.JSC$10362_iframe_.src=this.JSC$10362_url_)};
var E0T=function(G,c){G.callback_=c;Vyi(G,(0,_.WD)(function(I){I.register(this.targetId_,(0,_.WD)(this.handlePickerAction_,this))},G))};
PX.prototype.handlePickerAction_=function(G){var c=G.action;c=="loaded"&&(this.loadedFired_=!0,JOK(this,new K_p(this.isVisible())),WYT(this),wq2(this),cS(this).unlisten(this.JSC$10311_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10362_iframe_.tabIndex=0);c!="picked"&&c!="cancel"||this.setVisible(!1);this.callback_(G)};
var WYT=function(G){G.JSC$10362_appId_&&JOK(G,new ZjB(G.JSC$10362_appId_,window.location.protocol+"//"+window.location.host))};
PX.prototype.setRelayUrl=function(G){Vyi(this,(0,_.WD)(function(c){c.setRelayUrl(this.targetId_,G)},this))};
var JOK=function(G,c){G.useGapi_&&VL9(c,G.iframeManager_).then(null,function(){G.callback_({action:"error"})});
Vyi(G,(0,_.WD)(function(I){I.call(this.targetId_,"picker",null,c)},G))};
PX.prototype.resizePicker_=function(){var G=hs(this.JSC$10311_dom_.JSC$9495_document_)||window;if(_.RW(_.IW(this.JSC$10362_url_),"ignoreLimits")=="true")G=new _.SB(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.RW(_.IW(this.JSC$10362_url_),"shadeDialog")=="true"){var c=egp(this);c=YqB(c);var I=_.p8(G);G=I.width-80;I=I.height-40;c&&(G-=c.left?c.left:0,G-=c.right?c.right:0,I-=c.top?c.top:0,I-=c.bottom?c.bottom:0);G=new _.SB(G>0?G:0,I>0?I:0)}else(c=this.preferredDialogWidth_)?(c=Math.max(320,
Math.min(1051,c)),(I=this.preferredDialogHeight_)||(I=_.p8(G).height*.85),I=Math.max(480,Math.min(650,I))):(c=_.p8(G),I=c.width*.618,I=I<c.height?Math.round(Math.max(480,Math.min(650,I*.85))):Math.round(Math.max(480,Math.min(650,c.height*.85))),c=Math.round(I/.618)),G=_.p8(G),c=Math.min(c,Math.max(G.width,320)),I=Math.min(I,Math.max(G.height,480)),G=new _.SB(c,I);_.dSN(this.getContentElement(),G);this.reposition()};
PX.prototype.reposition=function(){if(_.RW(_.IW(this.JSC$10362_url_),"shadeDialog")=="true"){var G=H8e(this.getElement()),c=_.p8(this.JSC$10311_dom_.getWindow());G=Math.floor(c.width/2-G.width/2);c=egp(this);if(c=YqB(c)){var I=c.left?c.left:0;I+=c.right?c.right:0;G=Math.floor(G-I/2)}G=G>0?G:0;c=V0(this.JSC$10311_dom_).y;cL(this.getElement(),G,c)}else PX.superClass_.reposition.call(this)};
PX.prototype.setVisible=function(G){if(G!=this.isVisible()&&this.autoSizeDialog_){var c=this.JSC$10311_dom_.getWindow();G?(this.resizePicker_(),cS(this).listen(c,"resize",this.resizePicker_),this.iframeLoaded_||cS(this).listen(c,"keydown",this.handleKeydown_)):(cS(this).unlisten(c,"resize",this.resizePicker_),this.iframeLoaded_||cS(this).unlisten(c,"keydown",this.handleKeydown_))}PX.superClass_.setVisible.call(this,G);JOK(this,new K_p(G))};
PX.prototype.focus=function(){PX.superClass_.focus.call(this);if(this.JSC$10362_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10362_iframe_.focus()}catch(G){}};var Db=function(G,c){c=c===void 0?PX:c;XO.call(this,G);this.pickerConstructor=c;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(G=window.location.origin)||(G=window.location.protocol+"//"+window.location.host);G&&this.urlParamMap_.set("origin",G);this.postProcessors_=[]};
_.u(Db,Qzi);Db.prototype.JSC$10367_disposeOnHide_=!1;
Db.prototype.build=function(){this.JSC$10268_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10268_appId_);this.getRelayUrl()||this.setRelayUrl(_.Uc(_.bK(_.uK(_.IW(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var G=new this.pickerConstructor(iR0(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);G.JSC$10344_disposeOnHide_=this.JSC$10367_disposeOnHide_;
G.JSC$10362_appId_=this.JSC$10268_appId_;G.loadedFired_&&WYT(G);E0T(G,this.callback_);return G};
var fZV=function(G){G.urlParamMap_.set("multiselectEnabled","true");return G};
_.P=Db.prototype;_.P.getHeight=function(){return this.dialogHeight_};
_.P.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.P.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.P.getTitle=function(){return this.urlParamMap_.get("title")};
_.P.getWidth=function(){return this.dialogWidth_};
var Bqe=function(G){G.JSC$10367_disposeOnHide_=void 0;return G};
Db.prototype.setRelayUrl=function(G){this.urlParamMap_.set("parent",G);return this};
var rOT=function(G,c){G.urlParamMap_.set("selectButtonLabel",c);return G};
Db.prototype.setSize=function(G,c){this.dialogWidth_=G;this.dialogHeight_=c;return this};
Db.prototype.setTitle=function(G){this.urlParamMap_.set("title",G);return this};
var iR0=function(G){G.postProcessors_.length&&G.urlParamMap_.set("pp",JSON.stringify(G.postProcessors_));G.urlParamMap_.set("nav",dqN(G.nav_));var c=new _.Bq(G.getBaseUrl());G.urlParamMap_.forEach(function(I,R){_.Zm(c,R,I)});
return c};var tyK=function(G,c){G.name!==void 0?(this.name=G.name,this.code=jQV[G.name]):(this.code=G=G.code,this.name=xy0(G));_.G8.call(this,OTV("%s %s",this.name,c))};
_.eg(tyK,_.G8);var xy0=function(G){var c=_.rx.findKey(jQV,function(I){return G==I});
if(c===void 0)throw Error("hb`"+G);return c},T0={},jQV=(T0.AbortError=3,T0.EncodingError=5,T0.InvalidModificationError=9,T0.InvalidStateError=7,T0.NotFoundError=1,T0.NotReadableError=4,T0.NoModificationAllowedError=6,T0.PathExistsError=12,T0.QuotaExceededError=10,T0.SecurityError=2,T0.SyntaxError=8,T0.TypeMismatchError=11,T0);var hgA=function(G,c){_.zR.call(this,G.type,c);this.event_=G};
_.eg(hgA,_.zR);var dyk=function(G,c,I){I===void 0&&(I=G.size);return G.slice?G.slice(c,I):null};var v$B=new WeakMap,n$C=function(G,c){G=[G];for(var I=c.length-1;I>=0;--I)G.push(typeof c[I],c[I]);return G.join("\v")};_.o$r(function(){if(!_.Rq.Blob)return!1;var G=new Uint8Array(100);try{var c=new Blob([G])}catch(I){return!1}return c.size!=100?!1:!0});
var C6i=_.o$r(function(){if(!_.Rq.Blob)return!1;var G=new Uint8Array(100);try{var c=new Blob([G])}catch(I){return!1}return dyk(c,0,1)===null?!1:!0});_.Rq.U3bHHf!=null||(_.Rq.U3bHHf=0);_.Rq.U3bHHf++;_.HRe=new WeakMap;_.XqK=new WeakMap;var uar={};var aW=void 0;var kcB=Symbol("pb");var ijq=eE("WizInjectionContext_Dispatcher");var wK=Symbol("qb");var SV,JI;SV=function(){this.afterRenderCallbacks=null};
_.AOC=Symbol("rb");JI=function(G){this.props=G;this.__unmounted=!1};
JI.prototype.didPatch=function(){};
JI.prototype.didMount=function(){};
JI.prototype.didUnmount=function(){};
JI.prototype.didUpdate=function(){};_.VvA=eE("WizInjectionContext_RootElement");var E$C=eE("WizInjectionContext_AppContext"),z1A=eE("WizInjectionContext_ModelRootElement"),J$r=eE("WizInjectionContext_RendererData"),W_q=eE("WizInjectionContext_InjectingConstructor"),Mvg=eE("WizInjectionContext_AsyncDeps"),fwO={};var h1T=!1;var Xl0={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:xfA,enableContextPerComponent:xfA,enableLazyTsx:tr0,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:jq0,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var le=Object.assign({},{attributes:{},handleError:function(G){throw G;}},Xl0);var yO0=Symbol("vb"),WX=Symbol("wb"),YfU=Symbol("xb"),yg0=Symbol("yb"),Pxg=EK(function(G){return be(G)&&yO0 in G});var q8=null,Fq=!1,vX=1,UZ=Symbol("Cb"),$s={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Oh=Symbol("Db"),eI=Symbol("Eb"),oW=Symbol("Fb"),Tjq=Object.assign({},$s,{value:Oh,dirty:!0,error:null,equal:cgB,kind:"computed",producerMustRecompute:function(G){return G.value===Oh||G.value===eI},
producerRecomputeValue:function(G){if(G.value===eI)throw Error("Z");var c=G.value;G.value=eI;var I=QxC(G),R=!1;try{var Z=G.computation();wN(null);R=c!==Oh&&c!==oW&&Z!==oW&&G.equal(c,Z)}catch(K){Z=oW,G.error=K}finally{wN(I),G&&a60(G)}R?G.value=c:(G.value=Z,G.version++)}});var g0T=Object.assign({},$s,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var l6q=function(){throw Error();};var w_C=null,e_0=Object.assign({},$s,{equal:cgB,value:void 0,kind:"signal"});var FpB=Object.assign({},$s,{value:Oh,dirty:!0,error:null,equal:cgB,kind:"linkedSignal",producerMustRecompute:function(G){return G.value===Oh||G.value===eI},
producerRecomputeValue:function(G){if(G.value===eI)throw Error("Z");var c=G.value;G.value=eI;var I=QxC(G);try{var R=G.source();var Z=G.computation(R,c===Oh||c===oW?void 0:{source:G.sourceValue,value:c});G.sourceValue=R}catch(K){Z=oW,G.error=K}finally{wN(I),G&&a60(G)}c!==Oh&&Z!==oW&&G.equal(c,Z)?G.value=c:(G.value=Z,G.version++)}});Object.assign({},$s,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(G){G.schedule!==null&&G.schedule(G.ref)},
cleanupFn:function(){}});var bkU=Symbol("Gb"),NX={},o7B=(NX[bkU]=!0,NX.debugName="[component]",NX.getComponentStack=function(){for(var G=[],c=this;c;)kaU(c)&&G.push(c.debugName),c=c.parent;return G},NX.registerSignal=function(){},NX.registerEffect=function(){},NX);var sxb=Symbol("Hb"),sZ=Symbol("Ib");var Lt=Array.isArray;var E7q;var YQB={},WpT=z_A(Object.assign({},{consumerAllowSignalWrites:!0},YQB)),ME=z_A(Object.assign({},{consumerAllowSignalWrites:!0},YQB));var Vg=Symbol("Nb");var M8=null,Bjr,rgr=null,jxg;var ft=0,BX=!1,lb=function(){this.queue=new Set};
lb.prototype.schedule=function(G){this.queue.add(G)};
lb.prototype.remove=function(G){this.queue.delete(G)};
lb.prototype.clear=function(){this.queue.clear()};
var dbg=Symbol("Ob"),tcU=Symbol("Pb"),qX=function(){lb.apply(this,arguments)};
_.u(qX,lb);qX.prototype.flush=function(){if(this.queue.size){BX=!0;for(var G=_.Q(this.queue),c=G.next();!c.done;c=G.next()){c=c.value;this.queue.delete(c);try{c.run()}catch(I){Gsi(I)}}BX=!1}};
var cHB=function(){qX.apply(this,arguments)};
_.u(cHB,qX);var h_T=new cHB,ISK=function(){qX.apply(this,arguments)};
_.u(ISK,qX);ISK.prototype.schedule=function(G){return _.T(function(c){if(c.nextAddress==1)return c.yield(Promise.resolve(),2);G.run();_.Vp(c)})};
ISK.prototype.enqueue=function(G){this.queue.add(G)};
var CBg=new ISK,wa=function(){lb.apply(this,arguments)};
_.u(wa,lb);wa.prototype.flush=function(){this.queue.size&&QDg(this.queue)};
var Rwk=function(){wa.apply(this,arguments)};
_.u(Rwk,wa);Rwk.prototype.schedule=function(G){G.version===0?G.run():this.queue.add(G)};
Rwk.prototype.flush=function(){if(this.queue.size)if(le.flushRenderEffectsDuringRender){var G=this.queue;this.queue=new Set;QDg(G)}else QDg(this.queue)};
var X_g=new Rwk,ZCK=function(){wa.apply(this,arguments)};
_.u(ZCK,wa);ZCK.prototype.schedule=function(G){return _.T(function(c){if(c.nextAddress==1)return c.yield(Promise.resolve(),2);G.run();_.Vp(c)})};
ZCK.prototype.enqueue=function(G){this.queue.add(G)};
var GPC=new ZCK,KJ2=function(){wa.apply(this,arguments)};
_.u(KJ2,wa);var g7T=new KJ2,IqO=[X_g,h_T,g7T],KXr=[CBg,GPC],P8K=[X_g,g7T,GPC],mqp=[].concat(_.jn(IqO),_.jn(KXr)),QPA=[];w_C=function(){ZYq();for(var G=_.Q(QPA),c=G.next();!c.done;c=G.next())c=c.value,c()};
var Gsi=Zi;var F8={},m2k=Object.assign({},g0T,(F8[yO0]=!0,F8.effectType=WX,F8.isResettableContext=!0,F8.consumerMarkedDirty=caA,F8.run=function(){TZO(this)},F8.cleanup=function(){plf(this)},F8.componentStack=void 0,F8.debugName="[effect]",F8.destroy=function(){if(nt(this))for(var G=this.producers;G!==void 0;)G=mbC(G);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;G=_.Q(P8K);for(var c=G.next();!c.done;c=G.next())c.value.remove(this);Sog(this)},F8[Symbol.dispose]=function(){this.destroy()},F8)),aS9=Object.assign({},m2k,{version:1,
dirty:!1});var OYO=Object.assign({},m2k,{effectType:WX});var e2T=Object.assign({},m2k,{effectType:YfU});var qpq=Symbol("Rb");var NcC=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var ntp={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},FXp=
{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}]}},Llp={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},otA=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Dqq={"*":{async:1,dir:0,loading:2,target:3}};var TUi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,nu={},BZB=(nu[1]=null,nu[2]=function(G,c){return c instanceof YN?cM(c):hz.toString()},nu[3]=function(G,c){return fG(c)?_.By(c):TUi.test(String(c))?String(c):hz.toString()},nu[4]=function(G,c){return c instanceof MN?_.z6(c):hz.toString()},nu[5]=function(G,c){return String(c)},nu[7]=null,nu[8]=null,nu[10]=null,nu);var VRO=Symbol("Ub");var nJU=function(G){var c=OC9,I=G,R="",Z="",K=1;G<0&&(G=-G);if(G===Infinity)G=(Infinity*Math.sign(I)).toString();else{for(var m=0;m<ewN.length;m++){var a=ewN[m];K=c[a];if(G>=K||K<=1&&G>.1*K){R=a;break}}R?(R+="B",Z=" "):K=1;G=Math.round(I/K*10)/10+Z+R}return G},ewN="Y Z E P T G M K  m u n".split(" "),OC9={"":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};_.NUi=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 uV={};RegExp.prototype.hasOwnProperty("sticky");var q$p=function(G){G=String(G);for(var c=function(R,Z,K){for(var m=Math.min(Z.length-K,R.length),a=0;a<m;a++){var O=Z[K+a];if(R[a]!==("A"<=O&&O<="Z"?O.toLowerCase():O))return!1}return!0},I=0;(I=G.indexOf("<",I))!=-1;){if(c("\x3c/script",G,I)||c("\x3c!--",G,I))return"zSoyz";
I+=1}return G};var c1={default:"__default"};var h2g=Object.prototype.hasOwnProperty;xqU.prototype=Object.create(null);var Nq=HYT();var OG=null;var Pii=function(G){this.created=[];this.deleted=[];this.node=G};var Qfi=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var G=this,c=G;G;)c=G,G=G.parentNode;return c};var yaO=function(G,c){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=G;this.key=c;this.text=void 0};var Kh=null,P1=null,Rg=null,me=null,I0r=[],c8g=Yp0,ag=[],T2=[],MRA=function(G){return mh0(function(c,I,R){Rg=P1=c;P1=null;I(R);GmO(null);P1=Rg;Rg=Rg.parentNode;return c},G)}(),p80=function(G){return mh0(function(c,I,R){var Z={nextSibling:c};
P1=Z;I(R);Rg&&GmO(c.nextSibling);return Z===P1?null:P1},G)}();var eV=[],TcU=0;var NE=new xqU;var pd=new xqU;var lSe=HYT(),ndC=lSe[c1.default],FIi=lSe.style,l0B=["focusin","focusout"],odr="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var QQU=function(){},XbB=function(){},egi=function(){},aZT=function(){};var qE=Symbol("bc");var sfp,kmO=bFO;var Lh=Symbol("cc");var ORr=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(" ")),
Tqr=new Set(["a","font","script","style","title"]);_.sG={setUp:f0C,tearDown:f0C,log:f0C,logNodeRange:f0C,graft:function(G,c){c()}};var VL={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var z2=null,EG=function(G,c){JI.call(this,G);var I=this;this.functionComponent=c;this.hooks=[];this.hookCounter=0;this.disposeEffects=hy(function(R){I.effectContext=R;_.ty(function(){GO8(I,I.el)})},le.alwaysTrackContexts||!!aW)};
_.u(EG,JI);EG.prototype.render=function(G){var c=z2;z2=this;this.hookCounter=0;var I=wN(ME),R=_.Ty(this.effectContext);try{return g$g("render",this.componentName),this.functionComponent(G)}finally{Yoq("render",this.componentName),_.Ty(R),wN(I),z2=c}};
_.Nh.Object.defineProperties(EG.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return ikr(this.functionComponent)}}});var Nqq=Symbol("qc"),KYT=function(G,c,I){this.afterRenderCallbacks=null;this.kind=G;this.props=c;this.children=I};
_.u(KYT,SV);KYT.prototype.render=function(){var G=ZRT(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var c=_.Q(this.afterRenderCallbacks),I=c.next();!I.done;I=c.next())I=I.value,G=I(G);return G};
KYT.prototype.getChildren=function(){return this.children};var qQO=[];l6q=function(G){throw Error("ob`"+G.debugName);};
(function(){var G=OG;OG=function(c){G==null||G(c);wqT(c)}})();Object.assign({},aS9,{effectType:WX,elementRef:null,attributes:null,fn:function(){var G=this.elementRef;var c;G.element!=null||(G.element=(c=G.document.getElementById(G.value))!=null?c:void 0);G=G.element;for(c=this.attributes;c;){var I=c.signal();I!==c.prevValue&&(c.prevValue=I,c.namespace===1?G[c.name]=I:NcC.has(c.name)?gN(G,c.name,I?"":null):gN(G,c.name,I));c=c.next}}});_.W1.debugName="tbhMcf";_.iV.debugName="zyMFzb";Object.assign({},aS9,{effectType:WX});_.l.debugName="RlDudd";var FYq={nonNullableCondIsNull:function(){return Error("uc")}};var bR0=function(){this.map=new Map};
bR0.prototype.push=function(G,c){var I=this.map;I.has(G)&&(this.multi||(this.multi=new Map),this.multi.set(c,I.get(G)));I.set(G,c)};
bR0.prototype.pop=function(G){var c=this.map,I=c.get(G),R;I!==void 0&&((R=this.multi)==null?0:R.has(I))?(c.set(G,this.multi.get(I)),this.multi.delete(I)):c.delete(G);return I};_.fh.debugName="nsTGHd";_.B1.debugName="vI1rtf";_.SQC={OUT_OF_ORDER_HOOK_CALL:function(G){return Error("vc`"+G)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(G,c){return Error("zc`"+((c===void 0?0:c)?"IDOM":"Reactive")+"`"+(rK(G)?G.description:G))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(G,c){return Error("Ac`"+(rK(G)?G.description:G)+"`"+c)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(G){return Error("Bc`"+(rK(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED:function(G){return Error("Cc`"+(rK(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(G){return Error("Dc`"+(rK(G)?G.description:G))}};sfp=P6g;var JO0=Symbol("Ec");gdA({beforeRender:function(G){var c=_.Ty(G.effectContext);try{var I;((I=G.__syncEffects)==null?0:I.length)&&fZ8(G.__syncEffects)}finally{_.Ty(c)}},
didPatch:function(G){var c=_.Ty(G.effectContext);try{var I;((I=G.__syncEffects)==null?0:I.length)&&fZ8(G.__syncEffects)}finally{_.Ty(c)}},
didUnmount:function(G){var c;((c=G.hooks)==null?0:c.length)&&G.hooks.forEach(iRr)}});var qCe,wdp,FJK;qCe=_.Rq.window;_.dK=(qCe==null?void 0:(wdp=qCe.yt)==null?void 0:wdp.config_)||(qCe==null?void 0:(FJK=qCe.ytcfg)==null?void 0:FJK.data_)||{};_.lr("yt.config_",_.dK);var nDB={},typ=[];_.iW=function(G){var c=_.Hy.apply(1,arguments);var I=Error.call(this,G);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.args=[].concat(_.jn(c));Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(_.iW,Error);var OVT=function(G,c,I){this.actionName=G;this.optionalAction=c===void 0?!1:c;this.args=I===void 0?null:I;this.returnValue=[]};_.vS=function(G){this.name=G};_.GP=new _.vS("signalAction");var ISp=/^[\w.]*$/,Xqp={q:!0,search_query:!0},HRb=String(C6r);var FA;FA=Symbol("Fc");_.De=function(G){this.name=G};
_.De.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var Rwf=function(G){this.key=G},m2f=function(G){this.deferredKey=G},KJT=function(){var G=this;
this.providers=new Map;this.JSC$10658_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(G.providers)}}};
KJT.prototype.addProvider=function(G){this.providers.set(G.provide,G);var c=this.JSC$10658_deferred.get(G.provide);if(c)try{c.resolver(this.resolve(G.provide))}catch(I){c.rejector(I)}};
KJT.prototype.resolve=function(G){return G instanceof m2f?vDp(this,G):G instanceof Rwf?D20(this,G.key,[],!0):D20(this,G,[])};
var vDp=function(G,c){c=c.deferredKey;if(G.JSC$10658_deferred.has(c))return G.JSC$10658_deferred.get(c).promise;var I={};I.promise=new Promise(function(R,Z){I.resolver=R;I.rejector=Z});
G.JSC$10658_deferred.set(c,I);return I.promise},D20=function(G,c,I,R){R=R===void 0?!1:R;
if(I.indexOf(c)>-1)throw Error("Gc`"+c);if(G.cachedValues.has(c))return G.cachedValues.get(c);if(!G.providers.has(c)){if(R)return;throw Error("Hc`"+c);}R=G.providers.get(c);I.push(c);if(R.useValue!==void 0)var Z=R.useValue;else if(R.useFactory)Z=R[FA]?oDV(G,R[FA],I):[],Z=R.useFactory.apply(R,_.jn(Z));else if(R.useClass){Z=R.useClass;var K=Z[FA]?oDV(G,Z[FA],I):[];Z=new (Function.prototype.bind.apply(Z,[null].concat(_.jn(K))))}else throw Error("Ic`"+c);I.pop();R.skipCache||G.cachedValues.set(c,Z);return Z},
oDV=function(G,c,I){return c?c.map(function(R){return R instanceof Rwf?D20(G,R.key,I,!0):D20(G,R,I)}):[]};var ZC0;var cN=new _.De("ENDPOINT_HANDLER_TOKEN");_.ID=new _.vS("urlEndpoint");var U2k=function(){this.data=[];this.cachedPackedInt52=-1};
U2k.prototype.set=function(G,c){c=c===void 0?!0:c;0<=G&&G<52&&Number.isInteger(G)&&this.data[G]!==c&&(this.data[G]=c,this.cachedPackedInt52=-1)};
U2k.prototype.get=function(G){return!!this.data[G]};
var uLK=function(G){G.cachedPackedInt52===-1&&(G.cachedPackedInt52=G.data.reduce(function(c,I,R){return c+(I?Math.pow(2,R):0)},0));
return G.cachedPackedInt52};var U2f=function(G){var c=bCk;G=G===void 0?_.Yc("yt.ads.biscotti.lastId_")||"":G;var I=Object,R=I.assign,Z={};Z.dt=Dt0;Z.flash="0";a:{try{var K=c.JSC$10664_win_.top.location.href}catch(g){K=2;break a}K=K?K===c.doc_.location.href?0:1:2}Z=(Z.frm=K,Z);try{Z.u_tz=-(new Date).getTimezoneOffset();try{var m=Qh.history.length}catch(g){m=0}Z.u_his=m;var a;Z.u_h=(a=Qh.screen)==null?void 0:a.height;var O;Z.u_w=(O=Qh.screen)==null?void 0:O.width;var N;Z.u_ah=(N=Qh.screen)==null?void 0:N.availHeight;var q;Z.u_aw=
(q=Qh.screen)==null?void 0:q.availWidth;var w;Z.u_cd=(w=Qh.screen)==null?void 0:w.colorDepth}catch(g){}m=c.JSC$10664_win_;try{var F=m.screenX;var n=m.screenY}catch(g){}try{var U=m.outerWidth;var k=m.outerHeight}catch(g){}try{var p=m.innerWidth;var M=m.innerHeight}catch(g){}try{var z=m.screenLeft;var t=m.screenTop}catch(g){}try{p=m.innerWidth,M=m.innerHeight}catch(g){}try{var x=m.screen.availWidth;var C=m.screen.availTop}catch(g){}F=[z,t,F,n,x,C,U,k,p,M];n=VTq(!1,c.JSC$10664_win_.top);U={};var H=H===
void 0?_.Rq:H;k=new U2k;"SVGElement"in H&&"createElementNS"in H.document&&k.set(0);p=l3K();p["allow-top-navigation-by-user-activation"]&&k.set(1);p["allow-popups-to-escape-sandbox"]&&k.set(2);H.crypto&&H.crypto.subtle&&k.set(3);"TextDecoder"in H&&"TextEncoder"in H&&k.set(4);H=uLK(k);c=(U.bc=H,U.bih=n.height,U.biw=n.width,U.brdim=F.join(),U.vis=bhi(c.doc_),U.wgl=!!Qh.WebGLRenderingContext,U);I=R.call(I,Z,c);I.ca_type="image";G&&(I.bid=G);return I},bCk=new function(){var G=window.document;
this.JSC$10664_win_=window;this.doc_=G};
_.lr("yt.ads_.signals_.getAdSignalsString",function(G){return yOr(U2f(G))});_.OH();navigator.userAgent.indexOf(" (CrKey ");var NUr="XMLHttpRequest"in _.Rq?function(){return new XMLHttpRequest}:null;var ksk="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),sPK=[].concat(_.jn(ksk),["client_dev_set_cookie"]);var oD8={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"},wdi="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(_.jn(ksk)),pd0=!1,nDO=_.uLp,AHg=D2r;var Y3q=[{messageFn:function(G){return"Cannot read property '"+G.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(G){return"Cannot call '"+G.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(G){return G.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var LJ9={messageWeights:[],callbackWeights:[{callback:EDO,weight:500},{callback:JHb,weight:500}]};var AHA=function(){this.callbackWeights=[];this.messageWeights=[]},$2e,g5B=function(){if(!$2e){var G=$2e=new AHA;
G.messageWeights.length=0;G.callbackWeights.length=0;N3q(G,LJ9)}return $2e},N3q=function(G,c){c.messageWeights&&G.messageWeights.push.apply(G.messageWeights,c.messageWeights);
c.callbackWeights&&G.callbackWeights.push.apply(G.callbackWeights,c.callbackWeights)};_.eg(_.p4,_.JK);_.p4.prototype.subscribe=function(G,c,I){var R=this.topics_[G];R||(R=this.topics_[G]=[]);var Z=this.JSC$10688_key_;this.subscriptions_[Z]=G;this.subscriptions_[Z+1]=c;this.subscriptions_[Z+2]=I;this.JSC$10688_key_=Z+3;R.push(Z);return Z};
var SCi=function(G){var c=yG,I=!1,R=c.subscribe("handleError",function(Z){I||(I=!0,this.unsubscribeByKey(R),G.apply(void 0,arguments))},c)};
_.p4.prototype.unsubscribe=function(G,c,I){if(G=this.topics_[G]){var R=this.subscriptions_;if(G=G.find(function(Z){return R[Z+1]==c&&R[Z+2]==I}))return this.unsubscribeByKey(G)}return!1};
_.p4.prototype.unsubscribeByKey=function(G){var c=this.subscriptions_[G];if(c){var I=this.topics_[c];this.publishDepth_!=0?(this.pendingKeys_.push(G),this.subscriptions_[G+1]=function(){}):(I&&_.rb(I,G),delete this.subscriptions_[G],delete this.subscriptions_[G+1],delete this.subscriptions_[G+2])}return!!c};
_.p4.prototype.publish=function(G,c){var I=this.topics_[G];if(I){var R=Array(arguments.length-1),Z=arguments.length,K;for(K=1;K<Z;K++)R[K-1]=arguments[K];if(this.async_)for(K=0;K<I.length;K++)Z=I[K],pdK(this.subscriptions_[Z+1],this.subscriptions_[Z+2],R);else{this.publishDepth_++;try{for(K=0,Z=I.length;K<Z&&!this.isDisposed();K++){var m=I[K];this.subscriptions_[m+1].apply(this.subscriptions_[m+2],R)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;I=this.pendingKeys_.pop();)this.unsubscribeByKey(I)}}return K!=
0}return!1};
var pdK=function(G,c,I){_.xz(function(){G.apply(c,I)})};
_.p4.prototype.clear=function(G){if(G){var c=this.topics_[G];c&&(c.forEach(this.unsubscribeByKey,this),delete this.topics_[G])}else this.subscriptions_.length=0,this.topics_={}};
_.p4.prototype.getCount=function(G){if(G){var c=this.topics_[G];return c?c.length:0}G=0;for(c in this.topics_)G+=this.getCount(c);return G};
_.p4.prototype.disposeInternal=function(){_.p4.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var yG=new _.p4;var ur=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(ur,_.aR);ur.prototype.getColdHashData=function(){return _.iU(this,3)};
ur.prototype.getHotHashData=function(){return _.iU(this,5)};
ur.prototype.setHotHashData=function(G){return _.Eq(this,5,G)};var HpU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(HpU,_.aR);var u6g=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(u6g,_.aR);_.P=u6g.prototype;_.P.getDeviceId=function(){return _.iU(this,6)};
_.P.getExperimentIds=function(G){var c=_.Xj(this,9,_.au,3,!0);Y0r(c,G);return c[G]};
_.P.getPlayerType=function(){return _.fy(this,36)};
_.P.setHomeGroupInfo=function(G){return _.Az(this,81,G)};
_.P.clearLocationPlayabilityToken=function(){return _.Uo(this,89)};var Sc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Sc,_.aR);Sc.prototype.setKey=function(G){return _.Eq(this,1,G)};
Sc.prototype.getValue=function(){return rI(this,2,k9U)};
var k9U=[2,3,4,5,6];var MWK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(MWK,_.aR);MWK.prototype.setTrackingParams=function(G){return _.Uo(this,1,_.Mk(G,!1))};var bQf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(bQf,_.aR);var gVB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(gVB,_.aR);gVB.prototype.getExperimentIds=function(G){var c=_.Xj(this,5,_.uTU,3,!0);Y0r(c,G);return c[G]};var za=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(za,_.aR);za.prototype.getToken=function(){return _.AK(this,2)};
za.prototype.setToken=function(G){return _.Eq(this,2,G)};var Mb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Mb,_.aR);Mb.prototype.setSafetyMode=function(G){return _.oz(this,5,G)};var $7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u($7,_.aR);$7.prototype.setClient=function(G){return _.Az(this,1,G)};var yXC={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 XYB;_.BH=function(){var G=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Rq.addEventListener("beforeinstallprompt",function(c){c.preventDefault();G.deferredInstallPrompt=c});
_.Rq.addEventListener("appinstalled",function(){G.appInstalledEventFired=!0},{once:!0})};
XYB=function(){if(!_.Rq.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Rq.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Rq.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Rq.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Rq.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(G){return"WEB_DISPLAY_MODE_UNKNOWN"}};var cir=function(){this.syncHeaders=!0},IbA=function(G){var c={},I=[];
"USER_SESSION_ID"in _.dK&&I.push({key:"u",value:_.H1("USER_SESSION_ID")});if(I=_.uZ8(I))c.Authorization=I,I=G=G==null?void 0:G.sessionIndex,I===void 0&&(I=Number(_.H1("SESSION_INDEX",0)),I=isNaN(I)?0:I),_.v("voice_search_auth_header_removal")||(c["X-Goog-AuthUser"]=I.toString()),"INNERTUBE_HOST_OVERRIDE"in _.dK||(c["X-Origin"]=window.location.origin),G===void 0&&"DELEGATED_SESSION_ID"in _.dK&&(c["X-Goog-PageId"]=_.H1("DELEGATED_SESSION_ID"));return c};var VW2={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var o5=_.Yc("ytglobal.prefsUserPrefsPrefs_")||{},zw9;_.lr("ytglobal.prefsUserPrefsPrefs_",o5);_.Uh=function(){this.cookieName=_.H1("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.H1("ALT_PREF_COOKIE_DOMAIN","youtube.com");var G=_.VU.get(this.cookieName,void 0);G&&this.parse(G)};
_.OC=function(){zw9||(zw9=new _.Uh);return zw9};
_.Uh.prototype.get=function(G,c){EDB(G);JHe(G);G=o5[G]!==void 0?o5[G].toString():null;return G!=null?G:c?c:""};
_.Uh.prototype.set=function(G,c){EDB(G);JHe(G);if(c==null)throw Error("Lc");o5[G]=c.toString()};
_.Uh.prototype.getFlag=function(G){return!!((WJA("f"+(Math.floor(G/31)+1))||0)&1<<G%31)};
_.eW=function(G,c,I){G="f"+(Math.floor(c/31)+1);c=1<<c%31;var R=WJA(G)||0;R=I?R|c:R&~c;R===0?delete o5[G]:(I=R.toString(16),o5[G]=I.toString())};
_.Uh.prototype.remove=function(G){EDB(G);JHe(G);delete o5[G]};
_.Uh.prototype.save=function(){var G=!0;_.v("web_secure_pref_cookie_killswitch")&&(G=!1);_.zu(this.cookieName,this.dump(),63072E3,this.cookieDomain,G)};
_.Uh.prototype.clear=function(){_.rx.clear(o5)};
_.Uh.prototype.dump=function(){var G=[],c;for(c in o5)o5.hasOwnProperty(c)&&G.push(c+"="+encodeURIComponent(String(o5[c])));return G.join("&")};
var JHe=function(G){if(/^f([1-9][0-9]*)$/.test(G))throw Error("Mc`"+G);},EDB=function(G){if(!/^\w+$/.test(G))throw Error("Nc`"+G);
},WJA=function(G){G=o5[G]!==void 0?o5[G].toString():null;
return G!=null&&/^[A-Fa-f0-9]+$/.test(G)?parseInt(G,16):null};
_.Uh.prototype.parse=function(G){G=decodeURIComponent(G).split("&");for(var c=0;c<G.length;c++){var I=G[c].split("="),R=I[0];(I=I[1])&&(o5[R]=I.toString())}};var hw0={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"},Y4q={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},Gep={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},C88={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Qe;_.ub=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.W_=function(G,c,I){return G.addJob(c,0,I)};
_.ub.prototype.addLowPriorityJob=function(G,c){return this.addJob(G,1,c)};
_.SR=function(G,c,I){return G.addJob(c,2,I)};
_.U_=function(G,c,I){return G.addJob(c,3,I)};
_.mq=function(G,c,I){return G.addJob(c,4,I)};
Qe=function(G){var c=_.Yc("yt.scheduler.instance.addImmediateJob");c?c(G):G()};
_.ub.prototype.debounce=function(G,c,I){var R=this,Z=0,K=function(){Z&&R.cancelJob(Z);Z=R.addJob(G,c,I);R.cancelDebouncedJobMap.set(K,Z)};
return K};
_.ub.prototype.cancelThrottle=function(G){(G=this.cancelThrottledJobMap.get(G))&&G()};var bb=function(){_.ub.apply(this,arguments)},iCe;
_.u(bb,_.ub);_.E_=function(){bb.instance||(bb.instance=new bb);return bb.instance};
bb.prototype.addJob=function(G,c,I){I!==void 0&&Number.isNaN(Number(I))&&(I=void 0);var R=_.Yc("yt.scheduler.instance.addJob");return R?R(G,c,I):I===void 0?(G(),NaN):_.k6(G,I||0)};
bb.prototype.cancelJob=function(G){if(G===void 0||!Number.isNaN(Number(G))){var c=_.Yc("yt.scheduler.instance.cancelJob");c?c(G):_.L4(G)}};
bb.prototype.start=function(){var G=_.Yc("yt.scheduler.instance.start");G&&G()};
bb.prototype.pause=function(){var G=_.Yc("yt.scheduler.instance.pause");G&&G()};
iCe=function(){_.E_();var G=_.Yc("yt.scheduler.instance.setPriorityThreshold");G&&G(4)};
_.dJ=_.E_();_.f4.prototype.set=function(G,c){c===void 0?this.mechanism.remove(G):this.mechanism.set(G,(0,_.HL)(c))};
_.f4.prototype.get=function(G){try{var c=this.mechanism.get(G)}catch(I){return}if(c!==null)try{return JSON.parse(c)}catch(I){throw"Storage: Invalid value was encountered";}};
_.f4.prototype.remove=function(G){this.mechanism.remove(G)};var k1=function(G){this.mechanism=G};
_.eg(k1,_.f4);var fSp=function(G){this.data=G},BUe=function(G){return G===void 0||G instanceof fSp?G:new fSp(G)};
k1.prototype.set=function(G,c){k1.superClass_.set.call(this,G,BUe(c))};
k1.prototype.getWrapper=function(G){G=k1.superClass_.get.call(this,G);if(G===void 0||G instanceof Object)return G;throw"Storage: Invalid value was encountered";};
k1.prototype.get=function(G){if(G=this.getWrapper(G)){if(G=G.data,G===void 0)throw"Storage: Invalid value was encountered";}else G=void 0;return G};_.eg(BK,k1);_.rHe=function(G){var c=G.creation;G=G.expiration;return!!G&&G<_.OH()||!!c&&c>_.OH()};
BK.prototype.set=function(G,c,I){if(c=BUe(c)){if(I){if(I<_.OH()){BK.prototype.remove.call(this,G);return}c.expiration=I}c.creation=_.OH()}BK.superClass_.set.call(this,G,c)};
BK.prototype.getWrapper=function(G,c){var I=BK.superClass_.getWrapper.call(this,G);if(I)if(!c&&_.rHe(I))BK.prototype.remove.call(this,G);else return I};var sh=function(){};
sh.prototype.next=function(){return Lu};
var Lu={done:!0,value:void 0},A4=function(G){return{value:G,done:!1}};
sh.prototype.__iterator__=function(){return this};
_.jP0=function(G){if(G instanceof sh)return G;if(typeof G.__iterator__=="function")return G.__iterator__(!1);if(_.xp(G)){var c=0,I=new sh;I.next=function(){for(;;){if(c>=G.length)return Lu;if(c in G)return A4(G[c++]);c++}};
return I}throw Error("Oc");};var x2K=function(G){if(G instanceof $1||G instanceof SI||G instanceof pu)return G;if(typeof G.next=="function")return new $1(function(){return G});
if(typeof G[Symbol.iterator]=="function")return new $1(function(){return G[Symbol.iterator]()});
if(typeof G.__iterator__=="function")return new $1(function(){return G.__iterator__()});
throw Error("Pc");},$1=function(G){this.func_=G};
$1.prototype.__iterator__=function(){return new SI(this.func_())};
$1.prototype[Symbol.iterator]=function(){return new pu(this.func_())};
$1.prototype.toEs6=function(){return new pu(this.func_())};
var SI=function(G){this.JSC$10773_iter_=G};
_.u(SI,sh);SI.prototype.next=function(){return this.JSC$10773_iter_.next()};
SI.prototype[Symbol.iterator]=function(){return new pu(this.JSC$10773_iter_)};
SI.prototype.toEs6=function(){return new pu(this.JSC$10773_iter_)};
var pu=function(G){$1.call(this,function(){return G});
this.JSC$10776_iter_=G};
_.u(pu,$1);pu.prototype.next=function(){return this.JSC$10776_iter_.next()};var tWK=function(){};var MX=function(){};
_.eg(MX,tWK);MX.prototype.getCount=function(){for(var G=0,c=_.Q(this),I=c.next();!I.done;I=c.next())G++;return G};
MX.prototype[Symbol.iterator]=function(){return x2K(this.__iterator__(!0)).toEs6()};
MX.prototype.clear=function(){var G=Array.from(this);G=_.Q(G);for(var c=G.next();!c.done;c=G.next())this.remove(c.value)};_.eg(rH,MX);_.P=rH.prototype;_.P.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var G=this.storage_;if(G)try{G.setItem("__sak","1");G.removeItem("__sak");var c=!0}catch(I){c=I instanceof DOMException&&(I.name==="QuotaExceededError"||I.code===22||I.code===1014||I.name==="NS_ERROR_DOM_QUOTA_REACHED")&&G&&G.length!==0}else c=!1;this.cachedIsStorageAvailable_=c}return this.cachedIsStorageAvailable_};
_.P.set=function(G,c){Va(this);try{this.storage_.setItem(G,c)}catch(I){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.P.get=function(G){Va(this);G=this.storage_.getItem(G);if(typeof G!=="string"&&G!==null)throw"Storage mechanism: Invalid value was encountered";return G};
_.P.remove=function(G){Va(this);this.storage_.removeItem(G)};
_.P.getCount=function(){Va(this);return this.storage_.length};
_.P.__iterator__=function(G){Va(this);var c=0,I=this.storage_,R=new sh;R.next=function(){if(c>=I.length)return Lu;var Z=I.key(c++);if(G)return A4(Z);Z=I.getItem(Z);if(typeof Z!=="string")throw"Storage mechanism: Invalid value was encountered";return A4(Z)};
return R};
_.P.clear=function(){Va(this);this.storage_.clear()};
_.P.key=function(G){Va(this);return this.storage_.key(G)};
var Va=function(G){if(G.storage_==null)throw Error("Qc");G.isAvailable()||Zi(Error("Qc"))};_.eg(Xdp,rH);_.eg(yHb,rH);_.eg(jA,MX);jA.prototype.set=function(G,c){this.mechanism_.set(this.JSC$10791_prefix_+G,c)};
jA.prototype.get=function(G){return this.mechanism_.get(this.JSC$10791_prefix_+G)};
jA.prototype.remove=function(G){this.mechanism_.remove(this.JSC$10791_prefix_+G)};
jA.prototype.__iterator__=function(G){var c=this.mechanism_[Symbol.iterator](),I=this,R=new sh;R.next=function(){var Z=c.next();if(Z.done)return Z;for(Z=Z.value;Z.slice(0,I.JSC$10791_prefix_.length)!=I.JSC$10791_prefix_;){Z=c.next();if(Z.done)return Z;Z=Z.value}return A4(G?Z.slice(I.JSC$10791_prefix_.length):I.mechanism_.get(Z))};
return R};_.gJ=function(G){this.expiringStorage_=(G=_.x6(G))?new BK(G):null;this.JSC$10795_domain_=document.domain||window.location.hostname};
_.P=_.gJ.prototype;_.P.hasLocalStorage=function(){return!!this.expiringStorage_};
_.P.set=function(G,c,I,R){I=I||31104E3;this.remove(G);if(this.hasLocalStorage())try{this.expiringStorage_.set(G,c,Date.now()+I*1E3);return}catch(K){}var Z="";if(R)try{Z=escape((0,_.HL)(c))}catch(K){return}else Z=escape(c);_.zu(G,Z,I,this.JSC$10795_domain_)};
_.P.get=function(G,c){var I=void 0,R=!this.hasLocalStorage();if(!R)try{I=this.expiringStorage_.get(G)}catch(Z){R=!0}if(R&&(I=_.VU.get(G,void 0))&&(I=unescape(I),c))try{I=JSON.parse(I)}catch(Z){this.remove(G),I=void 0}return I};
_.P.remove=function(G){this.hasLocalStorage()&&this.expiringStorage_.remove(G);_.jPq(G,"/",this.JSC$10795_domain_)};
_.P.getCreationTime=function(G){return this.hasLocalStorage()&&(G=(this.expiringStorage_.getWrapper(G)||{}).creation,typeof G==="number")?G:null};var YC0=function(){var G;return function(){G||(G=new _.gJ("ytidb"));return G}}();var cXq;_.hw=[];cXq=!1;var vVp=IYU||RRb;var z0={},hwK=(z0.AUTH_INVALID="No user identifier specified.",z0.EXPLICIT_ABORT="Transaction was explicitly aborted.",z0.IDB_NOT_SUPPORTED="IndexedDB is not supported.",z0.MISSING_INDEX="Index not created.",z0.MISSING_OBJECT_STORES="Object stores not created.",z0.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",z0.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",z0.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",z0.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",z0.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",z0.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",z0.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",z0),Eh={},d2T=(Eh.AUTH_INVALID="ERROR",Eh.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Eh.EXPLICIT_ABORT="IGNORED",
Eh.IDB_NOT_SUPPORTED="ERROR",Eh.MISSING_INDEX="WARNING",Eh.MISSING_OBJECT_STORES="ERROR",Eh.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Eh.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Eh.QUOTA_EXCEEDED="WARNING",Eh.QUOTA_MAYBE_EXCEEDED="WARNING",Eh.UNKNOWN_ABORT="WARNING",Eh.INCOMPATIBLE_DB_VERSION="WARNING",Eh),J4={},C8V=(J4.AUTH_INVALID=!1,J4.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,J4.EXPLICIT_ABORT=!1,J4.IDB_NOT_SUPPORTED=!1,J4.MISSING_INDEX=!1,J4.MISSING_OBJECT_STORES=!1,J4.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,J4.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,J4.QUOTA_EXCEEDED=!1,J4.QUOTA_MAYBE_EXCEEDED=!0,J4.UNKNOWN_ABORT=!0,J4.INCOMPATIBLE_DB_VERSION=!1,J4),gH=function(G,c,I,R,Z){c=c===void 0?{}:c;I=I===void 0?hwK[G]:I;R=R===void 0?d2T[G]:R;Z=Z===void 0?C8V[G]:Z;_.iW.call(this,I,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:G},c));this.type=G;this.message=I;this.level=R;this.retryable=Z;Object.setPrototypeOf(this,gH.prototype)};
_.u(gH,_.iW);var HCK=function(G,c){gH.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:c,foundObjectStores:G},hwK.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,HCK.prototype)};
_.u(HCK,gH);var Kxr=function(G,c){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.index=G;this.objectStore=c;Object.setPrototypeOf(this,Kxr.prototype)};
_.u(Kxr,Error);var Pni=["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 Iz=function(G){this.executor=G},cl=function(G){var c=this;
this.state={status:"PENDING"};this.JSC$10823_onFulfilled=[];this.JSC$10823_onRejected=[];G=G.executor;var I=function(Z){if(c.state.status==="PENDING"){c.state={status:"FULFILLED",value:Z};Z=_.Q(c.JSC$10823_onFulfilled);for(var K=Z.next();!K.done;K=Z.next())K=K.value,K()}},R=function(Z){if(c.state.status==="PENDING"){c.state={status:"REJECTED",
reason:Z};Z=_.Q(c.JSC$10823_onRejected);for(var K=Z.next();!K.done;K=Z.next())K=K.value,K()}};
try{G(I,R)}catch(Z){R(Z)}};
cl.all=function(G){return new cl(new Iz(function(c,I){var R=[],Z=G.length;Z===0&&c(R);for(var K={i$jscomp$468:0};K.i$jscomp$468<G.length;K={i$jscomp$468:K.i$jscomp$468},++K.i$jscomp$468)cl.resolve(G[K.i$jscomp$468]).then(function(m){return function(a){R[m.i$jscomp$468]=a;Z--;Z===0&&c(R)}}(K)).catch(function(m){I(m)})}))};
cl.resolve=function(G){return new cl(new Iz(function(c,I){G instanceof cl?G.then(c,I):c(G)}))};
cl.reject=function(G){return new cl(new Iz(function(c,I){I(G)}))};
cl.prototype.then=function(G,c){var I=this,R=G!=null?G:aYT,Z=c!=null?c:m9T;return new cl(new Iz(function(K,m){I.state.status==="PENDING"?(I.JSC$10823_onFulfilled.push(function(){XdK(I,I,R,K,m)}),I.JSC$10823_onRejected.push(function(){yHe(I,I,Z,K,m)})):I.state.status==="FULFILLED"?XdK(I,I,R,K,m):I.state.status==="REJECTED"&&yHe(I,I,Z,K,m)}))};
cl.prototype.catch=function(G){return this.then(void 0,G)};
var XdK=function(G,c,I,R,Z){try{if(G.state.status!=="FULFILLED")throw Error("Tc");var K=I(G.state.value);K instanceof cl?gD2(G,c,K,R,Z):R(K)}catch(m){Z(m)}},yHe=function(G,c,I,R,Z){try{if(G.state.status!=="REJECTED")throw Error("Uc");
var K=I(G.state.reason);K instanceof cl?gD2(G,c,K,R,Z):R(K)}catch(m){Z(m)}},gD2=function(G,c,I,R,Z){c===I?Z(new TypeError("Vc")):I.then(function(K){K instanceof cl?gD2(G,c,K,R,Z):R(K)},function(K){Z(K)})};var WS;WS=window;_.Fa=WS.ytcsi&&WS.ytcsi.now?WS.ytcsi.now:WS.performance&&WS.performance.timing&&WS.performance.now&&WS.performance.timing.navigationStart?function(){return WS.performance.timing.navigationStart+WS.performance.now()}:function(){return(new Date).getTime()};var Zw=function(G,c){this.JSC$10835_wrapped=G;this.options=c;this.transactionCount=0;this.startedMs=Math.round((0,_.Fa)());this.hasUnknownAbortedTransaction=!1},ib=function(){return _.v("idb_immediate_commit")},cX0,IYe,ra,Kxi;
Zw.prototype.add=function(G,c,I){return _.az(this,[G],{mode:"readwrite",enableRetries:!0,commit:ib()},function(R){return R.objectStore(G).add(c,I)})};
Zw.prototype.clear=function(G){return _.az(this,[G],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore(G).clear()})};
Zw.prototype.close=function(){this.JSC$10835_wrapped.close();var G;((G=this.options)==null?0:G.closed)&&this.options.closed()};
Zw.prototype.count=function(G,c){return _.az(this,[G],{mode:"readonly",enableRetries:!0,commit:ib()},function(I){return I.objectStore(G).count(c)})};
var Ga=function(G,c,I){G=G.JSC$10835_wrapped.createObjectStore(c,I);return new fu(G)};
Zw.prototype.delete=function(G,c){return _.az(this,[G],{mode:"readwrite",enableRetries:!0,commit:ib()&&!(c instanceof IDBKeyRange)},function(I){return I.objectStore(G).delete(c)})};
var YCK=function(G,c){return _.az(G,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore("ResponseStore").index("byInterface").delete(c)})};
Zw.prototype.get=function(G,c){return _.az(this,[G],{mode:"readonly",enableRetries:!0,commit:ib()},function(I){return I.objectStore(G).get(c)})};
Zw.prototype.getAll=function(G,c,I){return _.az(this,[G],{mode:"readonly",enableRetries:!0},function(R){return R.objectStore(G).getAll(c,I)})};
Zw.prototype.put=function(G,c,I){return _.az(this,[G],{mode:"readwrite",enableRetries:!0,commit:ib()},function(R){return R.objectStore(G).put(c,I)})};
Zw.prototype.objectStoreNames=function(){return Array.from(this.JSC$10835_wrapped.objectStoreNames)};
_.az=function(G,c,I,R){var Z,K,m,a,O,N,q,w,F,n,U,k;return _.T(function(p){switch(p.nextAddress){case 1:var M={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof I==="string"?M.mode=I:Object.assign(M,I);Z=M;G.transactionCount++;K=Z.enableRetries?3:1;m=0;case 2:if(a){p.jumpTo(4);break}m++;O=Math.round((0,_.Fa)());_.s9(p,5);N=G.JSC$10835_wrapped.transaction(c,Z.mode);M=p.yield;var z=!!Z.commit;var t=new Kj(N);z=Gvi(t,R,z);return M.call(p,z,7);case 7:return q=p.yieldResult,w=Math.round((0,_.Fa)()),
cX0(G,O,w,m,void 0,c.join(),Z),p.return(q);case 5:F=_.M3(p);n=Math.round((0,_.Fa)());U=Q6g(F,G.JSC$10835_wrapped.name,c.join(),G.JSC$10835_wrapped.version);if((k=U instanceof gH&&!U.retryable)||m>=K)cX0(G,O,n,m,U,c.join(),Z),a=U;p.jumpTo(2);break;case 4:return p.return(Promise.reject(a))}})};
cX0=function(G,c,I,R,Z,K,m){c=I-c;Z?(Z instanceof gH&&(Z.type==="QUOTA_EXCEEDED"||Z.type==="QUOTA_MAYBE_EXCEEDED")&&C4("QUOTA_EXCEEDED",{dbName:XA(G.JSC$10835_wrapped.name),objectStoreNames:K,transactionCount:G.transactionCount,transactionMode:m.mode}),Z instanceof gH&&Z.type==="UNKNOWN_ABORT"&&(I-=G.startedMs,I<0&&I>=2147483648&&(I=0),C4("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:K,transactionDuration:c,transactionCount:G.transactionCount,dbDuration:I}),G.hasUnknownAbortedTransaction=!0),
IYe(G,!1,R,K,c,m.tag),_.dH(Z)):IYe(G,!0,R,K,c,m.tag)};
IYe=function(G,c,I,R,Z,K){C4("TRANSACTION_ENDED",{objectStoreNames:R,connectionHasUnknownAbortedTransaction:G.hasUnknownAbortedTransaction,duration:Z,isSuccessful:c,tryCount:I,tag:K===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":K})};
Zw.prototype.getName=function(){return this.JSC$10835_wrapped.name};
var fu=function(G){this.JSC$10850_wrapped=G};
fu.prototype.add=function(G,c){return Rz(this.JSC$10850_wrapped.add(G,c))};
fu.prototype.autoIncrement=function(){return this.JSC$10850_wrapped.autoIncrement};
fu.prototype.clear=function(){return Rz(this.JSC$10850_wrapped.clear()).then(function(){})};
var c_=function(G,c,I){G.JSC$10850_wrapped.createIndex(c,I,{unique:!1})};
fu.prototype.count=function(G){return Rz(this.JSC$10850_wrapped.count(G))};
var RRe=function(G,c){return Oo(G,{query:c},function(I){return I.delete().then(function(){return I.continue()})}).then(function(){})};
fu.prototype.delete=function(G){return G instanceof IDBKeyRange?RRe(this,G):Rz(this.JSC$10850_wrapped.delete(G))};
fu.prototype.get=function(G){return Rz(this.JSC$10850_wrapped.get(G))};
fu.prototype.getAll=function(G,c){return"getAll"in IDBObjectStore.prototype?Rz(this.JSC$10850_wrapped.getAll(G,c)):ZpN(this,G,c)};
var ZpN=function(G,c,I){var R=[];return Oo(G,{query:c},function(Z){if(!(I!==void 0&&R.length>=I))return R.push(Z.getValue()),Z.continue()}).then(function(){return R})};
fu.prototype.index=function(G){try{return new BS(this.JSC$10850_wrapped.index(G))}catch(c){if(c instanceof Error&&c.name==="NotFoundError")throw new Kxr(G,this.JSC$10850_wrapped.name);throw c;}};
fu.prototype.getName=function(){return this.JSC$10850_wrapped.name};
fu.prototype.keyPath=function(){return this.JSC$10850_wrapped.keyPath};
fu.prototype.put=function(G,c){return Rz(this.JSC$10850_wrapped.put(G,c))};
var Oo=function(G,c,I){G=G.JSC$10850_wrapped.openCursor(c.query,c.direction);return Kxi(G).then(function(R){return eRr(R,I)})},Kj=function(G){var c=this;
this.JSC$10858_wrapped=G;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(I,R){c.JSC$10858_wrapped.addEventListener("complete",function(){I()});
c.JSC$10858_wrapped.addEventListener("error",function(Z){Z.currentTarget===Z.target&&R(c.JSC$10858_wrapped.error)});
c.JSC$10858_wrapped.addEventListener("abort",function(){var Z=c.JSC$10858_wrapped.error;if(Z)R(Z);else if(!c.aborted){Z=gH;for(var K=c.JSC$10858_wrapped.objectStoreNames,m=[],a=0;a<K.length;a++){var O=K.item(a);if(O===null)throw Error("Wc");m.push(O)}Z=new Z("UNKNOWN_ABORT",{objectStoreNames:m.join(),dbName:c.JSC$10858_wrapped.db.name,mode:c.JSC$10858_wrapped.mode});R(Z)}})})},Gvi=function(G,c,I){var R=new Promise(function(Z,K){try{var m=c(G);
I&&G.commit();m.then(function(a){Z(a)}).catch(K)}catch(a){K(a),G.abort()}});
return Promise.all([R,G.done]).then(function(Z){return _.Q(Z).next().value})};
Kj.prototype.abort=function(){this.JSC$10858_wrapped.abort();this.aborted=!0;throw new gH("EXPLICIT_ABORT");};
Kj.prototype.commit=function(){if(!this.aborted){var G,c;(c=(G=this.JSC$10858_wrapped).commit)==null||c.call(G)}};
Kj.prototype.objectStore=function(G){G=this.JSC$10858_wrapped.objectStore(G);var c=this.objectStoreCache.get(G);c||(c=new fu(G),this.objectStoreCache.set(G,c));return c};
var BS=function(G){this.JSC$10860_wrapped=G};
BS.prototype.count=function(G){return Rz(this.JSC$10860_wrapped.count(G))};
BS.prototype.delete=function(G){return _.nj(this,{query:G},function(c){return c.delete().then(function(){return c.continue()})})};
BS.prototype.get=function(G){return Rz(this.JSC$10860_wrapped.get(G))};
BS.prototype.getAll=function(G,c){return"getAll"in IDBIndex.prototype?Rz(this.JSC$10860_wrapped.getAll(G,c)):Pnp(this,G,c)};
var Pnp=function(G,c,I){var R=[];return _.nj(G,{query:c},function(Z){if(!(I!==void 0&&R.length>=I))return R.push(Z.getValue()),Z.continue()}).then(function(){return R})};
BS.prototype.keyPath=function(){return this.JSC$10860_wrapped.keyPath};
BS.prototype.unique=function(){return this.JSC$10860_wrapped.unique};
_.nj=function(G,c,I){G=G.JSC$10860_wrapped.openCursor(c.query===void 0?null:c.query,c.direction===void 0?"next":c.direction);return Kxi(G).then(function(R){return eRr(R,I)})};
ra=function(G,c){this.request=G;this.cursor=c};
Kxi=function(G){return Rz(G).then(function(c){return c?new ra(G,c):null})};
ra.prototype.continue=function(G){this.cursor.continue(G);return Kxi(this.request)};
ra.prototype.delete=function(){return Rz(this.cursor.delete()).then(function(){})};
ra.prototype.getValue=function(){return this.cursor.value};
ra.prototype.update=function(G){return Rz(this.cursor.update(G))};var jI=function(G,c){this.name=G;this.options=c;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Q6A;
jI.prototype.openDb=function(G,c,I){I=I===void 0?{}:I;return lYB(G,c,I)};
jI.prototype.delete=function(G){G=G===void 0?{}:G;return _.QN(this.name,G)};
Q6A=function(G,c){return new gH("INCOMPATIBLE_DB_VERSION",{dbName:G.name,oldVersion:G.options.version,newVersion:c})};
_.m_=function(G,c){if(!c)throw Gc("openWithToken",XA(G.name));return G.open()};
jI.prototype.open=function(){var G=this;if(!this.isCompatible)throw Q6A(this);if(this.connectionPromise)return this.connectionPromise;var c,I=function(){G.connectionPromise===c&&(G.connectionPromise=void 0)},R={blocking:function(K){K.close()},
closed:I,terminated:I,upgrade:this.options.upgrade},Z=function(){var K,m,a,O,N,q,w,F,n,U;return _.T(function(k){switch(k.nextAddress){case 1:return m=(K=Error().stack)!=null?K:"",_.s9(k,2),k.yield(G.openDb(G.name,G.options.version,R),4);case 4:for(var p=a=k.yieldResult,M=G.options,z=[],t=_.Q(Object.keys(M.objectStores)),x=t.next();!x.done;x=t.next()){x=x.value;var C=M.objectStores[x],H=C.removedAtVersion===void 0?Number.MAX_VALUE:C.removedAtVersion;!(p.JSC$10835_wrapped.version>=C.addedAtVersion)||
p.JSC$10835_wrapped.version>=H||p.JSC$10835_wrapped.objectStoreNames.contains(x)||z.push(x)}O=z;if(O.length===0){k.jumpTo(5);break}N=Object.keys(G.options.objectStores);q=a.objectStoreNames();if(G.timesReopenedToFixMissingObjectStore<_.DH("ytidb_reopen_db_retries",0))return G.timesReopenedToFixMissingObjectStore++,a.close(),_.dH(new gH("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:N,foundObjectStores:q})),k.return(Z());if(!(G.timesDeletedToFixMissingObjectStore<_.DH("ytidb_remake_db_retries",
1))){k.jumpTo(6);break}G.timesDeletedToFixMissingObjectStore++;return k.yield(G.delete(),7);case 7:return _.dH(new gH("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:N,foundObjectStores:q})),k.return(Z());case 6:throw new HCK(q,N);case 5:return k.return(a);case 2:w=_.M3(k);if(w instanceof DOMException?w.name!=="VersionError":"DOMError"in self&&w instanceof DOMError?w.name!=="VersionError":!(w instanceof Object&&"message"in w)||w.message!=="An attempt was made to open a database using a lower version than the existing version."){k.jumpTo(8);
break}return k.yield(G.openDb(G.name,void 0,Object.assign({},R,{upgrade:void 0})),9);case 9:F=k.yieldResult;n=F.JSC$10835_wrapped.version;if(G.options.version!==void 0&&n>G.options.version+1)throw F.close(),G.isCompatible=!1,Q6A(G,n);return k.return(F);case 8:throw I(),w instanceof Error&&!_.v("ytidb_async_stack_killswitch")&&(w.stack=w.stack+"\n"+m.substring(m.indexOf("\n")+1)),Q6g(w,G.name,"",(U=G.options.version)!=null?U:-1);}})};
return this.connectionPromise=c=Z()};var q4b=new jI("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(G,c){c(1)&&Ga(G,"databases",{keyPath:"actualName"})}});var U9g,D90=new function(){}(new function(){});new _.Te;var m92=function(G,c){jI.call(this,G,c);this.options=c;HK(G)};
_.u(m92,jI);var MC8=function(G,c){var I;return function(){I||(I=new m92(G,c));return I}};
m92.prototype.openDb=function(G,c,I){I=I===void 0?{}:I;return(this.options.shared?Lxf:s6p)(G,c,Object.assign({},I))};
m92.prototype.delete=function(G){G=G===void 0?{}:G;return(this.options.shared?pYr:AXT)(this.name,G)};var aY2={},VCp=wJ("ytGcfConfig",{objectStores:(aY2.coldConfigStore={addedAtVersion:1},aY2.hotConfigStore={addedAtVersion:1},aY2),shared:!1,upgrade:function(G,c){c(1)&&(c_(Ga(G,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),c_(Ga(G,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var TLK=function(){_.JK.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var G=_.Yc("yt.gcf.config.hotUpdateCallbacks");G?(this.localHotConfigJobQueue=[].concat(_.jn(G)),this.sharedHotConfigJobQueue=G):(this.sharedHotConfigJobQueue=[],_.lr("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.u(TLK,_.JK);TLK.prototype.disposeInternal=function(){for(var G=_.Q(this.localHotConfigJobQueue),c=G.next();!c.done;c=G.next()){var I=this.sharedHotConfigJobQueue;c=I.indexOf(c.value);c>=0&&I.splice(c,1)}this.localHotConfigJobQueue.length=0;_.JK.prototype.disposeInternal.call(this)};var iB=function(){var G=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new TLK;this.TEST_ONLY={initializeConfigDb:function(){G.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return G.coldGlobalConfigGroup},
setHotConfigGroup:function(c){Opk(G,c)},
setHotHashData:function(c){G.setHotHashData(c)},
setColdConfigGroup:function(c){eR0(G,c)},
getColdHashData:function(){return G.coldHashData},
getHotHashData:function(){return G.hotHashData},
getHotConfigGroup:function(){return G.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return NLN()},
getExportedHotConfigGroup:function(){return x1()},
getExportedColdHashData:function(){return _.Yc("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Yc("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){lYT(G)},
resetInstance:function(){G.setHotHashData(void 0);q4e(G);delete iB.instance},
setDebounceTimer:function(c){G.debounceTimer=c},
getDebounceTimer:function(){return G.debounceTimer}}},wY0=function(){if(!iB.instance){var G=new iB;
iB.instance=G}return iB.instance},vVK=function(G){var c;
_.T(function(I){if(I.nextAddress==1)return _.v("start_client_gcf")||_.v("delete_gcf_config_db")?_.v("start_client_gcf")?I.yield(_.qt(),3):I.jumpTo(2):I.return();I.nextAddress!=2&&((c=I.yieldResult)&&_.WK()&&!_.v("delete_gcf_config_db")?(G.isConfigDbInitialized=!0,lYT(G)):(Fxp(G),nVe(G)));return _.v("delete_gcf_config_db")?I.yield(fYB(),0):I.jumpTo(0)})},fk=function(){var G;
return(G=x1())!=null?G:_.H1("RAW_HOT_CONFIG_GROUP")},D9K=function(G){var c,I,R,Z,K,m;
return _.T(function(a){switch(a.nextAddress){case 1:if(G.hotGlobalConfigGroup)return a.return(x1());if(!G.isConfigDbInitialized)return c=Gc("getHotConfig IDB not initialized"),_.Ra(c),a.return(Promise.reject(c));I=Nt();R=_.H1("TIME_CREATED_MS");if(!I){Z=Gc("getHotConfig token error");_.Ra(Z);a.jumpTo(2);break}return a.yield(ipb(I),3);case 3:if((K=a.yieldResult)&&K.timestamp>R)return Opk(G,K.config),G.setHotHashData(K.hashData),a.return(x1());case 2:nVe(G);if(!(I&&G.hotGlobalConfigGroup&&G.hotHashData)){a.jumpTo(4);
break}return a.yield(EV8(G.hotGlobalConfigGroup,G.hotHashData,I,R),4);case 4:return G.hotGlobalConfigGroup?a.return(x1()):(m=new _.iW("Config not available in ytConfig"),_.Ra(m),a.return(Promise.reject(m)))}})},U9A=function(G){var c,I,R,Z,K,m;
return _.T(function(a){switch(a.nextAddress){case 1:if(G.coldGlobalConfigGroup)return a.return(NLN());if(!G.isConfigDbInitialized)return c=Gc("getColdConfig IDB not initialized"),_.Ra(c),a.return(Promise.reject(c));I=Nt();R=_.H1("TIME_CREATED_MS");if(!I){Z=Gc("getColdConfig");_.Ra(Z);a.jumpTo(2);break}return a.yield(WxB(I),3);case 3:if((K=a.yieldResult)&&K.timestamp>R)return eR0(G,K.config),oVK(G,K.configData),q4e(G,K.hashData),a.return(NLN());case 2:Fxp(G);if(!(I&&G.coldGlobalConfigGroup&&G.coldHashData&&
G.configData)){a.jumpTo(4);break}return a.yield(JXg(G.coldGlobalConfigGroup,G.coldHashData,G.configData,I,R),4);case 4:return G.coldGlobalConfigGroup?a.return(NLN()):(m=new _.iW("Config not available in ytConfig"),_.Ra(m),a.return(Promise.reject(m)))}})},lYT=function(G){if(!G.hotGlobalConfigGroup||!G.coldGlobalConfigGroup){if(!Nt()){var c=Gc("scheduleGetConfigs");
_.Ra(c)}G.initJob||(G.initJob=_.dJ.addLowPriorityJob(function(){return _.T(function(I){switch(I.nextAddress){case 1:return _.s9(I,2),I.yield(D9K(G),4);case 4:_.Pl(I,3);break;case 2:_.M3(I);case 3:return _.s9(I,5),I.yield(U9A(G),7);case 7:_.Pl(I,6);break;case 5:_.M3(I);case 6:G.initJob&&(G.initJob=0),_.Vp(I)}})},100))}},J0q=function(G,c,I){var R,Z,K;
return _.T(function(m){switch(m.nextAddress){case 1:if(!_.v("start_client_gcf")){m.jumpTo(0);break}I&&Opk(G,I);G.setHotHashData(c);R=Nt();if(!R){m.jumpTo(3);break}if(I){m.jumpTo(4);break}return m.yield(ipb(R),5);case 5:Z=m.yieldResult,I=(K=Z)==null?void 0:K.config;case 4:return m.yield(EV8(I,c,R),3);case 3:if(I)for(var a=I,O=_.Q(G.configUpdateService.sharedHotConfigJobQueue),N=O.next();!N.done;N=O.next())N=N.value,N(a);_.Vp(m)}})},WqT=function(G,c,I){var R,Z,K,m;
return _.T(function(a){if(a.nextAddress==1){if(!_.v("start_client_gcf"))return a.jumpTo(0);q4e(G,c);return(R=Nt())?I?a.jumpTo(4):a.yield(WxB(R),5):a.jumpTo(0)}a.nextAddress!=4&&(Z=a.yieldResult,I=(K=Z)==null?void 0:K.config);if(!I)return a.jumpTo(0);m=I.configData;return a.yield(JXg(I,c,m,R),0)})},ZEi=function(){var G=wY0(),c=(0,_.Fa)()-G.debounceTimer;
if(!(G.debounceTimer!==0&&c<_.DH("send_config_hash_timer"))){c=_.Yc("yt.gcf.config.coldConfigData");var I=_.Yc("yt.gcf.config.hotHashData"),R=_.Yc("yt.gcf.config.coldHashData");c&&I&&R&&(G.debounceTimer=(0,_.Fa)());return{coldConfigData:c,hotHashData:I,coldHashData:R}}},Fxp=function(G){eR0(G,_.H1("RAW_COLD_CONFIG_GROUP"));
q4e(G,_.H1("SERIALIZED_COLD_HASH_DATA"));var c;oVK(G,(c=G.coldGlobalConfigGroup)==null?void 0:c.configData)},nVe=function(G){Opk(G,_.H1("RAW_HOT_CONFIG_GROUP"));
G.setHotHashData(_.H1("SERIALIZED_HOT_HASH_DATA"))},Opk=function(G,c){G.hotGlobalConfigGroup=c;
_.lr("yt.gcf.config.hotConfigGroup",G.hotGlobalConfigGroup||null)},eR0=function(G,c){G.coldGlobalConfigGroup=c;
_.lr("yt.gcf.config.coldConfigGroup",G.coldGlobalConfigGroup||null)};
iB.prototype.setHotHashData=function(G){this.hotHashData=G;_.lr("yt.gcf.config.hotHashData",this.hotHashData||null)};
var q4e=function(G,c){G.coldHashData=c;_.lr("yt.gcf.config.coldHashData",G.coldHashData||null)},oVK=function(G,c){G.configData=c;
_.lr("yt.gcf.config.coldConfigData",G.configData||null)},x1=function(){return _.Yc("yt.gcf.config.hotConfigGroup")},NLN=function(){return _.Yc("yt.gcf.config.coldConfigGroup")};var A$={},uf9=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";A$.assign=function(G){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var I=c.shift();if(I){if(typeof I!=="object")throw new TypeError("Zc`"+I);for(var R in I)Object.prototype.hasOwnProperty.call(I,R)&&(G[R]=I[R])}}return G};
A$.shrinkBuf=function(G,c){if(G.length===c)return G;if(G.subarray)return G.subarray(0,c);G.length=c;return G};
var bp9={arraySet:function(G,c,I,R,Z){if(c.subarray&&G.subarray)G.set(c.subarray(I,I+R),Z);else for(var K=0;K<R;K++)G[Z+K]=c[I+K]},
flattenChunks:function(G){var c,I;var R=I=0;for(c=G.length;R<c;R++)I+=G[R].length;var Z=new Uint8Array(I);R=I=0;for(c=G.length;R<c;R++){var K=G[R];Z.set(K,I);I+=K.length}return Z}},kv9={arraySet:function(G,c,I,R,Z){for(var K=0;K<R;K++)G[Z+K]=c[I+K]},
flattenChunks:function(G){return[].concat.apply([],G)}};
A$.setTyped=function(){uf9?(A$.Buf8=Uint8Array,A$.Buf16=Uint16Array,A$.Buf32=Int32Array,A$.assign(A$,bp9)):(A$.Buf8=Array,A$.Buf16=Array,A$.Buf32=Array,A$.assign(A$,kv9))};
A$.setTyped();var s6K=!0;try{new Uint8Array(1)}catch(G){s6K=!1}
var iEq=function(G){var c,I,R=G.length,Z=0;for(c=0;c<R;c++){var K=G.charCodeAt(c);if((K&64512)===55296&&c+1<R){var m=G.charCodeAt(c+1);(m&64512)===56320&&(K=65536+(K-55296<<10)+(m-56320),c++)}Z+=K<128?1:K<2048?2:K<65536?3:4}var a=new A$.Buf8(Z);for(c=I=0;I<Z;c++)K=G.charCodeAt(c),(K&64512)===55296&&c+1<R&&(m=G.charCodeAt(c+1),(m&64512)===56320&&(K=65536+(K-55296<<10)+(m-56320),c++)),K<128?a[I++]=K:(K<2048?a[I++]=192|K>>>6:(K<65536?a[I++]=224|K>>>12:(a[I++]=240|K>>>18,a[I++]=128|K>>>12&63),a[I++]=
128|K>>>6&63),a[I++]=128|K&63);return a};var keT={};keT=function(G,c,I,R){var Z=G&65535|0;G=G>>>16&65535|0;for(var K;I!==0;){K=I>2E3?2E3:I;I-=K;do Z=Z+c[R++]|0,G=G+Z|0;while(--K);Z%=65521;G%=65521}return Z|G<<16|0};for(var rJ={},t4,Lxk=[],AX2=0;AX2<256;AX2++){t4=AX2;for(var $9B=0;$9B<8;$9B++)t4=t4&1?3988292384^t4>>>1:t4>>>1;Lxk[AX2]=t4}rJ=function(G,c,I,R){I=R+I;for(G^=-1;R<I;R++)G=G>>>8^Lxk[(G^c[R])&255];return G^-1};var Mt={};Mt={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 lbg=[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],wHq=[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],Wcb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],uN8=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J$=Array(576);br(J$);var Wl=Array(60);br(Wl);var Sv=Array(512);br(Sv);var $$=Array(256);br($$);var qUT=Array(29);br(qUT);var Fc8=Array(30);br(Fc8);var zSp,EaA,Jir,Vx8=!1;var h$;
h$=[new t$(0,0,0,0,function(G,c){var I=65535;for(I>G.pending_buf_size-5&&(I=G.pending_buf_size-5);;){if(G.lookahead<=1){jv(G);if(G.lookahead===0&&c===0)return 1;if(G.lookahead===0)break}G.strstart+=G.lookahead;G.lookahead=0;var R=G.block_start+I;if(G.strstart===0||G.strstart>=R)if(G.lookahead=G.strstart-R,G.strstart=R,ir(G,!1),G.strm.avail_out===0)return 1;if(G.strstart-G.block_start>=G.w_size-262&&(ir(G,!1),G.strm.avail_out===0))return 1}G.insert=0;if(c===4)return ir(G,!0),G.strm.avail_out===0?3:
4;G.strstart>G.block_start&&ir(G,!1);return 1}),
new t$(4,4,8,4,sIC),new t$(4,5,16,8,sIC),new t$(4,6,32,32,sIC),new t$(4,4,16,16,x$),new t$(8,16,32,32,x$),new t$(8,16,128,128,x$),new t$(8,32,128,256,x$),new t$(32,128,258,1024,x$),new t$(32,258,258,4096,x$)];var Mxg={};Mxg=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 fb0=Object.prototype.toString;
pHb.prototype.push=function(G,c){var I=this.strm,R=this.options.chunkSize;if(this.ended)return!1;var Z=c===~~c?c:c===!0?4:0;typeof G==="string"?I.input=iEq(G):fb0.call(G)==="[object ArrayBuffer]"?I.input=new Uint8Array(G):I.input=G;I.next_in=0;I.avail_in=I.input.length;do{I.avail_out===0&&(I.output=new A$.Buf8(R),I.next_out=0,I.avail_out=R);G=SUq(I,Z);if(G!==1&&G!==0)return S40(this,G),this.ended=!0,!1;if(I.avail_out===0||I.avail_in===0&&(Z===4||Z===2))if(this.options.to==="string"){var K=A$.shrinkBuf(I.output,
I.next_out);c=K;K=K.length;if(K<65537&&(c.subarray&&s6K||!c.subarray))c=String.fromCharCode.apply(null,A$.shrinkBuf(c,K));else{for(var m="",a=0;a<K;a++)m+=String.fromCharCode(c[a]);c=m}this.chunks.push(c)}else c=A$.shrinkBuf(I.output,I.next_out),this.chunks.push(c)}while((I.avail_in>0||I.avail_out===0)&&G!==1);if(Z===4)return(I=this.strm)&&I.state?(R=I.state.status,R!==42&&R!==69&&R!==73&&R!==91&&R!==103&&R!==113&&R!==666?G=VN(I,-2):(I.state=null,G=R===113?VN(I,-3):0)):G=-2,S40(this,G),this.ended=
!0,G===0;Z===2&&(S40(this,0),I.avail_out=0);return!0};
var S40=function(G,c){c===0&&(G.result=G.options.to==="string"?G.chunks.join(""):A$.flattenChunks(G.chunks));G.chunks=[];G.err=c;G.msg=G.strm.msg};var pY0=typeof TextEncoder!=="undefined"?new TextEncoder:null,qmO=pY0?function(G){return pY0.encode(G)}:function(G){G=_.zB(G);
for(var c=new Uint8Array(G.length),I=0;I<c.length;I++)c[I]=G[I];return c};var RyU={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},K1r={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var h4=function(G,c){this.version=G;this.args=c};
h4.prototype.serialize=function(){return{version:this.version,args:this.args}};var txO=function(G,c){this.topic=G;this.dataClass=c};
txO.prototype.toString=function(){return this.topic};var MCV=_.Yc("ytPubsub2Pubsub2Instance")||new _.p4;_.p4.prototype.subscribe=_.p4.prototype.subscribe;_.p4.prototype.unsubscribeByKey=_.p4.prototype.unsubscribeByKey;_.p4.prototype.publish=_.p4.prototype.publish;_.p4.prototype.clear=_.p4.prototype.clear;_.lr("ytPubsub2Pubsub2Instance",MCV);var xDr=_.Yc("ytPubsub2Pubsub2SubscribedKeys")||{};_.lr("ytPubsub2Pubsub2SubscribedKeys",xDr);var dD8=_.Yc("ytPubsub2Pubsub2TopicToKeys")||{};_.lr("ytPubsub2Pubsub2TopicToKeys",dD8);
var hSi=_.Yc("ytPubsub2Pubsub2IsAsync")||{};_.lr("ytPubsub2Pubsub2IsAsync",hSi);_.lr("ytPubsub2Pubsub2SkipSubKey",null);var RXb=void 0,ccr=void 0;var OH0=_.DH("max_body_size_to_compress",5E5),eXr=_.DH("min_body_size_to_compress",500),Hl=!0,nWp=0,Xa=0,F9r=_.DH("compression_performance_threshold_lr",250),DYb=_.DH("slow_compressions_before_abandon_count",4),POA=!1,Qsg=new Map,l4O=1,NDg=!0;_.eg(yN,UYB);yN.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 VCK=function(G,c,I){I||(I=0);var R=G.W_;if(typeof c==="string")for(var Z=0;Z<16;Z++)R[Z]=c.charCodeAt(I)<<24|c.charCodeAt(I+1)<<16|c.charCodeAt(I+2)<<8|c.charCodeAt(I+3),I+=4;else for(Z=0;Z<16;Z++)R[Z]=c[I]<<24|c[I+1]<<16|c[I+2]<<8|c[I+3],I+=4;for(c=16;c<80;c++)I=R[c-3]^R[c-8]^R[c-14]^R[c-16],R[c]=(I<<1|I>>>31)&4294967295;c=G.chain_[0];I=G.chain_[1];Z=G.chain_[2];for(var K=G.chain_[3],m=G.chain_[4],a,O,N=0;N<80;N++)N<40?N<20?(a=K^I&(Z^K),O=1518500249):(a=I^Z^K,O=1859775393):N<60?(a=I&Z|K&(I|Z),
O=2400959708):(a=I^Z^K,O=3395469782),a=(c<<5|c>>>27)+a+m+O+R[N]&4294967295,m=K,K=Z,Z=(I<<30|I>>>2)&4294967295,I=c,c=a;G.chain_[0]=G.chain_[0]+c&4294967295;G.chain_[1]=G.chain_[1]+I&4294967295;G.chain_[2]=G.chain_[2]+Z&4294967295;G.chain_[3]=G.chain_[3]+K&4294967295;G.chain_[4]=G.chain_[4]+m&4294967295};
yN.prototype.update=function(G,c){if(G!=null){c===void 0&&(c=G.length);for(var I=c-this.blockSize,R=0,Z=this.buf_,K=this.inbuf_;R<c;){if(K==0)for(;R<=I;)VCK(this,G,R),R+=this.blockSize;if(typeof G==="string")for(;R<c;){if(Z[K]=G.charCodeAt(R),++K,++R,K==this.blockSize){VCK(this,Z);K=0;break}}else for(;R<c;)if(Z[K]=G[R],++K,++R,K==this.blockSize){VCK(this,Z);K=0;break}}this.inbuf_=K;this.total_+=c}};
yN.prototype.digest=function(){var G=[],c=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var I=this.blockSize-1;I>=56;I--)this.buf_[I]=c&255,c/=256;VCK(this,this.buf_);for(I=c=0;I<5;I++)for(var R=24;R>=0;R-=8)G[c]=this.chain_[I]>>R&255,++c;return G};var k1U;var Cu=function(G){var c=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(q){c.databaseToken=q},
triggerThrottle:function(){c.throttledSend()},
cancelThrottle:function(){c.cancelThrottledSend()},
immediateSend:function(q){return _.T(function(w){return w.yield(c.immediateSend(q),0)})},
requestWithinAgeLimit:function(q,w){return c.requestWithinAgeLimit(q,w)},
retryQueuedRequests:function(){c.retryQueuedRequests()}};
var I;this.throttleTimeout=(I=G.throttleTimeout)!=null?I:100;var R;this.retryMaxAttempts=(R=G.retryMaxAttempts)!=null?R:1;var Z;this.requestAgeLimitMs=(Z=G.requestAgeLimitMs)!=null?Z:2592E6;var K;this.queuedRequestAgeLimitMs=(K=G.queuedRequestAgeLimitMs)!=null?K:12E4;var m;this.retryDelayMs=(m=G.retryDelayMs)!=null?m:5E3;var a;this.databaseToken=(a=G.databaseToken)!=null?a:void 0;this.enableCleaning=!!G.enableCleaning;var O;this.cleaningRate=(O=G.cleaningRate)!=null?O:.1;var N;this.potentialEsfErrorLimit=
(N=G.potentialEsfErrorLimit)!=null?N:10;G.handleError&&(this.handleError=G.handleError);G.handleWarning&&(this.handleWarning=G.handleWarning);G.disableYtIdbTransactions&&(this.disableYtIdbTransactions=G.disableYtIdbTransactions);G.bypassDbTokenDependency&&(this.bypassDbTokenDependency=G.bypassDbTokenDependency);this.getBooleanFlag=G.getBooleanFlag;this.jobManager=G.jobManager;this.logsStore=G.logsStore;this.networkManager=G.networkManager;this.sendFn=G.sendFn;this.onlineEvent=G.onlineEvent;this.offlineEvent=
G.offlineEvent;da(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&zRK(this)},zRK=function(G){da(G)&&!G.disableYtIdbTransactions&&(G.initialized=!0,G.enableCleaning&&Math.random()<=G.cleaningRate&&G.logsStore.cleanLogsStore(G.databaseToken),G.retryQueuedRequests(),G.networkManager.isNetworkAvailable()&&G.throttledSend(),G.networkManager.listen(G.onlineEvent,G.throttledSend.bind(G)),G.networkManager.listen(G.offlineEvent,G.cancelThrottledSend.bind(G)))};
_.P=Cu.prototype;_.P.writeThenSend=function(G,c){var I=this;c=c===void 0?{}:c;if(da(this)&&this.initialized){var R={url:G,options:c,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(R,this.databaseToken).then(function(Z){R.id=Z;I.networkManager.isNetworkAvailable()&&I.immediateSend(R)}).catch(function(Z){I.immediateSend(R);
EVV(I,Z)})}else this.sendFn(G,c)};
_.P.sendThenWrite=function(G,c,I){var R=this;c=c===void 0?{}:c;if(da(this)&&this.initialized){var Z={url:G,options:c,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Z.skipRetry=I);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Z.skipRetry){if(!Z.skipRetry){var K=c.onError?c.onError:function(){};
c.onError=function(m,a){return _.T(function(O){if(O.nextAddress==1)return O.yield(R.logsStore.set(Z,R.databaseToken).catch(function(N){EVV(R,N)}),2);
K(m,a);_.Vp(O)})}}this.sendFn(G,c,Z.skipRetry)}else this.logsStore.set(Z,this.databaseToken).catch(function(m){R.sendFn(G,c,Z.skipRetry);
EVV(R,m)})}else this.sendFn(G,c,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&I)};
_.P.sendAndWrite=function(G,c){var I=this;c=c===void 0?{}:c;if(da(this)&&this.initialized){var R={url:G,options:c,timestamp:this.now(),status:"NEW",sendCount:0},Z=!1,K=c.onSuccess?c.onSuccess:function(){};
R.options.onSuccess=function(m,a){R.id!==void 0?I.logsStore.deleteRequest(R.id,I.databaseToken):Z=!0;I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);K(m,a)};
this.sendFn(R.url,R.options,void 0,!0);this.logsStore.set(R,this.databaseToken).then(function(m){R.id=m;Z&&I.logsStore.deleteRequest(R.id,I.databaseToken)}).catch(function(m){EVV(I,m)})}else this.sendFn(G,c,void 0,!0)};
_.P.throttledSend=function(){var G=this;if(!da(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(G.logsStore.getMostRecentByStatus("NEW",G.databaseToken),2);if(I.nextAddress!=3)return c=I.yieldResult,c?I.yield(G.immediateSend(c),3):(G.cancelThrottledSend(),I.return());G.intervalJob&&(G.intervalJob=0,G.throttledSend());_.Vp(I)})},this.throttleTimeout))};
_.P.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.P.immediateSend=function(G){var c=this,I;return _.T(function(R){switch(R.nextAddress){case 1:if(!da(c))throw Error("cd");if(G.id===void 0){R.jumpTo(2);break}return R.yield(c.logsStore.markAsQueued(G.id,c.databaseToken),3);case 3:(I=R.yieldResult)||c.handleWarning(Error("dd"));case 2:if(c.requestWithinAgeLimit(G,c.requestAgeLimitMs)){R.jumpTo(4);break}c.handleWarning(Error("ed"));if(G.id===void 0){R.jumpTo(5);break}return R.yield(c.logsStore.deleteRequest(G.id,c.databaseToken),5);case 5:return R.return();
case 4:G.skipRetry||(G=JXA(c,G));if(!G){R.jumpTo(0);break}if(!G.skipRetry||G.id===void 0){R.jumpTo(8);break}return R.yield(c.logsStore.deleteRequest(G.id,c.databaseToken),8);case 8:c.sendFn(G.url,G.options,!!G.skipRetry),_.Vp(R)}})};
var JXA=function(G,c){if(!da(G))throw Error("fd");var I=c.options.onError?c.options.onError:function(){};
c.options.onError=function(Z,K){var m,a,O,N;return _.T(function(q){switch(q.nextAddress){case 1:m=SmC(K);(a=pBT(K))&&G.getBooleanFlag&&G.getBooleanFlag("web_enable_error_204")&&G.handleError(Error("gd"),c.url,K);if(!(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&m||G.getBooleanFlag&&!G.getBooleanFlag("nwl_consider_error_code")&&G.potentialEsfErrorCounter<=G.potentialEsfErrorLimit)){q.jumpTo(2);break}if(!G.networkManager.sendNetworkCheckRequest){q.jumpTo(3);break}return q.yield(G.networkManager.sendNetworkCheckRequest(),
3);case 3:if(G.networkManager.isNetworkAvailable()){q.jumpTo(2);break}I(Z,K);if(!G.getBooleanFlag||!G.getBooleanFlag("nwl_consider_error_code")||((O=c)==null?void 0:O.id)===void 0){q.jumpTo(6);break}return q.yield(G.logsStore.resetRequest(c.id,G.databaseToken,!1),6);case 6:return q.return();case 2:if(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&!m&&G.potentialEsfErrorCounter>G.potentialEsfErrorLimit)return q.return();G.potentialEsfErrorCounter++;if(((N=c)==null?void 0:N.id)===void 0){q.jumpTo(8);
break}return c.sendCount<G.retryMaxAttempts?q.yield(G.logsStore.resetRequest(c.id,G.databaseToken,!0,a?!1:void 0),12):q.yield(G.logsStore.deleteRequest(c.id,G.databaseToken),8);case 12:G.jobManager.addLowPriorityJob(function(){G.networkManager.isNetworkAvailable()&&G.throttledSend()},G.retryDelayMs);
case 8:I(Z,K),_.Vp(q)}})};
var R=c.options.onSuccess?c.options.onSuccess:function(){};
c.options.onSuccess=function(Z,K){var m;return _.T(function(a){if(a.nextAddress==1)return((m=c)==null?void 0:m.id)===void 0?a.jumpTo(2):a.yield(G.logsStore.deleteRequest(c.id,G.databaseToken),2);G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);R(Z,K);_.Vp(a)})};
return c};
Cu.prototype.requestWithinAgeLimit=function(G,c){G=G.timestamp;return this.now()-G>=c?!1:!0};
Cu.prototype.retryQueuedRequests=function(){var G=this;if(!da(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(c){c&&!G.requestWithinAgeLimit(c,G.queuedRequestAgeLimitMs)?G.jobManager.addLowPriorityJob(function(){return _.T(function(I){if(I.nextAddress==1)return c.id===void 0?I.jumpTo(2):I.yield(G.logsStore.resetRequest(c.id,G.databaseToken),2);G.retryQueuedRequests();_.Vp(I)})}):G.networkManager.isNetworkAvailable()&&G.throttledSend()})};
var EVV=function(G,c){G.writeError&&!G.networkManager.isNetworkAvailable()?G.writeError(c):G.handleError(c)},da=function(G){return!!G.databaseToken||G.bypassDbTokenDependency};var MDO;var Bib={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532};var WxT={},jsr=wJ("ServiceWorkerLogsDatabase",{objectStores:(WxT.SWHealthLog={addedAtVersion:1},WxT),shared:!0,upgrade:function(G,c){c(1)&&c_(Ga(G,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var ycp={},XB0=0;var cN8;var HS=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},P_=function(){if(!HS.instance){var G=_.Yc("yt.networkRequestMonitor.instance")||new HS;
_.lr("yt.networkRequestMonitor.instance",G);HS.instance=G}return HS.instance};
HS.prototype.requestComplete=function(G,c){c&&(this.anyRequestHasSucceeded=!0);G=this.removeParams(G);this.requestMap.get(G)||this.requestMap.set(G,c)};
HS.prototype.isEndpointCFR=function(G){G=this.removeParams(G);return(G=this.requestMap.get(G))?!1:G===!1&&this.anyRequestHasSucceeded?!0:null};
HS.prototype.removeParams=function(G){return G.split("?")[0]};
HS.prototype.removeParams=HS.prototype.removeParams;HS.prototype.isEndpointCFR=HS.prototype.isEndpointCFR;HS.prototype.requestComplete=HS.prototype.requestComplete;HS.getInstance=P_;var X8=function(G){_.r4.call(this);var c=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=G!=null?G:{addLowPriorityJob:function(Z,K){return setTimeout(Z,K)},
cancelJob:function(Z){clearTimeout(Z)}};
var I,R;this.isOnline=(R=(I=window.navigator)==null?void 0:I.onLine)!=null?R:!0;this.onNavigatorChange=function(){return _.T(function(Z){return Z.yield(ipe(c),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||fYT(this)};
_.u(X8,_.r4);X8.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete X8.instance};
X8.prototype.isNetworkAvailable=function(){return this.isOnline};
var fYT=function(G){G.pollingJob=G.jobManager.addLowPriorityJob(function(){var c;return _.T(function(I){if(I.nextAddress==1)return G.isOnline?((c=window.navigator)==null?0:c.onLine)?I.jumpTo(3):I.yield(ipe(G),3):I.yield(ipe(G),3);fYT(G);_.Vp(I)})},3E4)},ipe=function(G,c){return G.networkRequestPromise?G.networkRequestPromise:G.networkRequestPromise=new Promise(function(I){var R,Z,K,m;
return _.T(function(a){switch(a.nextAddress){case 1:return R=window.AbortController?new window.AbortController:void 0,K=(Z=R)==null?void 0:Z.signal,m=!1,_.s9(a,2,3),R&&(G.abortTimeoutKey=G.jobManager.addLowPriorityJob(function(){R.abort()},c||2E4)),a.yield(fetch("/generate_204",{method:"HEAD",
signal:K}),5);case 5:m=!0;case 3:_.A_(a);G.networkRequestPromise=void 0;G.abortTimeoutKey&&(G.jobManager.cancelJob(G.abortTimeoutKey),G.abortTimeoutKey=0);m!==G.isOnline&&(G.isOnline=m,G.isOnline?G.dispatchEvent("networkstatus-online"):G.dispatchEvent("networkstatus-offline"));I(m);_.pT(a,0);break;case 2:_.M3(a),m=!1,a.jumpTo(3)}})})};var ya=function(){_.r4.call(this);var G=this;this.shouldFlushErrors=!1;X8.instance||(X8.instance=new X8(_.dJ));this.sharedNetworkStatusManager=X8.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(G.shouldFlushErrors&&_.v("offline_error_handling")){var c=IPp().get("errors",!0);if(c){for(var I in c)if(c[I]){var R=new _.iW(I,"sent via offline_errors");R.name=c[I].name;R.stack=c[I].stack;R.level=c[I].level;_.yL(R)}IPp().set("errors",{},2592E3,!0)}}})};
_.u(ya,_.r4);var BL0=function(){if(!ya.instance){var G=_.Yc("yt.networkStatusManager.instance")||new ya;_.lr("yt.networkStatusManager.instance",G);ya.instance=G}return ya.instance};
_.P=ya.prototype;_.P.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.P.networkStatusHint=function(G){this.sharedNetworkStatusManager.isOnline=G};
_.P.getWindowStatus=function(){var G=window.navigator.onLine;return G===void 0?!0:G};
_.P.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.P.listen=function(G,c){return this.sharedNetworkStatusManager.listen(G,c)};
_.P.sendNetworkCheckRequest=function(G){G=ipe(this.sharedNetworkStatusManager,G);G.then(function(c){_.v("use_cfr_monitor")&&P_().requestComplete("generate_204",c)});
return G};
ya.prototype.sendNetworkCheckRequest=ya.prototype.sendNetworkCheckRequest;ya.prototype.listen=ya.prototype.listen;ya.prototype.enableErrorFlushing=ya.prototype.enableErrorFlushing;ya.prototype.getWindowStatus=ya.prototype.getWindowStatus;ya.prototype.networkStatusHint=ya.prototype.networkStatusHint;ya.prototype.isNetworkAvailable=ya.prototype.isNetworkAvailable;ya.getInstance=BL0;_.Kk=function(G){G=G===void 0?{}:G;_.r4.call(this);var c=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=BL0();var I=_.Yc("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);I&&(G.rateLimit?(this.rateLimit=G.rateLimit,I("networkstatus-online",function(){rX0(c,"publicytnetworkstatus-online")}),I("networkstatus-offline",function(){rX0(c,"publicytnetworkstatus-offline")})):(I("networkstatus-online",function(){c.dispatchEvent("publicytnetworkstatus-online")}),I("networkstatus-offline",
function(){c.dispatchEvent("publicytnetworkstatus-offline")})))};
_.u(_.Kk,_.r4);_.Kk.prototype.isNetworkAvailable=function(){var G=_.Yc("yt.networkStatusManager.instance.isNetworkAvailable");return G?G.bind(this.nsmInstance)():!0};
_.Kk.prototype.networkStatusHint=function(G){var c=_.Yc("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);c&&c(G)};
_.Kk.prototype.sendNetworkCheckRequest=function(G){var c=this,I;return _.T(function(R){I=_.Yc("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(c.nsmInstance);return _.v("skip_network_check_if_cfr")&&P_().isEndpointCFR("generate_204")?R.return(new Promise(function(Z){var K;c.networkStatusHint(((K=window.navigator)==null?void 0:K.onLine)||!0);Z(c.isNetworkAvailable())})):I?R.return(I(G)):R.return(!0)})};
var rX0=function(G,c){G.rateLimit?G.lastJobTime?(_.dJ.cancelJob(G.schedulerJob),G.schedulerJob=_.dJ.addLowPriorityJob(function(){G.lastPublicSignalSent!==c&&(G.dispatchEvent(c),G.lastPublicSignalSent=c,G.lastJobTime=(0,_.Fa)())},G.rateLimit-((0,_.Fa)()-G.lastJobTime))):(G.dispatchEvent(c),G.lastPublicSignalSent=c,G.lastJobTime=(0,_.Fa)()):G.dispatchEvent(c)};var QJ0,Y1=function(){Cu.call(this,{logsStore:{cleanLogsStore:BDO,deleteRequest:f4p,getMostRecentByStatus:Jc8,markAsQueued:W9r,resetRequest:iHU,set:EWr},networkManager:_.mCf(),handleError:function(G,c,I){var R,Z=I==null?void 0:(R=I.error)==null?void 0:R.code;if(Z===400||Z===415){var K;G=new _.iW(G.message,c,I==null?void 0:(K=I.error)==null?void 0:K.code);_.Ra(G,void 0,void 0,void 0,!0)}else _.yL(G)},
handleWarning:_.Ra,sendFn:Kw0,now:_.Fa,writeError:RGr,jobManager:_.E_(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.DH("potential_esf_error_limit",10),getBooleanFlag:_.v,disableYtIdbTransactions:!(_.WK()&&_.aPU())});this.initializationPromise=new _.Te;_.v("networkless_immediately_drop_all_requests")&&rcp();pYr("LogsDatabaseV2")};
_.u(Y1,Cu);_.x9B=function(){var G=_.Yc("yt.networklessRequestController.instance");G||(G=new Y1,_.lr("yt.networklessRequestController.instance",G),_.v("networkless_logging")&&_.qt().then(function(c){G.databaseToken=c;zRK(G);G.initializationPromise.resolve();G.enableCleaning&&Math.random()<=G.cleaningRate&&G.databaseToken&&tDC(G.databaseToken);_.v("networkless_immediately_drop_sw_health_store")&&j62(G)}));
return G};
Y1.prototype.writeThenSend=function(G,c){c||(c={});c=PDf(G,c);_.WK()||(this.initialized=!1);Cu.prototype.writeThenSend.call(this,G,c)};
Y1.prototype.sendThenWrite=function(G,c,I){c||(c={});c=PDf(G,c);_.WK()||(this.initialized=!1);Cu.prototype.sendThenWrite.call(this,G,c,I)};
Y1.prototype.sendAndWrite=function(G,c){c||(c={});c=PDf(G,c);_.WK()||(this.initialized=!1);Cu.prototype.sendAndWrite.call(this,G,c)};
Y1.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var j62=function(G){var c;_.T(function(I){if(!G.databaseToken)throw c=Gc("clearSWHealthLogsDb"),c;return I.return(hX0(G.databaseToken).catch(function(R){G.handleError(R)}))})};_.Odi=!1;_.T0r=_.Rq.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Odi};_.lr("ytNetworklessLoggingInitializationOptions",_.T0r);var jc=function(G){var c=this;this.config_=null;G?this.config_=G:BLr()&&(this.config_=_.vl());_.W_(_.dJ,function(){$YO(c)},5E3)};
jc.prototype.isReady=function(){!this.config_&&BLr()&&(this.config_=_.vl());return!!this.config_};
var Acr=function(G,c,I,R){!_.H1("VISITOR_DATA")&&c!=="visitor_id"&&Math.random()<.01&&_.Ra(new _.iW("Missing VISITOR_DATA when sending innertube request.",c,I,R));if(!G.isReady()){var Z=new _.iW("innertube xhrclient not ready",c,I,R);_.yL(Z);throw Z;}var K={headers:R.headers||{},method:"POST",postParams:I,postBody:R.postBody,postBodyFormat:R.postBodyFormat||"JSON",onTimeout:function(){R.onTimeout()},
onFetchTimeout:R.onTimeout,onSuccess:function(w,F){if(R.onSuccess)R.onSuccess(F)},
onFetchSuccess:function(w){if(R.onSuccess)R.onSuccess(w)},
onProgress:function(w){if(R.onProgress)R.onProgress(w)},
onError:function(w,F){if(R.onError)R.onError(F)},
onFetchError:function(w){if(R.onError)R.onError(w)},
timeout:R.timeout,withCredentials:!0,compress:R.compress};K.headers["Content-Type"]||(K.headers["Content-Type"]="application/json");var m="";(Z=G.config_.innertubeHostOverride)&&(m=Z);var a=G.config_.innertubeUseThirdPartyAuth||!1,O=_.RSq(a,m,R);Object.assign(K.headers,O);K.headers.Authorization&&!m&&a&&(K.headers["x-origin"]=window.location.origin);var N=_.mb(m+("/youtubei/"+G.config_.innertubeApiVersion+"/"+c),{alt:"json"}),q=function(w){w=w===void 0?!1:w;var F;if(R.retry&&m!="www.youtube-nocookie.com"&&
(w||_.v("skip_ls_gel_retry")||K.headers["Content-Type"]!=="application/json"||(F=ssq(c,I,O,a)),F)){var n=K.onSuccess,U=K.onFetchSuccess;K.onSuccess=function(M,z){L9T(F);n(M,z)};
I.onFetchSuccess=function(M,z){L9T(F);U(M,z)}}try{if(w&&R.retry&&!R.networklessOptions.bypassNetworkless)K.method="POST",R.networklessOptions.writeThenSend?_.x9B().writeThenSend(N,K):_.x9B().sendAndWrite(N,K);
else if(R.compress){var k=!R.networklessOptions.writeThenSend;if(K.postBody){var p=K.postBody;typeof p!=="string"&&(p=JSON.stringify(K.postBody));wBT(N,p,K,_.$6,k)}else wBT(N,JSON.stringify(K.postParams),K,bCf,k)}else bCf(N,K)}catch(M){if(M.name==="InvalidAccessError")F&&(L9T(F),F=0),_.Ra(Error("id"));else throw M;}F&&_.W_(_.dJ,function(){$YO(G)},5E3)};
_.eGT()?ufC().then(function(w){q(w)}):q(!1)};var VMT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(VMT,_.aR);var tCT=0,lPq=_.vC?"webkit":_.ny?"moz":_.FY?"ms":dfK?"o":"";_.lr("ytDomDomGetNextId",_.Yc("ytDomDomGetNextId")||function(){return++tCT});var hRB={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},ec=function(G){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(G=
G||window.event){this.event=G;for(var c in G)c in hRB||(this[c]=G[c]);this.scale=G.scale;this.rotation=G.rotation;var I=G.target||G.srcElement;I&&I.nodeType==3&&(I=I.parentNode);this.target=I;var R=G.relatedTarget;if(R)try{R=R.nodeName?R:null}catch(Z){R=null}else this.type=="mouseover"?R=G.fromElement:this.type=="mouseout"&&(R=G.toElement);this.relatedTarget=R;this.clientX=G.clientX!=void 0?G.clientX:G.pageX;this.clientY=G.clientY!=void 0?G.clientY:G.pageY;this.keyCode=G.keyCode?G.keyCode:G.which;
this.charCode=G.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=G.altKey;this.ctrlKey=G.ctrlKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.pageX_=G.pageX;this.pageY_=G.pageY}}catch(Z){}},d9N=function(G){if(document.body&&document.documentElement){var c=document.body.scrollTop+document.documentElement.scrollTop;
G.pageX_=G.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);G.pageY_=G.clientY+c}};
ec.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
ec.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
ec.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Of=_.Rq.ytEventsEventsListeners||{};_.lr("ytEventsEventsListeners",Of);var DCB=_.Rq.ytEventsEventsCounter||{count:0};_.lr("ytEventsEventsCounter",DCB);var oCp=_.J5(function(){var G=!1;try{var c=Object.defineProperty({},"capture",{get:function(){G=!0}});
window.addEventListener("test",null,c)}catch(I){}return G});_.eg(lB,_.JK);lB.prototype.onMouseMove_=function(G){G.pageX_===void 0&&d9N(G);var c=G.pageX_;G.pageY_===void 0&&d9N(G);this.position_=new _.ts(c,G.pageY_)};
lB.prototype.checkPosition_=function(){if(this.position_){var G=(0,_.Fa)();if(this.previousTime_!=0){var c=this.previousPosition_,I=this.position_,R=c.x-I.x;c=c.y-I.y;R=Math.sqrt(R*R+c*c)/(G-this.previousTime_);this.cycles_[this.index_]=Math.abs((R-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(I=c=0;I<4;I++)c+=this.cycles_[I]||0;c>=3&&this.callback_();this.previousVelocity_=R}this.previousTime_=G;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
lB.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.UCA(this.mouseListenerKey_)};var Lwr={};var E5r=new _.vS("rawColdConfigGroup");var z8p=new _.vS("rawHotConfigGroup");var Cnk=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Cnk,_.aR);var MMb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(MMb,_.aR);var Jg=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G,500)};
_.u(Jg,_.aR);Jg.prototype.getPayloadCase=function(){return _.py(this,Hpe)};
Jg.prototype.getContext=function(){return _.Dw(this,MMb,33)};
var Hpe=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var A0O=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(A0O,_.aR);var ZQA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(ZQA,_.aR);ZQA.prototype.setVideoId=function(G){return Ag(this,1,Kqb,DW(G))};
ZQA.prototype.getPlaylistId=function(){return _.AK(this,VG(this,Kqb,2))};
var Kqb=[1,2];var UxO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(UxO,_.aR);UxO.prototype.getContext=function(){return _.Dw(this,$7,1)};
UxO.prototype.getTier=function(){return _.fy(this,7)};var XYT,nk,v_;XYT=_.Rq.ytPubsubPubsubInstance||new _.p4;nk=_.Rq.ytPubsubPubsubSubscribedKeys||{};v_=_.Rq.ytPubsubPubsubTopicToKeys||{};_.ANq=_.Rq.ytPubsubPubsubIsSynchronous||{};_.p4.prototype.subscribe=_.p4.prototype.subscribe;_.p4.prototype.unsubscribeByKey=_.p4.prototype.unsubscribeByKey;_.p4.prototype.publish=_.p4.prototype.publish;_.p4.prototype.clear=_.p4.prototype.clear;_.lr("ytPubsubPubsubInstance",XYT);_.lr("ytPubsubPubsubTopicToKeys",v_);_.lr("ytPubsubPubsubIsSynchronous",_.ANq);
_.lr("ytPubsubPubsubSubscribedKeys",nk);var ox=window;var GZ=_.v("web_enable_lifecycle_monitoring")&&Vk0()!==0,yX9=_.v("web_enable_lifecycle_monitoring");var gVT=function(G){var c=this;var I=I===void 0?0:I;var R=R===void 0?_.E_():R;this.JSC$11056_defaultPriority=I;this.scheduler=R;this.completedResolver=new _.Te;this.scheduledPayloads=G;for(G={i$jscomp$492:0};G.i$jscomp$492<this.scheduledPayloads.length;G={payload$jscomp$20:void 0,i$jscomp$492:G.i$jscomp$492},G.i$jscomp$492++)G.payload$jscomp$20=this.scheduledPayloads[G.i$jscomp$492],I=function(Z){return function(){Z.payload$jscomp$20.job();c.scheduledPayloads[Z.i$jscomp$492].processed=!0;c.scheduledPayloads.every(function(K){return K.processed===
!0})&&c.completedResolver.resolve()}}(G),R=this.getPriority(G.payload$jscomp$20),R=this.scheduler.addJob(I,R),this.scheduledPayloads[G.i$jscomp$492]=Object.assign({},G.payload$jscomp$20,{job:I,
jobId:R})};
gVT.prototype.flushJobs=function(){var G=this,c=Array.from(this.scheduledPayloads.keys()).sort(function(R,Z){return G.getPriority(G.scheduledPayloads[Z])-G.getPriority(G.scheduledPayloads[R])});
c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=this.scheduledPayloads[I.value],I.jobId===void 0||I.processed||(this.scheduler.cancelJob(I.jobId),this.scheduler.addJob(I.job,10))};
gVT.prototype.cancel=function(){for(var G=_.Q(this.scheduledPayloads),c=G.next();!c.done;c=G.next())c=c.value,c.jobId===void 0||c.processed||this.scheduler.cancelJob(c.jobId),c.processed=!0;this.completedResolver.resolve()};
gVT.prototype.getPriority=function(G){var c;return(c=G.priority)!=null?c:this.JSC$11056_defaultPriority};var cw=function(G){this.state=G;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};GZ&&zGr(this.state)};
cw.prototype.install=function(G){this.plugins.push(G);return this};
cw.prototype.uninstall=function(){var G=this;_.Hy.apply(0,arguments).forEach(function(c){c=G.plugins.indexOf(c);c>-1&&G.plugins.splice(c,1)})};
cw.prototype.transition=function(G,c){var I=this;GZ&&ECT(this.state);var R=this.transitions.find(function(K){return Array.isArray(K.from)?K.from.find(function(m){return m===I.state&&K.to===G}):K.from===I.state&&K.to===G});
if(R){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Y40(this,G,c);this.state=G;GZ&&zGr(this.state);R=R.action.bind(this);var Z=this.plugins.filter(function(K){return K[G]}).map(function(K){return K[G]});
R(GeK(this,Z),c)}else throw Error("jd`"+this.state+"`"+G);};
var GeK=function(G,c){var I=c.filter(function(Z){return cii(G,Z)===10}),R=c.filter(function(Z){return cii(G,Z)!==10});
return G.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Z=_.Hy.apply(0,arguments);return _.T(function(K){if(K.nextAddress==1)return K.yield(G.runImmediateJobsAsync.apply(G,[I].concat(_.jn(Z))),2);G.setJobSetWithScheduledJobs.apply(G,[R].concat(_.jn(Z)));_.Vp(K)})}:function(){var Z=_.Hy.apply(0,arguments);
G.runImmediateJobsSync.apply(G,[I].concat(_.jn(Z)));G.setJobSetWithScheduledJobs.apply(G,[R].concat(_.jn(Z)))}};
cw.prototype.runImmediateJobsSync=function(G){var c=_.Hy.apply(1,arguments);_.E_();for(var I=_.Q(G),R=I.next(),Z={};!R.done;Z={lifecycle$jscomp$2:void 0},R=I.next())Z.lifecycle$jscomp$2=R.value,Qe(function(K){return function(){IbN(K.lifecycle$jscomp$2.name);Wwi(function(){return K.lifecycle$jscomp$2.callback.apply(K.lifecycle$jscomp$2,_.jn(c))});
Ik(K.lifecycle$jscomp$2.name)}}(Z))};
cw.prototype.runImmediateJobsAsync=function(G){var c=_.Hy.apply(1,arguments),I,R,Z,K;return _.T(function(m){m.nextAddress==1&&(_.E_(),I=_.Q(G),R=I.next(),Z={});if(m.nextAddress!=3){if(R.done)return m.jumpTo(0);Z.lifecycle$jscomp$3=R.value;Z.asyncJobCompletion=void 0;K=function(a){return function(){IbN(a.lifecycle$jscomp$3.name);var O=Wwi(function(){return a.lifecycle$jscomp$3.callback.apply(a.lifecycle$jscomp$3,_.jn(c))});
bNi(O)?a.asyncJobCompletion=_.v("web_lifecycle_error_handling_killswitch")?O.then(function(){Ik(a.lifecycle$jscomp$3.name)}):O.then(function(){Ik(a.lifecycle$jscomp$3.name)},function(N){JNT(N);
Ik(a.lifecycle$jscomp$3.name)}):Ik(a.lifecycle$jscomp$3.name)}}(Z);
Qe(K);return Z.asyncJobCompletion?m.yield(Z.asyncJobCompletion,3):m.jumpTo(3)}Z={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};R=I.next();return m.jumpTo(2)})};
cw.prototype.setJobSetWithScheduledJobs=function(G){var c=_.Hy.apply(1,arguments),I=this,R=G.map(function(Z){return{job:function(){IbN(Z.name);Wwi(function(){return Z.callback.apply(Z,_.jn(c))});
Ik(Z.name)},
priority:cii(I,Z)}});
R.length&&(this.jobSet=new gVT(R))};
var cii=function(G,c){var I,R;return(R=(I=G.overridePriority)!=null?I:c.priority)!=null?R:0},IbN=function(G){GZ&&G&&zGr(G)},Ik=function(G){GZ&&G&&ECT(G)},Y40=function(G,c,I){yX9&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+G.constructor.name+"] '"+G.state+"' to '"+c+"'"),console.log("with message: ",I),console.groupEnd())};
_.Nh.Object.defineProperties(cw.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var RS0=function(G){cw.call(this,G===void 0?"none":G);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},ZEp;
_.u(RS0,cw);RS0.prototype.runApplicationNavigationBegin=function(G,c){var I=this;this.navigationTimer=_.W_(_.dJ,function(){I.currentState==="application_navigating"&&I.transition("none")},5E3);
G(c==null?void 0:c.event)};
RS0.prototype.runApplicationNavigationEnd=function(G,c){this.navigationTimer&&(_.dJ.cancelJob(this.navigationTimer),this.navigationTimer=null);G(c==null?void 0:c.event)};
_.Vu8=function(){ZEp||(ZEp=new RS0);return ZEp};var Muq=[];_.lr("yt.logging.transport.getScrapedGelPayloads",function(){return Muq});var Uf=function(){var G=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return G.totalEntries}}};
Uf.prototype.storePayload=function(G,c){G=idA(G);this.store[G]?this.store[G].push(c):(this.memoizedKeySequences={},this.store[G]=[c]);this.totalEntries++;_.v("more_accurate_gel_parser")&&(c=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(c));return G};
Uf.prototype.smartExtractMatchingEntries=function(G){if(!G.keys.length)return[];for(var c=KcT(this,G.keys.splice(0,1)[0]),I=[],R=0;R<c.length;R++)this.store[c[R]]&&G.sizeLimit&&(this.store[c[R]].length<=G.sizeLimit?(I.push.apply(I,_.jn(this.store[c[R]])),delete this.store[c[R]]):I.push.apply(I,_.jn(this.store[c[R]].splice(0,G.sizeLimit))));this.totalEntries-=I.length;(G==null?0:G.sizeLimit)&&I.length<(G==null?void 0:G.sizeLimit)&&(G.sizeLimit-=I.length,I.push.apply(I,_.jn(this.smartExtractMatchingEntries(G))));
return I};
Uf.prototype.extractMatchingEntries=function(G){G=KcT(this,G);for(var c=[],I=0;I<G.length;I++)this.store[G[I]]&&(c.push.apply(c,_.jn(this.store[G[I]])),delete this.store[G[I]]);this.totalEntries-=c.length;return c};
Uf.prototype.getSequenceCount=function(G){G=KcT(this,G);for(var c=0,I=0;I<G.length;I++){var R=void 0;c+=((R=this.store[G[I]])==null?void 0:R.length)||0}return c};
var KcT=function(G,c){var I=idA(c);if(G.memoizedKeySequences[I])return G.memoizedKeySequences[I];var R=Object.keys(G.store)||[];if(R.length<=1&&idA(c)===R[0])return R;for(var Z=[],K=0;K<R.length;K++){var m=R[K].split("/");if(Pu0(c.auth,m[0])){var a=c.isJspb;Pu0(a===void 0?"undefined":a?"true":"false",m[1])&&Pu0(c.cttAuthInfo,m[2])&&(a=c.tier,a=a===void 0?"undefined":JSON.stringify(a),Pu0(a,m[3])&&Z.push(R[K]))}}return G.memoizedKeySequences[I]=Z},Pu0=function(G,c){return G===void 0||G==="undefined"?
!0:G===c};
Uf.prototype.getSequenceCount=Uf.prototype.getSequenceCount;Uf.prototype.extractMatchingEntries=Uf.prototype.extractMatchingEntries;Uf.prototype.smartExtractMatchingEntries=Uf.prototype.smartExtractMatchingEntries;Uf.prototype.storePayload=Uf.prototype.storePayload;var lXb,e80,q3r,k7,QIA,fXp,iQp,OQq,Tip,YnC,Nig,S3i,Q10;lXb=_.DH("initial_gel_batch_timeout",2E3);e80=_.DH("gel_queue_timeout_max_ms",6E4);q3r=_.DH("gel_min_batch_size",5);k7=void 0;QIA=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
fXp=new QIA;iQp=new QIA;OQq=new QIA;Tip=new QIA;Nig=!0;S3i=1;_.$xB=new Map;Q10=_.Rq.ytLoggingTransportTokensToCttTargetIds_||{};_.lr("ytLoggingTransportTokensToCttTargetIds_",Q10);var Pfp=_.Rq.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.lr("ytLoggingTransportTokensToJspbCttTargetIds_",Pfp);var bB={};var B_=_.Rq.ytLoggingGelSequenceIdObj_||{};_.lr("ytLoggingGelSequenceIdObj_",B_);var j1U=[];var cYf=new Set,Cfi=0,Ze0=0,RmO=0,XUg=[],HQ0=[],K7f=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var nZB=function(){};
nZB.prototype.getUrl=function(G,c){c=c===void 0?!1:c;return G.hasOwnProperty("shareEndpoint")?null:_.aA0(G,null,c)};
var ATr=function(G,c,I){G={endpoint:c,actions:[]};I=(I.path?I.path[0]:I.target).icon||"";c=I.indexOf(":");c>0&&(I=I.substr(c+1));I&&G.actions.push(I);return G};var qNr=/Command$/,lAA=/Endpoint$/,Oef=new Map;var mDT,abA;mDT=1;_.RD=function(){this.actionRoutingMap=new Map};
_.RD.prototype.triggerAction=function(G){var c=new OVT(G,!1,_.Hy.apply(1,arguments));this.handleAction(c);return c.returnValue};
_.RD.prototype.triggerOptionalAction=function(G){var c=new OVT(G,!0,_.Hy.apply(1,arguments));this.handleAction(c);return c.returnValue};
_.Rk=function(G,c,I){c.forEach(function(R){var Z=NPp(R);Z&&G.triggerOptionalAction(Z,R,I,void 0)})};
_.RD.prototype.handleAction=function(G){var c=this.actionRoutingMap.get(G.actionName);c&&abA(G,c);G.optionalAction||G.returnValue.length!==0||(G=new _.iW("Unhandled action",G.actionName),_.Ra(G))};
abA=function(G,c){c.forEach(function(I){var R=null;I?R=I.apply(null,G.args):(I=Error("kd"),I.params=G.actionName,_.yL(I));G.returnValue.push(R)})};
_.KY=function(G,c,I){I||(I=mDT++);for(var R=_.Q(Object.keys(c)),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var K=G.actionRoutingMap.get(Z);K||(K=new Map,G.actionRoutingMap.set(Z,K));G.registerActionHandler(I,Z,c[Z],K)}return I};
_.RD.prototype.registerActionHandler=function(G,c,I,R){R.set(G,_.gK(I))};
_.PN=function(G,c,I){c=_.Q(Object.keys(c));for(var R=c.next();!R.done;R=c.next())(R=G.actionRoutingMap.get(R.value))&&R.delete(I)};
_.To(_.RD);var oZB=function(G,c){var I=_.RD.getInstance();_.tI(function(){var R={},Z=_.KY(I,(R[G]=c,R));_.ty(function(){var K={};_.PN(I,(K[G]="",K),Z)})})};var pjr=Symbol("md");sfp=P6g;var ief=new Set(["For","If","Match","Watch"]),Tnk={},OEe=(Tnk[c1.default]=function(){return vd8},Tnk.style=function(){return vd8},Tnk),eSB;
for(eSB in OEe)le.attributes[eSB]=OEe[eSB](le.attributes[eSB]);var qq=new _.De("VISIBILITY_OBSERVER");var Her={retrieve:function(G){return this.id.\u0275prov.token===G.\u0275prov.token?this.contextValue:this?_.OZ(this,this.id):kcB}};var Gn0=function(G,c,I){if(G!==s9q)return!1;G=MRA(document.createElement("div"),function(){var R=nh(!1);try{I[0]()}finally{nh(R)}});
G=Array.from(G.childNodes);G.length===1&&(G=G[0]);return G};sfp=P6g;var Nne=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(G){}var lbA=typeof WeakRef==="function";var qU2=function(G){this.value=G};
qU2.prototype.deref=function(){return this.value};
var wH0=lbA?WeakRef:qU2,FcV=function(G){this.newKeyHandler=G;this.map=new WeakMap};
FcV.prototype.add=function(G,c){this.map.has(G)||(this.newKeyHandler(G),this.map.set(G,[]));this.map.get(G).push(new wH0(c))};
FcV.prototype.get=function(G){var c=this;return function R(){var Z,K,m,a,O,N,q,w,F,n,U;return _.F0(R,function(k){switch(k.nextAddress){case 1:_.$m(k,2);Z=c.map.get(G);if(!Z)return k.return();K=0;m=_.Q(Z);a=m.next();case 4:if(a.done){k.jumpTo(6);break}O=a.value;N=O.deref();if(!N){k.jumpTo(5);break}K++;q=_.nM;return k.yield(N,8);case 8:q(k.yieldResult);case 5:a=m.next();k.jumpTo(4);break;case 6:if(2*K<Z.length){w=0;F=_.Q(Z);for(n=F.next();!n.done;n=F.next())U=n.value,U.deref()&&(Z[w++]=U);Z.length=
w}case 2:_.A_(k),_.pT(k,0)}})}()};var naB=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},I2r=new FcV(function(G){G.addEventListener("abort",Zsb,{once:!0})}),cqT=new WeakMap,vaK=function(G){G=G===void 0?Z9:G;
this.signal=new G};
vaK.prototype.abort=function(G){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=G,G=new Event("abort"),this.signal.dispatchEvent(G))};
var Z9=function(){this.target=naB();this.aborted=!1;this.onabort=null};
Z9.prototype.throwIfAborted=function(){G$O.call(this)};
Z9.prototype.addEventListener=function(G,c,I){this.target.addEventListener(G,c,I)};
Z9.prototype.removeEventListener=function(G,c,I){this.target.removeEventListener(G,c,I)};
Z9.prototype.dispatchEvent=function(G){if(this.onabort&&G.type==="abort")this.onabort(G);return this.target.dispatchEvent(G)};
Z9.abort=YNr;Z9.timeout=KLr;Z9.any=Rkr;var gZb=Nne?AbortController:vaK,Kq=Nne?AbortSignal:Z9;typeof Kq.abort!=="function"&&(Kq.abort=YNr);typeof Kq.prototype.throwIfAborted!=="function"&&(Kq.prototype.throwIfAborted=G$O);typeof Kq.any!=="function"&&(Kq.any=Rkr);typeof Kq.timeout!=="function"&&(Kq.timeout=KLr);var Fd=null,Ql0=new Map;var DD0=function(G){G=G.clone();WXT(G);r2(G,"dg",null);r2(G,"d","0");VKe(G,null);z29(G,null);return G},oaN=!0,UDK=function(G,c,I){var R=I===void 0?{}:I;
I=R.cssRowKey===void 0?void 0:R.cssRowKey;var Z=R.combinedSignature===void 0?void 0:R.combinedSignature;var K=R.extraEdges===void 0?void 0:R.extraEdges;R=R.callback===void 0?void 0:R.callback;r2(G,"m",c.join(","));K&&Jae(G,K);I&&(r2(G,"ck",I),Z?r2(G,"rs",Z):oaN&&(oaN=!1));if(R){if(R!=null&&!BZT.test(R))throw Error("Xa`"+R);r2(G,"cb",R)}G=G.toString();_.KA(G,"/")&&(G=eYk(document.location.href)+G);return _.Vx(G)};var bEp=function(G){return uNV(G).then(function(c){return JSON.parse(c.responseText)})},uNV=function(G){var c={},I=c.xmlHttpFactory?c.xmlHttpFactory.createInstance():YGK.createInstance();
return(new _.Lk(function(R,Z){var K;try{I.open("GET",G,!0)}catch(O){Z(new Pw("Error opening XHR: "+O.message,G,I))}I.onreadystatechange=function(){if(I.readyState==4){_.Rq.clearTimeout(K);var O;!(O=gcN(I.status))&&(O=I.status===0)&&(O=OSK(G),O=!(O=="http"||O=="https"||O==""));O?R(I):Z(new ke2(I.status,G,I))}};
I.onerror=function(){Z(new Pw("Network error",G,I))};
if(c.headers)for(var m in c.headers){var a=c.headers[m];a!=null&&I.setRequestHeader(m,a)}c.withCredentials&&(I.withCredentials=c.withCredentials);c.responseType&&(I.responseType=c.responseType);c.mimeType&&I.overrideMimeType(c.mimeType);c.timeoutMs>0&&(K=_.Rq.setTimeout(function(){I.onreadystatechange=function(){};
I.abort();Z(new sI9(G,I))},c.timeoutMs));
try{I.send(null)}catch(O){I.onreadystatechange=function(){},_.Rq.clearTimeout(K),Z(new Pw("Error sending XHR: "+O.message,G,I))}})).thenCatch(function(R){R instanceof _.tq&&I.abort();
throw R;})},Pw=function(G,c,I){_.G8.call(this,G+", url="+c);
this.url=c;this.xhr=I};
_.eg(Pw,_.G8);Pw.prototype.name="XhrError";var ke2=function(G,c,I){Pw.call(this,"Request Failed, status="+G,c,I);this.status=G};
_.eg(ke2,Pw);ke2.prototype.name="XhrHttpError";var sI9=function(G,c){Pw.call(this,"Request timed out",G,c)};
_.eg(sI9,Pw);sI9.prototype.name="XhrTimeoutError";a3=a3||{};var Qy=function(){_.JK.call(this)};
_.eg(Qy,_.JK);Qy.prototype.initialize=function(){};var LcN=function(G,c){this.fn_=G;this.handler_=c};
LcN.prototype.execute=function(G){this.fn_&&(this.fn_.call(this.handler_||null,G),this.fn_=this.handler_=null)};
LcN.prototype.abort=function(){this.handler_=this.fn_=null};var mB=function(G,c){_.JK.call(this);this.deps_=G;this.JSC$11211_id_=c;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.eg(mB,_.JK);mB.prototype.moduleConstructor_=Qy;mB.prototype.module_=null;mB.prototype.getId=function(){return this.JSC$11211_id_};
mB.prototype.registerCallback=function(G,c){return ak(this.onloadCallbacks_,G,c)};
var Aie=function(G,c){ak(G.onErrorCallbacks_,c)},ak=function(G,c,I){c=new LcN(c,I);
G.push(c);return c};
mB.prototype.isLoaded=function(){return!!this.module_};
mB.prototype.onLoad=function(G){var c=new this.moduleConstructor_;c.initialize(G());this.module_=c;c=(c=$Dp(this.earlyOnloadCallbacks_,G()))||$Dp(this.onloadCallbacks_,G());c||(this.onErrorCallbacks_.length=0);return c};
mB.prototype.onError=function(G){(G=$Dp(this.onErrorCallbacks_,G))&&Zi(Error("rd`"+G));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var $Dp=function(G,c){for(var I=[],R=0;R<G.length;R++)try{G[R].execute(c)}catch(Z){Zi(Z),I.push(Z)}G.length=0;return I.length?I:null};
mB.prototype.disposeInternal=function(){mB.superClass_.disposeInternal.call(this);_.TB(this.module_)};var SU0,Ji0,zSK,EaN,MxA,VxV,riV,fbK,BnK;
_.vN=function(G,c,I,R,Z){R=R===void 0?!1:R;Z=Z===void 0?!1:Z;var K=K===void 0?!0:K;this.scsReferenceUrl_=Cr8(_.z6(G).toString(),K);this.cssRowKey_=c;this.combinedSignature_=I;this.useNegativeLoading_=R;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(G=Bz(this.scsReferenceUrl_,"excm"))?G.split(","):[];this.shouldScanForCss_=Z;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;HjU();_.TZ(this,EtB(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
SU0=function(G,c){if(c.href||c.getAttribute("data-href"))if(c=c.href||c.getAttribute("data-href"),xtC(c)&&!Cr8(c).urlPrefix_.endsWith("_/js/")){c=EtB(Cr8(c));c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=I.value,G.loadedCssModuleList_.includes(I)||G.loadedCssModuleList_.push(I)}};
_.vN.prototype.JSC$11216_loadModules=function(G,c,I){var R=I===void 0?{}:I;c=R.extraEdges;I=R.onError;var Z=R.onSuccess;R=R.forceReload;if(!G)throw Error("sd");if(this.shouldScanForCss_){for(var K=_.Q(document.getElementsByTagName("style")),m=K.next();!m.done;m=K.next())SU0(this,m.value);K=_.Q(document.getElementsByTagName("link"));for(m=K.next();!m.done;m=K.next())SU0(this,m.value)}pHe(this,MxA(this,G),c,I,Z,R)};
var pHe=function(G,c,I,R,Z,K){R=R===void 0?function(){}:R;
Z=Z===void 0?function(){}:Z;
K=K===void 0?!1:K;VxV(G,c,function(m,a,O){O=O===void 0?a:O;G.enableFallbackFetch&&K?G.loadWithFetch(m,a,R,Z,O):G.load(m,a,R,Z,O,I)},I)||R(-1)};
_.vN.prototype.loadWithFetch=function(){_.T(function(){throw Error("td");})};
_.vN.prototype.maybeSetAdditionalFields=function(){};
Ji0=function(G,c,I){if(G.useNegativeLoading_){var R=G.scsReferenceUrl_;G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,extraEdges:I,requestedModuleIds:zSK(G),requestedCssModuleIds:EaN(G)};var Z=G===void 0?{}:G;G=Z.requestedModuleIds===void 0?[]:Z.requestedModuleIds;I=Z.requestedCssModuleIds===void 0?[]:Z.requestedCssModuleIds;var K=Z.cssRowKey===void 0?void 0:Z.cssRowKey;var m=Z.combinedSignature===void 0?void 0:Z.combinedSignature;var a=Z.extraEdges===void 0?void 0:Z.extraEdges;
Z=Z.callback===void 0?void 0:Z.callback;R=DD0(R);r2(R,"d","1");VKe(R,G);z29(R,I);c=UDK(R,c,{cssRowKey:K,combinedSignature:m,extraEdges:a,callback:Z})}else R=G.scsReferenceUrl_,G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,requestedModuleIds:zSK(G),requestedCssModuleIds:EaN(G)},a=G===void 0?{}:G,G=a.requestedCssModuleIds===void 0?[]:a.requestedCssModuleIds,I=a.cssRowKey===void 0?void 0:a.cssRowKey,K=a.combinedSignature===void 0?void 0:a.combinedSignature,m=a.extraEdges===void 0?
void 0:a.extraEdges,a=a.callback===void 0?void 0:a.callback,R=DD0(R),z29(R,G),c=UDK(R,c,{cssRowKey:I,combinedSignature:K,extraEdges:m,callback:a});return c};
_.TZ=function(G,c){for(var I=!1,R=[],Z=0;Z<c.length;++Z){var K=c[Z];G.requestedModuleMap_[K]||(G.requestedModuleMap_[K]=!0,G.requestedModuleList_.push(K),I=!0,R.push(K))}I&&(G.requestedModuleListSorted_=!1)};
_.OB=function(G,c){for(var I=[],R=0;R<c.length;++R){var Z=c[R];G.requestedModuleMap_[Z]&&(delete G.requestedModuleMap_[Z],_.rb(G.requestedModuleList_,Z),I.push(Z))}};
_.vN.prototype.load=function(G,c,I,R,Z){Z=Z===void 0?c:Z;_.z6(G);var K=this.useCors_,m=this.corsMode_,a=this.fetchPriority,O=_.$9("SCRIPT");_.Ti(O,G);K&&(O.crossOrigin=m);O.async=!1;a&&O.setAttribute("fetchpriority",a);_.TZ(this,c);_.Wce(this,G,O,c,I,R,Z)};
_.Wce=function(G,c,I,R,Z,K,m){m=m===void 0?R:m;G.lastScript_=I;G.insertPos.insertBefore(I,G.insertPos.firstChild);_.iE0(I,R,function(){I.parentElement.removeChild(I);G.lastScript_==I&&(G.lastScript_=null);K()},function(a){I.parentElement.removeChild(I);
G.lastScript_==I&&(G.lastScript_=null);_.OB(G,a);G.pendingModuleGraphUpdate_?G.pendingModuleGraphUpdate_.then(function(){Z(-1,c)}):Z(-1,c)},m)};
_.iE0=function(G,c,I,R,Z){Z=Z===void 0?c:Z;var K=c.length,m=function(){K=0;G.onload=null;G.onerror=null;a=function(){}},a=function(){m();
var N=Z.filter(function(q){return!x9().getModuleInfo(q).isLoaded()});
N.length!==0?R(N,"Response was successful but was missing module(s) "+N+"."):I()},O=function(){K--;
K==0&&a()};
c.forEach(function(N){N=x9().getModuleInfo(N);N.isLoaded()?O():(ak(N.earlyOnloadCallbacks_,O),Aie(N,O))});
G.onload=function(){return a()};
G.onerror=function(){m();R(c)}};
zSK=function(G){G.requestedModuleListSorted_||(G.requestedModuleListSorted_=!0,G.requestedModuleList_.sort());return G.requestedModuleList_};
EaN=function(G){G=G.loadedCssModuleList_;G.sort();return G};
MxA=function(G,c){return c.filter(function(I){return!G.requestedModuleMap_[I]})};
VxV=function(G,c,I,R){if(G.pendingModuleGraphUpdate_)return G.pendingModuleGraphUpdate_.then(function(){VxV(G,c,I,R)}),!0;
if(!G.useNegativeLoading_){var Z=[],K=Object.assign({},G.requestedModuleMap_);fbK(G,c,function(q){Z.push(q.getId())},R,function(q){return!q.isLoaded()},K);
c=Z}for(K=0;K<c.length;){for(var m=c.length-K,a=K==0?c:c.slice(K,c.length),O=Ji0(G,a,R),N=_.z6(O).toString();N.length>G.urlMaxLength;)if(m>1)m-=Math.ceil((N.length-G.urlMaxLength)/6),m=Math.max(m,1),a=c.slice(K,K+m),O=Ji0(G,a,R),N=_.z6(O).toString();else return G.useNegativeLoading_?(G.useNegativeLoading_=!1,G.pendingModuleGraphUpdate_=BnK(G).then(function(q){riV(G,q,R)}),VxV(G,c.slice(K),I,R)):!1;
K+=m;G.useNegativeLoading_?I(O,a):I(O,a,K===c.length?c:[])}return!0};
riV=function(G,c,I){x9().setAllModuleInfoString((c||{}).moduleGraph);fbK(G,zSK(G),function(R){_.TZ(G,[R.getId()])},I);
G.pendingModuleGraphUpdate_=null};
fbK=function(G,c,I,R,Z,K){K=K===void 0?{}:K;var m=x9();c=_.Q(c);for(var a=c.next();!a.done;a=c.next()){a=a.value;var O=m.getModuleInfo(a);if(!(K[a]||Z&&!Z(O))){K[a]=!0;var N=O.deps_||[];if(R){var q=[];R[a]&&(q=Object.keys(R[a]));N=N.concat(q)}fbK(G,N,I,R,Z,K);I(O)}}};
BnK=function(G){G=G.scsReferenceUrl_.clone();WXT(G);r2(G,"dg",null);r2(G,"md","1");return bEp(G.toString())};var a2p=new Uint8Array(123);var jIB=[];var xD0=function(){this.JSC$10223_loader_=null};
_.P=xD0.prototype;_.P.setBatchModeEnabled=function(){};
_.P.setAllModuleInfoString=function(){};
_.P.addExtraEdge=function(){throw Error("ud");};
_.P.removeExtraEdge=function(){throw Error("vd");};
_.P.getModuleContext=function(){return null};
_.P.isActive=function(){return!1};
_.P.isUserActive=function(){return!1};
_.P.registerInitializationCallback=function(){};
_.P.registerCallback=function(){};var ed=function(G,c,I,R,Z){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.name="ModuleLoadFailure";this.type=G;this.status=c;this.requestedModuleIds=I;this.url=R;this.cause=Z;this.message=this.toString()};
_.u(ed,Error);ed.prototype.toString=function(){return txB(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var txB=function(G){switch(G.type){case ed.Type.UNAUTHORIZED:return"Unauthorized";case ed.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case ed.Type.TIMEOUT:return"Timed out";case ed.Type.OLD_CODE_GONE:return"Out of date module id";case ed.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+G.type}};
a3.ModuleLoadFailure=ed;a3.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var N7=function(){this.moduleIds_=this.JSC$10223_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11229_extraEdges_={};this.JSC$11229_callbackMap_={};this.JSC$11229_currentlyLoadingModule_=this.baseModuleInfo_=new mB([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new ej;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.eg(N7,xD0);var hSp=function(G,c){_.G8.call(this,"Error loading "+G+": "+c)};
_.eg(hSp,_.G8);N7.prototype.setBatchModeEnabled=function(G){this.batchModeEnabled_=G};
N7.prototype.setAllModuleInfoString=function(G,c){if(!(this instanceof N7))this.setAllModuleInfoString(G,c);else if(typeof G==="string"){if(G.startsWith("d$")){G=G.substring(2);for(var I=[],R=0,Z=G.indexOf("/"),K=0,m=!1,a=0;;){var O=m?G.substring(K):G.substring(K,Z);if(O.length===0)R++,K="sy"+R.toString(36),O=[];else{var N=O.indexOf(":");if(N<0)K=O,O=[];else if(N===O.length-1)K=O.substring(0,N),O=Array(I[a-1]);else{K=O.substring(0,N);O=O.substring(N+1).split(",");N=a;for(var q=0;q<O.length;q++)N-=
O[q].length===0?1:Number(O[q]),O[q]=I[N]}N=0;if(K.length===0)N=1;else if(K.charAt(0)==="+"||K.charAt(0)==="-")N=Number(K);N!==0&&(R+=N,K="sy"+R.toString(36))}I.push(K);dDV(this,K,O);if(m)break;K=Z+1;Z=G.indexOf("/",K);Z===-1&&(m=!0);a++}this.moduleIds_=I}else if(G.startsWith("p$"))CuK(this,G);else{G=G.split("/");I=[];for(R=0;R<G.length;R++){a=G[R].split(":");Z=a[0];m=[];if(a[1])for(m=a[1].split(","),a=0;a<m.length;a++)m[a]=I[parseInt(m[a],36)];I.push(Z);dDV(this,Z,m)}this.moduleIds_=I}c&&c.length?
(_.tU(this.loadingModuleIds_,c),this.lastInitialModuleId_=_.pA(c)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11229_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11229_currentlyLoadingModule_=null,(c=this.baseModuleInfo_.onLoad((0,_.WD)(this.getModuleContext,this)))&&c.length&&HEB(this,new a3.ModuleLoadFailure(a3.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,c[0])),l3(this))}};
var CuK=function(G,c){var I=c.substring(2);for(c=0;c<64;c++)a2p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(c)]=c;var R={buf:I,pos:0};nY(R);var Z=nY(R),K=nY(R)+1;c=Array(Z);var m=Array(Z),a=Array(Z);K=Array(K);var O=0,N=0,q=R.pos,w=R.buf.indexOf("|",R.pos);R.pos=w+1;for(w=0;w<Z;w++){var F=nY(R),n=F&2,U=F&1;F>>>=2;U?(O+=F>>>1^-(F&1),F="sy"+O.toString(36)):(U=q,q+=F,F=I.substring(U,q));c[w]=F;n&&(K[N++]=F)}K[N]="";R.pos++;N=Z&-2;I=Z&1;for(O=0;O<N;O+=2)q=T8B(R),a[O]=
q&7,a[O+1]=q>>>3&7;I&&(I=T8B(R),a[N]=I&7);R.pos++;for(N=0;N<Z;N++)a[N]===7&&(a[N]=nY(R));R.pos++;for(I=N=0;I<Z;I++){O=a[I];q=O===0?jIB:Array(O);m[I]=q;w=N;for(n=0;n<O;n++)w-=nY(R),q[n]=K[w];K[N]===c[I]&&N++}for(R=0;R<c.length;R++)dDV(G,c[R],m[R]);G.moduleIds_=c};
_.P=N7.prototype;_.P.getModuleInfo=function(G){return this.moduleInfoMap[G]};
_.P.addExtraEdge=function(G,c){var I=this.getModuleInfo(G);I&&I.isLoaded()?this.load(c):(this.JSC$11229_extraEdges_[G]||(this.JSC$11229_extraEdges_[G]={}),this.JSC$11229_extraEdges_[G][c]=!0)};
_.P.removeExtraEdge=function(G,c){if(this.JSC$11229_extraEdges_[G]){delete this.JSC$11229_extraEdges_[G][c];for(var I in this.JSC$11229_extraEdges_[G])return;delete this.JSC$11229_extraEdges_[G]}};
_.P.isActive=function(){return this.loadingModuleIds_.length>0};
_.P.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var l3=function(G){var c=G.lastActive_,I=G.isActive();I!=c&&(G.executeCallbacks_(I?"active":"idle"),G.lastActive_=I);c=G.isUserActive();c!=G.userLastActive_&&(G.executeCallbacks_(c?"userActive":"userIdle"),G.userLastActive_=c)},dDV=function(G,c,I){G.moduleInfoMap[c]?(G=G.moduleInfoMap[c].deps_,G!=I&&G.splice.apply(G,[0,
G.length].concat(_.jn(I)))):G.moduleInfoMap[c]=new mB(I,c)},yiN=function(G,c,I){var R=[];
zC0(c,R);c=[];for(var Z={},K=0;K<R.length;K++){var m=R[K],a=G.getModuleInfo(m);if(!a)throw Error("wd`"+m);var O=new ej;Z[m]=O;a.isLoaded()?O.callback(null):(XHK(G,m,a,!!I,O),G.isModuleLoading(m)||c.push(m))}c.length>0&&(G.loadingModuleIds_.length===0?G.loadModules_(c):(G.requestedModuleIdsQueue_.push(c),l3(G)));return Z},XHK=function(G,c,I,R,Z){I.registerCallback(Z.callback,Z);
Aie(I,function(K){Z.errback(new hSp(c,K))});
G.isModuleLoading(c)?R&&(gaK(G,c),l3(G)):R&&gaK(G,c)};
N7.prototype.loadModules_=function(G,c,I){var R=this;c=c===void 0?0:c;var Z=YUB(this,G);this.loadingModuleIds_=Z;this.requestedLoadingModuleIds_=this.batchModeEnabled_?G:_.jr(Z);l3(this);if(Z.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Z);G=this.JSC$10223_loader_;if(!G)throw Error("xd");if(Object.keys(this.JSC$11229_extraEdges_).length>0&&!G.supportsExtraEdges)throw Error("yd");I=(0,_.WD)(G.JSC$11216_loadModules,G,_.jr(Z),this.moduleInfoMap,{extraEdges:this.JSC$11229_extraEdges_,
forceReload:!!I,onError:function(K,m,a){var O=R.requestedLoadingModuleIds_;K=K!=null?K:void 0;var N=c;a=a===void 0?!1:a;a=(a===void 0?0:a)?0:(N===void 0?0:N)+1;N=_.jr(Z);R.requestedLoadingModuleIds_=O;Z.forEach(_.Ts(_.rb,R.requestedModuleIds_),R);K==401?(HEB(R,new a3.ModuleLoadFailure(a3.ModuleLoadFailure.Type.UNAUTHORIZED,K)),R.requestedModuleIdsQueue_.length=0):K==410?(G1A(R,new a3.ModuleLoadFailure(a3.ModuleLoadFailure.Type.OLD_CODE_GONE,K)),cc0(R)):a>=3?(G1A(R,new a3.ModuleLoadFailure(a3.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
K,N,m)),cc0(R)):R.loadModules_(R.requestedLoadingModuleIds_,a,K==8001||!1)},
onTimeout:(0,_.WD)(this.handleLoadTimeout_,this)});(G=Math.pow(c,2)*5E3)?_.Rq.setTimeout(I,G):I()}};
var YUB=function(G,c){c=c.filter(function(Z){return G.moduleInfoMap[Z].isLoaded()?(_.Rq.setTimeout(function(){return Error("zd`"+Z)},0),!1):!0});
for(var I=[],R=0;R<c.length;R++)I=I.concat(I4A(G,c[R]));zC0(I);return!G.batchModeEnabled_&&I.length>1?(c=I.shift(),G.requestedModuleIdsQueue_=I.map(function(Z){return[Z]}).concat(G.requestedModuleIdsQueue_),[c]):I},I4A=function(G,c){var I=_.rx.createSet(G.requestedModuleIds_),R=[];
I[c]||R.push(c);c=[c];for(var Z=0;Z<c.length;Z++)for(var K=G.getModuleInfo(c[Z]).deps_,m=K.length-1;m>=0;m--){var a=K[m];G.getModuleInfo(a).isLoaded()||I[a]||(R.push(a),c.push(a))}R.reverse();zC0(R);return R};
N7.prototype.JSC$11224_setLoaded=function(){if(this.JSC$11229_currentlyLoadingModule_){var G=this.JSC$11229_currentlyLoadingModule_.getId(),c=[];if(this.JSC$11229_extraEdges_[G]){for(var I=_.Q(Object.keys(this.JSC$11229_extraEdges_[G])),R=I.next();!R.done;R=I.next()){R=R.value;var Z=this.getModuleInfo(R);Z&&!Z.isLoaded()&&(this.removeExtraEdge(G,R),c.push(R))}this.loadMultiple(c)}this.isDisposed()||((c=this.moduleInfoMap[G].onLoad((0,_.WD)(this.getModuleContext,this)))&&c.length&&HEB(this,new a3.ModuleLoadFailure(a3.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,c[0])),_.rb(this.userInitiatedLoadingModuleIds_,G),_.rb(this.loadingModuleIds_,G),this.loadingModuleIds_.length===0&&cc0(this),this.lastInitialModuleId_&&G==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),l3(this),this.JSC$11229_currentlyLoadingModule_=null)}};
N7.prototype.isModuleLoading=function(G){if(_.fA(this.loadingModuleIds_,G))return!0;for(var c=0;c<this.requestedModuleIdsQueue_.length;c++)if(_.fA(this.requestedModuleIdsQueue_[c],G))return!0;return!1};
N7.prototype.load=function(G,c){return yiN(this,[G],c)[G]};
N7.prototype.loadMultiple=function(G){return yiN(this,G)};
var gaK=function(G,c){_.fA(G.userInitiatedLoadingModuleIds_,c)||G.userInitiatedLoadingModuleIds_.push(c)};
N7.prototype.beforeLoadModuleCode=function(G){var c=this;this.JSC$11229_currentlyLoadingModule_&&this.JSC$11229_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11224_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[G]&&RXe(this,this.moduleInfoMap[G].deps_||[],function(I){I.module_=new Qy;_.rb(c.loadingModuleIds_,I.getId())},function(I){return!I.isLoaded()});
this.JSC$11229_currentlyLoadingModule_=this.getModuleInfo(G)};
N7.prototype.registerInitializationCallback=function(G){this.JSC$11229_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new mB([],"synthetic_module_overhead"),this.JSC$11229_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);ak(this.JSC$11229_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
N7.prototype.handleLoadTimeout_=function(){G1A(this,new a3.ModuleLoadFailure(a3.ModuleLoadFailure.Type.TIMEOUT));cc0(this)};
var G1A=function(G,c){G.requestedLoadingModuleIds_.length>1?G.requestedModuleIdsQueue_=G.requestedLoadingModuleIds_.map(function(I){return[I]}).concat(G.requestedModuleIdsQueue_):HEB(G,c)},HEB=function(G,c){var I=G.requestedLoadingModuleIds_;
G.loadingModuleIds_.length=0;for(var R=[],Z=0;Z<G.requestedModuleIdsQueue_.length;Z++){var K=G.requestedModuleIdsQueue_[Z].filter(function(O){var N=I4A(this,O);return QG(I,function(q){return _.fA(N,q)})},G);
_.tU(R,K)}for(Z=0;Z<I.length;Z++)_.S00(R,I[Z]);for(Z=0;Z<R.length;Z++){for(K=0;K<G.requestedModuleIdsQueue_.length;K++)_.rb(G.requestedModuleIdsQueue_[K],R[Z]);_.rb(G.userInitiatedLoadingModuleIds_,R[Z])}if(Z=G.JSC$11229_callbackMap_.error)for(K=0;K<Z.length;K++)for(var m=Z[K],a=0;a<R.length;a++)m("error",R[a],c);for(R=0;R<I.length;R++)if(G.moduleInfoMap[I[R]])G.moduleInfoMap[I[R]].onError(c);G.requestedLoadingModuleIds_.length=0;l3(G)},cc0=function(G){for(;G.requestedModuleIdsQueue_.length;){var c=
G.requestedModuleIdsQueue_.shift().filter(function(I){return!this.getModuleInfo(I).isLoaded()},G);
if(c.length>0){G.loadModules_(c);return}}l3(G)};
N7.prototype.registerCallback=function(G,c){Array.isArray(G)||(G=[G]);for(var I=0;I<G.length;I++){var R=G[I],Z=c,K=this.JSC$11229_callbackMap_;K[R]||(K[R]=[]);K[R].push(Z)}};
N7.prototype.executeCallbacks_=function(G){for(var c=this.JSC$11229_callbackMap_[G],I=0;c&&I<c.length;I++)c[I](G)};
var RXe=function(G,c,I,R,Z){R=R===void 0?function(){return!0}:R;
Z=Z===void 0?{}:Z;c=_.Q(c);for(var K=c.next();!K.done;K=c.next()){K=K.value;var m=G.getModuleInfo(K);!Z[K]&&R(m)&&(Z[K]=!0,RXe(G,m.deps_||[],I,R,Z),I(m))}};
N7.prototype.dispose=function(){_.Oe(_.rx.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11229_callbackMap_={};this.isDisposed_=!0};
N7.prototype.isDisposed=function(){return this.isDisposed_};
_.jT=function(){return new N7};var ZHV=[5E3,2E4],i_8=function(){this.JSC$10223_loader_=null;this.JSC$11237_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11237_queue_=[];this.JSC$11237_extraEdges_=Object.create(null);this.JSC$11237_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.u(i_8,xD0);_.P=i_8.prototype;_.P.setAllModuleInfoString=function(){this.JSC$11237_currentlyLoadingModule_&&this.JSC$11237_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11224_setLoaded()};
_.P.getModuleInfo=function(G){var c=this.JSC$11237_moduleInfoMap_[G];c||(c=new mB([],G),this.JSC$11237_moduleInfoMap_[G]=c);return c};
_.P.addExtraEdge=function(G,c){this.getModuleInfo(G).isLoaded()?this.load(c):(this.JSC$11237_extraEdges_[G]||(this.JSC$11237_extraEdges_[G]={}),this.JSC$11237_extraEdges_[G][c]=!0)};
_.P.removeExtraEdge=function(G,c){if(this.JSC$11237_extraEdges_[G]){delete this.JSC$11237_extraEdges_[G][c];for(var I in this.JSC$11237_extraEdges_[G])return;delete this.JSC$11237_extraEdges_[G]}};
_.P.isModuleLoading=function(G){return!!this.loadingModules_[G]};
_.P.load=function(G){K9e(this,[G]);return PON(this,G)};
_.P.loadMultiple=function(G){var c=this,I=Object.create(null),R=[];G.forEach(function(Z){I[Z]||(I[Z]=PON(c,Z),R.push(Z))});
K9e(this,R);return I};
_.P.beforeLoadModuleCode=function(G){var c;((c=this.JSC$11237_currentlyLoadingModule_)==null?void 0:c.getId())==="synthetic_module_overhead"&&this.JSC$11224_setLoaded();var I,R;QsA(this,(R=(I=this.JSC$11237_moduleInfoMap_[G])==null?void 0:I.deps_)!=null?R:[],function(Z){Z.module_=new Qy},function(Z){return!Z.isLoaded()});
this.JSC$11237_currentlyLoadingModule_=this.getModuleInfo(G)};
_.P.JSC$11224_setLoaded=function(){if(this.JSC$11237_currentlyLoadingModule_){var G=this.JSC$11237_currentlyLoadingModule_.getId(),c=[];if(this.JSC$11237_extraEdges_[G]){for(var I=_.Q(Object.keys(this.JSC$11237_extraEdges_[G])),R=I.next();!R.done;R=I.next())R=R.value,this.getModuleInfo(R).isLoaded()||(this.removeExtraEdge(G,R),c.push(R));this.loadMultiple(c)}this.JSC$11237_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11237_currentlyLoadingModule_=null;(!this.isModuleLoading(G)&&/^sy[0-9a-z]{0,4}$/.test(G)||G==="synthetic_module_overhead")&&delete this.JSC$11237_moduleInfoMap_[G];this.unsetModulesAsLoading(G)}};
_.P.registerInitializationCallback=function(G){this.JSC$11237_currentlyLoadingModule_||(this.JSC$11237_moduleInfoMap_.synthetic_module_overhead=new mB([],"synthetic_module_overhead"),this.JSC$11237_currentlyLoadingModule_=this.JSC$11237_moduleInfoMap_.synthetic_module_overhead);ak(this.JSC$11237_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
_.P.setModulesAsLoading=function(){var G=this;_.Hy.apply(0,arguments).forEach(function(c){G.loadingModules_[c]=!0})};
_.P.unsetModulesAsLoading=function(){var G=this;_.Hy.apply(0,arguments).forEach(function(c){delete G.loadingModules_[c]})};
var PON=function(G,c){return new _.Lk(function(I,R){var Z=G.getModuleInfo(c);Z.isLoaded()?I(null):(Z.registerCallback(function(){I(null)}),Aie(Z,function(K){var m="Error loading "+c+": "+K;
K instanceof a3.ModuleLoadFailure&&K.url&&(m=m+", requested url: "+K.url.toString());R(Error(m))}))})},K9e=function(G,c){c=c.filter(function(I){return!G.isModuleLoading(I)&&!G.getModuleInfo(I).isLoaded()});
c.length>0&&(G.setModulesAsLoading.apply(G,_.jn(c)),G.JSC$11237_queue_.push(c),mYK(G))},mYK=function(G){for(var c={};G.activeLoads_<Infinity&&G.JSC$11237_queue_.length>0;c={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})c.ids$jscomp$37=G.JSC$11237_queue_.shift().filter(function(I){return!G.getModuleInfo(I).isLoaded()}),c.ids$jscomp$37.length>0&&(G.activeLoads_++,c.finishLoad=function(I){return function(){G.activeLoads_--;
mYK(G);I.finishLoad=function(){}}}(c),_.tE(c.ids$jscomp$37.map(function(I){return PON(G,I)})).then(function(I){return function(){(0,I.finishLoad)()}}(c)),c.attempt$jscomp$6=0,c.load$jscomp$1=function(I){return function(){if(Object.keys(G.JSC$11237_extraEdges_).length>0&&!G.JSC$10223_loader_.supportsExtraEdges)throw Error("yd");
G.JSC$10223_loader_.JSC$11216_loadModules(I.ids$jscomp$37,G.JSC$11237_moduleInfoMap_,{extraEdges:G.JSC$11237_extraEdges_,onError:function(R,Z){var K=ZHV[I.attempt$jscomp$6++];K!==void 0?setTimeout(function(){(0,I.load$jscomp$1)()},K):(G.unsetModulesAsLoading.apply(G,_.jn(I.ids$jscomp$37)),(0,I.finishLoad)(),I.ids$jscomp$37.forEach(function(m){m=G.getModuleInfo(m);
if(!m.isLoaded())m.onError(new a3.ModuleLoadFailure(a3.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,R,I.ids$jscomp$37,Z))}))}})}}(c),(0,c.load$jscomp$1)())},QsA=function(G,c,I,R,Z){R=R===void 0?function(){return!0}:R;
Z=Z===void 0?{}:Z;c=_.Q(c);for(var K=c.next();!K.done;K=c.next()){K=K.value;var m=G.getModuleInfo(K);!Z[K]&&R(m)&&(Z[K]=!0,QsA(G,m.deps_||[],I,R,Z),I(m))}};var a4B=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var l2O=Symbol("Bd");window.JSCompiler_renameProperty=function(G){return G};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var TDp=!a4B||HTMLElement.es5Shimmed||_.Rq.Reflect===void 0||_.Rq.customElements===void 0||_.Rq.customElements.polyfillWrapFlushCallback||!1,OHK,t0g=function(){var G=HTMLElement;if(TDp)return G;if(OHK!==void 0)return OHK;var c=_.Rq.Reflect,I=function(){return c.construct(G,[],this.constructor)};
I.prototype=G.prototype;I.prototype.constructor=I;I.es5Shimmed=!0;Object.setPrototypeOf(I,G);return OHK=I},eX0=!1;TDp||eX0||(eX0=!0,_.Rq.HTMLElement=t0g());/*

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 vPO=/(url\()([^)]*)(\))/g,FLr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,nPr,Dq;var gZ=!window.ShadyDOM||!window.ShadyDOM.inUse,NDA=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),l4B=!window.customElements.polyfillWrapFlushCallback,qmB;if(qmB=gZ&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var wB2=new CSSStyleSheet;wB2.replaceSync("");var F9i=document.createElement("div");F9i.attachShadow({mode:"open"});F9i.shadowRoot.adoptedStyleSheets=[wB2];qmB=F9i.shadowRoot.adoptedStyleSheets[0]===wB2}catch(G){qmB=!1}
var nWK=qmB,vWp=window.Polymer&&window.Polymer.rootPath||oPO(document.baseURI||window.location.href),zP=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,$BU=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Z0=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,DYe=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,yF=window.Polymer&&window.Polymer.legacyOptimizations||!1,Rf=window.Polymer&&window.Polymer.legacyWarnings||!1,oWK=window.Polymer&&window.Polymer.syncInitialRender||
!1,Ja=window.Polymer&&window.Polymer.legacyUndefined||!1,UYT=window.Polymer&&window.Polymer.orderedComputed||!1,q7=window.Polymer&&window.Polymer.removeNestedTemplates||!1,wB=window.Polymer&&window.Polymer.fastDomIf||!1,Fg=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,uZV=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,bHe=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var nq={},k1e={},ix=function(){return HTMLElement.apply(this,arguments)||this};
_.u(ix,HTMLElement);ix.import=function(G,c){return G?(G=nq[G]||k1e[G.toLowerCase()])&&c?G.querySelector(c):G:null};
ix.prototype.attributeChangedCallback=function(G,c,I){c!==I&&this.register()};
ix.prototype.register=function(G){if(G=G||this.id){if(Z0&&(nq[G]||k1e[G.toLowerCase()])!==void 0)throw nq[G]=k1e[G.toLowerCase()]=null,Error("Cd`"+G);this.id=G;nq[G]=k1e[G.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Nh.Object.defineProperties(ix.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var G=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;G=_.oD(this.getAttribute("assetpath")||"",G.baseURI);this.__assetpath=oPO(G)}return this.__assetpath}}});
_.Nh.Object.defineProperties(ix,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
ix["import"]=ix.import;ix.prototype.modules=nq;customElements.define("dom-module",ix);var ss0=0,utp=0,Up=[],L92=0,Uof=!1,Ac0=document.createTextNode(""),$YB,HN;(new window.MutationObserver(bsA)).observe(Ac0,{characterData:!0});_.vw={after:function(G){return{run:function(c){return window.setTimeout(c,G)},
cancel:function(c){window.clearTimeout(c)}}},
run:function(G,c){return window.setTimeout(G,c)},
cancel:function(G){window.clearTimeout(G)}};
_.AN={run:function(G){return window.requestAnimationFrame(G)},
cancel:function(G){window.cancelAnimationFrame(G)}};
$YB={run:function(G){return window.requestIdleCallback?window.requestIdleCallback(G):window.setTimeout(G,16)},
cancel:function(G){window.cancelIdleCallback?window.cancelIdleCallback(G):window.clearTimeout(G)}};
HN={run:function(G){Uof||(Uof=!0,Ac0.textContent=L92++);Up.push(G);return ss0++},
cancel:function(G){var c=G-utp;if(c>=0){if(!Up[c])throw Error("Dd`"+G);Up[c]=null}}};var Sm9=0,D9=function(G){var c=G.__mixinApplications;c||(c=new WeakMap,G.__mixinApplications=c);var I=Sm9++;return function(R){var Z=R.__mixinSet;if(Z&&Z[I])return R;var K=c,m=K.get(R);m||(m=G(R),K.set(R,m),R=Object.create(m.__mixinSet||Z||null),R[I]=!0,m.__mixinSet=R);return m}};_.VF=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(G){return ShadyDOM.patch(G)}:function(G){return G};var pB2=D9(function(G){var c=function(){var I=G.call(this)||this;I.__dataEnabled=!1;I.__dataReady=!1;I.__dataInvalid=!1;I.__data={};I.__dataPending=null;I.__dataOld=null;I.__dataInstanceProps=null;I.__dataCounter=0;I.__serializing=!1;I._initializeProperties();return I};
_.u(c,G);c.createProperties=function(I){var R=this.prototype,Z;for(Z in I)Z in R||R._createPropertyAccessor(Z)};
c.attributeNameForProperty=function(I){return I.toLowerCase()};
c.typeForProperty=function(){};
c.prototype._createPropertyAccessor=function(I,R){this._addPropertyToAttributeMap(I);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[I]||(this.__dataHasAccessor[I]=!0,this._definePropertyAccessor(I,R))};
c.prototype._addPropertyToAttributeMap=function(I){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var R=this.__dataAttributes[I];R||(R=this.constructor.attributeNameForProperty(I),this.__dataAttributes[R]=I);return R};
c.prototype._definePropertyAccessor=function(I,R){Object.defineProperty(this,I,{get:function(){return this.__data[I]},
set:R?function(){}:function(Z){this._setPendingProperty(I,Z,!0)&&this._invalidateProperties()}})};
c.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
c.prototype._initializeProperties=function(){for(var I in this.__dataHasAccessor)this.hasOwnProperty(I)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[I]=this[I],delete this[I])};
c.prototype._initializeInstanceProperties=function(I){Object.assign(this,I)};
c.prototype._setProperty=function(I,R){this._setPendingProperty(I,R)&&this._invalidateProperties()};
c.prototype._getProperty=function(I){return this.__data[I]};
c.prototype._setPendingProperty=function(I,R){var Z=this.__data[I],K=this._shouldPropertyChange(I,R,Z);K&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||I in this.__dataOld||(this.__dataOld[I]=Z),this.__data[I]=R,this.__dataPending[I]=R);return K};
c.prototype._isPropertyPending=function(I){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(I))};
c.prototype._invalidateProperties=function(){var I=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,HN.run(function(){I.__dataInvalid&&(I.__dataInvalid=!1,I._flushProperties())}))};
c.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
c.prototype._flushProperties=function(){this.__dataCounter++;var I=this.__data,R=this.__dataPending,Z=this.__dataOld;this._shouldPropertiesChange(I,R,Z)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(I,R,Z));this.__dataCounter--};
c.prototype._shouldPropertiesChange=function(I,R){return!!R};
c.prototype._propertiesChanged=function(){};
c.prototype._shouldPropertyChange=function(I,R,Z){return Z!==R&&(Z===Z||R===R)};
c.prototype.attributeChangedCallback=function(I,R,Z,K){R!==Z&&this._attributeToProperty(I,Z);G.prototype.attributeChangedCallback&&G.prototype.attributeChangedCallback.call(this,I,R,Z,K)};
c.prototype._attributeToProperty=function(I,R,Z){if(!this.__serializing){var K=this.__dataAttributes;I=K&&K[I]||I;this[I]=this._deserializeValue(R,Z||this.constructor.typeForProperty(I))}};
c.prototype._propertyToAttribute=function(I,R,Z){this.__serializing=!0;Z=arguments.length<3?this[I]:Z;this._valueToNodeAttribute(this,Z,R||this.constructor.attributeNameForProperty(I));this.__serializing=!1};
c.prototype._valueToNodeAttribute=function(I,R,Z){R=this._serializeValue(R);if(Z==="class"||Z==="name"||Z==="slot")I=(0,_.VF)(I);R===void 0?I.removeAttribute(Z):I.setAttribute(Z,R===""&&window.trustedTypes?window.trustedTypes.emptyScript:R)};
c.prototype._serializeValue=function(I){switch(typeof I){case "boolean":return I?"":void 0;default:return I!=null?I.toString():void 0}};
c.prototype._deserializeValue=function(I,R){switch(R){case Boolean:return I!==null;case Number:return Number(I);default:return I}};
return c});var MDB=0,k$8=[];var VD9=D9(function(G){function c(K){K=Object.getPrototypeOf(K);return K.prototype instanceof Z?K:null}
function I(K){if(!K.hasOwnProperty("__ownProperties")){var m=null;if(K.hasOwnProperty("properties")){var a=K.properties;if(a){m={};for(var O in a){var N=a[O];m[O]=typeof N==="function"?{type:N}:N}}}K.__ownProperties=m}return K.__ownProperties}
var R=pB2(G),Z=function(){return R.apply(this,arguments)||this};
_.u(Z,R);Z.finalize=function(){if(!this.hasOwnProperty("__finalized")){var K=c(this);K&&K.finalize();this.__finalized=!0;this._finalizeClass()}};
Z._finalizeClass=function(){var K=I(this);K&&this.createProperties(K)};
Z.typeForProperty=function(K){return(K=this._properties[K])&&K.type};
Z.prototype._initializeProperties=function(){MDB++;this.constructor.finalize();R.prototype._initializeProperties.call(this)};
Z.prototype.connectedCallback=function(){R.prototype.connectedCallback&&R.prototype.connectedCallback.call(this);this._enableProperties()};
Z.prototype.disconnectedCallback=function(){R.prototype.disconnectedCallback&&R.prototype.disconnectedCallback.call(this)};
_.Nh.Object.defineProperties(Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var K=this;if(!this.hasOwnProperty("__observedAttributes")){slp(this.prototype);var m=this._properties;this.__observedAttributes=m?Object.keys(m).map(function(a){return K.prototype._addPropertyToAttributeMap(a)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var K=c(this);this.__properties=Object.assign({},K&&K._properties,I(this))}return this.__properties}}});
return Z});var LLp={},Aqi=/-[a-z]/g,$oA=/([A-Z])/g;for(var zXT={},EW0=HTMLElement.prototype;EW0;){for(var JcV=Object.getOwnPropertyNames(EW0),W90=0;W90<JcV.length;W90++)zXT[JcV[W90]]=!0;EW0=Object.getPrototypeOf(EW0)}var iHe=window.trustedTypes?function(G){return trustedTypes.isHTML(G)||trustedTypes.isScript(G)||trustedTypes.isScriptURL(G)}:function(){return!1},f4K=D9(function(G){var c=pB2(G);
G=function(){return c.apply(this,arguments)||this};
_.u(G,c);G.createPropertiesForAttributes=function(){for(var I=this.observedAttributes,R=0;R<I.length;R++)this.prototype._createPropertyAccessor(ux(I[R]))};
G.attributeNameForProperty=function(I){return bx(I)};
G.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);c.prototype._initializeProperties.call(this)};
G.prototype._initializeProtoProperties=function(I){for(var R in I)this._setProperty(R,I[R])};
G.prototype._ensureAttribute=function(I,R){this.hasAttribute(I)||this._valueToNodeAttribute(this,R,I)};
G.prototype._serializeValue=function(I){switch(typeof I){case "object":if(I instanceof Date)return I.toString();if(I){if(iHe(I))return I;try{return JSON.stringify(I)}catch(R){return""}}default:return c.prototype._serializeValue.call(this,I)}};
G.prototype._deserializeValue=function(I,R){switch(R){case Object:try{var Z=JSON.parse(I)}catch(K){Z=I}break;case Array:try{Z=JSON.parse(I)}catch(K){Z=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+I)}break;case Date:Z=isNaN(I)?String(I):Number(I);Z=new Date(Z);break;default:Z=c.prototype._deserializeValue.call(this,I,R)}return Z};
G.prototype._definePropertyAccessor=function(I,R){if(!zXT[I]){var Z=this[I];Z!==void 0&&(this.__data?this._setPendingProperty(I,Z):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[I]=Z))}c.prototype._definePropertyAccessor.call(this,I,R)};
G.prototype._hasAccessor=function(I){return this.__dataHasAccessor&&this.__dataHasAccessor[I]};
G.prototype._isPropertyPending=function(I){return!!(this.__dataPending&&I in this.__dataPending)};
return G});var BDB={"dom-if":!0,"dom-repeat":!0},rcK=!1,js0=!1,xYV=function(){var G=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(c){return c}});
return function(c,I,R){I=I.getAttribute(R);G&&R.startsWith("on-")?c.setAttribute(R,G.createScript(I,R)):c.setAttribute(R,I)}}(),tD9=D9(function(G){var c=function(){return G.apply(this,arguments)||this};
_.u(c,G);c._parseTemplate=function(I,R){if(!I._templateInfo){var Z=I._templateInfo={};Z.nodeInfoList=[];Z.nestedTemplate=!!R;Z.stripWhiteSpace=R&&R.stripWhiteSpace||I.hasAttribute&&I.hasAttribute("strip-whitespace");this._parseTemplateContent(I,Z,{parent:null})}return I._templateInfo};
c._parseTemplateContent=function(I,R,Z){return this._parseTemplateNode(I.content,R,Z)};
c._parseTemplateNode=function(I,R,Z){var K=!1;I.localName!="template"||I.hasAttribute("preserve-content")?I.localName==="slot"&&(R.hasInsertionPoint=!0):K=this._parseTemplateNestedTemplate(I,R,Z)||K;if(!rcK){rcK=!0;var m=document.createElement("textarea");m.placeholder="a";js0=m.placeholder===m.textContent}js0&&I.localName==="textarea"&&I.placeholder&&I.placeholder===I.textContent&&(I.textContent=null);I.firstChild&&this._parseTemplateChildNodes(I,R,Z);I.hasAttributes&&I.hasAttributes()&&(K=this._parseTemplateNodeAttributes(I,
R,Z)||K);return K||Z.noted};
c._parseTemplateChildNodes=function(I,R,Z){if(I.localName!=="script"&&I.localName!=="style")for(var K=I.firstChild,m=0,a;K;K=a){if(K.localName=="template"){var O=K.getAttribute("is");if(O&&BDB[O])for(a=K,a.removeAttribute("is"),K=a.ownerDocument.createElement(O),a.parentNode.replaceChild(K,a),K.appendChild(a);a.attributes.length;)O=a.attributes[0].name,xYV(K,a,O),a.removeAttribute(O)}a=K.nextSibling;if(K.nodeType===Node.TEXT_NODE){for(O=a;O&&O.nodeType===Node.TEXT_NODE;)K.textContent+=O.textContent,
a=O.nextSibling,I.removeChild(O),O=a;if(R.stripWhiteSpace&&!K.textContent.trim()){I.removeChild(K);continue}}O={parentIndex:m,parentInfo:Z};this._parseTemplateNode(K,R,O)&&(O.infoIndex=R.nodeInfoList.push(O)-1);K.parentNode&&m++}};
c._parseTemplateNestedTemplate=function(I,R,Z){R=this._parseTemplate(I,R);(R.content=I.content.ownerDocument.createDocumentFragment()).appendChild(I.content);Z.templateInfo=R;return!0};
c._parseTemplateNodeAttributes=function(I,R,Z){for(var K=!1,m=Array.from(I.attributes),a=m.length-1,O;O=m[a];a--)K=this._parseTemplateNodeAttribute(I,R,Z,O.name,O.value)||K;return K};
c._parseTemplateNodeAttribute=function(I,R,Z,K,m){return K.slice(0,3)==="on-"?(I.removeAttribute(K),Z.events=Z.events||[],Z.events.push({name:K.slice(3),value:m}),!0):K==="id"?(Z.id=m,!0):!1};
c._contentForTemplate=function(I){var R=I._templateInfo;return R&&R.content||I.content};
c.prototype._stampTemplate=function(I,R){I&&!I.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(I);R=R||this.constructor._parseTemplate(I);var Z=R.nodeInfoList;I=document.importNode(R.content||I.content,!0);I.__noInsertionPoint=!R.hasInsertionPoint;var K=I.nodeList=Array(Z.length);I.$={};for(var m=0,a=Z.length,O=void 0;m<a&&(O=Z[m]);m++){var N=K[m]=Sgp(I,O);O.id&&(I.$[O.id]=N);var q=N,w=O,F=R;w.templateInfo&&(q._templateInfo=w.templateInfo,q._parentTemplateInfo=
F);if(O.events&&O.events.length)for(q=0,w=O.events,F=void 0;q<w.length&&(F=w[q]);q++)this._addMethodEventListenerToNode(N,F.name,F.value,this)}return I};
c.prototype._addMethodEventListenerToNode=function(I,R,Z,K){Z=pmB(K||I,Z);this._addEventListenerToNode(I,R,Z);return Z};
c.prototype._addEventListenerToNode=function(I,R,Z){I.addEventListener(R,Z)};
c.prototype._removeEventListenerFromNode=function(I,R,Z){I.removeEventListener(R,Z)};
return c});var pY=0,Ep=[],hXK={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},dY9=/[A-Z]/,COB=function(G,c,I,R,Z){var K=Z?sp(G):G;if(c=c[K])for(K=0;K<c.length;K++){var m=c[K];if(m.info.lastRun!==pY&&(!Z||WLb(G,m.trigger))){m.info.lastRun=pY;m=m.info;for(var a=I,O=R,N=0,q=a.length-1,w=-1;N<=q;){var F=N+q>>1,n=O.get(a[F].methodInfo)-O.get(m.methodInfo);if(n<0)N=F+1;else if(n>0)q=F-1;else{w=F;break}}w<
0&&(w=q+1);a.splice(w,0,m)}}},YgO=[],HHV=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"),UB=D9(function(G){var c=tD9(f4K(G));
G=function(){var I=c.call(this)||this;I.__isPropertyEffectsClient=!0;return I};
_.u(G,c);G.prototype._initializeProperties=function(){c.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
G.prototype._registerHost=function(){if(ok.length){var I=ok[ok.length-1];I._enqueueClient(this);this.__dataHost=I}};
G.prototype._initializeProtoProperties=function(I){this.__data=Object.create(I);this.__dataPending=Object.create(I);this.__dataOld={}};
G.prototype._initializeInstanceProperties=function(I){var R=this.__readOnly,Z;for(Z in I)R&&R[Z]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Z]=this.__dataPending[Z]=I[Z])};
G.prototype._addPropertyEffect=function(I,R,Z){this._createPropertyAccessor(I,R=="__readOnly");var K=Jqr(this,R,!0)[I];K||(K=this[R][I]=[]);K.push(Z)};
G.prototype._removePropertyEffect=function(I,R,Z){I=Jqr(this,R,!0)[I];Z=I.indexOf(Z);Z>=0&&I.splice(Z,1)};
G.prototype._hasPropertyEffect=function(I,R){R=this[R];return!(!R||!R[I])};
G.prototype._hasReadOnlyEffect=function(I){return this._hasPropertyEffect(I,"__readOnly")};
G.prototype._hasNotifyEffect=function(I){return this._hasPropertyEffect(I,"__notifyEffects")};
G.prototype._hasReflectEffect=function(I){return this._hasPropertyEffect(I,"__reflectEffects")};
G.prototype._hasComputedEffect=function(I){return this._hasPropertyEffect(I,"__computeEffects")};
G.prototype._setPendingPropertyOrPath=function(I,R,Z,K){if(K||sp(Array.isArray(I)?I[0]:I)!==I){if(!K&&(K=SK(this,I),I=EPq(this,I,R),!I||!c.prototype._shouldPropertyChange.call(this,I,R,K)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(I,R,Z)){if(Z=this.__dataLinkedPaths)for(var m in Z)K=Z[m],LY(m,I)?(K=Aa(m,K,I),this._setPendingPropertyOrPath(K,R,!0,!0)):LY(K,I)&&(K=Aa(K,m,I),this._setPendingPropertyOrPath(K,R,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[I])return this._setPendingProperty(I,
R,Z);this[I]=R}return!1};
G.prototype._setUnmanagedPropertyToNode=function(I,R,Z){if(Z!==I[R]||typeof Z=="object")R==="className"&&(I=(0,_.VF)(I)),I[R]=Z};
G.prototype._setPendingProperty=function(I,R,Z){var K=this.__dataHasPaths&&kt(I);if(this._shouldPropertyChange(I,R,(K?this.__dataTemp:this.__data)[I])){this.__dataPending||(this.__dataPending={},this.__dataOld={});I in this.__dataOld||(this.__dataOld[I]=this.__data[I]);K?this.__dataTemp[I]=R:this.__data[I]=R;this.__dataPending[I]=R;if(K||this.__notifyEffects&&this.__notifyEffects[I])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[I]=Z;return!0}return!1};
G.prototype._setProperty=function(I,R){this._setPendingProperty(I,R,!0)&&this._invalidateProperties()};
G.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
G.prototype._enqueueClient=function(I){this.__dataPendingClients=this.__dataPendingClients||[];I!==this&&this.__dataPendingClients.push(I)};
G.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
G.prototype.__enableOrFlushClients=function(){var I=this.__dataPendingClients;if(I){this.__dataPendingClients=null;for(var R=0;R<I.length;R++){var Z=I[R];Z.__dataEnabled?Z.__dataPending&&Z._flushProperties():Z._enableProperties()}}};
G.prototype._readyClients=function(){this.__enableOrFlushClients()};
G.prototype.setProperties=function(I,R){for(var Z in I)!R&&this.__readOnly&&this.__readOnly[Z]||this._setPendingPropertyOrPath(Z,I[Z],!0);this._invalidateProperties()};
G.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
G.prototype._propertiesChanged=function(I,R,Z){I=this.__dataHasPaths;this.__dataHasPaths=!1;var K;if(K=this.__computeEffects)if(UYT){pY++;var m=xog(this),a=[],O;for(O in R)COB(O,K,a,m,I);for(;O=a.shift();)hkp(this,"",R,Z,O)&&COB(O.methodInfo,K,a,m,I);Object.assign(Z,this.__dataOld);Object.assign(R,this.__dataPending);this.__dataPending=null}else for(m=R;Mq(this,K,m,Z,I);)Object.assign(Z,this.__dataOld),Object.assign(R,this.__dataPending),m=this.__dataPending,this.__dataPending=null;K=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(R,Z,I);this._flushClients();Mq(this,this.__reflectEffects,R,Z,I);Mq(this,this.__observeEffects,R,Z,I);if(K){m=this.__notifyEffects;a=pY++;for(var N in K)if(K[N]){if(O=m){var q=m;O=a;var w=N,F=R,n=Z,U=I,k=!1,p=U?sp(w):w;if(q=q[p]){p=0;for(var M=q.length,z=void 0;p<M&&(z=q[p]);p++)z.info&&z.info.lastRun===O||U&&!WLb(w,z.trigger)||(z.info&&(z.info.lastRun=O),z.fn(this,w,F,n,z.info,U,void 0),k=!0)}O=k}if(O)var t=!0;else{if(O=I)O=N,w=R,F=sp(O),F!==
O?(F=bx(F)+"-changed",f2O(this,F,w[O],O),O=!0):O=!1;O&&(t=!0)}}var x;t&&(x=this.__dataHost)&&x._invalidateProperties&&x._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
G.prototype._propagatePropertyChanges=function(I,R,Z){this.__propagateEffects&&Mq(this,this.__propagateEffects,I,R,Z);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,I,R,Z)};
G.prototype._runEffectsForTemplate=function(I,R,Z,K){var m=this,a=function(O,N){Mq(m,I.propertyEffects,O,Z,N,I.nodeList);for(var q=I.firstChild;q;q=q.nextSibling)m._runEffectsForTemplate(q,O,Z,N)};
I.runEffects?I.runEffects(a,R,K):a(R,K)};
G.prototype.linkPaths=function(I,R){I=$t(I);R=$t(R);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[I]=R};
G.prototype.unlinkPaths=function(I){I=$t(I);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[I]};
G.prototype.notifySplices=function(I,R){var Z={path:""};I=SK(this,I,Z);RUU(this,I,Z.path,R)};
G.prototype.get=function(I,R){return SK(R||this,I)};
G.prototype.set=function(I,R,Z){Z?EPq(Z,I,R):this.__readOnly&&this.__readOnly[I]||this._setPendingPropertyOrPath(I,R,!0)&&this._invalidateProperties()};
G.prototype.push=function(I){var R=_.Hy.apply(1,arguments),Z={path:""},K=SK(this,I,Z),m=K.length,a=K.push.apply(K,_.jn(R));R.length&&WN(this,K,Z.path,m,R.length,[]);return a};
G.prototype.pop=function(I){var R={path:""};I=SK(this,I,R);var Z=!!I.length,K=I.pop();Z&&WN(this,I,R.path,I.length,0,[K]);return K};
G.prototype.splice=function(I,R,Z){var K=_.Hy.apply(3,arguments),m={path:""},a=SK(this,I,m);R<0?R=a.length-Math.floor(-R):R&&(R=Math.floor(R));var O=arguments.length===2?a.splice(R):a.splice.apply(a,[R,Z].concat(_.jn(K)));(K.length||O.length)&&WN(this,a,m.path,R,K.length,O);return O};
G.prototype.shift=function(I){var R={path:""};I=SK(this,I,R);var Z=!!I.length,K=I.shift();Z&&WN(this,I,R.path,0,0,[K]);return K};
G.prototype.unshift=function(I){var R=_.Hy.apply(1,arguments),Z={path:""},K=SK(this,I,Z),m=K.unshift.apply(K,_.jn(R));R.length&&WN(this,K,Z.path,0,R.length,[]);return m};
G.prototype.notifyPath=function(I,R){if(arguments.length==1){var Z={path:""};R=SK(this,I,Z);Z=Z.path}else Z=Array.isArray(I)?$t(I):I;this._setPendingPropertyOrPath(Z,R,!0,!0)&&this._invalidateProperties()};
G.prototype._createReadOnlyProperty=function(I,R){this._addPropertyEffect(I,"__readOnly");R&&(this["_set"+(I[0].toUpperCase()+I.substring(1))]=function(Z){this._setProperty(I,Z)})};
G.prototype._createPropertyObserver=function(I,R,Z){var K={property:I,method:R,dynamicFn:!!Z};this._addPropertyEffect(I,"__observeEffects",{fn:isr,info:K,trigger:{name:I}});Z&&this._addPropertyEffect(R,"__observeEffects",{fn:isr,info:K,trigger:{name:R}})};
G.prototype._createMethodObserver=function(I,R){var Z=cAr(I);if(!Z)throw Error("Ed`"+I);yqi(this,Z,"__observeEffects",thC,null,R)};
G.prototype._createNotifyingProperty=function(I){this._addPropertyEffect(I,"__notifyEffects",{fn:B8f,info:{eventName:bx(I)+"-changed",property:I}})};
G.prototype._createReflectedProperty=function(I){var R=this.constructor.attributeNameForProperty(I);R[0]==="-"?console.warn("Property "+I+" cannot be reflected to attribute "+R+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(I,"__reflectEffects",{fn:rqr,info:{attrName:R}})};
G.prototype._createComputedProperty=function(I,R,Z){var K=cAr(R);if(!K)throw Error("Fd`"+R);R=yqi(this,K,"__computeEffects",hkp,I,Z);Jqr(this,"__computeInfo")[I]=R};
G.prototype._marshalArgs=function(I,R,Z){for(var K=this.__data,m=[],a=0,O=I.length;a<O;a++){var N=I[a],q=N.name,w=N.structured,F=N.wildcard,n=N.value;N.literal||(F?(N=LY(q,R),w=Io8(K,Z,N?R:q),n={path:N?R:q,value:w,base:N?SK(K,q):w}):n=w?Io8(K,Z,q):K[q]);if(Ja&&!this._overrideLegacyUndefined&&n===void 0&&I.length>1)return Ep;m[a]=n}return m};
G.addPropertyEffect=function(I,R,Z){this.prototype._addPropertyEffect(I,R,Z)};
G.createPropertyObserver=function(I,R,Z){this.prototype._createPropertyObserver(I,R,Z)};
G.createMethodObserver=function(I,R){this.prototype._createMethodObserver(I,R)};
G.createNotifyingProperty=function(I){this.prototype._createNotifyingProperty(I)};
G.createReadOnlyProperty=function(I,R){this.prototype._createReadOnlyProperty(I,R)};
G.createReflectedProperty=function(I){this.prototype._createReflectedProperty(I)};
G.createComputedProperty=function(I,R,Z){this.prototype._createComputedProperty(I,R,Z)};
G.bindTemplate=function(I){return this.prototype._bindTemplate(I)};
G.prototype._bindTemplate=function(I,R){var Z=this.constructor._parseTemplate(I),K=this.__preBoundTemplateInfo==Z;if(!K)for(var m in Z.propertyEffects)this._createPropertyAccessor(m);R?(Z=Object.create(Z),Z.wasPreBound=K,this.__templateInfo?(I=I._parentTemplateInfo||this.__templateInfo,R=I.lastChild,Z.parent=I,I.lastChild=Z,(Z.previousSibling=R)?R.nextSibling=Z:I.firstChild=Z):this.__templateInfo=Z):this.__preBoundTemplateInfo=Z;return Z};
G._addTemplatePropertyEffect=function(I,R,Z){(I.hostProps=I.hostProps||{})[R]=!0;I=I.propertyEffects=I.propertyEffects||{};(I[R]=I[R]||[]).push(Z)};
G.prototype._stampTemplate=function(I,R){R=R||this._bindTemplate(I,!0);ok.push(this);I=c.prototype._stampTemplate.call(this,I,R);ok.pop();R.nodeList=I.nodeList;if(!R.wasPreBound)for(var Z=R.childNodes=[],K=I.firstChild;K;K=K.nextSibling)Z.push(K);I.templateInfo=R;Z=R.nodeList;K=R.nodeInfoList;if(K.length)for(var m=0;m<K.length;m++){var a=Z[m],O=K[m].bindings;if(O)for(var N=0;N<O.length;N++){var q=O[N],w=a,F=q;if(F.isCompound){for(var n=w.__dataCompoundStorage||(w.__dataCompoundStorage={}),U=F.parts,
k=Array(U.length),p=0;p<U.length;p++)k[p]=U[p].literal;U=F.target;n[U]=k;F.literal&&F.kind=="property"&&(U==="className"&&(w=(0,_.VF)(w)),w[U]=F.literal)}XmA(a,this,q)}a.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(R,this.__data,null,!1),this._flushClients());return I};
G.prototype._removeBoundDom=function(I){I=I.templateInfo;var R=I.previousSibling,Z=I.nextSibling,K=I.parent;R?R.nextSibling=Z:K&&(K.firstChild=Z);Z?Z.previousSibling=R:K&&(K.lastChild=R);I.nextSibling=I.previousSibling=null;I=I.childNodes;for(R=0;R<I.length;R++)Z=I[R],(0,_.VF)((0,_.VF)(Z).parentNode).removeChild(Z)};
G._parseTemplateNode=function(I,R,Z){var K=c._parseTemplateNode.call(this,I,R,Z);if(I.nodeType===Node.TEXT_NODE){var m=this._parseBindings(I.textContent,R);m&&(I.textContent=gPT(m)||" ",HsB(this,R,Z,"text","textContent",m),K=!0)}return K};
G._parseTemplateNodeAttribute=function(I,R,Z,K,m){var a=this._parseBindings(m,R);if(a){m=K;var O="property";dY9.test(K)?O="attribute":K[K.length-1]=="$"&&(K=K.slice(0,-1),O="attribute");var N=gPT(a);N&&O=="attribute"&&(K=="class"&&I.hasAttribute("class")&&(N+=" "+I.getAttribute(K)),I.setAttribute(K,N));O=="attribute"&&m=="disable-upgrade$"&&I.setAttribute(K,"");I.localName==="input"&&m==="value"&&I.setAttribute(m,"");I.removeAttribute(m);O==="property"&&(K=ux(K));HsB(this,R,Z,O,K,a,N);return!0}return c._parseTemplateNodeAttribute.call(this,
I,R,Z,K,m)};
G._parseTemplateNestedTemplate=function(I,R,Z){var K=c._parseTemplateNestedTemplate.call(this,I,R,Z),m=I.parentNode,a=Z.templateInfo,O=m.localName==="dom-if",N=m.localName==="dom-repeat";q7&&(O||N)&&(m.removeChild(I),Z=Z.parentInfo,Z.templateInfo=a,Z.noted=!0,K=!1);I=a.hostProps;if(wB&&O)I&&(R.hostProps=Object.assign(R.hostProps||{},I),q7||(Z.parentInfo.noted=!0));else for(var q in I)HsB(this,R,Z,"property","_host_"+q,[{mode:"{",source:q,dependencies:[q],hostProp:!0}]);return K};
G._parseBindings=function(I,R){for(var Z=[],K=0,m;(m=HHV.exec(I))!==null;){m.index>K&&Z.push({literal:I.slice(K,m.index)});K=m[1][0];var a=!!m[2];m=m[3].trim();var O=!1,N="",q=-1;K=="{"&&(q=m.indexOf("::"))>0&&(N=m.substring(q+2),m=m.substring(0,q),O=!0);q=cAr(m);var w=[];if(q){var F=q,n=F.args;F=F.methodName;for(var U=0;U<n.length;U++){var k=n[U];k.literal||w.push(k)}if((n=R.dynamicFns)&&n[F]||q.static)w.push(F),q.dynamicFn=!0}else w.push(m);Z.push({source:m,mode:K,negate:a,customEvent:O,signature:q,
dependencies:w,event:N});K=HHV.lastIndex}K&&K<I.length&&(I=I.substring(K))&&Z.push({literal:I});return Z.length?Z:null};
G._evaluateBinding=function(I,R,Z,K,m,a){I=R.signature?thC(I,Z,K,m,R.signature):Z!=R.source?SK(I,R.source):a&&kt(Z)?SK(I,Z):I.__data[Z];R.negate&&(I=!I);return I};
_.Nh.Object.defineProperties(G.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return hXK}}});
return G}),ok=[];var XBK=window.ShadyCSS&&window.ShadyCSS.cssBuild,u3=D9(function(G){function c(R,Z,K,m){if(!XBK){for(var a=Z.content.querySelectorAll("style"),O=Qwf(Z),N=mB8(K),q=Z.content.firstElementChild,w=0;w<N.length;w++){var F=N[w];F.textContent=R._processStyleText(F.textContent,m);Z.content.insertBefore(F,q)}for(q=N=0;q<O.length;q++)w=O[q],F=a[N],F!==w?(w=w.cloneNode(!0),F.parentNode.insertBefore(w,F)):N++,w.textContent=R._processStyleText(w.textContent,m)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Z,
K);if(bHe&&XBK&&nWK&&(Z=Z.content.querySelectorAll("style"))){var n="";Array.from(Z).forEach(function(U){n+=U.textContent;U.parentNode.removeChild(U)});
R._styleSheet=new CSSStyleSheet;R._styleSheet.replaceSync(n)}}
var I=VD9(UB(G));G=function(){return I.call(this)||this};
_.u(G,I);G._finalizeClass=function(){I._finalizeClass.call(this);var R;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(R=this.__ownObservers)&&this.createObservers(R,this._properties);this._prepareTemplate()};
G._prepareTemplate=function(){var R=this.template;R&&(typeof R==="string"?(console.error("template getter must return HTMLTemplateElement"),R=null):yF||(R=R.cloneNode(!0)));this.prototype._template=R};
G.createProperties=function(R){for(var Z in R){var K=this.prototype,m=Z,a=R[Z],O=R;a.computed&&(a.readOnly=!0);a.computed&&(K._hasReadOnlyEffect(m)?console.warn("Cannot redefine computed property '"+m+"'."):K._createComputedProperty(m,a.computed,O));a.readOnly&&!K._hasReadOnlyEffect(m)?K._createReadOnlyProperty(m,!a.computed):a.readOnly===!1&&K._hasReadOnlyEffect(m)&&console.warn("Cannot make readOnly property '"+m+"' non-readOnly.");a.reflectToAttribute&&!K._hasReflectEffect(m)?K._createReflectedProperty(m):
a.reflectToAttribute===!1&&K._hasReflectEffect(m)&&console.warn("Cannot make reflected property '"+m+"' non-reflected.");a.notify&&!K._hasNotifyEffect(m)?K._createNotifyingProperty(m):a.notify===!1&&K._hasNotifyEffect(m)&&console.warn("Cannot make notify property '"+m+"' non-notify.");a.observer&&K._createPropertyObserver(m,a.observer,O[a.observer]);K._addPropertyToAttributeMap(m)}};
G.createObservers=function(R,Z){for(var K=this.prototype,m=0;m<R.length;m++)K._createMethodObserver(R[m],Z)};
G.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);I.prototype._initializeProperties.call(this);this.rootPath=vWp;this.importPath=this.constructor.importPath;var R=this.constructor;if(!R.hasOwnProperty("__propertyDefaults")){R.__propertyDefaults=null;var Z=R._properties,K;for(K in Z){var m=Z[K];"value"in m&&(R.__propertyDefaults=R.__propertyDefaults||{},R.__propertyDefaults[K]=m)}}if(R=R.__propertyDefaults)for(var a in R)Z=R[a],
this._canApplyPropertyDefault(a)&&(Z=typeof Z.value=="function"?Z.value.call(this):Z.value,this._hasAccessor(a)?this._setPendingProperty(a,Z,!0):this[a]=Z)};
G.prototype._canApplyPropertyDefault=function(R){return!this.hasOwnProperty(R)};
G._processStyleText=function(R,Z){return Dop(R,Z)};
G._finalizeTemplate=function(R){var Z=this.prototype._template;if(Z&&!Z.__polymerFinalized){Z.__polymerFinalized=!0;var K=this.importPath;K=K?_.oD(K):"";c(this,Z,R,K);this.prototype._bindTemplate(Z)}};
G.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);I.prototype.connectedCallback.call(this)};
G.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);I.prototype.ready.call(this)};
G.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));I.prototype._readyClients.call(this)};
G.prototype._attachDom=function(R){var Z=(0,_.VF)(this);if(Z.attachShadow)return R?(Z.shadowRoot||(Z.attachShadow({mode:"open",shadyUpgradeFragment:R}),Z.shadowRoot.appendChild(R),this.constructor._styleSheet&&(Z.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),oWK&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Z.shadowRoot),Z.shadowRoot):null;throw Error("Hd");};
G.prototype.updateStyles=function(R){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,R)};
G.prototype.resolveUrl=function(R,Z){!Z&&this.importPath&&(Z=_.oD(this.importPath));return _.oD(R,Z)};
G._parseTemplateContent=function(R,Z,K){Z.dynamicFns=Z.dynamicFns||this._properties;return I._parseTemplateContent.call(this,R,Z,K)};
G._addTemplatePropertyEffect=function(R,Z,K){!Rf||Z in this._properties||K.info.part.signature&&K.info.part.signature.static||K.info.part.hostProp||R.nestedTemplate||console.warn("Property '"+Z+"' used in template but not declared in 'properties'; attribute will not be observed.");return I._addTemplatePropertyEffect.call(this,R,Z,K)};
_.Nh.Object.defineProperties(G,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var R=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof R==="function"&&(R=R());if(R===void 0){if(R=this.hasOwnProperty("is")){R=this.is;var Z=null;if(R&&(!Z0||DYe)&&(Z=ix.import(R,"template"),Z0&&!Z))throw Error("Gd`"+R);R=Z}R=R||Object.getPrototypeOf(this.prototype).constructor.template}this._template=R}return this._template},
set:function(R){this._template=R}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var R=this.importMeta;R?this._importPath=oPO(R.url):this._importPath=(R=ix.import(this.is))&&R.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return G});var ycK=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(G){return G}}),q_p=function(G,c){gWN(G,c);
this.value=c.reduce(function(I,R,Z){return I+wer(R)+G[Z+1]},G[0]).toString()},gWN;
q_p.prototype.toString=function(){return this.value};
_.Ym0=function(G){var c=_.Hy.apply(1,arguments);gWN(G,c);var I=document.createElement("template");c=c.reduce(function(R,Z,K){if(Z instanceof HTMLTemplateElement)Z=Z.innerHTML;else if(Z instanceof q_p)Z=wer(Z);else throw Error("Jd`"+Z);return R+Z+G[K+1]},G[0]);
ycK&&(c=ycK.createHTML(c));I.innerHTML=c;return I};
gWN=function(G,c){if(!Array.isArray(G)||!Array.isArray(G.raw)||c.length!==G.length-1)throw new TypeError("Kd");};var b3=u3(HTMLElement);var GzT=D9(function(G){var c=u3(G);G=function(){var I=c.call(this)||this;I.__lastItems=null;I.__lastMulti=null;I.__selectedMap=null;return I};
_.u(G,c);G.prototype.__updateSelection=function(I,R){var Z=R.path;Z=="items"?(R=R.base||[],Z=this.__lastItems,I!==this.__lastMulti&&this.clearSelection(),Z&&(Z=loO(R,Z),this.__applySplices(Z)),this.__lastItems=R,this.__lastMulti=I):R.path=="items.splices"?this.__applySplices(R.value.indexSplices):(I=Z.slice(6),R=parseInt(I,10),I.indexOf(".")<0&&I==R&&this.__deselectChangedIdx(R))};
G.prototype.__applySplices=function(I){for(var R=this,Z=this.__selectedMap,K={},m=0;m<I.length;K={s$jscomp$109:void 0},m++){K.s$jscomp$109=I[m];Z.forEach(function(q){return function(w,F){w<q.s$jscomp$109.index||(w>=q.s$jscomp$109.index+q.s$jscomp$109.removed.length?Z.set(F,w+q.s$jscomp$109.addedCount-q.s$jscomp$109.removed.length):Z.set(F,-1))}}(K));
for(var a=0;a<K.s$jscomp$109.addedCount;a++){var O=K.s$jscomp$109.index+a;Z.has(this.items[O])&&Z.set(this.items[O],O)}}this.__updateLinks();var N=0;Z.forEach(function(q,w){q<0?(R.multi?R.splice("selected",N,1):R.selected=R.selectedItem=null,Z.delete(w)):N++})};
G.prototype.__updateLinks=function(){var I=this;this.__dataLinkedPaths={};if(this.multi){var R=0;this.__selectedMap.forEach(function(Z){Z>=0&&I.linkPaths("items."+Z,"selected."+R++)})}else this.__selectedMap.forEach(function(Z){I.linkPaths("selected","items."+Z);
I.linkPaths("selectedItem","items."+Z)})};
G.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
G.prototype.isSelected=function(I){return this.__selectedMap.has(I)};
G.prototype.isIndexSelected=function(I){return this.isSelected(this.items[I])};
G.prototype.__deselectChangedIdx=function(I){var R=this,Z=this.__selectedIndexForItemIndex(I);if(Z>=0){var K=0;this.__selectedMap.forEach(function(m,a){Z==K++&&R.deselect(a)})}};
G.prototype.__selectedIndexForItemIndex=function(I){if(I=this.__dataLinkedPaths["items."+I])return parseInt(I.slice(9),10)};
G.prototype.deselect=function(I){var R=this.__selectedMap.get(I);if(R>=0){this.__selectedMap.delete(I);var Z;this.multi&&(Z=this.__selectedIndexForItemIndex(R));this.__updateLinks();this.multi?this.splice("selected",Z,1):this.selected=this.selectedItem=null}};
G.prototype.deselectIndex=function(I){this.deselect(this.items[I])};
G.prototype.select=function(I){this.selectIndex(this.items.indexOf(I))};
G.prototype.selectIndex=function(I){var R=this.items[I];this.isSelected(R)?this.toggle&&this.deselectIndex(I):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(R,I),this.__updateLinks(),this.multi?this.push("selected",R):this.selected=this.selectedItem=R)};
_.Nh.Object.defineProperties(G,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return G}),cNV=GzT(b3),kS=function(){return cNV.apply(this,arguments)||this};
_.u(kS,cNV);_.Nh.Object.defineProperties(kS,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(kS.is,kS);var IPK=window.Polymer;window.Polymer=function(G){return window.Polymer._polymerFn(G)};
IPK&&Object.assign(Polymer,IPK);Polymer._polymerFn=function(){throw Error("Ld");};/*

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:Dop,resolveUrl:_.oD,pathFromUrl:oPO};Polymer.DomModule=ix;Polymer.Async={timeOut:_.vw,animationFrame:_.AN,idlePeriod:$YB,microTask:HN};Polymer.dedupingMixin=D9;Polymer.wrap=_.VF;Polymer.PropertiesChanged=pB2;Polymer.telemetry={instanceCount:MDB,incrementInstanceCount:function(){MDB++},
registrations:k$8,register:slp,dumpRegistrations:function(){k$8.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=VD9;Polymer.CaseMap={dashToCamelCase:ux,camelToDashCase:bx};Polymer.PropertyAccessors=f4K;Polymer.TemplateStamp=tD9;Polymer.Path={isPath:kt,root:sp,isAncestor:Mhq,isDescendant:LY,translate:Aa,matches:Vhr,normalize:$t,split:zkr,get:SK,set:EPq,isDeep:kt};Polymer.Settings={useShadow:gZ,useNativeCSSProperties:NDA,useNativeCustomElements:l4B,get rootPath(){return vWp},setRootPath:function(G){vWp=G},
get sanitizeDOMValue(){return zP},setSanitizeDOMValue:function(G){zP=G},
get passiveTouchGestures(){return $BU},setPassiveTouchGestures:function(G){$BU=G},
get strictTemplatePolicy(){return Z0},setStrictTemplatePolicy:function(G){Z0=G},
get allowTemplateFromDomModule(){return DYe},setAllowTemplateFromDomModule:function(G){DYe=G},
get legacyOptimizations(){return yF},setLegacyOptimizations:function(G){yF=G},
get syncInitialRender(){return oWK},setSyncInitialRender:function(G){oWK=G},
get legacyUndefined(){return Ja},setLegacyUndefined:function(G){Ja=G},
get legacyWarnings(){return Rf},setLegacyWarnings:function(G){Rf=G},
get orderedComputed(){return UYT},setOrderedComputed:function(G){UYT=G},
get fastDomIf(){return wB},setFastDomIf:function(G){wB=G},
get removeNestedTemplates(){return q7},setRemoveNestedTemplates:function(G){q7=G},
get suppressTemplateNotifications(){return Fg},setSuppressTemplateNotifications:Fg};Polymer.rootPath!==void 0&&(vWp=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(zP=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&($BU=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Z0=Polymer.strictTemplatePolicy);DYe=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(yF=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(oWK=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Ja=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Rf=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(UYT=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(wB=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(q7=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Fg=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return zP},
set:function(G){zP=G}});Polymer.PropertyEffects=UB;Polymer.StyleGather={stylesFromModules:PJC,stylesFromModule:KGA,stylesFromTemplate:Qwf,stylesFromModuleImports:mB8,cssFromModules:TGB,cssFromModule:aor,cssFromTemplate:OMO,cssFromModuleImports:function(G){return(G=ix.import(G))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):""}};Polymer.ElementMixin=u3;Polymer.updateStyles=function(G){window.ShadyCSS&&window.ShadyCSS.styleDocument(G)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:loO};Polymer.html=_.Ym0;Polymer.htmlLiteral=function(G){return new q_p(G,_.Hy.apply(1,arguments))};Polymer.Element=b3;Polymer.ArraySelectorMixin=GzT;Polymer.ArraySelector=kS;var RGi=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Zde=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,XCg=/@media\s(.*)/;var DBf=null,vXO=window.HTMLImports&&window.HTMLImports.whenReady||null,oXB;var KwK=null,sB=null,Lq=function(){this.customStyles=[];this.enqueued=!1;UB8(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},PDk=function(G){!G.enqueued&&sB&&(G.enqueued=!0,UB8(sB))};
Lq.prototype.addCustomStyle=function(G){G.__seenByShadyCSS||(G.__seenByShadyCSS=!0,this.customStyles.push(G),PDk(this))};
Lq.prototype.getStyleForCustomStyle=function(G){if(G.__shadyCSSCachedStyle)return G.__shadyCSSCachedStyle;var c;G.getStyle?c=G.getStyle():c=G;return c};
Lq.prototype.processStyles=function(){for(var G=this.customStyles,c=0;c<G.length;c++){var I=G[c];if(!I.__shadyCSSCachedStyle){var R=this.getStyleForCustomStyle(I);R&&(R=R.__appliedElement||R,KwK&&KwK(R),I.__shadyCSSCachedStyle=R)}}return G};
Lq.prototype.addCustomStyle=Lq.prototype.addCustomStyle;Lq.prototype.getStyleForCustomStyle=Lq.prototype.getStyleForCustomStyle;Lq.prototype.processStyles=Lq.prototype.processStyles;Object.defineProperties(Lq.prototype,{transformCallback:{get:function(){return KwK},
set:function(G){KwK=G}},
validateCallback:{get:function(){return sB},
set:function(G){var c=!1;sB||(c=!0);sB=G;c&&PDk(this)}}});var bMb=!(window.ShadyDOM&&window.ShadyDOM.inUse),u0A,eL;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(eL=window.ShadyCSS.cssBuild);var QJK=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?u0A=window.ShadyCSS.nativeCss:window.ShadyCSS?(kF0(window.ShadyCSS),window.ShadyCSS=void 0):kF0(window.WebComponents&&window.WebComponents.flags);var dOO=u0A;var mCk=new Lq;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(G,c){mCk.processStyles();FGT(G,c)},
styleElement:function(){mCk.processStyles()},
styleDocument:function(G){mCk.processStyles();FGT(document.body,G)},
getComputedStyleValue:function(G,c){return nXq(G,c)},
flushCustomStyles:function(){},
nativeCss:dOO,nativeShadow:bMb,cssBuild:eL,disableRuntime:QJK});window.ShadyCSS.CustomStyleInterface=mCk;var aPe=window.ShadyCSS.CustomStyleInterface,Ak=function(){var G=HTMLElement.call(this)||this;G._style=null;aPe.addCustomStyle(G);return G};
_.u(Ak,HTMLElement);Ak.prototype.getStyle=function(){if(this._style)return this._style;var G=this.querySelector("style");if(!G)return null;this._style=G;var c=G.getAttribute("include");c&&(G.removeAttribute("include"),G.textContent=TGB(c)+G.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Ak.prototype.getStyle=Ak.prototype.getStyle;window.customElements.define("custom-style",Ak);Polymer.CustomStyle=Ak;var $S=function(){this._timer=this._callback=this._asyncModule=null},Sd,Odp;
$S.prototype.setConfig=function(G,c){var I=this;this._asyncModule=G;this._callback=c;this._timer=this._asyncModule.run(function(){I._timer=null;Sd.delete(I);I._callback()})};
$S.prototype.cancel=function(){this.isActive()&&(T0i(this),Sd.delete(this))};
var T0i=function(G){G.isActive()&&(G._asyncModule.cancel(G._timer),G._timer=null)};
$S.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
$S.prototype.isActive=function(){return this._timer!=null};
_.pq=function(G,c,I){G instanceof $S?T0i(G):G=new $S;G.setConfig(c,I);return G};
Sd=new Set;_.M7=function(G){Sd.add(G)};
Odp=function(){var G=!!Sd.size;Sd.forEach(function(c){try{c.flush()}catch(I){setTimeout(function(){throw I;})}});
return G};var LGi=typeof document.head.style.touchAction==="string",swf=["mousedown","mousemove","mouseup","click"],JA0=[0,1,4,2],eG2;try{eG2=(new MouseEvent("test",{buttons:1})).buttons===1}catch(G){eG2=!1}var EXB=eG2,AAg=!1;(function(){try{var G=Object.defineProperty({},"passive",{get:function(){AAg=!0}});
window.addEventListener("test",null,G);window.removeEventListener("test",null,G)}catch(c){}})();
var per=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),MXg=[],N0A={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},HMA={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},VXp=function(G){var c=G.sourceCapabilities;if(!c||c.firesTouchEvents)if(G.__polymerGesturesHandled={skip:!0},G.type==="click"){c=!1;for(var I=BGC(G),R=0;R<I.length;R++){if(I[R].nodeType===Node.ELEMENT_NODE)if(I[R].localName==="label")MXg.push(I[R]);
else if(N0A[I[R].localName]){var Z=I[R];var K=Array.prototype.slice.call(Z.labels||[]);if(!K.length){K=[];try{var m=Z.getRootNode();if(Z.id){var a=m.querySelectorAll("label[for = '"+Z.id+"']");for(Z=0;Z<a.length;Z++)K.push(a[Z])}}catch(O){}}for(Z=0;Z<K.length;Z++)c=c||MXg.indexOf(K[Z])>-1}if(I[R]===lP0)return}c||(G.preventDefault(),G.stopPropagation())}},lP0=null,Vy=null,jwO=0,xBB=0,rA8=-1,tXr=!1;
document.addEventListener("touchend",function(G){Vy||zUB(!0);lP0=BGC(G)[0];Vy=_.pq(Vy,_.vw.after(2500),function(){zUB();Vy=lP0=null})},AAg?{passive:!0}:!1);
var BGC=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(G){return G.composedPath&&G.composedPath()||[]},ta={},jK=[];
hUf({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){rZ(this.info)},
mousedown:function(G){if(BN(G)){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),I=this;iMT(this.info,function(R){BN(R)||(Xd("up",c,R),rZ(I.info))},function(R){BN(R)&&Xd("up",c,R);
rZ(I.info)});
Xd("down",c,G)}},
touchstart:function(G){Xd("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)},
touchend:function(G){Xd("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)}});
hUf({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(G){this.moves.length>2&&this.moves.shift();this.moves.push(G)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;rZ(this.info)},
mousedown:function(G){if(BN(G)){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),I=this,R=function(Z){var K=Z.clientX,m=Z.clientY;dBB(I.info,K,m)&&(I.info.state=I.info.started?Z.type==="mouseup"?"end":"track":"start",I.info.state==="start"&&xt("tap"),I.info.addMove({x:K,y:m}),BN(Z)||(I.info.state="end",rZ(I.info)),c&&CJU(I.info,c,Z),I.info.started=!0)};
iMT(this.info,R,function(Z){I.info.started&&R(Z);rZ(I.info)});
this.info.x=G.clientX;this.info.y=G.clientY}},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchmove:function(G){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];var I=G.clientX,R=G.clientY;dBB(this.info,I,R)&&(this.info.state==="start"&&xt("tap"),this.info.addMove({x:I,y:R}),CJU(this.info,c,G),this.info.state="track",this.info.started=!0)},
touchend:function(G){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:G.clientX,y:G.clientY}),CJU(this.info,c,G))}});
hUf({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(G){BN(G)&&(this.info.x=G.clientX,this.info.y=G.clientY)},
click:function(G){BN(G)&&XeO(this.info,G)},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchend:function(G){XeO(this.info,G.changedTouches[0],G)}});var qne=D9(function(G){var c=function(){return G.apply(this,arguments)||this};
_.u(c,G);c.prototype._addEventListenerToNode=function(I,R,Z){ha(I,R,Z)||G.prototype._addEventListenerToNode.call(this,I,R,Z)};
c.prototype._removeEventListenerFromNode=function(I,R,Z){dZ(I,R,Z)||G.prototype._removeEventListenerFromNode.call(this,I,R,Z)};
return c});var zZ=D9(function(G){var c=function(){return G.apply(this,arguments)||this};
_.u(c,G);c.prototype._shouldPropertyChange=function(I,R,Z){return yAi(this,I,R,Z,!0)};
return c}),wIp=D9(function(G){var c=function(){return G.apply(this,arguments)||this};
_.u(c,G);c.prototype._shouldPropertyChange=function(I,R,Z){return yAi(this,I,R,Z,this.mutableData)};
_.Nh.Object.defineProperties(c,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return c});
zZ._mutablePropertyChange=yAi;var gXr=!1;var Fwi=qne(wIp(UB(HTMLElement))),EB=function(){var G=Fwi.call(this)||this;if(Z0)throw Error("Md");G.root=null;G.$=null;G.__children=null;return G};
_.u(EB,Fwi);_.P=EB.prototype;_.P.attributeChangedCallback=function(){this.mutableData=!0};
_.P.connectedCallback=function(){Y_b()||(this.style.display="none");this.render()};
_.P.disconnectedCallback=function(){this.__removeChildren()};
_.P.__insertChildren=function(){(0,_.VF)((0,_.VF)(this).parentNode).insertBefore(this.root,this)};
_.P.__removeChildren=function(){if(this.__children)for(var G=0;G<this.__children.length;G++)this.root.appendChild(this.__children[G])};
_.P.render=function(){var G=this;if(!this.__children){var c=c||this.querySelector("template");if(!c){var I=new MutationObserver(function(){if(c=G.querySelector("template"))I.disconnect(),G.render();else throw Error("Nd");});
I.observe(this,{childList:!0});return}this.root=this._stampTemplate(c);this.$=this.root.$;this.__children=[];for(var R=this.root.firstChild;R;R=R.nextSibling)this.__children[this.__children.length]=R;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Nh.Object.defineProperties(EB,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",EB);Polymer.Debouncer=$S;Polymer.Gestures={gestures:ta,recognizers:jK,deepTargetFind:foU,addListener:ha,removeListener:dZ,register:hUf,setTouchAction:_.CY,prevent:xt,resetMouseCanceller:function(){Vy&&Vy.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:ha,remove:dZ};Polymer.GestureEventListeners=qne;Polymer.MutableData=zZ;Polymer.OptionalMutableData=wIp;Polymer.DomBind=EB;_.Jk=function(){do{var G=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var c=Odp()}while(G||c)};var GoC=null;c7b.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:c7b,writable:!0}});var akb=UB(c7b),mOA=zZ(akb),nCK=UB(function(){}),cb=function(G){var c=nCK.call(this)||this;
c._configureProperties(G);c.root=c._stampTemplate(c.__dataHost);var I=[];c.children=I;for(var R=c.root.firstChild;R;R=R.nextSibling)I.push(R),R.__templatizeInstance=c;c.__templatizeOwner&&c.__templatizeOwner.__hideTemplateChildren__&&c._showHideChildren(!0);I=c.__templatizeOptions;(G&&I.instanceProps||!I.instanceProps)&&c._enableProperties();return c};
_.u(cb,nCK);_.P=cb.prototype;_.P._configureProperties=function(G){if(this.__templatizeOptions.forwardHostProp)for(var c in this.__hostProps)this._setPendingProperty(c,this.__dataHost["_host_"+c]);for(var I in G)this._setPendingProperty(I,G[I])};
_.P.forwardHostProp=function(G,c){this._setPendingPropertyOrPath(G,c,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.P._addEventListenerToNode=function(G,c,I){var R=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(G,c,function(K){K.model=R;I(K)});
else{var Z=this.__dataHost.__dataHost;Z&&Z._addEventListenerToNode(G,c,I)}};
_.P._showHideChildren=function(G){RVg(G,this.children)};
_.P._setUnmanagedPropertyToNode=function(G,c,I){G.__hideTemplateChildren__&&G.nodeType==Node.TEXT_NODE&&c=="textContent"?G.__polymerTextContent__=I:nCK.prototype._setUnmanagedPropertyToNode.call(this,G,c,I)};
_.P.dispatchEvent=function(){return!0};
_.Nh.Object.defineProperties(cb.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var G=this.__parentModel;if(!G){var c;G=this;do G=G.__dataHost.__dataHost;while((c=G.__templatizeOptions)&&!c.parentModel);this.__parentModel=G}return G}}});
var KVO=zZ(cb);var Ww=function(){var G=b3.call(this)||this;G.__renderDebouncer=null;G._lastIf=!1;G.__hideTemplateChildren__=!1;return G};
_.u(Ww,b3);_.P=Ww.prototype;_.P.__debounceRender=function(){var G=this;this.__renderDebouncer=_.pq(this.__renderDebouncer,HN,function(){return G.__render()});
_.M7(this.__renderDebouncer)};
_.P.disconnectedCallback=function(){b3.prototype.disconnectedCallback.call(this);var G=(0,_.VF)(this).parentNode;G&&(G.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.VF)(G).host)||this.__teardownInstance()};
_.P.connectedCallback=function(){b3.prototype.connectedCallback.call(this);Y_b()||(this.style.display="none");this.if&&this.__debounceRender()};
_.P.__ensureTemplate=function(){var G=this;if(!this.__template){var c=this._templateInfo?this:(0,_.VF)(this).querySelector("template");if(!c){var I=new MutationObserver(function(){if((0,_.VF)(G).querySelector("template"))I.disconnect(),G.__render();else throw Error("Qd");});
I.observe(this,{childList:!0});return!1}this.__template=c}return!0};
_.P.__ensureInstance=function(){var G=(0,_.VF)(this).parentNode;if(this.__hasInstance()){var c=this.__getInstanceNodes();if(c&&c.length&&(0,_.VF)(this).previousSibling!==c[c.length-1])for(var I=0,R=void 0;I<c.length&&(R=c[I]);I++)(0,_.VF)(G).insertBefore(R,this)}else{if(!G||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(G)}return!0};
_.P.render=function(){_.Jk()};
_.P.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Fg&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.P.__hasInstance=function(){};
_.P.__getInstanceNodes=function(){};
_.P.__createAndInsertInstance=function(){};
_.P.__teardownInstance=function(){};
_.P._showHideChildren=function(){};
_.Nh.Object.defineProperties(Ww,{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:Ww.prototype.__debounceRender},restamp:{type:Boolean,observer:Ww.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var vCA=function(){var G=Ww.call(this)||this;G.__instance=null;G.__syncInfo=null;return G};
_.u(vCA,Ww);_.P=vCA.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.P.__createAndInsertInstance=function(G){var c=this,I=this.__dataHost||this;if(Z0&&!this.__dataHost)throw Error("Od");var R=I._bindTemplate(this.__template,!0);R.runEffects=function(Z,K,m){var a=c.__syncInfo;if(c.if)a&&(c.__syncInfo=null,c._showHideChildren(),K=Object.assign(a.changedProps,K)),Z(K,m);else if(c.__instance)if(a||(a=c.__syncInfo={runEffects:Z,changedProps:{}}),m)for(var O in K)Z=sp(O),a.changedProps[Z]=c.__dataHost[Z];else Object.assign(a.changedProps,K)};
this.__instance=I._stampTemplate(this.__template,R);(0,_.VF)(G).insertBefore(this.__instance,this)};
_.P.__syncHostProperties=function(){var G=this.__syncInfo;G&&(this.__syncInfo=null,G.runEffects(G.changedProps,!1))};
_.P.__teardownInstance=function(){var G=this.__dataHost||this;this.__instance&&(G._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.P._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,RVg(G,this.__instance.templateInfo.childNodes));G||this.__syncHostProperties()};
var DCT=function(){var G=Ww.call(this)||this;G.__ctor=null;G.__instance=null;G.__invalidProps=null;return G};
_.u(DCT,Ww);_.P=DCT.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.children};
_.P.__createAndInsertInstance=function(G){this.__ctor||(this.__ctor=If(this.__template,this,{mutableData:!0,forwardHostProp:function(c,I){this.__instance&&(this.if?this.__instance.forwardHostProp(c,I):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[sp(c)]=!0))}}));
this.__instance=new this.__ctor;(0,_.VF)(G).insertBefore(this.__instance.root,this)};
_.P.__teardownInstance=function(){if(this.__instance){var G=this.__instance.children;if(G&&G.length){var c=(0,_.VF)(G[0]).parentNode;if(c){c=(0,_.VF)(c);for(var I=0,R=void 0;I<G.length&&(R=G[I]);I++)c.removeChild(R)}}this.__instance=this.__invalidProps=null}};
_.P.__syncHostProperties=function(){var G=this.__invalidProps;if(G){this.__invalidProps=null;for(var c in G)this.__instance._setPendingProperty(c,this.__dataHost[c]);this.__instance._flushProperties()}};
_.P._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,this.__instance._showHideChildren(G));G||this.__syncHostProperties()};
_.MY=wB?vCA:DCT;customElements.define(_.MY.is,_.MY);Polymer.enqueueDebouncer=_.M7;Polymer.flush=_.Jk;Polymer.Templatize={templatize:If,modelForElement:qHi};Polymer.TemplateInstanceBase=cb;Polymer.DomIf=_.MY;var oCK=wIp(b3),pH=function(){var G=oCK.call(this)||this;G.__instances=[];G.__renderDebouncer=null;G.__itemsIdxToInstIdx={};G.__chunkCount=null;G.__renderStartTime=null;G.__itemsArrayChanged=!1;G.__shouldMeasureChunk=!1;G.__shouldContinueChunking=!1;G.__chunkingId=0;G.__sortFn=null;G.__filterFn=null;G.__observePaths=null;G.__ctor=null;G.__isDetached=!0;G.template=null;return G};
_.u(pH,oCK);_.P=pH.prototype;_.P.disconnectedCallback=function(){oCK.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var G=0;G<this.__instances.length;G++)this.__detachInstance(G);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.P.connectedCallback=function(){oCK.prototype.connectedCallback.call(this);Y_b()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var G=(0,_.VF)((0,_.VF)(this).parentNode),c=0;c<this.__instances.length;c++)this.__attachInstance(c,G);this.__chunkingId&&this.__render()}};
_.P.__ensureTemplatized=function(){var G=this;if(!this.__ctor){var c=this.template=this._templateInfo?this:this.querySelector("template");if(!c){var I=new MutationObserver(function(){if(G.querySelector("template"))I.disconnect(),G.__render();else throw Error("Rd");});
I.observe(this,{childList:!0});return!1}var R={};R[this.as]=!0;R[this.indexAs]=!0;R[this.itemsIndexAs]=!0;this.__ctor=If(c,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:R,forwardHostProp:function(Z,K){for(var m=this.__instances,a=0,O=void 0;a<m.length&&(O=m[a]);a++)O.forwardHostProp(Z,K)},
notifyInstanceProp:function(Z,K,m){Vhr(this.as,K)&&(Z=Z[this.itemsIndexAs],K==this.as&&(this.items[Z]=m),K=Aa(this.as,"items."+Z,K),this.notifyPath(K,m))}})}return!0};
_.P.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.P.__functionFromPropertyValue=function(G){if(typeof G==="string"){var c=this.__getMethodHost();return function(){return c[G].apply(c,arguments)}}return G};
_.P.__sortChanged=function(G){this.__sortFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.P.__filterChanged=function(G){this.__filterFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.P.__computeFrameTime=function(G){return Math.ceil(1E3/G)};
_.P.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.P.__handleObservedPaths=function(G){if(this.__sortFn||this.__filterFn)if(!G)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var c=this.__observePaths,I=0;I<c.length;I++)G.indexOf(c[I])===0&&this.__debounceRender(this.__render,this.delay)};
_.P.__itemsChanged=function(G){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(G.path,G.value)||(G.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.P.__debounceRender=function(G,c){c=c===void 0?0:c;this.__renderDebouncer=_.pq(this.__renderDebouncer,c>0?_.vw.after(c):HN,G.bind(this));_.M7(this.__renderDebouncer)};
_.P.render=function(){this.__debounceRender(this.__render);_.Jk()};
_.P.__render=function(){var G=this;if(this.__ensureTemplatized()){var c=this.items||[],I=this.__sortAndFilterItems(c),R=this.__calculateLimit(I.length);this.__updateInstances(c,R,I);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){G.__chunkingId=null;G.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Fg&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.__sortAndFilterItems=function(G){for(var c=this,I=Array(G.length),R=0;R<G.length;R++)I[R]=R;this.__filterFn&&(I=I.filter(function(Z,K,m){return c.__filterFn(G[Z],K,m)}));
this.__sortFn&&I.sort(function(Z,K){return c.__sortFn(G[Z],G[K])});
return I};
_.P.__calculateLimit=function(G){var c=G,I=this.__instances.length;if(this.initialCount){var R;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(c=Math.min(G,this.initialCount),this.__chunkCount=(R=Math.max(c-I,0))||1):(R=Math.min(Math.max(G-I,0),this.__chunkCount),c=Math.min(I+R,G));this.__shouldMeasureChunk=R===this.__chunkCount;this.__shouldContinueChunking=c<G;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return c};
_.P.__continueChunking=function(){if(this.__shouldMeasureChunk){var G=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/G*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.P.__updateInstances=function(G,c,I){var R=this.__itemsIdxToInstIdx={},Z;for(Z=0;Z<c;Z++){var K=this.__instances[Z],m=I[Z],a=G[m];R[m]=Z;K?(K._setPendingProperty(this.as,a),K._setPendingProperty(this.indexAs,Z),K._setPendingProperty(this.itemsIndexAs,m),K._flushProperties()):this.__insertInstance(a,Z,m)}for(G=this.__instances.length-1;G>=Z;G--)this.__detachAndRemoveInstance(G)};
_.P.__detachInstance=function(G){G=this.__instances[G];for(var c=(0,_.VF)(G.root),I=0;I<G.children.length;I++)c.appendChild(G.children[I]);return G};
_.P.__attachInstance=function(G,c){c.insertBefore(this.__instances[G].root,this)};
_.P.__detachAndRemoveInstance=function(G){this.__detachInstance(G);this.__instances.splice(G,1)};
_.P.__stampInstance=function(G,c,I){var R={};R[this.as]=G;R[this.indexAs]=c;R[this.itemsIndexAs]=I;return new this.__ctor(R)};
_.P.__insertInstance=function(G,c,I){G=this.__stampInstance(G,c,I);I=(I=this.__instances[c+1])?I.children[0]:this;(0,_.VF)((0,_.VF)(this).parentNode).insertBefore(G.root,I);return this.__instances[c]=G};
_.P._showHideChildren=function(G){for(var c=0;c<this.__instances.length;c++)this.__instances[c]._showHideChildren(G)};
_.P.__handleItemPath=function(G,c){var I=G.slice(6),R=I.indexOf(".");G=R<0?I:I.substring(0,R);if(G==parseInt(G,10)){I=R<0?"":I.substring(R+1);this.__handleObservedPaths(I);if(G=this.__instances[this.__itemsIdxToInstIdx[G]])G._setPendingPropertyOrPath(this.as+(I?"."+I:""),c,!1,!0),G._flushProperties();return!0}};
_.P.itemForElement=function(G){return(G=this.modelForElement(G))&&G[this.as]};
_.P.indexForElement=function(G){return(G=this.modelForElement(G))&&G[this.indexAs]};
_.P.modelForElement=function(G){return qHi(this.template,G)};
_.Nh.Object.defineProperties(pH,{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:pH.prototype.__sortChanged},filter:{type:Function,observer:pH.prototype.__filterChanged},observe:{type:String,observer:pH.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Fg,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.*)"]}}});
pH.prototype._setRenderedItemCount=function(){};
customElements.define(pH.is,pH);Polymer.DomRepeat=pH;var UCN=function(G,c){var I=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=G;this.callback=c;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){I._schedule()};
this.connect();this._schedule()},uPe=function(G){var c=(0,_.VF)(G);
if(KF(G))return c.assignedNodes({flatten:!0});G=[];for(var I=0;I<c.childNodes.length;I++){var R=c.childNodes[I];KF(R)?G.push.apply(G,_.jn((0,_.VF)(R).assignedNodes({flatten:!0}))):G.push(R)}return G};
_.P=UCN.prototype;_.P.connect=function(){var G=this;KF(this._target)?this._listenSlots([this._target]):(0,_.VF)(this._target).children&&(this._listenSlots((0,_.VF)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(c){G._processMutations(c)}):(this._nativeChildrenObserver=new MutationObserver(function(c){G._processMutations(c)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.P.disconnect=function(){KF(this._target)?this._unlistenSlots([this._target]):(0,_.VF)(this._target).children&&(this._unlistenSlots((0,_.VF)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.P._schedule=function(){var G=this;this._scheduled||(this._scheduled=!0,HN.run(function(){return G.flush()}))};
_.P._processMutations=function(G){this._processSlotMutations(G);this.flush()};
_.P._processSlotMutations=function(G){if(G)for(var c=0;c<G.length;c++){var I=G[c];I.addedNodes&&this._listenSlots(I.addedNodes);I.removedNodes&&this._unlistenSlots(I.removedNodes)}};
_.P.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var G={target:this._target,addedNodes:[],removedNodes:[]},c=uPe(this._target),I=loO(c,this._effectiveNodes),R=0,Z=void 0;R<I.length&&(Z=I[R]);R++)for(var K=0,m=void 0;K<Z.removed.length&&(m=Z.removed[K]);K++)G.removedNodes.push(m);
R=0;for(Z=void 0;R<I.length&&(Z=I[R]);R++)for(K=Z.index;K<Z.index+Z.addedCount;K++)G.addedNodes.push(c[K]);this._effectiveNodes=c;c=!1;if(G.addedNodes.length||G.removedNodes.length)c=!0,this.callback.call(this._target,G);return c};
_.P._listenSlots=function(G){for(var c=0;c<G.length;c++){var I=G[c];KF(I)&&I.addEventListener("slotchange",this._boundSchedule)}};
_.P._unlistenSlots=function(G){for(var c=0;c<G.length;c++){var I=G[c];KF(I)&&I.removeEventListener("slotchange",this._boundSchedule)}};var i3=Element.prototype,bdB=i3.matches||i3.matchesSelector||i3.mozMatchesSelector||i3.msMatchesSelector||i3.oMatchesSelector||i3.webkitMatchesSelector,kze=function(G,c){return bdB.call(G,c)},Pb=function(G){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(G);
this.node=G},$Ce;
_.P=Pb.prototype;_.P.observeNodes=function(G){return new UCN(this.node,G)};
_.P.unobserveNodes=function(G){G.disconnect()};
_.P.notifyObserver=function(){};
_.P.deepContains=function(G){if((0,_.VF)(this.node).contains(G))return!0;var c=G;for(G=G.ownerDocument;c&&c!==G&&c!==this.node;)c=(0,_.VF)(c).parentNode||(0,_.VF)(c).host;return c===this.node};
_.P.getOwnerRoot=function(){return(0,_.VF)(this.node).getRootNode()};
_.P.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.VF)(this.node).assignedNodes({flatten:!0}):[]};
_.P.getDestinationInsertionPoints=function(){for(var G=[],c=(0,_.VF)(this.node).assignedSlot;c;)G.push(c),c=(0,_.VF)(c).assignedSlot;return G};
_.P.importNode=function(G,c){return(0,_.VF)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(G,c)};
_.P.getEffectiveChildNodes=function(){return uPe(this.node)};
_.P.queryDistributedElements=function(G){for(var c=this.getEffectiveChildNodes(),I=[],R=0,Z=c.length,K=void 0;R<Z&&(K=c[R]);R++)K.nodeType===Node.ELEMENT_NODE&&kze(K,G)&&I.push(K);return I};
_.Nh.Object.defineProperties(Pb.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var G=this.node;return G._activeElement!==void 0?G._activeElement:G.activeElement}}});
var fq=function(G){this.event=G};
_.Nh.Object.defineProperties(fq.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 sJT=Pb;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var Lw0=window.ShadyDOM.Wrapper,AN0=function(){return Lw0.apply(this,arguments)||this};
_.u(AN0,Lw0);Object.getOwnPropertyNames(Pb.prototype).forEach(function(G){G!="activeElement"&&G!="constructor"&&(AN0.prototype[G]=Pb.prototype[G])});
FVr(AN0.prototype,["classList"]);sJT=AN0;Object.defineProperties(fq.prototype,{localTarget:{get:function(){var G=this.event.currentTarget;G=G&&_.qy(G).getOwnerRoot();for(var c=this.path,I=0;I<c.length;I++){var R=c[I];if(_.qy(R).getOwnerRoot()===G)return R}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else wCU(),FVr(Pb.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),nob();$Ce=sJT;_.qy=function(G){G=G||document;if(G instanceof sJT)return G;if(G instanceof fq)return G;var c=G.__domApi;c||(G instanceof Event?c=new fq(G):c=new sJT(G),G.__domApi=c);return c};var SnB=/:host\(:dir\((ltr|rtl)\)\)/g,pIK=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Mk9=/:dir\((?:ltr|rtl)\)/,VkK=!(!window.ShadyDOM||!window.ShadyDOM.inUse),mI=[],Bw=null,QX="",zG0=D9(function(G){VkK||Bw||(QX=document.documentElement.getAttribute("dir"),Bw=new MutationObserver(voO),Bw.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var c=f4K(G);G=function(){var I=c.call(this)||this;I.__autoDirOptOut=!1;return I};
_.u(G,c);G._processStyleText=function(I,R){I=c._processStyleText.call(this,I,R);!VkK&&Mk9.test(I)&&(I=this._replaceDirInCssText(I),this.__activateDir=!0);return I};
G._replaceDirInCssText=function(I){I=I.replace(SnB,':host([dir="$1"])');return I=I.replace(pIK,':host([dir="$2"]) $1')};
G.prototype.ready=function(){c.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
G.prototype.connectedCallback=function(){c.prototype.connectedCallback&&c.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Bw&&Bw.takeRecords().length&&voO(),mI.push(this),this.__autoDirOptOut||this.setAttribute("dir",QX))};
G.prototype.disconnectedCallback=function(){c.prototype.disconnectedCallback&&c.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var I=mI.indexOf(this);I>-1&&mI.splice(I,1)}};
G.__activateDir=!1;return G});var EC2=function(G){for(;G;){var c=Object.getOwnPropertyDescriptor(G,"observedAttributes");if(c)return c.get;G=Object.getPrototypeOf(G.prototype).constructor}return function(){return[]}};
D9(function(G){var c=u3(G),I=EC2(c);G=function(){return c.call(this)||this};
_.u(G,c);G.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:c.prototype._initializeProperties.call(this)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||c.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(R){return c.prototype._canApplyPropertyDefault.call(this,R)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(R))};
G.prototype.attributeChangedCallback=function(R,Z,K,m){R=="disable-upgrade"?this.__isUpgradeDisabled&&K==null&&(c.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.VF)(this).isConnected&&c.prototype.connectedCallback.call(this)):c.prototype.attributeChangedCallback.call(this,R,Z,K,m)};
G.prototype.connectedCallback=function(){this.__isUpgradeDisabled||c.prototype.connectedCallback.call(this)};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||c.prototype.disconnectedCallback.call(this)};
_.Nh.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I.call(this).concat("disable-upgrade")}}});
return G});var af=!1,ooT=[],Tm=[];var kob=window.ShadyDOM,s3A=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",A7T):document.readyState==="interactive"||document.readyState==="complete"?A7T():window.addEventListener("DOMContentLoaded",A7T);var pC8=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=""},$Or=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,SHf=/@import[^;]*;/gim,WVb=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,iyf=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,fk0=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,BIO=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Eof=/^@[^\s]*keyframes/,
zVf=/\s+/g;var r7B={};var tgB=Promise.resolve();var JN2=new Set;var Wwp=/;\s*/m,idN=/^\s*(initial)|(inherit)\s*$/,fP9=/\s*!important/,B0B=function(){this._map={}};
B0B.prototype.set=function(G,c){G=G.trim();this._map[G]={properties:c,dependants:{}}};
B0B.prototype.get=function(G){G=G.trim();return this._map[G]||null};
var rN2=null,rB=function(){this._measureElement=this._currentElement=null;this._map=new B0B};
_.P=rB.prototype;_.P.detectMixin=function(G){G=Zde.test(G)||RGi.test(G);Zde.lastIndex=0;RGi.lastIndex=0;return G};
_.P.transformTemplate=function(G,c){if(G._gatheredStyle===void 0){var I=[];for(var R=G.content.querySelectorAll("style"),Z=0;Z<R.length;Z++){var K=R[Z];if(K.hasAttribute("shady-unscoped")){if(!bMb){var m=K.textContent;if(!JN2.has(m)){JN2.add(m);var a=document.createElement("style");a.setAttribute("shady-unscoped","");a.textContent=m;document.head.appendChild(a)}K.parentNode.removeChild(K)}}else I.push(K.textContent),K.parentNode.removeChild(K)}(I=I.join("").trim())?(R=document.createElement("style"),
R.textContent=I,G.content.insertBefore(R,G.content.firstChild),I=R):I=null;G._gatheredStyle=I}return(G=G._gatheredStyle)?this.JSC$11437_transformStyle(G,c):null};
_.P.JSC$11437_transformStyle=function(G,c){c=c===void 0?"":c;var I=Hyr(G);this.transformRules(I,c);G.textContent=CUp(I);return I};
_.P.transformCustomStyle=function(G){var c=this,I=Hyr(G);y7U(I,function(R){R.selector===":root"&&(R.selector="html");c.transformRule(R)});
G.textContent=CUp(I);return I};
_.P.transformRules=function(G,c){var I=this;this._currentElement=c;y7U(G,function(R){I.transformRule(R)});
this._currentElement=null};
_.P.transformRule=function(G){G.cssText=jJ0(this,G.parsedCssText,G);G.selector===":root"&&(G.selector=":host > *")};
var jJ0=function(G,c,I){c=c.replace(RGi,function(R,Z,K,m){return G._produceCssProperties(R,Z,K,m,I)});
return G._consumeCssProperties(c,I)};
_.P=rB.prototype;_.P._getInitialValueForProperty=function(G){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(G)};
_.P._fallbacksFromPreviousRules=function(G){for(var c=this,I=G;I.parent;)I=I.parent;var R={},Z=!1;y7U(I,function(K){(Z=Z||K===G)||K.selector===G.selector&&Object.assign(R,c._cssTextToMap(K.parsedCssText))});
return R};
_.P._consumeCssProperties=function(G,c){for(var I;I=Zde.exec(G);){var R=I[0],Z=I[1];I=I.index;var K=I+R.indexOf("@apply"),m=I+R.length;R=G.slice(0,K);G=G.slice(m);K=c?this._fallbacksFromPreviousRules(c):{};Object.assign(K,this._cssTextToMap(R));Z=this._atApplyToCssProperties(Z,K);G=R+Z+G;Zde.lastIndex=I+Z.length}return G};
_.P._atApplyToCssProperties=function(G,c){G=G.replace(Wwp,"");var I=[],R=this._map.get(G);R||(this._map.set(G,{}),R=this._map.get(G));if(R){this._currentElement&&(R.dependants[this._currentElement]=!0);var Z,K=R.properties;for(Z in K){var m=c&&c[Z];R=[Z,": var(",G,"_-_",Z];m&&R.push(",",m.replace(fP9,""));R.push(")");fP9.test(K[Z])&&R.push(" !important");I.push(R.join(""))}}return I.join("; ")};
_.P._replaceInitialOrInherit=function(G,c){var I=idN.exec(c);I&&(c=I[1]?this._getInitialValueForProperty(G):"apply-shim-inherit");return c};
_.P._cssTextToMap=function(G,c){c=c===void 0?!1:c;G=G.split(";");for(var I,R,Z={},K=0;K<G.length;K++)if(I=G[K])R=I.split(":"),R.length>1&&(I=R[0].trim(),R=R.slice(1).join(":"),c&&(R=this._replaceInitialOrInherit(I,R)),Z[I]=R);return Z};
_.P._invalidateMixinEntry=function(G){if(rN2)for(var c in G.dependants)c!==this._currentElement&&rN2(c)};
_.P._produceCssProperties=function(G,c,I,R,Z){var K=this;I&&goB(I,function(U,k){k&&K._map.get(k)&&(R="@apply "+k+";")});
if(!R)return G;var m=this._consumeCssProperties(""+R,Z);Z=G.slice(0,G.indexOf("--"));var a=m=this._cssTextToMap(m,!0),O=this._map.get(c),N=O&&O.properties;N?a=Object.assign(Object.create(N),m):this._map.set(c,a);var q=[],w,F=!1;for(w in a){var n=m[w];n===void 0&&(n="initial");!N||w in N||(F=!0);q.push(c+"_-_"+w+": "+n)}F&&this._invalidateMixinEntry(O);O&&(O.properties=a);I&&(Z=G+";"+Z);return Z+q.join("; ")+";"};
rB.prototype.detectMixin=rB.prototype.detectMixin;rB.prototype.transformStyle=rB.prototype.JSC$11437_transformStyle;rB.prototype.transformCustomStyle=rB.prototype.transformCustomStyle;rB.prototype.transformRules=rB.prototype.transformRules;rB.prototype.transformRule=rB.prototype.transformRule;rB.prototype.transformTemplate=rB.prototype.transformTemplate;rB.prototype._separator="_-_";Object.defineProperty(rB.prototype,"invalidCallback",{get:function(){return rN2},
set:function(G){rN2=G}});var jd=new rB,xC2=function(){this.customStyleInterface=null;jd.invalidCallback=j3b},xS=function(G){!G.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(G.customStyleInterface=window.ShadyCSS.CustomStyleInterface,G.customStyleInterface.transformCallback=function(c){jd.transformCustomStyle(c)},G.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){G.customStyleInterface.enqueued&&G.flushCustomStyles()})})};
_.P=xC2.prototype;_.P.prepareTemplate=function(G,c){xS(this);YHf(G)===""&&(r7B[c]=G,c=jd.transformTemplate(G,c),G._styleAst=c)};
_.P.flushCustomStyles=function(){xS(this);if(this.customStyleInterface){var G=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var c=0;c<G.length;c++){var I=this.customStyleInterface.getStyleForCustomStyle(G[c]);I&&jd.transformCustomStyle(I)}this.customStyleInterface.enqueued=!1}}};
_.P.styleSubtree=function(G,c){xS(this);c&&FGT(G,c);if(G.shadowRoot)for(this.styleElement(G),G=G.shadowRoot.children||G.shadowRoot.childNodes,c=0;c<G.length;c++)this.styleSubtree(G[c]);else for(G=G.children||G.childNodes,c=0;c<G.length;c++)this.styleSubtree(G[c])};
_.P.styleElement=function(G){xS(this);var c=G.localName,I;c?c.indexOf("-")>-1?I=c:I=G.getAttribute&&G.getAttribute("is")||"":I=G.is;c=r7B[I];if(!(c&&YHf(c)!==""||!c||xOU(c))){if(xOU(c)||c._applyShimValidatingVersion!==c._applyShimNextVersion)this.prepareTemplate(c,I),hVq(c);if(G=G.shadowRoot)if(G=G.querySelector("style"))G.__cssRules=c._styleAst,G.textContent=CUp(c._styleAst)}};
_.P.styleDocument=function(G){xS(this);this.styleSubtree(document.body,G)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var tk=new xC2,tkp=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(G,c){tk.flushCustomStyles();tk.prepareTemplate(G,c)},
prepareTemplateStyles:function(G,c,I){window.ShadyCSS.prepareTemplate(G,c,I)},
prepareTemplateDom:function(){},
styleSubtree:function(G,c){tk.flushCustomStyles();tk.styleSubtree(G,c)},
styleElement:function(G){tk.flushCustomStyles();tk.styleElement(G)},
styleDocument:function(G){tk.flushCustomStyles();tk.styleDocument(G)},
getComputedStyleValue:function(G,c){return nXq(G,c)},
flushCustomStyles:function(){tk.flushCustomStyles()},
nativeCss:dOO,nativeShadow:bMb,cssBuild:eL,disableRuntime:QJK};tkp&&(window.ShadyCSS.CustomStyleInterface=tkp)}window.ShadyCSS.ApplyShim=jd;var hGK;hGK=window.ShadyCSS;_.hk=D9(function(G){G=qne(u3(G));var c=XBK?G:zG0(G),I=EC2(c),R={x:"pan-x",y:"pan-y",none:"none",all:"auto"};G=function(){return c.call(this)||this};
_.u(G,c);G.prototype.created=function(){};
G.prototype.__attributeReaction=function(Z,K,m){(this.__dataAttributes&&this.__dataAttributes[Z]||Z==="disable-upgrade")&&this.attributeChangedCallback(Z,K,m,null)};
G.prototype.setAttribute=function(Z,K){if(uZV&&!this._legacyForceObservedAttributes){var m=this.getAttribute(Z);c.prototype.setAttribute.call(this,Z,K);this.__attributeReaction(Z,m,String(K))}else c.prototype.setAttribute.call(this,Z,K)};
G.prototype.removeAttribute=function(Z){if(uZV&&!this._legacyForceObservedAttributes){var K=this.getAttribute(Z);c.prototype.removeAttribute.call(this,Z);this.__attributeReaction(Z,K,null)}else c.prototype.removeAttribute.call(this,Z)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||c.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(Z){return c.prototype._canApplyPropertyDefault.call(this,Z)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Z))};
G.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(c.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
G.prototype.attached=function(){};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(c.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
G.prototype.detached=function(){};
G.prototype.attributeChangedCallback=function(Z,K,m,a){K!==m&&(Z=="disable-upgrade"?this.__isUpgradeDisabled&&m==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.VF)(this).isConnected&&this.connectedCallback()):(c.prototype.attributeChangedCallback.call(this,Z,K,m,a),this.attributeChanged(Z,K,m)))};
G.prototype.attributeChanged=function(){};
G.prototype._initializeProperties=function(){if(yF&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Z=Object.getPrototypeOf(this);Z.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Z.__hasRegisterFinished=!0);c.prototype._initializeProperties.call(this);this.root=this;this.created();uZV&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
G.prototype._takeAttributes=function(){for(var Z=this.attributes,K=0,m=Z.length;K<m;K++){var a=Z[K];this.__attributeReaction(a.name,null,a.value)}};
G.prototype._registered=function(){};
G.prototype.ready=function(){this._ensureAttributes();c.prototype.ready.call(this)};
G.prototype._ensureAttributes=function(){};
G.prototype._applyListeners=function(){};
G.prototype.serialize=function(Z){return this._serializeValue(Z)};
G.prototype.deserialize=function(Z,K){return this._deserializeValue(Z,K)};
G.prototype.reflectPropertyToAttribute=function(Z,K,m){this._propertyToAttribute(Z,K,m)};
G.prototype.serializeValueToAttribute=function(Z,K,m){this._valueToNodeAttribute(m||this,Z,K)};
G.prototype.extend=function(Z,K){if(!Z||!K)return Z||K;for(var m=Object.getOwnPropertyNames(K),a=0,O=void 0;a<m.length&&(O=m[a]);a++){var N=Object.getOwnPropertyDescriptor(K,O);N&&Object.defineProperty(Z,O,N)}return Z};
G.prototype.mixin=function(Z,K){for(var m in K)Z[m]=K[m];return Z};
G.prototype.chainObject=function(Z,K){Z&&K&&Z!==K&&(Z.__proto__=K);return Z};
G.prototype.instanceTemplate=function(Z){Z=this.constructor._contentForTemplate(Z);return document.importNode(Z,!0)};
G.prototype.fire=function(Z,K,m){m=m||{};K=K===null||K===void 0?{}:K;Z=new Event(Z,{bubbles:m.bubbles===void 0?!0:m.bubbles,cancelable:!!m.cancelable,composed:m.composed===void 0?!0:m.composed});Z.detail=K;(0,_.VF)(m.node||this).dispatchEvent(Z);return Z};
G.prototype.listen=function(Z,K,m){Z=Z||this;var a=this.__boundListeners||(this.__boundListeners=new WeakMap),O=a.get(Z);O||(O={},a.set(Z,O));a=K+m;O[a]||(O[a]=this._addMethodEventListenerToNode(Z,K,m,this))};
G.prototype.unlisten=function(Z,K,m){Z=Z||this;var a=this.__boundListeners&&this.__boundListeners.get(Z);m=K+m;var O=a&&a[m];O&&(this._removeEventListenerFromNode(Z,K,O),a[m]=null)};
G.prototype.setScrollDirection=function(Z,K){_.CY(K||this,R[Z]||"auto")};
G.prototype.$$=function(Z){return this.root.querySelector(Z)};
G.prototype.distributeContent=function(){var Z=_.qy(this);window.ShadyDOM&&Z.shadowRoot&&ShadyDOM.flush()};
G.prototype.getEffectiveChildNodes=function(){return _.qy(this).getEffectiveChildNodes()};
G.prototype.queryDistributedElements=function(Z){return _.qy(this).queryDistributedElements(Z)};
G.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Z){return Z.nodeType===Node.ELEMENT_NODE})};
G.prototype.getEffectiveTextContent=function(){for(var Z=this.getEffectiveChildNodes(),K=[],m=0,a;a=Z[m];m++)a.nodeType!==Node.COMMENT_NODE&&K.push(a.textContent);return K.join("")};
G.prototype.queryEffectiveChildren=function(Z){return(Z=this.queryDistributedElements(Z))&&Z[0]};
G.prototype.queryAllEffectiveChildren=function(Z){return this.queryDistributedElements(Z)};
G.prototype.getContentChildNodes=function(Z){return(Z=this.root.querySelector(Z||"slot"))?_.qy(Z).getDistributedNodes():[]};
G.prototype.getContentChildren=function(Z){return this.getContentChildNodes(Z).filter(function(K){return K.nodeType===Node.ELEMENT_NODE})};
G.prototype.isLightDescendant=function(Z){return this!==Z&&(0,_.VF)(this).contains(Z)&&(0,_.VF)(this).getRootNode()===(0,_.VF)(Z).getRootNode()};
G.prototype.isLocalDescendant=function(Z){return this.root===(0,_.VF)(Z).getRootNode()};
G.prototype.scopeSubtree=function(Z,K){return LVB(Z,K===void 0?!1:K)};
G.prototype.getComputedStyleValue=function(Z){return hGK.getComputedStyleValue(this,Z)};
G.prototype.debounce=function(Z,K,m){this._debouncers=this._debouncers||{};return this._debouncers[Z]=_.pq(this._debouncers[Z],m>0?_.vw.after(m):HN,K.bind(this))};
G.prototype.isDebouncerActive=function(Z){this._debouncers=this._debouncers||{};Z=this._debouncers[Z];return!(!Z||!Z.isActive())};
G.prototype.flushDebouncer=function(Z){this._debouncers=this._debouncers||{};(Z=this._debouncers[Z])&&Z.flush()};
G.prototype.cancelDebouncer=function(Z){this._debouncers=this._debouncers||{};(Z=this._debouncers[Z])&&Z.cancel()};
G.prototype.async=function(Z,K){return K>0?_.vw.run(Z.bind(this),K):~HN.run(Z.bind(this))};
G.prototype.cancelAsync=function(Z){Z<0?HN.cancel(~Z):_.vw.cancel(Z)};
G.prototype.create=function(Z,K){Z=document.createElement(Z);if(K)if(Z.setProperties)Z.setProperties(K);else for(var m in K)Z[m]=K[m];return Z};
G.prototype.elementMatches=function(Z,K){return kze(K||this,Z)};
G.prototype.toggleAttribute=function(Z,K){var m=this;arguments.length===3&&(m=arguments[2]);arguments.length==1&&(K=!m.hasAttribute(Z));if(K)return(0,_.VF)(m).setAttribute(Z,""),!0;(0,_.VF)(m).removeAttribute(Z);return!1};
G.prototype.toggleClass=function(Z,K,m){m=m||this;arguments.length==1&&(K=!m.classList.contains(Z));K?m.classList.add(Z):m.classList.remove(Z)};
G.prototype.transform=function(Z,K){K=K||this;K.style.webkitTransform=Z;K.style.transform=Z};
G.prototype.translate3d=function(Z,K,m,a){this.transform("translate3d("+Z+","+K+","+m+")",a||this)};
G.prototype.arrayDelete=function(Z,K){if(Array.isArray(Z)){if(K=Z.indexOf(K),K>=0)return Z.splice(K,1)}else if(K=SK(this,Z).indexOf(K),K>=0)return this.splice(Z,K,1);return null};
G.prototype._logger=function(Z,K){Array.isArray(K)&&K.length===1&&Array.isArray(K[0])&&(K=K[0]);switch(Z){case "log":case "warn":case "error":console[Z].apply(console,_.jn(K))}};
G.prototype._log=function(){this._logger("log",_.Hy.apply(0,arguments))};
G.prototype._warn=function(){this._logger("warn",_.Hy.apply(0,arguments))};
G.prototype._error=function(){this._logger("error",_.Hy.apply(0,arguments))};
G.prototype._logf=function(Z){return["[%s::%s]",this.is,Z].concat(_.jn(_.Hy.apply(1,arguments)))};
_.Nh.Object.defineProperties(G.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Z=(0,_.VF)(this).getRootNode();return Z instanceof DocumentFragment?Z.host:Z}}});
_.Nh.Object.defineProperties(G,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return uZV&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],slp(this.prototype)),this.__observedAttributes):I.call(this).concat("disable-upgrade")}}});
G.prototype.is="";return G});Polymer.FlattenedNodesObserver=UCN;Polymer.DomApi=$Ce;Polymer.EventApi=fq;Polymer.dom=_.qy;Polymer.dom.matchesSelector=kze;Polymer.dom.flush=_.Jk;Polymer.dom.addDebouncer=_.M7;Polymer.DirMixin=zG0;Polymer.RenderStatus={beforeNextRender:_.byr,afterNextRender:_.O$,flush:function(){for(;ooT.length||Tm.length;)DOf(ooT),DOf(Tm);af=!1}};Polymer.LegacyElementMixin=_.hk;var dC0;dC0=zZ._mutablePropertyChange;var CDe={properties:{mutableData:Boolean},_shouldPropertyChange:function(G,c,I){return dC0(this,G,c,I,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(G,c,I){return dC0(this,G,c,I,!0)}};
Polymer.OptionalMutableDataBehavior=CDe;var G7r={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},KUq={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},ZmB=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},KUq),Hd2=(0,_.hk)(HTMLElement),gBb=function(G,c){G||console.warn("Polymer.Class requires `info` argument");c=c?c(Hd2):Hd2;c=PIq(G,c,G.behaviors);c.is=c.prototype.is=
G.is;return c};Polymer.Class=gBb;Polymer.mixinBehaviors=function(G,c){return PIq({},(0,_.hk)(c),G)};
Polymer.GenerateClassFromInfo=PIq;_.SD=function(G){var c=typeof G==="function"?G:_.SD.Class(G);G._legacyForceObservedAttributes&&(c.prototype._legacyForceObservedAttributes=G._legacyForceObservedAttributes);customElements.define(c.is,c);return c};
_.SD.Class=gBb;Polymer._polymerFn=_.SD;var XI0=window.onLegacyPolymerFunctionDefinedCallback;XI0&&XI0();var GxA={templatize:function(G,c){this._templatizerTemplate=G;this.ctor=If(G,this,{mutableData:!!c,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(G){return new this.ctor(G)},
modelForElement:function(G){return qHi(this._templatizerTemplate,G)}};Polymer.Templatizer=GxA;_.Hw=(0,_.hk)(HTMLElement).prototype;Polymer.Base=_.Hw;var m0C=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.li=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.u(_.li,PolymerFakeBaseClass);var qh=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.u(qh,PolymerFakeBaseClass);var anf=Symbol("Sd"),FUO=[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 yNi=yNi||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},gCe;(function(G){function c(x,C,H){var g=t.get(x);if(!g){if(!H)return;g=new M;t.set(x,g)}x=g.get(C);if(!x){if(!H)return;x=new M;g.set(C,x)}return x}
function I(x,C,H){if(R(x,C,H))return!0;C=F(C);return C!==null?I(x,C,H):!1}
function R(x,C,H){C=c(C,H,!1);return C===void 0?!1:!!C.has(x)}
function Z(x,C,H){if(R(x,C,H))return K(x,C,H);C=F(C);if(C!==null)return Z(x,C,H)}
function K(x,C,H){C=c(C,H,!1);if(C!==void 0)return C.get(x)}
function m(x,C){var H=a(x,C);x=F(x);if(x===null)return H;var g=m(x,C);if(g.length<=0)return H;if(H.length<=0)return g;C=new z;x=[];H=_.Q(H);for(var QO=H.next();!QO.done;QO=H.next())QO=QO.value,C.has(QO)||(C.add(QO),x.push(QO));H=_.Q(g);for(g=H.next();!g.done;g=H.next())g=g.value,C.has(g)||(C.add(g),x.push(g));return x}
function a(x,C){x=c(x,C,!1);var H=[];x&&x.forEach(function(g,QO){return H.push(QO)});
return H}
function O(x){return x===void 0}
function N(x){return typeof x==="object"?x!==null:typeof x==="function"}
function q(x){return typeof x==="function"}
function w(x){return typeof x==="symbol"?x:String(x)}
function F(x){var C=Object.getPrototypeOf(x);if(typeof x!=="function"||x===p||C!==p)return C;var H=Object.getPrototypeOf(x.prototype);if(H==null||H===Object.prototype)return C;H=H.constructor;return typeof H!=="function"||H===x?C:H}
function n(){function x(){this._keys=[];this._values=[];this._cache=C}
var C={};x.prototype={get size(){return this._keys.length},has:function(H){return H===this._cache?!0:this._find(H)>=0?(this._cache=H,!0):!1},
get:function(H){var g=this._find(H);if(g>=0)return this._cache=H,this._values[g]},
set:function(H,g){this.delete(H);this._keys.push(H);this._values.push(g);this._cache=H;return this},
delete:function(H){H=this._find(H);return H>=0?(this._keys.splice(H,1),this._values.splice(H,1),this._cache=C,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=C},
forEach:function(H){for(var g=this.size,QO=0;QO<g;++QO){var T8=this._keys[QO],kp=this._values[QO];this._cache=T8;H.call(this,kp,T8,this)}},
_find:function(H){for(var g=this._keys,QO=g.length,T8=0;T8<QO;++T8)if(g[T8]===H)return T8;return-1}};
return x}
function U(){function x(){this._map=new M}
x.prototype={get size(){return this._map.length},has:function(C){return this._map.has(C)},
add:function(C){this._map.set(C,C);return this},
delete:function(C){return this._map.delete(C)},
clear:function(){this._map.clear()},
forEach:function(C,H){this._map.forEach(C,H)}};
return x}
function k(){function x(){this._key=H()}
function C(oq,Wr){for(var iT=0;iT<Wr;++iT)oq[iT]=Math.random()*255|0}
function H(){do{if(QO)var oq=QO.randomBytes(16);else typeof Uint8Array==="function"?(oq=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(oq):C(oq,16)):(oq=Array(16),C(oq,16));oq[6]=oq[6]&79|64;oq[8]=oq[8]&191|128;for(var Wr="",iT=0;iT<16;++iT){var z8=oq[iT];if(iT===4||iT===6||iT===8)Wr+="-";z8<16&&(Wr+="0");Wr+=z8.toString(16).toLowerCase()}oq="@@WeakMap@@"+Wr}while(T8.call(kp,oq));kp[oq]=!0;return oq}
function g(oq,Wr){if(!T8.call(oq,FB)){if(!Wr)return;Object.defineProperty(oq,FB,{value:Object.create(null)})}return oq[FB]}
var QO=typeof global!=="undefined"&&typeof yNi==="object"&&typeof require==="function"&&require("crypto"),T8=Object.prototype.hasOwnProperty,kp={},FB=H();x.prototype={has:function(oq){return(oq=g(oq,!1))?this._key in oq:!1},
get:function(oq){if(oq=g(oq,!1))return oq[this._key]},
set:function(oq,Wr){g(oq,!0)[this._key]=Wr;return this},
delete:function(oq){return(oq=g(oq,!1))&&this._key in oq?delete oq[this._key]:!1},
clear:function(){this._key=H()}};
return x}
var p=Object.getPrototypeOf(Function),M=typeof Map==="function"?Map:n(),z=typeof Set==="function"?Set:U(),t=new (typeof WeakMap==="function"?WeakMap:k());G.decorate=function(x,C,H,g){if(O(g)){if(O(H)){if(!Array.isArray(x))throw new TypeError;if(!q(C))throw new TypeError;for(H=x.length-1;H>=0;--H)if(g=(0,x[H])(C),!O(g)){if(!q(g))throw new TypeError;C=g}return C}if(!Array.isArray(x))throw new TypeError;if(!N(C))throw new TypeError;H=w(H);for(g=x.length-1;g>=0;--g)(0,x[g])(C,H)}else{if(Array.isArray(x))if(N(C)){if(O(H))throw new TypeError;
if(!N(g))throw new TypeError;}else throw new TypeError;else throw new TypeError;H=w(H);for(var QO=x.length-1;QO>=0;--QO){var T8=(0,x[QO])(C,H,g);if(!O(T8)){if(!N(T8))throw new TypeError;g=T8}}return g}};
G.metadata=function(x,C){return function(H,g){if(O(g)){if(!q(H))throw new TypeError;c(H,void 0,!0).set(x,C)}else{if(!N(H))throw new TypeError;g=w(g);c(H,g,!0).set(x,C)}}};
G.defineMetadata=function(x,C){var H;if(N(C))O(H)||(H=w(H));else throw new TypeError;c(C,H,!0).set("parameters",x)};
G.hasMetadata=function(x,C,H){if(N(C))O(H)||(H=w(H));else throw new TypeError;return I(x,C,H)};
G.hasOwnMetadata=function(x,C,H){if(N(C))O(H)||(H=w(H));else throw new TypeError;return R(x,C,H)};
G.getMetadata=function(x,C,H){if(N(C))O(H)||(H=w(H));else throw new TypeError;return Z(x,C,H)};
G.getOwnMetadata=function(x,C,H){if(N(C))O(H)||(H=w(H));else throw new TypeError;return K(x,C,H)};
G.getMetadataKeys=function(x,C){if(N(x))O(C)||(C=w(C));else throw new TypeError;return m(x,C)};
G.getOwnMetadataKeys=function(x,C){if(N(x))O(C)||(C=w(C));else throw new TypeError;return a(x,C)};
G.deleteMetadata=function(x,C,H){if(N(C))O(H)||(H=w(H));else throw new TypeError;var g=c(C,H,!1);if(!O(g)){if(!g.delete(x))return!1;if(g.size>0)return!0;x=t.get(C);x.delete(H);if(x.size>0)return!0;t.delete(C);return!0}};
(function(x){if(typeof x.Reflect!=="undefined"){if(x.Reflect!==G)for(var C in G)x.Reflect[C]=G[C]}else x.Reflect=G})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(gCe||(gCe={}));var L2C=self;var Yn9=[0,_.Rb,_.P7,_.Rb];var G9K=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(G9K,_.aR);var c0V=_.b5(G9K,[0,_.OF,_.ab,Yn9,_.P7,_.N0]);var R80=[0,_.e1,-3,_.N0,_.OF,_.Rb,_.b1V,_.e1,su0,oF0,gI,_.Zn,_.Rb,function(){return IXp},
_.P7],IXp=[0,_.ab,function(){return R80},
_.OF,14,_.e1];_.eg(_.wc,_.JK);_.P=_.wc.prototype;_.P.start=function(){this.stop();this.usingListeners_=!1;var G=ZQN(this),c=Kqe(this);G&&!c&&this.JSC$11480_win_.mozRequestAnimationFrame?(this.JSC$11480_id_=_.Ld(this.JSC$11480_win_,"MozBeforePaint",this.callback_),this.JSC$11480_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11480_id_=G&&c?G.call(this.JSC$11480_win_,this.callback_):this.JSC$11480_win_.setTimeout(hJN(this.callback_),20)};
_.P.stop=function(){if(this.isActive()){var G=ZQN(this),c=Kqe(this);G&&!c&&this.JSC$11480_win_.mozRequestAnimationFrame?bD(this.JSC$11480_id_):G&&c?c.call(this.JSC$11480_win_,this.JSC$11480_id_):this.JSC$11480_win_.clearTimeout(this.JSC$11480_id_)}this.JSC$11480_id_=null};
_.P.fire=function(){this.stop();this.JSC$11482_doAction_()};
_.P.isActive=function(){return this.JSC$11480_id_!=null};
_.P.JSC$11482_doAction_=function(){this.usingListeners_&&this.JSC$11480_id_&&bD(this.JSC$11480_id_);this.JSC$11480_id_=null;this.JSC$11480_listener_.call(this.handler_,_.OH())};
_.P.disposeInternal=function(){this.stop();_.wc.superClass_.disposeInternal.call(this)};
var ZQN=function(G){G=G.JSC$11480_win_;return G.requestAnimationFrame||G.webkitRequestAnimationFrame||G.mozRequestAnimationFrame||G.oRequestAnimationFrame||G.msRequestAnimationFrame||null},Kqe=function(G){G=G.JSC$11480_win_;
return G.cancelAnimationFrame||G.cancelRequestAnimationFrame||G.webkitCancelRequestAnimationFrame||G.mozCancelRequestAnimationFrame||G.oCancelRequestAnimationFrame||G.msCancelRequestAnimationFrame||null};_.qx=function(G,c,I){_.JK.call(this);this.JSC$11483_listener_=I!=null?G.bind(I):G;this.JSC$11483_interval_=c;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11483_timer_=null};
_.u(_.qx,_.JK);_.P=_.qx.prototype;_.P.fire=function(G){this.args_=arguments;this.JSC$11483_timer_||this.pauseCount_?this.shouldFire_=!0:PfK(this)};
_.P.stop=function(){this.JSC$11483_timer_&&(_.Rq.clearTimeout(this.JSC$11483_timer_),this.JSC$11483_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.P.pause=function(){this.pauseCount_++};
_.P.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11483_timer_||(this.shouldFire_=!1,PfK(this))};
_.P.disposeInternal=function(){_.JK.prototype.disposeInternal.call(this);this.stop()};
var PfK=function(G){G.JSC$11483_timer_=d4(function(){G.JSC$11483_timer_=null;G.shouldFire_&&!G.pauseCount_&&(G.shouldFire_=!1,PfK(G))},G.JSC$11483_interval_);
var c=G.args_;G.args_=null;G.JSC$11483_listener_.apply(null,c)};var Q1K=function(G,c){this.childIterator_=G[_.Rq.Symbol.iterator]();this.mapFn_=c};
Q1K.prototype[Symbol.iterator]=function(){return this};
Q1K.prototype.next=function(){var G=this.childIterator_.next();return{value:G.done?void 0:this.mapFn_.call(void 0,G.value),done:G.done}};
var mxB=function(G,c){return new Q1K(G,c)};var aX0={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 q1r=function(G){var c=TiK(G);if(!c)throw Error("Wd`"+G);return c},TiK=function(G){var c={};
G=String(G);var I=G.charAt(0)=="#"?G:"#"+G;if(OQ0.test(I))return c.hex=PZB(I),c.type="hex",c;I=vg0(G);return I.length?(c.hex=t4C(I[0],I[1],I[2]),c.type="rgb",c):aX0&&(G=aX0[G.toLowerCase()])?(c.hex=G,c.type="named",c):null},e8K=/#(.)(.)(.)/,PZB=function(G){if(!OQ0.test(G))throw Error("Yd`"+G);
G.length==4&&(G=G.replace(e8K,"#$1$1$2$2$3$3"));return G.toLowerCase()},wxr=function(G){G=PZB(G);
G=parseInt(G.slice(1),16);return[G>>16,G>>8&255,G&255]},t4C=function(G,c,I){G=Number(G);
c=Number(c);I=Number(I);if(G!=(G&255)||c!=(c&255)||I!=(I&255))throw Error("Zd`"+G+"`"+c+"`"+I);c=G<<16|c<<8|I;return G<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)},OQ0=/^#(?:[0-9a-f]{3}){1,2}$/i,NiA=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,vg0=function(G){var c=G.match(NiA);
if(c){G=Number(c[1]);var I=Number(c[2]);c=Number(c[3]);if(G>=0&&G<=255&&I>=0&&I<=255&&c>=0&&c<=255)return[G,I,c]}return[]};var lXe={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},D2=lXe;D2=lXe;var Rjr,q30,wU9;Rjr=function(G,c){switch(c){case 1:return G%4!=0||G%100==0&&G%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
q30=function(G,c,I,R,Z){G=new Date(G,c,I);Z=Z||0;return G.valueOf()+(((R!==void 0?R:3)-Z+7)%7-((G.getDay()+6)%7-Z+7)%7)*864E5};
_.Xg=function(G,c,I){typeof G==="number"?(this.date=wU9(G,c||0,I||1),Fq9(this,I||1)):_.db(G)?(this.date=wU9(G.getFullYear(),G.getMonth(),G.getDate()),Fq9(this,G.getDate())):(this.date=new Date(_.OH()),G=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Fq9(this,G))};
wU9=function(G,c,I){c=new Date(G,c,I);G>=0&&G<100&&c.setFullYear(c.getFullYear()-1900);return c};
_.P=_.Xg.prototype;_.P.firstDayOfWeek_=D2.FIRSTDAYOFWEEK;_.P.firstWeekCutOffDay_=D2.FIRSTWEEKCUTOFFDAY;_.P.clone=function(){var G=new _.Xg(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.P.getFullYear=function(){return this.date.getFullYear()};
_.P.getYear=function(){return this.getFullYear()};
_.P.getMonth=function(){return this.date.getMonth()};
_.P.getDate=function(){return this.date.getDate()};
_.P.getTime=function(){return this.date.getTime()};
_.P.getDay=function(){return this.date.getDay()};
_.P.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.P.getUTCMonth=function(){return this.date.getUTCMonth()};
_.P.getUTCDate=function(){return this.date.getUTCDate()};
_.P.getUTCDay=function(){return this.date.getDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.P.set=function(G){this.date=new Date(G.getFullYear(),G.getMonth(),G.getDate())};
_.P.setFullYear=function(G){this.date.setFullYear(G)};
_.P.setYear=function(G){this.setFullYear(G)};
_.P.setMonth=function(G){this.date.setMonth(G)};
_.P.setDate=function(G){this.date.setDate(G)};
_.P.setTime=function(G){this.date.setTime(G)};
_.P.setUTCFullYear=function(G){this.date.setUTCFullYear(G)};
_.P.setUTCMonth=function(G){this.date.setUTCMonth(G)};
_.P.setUTCDate=function(G){this.date.setUTCDate(G)};
_.P.add=function(G){if(G.years||G.months){var c=this.getMonth()+G.months+G.years*12,I=this.getYear()+Math.floor(c/12);c%=12;c<0&&(c+=12);var R=Math.min(Rjr(I,c),this.getDate());this.setDate(1);this.setFullYear(I);this.setMonth(c);this.setDate(R)}G.days&&(I=this.getYear(),c=I>=0&&I<=99?-1900:0,G=new Date((new Date(I,this.getMonth(),this.getDate(),12)).getTime()+G.days*864E5),this.setDate(1),this.setFullYear(G.getFullYear()+c),this.setMonth(G.getMonth()),this.setDate(G.getDate()),Fq9(this,G.getDate()))};
_.P.JSC$11496_toIsoString=function(G){var c=this.getFullYear(),I=c<0?"-":c>=1E4?"+":"";return[I+_.Dn(Math.abs(c),I?6:4),_.Dn(this.getMonth()+1,2),_.Dn(this.getDate(),2)].join(G?"-":"")};
_.P.equals=function(G){return!(!G||this.getYear()!=G.getYear()||this.getMonth()!=G.getMonth()||this.getDate()!=G.getDate())};
_.P.toString=function(){return this.JSC$11496_toIsoString()};
var Fq9=function(G,c){G.getDate()!=c&&G.date.setUTCHours(G.date.getUTCHours()+(G.getDate()<c?1:-1))};
_.Xg.prototype.valueOf=function(){return this.date.valueOf()};var gB=function(G,c,I,R,Z){this.reversed=!!c;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!I;G&&yy(this,G,R);this.depth=Z!=void 0?Z:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.eg(gB,sh);var yy=function(G,c,I,R){if(G.node=c)G.tagType=typeof I==="number"?I:G.node.nodeType!=1?0:G.reversed?-1:1;typeof R==="number"&&(G.depth=R)};
_.P=gB.prototype;_.P.JSC$11511_copyFrom=function(G){this.node=G.node;this.tagType=G.tagType;this.depth=G.depth;this.reversed=G.reversed;this.constrained=G.constrained};
_.P.clone=function(){return new gB(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.P.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Lu;var G=this.node;var c=this.reversed?-1:1;if(this.tagType==c){var I=this.reversed?G.lastChild:G.firstChild;I?yy(this,I):yy(this,G,c*-1)}else(I=this.reversed?G.previousSibling:G.nextSibling)?yy(this,I):yy(this,G.parentNode,c*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(G=this.node)?A4(G):Lu};
_.P.equals=function(G){return G.node==this.node&&(!this.node||G.tagType==this.tagType)};
_.P.splice=function(G){var c=this.node,I=this.reversed?1:-1;this.tagType==I&&(this.tagType=I*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;gB.prototype.next.call(this);this.reversed=!this.reversed;I=_.xp(arguments[0])?arguments[0]:arguments;for(var R=I.length-1;R>=0;R--)_.H7(I[R],c);_.ST(c)};var n5B=function(){},YS=function(G){for(var c=[],I=G.getTextRangeCount(),R=0;R<I;R++)c.push(G.getTextRange(R));
return c};
n5B.prototype.isReversed=function(){return!1};
n5B.prototype.getWindow=function(){return hs(_.dx(this.JSC$11513_getStartNode()))};
var v5k=function(G,c){gB.call(this,G,c,!0)};
_.eg(v5k,gB);var GW=function(G,c,I,R,Z){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Z;if(G){this.startNode_=G;this.startOffset_=c;this.endNode_=I;this.endOffset_=R;if(G.nodeType==1&&G.tagName!="BR")if(G=G.childNodes,c=G[c])this.startNode_=c,this.startOffset_=0;else{G.length&&(this.startNode_=_.pA(G));var K=!0}I.nodeType==1&&((this.endNode_=I.childNodes[R])?this.endOffset_=0:this.endNode_=I)}gB.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);K&&this.next()};
_.eg(GW,v5k);_.P=GW.prototype;_.P.JSC$11519_getStartNode=function(){return this.startNode_};
_.P.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.P.next=function(){return this.isLast()?Lu:GW.superClass_.next.call(this)};
_.P.JSC$11511_copyFrom=function(G){this.startNode_=G.startNode_;this.endNode_=G.endNode_;this.startOffset_=G.startOffset_;this.endOffset_=G.endOffset_;this.isReversed_=G.isReversed_;GW.superClass_.JSC$11511_copyFrom.call(this,G)};
_.P.clone=function(){var G=new GW(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);G.JSC$11511_copyFrom(this);return G};var DxA=function(){};
DxA.prototype.__iterator__=function(){return new GW(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ca=function(G){this.range_=G};
_.eg(ca,DxA);var o5K=function(G){var c=_.dx(G).createRange();if(G.nodeType==3)c.setStart(G,0),c.setEnd(G,G.length);else if(h5(G)||G.nodeType==3){for(var I,R=G;(I=R.firstChild)&&(h5(I)||I.nodeType==3);)R=I;c.setStart(R,0);for(R=G;(I=R.lastChild)&&(h5(I)||I.nodeType==3);)R=I;c.setEnd(R,R.nodeType==1?R.childNodes.length:R.length)}else I=G.parentNode,G=Array.prototype.indexOf.call(I.childNodes,G),c.setStart(I,G),c.setEnd(I,G+1);return c},UxB=function(G,c,I,R){var Z=_.dx(G).createRange();
Z.setStart(G,c);Z.setEnd(I,R);return Z};
_.P=ca.prototype;_.P.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.P.getContainer=function(){return this.range_.commonAncestorContainer};
_.P.compareBrowserRangeEndpoints=function(G,c,I){return this.range_.compareBoundaryPoints(I==1?c==1?_.Rq.Range.START_TO_START:_.Rq.Range.START_TO_END:c==1?_.Rq.Range.END_TO_START:_.Rq.Range.END_TO_END,G)};
_.P.isCollapsed=function(){return this.range_.collapsed};
_.P.select=function(G){this.selectInternal(hs(_.dx(this.range_.startContainer)).getSelection(),G)};
_.P.selectInternal=function(G){G.removeAllRanges();G.addRange(this.range_)};
_.P.insertNode=function(G,c){var I=this.range_.cloneRange();I.collapse(c);I.insertNode(G);I.detach();return G};
_.P.collapse=function(G){this.range_.collapse(G)};_.eg(Fu,ca);Fu.prototype.selectInternal=function(G,c){!c||this.isCollapsed()?Fu.superClass_.selectInternal.call(this,G,c):(G.collapse(this.range_.endContainer,this.range_.endOffset),G.extend(this.range_.startContainer,this.range_.startOffset))};_.eg(nF,ca);nF.prototype.compareBrowserRangeEndpoints=function(G,c,I){return nF.superClass_.compareBrowserRangeEndpoints.call(this,G,c,I)};
nF.prototype.selectInternal=function(G,c){c?G.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):G.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var u6A=function(G){return _.vC?new nF(G):_.ny?new Fu(G):new ca(G)};var Ij=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},bQk;
_.eg(Ij,n5B);bQk=function(G,c){var I=new Ij;I.browserRangeWrapper_=G;I.isReversed_=!!c;return I};
_.k9e=function(G){G=_.vC?new nF(o5K(G)):_.ny?new Fu(o5K(G)):new ca(o5K(G));return bQk(G)};
_.Rj=function(G,c,I,R){var Z=new Ij;Z.isReversed_=s1e(G,c,I,R);if(_.Ta(G)&&!h5(G)){var K=G.parentNode;c=Array.prototype.indexOf.call(K.childNodes,G);G=K}_.Ta(I)&&!h5(I)&&(K=I.parentNode,R=Array.prototype.indexOf.call(K.childNodes,I),I=K);Z.isReversed_?(Z.startNode_=I,Z.startOffset_=R,Z.endNode_=G,Z.endOffset_=c):(Z.startNode_=G,Z.startOffset_=c,Z.endNode_=I,Z.endOffset_=R);return Z};
_.P=Ij.prototype;_.P.clone=function(){var G=new Ij;G.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();G.startNode_=this.startNode_;G.startOffset_=this.startOffset_;G.endNode_=this.endNode_;G.endOffset_=this.endOffset_;G.isReversed_=this.isReversed_;return G};
_.P.JSC$11513_getType=function(){return"text"};
_.P.getBrowserRangeObject=function(){return ZM(this).range_};
_.P.getTextRangeCount=function(){return 1};
_.P.getTextRange=function(){return this};
var ZM=function(G){var c;if(!(c=G.browserRangeWrapper_)){c=G.JSC$11513_getStartNode();var I=G.JSC$11513_getStartOffset(),R=G.JSC$11513_getEndNode(),Z=G.JSC$11513_getEndOffset();c=_.vC?new nF(UxB(c,I,R,Z)):_.ny?new Fu(UxB(c,I,R,Z)):new ca(UxB(c,I,R,Z));c=G.browserRangeWrapper_=c}return c};
_.P=Ij.prototype;_.P.getContainer=function(){return ZM(this).getContainer()};
_.P.JSC$11513_getStartNode=function(){return this.startNode_||(this.startNode_=ZM(this).range_.startContainer)};
_.P.JSC$11513_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=ZM(this).range_.startOffset};
_.P.JSC$11513_getEndNode=function(){return this.endNode_||(this.endNode_=ZM(this).range_.endContainer)};
_.P.JSC$11513_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=ZM(this).range_.endOffset};
_.P.isReversed=function(){return this.isReversed_};
_.P.JSC$11513_containsRange=function(G,c){if(G.JSC$11513_getType()=="text"){var I=ZM(this);G=ZM(G);c=c&&!G.isCollapsed();G=G.range_;I=c?I.compareBrowserRangeEndpoints(G,0,1)>=0&&I.compareBrowserRangeEndpoints(G,1,0)<=0:I.compareBrowserRangeEndpoints(G,0,0)>=0&&I.compareBrowserRangeEndpoints(G,1,1)<=0}else I=!1;return I};
_.P.isCollapsed=function(){return ZM(this).isCollapsed()};
_.P.JSC$11513_getText=function(){return ZM(this).range_.toString()};
_.P.__iterator__=function(){return new GW(this.JSC$11513_getStartNode(),this.JSC$11513_getStartOffset(),this.JSC$11513_getEndNode(),this.JSC$11513_getEndOffset())};
_.P.select=function(){ZM(this).select(this.isReversed_)};
_.P.JSC$11513_removeContents=function(){var G=ZM(this).range_;G.extractContents();if(G.startContainer.hasChildNodes()&&(G=G.startContainer.childNodes[G.startOffset])){var c=G.previousSibling;rsK(G)==""&&_.ST(G);c&&rsK(c)==""&&_.ST(c)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.P.insertNode=function(G,c){G=ZM(this).insertNode(G,c);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return G};
_.P.collapse=function(G){G=this.isReversed()?!G:G;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(G);G?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Lq0=function(){};
_.eg(Lq0,n5B);Lq0.prototype.JSC$11513_containsRange=function(G,c){var I=YS(this);G=YS(G);return(c?QG:_.h4O)(G,function(R){return QG(I,function(Z){return Z.JSC$11513_containsRange(R,c)})})};
Lq0.prototype.insertNode=function(G,c){c?_.Cm(G,this.JSC$11513_getStartNode()):_.H7(G,this.JSC$11513_getEndNode());return G};var A0B,$xT=zM().JSC$9495_document_.documentElement;A0B=$xT.requestFullscreen?"fullscreenchange":$xT.webkitRequestFullscreen?"webkitfullscreenchange":$xT.mozRequestFullScreen?"mozfullscreenchange":$xT.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var S3p=function(){var G=zM().JSC$9495_document_;return!!(G.webkitIsFullScreen||G.mozFullScreen||G.msFullscreenElement||G.fullscreenElement)};var K$=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.eg(K$,Lq0);_.P=K$.prototype;_.P.clone=function(){var G=new K$;G.browserRanges_=_.jr(this.browserRanges_);return G};
_.P.JSC$11513_getType=function(){return"mutli"};
_.P.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.P.getTextRangeCount=function(){return this.browserRanges_.length};
_.P.getTextRange=function(G){this.ranges_[G]||(this.ranges_[G]=bQk(u6A(this.browserRanges_[G])));return this.ranges_[G]};
_.P.getContainer=function(){if(!this.container_){for(var G=[],c=this.getTextRangeCount(),I=0;I<c;I++)G.push(this.getTextRange(I).getContainer());this.container_=zpe.apply(null,G)}return this.container_};
var Pa=function(G){G.sortedRanges_||(G.sortedRanges_=YS(G),G.sortedRanges_.sort(function(c,I){var R=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();var Z=I.JSC$11513_getStartNode();I=I.JSC$11513_getStartOffset();return R==Z&&c==I?0:s1e(R,c,Z,I)?1:-1}));
return G.sortedRanges_};
_.P=K$.prototype;_.P.JSC$11513_getStartNode=function(){return Pa(this)[0].JSC$11513_getStartNode()};
_.P.JSC$11513_getStartOffset=function(){return Pa(this)[0].JSC$11513_getStartOffset()};
_.P.JSC$11513_getEndNode=function(){return _.pA(Pa(this)).JSC$11513_getEndNode()};
_.P.JSC$11513_getEndOffset=function(){return _.pA(Pa(this)).JSC$11513_getEndOffset()};
_.P.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.P.JSC$11513_getText=function(){return YS(this).map(function(G){return G.JSC$11513_getText()}).join("")};
_.P.__iterator__=function(){return new QQ(this)};
_.P.select=function(){var G=this.getWindow().getSelection();G.removeAllRanges();for(var c=this.getTextRangeCount(),I=0;I<c;I++)G.addRange(this.getTextRange(I).getBrowserRangeObject())};
_.P.JSC$11513_removeContents=function(){YS(this).forEach(function(G){G.JSC$11513_removeContents()})};
_.P.collapse=function(G){if(!this.isCollapsed()){var c=G?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;c.collapse(G);this.ranges_=[c];this.sortedRanges_=[c];this.browserRanges_=[c.getBrowserRangeObject()]}};
var QQ=function(G){this.iterators_=null;this.currentIdx_=0;G&&(this.iterators_=Pa(G).map(function(c){return _.jP0(c)}));
gB.call(this,G?this.JSC$11519_getStartNode():null,!1,!0)};
_.eg(QQ,v5k);_.P=QQ.prototype;_.P.JSC$11519_getStartNode=function(){return this.iterators_[0].JSC$11519_getStartNode()};
_.P.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.P.next=function(){for(;this.currentIdx_<this.iterators_.length;){var G=this.iterators_[this.currentIdx_],c=G.next();if(c.done)this.currentIdx_++;else return yy(this,G.node,G.tagType,G.depth),c}return Lu};
_.P.JSC$11511_copyFrom=function(G){this.iterators_=_.jr(G.iterators_);QQ.superClass_.JSC$11511_copyFrom.call(this,G)};
_.P.clone=function(){var G=new QQ(null);G.JSC$11511_copyFrom(this);return G};var pUB,s1e;_.lP=function(){var G=window.getSelection();return G&&pUB(G)};
pUB=function(G){var c=!1;if(G.createRange)try{var I=G.createRange()}catch(Z){return null}else if(G.rangeCount){if(G.rangeCount>1){I=new K$;c=G.rangeCount;for(var R=0;R<c;R++)I.browserRanges_.push(G.getRangeAt(R));return I}I=G.getRangeAt(0);c=s1e(G.anchorNode,G.anchorOffset,G.focusNode,G.focusOffset)}else return null;return bQk(u6A(I),c)};
_.mZ=function(G,c){return _.Rj(G,c,G,c)};
_.aj=function(G,c,I,R){return _.Rj(G,c,I,R)};
s1e=function(G,c,I,R){if(G==I)return R<c;var Z;if(G.nodeType==1&&c)if(Z=G.childNodes[c])G=Z,c=0;else if(_.Y9(G,I))return!0;if(I.nodeType==1&&R)if(Z=I.childNodes[R])I=Z,R=0;else if(_.Y9(I,G))return!1;return(VBB(G,I)||c-R)>0};var TW=function(){_.r4.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.WD)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.WD)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.WD)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.WD)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.WD)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.WD)(this.dispatchProgressEvent_,this)};
_.eg(TW,_.r4);TW.prototype.abort=function(){try{this.reader_.abort()}catch(G){throw new tyK(G,"aborting read");}};
TW.prototype.getError=function(){return this.reader_.error&&new tyK(this.reader_.error,"reading file")};
TW.prototype.dispatchProgressEvent_=function(G){this.dispatchEvent(new hgA(G,this))};
TW.prototype.disposeInternal=function(){TW.superClass_.disposeInternal.call(this);delete this.reader_};
var VuV=function(G){var c=new TW,I=Mu0(c);c.reader_.readAsArrayBuffer(G);return I},z8K=function(G){var c=new TW,I=Mu0(c);
c.reader_.readAsDataURL(G);return I},Mu0=function(G){var c=new ej;
G.listen("loadend",_.Ts(function(I,R){var Z=R.reader_.result,K=R.getError();Z==null||K?I.errback(K):I.callback(Z);R.dispose()},c,G));
return c};var OY=function(){_.r4.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11553_eventHandler_=new _.D0(this);this.JSC$11553_isInitialized_=!1};
_.eg(OY,_.r4);var E5i=new _.VM("d"),J00=new _.VM("beforedragstart"),Wq2=new _.VM("dragstart"),iQK=new _.VM("beforedragmove"),fXK=new _.VM("dragmove"),Bie=new _.VM("beforedragend"),r0K=new _.VM("dragend"),j1e=new _.VM("e");OY.prototype.isDragging=function(){return!!this.JSC$11553_dragger_};
var xxB=function(G,c){c.dlgGrowthDirection_=0;c.dlgDragHoverClass_=void 0;c.dlgDragPermission=0;G.dragLists_.push(c)},tup=function(G,c){G.getHandleForDragItem_=c};
OY.prototype.init=function(){if(!this.JSC$11553_isInitialized_){for(var G=this.dragLists_.length,c=0;c<G;c++)for(var I=_.XI(this.dragLists_[c]),R=I.length,Z=0;Z<R;++Z){var K=I[Z],m=this.getHandleForDragItem_(K),a=_.XB(m);this.dragItemForHandle_[a]=K;this.dragItemHoverClasses_&&(this.JSC$11553_eventHandler_.listen(K,"mouseover",this.handleDragItemMouseover_),this.JSC$11553_eventHandler_.listen(K,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11553_eventHandler_.listen(m,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11553_eventHandler_.listen(m,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(K);this.JSC$11553_eventHandler_.listen(m,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11553_isInitialized_=!0}};
OY.prototype.disposeInternal=function(){this.JSC$11553_eventHandler_.dispose();for(var G=this.dragLists_.length,c=0;c<G;c++){var I=this.dragLists_[c];I.dlgGrowthDirection_=void 0;I.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;h89(this);OY.superClass_.disposeInternal.call(this)};
var dxk=function(G,c){for(var I=G.dragLists_.length,R=0;R<I;R++){var Z=G.dragLists_[R];Z.dlgBounds_=uIB(Z)}I=G.dragItems_.length;for(R=0;R<I;R++)Z=G.dragItems_[R],Z!=c&&(Z.dlgBounds_=uIB(Z))};
_.P=OY.prototype;
_.P.handlePotentialDragStart_=function(G){var c=_.XB(G.currentTarget);c=this.dragItemForHandle_[c];if(c.parentElement.dlgDragPermission!=2){this.currDragItem_=c;a:{c=this.currDragItem_;for(var I=c.cloneNode(!0),R=pS("TEXTAREA",c),Z=pS("TEXTAREA",I),K=0;K<R.length;K++)Z[K].value=R[K].value;switch(c.tagName){case "TR":c=_.xq("TABLE",null,_.xq("TBODY",null,I));break a;case "TD":case "TH":c=_.xq("TABLE",null,_.xq("TBODY",null,_.xq("TR",null,I)));break a;case "TEXTAREA":I.value=c.value;default:c=I;break a}c=
void 0}this.draggerEl_=c;this.draggerElClasses_&&Tp(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.dx(this.currDragItem_).body.appendChild(this.draggerEl_);I=_.C8(this.currDragItem_);c=this.draggerEl_;R=_.C8(c);if(I instanceof _.ts){var m=I.y;I=I.x}cL(c,c.offsetLeft+(I-R.x),c.offsetTop+(Number(m)-R.y));this.JSC$11553_dragger_=new _.R5(this.draggerEl_);_.xhV(this.JSC$11553_dragger_,this.hysteresisDistance_);
_.Ld(this.JSC$11553_dragger_,"start",this.handleDragStart_,!1,this);_.Ld(this.JSC$11553_dragger_,"end",this.handleDragEnd_,!1,this);_.Ld(this.JSC$11553_dragger_,"earlycancel",this.JSC$11555_cleanup_,!1,this);this.dispatchEvent(new e7(E5i,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_));this.JSC$11553_dragger_.startDrag(G)}};
_.P.handleDragStart_=function(G){if(this.dispatchEvent(new e7(J00,this,G.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Sq9(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Tp(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var c=Cy0(this.draggerEl_);this.draggerEl_.halfWidth=c.width/2;this.draggerEl_.halfHeight=c.height/2;c=this.draggerEl_.getBoundingClientRect();
var I=G.clientY,R=tL2(this.JSC$11553_dragger_,G.clientX);if(R>c.right){var Z=this.currDragItem_.getBoundingClientRect();this.JSC$11553_dragger_.deltaX=R-(R-Z.left)/Z.width*c.width}I=hKe(this.JSC$11553_dragger_,I);I>c.bottom&&(this.JSC$11553_dragger_.deltaY+=I-c.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";dxk(this,this.currDragItem_);this.currDragItem_.style.display="";_.Ld(this.JSC$11553_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new e7(Wq2,
this,G.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_))}else G.preventDefault(),this.JSC$11555_cleanup_()};
_.P.handleDragMove_=function(G){var c=_.C8(this.draggerEl_);c=new _.ts(c.x+this.draggerEl_.halfWidth,c.y+this.draggerEl_.halfHeight);a:{var I=null;if(this.currDragItem_.style.display!="none"){I=this.currDragItem_.parentNode;var R=uIB(I);if(Cfp(c,R))break a}R=this.dragLists_.length;for(var Z=0;Z<R;Z++){var K=this.dragLists_[Z];if(K!=I&&Cfp(c,K.dlgBounds_)){I=K;break a}}I=null}if(I){if(I==null)throw Error("$d");R=0;Z=!1;K=void 0;switch(I.dlgGrowthDirection_){case 0:R=c.y;var m=HQK;var a=XUA;break;case 4:Z=
!0;case 2:R=c.x;m=y0T;a=XUA;break;case 5:Z=!0;case 3:R=c.x,m=g5T,a=Y30}for(var O=null,N,q=_.XI(I),w=q.length,F=0;F<w;F++){var n=q[F];if(n!=this.currDragItem_){var U=m(n.dlgBounds_);if(Z){var k=Gfi(n,c);K===void 0&&(K=k);a(R,U)&&(N==void 0||k<K||k==K&&(a(U,N)||U==N))&&(O=n,N=U);k<K&&(K=k)}else a(R,U)&&(N==void 0||a(U,N))&&(O=n,N=U)}}m=O!==null&&Gfi(O,c)>K?null:O}else m=null;if(!this.dispatchEvent(new e7(iQK,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_,c,I,m)))return!1;if(I&&I.dlgDragPermission!=
1)this.currDragItem_.parentNode==I&&_.Sq9(this.currDragItem_)==m||I.insertBefore(this.currDragItem_,m),this.currDragItem_.style.display="",I.dlgDragHoverClass_&&_.g0(I,I.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",a=this.dragLists_.length,N=0;N<a;N++)R=this.dragLists_[N],R.dlgDragHoverClass_&&_.XP(R,R.dlgDragHoverClass_);I!=this.currHoverList_&&(this.currHoverList_=I,dxk(this,this.currDragItem_));this.dispatchEvent(new e7(fXK,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_,
c,I,m));return!1};
_.P.JSC$11555_cleanup_=function(){h89(this);this.JSC$11553_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var G=this.dragLists_.length,c=0;c<G;c++)this.dragLists_[c].dlgBounds_=null;G=this.dragItems_.length;for(c=0;c<G;c++)this.dragItems_[c].dlgBounds_=null};
_.P.handleDragEnd_=function(G){if(!this.dispatchEvent(new e7(Bie,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_)))return!1;h89(this);this.dispatchEvent(new e7(r0K,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_));this.JSC$11555_cleanup_();return!0};
var h89=function(G){_.TB(G.JSC$11553_dragger_);var c=G.draggerEl_&&G.draggerEl_.parentElement;G.draggerEl_&&_.ST(G.draggerEl_);G.currDragItem_&&G.currDragItem_.style.display=="none"&&(G.origList_.insertBefore(G.currDragItem_,G.origNextItem_),G.currDragItem_.style.display="");G.currDragItemClasses_&&G.currDragItem_?r$2(G.currDragItem_,G.currDragItemClasses_||[]):G.currDragItem_&&(G.currDragItem_.style.visibility="");for(var I=G.dragLists_.length,R=0;R<I;R++){var Z=G.dragLists_[R];Z.dlgDragHoverClass_&&
_.XP(Z,Z.dlgDragHoverClass_)}c&&G.dispatchEvent(new e7(j1e,G,null,G.currDragItem_,G.draggerEl_,G.JSC$11553_dragger_))};
_.P=OY.prototype;_.P.getHandleForDragItem_=function(G){return G};
_.P.handleDragItemMouseover_=function(G){Tp(G.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemMouseout_=function(G){r$2(G.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemHandleMouseover_=function(G){Tp(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.P.handleDragItemHandleMouseout_=function(G){r$2(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Cfp=function(G,c){return G.x>c.left&&G.x<c.left+c.width&&G.y>c.top&&G.y<c.top+c.height},Gfi=function(G,c){G=G.dlgBounds_;
return Math.abs(c.y-(G.top+(G.height-1)/2))},HQK=function(G){return G.top+G.height-1},y0T=function(G){return G.left+G.width-1},g5T=function(G){return G.left||0},XUA=function(G,c){return G<c},Y30=function(G,c){return G>c},e7=function(G,c,I,R,Z,K){_.zR.call(this,G);
this.event=I;this.currDragItem=R;this.draggerEl=Z;this.JSC$11557_dragger=K};
_.eg(e7,_.zR);_.eg(of,_.JK);var cYk=new _.ts(0,0);of.prototype.JSC$11561_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
of.prototype.JSC$11561_onMouseMove=function(G){var c=this.containerIsActuallyContent_?cYk:V0(zM(this.containerNode_)),I=this.horizontalScrolling_?this.calculateScrollDelta(G.clientX+c.x,this.scrollBounds_.left,this.scrollBounds_.width):0,R=this.calculateScrollDelta(G.clientY+c.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=I;this.scrollDelta_.y=R;!(I=!I&&!R)&&(I=this.constrainScroll_)&&(I=G.clientX+c.x,G=G.clientY+c.y,c=this.containerBounds_,I=!(c.left<=I&&c.left+c.width>=
I&&c.top<=G&&c.top+c.height>=G));I?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
of.prototype.calculateScrollDelta=function(G,c,I){var R=0;G<c?R=-8:G>c+I&&(R=8);return R};
of.prototype.disposeInternal=function(){of.superClass_.disposeInternal.call(this);this.JSC$11559_eventHandler_.dispose();this.scrollTimer_.dispose()};var IAT={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"}}},Nn=IAT;Nn=IAT;var l9={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 RmB=function(){},hX=function(G){if(typeof G=="number"){var c=new RmB;
c.standardOffset_=G;var I=G;if(I==0)I="Etc/GMT";else{var R=["Etc/GMT",I<0?"-":"+"];I=Math.abs(I);R.push(Math.floor(I/60)%100);I%=60;I!=0&&R.push(":",_.Dn(I,2));I=R.join("")}c.timeZoneId_=I;I=G;I==0?I="UTC":(R=["UTC",I<0?"+":"-"],I=Math.abs(I),R.push(Math.floor(I/60)%100),I%=60,I!=0&&R.push(":",I),I=R.join(""));G=ZeK(G);c.tzNames_=[I,I];c.tzNamesExt_={STD_LONG_NAME_GMT:G,STD_GENERIC_LOCATION:G};c.transitions_=[];return c}c=new RmB;c.timeZoneId_=G.id;c.standardOffset_=-G.std_offset;c.tzNames_=G.names;
c.tzNamesExt_=G.names_ext;c.transitions_=G.transitions;return c},ZeK=function(G){var c=["GMT"];
c.push(G<=0?"+":"-");G=Math.abs(G);c.push(_.Dn(Math.floor(G/60)%100,2),":",_.Dn(G%60,2));return c.join("")},K7k=function(G,c){c=Date.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes())/36E5;
for(var I=0;I<G.transitions_.length&&c>=G.transitions_[I];)I+=2;return I==0?0:G.transitions_[I-1]},Pmi=function(G,c){G=G.standardOffset_-K7k(G,c);
return G===-1440?0:G};var dL=function(G,c){this.patternParts_=[];this.JSC$11572_dateTimeSymbols_=c||D2;typeof G=="number"?Q9V(this,G):mjN(this,G)},aAK=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],qn=function(G){return G.getHours?G.getHours():0},mjN=function(G,c){for(L8p&&(c=c.replace(/\u200f/g,""));c;){for(var I=c,R=0;R<aAK.length;++R){var Z=c.match(aAK[R]);
if(Z){var K=Z[0];c=c.substring(K.length);R==0&&(K=="''"?K="'":(K=K.substring(1,Z[1]=="'"?K.length-1:K.length),K=K.replace(/''/g,"'")));G.patternParts_.push({text:K,type:R});break}}if(I===c)throw Error("ae`"+c);}};
dL.prototype.format=function(G,c){if(!G)throw Error("be");var I=c?(G.getTimezoneOffset()-Pmi(c,G))*6E4:0,R=I?new Date(G.getTime()+I):G,Z=R;c&&R.getTimezoneOffset()!=G.getTimezoneOffset()&&(R=new Date(R.getTime()+(R.getTimezoneOffset()-G.getTimezoneOffset())*6E4),Z=new Date(G.getTime()+(I+(I>0?-864E5:864E5))));I=[];for(var K=0;K<this.patternParts_.length;++K){var m=this.patternParts_[K].text;1==this.patternParts_[K].type?I.push(TPi(this,m,G,R,Z,c)):I.push(m)}return I.join("")};
var Q9V=function(G,c){if(c<4)var I=G.JSC$11572_dateTimeSymbols_.DATEFORMATS[c];else if(c<8)I=G.JSC$11572_dateTimeSymbols_.TIMEFORMATS[c-4];else if(c<12)I=G.JSC$11572_dateTimeSymbols_.DATETIMEFORMATS[c-8],I=I.replace("{1}",G.JSC$11572_dateTimeSymbols_.DATEFORMATS[c-8]),I=I.replace("{0}",G.JSC$11572_dateTimeSymbols_.TIMEFORMATS[c-8]);else if(c===12)I=G.JSC$11572_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(c===13)I=G.JSC$11572_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Q9V(G,10);return}mjN(G,I)},ww=function(G,c){c=String(c);
G=G.JSC$11572_dateTimeSymbols_||D2;if(G.ZERODIGIT!==void 0&&!spr){for(var I=[],R=0;R<c.length;R++){var Z=c.charCodeAt(R);I.push(48<=Z&&Z<=57?String.fromCharCode(G.ZERODIGIT+Z-48):c.charAt(R))}c=I.join("")}return c},spr=!1,L8p=!1,emA=function(G,c,I,R){I=I.getFullYear();
I<=0&&R&&(I=1-I);return ww(G,Oek(I,c))},Oek=function(G,c){c==2&&(G%=100);
G<0&&c++;return _.Dn(G,c)},F3=function(G){if(!(G.getHours&&G.getSeconds&&G.getMinutes))throw Error("ce");
},NPK=function(G,c){F3(c);
c=qn(c);return G.JSC$11572_dateTimeSymbols_.AMPMS[c>=12&&c<24?1:0]},TPi=function(G,c,I,R,Z,K){var m=c.length;
switch(c.charAt(0)){case "G":return I=R.getFullYear()>0?1:0,m>=4?G.JSC$11572_dateTimeSymbols_.ERANAMES[I]:G.JSC$11572_dateTimeSymbols_.ERAS[I];case "y":return emA(G,m,R,!0);case "Y":return I=(new Date(q30(R.getFullYear(),R.getMonth(),R.getDate(),G.JSC$11572_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11572_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),m==2&&(I%=100),ww(G,Oek(I,m));case "u":return emA(G,m,R,!1);case "M":a:switch(I=R.getMonth(),m){case 5:m=G.JSC$11572_dateTimeSymbols_.NARROWMONTHS[I];
break a;case 4:m=G.JSC$11572_dateTimeSymbols_.MONTHS[I];break a;case 3:m=G.JSC$11572_dateTimeSymbols_.SHORTMONTHS[I];break a;default:m=ww(G,_.Dn(I+1,m))}return m;case "k":return F3(Z),ww(G,_.Dn(qn(Z)||24,m));case "S":return ww(G,(Z.getMilliseconds()/1E3).toFixed(Math.min(3,m)).slice(2)+(m>3?_.Dn(0,m-3):""));case "E":return I=R.getDay(),m>=4?G.JSC$11572_dateTimeSymbols_.WEEKDAYS[I]:G.JSC$11572_dateTimeSymbols_.SHORTWEEKDAYS[I];case "a":return NPK(G,Z);case "b":return NPK(G,Z);case "B":return NPK(G,
Z);case "h":return F3(Z),ww(G,_.Dn(qn(Z)%12||12,m));case "K":return F3(Z),ww(G,_.Dn(qn(Z)%12,m));case "H":return F3(Z),ww(G,_.Dn(qn(Z),m));case "c":a:switch(I=R.getDay(),m){case 5:m=G.JSC$11572_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[I];break a;case 4:m=G.JSC$11572_dateTimeSymbols_.STANDALONEWEEKDAYS[I];break a;case 3:m=G.JSC$11572_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[I];break a;default:m=ww(G,_.Dn(I,1))}return m;case "L":a:switch(I=R.getMonth(),m){case 5:m=G.JSC$11572_dateTimeSymbols_.STANDALONENARROWMONTHS[I];
break a;case 4:m=G.JSC$11572_dateTimeSymbols_.STANDALONEMONTHS[I];break a;case 3:m=G.JSC$11572_dateTimeSymbols_.STANDALONESHORTMONTHS[I];break a;default:m=ww(G,_.Dn(I+1,m))}return m;case "Q":return I=Math.floor(R.getMonth()/3),m<4?G.JSC$11572_dateTimeSymbols_.SHORTQUARTERS[I]:G.JSC$11572_dateTimeSymbols_.QUARTERS[I];case "d":return ww(G,_.Dn(R.getDate(),m));case "m":return F3(Z),ww(G,_.Dn(Z.getMinutes?Z.getMinutes():0,m));case "s":return F3(Z),ww(G,_.Dn(Z.getSeconds(),m));case "v":return(K||hX(I.getTimezoneOffset())).timeZoneId_;
case "V":return G=K||hX(I.getTimezoneOffset()),m<=2?G.timeZoneId_:K7k(G,I)>0?G.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?G.tzNamesExt_.DST_GENERIC_LOCATION:G.tzNamesExt_.DST_GENERIC_LOCATION:G.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?G.tzNamesExt_.STD_GENERIC_LOCATION:G.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return I=q30(Z.getFullYear(),Z.getMonth(),Z.getDate(),G.JSC$11572_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11572_dateTimeSymbols_.FIRSTDAYOFWEEK),ww(G,_.Dn(Math.floor(Math.round((I-(new Date((new Date(I)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,m));case "z":return G=K||hX(I.getTimezoneOffset()),m<4?G.tzNames_[K7k(G,I)>0?2:0]:G.tzNames_[K7k(G,I)>0?3:1];case "Z":return c=K||hX(I.getTimezoneOffset()),m<4?(m=-Pmi(c,I),G=[m<0?"-":"+"],m=Math.abs(m),G.push(_.Dn(Math.floor(m/60)%100,2),_.Dn(m%60,2)),m=G.join("")):m=ww(G,ZeK(Pmi(c,I))),m;default:return""}};var lAN=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,qN0=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Alr=function(G){this.patternParts_=[];this.JSC$11581_dateTimeSymbols_=D2;if(typeof G=="number"){G>11&&(G=10);if(G<4)var c=this.JSC$11581_dateTimeSymbols_.DATEFORMATS[G];else G<8?c=this.JSC$11581_dateTimeSymbols_.TIMEFORMATS[G-4]:(c=this.JSC$11581_dateTimeSymbols_.DATETIMEFORMATS[G-8],c=c.replace("{1}",this.JSC$11581_dateTimeSymbols_.DATEFORMATS[G-8]),c=c.replace("{0}",this.JSC$11581_dateTimeSymbols_.TIMEFORMATS[G-
8]));w80(this,c)}else w80(this,G)},w80=function(G,c){for(var I=!1,R="",Z=0;Z<c.length;Z++){var K=c.charAt(Z);
if(lAN.test(K))for(R.length>0&&(G.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R=""),G.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Z<c.length-1&&c.charAt(Z+1)==" ";)Z++;else if(I)K=="'"?Z+1<c.length&&c.charAt(Z+1)=="'"?(R+="'",Z++):I=!1:R+=K;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(K)>=0){R.length>0&&(G.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R="");for(var m=c.charAt(Z),a=Z+1;a<c.length&&c.charAt(a)==m;)a++;m=a-Z;m<=0?a=!1:(a="MydhHmsSDkK".indexOf(K),
a=a>0||a==0&&m<3);G.patternParts_.push({text:K,count:m,abutStart:!1,numeric:a});Z+=m-1}else K=="'"?Z+1<c.length&&c.charAt(Z+1)=="'"?(R+="'",Z++):I=!0:R+=K}R.length>0&&G.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1});c=!1;for(I=0;I<G.patternParts_.length;I++)G.patternParts_[I].numeric?!c&&I+1<G.patternParts_.length&&G.patternParts_[I+1].numeric&&(c=!0,G.patternParts_[I].abutStart=!0):c=!1};
Alr.prototype.parse=function(G,c,I){var R=!1,Z=!1;I&&(R=I.predictive||!1,Z=I.validate||!1);if(R)for(I=0;I<this.patternParts_.length;I++){var K=this.patternParts_[I];if(K.count>0&&("abBhHkKm".indexOf(K.text.charAt(0))<0||K.count>2||K.abutStart))throw Error("de`"+K.text.charAt(0));}K=new F7k;I=[0];K.dayPeriodIndex=-1;for(var m=0;m<this.patternParts_.length&&!(R&&I[0]>=G.length);m++){if(this.patternParts_[m].count==0){a:{var a=G;var O=I,N=this.patternParts_[m],q=R;if(N.text.match(lAN)!=null){if(N=O[0],
nZT(a,O),O[0]>N){a=!0;break a}}else{if(a.indexOf(N.text,O[0])==O[0]){O[0]+=N.text.length;a=!0;break a}if(q&&N.text.indexOf(a.substring(O[0]))==0){O[0]+=a.length-O[0];a=!0;break a}}a=!1}if(a)continue;return 0}if(this.patternParts_[m].abutStart){a:{O=G;N=I;q=m;var w=N[0],F=0;for(a=q;a<this.patternParts_.length;a++){var n=this.patternParts_[a],U=n.count;if(U===0)break;if(a==q&&(U-=F,F++,U==0)){a=0;break a}var k=a>q&&n.numeric,p=N[0];if(!vZ9(this,O,N,n,U,K,!1)||k&&N[0]-p<U)a=q-1,N[0]=w}a-=q}if(a<=0)return 0;
m+=a-1}else if(!vZ9(this,G,I,this.patternParts_[m],0,K,R))return 0}a:{G=Z;if(c==null)throw Error("ee");K.era!=void 0&&K.year!=void 0&&K.era==0&&K.year>0&&(K.year=-(K.year-1));K.year!=void 0&&c.setFullYear(K.year);R=c.getDate();c.setDate(1);K.month!=void 0&&c.setMonth(K.month);K.day!=void 0?c.setDate(K.day):(Z=Rjr(c.getFullYear(),c.getMonth()),c.setDate(R>Z?Z:R));typeof c.setHours==="function"&&(K.hours==void 0&&(K.hours=c.getHours()),K.hours<12&&(K.ampm!=void 0&&K.ampm>0?K.hours+=12:K.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(K.dayPeriodName)||["night1","night2"].includes(K.dayPeriodName)&&K.hours>=6)&&(K.hours+=12)),c.setHours(K.hours));typeof c.setMinutes==="function"&&K.minutes!=void 0&&c.setMinutes(K.minutes);typeof c.setSeconds==="function"&&K.seconds!=void 0&&c.setSeconds(K.seconds);typeof c.setMilliseconds==="function"&&K.milliseconds!=void 0&&c.setMilliseconds(K.milliseconds);if(G&&(K.year&&K.year!=c.getFullYear()||K.month&&K.month!=
c.getMonth()||K.day&&K.day!=c.getDate()||K.hours&&K.hours>=24||K.minutes&&K.minutes>=60||K.seconds&&K.seconds>=60||K.milliseconds&&K.milliseconds>=1E3))c=!1;else{K.tzOffset!=void 0&&c.setTime(c.getTime()+(K.tzOffset-c.getTimezoneOffset())*60*1E3);K.ambiguousYear&&(G=new Date,G.setFullYear(G.getFullYear()-80),c.getTime()<G.getTime()&&c.setFullYear(G.getFullYear()+100));if(K.dayOfWeek!=void 0)if(K.day==void 0)K=(7+K.dayOfWeek-c.getDay())%7,K>3&&(K-=7),G=c.getMonth(),c.setDate(c.getDate()+K),c.getMonth()!=
G&&c.setDate(c.getDate()+(K>0?-7:7));else if(K.dayOfWeek!=c.getDay()){c=!1;break a}c=!0}}return c?I[0]:0};
var vZ9=function(G,c,I,R,Z,K,m){nZT(c,I);if(R.numeric&&Z>0&&I[0]+Z>c.length)return!1;switch(R.text.charAt(0)){case "G":return n$(c,I,[G.JSC$11581_dateTimeSymbols_.ERAS],function(a){return K.era=a}),!0;
case "M":case "L":return DjK(G,c,I,Z,R,K);case "E":return n$(c,I,[G.JSC$11581_dateTimeSymbols_.WEEKDAYS,G.JSC$11581_dateTimeSymbols_.SHORTWEEKDAYS],function(a){return K.dayOfWeek=a});
case "B":case "b":return Z=[],G=[[].concat(G.JSC$11581_dateTimeSymbols_.AMPMS)],Z.push("isAm"),Z.push("isPm"),c=n$(c,I,G,function(a){return K.dayPeriodIndex=a},m),K.dayPeriodName=Z[K.dayPeriodIndex],m?c:!0;
case "a":return c=n$(c,I,[G.JSC$11581_dateTimeSymbols_.AMPMS],function(a){return K.ampm=a},m),m?c:!0;
case "y":return oZT(G,c,I,R,Z,K);case "Q":return n$(c,I,[G.JSC$11581_dateTimeSymbols_.QUARTERS,G.JSC$11581_dateTimeSymbols_.SHORTQUARTERS],function(a){K.month=a*3;K.day=1});
case "d":return va(G,c,I,R,Z,function(a){K.day=a}),!0;
case "S":return UjK(G,c,I,Z,K);case "h":case "K":case "H":case "k":return c=va(G,c,I,R,Z,function(a){K.hours=R.text.charAt(0)==="h"&&a===12?0:a},m),m?c:!0;
case "m":return c=va(G,c,I,R,Z,function(a){K.minutes=a},m),m?c:!0;
case "s":return va(G,c,I,R,Z,function(a){K.seconds=a}),!0;
case "z":case "Z":case "v":return uc0(G,c,I,K);default:return!1}},oZT=function(G,c,I,R,Z,K){var m=I[0];
Z=DM(G,c,I,Z);Z===null&&(Z=DM(G,c,I,0,!0));if(Z===null)return!1;Z>=0&&I[0]-m==2&&R.count==2?(G=Z,c=(new Date).getFullYear()-80,I=c%100,K.ambiguousYear=G==I,G+=Math.floor(c/100)*100+(G<I?100:0),K.year=G):K.year=Z;return!0},DjK=function(G,c,I,R,Z,K){return Z.numeric&&va(G,c,I,Z,R,function(m){K.month=m-1})?!0:n$(c,I,[G.JSC$11581_dateTimeSymbols_.MONTHS,
G.JSC$11581_dateTimeSymbols_.STANDALONEMONTHS,G.JSC$11581_dateTimeSymbols_.SHORTMONTHS,G.JSC$11581_dateTimeSymbols_.STANDALONESHORTMONTHS],function(m){K.month=m})},UjK=function(G,c,I,R,Z){var K=I[0];
G=DM(G,c,I,R);if(G===null)return!1;I=I[0]-K;Z.milliseconds=I<3?G*Math.pow(10,3-I):Math.round(G/Math.pow(10,I-3));return!0},uc0=function(G,c,I,R){c.indexOf("GMT",I[0])==I[0]&&(I[0]+=3);
if(I[0]>=c.length)return R.tzOffset=0,!0;var Z=I[0],K=DM(G,c,I,0,!0);if(K===null)return!1;if(I[0]<c.length&&c.charAt(I[0])==":"){var m=K*60;I[0]++;K=DM(G,c,I,0);if(K===null)return!1;m+=K}else m=K,m=m<24&&I[0]-Z<=3?m*60:m%100+m/100*60;R.tzOffset=-m;return!0},va=function(G,c,I,R,Z,K,m){m=m||!1;
var a=I[0];G=DM(G,c,I,Z);if(G===null)return!1;if(m&&I[0]-a<R.count){if(I[0]<c.length)return!1;G*=Math.pow(10,R.count-(I[0]-a))}K(G);return!0},n$=function(G,c,I,R,Z){Z=Z||!1;
for(var K,m=0;m<I.length;m++){K=c;for(var a=I[m],O=Z,N=0,q=null,w=G.substring(K[0]).toLowerCase(),F=0;F<a.length;F++){var n=a[F].toLowerCase();if(O&&n.indexOf(w)==0){N=w.length;q=F;break}a[F].length>N&&w.indexOf(n)==0&&(N=a[F].length,q=F)}q!==null&&(K[0]+=N);K=q;if(K!==null)return R(K),!0}return!1},nZT=function(G,c){(G=G.substring(c[0]).match(qN0))&&(c[0]+=G[0].length)},DM=function(G,c,I,R,Z){c=R>0?c.substring(0,I[0]+R):c;
Z=Z||!1;if(G.JSC$11581_dateTimeSymbols_.ZERODIGIT){R=[];for(var K=I[0];K<c.length;K++){var m=c.charCodeAt(K)-G.JSC$11581_dateTimeSymbols_.ZERODIGIT;R.push(0<=m&&m<=9?String.fromCharCode(m+48):c.charAt(K))}c=R.join("")}else c=c.substring(I[0]);G=c.match(new RegExp("^"+(Z?"[+-]?":"")+"\\d+"));if(!G)return null;I[0]+=G[0].length;return parseInt(G[0],10)},F7k=function(){};
F7k.prototype.ambiguousYear=!1;var bee;
bee={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 kfK={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}"]};
kfK={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 s90=function(){var G={type:"unit",style:"narrow"};this.listType_=G&&G.type?G.type:"conjunction";this.listStyle_=G&&G.style?G.style:"long";this.listSymbols_=kfK;G=0;switch(this.listStyle_){case "short":G=1;break;case "narrow":G=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[G];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[G];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[G];this.listEndPattern_=
this.listSymbols_.AND_END[G];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[G];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[G];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[G];this.listEndPattern_=this.listSymbols_.OR_END[G];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[G],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[G],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[G],this.listEndPattern_=this.listSymbols_.UNIT_END[G]}};
s90.prototype.format=function(G){return L7e(this,G)};
var L7e=function(G,c){var I=c.length;switch(I){case 0:return"";case 1:return String(c[0]);case 2:return G.listTwoPattern_.replace("{0}",String(c[0])).replace("{1}",String(c[1]))}for(var R=G.listStartPattern_.replace("{0}",String(c[0])).replace("{1}",String(c[1])),Z=2;Z<I-1;++Z)R=G.listMiddlePattern_.replace("{0}",R).replace("{1}",String(c[Z]));return G.listEndPattern_.replace("{0}",R).replace("{1}",String(c[I-1]))};var AY2={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"},$j0=AY2,SN2=AY2;SN2=$j0=AY2;var MRN,oj,u9,OvO,UY,p8K;
_.jC=function(G,c,I,R){var Z;if(Z=c){a:if(c&&c.length===3){for(Z=0;Z<3;Z++){var K=c[Z];if(K<"A"||K>"Z"&&K<"a"||K>"z"){Z=!1;break a}}Z=!0}else Z=!1;Z=!Z}if(Z)throw new TypeError("fe");this.intlCurrencyCode_=c?c.toUpperCase():null;this.currencyStyle_=I||0;this.overrideNumberFormatSymbols_=R||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_=oj(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof G==="number")switch(G){case 1:UY(this,oj(this).DECIMAL_PATTERN);break;case 2:UY(this,oj(this).SCIENTIFIC_PATTERN);break;case 3:UY(this,oj(this).PERCENT_PATTERN);break;case 4:G=oj(this).CURRENCY_PATTERN;c=["0"];if(I=
l9[u9(this)]){I=I[0]&7;if(I>0)for(c.push("."),R=0;R<I;R++)c.push("0");G=G.replace(/0.00/g,c.join(""))}UY(this,G);break;case 5:p8K(this,1);break;case 6:p8K(this,2);break;default:throw Error("ie");}else UY(this,G)};
MRN=!1;oj=function(G){return G.overrideNumberFormatSymbols_||(MRN?SN2:$j0)};
u9=function(G){return G.intlCurrencyCode_||oj(G).DEF_CURRENCY_CODE};
OvO=function(G,c){if(c>308)throw Error("he`"+c);G.maximumFractionDigits_=c;return G};
UY=function(G,c){var I=[0];G.positivePrefix_=VRB(G,c,I);for(var R=I[0],Z=-1,K=0,m=0,a=0,O=-1,N=c.length,q=!0;I[0]<N&&q;I[0]++)switch(c.charAt(I[0])){case "#":m>0?a++:K++;O>=0&&Z<0&&O++;break;case "0":if(a>0)throw Error("oe`"+c);m++;O>=0&&Z<0&&O++;break;case ",":O>0&&G.groupingArray_.push(O);O=0;break;case ".":if(Z>=0)throw Error("pe`"+c);Z=K+m+a;break;case "E":if(G.useExponentialNotation_)throw Error("qe`"+c);G.useExponentialNotation_=!0;G.minExponentDigits_=0;I[0]+1<N&&c.charAt(I[0]+1)=="+"&&(I[0]++,
G.useSignForPositiveExponent_=!0);for(;I[0]+1<N&&c.charAt(I[0]+1)=="0";)I[0]++,G.minExponentDigits_++;if(K+m<1||G.minExponentDigits_<1)throw Error("re`"+c);q=!1;break;default:I[0]--,q=!1}m==0&&K>0&&Z>=0&&(m=Z,m==0&&m++,a=K-m,K=m-1,m=1);if(Z<0&&a>0||Z>=0&&(Z<K||Z>K+m)||O==0)throw Error("se`"+c);a=K+m+a;G.maximumFractionDigits_=Z>=0?a-Z:0;Z>=0&&(G.minimumFractionDigits_=K+m-Z,G.minimumFractionDigits_<0&&(G.minimumFractionDigits_=0));G.minimumIntegerDigits_=(Z>=0?Z:a)-K;G.useExponentialNotation_&&(G.maximumIntegerDigits_=
K+G.minimumIntegerDigits_,G.maximumFractionDigits_==0&&G.minimumIntegerDigits_==0&&(G.minimumIntegerDigits_=1));G.groupingArray_.push(Math.max(0,O));G.decimalSeparatorAlwaysShown_=Z==0||Z==a;R=I[0]-R;G.positiveSuffix_=VRB(G,c,I);I[0]<c.length&&c.charAt(I[0])==";"?(I[0]++,G.multiplier_!=1&&(G.negativePercentSignExpected_=!0),G.negativePrefix_=VRB(G,c,I),I[0]+=R,G.negativeSuffix_=VRB(G,c,I)):(G.negativePrefix_+=G.positivePrefix_,G.negativeSuffix_+=G.positiveSuffix_)};
p8K=function(G,c){G.compactStyle_=c;UY(G,oj(G).DECIMAL_PATTERN);G.minimumFractionDigits_=0;OvO(G,2);if(G.minimumFractionDigits_>0)throw Error("ge");G.significantDigits_=2};
_.jC.prototype.parse=function(G,c){c=c||[0];if(this.compactStyle_!==0)throw Error("je");G=G.replace(/ |\u202f/g,"\u00a0");var I=G.indexOf(this.positivePrefix_,c[0])==c[0],R=G.indexOf(this.negativePrefix_,c[0])==c[0];I&&R&&(this.positivePrefix_.length>this.negativePrefix_.length?R=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(I=!1));I?c[0]+=this.positivePrefix_.length:R&&(c[0]+=this.negativePrefix_.length);if(G.indexOf(oj(this).INFINITY,c[0])==c[0]){c[0]+=oj(this).INFINITY.length;var Z=
Infinity}else{Z=G;var K=!1,m=!1,a=!1,O=-1,N=1,q=oj(this).DECIMAL_SEP,w=oj(this).GROUP_SEP,F=oj(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");w=w.replace(/\u202f/g,"\u00a0");for(var n="";c[0]<Z.length;c[0]++){var U=Z.charAt(c[0]),k=zme(this,U);if(k>=0&&k<=9)n+=k,a=!0;else if(U==q.charAt(0)){if(K||m)break;n+=".";K=!0}else if(U==w.charAt(0)&&("\u00a0"!=w.charAt(0)||c[0]+1<Z.length&&zme(this,Z.charAt(c[0]+1))>=0)){if(K||m)break}else if(U==F.charAt(0)){if(m)break;n+="E";m=!0;O=c[0]}else if(U==
"+"||U=="-"){if(a&&O!=c[0]-1)break;n+=U}else if(this.multiplier_==1&&U==oj(this).PERCENT.charAt(0)){if(N!=1)break;N=100;if(a){c[0]++;break}}else if(this.multiplier_==1&&U==oj(this).PERMILL.charAt(0)){if(N!=1)break;N=1E3;if(a){c[0]++;break}}else break}this.multiplier_!=1&&(N=this.multiplier_);Z=parseFloat(n)/N}if(I){if(G.indexOf(this.positiveSuffix_,c[0])!=c[0])return NaN;c[0]+=this.positiveSuffix_.length}else if(R){if(G.indexOf(this.negativeSuffix_,c[0])!=c[0])return NaN;c[0]+=this.negativeSuffix_.length}return R?
-Z:Z};
_.jC.prototype.format=function(G){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(G))return oj(this).NAN;var c=[];var I=G;if(this.compactStyle_==0)I=b9;else{I=Math.abs(I);var R=EZB(this,I<=1?0:JYV(I)).divisorBase;I=EZB(this,R+JYV(W7i(this,kn(I,-R)).intValue))}G=kn(G,-I.divisorBase);(R=G<0||G==0&&1/G<0)?I.negative_prefix?c.push(I.negative_prefix):(c.push(I.prefix),c.push(this.negativePrefix_)):(c.push(I.prefix),c.push(this.positivePrefix_));if(isFinite(G))if(G*=
R?-1:1,G*=this.multiplier_,this.useExponentialNotation_){var Z=G;if(Z==0)iek(this,Z,this.minimumIntegerDigits_,c),fAN(this,0,c);else{var K=Math.floor(Math.log(Z)/Math.log(10)+2E-15);Z=kn(Z,-K);var m=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(m=K%this.maximumIntegerDigits_,m<0&&(m=this.maximumIntegerDigits_+m),Z=kn(Z,m),K-=m,m=1):this.minimumIntegerDigits_<1?(K++,Z=kn(Z,-1)):(K-=this.minimumIntegerDigits_-1,Z=kn(Z,this.minimumIntegerDigits_-
1));iek(this,Z,m,c);fAN(this,K,c)}}else iek(this,G,this.minimumIntegerDigits_,c);else c.push(oj(this).INFINITY);R?I.negative_suffix?c.push(I.negative_suffix):(isFinite(G)&&c.push(I.suffix),c.push(this.negativeSuffix_)):(isFinite(G)&&c.push(I.suffix),c.push(this.positiveSuffix_));return c.join("")};
var W7i=function(G,c){var I=kn(c,G.maximumFractionDigits_);G.significantDigits_>0&&(I=BPA(I,G.significantDigits_,G.maximumFractionDigits_));I=Math.round(I);if(isFinite(I)){var R=Math.floor(kn(I,-G.maximumFractionDigits_));I=Math.floor(I-kn(R,G.maximumFractionDigits_));if(I<0||I>=kn(1,G.maximumFractionDigits_))R=Math.round(c),I=0}else R=c,I=0;return{intValue:R,fracValue:I}},iek=function(G,c,I,R){if(G.minimumFractionDigits_>G.maximumFractionDigits_)throw Error("le");
R||(R=[]);c=W7i(G,c);var Z=c.intValue,K=c.fracValue,m=G.minimumFractionDigits_>0||K>0||!1;c=G.minimumFractionDigits_;m&&(c=G.minimumFractionDigits_);for(var a="",O=Z;O>1E20;)a="0"+a,O=Math.round(kn(O,-1));a=O+a;var N=oj(G).DECIMAL_SEP;O=oj(G).ZERO_DIGIT.codePointAt(0);var q=a.length,w=0;if(Z>0||I>0){for(Z=q;Z<I;Z++)R.push(String.fromCodePoint(O));if(G.groupingArray_.length>=2)for(I=1;I<G.groupingArray_.length;I++)w+=G.groupingArray_[I];I=q-w;if(I>0){Z=G.groupingArray_;w=q=0;for(var F,n=oj(G).GROUP_SEP,
U=a.length,k=0;k<U;k++)if(R.push(String.fromCodePoint(O+Number(a.charAt(k)))),U-k>1)if(F=Z[w],k<I){var p=I-k;(F===1||F>0&&p%F===1)&&R.push(n)}else w<Z.length&&(k===I?w+=1:F===k-I-q+1&&(R.push(n),q+=F,w+=1))}else{I=a;a=G.groupingArray_;Z=oj(G).GROUP_SEP;F=I.length;n=[];for(q=a.length-1;q>=0&&F>0;q--){w=a[q];for(U=0;U<w&&F-U-1>=0;U++)n.push(String.fromCodePoint(O+Number(I.charAt(F-U-1))));F-=w;F>0&&n.push(Z)}R.push.apply(R,n.reverse())}}else m||R.push(String.fromCodePoint(O));(G.decimalSeparatorAlwaysShown_||
m)&&R.push(N);K=String(K);m=K.split("e+");m.length==2&&(K=String(BPA(parseFloat(m[0]),G.significantDigits_,1)),K=K.replace(".",""),K+=(0,_.q9p)("0",parseInt(m[1],10)-K.length+1));G.maximumFractionDigits_+1>K.length&&(K="1"+(0,_.q9p)("0",G.maximumFractionDigits_-K.length)+K);for(G=K.length;K.charAt(G-1)=="0"&&G>c+1;)G--;for(c=1;c<G;c++)R.push(String.fromCodePoint(O+Number(K.charAt(c))))},fAN=function(G,c,I){I.push(oj(G).EXP_SYMBOL);
c<0?(c=-c,I.push(oj(G).MINUS_SIGN)):G.useSignForPositiveExponent_&&I.push(oj(G).PLUS_SIGN);c=""+c;for(var R=oj(G).ZERO_DIGIT,Z=c.length;Z<G.minExponentDigits_;Z++)I.push(R);G=R.codePointAt(0)-rYe;for(R=0;R<c.length;R++)I.push(String.fromCodePoint(G+c.codePointAt(R)))},zme=function(G,c){c=c.codePointAt(0);
if(48<=c&&c<58)return c-48;G=oj(G).ZERO_DIGIT.codePointAt(0);return G<=c&&c<G+10?c-G:-1},rYe="0".codePointAt(0),VRB=function(G,c,I){for(var R="",Z=!1,K=c.length;I[0]<K;I[0]++){var m=c.charAt(I[0]);
if(m=="'")I[0]+1<K&&c.charAt(I[0]+1)=="'"?(I[0]++,R+="'"):Z=!Z;else if(Z)R+=m;else switch(m){case "#":case "0":case ",":case ".":case ";":return R;case "\u00a4":if(I[0]+1<K&&c.charAt(I[0]+1)=="\u00a4")I[0]++,R+=u9(G);else switch(G.currencyStyle_){case 0:m=u9(G);R+=m in l9?l9[m][1]:m;break;case 2:m=u9(G);var a=l9[m];R+=a?m==a[1]?m:m+" "+a[1]:m;break;case 1:m=u9(G),R+=m in l9?l9[m][2]:m}break;case "%":if(!G.negativePercentSignExpected_&&G.multiplier_!=1)throw Error("me");if(G.negativePercentSignExpected_&&
G.multiplier_!=100)throw Error("ne");G.multiplier_=100;G.negativePercentSignExpected_=!1;R+=oj(G).PERCENT;break;case "\u2030":if(!G.negativePercentSignExpected_&&G.multiplier_!=1)throw Error("me");if(G.negativePercentSignExpected_&&G.multiplier_!=1E3)throw Error("ne");G.multiplier_=1E3;G.negativePercentSignExpected_=!1;R+=oj(G).PERMILL;break;default:R+=m}}return R},b9={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},EZB=function(G,c){G=G.compactStyle_==1?Nn.COMPACT_DECIMAL_SHORT_PATTERN:Nn.COMPACT_DECIMAL_LONG_PATTERN;G==null&&(G=Nn.COMPACT_DECIMAL_SHORT_PATTERN);if(c<3)return b9;c=Math.min(14,c);var I=G[kn(1,c)];for(--c;!I&&c>=3;)I=G[kn(1,c)],c--;if(!I)return b9;I=I.other;var R=G="",Z=I.indexOf(";");Z>=0&&(I=I.substring(0,Z),Z=I.substring(Z+1))&&(R=/([^0]*)(0+)(.*)/.exec(Z),G=R[1],R=R[3]);return I&&I!="0"?(I=/([^0]*)(0+)(.*)/.exec(I))?{divisorBase:c+
1-(I[2].length-1),negative_prefix:G,negative_suffix:R,prefix:I[1],suffix:I[3]}:b9:b9},JYV=function(G){if(!isFinite(G))return G>0?G:0;
for(var c=0;(G/=10)>=1;)c++;return c},kn=function(G,c){if(!G||!isFinite(G)||c==0)return G;
G=String(G).split("e");return parseFloat(G[0]+"e"+(parseInt(G[1]||0,10)+c))},j90=function(G,c){return G&&isFinite(G)?kn(Math.round(kn(G,c)),-c):G},BPA=function(G,c,I){if(!G)return G;
c=c-JYV(G)-1;return c<-I?j90(G,-I):j90(G,c)};var xjB=function(G){return G%10==1&&G%100!=11?"one":G%10==2&&G%100!=12?"two":G%10==3&&G%100!=13?"few":"other"},tRV=xjB;
tRV=xjB;var hmA=function(G,c){var I=G|0;if(void 0===c){c=Math;var R=c.min,Z=G+"",K=Z.indexOf(".");c=R.call(c,K===-1?0:Z.length-K-1,3)}R=Math.pow(10,c);G={v:c,f:(G*R|0)%R};return I==1&&G.v==0?"one":"other"},rL=hmA;
rL=hmA;var X8K=function(G){this.JSC$11624_pattern_=G;this.parsedPattern_=this.literals_=this.initialLiterals_=null;G=$j0;var c=Nn;if(dje!==G||Cmk!==c)dje=G,Cmk=c,Hei=new _.jC(1);this.numberFormatter_=Hei},dje=null,Cmk=null,Hei=null,yYp=RegExp("'([{}#].*?)'","g"),gZe=RegExp("''","g");
X8K.prototype.format=function(G){if(this.JSC$11624_pattern_){this.initialLiterals_=[];var c=YN0(this,this.JSC$11624_pattern_);this.parsedPattern_=G$B(this,c);this.JSC$11624_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.jr(this.initialLiterals_),c=[],cq2(this,this.parsedPattern_,G,!1,c),G=c.join("");this.literals_.length>0;)G=G.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else G="";return G};
var cq2=function(G,c,I,R,Z){for(var K=0;K<c.length;K++)switch(c[K].type){case 4:Z.push(c[K].value);break;case 3:var m=c[K].value;var a=G,O=Z,N=I[m];N===void 0?O.push("Undefined parameter - "+m):(a.literals_.push(N),O.push(a.buildPlaceholder_(a.literals_)));break;case 2:m=c[K].value;a=G;O=I;N=R;var q=Z,w=m.argumentIndex;O[w]===void 0?q.push("Undefined parameter - "+w):(w=m[O[w]],w===void 0&&(w=m.other),cq2(a,w,O,N,q));break;case 0:m=c[K].value;I20(G,m,I,rL,R,Z);break;case 1:m=c[K].value,I20(G,m,I,
tRV,R,Z)}},I20=function(G,c,I,R,Z,K){var m=c.argumentIndex,a=c.argumentOffset,O=+I[m];
isNaN(O)?K.push("Undefined or invalid parameter - "+m):(a=O-a,m=c[I[m]],m===void 0&&(R=R(Math.abs(a)),m=c[R],m===void 0&&(m=c.other)),c=[],cq2(G,m,I,Z,c),I=c.join(""),Z?K.push(I):(G=G.numberFormatter_.format(a),K.push(I.replace(/#/g,G))))},YN0=function(G,c){var I=G.initialLiterals_,R=G.buildPlaceholder_.bind(G);
c=c.replace(gZe,function(){I.push("'");return R(I)});
return c=c.replace(yYp,function(Z,K){I.push(K);return R(I)})},Rk0=function(G){var c=0,I=[],R=[],Z=/[{}]/g;
Z.lastIndex=0;for(var K;K=Z.exec(G);){var m=K.index;K[0]=="}"?(I.pop(),I.length==0&&(K={type:1},K.value=G.substring(c,m),R.push(K),c=m+1)):(I.length==0&&(c=G.substring(c,m),c!=""&&R.push({type:0,value:c}),c=m+1),I.push("{"))}G=G.substring(c);G!=""&&R.push({type:0,value:G});return R},Zse=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,KL0=/^\s*(\w+)\s*,\s*selectordinal\s*,/,PPp=/^\s*(\w+)\s*,\s*select\s*,/,G$B=function(G,c){var I=[];
c=Rk0(c);for(var R=0;R<c.length;R++){var Z={};if(0==c[R].type)Z.type=4,Z.value=c[R].value;else if(1==c[R].type){var K=c[R].value;switch(Zse.test(K)?0:KL0.test(K)?1:PPp.test(K)?2:/^\s*\w+\s*/.test(K)?3:5){case 2:Z.type=2;Z.value=QlK(G,c[R].value);break;case 0:Z.type=0;Z.value=mo0(G,c[R].value);break;case 1:Z.type=1;Z.value=a2K(G,c[R].value);break;case 3:Z.type=3,Z.value=c[R].value}}I.push(Z)}return I},QlK=function(G,c){var I="";
c=c.replace(PPp,function(a,O){I=O;return""});
var R={};R.argumentIndex=I;c=Rk0(c);for(var Z=0;Z<c.length;){var K=c[Z].value;Z++;var m=void 0;1==c[Z].type&&(m=G$B(G,c[Z].value));R[K.replace(/\s/g,"")]=m;Z++}return R},mo0=function(G,c){var I="",R=0;
c=c.replace(Zse,function(O,N,q){I=N;q&&(R=parseInt(q,10));return""});
var Z={};Z.argumentIndex=I;Z.argumentOffset=R;c=Rk0(c);for(var K=0;K<c.length;){var m=c[K].value;K++;var a=void 0;1==c[K].type&&(a=G$B(G,c[K].value));Z[m.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=a;K++}return Z},a2K=function(G,c){var I="";
c=c.replace(KL0,function(a,O){I=O;return""});
var R={};R.argumentIndex=I;R.argumentOffset=0;c=Rk0(c);for(var Z=0;Z<c.length;){var K=c[Z].value;Z++;var m=void 0;1==c[Z].type&&(m=G$B(G,c[Z].value));R[K.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=m;Z++}return R};
X8K.prototype.buildPlaceholder_=function(G){return"\ufddf_"+(G.length-1).toString(10)+"_"};var ld8=function(){var G={style:1},c=T8T;this.style_=(G==null?void 0:G.style)||0;this.durationSymbols_=c||bee},Ose=function(G,c){switch(c){default:case "years":return G.durationSymbols_.YEAR;
case "months":return G.durationSymbols_.MONTH;case "weeks":return G.durationSymbols_.WEEK;case "days":return G.durationSymbols_.DAY;case "hours":return G.durationSymbols_.HOUR;case "minutes":return G.durationSymbols_.MINUTE;case "seconds":return G.durationSymbols_.SECOND}},sY=function(G,c,I){a:{I=Ose(G,I);
switch(G.style_){case 1:if(I.LONG!=void 0){G=I.LONG;break a}case 2:if(I.NARROW!=void 0){G=I.NARROW;break a}default:G=I.SHORT;break a}G=void 0}return G?(new X8K("{DURATION_VALUE,plural,"+G+"}")).format({DURATION_VALUE:c}):""};
ld8.prototype.format=function(G){var c=[],I=G.years,R=G.months,Z=G.weeks,K=G.days,m=G.hours,a=G.minutes;G=G.seconds;I!=null&&c.push(sY(this,I,"years"));R!=null&&c.push(sY(this,R,"months"));Z!=null&&c.push(sY(this,Z,"weeks"));K!=null&&c.push(sY(this,K,"days"));m!=null&&c.push(sY(this,m,"hours"));a!=null&&c.push(sY(this,a,"minutes"));G!=null&&c.push(sY(this,G,"seconds"));return(new s90).format(c)};var ekN;
ekN={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 $HA=function(){this.rdtfSymbols_=N80||ekN;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
$HA.prototype.format=function(G,c){a:{c=l2B(this,c);switch(this.style_){case 2:if(c.NARROW!=void 0){c=c.NARROW;break a}case 1:if(c.SHORT!=void 0){c=c.SHORT;break a}default:c=c.LONG;break a}c=void 0}if(!this.alwaysNumeric_&&c&&c.R&&c.R[""+G])G=c.R[""+G];else if(c){var I=Math.abs(G);G=(new X8K("{N,plural,"+(G>0||G==0&&1/G==Infinity?c.F:c.P)+"}")).format({N:I})}else G="";return G};
var l2B=function(G,c){switch(c){default:case 0:return G.rdtfSymbols_.YEAR;case 1:return G.rdtfSymbols_.QUARTER;case 2:return G.rdtfSymbols_.MONTH;case 3:return G.rdtfSymbols_.WEEK;case 4:return G.rdtfSymbols_.DAY;case 5:return G.rdtfSymbols_.HOUR;case 6:return G.rdtfSymbols_.MINUTE;case 7:return G.rdtfSymbols_.SECOND}};var qgK=function(G,c,I,R,Z,K,m,a){this.x0=G;this.y0=c;this.x1=I;this.y1=R;this.x2=Z;this.y2=K;this.x3=m;this.y3=a};
qgK.prototype.clone=function(){return new qgK(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
qgK.prototype.equals=function(G){return this.x0==G.x0&&this.y0==G.y0&&this.x1==G.x1&&this.y1==G.y1&&this.x2==G.x2&&this.y2==G.y2&&this.x3==G.x3&&this.y3==G.y3};
var wme=function(G,c){if(c==0)return G.x0;if(c==1)return G.x3;var I=fm(G.x0,G.x1,c),R=fm(G.x1,G.x2,c);G=fm(G.x2,G.x3,c);I=fm(I,R,c);R=fm(R,G,c);return fm(I,R,c)},FLi=function(G,c){var I=(c-G.x0)/(G.x3-G.x0);
if(I<=0)return 0;if(I>=1)return 1;for(var R=0,Z=1,K=0,m=0;m<8;m++){K=wme(G,I);var a=(wme(G,I+1E-6)-K)/1E-6;if(Math.abs(K-c)<1E-6)return I;if(Math.abs(a)<1E-6)break;else K<c?R=I:Z=I,I-=(K-c)/a}for(m=0;Math.abs(K-c)>1E-6&&m<8;m++)K<c?(R=I,I=(I+Z)/2):(Z=I,I=(I+R)/2),K=wme(G,I);return I};var L$=function(){_.r4.call(this);this.JSC$11645_name_="closure_frame"+nPi++;this.iframesForDisposal_=[];vPB[this.JSC$11645_name_]=this},AM;
_.eg(L$,_.r4);var vPB={},nPi=0,DoK=function(G,c){var I=zM(G);UbA(c,function(R,Z){Array.isArray(R)||(R=[R]);_.K4(R,function(K){K=I.JSC$9497_createDom("INPUT",{type:"hidden",name:Z,value:K});G.appendChild(K)})})};
_.P=L$.prototype;_.P.JSC$11647_form_=null;_.P.JSC$11647_iframe_=null;_.P.iframeName_=null;_.P.nextIframeId_=0;_.P.JSC$11647_active_=!1;_.P.complete_=!1;_.P.success_=!1;_.P.lastContent_=null;_.P.JSC$11647_lastErrorCode_=0;_.P.iframeDisposalTimer_=null;
_.P.send=function(G,c,I,R){if(this.JSC$11647_active_)throw Error("te");G=new _.Bq(G);c=c?c.toUpperCase():"GET";I&&_.Am(G);AM||(AM=_.xq("FORM"),AM.acceptCharset="utf-8",I=AM.style,I.position="absolute",I.visibility="hidden",I.top=I.left="-10px",I.width=I.height="10px",I.overflow="hidden",document.body.appendChild(AM));this.JSC$11647_form_=AM;c=="GET"&&DoK(this.JSC$11647_form_,G.JSC$10201_queryData_);R&&DoK(this.JSC$11647_form_,R);I=G.toString();I=XKp(I);R=this.JSC$11647_form_;I=_.Xx(i5(I));I!==void 0&&
(R.action=I);this.JSC$11647_form_.method=c;oPB(this);Uok(this)};
_.P.abort=function(G){if(this.JSC$11647_active_){var c=$n(this);if(c)if(WL(c))c.removeAllListeners(void 0);else if(c=fU(c)){var I=0,R;for(R in c.listeners)for(var Z=c.listeners[R].concat(),K=0;K<Z.length;++K)bD(Z[K])&&++I}this.success_=this.JSC$11647_active_=this.complete_=!1;this.JSC$11647_lastErrorCode_=G||7;this.dispatchEvent("abort");utK(this)}};
_.P.disposeInternal=function(){this.JSC$11647_active_&&this.abort();L$.superClass_.disposeInternal.call(this);this.JSC$11647_iframe_&&bsN(this);Uok(this);this.JSC$11647_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11647_form_=null;this.JSC$11647_lastErrorCode_=0;delete vPB[this.JSC$11645_name_]};
_.P.isComplete=function(){return this.complete_};
_.P.isSuccess=function(){return this.success_};
_.P.isActive=function(){return this.JSC$11647_active_};
_.P.getResponseText=function(){return this.lastContent_};
_.P.getLastError=function(){return _.yIe(this.JSC$11647_lastErrorCode_)};
var oPB=function(G){G.JSC$11647_active_=!0;G.complete_=!1;G.JSC$11647_lastErrorCode_=0;G.iframeName_=G.JSC$11645_name_+"_"+(G.nextIframeId_++).toString(36);G.JSC$11647_iframe_=zM(G.JSC$11647_form_).JSC$9497_createDom("IFRAME",{name:G.iframeName_,id:G.iframeName_});var c=G.JSC$11647_iframe_.style;c.visibility="hidden";c.width=c.height="10px";c.display="none";_.vC?c.marginTop=c.marginLeft="-10px":(c.position="absolute",c.top=c.left="-10px");zM(G.JSC$11647_form_).JSC$9495_document_.body.appendChild(G.JSC$11647_iframe_);
c=G.iframeName_+"_inner";var I=EM9(G.JSC$11647_iframe_);if(document.baseURI){var R=lm(c);R='<head><base href="'+lm(document.baseURI)+'"></head><body><iframe id="'+R+'" name="'+R+'"></iframe>';R=Gi(R)}else R=lm(c),R=Gi('<body><iframe id="'+R+'" name="'+R+'"></iframe>');I.write(cM(R));_.Ld(I.getElementById(c),"load",G.onIframeLoaded_,!1,G);R=pS("TEXTAREA",G.JSC$11647_form_);for(var Z=0,K=R.length;Z<K;Z++){var m=R[Z].value;rsK(R[Z])!=m&&(_.yz(R[Z],m),R[Z].value=m)}R=I.importNode(G.JSC$11647_form_,!0);
R.target=c;R.action=G.JSC$11647_form_.action;I.body.appendChild(R);Z=pS("SELECT",G.JSC$11647_form_);K=pS("SELECT",R);m=0;for(var a=Z.length;m<a;m++)for(var O=pS("OPTION",Z[m]),N=pS("OPTION",K[m]),q=0,w=O.length;q<w;q++)N[q].selected=O[q].selected;Z=pS("INPUT",G.JSC$11647_form_);K=pS("INPUT",R);m=0;for(a=Z.length;m<a;m++)if(Z[m].type=="file"&&Z[m].value!=K[m].value){G.JSC$11647_form_.target=c;R=G.JSC$11647_form_;break}try{G.errorHandled_=!1,R.submit(),I.close(),_.ny&&setTimeout(G.testForFirefoxSilentError_.bind(G),
250)}catch(F){_.BL(I.getElementById(c),"load",G.onIframeLoaded_,!1,G),I.close(),S7(G,2)}};
L$.prototype.onIframeLoaded_=function(){_.BL($n(this),"load",this.onIframeLoaded_,!1,this);try{var G=this.JSC$11647_iframe_?EM9($n(this)):null;this.complete_=!0;this.JSC$11647_active_=!1;try{var c=G.body;this.lastContent_=c.textContent||c.innerText}catch(Z){var I=1}var R;I||typeof this.errorChecker_!="function"||(R=this.errorChecker_(G))&&(I=4);I?S7(this,I):(this.success_=!0,this.JSC$11647_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),utK(this))}catch(Z){S7(this,1)}};
var S7=function(G,c){G.errorHandled_||(G.success_=!1,G.JSC$11647_active_=!1,G.complete_=!0,G.JSC$11647_lastErrorCode_=c,G.dispatchEvent("complete"),G.dispatchEvent("error"),utK(G),G.errorHandled_=!0)},utK=function(G){bsN(G);
Uok(G);G.JSC$11647_form_=null;G.dispatchEvent("ready")},bsN=function(G){var c=G.JSC$11647_iframe_;
c&&(c.onreadystatechange=null,c.onload=null,c.onerror=null,G.iframesForDisposal_.push(c));G.iframeDisposalTimer_&&(clearTimeout(G.iframeDisposalTimer_),G.iframeDisposalTimer_=null);_.ny?G.iframeDisposalTimer_=setTimeout(G.disposeIframes_.bind(G),2E3):G.disposeIframes_();G.JSC$11647_iframe_=null;G.iframeName_=null};
L$.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var G=this.iframesForDisposal_.pop();_.ST(G)}};
var Uok=function(G){G.JSC$11647_form_&&G.JSC$11647_form_==AM&&_.d1(G.JSC$11647_form_)},$n=function(G){return G.JSC$11647_iframe_?EM9(G.JSC$11647_iframe_).getElementById(G.iframeName_+"_inner"):null};
L$.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11647_active_){var G=this.JSC$11647_iframe_?EM9($n(this)):null;G&&!j2r(G,"documentUri")?(_.BL($n(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?S7(this,3):S7(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.p$=function(G){return G=="\r"||G=="\n"||G==" "||G=="\t"};var k$V;_.Mn=function(G){this.errorMessage_=null;this.result_=[];this.JSC$11649_buffer_="";this.stack_=[];this.JSC$11649_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!G||!G.deliverMessageAsRawString)};
k$V={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};_.Mn.prototype.isInputValid=function(){return this.streamState_!=3};
_.Mn.prototype.done=function(){return this.streamState_===2};
var VQ=function(G,c,I){G.streamState_=3;G.errorMessage_="The stream is broken @"+G.JSC$11649_pos_+"/"+I+". With input:\n"+c;throw Error(G.errorMessage_);};
_.Mn.prototype.acceptsBinaryInput=function(){return!1};
_.Mn.prototype.parse=function(G){function c(){for(;F<G.length;)if(_.p$(G[F]))F++,K.JSC$11649_pos_++;else break;return F<N}
function I(){for(var U;;){U=G[F++];if(!U)break;K.JSC$11649_pos_++;switch(K.state_){case O.INIT:U==="{"?K.state_=O.OBJECT_OPEN:U==="["?K.state_=O.ARRAY_OPEN:_.p$(U)||VQ(K,G,F);continue;case O.KEY_START:case O.OBJECT_OPEN:if(_.p$(U))continue;if(K.state_===O.KEY_START)m.push(O.KEY_END);else if(U==="}"){Z("{}");K.state_=R();continue}else m.push(O.OBJECT_END);U==='"'?K.state_=O.STRING:VQ(K,G,F);continue;case O.KEY_END:case O.OBJECT_END:if(_.p$(U))continue;U===":"?(K.state_===O.OBJECT_END&&(m.push(O.OBJECT_END),
K.depth_++),K.state_=O.VALUE):U==="}"?(K.depth_--,Z(),K.state_=R()):U===","?(K.state_===O.OBJECT_END&&m.push(O.OBJECT_END),K.state_=O.KEY_START):VQ(K,G,F);continue;case O.ARRAY_OPEN:case O.VALUE:if(_.p$(U))continue;if(K.state_===O.ARRAY_OPEN)if(K.depth_++,K.state_=O.VALUE,U==="]"){K.depth_--;if(K.depth_===0){K.state_=O.ARRAY_END;return}Z("[]");K.state_=R();continue}else m.push(O.ARRAY_END);U==='"'?K.state_=O.STRING:U==="{"?K.state_=O.OBJECT_OPEN:U==="["?K.state_=O.ARRAY_OPEN:U==="t"?K.state_=O.TRUE1:
U==="f"?K.state_=O.FALSE1:U==="n"?K.state_=O.NULL1:U!=="-"&&("0123456789".indexOf(U)!==-1?K.state_=O.NUM_DIGIT:VQ(K,G,F));continue;case O.ARRAY_END:if(U===",")m.push(O.ARRAY_END),K.state_=O.VALUE,K.depth_===1&&(w=F);else if(U==="]"){K.depth_--;if(K.depth_===0)return;Z();K.state_=R()}else if(_.p$(U))continue;else VQ(K,G,F);continue;case O.STRING:var k=F;a:for(;;){for(;K.unicodeCount_>0;)if(U=G[F++],K.unicodeCount_===4?K.unicodeCount_=0:K.unicodeCount_++,!U)break a;if(U==='"'&&!K.slashed_){K.state_=
R();break}if(U==="\\"&&!K.slashed_&&(K.slashed_=!0,U=G[F++],!U))break;if(K.slashed_)if(K.slashed_=!1,U==="u"&&(K.unicodeCount_=1),U=G[F++])continue;else break;a.lastIndex=F;U=a.exec(G);if(!U){F=G.length+1;break}F=U.index+1;U=G[U.index];if(!U)break}K.JSC$11649_pos_+=F-k;continue;case O.TRUE1:if(!U)continue;U==="r"?K.state_=O.TRUE2:VQ(K,G,F);continue;case O.TRUE2:if(!U)continue;U==="u"?K.state_=O.TRUE3:VQ(K,G,F);continue;case O.TRUE3:if(!U)continue;U==="e"?K.state_=R():VQ(K,G,F);continue;case O.FALSE1:if(!U)continue;
U==="a"?K.state_=O.FALSE2:VQ(K,G,F);continue;case O.FALSE2:if(!U)continue;U==="l"?K.state_=O.FALSE3:VQ(K,G,F);continue;case O.FALSE3:if(!U)continue;U==="s"?K.state_=O.FALSE4:VQ(K,G,F);continue;case O.FALSE4:if(!U)continue;U==="e"?K.state_=R():VQ(K,G,F);continue;case O.NULL1:if(!U)continue;U==="u"?K.state_=O.NULL2:VQ(K,G,F);continue;case O.NULL2:if(!U)continue;U==="l"?K.state_=O.NULL3:VQ(K,G,F);continue;case O.NULL3:if(!U)continue;U==="l"?K.state_=R():VQ(K,G,F);continue;case O.NUM_DECIMAL_POINT:U===
"."?K.state_=O.NUM_DIGIT:VQ(K,G,F);continue;case O.NUM_DIGIT:if("0123456789.eE+-".indexOf(U)!==-1)continue;else F--,K.JSC$11649_pos_--,K.state_=R();continue;default:VQ(K,G,F)}}}
function R(){var U=m.pop();return U!=null?U:O.VALUE}
function Z(U){K.depth_>1||(U||(U=w===-1?K.JSC$11649_buffer_+G.substring(q,F):G.substring(w,F)),K.deliverMessageAsRawString_?K.result_.push(U):K.result_.push(JSON.parse(U)),w=F)}
for(var K=this,m=K.stack_,a=K.stringInputPattern_,O=k$V,N=G.length,q=0,w=-1,F=0;F<N;)switch(K.streamState_){case 3:return VQ(K,G,F),null;case 2:return c()&&VQ(K,G,F),null;case 0:if(c()){var n=G[F++];K.JSC$11649_pos_++;if(n==="["){K.streamState_=1;q=F;K.state_=O.ARRAY_OPEN;continue}else VQ(K,G,F)}return null;case 1:return I(),K.depth_===0&&K.state_==O.ARRAY_END?(K.streamState_=2,K.JSC$11649_buffer_=G.substring(F)):K.JSC$11649_buffer_=w===-1?K.JSC$11649_buffer_+G.substring(q):G.substring(w),K.result_.length>
0?(n=K.result_,K.result_=[],n):null}return null};_.eg(_.ui,BK);bi.prototype.getValue=function(){return this.JSC$11657_value_};
bi.prototype.clone=function(){return new bi(this.JSC$11657_key_,this.JSC$11657_value_)};var zW=function(G){this.nodes_=[];if(G)a:{if(G instanceof zW){var c=G.getKeys();G=G.getValues();if(this.getCount()<=0){for(var I=this.nodes_,R=0;R<c.length;R++)I.push(new bi(c[R],G[R]));break a}}else c=_.rx.getKeys(G),G=_.rx.getValues(G);for(I=0;I<c.length;I++)this.insert(c[I],G[I])}};
_.P=zW.prototype;_.P.insert=function(G,c){var I=this.nodes_;I.push(new bi(G,c));G=I.length-1;c=this.nodes_;for(I=c[G];G>0;){var R=G-1>>1;if(c[R].JSC$11657_key_>I.JSC$11657_key_)c[G]=c[R],G=R;else break}c[G]=I};
_.P.remove=function(){var G=this.nodes_,c=G.length,I=G[0];if(!(c<=0)){if(c==1)G.length=0;else{G[0]=G.pop();G=0;c=this.nodes_;for(var R=c.length,Z=c[G];G<R>>1;){var K=G*2+1,m=G*2+2;K=m<R&&c[m].JSC$11657_key_<c[K].JSC$11657_key_?m:K;if(c[K].JSC$11657_key_>Z.JSC$11657_key_)break;c[G]=c[K];G=K}c[G]=Z}return I.getValue()}};
_.P.peek=function(){var G=this.nodes_;if(G.length!=0)return G[0].getValue()};
_.P.getValues=function(){for(var G=this.nodes_,c=[],I=G.length,R=0;R<I;R++)c.push(G[R].getValue());return c};
_.P.getKeys=function(){for(var G=this.nodes_,c=[],I=G.length,R=0;R<I;R++)c.push(G[R].JSC$11657_key_);return c};
_.P.containsValue=function(G){return this.nodes_.some(function(c){return c.getValue()==G})};
_.P.containsKey=function(G){return this.nodes_.some(function(c){return c.JSC$11657_key_==G})};
_.P.clone=function(){return new zW(this)};
_.P.getCount=function(){return this.nodes_.length};
_.P.isEmpty=function(){return this.nodes_.length===0};
_.P.clear=function(){this.nodes_.length=0};_.EY=function(G,c){this.JSC$11663_map_={};this.JSC$11663_keys_=[];this.version_=this.size=0;var I=arguments.length;if(I>1){if(I%2)throw Error("ma");for(var R=0;R<I;R+=2)this.set(arguments[R],arguments[R+1])}else G&&this.addAll(G)};
_.P=_.EY.prototype;_.P.getCount=function(){return this.size};
_.P.getValues=function(){JM(this);for(var G=[],c=0;c<this.JSC$11663_keys_.length;c++)G.push(this.JSC$11663_map_[this.JSC$11663_keys_[c]]);return G};
_.P.getKeys=function(){JM(this);return this.JSC$11663_keys_.concat()};
_.P.containsKey=function(G){return this.has(G)};
_.P.has=function(G){return Wa(this.JSC$11663_map_,G)};
_.P.containsValue=function(G){for(var c=0;c<this.JSC$11663_keys_.length;c++){var I=this.JSC$11663_keys_[c];if(Wa(this.JSC$11663_map_,I)&&this.JSC$11663_map_[I]==G)return!0}return!1};
_.P.equals=function(G,c){if(this===G)return!0;if(this.size!=G.getCount())return!1;c=c||slK;JM(this);for(var I,R=0;I=this.JSC$11663_keys_[R];R++)if(!c(this.get(I),G.get(I)))return!1;return!0};
var slK=function(G,c){return G===c};
_.EY.prototype.isEmpty=function(){return this.size==0};
_.EY.prototype.clear=function(){this.JSC$11663_map_={};this.version_=this.size=this.JSC$11663_keys_.length=0};
_.EY.prototype.remove=function(G){return this.delete(G)};
_.EY.prototype.delete=function(G){return Wa(this.JSC$11663_map_,G)?(delete this.JSC$11663_map_[G],--this.size,this.version_++,this.JSC$11663_keys_.length>2*this.size&&JM(this),!0):!1};
var JM=function(G){if(G.size!=G.JSC$11663_keys_.length){for(var c=0,I=0;c<G.JSC$11663_keys_.length;){var R=G.JSC$11663_keys_[c];Wa(G.JSC$11663_map_,R)&&(G.JSC$11663_keys_[I++]=R);c++}G.JSC$11663_keys_.length=I}if(G.size!=G.JSC$11663_keys_.length){c={};for(R=I=0;I<G.JSC$11663_keys_.length;){var Z=G.JSC$11663_keys_[I];Wa(c,Z)||(G.JSC$11663_keys_[R++]=Z,c[Z]=1);I++}G.JSC$11663_keys_.length=R}};
_.P=_.EY.prototype;_.P.get=function(G,c){return Wa(this.JSC$11663_map_,G)?this.JSC$11663_map_[G]:c};
_.P.set=function(G,c){Wa(this.JSC$11663_map_,G)||(this.size+=1,this.JSC$11663_keys_.push(G),this.version_++);this.JSC$11663_map_[G]=c};
_.P.addAll=function(G){if(G instanceof _.EY)for(var c=G.getKeys(),I=0;I<c.length;I++)this.set(c[I],G.get(c[I]));else for(c in G)this.set(c,G[c])};
_.P.forEach=function(G,c){for(var I=this.getKeys(),R=0;R<I.length;R++){var Z=I[R],K=this.get(Z);G.call(c,K,Z,this)}};
_.P.clone=function(){return new _.EY(this)};
_.P.transpose=function(){for(var G=new _.EY,c=0;c<this.JSC$11663_keys_.length;c++){var I=this.JSC$11663_keys_[c];G.set(this.JSC$11663_map_[I],I)}return G};
_.P.keys=function(){return x2K(this.__iterator__(!0)).toEs6()};
_.P.values=function(){return x2K(this.__iterator__(!1)).toEs6()};
_.P.entries=function(){var G=this;return mxB(this.keys(),function(c){return[c,G.get(c)]})};
_.P.__iterator__=function(G){JM(this);var c=0,I=this.version_,R=this,Z=new sh;Z.next=function(){if(I!=R.version_)throw Error("ue");if(c>=R.JSC$11663_keys_.length)return Lu;var K=R.JSC$11663_keys_[c++];return A4(G?K:R.JSC$11663_map_[K])};
return Z};
var Wa=function(G,c){return Object.prototype.hasOwnProperty.call(G,c)};var Aqp=function(){this.JSC$11666_map_=new _.EY;this.JSC$11666_head_=new LLK("");this.JSC$11666_head_.next=this.JSC$11666_head_.prev=this.JSC$11666_head_},$oN=function(G,c){if(c=G.JSC$11666_map_.get(c))c.remove(),G.insert_(c);
return c};
_.P=Aqp.prototype;_.P.get=function(G,c){return(G=$oN(this,G))?G.value:c};
_.P.set=function(G,c){var I=$oN(this,G);I?I.value=c:(I=new LLK(G,c),this.JSC$11666_map_.set(G,I),this.insert_(I))};
_.P.peek=function(){return this.JSC$11666_head_.next.value};
_.P.shift=function(){return SgK(this,this.JSC$11666_head_.next)};
_.P.pop=function(){return SgK(this,this.JSC$11666_head_.prev)};
_.P.remove=function(G){return(G=this.JSC$11666_map_.get(G))?(this.removeNode(G),!0):!1};
_.P.removeNode=function(G){G.remove();this.JSC$11666_map_.remove(G.key)};
_.P.getCount=function(){return this.JSC$11666_map_.getCount()};
_.P.isEmpty=function(){return this.JSC$11666_map_.isEmpty()};
_.P.getKeys=function(){return this.map(function(G,c){return c})};
_.P.getValues=function(){return this.map(function(G){return G})};
_.P.contains=function(G){return this.some(function(c){return c==G})};
_.P.containsKey=function(G){return this.JSC$11666_map_.containsKey(G)};
_.P.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11666_head_.prev)};
_.P.forEach=function(G,c){for(var I=this.JSC$11666_head_.next;I!=this.JSC$11666_head_;I=I.next)G.call(c,I.value,I.key,this)};
_.P.map=function(G,c){for(var I=[],R=this.JSC$11666_head_.next;R!=this.JSC$11666_head_;R=R.next)I.push(G.call(c,R.value,R.key,this));return I};
_.P.some=function(G,c){for(var I=this.JSC$11666_head_.next;I!=this.JSC$11666_head_;I=I.next)if(G.call(c,I.value,I.key,this))return!0;return!1};
_.P.every=function(G,c){for(var I=this.JSC$11666_head_.next;I!=this.JSC$11666_head_;I=I.next)if(!G.call(c,I.value,I.key,this))return!1;return!0};
_.P.insert_=function(G){G.next=this.JSC$11666_head_.next;G.prev=this.JSC$11666_head_;this.JSC$11666_head_.next=G;for(G.next.prev=G;this.getCount()>100;)this.removeNode(this.JSC$11666_head_.prev)};
var SgK=function(G,c){G.JSC$11666_head_!=c&&G.removeNode(c);return c.value},LLK=function(G,c){this.key=G;
this.value=c};
LLK.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var pmT=function(){zW.apply(this,arguments)};
_.u(pmT,zW);pmT.prototype.enqueue=function(G,c){this.insert(G,c)};var Mh0=function(){var G=Error();G.name="SecurityError";throw G;},SlC=function(){return{get opener(){return null},
get closed(){return!0},get location(){Mh0()},get document(){Mh0()},postMessage:function(){},
close:function(){},
focus:function(){}}};var bmB={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 LUb={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 Vhi={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(LUb).join("|");var zki=function(){function G(a){a.substr(-1)!==";"&&(a+=";");return m(a)}
for(var c=Object.keys(Vhi).sort(sbb),I=Object.keys(LUb).sort(sbb),R=0,Z=0;R<I.length;R++)c[Z]===I[R]?(I[R]+=";?",Z++):I[R]+=";";var K=new RegExp("&(?:"+I.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),m=A5T();return function(a){return String(a).replace(K,G)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var EP0={};var Jq0=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"),WLe=/[\\&]/,is0=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),f2B=RegExp('[&<>"]',"g"),B8k=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),rq0=function(G){return G.charCodeAt(0)===92?G.charAt(1):zki(G)},jlN=function(G){return WLe.test(G)?G.replace(is0,rq0):G},xoA=function(G){try{var c,I="";
if(typeof Z!=="string"){var R=Z;var Z=";/?:@&=+$,-_.!~*'()#"}typeof R==="undefined"&&(R=!0);var K,m=EP0[Z];if(m)var a=m;else{m=EP0[Z]=[];for(K=0;K<128;K++){var O=String.fromCharCode(K);/^[0-9a-z]$/i.test(O)?m.push(O):m.push("%"+("0"+K.toString(16).toUpperCase()).slice(-2))}for(K=0;K<Z.length;K++)m[Z.charCodeAt(K)]=Z[K];a=m}var N=0;for(c=G.length;N<c;N++){var q=G.charCodeAt(N);if(R&&q===37&&N+2<c&&/^[0-9a-f]{2}$/i.test(G.slice(N+1,N+3)))I+=G.slice(N,N+3),N+=2;else if(q<128)I+=a[q];else if(q>=55296&&
q<=57343){if(q>=55296&&q<=56319&&N+1<c){var w=G.charCodeAt(N+1);if(w>=56320&&w<=57343){I+=encodeURIComponent(G[N]+G[N+1]);N++;continue}}I+="%EF%BF%BD"}else I+=encodeURIComponent(G[N])}return I}catch(F){return G}},th9=function(G){switch(G){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return G}},i9=function(G,c){return f2B.test(G)?c?G.replace(B8k,th9):G.replace(f2B,th9):G};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var f$;if(String.fromCodePoint)f$=function(G){try{return String.fromCodePoint(G)}catch(c){if(c instanceof RangeError)return String.fromCharCode(65533);throw c;}};
else{var hkK=String.fromCharCode,doV=Math.floor;f$=function(){var G=[],c=-1,I=arguments.length;if(!I)return"";for(var R="";++c<I;){var Z=Number(arguments[c]);if(!isFinite(Z)||Z<0||Z>1114111||doV(Z)!==Z)return String.fromCharCode(65533);if(Z<=65535)G.push(Z);else{Z-=65536;var K=(Z>>10)+55296;Z=Z%1024+56320;G.push(K,Z)}if(c+1===I||G.length>16384)R+=hkK.apply(null,G),G.length=0}return R}};var CPK=function(G){this.root=this.current=G;this.entering=!0};
CPK.prototype.next=function(){var G=this.current,c=this.entering;if(G===null)return null;a:switch(G._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var I=!0;break a;default:I=!1}c&&I?G._firstChild?(this.current=G._firstChild,this.entering=!0):this.entering=!1:G===this.root?this.current=null:G._next===null?(this.current=
G._parent,this.entering=!1):(this.current=G._next,this.entering=!0);return{entering:c,node:G}};
var A8=function(G,c){this._type=G;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=c;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};
A8.prototype.appendChild=function(G){G.unlink();G._parent=this;this._lastChild?(this._lastChild._next=G,G._prev=this._lastChild):this._firstChild=G;this._lastChild=G};
A8.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var HsT=function(G,c){c.unlink();c._next=G._next;c._next&&(c._next._prev=c);c._prev=G;G._next=c;c._parent=G._parent;c._next||(c._parent._lastChild=c)};
A8.prototype.insertBefore=function(G){G.unlink();G._prev=this._prev;G._prev&&(G._prev._next=G);G._next=this;this._prev=G;G._parent=this._parent;G._prev||(G._parent._firstChild=G)};
_.Nh.Object.defineProperties(A8.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(G){this._literal=G}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(G){this._destination=G}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(G){this._title=G}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(G){this._info=G}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(G){this._level=G}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(G){this._listData.type=G}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(G){this._listData.tight=G}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(G){this._listData.start=G}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(G){this._onEnter=G}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(G){this._onExit=G}}});var $08=/[ \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,
SFi={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 XmN=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]/),
yqp=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),gP2=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),YgB=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),GF0=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),cAi=/`+/,IoV=/^`+/,RUe=/\.\.\./g,ZMB=/--+/g,KGN=/^<([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])?)*)>/,
PJ9=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Qwk=/^ *(?:\n *)?/,mBV=/^[ \t\n\x0b\x0c\x0d]/,aoi=/[ \t\n\x0b\x0c\x0d]+/g,TGT=/^\s/,OMB=/ *$/,eUi=/^ */,NGK=/^ *(?:\n|$)/,loB=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),q_K=/^[^\n`\[\]\\!<&*_'"]+/m,rw=function(G){var c=new A8("text");c._literal=G;return c},j7=function(G){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=G||{}};
j7.prototype.match=function(G){G=G.exec(this.subject.slice(this.pos));if(G===null)return null;this.pos+=G.index+G[0].length;return G[0]};
j7.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var xn=function(G){G.match(Qwk);return!0},wei=function(G,c,I){var R=0;
var Z=G.pos;if(c===39||c===34)R++,G.pos++;else for(;G.peek()===c;)R++,G.pos++;if(R===0)R=null;else{var K=Z===0?"\n":G.subject.charAt(Z-1);var m=G.peek();m=m===-1?"\n":f$(m);var a=TGT.test(m);m=XmN.test(m);var O=TGT.test(K);var N=XmN.test(K);K=!a&&!(m&&!O&&!N);a=!O&&!(N&&!a&&!m);c===95?(O=K&&(!a||N),m=a&&(!K||m)):(O=c===39||c===34?K&&!a:K,m=a);G.pos=Z;R={numdelims:R,can_open:O,can_close:m}}if(!R)return!1;Z=R.numdelims;m=G.pos;G.pos+=Z;m=c===39?"\u2019":c===34?"\u201c":G.subject.slice(m,G.pos);m=rw(m);
I.appendChild(m);G.delimiters={cc:c,numdelims:Z,origdelims:Z,node:m,previous:G.delimiters,next:null,can_open:R.can_open,can_close:R.can_close};G.delimiters.previous!==null&&(G.delimiters.previous.next=G.delimiters);return!0},FG2=function(G,c){c.previous!==null&&(c.previous.next=c.next);
c.next===null?G.delimiters=c.previous:c.next.previous=c.previous},nX0=function(G,c){var I,R,Z=[],K=!1;
Z[95]=c;Z[42]=c;Z[39]=c;Z[34]=c;for(I=G.delimiters;I!==null&&I.previous!==c;)I=I.previous;for(;I!==null;){var m=I.cc;if(I.can_close){var a=I.previous;for(R=!1;a!==null&&a!==c&&a!==Z[m];){K=(I.can_open||a.can_close)&&(a.origdelims+I.origdelims)%3===0;if(a.cc===I.cc&&a.can_open&&!K){R=!0;break}a=a.previous}var O=I;if(m===42||m===95)if(R){var N=I.numdelims>=2&&a.numdelims>=2?2:1;var q=a.node;var w=I.node;a.numdelims-=N;I.numdelims-=N;q._literal=q._literal.slice(0,q._literal.length-N);w._literal=w._literal.slice(0,
w._literal.length-N);var F=new A8(N===1?"emph":"strong");for(N=q._next;N&&N!==w;){var n=N._next;N.unlink();F.appendChild(N);N=n}HsT(q,F);N=a;n=I;N.next!==n&&(N.next=n,n.previous=N);a.numdelims===0&&(q.unlink(),FG2(G,a));I.numdelims===0&&(w.unlink(),a=I.next,FG2(G,I),I=a)}else I=I.next;else m===39?(I.node._literal="\u2019",R&&(a.node._literal="\u2018"),I=I.next):m===34&&(I.node._literal="\u201d",R&&(a.node.literal="\u201c"),I=I.next);R||K||(Z[m]=O.previous,O.can_open||FG2(G,O))}else I=I.next}for(;G.delimiters!==
null&&G.delimiters!==c;)FG2(G,G.delimiters)},vXB=function(G){G=G.match(yqp);
return G===null?null:jlN(G.substr(1,G.length-2))},DBk=function(G){var c=G.match(gP2);
if(c===null){c=G.pos;for(var I=0,R;(R=G.peek())!==-1;)if(R===92)G.pos+=1,G.peek()!==-1&&(G.pos+=1);else if(R===40)G.pos+=1,I+=1;else if(R===41)if(I<1)break;else G.pos+=1,--I;else if(mBV.exec(f$(R))!==null)break;else G.pos+=1;c=G.subject.substr(c,G.pos-c);return xoA(jlN(c))}return xoA(jlN(c.substr(1,c.length-2)))},oXT=function(G){G=G.match(loB);
return G===null||G.length>1001?0:G.length},UBV=function(G,c,I,R){G.brackets!==null&&(G.brackets.bracketAfter=!0);
G.brackets={node:c,previous:G.brackets,previousDelimiter:G.delimiters,index:I,image:R,active:!0}},u0N=function(G,c){var I;
return(I=G.match(q_K))?(G.options.smart?c.appendChild(rw(I.replace(RUe,"\u2026").replace(ZMB,function(R){var Z=0,K=0;R.length%3===0?K=R.length/3:R.length%2===0?Z=R.length/2:R.length%3===2?(Z=1,K=(R.length-2)/3):(Z=2,K=(R.length-4)/3);R="";var m;for(m=0;m<K;m++)R+="\u2014";for(m=0;m<Z;m++)R+="\u2013";return R}))):c.appendChild(rw(I)),!0):!1},bMe=function(G,c,I){G.subject=c;
G.pos=0;c=G.pos;var R=oXT(G);if(R===0)return 0;var Z=G.subject.substr(0,R);if(G.peek()===58)G.pos++;else return G.pos=c,0;xn(G);R=DBk(G);if(R===null||R.length===0)return G.pos=c,0;var K=G.pos;xn(G);var m=vXB(G);m===null&&(m="",G.pos=K);var a=!0;G.match(NGK)===null&&(m===""?a=!1:(m="",G.pos=K,a=G.match(NGK)!==null));if(!a)return G.pos=c,0;Z=p7p(Z);if(Z==="")return G.pos=c,0;I[Z]||(I[Z]={destination:R,title:m});return G.pos-c},kFK=function(G,c){var I,R=G.peek();
if(R===-1)return!1;switch(R){case 10:G.pos+=1;if((I=c._lastChild)&&I.type==="text"&&I._literal[I._literal.length-1]===" "){var Z=I._literal[I._literal.length-2]===" ";I._literal=I._literal.replace(OMB,"");c.appendChild(new A8(Z?"linebreak":"softbreak"))}else c.appendChild(new A8("softbreak"));G.match(eUi);I=!0;break;case 92:I=G.subject;G.pos+=1;G.peek()===10?(G.pos+=1,I=new A8("linebreak"),c.appendChild(I)):YgB.test(I.charAt(G.pos))?(c.appendChild(rw(I.charAt(G.pos))),G.pos+=1):c.appendChild(rw("\\"));
I=!0;break;case 96:a:if(I=G.match(IoV),I===null)I=!1;else{Z=G.pos;for(var K;(K=G.match(cAi))!==null;)if(K===I){K=new A8("code");K._literal=G.subject.slice(Z,G.pos-I.length).trim().replace(aoi," ");c.appendChild(K);I=!0;break a}G.pos=Z;c.appendChild(rw(I));I=!0}break;case 42:case 95:I=wei(G,R,c);break;case 39:case 34:I=G.options.smart&&wei(G,R,c);break;case 91:I=G.pos;G.pos+=1;Z=rw("[");c.appendChild(Z);UBV(G,Z,I,!1);I=!0;break;case 33:I=G.pos;G.pos+=1;G.peek()===91?(G.pos+=1,Z=rw("!["),c.appendChild(Z),
UBV(G,Z,I+1,!0)):c.appendChild(rw("!"));I=!0;break;case 93:var m,a=!1,O;G.pos+=1;var N=G.pos;Z=G.brackets;if(Z===null)c.appendChild(rw("]"));else if(Z.active){I=Z.image;var q=G.pos;G.peek()===40&&(G.pos++,xn(G)&&(K=DBk(G))!==null&&xn(G)&&(mBV.test(G.subject.charAt(G.pos-1))&&(m=vXB(G)),1)&&xn(G)&&G.peek()===41?(G.pos+=1,a=!0):G.pos=q);if(!a){var w=G.pos,F=oXT(G);F>2?O=G.subject.slice(w,w+F):Z.bracketAfter||(O=G.subject.slice(Z.index,N));F===0&&(G.pos=q);O&&(O=G.refmap[p7p(O)])&&(K=O.destination,m=
O.title,a=!0)}if(a){N=new A8(I?"image":"link");N._destination=K;N._title=m||"";for(K=Z.node._next;K;)m=K._next,K.unlink(),N.appendChild(K),K=m;c.appendChild(N);nX0(G,Z.previousDelimiter);G.brackets=G.brackets.previous;Z.node.unlink();if(!I)for(Z=G.brackets;Z!==null;)Z.image||(Z.active=!1),Z=Z.previous}else G.brackets=G.brackets.previous,G.pos=N,c.appendChild(rw("]"))}else c.appendChild(rw("]")),G.brackets=G.brackets.previous;I=!0;break;case 60:(I=G.match(KGN))?(I=I.slice(1,I.length-1),Z=new A8("link"),
Z._destination=xoA("mailto:"+I),Z._title="",Z.appendChild(rw(I)),c.appendChild(Z),I=!0):(I=G.match(PJ9))?(I=I.slice(1,I.length-1),Z=new A8("link"),Z._destination=xoA(I),Z._title="",Z.appendChild(rw(I)),c.appendChild(Z),I=!0):I=!1;I||(I=G.match(Jq0),I===null?I=!1:(Z=new A8("html_inline"),Z._literal=I,c.appendChild(Z),I=!0));break;case 38:(I=G.match(GF0))?(c.appendChild(rw(zki(I))),I=!0):I=!1;break;default:I=u0N(G,c)}I||(G.pos+=1,c.appendChild(rw(f$(R))));return!0};
j7.prototype.parseInlines=function(G){this.subject=G._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;kFK(this,G););G._string_content=null;nX0(this,null)};
j7.prototype.parse=j7.prototype.parseInlines;var swk=[/./,/^<(?: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")],LGp=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],AAA=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,$Be=/^[#`~*+_=<>0-9-\|]|\|/,S_0=/[^ \t\f\v\r\n]/,pei=/^[*+-]/,MXA=/^(\d{1,9})([.)])/,VXK=/^#{1,6}(?:[ \t]+|$)/,zUT=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,EXT=/^(?:`{3,}|~{3,})(?= *$)/,JAK=/^(?:=+|-+)[ \t]*$/,WGe=/\r\n|\n|\r/,V1r=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,zdr=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,iM2={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(G,c){for(G=c._firstChild;G;){if(M18(G)&&G._next){c._listData.tight=!1;break}for(var I=G._firstChild;I;){if(M18(I)&&(G._next||I._next)){c._listData.tight=!1;break}I=I._next}G=G._next}},
canContain:function(G){return G==="item"},
acceptsLines:!1},block_quote:{continue:function(G){var c=G.currentLine;if(G.indented||s$(c,G.nextNonspace)!==62)return 1;tM(G);hM(G,1,!1);kd(s$(c,G.offset))&&hM(G,1,!0);return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},item:{continue:function(G,c){if(G.blank){if(c._firstChild==null)return 1;tM(G)}else if(G.indent>=c._listData.markerOffset+c._listData.padding)hM(G,c._listData.markerOffset+c._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(G){return G!=="item"&&!EqB(G)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(G,c){var I=G.currentLine,R=G.indent;if(c._isFenced){if((R=R<=3&&I.charAt(G.nextNonspace)===c._fenceChar&&I.slice(G.nextNonspace).match(EXT))&&R[0].length>=c._fenceLength)return G.finalize(c,G.lineNumber),2;for(c=c._fenceOffset;c>0&&kd(s$(I,G.offset));)hM(G,1,!0),c--}else if(R>=4)hM(G,4,!0);else if(G.blank)tM(G);else return 1;return 0},
finalize:function(G,c){if(c._isFenced){var I=c._string_content,R=I.indexOf("\n");G=I.slice(0,R);I=I.slice(R+1);c.info=jlN(G.trim());c._literal=I}else c._literal=c._string_content.replace(/(\n *)+$/,"\n");c._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(G,c){return!G.blank||c._htmlBlockType!==6&&c._htmlBlockType!==7?0:1},
finalize:function(G,c){c._literal=c._string_content.replace(/(\n *)+$/,"");c._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(G){return G.blank?1:0},
finalize:function(G,c){for(var I,R=!1;s$(c._string_content,0)===91&&(I=bMe(G.inlineParser,c._string_content,G.refmap));)c._string_content=c._string_content.slice(I),R=!0;R&&!S_0.test(c._string_content)&&c.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(G){return LF(G.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(G){return G=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(G,c){if(!c._rowIsDelimiter){G=c._isHeader?"th":"td";for(var I=c._parent._tableColumns,R=c._string_content,Z=0,K="",m,a=c._sourcepos[0][0];Z<R.length;){switch(R[Z]){case "|":m&&(m._string_content=K.trim(),K="",m=null,I--,I<=0&&(Z=R.length));break;default:if(!m){m=new A8(G,[[a,Z],[a,Z]]);var O=c._parent._columnAlignment,N=c._parent._tableColumns-I;O&&N<=O.length&&N>=0&&(m._alignment=O[N]);c.appendChild(m)}K+=R[Z];m._sourcepos[1][1]=Z}Z++}m&&(m._string_content=K.trim());c._string_content=
""}},
canContain:function(G){return G!=="row"},
acceptsLines:!1}},foe=[function(G){if(G.indented||s$(G.currentLine,G.nextNonspace)!==62)return 0;tM(G);hM(G,1,!1);kd(s$(G.currentLine,G.offset))&&hM(G,1,!0);dw(G);G.addChild("block_quote",G.nextNonspace);return 1},
function(G){var c;if(!G.indented&&(c=G.currentLine.slice(G.nextNonspace).match(VXK))){tM(G);hM(G,c[0].length,!1);dw(G);var I=G.addChild("heading",G.nextNonspace);I.level=c[0].trim().length;I._string_content=G.currentLine.slice(G.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");hM(G,G.currentLine.length-G.offset);return 2}return 0},
function(G){var c;if(!G.indented&&(c=G.currentLine.slice(G.nextNonspace).match(zUT))){var I=c[0].length;dw(G);var R=G.addChild("code_block",G.nextNonspace);R._isFenced=!0;R._fenceLength=I;R._fenceChar=c[0][0];R._fenceOffset=G.indent;tM(G);hM(G,I,!1);return 2}return 0},
function(G,c){if(!G.indented&&s$(G.currentLine,G.nextNonspace)===60){var I=G.currentLine.slice(G.nextNonspace),R;for(R=1;R<=7;R++)if(swk[R].test(I)&&(R<7||c.type!=="paragraph"))return dw(G),G.addChild("html_block",G.offset)._htmlBlockType=R,2}return 0},
function(G,c){var I;if(!G.indented&&c.type==="paragraph"&&(I=G.currentLine.slice(G.nextNonspace).match(JAK))){dw(G);var R=new A8("heading",c.sourcepos);R.level=I[0][0]==="="?1:2;R._string_content=c._string_content;HsT(c,R);c.unlink();G.tip=R;hM(G,G.currentLine.length-G.offset,!1);return 2}return 0},
function(G){return!G.indented&&AAA.test(G.currentLine.slice(G.nextNonspace))?(dw(G),G.addChild("thematic_break",G.nextNonspace),hM(G,G.currentLine.length-G.offset,!1),2):0},
function(G,c){var I,R;if(!(R=G.indented&&c.type!=="list")){a:{var Z=c,K=G.currentLine.slice(G.nextNonspace);R={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:G.indent};if(I=K.match(pei))R.type="bullet",R.bulletChar=I[0][0];else{if(!(I=K.match(MXA))||Z.type==="paragraph"&&I[1]!=="1"){I=null;break a}R.type="ordered";R.start=parseInt(I[1],10);R.delimiter=I[2]}var m=s$(G.currentLine,G.nextNonspace+I[0].length);if(m!==-1&&m!==9&&m!==32||Z.type==="paragraph"&&!G.currentLine.slice(G.nextNonspace+
I[0].length).match(S_0))I=null;else{tM(G);hM(G,I[0].length,!0);Z=G.column;K=G.offset;do hM(G,1,!0),m=s$(G.currentLine,G.offset);while(G.column-Z<5&&kd(m));m=s$(G.currentLine,G.offset)===-1;var a=G.column-Z;a>=5||a<1||m?(R.padding=I[0].length+1,G.column=Z,G.offset=K,kd(s$(G.currentLine,G.offset))&&hM(G,1,!0)):R.padding=I[0].length+a;I=R}}R=!I}if(R)return 0;dw(G);(R=G.tip.type!=="list")||(c=c._listData,R=!(c.type===I.type&&c.delimiter===I.delimiter&&c.bulletChar===I.bulletChar));R&&(c=G.addChild("list",
G.nextNonspace),c._listData=I);c=G.addChild("item",G.nextNonspace);c._listData=I;return 1},
function(G){var c;return((c=G.options.shouldParseIndentAsCodeBlock)!=null?c:1)&&G.indented&&G.tip.type!=="paragraph"&&!G.blank?(hM(G,4,!0),dw(G),G.addChild("code_block",G.offset),2):0},
function(G,c){var I=LF(G.currentLine),R=LF(G.lookahead);if(I!==0&&R<0&&Math.abs(I)==Math.abs(R)&&!EqB(c.type)){dw(G);c=G.addChild("table",G.nextNonspace);c._tableRows=1;c._tableColumns=Math.abs(I);I=G.lookahead;if(zdr.test(I)){R=[];for(var Z=0,K=!1,m=0,a=void 0;Z<I.length;){var O=m>=3;switch(I[Z]){case "-":m++;break;case "|":K&&(R.push(a),a=void 0,m=0);K=!0;break;case ":":a||O||(a="left"),!a&&O&&(a="right"),a==="left"&&O&&(a="center")}Z++}I=R}else I=void 0;c._columnAlignment=I;c=G.addChild("row",
G.nextNonspace);c._isHeader=!0;hM(G,G.currentLine.length-G.offset,!1);c._string_content=G.currentLine;return 1}return 0},
function(G,c){if(c.type=="table"&&LF(G.currentLine)!==0){dw(G);var I=c;c=G.addChild("row",G.nextNonspace);LF(G.currentLine)<0?c._rowIsDelimiter=!0:I._tableRows+=1;hM(G,G.currentLine.length-G.offset,!1);c._string_content=G.currentLine;return 2}return 0}],sZT=function(){var G={shouldParseIndentAsCodeBlock:!1};
G=G===void 0?{}:G;this.lastMatchedContainer=this.doc=J58();this.refmap={};this.lastLineLength=0;this.inlineParser=new j7(G);this.options=G;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=iM2;this.blockStarts=foe},BG9=function(G){G.partiallyConsumedTab&&(G.offset+=1,G.tip._string_content+=" ".repeat(4-G.column%
4));
G.tip._string_content+=G.currentLine.slice(G.offset)+"\n"};
sZT.prototype.addChild=function(G,c){for(;!this.blocks[this.tip.type].canContain(G);)this.finalize(this.tip,this.lineNumber-1);G=new A8(G,[[this.lineNumber,c+1],[0,0]]);G._string_content="";this.tip.appendChild(G);return this.tip=G};
var dw=function(G){if(!G.allClosed){for(;G.oldtip!==G.lastMatchedContainer;){var c=G.oldtip._parent;G.finalize(G.oldtip,G.lineNumber-1);G.oldtip=c}G.allClosed=!0}},hM=function(G,c,I){for(var R=G.currentLine,Z,K;c>0&&(K=R[G.offset]);)K==="\t"?(Z=4-G.column%4,I?(G.partiallyConsumedTab=Z>c,Z=Z>c?c:Z,G.column+=Z,G.offset+=G.partiallyConsumedTab?0:1,c-=Z):(G.partiallyConsumedTab=!1,G.column+=Z,G.offset+=1,--c)):(G.partiallyConsumedTab=!1,G.offset+=1,G.column+=1,--c)},tM=function(G){G.offset=G.nextNonspace;
G.column=G.nextNonspaceColumn;G.partiallyConsumedTab=!1},rAV=function(G){for(var c=G.currentLine,I=G.offset,R=G.column,Z;(Z=c.charAt(I))!=="";)if(Z===" ")I++,R++;
else if(Z==="\t")I++,R+=4-R%4;else break;G.blank=Z==="\n"||Z==="\r"||Z==="";G.nextNonspace=I;G.nextNonspaceColumn=R;G.indent=G.nextNonspaceColumn-G.column;G.indented=G.indent>=4};
sZT.prototype.finalize=function(G,c){var I=G._parent;G._open=!1;G.sourcepos[1]=[c,this.lastLineLength];this.blocks[G.type].finalize(this,G);this.tip=I};
sZT.prototype.parse=function(G){this.tip=this.doc=J58();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!G)return this.doc;this.options.time&&console.time("preparing input");var c=G.split(WGe),I=c.length;G.charCodeAt(G.length-1)===10&&--I;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(G=0;G<I;G++)a:{var R=void 0,Z=c[G],K=c[G+1],m=!0,a=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Z.indexOf("\x00")!==-1&&(Z=Z.replace(/\0/g,"\ufffd"));this.currentLine=Z;for(this.lookahead=K;(R=a._lastChild)&&R._open;){a=R;rAV(this);switch(this.blocks[a.type].continue(this,a)){case 0:break;case 1:m=!1;break;case 2:this.lastLineLength=Z.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!m){a=a._parent;break}}this.allClosed=a===this.oldtip;this.lastMatchedContainer=
a;R=a.type!=="paragraph"&&iM2[a.type].acceptsLines;K=this.blockStarts;for(m=K.length;!R;){rAV(this);if(!this.indented&&!$Be.test(Z.slice(this.nextNonspace))){tM(this);break}for(var O=0;O<m;){var N=K[O](this,a);if(N===1){a=this.tip;break}else if(N===2){a=this.tip;R=!0;break}else O++}if(O===m){tM(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){dw(this);this.blank&&a.lastChild&&(a.lastChild._lastLineBlank=!0);R=a.type;K=this.blank&&!(R==="block_quote"||R==="code_block"&&a._isFenced||
R==="item"&&!a._firstChild&&a.sourcepos[0][0]===this.lineNumber);for(m=a;m;)m._lastLineBlank=K,m=m._parent;this.blocks[R].acceptsLines?(BG9(this),R==="html_block"&&a._htmlBlockType>=1&&a._htmlBlockType<=5&&LGp[a._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(a,this.lineNumber)):this.offset<Z.length&&!this.blank&&(this.addChild("paragraph",this.offset),tM(this),BG9(this))}else BG9(this);this.lastLineLength=Z.length}for(;this.tip;)this.finalize(this.tip,I);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Z=new CPK(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;I=Z.next();)c=I.node,G=c.type,I.entering||G!=="paragraph"&&G!=="heading"&&G!=="th"&&G!="td"||this.inlineParser.parse(c);this.options.time&&console.timeEnd("inline parsing");return this.doc};WUr.prototype.render=function(G){G=new CPK(G);var c;this.buffer="";for(this.lastOut="\n";c=G.next();){var I=c.node.type;if(this[I])this[I](c.node,c.entering)}return this.buffer};
WUr.prototype.out=function(G){C$(this,G)};
var C$=function(G,c){G.buffer+=c;G.lastOut=c};
WUr.prototype.cr=function(){this.lastOut!=="\n"&&C$(this,"\n")};var jwB=/^javascript:|vbscript:|file:|data:/i,xBT=/^data:image\/(?:png|gif|jpeg|webp)/i,tXi=function(G){return jwB.test(G)&&!xBT.test(G)};
$d.prototype=Object.create(WUr.prototype);_.P=$d.prototype;_.P.text=function(G){this.out(G.literal)};
_.P.html_inline=function(G){this.options.safe?C$(this,"\x3c!-- raw HTML omitted --\x3e"):C$(this,G.literal)};
_.P.html_block=function(G){this.cr();this.options.safe?C$(this,"\x3c!-- raw HTML omitted --\x3e"):C$(this,G.literal);this.cr()};
_.P.softbreak=function(){C$(this,this.options.softbreak)};
_.P.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.P.link=function(G,c){var I=this.attrs(G);c?(this.options.safe&&tXi(G.destination)||I.push(["href",i9(G.destination,!0)]),G.title&&I.push(["title",i9(G.title,!0)]),this.tag("a",I)):this.tag("/a")};
_.P.image=function(G,c){c?(this.disableTags===0&&(this.options.safe&&tXi(G.destination)?C$(this,'<img src="" alt="'):C$(this,'<img src="'+i9(G.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(G.title&&C$(this,'" title="'+i9(G.title,!0)),C$(this,'" />')))};
_.P.emph=function(G,c){this.tag(c?"em":"/em")};
_.P.strong=function(G,c){this.tag(c?"strong":"/strong")};
_.P.paragraph=function(G,c){var I=G.parent.parent;G=this.attrs(G);I!==null&&I.type==="list"&&I.listTight||(c?(this.cr(),this.tag("p",G)):(this.tag("/p"),this.cr()))};
_.P.heading=function(G,c){var I="h"+G.level;G=this.attrs(G);c?(this.cr(),this.tag(I,G)):(this.tag("/"+I),this.cr())};
_.P.code=function(G){this.tag("code");this.out(G.literal);this.tag("/code")};
_.P.code_block=function(G){var c=G.info?G.info.split(/\s+/):[],I=this.attrs(G);c.length>0&&c[0].length>0&&I.push(["class","language-"+i9(c[0],!0)]);this.cr();this.tag("pre");this.tag("code",I);this.out(G.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.P.thematic_break=function(G){G=this.attrs(G);this.cr();this.tag("hr",G,!0);this.cr()};
_.P.block_quote=function(G,c){G=this.attrs(G);c?(this.cr(),this.tag("blockquote",G)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.P.list=function(G,c){var I=G.listType==="bullet"?"ul":"ol",R=this.attrs(G);c?(G=G.listStart,G!==null&&G!==1&&R.push(["start",G.toString()]),this.cr(),this.tag(I,R)):(this.cr(),this.tag("/"+I));this.cr()};
_.P.item=function(G,c){G=this.attrs(G);c?this.tag("li",G):(this.tag("/li"),this.cr())};
_.P.custom_inline=function(G,c){c&&G.onEnter?C$(this,G.onEnter):!c&&G.onExit&&C$(this,G.onExit)};
_.P.custom_block=function(G,c){this.cr();c&&G.onEnter?C$(this,G.onEnter):!c&&G.onExit&&C$(this,G.onExit);this.cr()};
_.P.table=function(G,c){G=this.attrs(G);c?(this.cr(),this.tag("table",G)):(this.tag("/table"),this.cr())};
_.P.row=function(G,c){G._rowIsDelimiter||(G=this.attrs(G),c?this.tag("tr",G):this.tag("/tr"))};
_.P.td=function(G,c){var I=this.attrs(G);G._alignment&&I.push(["align",G._alignment]);c?this.tag("td",I):this.tag("/td")};
_.P.th=function(G,c){var I=this.attrs(G);G._alignment&&I.push(["align",G._alignment]);c?this.tag("th",I):this.tag("/th")};
_.P.out=function(G){C$(this,i9(G,!1))};
_.P.tag=function(G,c,I){if(!(this.disableTags>0)){this.buffer+="<"+G;if(c&&c.length>0){G=0;for(var R;(R=c[G])!==void 0;)this.buffer+=" "+R[0]+'="'+R[1]+'"',G++}I&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.P.attrs=function(G){var c=[];this.options.sourcepos&&(G=G.sourcepos)&&c.push(["data-sourcepos",String(G[0][0])+":"+String(G[0][1])+"-"+String(G[1][0])+":"+String(G[1][1])]);return c};
$d.prototype.text=$d.prototype.text;$d.prototype.html_inline=$d.prototype.html_inline;$d.prototype.html_block=$d.prototype.html_block;$d.prototype.softbreak=$d.prototype.softbreak;$d.prototype.linebreak=$d.prototype.linebreak;$d.prototype.link=$d.prototype.link;$d.prototype.image=$d.prototype.image;$d.prototype.emph=$d.prototype.emph;$d.prototype.strong=$d.prototype.strong;$d.prototype.paragraph=$d.prototype.paragraph;$d.prototype.heading=$d.prototype.heading;$d.prototype.code=$d.prototype.code;
$d.prototype.code_block=$d.prototype.code_block;$d.prototype.thematic_break=$d.prototype.thematic_break;$d.prototype.block_quote=$d.prototype.block_quote;$d.prototype.list=$d.prototype.list;$d.prototype.item=$d.prototype.item;$d.prototype.custom_inline=$d.prototype.custom_inline;$d.prototype.custom_block=$d.prototype.custom_block;$d.prototype.table=$d.prototype.table;$d.prototype.row=$d.prototype.row;$d.prototype.td=$d.prototype.td;$d.prototype.th=$d.prototype.th;$d.prototype.out=$d.prototype.out;
$d.prototype.tag=$d.prototype.tag;$d.prototype.attrs=$d.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 hUk,dBT,ngB;(function(){function G(V,S){return V<S?-1:V>S?1:V>=S?0:NaN}
function c(V){return function(S,f){return G(V(S),f)}}
function I(){for(var V=0,S=arguments.length,f={},Iq;V<S;++V){if(!(Iq=arguments[V]+"")||Iq in f)throw Error("we`"+Iq);f[Iq]=[]}return new R(f)}
function R(V){this._=V}
function Z(V,S){return V.trim().split(/^|\s+/).map(function(f){var Iq="",O0=f.indexOf(".");O0>=0&&(Iq=f.slice(O0+1),f=f.slice(0,O0));if(f&&!S.hasOwnProperty(f))throw Error("xe`"+f);return{type:f,name:Iq}})}
function K(V,S,f){for(var Iq=0,O0=V.length;Iq<O0;++Iq)if(V[Iq].name===S){V[Iq]=a1G;V=V.slice(0,Iq).concat(V.slice(Iq+1));break}f!=null&&V.push({name:S,value:f});return V}
function m(V){var S=V,f=S.indexOf(":");f>=0&&(S=V.slice(0,f))!=="xmlns"&&(V=V.slice(f+1));return aw.hasOwnProperty(S)?{space:aw[S],local:V}:V}
function a(V){return function(){var S=this.ownerDocument,f=this.namespaceURI;return f==="http://www.w3.org/1999/xhtml"&&S.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?S.createElement(V):S.createElementNS(f,V)}}
function O(V){return function(){return this.ownerDocument.createElementNS(V.space,V.local)}}
function N(V){V=m(V);return(V.local?O:a)(V)}
function q(){}
function w(V){return V==null?q:function(){return this.querySelector(V)}}
function F(V){return Array(V.length)}
function n(V,S){this.ownerDocument=V.ownerDocument;this.namespaceURI=V.namespaceURI;this._next=null;this._parent=V;this.__data__=S}
function U(V){return function(){return V}}
function k(V,S,f,Iq,O0,vr){for(var s0=0,VO,mA=S.length,Zp=vr.length;s0<Zp;++s0)(VO=S[s0])?(VO.__data__=vr[s0],Iq[s0]=VO):f[s0]=new n(V,vr[s0]);for(;s0<mA;++s0)if(VO=S[s0])O0[s0]=VO}
function p(V,S,f,Iq,O0,vr,s0){var VO,mA,Zp={},TV=S.length,nN=vr.length,XT=Array(TV),V$;for(VO=0;VO<TV;++VO)if(mA=S[VO])XT[VO]=V$="$"+s0.call(mA,mA.__data__,VO,S),V$ in Zp?O0[VO]=mA:Zp[V$]=mA;for(VO=0;VO<nN;++VO)V$="$"+s0.call(V,vr[VO],VO,vr),(mA=Zp[V$])?(Iq[VO]=mA,mA.__data__=vr[VO],Zp[V$]=null):f[VO]=new n(V,vr[VO]);for(VO=0;VO<TV;++VO)(mA=S[VO])&&Zp[XT[VO]]===mA&&(O0[VO]=mA)}
function M(V,S){return V<S?-1:V>S?1:V>=S?0:NaN}
function z(V){return function(){this.removeAttribute(V)}}
function t(V){return function(){this.removeAttributeNS(V.space,V.local)}}
function x(V,S){return function(){this.setAttribute(V,S)}}
function C(V,S){return function(){this.setAttributeNS(V.space,V.local,S)}}
function H(V,S){return function(){var f=S.apply(this,arguments);f==null?this.removeAttribute(V):this.setAttribute(V,f)}}
function g(V,S){return function(){var f=S.apply(this,arguments);f==null?this.removeAttributeNS(V.space,V.local):this.setAttributeNS(V.space,V.local,f)}}
function QO(V){return function(){this.style.removeProperty(V)}}
function T8(V,S,f){return function(){this.style.setProperty(V,S,f)}}
function kp(V,S,f){return function(){var Iq=S.apply(this,arguments);Iq==null?this.style.removeProperty(V):this.style.setProperty(V,Iq,f)}}
function FB(V,S){return V.style.getPropertyValue(S)||(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView).getComputedStyle(V,null).getPropertyValue(S)}
function oq(V){return function(){delete this[V]}}
function Wr(V,S){return function(){this[V]=S}}
function iT(V,S){return function(){var f=S.apply(this,arguments);f==null?delete this[V]:this[V]=f}}
function z8(){this.textContent=""}
function GV(V){return function(){this.textContent=V}}
function ei(V){return function(){var S=V.apply(this,arguments);this.textContent=S==null?"":S}}
function Hr(){this.innerHTML=""}
function v0(V){return function(){this.innerHTML=V}}
function kK(V){return function(){var S=V.apply(this,arguments);this.innerHTML=S==null?"":S}}
function pN(){return null}
function bH(){var V=this.parentNode;V&&V.removeChild(this)}
function n1(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function qf(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function hU(V,S,f){V=we(V,S,f);return function(Iq){var O0=Iq.relatedTarget;O0&&(O0===this||O0.compareDocumentPosition(this)&8)||V.call(this,Iq)}}
function we(V,S,f){return function(){V.call(this,this.__data__,S,f)}}
function xK(V){return V.trim().split(/^|\s+/).map(function(S){var f="",Iq=S.indexOf(".");Iq>=0&&(f=S.slice(Iq+1),S=S.slice(0,Iq));return{type:S,name:f}})}
function UK(V){return function(){var S=this.__on;if(S){for(var f=0,Iq=-1,O0=S.length,vr;f<O0;++f)(vr=S[f],V.type&&vr.type!==V.type||vr.name!==V.name)?S[++Iq]=vr:this.removeEventListener(vr.type,vr.listener,vr.capture);++Iq?S.length=Iq:delete this.__on}}}
function YK(V,S,f){var Iq=vek.hasOwnProperty(V.type)?hU:we;return function(O0,vr,s0){O0=this.__on;var VO;vr=Iq(S,vr,s0);if(O0){s0=0;for(var mA=O0.length;s0<mA;++s0)if((VO=O0[s0]).type===V.type&&VO.name===V.name){this.removeEventListener(VO.type,VO.listener,VO.capture);this.addEventListener(VO.type,VO.listener=vr,VO.capture=f);VO.value=S;return}}this.addEventListener(V.type,vr,f);VO={type:V.type,name:V.name,value:S,listener:vr,capture:f};O0?O0.push(VO):this.__on=[VO]}}
function en(V,S,f){var Iq=V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView,O0=Iq.CustomEvent;typeof O0==="function"?O0=new O0(S,f):(O0=Iq.document.createEvent("Event"),f?(O0.initEvent(S,f.bubbles,f.cancelable),O0.detail=f.detail):O0.initEvent(S,!1,!1));V.dispatchEvent(O0)}
function de(V,S){return function(){return en(this,V,S)}}
function qk(V,S){return function(){return en(this,V,S.apply(this,arguments))}}
function FT(V,S){this._groups=V;this._parents=S}
function ZW(){return new FT([[document.documentElement]],TEF)}
function yO(){this._="@"+(++ObW).toString(36)}
function Iu(V,S,f){V.prototype=S.prototype=f;f.constructor=V}
function wS(V,S){V=Object.create(V.prototype);for(var f in S)V[f]=S[f];return V}
function IR(){}
function vu(V){var S;V=(V+"").trim().toLowerCase();return(S=e4d.exec(V))?(S=parseInt(S[1],16),new L1(S>>8&15|S>>4&240,S>>4&15|S&240,(S&15)<<4|S&15,1)):(S=NE7.exec(V))?xF(parseInt(S[1],16)):(S=l1F.exec(V))?new L1(S[1],S[2],S[3],1):(S=qy$.exec(V))?new L1(S[1]*255/100,S[2]*255/100,S[3]*255/100,1):(S=whG.exec(V))?eT(S[1],S[2],S[3],S[4]):(S=F2u.exec(V))?eT(S[1]*255/100,S[2]*255/100,S[3]*255/100,S[4]):(S=nyd.exec(V))?CS(S[1],S[2]/100,S[3]/100,1):(S=vy0.exec(V))?CS(S[1],S[2]/100,S[3]/100,S[4]):DIp.hasOwnProperty(V)?
xF(DIp[V]):V==="transparent"?new L1(NaN,NaN,NaN,0):null}
function xF(V){return new L1(V>>16&255,V>>8&255,V&255,1)}
function eT(V,S,f,Iq){Iq<=0&&(V=S=f=NaN);return new L1(V,S,f,Iq)}
function v6(V){V instanceof IR||(V=vu(V));if(!V)return new L1;V=V.rgb();return new L1(V.r,V.g,V.b,V.opacity)}
function he(V,S,f,Iq){return arguments.length===1?v6(V):new L1(V,S,f,Iq==null?1:Iq)}
function L1(V,S,f,Iq){this.r=+V;this.g=+S;this.b=+f;this.opacity=+Iq}
function Q$(V){V=Math.max(0,Math.min(255,Math.round(V)||0));return(V<16?"0":"")+V.toString(16)}
function CS(V,S,f,Iq){Iq<=0?V=S=f=NaN:f<=0||f>=1?V=S=NaN:S<=0&&(V=NaN);return new Ee(V,S,f,Iq)}
function L8(V){if(V instanceof Ee)return new Ee(V.h,V.s,V.l,V.opacity);V instanceof IR||(V=vu(V));if(!V)return new Ee;if(V instanceof Ee)return V;V=V.rgb();var S=V.r/255,f=V.g/255,Iq=V.b/255,O0=Math.min(S,f,Iq),vr=Math.max(S,f,Iq),s0=NaN,VO=vr-O0,mA=(vr+O0)/2;VO?(s0=S===vr?(f-Iq)/VO+(f<Iq)*6:f===vr?(Iq-S)/VO+2:(S-f)/VO+4,VO/=mA<.5?vr+O0:2-vr-O0,s0*=60):VO=mA>0&&mA<1?0:s0;return new Ee(s0,VO,mA,V.opacity)}
function MS(V,S,f,Iq){return arguments.length===1?L8(V):new Ee(V,S,f,Iq==null?1:Iq)}
function Ee(V,S,f,Iq){this.h=+V;this.s=+S;this.l=+f;this.opacity=+Iq}
function P6(V,S,f){return(V<60?S+(f-S)*V/60:V<180?f:V<240?S+(f-S)*(240-V)/60:S)*255}
function wL(V){if(V instanceof AU)return new AU(V.l,V.a,V.b,V.opacity);if(V instanceof $K){if(isNaN(V.h))return new AU(V.l,0,0,V.opacity);var S=V.h*oeN;return new AU(V.l,Math.cos(S)*V.c,Math.sin(S)*V.c,V.opacity)}V instanceof L1||(V=v6(V));var f=uH(V.r),Iq=uH(V.g),O0=uH(V.b);S=Br(.2225045*f+.7168786*Iq+.0606169*O0);if(f===Iq&&Iq===O0)var vr=f=S;else vr=Br((.4360747*f+.3850649*Iq+.1430804*O0)/.96422),f=Br((.0139322*f+.0971045*Iq+.7141733*O0)/.82521);return new AU(116*S-16,500*(vr-S),200*(S-f),V.opacity)}
function AU(V,S,f,Iq){this.l=+V;this.a=+S;this.b=+f;this.opacity=+Iq}
function Br(V){return V>DFH?Math.pow(V,1/3):V/UI0+uKe}
function CA(V){return V>Wf?V*V*V:UI0*(V-uKe)}
function u2(V){return 255*(V<=.0031308?12.92*V:1.055*Math.pow(V,1/2.4)-.055)}
function uH(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}
function ET(V){if(V instanceof $K)return new $K(V.h,V.c,V.l,V.opacity);V instanceof AU||(V=wL(V));if(V.a===0&&V.b===0)return new $K(NaN,0,V.l,V.opacity);var S=Math.atan2(V.b,V.a)*bii;return new $K(S<0?S+360:S,Math.sqrt(V.a*V.a+V.b*V.b),V.l,V.opacity)}
function Mg(V,S,f,Iq){return arguments.length===1?ET(V):new $K(V,S,f,Iq==null?1:Iq)}
function $K(V,S,f,Iq){this.h=+V;this.c=+S;this.l=+f;this.opacity=+Iq}
function sK(V,S,f,Iq){if(arguments.length===1){var O0=V;if(O0 instanceof d7)O0=new d7(O0.h,O0.s,O0.l,O0.opacity);else{O0 instanceof L1||(O0=v6(O0));var vr=O0.g/255,s0=O0.b/255,VO=(klV*s0+O0.r/255*-1.7884503806-3.5172982438*vr)/(klV+-1.7884503806-3.5172982438);s0-=VO;var mA=(1.97294*(vr-VO)- -.29227*s0)/-.90649;s0=(vr=Math.sqrt(mA*mA+s0*s0)/(1.97294*VO*(1-VO)))?Math.atan2(mA,s0)*bii-120:NaN;O0=new d7(s0<0?s0+360:s0,vr,VO,O0.opacity)}}else O0=new d7(V,S,f,Iq==null?1:Iq);return O0}
function d7(V,S,f,Iq){this.h=+V;this.s=+S;this.l=+f;this.opacity=+Iq}
function xN(V,S,f,Iq,O0){var vr=V*V,s0=vr*V;return((1-3*V+3*vr-s0)*S+(4-6*vr+3*s0)*f+(1+3*V+3*vr-3*s0)*Iq+s0*O0)/6}
function Dp(V){return function(){return V}}
function gx(V,S){return function(f){return V+f*S}}
function D$(V,S,f){return V=Math.pow(V,f),S=Math.pow(S,f)-V,f=1/f,function(Iq){return Math.pow(V+Iq*S,f)}}
function tz(V,S){var f=S-V;return f?gx(V,f>180||f<-180?f-360*Math.round(f/360):f):Dp(isNaN(V)?S:V)}
function Xq(V){return(V=+V)===1?Zq:function(S,f){return f-S?D$(S,f,V):Dp(isNaN(S)?f:S)}}
function Zq(V,S){var f=S-V;return f?gx(V,f):Dp(isNaN(V)?S:V)}
function U$(V){return function(S){var f=S.length,Iq=Array(f),O0=Array(f),vr=Array(f),s0;for(s0=0;s0<f;++s0){var VO=he(S[s0]);Iq[s0]=VO.r||0;O0[s0]=VO.g||0;vr[s0]=VO.b||0}Iq=V(Iq);O0=V(O0);vr=V(vr);VO.opacity=1;return function(mA){VO.r=Iq(mA);VO.g=O0(mA);VO.b=vr(mA);return VO+""}}}
function ie(V,S){return V=+V,S-=V,function(f){return V+S*f}}
function lD(V){return function(){return V}}
function bM(V){return function(S){return V(S)+""}}
function rn(V,S){var f=Aug.lastIndex=$_C.lastIndex=0,Iq,O0,vr,s0=-1,VO=[],mA=[];V+="";for(S+="";(Iq=Aug.exec(V))&&(O0=$_C.exec(S));)(vr=O0.index)>f&&(vr=S.slice(f,vr),VO[s0]?VO[s0]+=vr:VO[++s0]=vr),(Iq=Iq[0])===(O0=O0[0])?VO[s0]?VO[s0]+=O0:VO[++s0]=O0:(VO[++s0]=null,mA.push({i:s0,x:ie(Iq,O0)})),f=$_C.lastIndex;f<S.length&&(vr=S.slice(f),VO[s0]?VO[s0]+=vr:VO[++s0]=vr);return VO.length<2?mA[0]?bM(mA[0].x):lD(S):(S=mA.length,function(Zp){for(var TV=0,nN;TV<S;++TV)VO[(nN=mA[TV]).i]=nN.x(Zp);return VO.join("")})}
function $y(V,S,f,Iq,O0,vr){var s0,VO,mA;if(s0=Math.sqrt(V*V+S*S))V/=s0,S/=s0;if(mA=V*f+S*Iq)f-=V*mA,Iq-=S*mA;if(VO=Math.sqrt(f*f+Iq*Iq))f/=VO,Iq/=VO,mA/=VO;V*Iq<S*f&&(V=-V,S=-S,mA=-mA,s0=-s0);return{translateX:O0,translateY:vr,rotate:Math.atan2(S,V)*svK,skewX:Math.atan(mA)*svK,scaleX:s0,scaleY:VO}}
function nC(V,S,f,Iq){function O0(Zp){return Zp.length?Zp.pop()+" ":""}
function vr(Zp,TV,nN,XT,V$,u5){Zp!==nN||TV!==XT?(V$=V$.push("translate(",null,S,null,f),u5.push({i:V$-4,x:ie(Zp,nN)},{i:V$-2,x:ie(TV,XT)})):(nN||XT)&&V$.push("translate("+nN+S+XT+f)}
function s0(Zp,TV,nN,XT){Zp!==TV?(Zp-TV>180?TV+=360:TV-Zp>180&&(Zp+=360),XT.push({i:nN.push(O0(nN)+"rotate(",null,Iq)-2,x:ie(Zp,TV)})):TV&&nN.push(O0(nN)+"rotate("+TV+Iq)}
function VO(Zp,TV,nN,XT){Zp!==TV?XT.push({i:nN.push(O0(nN)+"skewX(",null,Iq)-2,x:ie(Zp,TV)}):TV&&nN.push(O0(nN)+"skewX("+TV+Iq)}
function mA(Zp,TV,nN,XT,V$,u5){Zp!==nN||TV!==XT?(V$=V$.push(O0(V$)+"scale(",null,",",null,")"),u5.push({i:V$-4,x:ie(Zp,nN)},{i:V$-2,x:ie(TV,XT)})):nN===1&&XT===1||V$.push(O0(V$)+"scale("+nN+","+XT+")")}
return function(Zp,TV){var nN=[],XT=[];Zp=V(Zp);TV=V(TV);vr(Zp.translateX,Zp.translateY,TV.translateX,TV.translateY,nN,XT);s0(Zp.rotate,TV.rotate,nN,XT);VO(Zp.skewX,TV.skewX,nN,XT);mA(Zp.scaleX,Zp.scaleY,TV.scaleX,TV.scaleY,nN,XT);Zp=TV=null;return function(V$){for(var u5=-1,h_=XT.length,Sn;++u5<h_;)nN[(Sn=XT[u5]).i]=Sn.x(V$);return nN.join("")}}}
function ia(V){return function(S,f){var Iq=V((S=MS(S)).h,(f=MS(f)).h),O0=Zq(S.s,f.s),vr=Zq(S.l,f.l),s0=Zq(S.opacity,f.opacity);return function(VO){S.h=Iq(VO);S.s=O0(VO);S.l=vr(VO);S.opacity=s0(VO);return S+""}}}
function S4(V){return function(S,f){var Iq=V((S=Mg(S)).h,(f=Mg(f)).h),O0=Zq(S.c,f.c),vr=Zq(S.l,f.l),s0=Zq(S.opacity,f.opacity);return function(VO){S.h=Iq(VO);S.c=O0(VO);S.l=vr(VO);S.opacity=s0(VO);return S+""}}}
function Et(V){return function Iq(f){function O0(vr,s0){var VO=V((vr=sK(vr)).h,(s0=sK(s0)).h),mA=Zq(vr.s,s0.s),Zp=Zq(vr.l,s0.l),TV=Zq(vr.opacity,s0.opacity);return function(nN){vr.h=VO(nN);vr.s=mA(nN);vr.l=Zp(Math.pow(nN,f));vr.opacity=TV(nN);return vr+""}}
f=+f;O0.gamma=Iq;return O0}(1)}
function dB(){return Kg||(Lji(iZ),Kg=$l.now()+UqU)}
function iZ(){Kg=0}
function Cq(){this._call=this._time=this._next=null}
function pb(V,S,f){var Iq=new Cq;Iq.restart(V,S,f);return Iq}
function MF(){Kg=(udr=$l.now())+UqU;ic=SO=0;try{dB();++ic;for(var V=bYb,S;V;)(S=Kg-V._time)>=0&&V._call.call(null,S),V=V._next;--ic}finally{ic=0;V=bYb;for(var f=Infinity;V;)if(V._call){f>V._time&&(f=V._time);var Iq=V;V=V._next}else S=V._next,V._next=null,V=Iq?Iq._next=S:bYb=S;p6=Iq;rg(f);Kg=0}}
function vd(){var V=$l.now(),S=V-udr;S>1E3&&(UqU-=S,udr=V)}
function rg(V){ic||(SO&&(SO=clearTimeout(SO)),V-Kg>24?(V<Infinity&&(SO=setTimeout(MF,V-$l.now()-UqU)),MK&&(MK=clearInterval(MK))):(MK||(udr=$l.now(),MK=setInterval(vd,1E3)),ic=1,Lji(MF)))}
function Vd(V,S,f){var Iq=new Cq;S=S==null?0:+S;Iq.restart(function(O0){Iq.stop();V(O0+S)},S,f);
return Iq}
function I0(V,S,f,Iq,O0,vr){var s0=V.__transition;if(!s0)V.__transition={};else if(f in s0)return;xM(V,f,{name:S,index:Iq,group:O0,on:oyj,tween:UFj,time:vr.time,delay:vr.delay,duration:vr.duration,ease:vr.ease,timer:null,state:0})}
function ou(V,S){V=RR(V,S);if(V.state>0)throw Error("ye");return V}
function SG(V,S){V=RR(V,S);if(V.state>2)throw Error("ze");return V}
function RR(V,S){V=V.__transition;if(!V||!(V=V[S]))throw Error("Ae");return V}
function xM(V,S,f){function Iq(mA){var Zp,TV;if(f.state!==1)return vr();for(XT in s0){var nN=s0[XT];if(nN.name===f.name){if(nN.state===3)return Vd(Iq);nN.state===4?(nN.state=6,nN.timer.stop(),nN.on.call("interrupt",V,V.__data__,nN.index,nN.group),delete s0[XT]):+XT<S&&(nN.state=6,nN.timer.stop(),delete s0[XT])}}Vd(function(){f.state===3&&(f.state=4,f.timer.restart(O0,f.delay,f.time),O0(mA))});
f.state=2;f.on.call("start",V,V.__data__,f.index,f.group);if(f.state===2){f.state=3;VO=Array(TV=f.tween.length);var XT=0;for(Zp=-1;XT<TV;++XT)if(nN=f.tween[XT].value.call(V,V.__data__,f.index,f.group))VO[++Zp]=nN;VO.length=Zp+1}}
function O0(mA){mA=mA<f.duration?f.ease.call(null,mA/f.duration):(f.timer.restart(vr),f.state=5,1);for(var Zp=-1,TV=VO.length;++Zp<TV;)VO[Zp].call(null,mA);f.state===5&&(f.on.call("end",V,V.__data__,f.index,f.group),vr())}
function vr(){f.state=6;f.timer.stop();delete s0[S];for(var mA in s0)return;delete V.__transition}
var s0=V.__transition,VO;s0[S]=f;f.timer=pb(function(mA){f.state=1;f.timer.restart(Iq,f.delay,f.time);f.delay<=mA&&Iq(mA-f.delay)},0,f.time)}
function fS(V,S){var f,Iq;return function(){var O0=SG(this,V),vr=O0.tween;if(vr!==f){Iq=f=vr;vr=0;for(var s0=Iq.length;vr<s0;++vr)if(Iq[vr].name===S){Iq=Iq.slice();Iq.splice(vr,1);break}}O0.tween=Iq}}
function Gu(V,S,f){var Iq,O0;if(typeof f!=="function")throw Error();return function(){var vr=SG(this,V),s0=vr.tween;if(s0!==Iq){O0=(Iq=s0).slice();s0={name:S,value:f};for(var VO=0,mA=O0.length;VO<mA;++VO)if(O0[VO].name===S){O0[VO]=s0;break}VO===mA&&O0.push(s0)}vr.tween=O0}}
function Tf(V,S,f){var Iq=V._id;V.each(function(){var O0=SG(this,Iq);(O0.value||(O0.value={}))[S]=f.apply(this,arguments)});
return function(O0){return RR(O0,Iq).value[S]}}
function rm(V,S){var f;return(typeof S==="number"?ie:S instanceof vu?AJe:(f=vu(S))?(S=f,AJe):rn)(V,S)}
function uhj(V){return function(){this.removeAttribute(V)}}
function bbu(V){return function(){this.removeAttributeNS(V.space,V.local)}}
function kwd(V,S,f){var Iq,O0;return function(){var vr=this.getAttribute(V);return vr===f?null:vr===Iq?O0:O0=S(Iq=vr,f)}}
function sUW(V,S,f){var Iq,O0;return function(){var vr=this.getAttributeNS(V.space,V.local);return vr===f?null:vr===Iq?O0:O0=S(Iq=vr,f)}}
function L20(V,S,f){var Iq,O0,vr;return function(){var s0=f(this);if(s0==null)return void this.removeAttribute(V);var VO=this.getAttribute(V);return VO===s0?null:VO===Iq&&s0===O0?vr:vr=S(Iq=VO,O0=s0)}}
function Ap$(V,S,f){var Iq,O0,vr;return function(){var s0=f(this);if(s0==null)return void this.removeAttributeNS(V.space,V.local);var VO=this.getAttributeNS(V.space,V.local);return VO===s0?null:VO===Iq&&s0===O0?vr:vr=S(Iq=VO,O0=s0)}}
function $FF(V,S){function f(){var Iq=this,O0=S.apply(Iq,arguments);return O0&&function(vr){Iq.setAttributeNS(V.space,V.local,O0(vr))}}
f._value=S;return f}
function Sy7(V,S){function f(){var Iq=this,O0=S.apply(Iq,arguments);return O0&&function(vr){Iq.setAttribute(V,O0(vr))}}
f._value=S;return f}
function ph1(V,S){return function(){ou(this,V).delay=+S.apply(this,arguments)}}
function M4W(V,S){return S=+S,function(){ou(this,V).delay=S}}
function V4g(V,S){return function(){SG(this,V).duration=+S.apply(this,arguments)}}
function z4d(V,S){return S=+S,function(){SG(this,V).duration=S}}
function EyF(V,S){if(typeof S!=="function")throw Error();return function(){SG(this,V).ease=S}}
function JpG(V){return(V+"").trim().split(/^|\s+/).every(function(S){var f=S.indexOf(".");f>=0&&(S=S.slice(0,f));return!S||S==="start"})}
function W2d(V,S,f){var Iq,O0,vr=JpG(S)?ou:SG;return function(){var s0=vr(this,V),VO=s0.on;if(VO!==Iq)(O0=(Iq=VO).copy()).on(S,f);s0.on=O0}}
function ibG(V){return function(){var S=this.parentNode,f;for(f in this.__transition)if(+f!==V)return;S&&S.removeChild(this)}}
function f1W(V,S){var f,Iq,O0;return function(){var vr=FB(this,V),s0=(this.style.removeProperty(V),FB(this,V));return vr===s0?null:vr===f&&s0===Iq?O0:O0=S(f=vr,Iq=s0)}}
function BEr(V){return function(){this.style.removeProperty(V)}}
function rp1(V,S,f){var Iq,O0;return function(){var vr=FB(this,V);return vr===f?null:vr===Iq?O0:O0=S(Iq=vr,f)}}
function jUG(V,S,f){var Iq,O0,vr;return function(){var s0=FB(this,V),VO=f(this);VO==null&&(VO=(this.style.removeProperty(V),FB(this,V)));return s0===VO?null:s0===Iq&&VO===O0?vr:vr=S(Iq=s0,O0=VO)}}
function xFH(V,S,f){function Iq(){var O0=this,vr=S.apply(O0,arguments);return vr&&function(s0){O0.style.setProperty(V,vr(s0),f)}}
Iq._value=S;return Iq}
function t40(V){return function(){this.textContent=V}}
function h4$(V){return function(){var S=V(this);this.textContent=S==null?"":S}}
function jP(V,S,f,Iq){this._groups=V;this._parents=S;this._name=f;this._id=Iq}
function SX0(V){return{type:V}}
function pTB(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function kPb(){}
function $I9(V,S){var f=new kPb;if(V instanceof kPb)V.each(function(s0,VO){f.set(VO,s0)});
else if(Array.isArray(V)){var Iq=-1,O0=V.length,vr;if(S==null)for(;++Iq<O0;)f.set(Iq,V[Iq]);else for(;++Iq<O0;)f.set(S(vr=V[Iq],Iq,V),vr)}else if(V)for(Iq in V)f.set(Iq,V[Iq]);return f}
function sDU(){}
function S6i(V){return function(S){for(var f={},Iq=0;Iq<V.length;Iq++)f[V[Iq]]=S[Iq]||"";return f}}
function dF$(V,S){var f=S6i(V);return function(Iq,O0){return S(f(Iq),O0,V)}}
function CE0(V){var S=Object.create(null),f=[];V.forEach(function(Iq){for(var O0 in Iq)O0 in S||f.push(S[O0]=O0)});
return f}
function p$i(V){function S(s0,VO){function mA(){if(u5)return MHr;if(h_)return h_=!1,MJk;var aD,Ys=nN,AH;if(s0.charCodeAt(Ys)===34){for(;nN++<TV&&s0.charCodeAt(nN)!==34||s0.charCodeAt(++nN)===34;);(aD=nN)>=TV?u5=!0:(AH=s0.charCodeAt(nN++))===10?h_=!0:AH===13&&(h_=!0,s0.charCodeAt(nN)===10&&++nN);return s0.slice(Ys+1,aD-1).replace(/""/g,'"')}for(;nN<TV;){if((AH=s0.charCodeAt(aD=nN++))===10)h_=!0;else if(AH===13)h_=!0,s0.charCodeAt(nN)===10&&++nN;else if(AH!==vr)continue;return s0.slice(Ys,aD)}return u5=
!0,s0.slice(Ys,TV)}
var Zp=[],TV=s0.length,nN=0,XT=0,V$,u5=TV<=0,h_=!1;s0.charCodeAt(TV-1)===10&&--TV;for(s0.charCodeAt(TV-1)===13&&--TV;(V$=mA())!==MHr;){for(var Sn=[];V$!==MJk&&V$!==MHr;)Sn.push(V$),V$=mA();VO&&(Sn=VO(Sn,XT++))==null||Zp.push(Sn)}return Zp}
function f(s0){return s0.map(Iq).join(V)}
function Iq(s0){return s0==null?"":O0.test(s0)?'"'+s0.replace(/"/g,'""')+'"':s0}
var O0=new RegExp('["'+V+"\n\r]"),vr=V.charCodeAt(0);return{parse:function(s0,VO){var mA,Zp;s0=S(s0,function(TV,nN){if(mA)return mA(TV,nN-1);Zp=TV;mA=VO?dF$(TV,VO):S6i(TV)});
s0.columns=Zp||[];return s0},
parseRows:S,format:function(s0,VO){VO==null&&(VO=CE0(s0));return[VO.map(Iq).join(V)].concat(s0.map(function(mA){return VO.map(function(Zp){return Iq(mA[Zp])}).join(V)})).join("\n")},
formatRows:function(s0){return s0.map(f).join("\n")}}}
function HbW(V){if(!V.ok)throw Error("Be`"+V.status+"`"+V.statusText);return V.text()}
function VJk(V){return function(S,f,Iq){arguments.length===2&&typeof f==="function"&&(Iq=f,f=void 0);return fetch(S,f).then(HbW).then(function(O0){return V(O0,Iq)})}}
function zze(V,S,f,Iq){if(isNaN(S)||isNaN(f))return V;var O0,vr=V._root;Iq={data:Iq};var s0=V._x0,VO=V._y0,mA=V._x1,Zp=V._y1,TV,nN,XT,V$,u5;if(!vr)return V._root=Iq,V;for(;vr.length;)if((XT=S>=(TV=(s0+mA)/2))?s0=TV:mA=TV,(V$=f>=(nN=(VO+Zp)/2))?VO=nN:Zp=nN,O0=vr,!(vr=vr[u5=V$<<1|XT]))return O0[u5]=Iq,V;var h_=+V._x.call(null,vr.data);var Sn=+V._y.call(null,vr.data);if(S===h_&&f===Sn)return Iq.next=vr,O0?O0[u5]=Iq:V._root=Iq,V;do O0=O0?O0[u5]=Array(4):V._root=Array(4),(XT=S>=(TV=(s0+mA)/2))?s0=TV:mA=
TV,(V$=f>=(nN=(VO+Zp)/2))?VO=nN:Zp=nN;while((u5=V$<<1|XT)===(XT=(Sn>=nN)<<1|h_>=TV));return O0[XT]=vr,O0[u5]=Iq,V}
function cB(V,S,f,Iq,O0){this.node=V;this.x0=S;this.y0=f;this.x1=Iq;this.y1=O0}
function XhW(V){return V[0]}
function ypr(V){return V[1]}
function VHT(V,S,f,Iq,O0,vr){this._x=V;this._y=S;this._x0=f;this._y0=Iq;this._x1=O0;this._y1=vr;this._root=void 0}
function Eee(V){for(var S={data:V.data},f=S;V=V.next;)f=f.next={data:V.data};return S}
function LXb(V,S){if((S=(V=S?V.toExponential(S-1):V.toExponential()).indexOf("e"))<0)return null;var f=V.slice(0,S);return[f.length>1?f[0]+f.slice(2):f,+V.slice(S+1)]}
function gyW(V){return V=LXb(Math.abs(V)),V?V[1]:NaN}
function Yyg(V,S){return function(f,Iq){for(var O0=f.length,vr=[],s0=0,VO=V[0],mA=0;O0>0&&VO>0;){mA+VO+1>Iq&&(VO=Math.max(1,Iq-mA));vr.push(f.substring(O0-=VO,O0+VO));if((mA+=VO+1)>Iq)break;VO=V[s0=(s0+1)%V.length]}return vr.reverse().join(S)}}
function GXG(V){return function(S){return S.replace(/[0-9]/g,function(f){return V[+f]})}}
function zTO(V){return new Ew8(V)}
function Ew8(V){if(!(S=cfu.exec(V)))throw Error("Ce`"+V);var S;this.fill=S[1]||" ";this.align=S[2]||">";this.sign=S[3]||"-";this.symbol=S[4]||"";this.zero=!!S[5];this.width=S[6]&&+S[6];this.comma=!!S[7];this.precision=S[8]&&+S[8].slice(1);this.trim=!!S[9];this.type=S[10]||""}
function JJp(V,S){S=LXb(V,S);if(!S)return V+"";V=S[0];S=S[1];return S<0?"0."+Array(-S).join("0")+V:V.length>S+1?V.slice(0,S+1)+"."+V.slice(S+1):V+Array(S-V.length+2).join("0")}
function Wj0(V){return V}
function ICj(V){function S(VO){function mA(gS){var sf=AH,C1=ON,UT,T6;if(Ys==="c")C1=G2(gS)+C1,gS="";else{gS=+gS;var Ed=gS<0;gS=G2(Math.abs(gS),Sn);if(aD){var cK=gS.length,Yt=1,TP=-1;a:for(;Yt<cK;++Yt)switch(gS[Yt]){case ".":TP=UT=Yt;break;case "0":TP===0&&(TP=Yt);UT=Yt;break;default:if(!+gS[Yt])break a;TP>0&&(TP=0)}gS=TP>0?gS.slice(0,TP)+gS.slice(UT+1):gS}Ed&&+gS===0&&(Ed=!1);sf=(Ed?nN==="("?nN:"-":nN==="-"||nN==="("?"":nN)+sf;C1=(Ys==="s"?ii2[8+f52/3]:"")+C1+(Ed&&nN==="("?")":"");if(Ue)for(Ed=-1,
UT=gS.length;++Ed<UT;)if(T6=gS.charCodeAt(Ed),48>T6||T6>57){C1=(T6===46?O0+gS.slice(Ed+1):gS.slice(Ed))+C1;gS=gS.slice(0,Ed);break}}h_&&!V$&&(gS=f(gS,Infinity));T6=sf.length+gS.length+C1.length;Ed=T6<u5?Array(u5-T6+1).join(Zp):"";h_&&V$&&(gS=f(Ed+gS,Ed.length?u5-C1.length:Infinity),Ed="");switch(TV){case "<":gS=sf+gS+C1+Ed;break;case "=":gS=sf+Ed+gS+C1;break;case "^":gS=Ed.slice(0,T6=Ed.length>>1)+sf+gS+C1+Ed.slice(T6);break;default:gS=Ed+sf+gS+C1}return vr(gS)}
VO=zTO(VO);var Zp=VO.fill,TV=VO.align,nN=VO.sign,XT=VO.symbol,V$=VO.zero,u5=VO.width,h_=VO.comma,Sn=VO.precision,aD=VO.trim,Ys=VO.type;Ys==="n"?(h_=!0,Ys="g"):BrT[Ys]||(Sn==null&&(Sn=12),aD=!0,Ys="g");if(V$||Zp==="0"&&TV==="=")V$=!0,Zp="0",TV="=";var AH=XT==="$"?Iq[0]:XT==="#"&&/[boxX]/.test(Ys)?"0"+Ys.toLowerCase():"",ON=XT==="$"?Iq[1]:/[%p]/.test(Ys)?s0:"",G2=BrT[Ys],Ue=/[defgprs%]/.test(Ys);Sn=Sn==null?6:/[gprs]/.test(Ys)?Math.max(1,Math.min(21,Sn)):Math.max(0,Math.min(20,Sn));mA.toString=function(){return VO+
""};
return mA}
var f=V.grouping&&V.thousands?Yyg(V.grouping,V.thousands):Wj0,Iq=V.currency,O0=V.decimal,vr=V.numerals?GXG(V.numerals):Wj0,s0=V.percent||"%";return{format:S,formatPrefix:function(VO,mA){var Zp=S((VO=zTO(VO),VO.type="f",VO));VO=Math.max(-8,Math.min(8,Math.floor(gyW(mA)/3)))*3;var TV=Math.pow(10,-VO),nN=ii2[8+VO/3];return function(XT){return Zp(TV*XT)+nN}}}}
function Ib(){this.reset()}
function rJV(V,S,f){var Iq=V.s=S+f,O0=Iq-S;V.t=S-(Iq-O0)+(f-O0)}
function Aap(V){return V>1?TF:V<-1?-TF:Math.asin(V)}
function REd(){}
function jv9(V){var S=V[0];V=V[1];var f=O_(V);return[f*O_(S),f*zv(S),zv(V)]}
function xI0(V,S){return[V[1]*S[2]-V[2]*S[1],V[2]*S[0]-V[0]*S[2],V[0]*S[1]-V[1]*S[0]]}
function tJA(V){var S=$qr(V[0]*V[0]+V[1]*V[1]+V[2]*V[2]);V[0]/=S;V[1]/=S;V[2]/=S}
function Z0d(){var V=[],S;return{point:function(f,Iq){S.push([f,Iq])},
lineStart:function(){V.push(S=[])},
lineEnd:REd,rejoin:function(){V.length>1&&V.push(V.pop().concat(V.shift()))},
result:function(){var f=V;V=[];S=null;return f}}}
function SpO(V,S,f,Iq){this.x=V;this.z=S;this.o=f;this.e=Iq;this.v=!1;this.n=this.p=null}
function KK1(V,S,f,Iq,O0){var vr=[],s0=[];V.forEach(function(nN){if(!((XT=nN.length-1)<=0)){var XT,V$=nN[0],u5=nN[XT],h_=V$;if(xr(h_[0]-u5[0])<1E-6&&xr(h_[1]-u5[1])<1E-6){O0.lineStart();for(VO=0;VO<XT;++VO)O0.point((V$=nN[VO])[0],V$[1]);O0.lineEnd()}else vr.push(XT=new SpO(V$,nN,null,!0)),s0.push(XT.o=new SpO(V$,null,XT,!1)),vr.push(XT=new SpO(u5,nN,null,!1)),s0.push(XT.o=new SpO(u5,null,XT,!0))}});
if(vr.length){s0.sort(S);hzB(vr);hzB(s0);var VO=0;for(V=s0.length;VO<V;++VO)s0[VO].e=f=!f;f=vr[0];for(var mA;;){for(var Zp=f,TV=!0;Zp.v;)if((Zp=Zp.n)===f)return;S=Zp.z;O0.lineStart();do{Zp.v=Zp.o.v=!0;if(Zp.e){if(TV)for(VO=0,V=S.length;VO<V;++VO)O0.point((mA=S[VO])[0],mA[1]);else Iq(Zp.x,Zp.n.x,1,O0);Zp=Zp.n}else{if(TV)for(S=Zp.p.z,VO=S.length-1;VO>=0;--VO)O0.point((mA=S[VO])[0],mA[1]);else Iq(Zp.x,Zp.p.x,-1,O0);Zp=Zp.p}Zp=Zp.o;S=Zp.z;TV=!TV}while(!Zp.v);O0.lineEnd()}}}
function hzB(V){if(S=V.length){for(var S,f=0,Iq=V[0],O0;++f<S;)Iq.n=O0=V[f],O0.p=Iq,Iq=O0;Iq.n=O0=V[0];O0.p=Iq}}
function Pku(V){return V.length>1}
function QXW(V,S){return((V=V.x)[0]<0?V[1]-TF-1E-6:TF-V[1])-((S=S.x)[0]<0?S[1]-TF-1E-6:TF-S[1])}
function JuT(){}
function dI2(V){return function(S,f){var Iq=O_(S),O0=O_(f);Iq=V(Iq*O0);return[Iq*O0*zv(S),Iq*zv(f)]}}
function zH(V){return function(S,f){var Iq=$qr(S*S+f*f),O0=V(Iq),vr=zv(O0);O0=O_(O0);return[CXT(S*vr,Iq*O0),Aap(Iq&&f*vr/Iq)]}}
function mZr(V){var S=0,f=V.children,Iq=f&&f.length;if(Iq)for(;--Iq>=0;)S+=f[Iq].value;else S=1;V.value=S}
function HiK(V,S){var f=new Ex(V);V=+V.value&&(f.value=V.value);var Iq,O0=[f],vr,s0,VO,mA;for(S==null&&(S=aC$);Iq=O0.pop();)if(V&&(Iq.value=+Iq.data.value),(s0=S(Iq.data))&&(mA=s0.length))for(Iq.children=Array(mA),VO=mA-1;VO>=0;--VO)O0.push(vr=Iq.children[VO]=new Ex(s0[VO])),vr.parent=Iq,vr.depth=Iq.depth+1;return f.eachBefore(TX0)}
function aC$(V){return V.children}
function O0d(V){V.data=V.data.data}
function TX0(V){var S=0;do V.height=S;while((V=V.parent)&&V.height<++S)}
function Ex(V){this.data=V;this.depth=this.height=0;this.parent=null}
function b6(V,S,f,Iq){function O0(vr){return V(vr=new Date(+vr)),vr}
O0.floor=O0;O0.ceil=function(vr){return V(vr=new Date(vr-1)),S(vr,1),V(vr),vr};
O0.round=function(vr){var s0=O0(vr),VO=O0.ceil(vr);return vr-s0<VO-vr?s0:VO};
O0.offset=function(vr,s0){return S(vr=new Date(+vr),s0==null?1:Math.floor(s0)),vr};
O0.range=function(vr,s0,VO){var mA=[],Zp;vr=O0.ceil(vr);VO=VO==null?1:Math.floor(VO);if(!(vr<s0&&VO>0))return mA;do mA.push(Zp=new Date(+vr)),S(vr,VO),V(vr);while(Zp<vr&&vr<s0);return mA};
O0.filter=function(vr){return b6(function(s0){if(s0>=s0)for(;V(s0),!vr(s0);)s0.setTime(s0-1)},function(s0,VO){if(s0>=s0)if(VO<0)for(;++VO<=0;)for(;S(s0,-1),!vr(s0););
else for(;--VO>=0;)for(;S(s0,1),!vr(s0););})};
f&&(O0.count=function(vr,s0){WOC.setTime(+vr);iIA.setTime(+s0);V(WOC);V(iIA);return Math.floor(f(WOC,iIA))},O0.every=function(vr){vr=Math.floor(vr);
return isFinite(vr)&&vr>0?vr>1?O0.filter(Iq?function(s0){return Iq(s0)%vr===0}:function(s0){return O0.count(0,s0)%vr===0}):O0:null});
return O0}
function PW(V){return b6(function(S){S.setDate(S.getDate()-(S.getDay()+7-V)%7);S.setHours(0,0,0,0)},function(S,f){S.setDate(S.getDate()+f*7)},function(S,f){return(f-S-(f.getTimezoneOffset()-S.getTimezoneOffset())*6E4)/6048E5})}
function Qi(V){return b6(function(S){S.setUTCDate(S.getUTCDate()-(S.getUTCDay()+7-V)%7);S.setUTCHours(0,0,0,0)},function(S,f){S.setUTCDate(S.getUTCDate()+f*7)},function(S,f){return(f-S)/6048E5})}
function eEg(V){if(0<=V.y&&V.y<100){var S=new Date(-1,V.m,V.d,V.H,V.M,V.S,V.L);S.setFullYear(V.y);return S}return new Date(V.y,V.m,V.d,V.H,V.M,V.S,V.L)}
function pNA(V){if(0<=V.y&&V.y<100){var S=new Date(Date.UTC(-1,V.m,V.d,V.H,V.M,V.S,V.L));S.setUTCFullYear(V.y);return S}return new Date(Date.UTC(V.y,V.m,V.d,V.H,V.M,V.S,V.L))}
function JV(V){return{y:V,m:0,d:1,H:0,M:0,S:0,L:0}}
function NXj(V){function S(C1,UT){return function(T6){var Ed=[],cK=-1,Yt=0,TP=C1.length,uW,Ba;for(T6 instanceof Date||(T6=new Date(+T6));++cK<TP;)if(C1.charCodeAt(cK)===37){Ed.push(C1.slice(Yt,cK));(Yt=X$K[uW=C1.charAt(++cK)])!=null?uW=C1.charAt(++cK):Yt=uW==="e"?" ":"0";if(Ba=UT[uW])uW=Ba(T6,Yt);Ed.push(uW);Yt=cK+1}Ed.push(C1.slice(Yt,cK));return Ed.join("")}}
function f(C1,UT){return function(T6){var Ed=JV(1900);if(Iq(Ed,C1,T6,0)!=T6.length)return null;if("Q"in Ed)return new Date(Ed.Q);"p"in Ed&&(Ed.H=Ed.H%12+Ed.p*12);if("V"in Ed){if(Ed.V<1||Ed.V>53)return null;"w"in Ed||(Ed.w=1);if("Z"in Ed){T6=pNA(JV(Ed.y));var cK=T6.getUTCDay();T6=cK>4||cK===0?fgr.ceil(T6):fgr(T6);T6=yJA.offset(T6,(Ed.V-1)*7);Ed.y=T6.getUTCFullYear();Ed.m=T6.getUTCMonth();Ed.d=T6.getUTCDate()+(Ed.w+6)%7}else T6=UT(JV(Ed.y)),cK=T6.getDay(),T6=cK>4||cK===0?BQ0.ceil(T6):BQ0(T6),T6=geT.offset(T6,
(Ed.V-1)*7),Ed.y=T6.getFullYear(),Ed.m=T6.getMonth(),Ed.d=T6.getDate()+(Ed.w+6)%7}else if("W"in Ed||"U"in Ed)"w"in Ed||(Ed.w="u"in Ed?Ed.u%7:"W"in Ed?1:0),cK="Z"in Ed?pNA(JV(Ed.y)).getUTCDay():UT(JV(Ed.y)).getDay(),Ed.m=0,Ed.d="W"in Ed?(Ed.w+6)%7+Ed.W*7-(cK+5)%7:Ed.w+Ed.U*7-(cK+6)%7;return"Z"in Ed?(Ed.H+=Ed.Z/100|0,Ed.M+=Ed.Z%100,pNA(Ed)):UT(Ed)}}
function Iq(C1,UT,T6,Ed){for(var cK=0,Yt=UT.length,TP=T6.length,uW;cK<Yt;){if(Ed>=TP)return-1;uW=UT.charCodeAt(cK++);if(uW===37){if(uW=UT.charAt(cK++),uW=sf[uW in X$K?UT.charAt(cK++):uW],!uW||(Ed=uW(C1,T6,Ed))<0)return-1}else if(uW!=T6.charCodeAt(Ed++))return-1}return Ed}
var O0=V.dateTime,vr=V.date,s0=V.time,VO=V.periods,mA=V.days,Zp=V.shortDays,TV=V.months,nN=V.shortMonths,XT=Wv(VO),V$=iw(VO),u5=Wv(mA),h_=iw(mA),Sn=Wv(Zp),aD=iw(Zp),Ys=Wv(TV),AH=iw(TV),ON=Wv(nN),G2=iw(nN),Ue={a:function(C1){return Zp[C1.getDay()]},
A:function(C1){return mA[C1.getDay()]},
b:function(C1){return nN[C1.getMonth()]},
B:function(C1){return TV[C1.getMonth()]},
c:null,d:Y6K,e:Y6K,f:lCG,H:qEH,I:wtr,j:FKu,L:Gwi,m:nvF,M:vvd,p:function(C1){return VO[+(C1.getHours()>=12)]},
Q:cpN,s:I1e,S:DZu,u:ov1,U:UZu,V:u_1,w:b0H,W:kXu,x:null,X:null,y:sXd,Y:LKG,Z:AfW,"%":R4k},gS={a:function(C1){return Zp[C1.getUTCDay()]},
A:function(C1){return mA[C1.getUTCDay()]},
b:function(C1){return nN[C1.getUTCMonth()]},
B:function(C1){return TV[C1.getUTCMonth()]},
c:null,d:ZbT,e:ZbT,f:$Z0,H:SEd,I:ptF,j:MS0,L:K2i,m:VSj,M:zEr,p:function(C1){return VO[+(C1.getUTCHours()>=12)]},
Q:cpN,s:I1e,S:Evu,u:Jfr,U:WKd,V:i0r,w:fCd,W:BX1,x:null,X:null,y:rfH,Y:jXu,Z:xZ$,"%":R4k},sf={a:function(C1,UT,T6){return(UT=Sn.exec(UT.slice(T6)))?(C1.w=aD[UT[0].toLowerCase()],T6+UT[0].length):-1},
A:function(C1,UT,T6){return(UT=u5.exec(UT.slice(T6)))?(C1.w=h_[UT[0].toLowerCase()],T6+UT[0].length):-1},
b:function(C1,UT,T6){return(UT=ON.exec(UT.slice(T6)))?(C1.m=G2[UT[0].toLowerCase()],T6+UT[0].length):-1},
B:function(C1,UT,T6){return(UT=Ys.exec(UT.slice(T6)))?(C1.m=AH[UT[0].toLowerCase()],T6+UT[0].length):-1},
c:function(C1,UT,T6){return Iq(C1,O0,UT,T6)},
d:PEN,e:PEN,f:tSF,H:QU0,I:QU0,j:hEW,L:dZW,m:CkH,M:H0d,p:function(C1,UT,T6){return(UT=XT.exec(UT.slice(T6)))?(C1.p=V$[UT[0].toLowerCase()],T6+UT[0].length):-1},
Q:XtG,s:yf1,S:gvd,u:YE$,U:GUW,V:cZW,w:Icd,W:RBr,x:function(C1,UT,T6){return Iq(C1,vr,UT,T6)},
X:function(C1,UT,T6){return Iq(C1,s0,UT,T6)},
y:Zg0,Y:Ky7,Z:PjG,"%":Q7F};Ue.x=S(vr,Ue);Ue.X=S(s0,Ue);Ue.c=S(O0,Ue);gS.x=S(vr,gS);gS.X=S(s0,gS);gS.c=S(O0,gS);return{format:function(C1){var UT=S(C1,Ue);UT.toString=function(){return C1};
return UT},
parse:function(C1){var UT=f(C1,eEg);UT.toString=function(){return C1};
return UT},
utcFormat:function(C1){var UT=S(C1,gS);UT.toString=function(){return C1};
return UT},
utcParse:function(C1){var UT=f(C1,pNA);UT.toString=function(){return C1};
return UT}}}
function kc(V,S,f){var Iq=V<0?"-":"";V=(Iq?-V:V)+"";var O0=V.length;return Iq+(O0<f?Array(f-O0+1).join(S)+V:V)}
function m6d(V){return V.replace(acu,"\\$&")}
function Wv(V){return new RegExp("^(?:"+V.map(m6d).join("|")+")","i")}
function iw(V){for(var S={},f=-1,Iq=V.length;++f<Iq;)S[V[f].toLowerCase()]=f;return S}
function Icd(V,S,f){return(S=$D.exec(S.slice(f,f+1)))?(V.w=+S[0],f+S[0].length):-1}
function YE$(V,S,f){return(S=$D.exec(S.slice(f,f+1)))?(V.u=+S[0],f+S[0].length):-1}
function GUW(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.U=+S[0],f+S[0].length):-1}
function cZW(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.V=+S[0],f+S[0].length):-1}
function RBr(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.W=+S[0],f+S[0].length):-1}
function Ky7(V,S,f){return(S=$D.exec(S.slice(f,f+4)))?(V.y=+S[0],f+S[0].length):-1}
function Zg0(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.y=+S[0]+(+S[0]>68?1900:2E3),f+S[0].length):-1}
function PjG(V,S,f){return(S=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(S.slice(f,f+6)))?(V.Z=S[1]?0:-(S[2]+(S[3]||"00")),f+S[0].length):-1}
function CkH(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.m=S[0]-1,f+S[0].length):-1}
function PEN(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.d=+S[0],f+S[0].length):-1}
function hEW(V,S,f){return(S=$D.exec(S.slice(f,f+3)))?(V.m=0,V.d=+S[0],f+S[0].length):-1}
function QU0(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.H=+S[0],f+S[0].length):-1}
function H0d(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.M=+S[0],f+S[0].length):-1}
function gvd(V,S,f){return(S=$D.exec(S.slice(f,f+2)))?(V.S=+S[0],f+S[0].length):-1}
function dZW(V,S,f){return(S=$D.exec(S.slice(f,f+3)))?(V.L=+S[0],f+S[0].length):-1}
function tSF(V,S,f){return(S=$D.exec(S.slice(f,f+6)))?(V.L=Math.floor(S[0]/1E3),f+S[0].length):-1}
function Q7F(V,S,f){return(V=TC7.exec(S.slice(f,f+1)))?f+V[0].length:-1}
function XtG(V,S,f){return(S=$D.exec(S.slice(f)))?(V.Q=+S[0],f+S[0].length):-1}
function yf1(V,S,f){return(S=$D.exec(S.slice(f)))?(V.Q=+S[0]*1E3,f+S[0].length):-1}
function Y6K(V,S){return kc(V.getDate(),S,2)}
function qEH(V,S){return kc(V.getHours(),S,2)}
function wtr(V,S){return kc(V.getHours()%12||12,S,2)}
function FKu(V,S){return kc(1+geT.count(fO(V),V),S,3)}
function Gwi(V,S){return kc(V.getMilliseconds(),S,3)}
function lCG(V,S){return Gwi(V,S)+"000"}
function nvF(V,S){return kc(V.getMonth()+1,S,2)}
function vvd(V,S){return kc(V.getMinutes(),S,2)}
function DZu(V,S){return kc(V.getSeconds(),S,2)}
function ov1(V){V=V.getDay();return V===0?7:V}
function UZu(V,S){return kc(OgF.count(fO(V),V),S,2)}
function u_1(V,S){var f=V.getDay();V=f>=4||f===0?ruf(V):ruf.ceil(V);return kc(ruf.count(fO(V),V)+(fO(V).getDay()===4),S,2)}
function b0H(V){return V.getDay()}
function kXu(V,S){return kc(BQ0.count(fO(V),V),S,2)}
function sXd(V,S){return kc(V.getFullYear()%100,S,2)}
function LKG(V,S){return kc(V.getFullYear()%1E4,S,4)}
function AfW(V){V=V.getTimezoneOffset();return(V>0?"-":(V*=-1,"+"))+kc(V/60|0,"0",2)+kc(V%60,"0",2)}
function ZbT(V,S){return kc(V.getUTCDate(),S,2)}
function SEd(V,S){return kc(V.getUTCHours(),S,2)}
function ptF(V,S){return kc(V.getUTCHours()%12||12,S,2)}
function MS0(V,S){return kc(1+yJA.count(Bf(V),V),S,3)}
function K2i(V,S){return kc(V.getUTCMilliseconds(),S,3)}
function $Z0(V,S){return K2i(V,S)+"000"}
function VSj(V,S){return kc(V.getUTCMonth()+1,S,2)}
function zEr(V,S){return kc(V.getUTCMinutes(),S,2)}
function Evu(V,S){return kc(V.getUTCSeconds(),S,2)}
function Jfr(V){V=V.getUTCDay();return V===0?7:V}
function WKd(V,S){return kc(eB1.count(Bf(V),V),S,2)}
function i0r(V,S){var f=V.getUTCDay();V=f>=4||f===0?jeT(V):jeT.ceil(V);return kc(jeT.count(Bf(V),V)+(Bf(V).getUTCDay()===4),S,2)}
function fCd(V){return V.getUTCDay()}
function BX1(V,S){return kc(fgr.count(Bf(V),V),S,2)}
function rfH(V,S){return kc(V.getUTCFullYear()%100,S,2)}
function jXu(V,S){return kc(V.getUTCFullYear()%1E4,S,4)}
function xZ$(){return"+0000"}
function R4k(){return"%"}
function cpN(V){return+V}
function I1e(V){return Math.floor(+V/1E3)}
function ly(V){for(var S=V.length/6|0,f=Array(S),Iq=0;Iq<S;)f[Iq]="#"+V.slice(Iq*6,++Iq*6);return f}
function Ia(V){return NC1(V[V.length-1])}
function MKO(V){var S=V.length;return function(f){return V[Math.max(0,Math.min(S-1,Math.floor(f*S)))]}}
function mFe(V){this._context=V}
function a1i(V){this._curve=V}
function TEK(V,S,f){var Iq=V._x1-V._x0;S-=V._x1;var O0=(V._y1-V._y0)/(Iq||S<0&&-0);V=(f-V._y1)/(S||Iq<0&&-0);return((O0<0?-1:1)+(V<0?-1:1))*Math.min(Math.abs(O0),Math.abs(V),.5*Math.abs((O0*S+V*Iq)/(Iq+S)))||0}
function Obp(V,S){var f=V._x1-V._x0;return f?(3*(V._y1-V._y0)/f-S)/2:S}
function x_q(V,S,f){var Iq=V._x0,O0=V._x1,vr=V._y1,s0=(O0-Iq)/3;V._context.bezierCurveTo(Iq+s0,V._y0+s0*S,O0-s0,vr-s0*f,O0,vr)}
function tHB(V){this._context=V}
function e4K(V){this._context=V}
function f6(V,S,f){this.k=V;this.x=S;this.y=f}
(function(V){V.length===1&&(V=c(V));return{left:function(S,f,Iq,O0){Iq==null&&(Iq=0);O0==null&&(O0=S.length);for(;Iq<O0;){var vr=Iq+O0>>>1;V(S[vr],f)<0?Iq=vr+1:O0=vr}return Iq},
right:function(S,f,Iq,O0){Iq==null&&(Iq=0);O0==null&&(O0=S.length);for(;Iq<O0;){var vr=Iq+O0>>>1;V(S[vr],f)>0?O0=vr:Iq=vr+1}return Iq}}})(G);
var a1G={value:function(){}};
R.prototype=I.prototype={constructor:R,on:function(V,S){var f=this._,Iq=Z(V+"",f),O0,vr=-1,s0=Iq.length;if(arguments.length<2)for(;++vr<s0;){var VO;if(VO=O0=(V=Iq[vr]).type){a:{VO=f[O0];for(var mA=0,Zp=VO.length;mA<Zp;++mA)if((O0=VO[mA]).name===V.name){O0=O0.value;break a}O0=void 0}VO=O0}if(VO)return O0}else{if(S!=null&&typeof S!=="function")throw Error("De`"+S);for(;++vr<s0;)if(O0=(V=Iq[vr]).type)f[O0]=K(f[O0],V.name,S);else if(S==null)for(O0 in f)f[O0]=K(f[O0],V.name,null);return this}},
copy:function(){var V={},S=this._,f;for(f in S)V[f]=S[f].slice();return new R(V)},
call:function(V,S){if((O0=arguments.length-2)>0)for(var f=Array(O0),Iq=0,O0,vr;Iq<O0;++Iq)f[Iq]=arguments[Iq+2];if(!this._.hasOwnProperty(V))throw Error("xe`"+V);vr=this._[V];Iq=0;for(O0=vr.length;Iq<O0;++Iq)vr[Iq].value.apply(S,f)},
apply:function(V,S,f){if(!this._.hasOwnProperty(V))throw Error("xe`"+V);V=this._[V];for(var Iq=0,O0=V.length;Iq<O0;++Iq)V[Iq].value.apply(S,f)}};
var aw={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/"},NEe=function(V){return function(){return this.matches(V)}};
if(typeof document!=="undefined"){var Bv=document.documentElement;if(!Bv.matches){var lc7=Bv.webkitMatchesSelector||Bv.msMatchesSelector||Bv.mozMatchesSelector||Bv.oMatchesSelector;NEe=function(V){return function(){return lc7.call(this,V)}}}}var l1K=NEe;
n.prototype={constructor:n,appendChild:function(V){return this._parent.insertBefore(V,this._next)},
insertBefore:function(V,S){return this._parent.insertBefore(V,S)},
querySelector:function(V){return this._parent.querySelector(V)},
querySelectorAll:function(V){return this._parent.querySelectorAll(V)}};
var vek={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(vek={mouseenter:"mouseover",mouseleave:"mouseout"}));var TEF=[null];FT.prototype=ZW.prototype={constructor:FT,select:function(V){typeof V!=="function"&&(V=w(V));for(var S=this._groups,f=S.length,Iq=Array(f),O0=0;O0<f;++O0)for(var vr=S[O0],s0=vr.length,VO=Iq[O0]=Array(s0),mA,Zp,TV=0;TV<s0;++TV)(mA=vr[TV])&&(Zp=V.call(mA,mA.__data__,TV,vr))&&("__data__"in mA&&(Zp.__data__=mA.__data__),VO[TV]=Zp);return new FT(Iq,
this._parents)},
filter:function(V){typeof V!=="function"&&(V=l1K(V));for(var S=this._groups,f=S.length,Iq=Array(f),O0=0;O0<f;++O0)for(var vr=S[O0],s0=vr.length,VO=Iq[O0]=[],mA,Zp=0;Zp<s0;++Zp)(mA=vr[Zp])&&V.call(mA,mA.__data__,Zp,vr)&&VO.push(mA);return new FT(Iq,this._parents)},
data:function(V,S){if(!V)return V$=Array(this.size()),Zp=-1,this.each(function(Ys){V$[++Zp]=Ys}),V$;
var f=S?p:k,Iq=this._parents,O0=this._groups;typeof V!=="function"&&(V=U(V));for(var vr=O0.length,s0=Array(vr),VO=Array(vr),mA=Array(vr),Zp=0;Zp<vr;++Zp){var TV=Iq[Zp],nN=O0[Zp],XT=nN.length,V$=V.call(TV,TV&&TV.__data__,Zp,Iq),u5=V$.length,h_=VO[Zp]=Array(u5),Sn=s0[Zp]=Array(u5);XT=mA[Zp]=Array(XT);f(TV,nN,h_,Sn,XT,V$,S);nN=TV=0;for(var aD;TV<u5;++TV)if(XT=h_[TV]){for(TV>=nN&&(nN=TV+1);!(aD=Sn[nN])&&++nN<u5;);XT._next=aD||null}}s0=new FT(s0,Iq);s0._enter=VO;s0._exit=mA;return s0},
enter:function(){return new FT(this._enter||this._groups.map(F),this._parents)},
exit:function(){return new FT(this._exit||this._groups.map(F),this._parents)},
merge:function(V){var S=this._groups;V=V._groups;for(var f=S.length,Iq=Math.min(f,V.length),O0=Array(f),vr=0;vr<Iq;++vr)for(var s0=S[vr],VO=V[vr],mA=s0.length,Zp=O0[vr]=Array(mA),TV,nN=0;nN<mA;++nN)if(TV=s0[nN]||VO[nN])Zp[nN]=TV;for(;vr<f;++vr)O0[vr]=S[vr];return new FT(O0,this._parents)},
order:function(){for(var V=this._groups,S=-1,f=V.length;++S<f;)for(var Iq=V[S],O0=Iq.length-1,vr=Iq[O0],s0;--O0>=0;)if(s0=Iq[O0])vr&&vr!==s0.nextSibling&&vr.parentNode.insertBefore(s0,vr),vr=s0;return this},
sort:function(V){function S(nN,XT){return nN&&XT?V(nN.__data__,XT.__data__):!nN-!XT}
V||(V=M);for(var f=this._groups,Iq=f.length,O0=Array(Iq),vr=0;vr<Iq;++vr){for(var s0=f[vr],VO=s0.length,mA=O0[vr]=Array(VO),Zp,TV=0;TV<VO;++TV)if(Zp=s0[TV])mA[TV]=Zp;mA.sort(S)}return(new FT(O0,this._parents)).order()},
call:function(){var V=arguments[0];arguments[0]=this;V.apply(null,arguments);return this},
nodes:function(){var V=Array(this.size()),S=-1;this.each(function(){V[++S]=this});
return V},
node:function(){for(var V=this._groups,S=0,f=V.length;S<f;++S)for(var Iq=V[S],O0=0,vr=Iq.length;O0<vr;++O0){var s0=Iq[O0];if(s0)return s0}return null},
size:function(){var V=0;this.each(function(){++V});
return V},
empty:function(){return!this.node()},
each:function(V){for(var S=this._groups,f=0,Iq=S.length;f<Iq;++f)for(var O0=S[f],vr=0,s0=O0.length,VO;vr<s0;++vr)(VO=O0[vr])&&V.call(VO,VO.__data__,vr,O0);return this},
attr:function(V,S){var f=m(V);if(arguments.length<2){var Iq=this.node();return f.local?Iq.getAttributeNS(f.space,f.local):Iq.getAttribute(f)}return this.each((S==null?f.local?t:z:typeof S==="function"?f.local?g:H:f.local?C:x)(f,S))},
style:function(V,S,f){return arguments.length>1?this.each((S==null?QO:typeof S==="function"?kp:T8)(V,S,f==null?"":f)):FB(this.node(),V)},
property:function(V,S){return arguments.length>1?this.each((S==null?oq:typeof S==="function"?iT:Wr)(V,S)):this.node()[V]},
text:function(V){return arguments.length?this.each(V==null?z8:(typeof V==="function"?ei:GV)(V)):this.node().textContent},
html:function(V){return arguments.length?this.each(V==null?Hr:(typeof V==="function"?kK:v0)(V)):this.node().innerHTML},
append:function(V){var S=typeof V==="function"?V:N(V);return this.select(function(){return this.appendChild(S.apply(this,arguments))})},
insert:function(V,S){var f=typeof V==="function"?V:N(V),Iq=S==null?pN:typeof S==="function"?S:w(S);return this.select(function(){return this.insertBefore(f.apply(this,arguments),Iq.apply(this,arguments)||null)})},
remove:function(){return this.each(bH)},
clone:function(V){return this.select(V?qf:n1)},
datum:function(V){return arguments.length?this.property("__data__",V):this.node().__data__},
on:function(V,S,f){var Iq=xK(V+""),O0=Iq.length,vr;if(arguments.length<2){var s0=this.node().__on;if(s0)for(var VO=0,mA=s0.length,Zp;VO<mA;++VO){var TV=0;for(Zp=s0[VO];TV<O0;++TV)if((vr=Iq[TV]).type===Zp.type&&vr.name===Zp.name)return Zp.value}}else{s0=S?YK:UK;f==null&&(f=!1);for(TV=0;TV<O0;++TV)this.each(s0(Iq[TV],S,f));return this}},
dispatch:function(V,S){return this.each((typeof S==="function"?qk:de)(V,S))}};
var ObW=0;yO.prototype=function(){return new yO}.prototype={constructor:yO,
get:function(V){for(var S=this._;!(S in V);)if(!(V=V.parentNode))return;return V[S]},
set:function(V,S){return V[this._]=S},
remove:function(V){return this._ in V&&delete V[this._]},
toString:function(){return this._}};
var rl=1/.7,e4d=/^#([0-9a-f]{3})$/,NE7=/^#([0-9a-f]{6})$/,l1F=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),qy$=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),whG=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),F2u=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*\\)$"),
nyd=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),vy0=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*\\)$"),DIp={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};
Iu(IR,vu,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Iu(L1,he,wS(IR,{brighter:function(V){V=V==null?rl:Math.pow(rl,V);return new L1(this.r*V,this.g*V,this.b*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new L1(this.r*V,this.g*V,this.b*V,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"#"+Q$(this.r)+Q$(this.g)+Q$(this.b)},
toString:function(){var V=this.opacity;V=isNaN(V)?1:Math.max(0,Math.min(1,V));return(V===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))+(V===1?")":", "+V+")")}}));
Iu(Ee,MS,wS(IR,{brighter:function(V){V=V==null?rl:Math.pow(rl,V);return new Ee(this.h,this.s,this.l*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new Ee(this.h,this.s,this.l*V,this.opacity)},
rgb:function(){var V=this.h%360+(this.h<0)*360,S=this.l,f=S+(S<.5?S:1-S)*(isNaN(V)||isNaN(this.s)?0:this.s);S=2*S-f;return new L1(P6(V>=240?V-240:V+120,S,f),P6(V,S,f),P6(V<120?V+240:V-120,S,f),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 oeN=Math.PI/180,bii=180/Math.PI,uKe=4/29,Wf=6/29,UI0=3*Wf*Wf,DFH=Wf*Wf*Wf;Iu(AU,function(V,S,f,Iq){return arguments.length===1?wL(V):new AU(V,S,f,Iq==null?1:Iq)},wS(IR,{brighter:function(V){return new AU(this.l+18*(V==null?1:V),this.a,this.b,this.opacity)},
darker:function(V){return new AU(this.l-18*(V==null?1:V),this.a,this.b,this.opacity)},
rgb:function(){var V=(this.l+16)/116,S=isNaN(this.a)?V:V+this.a/500,f=isNaN(this.b)?V:V-this.b/200;S=.96422*CA(S);V=1*CA(V);f=.82521*CA(f);return new L1(u2(3.1338561*S-1.6168667*V-.4906146*f),u2(-.9787684*S+1.9161415*V+.033454*f),u2(.0719453*S-.2289914*V+1.4052427*f),this.opacity)}}));
Iu($K,Mg,wS(IR,{brighter:function(V){return new $K(this.h,this.c,this.l+18*(V==null?1:V),this.opacity)},
darker:function(V){return new $K(this.h,this.c,this.l-18*(V==null?1:V),this.opacity)},
rgb:function(){return wL(this).rgb()}}));
var klV=1.78277*-.29227-.1347134789;Iu(d7,sK,wS(IR,{brighter:function(V){V=V==null?rl:Math.pow(rl,V);return new d7(this.h,this.s,this.l*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new d7(this.h,this.s,this.l*V,this.opacity)},
rgb:function(){var V=isNaN(this.h)?0:(this.h+120)*oeN,S=+this.l,f=isNaN(this.s)?0:this.s*S*(1-S),Iq=Math.cos(V);V=Math.sin(V);return new L1(255*(S+f*(-.14861*Iq+1.78277*V)),255*(S+f*(-.29227*Iq+-.90649*V)),255*(S+1.97294*Iq*f),this.opacity)}}));
var AJe=function f(S){function Iq(vr,s0){var VO=O0((vr=he(vr)).r,(s0=he(s0)).r),mA=O0(vr.g,s0.g),Zp=O0(vr.b,s0.b),TV=Zq(vr.opacity,s0.opacity);return function(nN){vr.r=VO(nN);vr.g=mA(nN);vr.b=Zp(nN);vr.opacity=TV(nN);return vr+""}}
var O0=Xq(S);Iq.gamma=f;return Iq}(1),NC1=U$(function(S){var f=S.length-1;
return function(Iq){var O0=Iq<=0?Iq=0:Iq>=1?(Iq=1,f-1):Math.floor(Iq*f),vr=S[O0],s0=S[O0+1];return xN((Iq-O0/f)*f,O0>0?S[O0-1]:2*vr-s0,vr,s0,O0<f-1?S[O0+2]:2*s0-vr)}});
U$(function(S){var f=S.length;return function(Iq){var O0=Math.floor(((Iq%=1)<0?++Iq:Iq)*f);return xN((Iq-O0/f)*f,S[(O0+f-1)%f],S[O0%f],S[(O0+1)%f],S[(O0+2)%f])}});
var Aug=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$_C=new RegExp(Aug.source,"g"),svK=180/Math.PI,hTg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},rz,d_C,qyB,VKb,qSd=nC(function(S){if(S==="none")return hTg;rz||(rz=document.createElement("DIV"),d_C=document.documentElement,qyB=document.defaultView);rz.style.transform=S;S=qyB.getComputedStyle(d_C.appendChild(rz),null).getPropertyValue("transform");d_C.removeChild(rz);S=S.slice(7,-1).split(",");return $y(+S[0],+S[1],+S[2],+S[3],
+S[4],+S[5])},"px, ","px)","deg)"),wW$=nC(function(S){if(S==null)return hTg;
VKb||(VKb=document.createElementNS("http://www.w3.org/2000/svg","g"));VKb.setAttribute("transform",S);if(!(S=VKb.transform.baseVal.consolidate()))return hTg;S=S.matrix;return $y(S.a,S.b,S.c,S.d,S.e,S.f)},", ",")",")");
ia(tz);ia(Zq);S4(tz);S4(Zq);Et(tz);var Csq=Et(Zq),ic=0,SO=0,MK=0,bYb,p6,udr=0,Kg=0,UqU=0,$l=typeof performance==="object"&&performance.now?performance:Date,Lji=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(S){setTimeout(S,17)};
Cq.prototype=pb.prototype={constructor:Cq,restart:function(S,f,Iq){if(typeof S!=="function")throw new TypeError("Ee");Iq=(Iq==null?dB():+Iq)+(f==null?0:+f);this._next||p6===this||(p6?p6._next=this:bYb=this,p6=this);this._call=S;this._time=Iq;rg()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,rg())}};
var oyj=I("start","end","interrupt"),UFj=[],Fyj=ZW.prototype.constructor,whi=0,j8=ZW.prototype;jP.prototype=function(S){return ZW().transition(S)}.prototype={constructor:jP,
select:function(S){var f=this._name,Iq=this._id;typeof S!=="function"&&(S=w(S));for(var O0=this._groups,vr=O0.length,s0=Array(vr),VO=0;VO<vr;++VO)for(var mA=O0[VO],Zp=mA.length,TV=s0[VO]=Array(Zp),nN,XT,V$=0;V$<Zp;++V$)(nN=mA[V$])&&(XT=S.call(nN,nN.__data__,V$,mA))&&("__data__"in nN&&(XT.__data__=nN.__data__),TV[V$]=XT,I0(TV[V$],f,Iq,V$,TV,RR(nN,Iq)));return new jP(s0,this._parents,f,Iq)},
filter:function(S){typeof S!=="function"&&(S=l1K(S));for(var f=this._groups,Iq=f.length,O0=Array(Iq),vr=0;vr<Iq;++vr)for(var s0=f[vr],VO=s0.length,mA=O0[vr]=[],Zp,TV=0;TV<VO;++TV)(Zp=s0[TV])&&S.call(Zp,Zp.__data__,TV,s0)&&mA.push(Zp);return new jP(O0,this._parents,this._name,this._id)},
merge:function(S){if(S._id!==this._id)throw Error();var f=this._groups;S=S._groups;for(var Iq=f.length,O0=Math.min(Iq,S.length),vr=Array(Iq),s0=0;s0<O0;++s0)for(var VO=f[s0],mA=S[s0],Zp=VO.length,TV=vr[s0]=Array(Zp),nN,XT=0;XT<Zp;++XT)if(nN=VO[XT]||mA[XT])TV[XT]=nN;for(;s0<Iq;++s0)vr[s0]=f[s0];return new jP(vr,this._parents,this._name,this._id)},
selection:function(){return new Fyj(this._groups,this._parents)},
transition:function(){for(var S=this._name,f=this._id,Iq=++whi,O0=this._groups,vr=O0.length,s0=0;s0<vr;++s0)for(var VO=O0[s0],mA=VO.length,Zp,TV=0;TV<mA;++TV)if(Zp=VO[TV]){var nN=RR(Zp,f);I0(Zp,S,Iq,TV,VO,{time:nN.time+nN.delay+nN.duration,delay:0,duration:nN.duration,ease:nN.ease})}return new jP(O0,this._parents,S,Iq)},
call:j8.call,nodes:j8.nodes,node:j8.node,size:j8.size,empty:j8.empty,each:j8.each,on:function(S,f){var Iq=this._id;return arguments.length<2?RR(this.node(),Iq).on.on(S):this.each(W2d(Iq,S,f))},
attr:function(S,f){var Iq=m(S),O0=Iq==="transform"?wW$:rm;return this.attrTween(S,typeof f==="function"?(Iq.local?Ap$:L20)(Iq,O0,Tf(this,"attr."+S,f)):f==null?(Iq.local?bbu:uhj)(Iq):(Iq.local?sUW:kwd)(Iq,O0,f+""))},
attrTween:function(S,f){var Iq="attr."+S;if(arguments.length<2)return(Iq=this.tween(Iq))&&Iq._value;if(f==null)return this.tween(Iq,null);if(typeof f!=="function")throw Error();var O0=m(S);return this.tween(Iq,(O0.local?$FF:Sy7)(O0,f))},
style:function(S,f,Iq){var O0=S==="transform"?qSd:rm;return f==null?this.styleTween(S,f1W(S,O0)).on("end.style."+S,BEr(S)):this.styleTween(S,typeof f==="function"?jUG(S,O0,Tf(this,"style."+S,f)):rp1(S,O0,f+""),Iq)},
styleTween:function(S,f,Iq){var O0="style."+S;if(arguments.length<2)return(O0=this.tween(O0))&&O0._value;if(f==null)return this.tween(O0,null);if(typeof f!=="function")throw Error();return this.tween(O0,xFH(S,f,Iq==null?"":Iq))},
text:function(S){return this.tween("text",typeof S==="function"?h4$(Tf(this,"text",S)):t40(S==null?"":S+""))},
remove:function(){return this.on("end.remove",ibG(this._id))},
tween:function(S,f){var Iq=this._id;if(arguments.length<2){Iq=RR(this.node(),Iq).tween;for(var O0=0,vr=Iq.length,s0;O0<vr;++O0)if((s0=Iq[O0]).name===S)return s0.value;return null}return this.each((f==null?fS:Gu)(Iq,S,f))},
delay:function(S){var f=this._id;return arguments.length?this.each((typeof S==="function"?ph1:M4W)(f,S)):RR(this.node(),f).delay},
duration:function(S){var f=this._id;return arguments.length?this.each((typeof S==="function"?V4g:z4d)(f,S)):RR(this.node(),f).duration},
ease:function(S){var f=this._id;return arguments.length?this.each(EyF(f,S)):RR(this.node(),f).ease}};
var HIg={time:null,delay:0,duration:250,ease:function(S){return((S*=2)<=1?S*S*S:(S-=2)*S*S+2)/2}};
ZW.prototype.transition=function(S){var f;if(S instanceof jP){var Iq=S._id;S=S._name}else Iq=++whi,(f=HIg).time=dB(),S=S==null?null:S+"";for(var O0=this._groups,vr=O0.length,s0=0;s0<vr;++s0)for(var VO=O0[s0],mA=VO.length,Zp,TV=0;TV<mA;++TV)if(Zp=VO[TV]){var nN=Zp,XT=S,V$=Iq,u5=TV,h_=VO,Sn;if(!(Sn=f))a:{Sn=void 0;for(var aD=Iq;!(Sn=Zp.__transition)||!(Sn=Sn[aD]);)if(!(Zp=Zp.parentNode)){Sn=(HIg.time=dB(),HIg);break a}}I0(nN,XT,V$,u5,h_,Sn)}return new jP(O0,this._parents,S,Iq)};
["e","w"].map(SX0);["n","s"].map(SX0);"n e s w nw ne se sw".split(" ").map(SX0);pTB.prototype=function(){return new pTB}.prototype={constructor:pTB,
moveTo:function(S,f){this._+="M"+(this._x0=this._x1=+S)+","+(this._y0=this._y1=+f)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(S,f){this._+="L"+(this._x1=+S)+","+(this._y1=+f)},
bezierCurveTo:function(S,f,Iq,O0,vr,s0){this._+="C"+ +S+","+ +f+","+ +Iq+","+ +O0+","+(this._x1=+vr)+","+(this._y1=+s0)},
rect:function(S,f,Iq,O0){this._+="M"+(this._x0=this._x1=+S)+","+(this._y0=this._y1=+f)+"h"+ +Iq+"v"+ +O0+"h"+-Iq+"Z"},
toString:function(){return this._}};
kPb.prototype=$I9.prototype={constructor:kPb,has:function(S){return" "+S in this},
get:function(S){return this[" "+S]},
set:function(S,f){this[" "+S]=f;return this},
remove:function(S){S=" "+S;return S in this&&delete this[S]},
clear:function(){for(var S in this)S[0]===" "&&delete this[S]},
keys:function(){var S=[],f;for(f in this)f[0]===" "&&S.push(f.slice(1));return S},
values:function(){var S=[],f;for(f in this)f[0]===" "&&S.push(this[f]);return S},
entries:function(){var S=[],f;for(f in this)f[0]===" "&&S.push({key:f.slice(1),value:this[f]});return S},
size:function(){var S=0,f;for(f in this)f[0]===" "&&++S;return S},
empty:function(){for(var S in this)if(S[0]===" ")return!1;return!0},
each:function(S){for(var f in this)f[0]===" "&&S(this[f],f.slice(1),this)}};
var my=$I9.prototype;sDU.prototype=function(S,f){var Iq=new sDU;if(S instanceof sDU)S.each(function(s0){Iq.add(s0)});
else if(S){var O0=-1,vr=S.length;if(f==null)for(;++O0<vr;)Iq.add(S[O0]);else for(;++O0<vr;)Iq.add(f(S[O0],O0,S))}return Iq}.prototype={constructor:sDU,
has:my.has,add:function(S){this[" "+S]=S;return this},
remove:my.remove,clear:my.clear,values:my.keys,size:my.size,empty:my.empty,each:my.each};var MJk={},MHr={},nBu=p$i(",").parse,vBF=p$i("\t").parse;VJk(nBu);VJk(vBF);var Is=function(S,f,Iq){f=new VHT(f==null?XhW:f,Iq==null?ypr:Iq,NaN,NaN,NaN,NaN);return S==null?f:f.addAll(S)}.prototype=VHT.prototype;
Is.copy=function(){var S=new VHT(this._x,this._y,this._x0,this._y0,this._x1,this._y1),f=this._root,Iq,O0;if(!f)return S;if(!f.length)return S._root=Eee(f),S;for(Iq=[{source:f,target:S._root=Array(4)}];f=Iq.pop();)for(var vr=0;vr<4;++vr)if(O0=f.source[vr])O0.length?Iq.push({source:O0,target:f.target[vr]=Array(4)}):f.target[vr]=Eee(O0);return S};
Is.add=function(S){var f=+this._x.call(null,S),Iq=+this._y.call(null,S);return zze(this.cover(f,Iq),f,Iq,S)};
Is.addAll=function(S){var f,Iq,O0=S.length,vr,s0,VO=Array(O0),mA=Array(O0),Zp=Infinity,TV=Infinity,nN=-Infinity,XT=-Infinity;for(Iq=0;Iq<O0;++Iq)isNaN(vr=+this._x.call(null,f=S[Iq]))||isNaN(s0=+this._y.call(null,f))||(VO[Iq]=vr,mA[Iq]=s0,vr<Zp&&(Zp=vr),vr>nN&&(nN=vr),s0<TV&&(TV=s0),s0>XT&&(XT=s0));nN<Zp&&(Zp=this._x0,nN=this._x1);XT<TV&&(TV=this._y0,XT=this._y1);this.cover(Zp,TV).cover(nN,XT);for(Iq=0;Iq<O0;++Iq)zze(this,VO[Iq],mA[Iq],S[Iq]);return this};
Is.cover=function(S,f){if(isNaN(S=+S)||isNaN(f=+f))return this;var Iq=this._x0,O0=this._y0,vr=this._x1,s0=this._y1;if(isNaN(Iq))vr=(Iq=Math.floor(S))+1,s0=(O0=Math.floor(f))+1;else if(Iq>S||S>vr||O0>f||f>s0){var VO=vr-Iq,mA=this._root,Zp;switch(Zp=(f<(O0+s0)/2)<<1|S<(Iq+vr)/2){case 0:do{var TV=Array(4);TV[Zp]=mA;mA=TV}while(VO*=2,vr=Iq+VO,s0=O0+VO,S>vr||f>s0);break;case 1:do TV=Array(4),TV[Zp]=mA,mA=TV;while(VO*=2,Iq=vr-VO,s0=O0+VO,Iq>S||f>s0);break;case 2:do TV=Array(4),TV[Zp]=mA,mA=TV;while(VO*=
2,vr=Iq+VO,O0=s0-VO,S>vr||O0>f);break;case 3:do TV=Array(4),TV[Zp]=mA,mA=TV;while(VO*=2,Iq=vr-VO,O0=s0-VO,Iq>S||O0>f)}this._root&&this._root.length&&(this._root=mA)}else return this;this._x0=Iq;this._y0=O0;this._x1=vr;this._y1=s0;return this};
Is.data=function(){var S=[];this.visit(function(f){if(!f.length){do S.push(f.data);while(f=f.next)}});
return S};
Is.extent=function(S){return arguments.length?this.cover(+S[0][0],+S[0][1]).cover(+S[1][0],+S[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Is.find=function(S,f,Iq){var O0=this._x0,vr=this._y0,s0,VO,mA,Zp,TV=this._x1,nN=this._y1,XT=[],V$=this._root,u5;V$&&XT.push(new cB(V$,O0,vr,TV,nN));Iq==null?Iq=Infinity:(O0=S-Iq,vr=f-Iq,TV=S+Iq,nN=f+Iq,Iq*=Iq);for(;u5=XT.pop();)if(!(!(V$=u5.node)||(s0=u5.x0)>TV||(VO=u5.y0)>nN||(mA=u5.x1)<O0||(Zp=u5.y1)<vr))if(V$.length){u5=(s0+mA)/2;var h_=(VO+Zp)/2;XT.push(new cB(V$[3],u5,h_,mA,Zp),new cB(V$[2],s0,h_,u5,Zp),new cB(V$[1],u5,VO,mA,h_),new cB(V$[0],s0,VO,u5,h_));if(V$=(f>=h_)<<1|S>=u5)u5=XT[XT.length-
1],XT[XT.length-1]=XT[XT.length-1-V$],XT[XT.length-1-V$]=u5}else if(u5=S-+this._x.call(null,V$.data),h_=f-+this._y.call(null,V$.data),u5=u5*u5+h_*h_,u5<Iq){var Sn=Math.sqrt(Iq=u5);O0=S-Sn;vr=f-Sn;TV=S+Sn;nN=f+Sn;Sn=V$.data}return Sn};
Is.remove=function(S){if(isNaN(Zp=+this._x.call(null,S))||isNaN(TV=+this._y.call(null,S)))return this;var f,Iq=this._root,O0,vr=this._x0,s0=this._y0,VO=this._x1,mA=this._y1,Zp,TV,nN,XT,V$,u5,h_;if(!Iq)return this;if(Iq.length)for(;;){(V$=Zp>=(nN=(vr+VO)/2))?vr=nN:VO=nN;(u5=TV>=(XT=(s0+mA)/2))?s0=XT:mA=XT;if(!(f=Iq,Iq=Iq[h_=u5<<1|V$]))return this;if(!Iq.length)break;if(f[h_+1&3]||f[h_+2&3]||f[h_+3&3]){var Sn=f;var aD=h_}}for(;Iq.data!==S;)if(!(O0=Iq,Iq=Iq.next))return this;(S=Iq.next)&&delete Iq.next;
if(O0)return S?O0.next=S:delete O0.next,this;if(!f)return this._root=S,this;S?f[h_]=S:delete f[h_];(Iq=f[0]||f[1]||f[2]||f[3])&&Iq===(f[3]||f[2]||f[1]||f[0])&&!Iq.length&&(Sn?Sn[aD]=Iq:this._root=Iq);return this};
Is.removeAll=function(S){for(var f=0,Iq=S.length;f<Iq;++f)this.remove(S[f]);return this};
Is.root=function(){return this._root};
Is.size=function(){var S=0;this.visit(function(f){if(!f.length){do++S;while(f=f.next)}});
return S};
Is.visit=function(S){var f=[],Iq,O0=this._root,vr,s0,VO,mA,Zp;for(O0&&f.push(new cB(O0,this._x0,this._y0,this._x1,this._y1));Iq=f.pop();)if(!S(O0=Iq.node,s0=Iq.x0,VO=Iq.y0,mA=Iq.x1,Zp=Iq.y1)&&O0.length){Iq=(s0+mA)/2;var TV=(VO+Zp)/2;(vr=O0[3])&&f.push(new cB(vr,Iq,TV,mA,Zp));(vr=O0[2])&&f.push(new cB(vr,s0,TV,Iq,Zp));(vr=O0[1])&&f.push(new cB(vr,Iq,VO,mA,TV));(vr=O0[0])&&f.push(new cB(vr,s0,VO,Iq,TV))}};
Is.visitAfter=function(S){var f=[],Iq=[],O0;for(this._root&&f.push(new cB(this._root,this._x0,this._y0,this._x1,this._y1));O0=f.pop();){var vr=O0.node;if(vr.length){var s0,VO=O0.x0,mA=O0.y0,Zp=O0.x1,TV=O0.y1,nN=(VO+Zp)/2,XT=(mA+TV)/2;(s0=vr[0])&&f.push(new cB(s0,VO,mA,nN,XT));(s0=vr[1])&&f.push(new cB(s0,nN,mA,Zp,XT));(s0=vr[2])&&f.push(new cB(s0,VO,XT,nN,TV));(s0=vr[3])&&f.push(new cB(s0,nN,XT,Zp,TV))}Iq.push(O0)}for(;O0=Iq.pop();)S(O0.node,O0.x0,O0.y0,O0.x1,O0.y1);return this};
Is.x=function(S){return arguments.length?(this._x=S,this):this._x};
Is.y=function(S){return arguments.length?(this._y=S,this):this._y};
var cfu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;zTO.prototype=Ew8.prototype;Ew8.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 f52,BrT={"%":function(S,f){return(S*100).toFixed(f)},
b:function(S){return Math.round(S).toString(2)},
c:function(S){return S+""},
d:function(S){return Math.round(S).toString(10)},
e:function(S,f){return S.toExponential(f)},
f:function(S,f){return S.toFixed(f)},
g:function(S,f){return S.toPrecision(f)},
o:function(S){return Math.round(S).toString(8)},
p:function(S,f){return JJp(S*100,f)},
r:JJp,s:function(S,f){var Iq=LXb(S,f);if(!Iq)return S+"";var O0=Iq[0];Iq=Iq[1];Iq=Iq-(f52=Math.max(-8,Math.min(8,Math.floor(Iq/3)))*3)+1;var vr=O0.length;return Iq===vr?O0:Iq>vr?O0+Array(Iq-vr+1).join("0"):Iq>0?O0.slice(0,Iq)+"."+O0.slice(Iq):"0."+Array(1-Iq).join("0")+LXb(S,Math.max(0,f+Iq-1))[0]},
X:function(S){return Math.round(S).toString(16).toUpperCase()},
x:function(S){return Math.round(S).toString(16)}},ii2="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),D6H;
(function(S){return D6H=ICj(S)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Ib.prototype={constructor:Ib,reset:function(){this.s=this.t=0},
add:function(S){rJV(z2C,S,this.t);rJV(this,z2C.s,this.s);this.s?this.t+=z2C.t:this.s=z2C.t},
valueOf:function(){return this.s}};
var z2C=new Ib,Gm=Math.PI,TF=Gm/2,F20=Gm/4,oB7=Gm*2,XTp=Gm/180,xr=Math.abs,yuU=Math.atan,CXT=Math.atan2,O_=Math.cos,zv=Math.sin,$qr=Math.sqrt;new Ib;new Ib;new Ib;var gwr=new Ib;(function(S,f,Iq,O0){return function(vr){function s0(G2,Ue){S(G2,Ue)&&vr.point(G2,Ue)}
function VO(G2,Ue){V$.point(G2,Ue)}
function mA(){ON.point=VO;V$.lineStart()}
function Zp(){ON.point=s0;V$.lineEnd()}
function TV(G2,Ue){AH.push([G2,Ue]);h_.point(G2,Ue)}
function nN(){h_.lineStart();AH=[]}
function XT(){TV(AH[0][0],AH[0][1]);h_.lineEnd();var G2=h_.clean(),Ue=u5.result(),gS=Ue.length,sf;AH.pop();aD.push(AH);AH=null;if(gS)if(G2&1){if(gS=Ue[0],(Ue=gS.length-1)>0){Sn||(vr.polygonStart(),Sn=!0);vr.lineStart();for(G2=0;G2<Ue;++G2)vr.point((sf=gS[G2])[0],sf[1]);vr.lineEnd()}}else gS>1&&G2&2&&Ue.push(Ue.pop().concat(Ue.shift())),Ys.push(Ue.filter(Pku))}
var V$=f(vr),u5=Z0d(),h_=f(u5),Sn=!1,aD,Ys,AH,ON={point:s0,lineStart:mA,lineEnd:Zp,polygonStart:function(){ON.point=TV;ON.lineStart=nN;ON.lineEnd=XT;Ys=[];aD=[]},
polygonEnd:function(){ON.point=s0;ON.lineStart=mA;ON.lineEnd=Zp;var G2=Ys,Ue=G2.length;var gS=-1;for(var sf=0,C1,UT;++gS<Ue;)sf+=G2[gS].length;for(C1=Array(sf);--Ue>=0;)for(UT=G2[Ue],gS=UT.length;--gS>=0;)C1[--sf]=UT[gS];Ys=C1;G2=aD;Ue=O0[0];sf=O0[1];var T6=zv(sf);gS=[zv(Ue),-O_(Ue),0];UT=C1=0;gwr.reset();T6===1?sf=TF+1E-6:T6===-1&&(sf=-TF-1E-6);T6=0;for(var Ed=G2.length;T6<Ed;++T6)if(Yt=(cK=G2[T6]).length){var cK,Yt,TP=cK[Yt-1],uW=TP[0],Ba=TP[1]/2+F20,EtO=zv(Ba),nyK=O_(Ba);for(Ba=0;Ba<Yt;++Ba,uW=
YXC,EtO=vy9,nyK=jO,TP=JaU){var JaU=cK[Ba],YXC=JaU[0];jO=JaU[1]/2+F20;var vy9=zv(jO),jO=O_(jO),xY=YXC-uW,GlA=xY>=0?1:-1,cJr=GlA*xY,WXB=cJr>Gm;EtO*=vy9;gwr.add(CXT(EtO*GlA*zv(cJr),nyK*jO+EtO*O_(cJr)));C1+=WXB?xY+GlA*oB7:xY;WXB^uW>=Ue^YXC>=Ue&&(TP=xI0(jv9(TP),jv9(JaU)),tJA(TP),uW=xI0(gS,TP),tJA(uW),uW=(WXB^xY>=0?-1:1)*Aap(uW[2]),sf>uW||sf===uW&&(TP[0]||TP[1]))&&(UT+=WXB^xY>=0?1:-1)}}G2=(C1<-1E-6||C1<1E-6&&gwr<-1E-6)^UT&1;Ys.length?(Sn||(vr.polygonStart(),Sn=!0),KK1(Ys,QXW,G2,Iq,vr)):G2&&(Sn||(vr.polygonStart(),
Sn=!0),vr.lineStart(),Iq(null,null,1,vr),vr.lineEnd());Sn&&(vr.polygonEnd(),Sn=!1);Ys=aD=null},
sphere:function(){vr.polygonStart();vr.lineStart();Iq(null,null,1,vr);vr.lineEnd();vr.polygonEnd()}};
return ON}})(function(){return!0},function(S){var f=NaN,Iq=NaN,O0=NaN,vr;
return{lineStart:function(){S.lineStart();vr=1},
point:function(s0,VO){var mA=s0>0?Gm:-Gm,Zp=xr(s0-f);if(xr(Zp-Gm)<1E-6)S.point(f,Iq=(Iq+VO)/2>0?TF:-TF),S.point(O0,Iq),S.lineEnd(),S.lineStart(),S.point(mA,Iq),S.point(s0,Iq),vr=0;else if(O0!==mA&&Zp>=Gm){xr(f-O0)<1E-6&&(f-=O0*1E-6);xr(s0-mA)<1E-6&&(s0-=mA*1E-6);Zp=f;var TV=Iq,nN=s0,XT,V$,u5=zv(Zp-nN);Iq=xr(u5)>1E-6?yuU((zv(TV)*(V$=O_(VO))*zv(nN)-zv(VO)*(XT=O_(TV))*zv(Zp))/(XT*V$*u5)):(TV+VO)/2;S.point(O0,Iq);S.lineEnd();S.lineStart();S.point(mA,Iq);vr=0}S.point(f=s0,Iq=VO);O0=mA},
lineEnd:function(){S.lineEnd();f=Iq=NaN},
clean:function(){return 2-vr}}},function(S,f,Iq,O0){S==null?(Iq*=TF,O0.point(-Gm,Iq),O0.point(0,Iq),O0.point(Gm,Iq),O0.point(Gm,0),O0.point(Gm,-Iq),O0.point(0,-Iq),O0.point(-Gm,-Iq),O0.point(-Gm,0),O0.point(-Gm,Iq)):xr(S[0]-f[0])>1E-6?(S=S[0]<f[0]?Gm:-Gm,Iq=Iq*S/2,O0.point(-S,Iq),O0.point(0,Iq),O0.point(S,Iq)):O0.point(f[0],f[1])},[-Gm,
-TF]);new Ib;new Ib;new Ib;new Ib;JuT.prototype={constructor:JuT,point:function(S,f){this.stream.point(S,f)},
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()}};
O_(30*XTp);(function(S){return function(f){var Iq=new JuT,O0;for(O0 in S)Iq[O0]=S[O0];Iq.stream=f;return Iq}})({point:function(S,f){this.stream.point(S*XTp,f*XTp)}});
dI2(function(S){return $qr(2/(1+S))}).invert=zH(function(S){return 2*Aap(S/2)});
dI2(function(S){return(S=S>1?0:S<-1?Gm:Math.acos(S))&&S/zv(S)}).invert=zH(function(S){return S});
$qr(3);zH(yuU);zH(Aap);zH(function(S){return 2*yuU(S)});
Ex.prototype=HiK.prototype={constructor:Ex,count:function(){return this.eachAfter(mZr)},
each:function(S){var f,Iq=[this],O0;do{var vr=Iq.reverse();for(Iq=[];f=vr.pop();)if(S(f),f=f.children){var s0=0;for(O0=f.length;s0<O0;++s0)Iq.push(f[s0])}}while(Iq.length);return this},
eachAfter:function(S){for(var f,Iq=[this],O0=[],vr,s0;f=Iq.pop();)if(O0.push(f),f=f.children)for(vr=0,s0=f.length;vr<s0;++vr)Iq.push(f[vr]);for(;f=O0.pop();)S(f);return this},
eachBefore:function(S){for(var f,Iq=[this],O0;f=Iq.pop();)if(S(f),f=f.children)for(O0=f.length-1;O0>=0;--O0)Iq.push(f[O0]);return this},
sum:function(S){return this.eachAfter(function(f){for(var Iq=+S(f.data)||0,O0=f.children,vr=O0&&O0.length;--vr>=0;)Iq+=O0[vr].value;f.value=Iq})},
sort:function(S){return this.eachBefore(function(f){f.children&&f.children.sort(S)})},
path:function(S){var f=this;var Iq=f;var O0=S;if(Iq!==O0){var vr=Iq.ancestors(),s0=O0.ancestors(),VO=null;Iq=vr.pop();for(O0=s0.pop();Iq===O0;)VO=Iq,Iq=vr.pop(),O0=s0.pop();Iq=VO}for(O0=[f];f!==Iq;)f=f.parent,O0.push(f);for(f=O0.length;S!==Iq;)O0.splice(f,0,S),S=S.parent;return O0},
ancestors:function(){for(var S=this,f=[S];S=S.parent;)f.push(S);return f},
links:function(){var S=this,f=[];S.each(function(Iq){Iq!==S&&f.push({source:Iq.parent,target:Iq})});
return f},
copy:function(){return HiK(this).eachBefore(O0d)}};
(function(S,f){this._=S;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=f}).prototype=Object.create(Ex.prototype);
var WOC=new Date,iIA=new Date,DF2=b6(function(){},function(S,f){S.setTime(+S+f)},function(S,f){return f-S});
DF2.every=function(S){S=Math.floor(S);return isFinite(S)&&S>0?S>1?b6(function(f){f.setTime(Math.floor(f/S)*S)},function(f,Iq){f.setTime(+f+Iq*S)},function(f,Iq){return(Iq-f)/S}):DF2:null};
b6(function(S){S.setTime(Math.floor(S/1E3)*1E3)},function(S,f){S.setTime(+S+f*1E3)},function(S,f){return(f-S)/1E3},function(S){return S.getUTCSeconds()});
b6(function(S){S.setTime(Math.floor(S/6E4)*6E4)},function(S,f){S.setTime(+S+f*6E4)},function(S,f){return(f-S)/6E4},function(S){return S.getMinutes()});
b6(function(S){var f=S.getTimezoneOffset()*6E4%36E5;f<0&&(f+=36E5);S.setTime(Math.floor((+S-f)/36E5)*36E5+f)},function(S,f){S.setTime(+S+f*36E5)},function(S,f){return(f-S)/36E5},function(S){return S.getHours()});
var geT=b6(function(S){S.setHours(0,0,0,0)},function(S,f){S.setDate(S.getDate()+f)},function(S,f){return(f-S-(f.getTimezoneOffset()-S.getTimezoneOffset())*6E4)/864E5},function(S){return S.getDate()-1}),OgF=PW(0),BQ0=PW(1);
PW(2);PW(3);var ruf=PW(4);PW(5);PW(6);b6(function(S){S.setDate(1);S.setHours(0,0,0,0)},function(S,f){S.setMonth(S.getMonth()+f)},function(S,f){return f.getMonth()-S.getMonth()+(f.getFullYear()-S.getFullYear())*12},function(S){return S.getMonth()});
var fO=b6(function(S){S.setMonth(0,1);S.setHours(0,0,0,0)},function(S,f){S.setFullYear(S.getFullYear()+f)},function(S,f){return f.getFullYear()-S.getFullYear()},function(S){return S.getFullYear()});
fO.every=function(S){return isFinite(S=Math.floor(S))&&S>0?b6(function(f){f.setFullYear(Math.floor(f.getFullYear()/S)*S);f.setMonth(0,1);f.setHours(0,0,0,0)},function(f,Iq){f.setFullYear(f.getFullYear()+Iq*S)}):null};
b6(function(S){S.setUTCSeconds(0,0)},function(S,f){S.setTime(+S+f*6E4)},function(S,f){return(f-S)/6E4},function(S){return S.getUTCMinutes()});
b6(function(S){S.setUTCMinutes(0,0,0)},function(S,f){S.setTime(+S+f*36E5)},function(S,f){return(f-S)/36E5},function(S){return S.getUTCHours()});
var yJA=b6(function(S){S.setUTCHours(0,0,0,0)},function(S,f){S.setUTCDate(S.getUTCDate()+f)},function(S,f){return(f-S)/864E5},function(S){return S.getUTCDate()-1}),eB1=Qi(0),fgr=Qi(1);
Qi(2);Qi(3);var jeT=Qi(4);Qi(5);Qi(6);b6(function(S){S.setUTCDate(1);S.setUTCHours(0,0,0,0)},function(S,f){S.setUTCMonth(S.getUTCMonth()+f)},function(S,f){return f.getUTCMonth()-S.getUTCMonth()+(f.getUTCFullYear()-S.getUTCFullYear())*12},function(S){return S.getUTCMonth()});
var Bf=b6(function(S){S.setUTCMonth(0,1);S.setUTCHours(0,0,0,0)},function(S,f){S.setUTCFullYear(S.getUTCFullYear()+f)},function(S,f){return f.getUTCFullYear()-S.getUTCFullYear()},function(S){return S.getUTCFullYear()});
Bf.every=function(S){return isFinite(S=Math.floor(S))&&S>0?b6(function(f){f.setUTCFullYear(Math.floor(f.getUTCFullYear()/S)*S);f.setUTCMonth(0,1);f.setUTCHours(0,0,0,0)},function(f,Iq){f.setUTCFullYear(f.getUTCFullYear()+Iq*S)}):null};
var X$K={"-":"",_:" ",0:"0"},$D=/^\s*\d+/,TC7=/^%/,acu=/[\\^$*+?|[\]().{}]/g,iYr;(function(S){iYr=NXj(S);hUk=iYr.utcFormat;dBT=iYr.utcParse;return iYr})({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||hUk("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||dBT("%Y-%m-%dT%H:%M:%S.%LZ");ly("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
ly("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");ly("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");ly("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");ly("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");ly("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");ly("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
ly("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");ly("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");ly("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");ly("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");ly("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var U6u=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ly);Ia(U6u);var u9G=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ly);Ia(u9G);var bgg=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ly);Ia(bgg);var kUd=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ly);
Ia(kUd);var s77=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ly);Ia(s77);var Lyd=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ly);Ia(Lyd);var AZu=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ly);Ia(AZu);var $6j=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ly);Ia($6j);var SSj=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ly);Ia(SSj);var pW0=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ly);Ia(pW0);var MtW=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ly);Ia(MtW);var Vtg=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ly);Ia(Vtg);var zB1=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ly);Ia(zB1);var EBu=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ly);Ia(EBu);var JZ7=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ly);Ia(JZ7);var Wy$=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ly);Ia(Wy$);var ig1=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ly);Ia(ig1);var fc1=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ly);Ia(fc1);var BCW=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ly);Ia(BCW);var rZj=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ly);Ia(rZj);var j7$=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ly);Ia(j7$);var x6d=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ly);Ia(x6d);var ttd=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ly);Ia(ttd);var hBW=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ly);Ia(hBW);var d67=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ly);Ia(d67);var CjF=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ly);Ia(CjF);var Hgu=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ly);Ia(Hgu);Csq(sK(300,.5,0),sK(-240,.5,1));Csq(sK(-100,.75,.35),sK(80,1.5,.8));Csq(sK(260,.75,.35),sK(80,1.5,.8));sK();he();MKO(ly("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
MKO(ly("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
MKO(ly("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
MKO(ly("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
mFe.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(S,f){S=+S;f=+f;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(S,f):this._context.moveTo(S,f);break;case 1:this._point=2;default:this._context.lineTo(S,f)}}};
(function(S){function f(Iq){return new a1i(S(Iq))}
f._curve=S;return f})(function(S){return new mFe(S)});
a1i.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(S,f){this._curve.point(f*Math.sin(S),f*-Math.cos(S))}};
tHB.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:x_q(this,this._t0,Obp(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(S,f){var Iq=NaN;S=+S;f=+f;if(S!==this._x1||f!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(S,f):this._context.moveTo(S,f);break;case 1:this._point=2;break;case 2:this._point=3;x_q(this,Obp(this,Iq=TEK(this,S,f)),Iq);break;default:x_q(this,this._t0,Iq=TEK(this,S,f))}this._x0=this._x1;this._x1=S;this._y0=this._y1;this._y1=f;this._t0=Iq}}};
(function(S){this._context=new e4K(S)}.prototype=Object.create(tHB.prototype)).point=function(S,f){tHB.prototype.point.call(this,f,S)};
e4K.prototype={moveTo:function(S,f){this._context.moveTo(f,S)},
closePath:function(){this._context.closePath()},
lineTo:function(S,f){this._context.lineTo(f,S)},
bezierCurveTo:function(S,f,Iq,O0,vr,s0){this._context.bezierCurveTo(f,S,O0,Iq,s0,vr)}};
f6.prototype={constructor:f6,scale:function(S){return S===1?this:new f6(this.k*S,this.x,this.y)},
translate:function(S,f){return S===0&f===0?this:new f6(this.k,this.x+this.k*S,this.y+this.k*f)},
apply:function(S){return[S[0]*this.k+this.x,S[1]*this.k+this.y]},
invert:function(S){return[(S[0]-this.x)/this.k,(S[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new f6(1,0,0);ngB=vu;aw.svg=aw.svg;aw.xhtml=aw.xhtml;aw.xlink=aw.xlink;aw.xml=aw.xml;aw.xmlns=aw.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 CJe="hammer_"+(Math.random()*1E6|0),HMN=function(){var G=document||document;if(!G[CJe]){var c=function(){(function(I,R,Z,K){function m(AU,Br,CA){return setTimeout(F(AU,CA),Br)}
function a(AU,Br,CA){return Array.isArray(AU)?(O(AU,CA[Br],CA),!0):!1}
function O(AU,Br,CA){var u2;if(AU)if(AU.forEach)AU.forEach(Br,CA);else if(AU.length!==K){var uH=0;for(u2=AU.length;uH<u2;uH++)Br.call(CA,AU[uH],uH,AU)}else for(uH in AU)AU.hasOwnProperty(uH)&&Br.call(CA,AU[uH],uH,AU)}
function N(AU,Br,CA){for(var u2=Object.keys(Br),uH=0,ET=u2.length;uH<ET;uH++)if(!CA||CA&&AU[u2[uH]]===K)AU[u2[uH]]=Br[u2[uH]];return AU}
function q(AU,Br){return N(AU,Br,!0)}
function w(AU,Br,CA){Br=Br.prototype;var u2=AU.prototype=Object.create(Br);u2.constructor=AU;u2._super=Br;CA&&N(u2,CA)}
function F(AU,Br){return function(){return AU.apply(Br,arguments)}}
function n(AU,Br){return typeof AU=="function"?AU.apply(Br?Br[0]||K:K,Br):AU}
function U(AU,Br,CA){O(p(Br),function(u2){AU.addEventListener(u2,CA,!1)})}
function k(AU,Br,CA){O(p(Br),function(u2){AU.removeEventListener(u2,CA,!1)})}
function p(AU){return AU.trim().split(/\s+/g)}
function M(AU,Br,CA){if(AU.indexOf&&!CA)return AU.indexOf(Br);for(var u2=0,uH=AU.length;u2<uH;u2++)if(CA&&AU[u2][CA]==Br||!CA&&AU[u2]===Br)return u2;return-1}
function z(AU,Br,CA){for(var u2=[],uH=[],ET=0,Mg=AU.length;ET<Mg;ET++){var $K=Br?AU[ET][Br]:AU[ET];M(uH,$K)<0&&u2.push(AU[ET]);uH[ET]=$K}CA&&(u2=Br?u2.sort(function(sK,d7){return sK[Br]>d7[Br]}):u2.sort());
return u2}
function t(AU,Br){for(var CA,u2=Br[0].toUpperCase()+Br.slice(1),uH=0,ET=qk.length;uH<ET;uH++)if(CA=(CA=qk[uH])?CA+u2:Br,CA in AU)return CA;return K}
function x(AU,Br){var CA=this;this.manager=AU;this.callback=Br;this.element=AU.element;this.target=AU.options.inputTarget;this.domHandler=function(u2){n(AU.options.enable,[AU])&&CA.handler(u2)};
this.evEl&&U(this.element,this.evEl,this.domHandler);this.evTarget&&U(this.target,this.evTarget,this.domHandler);this.evWin&&U(I,this.evWin,this.domHandler)}
function C(AU){var Br;xF?Br=Wr:eT?Br=iT:vu?Br=z8:Br=oq;return new Br(AU,H)}
function H(AU,Br,CA){var u2=CA.pointers.length,uH=CA.changedPointers.length,ET=Br&1&&u2-uH===0;CA.isFirst=!!ET;CA.isFinal=!!(Br&12&&u2-uH===0);ET&&(AU.session={});CA.eventType=Br;Br=AU.session;u2=CA.pointers;uH=u2.length;Br.firstInput||(Br.firstInput=g(CA));uH>1&&!Br.firstMultiple?Br.firstMultiple=g(CA):uH===1&&(Br.firstMultiple=!1);ET=Br.firstInput;var Mg=(uH=Br.firstMultiple)?uH.center:ET.center,$K=CA.center=QO(u2);CA.timeStamp=Iu();CA.deltaTime=CA.timeStamp-ET.timeStamp;CA.angle=FB(Mg,$K);CA.distance=
kp(Mg,$K);ET=CA.center;Mg=Br.offsetDelta||{};$K=Br.prevDelta||{};var sK=Br.prevInput||{};if(CA.eventType===1||sK.eventType===4)$K=Br.prevDelta={x:sK.deltaX||0,y:sK.deltaY||0},Mg=Br.offsetDelta={x:ET.x,y:ET.y};CA.deltaX=$K.x+(ET.x-Mg.x);CA.deltaY=$K.y+(ET.y-Mg.y);CA.offsetDirection=T8(CA.deltaX,CA.deltaY);uH?(ET=uH.pointers,ET=kp(u2[0],u2[1],he)/kp(ET[0],ET[1],he)):ET=1;CA.scale=ET;uH?(uH=uH.pointers,u2=FB(u2[1],u2[0],he)-FB(uH[1],uH[0],he)):u2=0;CA.rotation=u2;Mg=Br.lastInterval||CA;u2=CA.timeStamp-
Mg.timeStamp;CA.eventType!=8&&(u2>25||Mg.velocity===K)?(ET=Mg.deltaX-CA.deltaX,Mg=Mg.deltaY-CA.deltaY,$K=ET/u2||0,sK=Mg/u2||0,u2=$K,uH=sK,$K=yO($K)>yO(sK)?$K:sK,ET=T8(ET,Mg),Br.lastInterval=CA):($K=Mg.velocity,u2=Mg.velocityX,uH=Mg.velocityY,ET=Mg.direction);CA.velocity=$K;CA.velocityX=u2;CA.velocityY=uH;CA.direction=ET;Br=AU.element;a:{for(u2=CA.srcEvent.target;u2;){if(u2==Br){u2=!0;break a}u2=u2.parentNode}u2=!1}u2&&(Br=CA.srcEvent.target);CA.target=Br;AU.emit("hammer.input",CA);AU.recognize(CA);
AU.session.prevInput=CA}
function g(AU){for(var Br=[],CA=0;CA<AU.pointers.length;CA++)Br[CA]={clientX:ZW(AU.pointers[CA].clientX),clientY:ZW(AU.pointers[CA].clientY)};return{timeStamp:Iu(),pointers:Br,center:QO(Br),deltaX:AU.deltaX,deltaY:AU.deltaY}}
function QO(AU){var Br=AU.length;if(Br===1)return{x:ZW(AU[0].clientX),y:ZW(AU[0].clientY)};for(var CA=0,u2=0,uH=0;uH<Br;uH++)CA+=AU[uH].clientX,u2+=AU[uH].clientY;return{x:ZW(CA/Br),y:ZW(u2/Br)}}
function T8(AU,Br){return AU===Br?1:yO(AU)>=yO(Br)?AU>0?2:4:Br>0?8:16}
function kp(AU,Br,CA){CA||(CA=v6);var u2=Br[CA[0]]-AU[CA[0]];AU=Br[CA[1]]-AU[CA[1]];return Math.sqrt(u2*u2+AU*AU)}
function FB(AU,Br,CA){CA||(CA=v6);return Math.atan2(Br[CA[1]]-AU[CA[1]],Br[CA[0]]-AU[CA[0]])*180/Math.PI}
function oq(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;x.apply(this,arguments)}
function Wr(){this.evEl=L8;this.evWin=MS;x.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function iT(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};x.apply(this,arguments)}
function z8(){x.apply(this,arguments);var AU=F(this.handler,this);this.touch=new iT(this.manager,AU);this.mouse=new oq(this.manager,AU)}
function GV(AU,Br){this.manager=AU;this.set(Br)}
function ei(AU){if(AU.indexOf("none")>-1)return"none";var Br=AU.indexOf("pan-x")>-1,CA=AU.indexOf("pan-y")>-1;return Br&&CA?"pan-x pan-y":Br||CA?Br?"pan-x":"pan-y":AU.indexOf("manipulation")>-1?"manipulation":"auto"}
function Hr(AU){this.id=wS++;this.manager=null;this.options=q(AU||{},this.defaults);AU=this.options.enable;this.options.enable=AU===K?!0:AU;this.state=1;this.simultaneous={};this.requireFail=[]}
function v0(AU){return AU==16?"down":AU==8?"up":AU==2?"left":AU==4?"right":""}
function kK(AU,Br){return(Br=Br.manager)?Br.get(AU):AU}
function pN(){Hr.apply(this,arguments)}
function bH(){pN.apply(this,arguments);this.pY=this.pX=null}
function n1(){pN.apply(this,arguments)}
function qf(){Hr.apply(this,arguments);this._input=this._timer=null}
function hU(){pN.apply(this,arguments)}
function we(){pN.apply(this,arguments)}
function xK(){Hr.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function UK(AU,Br){Br=Br||{};var CA=Br.recognizers;Br.recognizers=CA===K?UK.defaults.preset:CA;return new YK(AU,Br)}
function YK(AU,Br){Br=Br||{};this.options=q(Br,UK.defaults);this.options.inputTarget=this.options.inputTarget||AU;this.handlers={};this.session={};this.recognizers=[];this.element=AU;this.input=C(this);this.touchAction=new GV(this,this.options.touchAction);en(this,!0);O(Br.recognizers,function(CA){var u2=this.add(new CA[0](CA[1]));CA[2]&&u2.recognizeWith(CA[2]);CA[3]&&u2.requireFailure(CA[2])},this)}
function en(AU,Br){var CA=AU.element;O(AU.options.cssProps,function(u2,uH){CA.style[t(CA.style,uH)]=Br?u2:""})}
function de(AU,Br){var CA=R.createEvent("Event");CA.initEvent(AU,!0,!0);CA.gesture=Br;Br.target.dispatchEvent(CA)}
var qk=" webkit moz MS ms o".split(" "),FT=R.createElement("div"),ZW=Math.round,yO=Math.abs,Iu=Date.now,wS=1,IR=/mobile|tablet|ip(ad|hone|od)|android/i,vu="ontouchstart"in I,xF=t(I,"PointerEvent")!==K,eT=vu&&IR.test(navigator.userAgent),v6=["x","y"],he=["clientX","clientY"];x.prototype={handler:function(){},
destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler);this.evTarget&&k(this.target,this.evTarget,this.domHandler);this.evWin&&k(I,this.evWin,this.domHandler)}};
var L1={mousedown:1,mousemove:2,mouseup:4};w(oq,x,{handler:function(AU){var Br=L1[AU.type];Br&1&&AU.button===0&&(this.pressed=!0);Br&2&&AU.which!==1&&(Br=4);this.pressed&&this.allow&&(Br&4&&(this.pressed=!1),this.callback(this.manager,Br,{pointers:[AU],changedPointers:[AU],pointerType:"mouse",srcEvent:AU}))}});
var Q$={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},CS={2:"touch",3:"pen",4:"mouse",5:"kinect"},L8="pointerdown",MS="pointermove pointerup pointercancel";I.MSPointerEvent&&(L8="MSPointerDown",MS="MSPointerMove MSPointerUp MSPointerCancel");w(Wr,x,{handler:function(AU){var Br=this.store,CA=!1,u2=AU.type.toLowerCase().replace("ms","");u2=Q$[u2];var uH=CS[AU.pointerType]||AU.pointerType;u2&1&&(AU.button===0||uH=="touch")?Br.push(AU):u2&12&&(CA=!0);var ET=M(Br,AU.pointerId,"pointerId");
ET<0||(Br[ET]=AU,this.callback(this.manager,u2,{pointers:Br,changedPointers:[AU],pointerType:uH,srcEvent:AU}),CA&&Br.splice(ET,1))}});
var Ee={touchstart:1,touchmove:2,touchend:4,touchcancel:8};w(iT,x,{handler:function(AU){var Br=Ee[AU.type];var CA=Array.prototype.slice.call(AU.touches,0);var u2=this.targetIds;if(Br&3&&CA.length===1)u2[CA[0].identifier]=!0,u2=[CA,CA];else{var uH,ET=Array.prototype.slice.call(AU.targetTouches,0),Mg=Array.prototype.slice.call(AU.changedTouches,0),$K=[];if(Br===1)for(CA=0,uH=ET.length;CA<uH;CA++)u2[ET[CA].identifier]=!0;CA=0;for(uH=Mg.length;CA<uH;CA++)u2[Mg[CA].identifier]&&$K.push(Mg[CA]),Br&12&&
delete u2[Mg[CA].identifier];u2=$K.length?[z(ET.concat($K),"identifier",!0),$K]:void 0}u2&&this.callback(this.manager,Br,{pointers:u2[0],changedPointers:u2[1],pointerType:"touch",srcEvent:AU})}});
w(z8,x,{handler:function(AU,Br,CA){var u2=CA.pointerType=="mouse";if(CA.pointerType=="touch")this.mouse.allow=!1;else if(u2&&!this.mouse.allow)return;Br&12&&(this.mouse.allow=!0);this.callback(AU,Br,CA)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var P6=t(FT.style,"touchAction"),wL=P6!==K;GV.prototype={set:function(AU){AU=="compute"&&(AU=this.compute());wL&&(this.manager.element.style[P6]=AU);this.actions=AU.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var AU=[];O(this.manager.recognizers,function(Br){n(Br.options.enable,[Br])&&(AU=AU.concat(Br.getTouchAction()))});
return ei(AU.join(" "))},
preventDefaults:function(AU){if(!wL){var Br=AU.srcEvent;AU=AU.offsetDirection;if(this.manager.session.prevented)Br.preventDefault();else{var CA=this.actions,u2=CA.indexOf("none")>-1,uH=CA.indexOf("pan-y")>-1;CA=CA.indexOf("pan-x")>-1;if(u2||uH&&CA||uH&&AU&6||CA&&AU&24)return this.preventSrc(Br)}}},
preventSrc:function(AU){this.manager.session.prevented=!0;AU.preventDefault()}};
Hr.prototype={defaults:{},set:function(AU){N(this.options,AU);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(AU){if(a(AU,"recognizeWith",this))return this;var Br=this.simultaneous;AU=kK(AU,this);Br[AU.id]||(Br[AU.id]=AU,AU.recognizeWith(this));return this},
dropRecognizeWith:function(AU){if(a(AU,"dropRecognizeWith",this))return this;AU=kK(AU,this);delete this.simultaneous[AU.id];return this},
requireFailure:function(AU){if(a(AU,"requireFailure",this))return this;var Br=this.requireFail;AU=kK(AU,this);M(Br,AU)===-1&&(Br.push(AU),AU.requireFailure(this));return this},
dropRequireFailure:function(AU){if(a(AU,"dropRequireFailure",this))return this;AU=kK(AU,this);AU=M(this.requireFail,AU);AU>-1&&this.requireFail.splice(AU,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(AU){return!!this.simultaneous[AU.id]},
emit:function(AU){function Br(uH){CA.manager.emit(CA.options.event+(uH?u2&16?"cancel":u2&8?"end":u2&4?"move":u2&2?"start":"":""),AU)}
var CA=this,u2=this.state;u2<8&&Br(!0);Br();u2>=8&&Br(!0)},
tryEmit:function(AU){if(this.canEmit())return this.emit(AU);this.state=32},
canEmit:function(){for(var AU=0;AU<this.requireFail.length;AU++)if(!(this.requireFail[AU].state&33))return!1;return!0},
recognize:function(AU){AU=N({},AU);n(this.options.enable,[this,AU])?(this.state&56&&(this.state=1),this.state=this.process(AU),this.state&30&&this.tryEmit(AU)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
w(pN,Hr,{defaults:{pointers:1},attrTest:function(AU){var Br=this.options.pointers;return Br===0||AU.pointers.length===Br},
process:function(AU){var Br=this.state,CA=AU.eventType,u2=Br&6;AU=this.attrTest(AU);return u2&&(CA&8||!AU)?Br|16:u2||AU?CA&4?Br|8:Br&2?Br|4:2:32}});
w(bH,pN,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var AU=this.options.direction;if(AU===30)return["none"];var Br=[];AU&6&&Br.push("pan-y");AU&24&&Br.push("pan-x");return Br},
directionTest:function(AU){var Br=this.options,CA=!0,u2=AU.distance,uH=AU.direction,ET=AU.deltaX,Mg=AU.deltaY;uH&Br.direction||(Br.direction&6?(uH=ET===0?1:ET<0?2:4,CA=ET!=this.pX,u2=Math.abs(AU.deltaX)):(uH=Mg===0?1:Mg<0?8:16,CA=Mg!=this.pY,u2=Math.abs(AU.deltaY)));AU.direction=uH;return CA&&u2>Br.threshold&&uH&Br.direction},
attrTest:function(AU){return pN.prototype.attrTest.call(this,AU)&&(this.state&2||!(this.state&2)&&this.directionTest(AU))},
emit:function(AU){this.pX=AU.deltaX;this.pY=AU.deltaY;var Br=v0(AU.direction);Br&&this.manager.emit(this.options.event+Br,AU);this._super.emit.call(this,AU)}});
w(n1,pN,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(AU){return this._super.attrTest.call(this,AU)&&(Math.abs(AU.scale-1)>this.options.threshold||this.state&2)},
emit:function(AU){this._super.emit.call(this,AU);AU.scale!==1&&this.manager.emit(this.options.event+(AU.scale<1?"in":"out"),AU)}});
w(qf,Hr,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(AU){var Br=this.options,CA=AU.pointers.length===Br.pointers,u2=AU.distance<Br.threshold,uH=AU.deltaTime>Br.time;this._input=AU;if(!u2||!CA||AU.eventType&12&&!uH)this.reset();else if(AU.eventType&1)this.reset(),this._timer=m(function(){this.state=8;this.tryEmit()},Br.time,this);
else if(AU.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(AU){this.state===8&&(AU&&AU.eventType&4?this.manager.emit(this.options.event+"up",AU):(this._input.timeStamp=Iu(),this.manager.emit(this.options.event,this._input)))}});
w(hU,pN,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(AU){return this._super.attrTest.call(this,AU)&&(Math.abs(AU.rotation)>this.options.threshold||this.state&2)}});
w(we,pN,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return bH.prototype.getTouchAction.call(this)},
attrTest:function(AU){var Br=this.options.direction;if(Br&30)var CA=AU.velocity;else Br&6?CA=AU.velocityX:Br&24&&(CA=AU.velocityY);return this._super.attrTest.call(this,AU)&&Br&AU.direction&&yO(CA)>this.options.velocity&&AU.eventType&4},
emit:function(AU){var Br=v0(AU.direction);Br&&this.manager.emit(this.options.event+Br,AU);this.manager.emit(this.options.event,AU)}});
w(xK,Hr,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(AU){var Br=this.options,CA=AU.pointers.length===Br.pointers,u2=AU.distance<Br.threshold,uH=AU.deltaTime<Br.time;this.reset();if(AU.eventType&1&&this.count===0)return this.failTimeout();if(u2&&uH&&CA){if(AU.eventType!=4)return this.failTimeout();CA=this.pTime?AU.timeStamp-this.pTime<Br.interval:!0;u2=!this.pCenter||kp(this.pCenter,AU.center)<Br.posThreshold;this.pTime=AU.timeStamp;this.pCenter=AU.center;u2&&CA?this.count+=1:this.count=1;this._input=AU;if(this.count%Br.taps===0)return this.hasRequireFailures()?
(this._timer=m(function(){this.state=8;this.tryEmit()},Br.interval,this),2):8}return 32},
failTimeout:function(){this._timer=m(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))}});
UK.VERSION="2.0.2";UK.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[hU,{enable:!1}],[n1,{enable:!1},["rotate"]],[we,{direction:6}],[bH,{direction:6},["swipe"]],[xK],[xK,{event:"doubletap",taps:2},["tap"]],[qf]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};YK.prototype={set:function(AU){N(this.options,AU);return this},
stop:function(AU){this.session.stopped=AU?2:1},
recognize:function(AU){var Br=this.session;if(!Br.stopped){this.touchAction.preventDefaults(AU);var CA=this.recognizers,u2=Br.curRecognizer;if(!u2||u2&&u2.state&8)u2=Br.curRecognizer=null;for(var uH=0,ET=CA.length;uH<ET;uH++){var Mg=CA[uH];Br.stopped===2||u2&&Mg!=u2&&!Mg.canRecognizeWith(u2)?Mg.reset():Mg.recognize(AU);!u2&&Mg.state&14&&(u2=Br.curRecognizer=Mg)}}},
get:function(AU){if(AU instanceof Hr)return AU;for(var Br=this.recognizers,CA=0;CA<Br.length;CA++)if(Br[CA].options.event==AU)return Br[CA];return null},
add:function(AU){if(a(AU,"add",this))return this;var Br=this.get(AU.options.event);Br&&this.remove(Br);this.recognizers.push(AU);AU.manager=this;this.touchAction.update();return AU},
remove:function(AU){if(a(AU,"remove",this))return this;var Br=this.recognizers;AU=this.get(AU);Br.splice(M(Br,AU),1);this.touchAction.update();return this},
on:function(AU,Br){var CA=this.handlers;O(p(AU),function(u2){CA[u2]=CA[u2]||[];CA[u2].push(Br)});
return this},
off:function(AU,Br){var CA=this.handlers;O(p(AU),function(u2){Br?CA[u2].splice(M(CA[u2],Br),1):delete CA[u2]});
return this},
emit:function(AU,Br){this.options.domEvents&&de(AU,Br);var CA=this.handlers[AU]&&this.handlers[AU].slice();if(CA&&CA.length){Br.type=AU;Br.preventDefault=function(){Br.srcEvent.preventDefault()};
AU=0;for(var u2=CA.length;AU<u2;AU++)CA[AU](Br)}},
destroy:function(){this.element&&en(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
N(UK,{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:YK,Input:x,TouchAction:GV,Recognizer:Hr,AttrRecognizer:pN,Tap:xK,Pan:bH,Swipe:we,Pinch:n1,Rotate:hU,Press:qf,on:U,off:k,each:O,merge:q,extend:N,inherit:w,bindFn:F,prefixed:t});
I[Z]=UK})(window,document,"Hammer");
return window.Hammer}.call({});
c.DOCUMENT=G;G[CJe]=c}return G[CJe]};/*

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

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
*/
_.SD({_template:function(){if(fnB!==void 0)return fnB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;ime===void 0&&(ime=document.createElement("template"));var R=ime;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return fnB=G},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.IH,_.X3],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(G){this.$.textarea.selectionStart=G},set selectionEnd(G){this.$.textarea.selectionEnd=G},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var G=this.$.textarea.validity.valid;G&&(this.required&&this.value===""?G=!1:this.hasValidator()&&(G=_.IH.validate.call(this,this.value)));this.invalid=!G;this.fire("iron-input-validate");return G},
_bindValueChanged:function(G){this.value=G},
_valueChanged:function(G){var c=this.textarea;c&&(c.value!==G&&(c.value=G||G===0?G:""),this.bindValue=G,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(G){var c=_.qy(G).path;this.value=c?c[0].value:G.target.value},
_constrain:function(G){var c;G=G||[""];for(c=this.maxRows>0&&G.length>this.maxRows?G.slice(0,this.maxRows):G.slice(0);this.rows>0&&c.length<this.rows;)c.push("");return c.join("\n")+"\u00a0"},
_valueForMirror:function(){var G=this.textarea;if(G)return this.tokens=G&&G.value?G.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var B1K;var r52;_.SD({_template:function(){if(r52!==void 0)return r52;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
var c=G.content,I=c.insertBefore;B1K===void 0&&(B1K=document.createElement("template"));var R=B1K;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return r52=G},
is:"tp-yt-iron-collapse",behaviors:[_.Zu],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(G,c){G=G==="auto"?"":G;c=c&&!this.noAnimation&&this.isAttached&&this._desiredSize!==G;this._desiredSize=G;this._updateTransition(!1);c&&(c=this._calcSize(),G===""&&(this.style[this._dimensionMax]="",G=this._calcSize()),this.style[this._dimensionMax]=c,this.scrollTop=this.scrollTop,this._updateTransition(!0),c=G!==c);this.style[this._dimensionMax]=G;c||this._transitionEnd()},
enableTransition:function(G){_.Hw._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!G},
_updateTransition:function(G){this.style.transitionDuration=G&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(G){_.qy(G).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var jbK;var x00;var t1i=void 0,hdp={properties:{sizingTarget:{type:Object,value:function(){var G;return(G=this.hostElement)!=null?G:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1},addSpacing:{type:Boolean,value:!1}},get _defaultPositionTarget(){var G,
c=_.qy((G=this.hostElement)!=null?G:this).parentNode;c&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(c=c.host);return c},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var G;this._memoizedIsRTL=window.getComputedStyle((G=this.hostElement)!=
null?G:this).direction=="rtl"}return this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var G;window.getComputedStyle((G=this.hostElement)!=null?G:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var G,c=window.getComputedStyle((G=this.hostElement)!=null?G:this);G=window.getComputedStyle(this.sizingTarget);var I,R,Z;this._fitInfo={inlineStyle:{top:((I=this.hostElement)!=null?I:this).style.top||"",left:((R=this.hostElement)!=null?R:this).style.left||"",position:((Z=this.hostElement)!=null?Z:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:c.top!=="auto"?"top":c.bottom!=="auto"?"bottom":null,horizontally:c.left!=="auto"?"left":c.right!=="auto"?"right":null},sizedBy:{height:G.maxHeight!=="none",width:G.maxWidth!=="none",minWidth:parseInt(G.minWidth,10)||0,minHeight:parseInt(G.minHeight,10)||0},margin:{top:parseInt(c.marginTop,10)||0,right:parseInt(c.marginRight,10)||0,bottom:parseInt(c.marginBottom,10)||0,left:parseInt(c.marginLeft,10)||0}}}},
resetFit:function(){var G=this._fitInfo||{},c;for(c in G.sizerInlineStyle)this.sizingTarget.style[c]=G.sizerInlineStyle[c];for(c in G.inlineStyle){var I=void 0;((I=this.hostElement)!=null?I:this).style[c]=G.inlineStyle[c]}this._fitInfo=null},
refit:function(){var G=this.sizingTarget.scrollLeft,c=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=G;this.sizingTarget.scrollTop=c},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var G;((G=this.hostElement)!=null?G:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var c;((c=this.hostElement)!=null?c:this).style.left="0px";var I;((I=this.hostElement)!=null?I:this).style.top="0px";var R,Z=((R=this.hostElement)!=null?R:this).getBoundingClientRect();I=this.__getNormalizedRect(this.positionTarget);R=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(R={left:R.left+24,right:R.right-24,top:R.top+24,bottom:R.bottom-24});if(this.expandSizingTargetForScrollbars){var K=this.sizingTarget.offsetWidth;var m=this.sizingTarget.offsetHeight;var a=this.sizingTarget.clientWidth;var O=this.sizingTarget.clientHeight}G=this._fitInfo.margin;var N={width:Z.width+G.left+G.right,height:Z.height+G.top+G.bottom};c=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,N,Z,I,R);this.addSpacing&&(I.left-N.width===c.left?c.left-=8:I.top-N.height===c.top?c.top-=
8:I.right===c.left?c.left+=8:I.bottom===c.top&&(c.top+=8));N=c.left+G.left;var q=c.top+G.top;I=Math.min(R.right-G.right,N+Z.width);var w=Math.min(R.bottom-G.bottom,q+Z.height);N=Math.max(R.left+G.left,Math.min(N,I-this._fitInfo.sizedBy.minWidth));q=Math.max(R.top+G.top,Math.min(q,w-this._fitInfo.sizedBy.minHeight));I=Math.max(I-N,this._fitInfo.sizedBy.minWidth);w=Math.max(w-q,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=I+"px";this.sizingTarget.style.maxHeight=w+"px";N-=Z.left;
Z=q-Z.top;var F;((F=this.hostElement)!=null?F:this).style.left=N+"px";var n;((n=this.hostElement)!=null?n:this).style.top=Z+"px";if(this.expandSizingTargetForScrollbars){F=this.sizingTarget.offsetHeight;m=F-this.sizingTarget.clientHeight-(m-O);if(m>0){this.sizingTarget.style.maxHeight=Math.min(R.height-G.top-G.bottom,w+m)+"px";m=this.sizingTarget.offsetHeight;O=m-F;var U;c.verticalAlign==="top"?U=Z:c.verticalAlign==="middle"?U=Z-O/2:c.verticalAlign==="bottom"&&(U=Z-O);U=Math.max(R.top+G.top,Math.min(U,
R.bottom-G.bottom-m));var k;((k=this.hostElement)!=null?k:this).style.top=U+"px"}U=this.sizingTarget.offsetWidth;K=U-this.sizingTarget.clientWidth-(K-a);if(K>0){t1i!==void 0?a=t1i:(a=document.createElement("div"),Object.assign(a.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),k=document.createElement("div"),k.style.width="200px",k.style.height="200px",a.appendChild(k),document.body.appendChild(a),t1i=Math.abs(a.offsetWidth-100)>1?a.offsetWidth-a.clientWidth:
0,document.body.removeChild(a),a=t1i);this.sizingTarget.style.maxWidth=Math.min(R.width-G.left-G.right,I+K-a)+"px";K=this.sizingTarget.offsetWidth+a;a=K-U;var p;c.horizontalAlign==="left"?p=N:c.horizontalAlign==="center"?p=N-a/2:c.horizontalAlign==="right"&&(p=N-a);p=Math.max(R.left+G.left,Math.min(p,R.right-G.right-K));var M;((M=this.hostElement)!=null?M:this).style.left=p+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var G=this._fitInfo;if(!G.positionedBy.vertically){var c;((c=this.hostElement)!=null?c:this).style.position="fixed";var I;((I=this.hostElement)!=null?I:this).style.top="0px"}if(!G.positionedBy.horizontally){var R;((R=this.hostElement)!=null?R:this).style.position="fixed";var Z;((Z=this.hostElement)!=null?Z:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var K;c=((K=this.hostElement)!=null?K:this).getBoundingClientRect();
G.sizedBy.height||this.__sizeDimension(c,G.positionedBy.vertically,"top","bottom","Height");G.sizedBy.width||this.__sizeDimension(c,G.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(G,c,I,R,Z){this.__sizeDimension(G,c,I,R,Z)},
__sizeDimension:function(G,c,I,R,Z){var K=this._fitInfo,m=this.__getNormalizedRect(this.fitInto);m=Z==="Width"?m.width:m.height;G=(c=c===R)?m-G[R]:G[I];I=K.margin[c?I:R];R="offset"+Z;var a;K=((a=this.hostElement)!=null?a:this)[R]-this.sizingTarget[R];this.sizingTarget.style["max"+Z]=m-I-G-K+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var G=this._fitInfo.positionedBy;if(!G.vertically||!G.horizontally){var c;((c=this.hostElement)!=null?c:this).style.position="fixed";if(!G.vertically){var I;((I=this.hostElement)!=null?I:this).style.top="0px"}if(!G.horizontally){var R;((R=this.hostElement)!=null?R:this).style.left="0px"}var Z;c=((Z=this.hostElement)!=null?Z:this).getBoundingClientRect();Z=this.__getNormalizedRect(this.fitInto);if(!G.vertically){I=Z.top-c.top+(Z.height-
c.height)/2;var K;((K=this.hostElement)!=null?K:this).style.top=I+"px"}if(!G.horizontally){G=Z.left-c.left+(Z.width-c.width)/2;var m;((m=this.hostElement)!=null?m:this).style.left=G+"px"}}}},
__getNormalizedRect:function(G){return G===document.documentElement||G===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:G.getBoundingClientRect()},
__getOffscreenArea:function(G,c,I){return Math.abs(Math.min(0,G.top)+Math.min(0,I.bottom-(G.top+c.height)))*c.width+Math.abs(Math.min(0,G.left)+Math.min(0,I.right-(G.left+c.width)))*c.height},
__getPosition:function(G,c,I,R,Z,K){var m=[{verticalAlign:"top",horizontalAlign:"left",top:Z.top+this.verticalOffset,left:Z.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:Z.top+this.verticalOffset,left:Z.right-I.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:Z.bottom-I.height-this.verticalOffset,left:Z.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:Z.bottom-I.height-this.verticalOffset,left:Z.right-I.width-
this.horizontalOffset}];if(this.noOverlap){for(var a=0,O=m.length;a<O;a++){var N={},q;for(q in m[a])N[q]=m[a][q];m.push(N)}m[0].top=m[1].top+=Z.height;m[2].top=m[3].top-=Z.height;m[4].left=m[6].left+=Z.width;m[5].left=m[7].left-=Z.width}c=c==="auto"?null:c;G=G==="auto"?null:G;G&&G!=="center"||(m.push({verticalAlign:"top",horizontalAlign:"center",top:Z.top+this.verticalOffset+(this.noOverlap?Z.height:0),left:Z.left-R.width/2+Z.width/2+this.horizontalOffset}),m.push({verticalAlign:"bottom",horizontalAlign:"center",
top:Z.bottom-I.height-this.verticalOffset-(this.noOverlap?Z.height:0),left:Z.left-R.width/2+Z.width/2+this.horizontalOffset}));c&&c!=="middle"||(m.push({verticalAlign:"middle",horizontalAlign:"left",top:Z.top-R.height/2+Z.height/2+this.verticalOffset,left:Z.left+this.horizontalOffset+(this.noOverlap?Z.width:0)}),m.push({verticalAlign:"middle",horizontalAlign:"right",top:Z.top-R.height/2+Z.height/2+this.verticalOffset,left:Z.right-I.width-this.horizontalOffset-(this.noOverlap?Z.width:0)}));c==="middle"&&
G==="center"&&m.push({verticalAlign:"middle",horizontalAlign:"center",top:Z.top-R.height/2+Z.height/2+this.verticalOffset,left:Z.left-R.width/2+Z.width/2+this.horizontalOffset});for(a=0;a<m.length;a++){R=m[a];Z=R.verticalAlign===c;O=R.horizontalAlign===G;if(!this.dynamicAlign&&!this.noOverlap&&Z&&O){var w=R;break}N=(!c||Z)&&(!G||O);if(this.dynamicAlign||N){R.offscreenArea=this.__getOffscreenArea(R,I,K);if(R.offscreenArea===0&&N){w=R;break}R.alignsOk=Z+O;w=w||R;Z=R.offscreenArea-w.offscreenArea;if(Z<
0||Z===0&&R.alignsOk>w.alignsOk)w=R}}return w}};/*

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 wA,d0V,CI0;wA=Element.prototype;d0V=wA.matches||wA.matchesSelector||wA.mozMatchesSelector||wA.msMatchesSelector||wA.oMatchesSelector||wA.webkitMatchesSelector;CI0=function(){};
_.X7A=function(G){var c=HmA,I=[];return c._collectTabbableNodes(G,I)?c._sortByTabIndex(I):I};
_.P=CI0.prototype;_.P.isFocusable=function(G){return d0V.call(G,"input, select, textarea, button, object")?d0V.call(G,":not([disabled])"):d0V.call(G,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.P._normalizedTabIndex=function(G){return this.isFocusable(G)?(G=G.getAttribute("tabindex")||0,Number(G)):-1};
_.P._collectTabbableNodes=function(G,c){if(G.nodeType!==Node.ELEMENT_NODE||!this._isVisible(G))return!1;var I=this._normalizedTabIndex(G),R=I>0;I>=0&&c.push(G);if(G.localName==="content"||G.localName==="slot")I=_.qy(G).getDistributedNodes();else{var Z;I=((Z=_.qy(G).shadowRoot)!=null?Z:_.qy(G.root||G)).children}for(G=0;G<I.length;G++)R=this._collectTabbableNodes(I[G],c)||R;return R};
_.P._isVisible=function(G){var c=G.style;return c.visibility!=="hidden"&&c.display!=="none"?(c=window.getComputedStyle(G),c.visibility!=="hidden"&&c.display!=="none"):!1};
_.P._sortByTabIndex=function(G){var c=G.length;if(c<2)return G;var I=Math.ceil(c/2);c=this._sortByTabIndex(G.slice(0,I));G=this._sortByTabIndex(G.slice(I));return this._mergeSortByTabIndex(c,G)};
_.P._mergeSortByTabIndex=function(G,c){for(var I=[];G.length>0&&c.length>0;)this._hasLowerTabOrder(G[0],c[0])?I.push(c.shift()):I.push(G.shift());return I.concat(G,c)};
_.P._hasLowerTabOrder=function(G,c){G=Math.max(G.tabIndex,0);c=Math.max(c.tabIndex,0);return G===0||c===0?c>G:G>c};
var HmA=new CI0;var y5N;var gq0;_.SD({_template:function(){if(gq0!==void 0)return gq0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;y5N===void 0&&(y5N=document.createElement("template"));var R=y5N;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return gq0=G},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.qy(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.qy(this.parentNode).removeChild(this)},
_onTransitionend:function(G){G&&G.target===this&&this.complete()},
_openedChanged:function(G){G?this.prepare():(G=window.getComputedStyle(this),G.transitionDuration!=="0s"&&G.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var FR=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;ha(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)};
FR.prototype._bringOverlayAtIndexToFront=function(G){var c=this._overlays[G];if(c){var I=this._overlays.length-1,R=this._overlays[I];R&&this._shouldBeBehindOverlay(c,R)&&I--;if(!(G>=I)){R=Math.max(this._getZ(_.YFi(this)),this._minimumZ);for(this._getZ(c)<=R&&this._applyOverlayZ(c,R);G<I;)this._overlays[G]=this._overlays[G+1],G++;this._overlays[I]=c}}};
FR.prototype.addOverlay=function(G){var c=this._overlays.indexOf(G);if(c>=0)this._bringOverlayAtIndexToFront(c);else{c=this._overlays.length;var I=this._overlays[c-1],R=Math.max(this._getZ(I),this._minimumZ),Z=this._getZ(G);I&&this._shouldBeBehindOverlay(G,I)&&(this._applyOverlayZ(I,R),c--,R=Math.max(this._getZ(this._overlays[c-1]),this._minimumZ));Z<=R&&this._applyOverlayZ(G,R);this._overlays.splice(c,0,G)}this.trackBackdrop()};
FR.prototype.removeOverlay=function(G){G=this._overlays.indexOf(G);G!==-1&&(this._overlays.splice(G,1),this.trackBackdrop())};
_.YFi=function(G){return G._overlays[G._overlays.length-1]};
_.P=FR.prototype;_.P.trackBackdrop=function(){var G=this._overlayWithBackdrop();if(G||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(G)-1,this.backdropElement.opened=!!G,this.backdropElement.prepare()};
_.P._overlayWithBackdrop=function(){for(var G=this._overlays.length-1;G>=0;G--)if(this._overlays[G].withBackdrop)return this._overlays[G]};
_.P._getZ=function(G){var c=this._minimumZ;if(G){var I,R,Z=Number(((I=G.hostElement)!=null?I:G).style.zIndex||window.getComputedStyle((R=G.hostElement)!=null?R:G).zIndex);Z===Z&&(c=Z)}return c};
_.P._setZ=function(G,c){var I;((I=G.hostElement)!=null?I:G).style.zIndex=c};
_.P._applyOverlayZ=function(G,c){this._setZ(G,c+2)};
_.P._overlayInPath=function(G){G=G||[];for(var c=0;c<G.length;c++){var I=void 0;if(((I=G[c].polymerController)!=null?I:G[c])._manager===this)return G[c]}};
_.P._onCaptureClick=function(G){var c=this._overlays.length-1;if(c!==-1)for(var I=_.qy(G).path,R,Z;(R=this._overlays[c])&&this._overlayInPath(I)!==((Z=R.hostElement)!=null?Z:R);)if(R._onCaptureClick(G),R.allowClickThrough)c--;else break};
_.P._onCaptureFocus=function(G){var c=_.YFi(this);c&&c._onCaptureFocus(G)};
_.P._onCaptureKeyDown=function(G){var c=_.YFi(this);c&&(_.Ha.keyboardEventMatchesKeys(G,"esc")?c._onCaptureEsc(G):_.Ha.keyboardEventMatchesKeys(G,"tab")&&c._onCaptureTab(G))};
_.P._shouldBeBehindOverlay=function(G,c){return!G.alwaysOnTop&&c.alwaysOnTop&&!c.contains(G)};
_.Nh.Object.defineProperties(FR.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var G=document.activeElement;G&&G instanceof Element!==!1||(G=document.body);for(;G.root&&_.qy(G.root).activeElement;)G=_.qy(G.root).activeElement;return G}}});
_.nV=new FR;var kZO=0,sk0=0,LBr=null,AkC=[],wq=["wheel","mousewheel","DOMMouseScroll"],$7f;_.v("web_no_lock_on_touchstart_killswitch")&&(wq.push("touchstart"),wq.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;_.vp={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:_.nV},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var G;return this._focusedChild||_.qy((G=this.hostElement)!=null?G:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var G;return _.X7A((G=this.hostElement)!=null?G:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var G;this._observer=_.qy((G=this.hostElement)!=null?G:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var G;_.qy((G=this.hostElement)!=null?G:this).unobserveNodes(this._observer)}this._observer=null;for(var c in this.__rafs)this.__rafs[c]!==null&&cancelAnimationFrame(this.__rafs[c]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(G){this.fire("iron-overlay-canceled",G,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var G;((G=this.hostElement)!=null?G:this).style.outline="none";var c;((c=this.hostElement)!=null?c:this).style.display="none"}},
_openedChanged:function(G){if(G){var c;((c=this.hostElement)!=null?c:this).removeAttribute("aria-hidden")}else{var I;((I=this.hostElement)!=null?I:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var G;if(this.withBackdrop&&!((G=this.hostElement)!=null?G:this).hasAttribute("tabindex")){var c;((c=this.hostElement)!=null?c:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var I;((I=this.hostElement)!=null?I:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var G;((G=this.hostElement)!=null?G:this).style.display="none";var c;((c=this.hostElement)!=null?c:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var G,c;((G=this.hostElement)!=null?G:this).style.transition=((c=this.hostElement)!=null?c:this).style.webkitTransition="none";var I,R;((I=this.hostElement)!=null?I:this).style.transform=((R=this.hostElement)!=null?R:this).style.webkitTransform="none";var Z;((Z=this.hostElement)!=null?Z:this).style.display=""},
_finishPositioning:function(){var G;((G=this.hostElement)!=null?G:this).style.display="none";this.scrollTop=this.scrollTop;var c,I;((c=this.hostElement)!=null?c:this).style.transition=((I=this.hostElement)!=null?I:this).style.webkitTransition="";var R,Z;((R=this.hostElement)!=null?R:this).style.transform=((Z=this.hostElement)!=null?Z:this).style.webkitTransform="";var K;((K=this.hostElement)!=null?K:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var G=this._manager.deepActiveElement,c;if(!(c=G===document.body))a:{for(;G;G=G.assignedSlot||G.parentNode||G.host)if(G===this){c=!0;break a}c=!1}c&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(G){this.noCancelOnOutsideClick||this.cancel(G)},
_onCaptureFocus:function(G){if(this.withBackdrop){var c=_.qy(G).path;c.indexOf(this)===-1?(G.stopPropagation(),this._applyFocus()):this._focusedChild=c[0]}},
_onCaptureEsc:function(G){this.noCancelOnEscKey||this.cancel(G)},
_onCaptureTab:function(G){if(this.withBackdrop){this.__ensureFirstLastFocusables();var c=G.shiftKey,I=c?this.__firstFocusableNode:this.__lastFocusableNode;c=c?this.__lastFocusableNode:this.__firstFocusableNode;if(I===c)I=!0;else{var R=this._manager.deepActiveElement;I=R===I||R===this}I&&(G.preventDefault(),this._focusedChild=c,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var G=this._focusableNodes;this.__firstFocusableNode=G[0];this.__lastFocusableNode=G[G.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(G,c){var I=this.__rafs;I[G]!==null&&cancelAnimationFrame(I[G]);I[G]=requestAnimationFrame(function(){I[G]=null;c.call(this)}.bind(this))},
__updateScrollObservers:function(G,c,I){G&&c&&this.__isValidScrollAction(I)?(I==="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),$7f=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(G=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),G!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(G,1),$7f=_._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(gZ)for(var G=this;G;)G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&G.host&&this.__rootNodes.push(G),G=G.host||G.assignedSlot||G.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(c){c.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(G){G.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(G){return G==="lock"||G==="refit"||G==="cancel"},
__onCaptureScroll:function(G){if(!(this.__isAnimating||_.qy(G).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(G)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.Du=[hdp,_.Zu,_.vp];_.SD({_template:function(){if(x00!==void 0)return x00;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;jbK===void 0&&(jbK=document.createElement("template"));var R=jbK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return x00=G},
is:"tp-yt-iron-dropdown",behaviors:[_.X3,_.Ha,_.Du,NIB],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var G=_.qy(this.$.content).getDistributedNodes(),c=0,I=G.length;c<I;c++)if(G[c].nodeType===Node.ELEMENT_NODE)return G[c]},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(),_.vp._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.vp._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.vp._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var G=this.containedElement,c=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),I=0;I<c.length;I++)c[I].node=G;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(G){this._readied&&(G?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var G=this.focusTarget||this.containedElement;G&&this.opened&&!this.noAutoFocus?G.focus():_.vp._applyFocus.apply(this,arguments)}});var GR0;var cEe;/*

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 IrV=new _.GE({type:"iconset"});
_.SD({_template:function(){if(cEe!==void 0)return cEe;var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;GR0===void 0&&(GR0=document.createElement("template"));
var R=GR0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return cEe=G},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(G){G=(G||"").split(":");this._iconName=G.pop();this._iconsetName=G.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.qy(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=IrV.byKey(this._iconsetName)){var G=this._iconset.applyIcon(this,this._iconName,this.theme);G&&G.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.qy(this.root).appendChild(this._img)}});var Rb2;var ZUe;_.SD({_template:function(){if(ZUe!==void 0)return ZUe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
var c=G.content,I=c.insertBefore;Rb2===void 0&&(Rb2=document.createElement("template"));var R=Rb2;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return ZUe=G},
is:"tp-yt-iron-input",behaviors:[_.IH],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(){_.qe.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.qy(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.qy(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var G=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":G=/[0-9.,e-]/}return G},_bindValueChanged:function(G,c){c&&(G===void 0?c.value=null:G!==c.value&&(this.inputElement.value=G),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:G}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(G){var c=G.keyCode==19||G.keyCode==20||G.keyCode==45||G.keyCode==46||G.keyCode==144||G.keyCode==145||G.keyCode>32&&G.keyCode<41||G.keyCode>111&&G.keyCode<124;return!(G.keyCode==8||G.keyCode==9||G.keyCode==13||G.keyCode==27)&&!(G.charCode==0&&c)},
_onKeypress:function(G){if(this.allowedPattern||this.inputElement.type==="number"){var c=this._patternRegExp;if(c&&!(G.metaKey||G.ctrlKey||G.altKey)){this._patternAlreadyChecked=!0;var I=String.fromCharCode(G.charCode);this._isPrintable(G)&&!c.test(I)&&(G.preventDefault(),this._announceInvalidCharacter("Invalid character "+I+" not entered."))}}},
_checkPatternValidity:function(){var G=this._patternRegExp;if(!G)return!0;for(var c=0;c<this.inputElement.value.length;c++)if(!G.test(this.inputElement.value[c]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var G=this.inputElement.checkValidity();G&&(this.required&&this.bindValue===""?G=!1:this.hasValidator()&&(G=_.IH.validate.call(this,this.bindValue)));this.invalid=!G;this.fire("iron-input-validate");return G},
_announceInvalidCharacter:function(G){this.fire("iron-announce",{text:G})},
_computeValue:function(G){return G}});var KdK;var PtA;var QK2=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),mUK=QK2&&QK2[1]>=8;
_.SD({_template:function(){if(PtA!==void 0)return PtA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;KdK===void 0&&(KdK=document.createElement("template"));var R=KdK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return PtA=G},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[GxA,_.Zu,_.eVi,CDe],_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 _.qy(_.qy(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var G=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,G-this._physicalCount)},set _virtualStart(G){G=this._clamp(G,0,this._maxVirtualStart);this.grid&&(G-=G%this._itemsPerRow);this._virtualStartVal=G},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(G){G%=this._physicalCount;G<0&&(G=this._physicalCount+G);this.grid&&(G-=G%this._itemsPerRow);this._physicalStartVal=G},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(G){this._physicalCountVal=G},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var G=this._firstVisibleIndexVal;if(G==null){var c=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
G=this._iterateItems(function(I,R){c+=this._getPhysicalSizeIncrement(I);if(c>this._scrollPosition)return this.grid?R-R%this._itemsPerRow:R;if(this.grid&&this._virtualCount-1===R)return R-R%this._itemsPerRow})||0}return G},
get lastVisibleIndex(){var G=this._lastVisibleIndexVal;if(G==null){if(this.grid)G=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var c=this._physicalTop+this._scrollOffset;this._iterateItems(function(I,R){c<this._scrollBottom&&(G=R);c+=this._getPhysicalSizeIncrement(I)})}this._lastVisibleIndexVal=G}return G},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.AN);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(G){this.style.webkitOverflowScrolling=G===this?"touch":"";this.style.overflowY=G===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.AN)},
updateViewportBoundaries:function(){var G=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(G["padding-top"],10);this._isRTL=G.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var G=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),c=G-this._scrollPosition,I=c>=0;this._scrollPosition=G;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(c)>this._physicalSize&&this._physicalSize>0?(c-=this._scrollOffset,I=Math.round(c/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=I,this._physicalStart+=I,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(G=this._getReusables(I),I?(this._physicalTop=G.physicalTop,this._virtualStart+=G.indexes.length,this._physicalStart+=G.indexes.length):(this._virtualStart=this._virtualStart-G.indexes.length,this._physicalStart=this._physicalStart-G.indexes.length),this._update(G.indexes,I?null:G.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),HN))},
_getReusables:function(G){var c=[],I=this._hiddenContentSize*this._ratio,R=this._virtualStart,Z=this._virtualEnd,K=this._physicalCount,m=this._physicalTop+this._scrollOffset;var a=this._physicalBottom+this._scrollOffset;var O=this._scrollPosition,N=this._scrollBottom;if(G){var q=this._physicalStart;a=O-m}else q=this._physicalEnd,a-=N;for(;;){var w=this._getPhysicalSizeIncrement(q);a-=w;if(c.length>=K||a<=I)break;if(G){if(Z+c.length+1>=this._virtualCount)break;if(m+w>=O-this._scrollOffset)break;c.push(q);
m+=w;q=(q+1)%K}else{if(R-c.length<=0)break;if(m+this._physicalSize-w<=N)break;c.push(q);m-=w;q=q===0?K-1:q-1}}return{indexes:c,physicalTop:m-this._scrollOffset}},
_update:function(G,c){if(!(G&&G.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(G);this._updateMetrics(G);if(c)for(;c.length;)G=c.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(G);this._positionItems();this._updateScrollerSize()}},
_createPool:function(G){this._ensureTemplatized();var c,I=Array(G);for(c=0;c<G;c++){var R=this.stamp(null);I[c]=R.root.querySelector("*");this._itemsParent.appendChild(R.root)}return I},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(G){G=this._clamp(this._physicalCount+G,3,this._virtualCount-this._virtualStart);G=this._convertIndexToCompleteRow(G);if(this.grid){var c=G%this._itemsPerRow;c&&G-c<=this._physicalCount&&(G+=this._itemsPerRow);G-=c}G-=this._physicalCount;c=Math.round(this._physicalCount*.5);if(!(G<0)){if(G>0){c=window.performance.now();[].push.apply(this._physicalItems,this._createPool(G));for(var I=0;I<G;I++)this._physicalSizes.push(0);this._physicalCount+=G;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=G);this._update();this._templateCost=(window.performance.now()-c)/G;c=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||c===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,c)),$YB):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,c),HN))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var G=this._getReusables(!0);this._physicalTop=G.physicalTop;this._virtualStart+=G.indexes.length;this._physicalStart+=G.indexes.length;this._update(G.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var G={__key__:!0};G[this.as]=!0;G[this.indexAs]=!0;G[this.selectedAs]=!0;G.tabIndex=!0;this._instanceProps=G;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(G,c){typeof c!=="undefined"&&(this.notifyResize(),_.Jk(),G&&this._updateGridMetrics())},
_itemsChanged:function(G){if(G.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.AN);else if(G.path==="items.splices"){this._adjustVirtualIndex(G.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(G.value.indexSplices.some(function(I){return I.addedCount>0||I.removed.length>0})){var c=this._getActiveElement();
this.contains(c)&&c.blur()}G=G.value.indexSplices.some(function(I){return I.index+I.addedCount>=this._virtualStart&&I.index<=this._virtualEnd},this);
this._isClientFull()&&!G||this._debounce("_render",this._render,_.AN)}else G.path!=="items.length"&&this._forwardItemPath(G.path,G.value)},
_forwardItemPath:function(G,c){G=G.slice(6);var I=G.indexOf(".");I===-1&&(I=G.length);var R,Z=this.modelForElement(this._offscreenFocusedItem),K=parseInt(G.substring(0,I),10);if(R=this._isIndexRendered(K)){var m=this._getPhysicalIndex(K);var a=this.modelForElement(this._physicalItems[m])}else Z&&(a=Z);a&&a[this.indexAs]===K&&(G=G.substring(I+1),G=this.as+(G?"."+G:""),a._setPendingPropertyOrPath(G,c,!1,!0),a._flushProperties&&a._flushProperties(),R&&(this._updateMetrics([m]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(G){G.forEach(function(c){c.removed.forEach(this._removeItem,this);c.index<this._virtualStart&&(c=Math.max(c.addedCount-c.removed.length,c.index-this._virtualStart),this._virtualStart+=c,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=c))},this)},
_removeItem:function(G){this.$.selector.deselect(G);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===G&&this._removeFocusedItem()},
_iterateItems:function(G,c){var I,R;if(arguments.length===2&&c)for(R=0;R<c.length;R++){var Z=c[R];var K=this._computeVidx(Z);if((I=G.call(this,Z,K))!=null)return I}else{Z=this._physicalStart;for(K=this._virtualStart;Z<this._physicalCount;Z++,K++)if((I=G.call(this,Z,K))!=null)return I;for(Z=0;Z<this._physicalStart;Z++,K++)if((I=G.call(this,Z,K))!=null)return I}},
_computeVidx:function(G){return G>=this._physicalStart?this._virtualStart+(G-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+G},
_assignModels:function(G){this._iterateItems(function(c,I){var R=this._physicalItems[c],Z=this.items&&this.items[I];if(Z!=null){var K=this.modelForElement(R);K.__key__=null;this._forwardProperty(K,this.as,Z);this._forwardProperty(K,this.selectedAs,this.$.selector.isSelected(Z));this._forwardProperty(K,this.indexAs,I);this._forwardProperty(K,"tabIndex",this._focusedVirtualIndex===I?0:-1);this._physicalIndexForKey[K.__key__]=c;K._flushProperties&&K._flushProperties(!0);R.removeAttribute("hidden")}else R.setAttribute("hidden",
"")},G)},
_updateMetrics:function(G){_.Jk();var c=0,I=0,R=this._physicalAverageCount,Z=this._physicalAverage;this._iterateItems(function(K){I+=this._physicalSizes[K];this._physicalSizes[K]=this._physicalItems[K].offsetHeight;c+=this._physicalSizes[K];this._physicalAverageCount+=this._physicalSizes[K]?1:0},G);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(I=this._itemsPerRow===1?I:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+c-I,this._itemsPerRow=1);this._physicalAverageCount!==R&&(this._physicalAverage=Math.round((Z*R+c)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var G=this._physicalTop;if(this.grid){var c=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(I,R){var Z=Math.floor(R%this._itemsPerRow*this._itemWidth+c);this._isRTL&&(Z*=-1);this.translate3d(Z+"px",G+"px",0,this._physicalItems[I]);this._shouldRenderNextRow(R)&&(G+=this._rowHeight)})}else this._iterateItems(function(I){this.translate3d(0,G+"px",0,this._physicalItems[I]);
G+=this._physicalSizes[I]})},
_getPhysicalSizeIncrement:function(G){return this.grid?this._computeVidx(G)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[G]},
_shouldRenderNextRow:function(G){return G%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var G=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(G!==0){this._physicalTop=this._physicalTop-G;var c=this._scrollPosition;!mUK&&c>0&&this._resetScrollPosition(c-G)}},
_resetScrollPosition:function(G){this.scrollTarget&&G>=0&&(this._scrollPosition=this._scrollTop=G)},
_updateScrollerSize:function(G){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((G=(G=(G=G||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(G){return this.scrollToIndex(this.items.indexOf(G))},
scrollToIndex:function(G){if(!(typeof G!=="number"||G<0||G>this.items.length-1)&&(_.Jk(),this._physicalCount!==0)){G=this._clamp(G,0,this._virtualCount-1);if(!this._isIndexRendered(G)||G>=this._maxVirtualStart)this._virtualStart=this.grid?G-this._itemsPerRow*2:G-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var c=this._physicalStart,I=this._virtualStart,R=0,Z=this._hiddenContentSize;I<G&&
R<=Z;)R+=this._getPhysicalSizeIncrement(c),c=(c+1)%this._physicalCount,I++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+R);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)},_.AN)},
selectItem:function(G){return this.selectIndex(this.items.indexOf(G))},
selectIndex:function(G){if(!(G<0||G>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(G)){var c=this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)]);c&&(c[this.selectedAs]=!0);this.updateSizeForIndex(G)}this.$.selector.selectIndex(G)}},
deselectItem:function(G){return this.deselectIndex(this.items.indexOf(G))},
deselectIndex:function(G){G<0||G>=this._virtualCount||(this._isIndexRendered(G)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)])[this.selectedAs]=!1,this.updateSizeForIndex(G)),this.$.selector.deselectIndex(G))},
toggleSelectionForItem:function(G){return this.toggleSelectionForIndex(this.items.indexOf(G))},
toggleSelectionForIndex:function(G){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(G):this.$.selector.isSelected(this.items[G]))?this.deselectIndex(G):this.selectIndex(G)},
clearSelection:function(){this._iterateItems(function(G){this.modelForElement(this._physicalItems[G])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(G){(G?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(G){var c=this.modelForElement(G.target);if(c){var I=_.qy(G).path[0];G=this._getActiveElement();var R=this._physicalItems[this._getPhysicalIndex(c[this.indexAs])];if(I.localName!=="input"&&I.localName!=="button"&&I.localName!=="select"){I=c.tabIndex;c.tabIndex=-100;var Z=G?G.tabIndex:-1;c.tabIndex=I;G&&R!==G&&R.contains(G)&&Z!==-100||this.toggleSelectionForItem(c[this.as])}}},
_multiSelectionChanged:function(G){this.clearSelection();this.$.selector.multi=G},
updateSizeForItem:function(G){return this.updateSizeForIndex(this.items.indexOf(G))},
updateSizeForIndex:function(G){if(!this._isIndexRendered(G))return null;this._updateMetrics([this._getPhysicalIndex(G)]);this._positionItems();return null},
_manageFocus:function(){var G=this._focusedVirtualIndex;G>=0&&G<this._virtualCount?this._isIndexRendered(G)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(G){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(G/this._itemsPerRow)*this._itemsPerRow:G},
_isIndexRendered:function(G){return G>=this._virtualStart&&G<=this._virtualEnd},
_isIndexVisible:function(G){return G>=this.firstVisibleIndex&&G<=this.lastVisibleIndex},
_getPhysicalIndex:function(G){return(this._physicalStart+(G-this._virtualStart))%this._physicalCount},
focusItem:function(G){this._focusPhysicalItem(G)},
_focusPhysicalItem:function(G){if(!(G<0||G>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(G)||this.scrollToIndex(G);var c=this._physicalItems[this._getPhysicalIndex(G)],I=this.modelForElement(c),R;I.tabIndex=-100;c.tabIndex===-100&&(R=c);R||(R=_.qy(c).querySelector('[tabindex="-100"]'));I.tabIndex=0;this._focusedVirtualIndex=G;R&&R.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var G=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var c=this.stamp(null);this._focusBackfillItem=c.root.querySelector("*");this._itemsParent.appendChild(c.root)}this._offscreenFocusedItem=this._physicalItems[G];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[G]=this._focusBackfillItem;this._focusedPhysicalIndex=G;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var G=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),c=this._physicalItems[G];if(c){var I=this.modelForElement(c),R=this.modelForElement(this._offscreenFocusedItem);I[this.as]===R[this.as]?(this._focusBackfillItem=c,I.tabIndex=-1,this._physicalItems[G]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(G){G=this.modelForElement(G.target);var c=this.modelForElement(this._focusedItem),I=this._offscreenFocusedItem!==null,R=this._focusedVirtualIndex;G&&(c===G?this._isIndexVisible(R)||this.scrollToIndex(R):(this._restoreFocusedItem(),c&&(c.tabIndex=-1),G.tabIndex=0,this._focusedVirtualIndex=R=G[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(R),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],I&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(G){switch(G.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&G.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&G.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(G)}},
_clamp:function(G,c,I){return Math.min(I,Math.max(c,G))},
_debounce:function(G,c,I){this._debouncers=this._debouncers||{};this._debouncers[G]=_.pq(this._debouncers[G],I,c.bind(this));_.M7(this._debouncers[G])},
_forwardProperty:function(G,c,I){G._setPendingProperty(c,I)},
_forwardHostPropV2:function(G,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).forwardHostProp(G,c)},this)},
_notifyInstancePropV2:function(G,c,I){Vhr(this.as,c)&&(G=G[this.indexAs],c==this.as&&(this.items[G]=I),this.notifyPath(Aa(this.as,"items."+G,c),I))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(G,c,I){c.indexOf(this.as+".")===0&&this.notifyPath("items."+G.__key__+"."+c.slice(this.as.length+1),I)},
_forwardParentPath:function(G,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).notifyPath(G,c)},this)},
_forwardParentProp:function(G,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&(this.modelForElement(I)[G]=c)},this)},
_getActiveElement:function(){var G=this._itemsParent.node.domHost;return _.qy(G?G.root:document).activeElement},
_scrollTargetChanged:function(G,c){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(c)if(G==="document")this.scrollTarget=this._doc;else if(typeof G==="string"){var I,R;this.scrollTarget=(c=(R=(I=this.domHost)==null?void 0:I.polymerController)!=null?R:this.domHost)&&c.$?c.$[G]:_.qy(this.ownerDocument).querySelector("#"+G)}else this._isValidScrollTarget()&&(this._oldScrollTarget=G,this._toggleScrollListener(this._shouldHaveListener,G))}});var ar2;var T4K;var OUT=function(G,c,I,R){G-=I;c-=R;return Math.sqrt(G*G+c*c)},ebe=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
SBp.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var pwq=function(G){G.maxRadius=0;G.mouseDownStart=0;G.mouseUpStart=0;G.xStart=0;G.yStart=0;G.xEnd=0;G.yEnd=0;G.containerMetrics=new SBp(G.element)};
MdO.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var G=ebe()-this.mouseDownStart;this.mouseUpStart&&(G-=this.mouseUpElapsed);return G},get mouseUpElapsed(){return this.mouseUpStart?ebe()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var G=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(G*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-G/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var G=this.radius/(this.containerMetrics.size/2);var c=this.xNow-this.containerMetrics.width/2;var I=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+c+"px, "+I+"px)";this.waveContainer.style.transform="translate3d("+c+"px, "+I+"px, 0)";this.wave.style.webkitTransform="scale("+G+","+G+")";this.wave.style.transform="scale3d("+G+","+G+",1)"},
downAction:function(G){var c=this.containerMetrics.width/2,I=this.containerMetrics.height/2;pwq(this);this.mouseDownStart=ebe();this.center?(this.xStart=c,this.yStart=I):(this.xStart=G?G.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=G?G.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=c,this.yEnd=I);G=this.containerMetrics;c=this.xStart;I=this.yStart;this.maxRadius=Math.max(OUT(c,I,0,0),OUT(c,I,
G.width,0),OUT(c,I,0,G.height),OUT(c,I,G.width,G.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=ebe())},
remove:function(){_.qy(_.qy(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.SD({_template:function(){if(T4K!==void 0)return T4K;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;ar2===void 0&&(ar2=document.createElement("template"));var R=ar2;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return T4K=G},
is:"tp-yt-paper-ripple",behaviors:[_.Ha],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(){_.qy(this).parentNode.nodeType==11?this.keyEventTarget=_.qy(this).getOwnerRoot().host:this.keyEventTarget=_.qy(this).parentNode;var G=this.keyEventTarget;this.listen(G,"up","uiUpAction");this.listen(G,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(G){G.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var G=0;G<this.ripples.length;++G)if(!this.ripples[G].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(G){this.noink||this.downAction(G)},
downAction:function(G){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(G),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(G){this.noink||this.upAction(G)},
upAction:function(G){this.holdDown||(this.ripples.forEach(function(c){c.upAction(G)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var G=0;G<this.ripples.length;++G){var c=this.ripples[G];c.isOpacityFullyDecayed&&!c.isRestingAtMaxRadius&&this.removeRipple(c)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var G=new MdO(this);_.qy(this.$.waves).appendChild(G.waveContainer);this.$.background.style.backgroundColor=G.color;this.ripples.push(G);this._setAnimating(!0);return G},
removeRipple:function(G){var c=this.ripples.indexOf(G);c<0||(this.ripples.splice(c,1),G.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var G;for(G=0;G<this.ripples.length;++G){var c=this.ripples[G];c.draw();this.$.background.style.opacity=c.outerOpacity;c.isOpacityFullyDecayed&&!c.isRestingAtMaxRadius&&this.removeRipple(c)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(G,c){c!==void 0&&(G?this.downAction():this.upAction())}});var oH={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(G){yQ._downHandler.call(this,G);this.pressed&&this.ensureRipple(G)},
ensureRipple:function(G){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var c=this._rippleContainer||this.root;c&&_.qy(c).appendChild(this._ripple);if(G){c=_.qy(this._rippleContainer||this);var I=_.qy(G).rootTarget;c.deepContains(I)&&this._ripple.uiDownAction(G)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(G){this.hasRipple()&&(this._ripple.noink=G)}};var N4T={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var G=1;this.disabled?G=0:this.active||this.pressed?G=4:this.receivedFocusFromKeyboard&&(G=3);this._setElevation(G)},
_computeKeyboardClass:function(G){this.toggleClass("keyboard-focus",G)},
_spaceKeyDownHandler:function(G){yQ._spaceKeyDownHandler.call(this,G);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(G){yQ._spaceKeyUpHandler.call(this,G);this.hasRipple()&&this._ripple.uiUpAction()}},lrK=[c7e,
_.X3,oH,N4T];_.qtV={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=G)},
_createRipple:function(){var G=oH._createRipple();G.id="ink";G.setAttribute("center","");G.classList.add("circle");return G}};
_.wLi=[c7e,_.X3,oH,_.qtV];_.Fd0=[_.wLi,ZyA,{_checkedChanged:function(){RVA._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){oH._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var nzV;var vz2;var DUe=function(){};
_.P=DUe.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._createRipple=function(){};
_.P._noinkChanged=function(){};
_.P._computeKeyboardClass=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setElevation=function(){};
DUe=_.SD({_template:function(){if(vz2!==void 0)return vz2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
var c=G.content,I=c.insertBefore;nzV===void 0&&(nzV=document.createElement("template"));var R=nzV;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return vz2=G},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[lrK],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?N4T._calculateElevation.apply(this):this._setElevation(0)}});var oz9;var UUV;var uCA={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(G){_.v("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(G)},
_onDialogClickWrapped:function(G){_.v("dialog_behavior_no_tap_killswitch")||this._onDialogClick(G)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(G,c){c&&(G?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(G){if(G){var c;((c=this.hostElement)!=null?c:this).setAttribute("aria-modal","true")}else{var I;((I=this.hostElement)!=null?I:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(G){this.closingReason=this.closingReason||{};this.closingReason.confirmed=G},
_onDialogClick:function(G){for(var c=_.qy(G).path,I=0,R,Z=c.indexOf((R=this.hostElement)!=null?R:this);I<Z;I++)if(R=c[I],R.hasAttribute&&(R.hasAttribute("dialog-dismiss")||R.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(R.hasAttribute("dialog-confirm"));this.close();G.stopPropagation();break}}},bUi=[_.Du,
uCA];var kRA=document.createElement("template");_.b(kRA,'<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(kRA.content);var sKe=document.createElement("template");_.b(sKe,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(sKe.content);_.SD({_template:function(){if(UUV!==void 0)return UUV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
var c=G.content,I=c.insertBefore;oz9===void 0&&(oz9=document.createElement("template"));var R=oz9;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return UUV=G},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[bUi,NIB],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 Ld2;var AEk;_.SD({_template:function(){if(AEk!==void 0)return AEk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Ld2===void 0&&(Ld2=document.createElement("template"));var R=Ld2;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return AEk=G},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var G,c,I;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)!==!0&&((c=window.ShadyDOM)==null?void 0:c.noPatch)!=="on-demand"||((I=this.__shady_parentNode)==null?void 0:I.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(uCA)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var $U9=_.I3(['<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>']),St9=_.Ym0($U9);St9.setAttribute("style","display: none;");document.head.appendChild(St9.content);var pLB;var Mo9;var VoA;var zbe;_.SD({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[KV],configure:function(G){var c=G.node,I=c.getBoundingClientRect().height;return this._effect=new KeyframeEffect(c,[{height:I/2+"px"},{height:I+"px"}],this.timingFromConfig(G))}});
_.SD({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[KV],configure:function(G){var c=G.node,I=c.getBoundingClientRect().width;return this._effect=new KeyframeEffect(c,[{width:I/2+"px"},{width:I+"px"}],this.timingFromConfig(G))}});
_.SD({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[KV],configure:function(G){var c=G.node,I=c.getBoundingClientRect().width;return this._effect=new KeyframeEffect(c,[{width:I+"px"},{width:I-I/20+"px"}],this.timingFromConfig(G))}});
_.SD({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[KV],configure:function(G){var c=G.node,I=c.getBoundingClientRect().height;this.setPrefixedProperty(c,"transformOrigin","0 0");return this._effect=new KeyframeEffect(c,[{height:I+"px",transform:"translateY(0)"},{height:I/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(G))}});var UA={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Eze=function(){};
_.P=Eze.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._focusBlurHandler=function(){};
_.P._changedControlState=function(){};
_.P._setFocused=function(){};
Eze=_.SD({_template:function(){if(zbe!==void 0)return zbe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;VoA===void 0&&(VoA=document.createElement("template"));var R=VoA;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return zbe=G},
is:"tp-yt-paper-menu-button",behaviors:[_.Ha,_.X3],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:UA.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:UA.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:UA.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var G=_.qy(this.$.content).getDistributedNodes(),c=0,I=G.length;c<I;c++)if(G[c].nodeType===Node.ELEMENT_NODE)return G[c]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(G,c){G?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):c!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(G){_.X3._disabledChanged.apply(this,arguments);G&&this.opened&&this.close()},
__onIronOverlayCanceled:function(G){var c=this.$.trigger;_.qy(G.detail).path.indexOf(c)>-1&&G.preventDefault()}});
Object.keys(UA).forEach(function(G){Eze[G]=UA[G]});var JEV=_.gw.IronButtonState,Wde=(0,_.hk)(HTMLElement);
_.SD({_template:function(){if(Mo9!==void 0)return Mo9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;pLB===void 0&&(pLB=document.createElement("template"));var R=pLB;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return Mo9=G},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[JEV,_.X3,oH,_.Yn,_.IH],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(G){var c=(0,_.VF)(this);c.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:G});c.shadowRoot.appendChild(G);return Wde.prototype._attachDom.call(this,G)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var G=this.contentElement;G&&G.selectedItem&&this._setSelectedItem(G.selectedItem)},
get contentElement(){for(var G=_.qy(this.$.content).getDistributedNodes(),c=0,I=G.length;c<I;c++)if(G[c].nodeType===Node.ELEMENT_NODE)return G[c]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(G){this._setSelectedItem(G.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(G){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)===this&&this.open()},
_selectedItemChanged:function(G){var c="";G?c=G.label||G.getAttribute("label")||G.textContent.trim():c="";this.value=c;this._setSelectedItemLabel(c)},
_computeMenuVerticalOffset:function(G,c){return c?c:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",c=this.contentElement;c&&c.setAttribute("aria-expanded",G)},
_computeLabelClass:function(G,c,I){var R="label";if(G)I&&(R+=" label-is-hidden");else if(I||c)R+=" label-is-floating";return R},
_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 iUN;var fr0;_.SD({is:"tp-yt-paper-icon-button",_template:function(){if(fr0!==void 0)return fr0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;iUN===void 0&&(iUN=document.createElement("template"));var R=iUN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return fr0=G},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.wLi],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(G,c){var I=this.getAttribute("aria-label");I&&c!=I||this.setAttribute("aria-label",G)}});var B4i;var rEA;_.uY=[c7e,_.X3,{hostAttributes:{role:"option",tabindex:"0"}}];_.SD({_template:function(){if(rEA!==void 0)return rEA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;B4i===void 0&&(B4i=document.createElement("template"));var R=B4i;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return rEA=G},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.uY]});var jKp;var xUB;var to0={attached:function(){this.fire("addon-attached")},
update:function(){}};var hbB=1,dUe=1,CtB=1,HUe=[_.X3,_.Ha,{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();!b3&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(G,c){G?G=G+" "+c:G=c;return G},
_onAddonAttached:function(G){G=_.qy(G).rootTarget;if(G.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,G.id);else{var c="paper-input-add-on-"+dUe++;G.id=c;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,c)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(G){_.X3._focusBlurHandler.call(this,G);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var G=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",G);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(G){try{var c=this.inputElement.selectionStart;this.value=G;this.inputElement.selectionStart=c;this.inputElement.selectionEnd=c}catch(I){this.value=G}},
_computeAlwaysFloatLabel:function(G,c){return c||G},
_updateAriaLabelledBy:function(){var G=_.qy(this.root).querySelector("label");if(G){if(G.id)var c=G.id;else c="paper-input-label-"+hbB++,G.id=c;this._ariaLabelledBy=c}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+CtB++)},
_onChange:function(G){this.shadowRoot&&this.fire(G.type,{sourceEvent:G},{node:this,bubbles:G.bubbles,cancelable:G.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var G=document.activeElement;G instanceof HTMLElement&&G!==document.body&&G!==document.documentElement||this._focusableElement.focus()}}}];var XLA;var yEK;_.SD({_template:function(){if(yEK!==void 0)return yEK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;XLA===void 0&&(XLA=document.createElement("template"));var R=XLA;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return yEK=G},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[to0],properties:{_charCounterStr:{type:String,value:"0"}},update:function(G){if(G.inputElement){G.value=G.value||"";var c=G.value.toString().length.toString();G.inputElement.hasAttribute("maxlength")&&(c+="/"+G.inputElement.getAttribute("maxlength"));this._charCounterStr=c}}});var gz9;var Yte;_.SD({_template:function(){if(Yte!==void 0)return Yte;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;gz9===void 0&&(gz9=document.createElement("template"));var R=gz9;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return Yte=G},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return ux(this.attrForValue)},get _inputElement(){return _.qy(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(G){this._addons||(this._addons=[]);G=G.target;this._addons.indexOf(G)===-1&&(this._addons.push(G),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(G){this._handleValueAndAutoValidate(G.target)},
_onValueChanged:function(G){var c=G.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,c.value===void 0||c.value===""))return;this._handleValueAndAutoValidate(G.target)},
_handleValue:function(G){var c=this._inputElementValue;c||c===0||G.type==="number"&&!G.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:G,value:c,invalid:this.invalid})},
_handleValueAndAutoValidate:function(G){this.autoValidate&&G&&(this.invalid=!(G.validate?G.validate(this._inputElementValue):G.checkValidity()));this._handleValue(G)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(G){if(this._addons)for(var c,I=0;c=this._addons[I];I++)c.update(G)},
_computeInputContentClass:function(G,c,I,R,Z){var K="input-content";G?(Z&&(K+=" label-is-hidden"),R&&!this.noUnfloatedLabelError&&(K+=" is-invalid")):(G=this.querySelector("label"),c||Z?(K+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",R?K+=" is-invalid":I&&(K+=" label-is-highlighted")):(G&&(this.$.labelAndInputContainer.style.position="relative"),R&&!this.noUnfloatedLabelError&&(K+=" is-invalid")));I&&(K+=" focused");return K},
_computeUnderlineClass:function(G,c){var I="underline";c?I+=" is-invalid":G&&(I+=" is-highlighted");return I},
_computeAddOnContentClass:function(G,c){var I="add-on-content";c?I+=" is-invalid":G&&(I+=" is-highlighted");return I}});var GpV;var cmV;_.SD({_template:function(){if(cmV!==void 0)return cmV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;GpV===void 0&&(GpV=document.createElement("template"));var R=GpV;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return cmV=G},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[to0],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(G){this._setInvalid(G.invalid)}});_.SD({is:"tp-yt-paper-input",_template:function(){if(xUB!==void 0)return xUB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;jKp===void 0&&(jKp=document.createElement("template"));var R=jKp;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return xUB=G},
behaviors:[HUe,_.Yn],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 IhA;var Rne;_.SD({_template:function(){if(Rne!==void 0)return Rne;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=
G.content,I=c.insertBefore;IhA===void 0&&(IhA=document.createElement("template"));var R=IhA;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return Rne=G},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.uY]});var Z9A;var KDp;_.SD({_template:function(){if(KDp!==void 0)return KDp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
var c=G.content,I=c.insertBefore;Z9A===void 0&&(Z9A=document.createElement("template"));var R=Z9A;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return KDp=G},
is:"tp-yt-paper-item-body"});var PKK;var QN0;var mpB=function(){};
_.P=mpB.prototype;_.P.indexOf=function(){};
_.P.selectPrevious=function(){};
_.P.selectNext=function(){};
_.P.selectIndex=function(){};
_.P.forceSynchronousItemUpdate=function(){};
_.P._checkFallback=function(){};
_.P._addListener=function(){};
_.P._removeListener=function(){};
_.P._activateEventChanged=function(){};
_.P._updateItems=function(){};
_.P._selectSelected=function(){};
_.P._filterItem=function(){};
_.P._valueToItem=function(){};
_.P._valueToIndex=function(){};
_.P._indexToValue=function(){};
_.P._valueForItem=function(){};
_.P._observeItems=function(){};
_.P._itemActivate=function(){};
_.P.multiChanged=function(){};
_.P._updateAttrForSelected=function(){};
_.P._updateSelected=function(){};
_.P._selectMulti=function(){};
_.P._selectionChange=function(){};
_.P._toggleSelected=function(){};
_.P._valuesToItems=function(){};
_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P.select=function(){};
_.P._resetTabindices=function(){};
_.P._updateMultiselectable=function(){};
_.P._focusWithKeyboardEvent=function(){};
_.P._clearSearchText=function(){};
_.P._focusPrevious=function(){};
_.P._focusNext=function(){};
_.P._applySelection=function(){};
_.P._focusedItemChanged=function(){};
_.P._onIronItemsChanged=function(){};
_.P._onShiftTabDown=function(){};
_.P._onFocus=function(){};
_.P._onUpKey=function(){};
_.P._onDownKey=function(){};
_.P._onEscKey=function(){};
_.P._onKeydown=function(){};
_.P._activateHandler=function(){};
_.P._disabledChanged=function(){};
_.P._setSelectedItem=function(){};
_.P._setItems=function(){};
_.P._setSelectedItems=function(){};
_.P._setFocusedItem=function(){};
mpB=_.SD({_template:function(){if(QN0!==void 0)return QN0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
var c=G.content,I=c.insertBefore;PKK===void 0&&(PKK=document.createElement("template"));var R=PKK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return QN0=G},
is:"tp-yt-paper-listbox",behaviors:[mON],hostAttributes:{role:"listbox"}});var ahK;var T2e;var O9B={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(G,c){return[G||c?"active":"",c?"cooldown":""].join(" ")},
__activeChanged:function(G,c){this.__setAriaHidden(!G);this.__coolingDown=!G&&c},
__altChanged:function(G){this.setAttribute("aria-label",G||"loading")},
__setAriaHidden:function(G){G?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.SD({_template:function(){if(T2e!==void 0)return T2e;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;ahK===void 0&&(ahK=document.createElement("template"));var R=ahK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return T2e=G},
is:"tp-yt-paper-spinner",behaviors:[O9B]});var ene;var N2A;_.SD({_template:function(){if(N2A!==void 0)return N2A;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;ene===void 0&&(ene=document.createElement("template"));var R=ene;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return N2A=G},
is:"tp-yt-paper-spinner-lite",behaviors:[O9B]});var lhe;var qci;_.SD({_template:function(){if(qci!==void 0)return qci;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;lhe===void 0&&(lhe=document.createElement("template"));var R=lhe;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return qci=G},
is:"tp-yt-paper-tab",behaviors:[_.X3,_.gw.IronButtonState,oH],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var G=_.qy(this).parentNode;return!!G&&!!G.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(G){if(this.link){var c=this.queryEffectiveChildren("a");c&&G.target!==c&&c.click()}}});var wze;var FDV;var nb2=_.I3(['<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>']),vbe=_.Ym0(nb2);document.head.appendChild(vbe.content);_.SD({_template:function(){if(FDV!==void 0)return FDV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;wze===void 0&&(wze=document.createElement("template"));var R=wze;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return FDV=G},
is:"tp-yt-paper-tabs",behaviors:[_.Zu,_.TIT],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(G){_.qy(this).querySelectorAll("tp-yt-paper-tab").forEach(G?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(G){G.setAttribute("noink","")},
_removeNoinkAttribute:function(G){G.removeAttribute("noink")},
_computeScrollButtonClass:function(G,c,I,R){return!c||I?"hidden":G?R?"hidden":"not-visible":""},
_computeTabsContentClass:function(G,c){var I="tabs-content";G&&(I+=" scrollable");if(!G||c)I+=" fit-container";return I},
_computeSelectionBarClass:function(G,c){var I="selection-bar";G?I+=" hidden":c&&(I+=" align-bottom");return I},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(G){return""+G},
_onIronSelect:function(G){this._tabChanged(G.detail.item,this._previousTab);this._previousTab=G.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.RH._activateHandler.apply(this,arguments)},
_scheduleActivation:function(G,c){this._pendingActivationItem=G;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,c)},
_delayedActivationHandler:function(){var G=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;G.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(G){G.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(G,c){this.scrollable&&this._affectScroll(c&&-c.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(G){this.$.tabsContainer.scrollLeft+=G;G=this.$.tabsContainer.scrollLeft;this._leftHidden=G===0||this.hideScrollButtons;this._rightHidden=G===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(G,c){if(G){var I=this.$.tabsContent.getBoundingClientRect(),R=I.width,Z=G.getBoundingClientRect();I=Z.left-I.left;this._pos={width:this._calcPercent(Z.width,R),left:this._calcPercent(I,R)};if(this.noSlide||c==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var K=c.getBoundingClientRect();c=this.items.indexOf(c);G=this.items.indexOf(G);this.$.selectionBar.classList.add("expand");
G=c<G;this._isRTL&&(G=!G);G?this._positionBar(this._calcPercent(Z.left+Z.width-K.left,R)-5,this._left):this._positionBar(this._calcPercent(K.left+K.width-Z.left,R)-5,this._calcPercent(I,R)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Z.width,I)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(G,c){c-=this.$.tabsContainer.scrollLeft;c<0?this.$.tabsContainer.scrollLeft+=c:(c+=G-this.$.tabsContainer.offsetWidth,c>0&&(this.$.tabsContainer.scrollLeft+=c))},
_calcPercent:function(G,c){return 100*G/c},
_positionBar:function(G,c){G=G||0;c=c||0;this._width=G;this._left=c;this.transform("translateX("+c+"%) scaleX("+G/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var G=this.$.selectionBar.classList;G.contains("expand")?(G.remove("expand"),G.add("contract"),this._positionBar(this._pos.width,this._pos.left)):G.contains("contract")&&G.remove("contract")}});var DpV;var ob2;_.SD({_template:function(){if(ob2!==void 0)return ob2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;DpV===void 0&&(DpV=document.createElement("template"));var R=DpV;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return ob2=G},
is:"tp-yt-paper-textarea",behaviors:[HUe,_.Yn],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(G){this.$.input.textarea.selectionStart=G},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(G){this.$.input.textarea.selectionEnd=G},_ariaLabelledByChanged:function(G){this._focusableElement.setAttribute("aria-labelledby",G)},
_ariaDescribedByChanged:function(G){this._focusableElement.setAttribute("aria-describedby",G)},
get _focusableElement(){return this.inputElement.textarea}});var Up0;var uni;/*

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 b9K=function(){};
_.P=b9K.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
b9K=_.SD({is:"tp-yt-paper-toggle-button",_template:function(){if(uni!==void 0)return uni;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Up0===void 0&&(Up0=document.createElement("template"));var R=Up0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return uni=G},
behaviors:[_.Fd0],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");_.O$(this,function(){_.CY(this,"pan-y")})},
_ontrack:function(G){G=G.detail;G.state==="start"?this._trackStart(G):G.state==="track"?this._trackMove(G):G.state==="end"&&this._trackEnd(G)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(G){G=G.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+G:G)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+G:G));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var G=oH._createRipple();G.id="ink";G.setAttribute("recenters","");G.classList.add("circle","toggle-ink");return G}});var kpk;var sN0;_.SD({_template:function(){if(sN0!==void 0)return sN0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;kpk===void 0&&(kpk=document.createElement("template"));var R=kpk;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return sN0=G},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var G=_.qy(this).parentNode,c=_.qy(this).getOwnerRoot(),I;this.for?I=_.qy(c).querySelector("#"+this.for):I=G.nodeType==Node.DOCUMENT_FRAGMENT_NODE?c.host:G;return I},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(G){G==="entry"?this.show():G==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.qy(this).textContent.trim()===""){for(var G=!0,c=_.qy(this).getEffectiveChildNodes(),I=0;I<c.length;I++)if(c[I].textContent.trim()!==""){G=!1;break}if(G)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var G=this.offset;this.marginTop!=14&&this.offset==14&&(G=this.marginTop);var c=this.offsetParent.getBoundingClientRect(),I=this._target.getBoundingClientRect(),R=this.getBoundingClientRect(),Z=(I.width-R.width)/2,K=(I.height-R.height)/2,m=I.left-c.left,a=I.top-c.top;switch(this.position){case "top":var O=m+Z;var N=a-R.height-G;break;case "bottom":O=m+Z;N=a+I.height+G;break;case "left":O=m-R.width-G;N=a+K;break;case "right":O=m+I.width+
G,N=a+K}this.fitToVisibleBounds?(c.left+O+R.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,O)+"px",this.style.right="auto"),c.top+N+R.height>window.innerHeight?(this.style.bottom=c.height+"px",this.style.top="auto"):(this.style.top=Math.max(-c.top,N)+"px",this.style.bottom="auto")):(this.style.left=O+"px",this.style.top=N+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(G){G!==500&&this.updateStyles({"--paper-tooltip-delay-in":G+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(G){if(G==="entry"&&this.animationEntry!=="")return this.animationEntry;if(G==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[G]&&typeof this.animationConfig[G][0].name==="string"){if(this.animationConfig[G][0].timing&&this.animationConfig[G][0].timing.delay&&this.animationConfig[G][0].timing.delay!==0){var c=this.animationConfig[G][0].timing.delay;G==="entry"?this.updateStyles({"--paper-tooltip-delay-in":c+"ms"}):G==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":c+
"ms"})}return this.animationConfig[G][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var LD0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(LD0,_.aR);var AmN=_.b5(LD0,[0,_.N0]);var bY=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(bY,_.aR);var $p2=[3,4],ScN=[5,6];var pzT=[0,$p2,ScN,_.w4,-1,_.T7,_.FC,-1,z0k,EFV];var Mj0=_.b5(bY,pzT),VjN=_.kN(pzT);var znN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(znN,_.aR);var EbK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(EbK,_.aR);var Jm2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Jm2,_.aR);var WD0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(WD0,_.aR);var i92=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(i92,_.aR);var kO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(kO,_.aR);kO.prototype.getSource=function(){return _.fy(this,1)};
kO.prototype.getMessage=function(){return _.iU(this,4)};
kO.prototype.getData=function(){return _.Dw(this,i92,8)};var fh0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(fh0,_.aR);var sA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(sA,_.aR);var LV=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(LV,_.aR);var Aj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Aj,_.aR);Aj.prototype.getUrl=function(){return _.iU(this,1)};
Aj.prototype.setUrl=function(G){return _.Eq(this,1,G)};
Aj.prototype.hasUrl=function(){return _.Ud(_.Ly(this,1))!=null};var B2B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(B2B,_.aR);var rm9=[3];var jNB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(jNB,_.aR);var $O=function(G){var c=new jNB;return _.oz(c,2,G)};
jNB.prototype.getLanguage=function(){return rI(this,4,SM)};
var xpK=function(G){var c=$O(1);return _.$N(c,6,SM,G)},SM=[3,
4,5,6];var tji=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(tji,_.aR);var pV=function(G){var c=new tji;return _.oz(c,1,G)},Me=function(G,c){return _.$N(G,2,hni,c)},hni=[2,
3,4,5];var dpB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(dpB,_.aR);var Vf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Vf,_.aR);var CKi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(CKi,_.aR);var H90=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(H90,_.aR);var XzT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(XzT,_.aR);var ymk=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(ymk,_.aR);var gbi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(gbi,_.aR);var zE=function(G){return _.Dw(G,LV,5)};var Ycp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Ycp,_.aR);Ycp.prototype.getValue=function(){return J7(this,1)};var G0B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(G0B,_.aR);var EA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(EA,_.aR);EA.prototype.getMetadata=function(){return _.jg(this,XzT,7,Jj)};
EA.prototype.hasMetadata=function(){return _.$o(this,XzT,7,Jj)};
var c4i=_.c_r(EA),Jj=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Wp=function(G){this.JSC$12339_name_=G;this.files_=[];this.directories_=[];this.directoryMap_={}};
Wp.prototype.getName=function(){return this.JSC$12339_name_};var fV=function(G,c){this.callback_=c;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Wp("");IeK(this,G,this.rootDirectory_);iY(this)},IeK=function(G,c,I){for(var R=0;R<c.length;R++){var Z=c[R];
Z.isFile?(G.fileOps_++,Z.file((0,_.WD)(G.handleFileSuccess_,G,I),(0,_.WD)(G.handleFileError_,G))):G.unscannedDirectories_.push(new RDB(Z,I))}},iY=function(G){if(G.unscannedDirectories_.length>0&&G.directoryOps_<5&&!G.hasError_){G.directoryOps_++;
var c=G.unscannedDirectories_.shift(),I=c.entry,R=new Wp(I.name);c=c.parent;c.directoryMap_[R.getName()]=R;c.directories_.push(R);I=I.createReader();I.readEntries((0,_.WD)(G.handleDirectorySuccess_,G,I,R),(0,_.WD)(G.handleDirectoryError_,G))}G.directoryOps_!=0||G.fileOps_!=0||G.unscannedDirectories_.length!=0&&!G.hasError_||G.callback_(G.rootDirectory_.files_,G.rootDirectory_.directories_,G.hasError_)};
fV.prototype.handleDirectorySuccess_=function(G,c,I){IeK(this,I,c);I.length==0?(this.directoryOps_--,iY(this)):G.readEntries((0,_.WD)(this.handleDirectorySuccess_,this,G,c),(0,_.WD)(this.handleDirectoryError_,this))};
fV.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;iY(this)};
fV.prototype.handleFileSuccess_=function(G,c){G.files_.push(c);this.fileOps_--;iY(this)};
fV.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;iY(this)};
var RDB=function(G,c){this.entry=G;this.parent=c};var Bp=function(G){_.r4.call(this);_.Ld(G,"drop",this.onObjectsDropped_,!1,this);_.Ld(G,"dragenter",this.onFilesDragged_,!1,this);_.Ld(G,"dragover",this.onFilesDragged_,!1,this);_.Ld(G,"dragleave",this.onDragLeave_,!1,this);_.Ld(G,"dragend",this.onDragLeave_,!1,this)};
_.eg(Bp,_.r4);var ZuN=function(G,c){_.zR.call(this,"f");this.files=G;this.directories=c};
_.eg(ZuN,_.zR);var Kle=function(){_.zR.call(this,"h")};
_.eg(Kle,_.zR);var Pbi=function(){_.zR.call(this,"i")};
_.eg(Pbi,_.zR);var Q5e=function(){_.zR.call(this,"g")};
_.eg(Q5e,_.zR);Bp.prototype.onObjectsDropped_=function(G){var c=this;G.preventDefault();var I=G.event_.dataTransfer;if((G=I&&I.items)&&G.length>0&&G[0].webkitGetAsEntry){I=[];for(var R=[],Z=0;Z<G.length;Z++){var K=G[Z].webkitGetAsEntry();K?I.push(K):R.push(G[Z])}new fV(I,function(m,a,O){O?c.dispatchEvent(new Q5e("Error occurred while reading from the file system.")):c.dispatchEvent(new ZuN(m,a,R))})}else(G=I&&I.files)&&this.dispatchEvent(new ZuN(Array.from(G),[]))};
Bp.prototype.onFilesDragged_=function(G){G.type==="dragenter"&&this.dispatchEvent(new Kle);G.preventDefault()};
Bp.prototype.onDragLeave_=function(){this.dispatchEvent(new Pbi)};var mXV=function(G,c){this.JSC$12362_name_=G;this.inputElement_=c};
mXV.prototype.getName=function(){return this.JSC$12362_name_};
mXV.prototype.getInputElement=function(){return this.inputElement_};var rA=function(G,c,I){c=c===void 0?"single_file":c;I=I===void 0?[]:I;_.r4.call(this);this.overlayTarget_=G;this.parentOverlay_=G!=null?G.parentNode:_.$9("scotty-overlay-parent");this.selectorType_=c;this.acceptTypes_=I;this.overlay_=aeT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.u(rA,_.r4);
var aeT=function(G,c,I,R){var Z=document.createElement("input");Z.setAttribute("type","file");Z.setAttribute("name","Filedata");_.Ld(Z,"change",G.onFilesSelected_,!1,G);I==="multiple_file"&&(Z.multiple="true");I==="single_directory"&&(Z.webkitdirectory="true");R.length>0&&Z.setAttribute("accept",R.join(","));Z.style.position="absolute";Z.style.overflow="hidden";Z.style.height="0px";Z.style.width="0px";Z.style.opacity="0";Z.setAttribute("aria-hidden","true");Z.setAttribute("tabIndex",-1);if(G.overlayTarget_!=
null)return Z.style.height=c.offsetHeight+"px",Z.style.width=c.offsetWidth+"px",G.parentOverlay_&&(G.parentOverlay_.style.position="relative"),_.H7(Z,c),cL(Z,new _.ts(c.offsetLeft,c.offsetTop)),Z;G.parentOverlay_.appendChild(Z);return Z};
rA.prototype.click=function(){this.overlay_.click()};
rA.prototype.onFilesSelected_=function(G){a:{try{var c=(new XMLHttpRequest).upload!==void 0;break a}catch(N){}c=!1}if(c){var I;G=Array.from((I=G.target.files)!=null?I:[]);I=[];if(this.selectorType_==="single_directory"&&(_.vC||ev||_.ny)){I=new Wp("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(c=0;c<G.length;c++)for(var R=G[c],Z=R.webkitRelativePath.split("/"),K=I,m=0;m<Z.length;m++){var a=Z[m];if(m==Z.length-1){a!="."&&K.files_.push(R);break}var O=K.directoryMap_[a];O==void 0&&(a=
O=new Wp(a),K.directoryMap_[a.getName()]=a,K.directories_.push(a));K=O}I=I.directories_}this.dispatchEvent(new Ta2(G,I,null))}else G=G.target.value,G.match(/^c:\\fakepath\\/i)&&(G=G.substring(12)),this.dispatchEvent(new Ta2([],[],new mXV(G,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=aeT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Ta2=function(G,c){_.zR.call(this,"j");this.files=G;this.directories=c};
_.u(Ta2,_.zR);var Oue=function(G){this.uploadUrl_=G};var eDV=function(){_.r4.call(this)};
_.eg(eDV,_.r4);var jM=function(G){_.zR.call(this,G)};
_.eg(jM,_.zR);var xO=function(G){_.zR.call(this,G)};
_.eg(xO,_.zR);var NaV=function(G,c,I,R,Z){_.r4.call(this);I=document.createElement("form");I.setAttribute("method",c);I.setAttribute("enctype","multipart/form-data");I.setAttribute("encoding","multipart/form-data");c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","metadata");c.setAttribute("value",Z);I.appendChild(c);I.appendChild(R);this.JSC$12379_form_=I;G=new _.Bq(G);_.Zm(G,"upload_protocol","multipart");this.JSC$12379_url_=G.toString();this.JSC$12379_request_=new L$;this.state_=
"Ready";this.JSC$12379_errorDescription_=null;this.JSC$12379_eventHandler_=new _.D0(this);_.k9(this,this.JSC$12379_eventHandler_);this.JSC$12379_eventHandler_.listen(this.JSC$12379_request_,"success",this.onTransferSuccess_);this.JSC$12379_eventHandler_.listen(this.JSC$12379_request_,"error",this.onTransferError_)};
_.u(NaV,eDV);_.P=NaV.prototype;_.P.run=function(){this.state_="Transferring";var G=this.JSC$12379_request_,c=this.JSC$12379_form_;if(G.JSC$11647_active_)throw Error("te");var I=new _.Bq(this.JSC$12379_url_||c.action);G.JSC$11647_form_=c;c=G.JSC$11647_form_;I=_.Xx(I.toString());I!==void 0&&(c.action=I);oPB(G)};
_.P.getResponseCode=function(){return null};
_.P.getResponseText=function(){return this.JSC$12379_request_&&this.JSC$12379_request_.getResponseText()||null};
_.P.JSC$30236_getErrorDescription=function(){return this.JSC$12379_errorDescription_};
_.P.cancel=function(){this.JSC$12379_request_&&this.JSC$12379_request_.abort();this.state_="Cancelled";this.dispatchEvent(new jM("o"))};
_.P.pause=function(){};
_.P.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new jM("l"))};
_.P.onTransferError_=function(){this.JSC$12379_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new jM("n"))};var tj=function(){_.XC.call(this)};
_.u(tj,_.XC);tj.prototype.createXhr=function(){var G=_.XC.prototype.createXhr.call(this);G.upload&&(G.upload.onprogress=(0,_.WD)(this.onProgress_,this));return G};
tj.prototype.onProgress_=function(G){this.dispatchEvent(G)};var leA=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},wSi=function(G,c){var I=G.attempt_+1;
if(G.maxAttempts_>0&&I>G.maxAttempts_)return!1;I==0?c():G.delayCallId_=d4(function(){G.delayCallId_=null;c()},qhA(G),G);
G.attempt_=I;return!0};
leA.prototype.reset=function(){this.delayCallId_&&_.Rq.clearTimeout(this.delayCallId_);this.attempt_=-1};
var qhA=function(G){var c=250*Math.pow(2,G.attempt_);G.maxDelayMs_>=0&&(c=Math.min(c,G.maxDelayMs_));return c};var zlb=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var hj=function(){_.r4.call(this);this.JSC$12389_request_=this.state_=null;this.JSC$12389_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12389_bytesTransferred_=0;this.retryIterator_=new leA;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12389_errorDescription_=null;this.JSC$12389_eventHandler_=new _.D0(this);_.k9(this,this.JSC$12389_eventHandler_);this.JSC$12389_url_=this.blob_=null;this.JSC$12389_method_=void 0;this.chunkSize_=this.JSC$12389_metadata_=
this.JSC$12389_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12389_responseText_=this.JSC$12389_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.eg(hj,eDV);_.P=hj.prototype;_.P.run=function(){dA(this)};
_.P.getResponseCode=function(){return this.JSC$12389_responseCode_};
_.P.getResponseText=function(){return this.JSC$12389_responseText_};
_.P.JSC$30236_getErrorDescription=function(){return this.JSC$12389_errorDescription_};
_.P.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12389_eventHandler_.removeAll();this.JSC$12389_request_&&this.JSC$12389_request_.abort();this.retryIterator_.reset();var G=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(G==="Upload"||G==="Query")G=new tj,G.JSC$9965_withCredentials_=this.JSC$12389_withCredentials_,G.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12389_bytesTransferred_=
0;this.dispatchEvent(new jM("o"))}};
_.P.pause=function(){this.pauseRequested_=!0};
var dA=function(G){var c=G.state_;G.pauseRequested_?(G.pauseRequested_=!1,G.stateAfterUnpausing_=c,G.state_="Paused"):wSi(G.retryIterator_,function(){switch(G.state_){case "Start":G.JSC$12389_request_=new tj;var I=_.rx.clone(G.JSC$12389_headers_);G.blob_.size!=null&&(I["Content-Length"]=G.blob_.size);I=ESO(I);I["X-Goog-Upload-Protocol"]="resumable";I["X-Goog-Upload-Command"]="start";G.JSC$12389_eventHandler_.removeAll();G.JSC$12389_eventHandler_.listen(G.JSC$12389_request_,"complete",G.onStartComplete_);
G.JSC$12389_request_.JSC$9965_withCredentials_=G.JSC$12389_withCredentials_;G.JSC$12389_request_.send(G.JSC$12389_url_,G.JSC$12389_method_,G.JSC$12389_metadata_,I);G.lastCommandResponseCode_=null;G.dispatchEvent(new xO("q"));break;case "Upload":I=G.transferHandle_.uploadUrl_;var R=G.blob_.size;if(C6i()){var Z=G.chunkSize_;var K=G.offset_+Z>=R;R=dyk(G.blob_,G.offset_,K?R:G.offset_+Z)}else G.offset_=0,R=G.blob_,K=!0;G.JSC$12389_request_=new tj;G.JSC$12389_request_.JSC$9965_withCredentials_=G.JSC$12389_withCredentials_;
G.JSC$12389_eventHandler_.removeAll();G.JSC$12389_eventHandler_.listen(G.JSC$12389_request_,"progress",G.onUploadProgress_);Z=(0,_.WD)(G.JSC$12391_onUploadComplete_,G,G.offset_+R.size,K);G.JSC$12389_eventHandler_.listen(G.JSC$12389_request_,"complete",Z);G.lastCommandResponseCode_=null;G.dispatchEvent(new xO("q"));K=Object.assign({},G.JSC$12389_headers_||{},{"X-Goog-Upload-Command":"upload"+(K?", finalize":""),"X-Goog-Upload-Offset":G.offset_});G.JSC$12389_request_.send(I,"POST",R,K);break;case "Query":G.JSC$12389_request_=
new tj;G.JSC$12389_eventHandler_.removeAll();G.JSC$12389_eventHandler_.listen(G.JSC$12389_request_,"complete",G.onQueryComplete_);I=Object.assign({},G.JSC$12389_headers_||{},{"X-Goog-Upload-Command":"query"});G.JSC$12389_request_.send(G.transferHandle_.uploadUrl_,"POST","",I);G.lastCommandResponseCode_=null;G.dispatchEvent(new xO("q"));break;default:throw Error("lf");}})||CV(G,"Transfer encountered too many consecutive failures.")},CV=function(G,c){G.state_="Error";
G.JSC$12389_errorDescription_=c;G.dispatchEvent(new jM("n"))};
hj.prototype.onStartComplete_=function(G){var c=G.target;this.lastCommandResponseCode_=c.getStatus();this.dispatchEvent(new xO("r"));if(Fl2(c))n10(this,c);else if(v1A(c)){G=mu(G.target.getAllResponseHeaders());for(var I in G)_.KA(I.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new jM("m"));I=Fl(G,"X-Goog-Upload-URL");G=(G=Fl(G,"X-Goog-Upload-Chunk-Granularity"))?parseInt(G,10):1;I===void 0||isNaN(G)||G<=0?CV(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
G)*G,this.transferHandle_=new Oue(I),this.dispatchEvent(new jM("p")),this.state_="Upload",this.retryIterator_.reset(),dA(this))}else dA(this)};
hj.prototype.onUploadProgress_=function(G){this.JSC$12389_bytesTransferred_=this.offset_+G.loaded;this.dispatchEvent(new jM("k"))};
hj.prototype.JSC$12391_onUploadComplete_=function(G,c,I){var R=this,Z,K;return _.T(function(m){switch(m.nextAddress){case 1:Z=I.target;R.lastCommandResponseCode_=Z.getStatus();R.dispatchEvent(new xO("r"));if(DXK(Z)||Z.getStatus()==404)return R.JSC$12389_bytesTransferred_=G,n10(R,Z),m.return();if(v1A(Z)){m.jumpTo(2);break}if(!(K=R.detectCorruptedBlobEnabled_)){m.jumpTo(3);break}return m.yield(o1B(R),4);case 4:K=m.yieldResult;case 3:if(K)return CV(R,"Blob has been modified or corrupted."),m.return();
R.requireUploadRequestModification_=Z.getStatus()==400;R.state_="Query";dA(R);return m.return();case 2:if(c)return CV(R,"Got a non-final success response after issuing a finalize command."),m.return();R.JSC$12389_bytesTransferred_=G;R.offset_=G;R.retryIterator_.reset();dA(R);return m.return()}})};
hj.prototype.onQueryComplete_=function(G){var c=G.target;this.lastCommandResponseCode_=c.getStatus();this.dispatchEvent(new xO("r"));Fl2(c)?(c.getStatus()===200&&(this.JSC$12389_bytesTransferred_=this.blob_.size),n10(this,c)):v1A(c)?(G=mu(G.target.getAllResponseHeaders()),G=parseInt(Fl(G,"X-Goog-Upload-Size-Received"),10),isNaN(G)?CV(this,"Server did not respond with current offset."):G<this.offset_?CV(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
G+"."):this.requireUploadRequestModification_&&this.offset_===G?CV(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<G&&this.retryIterator_.reset(),this.offset_=this.JSC$12389_bytesTransferred_=G,this.state_="Upload",dA(this))):dA(this)};
var n10=function(G,c){G.JSC$12389_responseCode_=c.getStatus();var I=mu(c.getAllResponseHeaders());Jkq(I);G.JSC$12389_responseText_=c.getResponseText();G.state_="Response received";G.dispatchEvent(new jM("l"))},v1A=function(G){var c=G.getStatus();
G=mu(G.getAllResponseHeaders());G=Fl(G,"X-Goog-Upload-Status");return c===200&&G==="active"},DXK=function(G){G=mu(G.getAllResponseHeaders());
return Fl(G,"X-Goog-Upload-Status")==="final"},Fl2=function(G){if(DXK(G))return!0;
G=G.getStatus();return G>=400&&G<500},o1B=function(G){var c;
return _.T(function(I){if(I.nextAddress==1){if(!G.blob_||G.originalBlobSize_<=0)return I.return(!1);if(G.blob_.size!==G.originalBlobSize_)return I.return(!0);_.s9(I,2);if(c=dyk(G.blob_,0,1)){var R=I.yield,Z=new TW,K=Mu0(Z);Z.reader_.readAsBinaryString(c);I=R.call(I,K,4)}else I=I.return(!0);return I}if(I.nextAddress!=2)return I.return(G.blob_.size!==G.originalBlobSize_);_.M3(I);return I.return(!0)})};var UX0=function(G,c,I,R,Z,K){_.r4.call(this);this.payload_=R;this.JSC$12392_url_=G;this.JSC$12392_method_=c;this.JSC$12392_headers_=I;this.JSC$12392_metadata_=Z;this.encoding_=K||"binary";G=new _.Xg;this.boundary_="uploader-"+cX()+"-"+G.JSC$11496_toIsoString();this.JSC$12392_responseText_=this.JSC$12392_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12392_errorDescription_=null;this.JSC$12392_eventHandler_=new _.D0(this);_.k9(this,this.JSC$12392_eventHandler_)};
_.u(UX0,eDV);_.P=UX0.prototype;
_.P.run=function(){var G=_.rx.clone(this.JSC$12392_headers_);this.payload_.length!=null&&(G["Content-Length"]=this.payload_.length);G=ESO(G);G["X-Goog-Upload-Protocol"]="multipart";G["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new tj;this.JSC$12392_eventHandler_.removeAll();this.JSC$12392_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12392_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12392_url_,this.JSC$12392_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12392_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",G)};
_.P.getResponseCode=function(){return this.JSC$12392_responseCode_};
_.P.getResponseText=function(){return this.JSC$12392_responseText_};
_.P.JSC$30236_getErrorDescription=function(){return this.JSC$12392_errorDescription_};
_.P.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12392_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new jM("o")))};
_.P.pause=function(){};
_.P.onTransferProgress_=function(){this.dispatchEvent(new jM("k"))};
_.P.onTransferComplete_=function(G){var c=G.target.getStatus();c===void 0||c===-1?(this.JSC$12392_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new jM("n"))):(this.JSC$12392_responseCode_=c,G=G.target,c=mu(G.getAllResponseHeaders()),Jkq(c),this.JSC$12392_responseText_=G.getResponseText(),this.state_="Complete",this.dispatchEvent(new jM("l")))};_.u8V=function(G,c,I,R){R=R===void 0?!1:R;if(I instanceof mXV)return new NaV(G,"POST",c,I.getInputElement(),"");if(typeof I==="string"||I instanceof String)return new UX0(G,"POST",c,I,"");var Z=new hj(void 0);Z.JSC$12389_url_=G;Z.JSC$12389_method_="POST";Z.JSC$12389_headers_=c;Z.blob_=I;Z.originalBlobSize_=I.size;Z.JSC$12389_metadata_="";R&&(Z.JSC$12389_withCredentials_=R);Z.state_="Start";return Z};var Hp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Hp,_.aR);_.P=Hp.prototype;_.P.getEnableSsEngine=function(){return _.EH(this,2)};
_.P.getEnableAwr=function(){return _.EH(this,3)};
_.P.getAlohaAutoGaRollout=function(){return _.EH(this,5)};
_.P.getEnableConfigurator=function(){return _.EH(this,6)};
_.P.getEnableMweb=function(){return _.EH(this,7)};
var k0B=function(){var G=buB();return _.DZ(G,7,!0)};
Hp.prototype.getEnableCtlConsentCheckbox=function(){return _.EH(this,8)};
Hp.prototype.getEnableIframe=function(){return _.EH(this,9)};
var buB=function(){var G=new Hp;G=_.DZ(G,5,!0);G=_.DZ(G,2,!0);G=_.DZ(G,4,!1);G=_.DZ(G,8,!0);return _.DZ(G,9,!0)};
Hp.prototype.getEnableScreenshotNudge=function(){return _.EH(this,10)};
var s5i=function(){var G=k0B();return _.DZ(G,10,!0)};
Hp.prototype.getEnableWebStartupConfigEndpoint=function(){return _.EH(this,11)};
Hp.prototype.getEnableJunkNudge=function(){return _.EH(this,12)};
var IMp=function(){var G=s5i();return _.DZ(G,12,!0)};
_.P=Hp.prototype;_.P.getEnableConfiguratorLocale=function(){return _.EH(this,13)};
_.P.getEnableTinyNoPointer=function(){return _.EH(this,14)};
_.P.getEnableSupportSessionLogging=function(){return _.EH(this,15)};
_.P.getEnableFileUploadForScreenshot=function(){return _.EH(this,16)};
_.P.getEnableDirectDeflectionForSingleCategory=function(){return _.EH(this,17)};
_.P.getEnableImageSanitization=function(){return _.EH(this,18)};
_.P.getEnableAlohaBinarySplit=function(){return _.EH(this,19)};
_.P.getEnableDbFeedbackIntents=function(){return _.EH(this,20)};
_.P.getEnableMarkMandatoryFieldsWithRequired=function(){return _.EH(this,21)};
_.P.getEnableFeedbackCategoryCustomUi=function(){return _.EH(this,22)};
_.P.getEnableRealtimeCtl=function(){return _.EH(this,23)};var cMi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(cMi,_.aR);var WBO=[/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 f9U="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 BBA=_.I3(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),rkO=_.I3(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var nR=function(){var G=Error.call(this,"Form is either loading or already opened");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.name="DuplicateFormError"};
_.u(nR,Error);var x7A,d7T,tdO,C3b;var yf,LlK;
yf=function(G,c,I){G.timeOfStartCall=(new Date).getTime();var R=I||_.Rq,Z=R.document,K=G.nonce||_.KT(R.document);K&&!G.nonce&&(G.nonce=K);if(G.flow=="help"){var m=_.Yc("document.location.href",R);!G.helpCenterContext&&m&&(G.helpCenterContext=m.substring(0,1200));m=!0;if(c&&JSON&&JSON.stringify){var a=JSON.stringify(c);(m=a.length<=1200)&&(G.psdJson=a)}m||(c={invalidPsd:!0})}c=[G,c,I];R.GOOGLE_FEEDBACK_START_ARGUMENTS=c;I=G.feedbackServerUri||"//www.google.com/tools/feedback";if(m=R.GOOGLE_FEEDBACK_START)m.apply(R,c);
else{R=I+"/load.js?";for(var O in G)c=G[O],c==null||_.db(c)||(R+=encodeURIComponent(O)+"="+encodeURIComponent(c)+"&");G=zM(Z).createElement("SCRIPT");K&&G.setAttribute("nonce",K);_.Ti(G,_.Vx(R));Z.body.appendChild(G)}};
LlK=function(G,c,I,R){var Z,K;return _.T(function(m){Z=I||_.Rq;var a=G.serverEnvironment==="DEV",O=I||_.Rq;O=G.nonce||_.KT(O.document);a={integrationKeys:{productId:G.productId,feedbackBucket:G.bucket,triggerId:G.triggerId},callbacks:{onClose:G.callback,onLoad:G.onLoadCallback},formContent:{locale:G.locale,disableScreenshot:G.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:G.abuseLink,additionalDataConsent:G.additionalDataConsent},initializationData:{isLocalServer:a,nonce:O,useNightlyRelease:a,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:G.feedbackServerUri,colorScheme:G.colorScheme},extraData:{productVersion:G.productVersion,authUser:G.authuser,configuratorId:G.configuratorId,customZIndex:G.customZIndex,tinyNoPointer:G.tinyNoPointer,
allowNonLoggedInFeedback:G.allowNonLoggedInFeedback,enableAnonymousFeedback:G.enableAnonymousFeedback}};c&&(O=new Map(Object.entries(c)),a.extraData.productSpecificData=O);K=a;return m.yield(gS0(K,R,Z),0)})};
_.A42=function(G,c,I){try{if(G.flow==="help"){var R=G.helpCenterPath.replace(/^\//,"");_.ZT(I||window,"https://support.google.com/"+R)}else G.flow==="submit"?yf(G,c,I):RLA(G.productId,G.feedbackServerUri).then(function(Z){Z=_.Dw(Z,Hp,1);var K=!HAN||(Z==null?void 0:Z.getEnableMweb()),m=!G.tinyNoPointer||(Z==null?void 0:Z.getEnableTinyNoPointer());!Z||Z.getAlohaAutoGaRollout()&&K&&m?LlK(G,c,I,Z).catch(function(a){!a||a instanceof nR||yf(G,c,I)}):yf(G,c,I)},function(Z){!Z||Z instanceof nR||yf(G,c,I)})}catch(Z){LlK(G,
c,I,null).catch(function(K){!K||K instanceof nR||yf(G,c,I)})}};
_.lr("userfeedback.api.startFeedback",_.A42);var Z$U=/https?:\/\/\S+\.\S+/,KZ0=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],P9r=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Wsg=function(G){var c=G.split(""),I=[-263237435,15,c,function(R,Z,K){var m=Z.length;K.forEach(function(a,O,N){this.push(N[O]=Z[(Z.indexOf(a)-Z.indexOf(this[O])+O+m--)%Z.length])},R.split(""))},
function(R,Z){R=(R%Z.length+Z.length)%Z.length;Z.splice(-R).reverse().forEach(function(K){Z.unshift(K)})},
"response",function(){for(var R=64,Z=[];++R-Z.length-32;){switch(R){case 58:R-=14;case 91:case 92:case 93:continue;case 123:R=47;case 94:case 95:case 96:continue;case 46:R=95}Z.push(String.fromCharCode(R))}return Z},
null,12,1540023973,65941107,null,c,function(R,Z){for(R=(R%Z.length+Z.length)%Z.length;R--;)Z.unshift(Z.pop())},
695603893,function(R){for(var Z=R.length;Z;)R.push(R.splice(--Z,1)[0])},
"'[;'[(",function(R,Z){R.push(Z)},
null,function(R,Z,K,m,a){return Z(K,m,a)},
"continuation",c,function(R,Z){if(R.length!=0){Z=(Z%R.length+R.length)%R.length;var K=R[0];R[0]=R[Z];R[Z]=K}},
function(){for(var R=64,Z=[];++R-Z.length-32;){switch(R){case 91:R=44;continue;case 123:R=65;break;case 65:R-=18;continue;case 58:R=96;continue;case 46:R=95}Z.push(String.fromCharCode(R))}return Z},
'"),/]];'];I[7]=I;I[11]=I;I[18]=I;try{(((0,I[15])(I[21]),I[22])(I[11],I[9]),I[22])(I[new Date("1970-01-01T04:30:12.000+04:30")/1E3],I[1]),((0,I[22])(I[11],I[23]),I[4])(I[10],I[18]),(0,I[20])(I[21],I[14])<<(0,I[17])(I[18],I[1]),(0,I[4])(I[8],I[21]),(0,I[19])((0,I[19])((0,I[17])(I[7],I[9]),I[3],I[20],(0,I[6])(),I[2]),I[3],I[5],(0,I[15])(),I[2])}catch(R){return"aTlOUOubTO4AP____8P_"+G}return c.join("")};_.$Xp=new _.vS("runAttestationCommand");var Shi=new _.vS("verifyCommand");_.Aq=new _.vS("accessibilityContext");var pSA=new _.vS("accessibilityData");var MI2=new _.vS("profileCardCommand");var zO0=new _.vS("signInEndpoint");var Vpq=new _.vS("signOutEndpoint");var zD0;_.VIB=new _.vS("accountItemSectionRenderer");zD0=new _.vS("accountItemRenderer");_.E1B=new _.vS("saveCommandToSessionStorageAction");var J4e=new _.vS("crossAccountChannelTransferEndpoint");var LhA=new _.vS("getAccountMenuEndpoint");_.Ar8=new _.vS("getAccountSwitcherEndpoint");var s8b=new _.vS("getAccountsListEndpoint");var WlN=new _.vS("getAccountsListInnertubeEndpoint");_.iuV=new _.vS("addToToastAction");var feV=new _.vS("hideEnclosingAction");_.gA=new _.vS("replaceEnclosingAction");var Bak=new _.vS("buttonRefreshAction");var r4K=new _.vS("adsControlFlowOpportunityReceivedCommand");var j5k=new _.vS("openAdAllowlistInstructionCommand");var xX0=new _.vS("videoMastheadAdPrimaryVideoRenderer");var tIN=new _.vS("displayAdRenderer");_.hDp=new _.vS("inFeedAdLayoutRenderer");var dX9=new _.vS("sequenceItemInPlayerAdLayoutRenderer");_.CbN=new _.vS("adSlotRenderer");var HuV=new _.vS("adAvatarViewModel");var XST=new _.vS("adBadgeViewModel");var y4K=new _.vS("adButtonViewModel");var g1p=new _.vS("adImageViewModel");var HaT=new _.vS("reelsAdCardButtonedViewModel");var Yhk=new _.vS("reelsPlayerOverlayLayoutViewModel");var GZ2=new _.vS("formDataDecoratorCommand");var ckB=new _.vS("updateConversationIdCommand");var I9K=new _.vS("showSchedulingPanelCommand");var Rle=new _.vS("backstageCommentsRenderer");var ZqA=new _.vS("backstageImageRenderer");var KB9=new _.vS("backstagePostRenderer");var P3p=new _.vS("backstageZeroStateRenderer");var QkV=new _.vS("postRenderer");var m70=new _.vS("sharedPostRenderer");var a9e=new _.vS("createBackstagePostEndpoint");var TB2=new _.vS("getPostVideoPreviewEndpoint");var Oq2=new _.vS("updateBackstagePostEndpoint");var elB=new _.vS("filterChipTransformCommand");var NBT=new _.vS("insertRichSectionCommand");var wGi=new _.vS("talkToRecsDeselectCommand");var l9k=new _.vS("talkToRecsNextCommand");var qRb=new _.vS("talkToRecsSelectCommand");var HB0=new _.vS("talkToRecsUpdateTextCommand");_.qD=new _.vS("browseEndpoint");_.qBe=new _.vS("confirmDialogEndpoint");var wwA=new _.vS("expandOnHoverCardRenderer");var FBi=new _.vS("lumiereShelfDetailsRenderer");var nSe=new _.vS("revealBusinessEmailCommand");var vSN=new _.vS("validateChannelHandleCommand");var D7k=new _.vS("channelCreationFormEndpoint");var oST=new _.vS("aboutChannelViewModel");var U7A=new _.vS("channelThumbnailWithLinkRenderer");var ug9=new _.vS("channelCreationServiceEndpoint");var bqi=new _.vS("updateChannelPageSettingsEndpoint");var YO=function(G){this.delegate=G},Gk=function(){YO.apply(this,arguments)};
_.u(Gk,YO);_.Nh.Object.defineProperties(Gk.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(G){this.delegate.entityMetadata=G}}});var kZB=function(){Gk.apply(this,arguments)};
_.u(kZB,Gk);kZB.prototype.getAssociations=function(){return[]};
kZB.prototype.getTypeName=function(){return"channelHandle"};var $uB=new _.vS("webThumbnailDetailsExtensionData");_.fe=new _.vS("commandContext");var skK=new _.vS("addVideoLinkAction");var LBi=new _.vS("banAuthorAction");var Ak9=new _.vS("createCommentAction");var $7k=new _.vS("createCommentReplyAction");var SBK=new _.vS("createPollAction");var pw0=new _.vS("hideIdentityChipAction");var MdB=new _.vS("openUpdateCommentDialogAction");var VdN=new _.vS("pinCommentAction");var zle=new _.vS("removeCommentAction");var ESB=new _.vS("unpinCommentAction");var cE=new _.vS("updateBackstagePollAction");var Jk0=new _.vS("updateCommentVoteAction");var WBB=new _.vS("commentThreadRenderer");var iqN=function(){Gk.apply(this,arguments)};
_.u(iqN,Gk);iqN.prototype.getAssociations=function(){return[]};
iqN.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var f9e=function(){Gk.apply(this,arguments)};
_.u(f9e,Gk);f9e.prototype.getAssociations=function(){return[]};
f9e.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.BBN=new _.vS("commentDialogRenderer");var rkB=new _.vS("reloadCommentsCommand");var jkT=new _.vS("updateCommentsSettingsEndpoint");var x7N=new _.vS("commentViewModel");var tdB=new _.vS("triStateButtonViewModel");var hle=new _.vS("voiceReplyContainerViewModel");_.RP=new _.vS("commandExecutorCommand");var zz=new _.vS("emoji");var d72=new _.vS("updateCreatorChannelInnertubeCommand");_.C3e=new _.vS("appendContinuationItemsAction");_.HqT=new _.vS("changeEngagementPanelVisibilityAction");_.fQ=new _.vS("continuationCommand");var Xwi=new _.vS("hideReportedCommentAction");var yke=new _.vS("listMutationCommand");_.Ih=new _.vS("openPopupAction");var gSK=new _.vS("persistSubscriptionsDisplayPreferencesCommand");var P9i;_.YBk=new _.vS("playlistRemoveVideosAction");_.GWV=new _.vS("updatePlaylistAction");_.cMp=new _.vS("addToPlaylistCommand");_.IMK=new _.vS("endPlaylistCommand");_.RLN=new _.vS("recoverPlaylistCommand");_.Z$e=new _.vS("refreshPlaylistCommand");_.KZK=new _.vS("refreshFormCommand");P9i=new _.vS("openOnePickAddVideoModalCommand");_.zPr=new _.vS("reloadContinuationItemsCommand");_.Qj0=new _.vS("scrollToEngagementPanelCommand");var mnT=new _.vS("selectCountryCommand");var aMi=new _.vS("showReloadUiCommand");var Twk=new _.vS("undoFeedbackAction");var O$k=new _.vS("updateButtonAction");var eLT=new _.vS("updateSubscribeButtonAction");var NwB=new _.vS("updateToggleAction");var lMi=new _.vS("webNativeShareCommand");_.Pd=new _.vS("webCommandMetadata");_.Rh=new _.vS("webHandleServiceEndpointExtension");var uyf=new _.vS("webNavigationEndpointData");var qYA=new _.vS("backgroundAudioPlaybackCommand");var waA=new _.vS("copyLinkCommand");var FZp=new _.vS("playlistVotingRefreshPopupCommand");var nnp=new _.vS("selectChipCommand");var vn9=new _.vS("setCookieCommand");var Dn9=new _.vS("setLocalStorageCommand");var one=new _.vS("setPrefStorageEntryCommand");var kWp;_.UnT=new _.vS("settingsUpdateCheckboxCommand");_.u32=new _.vS("settingsUpdateTextCommand");_.b$0=new _.vS("settingsUpdateOptionsCommand");kWp=new _.vS("settingsUpdateSwitchCommand");_.sjA=new _.vS("settingsUpdateConnectedAppRendererCommand");var LZV=new _.vS("showCreatorChatbotEngagementPanelCommand");var AM2=new _.vS("updateTextInputFormFieldRendererCommand");var $nV=new _.vS("updateToggleButtonStateCommand");var SYK=new _.vS("updateUrlParamCommand");var pa9=new _.vS("webSubmitFormCommand");var M7N=new _.vS("channelSwitcherPageRenderer"),V7A=new _.vS("updateChannelSwitcherPageAction");_.Zo=new _.vS("continuationItemRenderer");_.ZI=new _.vS("richItemRenderer");var zL0=new _.vS("richSectionRenderer");_.EnK=new _.vS("richShelfRenderer");_.JMK=new _.vS("metadataBadgeRenderer");_.WZ9=new _.vS("multiPageMenuNotificationSectionRenderer");_.i$A=new _.vS("playlistLoopButtonStateRenderer");var fMp=new _.vS("claimLegacyYoutubeChannelEndpoint");var Bw0=new _.vS("getNotificationMenuEndpoint");var rMp=new _.vS("getSearchInVideoCommand");_.jj2=new _.vS("getTranscriptEndpoint");_.KC=new _.vS("signalServiceEndpoint");var xnB=new _.vS("verifyAgeEndpoint");var B6B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(B6B,_.aR);B6B.prototype.getPath=function(){return _.iU(this,1)};
B6B.prototype.getValue=function(){return _.iU(this,2)};var t7A=[0,_.P7,-1];var hL0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(hL0,_.aR);var fxB=_.b5(hL0,[0,_.ab,t7A]);var dnA=new _.vS("dismissalEndpoint");var C92=new _.vS("elementsCommand");_.JN=new _.vS("innertubeCommand");var H$T=new _.vS("multipleInlinePlaybackCommand");var QmC=new _.vS("loggingDirectives");var XaA=new _.vS("acknowledgeChannelTouStrikeCommand");var yMA=function(){Gk.apply(this,arguments)};
_.u(yMA,Gk);yMA.prototype.getAssociations=function(){return[]};
yMA.prototype.getTypeName=function(){return"booleanEntity"};var gn0=function(){Gk.apply(this,arguments)};
_.u(gn0,Gk);gn0.prototype.getAssociations=function(){return[]};
gn0.prototype.getTypeName=function(){return"stringEntity"};var ye=new _.vS("entityBatchUpdate");_.YYe=new _.vS("entityUpdateCommand");var GEK=function(){Gk.apply(this,arguments)};
_.u(GEK,Gk);GEK.prototype.getAssociations=function(){var G=[];this.delegate.alternateChannel&&G.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&G.push.apply(G,_.jn(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&G.push(this.delegate.oneofChannelEntity);return[].concat(_.jn(new Set(G)))};
GEK.prototype.getTypeName=function(){return"fakeChannel"};var cj2=function(){Gk.apply(this,arguments)};
_.u(cj2,Gk);cj2.prototype.getAssociations=function(){var G=[];this.delegate.entryCollection&&G.push(this.delegate.entryCollection);return[].concat(_.jn(new Set(G)))};
cj2.prototype.getTypeName=function(){return"fakePlaylist"};
var Iu0=function(){Gk.apply(this,arguments)};
_.u(Iu0,Gk);Iu0.prototype.getAssociations=function(){var G=[];this.delegate.parentPlaylist&&G.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var c=_.Q(this.delegate.entries),I=c.next();!I.done;I=c.next())G.push.apply(G,_.jn((new RuN(I.value)).getAssociations()));return[].concat(_.jn(new Set(G)))};
Iu0.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var RuN=function(){YO.apply(this,arguments)};
_.u(RuN,YO);RuN.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);return[].concat(_.jn(new Set(G)))};var ZVe=function(){Gk.apply(this,arguments)};
_.u(ZVe,Gk);ZVe.prototype.getAssociations=function(){var G=[];this.delegate.descriptionEntity&&G.push(this.delegate.descriptionEntity);this.delegate.creators&&G.push.apply(G,_.jn(this.delegate.creators));this.delegate.theBiggestFan&&G.push(this.delegate.theBiggestFan);return[].concat(_.jn(new Set(G)))};
ZVe.prototype.getTypeName=function(){return"fakeVideo"};
var K4e=function(){Gk.apply(this,arguments)};
_.u(K4e,Gk);K4e.prototype.getAssociations=function(){return[]};
K4e.prototype.getTypeName=function(){return"fakeVideoDescription"};var PYi=new _.vS("fantasyRosterViewModel");var QHT=new _.vS("addFollowUpSurveyCommand");var mei=new _.vS("getSurveyCommand");var aui=new _.vS("ratingSurveyOptionRenderer");_.fM=new _.vS("feedbackEndpoint");var TAp=new _.vS("reportHistoryTableCellRenderer"),OV2=new _.vS("reportHistoryTableTextCellRenderer"),euK=new _.vS("reportHistoryTableReasonCellRenderer");_.NAK=new _.vS("flagEndpoint");var lup=new _.vS("deleteFlowStepsCommand");_.qAN=new _.vS("flowNextStepCommand");_.wpp=new _.vS("flowPrevStepCommand");var F4V=new _.vS("getFlowCommand");var nO9=new _.vS("submitFormWithValidationFlowCommand");_.vOK=new _.vS("updateFlowCommand");var DeV=function(){Gk.apply(this,arguments)};
_.u(DeV,Gk);DeV.prototype.getAssociations=function(){return[]};
DeV.prototype.getTypeName=function(){return"flowStateEntity"};var oO2=new _.vS("flowFormState");_.KJ=new _.vS("flowStepRenderer");var UeB=new _.vS("gameCardRenderer");var uRe=new _.vS("accountLinkingStateChangedCommand");var bVk=function(){Gk.apply(this,arguments)};
_.u(bVk,Gk);bVk.prototype.getAssociations=function(){return[]};
bVk.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var kEe=new _.vS("changeMiniAppPlayStateCommand");var sHT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(sHT,_.aR);var PE=[1,2,3];var L40=[0,PE,puB,_.mU,uj2];var Aj9=_.b5(sHT,L40),$ei=_.kN(L40);var SAp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(SAp,_.aR);var ppA=[0,_.Yo,_.P7];var MMe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(MMe,_.aR);var VM2=[0,_.P7,_.Yo,-1];var QI=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(QI,_.aR);var zu2=_.kN([0,1,ppA,_.N0,VM2]);var EOT=new _.vS("miniAppScoreChallengeViewModel");var JjK=new _.vS("miniGameCardViewModel");var W4i=new _.vS("teaserCardViewModel");var iVK=function(){Gk.apply(this,arguments)};
_.u(iVK,Gk);iVK.prototype.getAssociations=function(){return[]};
iVK.prototype.getTypeName=function(){return"logoEntity"};var fuK=new _.vS("feedbackItemRenderer");var BAi=function(){Gk.apply(this,arguments)};
_.u(BAi,Gk);BAi.prototype.getAssociations=function(){return[]};
BAi.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.rjB=new _.vS("playerInterstitialRenderer");var jHe=new _.vS("getKidsBlocklistPickerCommand");_.xee=new _.vS("updateKidsBlacklistEndpoint");_.m1=new _.vS("likeEndpoint");var tMT,huK,de2;tMT=new _.vS("addChatItemAction");huK=new _.vS("removeChatItemAction");de2=new _.vS("markChatItemAsDeletedAction");_.CYe=new _.vS("setLiveChatCollapsedStateAction");var HV2=function(){Gk.apply(this,arguments)};
_.u(HV2,Gk);HV2.prototype.getAssociations=function(){return[]};
HV2.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var XpT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(XpT,_.aR);XpT.prototype.getPayloadCase=function(){return _.py(this,yjB)};
var yjB=[3,4];var gO0=[0,_.ab,[0,[1,2],_.mU,_.T7,[0,_.Qz,1,_.Qz]]];var YAp=[0,_.P7,-1];var Gkk=[0,[1],_.mU];var ah=[0,[1,2],_.mU,_.T7,[0,_.N0]];var Tk=[0,_.P7];var ct0=[0,[0,_.Zn,_.Rb,[0,_.Qz,_.lI,_.Qz]],1,[0,_.Zn]];var IIV=[0,G7];var Rye=[0,G7];var ZJk=[0,Rye,IIV];var K1i=[0,_.ab,[0,[1,2],_.mU,-1],_.Zn];var Pv9=[0,[2],1,_.T7,[0,_.Qz,-1,K1i]];var QhK=[0,[1],_.T7,[0,_.Qz,_.P7,_.lI,1,K1i]];var mlk=[0,_.Rb,-1,UgK,_.N0];var aI0=[0,[0,gI,-3],-4];var OP=[0,_.Zn,-3,_.P7,_.Zn,_.w4,_.Zn,gO0,_.Zn,-2];var e5=[0,_.ab,[0,[1,2],_.mU,-1],_.Zn,_.P7];var Tte=[0,[3],ah,[0,[2,3,4],JdV,_.mU,-2],_.T7,[0,_.P7],_.Yo];var OJK=[0,[3,5],_.P7,_.c7,_.T7,[0,1,_.Yo,_.N0],_.N0,_.T7,[0,_.N0,_.Yo]];var eyB=[0,2,_.c7,_.P7,-1];var Nt9=[0,$g0];var lIV=[0,[3,4],2,kr0,_.mU,_.P7];var qPk=[0,_.N0,-2,1,_.P7];var wE9=[0,_.P7,-1,_.N0];var F1K=[0,Tk,function(){return Nl},
Tk,_.P7],nhi=[0,_.N0,Tk,ah,function(){return Nl},
_.P7],Nl=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],Tk,_.c7,[0,_.Zn,1,_.Zn,1,_.Zn,1,_.N0,-1,Tk],[0,1,_.Zn,2,_.Zn,_.N0,_.Zn],1,_.c7,-1,_.P7,_.c7,2,gI,[0,gI,_.c7],_.P7,1,ct0,1,ah,_.w4,1,[0,[0,_.ab,[0,_.P7,_.Zn,_.N0]]],[0,_.Zn,[0,_.Yo,[0,_.lI]],_.Yo,1,[0,LWK,-1]],_.P7,[0,1,_.P7],76,_.T7,[0,ah,e5,ct0,1,[0,_.ab,e5]],1,_.T7,[0,ah,_.P7,_.Zn],
_.T7,[0,ah,Gkk],_.T7,[0,ah,Gkk,_.c7],_.T7,[0,ah,Gkk],_.T7,[0,ah,_.ab,Tk,ah,MGA],_.T7,[0,ah,Tk,_.P7],_.T7,[0,ah,_.Zn,OP,-1,_.Zn],4,_.T7,[0,ah,_.Zn,_.c7,OP,_.Zn],_.T7,[0,[4,9],ah,_.N0,_.c7,_.mU,e5,1,ct0,_.P7,_.mU,qPk],_.T7,[0,ah,Tk,ah,_.N0,_.P7],_.T7,[0,_.Zn,ah,OP,_.Zn,_.P7],_.T7,[0,ah,Tk,ah,_.N0,_.P7],1,_.T7,[0,ah,_.N0,_.P7,OP],_.T7,[0,ah,_.N0,[0,_.P7,_.c7],_.P7,_.c7,_.P7,_.e1,-2,3,wE9,_.ab,wE9,wE9,qPk],_.T7,[0,ah,_.N0,QhK,_.ab,[0,Rye,Pv9],Tk,_.ab,ZJk,_.P7,1,_.N0,mlk,aI0,oF0,-1],_.T7,[0,ah,[0,_.lI,
-1,QhK,_.ab,[0,Rye,Pv9,IIV],[0,_.FC],1,_.Qz],Tk,_.P7],_.T7,[0,ah,e5,_.P7,[0,_.Rb]],_.T7,function(){return nhi},
_.T7,[0,ah,_.c7,_.P7,-1,_.Zn],_.T7,[0,[6,7],ah,_.ab,eyB,_.N0,e5,1,_.T7,lIV,_.T7,Nt9],_.T7,[0,_.ab,eyB,_.N0,_.Zn],_.T7,[0,_.P7,z1N,-1],_.T7,[0,Tk,_.ab,ZJk,_.P7],_.T7,[0,ah,Tk,_.P7],_.T7,[0,_.e1,_.P7],_.T7,[0,YAp],_.T7,[0,YAp],_.T7,[0,e5],_.T7,[0,Tk,e5],_.T7,function(){return F1K},
_.T7,[0,Tk,_.P7],_.T7,[0,Tk,_.P7],1,_.T7,[0,_.Zn,ah,OP,_.Zn,OP],_.T7,[0,_.FC],1,_.T7,[0],1,_.T7,[0,Tk,_.N0,ah,_.N0],_.T7,[0,[1,2],_.T7,lIV,_.T7,Nt9,_.c7],_.T7,[0,_.FC,e5,OJK,_.P7,_.c7],_.T7,[0,OJK,_.P7,_.c7],_.T7,[0,mlk,e5,_.Zn,aI0],_.T7,Tte,_.T7,[0],_.T7,[0,_.P7,-1,_.Yo],_.T7,[0,Tk,_.P7],_.T7,[0,Tte,_.Yo,_.P7],_.T7,[0,ah,OP,_.Zn],_.T7,[0,ah,OP,_.Zn],_.T7,[0,mlk,aI0,e5,_.w4,_.Zn,oF0,-1],_.T7,[0,ah,OP,_.Zn]];var vhV=[0,_.ab,Nl];var Dli=_.b5(XpT,[0,yjB,1,_.Yo,_.T7,[0,[18,22,24],vhV,3,[0,vhV],1,_.Yo,[0,_.ab,[0,_.c7,gI],_.c7],1,Nl,-1,[0,_.Km,-2,_.w4,_.Km,-1,_.w4,_.Km,gO0,_.Km,-2],vF9,[!0,_.P7,[0,Gkk,2,_.P7,_.c7,_.Zn,2,_.P7,_.e1]],[0,[1,2,3],[5,6],_.T7,[0,_.Qz],_.T7,[0,_.Qz,-1],_.T7,[0,_.Qz],1,_.T7,YAp,_.T7,[0,_.P7]],[0,Nl,-1],_.FC,Nl,_.T7,Nl,[0,vhV],_.Yo,Nl,_.T7,Nl,_.P7,_.T7,Nl],_.T7,IXp,_.Yo]);var ohV=new _.vS("liveChatEndpoint");var Ul0=new _.vS("liveChatItemContextMenuEndpoint");var uFK=new _.vS("liveChatReplayEndpoint");_.bJB=new _.vS("emojiPickerRenderer");var kkK=new _.vS("liveChatAuthorBadgeViewModel");var sh0=new _.vS("deleteLiveChatMessageCommand");var L1V=new _.vS("liveChatActionEndpoint");var At9=new _.vS("createLiveChatPollEndpoint");var $lB=new _.vS("manageLiveChatUserEndpoint");var SP9=new _.vS("moderateLiveChatEndpoint");_.pE0=new _.vS("sendLiveChatMessageEndpoint");var M5k=new _.vS("sendLiveChatVoteEndpoint");var V5T=new _.vS("clearLocationCommand");var zyp=new _.vS("resolveLocationCommand");var Eh9=new _.vS("interactionLoggingCommandMetadata");var JtB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(JtB,_.aR);var W1e=function(G,c){return _.DL(G,1,c)};var iJ0=[0,_.Zn];var fIN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(fIN,_.aR);var Btk=function(G,c){return pk(G,1,JtB,c)};fIN.prototype.JSC$12488_serializeBinary=GiC([0,_.ab,iJ0]);var $n8={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 rti={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"},
jh9={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 ce8={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN"};_.CQq=new _.vS("logFlowLoggingEventCommand");_.oJ=new _.vS("loggingContext");var xl9=new _.vS("audioTrackSelectActionCommand");var t5k=new _.vS("captionLanguageSelectActionCommand");var hye=new _.vS("showAudioTrackPickerActionCommand");var dl0=new _.vS("showCaptionLanguageSelectActionCommand");var Cv2=new _.vS("dismissDialogEndpoint");var HJ0=new _.vS("dismissPlayerOverlayCommand");var XEV=new _.vS("hideItemSectionVideosByIdCommand");var ytT=new _.vS("showMiniplayerCommand");var gh0=function(){Gk.apply(this,arguments)};
_.u(gh0,Gk);gh0.prototype.getAssociations=function(){return[]};
gh0.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var YP9=function(){Gk.apply(this,arguments)};
_.u(YP9,Gk);YP9.prototype.getAssociations=function(){return[]};
YP9.prototype.getTypeName=function(){return"downloadStatusEntity"};var GI0=function(){Gk.apply(this,arguments)};
_.u(GI0,Gk);GI0.prototype.getAssociations=function(){return[]};
GI0.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var che=function(){Gk.apply(this,arguments)};
_.u(che,Gk);che.prototype.getAssociations=function(){var G=[];this.delegate.downloadsList&&G.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&G.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&G.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.jn(new Set(G)))};
che.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var IGK=function(){Gk.apply(this,arguments)};
_.u(IGK,Gk);IGK.prototype.getAssociations=function(){var G=[];this.delegate.refresh&&G.push(this.delegate.refresh);if(this.delegate.downloads)for(var c=_.Q(this.delegate.downloads),I=c.next();!I.done;I=c.next())G.push.apply(G,_.jn((new RF9(I.value)).getAssociations()));return[].concat(_.jn(new Set(G)))};
IGK.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var RF9=function(){YO.apply(this,arguments)};
_.u(RF9,YO);RF9.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.playlist&&G.push(this.delegate.playlist);this.delegate.videoItem&&G.push(this.delegate.videoItem);this.delegate.playlistItem&&G.push(this.delegate.playlistItem);return[].concat(_.jn(new Set(G)))};var Z7i=function(){Gk.apply(this,arguments)};
_.u(Z7i,Gk);Z7i.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.jn(this.delegate.localImageEntities));return[].concat(_.jn(new Set(G)))};
Z7i.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var KCp=function(){Gk.apply(this,arguments)};
_.u(KCp,Gk);KCp.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.jn(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jn(new Set(G)))};
KCp.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var P12=function(){Gk.apply(this,arguments)};
_.u(P12,Gk);P12.prototype.getAssociations=function(){return[]};
P12.prototype.getTypeName=function(){return"offlineabilityEntity"};var QMi=function(){Gk.apply(this,arguments)};
_.u(QMi,Gk);QMi.prototype.getAssociations=function(){var G=[];this.delegate.fakeChildren&&G.push.apply(G,_.jn(this.delegate.fakeChildren));return[].concat(_.jn(new Set(G)))};
QMi.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var m40=function(){Gk.apply(this,arguments)};
_.u(m40,Gk);m40.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&G.push(this.delegate.offlineVideoPolicy);return[].concat(_.jn(new Set(G)))};
m40.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var aGp=function(){Gk.apply(this,arguments)};
_.u(aGp,Gk);aGp.prototype.getAssociations=function(){return[]};
aGp.prototype.getTypeName=function(){return"continuationTokenEntity"};var Tge=function(){Gk.apply(this,arguments)};
_.u(Tge,Gk);Tge.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.videos&&G.push.apply(G,_.jn(this.delegate.videos));this.delegate.collaboratorChannels&&G.push.apply(G,_.jn(this.delegate.collaboratorChannels));this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.jn(new Set(G)))};
Tge.prototype.getTypeName=function(){return"mainPlaylistEntity"};var O7p=function(){Gk.apply(this,arguments)};
_.u(O7p,Gk);O7p.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.channelContributor&&G.push(this.delegate.channelContributor);return[].concat(_.jn(new Set(G)))};
O7p.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var eFi=function(){YO.apply(this,arguments)};
_.u(eFi,YO);eFi.prototype.getAssociations=function(){var G=[];this.delegate.recommendedVideoMetadata&&G.push.apply(G,_.jn((new NgK(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.jn(new Set(G)))};
var NgK=function(){YO.apply(this,arguments)};
_.u(NgK,YO);NgK.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.jn(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jn(new Set(G)))};var lGK=function(){YO.apply(this,arguments)};
_.u(lGK,YO);lGK.prototype.getAssociations=function(){var G=[];this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);return[].concat(_.jn(new Set(G)))};var qOk=function(){Gk.apply(this,arguments)};
_.u(qOk,Gk);qOk.prototype.getAssociations=function(){var G=[];this.delegate.owner&&G.push(this.delegate.owner);this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.userState&&G.push.apply(G,_.jn((new lGK(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&G.push.apply(G,_.jn((new eFi(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.jn(new Set(G)))};
qOk.prototype.getTypeName=function(){return"mainVideoEntity"};var wkN=function(){Gk.apply(this,arguments)};
_.u(wkN,Gk);wkN.prototype.getAssociations=function(){var G=[];this.delegate.userChannelDetails&&G.push(this.delegate.userChannelDetails);return[].concat(_.jn(new Set(G)))};
wkN.prototype.getTypeName=function(){return"ytMainChannelEntity"};var FCk=function(){Gk.apply(this,arguments)};
_.u(FCk,Gk);FCk.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&G.push.apply(G,_.jn(this.delegate.localImageEntities));this.delegate.downloadStatus&&G.push(this.delegate.downloadStatus);return[].concat(_.jn(new Set(G)))};
FCk.prototype.getTypeName=function(){return"ytMainVideoEntity"};var bxg=new _.vS("downloadsPageSmartDownloadsOptInBannerParams");var Axr=new _.vS("downloadsPageUpsellBannerParams");var nLe=function(){Gk.apply(this,arguments)};
_.u(nLe,Gk);nLe.prototype.getAssociations=function(){return[]};
nLe.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var vLA=function(){Gk.apply(this,arguments)};
_.u(vLA,Gk);vLA.prototype.getAssociations=function(){return[]};
vLA.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var D4e=function(){Gk.apply(this,arguments)};
_.u(D4e,Gk);D4e.prototype.getAssociations=function(){return[]};
D4e.prototype.getTypeName=function(){return"macroMarkerEntity"};var oL0=function(){Gk.apply(this,arguments)};
_.u(oL0,Gk);oL0.prototype.getAssociations=function(){return[]};
oL0.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var U42=function(){Gk.apply(this,arguments)};
_.u(U42,Gk);U42.prototype.getAssociations=function(){return[]};
U42.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var uiB=function(){Gk.apply(this,arguments)};
_.u(uiB,Gk);uiB.prototype.getAssociations=function(){return[]};
uiB.prototype.getTypeName=function(){return"playerStateEntity"};var b7k=function(){Gk.apply(this,arguments)};
_.u(b7k,Gk);b7k.prototype.getAssociations=function(){return[]};
b7k.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var kIN=function(){Gk.apply(this,arguments)};
_.u(kIN,Gk);kIN.prototype.getAssociations=function(){return[]};
kIN.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var sMK=function(){Gk.apply(this,arguments)};
_.u(sMK,Gk);sMK.prototype.getAssociations=function(){return[]};
sMK.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.dG=new _.vS("dislikeButtonViewModel");_.hA=new _.vS("likeButtonViewModel");var LCK=new _.vS("videoSummaryContentViewModel");var AhB=new _.vS("videoSummaryParagraphViewModel");var $4k=new _.vS("changeTimelyActionVisibilityCommand");var SOK=new _.vS("hideEngagementPanelEndpoint");var pkT=new _.vS("refreshPanelEndpoint");var Ms0=new _.vS("scrollToSectionEndpoint");var Vs0=new _.vS("seekToVideoTimestampCommand");_.iJ=new _.vS("showEngagementPanelEndpoint");var zFe=new _.vS("showTransientPlayerScrimOverlayCommand");var ELT=new _.vS("toggleEngagementPanelCommand");_.Jhe=new _.vS("createBroadcastCommand");var WCp=new _.vS("metadataUpdateCommand");var i70=function(){Gk.apply(this,arguments)};
_.u(i70,Gk);i70.prototype.getAssociations=function(){return[]};
i70.prototype.getTypeName=function(){return"featuredProductsEntity"};var fGA=function(){Gk.apply(this,arguments)};
_.u(fGA,Gk);fGA.prototype.getAssociations=function(){return[]};
fGA.prototype.getTypeName=function(){return"pinnedProductEntity"};var Bge=function(){Gk.apply(this,arguments)};
_.u(Bge,Gk);Bge.prototype.getAssociations=function(){return[]};
Bge.prototype.getTypeName=function(){return"trendingOfferEntity"};_.rh9=new _.vS("merchandiseShelfRenderer");var jMT=new _.vS("shoppingContentLineItemViewModel");var x4B=new _.vS("gridMovieRenderer");_.ts9=new _.vS("movieRenderer");var hFB=function(){Gk.apply(this,arguments)};
_.u(hFB,Gk);hFB.prototype.getAssociations=function(){return[]};
hFB.prototype.getTypeName=function(){return"compositeSourceEntity"};var d4T=function(){Gk.apply(this,arguments)};
_.u(d4T,Gk);d4T.prototype.getAssociations=function(){var G=[];this.delegate.compositeSourceKeys&&G.push.apply(G,_.jn(this.delegate.compositeSourceKeys));return[].concat(_.jn(new Set(G)))};
d4T.prototype.getTypeName=function(){return"multiviewStagingEntity"};var C10=function(){Gk.apply(this,arguments)};
_.u(C10,Gk);C10.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.jn(this.delegate.trackDownloadMetadatas));return[].concat(_.jn(new Set(G)))};
C10.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var H7B=function(){Gk.apply(this,arguments)};
_.u(H7B,Gk);
H7B.prototype.getAssociations=function(){var G=[];this.delegate.downloadedTracks&&G.push.apply(G,_.jn(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&G.push.apply(G,_.jn(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&G.push.apply(G,_.jn(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&G.push.apply(G,_.jn(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&G.push.apply(G,_.jn(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
G.push.apply(G,_.jn(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&G.push.apply(G,_.jn(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&G.push.apply(G,_.jn(this.delegate.metadataOnlyTracks));return[].concat(_.jn(new Set(G)))};
H7B.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var XkV=function(){Gk.apply(this,arguments)};
_.u(XkV,Gk);XkV.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.jn(this.delegate.trackDownloadMetadatas));return[].concat(_.jn(new Set(G)))};
XkV.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var yhe=function(){Gk.apply(this,arguments)};
_.u(yhe,Gk);yhe.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.jn(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jn(new Set(G)))};
yhe.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var gL0=function(){Gk.apply(this,arguments)};
_.u(gL0,Gk);
gL0.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&G.push.apply(G,_.jn(this.delegate.primaryArtists));this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.tracks&&G.push.apply(G,_.jn(this.delegate.tracks));this.delegate.share&&G.push(this.delegate.share);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.refresh&&
G.push(this.delegate.refresh);return[].concat(_.jn(new Set(G)))};
gL0.prototype.getTypeName=function(){return"musicAlbumRelease"};
var YO2=function(){Gk.apply(this,arguments)};
_.u(YO2,Gk);YO2.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.tracks&&G.push.apply(G,_.jn(this.delegate.tracks));return[].concat(_.jn(new Set(G)))};
YO2.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Gbe=function(){Gk.apply(this,arguments)};
_.u(Gbe,Gk);Gbe.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);return[].concat(_.jn(new Set(G)))};
Gbe.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var cx9=function(){Gk.apply(this,arguments)};
_.u(cx9,Gk);cx9.prototype.getAssociations=function(){var G=[];this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);return[].concat(_.jn(new Set(G)))};
cx9.prototype.getTypeName=function(){return"musicArtist"};
var Ise=function(){Gk.apply(this,arguments)};
_.u(Ise,Gk);Ise.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.jn(new Set(G)))};
Ise.prototype.getTypeName=function(){return"musicArtistDetail"};
var R$0=function(){Gk.apply(this,arguments)};
_.u(R$0,Gk);R$0.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.jn(new Set(G)))};
R$0.prototype.getTypeName=function(){return"musicArtistUserDetail"};var ZxB=function(){Gk.apply(this,arguments)};
_.u(ZxB,Gk);ZxB.prototype.getAssociations=function(){return[]};
ZxB.prototype.getTypeName=function(){return"musicLibraryEdit"};var K$B=function(){Gk.apply(this,arguments)};
_.u(K$B,Gk);K$B.prototype.getAssociations=function(){return[]};
K$B.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var PlV=function(){Gk.apply(this,arguments)};
_.u(PlV,Gk);
PlV.prototype.getAssociations=function(){var G=[];this.delegate.tracks&&G.push.apply(G,_.jn(this.delegate.tracks));this.delegate.refresh&&G.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&G.push(this.delegate.details);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&G.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.entryCollection&&
G.push(this.delegate.entryCollection);this.delegate.share&&G.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&G.push.apply(G,_.jn((new QTT(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.jn(new Set(G)))};
PlV.prototype.getTypeName=function(){return"musicPlaylist"};
var QTT=function(){YO.apply(this,arguments)};
_.u(QTT,YO);QTT.prototype.getAssociations=function(){var G=[];this.delegate.creatorEntity&&G.push(this.delegate.creatorEntity);return[].concat(_.jn(new Set(G)))};var mip=function(){Gk.apply(this,arguments)};
_.u(mip,Gk);mip.prototype.getAssociations=function(){return[]};
mip.prototype.getTypeName=function(){return"musicShare"};var as0=function(){Gk.apply(this,arguments)};
_.u(as0,Gk);
as0.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&G.push.apply(G,_.jn(this.delegate.artists));this.delegate.audioModeVersion&&G.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&G.push(this.delegate.videoModeVersion);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.details&&G.push(this.delegate.details);this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.share&&
G.push(this.delegate.share);this.delegate.libraryEdit&&G.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);this.delegate.lyrics&&G.push(this.delegate.lyrics);return[].concat(_.jn(new Set(G)))};
as0.prototype.getTypeName=function(){return"musicTrack"};
var Tme=function(){Gk.apply(this,arguments)};
_.u(Tme,Gk);Tme.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.jn(new Set(G)))};
Tme.prototype.getTypeName=function(){return"musicTrackDetail"};
var OxV=function(){Gk.apply(this,arguments)};
_.u(OxV,Gk);OxV.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.jn(new Set(G)))};
OxV.prototype.getTypeName=function(){return"musicTrackUserDetail"};var ce=new _.vS("musicResponsiveListItemRenderer");var Whr=new _.vS("addToPlaylistEndpoint");var e$2=new _.vS("captionPickerEndpoint");var NmN=new _.vS("suggestStats");var lsN=new _.vS("backstageImageUploadEndpoint");var qrK=new _.vS("createBackstagePostDialogEndpoint");_.wR9=new _.vS("createCommentReplyDialogEndpoint");_.F$2=new _.vS("updateCommentDialogEndpoint");_.nr0=new _.vS("updateCommentReplyDialogEndpoint");var vrA=new _.vS("menuEndpoint");var DMb=new _.vS("modalEndpoint");var Di2=new _.vS("playlistEditorEndpoint");var ore=new _.vS("copyTextEndpoint");var UiK,uXV;UiK=new _.vS("shareEndpoint");uXV=new _.vS("shareEntityEndpoint");_.bxA=new _.vS("shareEntityServiceEndpoint");_.$5b=new _.vS("userFeedbackEndpoint");_.fR=new _.vS("watchEndpoint");var TEp=new _.vS("watchPlaylistEndpoint");var kbN=new _.vS("addUpcomingEventReminderEndpoint");_.lv=new _.vS("getCommentsFromInboxCommand");var sTV=new _.vS("notificationOptOutEndpoint");var L$K=new _.vS("recordNotificationInteractionsEndpoint");var Axi=new _.vS("removeUpcomingEventReminderEndpoint");_.Y5=new _.vS("getDownloadActionCommand");_.$i2=new _.vS("offlineOrchestrationActionCommand");var SrA=function(){Gk.apply(this,arguments)};
_.u(SrA,Gk);SrA.prototype.getAssociations=function(){return[]};
SrA.prototype.getTypeName=function(){return"captionTrack"};var pRN=function(){Gk.apply(this,arguments)};
_.u(pRN,Gk);pRN.prototype.getAssociations=function(){return[]};
pRN.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var MPK=function(){Gk.apply(this,arguments)};
_.u(MPK,Gk);MPK.prototype.getAssociations=function(){return[]};
MPK.prototype.getTypeName=function(){return"offlineVideoPolicy"};var VPi=function(){Gk.apply(this,arguments)};
_.u(VPi,Gk);VPi.prototype.getAssociations=function(){return[]};
VPi.prototype.getTypeName=function(){return"offlineVideoStreams"};var z$A=function(){Gk.apply(this,arguments)};
_.u(z$A,Gk);z$A.prototype.getAssociations=function(){var G=[];this.delegate.transfer&&G.push(this.delegate.transfer);this.delegate.adsPlaybackData&&G.push.apply(G,_.jn(this.delegate.adsPlaybackData));this.delegate.drmLicense&&G.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&G.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jn(new Set(G)))};
z$A.prototype.getTypeName=function(){return"playbackData"};var Ere=function(){Gk.apply(this,arguments)};
_.u(Ere,Gk);Ere.prototype.getAssociations=function(){return[]};
Ere.prototype.getTypeName=function(){return"refresh"};var JxV=function(){Gk.apply(this,arguments)};
_.u(JxV,Gk);JxV.prototype.getAssociations=function(){var G=[];this.delegate.offlineVideoStreams&&G.push.apply(G,_.jn(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&G.push.apply(G,_.jn(this.delegate.captionTrack));return[].concat(_.jn(new Set(G)))};
JxV.prototype.getTypeName=function(){return"transfer"};var W$B=function(){Gk.apply(this,arguments)};
_.u(W$B,Gk);W$B.prototype.getAssociations=function(){return[]};
W$B.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var ixe=new _.vS("showMoreDrawerCommand");var fsK=new _.vS("updateEngagementPanelContentCommand");var BmB=new _.vS("getPdgBuyFlowCommand");var rxK=new _.vS("liveChatPurchaseMessageEndpoint");var jTA=new _.vS("openSuperStickerBuyFlowCommand");var xi9=new _.vS("updatePdgFeatureEnablementCommand");var tPi=function(){Gk.apply(this,arguments)};
_.u(tPi,Gk);tPi.prototype.getAssociations=function(){return[]};
tPi.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var h$A=function(){Gk.apply(this,arguments)};
_.u(h$A,Gk);h$A.prototype.getAssociations=function(){return[]};
h$A.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.dii=new _.vS("pdgCommentChipRenderer");_.Clp=new _.vS("permissionRoleBottomBarRenderer");_.Hxe=new _.vS("updatePermissionRoleCommand");var XRA=new _.vS("prefetchWatchCommand");var yxT=new _.vS("updatePlayerErrorMessageCommand");var $1q=new _.vS("toggleCaptionsVisibilityCommand");var gr0=new _.vS("playerDisclosureViewModel");_.Yre=new _.vS("quickActionsViewModel");var GQV=new _.vS("playerResponse");var cG9=new _.vS("playlistRenderer");_.IdK=new _.vS("playlistVideoListRenderer");_.ql=new _.vS("playlistEditEndpoint");var R7i=new _.vS("createImagePollCommand");var ZfK=new _.vS("createQuizCommand");var K8K=new _.vS("quizRenderer");var Pd0=new _.vS("uploadedVideoRenderer");var Qpi=new _.vS("decorateMessageEndpoint");var mHp=new _.vS("lpOfferCardOptionViewModel");var adp=new _.vS("sfvAudioItemPlaybackCommand");var TyK=function(){Gk.apply(this,arguments)};
_.u(TyK,Gk);TyK.prototype.getAssociations=function(){return[]};
TyK.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.wt=new _.vS("reelNonVideoContentEndpoint");_.vH=new _.vS("reelWatchEndpoint");var OfN=new _.vS("reelActionBarViewModel");_.FF=new _.vS("reelItemRenderer");var e7V=new _.vS("reelMetapanelViewModel");_.nJ=new _.vS("reelNonVideoContentRenderer");_.Nyp=new _.vS("reelPlayerOverlayRenderer");var ldV=new _.vS("shortsLockupViewModel");var q7V=new _.vS("sponsorButtonViewModel");var wQe=new _.vS("reelItemWatchResponse");var F8i=new _.vS("textBadgeRenderer");_.vE=new _.vS("buttonRenderer");_.DI=new _.vS("toggleButtonRenderer");var BuO=new _.vS("switchButtonViewModel");_.n4N=new _.vS("confirmDialogRenderer");var v42;v42=new _.vS("menuRenderer");_.DHN=new _.vS("menuFlexibleItemRenderer");var o4A=new _.vS("pollRenderer");_.UH9=new _.vS("backgroundPromoRenderer");var bf2;_.u5N=new _.vS("chipCloudRenderer");bf2=new _.vS("chipCloudChipRenderer");var kQK=new _.vS("dropdownRenderer");var spi=new _.vS("gridVideoRenderer");_.L8K=new _.vS("itemSectionRenderer");_.AGT=new _.vS("messageRenderer");var $HN=new _.vS("sortFilterHeaderRenderer");_.oh=new _.vS("videoRenderer");var S7B=new _.vS("resolveUrlCommandMetadata");var pQB=function(){Gk.apply(this,arguments)};
_.u(pQB,Gk);pQB.prototype.getAssociations=function(){return[]};
pQB.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.MNk=new _.vS("getAnswerCommand");_.wn=new _.vS("searchEndpoint");var VN0=new _.vS("genAiRichTextViewModel");var E88=new _.vS("overviewAnswerViewModel");var z7i=new _.vS("videoOverviewViewModel");var E4V=new _.vS("addToPlaylistServiceEndpoint");var JG2=new _.vS("clearSearchHistoryEndpoint");var W8e=new _.vS("clearWatchHistoryEndpoint");var if0=new _.vS("webSerializedServiceEndpointExtension");_.fdV=new _.vS("createCommentEndpoint");var Bye=new _.vS("createCommentReplyEndpoint");var rGK=new _.vS("performCommentActionEndpoint");var jpe=new _.vS("updateCommentEndpoint");var xH9=new _.vS("updateCommentReplyEndpoint");_.UP=new _.vS("createPlaylistServiceEndpoint");var tNB=new _.vS("deletePlaylistEndpoint");var h7K=new _.vS("deleteVideoEndpoint");var Jr0=new _.vS("getReportFormEndpoint");var dHB=new _.vS("modifyChannelNotificationPreferenceEndpoint");var C0T;_.UN=new _.vS("offlinePlaylistEndpoint");C0T={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 H2b;_.o9=new _.vS("offlineVideoEndpoint");H2b={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 CdB=new _.vS("pingingEndpoint");_.Hf2=new _.vS("selectActiveIdentityEndpoint");var XQ2=new _.vS("setSettingEndpoint");var FQ8=new _.vS("undoFeedbackEndpoint");var yG0=new _.vS("unsubscribeEndpoint");_.g4B=new _.vS("updatedMetadataEndpoint");var Y7k=function(){Gk.apply(this,arguments)};
_.u(Y7k,Gk);Y7k.prototype.getAssociations=function(){return[]};
Y7k.prototype.getTypeName=function(){return"settingEntity"};_.G5T=new _.vS("updateLocalAppSettingCommand");var cu2=new _.vS("saveImageToDeviceEndpoint");var Igp=new _.vS("shareImageCommand");var RTT=new _.vS("sharingProviderDataCommand");var ZI0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(ZI0,_.aR);var KO0=[0,_.P7,-1];ZI0.prototype.JSC$12695_serializeBinary=GiC(KO0);var Ps9=_.kN(KO0);var Qek=new _.vS("userMentionSuggestionRenderer");var m_e=new _.vS("liveChatTunnelCommand");var agK=new _.vS("showSponsorshipsGiftOfferDialogCommand");var TQ9=new _.vS("sponsorshipsScrollableShelfViewModel");var OIB=new _.vS("updateUpcomingEventReminderButtonStateCommand");var eTT=new _.vS("upcomingEventReminderButtonStateRenderer");var NQe=new _.vS("subscribeEndpoint");var lgV=new _.vS("registerTasksCommand");var qXA=new _.vS("hideSheetCommand");var wT2=new _.vS("hideSnackbarCommand");var FON=new _.vS("showDialogCommand");_.AY=new _.vS("showSheetCommand");var nwe=new _.vS("showSnackbarCommand");var vw9=function(){Gk.apply(this,arguments)};
_.u(vw9,Gk);vw9.prototype.getAssociations=function(){return[]};
vw9.prototype.getTypeName=function(){return"chipEntity"};var D_K=function(){Gk.apply(this,arguments)};
_.u(D_K,Gk);D_K.prototype.getAssociations=function(){return[]};
D_K.prototype.getTypeName=function(){return"dismissState"};_.B8=new _.vS("avatarViewModel");var owB=new _.vS("badgeViewModel");_.uv=new _.vS("buttonViewModel");_.bv=new _.vS("chipViewModel");var U_2=new _.vS("contentPreviewImageViewModel");var u$e=new _.vS("decoratedAvatarViewModel");_.RHU=new _.vS("engagementBarViewModel");_.bIi=new _.vS("imageBannerViewModel");var k50=new _.vS("lockupContentMetadataRowExtension");_.sep=new _.vS("lockupMetadataViewModel");_.LOi=new _.vS("lockupViewModel");var AuA=new _.vS("avatarStackViewModel");_.$_9=new _.vS("contentMetadataViewModel");var SXK=function(){Gk.apply(this,arguments)};
_.u(SXK,Gk);SXK.prototype.getAssociations=function(){return[]};
SXK.prototype.getTypeName=function(){return"pageHeaderEntity"};_.pTT=new _.vS("pageHeaderViewModel");var MH0=new _.vS("snackbarViewModel");var VH2=new _.vS("thumbnailHoverOverlayToggleActionsViewModel");_.kh=new _.vS("toggleButtonViewModel");var zTB=function(){Gk.apply(this,arguments)};
_.u(zTB,Gk);zTB.prototype.getAssociations=function(){return[]};
zTB.prototype.getTypeName=function(){return"votingEntity"};_.Z6O=new _.vS("votingViewModel");var EwV=new _.vS("sectionHeaderViewModel");var Ju2=new _.vS("notifyDropdownOptionSelectedCommand");var wip=new _.vS("listViewModel");_.$Z=new _.vS("listItemViewModel");var WO9=new _.vS("dialogHeaderViewModel");var iIN=function(){Gk.apply(this,arguments)};
_.u(iIN,Gk);iIN.prototype.getAssociations=function(){return[]};
iIN.prototype.getTypeName=function(){return"dataFreshnessEntity"};var uWb=new _.vS("suspenseViewModel");var fg0=new _.vS("tooltipViewModel");var BQK=function(){Gk.apply(this,arguments)};
_.u(BQK,Gk);BQK.prototype.getAssociations=function(){return[]};
BQK.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var ruk=function(){Gk.apply(this,arguments)};
_.u(ruk,Gk);ruk.prototype.getAssociations=function(){return[]};
ruk.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var je2=function(){Gk.apply(this,arguments)};
_.u(je2,Gk);je2.prototype.getAssociations=function(){return[]};
je2.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.x_0=new _.vS("transcriptSubmitCaptionCorrectionCommand");var tHT=function(){Gk.apply(this,arguments)};
_.u(tHT,Gk);tHT.prototype.getAssociations=function(){return[]};
tHT.prototype.getTypeName=function(){return"buttonEntity"};var mMU=new _.vS("unpluggedStringRunImage");var hTA=new _.vS("tabViewModel");var d_9=new _.vS("tabbedViewModel");var Cs0=function(){Gk.apply(this,arguments)};
_.u(Cs0,Gk);Cs0.prototype.getAssociations=function(){return[]};
Cs0.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.HIA=new _.vS("updateDescriptionAction");var XTK=new _.vS("updateToggleButtonTextAction");var yue=new _.vS("showFullscreenPlayerControlsCommand");var gwi=new _.vS("updateVideoMetadataCommand");_.YX9=new _.vS("autoplaySwitchButtonRenderer");var rG;_.GlN=new _.vS("multiMarkersPlayerBarRenderer");rG=new _.vS("chapterRenderer");var cJ0=new _.vS("heatMarkerRenderer");var $vi=new _.vS("heatmapRenderer");var I5K=new _.vS("smartSkipPlayerScrimOverlayRenderer");var RzK=new _.vS("timedMarkerDecorationRenderer");var tmC=new _.vS("postWebToNativeMessageCommand");var Bm=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Bm,_.aR);Bm.prototype.getMethodName=function(){return _.iU(this,1)};var Zi2=[0,_.P7,-2];Bm.prototype.JSC$12717_serializeBinary=GiC(Zi2);var Kjk=_.b5(Bm,Zi2);var PXK=new _.vS("whitelistEditEndpoint");var Qve=new _.vS("clearUrlParamCommand");var mIV=new _.vS("commerceActionCommand");_.a5e=new _.vS("getPaymentInstrumentsParamsCommand");var TrK=new _.vS("getPaymentsClientTokenCommand");var Oi2=new _.vS("googlePaymentBillingCommand");var ezK=new _.vS("googlePaymentPurchaseManagerCommand");_.NrT=new _.vS("logGtmCommand");var l5i=new _.vS("updateCardItemOnClickCommand");_.q62=new _.vS("ypcPauseSubscriptionCommand");_.w$V=new _.vS("ypcResumeSubscriptionCommand");var FjB=function(){Gk.apply(this,arguments)};
_.u(FjB,Gk);FjB.prototype.getAssociations=function(){return[]};
FjB.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var neA=function(){Gk.apply(this,arguments)};
_.u(neA,Gk);neA.prototype.getAssociations=function(){return[]};
neA.prototype.getTypeName=function(){return"commerceCartListEntity"};var oyT=function(){Gk.apply(this,arguments)};
_.u(oyT,Gk);oyT.prototype.getAssociations=function(){return[]};
oyT.prototype.getTypeName=function(){return"iconBadgeEntity"};var UFT=function(){Gk.apply(this,arguments)};
_.u(UFT,Gk);UFT.prototype.getAssociations=function(){return[]};
UFT.prototype.getTypeName=function(){return"pdpStateEntity"};var uhT=function(){Gk.apply(this,arguments)};
_.u(uhT,Gk);uhT.prototype.getAssociations=function(){return[]};
uhT.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var ULp=new _.vS("ypcOffersEndpoint");var bb0=new _.vS("cardItemRenderer"),kwK=new _.vS("cardItemTextRenderer");var sUA=new _.vS("commerceCartItemQuantityPickerRenderer");var L29=new _.vS("linkCardRenderer");var WHg=new _.vS("quantityIncrementerButtonViewModel");var ApB=new _.vS("quantityIncrementerViewModel");var $FK=new _.vS("themedImageViewModel");_.Sye=new _.vS("ypcCancelRecurrenceEndpoint");var phN=new _.vS("ypcCompleteTransactionEndpoint");_.M4A=new _.vS("ypcGetCartEndpoint");_.YZ=new _.vS("ypcGetOffersEndpoint");_.sP=new _.vS("ypcHandleTransactionEndpoint");var V4k=new _.vS("ypcLogWalletAnalyticDataEndpoint");_.z4K=new _.vS("ypcRedeemCodeEndpoint");var EyK=new _.vS("ypcUpdateFopEndpoint");Me(pV(1),$O(4));OG2((new MessageChannel).port2);var Jpi=function(){this.register=new Map},paC=function(G,c,I){G=G+"_"+c;
LJ.register.has(G)?I=LJ.register.get(G):(I=I(),LJ.register.set(G,I));return I},W2K=function(G){G=_.Q(G.register.values());
for(var c=G.next();!c.done;c=G.next())_.Do(c.value,"ABORTED")};
Jpi.prototype.clear=function(){W2K(this);this.register.clear()};
var LJ=new Jpi;var Twf=Date.now().toString();var NwO=eLB();var onb={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 ibi,UQ;ibi=1;UQ=function(G){this.veData=G};
_.kC=function(G){return new UQ({trackingParams:G})};
_.qj=function(G,c,I,R,Z,K){var m=ibi++;return new UQ({veType:G,veCounter:m,elementIndex:I,dataElement:c,youtubeData:R,jspbYoutubeData:Z,loggingDirectives:K})};
_.P=UQ.prototype;
_.P.getAsJson=function(){var G={};this.veData.trackingParams!==void 0?G.trackingParams=this.veData.trackingParams:(G.veType=this.veData.veType,this.veData.veCounter!==void 0&&(G.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(G.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(G.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(G.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(G.isCounterfactual=!0);
return G};
_.P.getAsJspb=function(){var G=new MWK;this.veData.trackingParams!==void 0?G.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.xo(G,2,this.veData.veType),this.veData.veCounter!==void 0&&_.xo(G,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.xo(G,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.DL(G,5,!0));if(this.veData.dataElement!==void 0){var c=this.veData.dataElement.getAsJspb();_.Az(G,7,c)}this.veData.youtubeData!==void 0&&_.Az(G,8,this.veData.jspbYoutubeData);
return G};
_.P.toString=function(){return JSON.stringify(this.getAsJson())};
_.P.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.P.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.lr("yt_logging_screen.getRootVeType",nni);_.lr("yt_logging_screen.getCurrentCsn",_.k0);_.lr("yt_logging_screen.getCttAuthInfo",sQ);_.lr("yt_logging_screen.setCurrentScreen",_.LR);var f1A=function(){this.events=new Map},BEV=function(G){var c=[];
G=_.Q(G.events.values());for(var I=G.next();!I.done;I=G.next())c.push(I.value);return c};
f1A.prototype.clear=function(){this.events.clear()};var jUi=function(){this.logTransport=new rpN;this.loggedEventRegister=new f1A;this.unloggedEventRegister=new f1A;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12754_flushTimer=new _.vb(this.flushInterval);this.JSC$12754_flushTimer.listen("tick",this.flush,!1,this)};
jUi.prototype.flush=function(){if(this.eventsCount){var G={loggedEvents:BEV(this.loggedEventRegister),unloggedEvents:BEV(this.unloggedEventRegister)};if(_.v("export_player_version_to_ytconfig")){var c;(c=_.H1("PLAYER_CLIENT_VERSION"))?(c=c.split("-")[0].replace(/\./g,""),c=isNaN(Number(c))?"0":c):c="";var I=_.H1("PLAYER_CLIENT_VERSION");if(I){I=I.split("-");var R="";I.length>1&&(R=I[I.length-1]);I=aMr(R.startsWith("canary_experiment")?"canary":R.startsWith("canary_control")?"control":"none")}else I=
"CLIENT_CANARY_STATE_UNKNOWN";G.dimensions={playerClientVersion:c,playerCanaryState:I}}this.logTransport.flush(G);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12754_flushTimer.enabled&&this.JSC$12754_flushTimer.stop()}};
var xF2=function(G){At==null&&(At=new jUi);var c=At;var I=c.loggedEventRegister;G.dimensions=G.dimensions||{};G.dimensions.csn=_.k0()||"";var R=kWi(G.dimensions).join(";");if(G.records!=null)if(I.events.has(R)){var Z;(Z=I.events.get(R).records)==null||Z.push.apply(Z,_.jn(G.records))}else I.events.set(R,G);c.JSC$12754_flushTimer.enabled||c.JSC$12754_flushTimer.start();c.eventsCount++;c.eventsCount>=100&&c.flush()};var rpN=function(){};
rpN.prototype.flush=function(G,c){_.v("enable_client_sli_logging")&&_.x7("sliEventBatch",G,{sendIsolatedPayload:!!c})};var At;var h4B;h4B=function(G){var c=t49;G=G===void 0?{}:G;c=c.name;var I=SY0("SUCCESS");xF2({dimensions:G,records:[{name:c,state:"SLI_STATE_END",status:I}]})};
_.M7A=function(G,c,I,R){this.name=G;this.sliId=c;this.timeoutMs=I;this.statusOnTimeout=R;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.M7A.prototype.getId=function(){return this.sliId};
_.ve=function(G,c){c=c===void 0?{}:c;G.ongoing||(G.ongoing=!0,G.dimensions=c,G.logSliId=YFr(),xF2({dimensions:G.dimensions,records:[{name:G.name,state:"SLI_STATE_START",sliId:G.logSliId}]}),G.timeoutMs>0&&(G.timeoutHandle=setTimeout(function(){_.Do(G,G.statusOnTimeout)},G.timeoutMs)))};
_.Do=function(G,c){G.ongoing&&(G.timeoutMs>0&&clearTimeout(G.timeoutHandle),G.ongoing=!1,c={dimensions:G.dimensions,records:[{name:G.name,status:SY0(c),state:"SLI_STATE_END",sliId:G.logSliId}]},LJ.register.delete(G.name+"_"+G.sliId),xF2(c))};var t49=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var dFB=function(){Gk.apply(this,arguments)};
_.u(dFB,Gk);dFB.prototype.getAssociations=function(){return[]};
dFB.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var t6q=new _.vS("highlightTextDecoratorColorMapExtension");var jmB=new _.vS("styleRunColorMapExtension");var fMi=_.I3(["data-"]),jjT={};var t7g={};var $h=function(G){this.wrappedPromise_=G===void 0?null:G;this.state_=0;this.JSC$12785_value_=null};
$h.prototype.then=function(G,c,I){return this.wrappedPromise_?this.wrappedPromise_.then(G,c,I):this.state_===1&&G?(G=G.call(I,this.JSC$12785_value_))&&typeof G.then==="function"?G:_.S5(G):this.state_===2&&c?(G=c.call(I,this.JSC$12785_value_))&&typeof G.then==="function"?G:_.CE9(G):this};
$h.prototype.getValue=function(){return this.JSC$12785_value_};
$h.prototype.isRejected=function(){return this.state_==2};
k2K($h);_.CE9=function(G){var c=new $h;G=G===void 0?null:G;c.state_=2;c.JSC$12785_value_=G===void 0?null:G;return c};
_.S5=function(G){var c=new $h;G=G===void 0?null:G;c.state_=1;c.JSC$12785_value_=G===void 0?null:G;return c};var PYr="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var HbA=["load","abort","error"],pJ=function(G,c,I){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12805_maxAspectRatio_=G;this.disableAnimation_=c===void 0?!1:c;this.disableExifRotation_=I===void 0?!1:I;this.JSC$12805_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12805_reject_=this.resolve_=null};
pJ.prototype.transform=function(G){var c=this;this.mime_=G.type;lK(z8K(G),this.dataUrlRead_,this.readError_,this);lK(VuV(G.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(I,R){c.resolve_=I;c.JSC$12805_reject_=R})};
pJ.prototype.dataUrlRead_=function(G){this.dataUrl_=G;this.angle_!=null&&XhA(this)};
pJ.prototype.exifRead_=function(G){if(this.disableExifRotation_)this.angle_=0;else{a:if(G=new DataView(G),G.byteLength<2||G.getUint16(0)!==65496)G=-2;else{for(var c=2,I=G.byteLength;c<I;){var R=G.getUint16(c),Z=G.getUint16(c+2);if(R===65505){c+=4;R=G.getUint32(c);Z=G.getUint16(c+4);if(R!==1165519206||Z!==0)break;c+=6;R=G.getUint16(c)===18761;c+=G.getUint32(c+4,R);Z=G.getUint16(c,R);c+=2;for(var K=0;K<Z;K++){if(G.getUint16(c,R)===274){c+=8;G=G.getUint16(c,R);break a}c+=12}}else if(R>>8!==255)break;
else c+=Z+2}G=-1}switch(G){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&XhA(this)};
pJ.prototype.readError_=function(){this.JSC$12805_reject_()};
var XhA=function(G){uD(G.JSC$12805_image_,HbA,G.completeTransform_,!1,G);G.JSC$12805_image_.src=_.dS(G.dataUrl_).toString();G.JSC$12805_image_.src!=hz.toString()&&G.JSC$12805_image_.src.substr(0,11)==="data:image/"||G.JSC$12805_reject_()};
pJ.prototype.completeTransform_=function(){if(this.JSC$12805_image_.src!=hz.toString()){var G=_.dS(this.dataUrl_),c=this.JSC$12805_image_.naturalHeight?this.JSC$12805_image_.naturalWidth/this.JSC$12805_image_.naturalHeight:null;this.invalidAspectRatio=c>this.JSC$12805_maxAspectRatio_||c<1/this.JSC$12805_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var I=this.JSC$12805_image_.naturalWidth,R=this.JSC$12805_image_.naturalHeight,Z=c=0,K=this.JSC$12805_image_.naturalHeight?this.JSC$12805_image_.naturalWidth/
this.JSC$12805_image_.naturalHeight:null;K>this.JSC$12805_maxAspectRatio_?(I=this.JSC$12805_maxAspectRatio_*R,c=(I-this.JSC$12805_image_.naturalWidth)/2,this.cropped=!0):K<1/this.JSC$12805_maxAspectRatio_?(R=this.JSC$12805_maxAspectRatio_*I,Z=(R-this.JSC$12805_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)K=I,I=R,R=K,K=c,c=Z,Z=K;switch(this.angle_){case 90:Z-=I;break;case 180:c-=I;Z-=R;break;case 270:c-=
R}this.cropped||this.angle_%360!==0?(G=document.createElement("canvas"),G.width=I||1,G.height=R||1,this.JSC$12805_image_.naturalWidth&&this.JSC$12805_image_.naturalHeight&&(I=G.getContext("2d"),I.rotate(Math.PI/180*this.angle_),I.drawImage(this.JSC$12805_image_,c,Z,this.JSC$12805_image_.naturalWidth,this.JSC$12805_image_.naturalHeight)),this.transformedData=_.dS(G.toDataURL(this.mime_))):this.transformedData=G}else this.transformedData=G;this.resolve_(this)}};var Ml=function(G,c){_.zR.call(this,G);this.value=c};
_.u(Ml,_.zR);
var VI=function(G,c,I,R,Z,K,m){m=m===void 0?!1:m;_.r4.call(this);var a=this;this.JSC$12810_url_=G;this.channelId_=c;this.maxFileSizeMb_=I;this.JSC$12810_maxAspectRatio_=R;this.dropZoneEl_=Z;this.rejectInvalidAspectRatio_=m;this.selectButtonEl_=K;this.JSC$12810_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Bp(this.dropZoneEl_);this.selectOverlay_=new rA(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12810_image_=this.transfer_=null;this.handler_=new _.D0(this);_.k9(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(K,"click",function(){a.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.u(VI,_.r4);VI.prototype.disposeInternal=function(){for(var G=this.selectButtonEl_.nextSibling;G&&G.parentNode&&G.tagName=="INPUT";)G.parentNode.removeChild(G),G=this.selectButtonEl_.nextSibling;this.cancel();_.r4.prototype.disposeInternal.call(this)};
VI.prototype.uploadPromise=function(){if(this.JSC$12810_image_==null)return null;this.uploadPromise_||ypV(this);return this.uploadPromise_};
VI.prototype.cancel=function(){gyp(this);this.JSC$12810_image_=null};
var gyp=function(G){G.transfer_&&G.transfer_.cancel();G.transfer_=null;G.uploadPromise_=null;G.resolve_=null;G.JSC$12810_reject_=null},ypV=function(G){gyp(G);
G.transfer_=_.u8V(G.JSC$12810_url_,{"X-YouTube-ChannelId":G.channelId_},G.JSC$12810_image_);G.handler_.listenOnce(G.transfer_,"l",G.JSC$12812_onUploadComplete_);G.handler_.listenOnce(G.transfer_,"n",G.onUploadError_);G.transfer_.run();G.uploadPromise_=new Promise(function(c,I){G.resolve_=c;G.JSC$12810_reject_=I})};
_.P=VI.prototype;_.P.onChange_=function(G){G.files.length&&(this.JSC$12810_image_=G.files[0],this.JSC$12810_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12810_image_=null,this.dispatchEvent(new Ml("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(ypV(this),(new pJ(this.JSC$12810_maxAspectRatio_)).transform(this.JSC$12810_image_).then((0,_.WD)(this.onPreview_,this),(0,_.WD)(this.onPreviewError_,this))))};
_.P.onPreview_=function(G){if(G.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12810_image_=null),this.dispatchEvent(new Ml("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;G.cropped&&this.dispatchEvent(new Ml("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Ml("yt.comments.ImageUploadOverlay.CHANGE_EVENT",G.transformedData))};
_.P.onPreviewError_=function(){this.JSC$12810_image_=null;this.dispatchEvent(new Ml("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.P.onHover_=function(G){G.stopPropagation();G.preventDefault();if(G.type==="dragover")G=!0;else if(G.type==="dragleave")G=!1;else return;this.dispatchEvent(new Ml("yt.comments.ImageUploadOverlay.HOVER_EVENT",G))};
_.P.JSC$12812_onUploadComplete_=function(){var G=(0,_.X1k)(this.transfer_.getResponseText());this.resolve_(G.encryptedBlobId)};
_.P.onUploadError_=function(){this.JSC$12810_reject_();gyp(this)};var Yyk=function(G){G=G||{};var c={},I={};this.url=G.url||"";this.args=G.args||_.rx.clone(c);this.assets=G.assets||{};this.attrs=G.attrs||_.rx.clone(I);this.fallback=G.fallback||null;this.fallbackMessage=G.fallbackMessage||null;this.html5=!!G.html5;this.disable=G.disable||{};this.loaded=!!G.loaded;this.messages=G.messages||{}};
Yyk.prototype.clone=function(){var G=new Yyk,c;for(c in this)if(this.hasOwnProperty(c)){var I=this[c];_.Gr(I)=="object"?G[c]=_.rx.clone(I):G[c]=I}return G};var GXi,cf0,ICT,GF,Z0K,KKN,Pk0,QXA,mZV,aCB,TX9,O0e,eEk,NXT,lCi,qE2,wtV,FK0,nvK,vve,DZ0,ovN,UZ0,u_N,b02,kX0,sXK,LKi,AfA,YsC,$Z9,SEK,ptK,MS9,VST,zEV,Ev0,JfV,WKK,i0V,gGb,fCK,BXN,rf2,jX0,xZB,tSK,hEA,dZp,Ck2,H0e,Xti,yfN,gvK,YEB,GUp,zk,cZA,Ice,RBV,Zg9,Kye,Pji,Q7K,m6K,ac0,TCe,OgK,eBN,NCN,lce,qSK,wWB,FyT,nB0,vBK,XO8,D62,oBe,U60,u9i,bgk,kUe,s7e,Lye,AZ0,$6T,SST,pW9,Mtp,Vtk,zBN,EB0,JZe,WyB,igN,fcN,BCp,rZT,j7B,x6K,ttK;GXi=["account/accounts_list"];cf0=["acknowledge_channel_tou_strike"];ICT=["notification/add_upcoming_event_reminder"];
_.REe=["att/get"];GF=["browse","music/browse","streaming_browse","unplugged/browse"];Z0K=["channel/claim_legacy_youtube_channel"];KKN=["history/clear_search_history"];Pk0=["history/clear_watch_history"];QXA=["comment/perform_comment_action"];mZV=["comment/get_comment_replies"];aCB=["ypc/commerce_action"];TX9=["backstage/create_post"];O0e=["live/create_broadcast"];eEk=["channel/create_channel"];NXT=["comment/create_comment_reply"];lCi=["comment/create_comment"];qE2=["live_chat/create_poll"];wtV=["playlist/create"];
FK0=["decorate_message"];nvK=["live_chat/delete_message"];vve=["playlist/delete"];DZ0=["video/delete"];ovN=["like/dislike"];UZ0=["dismissal/dismiss"];u_N=["flag/flag"];b02=["flow"];kX0=["account/account_menu"];sXK=["playlist/get_add_to_playlist"];LKi=["get_answer"];AfA=["channel/get_channel_creation_form"];YsC=["offline/get_download_action"];$Z9=["kids/get_kids_blocklist_picker"];SEK=["live_chat/get_item_context_menu"];ptK=["live_chat/get_live_chat_message_buy_flow"];MS9=["live_chat/get_live_chat_replay"];
VST=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];zEV=["live_chat/get_live_chat_super_sticker_buy_flow"];Ev0=["notification/get_notification_menu"];JfV=["playlist/get_settings_editor"];WKK=["backstage/get_post_video_preview"];i0V=["account/get_profile_card"];gGb=["share/get_share_panel"];fCK=["share/get_sharing_provider_data"];BXN=["get_survey"];rf2=["notification/get_unseen_count"];jX0=["get_user_mention_suggestions"];xZB=["get_watch"];tSK=["guide"];
hEA=["feedback"];dZp=["kids/update_blacklist"];Ck2=["like/like"];H0e=["live_chat/live_chat_action"];Xti=["live_chat/manage_user"];yfN=["video_manager/metadata_update"];gvK=["live_chat/moderate"];YEB=["notification/modify_channel_preference"];GUp=["notification/opt_out"];zk=["get_panel","get_posts_by_host_panel"];cZA=["player"];Ice=["browse/edit_playlist"];RBV=["notification/record_interactions"];Zg9=["reel/reel_item_watch"];Kye=["reel/reel_watch_sequence"];Pji=["like/removelike"];Q7K=["notification/remove_upcoming_event_reminder"];
m6K=["flag/get_form"];ac0=["miniapp/report_value"];TCe=["navigation/resolve_url"];OgK=["channel/reveal_business_email"];eBN=["in_video/search"];NCN=["search","sfv/search","unplugged/search"];lce=["live_chat/send_message"];qSK=["live_chat/send_live_chat_vote"];wWB=["account/set_setting"];FyT=["submit_caption_correction"];nB0=["submit_form"];vBK=["subscription/subscribe"];XO8=["get_transcript"];D62=["resolve_location","unplugged/resolve_location"];oBe=["subscription/unsubscribe"];U60=["backstage/update_post"];
u9i=["channel_edit/update_channel_page_settings"];bgk=["comment/update_comment_reply"];kUe=["comment/update_comment"];s7e=["comment/update_comments_settings"];Lye=["creator/update_creator_channel"];AZ0=["pdg/update_enablement"];$6T=["updated_metadata"];SST=["channel_edit/validate_channel_handle"];pW9=["verify_age"];Mtp=["next","unplugged/watch_next"];Vtk=["whitelist/edit"];zBN=["ypc/cancel_recurrence"];EB0=["ypc/complete_transaction"];JZe=["ypc/get_cart"];WyB=["ypc/get_fix_instrument_params"];
igN=["ypc/get_offers"];fcN=["ypc/get_payment_instruments_params"];BCp=["ypc/handle_transaction"];rZT=["ypc/log_payment_server_analytics"];j7B=["ypc/pause_subscription"];x6K=["ypc/redeem_code"];ttK=["ypc/resume_subscription"];var hBA=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,
25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,
72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,
198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,
11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,
254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,
273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,
59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,
262802,267580,262798,267695,267581,273232,82039];var Ql=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.lr("yt.msgs_",Ql);var EP=new _.De("ACTION_ROUTER_TOKEN");_.Jt=function(){this.autonavState_=_.v("kevlar_is_pupi_enabled")?2:nOC()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Jt.prototype.getState=function(){return this.autonavState_};
_.Jt.prototype.pause=function(G){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=G):this.autonavState_==1&&(this.disabledAutonavPauseReason_=G)};
_.Jt.prototype.setState=function(G,c,I){c&&(this.autoplayChangedByUser=!0);c=this.autonavState_===3||G===3;this.autonavState_!=G&&(this.autonavState_=G,G!=3&&_.vOp(G==2),G=_.v("kevlar_is_pupi_enabled")?I||c:!0,_.RD.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,G,I))};
_.Jt.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.To(_.Jt);var WE=function(){this.e8=!1};var iv={},SAi=(iv.auto_search="LATENCY_ACTION_AUTO_SEARCH",iv.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iv.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iv.app_startup="LATENCY_ACTION_APP_STARTUP",iv.browse="LATENCY_ACTION_BROWSE",iv.cast_splash="LATENCY_ACTION_CAST_SPLASH",iv.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iv.channels="LATENCY_ACTION_CHANNELS",iv.chips="LATENCY_ACTION_CHIPS",iv.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iv.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
iv.editor="LATENCY_ACTION_EDITOR",iv.embed="LATENCY_ACTION_EMBED",iv.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iv.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iv.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iv.explore="LATENCY_ACTION_EXPLORE",iv.favorites="LATENCY_ACTION_FAVORITES",iv.home="LATENCY_ACTION_HOME",iv.inboarding="LATENCY_ACTION_INBOARDING",iv.landing="LATENCY_ACTION_LANDING",iv.learning="LATENCY_ACTION_LEARNING",
iv.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",iv.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",iv.library="LATENCY_ACTION_LIBRARY",iv.live="LATENCY_ACTION_LIVE",iv.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",iv.management="LATENCY_ACTION_MANAGEMENT",iv.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iv.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iv.onboarding="LATENCY_ACTION_ONBOARDING",iv.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
iv.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iv.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iv.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iv.prebuffer="LATENCY_ACTION_PREBUFFER",iv.prefetch="LATENCY_ACTION_PREFETCH",iv.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iv.profile_switcher="LATENCY_ACTION_LOGIN",iv.projects="LATENCY_ACTION_PROJECTS",iv.reel_watch="LATENCY_ACTION_REEL_WATCH",iv.results="LATENCY_ACTION_RESULTS",iv.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
iv.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iv.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iv.review="LATENCY_ACTION_REVIEW",iv.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",iv.search_ui="LATENCY_ACTION_SEARCH_UI",iv.search_suggest="LATENCY_ACTION_SUGGEST",iv.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iv.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iv.seek="LATENCY_ACTION_PLAYER_SEEK",iv.settings="LATENCY_ACTION_SETTINGS",iv.store="LATENCY_ACTION_STORE",
iv.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iv.tenx="LATENCY_ACTION_TENX",iv.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iv.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iv.watch="LATENCY_ACTION_WATCH",iv.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iv["watch,watch7"]="LATENCY_ACTION_WATCH",iv["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iv["watch,watch7ad"]="LATENCY_ACTION_WATCH",iv["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iv.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
iv.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iv.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iv.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iv.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",iv.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iv.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iv.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iv),d6e=0;var XpB=function(G,c){h4.call(this,1,arguments);this.timer=c};
_.u(XpB,h4);var HVT=new txO("aft-recorded",XpB);var zuT=_.Rq.ytLoggingGelSequenceIdObj_||{};_.lr("ytLoggingGelSequenceIdObj_",zuT);var fJ=_.Rq.ytLoggingLatencyUsageStats_||{};_.lr("ytLoggingLatencyUsageStats_",fJ);var BE=function(){this.cleanupJob=0},W4r=function(){BE.instance||(BE.instance=new BE);
return BE.instance};
_.P=BE.prototype;_.P.baseline=function(G,c,I){rt(this,"baseline_"+G)||_.x7("latencyActionBaselined",{clientActionNonce:G},{timestamp:c,cttAuthInfo:I})};
_.P.tick=function(G,c,I,R){rt(this,"tick_"+G+"_"+c)||_.x7("latencyActionTicked",{tickName:G,clientActionNonce:c},{timestamp:I,cttAuthInfo:R})};
_.P.info=function(G,c,I){var R=Object.keys(G).join("");rt(this,"info_"+R+"_"+c)||(G=Object.assign({},G),G.clientActionNonce=c,_.x7("latencyActionInfo",G,{cttAuthInfo:I}))};
_.P.jspbInfo=function(G,c,I){for(var R="",Z=0;Z<Jd(G).length;Z++)Jd(G)[Z]!==void 0&&(R=Z===0?R.concat(""+Z):R.concat("_"+Z));rt(this,"info_"+R+"_"+c)||(_.Eq(G,2,c),c={cttAuthInfo:I},I=_.v("jspb_sparse_encoded_pivot")?new Jg([{}]):new Jg,_.$N(I,7,Hpe,G),EOB("latencyActionInfo",I,c))};
_.P.span=function(G,c,I){var R=Object.keys(G).join("");rt(this,"span_"+R+"_"+c)||(G.clientActionNonce=c,_.x7("latencyActionSpan",G,{cttAuthInfo:I}))};
var rt=function(G,c){fJ[c]=fJ[c]||{count:0};var I=fJ[c];I.count++;I.time=(0,_.Fa)();G.cleanupJob||(G.cleanupJob=_.W_(_.dJ,function(){var R=(0,_.Fa)(),Z;for(Z in fJ)fJ[Z]&&R-fJ[Z].time>6E4&&delete fJ[Z];G&&(G.cleanupJob=0)},5E3));
return I.count>5?(I.count===6&&Math.random()*1E5<1&&(I=new _.iW("CSI data exceeded logging limit with key",c.split("_")),c.indexOf("plev")>=0||_.Ck(I)),!0):!1};var CjK,Hg0;CjK=window;Hg0=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.wU=CjK.performance||CjK.mozPerformance||CjK.msPerformance||CjK.webkitPerformance||new Hg0;var CYU=!1,fup=!1,yjO=(0,_.WD)(_.wU.clearResourceTimings||_.wU.webkitClearResourceTimings||_.wU.mozClearResourceTimings||_.wU.msClearResourceTimings||_.wU.oClearResourceTimings||_.EF,_.wU);var GCp=_.gK(function(G,c,I,R,Z,K,m){if(!_.v("web_csi_action_sampling_enabled")||!_.N2(K).actionDisabled){var a=m==null?void 0:m.spanStatus;m=m==null?void 0:m.rootSpanNonce;var O=_.l8(K);if(O.gelSpans)O.gelSpans[G]=!0;else{var N={};O.gelSpans=(N[G]=!0,N)}d6e++;G={spanName:G,spanLengthUsec:String(Math.round(c*1E3)),spanNonce:d6e};m&&(G.rootSpanNonce=m);a&&(G.spanStatus=a);R&&(G.spanInfo=R);Z&&(G.parentSpanNonce=Z);I&&(G.spanStartTimeUsec=String(Math.round(I*1E3)));_.q2(K||"").span[String(G.spanName)]=
G;I=_.l8(K);I.gelSpans||(I.gelSpans={});_.$0(I.gelSpans,G);I=sHB(K);K=_.N2(K).cttAuthInfo;W4r().span(G,I,K);return G.spanNonce}}),XWB=window;
XWB.ytcsi&&(XWB.ytcsi.infoGel=_.b8,XWB.ytcsi.tick=_.LC);var mlf=function(G){h4.call(this,1,arguments);this.csn=G};
_.u(mlf,h4);var XH0=new txO("screen-created",mlf),bJO=[],Qh0=uFp,kk0=0,zs=new Map,aIr=new Map,TtU=new Map;var H3q=Symbol("Cf"),hH=new WeakMap;var j5=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Un=function(){j5.instance||(j5.instance=new j5);
return j5.instance};
_.P=j5.prototype;_.P.setClient=function(G){this.client=G};
_.P.JSC$12894_newScreen=function(){this.clear();this.csn=_.k0()};
_.P.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.P.reportShown=function(G,c,I,R){var Z=this.JSC$12894_getTrackingParams(G),K=G.visualElement?G.visualElement:Z;c=this.shownElements.has(K);var m=this.visibleState.get(K);this.shownElements.add(K);this.visibleState.set(K,!0);G.impressionLog&&!c&&G.impressionLog();if(Z||G.visualElement)if(I=yZT(this,G,I))if(K=gBe(this,G),xh(this,G)||K){Z=G.visualElement?G.visualElement:_.kC(Z);var a=G.interactionLoggingClientData;K||c?xh(this,G)&4?m||nhr(this.client,I,Z,a):xh(this,G)&1&&!c&&qPf(this.client,I,Z,a,R):
qPf(this.client,I,Z,a,R)}};
_.P.reportHidden=function(G,c,I,R){var Z=this.JSC$12894_getTrackingParams(G),K=G.visualElement?G.visualElement:Z;c=this.hiddenElements.has(K);var m=this.visibleState.get(K);this.hiddenElements.add(K);this.visibleState.set(K,!1);if(m===!1)return!0;if(!Z&&!G.visualElement)return!1;I=yZT(this,G,I);if(!I||!xh(this,G)&&gBe(this,G))return!1;Z=G.visualElement?G.visualElement:_.kC(Z);xh(this,G)&8?vh8(this.client,I,Z,void 0,void 0,R):xh(this,G)&2&&!c&&(G=this.client,R=Vl({cttAuthInfo:sQ(I)||void 0,automatedLogEventSource:R},
I),c={csn:I,ve:Z.getAsJson(),eventType:2},I==="UNDEFINED_CSN"?JH("visualElementHidden",R,c):G?rj("visualElementHidden",c,G,R):_.x7("visualElementHidden",c,R));return!0};
_.P.JSC$12894_getTrackingParams=function(G){var c=this.getData(G),I,R;if(_.v("il_use_view_model_logging_context")&&(c==null?0:(I=c.context)==null?0:(R=I.loggingContext)==null?0:R.loggingDirectives))return c.context.loggingContext.loggingDirectives.trackingParams||"";var Z,K;if(c==null?0:(Z=c.rendererContext)==null?0:(K=Z.loggingContext)==null?0:K.loggingDirectives)return c.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(c==null?0:c.loggingDirectives)return c.loggingDirectives.trackingParams||
"";var m;return((m=G.veContainer)==null?0:m.trackingParams)?G.veContainer.trackingParams:(c==null?void 0:c.trackingParams)||""};
_.P.JSC$12894_elementShouldLogGesture=function(G,c){G=this.getData(G);return!!((Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.gestures&&G.loggingDirectives.gestures.types||""))||0)&c)};
_.P.JSC$12894_getNearestParentVe=function(G){var c=this.JSC$12894_getTrackingParams(G);return G.visualElement?G.visualElement:c?_.kC(c):G.parentElement?this.JSC$12894_getNearestParentVe(G.parentElement):null};
var yZT=function(G,c,I){var R=_.k0(I);return G.csn===null||R===G.csn||I?R:(G=new _.iW("VisibilityLogger called before newScreen",{caller:c.tagName,previous_csn:G.csn,current_csn:R}),_.Ck(G),null)};
j5.prototype.getData=function(G){var c,I=G.data||((c=G.props)==null?void 0:c.data);if(!I||G.isWebComponentWrapper){var R;I=(R=hH.get(G))==null?void 0:R[H3q]}return I};
var gBe=function(G,c){var I;return!((I=G.getData(c))==null||!I.loggingDirectives)},xh=function(G,c){G=G.getData(c);
return Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.visibility&&G.loggingDirectives.visibility.types||""))||1};var tt;tt=function(){};
_.nd=function(){tt.instance||(tt.instance=new tt);return tt.instance};
tt.prototype.setClient=function(G){_.gK(Un().setClient).bind(Un())(G)};
_.YSV=function(){_.nd();_.gK(Un().JSC$12894_newScreen).bind(Un())()};
tt.prototype.clear=function(){_.gK(Un().clear).bind(Un())()};
tt.prototype.reportShown=function(G,c,I,R){_.gK(Un().reportShown).bind(Un())(G,c,I,R)};
tt.prototype.reportHidden=function(G,c,I,R){return _.gK(Un().reportHidden).bind(Un())(G,c,I,R)};
var xaU=function(G,c){return _.gK(Un().JSC$12894_getTrackingParams).bind(Un())(c)},XgB=function(G,c){return _.gK(Un().JSC$12894_getNearestParentVe).bind(Un())(c)};var ht,GxN;ht=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};
_.DP=function(){ht.instance||(ht.instance=new ht);return ht.instance};
ht.prototype.setClient=function(G){this.client=G};
GxN=function(G,c,I){I=I===void 0?{}:I;_.gK(function(){var R,Z,K,m=((R=_.D(c==null?void 0:c.commandMetadata,_.Pd))==null?void 0:R.rootVe)||((Z=_.D(c==null?void 0:c.commandMetadata,Eh9))==null?void 0:(K=Z.screenVisualElement)==null?void 0:K.uiType);if(m){R=_.D(c==null?void 0:c.commandMetadata,S7B);if(R==null?0:R.parentTrackingParams){var a=_.kC(R.parentTrackingParams);if(R.parentCsn)var O=R.parentCsn}else I.clickedVisualElement?a=I.clickedVisualElement:c.clickTrackingParams&&(a=_.kC(c.clickTrackingParams));
a:{R=_.D(c,_.fR);Z=_.D(c,TEp);if(R){if(Z=De8(R,"VIDEO")){R={token:Z,videoId:R.videoId};break a}}else if(Z&&(R=De8(Z,"PLAYLIST"))){R={token:R,playlistId:Z.playlistId};break a}R=void 0}I=Object.assign({},{cttAuthInfo:R,parentCsn:O},I);if(_.v("expectation_logging")){var N;I.loggingExpectations=((N=_.D(c==null?void 0:c.commandMetadata,Eh9))==null?void 0:N.loggingExpectations)||void 0}_.dt(G,m,a,I)}else _.Ck(new _.iW("Error: Trying to create a new screen without a rootVeType",c))})()};
_.dt=function(G,c,I,R){R=R===void 0?{}:R;_.gK(function(){hBA.includes(c)||(_.Ck(new _.iW("createClientScreen() called with a non-page VE",c)),c=83769);R.isHistoryNavigation||(G.forwardHistoryStack=[],G.backHistoryStack.push({rootVe:c,key:R.key||""}));G.graftQueue=[];G.stateChangedQueue=[];R.dataPromises?cDK(G,c,I,R):IOK(G,c,I,R)})()};
_.RI9=function(G,c,I){I=I===void 0?0:I;_.gK(function(){c.then(function(R){G.pendingScreenCreation.has(I)&&G.pendingScreenFn&&G.pendingScreenFn();var Z=_.k0(I),K=_.u6(I);if(Z&&K){var m={automatedLogEventSource:3},a;(R==null?0:(a=R.response)==null?0:a.trackingParams)&&EC(G.client,Z,K,_.kC(R.response.trackingParams),!1,m);var O;(R==null?0:(O=R.playerResponse)==null?0:O.trackingParams)&&EC(G.client,Z,K,_.kC(R.playerResponse.trackingParams),!1,m)}})})()};
ht.prototype.graftServerVe=function(G,c,I){var R=this;return _.gK(function(){var Z=_.kC(G);_.CJ(R,Z,c,I);return Z})()};
_.yRi=function(G,c,I,R){return _.v("enable_client_ve_spec")&&c.clientVeSpec?(c=_.qj(c.clientVeSpec.uiType,void 0,c.clientVeSpec.elementIndex,c.clientVeSpec.clientYoutubeData,void 0,c),_.CJ(G,c,I,R)?c:null):c.trackingParams?G.graftServerVe(c.trackingParams,I,R):null};
_.vI=function(G,c,I,R){return _.gK(function(){if(!c.veType)return _.dj(new _.iW("Error: Trying to graft a client VE without a veType.")),null;if(c.visibilityTypes){var Z=c.visibilityTypes.reduce(function(K,m){return K|m});
Z={visibility:{types:String(Z)}}}Z=_.qj(c.veType,c.visualElement,c.elementIndex,c.clientYouTubeData,void 0,Z);return _.CJ(G,Z,I,R)?Z:null})()};
_.CJ=function(G,c,I,R){R=R===void 0?0:R;return _.gK(function(){if(G.pendingScreenCreation.has(R))return G.graftQueue.push([c,I]),!0;var Z=_.k0(R),K=I||_.u6(R);if(Z&&K){if(_.v("combine_ve_grafts")){var m=G.cachedVisualElements.get(K.toString());m?m.push(c):(G.cachedRootVisualElements.set(K.toString(),K),G.cachedVisualElements.set(K.toString(),[c]));G.attachTimeout||(G.attachTimeout=_.W_(_.dJ,function(){ZPB(G,Z)},1200))}else EC(G.client,Z,K,c);
return!0}return!1})()};
_.HE=function(G,c,I){I=I===void 0?0:I;var R=G.recurringGrafts.get(I)||new Map;if(_.v("smarter_ve_dedupping"))for(var Z=Array.from(R.keys()),K=0;K<Z.length;K++){var m=void 0,a=void 0;var O=c;var N=Z[K];N.isClientVe()&&O.isClientVe()?(m=O.getAsJson(),a=N.getAsJson(),O=m.veType!==a.veType||m.elementIndex!==a.elementIndex||m.dataElement!==a.dataElement||O.getLoggingDirectives()!==N.getLoggingDirectives()?!1:!0):O=N.veData.trackingParams!==void 0&&O.veData.trackingParams!==void 0?((a=O.veData)==null?void 0:
a.trackingParams)===((m=N.veData)==null?void 0:m.trackingParams):!1;if(O)return}else if(R.has(c))return;R.set(c,void 0);G.recurringGrafts.set(I,R);_.k0(I)==="UNDEFINED_CSN"||G.pendingScreenCreation.has(I)||_.CJ(G,c,void 0,I)};
_.XF=function(G,c,I,R){R=_.k0(R===void 0?0:R);if(!R)return!1;oh8(G.client,R,c,I);return!0};
_.yI=function(G,c,I,R){if(!c)return!1;R=_.k0(R===void 0?0:R);if(!R)return!1;oh8(G.client,R,_.kC(c),I);return!0};
_.t0=function(G,c){var I=c.getScreenLayer&&c.getScreenLayer();if(c.visualElement)return _.XF(G,c.visualElement,void 0,I);c=xaU(_.nd(),c);return _.yI(G,c,void 0,I)};
ht.prototype.clickCommand=function(G,c,I){return _.yI(this,G.clickTrackingParams,c,I===void 0?0:I)};
ht.prototype.stateChanged=function(G,c,I){this.visualElementStateChanged(_.kC(G),c,I===void 0?0:I)};
ht.prototype.visualElementStateChanged=function(G,c,I){I=I===void 0?0:I;I===0&&this.pendingScreenCreation.has(I)?this.stateChangedQueue.push([G,c]):this.logStateChanged(G,c,I)};
ht.prototype.logStateChanged=function(G,c,I){I=I===void 0?0:I;var R=_.k0(I);G=G||_.u6(I);return R&&G?(Ulq(this.client,R,G,c),!0):!1};
var cDK=function(G,c,I,R){R=R===void 0?{}:R;G.pendingScreenCreation.add(R.layer||0);G.pendingScreenFn=function(){IOK(G,c,I,R);var m=_.u6(R.layer);if(m){for(var a=_.Q(G.graftQueue),O=a.next();!O.done;O=a.next())O=O.value,_.CJ(G,O[0],O[1]||m,R.layer);m=_.Q(G.stateChangedQueue);for(a=m.next();!a.done;a=m.next())a=a.value,G.logStateChanged(a[0],a[1])}};
I||_.k0(R.layer)||G.pendingScreenFn();if(R.dataPromises)for(var Z=_.Q(R.dataPromises),K=Z.next();!K.done;K=Z.next())_.RI9(G,K.value,R.layer);else _.hg(Error("Df"))},IOK=function(G,c,I,R){R=R===void 0?{}:R;
var Z=void 0;R.layer||(R.layer=0);Z=R.parentLayer!==void 0?R.parentLayer:R.layer;var K=_.k0(Z);Z=_.u6(Z);var m=I||Z,a;m&&(R.parentCsn!==void 0?a={clientScreenNonce:R.parentCsn,visualElement:m}:K&&K!=="UNDEFINED_CSN"&&(a={clientScreenNonce:K,visualElement:m}));var O,N=_.H1("EVENT_ID");K==="UNDEFINED_CSN"&&N&&(O={servletData:{serializedServletEventId:N}});_.v("combine_ve_grafts")&&K&&ZPB(G,K);_.v("no_client_ve_attach_unless_shown")&&m&&K&&lI8(m,K);try{var q=_.OJp(G.client,c,a,R.csnToClone,R.cttAuthInfo,
O,R.implicitGestureType,void 0,R.loggingExpectations,R.automatedLogEventSource)}catch(n){_.H_(n,{rootVeType:c,rootVe:Z,parentVisualElement:I,currentCsn:K,parentEl:a,csnToClone:R.csnToClone});_.hg(n);return}_.LR(q,c,R.layer,R.cttAuthInfo);K&&K!=="UNDEFINED_CSN"&&Z&&!UnB(K)&&vh8(G.client,K,Z,!0);G.backHistoryStack[G.backHistoryStack.length-1]&&!G.backHistoryStack[G.backHistoryStack.length-1].csn&&(G.backHistoryStack[G.backHistoryStack.length-1].csn=q||"");_.b8({clientScreenNonce:q});_.YSV();var w=_.u6(R.layer);
K&&K!=="UNDEFINED_CSN"&&w&&_.v("music_web_mark_root_visible")&&_.fC(q,w);G.pendingScreenCreation.delete(R.layer||0);G.pendingScreenFn=void 0;var F;(F=G.recurringGrafts.get(R.layer))==null||F.forEach(function(n,U){n?_.CJ(G,U,n,R.layer):w&&_.CJ(G,U,w,R.layer)});
Kt2(G)},Kt2=function(G){for(var c=0;c<G.afterNewScreenOneOffJobs.length;c++){var I=G.afterNewScreenOneOffJobs[c];
try{I()}catch(R){_.hg(R)}}for(c=G.afterNewScreenOneOffJobs.length=0;c<G.afterNewScreenRecurringJobs.length;c++){I=G.afterNewScreenRecurringJobs[c];try{I()}catch(R){_.hg(R)}}},ZPB=function(G,c){if(c===void 0)for(var I=DnC(),R=0;R<I.length;R++)I[R]!==void 0&&ZPB(G,I[R]);
else G.cachedVisualElements.forEach(function(Z,K){(K=G.cachedRootVisualElements.get(K))&&eyO(G.client,c,K,Z)}),G.cachedVisualElements.clear(),G.cachedRootVisualElements.clear(),G.attachTimeout=void 0};var gt=function(G){G=G===void 0?{layer:0}:G;this.e8=!1;this.createScreenConfig=G;G={};this.iaH=(G.response=!1,G.playerResponse=!1,G)};
_.u(gt,WE);gt.prototype.validate=function(G){return!(!G.data||!G.data.response&&!G.data.playerResponse)};
gt.prototype.handle=function(G){var c=_.DP(),I=this.createScreenConfig.layer;G.data.response&&G.data.response.trackingParams&&!this.iaH.response&&(c.graftServerVe(G.data.response.trackingParams,void 0,I),this.iaH.response=!0);G.data.playerResponse&&G.data.playerResponse.trackingParams&&!this.iaH.playerResponse&&(c.graftServerVe(G.data.playerResponse.trackingParams,void 0,I),this.iaH.playerResponse=!0)};var Yh=function(){this.uS=_.HU();this.uu=[];this.kMp=0};
Yh.prototype.processChunk=function(G){if(G){for(var c=_.Q(this.uu),I=c.next();!I.done;I=c.next())I=I.value,I.validate(G)&&(I.handle(G),I.e8=!0);_.LC("np"+this.kMp);this.kMp++}};var SPC=function(G,c,I){I=I===void 0?{}:I;this.name=G;this.id=dU.nextSpanId++;this.sessionId=dU.sessionId;this.attributes=c;this.status="SPAN_STATUS_UNSET";var R;this.startTime=(R=I.startTime)!=null?R:(0,_.Fa)();this.isActiveSpan=I.active;if(G=dU.stack[dU.stack.length-1])this.parentId=G.id,G.children||(G.children=[]),G.children.push(this);G=_.Q(dU.processors);for(c=G.next();!c.done;c=G.next()){c=c.value;try{var Z=R=void 0;(Z=(R=c).onSpanStart)==null||Z.call(R,this)}catch(K){_.Ck(K)}}I.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",I.endTime))};
SPC.prototype.end=function(G,c){G=G===void 0?"SPAN_STATUS_OK":G;this.endTime=c=c===void 0?(0,_.Fa)():c;this.duration=this.endTime-this.startTime;this.status=G;this.isActiveSpan!==!1&&(dU.stack[dU.stack.length-1]===this?dU.stack.pop():_.Ck(Error("Ef`"+String(this.name))));G=_.Q(dU.processors);for(c=G.next();!c.done;c=G.next()){c=c.value;try{var I=void 0,R=void 0;(R=(I=c).onSpanEnd)==null||R.call(I,this)}catch(Z){_.Ck(Z)}}};
SPC.prototype.addAttributes=function(G){Object.assign(this.attributes,G)};
var pEq={end:function(){},
addAttributes:function(){}},dU={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},$lO={rootSpan:function(){return dU.stack[0]}};var XL={};var KnA=function(G){this.observers=[];this.value=G};
_.P=KnA.prototype;_.P.subscribe=function(G){var c=this;if(G.idx!=null)throw Error("Gf");G.idx=this.observers.length;this.observers.push(G);try{G(this.value)}catch(I){}return function(){var I=c.observers[c.observers.length-1];c.observers[G.idx]=I;I.idx=G.idx;c.observers.pop()}};
_.P.update=function(G){this.value=G(this.value);this.notify()};
_.P.mutate=function(G){G(this.value);this.notify()};
_.P.set=function(G){this.value=G;this.notify()};
_.P.notify=function(){for(var G=_.Q(this.observers),c=G.next();!c.done;c=G.next()){c=c.value;try{c(this.value)}catch(I){}}};var niA,PoT,aOp;_.NC=function(G,c,I,R,Z,K,m,a){m=m===void 0?[]:m;a=a===void 0?[]:a;this.buildCommandPayload=G;this.navigate=c;this.handleServiceRequest=I;this.sendAction=R;this.JSC$12943_screenManager=Z;this.commandResolverMap=K;this.autoLogResolverAllowlist=m;this.metaCommandClickLoggingDenylist=a;this.pendingCommands=new Set;this.isTracingEnabled=!1;PoT(this)};
niA=function(G,c,I){var R=[_.YYe,l9k],Z=Zzf,K=KQp,m=_.DP(),a=QiK;I=I===void 0?[]:I;R=R===void 0?[]:R;_.NC.instance=new _.NC(G,c,Z,K,m,a,I,R)};
PoT=function(G){if(!G.isTracingEnabled&&CC("command")){var c=G.resolveCommand;G.resolveCommand=function(I,R){a:{for(Z in I)if(Object.prototype.hasOwnProperty.call(I,Z)){var Z={commandType:Z};break a}Z={}}return Hd("command",Z,c.bind(this,I,R))};
G.isTracingEnabled=!0}};
aOp=function(G,c,I){if(!G.commandResolverMap)return!1;var R=iJq(c,G.commandResolverMap);return R?((G.autoLogResolverAllowlist.some(function(Z){return!!_.D(c,Z)})||(I==null?0:I.forceClickLogging))&&mJV(G,c,I),R instanceof Promise?R.then(function(Z){Z.resolve(c,I)}):R.resolve(c,I),!0):!1};
_.NC.prototype.resolveCommand=function(G,c){var I=this,R=TRN(G);if(aOp(this,G,c))return!0;if(R)return OPK(this,G,c);if(!this.buildCommandPayload)return EhC(G,"Unhandled command by buildCommandPayload"),!1;var Z=this.buildCommandPayload(G,c);if(c==null?0:c.commandController)Z.commandController=c.commandController;if(Z.type===0){if(!this.navigate)return JtO(G,"navigate"),!1;if(!eIN(Z.command))return EhC(G,"Page requests need to specify a url"),!1;_.v("logging_avoid_blocking_during_navigation")&&_.Vu8().transition("application_navigating");
G=this.navigate(Z)||[];MVT(G).then(function(){I.pendingCommands.delete(Z.command)});
return!0}if(Z.type===1){if(!this.handleServiceRequest)return JtO(G,"handleServiceRequest"),!1;(c==null?0:c.forceClickLogging)&&mJV(this,Z.command,c);G=this.handleServiceRequest(Z);MVT(G).then(function(){I.pendingCommands.delete(Z.command)});
return!0}if(Z.type===2){if(!this.sendAction)return JtO(G,"sendAction"),!1;mJV(this,Z.command,c);this.sendAction(Z);return!0}return!1};
var mJV=function(G,c,I){if((I==null||!I.disableClickTracking)&&G.JSC$12943_screenManager)if(c.clickTrackingParams&&_.v("log_click_with_layer_from_element_in_command_handler")){var R;I=I==null?void 0:(R=I.form)==null?void 0:R.element;G.JSC$12943_screenManager.clickCommand(c,null,I&&I.getScreenLayer&&I.getScreenLayer())}else c.clickTrackingParams?G.JSC$12943_screenManager.clickCommand(c):!_.v("disable_clicked_visual_element_in_command_handler")&&(I==null?0:I.clickedVisualElement)&&_.XF(G.JSC$12943_screenManager,
I.clickedVisualElement)},TRN=function(G){var c=!!_.D(G,_.RP),I;
G=((I=_.D(G,_.KC))==null?void 0:I.signal)==="CLIENT_SIGNAL";return c||G},OPK=function(G,c,I){var R=_.D(c,_.RP);
if(R)var Z=(R==null?void 0:R.commands)||[];else{var K;if(((K=_.D(c,_.KC))==null?void 0:K.signal)==="CLIENT_SIGNAL"){var m;Z=((m=_.D(c,_.KC))==null?void 0:m.actions)||[]}}if(Z){(R=NRp(G,Z))&&mJV(G,c,I);c=_.Q(Z);for(Z=c.next();!Z.done;Z=c.next()){Z=Z.value;try{var a=Object.assign({},I);R&&(a.disableClickTracking=!0);G.resolveCommand(Z,a)}catch(O){O instanceof Error&&_.hg(O)}}return!0}EhC(c,"Could not handle the meta command");return!1},NRp=function(G,c){return c.every(function(I){return G.metaCommandClickLoggingDenylist.some(function(R){return!!_.D(I,
R)})})},eIN=function(G){var c;
return!((c=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null||!c.url)};var GI=function(){WE.apply(this,arguments)};
_.u(GI,WE);GI.prototype.validate=function(G){var c,I;return!this.e8&&!!((c=G.data.response)==null?0:(I=c.onResponseReceivedEndpoints)==null?0:I.length)};
GI.prototype.handle=function(G){var c=_.NC.instance;G=_.Q(G.data.response.onResponseReceivedEndpoints);for(var I=G.next();!I.done;I=G.next())c.resolveCommand(I.value)};var lO9,qDA,w3k;
lO9=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.IP();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.ck=function(){qDA||(qDA=new lO9);return qDA};
w3k=function(){var G=_.ck();G.miniplayerButtonActivation=!1;G.userActivation=!1;G.playlistWatchPageActivation=!1;G.productDetailsPageActivation=!1;G.miniAppPageActivation=!1;G.playablesDestPageActivation=!1;G.lockupActivation=!1;G.showMiniplayerCommandActivation=!1;G.playlistSuggestionsShelfActivation=!1;G.mediaSessionPipActivation=!1;G.watchPipActivation=!1;G.watchWhileActivation=!1;G.shortsPipActivation=!1;G.companionCanvasActivation=!1};
_.FtT=function(){var G=_.ck(),c=G.mediaSessionPipActivation,I=G.watchPipActivation,R=G.watchWhileActivation,Z=G.playlistWatchPageActivation,K=G.lockupActivation,m=G.showMiniplayerCommandActivation,a=G.navigatingAwayFromWatchDeletedVideo,O=G.shortsPipActivation,N=G.playlistSuggestionsShelfActivation,q=G.productDetailsPageActivation,w=G.miniAppPageActivation,F=G.playablesDestPageActivation,n=G.companionCanvasActivation;return!G.miniplayerButtonActivation&&!Z&&!N&&!q&&!w&&!F&&!K&&!m&&!c&&!I&&!R&&!O&&
!n||a};var ylU;_.IM=_.gU("FEwhat_to_watch","/",3854);_.g3r=_.gU("FEdownloads","/feed/downloads",42352);ylU=_.gU("FEmusic_offline","browse/FEmusic_offline",42352);var Xf=function(G,c){c=c===void 0?[]:c;var I=I===void 0?[]:I;c=GRq.apply(null,[cEb.apply(null,_.jn(c))].concat(_.jn(I)));this.store=Kdp(G,void 0,c)};
Xf.prototype.getState=function(){return this.store.getState()};
Xf.prototype.dispatch=function(G){return this.store.dispatch(G)};
Xf.prototype.subscribe=function(G){return this.store.subscribe(G)};
Xf.prototype.replaceReducer=function(G){return this.store.replaceReducer(G)};
Xf.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.RM=function(G,c,I){var R=c(G.getState());return G.subscribe(function(){var Z=c(G.getState());if(Z!==R){var K=R;R=Z;I(Z,K)}})};var $4f;_.Le=function(G,c,I){return _.R6({type:"REPLACE_ENTITY",payload:{entityPayload:I,entityType:G,key:c}})};
$4f=function(G){return _.R6({type:"REPLACE_ENTITIES",payload:G})};
_.Wm=function(G,c,I,R){return _.R6({type:"UPDATE_ENTITY",payload:{entityPayload:I,entityType:G,key:c,mergeOption:R}})};var ghr=function(G){var c=this;G=G===void 0?[]:G;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;G.forEach(function(I){c.append(I)})};
_.P=ghr.prototype;_.P.getLength=function(){return this.totalLength};
_.P.append=function(G){var c=this.arrays.length===0?!1:(c=this.arrays[this.arrays.length-1])&&c.buffer===G.buffer&&c.byteOffset+c.length===G.byteOffset;c?(c=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(c.buffer,c.byteOffset,c.length+G.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(G);this.totalLength+=G.length};
_.P.split=function(G){for(var c=new ghr,I=new ghr,R=_.Q(this.arrays),Z=R.next();!Z.done;Z=R.next())Z=Z.value,G>=Z.length?(c.append(Z),G-=Z.length):G?(c.append(new Uint8Array(Z.buffer,Z.byteOffset,G)),I.append(new Uint8Array(Z.buffer,Z.byteOffset+G,Z.length-G)),G=0):I.append(Z);return{headView:c,tailView:I}};
_.P.isFocused=function(G){return G>=this.arrayPos&&G<this.arrayPos+this.arrays[this.arrayIdx].length};
_.P.focus=function(G){if(!this.isFocused(G))for(G<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=G&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var njp=function(G,c){G.focus(c);return G.arrays[G.arrayIdx][c-G.arrayPos]};(function(){var G=function(R){return new Uint8Array(R)},c=function(R){for(var Z=new Uint8Array(R.length),K=0;K<R.length;K++)Z[K]=R[K];
return Z},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?G:c})();
var hyU=Array(1024),t5f=window.TextDecoder?new TextDecoder:void 0,CvT=window.TextEncoder?new TextEncoder:void 0;var ytB=function(G){this.arrayView=G;this.pos=0;this.pendingTagAndType=-1},ZY=function(G){var c=njp(G.arrayView,G.pos);
++G.pos;if(c<128)return c;for(var I=c&127,R=1;c>=128;)c=njp(G.arrayView,G.pos),++G.pos,R*=128,I+=(c&127)*R;return I},YPC=function(G,c){var I=G.pendingTagAndType;
for(G.pendingTagAndType=-1;G.pos+1<=G.arrayView.totalLength;){I<0&&(I=ZY(G));var R=I>>3,Z=I&7;if(R===c)return!0;if(R>c){G.pendingTagAndType=I;break}I=-1;switch(Z){case 0:ZY(G);break;case 1:G.pos+=8;break;case 2:R=ZY(G);G.pos+=R;break;case 5:G.pos+=4}}return!1};var chU=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=XE8(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Q4=function(G,c){c=G.pos+c;
if(!(G.buf.length>=c)){for(var I=G.buf.length*2;I<c;)I*=2;G.buf=XE8(I,G.wasm,G.buf.subarray(0,G.pos));G.view=new DataView(G.buf.buffer,G.buf.byteOffset,G.buf.byteLength)}},PY=function(G,c){if(c>268435455){Q4(G,4);
for(var I=c&1073741823,R=0;R<4;R++)G.view.setUint8(G.pos,I&127|128),I>>=7,G.pos+=1;c=Math.floor(c/268435456)}for(Q4(G,4);c>127;)G.view.setUint8(G.pos,c&127|128),c>>=7,G.pos+=1;G.view.setUint8(G.pos,c);G.pos+=1};for(var IG0={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},GIq={},vjK=_.Q(Object.entries(IG0)),DJK=vjK.next();!DJK.done;DJK=vjK.next()){var ojK=_.Q(DJK.value),UJk=ojK.next().value,uM0=ojK.next().value,bPA=UJk,kxT=uM0;kxT&&(GIq[kxT]=bPA)};var Z7r=function(G,c){G=G===void 0?{}:G;switch(c.type){case "ENTITY_LOADED":return c.payload.reduce(function(R,Z){var K,m=(K=Z.options)==null?void 0:K.persistenceOption;if(m&&m!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&m!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return R;if(!Z.entityKey)return _.hg(Error("If")),R;if(Z.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Z.payload)return Z=new _.iW("REPLACE entity mutation is missing a payload",{entityKey:Z.entityKey}),_.hg(Z),R;var a=(0,_.rx.getAnyKey)(Z.payload);
return P1T(R,a,Z.entityKey,Z.payload[a])}if(Z.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Z=Z.entityKey;try{var O=_.Kp(Z).entityType;a=P1T(R,O,Z);break a}catch(w){if(w instanceof Error){Z=new _.iW("Failed to deserialize entity key",{entityKey:Z,originalMessage:w.message});_.hg(Z);a=R;break a}throw w;}a=void 0}return a}if(Z.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Z.payload)return Z=new _.iW("UPDATE entity mutation is missing a payload",{entityKey:Z.entityKey}),_.hg(Z),R;a=(0,_.rx.getAnyKey)(Z.payload);
var N,q;return QMr(R,a,Z.entityKey,Z.payload[a],(N=Z.fieldMask)==null?void 0:(q=N.mergeOptions)==null?void 0:q.repeatedFieldsMergeOption)}return R},G);
case "REPLACE_ENTITY":var I=c.payload;return P1T(G,I.entityType,I.key,I.entityPayload);case "REPLACE_ENTITIES":return Object.keys(c.payload).reduce(function(R,Z){var K=c.payload[Z];return Object.keys(K).reduce(function(m,a){return P1T(m,Z,a,K[a])},R)},G);
case "UPDATE_ENTITY":return I=c.payload,QMr(G,I.entityType,I.key,I.entityPayload,I.mergeOption);default:return G}};var m4r;var sie=!1,ZG,K7,Pk,QV,mC,LtK=function(G){_.JK.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!sie){var c,I=new Uint8Array(256),R=new Uint8Array(256);var Z=1;for(c=0;c<256;c++)I[Z]=c,R[c]=Z,Z^=Z<<1^(Z>>7&&283);ZG=new Uint8Array(256);K7=Tv(256);Pk=Tv(256);QV=Tv(256);mC=Tv(256);for(var K=0;K<256;K++){Z=K?R[255^I[K]]:0;Z^=Z<<1^Z<<2^Z<<3^Z<<4;Z=Z&255^Z>>>8^99;ZG[K]=Z;c=Z<<1^(Z>>7&&283);var m=c^Z;K7[K]=c<<24|Z<<16|Z<<8|m;Pk[K]=m<<24|K7[K]>>>8;QV[K]=Z<<24|Pk[K]>>>
8;mC[K]=Z<<24|QV[K]>>>8}sie=!0}Z=Tv(44);for(I=0;I<4;I++)Z[I]=G[4*I]<<24|G[4*I+1]<<16|G[4*I+2]<<8|G[4*I+3];for(R=1;I<44;I++)G=Z[I-1],I%4||(G=(ZG[G>>16&255]^R)<<24|ZG[G>>8&255]<<16|ZG[G&255]<<8|ZG[G>>>24],R=R<<1^(R>>7&&283)),Z[I]=Z[I-4]^G;this.key=Z};
_.u(LtK,_.JK);
LtK.prototype.encrypt=function(G){var c=G.length;G=new Uint8Array(G.buffer.slice(G.byteOffset,G.byteOffset+c));for(var I=this.cipherBlock,R=0;R<c&&this.blockOffset<16;)G[R++]^=I[this.blockOffset++];for(var Z=c-(c-R)%16;R<Z;)AD0(this),G[R++]^=I[0],G[R++]^=I[1],G[R++]^=I[2],G[R++]^=I[3],G[R++]^=I[4],G[R++]^=I[5],G[R++]^=I[6],G[R++]^=I[7],G[R++]^=I[8],G[R++]^=I[9],G[R++]^=I[10],G[R++]^=I[11],G[R++]^=I[12],G[R++]^=I[13],G[R++]^=I[14],G[R++]^=I[15];if(R<c)for(AD0(this),this.blockOffset=0;R<c;)G[R++]^=
I[this.blockOffset++];return G};
var AD0=function(G){for(var c=G.key,I=G.counter[0]^c[0],R=G.counter[1]^c[1],Z=G.counter[2]^c[2],K=G.counter[3]^c[3],m=3;m>=0&&!(G.counter[m]=-~G.counter[m]);m--);for(var a,O,N=4;N<40;)m=K7[I>>>24]^Pk[R>>16&255]^QV[Z>>8&255]^mC[K&255]^c[N++],a=K7[R>>>24]^Pk[Z>>16&255]^QV[K>>8&255]^mC[I&255]^c[N++],O=K7[Z>>>24]^Pk[K>>16&255]^QV[I>>8&255]^mC[R&255]^c[N++],K=K7[K>>>24]^Pk[I>>16&255]^QV[R>>8&255]^mC[Z&255]^c[N++],I=m,R=a,Z=O;G=G.cipherBlock;m=c[40];G[0]=ZG[I>>>24]^m>>>24;G[1]=ZG[R>>16&255]^m>>16&255;G[2]=
ZG[Z>>8&255]^m>>8&255;G[3]=ZG[K&255]^m&255;m=c[41];G[4]=ZG[R>>>24]^m>>>24;G[5]=ZG[Z>>16&255]^m>>16&255;G[6]=ZG[K>>8&255]^m>>8&255;G[7]=ZG[I&255]^m&255;m=c[42];G[8]=ZG[Z>>>24]^m>>>24;G[9]=ZG[K>>16&255]^m>>16&255;G[10]=ZG[I>>8&255]^m>>8&255;G[11]=ZG[R&255]^m&255;m=c[43];G[12]=ZG[K>>>24]^m>>>24;G[13]=ZG[I>>16&255]^m>>16&255;G[14]=ZG[R>>8&255]^m>>8&255;G[15]=ZG[Z&255]^m&255};var $Je=!1;(function(){var G=function(R){return new Uint8Array(R)},c=function(R){for(var Z=new Uint8Array(R.length),K=0;K<R.length;K++)Z[K]=R[K];
return Z},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?G:c})();
var aM;var MwT=function(G){a:{if(!$Je&&!ev){if(aM){var c=aM;break a}aM=(c=window.crypto)==null?void 0:c.subtle;var I,R,Z;if(((I=aM)==null?0:I.importKey)&&((R=aM)==null?0:R.sign)&&((Z=aM)==null?0:Z.encrypt)){c=aM;break a}aM=void 0}c=void 0}c&&(this.nativeEncryptor=new SDA(G,c));this.encryptorPolyfill=new p39(G)};
MwT.prototype.encrypt=function(G,c){var I=this,R;return _.T(function(Z){switch(Z.nextAddress){case 1:if(!I.nativeEncryptor){Z.jumpTo(2);break}_.s9(Z,3);return Z.yield(I.nativeEncryptor.encrypt(G,c),5);case 5:return Z.return(Z.yieldResult);case 3:R=_.M3(Z),_.Ck(R),$Je=!0,I.nativeEncryptor=void 0;case 2:return Z.return(I.encryptorPolyfill.encrypt(G,c))}})};
MwT.prototype.decrypt=function(G,c){return this.encrypt(G,c)};
var SDA=function(G,c){this.JSC$13016_aesKey=G;this.subtleCrypto=c};
SDA.prototype.encrypt=function(G,c){var I=this,R;return _.T(function(Z){if(Z.nextAddress==1)return _.s9(Z,2),Z.yield(Vw9(I,G,c),4);if(Z.nextAddress!=2)return Z.return(Z.yieldResult);R=_.M3(Z);_.Ck(R);$Je=!0;throw R;})};
var Vw9=function(G,c,I){var R,Z;return _.T(function(K){switch(K.nextAddress){case 1:if(G.cryptoKey){K.jumpTo(2);break}return K.yield(G.subtleCrypto.importKey("raw",G.JSC$13016_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:G.cryptoKey=K.yieldResult;case 2:return R={name:"AES-CTR",counter:I,length:128},K.yield(G.subtleCrypto.encrypt(R,G.cryptoKey,c),4);case 4:return Z=K.yieldResult,K.return(new Uint8Array(Z))}})},p39=function(G){this.JSC$13019_aesKey=G};
p39.prototype.encrypt=function(G,c){this.encryptor||(this.encryptor=new LtK(this.JSC$13019_aesKey));for(var I=this.encryptor,R=0;R<4;R++)I.counter[R]=c[R*4]<<24|c[R*4+1]<<16|c[R*4+2]<<8|c[R*4+3];I.blockOffset=16;return this.encryptor.encrypt(G)};
p39.prototype.decrypt=function(G,c){return this.encrypt(G,c)};var zIk={},O7i=wJ("yt-idb-pref-storage",{objectStores:(zIk.prefs={addedAtVersion:1},zIk),shared:!1,upgrade:function(G,c){c(1)&&c_(Ga(G,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.TI=function(G){this.token=G};
_.TI.getInstance=function(){return _.T(function(G){return G.return(new Promise(function(c){_.qt().then(function(I){I?(_.TI.instance||(_.TI.instance=new _.TI(I)),c(_.TI.instance)):c(void 0)})}))})};
_.TI.prototype.get=function(G){var c=this,I,R,Z;return _.T(function(K){if(K.nextAddress==1)return K.yield(eFr(c.token),2);if(K.nextAddress!=3)return I=K.yieldResult,K.yield(I.get("prefs",G),3);R=K.yieldResult;if(!R)return K.return();Z=(0,_.Fa)();return R.expirationTimestampMs<=Z?K.return():K.return(R.value)})};
_.TI.prototype.set=function(G,c,I){I=I===void 0?31536E3:I;var R=this,Z,K,m;return _.T(function(a){if(a.nextAddress==1)return Z=(0,_.Fa)(),K={key:G,value:c,expirationTimestampMs:Z+I*1E3},a.yield(eFr(R.token),2);m=a.yieldResult;return a.yield(m.put("prefs",K),0)})};
_.TI.prototype.remove=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(eFr(c.token),2);I=R.yieldResult;return R.yield(I.delete("prefs",G),0)})};var OO={},Ej0=(OO.INVALID_ENCODER_VERSION="Invalid encoder version",OO.KEY_CREATION_FAILED="Failed to create encoder key",OO.UNKNOWN_DECODE_ERROR="Failed to decode PES data",OO.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",OO.WRONG_DATA_TYPE="Encoder cannot process the data type",OO),O4=function(G,c){c=c===void 0?{}:c;_.iW.call(this,Ej0[G],Object.assign({},{name:"PESEncoderError",type:G},c));this.type=G;this.level="WARNING";Object.setPrototypeOf(this,O4.prototype)};
_.u(O4,_.iW);var es=function(){};
es.prototype.encode=function(G,c){try{return this.encodeImpl(G,c)}catch(I){wkA(I,lG0)}};
es.prototype.decode=function(G,c){try{return this.decodeImpl(G,c)}catch(I){wkA(I,qOf)}};
var JDi=function(G,c,I){var R;return _.T(function(Z){if(Z.nextAddress==1)return _.s9(Z,2),Z.yield(G.decodeAsyncImpl(c,I),4);if(Z.nextAddress!=2)return Z.return(Z.yieldResult);R=_.M3(Z);wkA(R,qOf);_.Vp(Z)})};
es.prototype.decodeAsyncImpl=function(G,c){return Promise.resolve(this.decodeImpl(G,c))};var N4=function(G,c){this.aesEncryptor=G;this.aesEncryptorAsync=c};
_.u(N4,es);N4.prototype.encodeImpl=function(G,c){c=FCf(c);G=(new TextEncoder).encode(JSON.stringify(G));return this.aesEncryptor.encrypt(G,c)};
N4.prototype.decodeImpl=function(G,c){if(!(G instanceof Uint8Array))throw Ng0(1);var I=new TextDecoder;c=FCf(c);G=this.aesEncryptor.decrypt(G,c);return JSON.parse(I.decode(G))};
N4.prototype.decodeAsyncImpl=function(G,c){var I=this,R,Z,K;return _.T(function(m){if(m.nextAddress==1){if(!(G instanceof Uint8Array))throw Ng0(1);R=new TextDecoder;Z=FCf(c);return m.yield(I.aesEncryptorAsync.decrypt(G,Z),2)}K=m.yieldResult;return m.return(JSON.parse(R.decode(K)))})};var nLU={accountLinkStatusEntity:bVk,booleanEntity:yMA,buttonEntity:tHT,captionTrack:SrA,channelHandle:kZB,chipEntity:vw9,commerceAcquisitionClientPayloadEntity:FjB,commerceCartListEntity:neA,compositeSourceEntity:hFB,multiviewStagingEntity:d4T,contextNoteFeedEntityPayload:iqN,contextNoteUserRatingEntityPayload:f9e,continuationTokenEntity:aGp,downloadQualityPickerEntity:gh0,downloadsPageRefreshTokenEntity:GI0,downloadsPageViewConfigurationEntity:nLe,downloadStatusEntity:YP9,dismissState:D_K,sfvAudioItemCurrentlyPlayingEntity:TyK,
emojiFountainDataEntity:ruk,emojiCustomizationSetEntity:BQK,fakeChannel:GEK,fakePlaylist:cj2,fakePlaylistEntryCollection:Iu0,fakeVideo:ZVe,fakeVideoDescription:K4e,featuredProductsEntity:i70,flowStateEntity:DeV,iconBadgeEntity:oyT,interstitialInteractionStateEntity:BAi,likeButtonAnimationEntity:vLA,liveChatPollStateEntity:HV2,dataFreshnessEntity:iIN,liveViewerLeaderboardChatEntryPointStateEntity:tPi,liveViewerLeaderboardPointsEntity:h$A,liveReactionsDataEntity:je2,logoEntity:iVK,macroMarkerEntity:D4e,
mainDownloadsLibraryEntity:che,mainDownloadsListEntity:IGK,mainPlaylistDownloadStateEntity:Z7i,mainPlaylistEntity:Tge,mainPlaylistVideoEntity:O7p,mainVideoDownloadStateEntity:KCp,mainVideoEntity:qOk,markersEngagementPanelSyncEntity:oL0,markersVisibilityOverrideEntity:U42,musicAlbumReleaseDetail:YO2,musicAlbumReleaseDownloadMetadataEntity:C10,musicAlbumRelease:gL0,musicAlbumReleaseUserDetail:Gbe,musicArtistDetail:Ise,musicArtist:cx9,musicArtistUserDetail:R$0,musicDownloadsLibraryEntity:H7B,musicLibraryEdit:ZxB,
musicLibraryStatusEntity:K$B,musicPlaylist:PlV,musicPlaylistDownloadMetadataEntity:XkV,musicShare:mip,musicTrackDetail:Tme,musicTrackDownloadMetadataEntity:yhe,musicTrack:as0,musicTrackUserDetail:OxV,offlineOrchestrationActionWrapperEntity:pRN,offlineVideoPolicy:MPK,offlineVideoStreams:VPi,offlineabilityEntity:P12,orchestrationWebSamplingEntity:QMi,pageHeaderEntity:SXK,pdpStateEntity:UFT,pinnedProductEntity:fGA,playbackData:z$A,playerStateEntity:uiB,quantityIncrementerEntity:uhT,refresh:Ere,saveToPlaylistListEntity:pQB,
selectedChipIndexEntityPayload:b7k,settingEntity:Y7k,stringEntity:gn0,suggestedFeedbackChipStateEntity:kIN,transfer:JxV,trendingOfferEntity:Bge,videoDownloadContextEntity:W$B,videoOverviewAsyncDataEntity:dFB,videoPlaybackPositionEntity:Cs0,votingEntity:zTB,ytMainChannelEntity:wkN,youchatPendingResponseEntity:sMK,ytMainDownloadedVideoEntity:m40,ytMainVideoEntity:FCk};var Wte,fOK,Ff,sMp,LC0,jii,tw9,xJV,rD0;Wte=function(G,c){this.JSC$13038_wrapped=G;this.JSC$13038_encoderRegistry=c;this.changedKeys={}};
fOK=function(G,c){return iPA(G.JSC$13038_encoderRegistry,c.version).decode(c.data,c.key)};
_.BRk=function(G,c,I){return G.JSC$13038_wrapped.objectStore("EntityStore").get(c).then(function(R){if(R){if(I&&R.entityType!==I)throw Error("Jf");return fOK(G,R)}})};
Ff=function(G,c,I){return I?(I=I.map(function(R){return _.BRk(G,R,c)}),cl.all(I)):G.JSC$13038_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(c)).then(function(R){return R.map(function(Z){return fOK(G,Z)})})};
_.kIA=function(G,c,I){var R=RFC(c),Z=iPA(G.JSC$13038_encoderRegistry,1),K=Object.assign({},c);return G.JSC$13038_wrapped.objectStore("EntityStore").get(R).then(function(m){if(m){if(m.entityType!==I)throw Error("Jf");K.entityMetadata||(m=fOK(G,m),K.entityMetadata=m.entityMetadata)}}).then(function(){var m={key:R,
entityType:I,data:Z.encode(K,R),version:1};return cl.all([G.JSC$13038_wrapped.objectStore("EntityStore").put(m),rD0(G,K,I)])}).then(function(){jii(G,R,I);
return R})};
sMp=function(G,c){var I=_.Kp(c).entityType;return cl.all([G.JSC$13038_wrapped.objectStore("EntityStore").delete(c),xJV(G,c)]).then(function(){jii(G,c,I)})};
LC0=function(G,c,I,R){var Z=iPA(G.JSC$13038_encoderRegistry,1);return _.BRk(G,c,R).then(function(K){if(K){K=xlC(K,I);var m={key:c,entityType:R,data:Z.encode(K,c),version:1};return cl.all([G.JSC$13038_wrapped.objectStore("EntityStore").put(m),rD0(G,K,R)])}}).then(function(){jii(G,c,R);
return c})};
jii=function(G,c,I){var R=G.changedKeys[I];R||(R=new Set,G.changedKeys[I]=R);R.add(c)};
tw9=function(G,c,I){var R=RFC(c);I=vLg(I);if(!I)return cl.resolve([]);I=new I(c);G=G.JSC$13038_wrapped.objectStore("EntityAssociationStore");c=[];I=_.Q(I.getAssociations());for(var Z=I.next();!Z.done;Z=I.next())c.push(G.put({parentEntityKey:R,childEntityKey:Z.value}));return cl.all(c).then(function(K){return K.map(function(m){return m[1]})})};
xJV=function(G,c){return G.JSC$13038_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(c))};
rD0=function(G,c,I){var R=RFC(c);return xJV(G,R).then(function(){return tw9(G,c,I)})};var hI2=function(){};
_.u(hI2,es);hI2.prototype.encodeImpl=function(G){return G};
hI2.prototype.decodeImpl=function(G){if(G instanceof Uint8Array)throw Ng0(0);return G};var U4T=function(){this.cacheMap={};this.cacheMap[0]=new hI2;if(!_.v("aes_pes_encoder_killswitch")){var G=this.cacheMap;try{var c=_.Jw();var I=FCf(c);var R=new N4(new p39(I),new MwT(I))}catch(Z){throw G=Z instanceof Error?new O4("KEY_CREATION_FAILED",{originalMessage:Z.message}):new O4("KEY_CREATION_FAILED"),_.hg(G),G;}G[1]=R}},iPA=function(G,c){c=c===void 0?0:c;
G=G.cacheMap[c];if(!G)throw c=new O4("INVALID_ENCODER_VERSION",{encoderVersion:c}),_.hg(c),c;return G};var N9=function(G,c){_.JK.call(this);this.token=G;this.JSC$13052_encoderRegistry=c;this.observers=[];G=new _.Rq.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Jw());G.onmessage=this.JSC$13052_handleMessage.bind(this);this.channel=G};
_.u(N9,_.JK);_.q9=function(G,c,I){var R,Z,K,m;return _.T(function(a){if(a.nextAddress==1)return a.yield(TgU(G.token),2);if(a.nextAddress!=3)return R=a.yieldResult,a.yield(_.az(R,["EntityStore","EntityAssociationStore"],c,function(O){Z=new Wte(O,G.JSC$13052_encoderRegistry);return I(Z)}),3);
K=a.yieldResult;Z&&(m=Z.changedKeys,Object.keys(m).length>0&&(G.channel.postMessage(m),dJi(G,m)));return a.return(K)})};
N9.prototype.observe=function(G){var c=this;this.observers.push(G);return function(){var I=c.observers.indexOf(G);I>=0&&c.observers.splice(I,1)}};
var nAT=function(G){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(_.q9(G,{mode:"readonly",enableRetries:!0},function(R){return R.JSC$13038_wrapped.objectStore("EntityStore").getAll()}),2);
c=I.yieldResult;return I.return(Promise.all(c.filter(function(R){return!!R}).map(function(R){var Z,K;
return _.T(function(m){if(m.nextAddress==1){Z=R.key;K=R.entityType;var a=m.yield;var O=JDi(iPA(G.JSC$13052_encoderRegistry,R.version),R.data,R.key);return a.call(m,O,2)}return m.return({key:Z,entityType:K,data:m.yieldResult})})})))})};
N9.prototype.JSC$13052_handleMessage=function(G){dJi(this,G.data)};
var dJi=function(G,c){G=_.Q(G.observers);for(var I=G.next();!I.done;I=G.next())I=I.value,I(c)};
N9.prototype.disposeInternal=function(){this.channel.close()};
var D4U;var l1,HPV,d4B;l1={};_.Coe=(l1.mainVideoEntity="mainVideoEntityActionMetadata",l1.mainPlaylistEntity="mainPlaylistEntityActionMetadata",l1.musicTrack="musicTrackEntityActionMetadata",l1.musicPlaylist="musicPlaylistEntityActionMetadata",l1);HPV=new _.De("DOWNLOADS_ENTITY_TYPE_MAP");_.kV=_.mx("","downloadsPageViewConfigurationEntity");d4B=_.mx("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.sT8=_.mx("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.mx("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.mx("SMART_DOWNLOADS_ENABLED","settingEntity");_.mx("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Msq=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var fGg=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var X3A={isLeaderTab:!0};var lsA={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var q4=window,BY=q4.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",Nyi=q4.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||rL,n4A=q4.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||D2,N80=q4.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||ekN,T8T=q4.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||bee,eri=q4.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||SN2;var e78;hX({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 pQO=v4T(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(G){return G}}}),EEr=v4T(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(G){return G}}}),u5A=new Map;var VNr=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],AGB;var yDN=function(G){return _.R6({type:"SET_EPHEMERAL_ACTION",payload:G})};var gjp={ephemeralAction:null};var YD0=pF({ephemeralAction:function(G,c){G=G===void 0?gjp.ephemeralAction:G;switch(c.type){case "SET_EPHEMERAL_ACTION":return c.payload;default:return G}}});var Ghk=function(G){return _.R6({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:G})};var cSK={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var IKK={sharedUi:cSK,a11y:gjp,entities:{}},KOr={sharedUi:function(G,c){G=G===void 0?cSK:G;switch(c.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},G,{animatedThumbnailEnabled:c.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},G,{inlinePreviewEnabled:c.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:c.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},G,{currentPageSubType:c.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},G,{persistentPanelVisible:c.payload});default:return G}},
a11y:YD0,entities:KCi};var fd8={playlistId:"",inviteLinkURL:""};var Rv0={continuationCommand:{}};var yGq=pF({continuationCommand:function(G,c){G=G===void 0?Rv0.continuationCommand:G;switch(c.type){case "SET_CONTINUATION_COMMAND":return c.payload.continuationCommand;default:return G}}});var rGp={currentFormId:"",commandsMap:{}};var g4O=pF({isLeaderTab:function(G,c){G=G===void 0?X3A.isLeaderTab:G;switch(c.type){case "SET_IS_LEADER_TAB":var I,R;return(R=c==null?void 0:(I=c.payload)==null?void 0:I.isLeaderTab)!=null?R:G;default:return G}}});var Kke;_.ZoT=function(G){return _.R6({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:G}})};
Kke=function(G){return _.R6({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:G}})};var wg={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var ZIr=pF({isDesktopSmallWidth:function(G,c){G=G===void 0?wg.isDesktopSmallWidth:G;switch(c.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return c.payload.isDesktopSmallWidth;default:return G}},
isShortsActive:function(G,c){G=G===void 0?wg.isShortsActive:G;switch(c.type){case "SET_IS_SHORTS_ACTIVE":return c.payload.isShortsActive;default:return G}},
isWatchWhileMode:function(G,c){G=G===void 0?wg.isWatchWhileMode:G;switch(c.type){case "SET_IS_WATCH_WHILE_MODE":return c.payload.isWatchWhileMode;default:return G}},
playerState:function(G,c){G=G===void 0?wg.playerState:G;switch(c.type){case "SET_PLAYER_STATE":return c.payload.playerState;default:return G}},
isFullscreen:function(G,c){G=G===void 0?wg.isFullscreen:G;switch(c.type){case "SET_IS_FULLSCREEN":return c.payload.isFullscreen;default:return G}},
isSmallScreenSqueezeback:function(G,c){G=G===void 0?wg.isSmallScreenSqueezeback:G;switch(c.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return c.payload.isSmallScreenSqueezeback;default:return G}},
isShortsPipActive:function(G,c){G=G===void 0?wg.isShortsPipActive:G;switch(c.type){case "SET_IS_SHORTS_PIP_ACTIVE":return c.payload.isShortsPipActive;default:return G}},
isPlaybackStarted:function(G,c){G=G===void 0?wg.isPlaybackStarted:G;switch(c.type){case "SET_IS_PLAYBACK_STARTED":return c.payload.isPlaybackStarted;default:return G}}});var xHC={currentMode:"canvas-hidden"};var Qef=function(){return function(G){return function(c){var I=G(c);_.ym(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[c],!0);return I}}};var PSK,f8q;PSK=new _.Te;_.a9=new _.De("WATCH_PLAYER_PROMISE_TOKEN");_.QcV=new _.Te;_.mWB=new _.De("SHORTS_PLAYER_PROMISE_TOKEN");f8q=new _.De("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var m_U=function(){return function(G){return function(c){c.type==="ENTITY_LOADED"&&_.wH().resolve(_.a9).then(function(I){var R;(R=I.dispatchReduxAction)==null||R.call(I,c)});
return G(c)}}};var aKi={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Y7f=pF({additionalContext:function(G,c){G=G===void 0?aKi.additionalContext:G;switch(c.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var I;return(I=c.payload)!=null?I:"";default:return G}},
impersonatedChannelUrl:function(G,c){G=G===void 0?aKi.impersonatedChannelUrl:G;switch(c.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var I;return(I=c.payload)!=null?I:"";default:return G}},
selectedVideoIds:function(G,c){G=G===void 0?aKi.selectedVideoIds:G;switch(c.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var I={};return Object.assign({},G,(I[c.payload]=!0,I));case "VIDEO_UNSELECTED":return c=c.payload,G=Object.assign({},G),delete G[c],G;default:return G}}});var TWK={parentClickTrackingParams:""};var G5B=pF({parentClickTrackingParams:function(G,c){G=G===void 0?TWK.parentClickTrackingParams:G;switch(c.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return c.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return G}}});var Oo0=function(G){return _.R6({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:G})},evN=function(G){return _.R6({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:G})};var NWT={stepStates:{}};var cuT=pF({stepStates:function(G,c){G=G===void 0?NWT.stepStates:G;switch(c.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var I=G,R=c.payload,Z,K,m;G={};c={selectionStates:Object.assign({},(m=(Z=I[R.stepId])==null?void 0:Z.selectionStates)!=null?m:{},(G[R.token]={isSelected:R.isSelected},G)),userQuery:(K=I[R.stepId])==null?void 0:K.userQuery};Z={};return Object.assign({},I,(Z[R.stepId]=c,Z));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Z=G,K=c.payload,m=
{selectionStates:Object.assign({},(R=(I=Z[K.stepId])==null?void 0:I.selectionStates)!=null?R:{}),userQuery:{userQuery:K.userQuery,token:K.userQueryToken}},I={},Object.assign({},Z,(I[K.stepId]=m,I));default:return G}}});var lKe,qv0,FkB;lKe=function(G){return _.R6({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:G})};
qv0=function(G){return _.R6({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:G})};
_.JA=function(G){return _.R6({type:"SET_CURRENT_PAGE_TYPE",payload:G})};
_.w2K=function(G){return _.R6({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:G})};
FkB=function(G){return _.R6({type:"SET_CHIP_BAR_IS_STICKY",payload:G})};var h7p={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"};_.n_B=function(G){return _.R6({type:"SET_PLAYER_STATE",payload:{playerState:G}})};var Fi={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:CdO(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var Igi=pF({isTheaterMode:function(G,c){G=G===void 0?CdO():G;switch(c.type){case "SET_IS_THEATER_MODE":return c.payload.isTheaterMode;default:return G}},
isWatchActive:function(G,c){G=G===void 0?Fi.isWatchActive:G;switch(c.type){case "SET_IS_WATCH_ACTIVE":return c.payload.isWatchActive;default:return G}},
isLearningJourneyActive:function(G,c){G=G===void 0?Fi.isLearningJourneyActive:G;switch(c.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return c.payload.isLearningJourneyActive;default:return G}},
isWatchFullscreen:function(G,c){G=G===void 0?Fi.isWatchFullscreen:G;switch(c.type){case "SET_IS_WATCH_FULLSCREEN":return c.payload.isWatchFullscreen;default:return G}},
isWatchNarrowWidth:function(G,c){G=G===void 0?Fi.isWatchNarrowWidth:G;switch(c.type){case "SET_IS_WATCH_NARROW_WIDTH":return c.payload.isWatchNarrowWidth;default:return G}},
isSwatcherooActive:function(G,c){G=G===void 0?Fi.isSwatcherooActive:G;switch(c.type){case "SET_IS_SWATCHEROO_ACTIVE":return c.payload.isSwatcherooActive;default:return G}},
isWatchRetroMode:function(G,c){G=G===void 0?Fi.isWatchRetroMode:G;switch(c.type){case "SET_IS_WATCH_RETRO_MODE":return c.payload.isWatchRetroMode;default:return G}},
isLiveChatCollapsed:function(G,c){G=G===void 0?Fi.isLiveChatCollapsed:G;switch(c.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return c.payload.isLiveChatCollapsed;default:return G}},
openEngagementPanels:function(G,c){G=G===void 0?Fi.openEngagementPanels:G;var I=[].concat(_.jn(G));switch(c.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return I.push(c.payload.panelToAdd),I;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return I.splice(I.indexOf(c.payload.panelToRemove),1),I;default:return G}},
playerState:function(G,c){G=G===void 0?Fi.playerState:G;switch(c.type){case "SET_PLAYER_STATE":return c.payload.playerState;default:return G}},
watchScrollTop:function(G,c){G=G===void 0?Fi.watchScrollTop:G;switch(c.type){case "SET_WATCH_SCROLL_TOP":return c.payload.watchScrollTop;default:return G}},
watchWindowSize:function(G,c){G=G===void 0?Fi.watchWindowSize:G;switch(c.type){case "SET_WATCH_WINDOW_SIZE":return c.payload.watchWindowSize;default:return G}}});var v_p={surveyFeedbackData:{feedbackTokens:[]}};var RTB=pF({surveyFeedbackData:function(G,c){G=G===void 0?v_p.surveyFeedbackData:G;switch(c.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return c.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},G,c.payload);default:return G}}});var HfT={};var TQC=void 0;_.v("web_enable_redux_store_on_demand")||(TQC=agp());var DWV=function(G,c,I){var R=this;this.listId=G;this.JSC$13196_updateCallback=c;this.isOfflineVideoCallback=I;_.y4().subscribe(function(){R.handleUpdate()})};
DWV.prototype.getPlaylistData=function(){var G=_.y4().getState().entities;if(this.listId&&this.listId!=="PPSV"){var c=R$q(G,this.listId,!0),I=_.mx(this.listId,"mainPlaylistEntity"),R,Z;G=G==null?void 0:(R=G.mainPlaylistEntity)==null?void 0:(Z=R[I])==null?void 0:Z.title;return OIO(c,G,this.listId)}c=_.Bgb(MP0(G));G=_.Bgb(_.s4(G));G=c.concat(G);return OIO(G)};
DWV.prototype.getPlaylistId=function(){return this.listId};
DWV.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13196_updateCallback(this.listId,this.getPlaylistData(),{})};var n7=function(G,c,I,R){R=R===void 0?[]:R;this.JSC$13199_playlistNetworkManager=G;this.listId=c;this.JSC$13199_updateCallback=I;this.videoIds=R;this.pendingUpdates=[];this.currentIndex=0};
n7.prototype.JSC$13199_setCurrentIndex=function(G){this.currentIndex=G};
n7.prototype.setListId=function(G){this.listId=G};
var o_T=function(G,c){G.currentCreateRequest&&G.currentCreateRequest.cancel(c);G.currentUpdateRequest&&G.currentUpdateRequest.cancel(c);G.currentRefreshRequest&&G.currentRefreshRequest.cancel(c)};
n7.prototype.delete=function(){o_T(this,"PROXY DELETED")};
n7.prototype.addVideos=function(G,c,I){var R=this;I!==void 0?this.videoIds.splice.apply(this.videoIds,[I,0].concat(_.jn(G))):this.videoIds.push.apply(this.videoIds,_.jn(G));this.listId||this.currentCreateRequest?(G.forEach(function(Z,K){Z={addedVideoId:Z,action:"ACTION_ADD_VIDEO"};I&&(Z.addedVideoPosition=I+K);R.pendingUpdates.push(Z)}),vk(this)):UWT(this,c.onCreateListCommand)};
var uSN=function(G,c,I,R,Z){iA0(G.videoIds,c,I);c>G.currentIndex&&I<=G.currentIndex?G.JSC$13199_setCurrentIndex(G.currentIndex+1):c===G.currentIndex?G.JSC$13199_setCurrentIndex(I):c<G.currentIndex&&I>=G.currentIndex&&G.JSC$13199_setCurrentIndex(G.currentIndex-1);G.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:R,movedSetVideoIdPredecessor:Z});vk(G)},UWT=function(G,c){o_T(G,"OBSOLETE");
G.currentCreateRequest=boT(G.JSC$13199_playlistNetworkManager,c,G.videoIds);_.hE(G.currentCreateRequest,function(){G.currentCreateRequest=void 0}).then(function(I){G.setListId(I.playlistId);
G.pendingUpdates.length>0?vk(G):khA(G)})},vk=function(G){if(G.pendingUpdates.length!==0&&(G.currentRefreshRequest&&G.currentRefreshRequest.cancel("OBSOLETE"),!G.currentUpdateRequest&&!G.currentCreateRequest)){var c=G.pendingUpdates.splice(0,G.pendingUpdates.length);
G.currentUpdateRequest=G.JSC$13199_playlistNetworkManager.updatePlaylist(G.listId,c);_.hE(G.currentUpdateRequest,function(){G.currentUpdateRequest=void 0}).then(function(){G.pendingUpdates.length>0?vk(G):khA(G)}).thenCatch(function(){G.pendingUpdates.unshift.apply(G.pendingUpdates,_.jn(c))})}},khA=function(G){G.currentRefreshRequest=_.scB(G.JSC$13199_playlistNetworkManager,G.listId,G.currentIndex,G.videoIds[G.currentIndex]);
_.hE(G.currentRefreshRequest,function(){G.currentRefreshRequest=void 0}).then(function(c){G.JSC$13199_updateCallback(c.playlistId,c.playlistPanelRenderer,c.autoplayRenderer)})};
n7.prototype.size=function(){return this.videoIds.length};var Lk0=function(G,c,I,R){R=R===void 0?[]:R;n7.call(this,G,c,I,R);this.JSC$13199_playlistNetworkManager=G;this.listId=c;this.JSC$13199_updateCallback=I;this.videoIds=R};
_.u(Lk0,n7);_.DG=function(G,c,I,R,Z,K,m){Z=Z===void 0?[]:Z;m=m===void 0?ut:m;n7.call(this,G,c,I,Z);this.JSC$13199_playlistNetworkManager=G;this.listId=c;this.JSC$13199_updateCallback=I;this.onAuthChange=R;this.videoIds=Z;this.storage=K;this.cookieReader=m;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.mq(_.dJ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.u(_.DG,n7);_.P=_.DG.prototype;_.P.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.mq(_.dJ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.P.JSC$13199_setCurrentIndex=function(G){n7.prototype.JSC$13199_setCurrentIndex.call(this,G);this.store()};
_.P.delete=function(){_.dJ.cancelJob(this.queueSapisIdJob);n7.prototype.delete.call(this)};
_.P.setListId=function(G){n7.prototype.setListId.call(this,G);this.store()};
_.P.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var AS2=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],$Wp=["playerResponse","videoDetails"],Sv0=["response","currentVideoEndpoint","watchEndpoint","videoId"],p2B=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Mfk=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Vfe=["response","contents","twoColumnWatchNextResults","playlist","playlist"],zvK=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
E_i=["response","contents","twoColumnWatchNextResults"];var oM={},wTT=(oM.WEB_UNPLUGGED="^unplugged/",oM.WEB_UNPLUGGED_ONBOARDING="^unplugged/",oM.WEB_UNPLUGGED_OPS="^unplugged/",oM.WEB_UNPLUGGED_PUBLIC="^unplugged/",oM.WEB_CREATOR="^creator/",oM.WEB_KIDS="^kids/",oM.WEB_EXPERIMENTS="^experiments/",oM.WEB_MUSIC="^music/",oM.WEB_REMIX="^music/",oM.WEB_MUSIC_EMBEDDED_PLAYER="^music/",oM.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",oM);var qyO,boT;qyO=function(G,c){this.networkManager=G;this.innertubeTransportService=c};
boT=function(G,c,I){if(!_.D(c,_.UP))return _.$C(Error("Nf"));_.D(c,_.UP).videoIds=I;I={create_playlist_title:_.mJ("QUEUE",void 0,"Queue")};return lg8(_.CQ(G.innertubeTransportService,c,I),eTB)};
_.scB=function(G,c,I,R){c={videoId:R,playlistId:c,playlistIndex:I};I=_.gL(Mtp);return lg8(_.UO(G.innertubeTransportService,c,I),qXg)};
qyO.prototype.updatePlaylist=function(G,c){return lg8(_.CQ(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:G,actions:c}}),NQU)};var JSe=function(G){this.storage=G},WkN;
JSe.prototype.store=function(G,c){c=c===void 0?0:c;if(this.storage&&G.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",G),this.storage.set("TLPQindex",String(c)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(I){}};
JSe.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
JSe.prototype.getPlaylistId=function(){if(!this.storage)return null;var G=null;try{G=this.storage.get("TLPQplaylist")}catch(c){}return G};var D_0=["navigationEndpoint","watchEndpoint","videoId"],vwC=["nextButtonVideo","watchEndpoint","videoId"];_.oI=new _.De("NETWORK_TOKEN");_.I9=new _.De("PAGE_TOKEN");_.u1=new _.De("PLAYLIST_TOKEN");var io9;io9=new _.De("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.UU=new _.De("INNERTUBE_TRANSPORT_TOKEN");var fKk,b1,rST,jce,tfk,hve;fKk=new Set(["ci","cr","carml"]);b1=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13246_parkedJobs=new Map;this.parkedProcessors=new Map};
_.kL=function(){b1.instance||(b1.instance=new b1);return b1.instance};
b1.prototype.onAny=function(G){return _.BWB(this,G,2)};
b1.prototype.parkOrScheduleJob=function(G,c,I,R,Z){_.sO(this,I)?_.E_().addJob(G,c,R):(Z&&(G=rST(G),jce(this,G,c,I,Z)),Z=this.JSC$13246_parkedJobs.get(I),Z||(this.JSC$13246_parkedJobs.set(I,[]),Z=this.JSC$13246_parkedJobs.get(I)),Z.push({job:G,priority:c,delay:R}))};
b1.prototype.addListener=function(G,c,I){I&&(c=rST(c),jce(this,c,0,G,I));I=this.parkedProcessors.get(G);I||(this.parkedProcessors.set(G,[]),I=this.parkedProcessors.get(G));I.push(c)};
b1.prototype.processSignal=function(G){if(!_.sO(this,G)){this.inProgressSignals.add(G);var c=this.JSC$13246_parkedJobs.get(G);if(c){c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=I.value,_.E_().addJob(I.job,I.priority,I.delay);this.JSC$13246_parkedJobs.delete(G)}if(c=this.parkedProcessors.get(G)){c=_.Q(c);for(I=c.next();!I.done;I=c.next())I=I.value,I();this.parkedProcessors.delete(G)}this.signals.push(G);this.inProgressSignals.delete(G)}};
_.sO=function(G,c){return fKk.has(c)||_.XG("IS_HOMEPAGE_COLD")||_.XG("IS_RESULTS_PAGE_COLD")||_.XG("IS_WATCH_PAGE_COLD")?G.signals.indexOf(c)>=0:!0};
rST=function(G){var c=!1;return function(){c||(c=!0,G())}};
jce=function(G,c,I,R,Z){if(xWk.has(R))_.E_().addJob(c,I,Z);else{var K=G.compoundSignals.get(R);K&&_.E_().addJob(function(){_.sO(G,R)||(K.isTimeoutConditionSatisfied?_.E_().addJob(c,I):K.timeoutConditionObservers.push(function(){_.E_().addJob(c,I)}))},I,Z)}};
_.BWB=function(G,c,I){if(c.length>1){var R=[],Z=Object.create(null);c=_.Q(c);for(var K=c.next();!K.done;K=c.next())K=K.value,Z[K]||(R.push(K),Z[K]=!0);c=R}if(c.length===1)return c[0];K=c;R="";Z=I===2?"|":"&";K.sort();K=_.Q(K);for(var m=K.next();!m.done;m=K.next())R+=m.value+Z;if(!G.compoundSignals.get(R)){Z=0;K=[];m=_.Q(c);for(var a=m.next();!a.done;a=m.next())a=a.value,Z++,_.sO(G,a)||K.push(a);(I=I===2)&&Z>K.length||!I&&!K.length?G.signals.push(R):tfk(G,R,I,c,K)}return R};
tfk=function(G,c,I,R,Z){var K=Z.length,m=function(){I||--K===0?G.processSignal(c):hve(G,c)};
Z=_.Q(Z);for(var a=Z.next();!a.done;a=Z.next())G.addListener(a.value,m);G.compoundSignals.set(c,{signals:R,isOnAny:I,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});hve(G,c)};
hve=function(G,c){if(!_.sO(G,c)){var I=G.compoundSignals.get(c);if(I&&!I.isTimeoutConditionSatisfied){for(var R=!1,Z=0,K=0,m=_.Q(I.signals),a=m.next();!a.done;a=m.next()){var O=a.value;a=!_.sO(G,O);xWk.has(O)?R=!0:(O=G.compoundSignals.get(O))?a&&!O.isTimeoutConditionSatisfied&&(K++,I.isInitialized||O.timeoutConditionObservers.push(function(){hve(G,c)})):a&&Z++}I.isInitialized=!0;
I.isOnAny?R&&(I.isTimeoutConditionSatisfied=!0):Z===0&&K===0&&(I.isTimeoutConditionSatisfied=!0);if(I.isTimeoutConditionSatisfied)for(I=_.Q(I.timeoutConditionObservers),R=I.next();!R.done;R=I.next())R=R.value,R()}}};
b1.prototype.processSignal=b1.prototype.processSignal;b1.prototype.parkOrScheduleJob=b1.prototype.parkOrScheduleJob;b1.prototype.onAny=b1.prototype.onAny;_.lr("ytsignals.getInstance",_.kL);b1.prototype.onAny=b1.prototype.onAny;b1.prototype.parkOrScheduleJob=b1.prototype.parkOrScheduleJob;b1.prototype.processSignal=b1.prototype.processSignal;var xWk=new Set(["eop","eocs","dl","pcl"]);_.tA=new _.De("MINIPLAYER_SERVICE");var L7,dW9,CSB;L7=function(G,c,I){var R=_.RD.getInstance();if(!WkN){var Z=new yHb;var K=void 0,m=_.H1("ID_TOKEN");m&&Z.isAvailable()&&(K=new jA(Z,"yt-queue"+m));WkN=new JSe(K)}Z=WkN;K=_.kL();this.JSC$13253_actionRouter=R;this.JSC$13253_pageManager=G;this.playlistManager=c;this.JSC$13253_playlistNetworkManager=I;this.storage=Z;this.signals=K;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Ah=function(){if(!dW9){var G=_.wH(),c=G.resolve(_.qR(_.I9)),I=G.resolve(_.qR(_.oI)),R=G.resolve(_.qR(_.u1));G=G.resolve(_.UU);dW9=new L7(c,R,new qyO(I,G))}return dW9};
CSB=function(G,c,I){if(I){var R;if(((R=G.responsePlaylistData)==null?void 0:R.playlistId)!==I)return}G.responsePlaylistData&&(I=sei(c,G.responsePlaylistData),G.responsePlaylistData=(0,_.rx.unsafeClone)(G.responsePlaylistData),I5p(G.responsePlaylistData,I));I=G.temporaryItems.findIndex(function(Z){return Z.videoId===c});
I>-1&&G.temporaryItems.splice(I,1);_.$L(G,_.Ss(G,G.response?G.response.autoplayRenderer:void 0))};
_.HoA=function(G,c){if(G.responsePlaylistData){var I=LOr(c,G.responsePlaylistData);I5p(G.responsePlaylistData,I);if(G.queueProxy){var R=G.queueProxy;I<0||(R.videoIds.splice(I,1),I<R.currentIndex&&R.JSC$13199_setCurrentIndex(R.currentIndex-1),R.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:c}),vk(R))}}_.$L(G,_.Ss(G,G.response?G.response.autoplayRenderer:void 0))};
L7.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.$L(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
L7.prototype.setPlaylistData=function(G,c,I){this.temporaryItems=[];this.listId=G;this.responsePlaylistData=c;_.$L(this,_.Ss(this,I))};
var X2e=function(G){return(G==null?0:G.playlistId)?G.playlistId:"PPSV"},yST=function(G){return G&&G.playlistId?G.playlistId==="PPSV"?!0:cxC(_.y4().getState().entities,G.playlistId):!1};
L7.prototype.isPlayingOfflineVideo=function(){return this.response?yST(this.response):!1};
L7.prototype.closeMiniplayer=function(G){var c=this.queueProxy&&this.queueProxy.size()<=1,I=_.wH().resolve(_.tA);if(!this.queueProxy||c)this.queueProxy&&this.clearQueue(),I.close(!0);else{I.pipController.getWindow()&&window.focus();c=this.responsePlaylistData;var R=this.temporaryItems.length+(c&&c.contents?c.contents.length:0);c=_.mJ("QUEUE_CLEARED_UNPLURALIZED")||_.aP("QUEUE_CLEARED",R);c=_.Ge(c);I=_.mJ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");R=_.mJ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.aP("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",R);var Z=_.mJ("MINIPLAYER_CLOSE",void 0,"Close"),K=_.mJ("CANCEL",void 0,"Cancel");_.Rk(this.JSC$13253_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Cp(I),dialogMessages:[_.Cp(R)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cp(Z),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
c]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Cp(K)}}}}}}],G)}};
_.Ss=function(G,c){var I={},R=G.response;I.autoplayRenderer=c;if(!G.responsePlaylistData&&!G.temporaryItems.length)return!R||!R.hasRelatedVideoData&&_.v("kevlar_prefetch_data_augments_network_data")||(I.playerData={rvs:R.relatedVideoArgs,endScreenRenderer:R.endScreenRenderer}),I;I.playerData={};if(G.index===void 0)return _.hg(Error("Pf")),I;I.panel=G.responsePlaylistData?(0,_.rx.unsafeClone)(G.responsePlaylistData):{titleText:_.Cp(_.mJ("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
c=I.panel;if(c.contents)for(var Z=_.Q(G.temporaryItems),K=Z.next();!K.done;K=Z.next())c.contents.push({playlistPanelVideoRenderer:K.value});G.queueProxy&&R&&R.playingVideo&&R.playingVideoId&&!k5r(R.playingVideoId,I.panel)&&(c=R.playingVideo,Z=I.panel,K=G.index,Z.contents&&Z.contents.splice(K===void 0?0:K,0,{playlistPanelVideoRenderer:c}));R&&R.playingVideoId&&(c=G.index,Z=I.panel,c=!Z.contents||c>=Z.contents.length?void 0:Z.contents[c].playlistPanelVideoRenderer,c&&c.videoId===R.playingVideoId||(c=
sei(R.playingVideoId,I.panel),G.index=c!==-1?c:G.index?G.index-1:0));c=bIr(G.index+1,I.panel);Z=void 0;G.index>0&&(Z=bIr(G.index-1,I.panel));if(Z||c)I.autoplayRenderer=owO(c,Z,I.autoplayRenderer);!c&&(R==null?0:R.relatedVideoArgs)&&(I.playerData.rvs=R.relatedVideoArgs);R=R?R.playlistIndexOffset:0;G.queueProxy?Kjf(I.panel,G.index,R,u$b,!0,!0,!0):Kjf(I.panel,G.index,R);I.playerData.playlistPanelRenderer=I.panel;return I};
L7.prototype.openToast=function(G){_.wH().resolve(_.tA).openToast(G,_.mJ("ADDED_TO_QUEUE",void 0,"Added to queue"))};
L7.prototype.isMiniplayerActive=function(){return _.wH().resolve(_.tA).isMiniplayerActive()};
_.$L=function(G,c){G.playlistManager.setAutoplayRenderer(c.autoplayRenderer||null);G.playlistManager.setPlaylistData(c.panel||null);c.playerData&&G.playlistManager.setPlayerPlaybackControlData(c.playerData)};var QvU="#";var g_T={},YvN={},Gq9={},cBk={},I_K={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:(g_T.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",g_T),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:(YvN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",YvN),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:(Gq9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Gq9),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:(cBk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",cBk),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 xIr=[{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:I_K},{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:I_K}}];var VJf;_.aI=[[["cDBzN2F1aHJvMHlia2luZCM=","djBrdWowYnB0am40dmFsdWUj"],"YTBubXAwam93cTN1QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQj"]];
VJf=[[["ZTB4a20xam1wYzIzcHJpbWFyeSM=",null,null],[null,["aHpoOHVtYTFubXFreXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","a3U4eTBvbnVreTVwc3R5bGUtc2NvcGUj"],null],["M2F4NjR0eHRqbGNubWFzdGhlYWQtYWQj",["NXl5dnUwN2FseG1keXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM="],null],[null,["d3J4b2s0NzJjY2MzeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM=","aGk1NG5ibHU1amQ0c3R5bGUtc2NvcGUj"],null],[null,["OGNlZG84ZHZybXU0eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","aWZ0cWtieGQxYmJkc3R5bGUtc2NvcGUj"],null],[null,["cnR4czYzcTk1bmE0eXRkLWFkLXNsb3QtcmVuZGVyZXIj"],
null]],[["cHNyMzJhZGFkOG52cGxheWVyLWFkcyM=",null,null]]];_.mc=["I2lreTl3aWo3NWE5Z2xvYmFsQ2FsbGJhY2tz","I3NqdDNjY3lqMjdwb25BYm5vcm1hbGl0eURldGVjdGVk","eDNvZ3VhYmZxeHZxb25BZFNraXAj","NmllMW81dmNlc3lwcmF3X3BsYXllcl9yZXNwb25zZSM=","eHNpYjJibmQxbTg0YWRTbG90cyM="];_.p7="I2lreTl3aWo3NWE5Z2xvYmFsQ2FsbGJhY2tz I3NqdDNjY3lqMjdwb25BYm5vcm1hbGl0eURldGVjdGVk eDNvZ3VhYmZxeHZxb25BZFNraXAj NmllMW81dmNlc3lwcmF3X3BsYXllcl9yZXNwb25zZSM= dWdsczM3czNiNjE4d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIw== N2I5bGMyNHV2aTNsYWJfc2FfZWYj eHNpYjJibmQxbTg0YWRTbG90cyM=".split(" ");var M4;M4=function(G,c,I){this.nmB=G;this.qC0=c;this.pdF=I};
_.I1U=[new M4("b.f_",!1,0),new M4("j.s_",!1,2),new M4("r.s_",!1,4),new M4("e.h_",!1,6),new M4("i.s_",!0,8),new M4("s.t_",!1,10),new M4("p.h_",!1,12),new M4("s.i_",!1,14),new M4("f.i_",!1,16),new M4("a.b_",!1,18),new M4("a.o_",!1),new M4("g.o_",!1,22),new M4("p.i_",!1,24),new M4("p.m_",!1),new M4("n.k_",!0,20),new M4("i.f_",!1),new M4("a.s_",!0),new M4("m.c_",!1),new M4("n.h_",!1,26),new M4("o.p_",!1),new M4("m.p_",!0,28),new M4("o.a_",!1),new M4("d.p_",!1),new M4("e.i_",!1)].reduce(function(G,c){G[c.nmB]=
c;return G},{});var RWe=function(){};
RWe.prototype.flush=function(G,c){G=G===void 0?[]:G;c=c===void 0?!1:c;if(_.v("enable_client_streamz_web")){G=_.Q(G);for(var I=G.next();!I.done;I=G.next())I=U80(I.value),this.rootSpec&&_.Az(I,2,this.rootSpec),I={serializedIncrementBatch:_.zr(I.JSC$9776_serializeBinary())},_.x7("streamzIncremented",I,{sendIsolatedPayload:c})}};
var ez0=function(){};
_.u(ez0,RWe);var ZrA=function(G){var c=new qZN;var I=new eqp;I=_.Eq(I,1,"botguard");G=_.Eq(I,2,G);this.rootSpec=_.$N(c,1,wX9,G)};
_.u(ZrA,RWe);var KE,K0e=new Map;var Wjr,l5r,uKU,FjO,DIi,p$r,f5T,$IC;Wjr=2;l5r=2;uKU=2;FjO=2;DIi=2;p$r=2;f5T=2;$IC=new n$9;var Q4e,mce;Q4e=function(){this.ongoingFlowNonces=new Map};
_.ex=function(){mce||(mce=new Q4e);return mce};
_.OU=function(G,c,I){return{eventType:{flowEventNamespace:G,flowEventType:c},metadata:I,statusCode:void 0,csn:void 0,can:void 0}};
_.ZbB=function(G,c){var I=_.ex(),R=a_B(I,c,!0);I.logFlowEvent(G,c,R,void 0)};
Q4e.prototype.logFlowEvent=function(G,c,I,R){c={flowNonce:I||a_B(this,c),flowType:c,flowEventType:G.eventType};G.metadata&&(c.flowMetadata=G.metadata);G.statusCode!==void 0&&(c.flowEventStatus=G.statusCode);G.csn&&(c.csn=G.csn);G.can&&(c.can=G.can);_.x7("flowEvent",c,R)};
var a_B=function(G,c,I){I=I===void 0?!1:I;var R=G.ongoingFlowNonces.get(c);if(!R||I)R=oQ(16),G.ongoingFlowNonces.set(c,R);return R};_.TTe=new F_i;var a1r={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var VV=function(G,c,I,R,Z,K,m){I=I===void 0?!1:I;R=R===void 0?!1:R;K=K===void 0?_.Ah():K;this.e8=!1;this.iNo=G;this.hXT=c;this.lS0=I;this.fromHistory=R;this.previousVideoId=Z;this.fSQ=K;this.tempData=m;this.eda=new _.v$T};
_.u(VV,WE);VV.prototype.validate=function(G){return!(!G.data.playerResponse||G.data.page!=="watch"&&G.data.page!=="learning_journey_watch"&&G.data.page!=="shorts"||this.e8)};
VV.prototype.handle=function(G){var c=this,I=_.D(G.endpoint,_.fR),R=_.D(G.endpoint,_.vH);if(_.v("kevlar_continue_playback_without_player_response")&&(I==null?0:I.videoId)&&this.previousVideoId&&(I==null?void 0:I.videoId)===this.previousVideoId&&(I==null?0:I.continuePlayback)&&!this.fromHistory)this.iNo.resolve();else{var Z={};I?Z.watch_endpoint=I:R&&(Z.watch_endpoint=R,R.endTimeSeconds&&(Z.end=R.endTimeSeconds));G.data.page==="watch"?(G.data.filler||this.lS0||(_.SW("cfg"),_.RD.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Z,Or2(this,G.endpoint)),_.v("enable_masthead_quartile_ping_fix")&&Object.assign(Z,eWK(this)),Object.assign(Z,void 0),G.data.forceExternalPlaylist&&(Z.external_list=!0)):G.data.page==="shorts"?_.RD.getInstance().triggerAction("yt-start-loading-shorts"):G.data.page==="learning_journey_watch"&&_.RD.getInstance().triggerAction("yt-start-loading-learning-journey");if(I=this.hXT()){try{I.loadVideoWithPlayerResponse(G.data.playerResponse,Z),I.getPlayerPromise().then(this.iNo.resolve)}catch(K){_.hg(K),
this.iNo.resolve()}this.e8=!0;I.getPlayerPromise().then(function(K){K.addEventListener("onAbnormalityDetected",function(){var m=G.data.playerResponse,a=K.getVideoData().cpn;f5T=0;_.PhB=a;if(a=cpA(m))c.eda.increment("IN_PLAYER"),_.ND(5),_.v("ab_st_vid_ks")?K.pauseVideo(!0):K.stopVideo(),m.playabilityStatus=Object.assign({},m.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:a}}),m.videoDetails=void 0,_.RD.getInstance().triggerOptionalAction("yt-updated-playability-status",
m.playabilityStatus)})})}else _.Ck(Error("Sf"))}};
var Or2=function(G,c){var I=_.D(c,_.fR);if(c&&I&&I.playlistId&&I.videoId&&(G=G.fSQ,G.queueProxy?(G=G.queueProxy,I=G.listId===I.playlistId?G.attributionData.get(I.videoId):void 0):I=void 0,I))return{queue_info:I}},eWK=function(G){var c;
if((c=G.tempData)==null?0:c.adpings)return{adpings:G.tempData.adpings}};var zI=function(G,c,I){this.e8=!1;this.rlD=G;this.yuZ=c;this.taM=I};
_.u(zI,WE);zI.prototype.validate=function(G){return!!_.rx.getValueByKeys.apply(null,[G.data].concat(_.jn(E_i)))};
zI.prototype.handle=function(G){var c=this;this.rlD.promise.then(function(){var I=G.data;var R=_.rx.getValueByKeys.apply(null,[I].concat(_.jn(AS2))),Z=_.rx.getValueByKeys.apply(null,[I].concat(_.jn(Vfe))),K=_.rx.getValueByKeys.apply(null,[I].concat(_.jn(Sv0)));var m=(m=_.rx.getValueByKeys.apply(null,[I].concat(_.jn($Wp))))?{videoId:m.videoId,thumbnail:m.thumbnail,title:m.title?_.Cp(m.title):void 0,shortBylineText:m.author?_.Cp(m.author):void 0}:void 0;var a=void 0;_.v("web_get_playlist_id_from_current_endpoint_ks")||
(a=_.rx.getValueByKeys.apply(null,[I].concat(_.jn(p2B))));var O=_.rx.getValueByKeys.apply(null,[I].concat(_.jn(zvK))),N=_.rx.getValueByKeys.apply(null,[I].concat(_.jn(Mfk))),q=!!O||!!N&&!!N.results&&N.results.length>0,w=0;Z&&Z.currentIndex&&Z.localCurrentIndex&&(w=Z.currentIndex-Z.localCurrentIndex);Z&&Z.playlistId&&(a=Z.playlistId);I={rawResponse:I,autoplayRenderer:R,hasRelatedVideoData:q,playingVideo:m,playingVideoId:K,playlistPanelRenderer:Z,playlistId:a,playlistIndex:Z&&Z.currentIndex,relatedVideoArgs:O,
endScreenRenderer:N,playlistIndexOffset:w};a:{R=c.taM;Z=c.yuZ;R.response=I;if(yST(I))R.downloadPlaylistProxy&&R.downloadPlaylistProxy.getPlaylistId()===X2e(I)||(R.downloadPlaylistProxy=new DWV(X2e(I),R.setPlaylistData.bind(R),R.isPlayingOfflineVideo.bind(R))),R.responsePlaylistData=R.downloadPlaylistProxy.getPlaylistData(),R.listId=X2e(I),R.index=0;else if(I.playlistPanelRenderer&&I.playlistId&&I.autoplayRenderer)I.playlistId.startsWith("TLPQ")?R.queueProxy?R.listId===I.playlistId?(R.index=I.playlistIndex,
R.responsePlaylistData=I.playlistPanelRenderer,R.queueProxy.JSC$13199_setCurrentIndex(R.index)):I.playingVideoId&&R.index!==void 0&&Z.clientParams.autoSaveToQueue&&(R.index+=1,R.queueProxy.JSC$13199_setCurrentIndex(R.index),R.queueProxy.addVideos([I.playingVideoId],{},R.index)):(R.queueProxy=new _.DG(R.JSC$13253_playlistNetworkManager,I.playlistId,R.setPlaylistData.bind(R),R.clearQueue.bind(R),_.Rz0(I.playlistPanelRenderer),R.storage),R.responsePlaylistData=I.playlistPanelRenderer,R.listId=I.playlistId,
R.index=I.playlistIndex):(R.index=I.playlistIndex,R.listId!==I.playlistId&&R.clearQueue(),R.responsePlaylistData=I.playlistPanelRenderer,R.listId=I.playlistId,R.playlistProxy=new Lk0(R.JSC$13253_playlistNetworkManager,I.playlistId,R.setPlaylistData.bind(R),_.Rz0(I.playlistPanelRenderer)));else if(!R.queueProxy)R.responsePlaylistData=void 0;else if(I.playingVideoId&&Z.clientParams.autoSaveToQueue){if(R.index===void 0){_.hg(Error("Of"));R.clearQueue();break a}R.queueProxy.videoIds.includes(I.playingVideoId)||
(R.index+=1,R.queueProxy.JSC$13199_setCurrentIndex(R.index),R.queueProxy.addVideos([I.playingVideoId],{},R.index))}_.$L(R,_.Ss(R,R.response.autoplayRenderer))}})};var NTN=function(G,c){c=c===void 0?_.Ah():c;Yh.call(this);this.uu.push(new zI(this.uS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},c));this.uu.push(new VV(this.uS,G,!1,!1));_.v("web_response_commands_chunk_processor")&&this.uu.push(new GI)};
_.u(NTN,Yh);NTN.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.uS.resolve();Yh.prototype.processChunk.call(this,G)};var EO=function(G,c){G=G===void 0?{layer:0}:G;this.e8=!1;this.createScreenConfig=G;this.k0X=c};
_.u(EO,WE);EO.prototype.validate=function(G){return!(this.e8||!G.endpoint)};
EO.prototype.handle=function(G){var c=_.DP(),I,R,Z=(R=_.D((I=G.endpoint)==null?void 0:I.commandMetadata,_.Pd))==null?void 0:R.rootVe;this.k0X&&Z?_.dt(c,Z,this.k0X,this.createScreenConfig):GxN(c,G.endpoint,this.createScreenConfig);this.e8=!0};var Jh=function(G,c){this.e8=!1;this.dh0=G;this.previousVideoId=c};
_.u(Jh,WE);Jh.prototype.validate=function(G){return _.v("kevlar_continue_playback_without_player_response")&&(G=_.D(G.endpoint,_.fR),(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback))?!1:this.dh0.kMp===0};
Jh.prototype.handle=function(G){_.RD.getInstance().triggerAction("yt-stop-old-player",G.data,!0)};var l_0=function(G){G=G===void 0?{layer:0}:G;Yh.call(this);this.uu.push(new Jh(this));this.uu.push(new EO(G));this.uu.push(new gt(G))};
_.u(l_0,Yh);var Wk=function(){WE.apply(this,arguments)};
_.u(Wk,WE);Wk.prototype.validate=function(G){return!!G.data.preconnect};
Wk.prototype.handle=function(G){_.LC("bc");G=_.Q(G.data.preconnect);for(var c=G.next();!c.done;c=G.next())c=c.value,(new Image).src=c};var q80=function(G,c,I,R,Z,K,m){I=I===void 0?{layer:0}:I;K=K===void 0?_.Ah():K;Yh.call(this);if(R)if(Z){Z=K;this.uu.push(new zI(this.uS,c,Z));this.uu.push(new Wk);var a,O;this.uu.push(new VV(this.uS,G,!1,!((a=c.clientParams)==null||!a.fromHistory),(O=c.clientParams)==null?void 0:O.previousVideoId,Z,c.tempData));var N;this.uu.push(new Jh(this,(N=c.clientParams)==null?void 0:N.previousVideoId));var q;(q=c.clientParams)!=null&&q.fromHistory||(I.layer||(I=Object.assign({},I,{layer:0})),this.uu.push(new EO(I,
m)),this.uu.push(new gt(I)))}else this.uu.push(new zI(this.uS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},K)),this.uu.push(new VV(this.uS,G,!1,!1));else this.uu.push(new Jh(this)),this.uu.push(new EO(I)),this.uu.push(new gt(I));_.v("web_response_commands_chunk_processor")&&R&&this.uu.push(new GI)};
_.u(q80,Yh);q80.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.uS.resolve();Yh.prototype.processChunk.call(this,G)};var wc0=function(){this.e8=this.e8=!1};
_.u(wc0,WE);wc0.prototype.validate=function(G){return!this.e8&&!(!G.data.csn||!G.data.rootVe)};
wc0.prototype.handle=function(G){this.e8=!0;_.LR(G.data.csn,G.data.rootVe,3)};var F09=function(G,c,I){I=I===void 0?{layer:0}:I;Yh.call(this);this.uu.push(new VV(this.uS,G));this.uu.push(new EO(I));this.uu.push(new gt(I))};
_.u(F09,Yh);var nRN=function(G,c,I,R,Z){I=I===void 0?{layer:0}:I;R=R===void 0?_.Ah():R;Yh.call(this);var K=!!c&&!!c.clientParams&&!!c.clientParams.miniplayer;K&&this.uu.push(new wc0);this.uu.push(new zI(this.uS,c,R));this.uu.push(new Wk);var m,a;this.uu.push(new VV(this.uS,G,K,!((m=c.clientParams)==null||!m.fromHistory),(a=c.clientParams)==null?void 0:a.previousVideoId,R,c.tempData));var O;this.uu.push(new Jh(this,(O=c.clientParams)==null?void 0:O.previousVideoId));var N;(N=c.clientParams)!=null&&N.fromHistory||
(I.layer||(I=Object.assign({},I,{layer:K?3:0})),this.uu.push(new EO(I,Z)),this.uu.push(new gt(I)));_.v("web_response_commands_chunk_processor")&&this.uu.push(new GI)};
_.u(nRN,Yh);var i1,oRN;i1={};
_.vRK=(i1["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},i1["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},i1["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},i1["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},i1["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},i1["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},i1["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},i1);_.f7=new _.gJ("yt-edu");_.Dcp=function(){this.JSC$13351_eduDisplayedThisLoad_={}};
oRN=function(G){var c=_.Dcp.getInstance();var I=_.DH("kevlar_tooltip_impression_cap");c=I&&parseInt(_.f7.get(G+"-impression")||0,10)>=I||_.f7.get(G+"-dismissed")?!1:(I=_.vRK[G])&&!c.JSC$13351_eduDisplayedThisLoad_[I.setKey||G]&&(I.titleText&&_.mJ(I.titleText)||I.bodyText&&_.mJ(I.bodyText))?!0:!1;if(!c)return null;c=_.vRK[G];if(!c)return null;I=c.bodyText?_.mJ(c.bodyText):void 0;var R=c.titleText?_.mJ(c.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:c.position,popup:{bubbleHintRenderer:{text:R?
_.Cp(R):void 0,detailsText:I?_.Cp(I):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cp(_.mJ("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:G}}]}}}}}}}},{eduImpressionAction:{key:G}}]};
_.To(_.Dcp);var K2r=!1;for(var Uce="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),uz2=[],Bk=6;Bk>=1;Bk--)uz2.push({columnCount:Bk,query:Bk==1?0:Bk*2*107-4+32,className:"grid-"+Bk+"-columns",width:Bk*2*107+"px"});_.js=function(G){this.actionRouter_=G=G===void 0?_.RD.getInstance():G;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.br9(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.br9=function(G){var c=G.documentWidth_-(G.miniGuideVisible_?72:0)-(G.guidePersistentAndVisible_?240:0)-(G.persistentPanelVisible_?400:0);return uz2.find(function(I){return c>I.query})};
_.To(_.js);var kq9=function(){var G=this;this.JSC$13363_keyboardInUse=!1;document.addEventListener("keydown",function(){G.onKeydown()});
document.addEventListener("mousedown",function(){G.JSC$13363_keyboardInUse=!1})},s4N;
kq9.prototype.isKeyBoardInUse=function(){return this.JSC$13363_keyboardInUse};
kq9.prototype.onKeydown=function(){this.JSC$13363_keyboardInUse=!0};var L0e,hh;_.xL=new _.gJ("yt-mentions");_.th=function(){};
L0e=function(G,c){return hh(c,"drag-to-reorder-edu-displayed")};
hh=function(G,c,I,R,Z,K){I=I===void 0?"OPEN_POPUP_POSITION_TOP":I;if(c){if(_.xL.get(c))return;_.xL.set(c,!0,R)}if(Z&&K!==void 0){c=Number(_.xL.get(Z)||0);if(c>=K)return;_.xL.set(Z,c+1)}return[{openPopupAction:{popupType:"HINT",position:I,popup:{bubbleHintRenderer:{detailsText:G,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.To(_.th);var ABV,$c2,S8k;ABV=function(G,c,I,R){this.JSC$13373_taskManager_=G;this.onFulfilled_=typeof c==="function"?c:null;this.onRejected_=typeof I==="function"?I:null;this.JSC$13373_context_=R};
$c2=function(G,c){G.onFulfilled_&&_.SR(G.JSC$13373_taskManager_,function(){G.onFulfilled_.call(G.JSC$13373_context_,c)})};
S8k=function(G,c){G.onRejected_&&_.SR(G.JSC$13373_taskManager_,function(){G.onRejected_.call(G.JSC$13373_context_,c)})};
_.dg=function(G){this.JSC$13376_taskManager_=G;this.callbacks_=[]};
_.dg.prototype.then=function(G,c,I){this.callbacks_.push(new ABV(this.JSC$13376_taskManager_,G,c,I));return this};
_.dg.prototype.onSuccess=function(G){this.callbacks_.forEach(function(c){$c2(c,G)})};
_.dg.prototype.onFailure=function(G){this.callbacks_.forEach(function(c){S8k(c,G)})};
_.dg.prototype.cancel=function(){this.callbacks_.length=0};
k2K(_.dg);_.Obi=null;_.uf=new _.De("ACTIVITY_TOKEN");var pce;_.MB=new _.De("PAGE_REQUEST_TOKEN");pce=new _.De("FETCH_PBJ_TOKEN");_.MaK=function(G){if(G.validatedFragments_.length==0)return null;if(!G.mergedPrefetchedData_){for(var c=[],I=_.Q(G.validatedFragments_),R=I.next();!R.done;R=I.next()){R=_.Q(G.fragmentConfiguration_[R.value].graftedKeys);for(var Z=R.next();!Z.done;Z=R.next())(Z=G.prefetchedData_[Z.value].trackingParams)&&c.push(Z)}G.mergedPrefetchedData_={};Object.assign(G.mergedPrefetchedData_,G.prefetchedData_,{clientSideGrafts:c})}return G.mergedPrefetchedData_};var Va2;_.C7=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Va2=function(G,c,I){if(_.e40(c))return G.prefetchCache_.get(_.NEb(c,I))};_.Hk=new _.De("NAVIGATION_TOKEN");var zWp=function(G){var c=this;var I=I===void 0?whr():I;var R=R===void 0?_.wH().resolve(_.Hk):R;this.onePickCommand=G;this.JSC$13448_playlistNetworkManager=I;this.navigationManager=R;this.videoPickerBuilder=_.l1p("yt-addtoplaylist");_.Cx9(Bqe(rOT(fZV(this.videoPickerBuilder.setTitle(G.modalTitle).setSize(1E3).addView(xqe()).addView(jDK())).addView("youtube"),G.selectButtonLabel)),function(Z){c.handleAction(Z)})};
zWp.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
zWp.prototype.handleAction=function(G){var c=this;if(G&&this.onePickCommand.listId&&G.action==="picked"&&G.docs){var I=[];G.docs.forEach(function(R){I.push({addedVideoId:R.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13448_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,I).then(function(){_.v("playlist_add_video_hard_reload_killswitch")?c.navigationManager.reload():ERA(c.navigationManager)})}};var JBN=function(){if(this.constructor===JBN)throw new TypeError("Uf");};
_.P=JBN.prototype;_.P.dispose=function(){};
_.P.disconnect=function(){};
_.P.reconnect=function(){};
_.P.observe=function(G,c,I){return{element:G,option:I}};
_.P.unobserveByKey=function(){};var F2r=function(G,c){c=c===void 0?0:c;JBN.call(this);this.viewroot=G;this.defaultPrescanHeight=c;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),G?{root:G,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.u(F2r,JBN);_.P=F2r.prototype;_.P.dispose=function(){this.disconnect();this.handlers.clear()};
_.P.disconnect=function(G){this.isConnected=!1;this.pauseObservingUntilReconnect=G===void 0?!1:G;this.observer.disconnect();G=_.Q(this.prescanObservers.values());for(var c=G.next();!c.done;c=G.next())c.value.disconnect()};
_.P.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var G=_.Q(this.handlers),c=G.next();!c.done;c=G.next()){var I=_.Q(c.value);c=I.next().value;var R=I.next().value;I=!1;R=_.Q(R.keys());for(var Z=R.next();!Z.done;Z=R.next())if((Z=Z.value)&&Z.state==="prescan"){I=!0;break}I&&W0p(this,c).observe(c);this.observer.observe(c)}}};
_.P.handleObserveEvent=function(G){G=_.Q(G);for(var c=G.next();!c.done;c=G.next()){c=c.value;var I=this.handlers.get(c.target);if(I){var R=c.isIntersecting;I=_.Q(I);for(var Z=I.next();!Z.done;Z=I.next()){var K=_.Q(Z.value);Z=K.next().value;K=K.next().value;Z&&(Z.state==="visible"&&R||Z.state==="hidden"&&!R)&&(K(c.target,Z.state),Z.calledOnce&&this.unobserveByKey({element:c.target,option:Z}))}}}};
_.P.handlePrescanEvent=function(G){G=_.Q(G);for(var c=G.next();!c.done;c=G.next()){c=c.value;var I=this.handlers.get(c.target);if(I&&c.isIntersecting){I=_.Q(I);for(var R=I.next();!R.done;R=I.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;R&&R.state==="prescan"&&(Z(c.target,R.state),R.calledOnce&&this.unobserveByKey({element:c.target,option:R}))}}}};
_.P.observe=function(G,c,I){var R=(R=this.handlers.get(G))&&R.has(I)?{element:G,option:I}:void 0;if(R)return R;R={element:G,option:I};this.handlers.has(G)||this.handlers.set(G,new Map);var Z=this.handlers.get(G);Z&&!Z.has(I)&&Z.set(I,c);this.pauseObservingUntilReconnect||(I.state==="prescan"&&W0p(this,G).observe(G),this.observer.observe(G));return R};
_.P.unobserveByKey=function(G){var c=this.handlers.get(G.element);if(c&&c.has(G.option)){c.delete(G.option);if(G&&G.option.state==="prescan")for(var I=_.Q(this.prescanObservers.values()),R=I.next();!R.done;R=I.next())R.value.unobserve(G.element);c.size===0&&(this.handlers.delete(G.element),this.observer.unobserve(G.element))}};
var W0p=function(G,c){var I=G.defaultPrescanHeight;c.hasAttribute("prescan-height")&&(c=Number(c.getAttribute("prescan-height")),isNaN(c)||(I=c));if(G.prescanObservers.has(I))return G.prescanObservers.get(I);c="-0.1px -0.1px "+I+"px -0.1px";c=new IntersectionObserver(G.handlePrescanEvent.bind(G),G.viewroot?{root:G.viewroot,rootMargin:c}:{rootMargin:c});G.prescanObservers.set(I,c);return c};var iri=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],f_2=function(){var G,c=this;this.JSC$13465_actionRouter=G=G===void 0?_.RD.getInstance():G;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return c.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return c.visibilityObservedElementHandlerKeys}}},BTN,Xi,xcV;
f_2.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.v("kevlar_use_vimio_behavior")&&_.H1("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=ny0())};
f_2.prototype.dispose=function(){this.visibilityMonitor&&_.BL(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
f_2.prototype.handleVisibilityRefreshed=function(){for(var G=_.Q(this.targetMap.entries()),c=G.next();!c.done;c=G.next()){var I=_.Q(c.value);c=I.next().value;I=I.next().value;_.rBe(this,c,I)}};
_.yV=function(G,c,I){Xi(G,I);var R=_.j40(G,c);R.element=I;G.targetedElements.set(I,c);_.rBe(G,c,R)};
Xi=function(G,c){var I=G.targetedElements.get(c);if(I){var R=G.targetMap.get(I);R&&(delete R.element,G.targetMap.set(I,R));G.targetedElements.delete(c);G.visibilityObserver&&G.visibilityObservedElementHandlerKeys&&(I=G.visibilityObservedElementHandlerKeys.get(c))&&(G.visibilityObserver.unobserveByKey(I),G.visibilityObservedElementHandlerKeys.delete(c))}};
_.rBe=function(G,c,I){var R=I.action,Z=I.element;Z&&R&&(iri.includes(c)||_.H1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||G.visibilityMonitor&&G.visibilityMonitor.isNodeVisible(Z)?xcV(G,c,I):G.visibilityObserver&&(G.visibilityObservedElementHandlerKeys||(G.visibilityObservedElementHandlerKeys=new WeakMap),R=G.visibilityObserver.observe(Z,function(){xcV(G,c,I);G.visibilityObservedElementHandlerKeys.delete(Z)},{calledOnce:!0,
state:"visible"}),G.visibilityObservedElementHandlerKeys.set(Z,R)))};
xcV=function(G,c,I){var R=I.action;(I=I.element)&&R&&(_.Rk(G.JSC$13465_actionRouter,[R],I),G.targetMap.delete(c),G.targetedElements.delete(I),G.triggeredTargets.add(c))};
_.j40=function(G,c){var I=G.targetMap.get(c);I||(I={},G.targetMap.set(c,I));return I};
_.gg=function(){BTN||(BTN=new f_2);return BTN};var ta0=document.createElement("div");ta0.style.touchAction="pan-down";var vyC=ta0.style.touchAction==="pan-down";var hWV,dcN;hWV=function(){this.hammerFn=HMN();this.JSC$13473_screenManager=_.DP();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.qj(83615);_.HE(this.JSC$13473_screenManager,this.ve);DFT()};
_.YL=function(){dcN||(dcN=new hWV);return dcN};
hWV.prototype.registerTouchEvents=function(G,c,I){var R=_.Hy.apply(3,arguments),Z=this.hammerFn(G,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});I&&Z.set({touchAction:I});this.nodeManagerMapping.set(G,Z);var K=
oyB(c);R=_.Q(R);for(var m=R.next();!m.done;m=R.next()){m=m.value;if(m.includes("swipe")||m.includes("pinch")||m.includes("pan"))m.includes("swipe")?Z.get("swipe").set({enable:!0,direction:K,velocity:.2}):m.includes("pinch")?Z.get("pinch").set({enable:!0}):m.includes("pan")&&(Z.get("pan").set({enable:!0,direction:K}),Z.get("swipe").set({enable:!0,direction:K,velocity:.2}),Z.get("swipe").recognizeWith("pan"));Chp(this,G,Z,m)}};
var Chp=function(G,c,I,R){I.on(R,function(Z){if(R.includes("pinch"))G.lastPinchTime=Date.now();else if(R.includes("swipe")&&Date.now()-G.lastPinchTime<400)return;Z.pointerType!=="mouse"&&(Z=R==="doubletap"?{coordinates:Z.center}:R.includes("pan")?Z:R.includes("swipe")?{target:Z.target}:{},c.dispatchEvent(new CustomEvent(R,{bubbles:!0,composed:!0,detail:Z})))})};
hWV.prototype.unregisterTouchEvents=function(G){var c=_.Hy.apply(1,arguments),I=this.nodeManagerMapping.get(G);if(I){c=_.Q(c);for(var R=c.next();!R.done;R=c.next())I.off(R.value);this.nodeManagerMapping.delete(G);G.style.touchAction="unset"}};var HrB=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var UFB=null;_.uu={getLocalStorage:_.J5(function(){try{var G=new Xdp;var c=G.isAvailable()?G:null}catch(I){return null}return c?new _.ui(c):null}),
getSessionStorage:_.J5(function(){var G=new yHb;return G.isAvailable()?new _.ui(G):null})};var Xc9=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},BE8=function(){Xc9.instance||(Xc9.instance=new Xc9);
return Xc9.instance},rpA=function(G){var c=G.networkEvents;
G.networkEvents=[];return _.v("enable_network_monitoring")?c:[]};var yBB;yBB={};_.gRV=wJ("yt-serviceworker-metadata",{objectStores:(yBB.auth={addedAtVersion:1},yBB["resource-manifest-assets"]={addedAtVersion:2},yBB),shared:!0,upgrade:function(G,c){c(1)&&Ga(G,"resource-manifest-assets");c(2)&&Ga(G,"auth")},
version:2});var ApO=self.location.origin+"/";$Fp([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);$Fp([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);$Fp([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);$Fp([/purge_shell=1/]);var Y8K=void 0;Y8K=Y8K===void 0?[]:Y8K;
for(var GTA=[],cF0=_.Q(sPK),IaK=cF0.next();!IaK.done;IaK=cF0.next())GTA.push({key:IaK.value});for(var RaA=_.Q(Y8K),ZLe=RaA.next();!ZLe.done;ZLe=RaA.next())GTA.push(ZLe.value);var K6T,LE=_.Rq==null?void 0:(K6T=_.Rq.performance)==null?void 0:K6T.memory,M4g=!1,jUr={},Eyp={},Ai={},$a=navigator;var Gb=function(G){this.JSC$13518_expiringStorage=new BK(G)};
Gb.prototype.set=function(G,c,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$13518_expiringStorage.set(G,c,I)};
Gb.prototype.get=function(G){return this.JSC$13518_expiringStorage.get(G)};
Gb.prototype.remove=function(G){this.JSC$13518_expiringStorage.remove(G)};var yp8=_.I3(["https://www.youtube.com/",""]),gyi=_.I3(["https://studio.youtube.com/",""]),REU="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",GXr=null,mZ8;var PQe=_.I3(["https://www.youtube.com/iframe_api"]),cR=function(){this.playerResolver_=_.HU();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.EF;this.playbackDurationSeconds_=0},QdA=function(G){var c=function(){return window.YT&&typeof window.YT.ready==="function"};
if(c())return _.IP(window.YT);var I=_.HU(),R=_.$9("SCRIPT");R.onload=R.onreadystatechange=function(){R.readyState&&R.readyState!="loaded"&&R.readyState!="complete"||(R.onload=_.EF,R.onreadystatechange=_.EF,R.onerror=_.EF,c()?I.resolve(window.YT):I.reject(new _.iW("Failed to load the iframe player library","script.onload",R.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
R.onerror=function(Z){R.onload=_.EF;R.onreadystatechange=_.EF;R.onerror=_.EF;I.reject(new _.iW("Failed to load the iframe player library","script.onerror",Z&&Z.target&&Z.target.src))};
_.Ti(R,_.D3(PQe));G.insertBefore(R,G.firstChild);return I.promise},mai=function(G,c,I){var R,Z;
_.T(function(K){switch(K.nextAddress){case 1:return G.playbackEndedCallback_=I,_.s9(K,2),K.yield(QdA(c.parentElement||null),4);case 4:R=K.yieldResult;_.Pl(K,3);break;case 2:return Z=_.M3(K),Z instanceof _.iW&&Z.args&&Z.args[0]=="script.onerror"?_.Ck(Z):_.hg(Z),K.return();case 3:R.ready(function(){return new R.Player(c,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:G.onPlayerReady_.bind(G),onStateChange:G.onPlayerStateChange_.bind(G),
onCueRangeExit:G.onCueRangeExit_.bind(G)}})}),_.Vp(K)}})};
_.P=cR.prototype;_.P.getPlayerPromise=function(){return this.playerPromise_};
_.P.onPlayerReady_=function(G){this.playerResolver_.resolve(G.target)};
_.P.onPlayerStateChange_=function(G){if(G.data==YT.PlayerState.PLAYING){G=G.target;var c=G.getCurrentTime();G.addCueRange("playback",c,c+this.playbackDurationSeconds_)}};
_.P.onCueRangeExit_=function(G){G.data=="playback"&&(G.target.stopVideo(),this.playbackEndedCallback_())};
_.P.stopVideo=function(){this.playerPromise_.then(function(G){G.stopVideo()})};
var aa2=function(G){G.playerVars_&&G.playerPromise_.then(function(c){typeof c.cueVideoByPlayerVars!="function"?_.Ck(new _.iW("vmh: player API not ready","cueVideoByPlayerVars",typeof c.cueVideoByPlayerVars)):c.cueVideoByPlayerVars(G.playerVars_)})};
cR.prototype.playVideo=function(){var G=this;this.playerVars_&&this.playerPromise_.then(function(c){typeof c.loadVideoByPlayerVars!="function"?(c=new _.iW("vmh: player API not ready","loadVideoByPlayerVars",typeof c.loadVideoByPlayerVars),_.hg(c)):c.loadVideoByPlayerVars(G.playerVars_)})};
var Tv2=function(G,c,I,R,Z){c&&(I===void 0&&(I=0),R===void 0&&(R=0),G.playbackDurationSeconds_=R/1E3,G.playerVars_={adformat:"17_8",videoId:c,suggestedQuality:"hd720",startSeconds:I/1E3,player_params:Z})};
cR.prototype.mute=function(){this.playerPromise_.then(function(G){G.mute()})};
cR.prototype.unMute=function(){this.playerPromise_.then(function(G){G.unMute()})};var qET=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var IT;IT=function(){this.tokenJars={};if(this.cookiesEnabled=_.E2()){var G=_.VU.get("CONSISTENCY",void 0);G&&OLN(this,{encryptedTokenJarContents:G})}};
_.FKq=function(){IT.instance||(IT.instance=new IT);return IT.instance};
IT.prototype.handleResponse=function(G,c){if(!c)throw Error("Zf");var I,R;c=((I=c.innerTubeRequest.context)==null?void 0:(R=I.request)==null?void 0:R.consistencyTokenJars)||[];var Z;(G=(Z=G.responseContext)==null?void 0:Z.consistencyTokenJar)&&this.replace(c,G)};
IT.prototype.replace=function(G,c){G=_.Q(G);for(var I=G.next();!I.done;I=G.next())delete this.tokenJars[I.value.encryptedTokenJarContents];OLN(this,c)};
var OLN=function(G,c){if(c.encryptedTokenJarContents&&(G.tokenJars[c.encryptedTokenJarContents]=c,typeof c.expirationSeconds==="string")){var I=Number(c.expirationSeconds);setTimeout(function(){delete G.tokenJars[c.encryptedTokenJarContents]},I*1E3);
G.cookiesEnabled&&_.zu("CONSISTENCY",c.encryptedTokenJarContents,I,void 0,!0)}};var eai,RT;eai=window.location.hostname.split(".").slice(-2).join(".");_.jx=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var G=_.H1("LOCATION_PLAYABILITY_TOKEN");_.H1("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Nvp(this))&&(G=this.localStorage.get("yt-location-playability-token"));G&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0)};
_.jx.getInstance=function(){RT=_.Yc("yt.clientLocationService.instance");RT||(RT=new _.jx,_.lr("yt.clientLocationService.instance",RT));return RT};
_.jx.prototype.setLocationOnInnerTubeContext=function(G){G.client||(G.client={});if(this.mostRecentPosition)G.client.locationInfo||(G.client.locationInfo={}),G.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),G.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),G.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),G.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)G.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.jx.prototype.handleResponse=function(G){var c;G=(c=G.responseContext)==null?void 0:c.locationPlayabilityToken;G!==void 0&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0,_.H1("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Nvp(this))&&this.localStorage.set("yt-location-playability-token",G,15552E3):_.zu("YT_CL",JSON.stringify({loctok:G}),15552E3,eai,!0))};
var Nvp=function(G){return G.localStorage===void 0?new _.gJ("yt-client-location"):G.localStorage};
_.jx.prototype.clearLocationPlayabilityToken=function(G){G==="TVHTML5"?(this.localStorage=Nvp(this))&&this.localStorage.remove("yt-location-playability-token"):_.jPq("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.jx.prototype.getCurrentPositionFromGeolocation=function(){var G=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var c=!1,I=1E4;_.H1("INNERTUBE_CLIENT_NAME")==="MWEB"&&(c=!0,I=15E3);return new Promise(function(R,Z){navigator.geolocation.getCurrentPosition(function(K){G.mostRecentPosition=K;R(K)},function(K){Z(K)},{enableHighAccuracy:c,
maximumAge:0,timeout:I})})};
_.jx.prototype.createUnpluggedLocationInfo=function(G){var c={};G=G.coords;if(G==null?0:G.latitude)c.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)c.longitudeE7=Math.floor(G.longitude*1E7);if(G==null?0:G.accuracy)c.locationRadiusMeters=Math.round(G.accuracy);return c};
_.jx.prototype.createLocationInfo=function(G){var c={};G=G.coords;if(G==null?0:G.latitude)c.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)c.longitudeE7=Math.floor(G.longitude*1E7);return c};var laA=function(G,c){var I=pR();G||(G="unknown");c||(c="unknown");G="MAIN_APP_WEB_PAGE_TYPE_"+G.toUpperCase();G in rti||(G="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");c="MAIN_APP_WEB_REQUEST_TYPE_"+c.toUpperCase();c in jh9||(c="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.ve(I,{mainAppWeb:{pageType:G,requestType:c,isShellLoad:_.XG("IS_SHELL_LOAD",!1)}})},q1i={start:function(){_.ve(zLr(),{mainAppWeb:_.xa()})},
success:function(){_.Do(zLr(),"SUCCESS")},
failure:function(){_.Do(zLr(),"FAILURE")},
cancelled:function(){_.Do(zLr(),"CANCELLED")}};var wx0,F6T,UZq;wx0=_.I3(["/sw.js"]);F6T=_.I3(["/sw.js?0"]);_.ngT=_.D3(wx0);UZq=_.D3(F6T);var vgK=function(){var G=Error.apply(this,arguments);this.message=G.message;"stack"in G&&(this.stack=G.stack)};
_.u(vgK,Error);_.dn.prototype.load=function(G){this.megabloxUrl_=_.H1("YPC_MB_URL");_.My(this.megabloxUrl_,(0,_.WD)(function(){G&&G()},this))};
_.rV0=function(G,c,I,R,Z,K,m,a,O,N,q){_.b0T(O);G.load((0,_.WD)(function(){try{var w=K?K:_.H1("HL"),F=_.H1("SESSION_INDEX");_.NAp("client",function(){plk("59",{helpCenterPath:"/youtube",locale:w,window:window}).JSC$10144_loadChatSupport({authuser:String(F)})})}catch(n){throw ti(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Z&&Z(n),_.hg(n),n;
}Dae(this,c,I,R,Z,K,m,a,O,N,q)},G))};
_.dn.prototype.openFixFlowDialog=function(G,c,I,R){this.load((0,_.WD)(function(){try{ogK(this,_.Yc("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(G).withIntegratorCallback(c).load(I,R)}catch(Z){throw _.hg(Z),Z;}},this))};
var ogK=function(G,c,I,R){var Z=c.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.v("enable_window_constrained_buy_flow_dialog")&&(Z=Z.usingPopupStyle(_.Yc("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));R&&(Z=Z.usingCloseCallback(R));c.bootstrap.fromPaymentsUrl(G.megabloxUrl_);G=c.bootstrap.asMashupMode(Z);I=I?I:_.H1("HL");G.usingGaiaIndex(_.H1("SESSION_INDEX")).usingLocale(I).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.v("enable_google_payments_buyflow_material2_style_web")?
G.usingStyle(":m2;pc=#444;ac=#065fd4"):G.usingStyle(":md;pc=#444;ac=#065fd4");return G},Dae=function(G,c,I,R,Z,K,m,a,O,N,q){try{var w=_.Yc("payments.business.integration");
if(!w)throw new vgK("payments.business.integration is undefined");var F=w.standaloneContextAuthId.forUserId(),n=ogK(G,w,K,function(){sX0(!1);a&&a()});
m&&n.usingServerAnalyticsEventHandler(m);var U=n.inStandaloneContext(F).buyFlow(function(k){if(k&&(!k.integratorData||k.integratorData===""||k.error))if(k.error!=null)if(String(k.error)==="-1")_.kXr(O);else{var p=String(k.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";ti(10,q,p,k.debugCode);_.hi(p,O,k.debugCode);p=new _.iW("PAYMENT_ERROR_MESSAGE::"+k.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+k.internalErrorDetails);
_.hg(p)}else ti(10,q,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.hi("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",O,"EMPTY_INTEGRATOR_DATA"),_.hg(Error("bg"));I&&(sX0(!1),I(k))}).withEncryptedParameters(c);
N&&U.withClientParameters(sqi(_.ivi(N)));U.load(function(){ti(24,q);_.pC("ttc",void 0,"commerce_transaction");kD("commerce_transaction");R&&(R(),sX0(!0))},function(k){if(k==null?0:k.debugCode)var p=k==null?void 0:k.debugCode;
else if(!k||(k==null?0:k.debugCode))p="EMPTY_LOAD_FAILURE_ERROR",_.hg(Error(p));else{p="EMPTY_LOAD_FAILURE_DEBUG_CODE";var M=new _.iW("LOAD_FAILURE:"+k.message," DEBUG_CODE:"+p);_.hg(M)}ti(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",p);_.hi("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",O,p);_.hg(k);Z&&Z(k)})}catch(k){throw k instanceof vgK&&(ti(10,q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Z&&Z(k)),_.hg(k),k;
}};var UaT;UaT=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.i6B=function(G,c){c=c===void 0?!1:c;G=UaT.test(G)?_.Vx(G):null;!c&&window.payments||!G?(G=_.HU(),c=G.promise,G.resolve()):c=_.nd9(G,{attributes:{"data-payments-main":"",id:"payment-lib"}});return c};var usA;usA=_.I3(["//www.googletagmanager.com/gtm.js?id=",""]);_.Zs=function(G,c){_.P8(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:c}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.H1("GL")}),c=_.$9("SCRIPT"),c.async=!0,_.Ti(c,_.D3(usA,G)),c.id="gtm",G=document.getElementsByTagName("script"),G.length==0?document.head.appendChild(c):(G=G[0],G.parentNode.insertBefore(c,G)))};
_.Kx=function(G){if(G=JSON.parse(G))window.dataLayer=window.dataLayer||[],window.dataLayer.push(G)};var bLA,kTV;bLA=_.I3(["https://clients2.google.com/gr/gr_sync.js"]);_.JV0=function(){};
_.JV0.prototype.init=function(){if(kTV()){var G=_.HU();G.resolve();return G.promise}return _.nd9(_.D3(bLA)).then(function(){if(!kTV())throw Error("cg");},function(){throw Error("dg");
})};
_.WEf=function(){if(!kTV())return"";var G=window.google.gr;G.init({async:{schedule:"sync"},merchantId:"youtube"});G.start();G=G.finish();return G==null?"":G};
kTV=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.J=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.u(_.J,PolymerFakeBaseClassWithoutHtml);_.D4=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.u(_.D4,PolymerFakeBaseClassWithoutHtml);var LKr=window.ShadyDOM;var Ogp,acq,NCA,lcb,wWO,FyB,PR,PB;Ogp=_.v("enable_shadydom_free_scoped_query_methods");acq=_.v("enable_shadydom_free_scoped_node_methods");NCA=_.v("enable_shadydom_free_scoped_readonly_properties_batch_one");lcb=_.v("enable_shadydom_free_parent_node");wWO=_.v("enable_shadydom_free_children");FyB=_.v("enable_shadydom_free_last_child");PR=window.ShadyDOM;_.Om=PR&&PR.noPatch&&PR.wrap?PR.wrap:PR?function(G){return PR.patch(G)}:function(G){return G};
PB=function(G){if(G instanceof ShadowRoot)this.host=(0,_.Om)(G.host),this.root=G;else if(G.$$){this.host=(0,_.Om)(G);var c;this.root=(c=G.root)!=null?c:this.host}else if(G.polymerController){this.host=(0,_.Om)(G);var I;this.root=(I=this.host.shadowRoot)!=null?I:this.host}else this.root=this.host=(0,_.Om)(G)};
TCb();eBA();nBq();vBp();qS0();var sde={querySelector:function(G,c){c=BXA(c,gn(G));return _.v("sunnydom_native_scoped_query_selectors")?$ZC(G,c):$ZC(_.Ya(G),c)},
querySelectorAll:function(G,c){c=BXA(c,gn(G));return _.v("sunnydom_native_scoped_query_selectors")?Array.from(SE0(G,c)):SE0(_.Ya(G),c)}},L69={appendChild:function(G,c){var I=gn(G),R=_.yJ(c);
return _.Q7p(_.Ya(G),I?_.Z4(c,I,R):c)},
cloneNode:function(G,c){var I=_.yJ(G);G=_.Ya(G);c=XN(G).prototype.cloneNode.call(G,c);return I?KH(c,I):c},
contains:function(G,c){var I=gn(G),R=_.yJ(c);return I!==R?!1:m60(G,c)},
insertBefore:function(G,c,I){var R=gn(G),Z=_.yJ(c);G=_.Ya(G);c=R?_.Z4(c,R,Z):c;return XN(G).prototype.insertBefore.call(G,c,I)},
removeChild:function(G,c){var I=gn(G);G=_.Ya(G);c=I?KH(c,I):c;return XN(G).prototype.removeChild.call(G,c)},
replaceChild:function(G,c,I){var R=gn(G),Z=_.yJ(c);c=R?_.Z4(c,R,Z):Z?KH(c,Z):c;I=R?KH(I,R):I;G=_.Ya(G);return XN(G).prototype.replaceChild.call(G,c,I)},
getRootNode:function(G,c){c=c===void 0?{composed:!0}:c;var I;if(((I=c)!=null?I:{}).composed)G=Pjr(G);else{c=G;for(G=MSC(G);G;)c=G,G=jXq(G);G=c}return G}},oBb=NCA?{firstChild:GUi,
nextSibling:yfA,previousSibling:YEO,firstElementChild:cZg,lastElementChild:RB8,nextElementSibling:Xtr,previousElementSibling:gv0,childNodes:ZgC}:{};lcb&&(oBb.parentNode=H0U);wWO&&(oBb.children=Kyb);FyB&&(oBb.lastChild=IcU);Ogp&&D6T(sde);acq&&D6T(L69);U6q();var u9r=function(G){this.node=G instanceof ShadowRoot?G.host:G};
bgf();kUU();var AZr=new WeakMap;var SSB=Symbol("Bd");var EBq=new Set(["tap","track","down","up"]),JZb=_.v("pbcm_fi_query_decorators");var Q5=function(){return _.D4.apply(this,arguments)||this};
_.u(Q5,_.D4);_.P=Q5.prototype;_.P.getState=function(){return this.store.getState()};
_.P.dispatch=function(G){this.store.dispatch(G)};
_.P.beforeRegister=function(){if(this&&typeof this==="object"){var G;var c=!!this.useSignals||!((G=this.polymerController)==null||!G.useSignals)}else c=!1;if(!c&&this.properties)for(c=_.Q(Object.keys(this.properties)),G=c.next();!G.done;G=c.next()){var I=G.value;G=this.properties[I];if(G.selector){if(G.computed)throw Error("kg");I=["reduxPropertiesRecomputeTrigger",'"'+I+'"'].concat(_.jn(G.selectorArgs||[])).join(",");G.computed="recomputeReduxSelector("+I+")"}}};
_.P.attached=function(){var G=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){G.reduxPropertiesRecomputeTrigger++}));
_.v("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.P.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.P.recomputeReduxSelector=function(G,c){var I=_.Hy.apply(2,arguments),R=this.properties[c].selector;if(!R)throw Error("ig`"+c);return R.apply(null,[this.store.getState()].concat(_.jn(I)))};
_.P.select=function(G){var c=_.Hy.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return G.apply(null,[this.store.getState()].concat(_.jn(c)))};
_.Nh.Object.defineProperties(Q5.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
Q5.prototype.recomputeReduxSelector=Q5.prototype.recomputeReduxSelector;_.r([_.E(),_.h("design:type",Number)],Q5.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.r([_.Um()],Q5);var m$=[],BCi={},z1=function(){return qh.apply(this,arguments)||this};
_.u(z1,qh);z1.prototype._addPropertyEffect=function(G,c,I){if(c==="__observeEffects"&&I){var R,Z=(R=I.info.method)!=null?R:I.info.methodName;if(Z){var K=this[Z];this[Z]=function(){m$.push(Z);try{K==null||K.apply(this,arguments)}finally{m$.pop()}}}}_.Hw._addPropertyEffect.apply(this,[G,
c,I])};
z1.prototype._setPendingProperty=function(G,c,I){if(m$.length){var R=m$[m$.length-1],Z;(Z=BCi[this.is])!=null&&Z.has(R)||(rZB(this.is,R),_.x7("polymerPropertyChangedInObserver",{componentName:this.is,observerName:R}))}return _.Hw._setPendingProperty.apply(this,[G,c,I])};
_.r([Omp()],z1);var j7O=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),tt0,kW={};_.v("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=kW);var Ac=function(){return _.D4.apply(this,arguments)||this};
_.u(Ac,_.D4);Ac.prototype._setUnmanagedPropertyToNode=function(G,c,I){G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!0);if(I!==G[c]||typeof I==="object")G[c]=I;G.is&&G.polymerController&&G.polymerController!==G&&sm(G.is,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!1)};
_.r([_.Um()],Ac);x60()&&(cb.prototype._setUnmanagedPropertyToNode=(new Ac)._setUnmanagedPropertyToNode);_.KtT={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(G){},set polymerController(G){}}]};var V1=function(){var G=qh.apply(this,arguments)||this;G.json=function(){};
return G};
_.u(V1,qh);V1.prototype.equals=function(G,c){return G===c};
V1.prototype.isEmpty=function(G){var c;(c=!G)||(c=_.xp(G)&&G.length===0);return c};
_.r([Omp()],V1);var AF0=function(G){G=OqT(G);Ne.call(this,G)};
_.u(AF0,Ne);AF0.prototype.addProvider=function(G){G=G.key?G:OqT([G])[0];var c=this.keyIdToIndex.get(G.key.id);if(c){if(XWO(G,this.providers[c]))throw Error("lg`"+G.key.displayName);}else Ne.prototype.addProvider.call(this,G)};
var $ae=new AF0([]);var S19=!1;var IO0={};S19||(cD0(),S19=!0);
IO0.InjectBehavior={initializeInjection:function(){var G=this.provide;try{if((G=G!=null?G:[])&&G.length>0)for(var c=OqT(G),I=_.Q(c),R=I.next();!R.done;R=I.next())$ae.addProvider(R.value);var Z=new Set;yZB(this.behaviors||[],Z);c={};for(var K=_.Q(Z),m=K.next();!m.done;m=K.next()){var a=m.value;a.inject&&Object.assign(c,a.inject)}this.inject&&Object.assign(c,this.inject);for(var O=_.Q(Object.keys(c)),N=O.next();!N.done;N=O.next()){var q=N.value,w=c[q];try{this[q]=$ae.resolve(w)}catch(F){throw F;}}}catch(F){throw Error(F.message);
}}};var ZPO;var PoB=/\bclass\b/.test(function(){}.toString()),aOi=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var pxk=function(G){this.wasDefined=!0;Array.isArray(G)||G instanceof Array?(this.JSC$13676_getImpl=G[0],this.JSC$13676_setImpl=G[1]):this.JSC$13676_getImpl=G};
_.P=pxk.prototype;_.P.getWithPath=function(G){return eIA(this.JSC$13676_getImpl(),G)};
_.P.setWithPath=function(G,c){var I=this;if(G.length)throw Error("mg");if(!this.JSC$13676_setImpl)throw Error("ng");pt(function(){I.JSC$13676_setImpl(c)})};
_.P.notifyPath=function(){throw Error("og");};
_.P.notifySplices=function(){throw Error("pg");};
_.P.getChangeRecordSignal=function(G,c){var I=this;if(G.length)throw Error("qg");return function(){var R=I.getWithPath(G);return{path:c!=null?c:"",base:R,value:R}}};
_.P.getSplicesSignal=function(){throw Error("rg");};
_.P.getPathMutationSignal=function(){throw Error("sg");};
_.P.pop=function(){throw Error("tg");};
_.P.push=function(){throw Error("ug");};
_.P.splice=function(){throw Error("vg");};
_.P.unshift=function(){throw Error("wg");};var aT=function(G){var c=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(G)||G instanceof Array?(this.JSC$13681_getImpl=G[0],this.JSC$13681_setImpl=G[1]):this.JSC$13681_getImpl=G;this.wasDefined=!1;_.ue(function(){c.wasDefined=c.JSC$13681_getImpl()!==void 0})};
aT.prototype.getWithPath=function(G){return eIA(this.JSC$13681_getImpl(),G)};
aT.prototype.setWithPath=function(G,c){var I=this;if(G[G.length-1]!=="*"&&G[G.length-1]!=="splices"){var R=_.ue(function(){return I.getWithPath([])});
if(G.length===0){if(!this.JSC$13681_setImpl)throw Error("xg");if(R===c)return;this.wasDefined||(this.wasDefined=c!==void 0);pt(function(){I.JSC$13681_setImpl(c)})}else{for(var Z=0;Z<G.length-1;Z++){if(!R)return;
R=R[G[Z]]}Z=G[G.length-1];R&&(R[Z]=c);this.wasDefined||(this.wasDefined=G.length>1||c!==void 0)}M9V(this,G,{pathComponents:G,value:c})}};
aT.prototype.notifyPath=function(G,c){G.length===0?c&&this.setWithPath(G,c.value):M9V(this,G,{pathComponents:G,value:c==null?void 0:c.value,fallbackWhenUndefined:c==null?void 0:c.value})};
var M9V=function(G,c,I,R){if(G.setMutationSignal){var Z=++G.mutationIndex,K=[G.observedPath],m=G.observedPath,a;c.length===0&&(a=m);for(var O=0;O<c.length;O++){var N=m.subPaths[c[O]];if(!N)break;K.push(N);m=N;O===c.length-1&&(a=N)}for(c=!1;K.length;)m=K.shift(),m.data={index:Z,mutation:I,spliceMutationIndex:R},c||(c=m===a),c&&K.push.apply(K,_.jn(Object.values(m.subPaths)));pt(function(){G.setMutationSignal(Z)})}};
aT.prototype.notifySplices=function(G,c){var I=this,R=_.ue(function(){return I.getWithPath(G)}),Z=[].concat(_.jn(G),["splices"]);
M9V(this,Z,{pathComponents:Z,value:{indexSplices:c}});if(R==null?0:R.length)c=this.mutationIndex,Z=[].concat(_.jn(G),["length"]),M9V(this,Z,{pathComponents:Z,value:R.length},c)};
var V9e=function(G,c,I,R,Z,K){G.notifySplices(I,[{index:R,addedCount:Z,removed:K,object:c,type:"splice"}])},zae=function(G,c){G=G.observedPath;
for(var I=0;I<c.length;I++){var R=c[I],Z=G.subPaths[R];Z||(Z={pathComponents:c.slice(0,I+1),subPaths:{}},G.subPaths[R]=Z);G=Z}},JF0=function(G,c,I){zae(G,c);
if(!G.getMutationSignal){var R=_.Q(_.ks(G.mutationIndex,void 0,"sNBMCd"));G.getMutationSignal=R.next().value;G.setMutationSignal=R.next().value}var Z=G.getMutationSignal;return _.SE(function(){Z();return I(EgV(G,c))},void 0,"zvsXEd")};
aT.prototype.getChangeRecordSignal=function(G,c){var I=this,R=this.mutationIndex,Z;return JF0(this,G,function(K){if(K&&K.index>R){var m=K.mutation;R=K.index;Z=void 0}K=_.ue(function(){return I.getWithPath(G)});
if(m){var a=m.pathComponents[m.pathComponents.length-1],O=[].concat(_.jn(m.pathComponents));if(a==="splices"||a==="length")return{base:K,path:(c?[c].concat(_.jn(O)):O).join("."),value:m.value};var N=G.length>O.length?G:O,q;return{base:K!=null?K:m.fallbackWhenUndefined,path:(c?[c].concat(_.jn(N)):N).join("."),value:(q=_.ue(function(){return I.getWithPath(N)}))!=null?q:m.fallbackWhenUndefined}}Z||(Z={base:K,
path:(c?[c].concat(_.jn(G)):G).join("."),value:K});return Z})};
aT.prototype.getSplicesSignal=function(G){var c=this.mutationIndex,I;return JF0(this,G,function(R){if(R&&R.index>c&&R.spliceMutationIndex!==c){var Z=R.mutation;c=R.index;I=void 0}return Z&&Z.pathComponents[Z.pathComponents.length-1]==="splices"?I=R=Z.value:I})};
aT.prototype.getPathMutationSignal=function(G){var c=this;zae(this,G);if(!this.getMutationSignal){var I=_.Q(_.ks(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=I.next().value;this.setMutationSignal=I.next().value}var R=this.getMutationSignal,Z=this.mutationIndex,K;return _.SE(function(){R();var m=EgV(c,G);if(m&&m.index>Z&&m.mutation&&NRi(m.mutation.pathComponents,G)){var a=m.mutation;Z=m.index}if(!K||Z!==K.index){var O,N;m=(N=_.ue(function(){return c.getWithPath(G)}))!=null?N:(O=a)==null?
void 0:O.fallbackWhenUndefined;
K={index:Z,value:m}}return K},void 0,"RXYC9b")};
var EgV=function(G,c){G=G.observedPath;c=_.Q(c);for(var I=c.next();!I.done;I=c.next())G=G.subPaths[I.value];return G.data};
aT.prototype.pop=function(G){var c=this,I=_.ue(function(){return c.getWithPath(G)});
if(!(I instanceof Array))throw Error("yg");var R=I.length>0,Z=I.pop();R&&V9e(this,I,G,I.length,0,[Z]);return Z};
aT.prototype.push=function(G){var c=_.Hy.apply(1,arguments),I=this,R=_.ue(function(){return I.getWithPath(G)});
if(!(R instanceof Array))throw Error("zg");var Z=R.length,K=R.push.apply(R,_.jn(c));c.length&&V9e(this,R,G,Z,c.length,[]);return K};
aT.prototype.splice=function(G,c,I){var R=_.Hy.apply(3,arguments),Z=this,K=_.ue(function(){return Z.getWithPath(G)});
if(!(K instanceof Array))throw Error("Ag");c<0?c=K.length-Math.floor(-c):c&&(c=Math.floor(c));var m=K.splice.apply(K,[c,I].concat(_.jn(R)));(R.length||m.length)&&V9e(this,K,G,c,R.length,m);return m};
aT.prototype.unshift=function(G){var c=_.Hy.apply(1,arguments),I=this,R=_.ue(function(){return I.getWithPath(G)});
if(!(R instanceof Array))throw Error("Bg");var Z=R.unshift.apply(R,_.jn(c));c.length&&V9e(this,R,G,0,c.length,[]);return Z};var Tb=function(G,c,I){this.model=G;this.unknownSignalResolver=c;this.options=I;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];c=_.Q(UJf());G=c.next().value;c=c.next().value;this.owner=G;this.disposeImpl=c};
Tb.prototype.dispose=function(){if(!this.isDisposed){for(var G=_.Q(this.childSignalProxies),c=G.next();!c.done;c=G.next())c.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var W6N=function(G,c){G=_.Ty(G.owner);try{c()}finally{_.Ty(G)}};
Tb.prototype.effect=function(G){W6N(this,function(){_.jE(G,"h")})};
var iL2=function(G,c){G.options!=null||(G.options={});var I;(I=G.options).immutableProps!=null||(I.immutableProps=new Set);G.options.immutableProps.add(c)},CoU=function(G,c){c=""+c;
fae(G,c);var I,R;if((I=G.options)==null?0:(R=I.immutableProps)==null?0:R.has(c))return!0;var Z;if((Z=G.model.__signalCache)==null?0:Z.has(c))I=G.model.__signalCache.get(c),Array.isArray(I)&&iL2(G,c);var K,m,a;return(a=(K=G.options)==null?void 0:(m=K.immutableProps)==null?void 0:m.has(c))!=null?a:!1},BvN=function(G,c){var I;
G.unknownSignalResolver&&(I=G.unknownSignalResolver(c));var R,Z;((R=G.options)==null?0:(Z=R.immutableProps)==null?0:Z.has(c))?I!=null||(I=new pxk(_.ks(G.model[c],void 0,"By5iP"))):I!=null||(I=new aT(_.ks(G.model[c],void 0,"CXghNc")));var K=G.model.hostElement;Object.defineProperty(G.model,c,{get:function(){d6b(K,c);return I.getWithPath([])},
set:function(m){LH(K,c);G.setWithPath([c],m)},
configurable:!0});return I},fae=function(G,c){var I,R,Z;
((I=G.model.__signalCache)==null||!I.has(c))&&((R=G.options)==null?0:(Z=R.externalSignalProps)==null?0:Z.has(c))&&G.model[c]},fH=function(G,c){c=""+c;
var I=G.signalCache[c];if(I!==void 0)return I;I=!1;fae(G,c);var R;if((R=G.model.__signalCache)==null?0:R.has(c))if(I=G.model.__signalCache.get(c),Array.isArray(I))I=!0,iL2(G,c);else return G.signalCache[c]=G.model.__signalCache.get(c).signal,G.signalCache[c];var Z,K;R=(K=(Z=G.options)==null?void 0:Z.reactivityMode)!=null?K:0;var m,a;if(!((m=G.options)==null?0:(a=m.reactiveProps)==null?0:a.has(c))&&!I&&R===1)throw Error("Cg`"+c);Z=I?rFN(G,c):BvN(G,c);return G.signalCache[c]=Z},rFN=function(G,c){var I=
Object.getOwnPropertyDescriptor(G.model.constructor.prototype,c),R=function(){return G.model[c]};
return new pxk(I&&I.get&&!I.set?R:[R,function(Z){G.model[c]=Z}])};
Tb.prototype.getWithPath=function(G){var c=_.Q(G);G=c.next().value;c=Qg(c);d6b(this.model.hostElement,""+G);return fH(this,G).getWithPath(c)};
Tb.prototype.setWithPath=function(G,c){if(G.length){LH(this.model.hostElement,G.join("."));var I=_.Q(G);G=I.next().value;I=Qg(I);fH(this,G).setWithPath(I,c)}};
Tb.prototype.getPathMutationSignal=function(G){var c=_.Q(G);G=c.next().value;c=Qg(c);return fH(this,G).getPathMutationSignal(c)};
Tb.prototype.notifyPath=function(G,c){var I=_.Q(G);G=I.next().value;I=Qg(I);fH(this,G).notifyPath(I,c)};
var jd2=function(G,c){if(c.type==="literal")return function(){return{rootWasDefined:!0,value:c.value}};
var I=WB(c.path),R=_.Q(I),Z=R.next().value;R=Qg(R);var K,m;if(c.type==="path"&&(I.length===1||((K=G.options)==null?0:(m=K.immutableProps)==null?0:m.has(Z))))return function(){var w=G.getWithPath(I.slice(0,1));w=eIA(w,I.slice(1));return{rootWasDefined:fH(G,I[0]).wasDefined,value:w}};
var a=fH(G,Z);if(c.type==="path"){var O=a.getPathMutationSignal(R);return function(){var w,F=(w=O())==null?void 0:w.value;return{rootWasDefined:a.wasDefined,value:F}}}if(c.type==="splices"){var N=a.getSplicesSignal(R);
return function(){var w=N();return{rootWasDefined:a.wasDefined,value:w}}}var q=a.getChangeRecordSignal(R,""+Z);
return function(){var w=q();return{rootWasDefined:a.wasDefined,value:w}}},vj0=function(G,c,I){var R=I.map(function(a){return jd2(G,a)}),Z=I.length===0,K=[],m=I.length!==1||I[0].type!=="path"?!1:!0;
G.effect(function(){for(var a=R.length,O=[],N=!!K.length,q=0;q<a;q++){var w=R[q](),F=w.rootWasDefined;w=w.value;Z||(Z=F);O[q]=w;m&&(O[q+a]=N?K[q]:O[q],K[q]=w)}Z&&Ct(G.owner,function(){return void c.apply(null,_.jn(O))})})},lOC=function(G,c,I,R,Z){var K=fH(G,c);
Z!==void 0&&K.setWithPath([],Z);vj0(G,function(){var m=_.Hy.apply(0,arguments);LH(G.model.hostElement,c,!0);K.setWithPath([],I.apply(null,_.jn(m)))},R)};
Tb.prototype.arrayPush=function(G){var c=_.Hy.apply(1,arguments),I=_.Q(G),R=I.next().value;I=Qg(I);R=fH(this,R);return R.push.apply(R,[I].concat(_.jn(c)))};
Tb.prototype.arraySplice=function(G,c,I){var R=_.Hy.apply(3,arguments),Z=_.Q(G),K=Z.next().value;Z=Qg(Z);K=fH(this,K);return K.splice.apply(K,[Z,c,I].concat(_.jn(R)))};
Tb.prototype.arrayUnshift=function(G){var c=_.Hy.apply(1,arguments),I=_.Q(G),R=I.next().value;I=Qg(I);R=fH(this,R);return R.unshift.apply(R,[I].concat(_.jn(c)))};
Tb.prototype.notifySplices=function(G,c){var I=_.Q(G);G=I.next().value;I=Qg(I);fH(this,G).notifySplices(I,c)};var xae=!0,t9T=!1,Hog=!1,haK=!1,daN=0;haK=!1;daN=0;xae=!0;t9T=Hog=!1;var ADq=/([^\s]+?)\(([\s\S]*)\)/,kxB=/\.([^.]+)$/,SDg=/\\,/g,uMr=/&comma;/g,bPg=/\\(.)/g,$JU=[],sib={"*":"wildcard",splices:"splices"};var BRf=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"),JDr=/[A-Z]/,CQ0=["class","hidden","id","on-dom-change"],jir=new Set([].concat(_.jn(CQ0),
["if","notify-dom-change","restamp"])),xJ8=new Set([].concat(_.jn(CQ0),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),twC=new Set(["restamp"]);var j4r=new Set(["className","id"]);var X3g=Symbol(),Rvr=window;var Ooq=window;var n_O=0,lKb=0,BB=[],FkO=0,NWB=!1,w2p=document.createTextNode("");(new window.MutationObserver(qvq)).observe(w2p,{characterData:!0});var jD=new Map,rD=0,HLK=function(G){this.mappedHandleId=G},DW8=function(G,c,I,R){this.mappedHandleId=G;
var Z=this;this.mappedHandleId=G;this.callback=c;this.waitTime=I;this.schedulerPriority=R;this.handleId=_.dJ.addJob(function(){Z.callback();jD.delete(Z.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.u(DW8,HLK);DW8.prototype.cancel=function(){_.dJ.cancelJob(this.handleId);jD.delete(this.mappedHandleId)};
var o_B=function(G,c){this.mappedHandleId=G;var I=this;this.mappedHandleId=G;this.callback=c;this.handleId=v_i(function(){I.callback();jD.delete(I.mappedHandleId)})};
_.u(o_B,HLK);o_B.prototype.cancel=function(){var G=this.handleId-lKb;G<0||BB.length<=G||(BB[G]=null);jD.delete(this.mappedHandleId)};var khg=function(){};
khg.prototype.cancel=function(){this.jobHandle!==void 0&&(UWB(this.jobHandle),this.jobHandle=void 0)};
khg.prototype.run=function(G,c,I){var R=this;this.cancel();this.callback=G;this.jobHandle=_.xW(function(){G();R.callback=void 0},c,I)};
khg.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var uSA=new WeakMap;var XxN=D9(function(G){for(var c=G,I=0;I<3;I++)c=Object.getPrototypeOf(c);delete c.prototype.connectedCallback;var R=function(){return G.apply(this,arguments)||this};
_.u(R,G);R.prototype._attachDom=function(Z){if(!Z)return null;var K=(0,_.Om)(this.hostElement);K.attachShadow({mode:"open",shadyUpgradeFragment:Z});K.shadowRoot.appendChild(Z);return K.shadowRoot};
R.prototype._takeAttributes=function(){for(var Z=this.hostElement.attributes,K=0;K<Z.length;K++){var m=Z[K],a=void 0,O=void 0;(O=(a=this).__attributeReaction)==null||O.call(a,m.name,null,m.value)}};
R.prototype._readyClients=function(){G.prototype._readyClients.call(this);this.root=this};
R.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);G.prototype.connectedCallback.call(this)};
_.Nh.Object.defineProperties(R,{template:{configurable:!0,enumerable:!0,get:function(){return R.prototype._template}}});
return R}),yF0=D9(function(G){var c=function(){return G.apply(this,arguments)||this};
_.u(c,G);c.prototype.created=function(){if(this.__notifyEffects)for(var I=_.Q(Object.values(this.__notifyEffects)),R=I.next();!R.done;R=I.next()){R=_.Q(R.value);for(var Z=R.next();!Z.done;Z=R.next())Z.value.fn=$Wi}if(this.__reflectEffects)for(I=_.Q(Object.values(this.__reflectEffects)),R=I.next();!R.done;R=I.next())for(R=_.Q(R.value),Z=R.next();!Z.done;Z=R.next())Z.value.fn=Svr};
c.prototype._addEventListenerToNode=function(I,R,Z){I=hc(I);ha(I,R,Z)||G.prototype._addEventListenerToNode.call(this,I,R,Z)};
c.prototype._removeEventListenerFromNode=function(I,R,Z){I=hc(I);dZ(I,R,Z)||G.prototype._removeEventListenerFromNode.call(this,I,R,Z)};
c.prototype._propertiesChanged=function(I,R,Z){if(this.__dataToNotify&&this.__notifyEffects)for(var K=_.Q(Object.keys(this.__dataToNotify)),m=K.next();!m.done;m=K.next()){m=m.value;var a=AST(m);this.__notifyEffects[a]||delete this.__dataToNotify[m]}else this.__dataToNotify=null;G.prototype._propertiesChanged.call(this,I,R,Z)};
c.prototype.fire=function(I,R,Z){R=R===void 0?{}:R;var K;return _.Xl(hc((K=Z==null?void 0:Z.node)!=null?K:this),I,R,Z)};
c.prototype._ensureAttribute=function(I,R){var Z=hc(this);Z.hasAttribute(I)||iO(Z,R,I)};
c.prototype.isLightDescendant=function(I){var R=hc(this);return hc(R)!==I&&_.Q1(R).contains(I)&&_.Q1(R).getRootNode()===_.Q1(I).getRootNode()};
return c});
_.X3.ready=function(){var G;((G=this.hostElement)!=null?G:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var c;((c=this.hostElement)!=null?c:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Zu._subscribeIronResize=function(G){var c;((c=G.hostElement)!=null?c:G).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Zu._unsubscribeIronResize=function(G){var c;((c=G.hostElement)!=null?c:G).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var VfU=[Array,Boolean,Date,Number,Object,String],CH=function(G,c,I,R){this.polySiInfo=G;this.polySiParams=c;this.polySiContext=I;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;R||this instanceof HTMLElement&&(R=this);if(!R)throw Error("Jg");this.allowedProps=c.allowedProps;this.hostElement=R;this.is=G.is;this.upgradeDisabled=!!c.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");G=new Set(c.reactiveSchemas.filter(function(Z){return Z.type!==
"observe"}).map(function(Z){return Z.propertyKey}));
this.signalProxy=new Tb(this,void 0,{reactiveProps:G,reactivityMode:c.reactivityMode});this.__dataHasAccessor={};c=_.Q(c.reactiveSchemas);for(G=c.next();!G.done;G=c.next())G=G.value,G.type==="signal"&&(this.__dataHasAccessor[G.propertyKey]=!0);this.upgradeDisabled||ggp(this)};
CH.prototype.getExtraMethodsToForward=function(){return[]};
var ggp=function(G){G.polySiContext.didRegister||(G.registered(),G.polySiContext.didRegister=!0);G.polySiContext.finalizedTemplate||(G.polySiContext.finalizedTemplate={},G.polySiParams.templateGetter&&(G.polySiContext.finalizedTemplate.processedTemplate=evA(G.polySiParams.templateGetter,G.polySiParams.is)));Y1i(G);var c=G.hostElement;c.loggingStatus!=null||(c.loggingStatus={});c.loggingStatus.isInitializing=!0;_.ue(function(){return void G.created()});
c.loggingStatus.isInitializing=!1;G.isPolySiElementConnected&&GG2(G)},GG2=function(G){G.didCallReady||(_.ue(function(){return void G.ready()}),G.didCallReady=!0);
G.isAttached=!0;G.attached()};
_.P=CH.prototype;_.P.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||GG2(this)};
_.P.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.P.attributeChangedCallback=function(G,c,I){if(this.upgradeDisabled)G==="disable-upgrade"&&I===null&&(this.upgradeDisabled=!1,ggp(this));else if(c!==I){var R=_.mY(G),Z=this.polySiContext.typesForSignals[R];if(Z&&(!this.reflecting||_.v("polysi_attribute_changed_serializing_killswitch"))){switch(Z){case Object:try{var K=JSON.parse(I)}catch(a){K=I}break;case Array:try{K=JSON.parse(I)}catch(a){K=null}break;case Date:K=isNaN(I)?String(I):Number(I);K=new Date(K);break;case Boolean:K=I!==null;break;case Number:K=
Number(I);break;default:K=I}this[R]=K}R=_.Q(this.polySiParams.behaviors);for(Z=R.next();!Z.done;Z=R.next())K=void 0,(K=Z.value.attributeChanged)==null||K.call(this,G,c,I);var m;(m=this.attributeChanged)==null||m.call(this,G,c,I)}};
_.P.attributeChangedCallbackWrapper=function(G,c,I){this.attributeChangedCallback(G,c,I)};
_.P.setPropertiesFromInitialAttributeValues=function(){for(var G=0;G<this.hostElement.attributes.length;G++){var c=this.hostElement.attributes[G];(c.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(c.name))&&this.attributeChangedCallback(c.name,null,c.value)}};
_.P.created=function(){this.provide=this.polySiParams.provide;var G;(G=this.initializeInjection)==null||G.call(this);G=_.Q(this.polySiParams.reactiveSchemas);for(var c=G.next();!c.done;c=G.next())c=c.value,c.type==="signal"&&(this.mutablePropNames.add(c.propertyKey),fH(this.signalProxy,c.propertyKey));Mff(this,this.polySiInfo,this.polySiParams.behaviors);G=_.Q(this.polySiParams.reactiveSchemas);for(c=G.next();!c.done;c=G.next())c=c.value,c.type==="signal"&&c.value!==void 0&&(this.signalProxy.model[c.propertyKey]=
typeof c.value==="function"?c.value.call(this):c.value);if(this.polySiParams.signalProperties)for(G=_.Q(this.polySiParams.signalProperties),c=G.next();!c.done;c=G.next()){c=c.value;var I=void 0;((I=this.__signalCache)==null?0:I.has(c))||(this.signalProxy.model[c]=void 0)}haK||c2i(this);p2O(this);G=_.Q(this.polySiParams.behaviors);for(c=G.next();!c.done;c=G.next())I=void 0,(I=c.value.created)==null||I.call(this);var R;(R=this.polySiInfo.created)==null||R.call(this)};
_.P.registered=function(){var G=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var c=Object.getPrototypeOf(this);c.addReactiveSchema=function(a){G.polySiParams.reactiveSchemas.push(a)};
for(var I=_.Q(this.polySiParams.behaviors),R=I.next();!R.done;R=I.next()){var Z=void 0;(Z=R.value.beforeRegister)==null||Z.call(c)}var K;(K=this.polySiInfo.beforeRegister)==null||K.call(c);c.addReactiveSchema=E_r;I=_.Q(this.polySiParams.behaviors);for(R=I.next();!R.done;R=I.next())Z=void 0,(Z=R.value.registered)==null||Z.call(c);var m;(m=this.polySiInfo.registered)==null||m.call(c)};
_.P.ready=function(){var G;(G=this.beforeReady)==null||G.call(this);haK&&c2i(this);var c;if(G=(c=this.polySiContext.finalizedTemplate)==null?void 0:c.processedTemplate){G=TWp(G.template,G.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:G.hasInsertionPoint,thisCtx:this});c=G.nodesById;G=G.root;var I=this.hostElement;var R=R===void 0?!1:R;I=(0,_.Om)(I);if(!I.attachShadow)throw Error("Hd");if(!I.shadowRoot||R)I.attachShadow({mode:"open",shadyUpgradeFragment:G}),I.shadowRoot.appendChild(G);
this.root=I.shadowRoot;this.$=c}IlB(this);R=_.Q(this.polySiParams.behaviors);for(c=R.next();!c.done;c=R.next())G=void 0,(G=c.value.ready)==null||G.call(this);var Z;(Z=this.polySiInfo.ready)==null||Z.call(this)};
_.P.attached=function(){for(var G=_.Q(this.polySiParams.behaviors),c=G.next();!c.done;c=G.next()){var I=void 0;(I=c.value.attached)==null||I.call(this)}var R;(R=this.polySiInfo.attached)==null||R.call(this)};
_.P.detached=function(){for(var G=_.Q(this.polySiParams.behaviors),c=G.next();!c.done;c=G.next()){var I=void 0;(I=c.value.detached)==null||I.call(this)}var R;(R=this.polySiInfo.detached)==null||R.call(this)};
var Y1i=function(G){for(var c=_.Q(G.polySiParams.behaviors),I=c.next();!I.done;I=c.next())if(I=I.value,I.listeners)for(var R in I.listeners)aKr(G,G.hostElement,R,I.listeners[R]);if(G.polySiInfo.listeners)for(var Z in G.polySiInfo.listeners)aKr(G,G.hostElement,Z,G.polySiInfo.listeners[Z])},aKr=function(G,c,I,R,Z){G=OPp(G,R,Z);
ha(c,I,G)||c.addEventListener(I,G);return G},c2i=function(G){for(var c=_.Q(G.polySiParams.reactiveSchemas),I=c.next();!I.done;I=c.next())I=I.value,I.type==="compute"||I.type==="computeWithMethod"?qDg(G.signalProxy,I,G):I.type==="redux"?nji(G.signalProxy,I,G.store):I.type==="signal"&&I.readOnly&&FtB(G.signalProxy,I)},IlB=function(G){for(var c=_.Q(G.polySiParams.reactiveSchemas),I=c.next(),R={};!I.done;R={schema$jscomp$12:void 0},I=c.next())R.schema$jscomp$12=I.value,R.schema$jscomp$12.type==="notify"?
DJ0(G.signalProxy,R.schema$jscomp$12,G.hostElement):R.schema$jscomp$12.type==="observe"?oj0(G.signalProxy,R.schema$jscomp$12,G):R.schema$jscomp$12.type==="reflect"&&G.signalProxy.effect(function(K){return function(){var m=G.signalProxy.getWithPath([K.schema$jscomp$12.propertyKey]);
G.reflecting=!0;MwB(G.hostElement,K.schema$jscomp$12.propertyKey,m,!0);G.reflecting=!1}}(R));
if(G.reflectedAttributes)for(c=_.Q(Object.entries(G.reflectedAttributes)),R=c.next(),I={};!R.done;I={key$jscomp$938:void 0,value$jscomp$10233:void 0},R=c.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;I.key$jscomp$938=R;I.value$jscomp$10233=Z;G.signalProxy.effect(function(K){return function(){G.reflecting=!0;MwB(G.hostElement,K.key$jscomp$938,(0,K.value$jscomp$10233)(),!0);G.reflecting=!1}}(I))}};
_.P=CH.prototype;_.P._setPendingProperty=function(G,c){this.set(G,c);return!1};
_.P._enableProperties=function(){};
_.P._setPendingPropertyOrPath=function(G,c){this.notifyPath(G,c);return!1};
_.P._addPropertyEffect=function(){};
_.P._stampTemplate=function(){throw Error("Kg");};
_.P.fire=function(G,c,I){c=c===void 0?{}:c;I=I===void 0?{}:I;var R,Z,K={bubbles:(R=I.bubbles)!=null?R:!0,cancelable:!!I.cancelable,composed:(Z=I.composed)!=null?Z:!0},m;return _.Xl(JSb((m=I.node)!=null?m:this.hostElement),G,c,K)};
_.P.get=function(G,c){var I=WB(G);return c?eIA(c,I):G==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(I)};
_.P.linkPaths=function(){};
_.P.listen=function(G,c,I){G=JSb(G);this.boundListeners!=null||(this.boundListeners=new WeakMap);var R=this.boundListeners.get(G);R||(R={},this.boundListeners.set(G,R));var Z=c+I;R[Z]||(R[Z]=aKr(this,G,c,I))};
_.P.notifyPath=function(G,c){this.signalProxy.notifyPath(WB(G),arguments.length===2?{value:c}:void 0)};
_.P.canNotifyPath=function(G){return this.mutablePropNames.has(G)&&!CoU(this.signalProxy,G)};
_.P.notifySplices=function(G,c){this.signalProxy.notifySplices(WB(G),c)};
_.P.pop=function(G){var c=this.signalProxy;G=WB(G);var I=_.Q(G);G=I.next().value;I=Qg(I);return fH(c,G).pop(I)};
_.P.push=function(G){var c=_.Hy.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[WB(G)].concat(_.jn(c)))};
_.P.set=function(G,c,I){if(I)throw Error("Lg");G==="hidden"?this.hostElement.hidden=!!c:this.signalProxy.setWithPath(WB(G),c)};
_.P.setProperties=function(G){G=_.Q(Object.entries(G));for(var c=G.next();!c.done;c=G.next()){var I=_.Q(c.value);c=I.next().value;I=I.next().value;this[c]=I}};
_.P.splice=function(G,c,I){var R=_.Hy.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[WB(G),c,I].concat(_.jn(R)))};
_.P.unlinkPaths=function(){};
_.P.unlisten=function(G,c,I){G=JSb(G);if(this.boundListeners){var R=this.boundListeners.get(G);if(R){I=c+I;var Z=R[I];Z&&(dZ(G,c,Z)||G.removeEventListener(c,Z),delete R[I])}}};
_.P.unshift=function(G){var c=_.Hy.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[WB(G)].concat(_.jn(c)))};
_.Nh.Object.defineProperties(CH.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 CSO=[Array,Boolean,Date,Number,Object,String];var ySB=!1;var Or=function(){var G=HTMLElement.apply(this,arguments)||this;G.restamp=!1;G.notifyDomChange=!1;G.JSC$13789_didCallConnected=!1;G.JSC$13789_renderDebouncer=null;G.disableTemplateUpdateSignalImpl=HB()?void 0:_.ks(!1,void 0,"Ofhkwb");var c;G.getDisableTemplateUpdate=(c=G.disableTemplateUpdateSignalImpl)==null?void 0:c[0];var I;G.setDisableTemplateUpdate=(I=G.disableTemplateUpdateSignalImpl)==null?void 0:I[1];return G};
_.u(Or,HTMLElement);var Rce=function(G){G.conditionSignalImpl!=null||(G.conditionSignalImpl=new aT(_.ks(!1,void 0,"gE52Fb")));return G.conditionSignalImpl};
_.P=Or.prototype;_.P.showHideChildren=function(G){Zle(this,G,this.if)};
_.P.attributeChangedCallback=function(G,c,I){if(this.JSC$13789_didCallConnected)throw Error("Pg`"+G);G==="notify-dom-change"?this.notifyDomChange=I!==null:G==="restamp"&&(this.restamp=I!==null)};
_.P.debounceRender=function(){this.JSC$13789_renderDebouncer=_.pq(this.JSC$13789_renderDebouncer,HN,this.JSC$13789_renderImpl.bind(this));_.M7(this.JSC$13789_renderDebouncer)};
_.P.disconnectedCallback=function(){var G=(0,_.Om)(this).parentNode;(!G||G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in G&&!G.host)&&KFe(this)};
_.P.connectedCallback=function(){var G=this;this.JSC$13789_didCallConnected=!0;xae?g_B():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.v("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){Rce(G).getWithPath([]);G.debounceRender()})};
_.P.render=function(){_.Jk()};
_.P.JSC$13789_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var G=this.if,c=!1;if(G){this.hasInstance()||(PZT(this),c=!0);a:{var I=(0,_.Om)(this).parentNode;if(this.hasInstance()){var R=this.instance.children;if((R==null?0:R.length)&&(0,_.Om)(this).previousSibling!==R[R.length-1])for(var Z=0;Z<R.length;Z++)(0,_.Om)(I).insertBefore(R[Z],this)}else{if(!I){I=!1;break a}Qm9(this,I)}I=!0}if(!I)return}else this.restamp&&KFe(this);Zle(this,!1,G);G&&!c&&PZT(this);t9T&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.hasInstance=function(){return!!this.instance};
var Qm9=function(G,c){var I=G.parentSignalProxy;if(HB()){var R=_.Q(_.ks(!0,void 0,"dkzufd"));var Z=R.next().value;R=R.next().value;I=G.parentSignalProxy}else{var K;var m=new Tb((K=mMe(G))!=null?K:{},function(O){var N=fH(G.parentSignalProxy,O).getChangeRecordSignal([]);O=_.ks(void 0,void 0,"iG8Uwe");var q=new aT(O);m.effect(function(){if(G.getDisableTemplateUpdate&&!G.getDisableTemplateUpdate()){var w=N();q.notifyPath(WB(w.path),{value:w.value})}});
return q});
G.parentSignalProxy.childSignalProxies.push(m);var a=I=m}I=TWp(G.templateInfo,G.templateInfo.nodeInfoList,I,{eventListenerHost:G.eventListenerHost,hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,enabledSignal:HB()?Z:void 0,getModel:function(){return mMe(G)}}).root;
G.instance={root:I,children:[],hidden:!1,signalProxy:a,getTemplateUpdatesEnabled:Z,setTemplateUpdatesEnabled:R};a=_.Q(I.childNodes);for(Z=a.next();!Z.done;Z=a.next())G.instance.children.push(Z.value);(0,_.Om)(c).insertBefore(G.instance.root,G)},mMe=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var c={},I;
for(I in G)G.hasOwnProperty(I)&&(c[I]=G[I]);return c}},KFe=function(G){if(G.instance){var c=G.instance.children;
if(c.length){var I=(0,_.Om)(c[0]).parentNode;if(I){I=(0,_.Om)(I);for(var R=0;R<c.length;R++)I.removeChild(c[R])}}HB()?G.instance.setTemplateUpdatesEnabled(!1):G.instance.signalProxy.dispose();G.instance=void 0}},Zle=function(G,c,I){c=c||!I;
G.instance&&G.instance.hidden!==c&&(G.instance.hidden=c,X2b(c,G.instance.children))},PZT=function(G){if(HB()){var c=G.instance;
c&&Ct(G.parentSignalProxy.owner,function(){return!c.getTemplateUpdatesEnabled()})&&c.setTemplateUpdatesEnabled(!0)}else G.setDisableTemplateUpdate(!1)};
_.Nh.Object.defineProperties(Or.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var G=this;return Ct(this.parentSignalProxy.owner,function(){return Rce(G).getWithPath([])})},
set:function(G){G||(HB()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));Rce(this).setWithPath([],!!G)}}});
_.Nh.Object.defineProperties(Or,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Or);var al2=[],eP=function(){var G=HTMLElement.apply(this,arguments)||this;G.as="item";G.indexAs="index";G.itemsIndexAs="itemsIndex";G.targetFramerate=20;G.notifyDomChange=!1;G.isDetached=!1;G.JSC$13796_renderDebouncer=null;G.instances=[];G.chunkingId=null;G.chunkCount=null;G.shouldMeasureChunk=!1;G.shouldContinueChunking=!1;G.renderStartTime=null;G.JSC$13796_didCallConnected=!1;return G};
_.u(eP,HTMLElement);var TVT=function(G){G.itemSignalImpl!=null||(G.itemSignalImpl=new aT(_.ks(al2,void 0,"YBrqgf")));return G.itemSignalImpl},Ol9=function(G,c){Array.isArray(c)||(c=al2);
TVT(G).setWithPath([],c)};
_.P=eP.prototype;_.P.showHideChildren=function(G){for(var c=_.Q(this.instances),I=c.next();!I.done;I=c.next())X2b(G,I.value.children)};
_.P.notifyPath=function(G,c){G=WB(G);G[0]==="items"&&(G.length===1?Ol9(this,c):TVT(this).setWithPath(G.slice(1),c))};
_.P.canNotifyPath=function(G){return G==="items"};
_.P.attributeChangedCallback=function(G,c,I){if(this.JSC$13796_didCallConnected)throw Error("Qg`"+G);G==="as"?this.as=I:G==="index-as"?this.indexAs=I:G==="items-index-as"?this.itemsIndexAs=I:G==="initial-count"?this.initialCount=Number(I):G==="notify-dom-change"?this.notifyDomChange=I!==null:G==="target-framerate"&&(this.targetFramerate=Number(I))};
_.P.disconnectedCallback=function(){this.isDetached=!0;for(var G=0;G<this.instances.length;G++)ecB(this,G);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.P.connectedCallback=function(){var G=this,c=TVT(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Z=c(),K=WB(Z.path);if(K[0]===void 0||K[0]==="splices"||K[0]==="length")G.debounceRender();else{var m=K[0];if(m=G.instances[typeof m==="string"?Math.floor(Number(m)):m])K=[G.as].concat(_.jn(K.slice(1))),m.signalProxy.notifyPath(K,Z)}});
this.JSC$13796_didCallConnected=!0;xae?g_B():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var I=(0,_.Om)((0,_.Om)(this).parentNode),R=0;R<this.instances.length;R++)I.insertBefore(this.instances[R].root,this);this.chunkingId&&this.render()}};
_.P.debounceRender=function(){this.JSC$13796_renderDebouncer=_.pq(this.JSC$13796_renderDebouncer,HN,this.JSC$13796_renderImpl.bind(this));_.M7(this.JSC$13796_renderDebouncer)};
_.P.render=function(){this.debounceRender();_.Jk()};
_.P.JSC$13796_renderImpl=function(){var G=this;if(!this.parentSignalProxy.isDisposed){var c=this.items,I=NVp(this,c.length);lle(this,c,I);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){G.chunkingId=null;if(G.shouldMeasureChunk){var R=performance.now()-G.renderStartTime;G.chunkCount=Math.round(Math.ceil(1E3/G.targetFramerate)/R*G.chunkCount)||1}G.shouldContinueChunking&&G.debounceRender()}));
t9T&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var NVp=function(G,c){var I=c,R=G.instances.length;if(G.initialCount){if(G.chunkCount){var Z=Math.min(Math.max(c-R,0),G.chunkCount);I=Math.min(R+Z,c)}else I=Math.min(c,G.initialCount),Z=Math.max(I-R,0),G.chunkCount=Z||1;G.shouldMeasureChunk=Z===G.chunkCount;G.shouldContinueChunking=I<c;G.renderStartTime=performance.now()}return I},lle=function(G,c,I){for(var R=0;R<I;R++){var Z=G.instances[R],K=c[R];
Z?(Z.signalProxy.setWithPath([G.as],K),Z.signalProxy.setWithPath([G.indexAs],R)):qIK(G,K,R)}for(c=G.instances.length-1;c>=R;c--)I=G,Z=c,ecB(I,Z),_.Q(I.instances.splice(Z,1)).next().value.signalProxy.dispose()},ecB=function(G,c){G=G.instances[c];
c=(0,_.Om)(G.root);for(var I=0;I<G.children.length;I++)c.appendChild(G.children[I])},qIK=function(G,c,I){var R={};
c=Object.assign({},wV0(G),(R[G.as]=c,R[G.indexAs]=I,R[G.itemsIndexAs]=I,R));var Z=new Tb(c,function(m){if(m!==G.as&&m!==G.indexAs){if(m===G.itemsIndexAs)return fH(Z,G.indexAs);var a=fH(G.parentSignalProxy,m).getChangeRecordSignal([]);m=_.ks(void 0,void 0,"T21Pqc");var O=new aT(m);Z.effect(function(){var N=a();O.notifyPath(WB(N.path),{value:N.value})});
return O}});
G.parentSignalProxy.childSignalProxies.push(Z);R=TWp(G.templateInfo,G.templateInfo.nodeInfoList,Z,{eventListenerHost:G.eventListenerHost,getModel:function(){var m={};return Object.assign({},wV0(G),(m[G.as]=Z.model[G.as],m[G.indexAs]=Z.model[G.indexAs],m[G.itemsIndexAs]=Z.model[G.indexAs],m))},
hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,methodInvocationRequirement:daN,enabledSignal:G.stampingEnabled}).root;c={root:R,children:[],signalProxy:Z};R=_.Q(R.childNodes);for(var K=R.next();!K.done;K=R.next())c.children.push(K.value);R=(R=G.instances[I+1])?R.children[0]:G;(0,_.Om)((0,_.Om)(G).parentNode).insertBefore(c.root,R);G.instances[I]=c},wV0=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var c={},I;
for(I in G)G.hasOwnProperty(I)&&(c[I]=G[I]);return c}};
eP.prototype.itemForElement=function(G){var c=this,I=this.instances.find(function(R){return R.children.includes(G)});
if(I)return Ct(this.parentSignalProxy.owner,function(){return I.signalProxy.getWithPath([c.as])})};
eP.prototype.indexForElement=function(G){var c=this.instances.findIndex(function(I){return I.children.includes(G)});
return c>=0?c:void 0};
_.Nh.Object.defineProperties(eP.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var G=this;return Ct(this.parentSignalProxy.owner,function(){return TVT(G).getWithPath([])})},
set:function(G){Ol9(this,G)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.Nh.Object.defineProperties(eP,{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",eP);var FFk,nf2;_.Ni=new _.De("STATE_STORE_TOKEN");FFk=new _.De("SELECT_TOKEN");nf2=new _.De("DISPATCH_TOKEN");var Zrg={getSelectFn:function(){var G;return(G=_.wH().resolve(_.qR(FFk)))!=null?G:YvA},
getDispatchFn:function(){var G;return(G=_.wH().resolve(_.qR(nf2)))!=null?G:_.XZ().dispatch.bind(_.XZ())},
getAppStore:function(){return _.wH().resolve(_.Ni)}},GqC,RWb=!1;var OrT=function(){};var mcb=void 0;var vfN=function(){};
vfN.prototype.hasAttribute=function(G){if(G==="dir")return!1;if(G==="disable-upgrade"){var c,I;return(I=(c=this.hostElement)==null?void 0:c.hasAttribute("disable-upgrade"))!=null?I:!1}throw Error("Rg`"+G);};
vfN.prototype.attributeChangedCallbackWrapper=function(G,c,I){if(G==="disable-upgrade"&&this.__isUpgradeDisabled&&I===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var R;((R=this.hostElement)!=null?R:this).isConnected&&this.connectedCallback()}else c===I||this.__isReflecting||this.attributeChangedCallback(G,c,I)};
vfN.prototype.getExtraMethodsToForward=function(){for(var G=this,c=[],I=_.Q(DMe),R=I.next(),Z={};!R.done;Z={tagName$jscomp$67:void 0,name$jscomp$630:void 0},R=I.next())Z.name$jscomp$630=R.value,R=void 0,Z.name$jscomp$630==="_setPendingProperty"?(Z.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),R=function(K){return function(m,a,O){sm(K.tagName$jscomp$67,m,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return G._setPendingProperty(m,a,O)}}(Z)):R=function(K){return function(){return G[K.name$jscomp$630].apply(G,
_.jn(_.Hy.apply(0,arguments)))}}(Z),c.push([Z.name$jscomp$630,
R]);return c};
for(var l_r=yF0(XxN((0,_.hk)(vfN))),nRA=["disabled","disable-upgrade"],ofA=(0,_.hk)(function(){}),UMK=new Set(Object.getOwnPropertyNames(ofA.prototype)),uzT=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.jn(UMK))),Dci=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),DMe=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),uyk=new Set([].concat(_.jn(Dci),_.jn(DMe),_.jn(UMK))),bl0=_.Q(uyk),kGT=bl0.next();!kGT.done;kGT=bl0.next())j7O.add(kGT.value);var UcU={created:function(){p2O(this);this.initializeInjection()}};var Ma0=!1,ZP=window.ShadyDOM,BTA=["appendChild","insertBefore","removeChild","replaceChild"],f_T=[Node];ZP&&f_T.push(ZP.Wrapper);var Chi,HrO,gR8={};var Kd,Rag=new WeakMap,GTg=new Set;var mar=new Set("context didCallReady is info params signalProxy".split(" ")),TvT="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),OLA="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var sm2=pF({entities:KCi}),LFk=new Xf(sm2);var A2e=function(){return _.D4.apply(this,arguments)||this};
_.u(A2e,_.D4);_.Nh.Object.defineProperties(A2e.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return LFk}}});
_.r([_.Um()],A2e);_.ll=[Q5.prototype,A2e.prototype];_.qi={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var G=this,c={};setTimeout(function(){var I;return _.Xl((I=G.hostElement)!=null?I:G,"yt-live-chat-add-tooltip-target",c)},0);
this.handler_=c.handler},
detached:function(){if(this.handler_){var G;this.handler_.removeElementFromSupportingTooltips((G=this.hostElement)!=null?G:this)}this.handler_=null}}};_.ek=new _.De("ICON_MANAGER_TOKEN");var $MV=[48,20,18,16,15,13,12],pxf=new Map,L6C=new Set,bLg=new Set,sdU=new Set,usg=new Set,kT8=new Set,$ab=new Promise(function(G){var c=!1,I=!1,R=!1,Z=[],K=function(m){if("detail"in m)if(m=m.detail,m.name==="yt-icons")AFr(m),c=!0;else if(m.name==="yt-sys-icons")AFr(m),I=!0;else{var a;((a=m.name)==null?0:a.includes("yt-sys-icons"))&&m.size!==24&&(AFr(m,!0),Z.push(m.size),Z.length===$MV.length&&(R=!0))}c&&I&&R&&(window.removeEventListener("iron-iconset-added",K),G())};
window.addEventListener("iron-iconset-added",K)}),SI0=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"]]);_.wm={};_.wm.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.HY,computeHref_:function(G,c){c=c===void 0?!1:c;if(!G||G.commandExecutorCommand)return null;var I=vZC(G,c);return c||I!==null?I?_.v("enable_polymer_resin")?_.dS(I).toString():I:null:(_.Ck(new _.iW("computeHref was null",this.is,G)),null)},
computeOptionalHref_:function(G){return this.computeHref_(G,!0)},
computeNofollow_:function(G){return G?TPr(G)?"nofollow":null:null},
computeIcon_:function(G){return G&&G.iconType?_.On(G.iconType):""},
resolveCommand:function(G,c,I){c=c===void 0?{}:c;return _.qC(G,this.hostElement,c,I===void 0?!1:I)}};var M6i,FX;_.pV9={};M6i=null;
FX={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_=ny0(this.viewroot));_.xW(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var G=this;this.unobserve_();if(_.v("kevlar_vimio_use_shared_monitor"))FP(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 c=[];this.visibilityOptionVisible_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=c}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){M98(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var G=_.H6(this.parentNode,function(I){var R,Z=(R=I.polymerController)!=null?R:I;return!!Z.getVisibilityObserverForChild&&Z.getVisibilityObserverForChild()},!0);
if(G){var c;this.localVisibilityObserver_=((c=G.polymerController)!=null?c:G).getVisibilityObserverForChild()}else M6i||(M6i=ny0()),this.localVisibilityObserver_=M6i;return this.localVisibilityObserver_},visibilityCallback:function(G){G?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.v("kevlar_use_vimio_behavior")||(FX={});FX&&!_.v("kevlar_use_vimio_behavior")&&(delete FX.attached,delete FX.detached);_.pV9.YtVisibilityObserverBehavior=[FX];var V6e={};V6e.YtVisualElementBehavior=[_.pV9.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.v("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.v("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var G=this.getScreenLayer&&this.getScreenLayer(),c=this.getVisibilityLogger();c&&c.reportShown(this,void 0,G)}},
onHidden:function(){if(_.v("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.v("kevlar_vimio_use_shared_monitor")){var G=this.getScreenLayer&&this.getScreenLayer(),c=this.getVisibilityLogger();c&&c.reportHidden(this,void 0,G)}},
getVisibilityLogger:function(){return _.v("kevlar_use_vimio_behavior")?_.nd():null},
shouldSkipLogging:function(){if(_.H1("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var G=this.getParentRenderer&&this.getParentRenderer();if(!G)return!1;var c,I=(c=G.polymerController)!=null?c:G;if(!I.data)return!1;G=this.data.trackingParams;G=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:G;var R;c=(R=I.data)==null?void 0:R.trackingParams;var Z,K;c=((Z=I.data)==null?0:Z.loggingDirectives)?(K=I.data)==null?void 0:K.loggingDirectives.trackingParams:c;return G&&c&&G===
c}}];var iLT=new Map,sn;var C7C=function(G){this.layer=G},ow=function(G){return G.layer!==void 0?G.layer:G.parent?ow(G.parent):G.layer=0};var t9B;_.X={};t9B=0;_.X.YtRendererBehavior=[_.wm.YtComponentBehavior,V6e.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_:_.v("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var G,c;(c=(G=this.monitorScrollElement)!=null?G:this.hostElement)==null||c.removeEventListener("scroll",_.lO(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();JFr(this.hostElement);Xi(_.gg(),this.hostElement);hH.delete(this.hostElement)},
registerRenderer:function(G){var c;((c=G.polymerController)!=null?c:G).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(G),this.markDirty())},
unregisterRenderer_:function(G){this.useVimio_||(this.childCache_.delete(G),this.markDirty())},
attached:function(){var G=this,c=this.getParentRenderer();if(c){var I,R,Z;(R=(I=(Z=c.polymerController)!=null?Z:c).registerRenderer)==null||R.call(I,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var K,m;(m=(K=this.monitorScrollElement)!=null?K:this.hostElement)==null||m.addEventListener("scroll",_.lO(this,this.onScroll))}_.dJ.addJob(function(){faU(G.hostElement)},8);
I=new C7C(this.screenLayer||void 0);(c=hH.get(c))&&c.layerNode&&(I.parent=c.layerNode);c={};shr(this.hostElement,(c.isRenderer=!0,c.layerNode=I,c[H3q]=this.data,c))},
getParentRenderer:function(){for(var G=this.hostElement.parentNode,c,I;G&&((c=hH.get(G))==null||!c.isRenderer)&&!((I=G.polymerController)!=null?I:G).isRenderer_;)G=G.parentNode||G.host;return G},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.v("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.XG("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.v("debug_web_ve_data")&&this.data.trackingParams){var G="";try{G=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(I){_.hg(I)}if(G){var c=iCb(G,1);c!==void 0&&(this.hostElement.dataset.veIndex=String(c));G=iCb(G,2);
G!==void 0&&(this.hostElement.dataset.ve=String(G))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.v("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.kC(this.data.loggingDirectives.trackingParams)),this.visualElement=_.vI(_.DP(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var G=this.data.targetId;_.yV(_.gg(),G,this.hostElement)}else Xi(_.gg(),this.hostElement)},
onScroll:function(){var G=Date.now();G-this.lastHandledScroll_<50||(this.lastHandledScroll_=G,this.markDirty())},
markDirty:function(){_.v("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():ha0(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var G=this.getParentRenderer();if(G&&(G=hH.get(G))&&G.layerNode)return ow(G.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.jn(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++)this.sendImpression(this.data.impressionEndpoints[G]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(G){G.clickTrackingParams&&delete G.clickTrackingParams;var c,I;(G==null?0:(c=G.commandMetadata)==null?0:(I=c.webCommandMetadata)==null?0:I.sendPost)?_.Gs(this.hostElement,[G,{impression:!0}]):_.cd(this.hostElement,[G],this.hostElement)},
logExplicitClick:function(G){var c=_.k0(this.getScreenLayer());if(c){var I,R=(I=G.polymerController)!=null?I:G;G=R.visualElement;R=R.trackingParams||R.clickTrackingParams;!G&&R&&(G=_.kC(R));G&&_.jW(c,G)}}}];var zc9={},nx=function(){return _.D4.apply(this,arguments)||this};
_.u(nx,_.D4);nx.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
nx.prototype.onPdgItemBehaviorClick=nx.prototype.onPdgItemBehaviorClick;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],nx.prototype,"data",void 0);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],nx.prototype,"onPdgItemBehaviorClick",null);_.r([_.Um()],nx);zc9.YtPdgLiveChatItemBehavior=[nx.prototype,_.X.YtRendererBehavior];var EfK;var J2K;_.vR={};_.vR.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Ds=function(){var G=qh.apply(this,arguments)||this;G.switchTemplateAtRegistration=!1;return G};
_.u(Ds,qh);Ds.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||XxA(this),_.scO(this,"doRender"),this.doRender())};
Ds.prototype.debounceRender=function(){this.templatingFn&&_.tc(this,"doRender",this.doRender)};
Ds.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.hg(Error("ah"))};
Ds.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.r([Omp()],Ds);var WFA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,oT={},GGT=(oT[1]={filterString:null,isUnwrappable:null,unwrap:null},oT[2]={filterString:function(G,c,I){return lm(I)},
isUnwrappable:function(G){return G instanceof YN},
unwrap:function(G){return cM(G)}},oT[3]={filterString:function(G,c,I){return WFA.test(I)?I:hz.toString()},
isUnwrappable:function(G){return fG(G)},
unwrap:function(G){return _.By(G)}},oT[4]={filterString:function(){return hz.toString()},
isUnwrappable:function(G){return G instanceof MN},
unwrap:function(G){return _.z6(G).toString()}},oT[5]={filterString:function(G,c,I){return I},
isUnwrappable:function(G){return typeof G==="string"},
unwrap:function(G){return G.toString()}},oT[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(G){return G instanceof _.PM},
unwrap:function(G){return mz(G)}},oT[8]={filterString:function(G,c,I){I=String(I).toLowerCase();
return fq0(G,c,I)?I:"zClosurez"},
isUnwrappable:null,unwrap:null},oT[10]={filterString:null,isUnwrappable:null,unwrap:null},oT);Nq[c1["default"]]=IlO;var RcU=[];(function(){var G=OG;OG=function(c){G==null||G(c);Sk(function(){for(var I=0;I<c.length;I++)ZlU(c[I])})}})();var ile=function(){var G=_.D4.apply(this,arguments)||this;G.hasUnmounted=!1;return G};
_.u(ile,_.D4);_.P=ile.prototype;_.P.beforeRegister=function(){var G=this.doIdomRender;this.templatingFn?_.hg(Error("$g")):(this.templatingFn=G,this.switchTemplateAtRegistration=!0,Y1r(this))};
_.P.attached=function(){};
_.P.detached=function(){ZlU(this.hostElement)};
_.P.renderIdom=function(){throw Error("ch");};
_.P.doIdomRender=function(){var G=this;MRA(this.hostElement,function(){G.renderIdom()})};
_.r([_.Um()],ile);var flB=[Ds.prototype,ile.prototype];var BVi,r22=function(){return BVi!==void 0?BVi:BVi=document.createElement("template")};
document.head.appendChild(r22().content);var jmT;var xMi,t60=function(){return xMi!==void 0?xMi:xMi=document.createElement("template")};
document.head.appendChild(t60().content);var hcV;var dMN=document.head,CZT=dMN.appendChild,Hl0;if(hcV===void 0){var XVp=document.createElement("template");_.b(XVp,"\x3c!--css-build:shady--\x3e");XVp.content.insertBefore(t60().content.cloneNode(!0),XVp.content.firstChild);hcV=XVp}Hl0=hcV;CZT.call(dMN,Hl0.content);var y2V,gf0=function(){return y2V!==void 0?y2V:y2V=document.createElement("template")};
document.head.appendChild(gf0().content);var YIp;var Gd0=document.head,cb0=Gd0.appendChild,IE9;if(YIp===void 0){var RQi=document.createElement("template");_.b(RQi,"\x3c!--css-build:shady--\x3e");RQi.content.insertBefore(gf0().content.cloneNode(!0),RQi.content.firstChild);YIp=RQi}IE9=YIp;cb0.call(Gd0,IE9.content);var ZD9=document.head,KPK=ZD9.appendChild,PG2;if(jmT===void 0){var QtV=document.createElement("template");_.b(QtV,"\x3c!--css-build:shady--\x3e");QtV.content.insertBefore(r22().content.cloneNode(!0),QtV.content.firstChild);jmT=QtV}PG2=jmT;KPK.call(ZD9,PG2.content);var mu0,aEK=function(){return mu0!==void 0?mu0:mu0=document.createElement("template")};
document.head.appendChild(aEK().content);var The;_.d0=new _.De("DARK_THEME_TOKEN");var dMA=new _.vS("accessibilityProperties");var hc8=new _.vS("layoutProperties");var CZB=new _.vS("imageType");var OD2={};if("ytAttributedStringLinkHoverColor"in OD2)throw Error("fh`ytAttributedStringLinkHoverColor");(function(G,c){OD2[G]="value"in c&&"unit"in c?TVB(G,c):function(I){try{return c(I)}catch(R){throw Error("dh`"+G+"`"+R.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var eQB=function(G){var c=this;this.holdTime=G===void 0?500:G;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(I){var R=new CustomEvent("LONG_PRESS"),Z;(Z=I.changedTouches[0].target)==null||Z.dispatchEvent(R)};
this.ontouchstart=function(I){c.longPressTimeout=_.U_(_.dJ,function(){c.onlongpress(I);c.longPressOccurred=!0},c.holdTime)};
this.ontouchmove=function(){_.dJ.cancelJob(c.longPressTimeout);c.longPressTimeout=NaN;c.longPressOccurred=!1;c.moveOccurred=!0};
this.ontouchend=function(I){if(c.longPressTimeout&&!c.longPressOccurred&&!c.moveOccurred){var R;(R=I.changedTouches[0].target)==null||R.dispatchEvent(new Event("click"))}_.dJ.cancelJob(c.longPressTimeout);c.longPressTimeout=NaN;c.longPressOccurred=!1;c.moveOccurred=!1}};var A2b=function(G,c){eQB.call(this,c);var I=this;this.callback=G;this.onlongpress=function(R){var Z;(Z=I.callback)==null||Z.call(I,R)}};
_.u(A2b,eQB);var $M8=function(G,c){var I=Object.assign({},c);G=_.Q(new Map([["ontouchstart",G.ontouchstart],["ontouchend",G.ontouchend],["ontouchmove",G.ontouchmove]]));for(var R=G.next(),Z={};!R.done;Z={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},R=G.next()){var K=_.Q(R.value);R=K.next().value;K=K.next().value;Z.eventName$jscomp$103=R;Z.eventHandler$jscomp$2=K;c[Z.eventName$jscomp$103]=function(m){return function(a){var O;(O=I[m.eventName$jscomp$103])==null||O.call(I,a);(0,m.eventHandler$jscomp$2)(a)}}(Z)}};_.n4=new _.De("COMMAND_HANDLER_TOKEN");var ecO=new _.vS("parallelCommand");var qI0=new _.vS("performOnceCommand");var llb=new _.vS("serialCommand");var wVr=void 0;var Nhp=function(){this.data=[];this.consumer=null};
Nhp.prototype.push=function(G){this.consumer?this.consumer(G):this.data.push(G)};var gP={};_.ks(gP,void 0,"sgPmTd");_.ks(null,void 0,"jypsq");_.ks(null,void 0,"mWiOof");var r3r=new Nhp;var blr=[Gi9,c_0,ITN,ZTi,RJ0,YTi,Kz0,Pa2];var xMr=new _.vS("bracketTextDecorator");var tN=new _.vS("highlightTextDecorator");_.HI=new _.De("APP_DIRECTION_TOKEN");var BVr={calledOnce:!1,state:"visible"},flO={calledOnce:!1,state:"hidden"};Object.freeze&&Object.freeze(Object.create(null));var ilU=function(){},lEV;
(lEV=window.requestIdleCallback)==null||lEV.bind(window);var qzT=new _.De("ICON_WIZ_COMPONENT_TOKEN");_.F6=_.W(function(G){var c=G.icon;var I=G.active;var R=G.className;var Z=G.style;var K=G.dataSelected;var m=G.dataDisabled;var a=G.role;var O=G.animateIcon;var N=G.themeOverride;var q=G.ariaHidden;var w=G.ariaExpanded;var F=G.ariaLabel;var n=G.tabindex;var U=G.id;var k=G.size;var p=G.iconFilter;var M=G.gradientColor;var z=G.onKeydown;var t=G.title;return _.e(_.l,{cond:c,then:function(){var x=_.wH().resolve(qzT);return _.e(x,{icon:c,dataSelected:K,dataDisabled:m,animateIcon:O,themeOverride:N,ariaExpanded:w,
tabindex:n,id:U,active:I,size:k,role:a,className:R,ariaHidden:q,ariaLabel:F,style:function(){return Z!=null&&Z()||k==null||!k()?Z==null?void 0:Z():"width: "+(k==null?void 0:k())+"px;height: "+((k==null?void 0:k())+"px;")},
title:t,iconFilter:p,gradientColor:M,onKeydown:z})}})},"n");
_.F6.idomCompat={callbacks:{onKeydown:!0}};var aE0=new _.vS("borderImageProcessor");var eQO=window.devicePixelRatio||1;var wjC=new Map([["yt_outline_bag_black_24","bag"]]);var Ur=function(G){var c=this;this.margin=.1;this.whenInViewportWithMargin=G;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){c.requestScan()});
window.addEventListener("touchend",function(){c.requestScan()});
window.addEventListener("updateui",function(){c.requestScan()});
var I=new _.qx((0,_.WD)(this.requestScan,this),100);window.addEventListener("scroll",function(){I.fire()},!0);
window.addEventListener("resize",(0,_.WD)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){c.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.WD)(this.requestScan,this))};
Ur.prototype.observe=function(G){this.observationTargets.includes(G)||this.observationTargets.push(G)};
Ur.prototype.unobserve=function(G){this.observationTargets=this.observationTargets.filter(function(c){return c!==G})};
Ur.prototype.requestScan=function(){var G=this;this.scanRequested||(Sk(function(){wj9(G)}),this.scanRequested=!0)};
var wj9=function(G){var c=(1+G.margin)*(document.documentElement.clientHeight||window.innerHeight);G.observationTargets=G.observationTargets.filter(function(I){var R=I.getBoundingClientRect();(R=c>R.top&&!!R.height)&&G.whenInViewportWithMargin(I);return!R&&I.parentNode});
G.scanRequested=!1};
Ur.prototype.disconnect=function(){this.observationTargets=[]};var FP0,vT0;FP0=_.Q(_.ks(oTO(),void 0,"O3X2wd"));_.nTK=FP0.next().value;vT0=FP0.next().value;window.addEventListener("resize",function(){vT0(oTO())});var DuT={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},oTB=void 0,UuT=window.innerWidth,uEK=window.innerHeight;window.addEventListener("resize",function(){oTB=void 0});var bD0;if("IntersectionObserver"in window)bD0=bDq();else{if(oTB===void 0){var kdi;kdi="matchMedia"in window?window.matchMedia(DuT.landscape+","+DuT.portrait).matches:void 0;oTB=kdi!==void 0?kdi:UuT>=930&&uEK>=550||UuT>=550&&uEK>=930}bD0=oTB?{observe:function(G){Sk(function(){var c;(c=G.onViewportEntered)==null||c.call(G)})},
unobserve:function(){}}:new Ur(function(G){Sk(function(){var c;
(c=G.onViewportEntered)==null||c.call(G)})})}var UuB=bD0;var st2=_.W(function(G){var c=!1,I=_.mX("img",function(R){_.ty(function(){c=!0;R.onload=null})});
_.xs(function(){var R,Z=(R=G.data)==null?void 0:R.call(G),K,m=(K=G.getSrc)==null?void 0:K.call(G).cb,a;R=(a=G.config)==null?void 0:a.call(G);if(a=I.value)if(K=function(N,q){if(!c)return m?m(N,q):N},LPr(a,R),_.v("web_image_dont_reload_same_src")&&stT(a,Z,K))_.v("web_image_dont_reload_same_src_simulate_load")&&a.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var O;kdr(a,Z||null,K,R,(O=G.lazy)==null?void 0:O.call(G))}},"zS0jKb");
return _.e("img",{el:I})},"p");
st2.idomCompat=!0;_.yc=_.W(function(G){var c=function(){var I,R=G.data(),Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H,g,QO,T8,kp,FB,oq,Wr,iT,z8,GV;var ei={contentMode:(Z=G.contentMode)==null?void 0:Z.call(G),loadedClass:(K=G.loadedClass)==null?void 0:K.call(G),isPreloaded:(m=G.isPreloaded)==null?void 0:m.call(G),notifyOnLoaded:(a=G.notifyOnLoaded)==null?void 0:a.call(G),notifyOnUnloaded:(O=G.notifyOnUnloaded)==null?void 0:O.call(G),preferredThumbnail:(N=G.preferredThumbnail)==null?void 0:N.call(G),preserveHeight:(q=G.preserveHeight)==
null?void 0:q.call(G),preserveWidth:(w=G.preserveWidth)==null?void 0:w.call(G),objectPosition:(F=G.objectPosition)==null?void 0:F.call(G),targetWidth:(n=G.targetWidth)==null?void 0:n.call(G),targetHeight:(U=G.targetHeight)==null?void 0:U.call(G),shouldShowPlaceholder:(k=G.shouldShowPlaceholder)==null?void 0:k.call(G),useWidth:(p=G.useWidth)==null?void 0:p.call(G),isToggled:(M=G.isToggled)==null?void 0:M.call(G),alt:(z=G.alt)==null?void 0:z.call(G),className:(t=G.className)==null?void 0:t.call(G),
onerror:G.onerror,onload:G.onload,style$:((x=G.style$)==null?void 0:x.call(G))||((C=G.style)==null?void 0:C.call(G)),color:(H=G.color)==null?void 0:H.call(G),width:(g=G.width)==null?void 0:g.call(G),height:(QO=G.height)==null?void 0:QO.call(G),"aria-hidden$":(z8=(T8=G["aria-hidden$"])==null?void 0:T8.call(G))!=null?z8:(kp=G.ariaHidden)==null?void 0:kp.call(G),draggable:(FB=G.draggable)==null?void 0:FB.call(G),"data-disabled$":(GV=(oq=G["data-disabled$"])==null?void 0:oq.call(G))!=null?GV:(Wr=G.dataDisabled)==
null?void 0:Wr.call(G),size:(iT=G.size)==null?void 0:iT.call(G)};return SzC(R,ei,(I=G.hideOn404)==null?void 0:I.call(G))};
return _.e(_.B1,null,_.e(_.W1,{when:function(){var I;return((I=c())==null?void 0:I.type)==="image"}},function(){return _.e(st2,{data:function(){return c().image},
getSrc:{cb:function(I,R){var Z=c().image.sources,K=c().config.isPreloaded,m=c().config.useWidth,a=c().config.targetWidth,O=c().config.targetHeight,N=c().config.preferredThumbnail;return _.Nhi(R,Z,K,m,a,O,N)||""}},
config:function(){var I=c().config,R;for(R in I)I[R]===void 0&&delete I[R];return I},
lazy:G.renderLazy})}),_.e(_.W1,{when:function(){var I;
return((I=c())==null?void 0:I.type)==="icon"}},function(){return _.e(_.F6,{icon:function(){return c().iconName},
role:function(){return c().config.role},
className:function(){return c().config.className},
style:function(){return c().config.style$+";width: "+(c().config.width+"px;height: ")+(c().config.height+"px;color: ")+(c().config.color+";")},
ariaLabel:function(){return c().config["aria-label$"]},
ariaHidden:function(){return c().config["aria-hidden$"]},
dataDisabled:function(){return c().config["data-disabled$"]},
active:function(){return c().config.isToggled},
size:function(){return c().config.size}})}))},"q");
_.yc.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var zQg=_.W(function(G){var c=function(Z){var K,m,a=_.YC(function(n){K=Z();m=hy(function(){for(var U=_.Q(w()),k=U.next();!k.done;k=U.next()){k=WPq(k.value);k=typeof k==="string"?document.createTextNode(k):k;if(!(k instanceof Node)){U=new _.iW("Part is not a node",k,typeof k);_.hg(U);break}n.appendChild(k)}})}),O=_.gD(G.config),N=function(){var n;
return y28(Z(),(n=O())==null?void 0:n.ariaLabel)},q=M0i(O,{isEqual:fEg}),w=function(){var n=Hlq(Z(),q());
gfr(n,q());return Z().content?ZDC(Z().content,n).parts:[]},F=!0;
_.xs(function(){Z();q();if(F&&(F=!1,V0r(Z(),K)))return;var n=w();Promise.resolve().then(function(){var U=a.value;if(U){U.innerText="";var k;(k=m)==null||k();m=_.jV(U,function(){return _.e(iDg,{parts:n})},"r")}})},"LRRSgc");
return _.e("span",{el:a,class:function(){return Z()&&zcC(Z(),O())},
dir:function(){var n;return((n=O())==null?0:n.userInput)?"auto":void 0},
"aria-label":function(){var n;return N()?(n=O())==null?void 0:n.ariaLabel:void 0},
role:function(){return N()?"text":void 0}})},I=M0i(function(){var Z,K=(Z=G.text)==null?void 0:Z.call(G);
if(K)return Z=_.Cd(K)?K:_.Vc(K),(Z==null?0:Z.content)?Z:void 0},{isEqual:V0r}),R;
return((R=G.config)==null?0:R.contentAsserted)?c(I):_.e(_.l,{cond:I,then:c})},"t");
zQg.idomCompat=!0;_.ul=_.W(function(G){var c=_.gD(G.text),I=BhB(G);G.contentAsserted!==void 0&&(I.contentAsserted=!0);return _.e(zQg,{text:c,config:I})},"u");
_.ul.idomCompat=!0;var rbf=function(G,c,I){c=c===void 0?"unknown":c;I=I===void 0?{}:I;_.iW.call(this,G+" ("+c+")",Object.assign({},{name:"YtWcwError",tagName:c},I));Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(rbf,_.iW);_.I1=new WeakMap;_.cU=!1;var duT,CG8,hQT;_.bl=Symbol("hh");_.G9=Symbol("ih");duT=Symbol("jh");CG8=new Set(Object.getOwnPropertyNames(Element.prototype));hQT=Symbol("kh");var LP0=_.W(function(G){return _.e("yt-attributed-string",{"aria-label":G.ariaLabel,hidden:G.hidden,id:G.id,class:G.className,"force-default-style":G.forceDefaultStyle},_.e(_.ul,{text:G.data,ariaLabel:G.ariaLabel,ellipsisTruncate:G.ellipsisTruncate,isOverlay:G.isOverlay,linkInheritColor:G.linkInheritColor,noPreWrap:G.noPreWrap,noWrap:G.noWrap,userInput:G.userInput,noEndpoints:G.noEndpoints,headerRuns:G.headerRuns,isHeadline:G.isHeadline}))},"v");
_.v("web_wiz_attributed_string")&&_.R1(LP0,"yt-attributed-string",{props:{ariaHidden:_.bl,ariaLabel:_.bl,className:_.bl,ellipsisTruncate:_.bl,isOverlay:_.bl,linkInheritColor:_.bl,noEndpoints:_.bl,noStyleRuns:_.bl,noLinkColor:_.bl,noPreWrap:_.bl,noWrap:_.bl,skipOnClick:_.bl,userInput:_.bl,headerRuns:_.bl,isHeadline:_.bl,id:_.bl,data:_.bl,hidden:_.bl,forceDefaultStyle:_.bl,text:_.G9,disableUpgrade:_.G9,disable:_.G9,slot:_.G9}});var kr=function(){return _.J.apply(this,arguments)||this};
_.u(kr,_.J);kr.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},JbT(this.data,this.config))};
_.r([_.L(flB),_.h("design:type",Object)],kr.prototype,"ytIdomTemplatingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kr.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],kr.prototype,"ariaLabel",void 0);_.r([_.E(),_.h("design:type",Boolean)],kr.prototype,"disable",void 0);_.r([_.E(),_.h("design:type",Boolean)],kr.prototype,"ellipsisTruncate",void 0);_.r([_.E(),_.h("design:type",Boolean)],kr.prototype,"isOverlay",void 0);
_.r([_.E(),_.h("design:type",Boolean)],kr.prototype,"linkInheritColor",void 0);_.r([_.E(),_.h("design:type",Boolean)],kr.prototype,"noPreWrap",void 0);_.r([_.E(),_.h("design:type",Boolean)],kr.prototype,"noWrap",void 0);_.r([_.E(),_.h("design:type",Boolean)],kr.prototype,"userInput",void 0);_.r([_.E(),_.h("design:type",Boolean)],kr.prototype,"noEndpoints",void 0);_.r([_.E(),_.h("design:type",Array)],kr.prototype,"headerRuns",void 0);
_.r([_.Em({is:"yt-attributed-string",disableElementRegistration:!0})],kr);
_.v("web_wiz_attributed_string")||_.B(kr,"yt-attributed-string",function(){if(The===void 0){var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
G.content.insertBefore(aEK().content.cloneNode(!0),G.content.firstChild);The=G}G=The;return G},{mode:2});var AbA,$uT,cQB;AbA=function(){this.firstThumbnailLoaded=!1};
_.Sz9=function(){$uT||($uT=new AbA);return $uT};
cQB=function(G){var c=_.Sz9();c.firstThumbnailLoaded||(c.firstThumbnailLoaded=!0,_.LC("ftl",G))};
AbA.prototype.reset=function(){this.firstThumbnailLoaded=!1};var XjT=0,GYi=new WeakMap,gTq=0,PU=new Set;var pj0,M0p=function(){return pj0!==void 0?pj0:pj0=document.createElement("template")};
document.head.appendChild(M0p().content);var V0i;var KM0,QYC,sr;_.a1=_.Rq.caches;sr=function(){};
sr.prototype.open=function(G){return _.a1.open(zQA(G))};
sr.prototype.has=function(G){return _.a1.has(zQA(G))};
sr.prototype.delete=function(G){return _.a1.delete(zQA(G))};
sr.prototype.match=function(G,c){var I=this,R,Z,K,m,a,O;return _.T(function(N){switch(N.nextAddress){case 1:return N.yield(I.keys(),2);case 2:R=N.yieldResult,Z=_.Q(R),K=Z.next();case 3:if(K.done){N.jumpTo(5);break}m=K.value;return N.yield(I.open(m),6);case 6:return a=N.yieldResult,N.yield(a.match(G,c),7);case 7:if(O=N.yieldResult)return N.return(O);K=Z.next();N.jumpTo(3);break;case 5:return N.return()}})};
var mVg=function(){};
_.u(mVg,sr);var zQA=function(G){if(G.includes(":"))throw Error("nh`"+G);return G+":"+_.Jw("CacheStorage get")};
mVg.prototype.keys=function(){var G,c,I,R,Z,K,m,a,O;return _.T(function(N){if(N.nextAddress==1)return G=[],c=_.Jw("CacheStorage keys"),N.yield(_.a1.keys(),2);I=N.yieldResult;R=_.Q(I);for(Z=R.next();!Z.done;Z=R.next())K=Z.value,m=_.ZOi(K),a=m.originalName,O=m.datasyncId,O===c&&G.push(a);return N.return(G)})};var Lx=function(){var G=_.J.apply(this,arguments)||this;G.objectURL=null;G.loadTime=Infinity;return G};
_.u(Lx,_.J);_.P=Lx.prototype;_.P.renderIdom=function(){Rog(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&Abg(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.P.objectFitToContentMode=function(G){switch(G){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.P.logThumbnailFailureVe=function(){var G=_.qj(197497);_.CJ(_.DP(),G);var c=_.k0();c&&G&&c&&_.Bd(c,[G])};
_.P.loadImageFromCacheIfExists=function(G){var c=this,I=G.target;(I==null?0:I.src)&&TlU(I.src).then(function(R){c.objectURL=_.CG(R).toString();c.setSrc(I,c.objectURL)}).catch(function(){})};
_.P.onError=function(G){var c=this;if(_.v("web_use_cache_for_image_fallback")){var I=G.target;I&&TlU(I.src).then(function(R){c.objectURL=_.CG(R).toString();c.setSrc(I,c.objectURL)}).catch(function(){_.v("kevlar_woffle_log_thumbnail_failure_ve")&&c.logThumbnailFailureVe();
_.v("kevlar_woffle_fallback_image")&&c.setSrc(I,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.P.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.P.setConfig=function(){var G=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(c){G.loadImageFromCacheIfExists(c);G.revokeObjectURL();INg(G.hostElement)},
onerror:function(c){G.onError(c)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.v("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.P.setSrc=function(G,c){c&&(G.src=c)};
_.r([_.L(flB),_.h("design:type",Object)],Lx.prototype,"ytIdomTemplatingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Lx.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],Lx.prototype,"alt",void 0);_.r([_.E(),_.h("design:type",Boolean)],Lx.prototype,"ftlEligible",void 0);_.r([_.E(),_.h("design:type",Number)],Lx.prototype,"height",void 0);_.r([_.E(),_.h("design:type",Boolean)],Lx.prototype,"notifyOnLoaded",void 0);
_.r([_.E(),_.h("design:type",Boolean)],Lx.prototype,"notifyOnUnloaded",void 0);_.r([_.E(),_.h("design:type",String)],Lx.prototype,"objectFit",void 0);_.r([_.E(),_.h("design:type",String)],Lx.prototype,"objectPosition",void 0);_.r([_.E(),_.h("design:type",String)],Lx.prototype,"preferredThumbnail",void 0);_.r([_.E(),_.h("design:type",Boolean)],Lx.prototype,"preserveHeight",void 0);_.r([_.E(),_.h("design:type",Boolean)],Lx.prototype,"preserveWidth",void 0);
_.r([_.E({value:!0}),_.h("design:type",Boolean)],Lx.prototype,"useWidth",void 0);_.r([_.E({value:function(){return!_.XG("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.h("design:type",Boolean)],Lx.prototype,"shouldRenderLazy",void 0);_.r([_.E(),_.h("design:type",Number)],Lx.prototype,"width",void 0);_.r([_.Em({is:"yt-image",disableElementRegistration:!0})],Lx);
_.B(Lx,"yt-image",function(){if(V0i===void 0){var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);G.content.insertBefore(M0p().content.cloneNode(!0),G.content.firstChild);
V0i=G}G=V0i;return G},{mode:2});var Ax=function(){return _.J.apply(this,arguments)||this};
_.u(Ax,_.J);Ax.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var G=_.WI(this.data.onVisibleCommand);G&&this.ytComponentBehavior.resolveCommand(G)}};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Ax.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.vR.YtVisibilityBehavior),_.h("design:type",Object)],Ax.prototype,"ytVisibilityBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ax.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Ax);
_.B(Ax,"yt-bumper-user-edu-content-view-model",function(){if(J2K===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;EfK===void 0&&(EfK=document.createElement("template"));var R=EfK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);J2K=G}G=J2K;return G},{mode:0});var ETB;var Jb2,WP0=function(){if(Jb2!==void 0)return Jb2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-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');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;ETB===void 0&&(ETB=document.createElement("template"));var R=ETB;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return Jb2=G};var iDA;_.$r={};iDA=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"]);_.$r.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var G=this.getContext_();return G?G.getTaskManager():_.dJ},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var G=_.Xl(this.hostElement,"yt-get-context-provider",{});G.detail&&G.detail.contextProvider?this.cachedProviderNode_=G.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return iDA.has(this.hostElement.localName)},
getNetworkManager:function(){var G=this.getContext_();if(G)return G.getNetworkManager()}};var wfp,fEA,rbk,BhT;_.SP=function(G){var c=fEA.get(G);if(c&&(c=c.pop()))return BhT++,c;rbk++;try{var I=document.createElement(G)}catch(R){throw new _.iW("ElementPool failed to create element",G,R.message);}return I};
wfp=function(G){var c=G.is;if(c){var I=fEA.get(c);I||(I=[],fEA.set(c,I));var R=_.H1("ELEMENT_POOL_CONFIG")||{};I.length>=(R[c]!==void 0?R[c]:_.H1("ELEMENT_POOL_DEFAULT_CAP",0))||I.push(G)}else _.Ck(new _.iW("Element pool should only handle custom elements:",G.nodeName))};
fEA=new Map;rbk=0;BhT=0;var T9=new WeakMap,qkb=new WeakMap;var xuk;_.px=function(G,c,I){I=I===void 0?_.E_():I;this.JSC$14064_defaultPriority=G;this.signal=c;this.scheduler=I;this.nextJobDescriptor=0;this.JSC$14064_parkedJobs=[];this.scheduledJobs=new Map};
_.Mi=function(G,c){if(c){var I=_.kL();G.signal&&!_.sO(I,G.signal)?(I.addListener(G.signal,function(){G.processSignal()}),G.JSC$14064_parkedJobs.push({job:c,
priority:void 0})):jtk(G,c)}};
xuk=function(G,c){if(c!==G.JSC$14064_defaultPriority){G.JSC$14064_defaultPriority=c;for(var I=_.Q(G.scheduledJobs.values()),R=I.next();!R.done;R=I.next())R=R.value,G.scheduler.cancelJob(R.jobId),R.jobId=G.scheduler.addJob(R.jobWrapper,c)}};
_.px.prototype.flushJobs=function(){xuk(this,10);this.processSignal()};
_.px.prototype.cancel=function(){for(var G=_.Q(this.scheduledJobs),c=G.next();!c.done;c=G.next()){var I=_.Q(c.value);c=I.next().value;I=I.next().value;this.scheduler.cancelJob(I.jobId);this.scheduledJobs.delete(c)}this.JSC$14064_parkedJobs=[]};
_.px.prototype.processSignal=function(){for(var G=_.Q(this.JSC$14064_parkedJobs),c=G.next();!c.done;c=G.next())c=c.value,jtk(this,c.job,c.priority);this.JSC$14064_parkedJobs=[]};
var jtk=function(G,c,I){I=I||G.JSC$14064_defaultPriority;if(I===10)Qe(c);else{var R=G.nextJobDescriptor++,Z=function(){c();G.scheduledJobs.delete(R)},K=G.scheduler.addJob(Z,I);
G.scheduledJobs.set(R,{jobWrapper:Z,jobId:K,priority:I})}};var t0A;_.V5={};t0A={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.V5.YtRendererstamperBehavior=[_.$r.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var G in this.stampDom){var c=this.stampDom[G];c&&c.id&&this.addReactiveSchema({type:"observe",method:{methodName:eoi(c.id),args:[{type:"wildcard",path:G}]}})}else{(G=(this.constructor.generatedFrom||this).observers)||(G=[]);for(c in this.stampDom){var I=this.stampDom[c];I&&I.id&&G.push(eoi(I.id)+"("+c+".*)")}this.constructor.generatedFrom.observers=G}},
addStampDomObserverFns_:function(){for(var G in this.stampDom){var c=this.stampDom[G];c.id?(this[eoi(c.id)]=this.rendererStamperObserver_.bind(this,G,c.id),this.hasDataPath_[G]=!1):(c=new _.iW("Bad rendererstamper config",this.is+":"+G),_.hg(c))}},
rendererStamperObserver_:function(G,c,I){if(I.path==G){if(I.value===void 0&&!this.hasDataPath_[G])return;this.hasDataPath_[G]=I.value!==void 0}this.rendererStamperApplyChangeRecord_(G,c,I)},
rendererStamperApplyChangeRecord_:function(G,c,I){var R=this.renderJobsMap_[c],Z=null;G==I.path?(I=I.value,_.xp(I)||(I=I===void 0||I===null?[]:[I]),G=this.stampDom[G],G.mapping&&(Z=this.stampDomArray_.bind(this,I,c,G.mapping,G.reuseComponents,G.events,G.stamperStableList)),R&&R.cancel(),I=G.usePageScheduler?this.getTaskManager():void 0,R||G.initialRenderPriority==void 0)?G.renderPriority==void 0||R||(R=new _.px(G.renderPriority,G.waitForSignal,I),this.renderJobsMap_[c]=R):(R=new _.px(G.initialRenderPriority,
G.waitForSignal,I),this.renderJobsMap_[c]=R,Z=function(K,m){K();xuk(m,10)}.bind(this,Z,R)):Z=G+".splices"==I.path?this.stampDomArraySplices_.bind(this,G,c,I.value):this.forwardRendererStamperChanges_.bind(this,G,c,I);
R?_.Mi(R,Z):Z()},
forwardRendererStamperChanges_:function(G,c,I){var R=I.path.slice(G.length+1),Z=this.getStampContainer_(c),K=R.indexOf("."),m=R.substring(0,K),a=!1,O=0,N=parseInt(m,0);if(m[0]=="#"){a=parseInt(m.substring(1),0);N=this.get(G);var q=this.get([G,m]);N[a]==q?O=a:O=N.indexOf(q);a=!0}else isNaN(N)||(O=N,a=!0);a&&(R=R.substring(m.length+1),K=R.indexOf("."));m=this.polymerDom(Z).children[O];var w;if(Z=(w=m==null?void 0:m.polymerController)!=null?w:m)R="data"+R.slice(K),typeof Z.notifyPath!=="function"?_.Ck(new _.iW("notifyPath missing",
this.is+": "+G+", "+c)):I.value?Z.notifyPath(R,I.value):Z.notifyPath(R)},
stampDomArraySplices_:function(G,c,I){if(I&&I.indexSplices){var R=this.getStampContainer_(c);if(R){for(var Z=this.polymerDom(R),K=lNT(this.stampDom[G].reuseComponents),m=I.indexSplices.length,a=0;a<m;a++){for(var O=I.indexSplices[a],N=Z.children[O.index],q=O.removed.length;q>0;q--)N&&N.parentElement&&(this.polymerDom(N.parentElement).removeChild(N),K&&wfp(N),N=Z.children[O.index]);q=this.stampDom[G].mapping;for(var w=O.index+O.addedCount,F=document.createDocumentFragment(),n=K,U=O.index;U<w;U++){var k=
O.object[U],p=OOA(q,k);if(p){var M=q[p];k=k[p];p=this.getComponentName_(M,k);var z=N?T9.has(N):!1;n&&N&&N.is==p&&z?(p=N,this.telemetry_.reuse++,N=N.nextElementSibling):n&&N&&z?(p=this.createComponent_(M,k,K),z=this.polymerDom(N).nextElementSibling,Z.insertBefore(p,z),nYq(this.is,Z,N,K),N=z):(n=!1,p=this.createComponent_(M,k,K),F.appendChild(p));this.deferRenderStamperBinding_(p,M,k)}else M=new _.iW("Unimplemented type",G,c,R.tagName,Object.keys(k)[0]),_.hg(M)}Z.insertBefore(F,N)}this.flushRenderStamperComponentBindings_();
this.stampDom[G].events&&_.Xl(this.hostElement,"yt-rendererstamper-finished",{container:R})}else G=new _.iW("Container object not found",c,this.hostElement?this.hostElement.is:""),_.hg(G)}},
stampDomArray_:function(G,c,I,R,Z,K){var m=this.getStampContainer_(c);if(m)if(c=this.polymerDom(m),R=lNT(R),G){var a=0,O=0,N;if(K=K===void 0?_.XG("STAMPER_STABLE_LIST",!1):K||!1)for(N=c.firstElementChild;N&&!T9.has(N)&&G.length>O;){K=G[O];var q=OOA(I,K);if(q){if(this.getComponentName_(I[q],K[q])!=N.is){var w=this.createComponent_(I[q],K[q],R),F=this.polymerDom(N).nextElementSibling;F?c.insertBefore(w,F):c.appendChild(w);nYq(this.is,c,N,R);N=w}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(N,
I[q],K[q]);a++;O++;N=this.polymerDom(N).nextElementSibling}else O++}vYO(this.is,c,a,R);a=N;if(G.length>O){K=document.createDocumentFragment();for(q=G.length;O<q;O++)if(w=G[O],F=OOA(I,w))N=this.createComponent_(I[F],w[F],R),this.deferRenderStamperBinding_(N,I[F],w[F]),K.appendChild(N);a&&this.polymerDom(a).parentNode&&N&&!T9.has(N)?c.insertBefore(K,a):c.appendChild(K)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Z&&_.Xl(this.hostElement,"yt-rendererstamper-finished",
{container:m})}else vYO(this.is,c,0,R);else G=new _.iW("Container object not found",c,this.hostElement?this.hostElement.is:""),_.hg(G)},
polymerDom:function(G){return this.minimizePipBreakages?G:_.qy(G)},
getStampContainer_:function(G){return this.$&&this.$[G]||_.Q1(this.hostElement).querySelector("#"+G)},
getComponentName_:function(G,c){return typeof G==="string"?G:G.matcher?G.matcher.call(this,c):G.component},
createComponent_:function(G,c,I){G=this.getComponentName_(G,c);try{var R=GTg.has(G);if(I&&!R){var Z=_.SP(G);try{_.eD(Z)}catch(K){I="Failed to clear styles for "+G+".",K.message&&(I+=" Original error: "+K.message),_.Ck(new _.iW(I))}}else Z=document.createElement(G)}catch(K){return Z="YtRendererStamperBehavior failed to create "+G+".",K.message&&(Z+=" Original description: "+K.message),K.message="YtRendererStamperBehavior failed to create element",_.H_(K,Z),t0A.hasOwnProperty(G)?_.Ck(K):_.hg(K),document.createElement("SPAN")}this.telemetry_.create++;
return Z},
deferRenderStamperBinding_:function(G,c,I){this.deferredBindingTasks_.push({component:G,typeOrConfig:c,data:I})},
flushRenderStamperComponentBindings_:function(){for(var G=0,c=this.deferredBindingTasks_.length;G<c;G++){var I=this.deferredBindingTasks_[G];if(!I)break;var R=void 0,Z=void 0,K=void 0,m=void 0,a=I.component,O=I.typeOrConfig;I=I.data;var N=(m=a.polymerController)!=null?m:a;m=a.loggingStatus;try{m&&(m.isRendererStamper=!0);if(typeof O!=="string"){for(K in O.attributes)O.attributes[K]===!0?a.setAttribute(K,""):O.attributes[K]===!1?a.removeAttribute(K):a.setAttribute(K,O.attributes[K]);for(Z in O.params)N[Z]=
O.params[Z],a!==N&&sm(a.localName,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(R in O.properties){var q=O.properties[R];if(q){var w=NlB(q);N[R]=this.get(w);a!==N&&sm(a.localName,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(R==="on-tap"||R==="on-click"){var F=this.get(w);a.addEventListener("click",F);qkb.set(a,{property:R,listener:{type:"element",eventName:"click",handler:F}})}}else{var n=new _.iW("Undefined property binding",R);_.hg(n)}}}if(O.classListBinding){var U=NlB(O.classListBinding),
k=U?this[U]:null;if(k)for(R=0;R<k.length;R++)_.as(a,k[R],!0)}N.data=I}finally{m&&(m.isRendererStamper=!1)}if(R=T9.get(a))a.hidden=!1,T9.delete(a),_.dJ.cancelJob(R)}this.deferredBindingTasks_.length=0}}];_.R1(_.W(function(G){function c(){I().seconds&&K(adi({seconds:Number(I().seconds)-Date.now()/1E3}))}
var I=G.targetTimestamp;G=G.className;var R=_.Q(_.ks("",void 0,"U1Q8Ae")),Z=R.next().value,K=R.next().value;_.xc(function(){c();var m=setInterval(function(){c()},1E3);
_.ty(function(){clearInterval(m)})});
return _.e("yt-countdown",{class:_.O3("ytCountDownHost",G)},_.e("div",null,Z))},"x"),"yt-countdown",{props:{targetTimestamp:_.bl,
className:_.G9}});_.zb=new _.De("KEY_MANAGER_TOKEN");var LM0={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.Er=_.W(function(G){var c=_.mX("a",G.ref),I=G.aTagConfig?G.aTagConfig:_.SE(function(){var R,Z,K,m,a;var O=(a=_.WI((K=G.command)==null?void 0:K.call(G)))!=null?a:(m=G.command)==null?void 0:m.call(G);return _.fd({innertubeCommand:O,skipOnClick:(R=G.skipOnClick)==null?void 0:R.call(G),defaultTarget:(Z=G.target)==null?void 0:Z.call(G)})||{}},void 0,"TAvz0");
_.xs(function(){_.v("mweb_get_endpoint_from_atag_command")||(c.value._data=I()._data,c.value.params=I().params)},"dcjvAe");
return _.e("a",{el:c,href:function(){return I().href$},
rel:function(){return I().rel$},
class:function(){var R,Z;return(Z=I().className)!=null?Z:(R=G.className)==null?void 0:R.call(G)},
style:function(){var R;if((R=G.style)==null?0:R.call(G))return G.style();var Z;return((Z=G.disabled)==null?0:Z.call(G))?"pointer-events:none":""},
"aria-haspopup":function(){return!!I()["aria-haspopup$"]},
"force-new-state":lf(function(){return I()["force-new-state$"]}),
title:lf(function(){var R,Z;return(Z=I().title$)!=null?Z:(R=G.title)==null?void 0:R.call(G)}),
role:lf(function(){var R;return((R=G.role)==null?void 0:R.call(G))||I().role$}),
target:lf(function(){return I().target$}),
dir:lf(function(){var R;return((R=G.dir)==null?void 0:R.call(G))||I().dir}),
tabindex:function(){var R;return I().tabindex$?Number(I().tabindex$):(R=G.tabIndex)==null?void 0:R.call(G)},
"aria-hidden":function(){var R,Z;return(Z=I()["aria-hidden$"])!=null?Z:(R=G.ariaHidden)==null?void 0:R.call(G)},
"aria-label":function(){var R,Z;return(Z=I()["aria-label$"])!=null?Z:(R=G.ariaLabel)==null?void 0:R.call(G)},
"aria-current":G.ariaCurrent,"aria-disabled":G.disabled,"aria-labelledby":G.ariaLabelledby,"aria-describedby":G.ariaDescribedby,"aria-selected":G.ariaSelected,"tab-identifier":G.tabIdentifier,"on:pointerdown":_.Nx(function(R){var Z,K;return void((K=(Z=I()).onpointerdown)==null?void 0:K.call(Z,R))}),
"on:click":_.Nx(function(R){var Z,K;(K=(Z=I()).onclick)==null||K.call(Z,R);var m;(m=G.onClick)==null||m.call(G,R)}),
"on:focusin":_.Nx(function(R){var Z;(Z=G.onFocusin)==null||Z.call(G,R)}),
"on:focusout":_.Nx(function(R){var Z;(Z=G.onFocusout)==null||Z.call(G,R)})},G.children)},"z");var EYi={duration:1E3,easing:"ease",fill:"forwards"};zor.componentType=Vg;var iOi={duration:1E3,easing:"ease",fill:"forwards"},CGV=_.W(function(G){var c=_.mX("animated-rolling-character"),I=void 0,R=function(){var a,O;return rq((a=G.character)==null?void 0:a.call(G))||rq((O=G.previousCharacter)==null?void 0:O.call(G))},Z=_.Q(_.ks(0,void 0,"CYT8Ob")),K=Z.next().value,m=Z.next().value;
_.xc(function(){if(window.ResizeObserver&&_.v("web_fix_rolling_numbers_zoom_safari")){var a=new _.qx(function(){var N,q,w=Math.round(((q=(N=c.value.querySelector("div"))==null?void 0:N.getBoundingClientRect().height)!=null?q:0)*100)/100;w&&m(w)},500),O=new ResizeObserver(function(){a.fire()});
O.observe(c.value);_.ty(function(){O.disconnect();a.dispose()})}});
_.xs(function(){var a=_.v("web_fix_rolling_numbers_zoom_safari")?K:G.marginMultiplier;if(a()){var O;(O=I)==null||O.cancel();if(R()){var N;O=((N=G.previousCharacter)==null?0:N.call(G))?Number(G.previousCharacter())+10:G.rollUp()?0:30;var q;if((q=G.shouldAnimate)==null||!q.call(G)){var w,F;O-=WMr((w=G.character)==null?void 0:w.call(G),(F=G.previousCharacter)==null?void 0:F.call(G),G.rollUp(),O)}}else{O=G.rollUp()?0:2;var n;(n=G.shouldAnimate)!=null&&n.call(G)||(N=O,q=G.rollUp()?-1:1,O=N-q)}c.value.style.marginTop=
"-"+O*a()+"px";var U;if((U=G.shouldAnimate)==null?0:U.call(G)){var k,p;I=fNp(c.value,(k=G.character)==null?void 0:k.call(G),(p=G.previousCharacter)==null?void 0:p.call(G),G.rollUp(),O,R(),a())}else{var M;c.value.style.display=((M=G.character)==null?0:M.call(G))?"":"none"}}},"CA6Pmf");
return _.e("animated-rolling-character",{el:c,class:"animatedRollingCharacterHost"},_.e(_.l,{cond:R,then:function(){return _.e(hQ2,null)},
else:function(){return _.e(du2,{character:G.character})}}))},"C");
CGV.idomCompat=!0;var Bli=_.v("web_enable_sink_animated_rolling_character_and_number")?CGV:zor,HDT=_.v("web_enable_sink_animated_rolling_character_and_number")?CGV:JQi(zor),hQ2=_.W(function(){for(var G=[],c=1;c<30;c++)G.push(_.e("div",null,c%10));return _.e(_.FG,null,_.e("div",null,"\u00a0"),G,_.e("div",null,"\u00a0"))},"D"),du2=_.W(function(G){var c=G.character;
return _.e(_.FG,null,_.e("div",null,"\u00a0"),_.e(_.l,{cond:function(){return!(c==null?0:c())||_.mg(c==null?void 0:c())},
then:function(){return _.e("div",null,"\u00a0")},
else:function(){return _.e("div",null,c)}}),_.e("div",null,"\u00a0"))},"E");rQr.componentType=Vg;var Xj2=_.W(function(G){var c=void 0,I=void 0,R=function(){var K;return((K=G.fontSizeMultiplier)==null?0:K.call(G))?G.heightPx()*G.fontSizeMultiplier():G.heightPx()},Z=_.SE(function(){if(!G.numberText())return[];
var K,m,a=((K=G.forceRollUp)==null?void 0:K.call(G))||!I||!((m=G.numberValue)==null?0:m.call(G))||I<G.numberValue(),O,N=G.numberText();K=R();m=!((O=G.shouldAnimate)==null||!O.call(G));O=[];var q=0,w=0,F=(c?c.replace(/\D/g,"").length:0)-(N?N.replace(/\D/g,"").length:0),n=c?c.split(/(\d)/).filter(Boolean):[];for(N=N.split(/(\d)/).filter(Boolean);F<0;){var U=N[w];O.push({character:U,rollUp:a,marginMultiplier:K,shouldAnimate:m});w++;rq(U)&&F++}for(;q<F;)U=n[q],O.push({previousCharacter:U,rollUp:a,marginMultiplier:K,
shouldAnimate:m}),q++,rq(U)||F++;for(;w<N.length;)F=N[w],U=n[q],rq(F)===rq(U)?(w++,q++):rq(F)?(q++,F=void 0):rq(U)&&(w++,U=void 0),O.push({character:F,previousCharacter:U,rollUp:a,marginMultiplier:K,shouldAnimate:m});c=G.numberText();var k;I=(k=G.numberValue)==null?void 0:k.call(G);return O},void 0,"kWiBv");
return _.e("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return G.numberText()?["height: "+R()+"px;","line-height: "+G.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.e(_.fh,{each:Z,keyBy:"INDEX"},function(K){return _.e(HDT,{character:function(){return K().character},
previousCharacter:function(){return K().previousCharacter},
marginMultiplier:function(){return K().marginMultiplier},
rollUp:function(){return K().rollUp},
shouldAnimate:function(){return K().shouldAnimate}})}))},"F");
Xj2.idomCompat=!0;_.ybK=_.v("web_enable_sink_animated_rolling_character_and_number")?Xj2:JQi(rQr);var gT0=function(G,c){this.fillAnimation=new Animation(ho8(G),document.timeline);this.strokeAnimation=new Animation(dVg(c),document.timeline)};
gT0.prototype.play=function(){var G,c;(c=(G=this.fillAnimation).play)==null||c.call(G);var I,R;(R=(I=this.strokeAnimation).play)==null||R.call(I)};
gT0.prototype.cancel=function(){var G,c;(c=(G=this.fillAnimation).cancel)==null||c.call(G);var I,R;(R=(I=this.strokeAnimation).cancel)==null||R.call(I)};_.Jx=_.W(function(G){var c=G.model;var I=G.pointerDownEvent;var R=G.pointerUpEvent;var Z=G.pointerLeaveEvent;var K=G.hovered;G=_.mX("yt-touch-feedback-shape");var m=_.mX("div"),a=_.mX("div"),O=_.Q(_.Gz(function(){return(R==null?0:R())||(Z==null?0:Z())?!1:!(I==null||!I())||!1})),N=O.next().value,q=O.next().value,w=void 0,F=function(){!w&&a.value&&m.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(w=new gT0(a.value,m.value));
var z;(z=w)==null||z.play()},n=function(){var z;
(z=w)==null||z.cancel()},U=function(){var z;
(z=w)==null||z.cancel()};
_.xs(function(){(R==null?0:R())&&F()},"bg756c");
_.xs(function(){(I==null?0:I())&&n()},"QAes8c");
_.xs(function(){(Z==null?0:Z())&&U()},"YaFbrc");
O=_.Nx(function(){F();q(!1)});
var k=_.Nx(function(){n();q(!0)}),p=_.Nx(function(){U();
q(!1)});
_.ty(function(){if(w){var z;(z=w)==null||z.cancel();w=void 0}});
var M={};N=_.O3("yt-spec-touch-feedback-shape",function(){return CcB(c().color)},function(){return HOb(c().thumbnailSize,!!c().isExtended)},(M["yt-spec-touch-feedback-shape--focused"]=function(){return!!c().focused&&!c().disabled},M["yt-spec-touch-feedback-shape--circular"]=function(){return!!c().circular},M["yt-spec-touch-feedback-shape--down"]=N,M["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!c().triggerEvents},M["yt-spec-touch-feedback-shape--hovered"]=function(){return K==
null?void 0:K()},M));
return _.e("yt-touch-feedback-shape",{el:G,class:N,style:_.wi({"margin-top":function(){return c().customTopExtend?"-"+c().customTopExtend+"px":void 0}}),
"on:mousedown":k,"on:mouseup":O,"on:pointerleave":p,"on:touchstart":k,"on:touchend":O,"aria-hidden":!0},_.e(_.l,{cond:function(){return!!c().hoverEffect},
then:function(){return _.e("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.wi({"border-radius":function(){return c().borderRadius},
background:function(){var z;if(z=c().hoverEffect){for(var t=[],x=_.Q((z==null?void 0:z.lightingTechniques)||[]),C=x.next();!C.done;C=x.next())switch(C.value){case 2:var H=C=void 0,g=void 0,QO=void 0;t.push("linear-gradient(180deg, "+((C=z)==null?void 0:(H=C.palette)==null?void 0:H.keyLight)+", "+((g=z)==null?void 0:(QO=g.palette)==null?void 0:QO.background)+")")}var T8,kp;t.push((T8=c().hoverEffect)==null?void 0:(kp=T8.palette)==null?void 0:kp.background);z=t.join(", ")}else z=void 0;return z}})})}}),
_.e("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.wi({"border-radius":function(){return c().borderRadius},
"border-color":function(){var z,t;return(z=c().touchEffect)==null?void 0:(t=z.palette)==null?void 0:t.background}}),
el:m}),_.e("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.wi({"border-radius":function(){return c().borderRadius},
"background-color":function(){var z,t;return(z=c().touchEffect)==null?void 0:(t=z.palette)==null?void 0:t.background}}),
el:a}))},"J");
_.Jx.idomCompat=!0;var Yzk={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 WR=_.wb();WR=WR.toLowerCase();if(_.aq(WR,"android")){var GYp=WR.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);GYp&&parseFloat(GYp[1])<100||WR.match("("+Object.keys(Yzk).join("|")+")")};var cQT=_.W(function(G){return _.e(_.l,{cond:G.aTagConfig,then:function(c){return _.e(_.Er,{aTagConfig:c,disabled:G.disabled,className:G.className,style:G.style,title:G.title,ariaLabel:G.ariaLabel,ariaCurrent:function(){var I,R;return((I=G.toggleable)==null?void 0:I.call(G))&&((R=G.toggled)==null?void 0:R.call(G))},
ref:G.ref},G.children)},
else:function(){return _.e("button",{el:_.YC(G.ref),"on:click":_.Nx(function(c){var I;return(I=G.onClick)==null?void 0:I.call(G,c)}),
class:G.className,title:G.title,style:G.style,disabled:G.disabled,"aria-pressed":function(){var c,I;return((c=G.toggleable)==null?0:c.call(G))?!((I=G.toggled)==null||!I.call(G)):void 0},
"aria-label":G.ariaLabel,"aria-disabled":G.visiblyDisabled,"aria-hidden":G.ariaHidden,tabindex:G.tabIndex},G.children)}})},"K"),RoA=_.W(function(G){var c=G.data;
var I=G.hasIconLeading;var R=G.hasIconLeadingTrailing;var Z=G.hasIconTrailing;var K=G.iconButton;var m=G.iconClassName;var a=G.secondaryIconClassName;var O=G.icon;var N=G.secondaryIcon;var q=G.textContentClassName;return _.e(il,{className:"",style:"display: inherit; justify-content: center"},_.e(_.l,{debugInstance:"V4z1Uc",cond:function(){return O&&(I()||R()||(K==null?void 0:K()))},
then:function(){return _.e(il,null,_.e("div",{class:m,"aria-hidden":"true"},O==null?void 0:O()))}}),_.e(_.l,{debugInstance:"ok3btb",
cond:function(){return(c().buttonText||c().animatedTextProps||c().formattedButtonText)&&!(K==null?0:K())},
then:function(){return _.e(il,null,_.e(INA,{className:q,iconPosition:function(){return c().iconPosition},
text:function(){return c().buttonText},
oneOffCustomTextWrap:function(){return c().oneOffCustomTextWrap},
formattedButtonText:function(){return c().formattedButtonText},
animatedTextProps:function(){return c().animatedTextProps}}))}}),_.e(_.l,{debugInstance:"DO5Rz",
cond:Z,then:function(){return _.e(il,null,_.e("div",{class:m},O==null?void 0:O()))}}),_.e(_.l,{debugInstance:"bnojSc",
cond:R,then:function(){return _.e(il,null,_.e("div",{class:a},N==null?void 0:N()))}}),_.e(_.l,{debugInstance:"HN3kad",
cond:function(){return!c().disabled&&!0},
then:function(){return _.e(_.Jx,{model:function(){var w=c();return{color:w.style==="overlay-dark"?4:w.style==="overlay"?w.type==="filled"?4:3:w.type==="filled"||w.style==="call-to-action-inverse"||w.style==="mono-inverse"?2:1}}})}}))},"L"),INA=_.W(function(G){var c=function(){var I,R;
return((I=G.iconPosition)==null?void 0:I.call(G))==="icon-with-label"||((R=G.oneOffCustomTextWrap)==null?void 0:R.call(G))};
return _.e("div",{class:G.className,"aria-hidden":function(){var I,R,Z;return((I=G.ariaHidden)==null?void 0:I.call(G))&&(!((R=G.animatedTextProps)==null||!R.call(G))||!((Z=G.formattedButtonText)==null||!Z.call(G)))}},_.e(_.B1,null,_.e(_.W1,{when:function(){var I;
return(I=G.animatedTextProps)==null?void 0:I.call(G)}},function(){return _.e(_.ybK,{numberText:function(){return G.animatedTextProps().numberText},
numberValue:function(){return G.animatedTextProps().numberValue},
heightPx:function(){return G.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return G.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return G.animatedTextProps().shouldAnimate},
forceRollUp:function(){return G.animatedTextProps().forceRollUp}})}),_.e(_.W1,{when:function(){var I;
return(I=G.formattedButtonText)==null?void 0:I.call(G)}},function(){return _.e(_.ul,{text:function(){return Object.assign({},G.formattedButtonText(),{lineBreakMode:c()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":G.formattedButtonText().lineBreakMode,
alignment:c()?"TEXT_ALIGNMENT_CENTER":G.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!c()}})}),_.e(_.W1,{when:function(){var I,R;
return((I=G.iconPosition)==null?void 0:I.call(G))==="icon-with-label"&&((R=G.text)==null?void 0:R.call(G))}},function(){return _.e(_.ul,{text:function(){return{content:G.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.e(_.iV,null,function(){return G.text})))},"M"),ZOp=_.W(function(G){return _.e(_.l,{debugInstance:"kM7Sgc",
cond:G.hasLabel,then:function(){var c;return _.e("label",{class:G.className},G.children,(c=G.textContent)==null?void 0:c.call(G))},
else:function(){return G.children}})},"N"),il=_.W(function(G){return G.children},"O");var KMK=_.W(function(G){function c(){K(void 0);a(void 0);N(void 0)}
var I=_.YC(),R=_.Q(_.ks(void 0,void 0,"Ug77pc")),Z=R.next().value,K=R.next().value;R=_.Q(_.ks(void 0,void 0,"XGf7Zb"));var m=R.next().value,a=R.next().value,O=_.Q(_.ks(void 0,void 0,"w55oqd"));R=O.next().value;var N=O.next().value;O=_.Q(_.ks(0,void 0,"rBgpzc"));var q=O.next().value,w=O.next().value;O=_.Nx(function(){switch(q()){case 1:w(2);break;case 3:var n,U;(U=(n=I.value).hidePopover)==null||U.call(n);w(0);c()}});
_.xs(function(){if(G.show()){var n;K((n=G.children)==null?void 0:n.call(G));var U;a((U=G.location)==null?void 0:U.call(G));var k;N((k=G.classNames)==null?void 0:k.call(G));switch(q()){case 0:var p,M;(M=(p=I.value).showPopover)==null||M.call(p);w(1);break;case 3:w(1);var z,t;(t=(z=I.value).hidePopover)==null||t.call(z);var x,C;(C=(x=I.value).showPopover)==null||C.call(x)}}else switch(q()){case 2:w(3);break;case 1:var H,g;(g=(H=I.value).hidePopover)==null||g.call(H);c();w(0)}},"Z8V4Qb");
_.tI(function(){});
var F={};return _.e("yt-popover",{popover:"manual",el:I,style:_.wi({left:function(){var n;return(n=m())==null?void 0:n.left},
top:function(){var n;return(n=m())==null?void 0:n.top},
bottom:function(){var n;return(n=m())==null?void 0:n.bottom},
right:function(){var n;return(n=m())==null?void 0:n.right}}),
class:_.O3("ytPopoverComponentHost",R,(F.ytPopoverComponentHostClosing=function(){return q()===3},F.ytPopoverComponentHostSeeThrough=function(){var n;
return((n=G.seeThrough)==null?void 0:n.call(G))===!0},F)),
"on:animationend":O},Z)},"Q");var Pce={left:"0px",right:"auto",top:"0px",bottom:"auto"},QY9=function(){var G=this;this.registerTooltipElement=function(I){var R;G.tooltipElement=(R=I.querySelector("yt-popover"))!=null?R:void 0};
var c=_.Q(_.ks(void 0,void 0,"EIh5sc"));this.state=c.next().value;this.setState=c.next().value;c=_.Q(_.ks(void 0,void 0,"PC1M0b"));this.schedulerJobID=c.next().value;this.setSchedulerJobID=c.next().value},ZZb=function(G,c){var I=vU,R=_.dJ.addJob(function(){var Z=mVA(I,G,c);
I.currentConfig=c;I.setState({text:c.text,location:_.v("web_tooltip_location_fix")?void 0:Z,anchor:G,offset:c.offset,style:c.style})},4,c.delay);
I.setSchedulerJobID(R)},KfC=function(){var G=vU,c=G.schedulerJobID();
c&&(_.dJ.cancelJob(c),G.setSchedulerJobID(void 0));G.setState(void 0);G.currentConfig=void 0};
QY9.prototype.notify=function(G,c){var I;((I=this.state())==null?void 0:I.anchor)===G&&(I=mVA(this,G,c),this.currentConfig=c,this.setState({text:c.text,location:_.v("web_tooltip_location_fix")?void 0:I,anchor:G,offset:c.offset,style:c.style}))};
var mVA=function(G,c,I){var R=c.getBoundingClientRect();c=window.innerWidth;var Z=window.innerHeight,K=I.location,m=I.offset;I=I.text;if(G=G.tooltipElement){var a=getComputedStyle(G);G=a.font;var O=nQ(a.lineHeight),N=nQ(a.paddingLeft),q=nQ(a.paddingRight),w=nQ(a.paddingTop);a=nQ(a.paddingBottom);var F=document.createElement("canvas").getContext("2d");F.font=G;I={width:F.measureText(I).width+N+q,height:O+w+a}}else I=void 0;G=I;if(!G)return Pce;I=G.width;G=G.height;N=m+G;w=m+I;O=R.top>=N;N=Z-R.bottom>=
N;q=R.left>=w;w=c-R.right>=w;a=K;switch(K){case "top":!O&&N&&(a="bottom");break;case "bottom":!N&&O&&(a="top");break;case "left":!q&&w&&(a="right");break;case "right":!w&&q&&(a="left")}switch(a){case "top":K=R.left+R.width/2-I/2;R=R.top-G-m;break;case "bottom":K=R.left+R.width/2-I/2;R=R.bottom+m;break;case "left":K=R.left-I-m;R=R.top+R.height/2-G/2;break;case "right":K=R.right+m;R=R.top+R.height/2-G/2;break;default:K=R.left+R.width/2-I/2,R=R.bottom+m}m=Object.assign({},Pce);K+I>c?(m.right="0px",m.left=
"auto"):(m.left=Math.round(Math.max(0,K)+window.scrollX)+"px",m.right="auto");R+G>Z?(m.bottom="0px",m.top="auto"):(m.top=Math.round(Math.max(0,R)+window.scrollY)+"px",m.bottom="auto");return m};var vU;vU=new QY9;_.aN0=_.W(function(){var G=_.SE(function(){var Z;return(Z=vU.state())==null?void 0:Z.anchor},void 0,"tiGUn"),c=_.SE(function(){var Z;
return(Z=vU.state())==null?void 0:Z.text},void 0,"TA2GQe"),I=_.SE(function(){var Z;
return(Z=vU.state())==null?void 0:Z.style},void 0,"ucvFsf"),R=_.v("web_tooltip_location_fix")?_.SE(function(){var Z=G();
var K=vU.currentConfig;if(Z&&K)return mVA(vU,Z,K)},void 0,"EpDz6"):_.SE(function(){var Z;
return(Z=vU.state())==null?void 0:Z.location},void 0,"aRJtfd");
return _.e("yt-tooltip",{class:"ytTooltipContainerHost",el:_.YC(vU.registerTooltipElement),"aria-hidden":"true"},_.e(KMK,{classNames:function(){switch(I()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:R,show:function(){return!!c()&&!!R()},
seeThrough:!0},c))},"R");var tR8=eE("stamper-context");_.fx=_.W(function(G){var c=G.data;var I=G.icon;var R=G.iconName;var Z=G.animateIcon;var K=G.secondaryIcon;var m=G.secondaryIconName;var a=G.focusedOverride;var O=G.clientOnlyWizTooltipsEnabled;QBb();var N=Xfg(c),q=N.size,w=N.style;G=N.disabled;var F=N.onTap,n=N.alignByText,U=N.aTagConfig,k=N.customColors,p=N.segmentedPosition,M=N.toggled,z=N.toggleable,t=N.accessibilityLabel,x=N.onToggle,C=N.iconPosition,H=N.oneOffCustomTextWrap,g=N.disableTextEllipsis,QO=N.disableBackdropFilter,T8=N.tooltipText,
kp=N.ariaHidden,FB=N.tabIndex,oq=N.buttonText,Wr=N.formattedButtonText,iT=N.animatedTextProps,z8=N.onClickRateLimitMs,GV=GgC(c,I,K,R,m,a,Z),ei=GV.type;I=GV.shouldFocus;R=GV.hasIconLeading;Z=GV.hasIconTrailing;var Hr=GV.hasIconLeadingTrailing,v0=GV.hasIconOnly;K=GV.hasIconOnly40;var kK=GV.hasIconWithLabel;m=GV.iconButton;var pN=GV.visiblyDisabled;a=GV.overrideSmallSizeIcon;var bH=GV.iconToRender;GV=GV.secondaryIconToRender;var n1=_.Q(PgT(T8,N.tooltipShape)).next().value,qf=function(UK){F==null||F(UK);
z()&&(x==null||x(UK))},hU=_.SE(function(){return z8==null?void 0:z8()},void 0,"siKywb"),we=_.SE(function(){return hU()?d3B(qf,hU()):qf},void 0,"wDTcN");
N={};var xK={};return _.e(ZOp,{className:_.O3("yt-spec-button-shape-with-label",(N["yt-spec-button-shape-with-label--is-overlay"]=function(){return w()==="overlay"||w()==="overlay-dark"},N)),
hasLabel:kK,textContent:function(){return _.e(INA,{text:oq,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:H,iconPosition:C,formattedButtonText:Wr,animatedTextProps:iT})}},_.e(cQT,{aTagConfig:U,
className:_.O3("yt-spec-button-shape-next",function(){return cTp(ei())},function(){return pN()?void 0:IRi(w())},function(){return RN8(q())},(xK["yt-spec-button-shape-next--disabled"]=pN,xK["yt-spec-button-shape-next--focused"]=I,xK["yt-spec-button-shape-next--icon-trailing"]=Z,xK["yt-spec-button-shape-next--icon-leading"]=R,xK["yt-spec-button-shape-next--icon-leading-trailing"]=Hr,xK["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Hr()&&!(oq()||Wr())},xK["yt-spec-button-shape-next--icon-button"]=
function(){return v0()||kK()},xK["yt-spec-button-shape-next--icon-only-default"]=K,xK["yt-spec-button-shape-next--align-by-text"]=n,xK["yt-spec-button-shape-next--segmented-start"]=function(){return p()==="start"},xK["yt-spec-button-shape-next--segmented-end"]=function(){return p()==="end"},xK["yt-spec-button-shape-next--override-small-size-icon"]=a,xK["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=H,xK["yt-spec-button-shape-next--disable-text-ellipsis"]=g,xK["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!QO()&&!_.v("web_disable_backdrop_filter")},xK)),
style:function(){var UK=k();if(UK){var YK=UK.color;var en=UK.backgroundColor;UK=UK.borderColor;var de="";YK&&(de+="color: "+YK+";");en&&(de+="background-color: "+en+";");UK&&(de+="border-color: "+UK+";");YK={style:de}}else YK={};return YK.style},
onClick:function(UK){we()(UK)},
disabled:G,ariaLabel:t,toggleable:z,toggled:M,title:function(){return(O==null?0:O())||!T8()?"":T8()},
visiblyDisabled:pN,ariaHidden:kp,tabIndex:FB,ref:function(UK){(O==null?0:O())&&n1(UK)}},_.e(RoA,{data:c,
hasIconLeading:R,hasIconLeadingTrailing:Hr,hasIconTrailing:Z,iconButton:m,icon:bH,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:GV})))},"T");
_.fx.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.BR=_.W(function(G){var c=G.data;var I=G.className;var R=G.style;var Z=G.useOutlinedIcon;var K=G.buttonOverrides;var m=G.animatedTextProps;var a=G.onClick;var O=G.target;var N=_.mX("button-view-model",function(x){x.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var C=c().targetId;C&&_.yV(_.gg(),C,x);return function(){Xi(_.gg(),x)}}),q=function(){return c().iconName},w=_.o1(function(x){a:{var C=c().entityKey,H=c().buttonEntitySelectorType;
if(H&&C)switch(H){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":x=(x=_.eu(x,C))?{isHidden:x.adsState==="ADS_STATE_NONE"||x.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:x={isHidden:!1};break a}x=void 0}return x}),F,n=(F=_.wH().resolve(_.qR(_.d0)))==null?void 0:F(),U=function(){var x=c();
var C=K==null?void 0:K(),H=m==null?void 0:m(),g=O==null?void 0:O();if(x){var QO=qJp(x.type);var T8=!!x.title||!!x.titleFormatted;var kp=!(!x.iconName&&!x.iconImage);T8=kp&&!T8?"icon-only":kp?x.iconTrailing||x.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;T8==="icon-only-40"&&(QO="text");var FB;kp=(FB=C==null?void 0:C.state)!=null?FB:wAf(x.state);var oq,Wr=(oq=C==null?void 0:C.disabled)!=null?oq:x.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||x.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.v("web_button_vm_refactor_disabled")){var iT;Wr=(iT=C==null?void 0:C.disabled)!=null?iT:kp==="disabled"}H=H&&H.numberText&&!isNaN(Number(H.numberValue))?H:void 0;oq=Object;iT=oq.assign;FB=x.title;var z8=x.titleFormatted,GV=x.accessibilityText,ei=lRq(x.style),Hr=Ffq(x.buttonSize);g=NYp(x,N,Wr,a,g);Wr=Wr&&!x.onDisabledTap;var v0=OZO(x,N),kK=x.customFontColor,pN=x.customBackgroundColor;var bH=x.customBorderColor;var n1=x.customDarkThemeFontColor,qf=x.customDarkThemeBackgroundColor,hU=x.customDarkThemeBorderColor;
kK=n&&n1?n1:kK;pN=n&&qf?qf:pN;bH=n&&hU?hU:bH;bH={color:kK?_.pE(kK):void 0,backgroundColor:pN?_.pE(pN):void 0,borderColor:bH?_.pE(bH):void 0};if(hU=_.D(x.tooltipData,fg0)){var we;pN={text:(we=hU.tooltipText)!=null?we:"",location:aRg(hU.placement),style:hU.style}}else pN=void 0;x=iT.call(oq,{},{buttonText:FB,formattedButtonText:z8,animatedTextProps:H,accessibilityLabel:GV,style:ei,type:QO,state:kp,size:Hr,iconPosition:T8,onTap:g,disabled:Wr,aTagConfig:v0,customColors:bH,tooltipText:x.tooltip,tooltipShape:pN},
C)}else x={style:"mono",type:"text",state:"active",size:"M"};x.focused=M();return x},k=function(){return gYr(U(),!!c().iconName)};
G=_.Q(_.ks(!1,void 0,"yZ8hab"));F=G.next().value;var p=G.next().value,M=F;G=_.Nx(function(){var x=_.wH().resolve(_.qR(_.zb));x&&p(x.isKeyBoardInUse());return!1});
F=_.Nx(function(){p(!1);return!1});
_.xs(function(){var x,C=_.D(c==null?void 0:(x=c())==null?void 0:x.onVisible,_.JN);C&&_.iD(C,{disableClickTracking:!0})},"G9MlKd");
var z=function(){var x;return(c==null?0:(x=c())==null?0:x.iconImage)?{sources:[c().iconImage]}:void 0},t=_.v("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.e("button-view-model",{el:N,class:_.O3("ytSpecButtonViewModelHost",I),"on:focusin":G,"on:focusout":F},_.e(_.l,{cond:function(){var x,C;return!((C=c().entityKey&&c().buttonEntitySelectorType&&((x=w())==null?void 0:x.isHidden))!=null&&C)},
then:function(){return _.e(_.l,{cond:z,then:function(x){return _.e(_.fx,{data:U,icon:function(){return _.e(_.yc,{data:x,alt:"",targetWidth:k,targetHeight:k,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:t})},
else:function(){return _.e(_.fx,{data:U,icon:function(){return _.e(_.F6,{icon:q,active:function(){return(Z==null?0:Z())?!1:U().toggled},
animateIcon:function(){var x;return!!(R==null?0:(x=R())==null?0:x.animateIcon)},
size:k})},
clientOnlyWizTooltipsEnabled:t})}})}}))},"V");
_.BR.idomCompat={callbacks:{onClick:!0}};_.R1(_.W(function(G){return _.e("yt-button-view-model",{id:G.id,class:_.O3(G.scopingClassName,G.classes),icon:function(){var c;return(c=G.icon)==null?void 0:c.call(G)},
"dialog-dismiss":function(){var c;return((c=G.dialogDismiss)==null?0:c.call(G))?"":void 0}},_.e(_.BR,{data:function(){var c;
return(c=G.data)==null?void 0:c.call(G)},
className:function(){var c;return(c=G.className)==null?void 0:c.call(G)},
style:function(){var c;return(c=G.style)==null?void 0:c.call(G)},
useOutlinedIcon:function(){var c;return(c=G.useOutlinedIcon)==null?void 0:c.call(G)},
buttonOverrides:function(){var c;return(c=G.buttonOverrides)==null?void 0:c.call(G)},
animatedTextProps:function(){var c;return(c=G.animatedTextProps)==null?void 0:c.call(G)},
onClick:function(c){var I;return(I=G.onClick)==null?void 0:I.call(G,c)}}))},"W"),"yt-button-view-model",{props:{data:_.bl,
className:_.bl,style:_.bl,useOutlinedIcon:_.bl,buttonOverrides:_.bl,animatedTextProps:_.bl,onClick:_.G9,scopingClassName:_.bl,id:_.bl,icon:_.bl,dialogDismiss:_.bl,classes:_.bl,target:_.G9}});_.R1(_.W(function(G){var c=G.data;var I=G.id;var R=G.className;var Z=G.iconName;var K=G.animateIcon;var m=G.secondaryIconName;G=_.Q(_.ks(!1,void 0,"TtJl8"));var a=G.next().value,O=G.next().value,N=function(){var w=_.wH().resolve(_.qR(_.zb));w&&O(w.isKeyBoardInUse())},q=function(){O(!1)};
G=_.mX("yt-button-shape",function(w){if(_.wH().resolve(_.qR(_.zb)))return w.addEventListener("focusin",N),w.addEventListener("focusout",q),function(){w.removeEventListener("focusin",N);w.removeEventListener("focusout",q)}});
return _.e("yt-button-shape",{el:G,id:I,class:R},_.e(_.l,{cond:c,then:function(){return _.e(_.fx,{data:c,iconName:Z,secondaryIconName:m,focusedOverride:a,animateIcon:K})}}))},"X"),"yt-button-shape",{props:{data:_.bl,
id:_.bl,className:_.bl,iconName:_.bl,animateIcon:_.bl,secondaryIconName:_.bl,clientOnlyWizTooltipsEnabled:_.bl,disableUpgrade:_.bl},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var tx=function(){var G=_.J.apply(this,arguments)||this;G.isGoalActive=!0;return G};
_.u(tx,_.J);tx.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
tx.prototype.progressBarChanged=function(){var G=_.Q1(this.hostElement).querySelector("#progress-bar-progress"),c,I,R,Z=(R=Number((c=this.creatorGoalState)==null?void 0:c.currentGoalCount)/Number((I=this.creatorGoalState)==null?void 0:I.totalGoalCount)*100)!=null?R:0,K;G.style.width=((K=Math.min(Z,100))!=null?K:0)+"%"};
tx.prototype.goalStateChanged=function(){var G;this.isGoalActive=((G=this.creatorGoalState)==null?void 0:G.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var c;G={"--yt-progress-bar-color":daA((c=this.creatorGoalState)==null?void 0:c.progressBarColor)};_.eD(this.hostElement,G)};
tx.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Nh.Object.defineProperties(tx.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var G;return this.isGoalActive&&!((G=this.creatorGoalState)==null||!G.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.endTimestampMs){var c;G=Number((c=this.creatorGoalState)==null?void 0:c.endTimestampMs)/1E3;return{seconds:String(G)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.themedTargetImage){var c;G=_.D((c=this.creatorGoalState)==null?void 0:c.themedTargetImage,$FK);return this.isAppDarkTheme()?G==null?void 0:G.imageDark:G==null?void 0:G.imageLight}}}});
_.Nh.Object.defineProperties(tx,{template:{configurable:!0,enumerable:!0,get:function(){return WP0()}}});
tx.prototype.goalStateChanged=tx.prototype.goalStateChanged;tx.prototype.progressBarChanged=tx.prototype.progressBarChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],tx.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);
_.r([_.E({selectorArgs:["data.creatorGoalEntityKey"],selector:function(G,c){return _.a6(G.entities,"creatorGoalEntity",c)}}),
_.h("design:type",Object)],tx.prototype,"creatorGoalState",void 0);_.r([_.E(),_.h("design:type",Object)],tx.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],tx.prototype,"isGoalActive",void 0);_.r([_.A("creatorGoalState","isGoalActive"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tx.prototype,"shouldShowCountdown",null);_.r([_.A("creatorGoalState"),_.h("design:type",Object),_.h("design:paramtypes",[])],tx.prototype,"endTimestamp",null);
_.r([_.A("creatorGoalState"),_.h("design:type",Object),_.h("design:paramtypes",[])],tx.prototype,"targetIconThemedImage",null);_.r([_.wD("creatorGoalState.currentGoalCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tx.prototype,"progressBarChanged",null);_.r([_.wD("creatorGoalState.creatorGoalState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tx.prototype,"goalStateChanged",null);
_.r([_.Em({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],tx);_.B(tx,"yt-creator-goal-progress-flow-view-model",function(){return WP0()},{mode:0});var Tle;var OON;var hx=function(){return _.J.apply(this,arguments)||this};
_.u(hx,_.J);hx.prototype.attached=function(){var G,c,I;if(this==null?0:(G=this.data)==null?0:(c=G.pdgPurchasedBumperLoggingDirectives)==null?0:(I=c.loggingDirectives)==null?0:I.trackingParams){var R,Z,K;D5r(this==null?void 0:(R=this.data)==null?void 0:(Z=R.pdgPurchasedBumperLoggingDirectives)==null?void 0:(K=Z.loggingDirectives)==null?void 0:K.trackingParams)}};
hx.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],hx.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hx.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],hx);
_.B(hx,"yt-live-chat-item-bumper-view-model",function(){if(OON===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Tle===void 0&&(Tle=document.createElement("template"));var R=Tle;I.call(c,R.content.cloneNode(!0),G.content.firstChild);OON=G}G=OON;return G},{mode:0});var eop;var NlT;_.gi=function(G,c){this.data=G;this.actions=c;this.data=G;this.actions=c};
_.x5=function(){};_.dm={};_.dm.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(G,c){oxB(this.hostElement,G,c)},
getNavigationEndpointPopupAction:function(G){return U5r(G,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(G,c){u7A(this.hostElement,G,c,this.openPopupConfig)}};var VUg=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Cx={};
_.Cx.YtEndpointBehavior=[_.dm.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.H1("openPopupConfig");(this.useClickHandler=_.XG("useClickHandler",!1))?this.hostElement.addEventListener("click",NY(this,this.onEndpointClick_)):(ha(this.hostElement,"tap",NY(this,this.onEndpointTap_)),ha(this.hostElement,"touchend",NY(this,this.onEndpointTouchEnd_)));ha(this.hostElement,"touchstart",NY(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
NY(this,this.onEndpointTapStart_))},
onEndpointClick_:function(G){sBT(this.hostElement,G,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(G){var c=this.hostElement,I=this.openPopupConfig,R=this.disableCommandHandlerOverride;R=R===void 0?!1:R;var Z=bZ0(G);if(Z){Z.href&&EU(Z.href);var K=G.detail;var m=K.sourceEvent;K=K.preventer;m=m.button!==void 0?m.button===0&&!U3(m):K?!U3(K):!0;Z.data&&m&&kg8(c,Z,G,I,R)}},
onEndpointTouchEnd_:function(G){U3(G)||bZ0(G)&&G.preventDefault()},
onEndpointTapStart_:function(G){pAA(G)}}];_.HR={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(G){for(var c=_.RD.getInstance(),I=_.Q(Object.keys(G)),R=I.next();!R.done;R=I.next()){var Z=R.value;R=G[Z];if(this&&this[R]){var K=c.actionRoutingMap.get(Z);K||(K=new Map,c.actionRoutingMap.set(Z,K));c.registerActionHandler(this,Z,this[R].bind(this),K)}else Z=Error("ld"),Z.params=R,_.yL(Z)}},
unregisterActionMap:function(G){_.PN(_.RD.getInstance(),G,this)}}]};var k5=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_"+(_.v("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.v("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.v("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.v("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.v("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.v("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var bf;var s3=new Map;var fRp=window.matchMedia("(forced-colors: active)").matches;var lN2;var qke;var wfK=new _.De("LOTTIE_LOADER_TOKEN");_.XX=_.W(function(G){var c=G.data;var I=G.className;var R=G.animationName;var Z=G.animationRef;var K=G.elRefForInterop;var m=_.Op("lottie-component"),a;_.ty(function(){var N;return void((N=a)==null?void 0:N.destroy())});
var O;_.xs(function(){var N=_.dN(R);if(N!==O){O=N;var q=Object.assign({},{animationName:N,animationRef:_.dN(Z)},_.dN(c));try{_.wH().resolve(wfK)().then(function(n){var U;(U=a)==null||U.destroy();var k,p;U=(p=K==null?void 0:(k=K())==null?void 0:k.value)!=null?p:m.value;k=q.animationRef;p=q.listeners;n=n.loadAnimation(Object.assign({},{container:U},q.animationConfig));k&&(k.lottieEl=n);if(p)for(U=_.Q(Object.entries(p)),k=U.next();!k.done;k=U.next())p=_.Q(k.value),k=p.next().value,(p=p.next().value)&&
n.addEventListener(k,p);a=n})}catch(n){N=n;
var w="LottieComponent error.";N.message&&(w+=" Original description: "+N.message);_.H_(N,w);_.Ck(N);var F;((F=q.listeners)==null?0:F.error)&&q.listeners.error(N)}}},"nrJISd");
return _.e(n0T,{cond:function(){return!(K==null?0:K())},
then:function(){return _.e("lottie-component",{class:_.O3("ytLottieComponentHost",I),el:m})}})},"Z");_.R1(_.W(function(G){return _.e("ytd-lottie-player",{id:G.id,hidden:G.hidden,class:G.className,"aria-label":G.ariaLabel,style:"display: block;"},_.e(_.XX,{data:G.data,animationName:function(){var c;return((c=G.data().animationConfig)==null?void 0:c.name)||""},
animationRef:function(){return G.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.bl,
id:_.bl,hidden:_.bl,className:_.bl,ariaLabel:_.bl}});var y5=function(){var G=_.J.apply(this,arguments)||this;G.animationRef={};G.delhiIconsEnabled=_.v("enable_web_delhi_icons");return G};
_.u(y5,_.J);_.P=y5.prototype;
_.P.handlePropertyChange=function(){var G=this.animatedIcon,c=this.active,I=this.isDarkTheme;if(G){var R=this.previousActive!==c;this.previousActive=c;this.animationRef.lottieEl?R?this.toggleAnimation(c,G.totalFrames):_.v("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(c,G.totalFrames):c?this.initializeAnimationAsToggled(G.lottiePlayerProps,G.totalFrames):this.initializeAnimationAsUntoggled(G.lottiePlayerProps);G.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
G.type;this.lottiePlayerProps=this.computeLottiePlayerProps(G,I)}};
_.P.computeLottiePlayerProps=function(G,c){var I=this.deepCloneLottiePlayerProps(G);c?(c=G.nameDarkTheme,G=G.pathDarkTheme):(c=G.name,G=G.path);I.animationConfig.name=c;(c=s3.get(G))?I.animationConfig.animationData=c:I.animationConfig.path=G;return I};
_.P.initializeAnimationAsToggled=function(G,c){G.animationConfig.initialSegment=[c-1,c]};
_.P.initializeAnimationAsUntoggled=function(G){G.animationConfig.initialSegment=void 0};
_.P.toggleAnimation=function(G,c){if(G){var I;(I=this.animationRef.lottieEl)==null||I.playSegments([0,c],!0)}else{var R;(R=this.animationRef.lottieEl)==null||R.playSegments([0,1],!0)}};
_.P.setAnimationState=function(G,c){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(G?c-1:0,!0)};
_.P.deepCloneLottiePlayerProps=function(G){var c=Object.assign({},G.lottiePlayerProps.animationConfig);G=Object.assign({},G.lottiePlayerProps);G.animationConfig=c;return G};
y5.prototype.handlePropertyChange=y5.prototype.handlePropertyChange;_.r([_.E(),_.h("design:type",Object)],y5.prototype,"animatedIcon",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],y5.prototype,"active",void 0);_.r([_.E(),_.h("design:type",Boolean)],y5.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],y5.prototype,"animatedIconType",void 0);_.r([_.E(),_.h("design:type",Boolean)],y5.prototype,"previousActive",void 0);
_.r([_.E(),_.h("design:type",Object)],y5.prototype,"lottiePlayerProps",void 0);_.r([_.E(),_.h("design:type",Object)],y5.prototype,"animationRef",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],y5.prototype,"delhiIconsEnabled",void 0);_.r([_.wD("animatedIcon","active","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],y5.prototype,"handlePropertyChange",null);_.r([_.Em({is:"yt-animated-icon",disableElementRegistration:!0})],y5);
_.B(y5,"yt-animated-icon",function(){if(qke===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;lN2===void 0&&(lN2=document.createElement("template"));var R=lN2;I.call(c,R.content.cloneNode(!0),G.content.firstChild);qke=G}G=qke;return G},{mode:2});var FMK;var nY0;_.LQ=_.W(function(G){var c={value:null,cancelled:!1};_.ty(function(){c.cancelled=!0});
var I=_.SE(G.data,{equals:function(R,Z){return R.iconName===Z.iconName&&R.iconStyle===Z.iconStyle&&R.iconSize===Z.iconSize&&R.iconSetName===Z.iconSetName&&R.iconSelected===Z.iconSelected}},"ck24jb");
return _.e("span",{class:"yt-icon-shape",el:_.YC(function(R){_.xs(function(){var Z,K=(Z=G.options)==null?void 0:Z.call(G);Z=I();tUB(R,c,Z,K)},"v878Je")})})},"ba");
_.LQ.idomCompat=!0;var Q$p=["youtube_fill","youtube_outline"];var vYB=new _.GE({type:"iconset",value:void 0}),gm=function(){var G=_.J.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.iconName="";G.iconsetName="yt-icons";G.iconset=null;G.missingIconSet=!1;G.iconType=null;G.iconShapeDataSignal=_.ks(void 0,void 0,"TaEgXd");G.renderingOptionsSignal=_.ks({iconWidth:"100%",iconHeight:"100%",iconFilter:G.iconFilter,iconColor:G.gradientColor},void 0,"a1vqYe");G.wizHasRendered=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return G};
_.u(gm,_.J);gm.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
gm.prototype.handlePropertyChange=function(){var G=this,c,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M;return _.T(function(z){switch(z.nextAddress){case 1:if(c=!G.icon&&!G.iconName||!G.isAttached)return z.return();I=G;R=I.icon;Z=I.size;K=I.defaultToFilled;m=I.active;a=I.targetContainer;G.toggleContainerClass(a);_.v("kevlar_use_wil_icons")&&R&&(O=UaB(R),G.iconType=O.length?O[1]:null);if(R){z.jumpTo(2);break}G.iconsetName="";G.iconName="";return z.yield(G.renderIcon(a,R),3);case 3:return z.return();case 2:N=DVk(R);
q=UaB(N);q.length&&(G.iconsetName=q[0],G.iconName=q[1]);if(!_.v("kevlar_use_wil_icons")){z.jumpTo(4);break}w=gm;F=oY9;n=G.iconType;U=G.active;k=G.defaultToFilled;p=G.size;M=G.iconsetName;return z.yield(UV0(),6);case 6:return z.yield(F.call(w,n,U,k,p,M,z.yieldResult),5);case 5:G.iconShapeData=z.yieldResult;case 4:if(G.shouldRenderIconShape(a)){z.jumpTo(7);break}return z.yield(G.determineIconSet(N,m,K,Z,a),7);case 7:return z.yield(G.renderIcon(a,R),0)}})};
gm.prototype.toggleContainerClass=function(G){G?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var DVk=function(G){return!_.v("default_to_innertube_icon")||G.indexOf(":")>0?G:_.On(G)};
_.P=gm.prototype;_.P.determineIconSet=function(G,c,I,R){var Z=this;return _.T(function(K){return K.nextAddress==1?_.v("kevlar_system_icons")||_.H1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.H1("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?K.yield(Z.switchToYtSysIconset(G,c,I,R),3):K.jumpTo(2):K.nextAddress!=2?K.return():K.yield(Z.useYtSysIconsetForMissingIcons(G,c,I,R),0)})};
_.P.switchToYtSysIconset=function(G,c,I,R){var Z=this,K,m,a,O,N,q,w;return _.T(function(F){switch(F.nextAddress){case 1:if(!G||Z.iconsetName!=="yt-icons"&&Z.iconsetName!=="yt-sys-icons"){F.jumpTo(0);break}K=UaB(G);m=K[1];var n=m;if(S1C(n))m=n;else{var U=n=n.toLowerCase();(n=SI0.get(n))&&(U=n);m=U}_.v("enable_polymer_icons_replace_underscores_dash")&&m.includes("_filled")&&(m=m.replace(/_filled/g,"-filled"));return F.yield(Tz(m,!0),3);case 3:return a=F.yieldResult,F.yield(Tz(m,!1),4);case 4:if((O=
F.yieldResult)||c&&a)Z.iconsetName="yt-sys-icons";Z.iconName=Z.getIconName(m,c,I,O,a);if(R===24){F.jumpTo(0);break}N="yt-sys-icons"+R+":"+Z.iconName;return F.yield(Tz(N,!1,!0),6);case 6:return q=F.yieldResult,F.yield(Tz(N,!0,!0),7);case 7:w=F.yieldResult;Z.iconName=Z.getIconName(m,c,I,q,w);if(!c&&q||c&&w)Z.iconsetName="yt-sys-icons"+R;_.Vp(F)}})};
_.P.getIconName=function(G,c,I,R,Z){G.includes("-filled")&&(G=G.replace("-filled",""));return Z&&(c||I)?G+"-filled":G};
_.P.useYtSysIconsetForMissingIcons=function(G,c,I,R){var Z=this,K,m;return _.T(function(a){if(a.nextAddress==1)return Z.iconsetName!=="yt-icons"?a.jumpTo(0):a.yield(Tz(Z.iconName,!1,!1,!0),3);if(a.nextAddress!=4)return K=a.yieldResult,a.yield(Tz(Z.iconName,!1),4);m=a.yieldResult;if(K||!m)return a.jumpTo(0);Z.iconsetName="yt-sys-icons";return a.yield(Z.switchToYtSysIconset(G,c,I,R),0)})};
_.P.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var UV0=function(){return _.T(function(G){try{return G.return(_.wH().resolve(_.ek))}catch(c){return G.return(new Promise(function(I){_.kL().parkOrScheduleJob(function(){I(_.wH().resolve(_.ek))},2,"ci")}))}})},oY9=function(G,c,I,R,Z,K){R=R===void 0?24:R;
if(G){G=G.toLowerCase();var m=G.endsWith("_filled")||G.endsWith("-filled");c={iconName:G,iconStyle:(c===void 0?0:c)||(I===void 0?0:I)||m?"youtube_fill":"youtube_outline",iconSize:R,iconSetName:Z===void 0?"yt-icons":Z};I=!!K.resolveIcon(c);I||(c.iconSize=void 0,I=!!K.resolveIcon(c));!I&&m&&(c.iconName=G.substring(0,G.length-7),c.iconSize=R,I=!!K.resolveIcon(c),I||(c.iconSize=void 0,I=!!K.resolveIcon(c)));I||(c.iconStyle=void 0,I=!!K.resolveIcon(c));I||_.Ck(new _.iW("Icon not supported",{iconName:c.iconName,
iconStyle:c.iconStyle,iconSize:c.iconSize,iconType:G}));return I?c:void 0}};
_.P=gm.prototype;_.P.shouldRenderIconShape=function(G){if(!_.v("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;G=this.getContainer(G);return!BYf(G,this.icon)};
_.P.renderIcon=function(G,c){var I=this,R,Z,K,m,a,O,N,q;return _.T(function(w){switch(w.nextAddress){case 1:if(c&&I.icon!==c)return w.return();R=I.getContainer(G);Z=BYf(R,I.icon);if(I.shouldRenderIconShape(G)&&I.iconType)return I.applyIconShape(Z,R),w.return();I.removeIconShape();if(!R)return w.return();I.iconName===""&&I.iconset&&R&&(I.removeStaticIcon(I.iconset,R),Z&&I.removeAnimatedIcon(R));if(I.iconName===""&&I.iconset||!I.iconsetName||!vYB)return w.return();I.iconset=vYB.byKey(I.iconsetName);
if(!I.iconset)return I.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.lO(I,I.onIconsetAdded)),w.return();I.missingIconSet&&(I.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.lO(I,I.onIconsetAdded)));m=(K=Z||I.isAnimatedIcon?Wfg(I.icon):void 0)&&!K.lazyLoad;O=K&&((a=K)==null?void 0:a.lazyLoad)&&(K.lottiePlayerProps.animationConfig.animationData?!0:s3.get(I.isDarkTheme?K.pathDarkTheme:K.path)?!0:!1);if(m||O)return I.applyAnimatedIcon(R,K,I.iconset),w.return();if(O||
(N=K)==null||!N.lazyLoad){w.jumpTo(2);break}q=jBU(K,I.isDarkTheme);I.applyStaticIcon(I.iconset,R,I.iconName,G,Z);return w.yield(q,3);case 3:return w.yield(I.renderIcon(I.targetContainer,I.icon),4);case 4:return w.return();case 2:I.applyStaticIcon(I.iconset,R,I.iconName,G,Z),_.Vp(w)}})};
_.P.getContainer=function(G){var c,I=(c=Pjr(this.hostElement))==null?void 0:c.host;c=!!I&&!!I.polymerController;if(!G||c)return G?this.getTargetContainer(G,I):this.hostElement};
_.P.getTargetContainer=function(G,c){var I=_.Q1(c).querySelector("#"+G);I||(G=new _.iW("yt-icon container missing",c.is,G),_.hg(G));return I};
_.P.applyStaticIcon=function(G,c,I,R,Z){Z&&this.removeAnimatedIcon(c);this.removeIconShape();Z=Z&&!!this.iconType&&!!this.iconShapeData&&_.v("kevlar_use_wil_icons");try{Z?this.applyIconShape(!1,c):G.applyIcon(c,I)}catch(K){this.handleError(K,R,c)}};
_.P.applyIconShape=function(G,c){this.iconset&&c&&(this.removeStaticIcon(this.iconset,c),G&&this.removeAnimatedIcon(c));G={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var I=_.Q(this.iconShapeDataSignal);c=I.next().value;I=I.next().value;var R=_.Q(this.renderingOptionsSignal),Z=R.next().value;R=R.next().value;I(this.iconShapeData);R(G);if(!this.wizHasRendered)for(this.wizHasRendered=!0,G=_.Q(hNA(c,Z)).next().value;G.firstChild;)_.Q1(this.hostElement).appendChild(G.firstChild)};
_.P.removeIconShape=function(){if(_.v("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.P.removeStaticIcon=function(G,c){G.removeIcon(c)};
_.P.applyAnimatedIcon=function(G,c,I){this.removeStaticIcon(I,G);this.removeIconShape();var R;I=this.animatedIconElement&&((R=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:R.type)===c.type;if(this.animatedIconElement&&I){this.animatedIconElement.polymerController.animatedIcon=c;var Z;((Z=this.animatedIconElement)==null?void 0:Z.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(G),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=c,this.animatedIconElement.polymerController.active=this.active,_.v("delhi_modern_web_player_icons")?(c=iZT(G,this.icon)&&G.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=c?c.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.v("kevlar_use_wil_icons")?
G.insertBefore(this.animatedIconElement,G.childNodes[0]):(G=_.Q1(G),G.insertBefore(this.animatedIconElement,G.childNodes[0]))};
_.P.removeAnimatedIcon=function(G){_.v("kevlar_use_wil_icons")?this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement):(G=_.Q1(G),this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.P.handleError=function(G,c,I){_.H_(G,this.iconName,c,I);c=BYf(I,this.icon);var R=!1;window.location.href.includes("JpymaW6Lh2w")?R=!0:I._svgIcon&&(I=(I=I._svgIcon.parentNode)?I.tagName:"unknown",_.H_(G,I),I==="YT-ICON"&&G.name==="NotFoundError"?R=!0:G.name==="NotFoundError"&&c&&(R=!0));R?_.Ck(G):_.hg(G)};
_.Nh.Object.defineProperties(gm,{template:{configurable:!0,enumerable:!0,get:function(){if(nY0===void 0){var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;
FMK===void 0&&(FMK=document.createElement("template"));var R=FMK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);nY0=G}G=nY0;return G}}});
gm.prototype.handlePropertyChange=gm.prototype.handlePropertyChange;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],gm.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",String)],gm.prototype,"icon",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],gm.prototype,"active",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],gm.prototype,"defaultToFilled",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],gm.prototype,"isAnimatedIcon",void 0);
_.r([_.E({value:24}),_.h("design:type",Number)],gm.prototype,"size",void 0);_.r([_.E({value:""}),_.h("design:type",String)],gm.prototype,"targetContainer",void 0);_.r([_.E(),_.h("design:type",Object)],gm.prototype,"animatedIconElement",void 0);_.r([_.E(),_.h("design:type",Object)],gm.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],gm.prototype,"ariaHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],gm.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],gm.prototype,"role",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],gm.prototype,"tabindex",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],gm.prototype,"title",void 0);_.r([_.E(),_.h("design:type",String)],gm.prototype,"style",void 0);_.r([_.E(),_.h("design:type",String)],gm.prototype,"iconFilter",void 0);_.r([_.E(),_.h("design:type",String)],gm.prototype,"gradientColor",void 0);
_.r([_.wD("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],gm.prototype,"handlePropertyChange",null);_.r([_.Em({is:"yt-icon",noInjection:!0})],gm);var d50="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),HZB=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var uJe={};uJe.YtPlaintextBehavior=[_.Ha,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(G){G.preventDefault();G=G.clipboardData.getData("text/plain");document.execCommand("insertText",!1,G)},
preventRichTextFormatting_:function(G){_.UH&&(G=G.detail.keyboardEvent,G.stopImmediatePropagation(),G.preventDefault())}}];var bO0;var kYB;var Yr=function(){var G=_.J.apply(this,arguments)||this;G.ignoreShadyDom=!1;G.hasChange_=!1;G.hasSetTitle_=!1;G.useIOObserverForVisibilityLogging_=_.v("kevlar_use_vimio_behavior")&&_.H1("INNERTUBE_CLIENT_NAME")==="WEB";G.ytFormattedStringObserverHandlerKeys_=void 0;return G};
_.u(Yr,_.J);_.P=Yr.prototype;_.P.created=function(){this.useIOObserverForVisibilityLogging_=_.v("kevlar_use_vimio_behavior")&&_.H1("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.P.ready=function(){_.H1("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.P.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.P.detached=function(){this.unobserveIOObservers_()};
_.P.clearContents_=function(){for(var G=this.getRoot(),c=G.lastChild;c&&c.tagName!=="STYLE";){try{G.removeChild(c)}catch(I){break}c=G.lastChild}};
_.P.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var G=_.Q(this.ytFormattedStringObserverHandlerKeys_),c=G.next();!c.done;c=G.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(c.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.P.resetForAttributedString=function(){var G=this.getRoot();!G.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),G.appendChild(this.ytAttributedStringElementRef))};
_.P.resetForFormattedString=function(){var G=this.getRoot(),c=G.querySelector("yt-attributed-string");c&&(this.ytAttributedStringElementRef=G.removeChild(c))};
_.P.textChanged=function(){this.textChanged_(this.text)};
_.P.textChanged_=function(G){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!G||!G.runs&&!G.simpleText;if(_.v("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var c=this.hostElement.firstChild;c&&c.nodeName==="FONT";){var I=c;c=c.nextSibling;this.hostElement.removeChild(I)}c=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
I=G.simpleText;var R;!I&&((R=G.runs)==null?void 0:R.length)===1&&this.isSimpleString_(G.runs[0])&&(I=G.runs[0].text);I!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.H1("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(I!==void 0){try{c.textContent=I}catch(Z){}c.textContent||(this.isEmpty=!0)}else G=G.runs,I!==void 0&&(G=[{text:I}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),G&&this.updateText_(G),
c.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.P.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.P.computeAriaLabel_=function(G){return G};
_.P.computeEllipsisTruncateStyling=function(G,c){return G&&!c};
_.P.computeUseAttributedString=function(G){return _.v("web_replace_formatted_with_attributed_string")&&alT(G)&&!this.disableAttributedString&&!this.enableContentEditable};
_.P.setNodeStyle_=function(G,c){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.v("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?c.removeAttribute("dir"):c.setAttribute("dir","auto");c.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");c.style.color="";var I=null;this.noStyles||(G.bold&&(c.classList.add("bold"),I="bold"),G.deemphasize&&(c.classList.add("deemphasize"),I="deemphasize"),G.italics&&c.classList.add("italic"),
G.strikethrough&&c.classList.add("strikethrough"),G.errorUnderline&&(c.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),G.bracket&&c.classList.add("bracket"),G.textColor&&(c.style.color=_.Sx(G.textColor)));I!==c.getAttribute("style-target")&&(I?c.setAttribute("style-target",I):c.removeAttribute("style-target"))};
_.P.setUpVisibilityLogging_=function(G,c){var I=this;this.setNodeTrackingParams_(G,c);var R;((R=c.data)==null?0:R.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(G=this.ytRendererBehavior.visibilityObserver.observe(c,function(Z){var K=I.ytRendererBehavior.getVisibilityLogger();K&&K.reportShown(Z)},this.ytRendererBehavior.visibilityOptionVisible_),c=this.ytRendererBehavior.visibilityObserver.observe(c,function(Z){var K=I.ytRendererBehavior.getVisibilityLogger();
K&&K.reportHidden(Z)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(G),this.ytFormattedStringObserverHandlerKeys_.push(c))};
_.P.setNodeTrackingParams_=function(G,c){c.data||(c.data={});if((G=G.loggingDirectives?G.loggingDirectives.trackingParams:null)||c.data.trackingParams)c.data.trackingParams=G};
_.P.computeHasLinkOnly_=function(G){return!(!G||G.length!==1||this.noEndpoints||!G[0].navigationEndpoint)};
_.P.getRoot=function(){var G=this.buildScopeDomOptions();return this.enableContentEditable?_.Q1(_.Q1(this.hostElement,G).querySelector("[contenteditable]")):_.Q1(this.hostElement,G)};
_.P.fixContenteditableScope=function(){var G=function(c){c&&(c.nodeType===1&&c.classList&&(c.classList.add("style-scope"),c.classList.add("yt-formatted-string")),c.childNodes&&c.childNodes.forEach(function(I){G(I)}))};
G(this.getRoot())};
_.P.updateText_=function(G){for(var c=G.length,I=this.getRoot(),R=I.firstChild;R&&R.nodeName==="STYLE";)R=R.nextSibling;for(var Z=0;Z<c&&R;){var K=G[Z],m=_.v("remove_cr_char")&&K.text?K.text.replace("\r",""):K.text;if(this.isSimpleString_(K)&&!this.useMixedDirectionFormattedStrings)if(R.nodeName==="#text"){R.textContent!=m&&(R.textContent=m);Z++;R=R.nextSibling;continue}else break;if(_.D(K,zz))break;else if(!this.noEndpoints&&K.navigationEndpoint){if(R.nodeName!=="A")break;this.setDataOnAnchor_(R,
K.navigationEndpoint)}else if(R.nodeName!=="SPAN")break;this.setNodeStyle_(K,R);this.setUpVisibilityLogging_(K,R);R.textContent!=m&&(R.textContent=m);Z++;R=R.nextSibling}if(R)for(K=I.lastChild,R=Z?R.previousSibling:null;K&&K!=R;){try{I.removeChild(K)}catch(a){break}K=I.lastChild}Z!==c&&this.addTextNodes_(G,Z)};
_.P.addTextNodes_=function(G,c){for(var I=document.createDocumentFragment(),R=G.length;c<R;c++){var Z=G[c],K=_.v("remove_cr_char")&&Z.text?Z.text.replace("\r",""):Z.text;if(this.isSimpleString_(Z)&&!this.useMixedDirectionFormattedStrings)I.appendChild(document.createTextNode(K));else{var m=_.D(Z,zz);if(m){if(m.image){var a=document.createElement("img");m.isCustomEmoji||a.classList.add("small-emoji");a.classList.add("emoji");m.isCustomEmoji&&(a.dataset.emojiId=m.emojiId);a.src=_.ZX(m.image.thumbnails,
this.emojiSize);(Z=this.get("image.accessibility.accessibilityData.label",m))?a.alt=Z:m.shortcuts&&m.shortcuts.length>0?a.alt=m.shortcuts[0]:m.emojiId&&(a.alt=m.emojiId);I.appendChild(a);this.hasEmoji=!0}}else!this.noEndpoints&&Z.navigationEndpoint?(a=document.createElement("a"),a.classList.add("yt-simple-endpoint"),a.setAttribute("spellcheck","false"),this.setDataOnAnchor_(a,Z.navigationEndpoint)):a=document.createElement("span"),this.setNodeStyle_(Z,a),this.setUpVisibilityLogging_(Z,a),a.appendChild(document.createTextNode(K)),
I.appendChild(a)}}this.getRoot().appendChild(I)};
_.P.isSimpleString_=function(G){return(this.noEndpoints||!G.navigationEndpoint)&&!_.D(G,zz)&&(this.noStyles||!(G.bold||G.deemphasize||G.italics||G.strikethrough||G.errorUnderline||G.bracket||G.textColor))&&!G.loggingDirectives};
_.P.getRawText=function(){return _.HY(this.text)};
_.P.getFirstRunText=function(){var G;if(((G=this.text)==null?0:G.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.P.setFirstRunText=function(G){var c;((c=this.text)==null?0:c.runs)&&this.text.runs[0]&&(this.text.runs[0].text=G,this.textChanged_(this.text))};
_.P.setDataOnAnchor_=function(G,c){var I=this;!_.v("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(c)||this.isSignalServiceEndpoint_(c)?(G.onclick=this.serviceEndpointHandler_(c),yx(G,"#")):mjA({text:this.text,command:c},function(){Djp(G,c,I.target)})};
_.P.isServiceEndpoint_=function(G){var c;return!((c=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null||!c.sendPost)};
_.P.isSignalServiceEndpoint_=function(G){return!!_.D(G,_.KC)};
_.P.serviceEndpointHandler_=function(G){var c=this;return function(I){_.Gs(c.hostElement,[G]);I.preventDefault()}};
_.P.overrideAriaLabelChanged_=function(){var G=this.getRoot();this.enableContentEditable&&G&&G.setAttribute("aria-label",this.overrideAriaLabel)};
_.P.enableContentEditableChanged_=function(){var G=this,c=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),c=_.Q1(this.hostElement,c),!c.lastChild||c.lastChild instanceof HTMLElement&&c.lastChild.id!=="contenteditable-root"){var I=document.createElement("div");I.id="contenteditable-root";I.setAttribute("contenteditable","true");I.setAttribute("dir","auto");I.onfocus=function(){G.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
c.appendChild(I);this.overrideAriaLabel&&I.setAttribute("aria-label",this.overrideAriaLabel)}}else I=_.m9(this.hostElement).firstChild,I instanceof HTMLElement&&I.id==="contenteditable-root"&&_.Q1(this.hostElement,c).removeChild(I)};
_.P.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.P.getNodesForVisibilityLogging_=function(){return _.qO(this.getRoot().childNodes,function(G){var c;return!((c=G.data)==null||!c.trackingParams)})};
_.P.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.P.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(c){G.reportShown(c)})}};
_.P.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(c){G.reportHidden(c)})}};
_.Nh.Object.defineProperties(Yr.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.v("enable_mixed_direction_formatted_strings")}}});
Yr.prototype.enableContentEditableChanged_=Yr.prototype.enableContentEditableChanged_;Yr.prototype.overrideAriaLabelChanged_=Yr.prototype.overrideAriaLabelChanged_;Yr.prototype.ellipsisTruncateChanged_=Yr.prototype.ellipsisTruncateChanged_;Yr.prototype.textChanged=Yr.prototype.textChanged;_.r([_.L(uJe.YtPlaintextBehavior),_.h("design:type",Object)],Yr.prototype,"ytPlaintextBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Yr.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Yr.prototype,"text",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"noEndpoints",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"noStyles",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Yr.prototype,"isDarkTheme",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Yr.prototype,"splitLines",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Yr.prototype,"forceDefaultStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Yr.prototype,"ellipsisTruncate",void 0);_.r([_.E(),_.h("design:type",Object)],Yr.prototype,"ignoreShadyDom",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.h("design:type",Boolean)],Yr.prototype,"ellipsisTruncateStyling",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.h("design:type",String)],Yr.prototype,"ariaLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Yr.prototype,"isEmpty",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.h("design:type",Boolean)],Yr.prototype,"hasLinkOnly_",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"hasEmoji",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"disableAttributedString",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"isOverlay",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"linkInheritColor",void 0);
_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"noPreWrap",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"userInput",void 0);_.r([_.E({value:16}),_.h("design:type",Number)],Yr.prototype,"emojiSize",void 0);_.r([_.E(),_.h("design:type",String)],Yr.prototype,"target",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"enableContentEditable",void 0);_.r([_.E(),_.h("design:type",String)],Yr.prototype,"overrideAriaLabel",void 0);
_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"respectHtmlDir",void 0);_.r([_.E(),_.h("design:type",Boolean)],Yr.prototype,"respectLangDir",void 0);_.r([_.A("plaintextOnly"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Yr.prototype,"useMixedDirectionFormattedStrings",null);_.r([_.E({computed:"computeUseAttributedString(text)"}),_.h("design:type",Boolean)],Yr.prototype,"useYtAttributedString",void 0);
_.r([_.wD("text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yr.prototype,"textChanged",null);_.r([_.wD("ellipsisTruncate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yr.prototype,"ellipsisTruncateChanged_",null);_.r([_.wD("overrideAriaLabel"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yr.prototype,"overrideAriaLabelChanged_",null);
_.r([_.wD("enableContentEditable"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yr.prototype,"enableContentEditableChanged_",null);_.r([_.Em({is:"yt-formatted-string",disableElementRegistration:!0})],Yr);
_.B(Yr,"yt-formatted-string",function(){if(kYB===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden$="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;bO0===void 0&&(bO0=document.createElement("template"));var R=bO0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);kYB=G}G=kYB;return G});var sYi;var LMK;var AQe;var $V9;var GQ=function(){var G=_.J.apply(this,arguments)||this;G.focused=!1;G.disabled=!1;G.isOverlay=!1;return G};
_.u(GQ,_.J);GQ.prototype.triggerDown=function(){if(!this.disabled){_.as(this.hostElement,"down",!0);var G;(G=this.currentAnimation)==null||G.cancel()}};
GQ.prototype.triggerUp=function(){if(!this.disabled){_.as(this.hostElement,"down",!1);var G=this.fillElement;var c=this.strokeElement;typeof GroupEffect==="function"?(G=new GroupEffect([ho8(G),dVg(c)]),G=new Animation(G,document.timeline)):G=new gT0(G,c);this.currentAnimation=G;var I;(I=this.currentAnimation)==null||I.play()}};
_.r([_.nH(".stroke"),_.h("design:type",HTMLElement)],GQ.prototype,"strokeElement",void 0);_.r([_.nH(".fill"),_.h("design:type",HTMLElement)],GQ.prototype,"fillElement",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],GQ.prototype,"focused",void 0);_.r([_.E(),_.h("design:type",Object)],GQ.prototype,"disabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],GQ.prototype,"isOverlay",void 0);_.r([_.Em({is:"yt-interaction",disableElementRegistration:!0})],GQ);
_.B(GQ,"yt-interaction",function(){if($V9===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;AQe===void 0&&(AQe=document.createElement("template"));var R=AQe;I.call(c,R.content.cloneNode(!0),G.content.firstChild);$V9=G}G=$V9;return G},{mode:2});var cQ=function(){return _.J.apply(this,arguments)||this};
_.u(cQ,_.J);_.P=cQ.prototype;_.P.ready=function(){var G=this,c=_.Q1(this.hostElement).querySelector("#button");c.addEventListener("focus",function(){s4N||(s4N=new kq9);G.keyboardFocused=s4N.isKeyBoardInUse()});
c.addEventListener("blur",function(){G.keyboardFocused=!1;G.rippleUp_()})};
_.P.computeTabIndex_=function(G){return G?-1:0};
_.P.computeButtonAriaPressed_=function(G){if(this.toggleable)return G?"true":"false"};
_.P.rippleDown_=function(){_.Q1(this.hostElement).querySelector("#interaction").triggerDown()};
_.P.rippleUp_=function(){_.Q1(this.hostElement).querySelector("#interaction").triggerUp()};
_.P.onPressedChanged_=function(){var G=_.m9(_.Q1(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.m9(_.Q1(this.hostElement).querySelector("#button")).children[0];G&&(G.active=this.pressed)};
cQ.prototype.onPressedChanged_=cQ.prototype.onPressedChanged_;cQ.prototype.rippleUp_=cQ.prototype.rippleUp_;cQ.prototype.rippleDown_=cQ.prototype.rippleDown_;_.r([_.E(),_.h("design:type",String)],cQ.prototype,"label",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],cQ.prototype,"disabled",void 0);_.r([_.E(),_.h("design:type",Boolean)],cQ.prototype,"pressed",void 0);_.r([_.E(),_.h("design:type",Object)],cQ.prototype,"toggleable",void 0);
_.r([_.E(),_.h("design:type",Boolean)],cQ.prototype,"untabbable",void 0);_.r([_.E(),_.h("design:type",Boolean)],cQ.prototype,"keyboardFocused",void 0);_.r([_.qY("down"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cQ.prototype,"rippleDown_",null);_.r([_.qY("up"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cQ.prototype,"rippleUp_",null);
_.r([_.wD("pressed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cQ.prototype,"onPressedChanged_",null);_.r([_.Em({is:"yt-icon-button",disableElementRegistration:!0})],cQ);
_.B(cQ,"yt-icon-button",function(){if(LMK===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;sYi===void 0&&(sYi=document.createElement("template"));var R=sYi;I.call(c,R.content.cloneNode(!0),G.content.firstChild);LMK=G}G=LMK;return G},{mode:2});var SkN;var pf0=function(){var G=document.body,c=G.appendChild;if(SkN===void 0){var I=document.createElement("template");_.b(I,'\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>');
SkN=I}I=SkN;c.call(G,I.content)};
document.body?pf0():window.addEventListener("DOMContentLoaded",pf0);var M8K=_.I3(["aria-"]),Ip={};Ip.YtRenderButtonBehavior=[_.X.YtRendererBehavior,_.Cx.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!!_.wH().resolve(_.qR(_.zb))&&_.v("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var G=this.computeHref_(this.endpoint,!0);G?yx(this.elements_.endpoint,G):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){G=this.buttonClass.split(" ");G=_.Q(G);for(var c=G.next();!c.done;c=G.next())c=c.value,_.as(this.hostElement,c,!0),this.elements_.button&&_.as(this.elements_.button,c,!0),this.elements_.text&&_.as(this.elements_.text,c,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(G=null,this.buttonAccessibility&&(G=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=G:G?_.N3([_.FU(M8K)],this.elements_.button,"aria-label",G):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var G=_.wH().resolve(_.qR(_.zb));G&&(this.keyboardFocused=G.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.SP("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,_.qy(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.qy(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(G,c){if(c)for(G=c.split(" "),G=_.Q(G),c=G.next();!c.done;c=G.next())c=c.value,_.as(this.hostElement,c,!1),this.elements_.button&&_.as(this.elements_.button,c,!1),this.elements_.text&&_.as(this.elements_.text,c,!1)},
buttonIconChanged_:function(G){this.elements_.icon?G?(this.elements_.icon.icon=G,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.qy(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.T1(this.hostElement,"is-paper-button-with-icon",!1)):G&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.qy(this.elements_.button).appendChild(this.elements_.icon):_.qy(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.T1(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(G){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,G){var c=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(G){case "yt_icon_button_with_label":c=!0;_.as(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();G=_.qy(this.elements_.button).firstElementChild;
this.elements_.icon=G;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.qy(this.elements_.endpoint).appendChild(this.elements_.button);_.qy(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.SP("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;_.qy(this.elements_.button).appendChild(this.elements_.text);_.qy(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":c=!0,this.elements_.button=this.getYtIconButton_(),G=_.qy(this.elements_.button).firstElementChild,this.elements_.icon=G,this.setIconActive_(this.elements_.icon),
_.qy(this.elements_.endpoint).appendChild(this.elements_.button)}_.T1(this.hostElement,"is-icon-button",c);_.T1(this.hostElement,"is-paper-button",!c);_.T1(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 I;_.Q1((I=this.container.hostElement)!=null?I:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.qy(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(G){if(G!=void 0||this.disabled)this.disabled=G,this.elements_.button&&(this.elements_.button.disabled=G)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(G){_.v("kevlar_system_icons")&&G&&this.data&&(this.data.isSelected!==void 0?G.active=this.data.isSelected:this.data.isToggled!==void 0&&(G.active=this.data.isToggled))},
observeBasicPalette_:function(G){_.A0(this.hostElement,G)},
disabledChanged_:function(G){this.data&&this.set("data.isDisabled",G)},
onYtButtonTap_:function(G){if(this.disabled)G.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Gs(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(G=this.disableCommandHandlerOverride,!this.data||!this.data.command||G||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.v("handle_service_request_actions")||_.Gs(this.hostElement,[this.serviceEndpoint]),
_.Xl(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.v("handle_service_request_actions")?(G=[],this.serviceEndpoint&&G.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&G.push(this.data.command),G.length&&_.cd(this.hostElement,G,this.hostElement)):this.data&&this.data.command&&(G=this.data.command,G.accountUnlinkCommand||G.accountLinkCommand||G.insertAdCommand||G.insertHighlightMarkerCommand||
G.createLivestreamHighlightClipCommand||G.getVideoUploadFeedbackCommand||G.musicDeletePrivatelyOwnedEntityCommand||G.ypcCancelRecurrenceEndpoint||G.getMultiSelectCommandEndpoint?_.Gs(this.hostElement,[G]):_.cd(this.hostElement,[G],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var G,c=_.Q1((G=this.container.hostElement)!=null?G:this.container);c.lastChild&&c.lastChild.tagName!="STYLE";)try{c.removeChild(c.lastChild)}catch(I){break}},
getYtIconButton_:function(){var G=this.reuseEnabled_()?_.SP("yt-icon-button"):document.createElement("yt-icon-button"),c=_.qy(G).firstElementChild;if(c&&c.is!="yt-icon"){for(c=_.qy(G);c.lastChild;)c.removeChild(c.lastChild);c=null}c||(c=this.getIcon_(),this.setIconActive_(c),_.qy(G).appendChild(c));return G},
reuseEnabled_:function(){return _.v("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.SP("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.SP("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.V8A={};
_.V8A.YtButtonBehavior=[Ip.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var G=this.data;G&&(this._setEndpoint(this.computeEndpoint_(G)),this._setServiceEndpoint(this.computeServiceEndpoint_(G)),this._setCommand(this.computeCommand_(G)),this._setButtonIcon(this.computeButtonIcon_(G)),this._setButtonText(this.computeButtonText_(G,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(G)),this._setButtonTooltip(this.computeTooltip_(G)),this._setButtonClass(this.computeButtonClass_(G)),this._setIconPositionType(this.computeIconPositionType_(G)),this.updateRenderedElements())},
setPressedState:function(G){var c;if((c=this.elements_)==null?0:c.button)this.elements_.button.pressed=!!G},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeEndpoint_:function(G){var c=G&&G.navigationEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.url"),R=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:G&&G.command&&G.command.modalEndpoint?G.command:I&&!R&&G.command?G.command:null},
computeServiceEndpoint_:function(G){var c=G&&G.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:I&&G.command?G.command:null},
computeCommand_:function(G){return G&&G.command||null},
computeButtonIcon_:function(G){return G&&G.icon&&G.icon.iconType?_.On(G.icon.iconType):null},
computeButtonText_:function(G,c){return!c&&G&&G.text||null},
computeAccessibility_:function(G){return this.get("accessibilityData.accessibilityData",G)||G&&G.accessibility||(G&&G.text?{label:this.getSimpleString(G.text)}:null)},
computeTooltip_:function(G){return G?G.isDisabled&&G.disabledTooltip||G.tooltip||null:null},
computeButtonClass_:function(G){var c=G&&G.style?G.style.toLowerCase().replace(/_/g,"-")+" ":"";c+=G&&G.size?G.size.toLowerCase().replace(/_/g,"-")+" ":"";G.colorData&&G.colorData.basicColorPaletteData&&G.colorData.basicColorPaletteData.borderColor&&(c+="palette-with-border");return c.trim()}}];var $5={};var zoi;var EYp;var JQp,WM0=function(){return JQp!==void 0?JQp:JQp=document.createElement("template")};
document.head.appendChild(WM0().content);var iOp;var fNK,Blp=function(){return fNK!==void 0?fNK:fNK=document.createElement("template")};
document.head.appendChild(Blp().content);var rQi;var jYp,xVe=function(){return jYp!==void 0?jYp:jYp=document.createElement("template")};
document.head.appendChild(xVe().content);var t8T;var hoV=document.head,dVA=hoV.appendChild,CcT;if(t8T===void 0){var HOe=document.createElement("template");_.b(HOe,"\x3c!--css-build:shady--\x3e");HOe.content.insertBefore(xVe().content.cloneNode(!0),HOe.content.firstChild);t8T=HOe}CcT=t8T;dVA.call(hoV,CcT.content);var XfA=document.head,yQp=XfA.appendChild,gY0;if(rQi===void 0){var YkA=document.createElement("template");_.b(YkA,"\x3c!--css-build:shady--\x3e");YkA.content.insertBefore(Blp().content.cloneNode(!0),YkA.content.firstChild);rQi=YkA}gY0=rQi;yQp.call(XfA,gY0.content);var Gg9=document.head,cTK=Gg9.appendChild,IRp;if(iOp===void 0){var RNV=document.createElement("template");_.b(RNV,"\x3c!--css-build:shady--\x3e");RNV.content.insertBefore(WM0().content.cloneNode(!0),RNV.content.firstChild);iOp=RNV}IRp=iOp;cTK.call(Gg9,IRp.content);var ZZe;_.Su("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");ZZe=_.v("web_button_rework")&&_.XG("BUTTON_REWORK")||_.v("web_button_rework_with_live");_.Rp=function(){return _.J.apply(this,arguments)||this};
_.u(_.Rp,_.J);_.Rp.prototype.created=function(){this.openPopupConfig=_.H1("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Rp.prototype.onYtNavigate_=function(G){var c=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);c&&(this.ytOpenPopupBehavior.openPopup(c),G.stopPropagation(),G.preventDefault())};
_.Nh.Object.defineProperties(_.Rp,{template:{configurable:!0,enumerable:!0,get:function(){if(EYp===void 0){var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
var c=G.content,I=c.insertBefore;zoi===void 0&&(zoi=document.createElement("template"));var R=zoi;I.call(c,R.content.cloneNode(!0),G.content.firstChild);EYp=G}G=EYp;return G}}});
_.Rp.prototype.onYtNavigate_=_.Rp.prototype.onYtNavigate_;_.r([_.L(_.dm.YtOpenPopupBehavior),_.h("design:type",Object)],_.Rp.prototype,"ytOpenPopupBehavior",void 0);_.r([_.L(_.V8A.YtButtonBehavior),_.h("design:type",Object)],_.Rp.prototype,"ytButtonBehavior",void 0);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],_.Rp.prototype,"onYtNavigate_",null);
_.r([_.Em({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:ZZe})],_.Rp);var Kf9;var Pg2=_.v("web_button_rework")&&_.XG("BUTTON_REWORK")||_.v("web_button_rework_with_live"),Zd=function(){var G=_.J.apply(this,arguments)||this;G.isPressed=!1;G.forceIconButton=!1;G.forceIconOnly=!1;G.forceModernIconButton=!1;G.skipCommandHandling=!1;G.alignByText=!1;G.fitToVisibleBounds=!0;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};G.onTap=function(c){_.Xl(G.hostElement,"yt-service-request-sent-button-renderer",c)};
return G};
_.u(Zd,_.J);_.P=Zd.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.P.onClick=function(G){var c,I=this.disabled||((c=this.data)==null?void 0:c.isDisabled);c=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");I&&c&&G.stopPropagation()};
_.P.computeIcon=function(){var G,c,I=(G=this.data)==null?void 0:(c=G.icon)==null?void 0:c.iconType;if(I)return _.On(I)};
_.P.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.P.handleUpdateButtonAction=function(G){G=_.D(G,O$k);var c=_.D(G==null?void 0:G.updatedButton,_.vE);if(this.data&&G&&c){var I=this.data;I.targetId&&G.targetId&&I.targetId===G.targetId&&(this.data=c)}};
_.Nh.Object.defineProperties(Zd.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var G=this;if(this.data){var c=crB({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Xl(G.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Xl(G.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});c.alignByText=this.alignByText;return c}}}});
_.Nh.Object.defineProperties(Zd,{template:{configurable:!0,enumerable:!0,get:function(){if(Kf9===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');Kf9=G}G=Kf9;return G}}});
Zd.prototype.onClick=Zd.prototype.onClick;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Zd.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Zd.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"isPressed",void 0);
_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"forceIconButton",void 0);_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"forceIconOnly",void 0);_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"forceModernIconButton",void 0);_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"skipCommandHandling",void 0);_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"alignByText",void 0);_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"buttonTooltipPosition",void 0);
_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"fitToVisibleBounds",void 0);_.r([_.E({computed:"computeTooltip(data)"}),_.h("design:type",Object)],Zd.prototype,"tooltip",void 0);_.r([_.E(),_.h("design:type",Object)],Zd.prototype,"overrides",void 0);_.r([_.E(),_.h("design:type",Boolean)],Zd.prototype,"disabled",void 0);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Zd.prototype,"onClick",null);
_.r([_.A("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.h("design:type",Object),_.h("design:paramtypes",[])],Zd.prototype,"computedButtonShape",null);_.r([_.Em({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Pg2,cssBuildOptOut:!0}),_.Em({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Pg2,cssBuildOptOut:!0})],Zd);var QBe;var m5B;var Kf=function(){var G=_.J.apply(this,arguments)||this;G.empty_=!0;G.loadTime=Infinity;G.pendingPaint=!1;G.hasChange_=!1;G.oldThumbnail_=null;G.oldDelayedSrc_="";G.objectURL_=null;return G};
_.u(Kf,_.J);_.P=Kf.prototype;_.P.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.P.ready=function(){var G=this.shouldShowPlaceholder_();_.as(this.hostElement,"no-transition",!0);G&&this.hostElement.classList.add("with-placeholder")};
_.P.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.P.isThumbPreloaded_=function(G){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",G)};
_.P.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||aRA};
_.P.computeThumbnailSrc_=function(G){return G&&G.thumbnails?_.ZX(G.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.P.computeAlt_=function(){var G=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&G||""};
_.P.thumbnailChanged_=function(){var G=_.Q([this.thumbnail,this.oldThumbnail_]),c=G.next().value;G=G.next().value;this.oldThumbnail_=c;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(G=this.computeThumbnailSrc_(G),this.computeThumbnailSrc_(c)===G))return;_.v("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(c)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):c&&_.XG("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.O$(this,this.onReload_):_.O$(this,this.onShow_):this.resetImage_();c&&(this.hostElement.style.opacity=""+c.opacity)}};
_.P.delayedSrcChanged_=function(){var G=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===G||this.resetImage_()};
_.P.setSrc_=function(G){G?(_.Q1(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Q1(this.hostElement).querySelector("#img").src=G):(_.Q1(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.P.resetImage_=function(){Rog(this.hostElement);this.empty_=!0;this.setSrc_(aRA);this.ytRendererBehavior.invalidate(!1)};
_.P.observePlaceholderColor_=function(){var G=this.thumbnail&&this.thumbnail.placeholderColor;G?this.hostElement.style.backgroundColor=_.Sx(G):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.P.onLoad_=function(){_.Q1(this.hostElement).querySelector("#img").src&&_.Q1(this.hostElement).querySelector("#img").src!==aRA&&(INg(this.hostElement),this.notifyOnLoaded&&_.Xl(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.P.onError_=function(){var G=this;if(_.v("web_use_cache_for_image_fallback"))TlU(_.Q1(this.hostElement).querySelector("#img").src).then(function(c){G.objectURL_=_.CG(c).toString();G.setSrc_(G.objectURL_)}).catch(function(){_.v("kevlar_woffle_fallback_image")&&G.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.P.onPrescanVisible=function(){this.onShow_()};
_.P.onVisible=function(){if(_.v("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.P.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var G=this.computeSrc_();G!==_.Q1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))}};
_.P.onReload_=function(){this.empty_=!1;var G=this.computeSrc_();G!==_.Q1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))};
_.P.shouldShowPlaceholder_=function(){return _.v("kevlar_thumbnail_bg")};
Kf.prototype.observePlaceholderColor_=Kf.prototype.observePlaceholderColor_;Kf.prototype.delayedSrcChanged_=Kf.prototype.delayedSrcChanged_;Kf.prototype.thumbnailChanged_=Kf.prototype.thumbnailChanged_;_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],Kf.prototype,"alt",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Kf.prototype,"ariaHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],Kf.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Kf.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],Kf.prototype,"id",void 0);_.r([_.L(_.vR.YtVisibilityBehavior),_.h("design:type",Object)],Kf.prototype,"ytVisibilityBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",String)],Kf.prototype,"delayedSrc",void 0);
_.r([_.E(),_.h("design:type",Object)],Kf.prototype,"thumbnail",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Kf.prototype,"loaded",void 0);_.r([_.E(),_.h("design:type",Boolean)],Kf.prototype,"notifyOnLoaded",void 0);_.r([_.E(),_.h("design:type",Number)],Kf.prototype,"height",void 0);_.r([_.E(),_.h("design:type",Number)],Kf.prototype,"width",void 0);_.r([_.E({value:function(){return"width"}}),
_.h("design:type",String)],Kf.prototype,"dimension",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Kf.prototype,"fit",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Kf.prototype,"fitHeight",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Kf.prototype,"fitWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],Kf.prototype,"objectFit",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],Kf.prototype,"objectPosition",void 0);_.r([_.E(),_.h("design:type",String)],Kf.prototype,"preferredThumbnail",void 0);_.r([_.E({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.h("design:type",String)],Kf.prototype,"alt_",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],Kf.prototype,"sharedTooltipText",void 0);
_.r([_.E(),_.h("design:type",Boolean)],Kf.prototype,"ftlEligible",void 0);_.r([_.E({value:void 0}),_.h("design:type",String)],Kf.prototype,"observeHiddenOption",void 0);_.r([_.E({value:"observe_once"}),_.h("design:type",String)],Kf.prototype,"observePrescanOption",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Kf.prototype,"roundedContainer",void 0);
_.r([_.uO("thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kf.prototype,"thumbnailChanged_",null);_.r([_.uO("delayedSrc"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kf.prototype,"delayedSrcChanged_",null);_.r([_.wD("thumbnail.placeholderColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kf.prototype,"observePlaceholderColor_",null);
_.r([_.Em({is:"yt-img-shadow",disableElementRegistration:!0})],Kf);var aRA=_.XG("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.PI()(Kf,"yt-img-shadow",function(){if(m5B===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;QBe===void 0&&(QBe=document.createElement("template"));var R=QBe;I.call(c,R.content.cloneNode(!0),G.content.firstChild);m5B=G}G=m5B;return G},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var TdO;_.PQ=new _.De("SCREEN_MANAGER_TOKEN");TdO=new _.De("LOG_INITIAL_SCREEN_TOKEN");var TYe=Mx({entities:{}});_.QZ=Ve(TYe)(TYe.entities,{selectSfvAudioItemPlaybackState:function(G,c){var I,R;G=(R=_.a6(G,"sfvAudioItemCurrentlyPlayingEntity",c))!=null?R:void 0;return(I=G==null?void 0:G.sfvAudioItemPlaybackState)!=null?I:void 0},
playlistLoopStateEntitySelector:ZWg,toggleMenuServiceItemEntitySelector:Khp});_.m8=_.W(function(G){function c(g){return _.D(g,_.uv)}
function I(){var g=R().isTogglingDisabled||k()&&R().toggledIsTogglingDisabled,QO=g||F()?k():!k();p(QO);z(!1);if(!g){var T8;(T8=m)==null||T8(!!QO)}var kp;((kp=K)==null?0:kp())||_.yI(_.wH().resolve(_.PQ),R().trackingParams);var FB;if(!QO||!c(R().defaultButtonViewModel)||(FB=K)!=null&&FB()){var oq;!c(R().toggledButtonViewModel)||((oq=K)==null?0:oq())||_.yI(_.wH().resolve(_.PQ),c(R().toggledButtonViewModel).trackingParams)}else _.yI(_.wH().resolve(_.PQ),c(R().defaultButtonViewModel).trackingParams)}
var R=G.data,Z=G.buttonShapeOverrides,K=G.disableExplicitClickLogging,m=G.onToggle,a=G.style,O=G.useOutlinedIcon,N=G.className,q=function(){var g,QO;return k()?(g=G.animatedTextPropsToggled)==null?void 0:g.call(G):(QO=G.animatedTextPropsDefault)==null?void 0:QO.call(G)},w=_.SE(function(){return q()?Object.assign({},q(),{shouldAnimate:M()}):void 0},void 0,"Zp4uoe"),F=function(){var g;
return((g=C())==null?void 0:g.isToggled)!==void 0},n=_.Q(_.Gz(function(){var g,QO,T8;
return F()?(g=C())==null?void 0:g.isToggled:(T8=Z==null?void 0:(QO=Z())==null?void 0:QO.toggled)!=null?T8:R().isToggled})),U=n.next().value;
n=n.next().value;var k=U,p=n;n=_.Q(_.Gz(function(){var g,QO;return(g=G.animatedTextPropsToggled)==null?void 0:(QO=g.call(G))==null?void 0:QO.shouldAnimate}));
U=n.next().value;n=n.next().value;var M=U,z=n;U=_.Q(_.ks(!1,void 0,"mq3Zfe"));var t=U.next().value,x=U.next().value,C=_.o1(function(g){a:{var QO=R().entityKey,T8=R().toggledStateEntitySelectorType;if(T8)switch(T8){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!QO)break;g=_.QZ.selectSfvAudioItemPlaybackState(g,QO);if(g==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){g={isToggled:!0};break a}if(g){g={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":g={isToggled:_.aBg(g).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":g={isToggled:_.aBg(g).includes("engagement-panel-live-chat-item-section")};break a;default:_.Ck(new _.iW("Error: entitySelectorType defined but not matched in selector.",g,T8))}g=void 0}return g}),H=function(){return Object.assign({},Z==null?void 0:Z(),{onToggle:I,
toggleable:!0,toggled:k(),focused:t()})};
return _.e("toggle-button-view-model",{"on:focusin":_.Nx(function(){var g=_.wH().resolve(_.qR(_.zb));g&&x(g.isKeyBoardInUse());return!1}),
"on:focusout":_.Nx(function(){x(!1);return!1})},_.e(_.l,{cond:function(){return k()?c(R().toggledButtonViewModel):c(R().defaultButtonViewModel)},
then:function(g){return _.e(_.BR,{data:g,className:N,style:a,useOutlinedIcon:O,buttonOverrides:H,animatedTextProps:w})}}))},"da");
_.m8.idomCompat={callbacks:{onToggle:!0}};_.R1(_.W(function(G){return _.e("yt-toggle-button-view-model",{class:function(){var c;return(c=G.scopingClassName)==null?void 0:c.call(G)}},_.e(_.m8,{data:function(){var c;
return(c=G.data)==null?void 0:c.call(G)},
buttonShapeOverrides:function(){var c;return(c=G.overrides)==null?void 0:c.call(G)},
animatedTextPropsDefault:function(){var c;return(c=G.animatedTextPropsDefault)==null?void 0:c.call(G)},
animatedTextPropsToggled:function(){var c;return(c=G.animatedTextPropsToggled)==null?void 0:c.call(G)},
disableExplicitClickLogging:function(){var c;return(c=G.disableExplicitClickLogging)==null?void 0:c.call(G)},
onToggle:function(c){var I;return(I=G.onToggle)==null?void 0:I.call(G,c)},
style:function(){var c;return(c=G.style)==null?void 0:c.call(G)},
useOutlinedIcon:function(){var c;return(c=G.useOutlinedIcon)==null?void 0:c.call(G)},
className:function(){var c;return(c=G.className)==null?void 0:c.call(G)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.bl,
buttonShapeOverrides:_.bl,overrides:_.bl,animatedTextPropsDefault:_.bl,animatedTextPropsToggled:_.bl,disableExplicitClickLogging:_.bl,onToggle:_.G9,style:_.bl,useOutlinedIcon:_.bl,className:_.bl,scopingClassName:_.bl}});var ap=function(){return _.J.apply(this,arguments)||this};
_.u(ap,_.J);ap.prototype.onTap=function(G){G.stopPropagation();G=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Wm("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G})):this.ytLiveChatReduxBehavior.dispatch(_.Le("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G}))};
_.Nh.Object.defineProperties(ap.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.engagementState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.D(this.data.toggleButton,_.kh),c;if(Number(((c=this.likeCountState)==null?void 0:c.likeCountIfIndifferentNumber)||"0")===0){var I;c=((I=this.data.likeCountPlaceholder)==null?void 0:I.content)||""}else{var R,Z,K;c=((R=this.likeCountState)==null?void 0:(Z=R.likeCountIfIndifferent)==null?void 0:Z.content)||((K=this.data.likeCountPlaceholder)==null?void 0:K.content)||""}var m,a;I=((m=this.likeCountState)==null?void 0:(a=
m.likeCountIfLiked)==null?void 0:a.content)||"1";m=_.D(G.toggledButtonViewModel,_.uv);return Object.assign({},G,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.D(G.defaultButtonViewModel,_.uv),{title:c})},toggledButtonViewModel:{buttonViewModel:Object.assign({},m,{title:I})}})}}}});
ap.prototype.onTap=ap.prototype.onTap;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ap.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],ap.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ap.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.likeCountEntityKey"],selector:T90}),_.h("design:type",Object)],ap.prototype,"likeCountState",void 0);_.r([_.E({selectorArgs:["data.engagementStateKey"],selector:nxf}),_.h("design:type",Object)],ap.prototype,"engagementState",void 0);_.r([_.A("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ap.prototype,"isLiked",null);
_.r([_.A("data","likeCountState","isLiked"),_.h("design:type",Object),_.h("design:paramtypes",[])],ap.prototype,"toggleButton",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],ap.prototype,"onTap",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],ap);
_.B(ap,"yt-live-chat-like-button-view-model",function(){if(NlT===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;eop===void 0&&(eop=document.createElement("template"));var R=eop;I.call(c,R.content.cloneNode(!0),G.content.firstChild);NlT=G}G=NlT;return G},{mode:0});var OZB;var eNN;var TQ=function(){return _.J.apply(this,arguments)||this};
_.u(TQ,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],TQ.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],TQ);
_.B(TQ,"yt-live-chat-paid-message-footer-renderer",function(){if(eNN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;OZB===void 0&&(OZB=document.createElement("template"));var R=OZB;I.call(c,R.content.cloneNode(!0),G.content.firstChild);eNN=G}G=eNN;return G},{mode:0});var NYK;var lR0;var qJK;var wAk,Ff0=function(){if(wAk!==void 0)return wAk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;qJK===void 0&&(qJK=document.createElement("template"));var R=qJK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return wAk=G};var O7=function(){return _.J.apply(this,arguments)||this};
_.u(O7,_.J);O7.prototype.onTap=function(G){G.stopPropagation()};
_.Nh.Object.defineProperties(O7.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.D(this.data.replyButton,_.uv),c,I,R,Z,K,m,a,O=Number(((c=this.replyCountState)==null?void 0:c.replyCountNumber)||"0")===0?(I=this.data)==null?void 0:(R=I.replyCountPlaceholder)==null?void 0:R.content:((Z=this.replyCountState)==null?void 0:(K=Z.replyCount)==null?void 0:K.content)||((m=this.data)==null?void 0:(a=m.replyCountPlaceholder)==null?void 0:a.content)||"",N;return Object.assign({},
G,{title:O,accessibilityText:(N=this.replyCountState)==null?void 0:N.replyButtonAccessibilityText})}}}});
_.Nh.Object.defineProperties(O7,{template:{configurable:!0,enumerable:!0,get:function(){return Ff0()}}});
O7.prototype.onTap=O7.prototype.onTap;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],O7.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],O7.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],O7.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.replyCountEntityKey"],selector:function(G,c){return _.a6(G.entities,"replyCountEntity",c)}}),
_.h("design:type",Object)],O7.prototype,"replyCountState",void 0);_.r([_.A("data","replyCountState"),_.h("design:type",Object),_.h("design:paramtypes",[])],O7.prototype,"buttonViewModel",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],O7.prototype,"onTap",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],O7);_.B(O7,"yt-live-chat-reply-button-view-model",function(){return Ff0()},{mode:0});var nxk;var vx2;var eN=function(){var G=_.J.apply(this,arguments)||this;G.ariaLabel="";return G};
_.u(eN,_.J);
eN.prototype.dataChanged=function(){for(var G=(0,_.Om)(_.Q1(this.hostElement).querySelector("#image"));G.firstChild;)G.removeChild(G.firstChild);if(this.data)if(this.data.icon){var c=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(c.polymerController.icon="yt-sys-icons:shield-filled",c.polymerController.defaultToFilled=!0):c.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();G.appendChild(c)}else if(this.data.customThumbnail){c=document.createElement("img");
var I=_.HDB(this.data.customThumbnail.thumbnails,16);I?(c.src=I,G.appendChild(c),c.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Ck(new _.iW("Could not compute URL for thumbnail",this.data.customThumbnail))}};
eN.prototype.identity=function(G){return G};
eN.prototype.computeType=function(G){return mw(G||void 0)};
eN.prototype.dataChanged=eN.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],eN.prototype,"data",void 0);_.r([_.E({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.h("design:type",Object)],eN.prototype,"ariaLabel",void 0);_.r([_.E({computed:"computeType(data)",reflectToAttribute:!0}),_.h("design:type",String)],eN.prototype,"type",void 0);
_.r([_.E({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.h("design:type",String)],eN.prototype,"sharedTooltipText",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("live_chat_enable_new_moderator_badge")}}),
_.h("design:type",Boolean)],eN.prototype,"enableNewModeratorBadge",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eN.prototype,"dataChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],eN);
_.B(eN,"yt-live-chat-author-badge-renderer",function(){if(vx2===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;nxk===void 0&&(nxk=document.createElement("template"));var R=nxk;I.call(c,R.content.cloneNode(!0),G.content.firstChild);vx2=G}G=vx2;return G},{mode:0});var D5i;var oxT;var NH=function(){return _.J.apply(this,arguments)||this};
_.u(NH,_.J);_.P=NH.prototype;_.P.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.P.computeBadgesInsideChip=function(G){return G?G.filter(function(c){return mw(c.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.P.computeBadgesOutsideChip=function(G){return this.prependChatBadges||!G?[]:G.filter(function(c){c=mw(c.liveChatAuthorBadgeRenderer);return c!=="verified"&&c!=="owner"})};
_.P.computeBadgesBeforeChip=function(G){return this.prependChatBadges&&G?G.filter(function(c){c=mw(c.liveChatAuthorBadgeRenderer);return c!=="verified"&&c!=="owner"}):[]};
_.P.computeIsHighlighted=function(G,c){var I=!!lag(G,"owner"),R=!!lag(G,"verified");G=!!lag(G,"moderator");return(I||R&&!G)&&!c};
_.P.computeAuthorType=function(G){return Nvi(G)};
_.P.computeAuthorClass=function(G,c){return c?(G?G+" ":"")+"single-line":G};
_.P.onSeedColorChanged=function(){_.v("live_chat_author_name_color_usernames")||_.v("live_chat_seed_color_usernames")||_.v("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):_.v("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
NH.prototype.onSeedColorChanged=NH.prototype.onSeedColorChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],NH.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],NH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NH.prototype,"authorName",void 0);_.r([_.E(),_.h("design:type",Array)],NH.prototype,"authorBadges",void 0);
_.r([_.E({computed:"computeAuthorType(authorBadges)"}),_.h("design:type",String)],NH.prototype,"authorType",void 0);_.r([_.E({computed:"computeAuthorClass(authorType, singleLine)"}),_.h("design:type",String)],NH.prototype,"authorClass",void 0);_.r([_.E({computed:"computeBadgesInsideChip(authorBadges)"}),_.h("design:type",Array)],NH.prototype,"badgesInsideChip",void 0);_.r([_.E({computed:"computeBadgesOutsideChip(authorBadges)"}),_.h("design:type",Array)],NH.prototype,"badgesOutsideChip",void 0);
_.r([_.E({computed:"computeBadgesBeforeChip(authorBadges)"}),_.h("design:type",Array)],NH.prototype,"badgesBeforeChip",void 0);_.r([_.E({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.h("design:type",Boolean)],NH.prototype,"isHighlighted",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],NH.prototype,"singleLine",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],NH.prototype,"disableHighlighting",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],NH.prototype,"dashboardMoneyFeed",void 0);_.r([_.E({value:_.v("live_chat_prepend_badges"),reflectToAttribute:!0}),_.h("design:type",Boolean)],NH.prototype,"prependChatBadges",void 0);_.r([_.E(),_.h("design:type",String)],NH.prototype,"authorNameColor",void 0);_.r([_.nH("#author-name"),_.h("design:type",HTMLDivElement)],NH.prototype,"username",void 0);
_.r([_.wD("authorNameColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NH.prototype,"onSeedColorChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],NH);
_.B(NH,"yt-live-chat-author-chip",function(){if(oxT===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;D5i===void 0&&(D5i=document.createElement("template"));var R=D5i;I.call(c,R.content.cloneNode(!0),G.content.firstChild);oxT=G}G=oxT;return G},{mode:0});var U50;var u7N;var ld=function(){var G=_.J.apply(this,arguments)||this;G.debounceCommand=_.W7(function(c){G.ytComponentBehavior.resolveCommand(c)},1500);
return G};
_.u(ld,_.J);ld.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var G=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",c,I,R=this.isHearted?(c=this.data)==null?void 0:c.unheartCommand:(I=this.data)==null?void 0:I.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Wm("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:G}));(G=_.WI(R))&&this.debounceCommand(G)}};
_.Nh.Object.defineProperties(ld.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G,c;if(!((G=this.data)==null?0:(c=G.creatorThumbnail)==null?0:c.sources))return{};G={thumbnails:[]};c={};c.url=this.data.creatorThumbnail.sources[0].url;G.thumbnails.push(c);return G}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((I=this.engagementState)==null?void 0:I.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}}});
ld.prototype.onTap=ld.prototype.onTap;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ld.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],ld.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ld.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.engagementStateKey"],selector:nxf}),_.h("design:type",Object)],ld.prototype,"engagementState",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ld.prototype,"thumbnailDetails",null);_.r([_.A("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ld.prototype,"isHearted",null);_.r([_.A("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ld.prototype,"isEditable",null);
_.r([_.A("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ld.prototype,"showCreatorView",null);_.r([_.A("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ld.prototype,"showButton",null);_.r([_.A("data","isHearted"),_.h("design:type",String),_.h("design:paramtypes",[])],ld.prototype,"label",null);_.r([_.A("data","isHearted"),_.h("design:type",Object),_.h("design:paramtypes",[])],ld.prototype,"heartHoverText",null);
_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ld.prototype,"onTap",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],ld);
_.B(ld,"yt-live-chat-creator-heart-view-model",function(){if(u7N===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;U50===void 0&&(U50=document.createElement("template"));var R=U50;I.call(c,R.content.cloneNode(!0),G.content.firstChild);u7N=G}G=u7N;return G},{mode:0});var qH=function(G,c){this.serviceId=new LXe(G,c)};
qH.prototype.toString=function(){return this.serviceId.toString()};var bZK=function(){this.internalMap={}};
_.P=bZK.prototype;_.P.contains=function(G){return Object.prototype.hasOwnProperty.call(this.internalMap,G)};
_.P.get=function(G){if(this.contains(G))return this.internalMap[G]};
_.P.set=function(G,c){this.internalMap[G]=c};
_.P.getKeys=function(){return Object.keys(this.internalMap)};
_.P.remove=function(G){delete this.internalMap[G]};var wy=function(){this.mappings=new bZK;this.errorCallbacks=new Set};
wy.prototype.getModuleId=function(G){return G.serviceId.getModuleId()};
wy.prototype.get=function(G){var c=this.mappings.get(G.toString());return kgV(this,c,G)};
wy.prototype.getMultipleAsync=function(){var G=_.Hy.apply(0,arguments),c=this,I=G.map(function(O){return c.getModuleId(O)}),R=G.map(function(O){return c.mappings.get(O.toString())}).filter(function(O){return O});
if(R.length===G.length)return _.IP(R.map(function(O,N){return kgV(c,O,G[N])}));
var Z=x9().loadMultiple(I);R=_.tE(I.map(function(O){return Z[O]}));
var K=document.hidden,m=-1,a=_.DH("get_async_timeout_ms",-1);a>-1&&(m=setTimeout(function(){_.Ck(new _.iW("Module timeout.",I,K,document.hidden))},a));
return _.hE(R.then(function(){return G.map(function(O){return kgV(c,c.mappings.get(O.toString()),O)})}).thenCatch(function(O){for(var N=_.Q(c.errorCallbacks),q=N.next();!q.done;q=N.next())q=q.value,q(O);
throw O;}),function(){clearTimeout(m)})};
wy.prototype.registerService=function(G,c){this.mappings.set(G.toString(),{type:"mapping",value:c});return G};
var kgV=function(G,c,I){switch(c.type){case "mapping":return c.value;case "factory":return c=c.value(),G.mappings.set(I.toString(),{type:"mapping",value:c}),c;default:return _.H0(c)}};
wy.prototype.onLoadError=function(G){var c=this;this.errorCallbacks.add(G);return function(){c.errorCallbacks.delete(G)}};
_.F5=new wy;var sB2=function(){};
_.P=sB2.prototype;
_.P.JSC$14340_getRequest=function(G,c,I){c=c===void 0?{}:c;I=I===void 0?VW2:I;var R=c;if(this.isNavigationCommand()){var Z,K=(Z=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?void 0:Z.url;R=_.nvp(G.clickTrackingParams,!0,!1,K,this.JSC$14340_getClientScreen(R))}else R=_.nvp(G.clickTrackingParams,!1,this.includeCsn);R={context:R};if(Z=this.getExtension(G))return this.JSC$14340_buildRequest(R,Z,c),Z=this.getApiUrl(G),K=Object.assign({},{command:G},this.getRequestConfig(G,c)),R={input:Z,requestShell:Wq(Z),
innerTubeRequest:R,config:K},R.config.authStrategy?R.config.authStrategy.identity=I:R.config.authStrategy={identity:I},(G=this.JSC$14340_getRequestKey(G,c))&&!R.config.requestKey&&(R.config.requestKey=G),R;G=new _.iW("Error: Failed to create Request from Command.",G);_.hg(G)};
_.P.getApiUrl=function(G){var c=_.gL(this.getApiPaths(G)),I;(G=(I=_.D(G.commandMetadata,_.Pd))==null?void 0:I.apiUrl)&&(c=G);return Xag(H$B(c))};
_.P.isNavigationCommand=function(){return!1};
_.P.JSC$14340_getClientScreen=function(){};
_.P.JSC$14340_getRequestKey=function(){};
_.P.getRequestConfig=function(){};
_.Nh.Object.defineProperties(sB2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var nf=function(){};
_.u(nf,sB2);nf.prototype.JSC$14347_getStoreKey=function(){};
nf.prototype.JSC$14340_getRequestKey=function(G,c){c=c===void 0?{}:c;return this.JSC$14347_getStoreKey(G,c)};var vQ=function(){};
_.u(vQ,nf);vQ.prototype.JSC$14340_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Wq("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
vQ.prototype.getApiPaths=function(){return[]};
vQ.prototype.getExtension=function(){};
vQ.prototype.JSC$14340_buildRequest=function(){};var Lf2={},AT0=(Lf2.GET_DATASYNC_IDS=BU(vQ),Lf2);var $5e,SJ0,pAN,WfA,Dd,Exe,MUk,zNV,VUA;$5e="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");SJ0=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.h0=function(G,c,I,R,Z,K,m,a,O){this.endpointMap=G;this.networkManager=c;this.authService=I;this.responseProcessorMap=R;this.innertubeResponseStore=Z;this.contextProcessors=K;this.asyncContextProcessors=m;this.localInnertubeRouter=a;this.requestSequencer=O;this.inflightRequests=new Map;G.signalEndpointMap||(G.signalEndpointMap={});G.signalEndpointMap=Object.assign({},AT0,G.signalEndpointMap)};
pAN=function(G,c,I,R,Z,K,m,a,O){if(_.h0.instance!==void 0){if(R=_.h0.instance,G=[G!==R.endpointMap,c!==R.networkManager,I!==R.authService,Z!==R.innertubeResponseStore,K!==R.contextProcessors,m!==R.asyncContextProcessors,a!==R.localInnertubeRouter],G.some(function(N){return N}))throw new _.iW("InnerTubeTransportService is already initialized",G);
}else _.h0.instance=new _.h0(G,c,I,R,Z,K,m,a,O)};
_.CQ=function(G,c,I){var R=R===void 0?VW2:R;var Z=MUk(G,c);return Z?new _.Lk(function(K,m){var a,O,N,q,w;return _.T(function(F){switch(F.nextAddress){case 1:return F.yield(Z,2);case 2:a=F.yieldResult;O=a.JSC$14340_getRequest(c,I,R);if(!O){m(new _.iW("Error: Failed to build request for command.",c));F.jumpTo(0);break}EU(O.input);q=((N=O.requestShell)==null?void 0:N.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){w=VUA(O.config,q);F.jumpTo(4);break}return F.yield(zNV(O.config,q),5);case 5:w=
F.yieldResult;case 4:K(Exe(G,O,w)),_.Vp(F)}})}):_.$C(new _.iW("Error: No request builder found for command.",c))};
WfA=function(G,c,I,R){var Z=Z===void 0?VW2:Z;var K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H;return _.T(function(g){switch(g.nextAddress){case 1:K=lBb(c,G.endpointMap);if(!K)throw new _.iW("Error: No streaming request builder found for command",c);m=K.JSC$14340_getRequest(c,I,Z);if(!m)throw new _.iW("Failed to build YtRequest for streaming Command",c);if((a=G.localInnertubeRouter)==null||!a.shouldPreferLocalResponse(m.input,m.innerTubeRequest)){g.jumpTo(2);break}return g.yield(G.localInnertubeRouter.localInnertubeResponse(m.input,
m.innerTubeRequest),3);case 3:return O=g.yieldResult,N={},O.playerResponse&&(Dd(G,O.playerResponse,m),N.player=O.playerResponse,(q=R)==null||q(N,O)),O.watchNextResponse&&(Dd(G,O.watchNextResponse,m),N.content=O.watchNextResponse,(w=R)==null||w(N,O)),g.return(N);case 2:n=((F=m.requestShell)==null?void 0:F.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){U=VUA(m.config,n);g.jumpTo(4);break}return g.yield(zNV(m.config,n),5);case 5:U=g.yieldResult;case 4:return M=(p=(k=m.requestShell)==null?
void 0:k.headers)!=null?p:{},m.requestShell=Object.assign({},m.requestShell,{headers:Object.assign({},M,U)}),z=Object.assign({},m.requestShell),t=JSON.stringify(m.innerTubeRequest),m.requestShell.method==="POST"&&(z=Object.assign({},z,{body:t})),x=function(QO,T8){Dd(G,T8.playerResponse||T8.watchNextResponse||T8.reelItemWatchResponse||T8.reelWatchSequenceResponse,m);R==null||R(QO,T8);_.v("web_watch_stop_scheduler_on_player_response")&&T8.playerResponse&&iCe()},C={},g.yield(JT2(G.networkManager,m.input,
z,x),6);
case 6:return C=g.yieldResult,((H=m.config)==null?0:H.responseTick)&&_.LC(m.config.responseTick),g.return(C)}})};
_.UO=function(G,c,I,R,Z){Z=Z===void 0?{authStrategy:{identity:VW2}}:Z;var K=K===void 0?!0:K;var m=function(){};
m=PvC(ZJf(I));c.context||(c.context=_.nvp(R,K));return new _.Lk(function(a){var O,N,q,w,F;return _.T(function(n){if(n.nextAddress==1)return O=H$B(I),N=_.JO(O),G.authService.syncHeaders?(q=VUA(Z,N),n.jumpTo(2)):n.yield(zNV(Z,N),3);n.nextAddress!=2&&(q=n.yieldResult);w=Xag(H$B(I));F={input:w,requestShell:Wq(w),innerTubeRequest:c,config:Z};a(Exe(G,F,q,m));_.Vp(n)})})};
Dd=function(G,c,I){var R;if(c&&!(c==null?0:(R=c.sequenceMetaData)==null?0:R.skipProcessing)&&G.responseProcessorMap){R=_.Q($5e);for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,G.responseProcessorMap[Z]&&G.responseProcessorMap[Z].handleResponse(c,I)}};
Exe=function(G,c,I,R){R=R===void 0?function(){}:R;
var Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H,g,QO,T8,kp,FB,oq,Wr,iT,z8,GV,ei,Hr,v0,kK,pN,bH,n1,qf,hU,we,xK;return _.T(function(UK){switch(UK.nextAddress){case 1:m=(Z=c.config)==null?void 0:(K=Z.storeStrategy)==null?void 0:K.storeKey;if(!(m&&G.innertubeResponseStore&&G.innertubeResponseStore.has(m))||((a=c.config)==null?0:(O=a.storeStrategy)==null?0:O.disableCache)){UK.jumpTo(2);break}return UK.yield(G.innertubeResponseStore.get(m),3);case 3:if((N=UK.yieldResult)&&!N.isExpired())return UK.return(Promise.resolve(_.mG(N)));
case 2:if(!((q=c)==null?0:(w=q.innerTubeRequest)==null?0:w.context)){UK.jumpTo(4);break}F=c.innerTubeRequest.context;if(!(G.asyncContextProcessors&&G.asyncContextProcessors.length>0)){UK.jumpTo(5);break}n=[];U=_.Q(G.asyncContextProcessors);for(k=U.next();!k.done;k=U.next())p=k.value,M=p.processContext(c),M.wrappedPromise_&&n.push(M.wrappedPromise_);if(!(n.length>0)){UK.jumpTo(5);break}return UK.yield(Promise.all(n),5);case 5:z=_.Q(G.contextProcessors||[]),t=z.next();case 8:if(t.done){UK.jumpTo(4);
break}x=t.value;return UK.yield(x.processContext(F),9);case 9:t=z.next();UK.jumpTo(8);break;case 4:if((C=G.localInnertubeRouter)==null||!C.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){UK.jumpTo(12);break}return UK.yield(G.localInnertubeRouter.localInnertubeResponse(c.input,c.innerTubeRequest),13);case 13:return H=UK.yieldResult,Dd(G,H,c),UK.return(H);case 12:return(T8=(QO=c.config)==null?void 0:QO.requestKey)&&G.inflightRequests.has(T8)?g=G.inflightRequests.get(T8):(kp=JSON.stringify(c.innerTubeRequest),
Wr=(oq=(FB=c.requestShell)==null?void 0:FB.headers)!=null?oq:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},Wr,I)}),iT=Object.assign({},c.requestShell),c.requestShell.method==="POST"&&(iT=Object.assign({},iT,{body:kp})),((z8=c.config)==null?0:z8.requestTick)&&_.LC(c.config.requestTick),GV=function(){return G.networkManager.fetch(c.input,iT,c.config)},g=G.requestSequencer?iZ2(G.requestSequencer,c,GV):GV(),T8&&G.inflightRequests.set(T8,g)),UK.yield(g,14);
case 14:(ei=UK.yieldResult)&&_.v("web_streaming_player")&&Array.isArray(ei)&&(ei=ei[0].playerResponse);if(ei&&"error"in ei&&((Hr=ei)==null?0:(v0=Hr.error)==null?0:v0.details))for(kK=ei.error.details,pN=_.Q(kK),bH=pN.next();!bH.done;bH=pN.next())n1=bH.value,(qf=n1["@type"])&&SJ0.indexOf(qf)>-1&&(delete n1["@type"],ei=n1);T8&&G.inflightRequests.has(T8)&&G.inflightRequests.delete(T8);((hU=c.config)==null?0:hU.responseTick)&&_.LC(c.config.responseTick);if(ei||(we=G.localInnertubeRouter)==null||!we.canProvideFallbackResponse(c.input,
c.innerTubeRequest)){UK.jumpTo(15);break}return UK.yield(G.localInnertubeRouter.localFallbackInnertubeResponse(c.input,c.innerTubeRequest),16);case 16:ei=UK.yieldResult;case 15:return Dd(G,ei,c),((xK=c.config)==null?0:xK.processorTick)&&_.LC(c.config.processorTick),R(),UK.return(ei||void 0)}})};
_.di=function(G,c){return N9q(c,G.endpointMap)};
MUk=function(G,c){G=qjB(c,G.endpointMap);if(G!==void 0)return Promise.resolve(G)};
zNV=function(G,c){var I,R,Z,K;return _.T(function(m){if(m.nextAddress==1){Z=(I=G)==null?void 0:(R=I.authStrategy)==null?void 0:R.sessionIndex;var a=m.yield;var O=_.IP(IbA({sessionIndex:Z}));return a.call(m,O,2)}K=m.yieldResult;return m.return(Promise.resolve(Object.assign({},wnp(c),K)))})};
VUA=function(G,c){var I;G=G==null?void 0:(I=G.authStrategy)==null?void 0:I.sessionIndex;I=IbA({sessionIndex:G});return Object.assign({},wnp(c),I)};var fRK,BYk,rTB,jBe,x5e,tUT,CgN,HZT,ud,XA9,yTK,d5K,gxN;fRK=0;BYk=/tone[1-5]/;rTB=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");jBe="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
x5e=Number.MAX_SAFE_INTEGER;tUT=RegExp("\ufe0f","g");_.op=function(G){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;G&&_.hNN(this,G)};
_.hNN=function(G,c){try{_.$6(c,{context:G,onSuccess:function(R,Z){Array.isArray(Z)?G.load(Z):(R=new _.iW("Emoji manager JSON response was not an array!",{response:Z}),_.hg(R))},
onError:function(R){R=new _.iW("Failed to retrieve emoji manager initial JSON data!",{url:c,statusCode:_.bW(R).toString()});_.Ck(R)}})}catch(R){var I=new _.iW("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:c});
_.Ck(I)}};
_.op.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.op.prototype.load=function(G,c){if(c)if(G.length)G=G.concat(c.emojis);else{this.emojis=c.emojis;this.emojiMap=c.emojiMap;this.emojiShortcutMap=c.emojiShortcutMap;this.emojiShortcutCharMap=d5K(c);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=c.emojiRegex;return}this.emojis=[].concat(_.jn(new Set(this.emojis.concat(G))));this.hasInitializedShortcutCharMap=!1;G=Array(this.emojis.length);for(c=0;c<this.emojis.length;c++){var I=this.emojis[c];if(I.emojiId){this.emojiMap[I.emojiId]=I;this.emojiMap[I.emojiId].index=
c;for(var R=0;I.shortcuts&&R<I.shortcuts.length;R++)this.emojiShortcutMap[I.shortcuts[R].toLocaleLowerCase()]=I;G[c]=I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId}}G.sort(function(Z,K){return K.length-Z.length});
if(G.length)try{this.emojiRegex=new RegExp(G.join("|").replace("*","\\*"),"gi")}catch(Z){this.emojiRegex=/$./}else this.emojiRegex=/$./};
CgN=function(G,c){c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){var R=I.value;if(R.emojiId&&G.emojiMap[R.emojiId]){I=Object.assign({},G.emojiMap[R.emojiId],R);G.emojiMap[R.emojiId]=I;var Z=void 0;I.index&&((Z=G.emojis[I.index])==null?void 0:Z.emojiId)===R.emojiId&&(G.emojis[I.index]=I);R=void 0;if((R=I.shortcuts)==null?0:R.length)for(G.hasInitializedShortcutCharMap=!1,R=_.Q(I.shortcuts),Z=R.next();!Z.done;Z=R.next())G.emojiShortcutMap[Z.value.toLocaleLowerCase()]=I}}};
HZT=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(_.TI.getInstance(),2);if(R.nextAddress!=3)return(c=R.yieldResult)?R.yield(c.get("ytlc-emoji-pref"),3):R.return();(I=R.yieldResult)&&CgN(G,Object.keys(I).map(function(Z){return{emojiId:Z,stickyPrefId:I[Z]}}).filter(function(Z){return!!Z.emojiId&&!!Z.stickyPrefId}));
_.Vp(R)})};
_.U7=function(G,c,I){return(G=G.emojiMap[c])&&(!G.isLocked||I!==void 0&&I)?G:void 0};
ud=function(G,c,I){I=_.U7(G,c,I===void 0?!1:I);var R=c.match("\u200d");I&&G.skinTone!==0&&(G=(R==null?void 0:R.length)===1?_.U7(G,c.replace("\u200d",rTB[G.skinTone]+"\u200d")):_.U7(G,c+rTB[G.skinTone]))&&(I=G);return I};
XA9=function(G,c){var I=G.emojiMap[c];return(I==null?0:I.stickyPrefId)?G.emojiMap[I.stickyPrefId]:ud(G,c)};
_.eh=function(G,c){G=G.emojiShortcutMap[c.toLocaleLowerCase()];return!G||G.isLocked?null:G};
yTK=function(G,c,I){return d5K(G,I===void 0?!1:I)[c]||{}};
d5K=function(G,c){c=c===void 0?!1:c;if(!G.hasInitializedShortcutCharMap){G.hasInitializedShortcutCharMap=!0;for(var I=0;I<G.emojis.length;I++){var R=G.emojis[I];if(!(R.isLocked||c&&R.isCustomEmoji&&R.emojiId&&!G.pickerCustomEmojiIds.includes(R.emojiId)))for(var Z=0;R.shortcuts&&Z<R.shortcuts.length;Z++){var K=R.shortcuts[Z];K.startsWith(":_")&&R.isCustomEmoji&&(G.emojiShortcutCharMap[":_"]==null&&(G.emojiShortcutCharMap[":_"]=Object.create(null)),G.emojiShortcutCharMap[":_"][K]=R);if(!(K.length<3||
!R.isCustomEmoji&&BYk.test(K))){var m=K.substr(0,3).toLocaleLowerCase();G.emojiShortcutCharMap[m]==null&&(G.emojiShortcutCharMap[m]=Object.create(null));G.emojiShortcutCharMap[m][K]=R}}}}return G.emojiShortcutCharMap};
_.op.prototype.createEmoji=function(G,c){c=c===void 0?!0:c;var I=document.createElement("img");G.isCustomEmoji||I.classList.add("small-emoji");I.classList.add("emoji");I.classList.add("yt-formatted-string");I.src=G.image?_.ZX(G.image.thumbnails,this.emojiSize)||"":"";var R=void 0;G.image&&G.image.accessibility&&G.image.accessibility.accessibilityData&&(R=G.image.accessibility.accessibilityData.label);I.alt=R?R:(G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId)||"";G.isCustomEmoji&&(I.dataset.emojiId=
G.emojiId);_.FY&&(I.setAttribute("contenteditable","false"),I.setAttribute("unselectable","on"));c&&(G.shortcuts&&G.shortcuts.length&&I.setAttribute("shared-tooltip-text",G.shortcuts[0]),I.id="emoji-"+fRK++);return I};
_.op.prototype.createDocumentFragment=function(G,c,I,R){c=c===void 0?!1:c;I=I===void 0?!0:I;R=R===void 0?!1:R;G=G.replace(tUT,"");for(var Z=document.createDocumentFragment(),K=0,m,a=0;(m=this.emojiRegex.exec(G))!=null;){var O=_.U7(this,m[0])||_.eh(this,m[0]);!O||O.isCustomEmoji&&!c||(O=this.createEmoji(O,I),K!==m.index&&Z.appendChild(document.createTextNode(G.substring(K,m.index))),Z.appendChild(O),K=m.index+m[0].length,a++)}if(!R||a)return Z.appendChild(document.createTextNode(G.substr(K))),Z};
gxN=function(G,c,I){var R,Z,K,m,a,O,N,q,w;return _.T(function(F){if(F.nextAddress==1){if(!c.emojiId||!G.emojiMap[c.emojiId])return F.return();R=Object.assign({},G.emojiMap[c.emojiId],{stickyPrefId:I});G.emojiMap[c.emojiId]=R;c.index&&((Z=G.emojis[c.index])==null?void 0:Z.emojiId)===c.emojiId&&(G.emojis[c.index]=R);if((K=c.shortcuts)==null?0:K.length)for(G.hasInitializedShortcutCharMap=!1,m=_.Q(c.shortcuts),a=m.next();!a.done;a=m.next())O=a.value,G.emojiShortcutMap[O.toLocaleLowerCase()]=R;return F.yield(_.TI.getInstance(),
2)}if(F.nextAddress!=4)return(N=F.yieldResult)?F.yield(N.get("ytlc-emoji-pref"),4):F.jumpTo(0);w=(q=F.yieldResult)!=null?q:{};w[c.emojiId]=I;return F.yield(N.set("ytlc-emoji-pref",w,x5e),0)})};
_.bd=new _.op;var crT;_.k4={};
crT={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.v("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:_.v("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 dL(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var G=_.Q1(this.hostElement||this).querySelector("#inline-action-button-container");G&&G.setAttribute("aria-hidden","true");this.menuButton=_.Q1(this.hostElement).querySelector("#menu-button")},
attached:function(){var G=this.menuButton;G&&(G.addEventListener("focusin",_.lO(this,this.onMenuButtonFocus_)),G.addEventListener("focusout",_.lO(this,this.onMenuButtonBlur_)))},
detached:function(){var G=this.menuButton;G&&(G.removeEventListener("focusin",_.lO(this,this.onMenuButtonFocus_)),G.removeEventListener("focusout",_.lO(this,this.onMenuButtonBlur_)))},
identity:_.E0,truthy:function(G){return!!G},
computeTimestampString:function(G){return G?G.timestampText?this.getSimpleString(G.timestampText):this.TIME_FORMATTER.format(new Date(G.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(G){return G},
computeMenuVisible_:function(G,c){return G||c},
computeHasInlineActionButtons:function(G){if(!G)return!1;var c,I;return!((c=G.inlineActionButtons)==null||!c.length)||!((I=G.additionalInlineActionButtons)==null||!I.length)},
createDocumentFragmentFromString:function(G){var c=_.bd.createDocumentFragment.bind(_.bd),I;if((I=this.participantsManager)==null||!I.viewerRegex)return c(G);I=document.createDocumentFragment();for(var R=0,Z;(Z=this.participantsManager.viewerRegex.exec(G))!=null;){if(Z.index>0){var K=":"+Z[0]+":";if((_.U7(_.bd,K)||_.eh(_.bd,K))&&G.indexOf(K)===Z.index-1)continue}I.appendChild(c(G.substring(R,Z.index)));R=document.createElement("span");R.appendChild(c(Z[0]));R.classList.add("mention");I.appendChild(R);
R=Z.index+Z[0].length}I.appendChild(c(G.substring(R)));return I},
createDocumentFragment:function(G){var c=document.createDocumentFragment();if(G.simpleText)return c.appendChild(this.createDocumentFragmentFromString(G.simpleText)),c;if(!G.runs)return c;for(var I=0;I<G.runs.length;I++){var R=G.runs[I];if(R.emoji)c.appendChild(_.bd.createEmoji(R.emoji));else if(R.text)if(R.navigationEndpoint){var Z=document.createElement("a");Z.classList.add("yt-simple-endpoint");Djp(Z,R.navigationEndpoint);_.Q1(Z).appendChild(this.createDocumentFragmentFromString(R.text));c.appendChild(Z)}else c.appendChild(this.createDocumentFragmentFromString(R.text))}return c},
hasModerationOverlayVisible:function(){var G;return((G=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:G.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(G){G.composedPath().some(function(c){return(c=c instanceof Element?c:null)?c.tagName&&(c.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||c.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.v("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(G)},
colorFromDecimal:function(G){return daA(G)},
markAsDeleted:function(G,c){this.set("data.deletedStateMessage",G);this.set("data.showOriginalContentMessage",c)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(G){if(this.data.contextMenuEndpoint){var c=_.wH().resolve(_.oI),I=this.data.contextMenuEndpoint,R;(R=_.h0.instance)&&_.di(R,I)?(c=YJV(c,I),R=_.UO(R,{},c)):R=_.GLN(c,I);R.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);G&&G.stopPropagation()}},
handleGetContextMenuResponse_:function(G){var c=_.h0.instance;c&&_.di(c,{liveChatEndpoint:{}})||(G=G.response);G.liveChatItemContextMenuSupportedRenderers&&G.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(G.liveChatItemContextMenuSupportedRenderers.menuRenderer);G.actions&&_.ym(this.hostElement,"yt-live-chat-actions",[G.actions])},
handleGetContextMenuError:function(G){if(G instanceof Error||G instanceof Object||G instanceof String)var c=G;_.hg(new _.iW("Error encountered calling GetLiveChatItemContextMenu",c))},
showContextMenu_:function(G){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Xl(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Xl(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.k4.YtLiveChatItemBehavior=[crT,_.wm.YtComponentBehavior,_.dm.YtOpenPopupBehavior];_.s7=function(){};var IBk;var RPe;var ZWA;var KhK;var Lf=function(){var G=_.J.apply(this,arguments)||this;G.active=!1;G.identity=_.E0;return G};
_.u(Lf,_.J);Lf.prototype.dataChanged=function(){this.active=!1};
Lf.prototype.onClick=function(){_.Xl(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Lf.prototype.dataChanged=Lf.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],Lf.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Lf.prototype,"active",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lf.prototype,"dataChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Lf);
_.B(Lf,"yt-live-chat-text-input-field-suggestion",function(){if(KhK===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;ZWA===void 0&&(ZWA=document.createElement("template"));var R=ZWA;I.call(c,R.content.cloneNode(!0),G.content.firstChild);KhK=G}G=KhK;return G},{mode:0});_.AG=function(G,c,I){return CustomEvent.call(this,G,{detail:{value:c,path:I}})||this};
_.u(_.AG,CustomEvent);_.$4=function(){var G=_.J.apply(this,arguments)||this;G.viewerName=null;G.actionMap={"yt-live-chat-actions":"onChatMessage_"};G.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];G.PARTICIPANT_TIME_USEC_=3E8;return G};
_.u(_.$4,_.J);_.P=_.$4.prototype;_.P.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.P.addParticipant=function(G){var c=_.JUC(this.participants,G,function(R,Z){R=R[Object.keys(R)[0]];Z=Z[Object.keys(Z)[0]];R=String(_.HY(R.authorName)).toLowerCase();Z=String(_.HY(Z.authorName)).toLowerCase();return R<Z?-1:R==Z?0:1}.bind(this));
if(c>=0){var I=this.participants[c];I[Object.keys(I)[0]].timestampUsec&&this.splice("participants",c,1,G)}else this.splice("participants",-c-1,0,G);G=G[Object.keys(G)[0]];c=_.HY(G.authorName).toLocaleLowerCase();I=c.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(I)||(this.allParticipantsCharMap_[I]={});this.allParticipantsCharMap_[I][c]=G};
_.P.getAuthorsFromPrefix=function(G){return this.allParticipantsCharMap_.hasOwnProperty(G)?this.allParticipantsCharMap_[G]:null};
_.P.computeViewerRegex_=function(G){if(!G)return null;G=G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var c=G.indexOf("@")===0&&_.v("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(c+G.replace(/ /g,"\\s*")+"|^"+G.replace(/ /g,"\\s*")+"$|^"+G.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+G.replace(/ /g,"\\s*")+"$|(?<=\\s)"+G.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.P.checkForStaleParticipants_=function(){var G=this;this.trimOldParticipants_();this.asyncHandle_&&UWB(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.xW(function(){G.checkForStaleParticipants_()},3E4))};
_.P.onChatMessage_=function(G){var c=this,I=Date.now()*1E3;G.forEach(function(R){if(R=_.D(R,tMT)){R=R.item;var Z=Object.keys(R)[0];c.SUPPORTED_ITEM_TYPES_.indexOf(Z)!=-1&&R[Z].timestampUsec>=I-c.PARTICIPANT_TIME_USEC_&&c.addParticipant(R)}},this);
this.checkForStaleParticipants_()};
_.P.trimOldParticipants_=function(){for(var G=Date.now()*1E3,c=this.participants.length-1;c>=0;c--){var I=this.participants[c];I=I[Object.keys(I)[0]];I.timestampUsec&&I.timestampUsec<G-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",c,1)}};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],_.$4.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],_.$4.prototype,"viewerName",void 0);_.r([_.E({computed:"computeViewerRegex_(viewerName)"}),_.h("design:type",Object)],_.$4.prototype,"viewerRegex",void 0);_.r([_.E({value:function(){return[]},
notify:!0}),_.h("design:type",Array)],_.$4.prototype,"participants",void 0);_.r([_.Em({is:"yt-live-chat-participants-manager",noInjection:!0})],_.$4);var P$0=/.*([:@#].*?)$/,SN=/\u00a0/g,Q82=String.fromCharCode(160),m1i={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"},pf=function(){var G=_.J.apply(this,arguments)||this;G.disabled=!1;G.liveChatRichMessageInput=null;G.messageInput=null;G.isValidWithNoInputText=!1;G.suggestions=[];G.emojiManager=_.bd;G.inputMethodEditorActive=
!1;G.suggestionIndex=-1;G.JSC$14398_lastSuggestionRange=null;return G};
_.u(pf,_.J);_.P=pf.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.P.attached=function(){_.ny&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.P.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.P.dataChanged=function(){if(!this.ignoreColorMapping){var G=!1,c={},I;for(I in m1i)this.data&&this.data.hasOwnProperty(I)&&(c[m1i[I]]=this.colorFromDecimal(this.data[I]),G=!0);G&&_.eD(this.hostElement,c)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.P.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.P.colorFromDecimal=function(G){G=Math.floor(Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
_.P.preventDrag=function(G){G.dataTransfer&&(G.dataTransfer.dropEffect="none");G.preventDefault()};
_.P.preventResize=function(G){G.returnValue=!1};
_.P.onInputChange=function(){var G=this.characterCount,c=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&c&&c.remove();if(!c&&this.characterCount>this.maxCharacterLimit){var I=window.getSelection();if(I){var R=I.getRangeAt(0);I.removeAllRanges();I.addRange(R)}}if(I=this.getCurrentRange())R=this.calculateTextBeforeRange(I),this.completeEmojisInRange(I,R,!0)||this.updateSuggestions(I,R);R=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(R);
_.Xl(this.hostElement,"yt-live-chat-message-input-change",R);c&&this.characterCount===0&&c.remove();I&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>G):I&&!I.collapsed&&I.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(G=this.input.childNodes.length-1;G>=0;G--)this.input.childNodes[G].nodeName==="BR"&&this.input.childNodes[G].remove()};
_.P.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.P.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var G=this.getCurrentRange();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.mergeOverflowText=function(G){if(G){var c=document.createRange();c.selectNodeContents(G);c=c.extractContents();this.input.insertBefore(c,G)}};
_.P.checkRangeAtEndOfInput=function(){var G=this.getCurrentRange();if(G){var c=_.Q1(this.hostElement).querySelector("#overflow-text"),I=document.createRange();c&&c.previousSibling?c.previousSibling instanceof HTMLImageElement?I.selectNode(c.previousSibling):I.selectNodeContents(c.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?I.selectNode(this.input.lastChild):I.selectNodeContents(this.input.lastChild));I.collapse(!1);return I.isPointInRange(G.startContainer,
G.startOffset)}return!1};
_.P.handleOverflowText=function(G){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var c=_.Q1(this.hostElement).querySelector("#overflow-text"),I=this.getCurrentRange();this.input.normalize();G=this.checkRangeAtEndOfInput()&&G;this.mergeOverflowText(c);for(var R,Z=0,K=0,m,a=this.input.childNodes,O=0;O<a.length;O++){var N=a[O];N instanceof Text?(K+=N.textContent.length,K>this.maxCharacterLimit&&(R=N,Z=this.maxCharacterLimit+N.textContent.length-K)):N instanceof HTMLImageElement&&
(R=void 0,K=N.dataset.emojiId&&((R=this.data)==null?0:R.emojiCharacterCount)?K+this.data.emojiCharacterCount:K+N.alt.length,R=this.input,Z=O);if(K>this.maxCharacterLimit&&R){m=document.createRange();m.collapse(!1);c?(K=this.input.lastChild.previousSibling,K instanceof Text?m.setEnd(this.input.lastChild.previousSibling,K.textContent.length):K instanceof HTMLImageElement&&m.setEnd(this.input,this.input.childNodes.length-1)):m.selectNodeContents(this.input);m.setStart(R,Z);break}}m&&(R=!1,I&&(G=m.isPointInRange(I.startContainer,
I.startOffset-1)),c||(c=document.createElement("span"),c.id="overflow-text",c.textContent="",c.setAttribute("contenteditable","true"),_.Q1(_.Q1(this.hostElement).querySelector("#input")).appendChild(c),R=!0),c&&(I=m.extractContents(),c.insertBefore(I,c.firstChild),G&&c.firstChild&&(I=document.createRange(),R?I.setStartAfter(c.lastChild):I.setStartAfter(c.firstChild),I.collapse(!0),c=window.getSelection(),c.removeAllRanges(),c.addRange(I))))}};
_.P.checkForDuplicateSpans=function(){for(var G=0;G<this.input.childNodes.length;G++){var c=this.input.childNodes[G];if(c.nodeName==="SPAN"){var I=document.createRange();I.selectNodeContents(c);I=I.extractContents();this.input.insertBefore(I,c);c.remove()}}this.handleOverflowText(!0)};
_.P.getCurrentRange=function(){var G=window.getSelection();return G&&G.rangeCount?G.getRangeAt(0).cloneRange():null};
_.P.getInputRange=function(){var G=this.getCurrentRange();if(G){for(var c=G.commonAncestorContainer,I=!1,R=_.Q1(this.hostElement).querySelector("#input");c;){if(c===R){I=!0;break}c=c.parentNode}I||(G=null)}G||(G=this.getRangeAtEnd());return G};
_.P.getRangeAtEnd=function(){var G=document.createRange(),c=_.Q1(this.hostElement).querySelector("#input").lastChild;!c||c.nodeName!=="#text"&&c.nodeName!=="SPAN"?(G.selectNodeContents(_.Q1(this.hostElement).querySelector("#input")),G.collapse(!1)):c.nodeName==="#text"?G.setStart(c,c.textContent.length):G.setStart(c,c.childNodes.length);return G};
_.P.getChatParticipantSuggestions=function(G,c,I,R){var Z=_.v("live_chat_enable_handles_web_text_input_update");if(c)for(var K in c)if(K.indexOf(G)===0||Z&&K.indexOf(I+G)===0){var m=c[K],a=_.HY(m.authorName);R.push({suggestion:{author:!0,authorType:I,image:m.authorPhoto,alt:a,text:a}});if(R.length>=64)break}};
_.P.getSuggestions=function(G){var c=[],I=G.substring(0,3),R=yTK(_.bd,I,!0);if(R)for(var Z in R)if(Z.toLocaleLowerCase().indexOf(G)===0){var K=R[Z];if(K&&K.emojiId){if(K=XA9(_.bd,K.emojiId)){var m=void 0,a=void 0,O=void 0,N=void 0,q=((m=K.image)==null?0:(a=m.accessibility)==null?0:(O=a.accessibilityData)==null?0:O.label)||K.isCustomEmoji?(N=K.shortcuts)==null?void 0:N[0]:K.emojiId;c.push({suggestion:{emoji:!0,image:K.image,alt:q,text:Z,textToInsertWhenSelected:K.isCustomEmoji?Z:q}})}if(c.length>=
64)break}}if(!this.participantsManager)return null;if(I.indexOf("@")===0||I.indexOf("#")===0)R=I.charAt(0),G=G.substring(1),Z=_.v("live_chat_enable_handles_web_text_input_update"),I.indexOf("@")===0&&Z&&(Z=this.participantsManager.getAuthorsFromPrefix(I.substring(0,2)),this.getChatParticipantSuggestions(G,Z,R,c)),I=I.substring(1),I=this.participantsManager.getAuthorsFromPrefix(I),this.getChatParticipantSuggestions(G,I,R,c);return c?c.sort(function(w,F){return F.suggestion.text<w.suggestion.text?-1:
F.suggestion.text===w.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(G){var c=_.v("live_chat_enable_handles_web_text_input_update"),I=G.authorType;c=G.text.indexOf(I)===0&&c?G.text+Q82:I+G.text+Q82;G.emoji?this.insertTextAtRange(this.JSC$14398_lastSuggestionRange,G.textToInsertWhenSelected||""):G.author&&this.insertTextAtRange(this.JSC$14398_lastSuggestionRange,c)};
_.P.updateSuggestionsAtCaret=function(){var G=this.getCurrentRange();G&&this.updateSuggestions(G,this.calculateTextBeforeRange(G))};
_.P.offsetStartOfRangeBy=function(G,c){for(;c>0;)if(G.startOffset-c>=0){G.setStart(G.startContainer,G.startOffset-c);break}else{c=G.startContainer instanceof HTMLImageElement?c-G.startContainer.alt.length:c-G.startOffset;var I=G.startContainer.previousSibling;if(!I){G.setStart(G.startContainer,0);break}if(_.v("live_chat_require_space_for_autocomplete_emoji")){var R=void 0,Z=void 0;G.setStart(I,((R=I)==null?void 0:(Z=R.textContent)==null?void 0:Z.length)||0)}else G.setStart(I,I.childNodes.length||
0)}};
_.P.updateSuggestions=function(G,c){var I=this;this.JSC$14398_lastSuggestionRange&&(this.JSC$14398_lastSuggestionRange.detach(),this.JSC$14398_lastSuggestionRange=null);if((c=P$0.exec(c))&&c.length&&(c=c[c.length-1].toLocaleLowerCase(),c.length>2&&(this.offsetStartOfRangeBy(G,c.length),this.JSC$14398_lastSuggestionRange=G,(G=this.getSuggestions(c))&&G.length))){this.suggestions=G;_.O$(this,function(){_.Q1(I.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(G.length-1);return}this.dropdown.opened=!1};
_.P.completeEmojisInRange=function(G,c,I){var R=c.replace(/[\s\xa0]+$/,"");c=c.length-R.length;R=R.split(" ");R=R[R.length-1].trim().toLocaleLowerCase();var Z=R.lastIndexOf(":");if(I&&!c&&Z!==R.length-1)return!1;Z!==-1&&(I=R.lastIndexOf(":",Z-1),I!==-1&&(R=R.substring(I)));if((I=_.eh(_.bd,R))&&I.emojiId){I=XA9(_.bd,I.emojiId)||null;this.offsetStartOfRangeBy(G,R.length+c);var K,m,a,O;R=(((K=I)==null?0:K.isCustomEmoji)?(m=I)==null?void 0:(a=m.shortcuts)==null?void 0:a[0]:(O=I)==null?void 0:O.emojiId)||
"";c&&(R+=Q82);this.insertTextAtRange(G,R);this.dropdown.opened=!1;return!0}return!1};
_.P.onSuggestion=function(G){this.insertSuggestion(G.detail);this.dropdown.opened=!1};
_.P.onKeyPress=function(G){G.keyCode===13&&(G.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Xl(this.hostElement,"yt-live-chat-send-message"))};
_.P.completeEmojis=function(){var G=document.createRange(),c=_.Q1(this.hostElement).querySelector("#input").lastChild;c?G.setStart(c,c.childNodes.length):(G.selectNodeContents(_.Q1(this.hostElement).querySelector("#input")),G.collapse(!1));this.completeEmojisInRange(G,this.calculateTextBeforeRange(G),_.v("live_chat_require_space_for_autocomplete_emoji"))};
_.P.maybePreventTextFormatting=function(G){!_.UH||!G.ctrlKey&&!G.metaKey||G.keyCode!==66&&G.keyCode!==73||(G.stopImmediatePropagation(),G.preventDefault())};
_.P.onKeyDown=function(G){this.maybePreventTextFormatting(G);if(this.dropdown.opened)switch(G.keyCode){case 27:this.dropdown.opened=!1;G.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;G.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);G.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),G.preventDefault()}};
_.P.onKeyUp=function(G){switch(G.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.FY)this.onInputChange()};
_.P.changeSuggestionIndex=function(G){if(this.dropdown.opened){var c=_.Q1(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<c.children.length&&(c.children[this.suggestionIndex].active=!1);var I=this.suggestions.length;this.suggestionIndex=(G+I)%I;G=c.children[this.suggestionIndex];G.active=!0;c.scrollTop=G.offsetTop}};
_.P.onInputPaste=function(G){G.preventDefault();(G=G.clipboardData)&&G.types&&(G=G.getData("text/plain")||"",G=G.replace(/\n/g,""),this.insertText(G));(G=this.getCurrentRange())&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.onFocus=function(){this._setFocused(!0)};
_.P.onBlur=function(){this._setFocused(!1)};
_.P.insertText=function(G){this.insertTextAtRange(this.getInputRange(),G)};
_.P.insertTextAtRange=function(G,c){if(G&&(G.collapsed||G.deleteContents(),c=_.bd.createDocumentFragment(c,!0,!1))){for(var I=_.Q((c==null?void 0:c.childNodes)||[]),R=I.next();!R.done;R=I.next()){R=R.value;var Z=void 0,K=void 0,m=void 0,a=void 0,O=void 0;(m=(Z=window)==null?void 0:(K=Z.ShadyCSS)==null?void 0:K.ScopingShim)==null||(O=(a=m).scopeNode)==null||O.call(a,R,this.hostElement.localName)}I=c.lastChild;G.insertNode(c);this.focused||this.input.focus();if(this.focused){G=G.cloneRange();G.selectNodeContents(I);
G.collapse(!1);if(c=window.getSelection())c.removeAllRanges(),c.addRange(G);G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}G=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(G);_.Xl(this.hostElement,"yt-live-chat-message-input-change",G)}};
_.P.setLiveChatRichMessageInput=function(G){_.Q1(_.Q1(this.hostElement).querySelector("#input")).textContent="";if(G&&G.textSegments){for(var c=0;c<G.textSegments.length;c++){var I=G.textSegments[c];I.text?_.Q1(_.Q1(this.hostElement).querySelector("#input")).appendChild(_.bd.createDocumentFragment(I.text,!0,!1)):I.emojiId&&(I=_.U7(_.bd,I.emojiId))&&_.Q1(_.Q1(this.hostElement).querySelector("#input")).appendChild(_.bd.createEmoji(I,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.P.setText=function(G){this.setLiveChatRichMessageInput(G?{textSegments:[{text:G}]}:null)};
_.P.calculateTextBeforeRange=function(G){var c="",I=G.startContainer;if(I&&I instanceof Text){var R;c=((R=I.textContent)==null?void 0:R.substring(0,G.startOffset))||"";I=I.previousSibling}for(;I&&I instanceof Text;)c=I.textContent+c,I=I.previousSibling;return c.replace(SN," ")};
_.P.calculateLiveChatRichMessageInput=function(){for(var G=[],c="",I=_.Q1(_.Q1(this.hostElement).querySelector("#input")).childNodes,R=0;R<I.length;R++){var Z=I[R];Z instanceof Text?c+=Z.textContent:Z instanceof HTMLImageElement&&(Z.dataset.emojiId?(c&&(G.push({text:c.replace(SN," ")}),c=""),G.push({emojiId:Z.dataset.emojiId})):c+=Z.alt)}c&&G.push({text:c.replace(SN," ")});if(I=_.Q1(this.hostElement).querySelector("#overflow-text")){c="";I=I.childNodes;for(R=0;R<I.length;R++)Z=I[R],Z instanceof Text?
c+=Z.textContent:Z instanceof HTMLImageElement&&(Z.dataset.emojiId?(c&&(G.push({text:c.replace(SN," ")}),c=""),G.push({emojiId:Z.dataset.emojiId})):c+=Z.alt);c&&G.push({text:c.replace(SN," ")})}return{textSegments:G}};
_.P.computeCharacterCount=function(G){if(!G||!G.textSegments)return 0;for(var c=0,I=0;I<G.textSegments.length;I++){var R=G.textSegments[I];if(R.text)c+=R.text.length;else if(R.emojiId){var Z=void 0;if((Z=this.data)==null?0:Z.emojiCharacterCount)c+=this.data.emojiCharacterCount;else{var K=Z=void 0,m=void 0;c+=((K=_.U7(_.bd,(Z=R)==null?void 0:Z.emojiId))==null?void 0:(m=K.shortcuts)==null?void 0:m[0].length)||0}}}return c};
_.P.characterCountChanged=function(){_.Xl(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.P.focusedChanged=function(){this.hostElement.dispatchEvent(new _.AG("focused-changed",this.focused))};
_.P.focus=function(){this.setFocus(!1)};
_.P.focusAtEnd=function(){this.setFocus(!0)};
_.P.setFocus=function(G){G=G?this.getRangeAtEnd():this.getInputRange();_.Q1(this.hostElement).querySelector("#input").focus();var c=window.getSelection();c&&(c.removeAllRanges(),c.addRange(G))};
_.P.insertEmoji=function(G){var c,I=((G==null?0:G.isCustomEmoji)?(c=G.shortcuts)==null?void 0:c[0]:G==null?void 0:G.emojiId)||"";this.insertText(I)};
_.P.computeText=function(G){if(!G||!G.textSegments)return"";for(var c="",I=0;I<G.textSegments.length;I++){var R=G.textSegments[I];if(R.text)c+=R.text;else if(R.emojiId){var Z=void 0,K=void 0,m=void 0;c+=((K=_.U7(_.bd,(Z=R)==null?void 0:Z.emojiId))==null?void 0:(m=K.shortcuts)==null?void 0:m[0])||""}}return c};
_.P.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Nh.Object.defineProperties(pf.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
pf.prototype.focusedChanged=pf.prototype.focusedChanged;pf.prototype.characterCountChanged=pf.prototype.characterCountChanged;pf.prototype.onSuggestion=pf.prototype.onSuggestion;pf.prototype.onMessageSet=pf.prototype.onMessageSet;pf.prototype.dataChanged=pf.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],pf.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],pf.prototype,"disabled",void 0);_.r([_.A("disabled"),_.h("design:type",Number),_.h("design:paramtypes",[])],pf.prototype,"inputTabIndex",null);_.r([_.A("data.maxCharacterLimit"),_.E({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],pf.prototype,"maxCharacterLimit",null);
_.r([_.A("liveChatRichMessageInput"),_.E({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],pf.prototype,"characterCount",null);_.r([_.A("maxCharacterLimit, characterCount"),_.E({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],pf.prototype,"remainingCharacterCount",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],pf.prototype,"isChatMessageInput",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],pf.prototype,"inputExpanded",void 0);_.r([_.E({readOnly:!0,notify:!0}),_.h("design:type",Object)],pf.prototype,"liveChatRichMessageInput",void 0);_.r([_.E(),_.h("design:type",Object)],pf.prototype,"messageInput",void 0);_.r([_.E(),_.h("design:type",Boolean)],pf.prototype,"ignoreColorMapping",void 0);_.r([_.A("characterCount"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],pf.prototype,"hasText",null);
_.r([_.E(),_.h("design:type",Object)],pf.prototype,"isValidWithNoInputText",void 0);_.r([_.A("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.E(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],pf.prototype,"isInputValid",null);_.r([_.E({readOnly:!0,value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],pf.prototype,"focused",void 0);_.r([_.E(),_.h("design:type",Array)],pf.prototype,"suggestions",void 0);
_.r([_.E(),_.h("design:type",_.op)],pf.prototype,"emojiManager",void 0);_.r([_.E(),_.h("design:type",_.$4)],pf.prototype,"participantsManager",void 0);_.r([_.E(),_.h("design:type",Boolean)],pf.prototype,"noUnderline",void 0);_.r([_.E(),_.h("design:type",Object)],pf.prototype,"inputMethodEditorActive",void 0);_.r([_.nH("#dropdown"),_.h("design:type",Object)],pf.prototype,"dropdown",void 0);_.r([_.nH("#input"),_.h("design:type",HTMLElement)],pf.prototype,"input",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pf.prototype,"dataChanged",null);_.r([_.wD("messageInput"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pf.prototype,"onMessageSet",null);_.r([_.qY("yt-live-chat-select-suggestion"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pf.prototype,"onSuggestion",null);
_.r([_.wD("characterCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pf.prototype,"characterCountChanged",null);_.r([_.wD("focused"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pf.prototype,"focusedChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],pf);
_.aBA=_.B(pf,"yt-live-chat-text-input-field-renderer",function(){if(RPe===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;IBk===void 0&&(IBk=document.createElement("template"));var R=IBk;I.call(c,R.content.cloneNode(!0),G.content.firstChild);RPe=G}G=RPe;return G},{mode:0});var MH=function(){var G=_.J.apply(this,arguments)||this;G.buttonOverrides={style:"overlay",type:"filled"};G.allowAnimations=!1;G.modern=_.v("web_button_rework_with_live");G.noPadding=!1;return G};
_.u(MH,_.J);_.P=MH.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.P.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.attached=function(){this.allowAnimations=!1};
_.P.dataChanged=function(){if(this.data){var G={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.eD(this.hostElement,G);this.allowAnimations=!0}};
_.P.messageChanged=function(){var G,c=(G=this.data)==null?void 0:G.message;G=_.Q1(_.Q1(this.hostElement).querySelector("#message"));G.textContent="";c&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(c))};
_.P.computeShowOnlyHeader=function(G,c){return!G||G.pdgLikeButton||G.replyButton||G.buyFlowButton?!1:this.isEmpty(G,c)&&!G.footer};
_.P.computeShowFooterDivider=function(G,c,I){return G?!!G.footer&&!this.isEmpty(G,c)&&!I:!1};
_.P.computeIsUserEditable=function(G){return!!G.inputField};
_.P.computeHasHeartButton=function(G){return(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.P.computeNoveltyImage=function(G){if(G.headerOverlayImage&&G.headerOverlayImage.thumbnails.length){var c=G.headerOverlayImage.thumbnails[0],I,R;if((I=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(R=I.loggingDirectives)==null?0:R.trackingParams){var Z,K;D5r((Z=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(K=Z.loggingDirectives)==null?void 0:K.trackingParams)}return c.width||0}return 0};
_.P.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.P.inputFocus=function(){var G=_.Q1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");G&&G.focus()};
_.P.inputInsertEmoji=function(G){var c=_.Q1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");c&&c.insertEmoji(G)};
_.P.inputMessage=function(){var G=_.Q1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),c;return G&&((c=this.data)==null?0:c.inputField)?(G.completeEmojis(),_.ju(G.liveChatRichMessageInput)):null};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.P.isEmpty=function(G,c){return G?G.empty||!(G.message||G.inputField||c):!0};
_.P.onLowerBuyButtonClick=function(){var G,c=_.D((G=this.data)==null?void 0:G.buyButton,_.vE);c&&c.trackingParams&&!HL0(c.command)&&(G=_.kC(c.trackingParams))&&(c=_.k0())&&_.jW(c,G)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.Nh.Object.defineProperties(MH.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
MH.prototype.isDeletedChanged=MH.prototype.isDeletedChanged;MH.prototype.messageChanged=MH.prototype.messageChanged;MH.prototype.dataChanged=MH.prototype.dataChanged;_.r([_.L(zc9.YtPdgLiveChatItemBehavior),_.h("design:type",Object)],MH.prototype,"ytPdgLiveChatItemBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],MH.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],MH.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],MH.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:nxf}),_.h("design:type",Object)],MH.prototype,"engagementState",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.h("design:type",Boolean)],MH.prototype,"isUserEditable",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.h("design:type",Boolean)],MH.prototype,"hasHeartButton",void 0);_.r([_.E({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.h("design:type",Boolean)],MH.prototype,"showOnlyHeader",void 0);
_.r([_.E({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.h("design:type",Boolean)],MH.prototype,"showFooterDivider",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],MH.prototype,"allowAnimations",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],MH.prototype,"dashboardMoneyFeed",void 0);_.r([_.E({computed:"computeNoveltyImage(data)"}),_.h("design:type",Number)],MH.prototype,"noveltyWidth",void 0);
_.r([_.E({computed:"computeAuthorPhotoSize(data)"}),_.h("design:type",Number)],MH.prototype,"authorPhotoSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],MH.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],MH.prototype,"noPadding",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MH.prototype,"dataChanged",null);
_.r([_.wD("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MH.prototype,"messageChanged",null);_.r([_.A("data","dashboardMoneyFeed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],MH.prototype,"hideLowerBumper",null);_.r([_.wD("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MH.prototype,"isDeletedChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],MH);
_.B(MH,"yt-live-chat-paid-message-renderer",function(){if(lR0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;NYK===void 0&&(NYK=document.createElement("template"));var R=NYK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);lR0=G}G=lR0;return G},{mode:0});var T9K;var OWN;var VZ=function(){var G=_.D4.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.u(VZ,_.D4);VZ.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.H1("openPopupConfig")};
_.r([_.L(_.dm.YtOpenPopupBehavior),_.h("design:type",Object)],VZ.prototype,"ytOpenPopupBehavior",void 0);_.r([_.Um()],VZ);_.zQ=[_.dm.YtOpenPopupBehavior,VZ.prototype];var ePk;var X6=[_.qD,D7k,_.fM,_.MNk,_.Y5,_.jj2,_.ql,_.vH,_.wn,_.g4B,_.fR];X6.push(_.fQ);_.v("web_show_ep_endpoint_response_received")&&X6.push(_.iJ);var E2r=new _.De("RESPONSE_RECEIVED_COMMANDS"),Mer=new _.De("RESPONSE_RECEIVED_COMMANDS");var kLq="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),bWr=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],urO=["GET_UNSEEN_NOTIFICATION_COUNT"];var E7=function(){var G=_.D4.apply(this,arguments)||this;G._noAccessors=!0;G.serviceEndpointHandlers=[];return G};
_.u(E7,_.D4);E7.prototype.created=function(){var G=this;this.endpointHandlerActionMap={"yt-service-request":function(c,I,R,Z){var K;return U1f(G.hostElement,c,I,R,Z,G.serviceEndpointHandlers,(K=G.onEntitiesUpdated)==null?void 0:K.bind(G))}}};
E7.prototype.attached=function(){_.KY(_.RD.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
E7.prototype.detached=function(){_.PN(_.RD.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.r([_.Um()],E7);_.N90=[E7.prototype];var lBe,qjT=function(){return lBe!==void 0?lBe:lBe=document.createElement("template")};
document.head.appendChild(qjT().content);var wnK;var Fhk=document.head,n8K=Fhk.appendChild,v80;if(wnK===void 0){var D1N=document.createElement("template");_.b(D1N,"\x3c!--css-build:shady--\x3e");D1N.content.insertBefore(qjT().content.cloneNode(!0),D1N.content.firstChild);wnK=D1N}v80=wnK;n8K.call(Fhk,v80.content);var o82,U1k=function(){return o82!==void 0?o82:o82=document.createElement("template")};
document.head.appendChild(U1k().content);var urB;var bW0=document.head,kL0=bW0.appendChild,s8e;if(urB===void 0){var LhN=document.createElement("template");_.b(LhN,"\x3c!--css-build:shady--\x3e");LhN.content.insertBefore(U1k().content.cloneNode(!0),LhN.content.firstChild);urB=LhN}s8e=urB;kL0.call(bW0,s8e.content);var ArV;_.Su("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Su("sharingRendererButtons","buttonRenderer","ytd-button-renderer");ArV=_.v("web_button_rework")&&_.XG("BUTTON_REWORK")||_.v("web_button_rework_with_live");_.JG=function(){var G=_.J.apply(this,arguments)||this;G.isPressed=!1;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return G};
_.u(_.JG,_.J);_.P=_.JG.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.onHintIdChanged=function(){var G=this,c,I,R=(c=this.ytButtonBehavior.data)==null?void 0:(I=c.hint)==null?void 0:I.hintRenderer;if(R&&R.hintId){c=_.gq(this.hostElement,"yt-get-opened-popups-action");c=(c&&c.length===1?c[0]:[]).length>0;var Z=null;R.hintId!=="sponsor-pre-purchase"||c?R.hintId.startsWith("sponsor-post-purchase")&&!c?Z=oRN("membership-manage"):R.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!c&&(Z=oRN("membership-freebie-join")):Z=oRN("membership-join");Z&&_.dJ.addLowPriorityJob(function(){for(var K=
_.Q(Z),m=K.next();!m.done;m=K.next())G.ytComponentBehavior.resolveCommand(m.value)})}};
_.P.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.P.onYtNavigate=function(G){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);c&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(c))};
_.P.onYtServiceRequestSent=function(G,c){this.handleServiceRequestActions(c);_.Xl(this.hostElement,"yt-service-request-sent-button-renderer")};
_.P.onServiceRequestCompleted=function(G,c){this.handleServiceRequestActions(c);_.Xl(this.hostElement,"yt-service-request-completed-button-renderer")};
_.P.updateButton=function(G){var c;if(G=(c=_.D(G,O$k))==null?void 0:c.updatedButton)this.ytButtonBehavior.data=_.D(G,_.vE)};
_.P.handleUpdateButtonAction=function(G){var c=this.ytButtonBehavior.data;c.targetId&&G.updateButtonAction.targetId&&c.targetId===G.updateButtonAction.targetId&&this.updateButton(G)};
_.P.handleServiceRequestActions=function(G){if(G=G.actions)for(var c=0;c<G.length;c++)this.updateButton(G[c])};
_.Nh.Object.defineProperties(_.JG,{template:{configurable:!0,enumerable:!0,get:function(){if(ePk===void 0){var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);ePk=G}G=ePk;return G}}});
_.JG.prototype.onServiceRequestCompleted=_.JG.prototype.onServiceRequestCompleted;_.JG.prototype.onYtServiceRequestSent=_.JG.prototype.onYtServiceRequestSent;_.JG.prototype.onYtNavigate=_.JG.prototype.onYtNavigate;_.JG.prototype.onPressedStateChanged=_.JG.prototype.onPressedStateChanged;_.JG.prototype.onHintIdChanged=_.JG.prototype.onHintIdChanged;_.r([_.E(),_.h("design:type",Object)],_.JG.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],_.JG.prototype,"isPressed",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],_.JG.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V8A.YtButtonBehavior),_.h("design:type",Object)],_.JG.prototype,"ytButtonBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],_.JG.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],_.JG.prototype,"ytComponentBehavior",void 0);
_.r([_.L(Ip.YtRenderButtonBehavior),_.h("design:type",Object)],_.JG.prototype,"ytRenderButtonBehavior",void 0);_.r([_.wD("data.hint.hintRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],_.JG.prototype,"onHintIdChanged",null);_.r([_.wD("isPressed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],_.JG.prototype,"onPressedStateChanged",null);
_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],_.JG.prototype,"onYtNavigate",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],_.JG.prototype,"onYtServiceRequestSent",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],_.JG.prototype,"onServiceRequestCompleted",null);_.r([_.Jc({is:"ytd-button-renderer",disableElementRegistration:ArV})],_.JG);var WQ=function(){var G=_.J.apply(this,arguments)||this;G.modern=_.v("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.u(WQ,_.J);_.P=WQ.prototype;_.P.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.P.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.dataChanged=function(){if(this.data&&this.data.sticker){var G=_.ZX(this.data.sticker.thumbnails,this.stickerWidth);G||_.iWg(G).thenCatch(function(){_.Ck(new _.iW("Failed to load Super Sticker with url",G))})}};
_.P.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)?32:40};
_.P.computeIsV2Style=function(G){return(G==null?0:G.isV2Style)?!0:!1};
_.P.onStickerLoaded=function(G){var c,I,R;(c=_.HH(G))==null||(I=c.parentNode)==null||(R=I.classList)==null||R.add("sticker-loaded")};
_.P.computeNoveltyImageWidth=function(G){var c,I;if(G==null?0:(c=G.headerOverlayImage)==null?0:(I=c.thumbnails)==null?0:I.length){c=G.headerOverlayImage.thumbnails[0];var R,Z;if((R=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Z=R.loggingDirectives)==null?0:Z.trackingParams){var K,m;D5r((K=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(m=K.loggingDirectives)==null?void 0:m.trackingParams)}return c.width||0}return 0};
_.P.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.P.updateStickerStyles=function(){var G=this.data;G&&(G={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.authorNameTextColor)},
_.eD(this.hostElement,G))};
_.P.onBuyButtonClick=function(){var G,c=_.D((G=this.data)==null?void 0:G.buyButton,_.vE);c&&!HL0(c.command)&&this.ytRendererBehavior.logExplicitClick(c)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.Nh.Object.defineProperties(WQ.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
WQ.prototype.updateStickerStyles=WQ.prototype.updateStickerStyles;WQ.prototype.isDeletedChanged=WQ.prototype.isDeletedChanged;WQ.prototype.onStickerLoaded=WQ.prototype.onStickerLoaded;WQ.prototype.dataChanged=WQ.prototype.dataChanged;_.r([_.L(zc9.YtPdgLiveChatItemBehavior),_.h("design:type",Object)],WQ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],WQ.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],WQ.prototype,"data",void 0);
_.r([_.E({computed:"computeAuthorPhotoSize(data)"}),_.h("design:type",Number)],WQ.prototype,"authorPhotoSize",void 0);_.r([_.E(),_.h("design:type",Boolean)],WQ.prototype,"isDeleted",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],WQ.prototype,"dashboardMoneyFeed",void 0);_.r([_.E({computed:"computeNoveltyImageWidth(data)"}),_.h("design:type",Number)],WQ.prototype,"noveltyWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],WQ.prototype,"modern",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.h("design:type",Boolean)],WQ.prototype,"isV2Style",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WQ.prototype,"dataChanged",null);_.r([_.qY("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],WQ.prototype,"onStickerLoaded",null);
_.r([_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],WQ.prototype,"stickerWidth",null);_.r([_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],WQ.prototype,"stickerHeight",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WQ.prototype,"hasHeartButton",null);_.r([_.A("data","dashboardMoneyFeed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WQ.prototype,"hideLowerBumper",null);
_.r([_.wD("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WQ.prototype,"isDeletedChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WQ.prototype,"updateStickerStyles",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],WQ);
_.B(WQ,"yt-live-chat-paid-sticker-renderer",function(){if(OWN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;T9K===void 0&&(T9K=document.createElement("template"));var R=T9K;I.call(c,R.content.cloneNode(!0),G.content.firstChild);OWN=G}G=OWN;return G},{mode:0});var $10;var Sji;var pn2,Mei=function(){return pn2!==void 0?pn2:pn2=document.createElement("template")};
document.head.appendChild(Mei().content);var VeK,zPi=function(){return VeK!==void 0?VeK:VeK=document.createElement("template")};
document.head.appendChild(zPi().content);var E8V;var JrK,Wh0=function(){return JrK!==void 0?JrK:JrK=document.createElement("template")};
document.head.appendChild(Wh0().content);var iWA;var fBi=document.head,B9V=fBi.appendChild,rr0;if(iWA===void 0){var j8K=document.createElement("template");_.b(j8K,"\x3c!--css-build:shady--\x3e");j8K.content.insertBefore(Wh0().content.cloneNode(!0),j8K.content.firstChild);iWA=j8K}rr0=iWA;B9V.call(fBi,rr0.content);var x1i=document.head,te0=x1i.appendChild,hPB;if(E8V===void 0){var id=document.createElement("template");_.b(id,"\x3c!--css-build:shady--\x3e");id.content.insertBefore(zPi().content.cloneNode(!0),id.content.firstChild);id.content.insertBefore(Mei().content.cloneNode(!0),id.content.firstChild);E8V=id}hPB=E8V;te0.call(x1i,hPB.content);var ff=function(){var G=_.D4.apply(this,arguments)||this;G.focusedIndex=0;G.verticalOffset=0;G.verticalAlign="top";G.dynamicAlign=!0;return G};
_.u(ff,_.D4);ff.prototype.emojiUrl=function(G){G=_.U7(this.emojiManager,G);if(!G)return"";var c;G=(c=G.image)==null?void 0:c.thumbnails;return _.ZX(G,24)||""};
var d1K=function(G){var c;G.emojiVariants&&(c=G.data)!=null&&c.target&&_.O$(G,function(){G.set("verticalOffset",-1*G.hostElement.clientHeight);var I=_.Q1(G.hostElement).querySelector("img");I&&I.focus()})};
_.P=ff.prototype;_.P.onKeyboardEnter=function(){};
_.P.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.P.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.P.onKeyDown=function(G){switch(G.keyCode){case 13:this.onKeyboardEnter();G.preventDefault();break;case 40:this.changeFocus(1);G.preventDefault();break;case 38:this.changeFocus(-1);G.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.P.onYtEmojiSelect=function(G){var c=this,I,R,Z,K,m,a,O,N;return _.T(function(q){if(q.nextAddress==1)return R=(I=c.data)==null?void 0:I.emoji,m=((Z=R)==null?void 0:Z.stickyPrefId)||((K=R)==null?void 0:K.emojiId),O=(a=G.detail)==null?void 0:a.emojiId,m&&O&&m!==O?q.yield((N=c.emojiManager)==null?void 0:gxN(N,R,O),2):q.return();_.ym(c.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[R,O]);_.Vp(q)})};
_.P.changeFocus=function(G){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+G+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(G=_.Q1(this.hostElement).querySelector("#variants"))&&G.children[this.focusedIndex].focus())};
_.Nh.Object.defineProperties(ff.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
ff.prototype.onYtEmojiSelect=ff.prototype.onYtEmojiSelect;ff.prototype.onKeyDown=ff.prototype.onKeyDown;ff.prototype.onEmojiVariantsChanged=ff.prototype.onEmojiVariantsChanged;ff.prototype.onVerticalOffsetOrPositionTargetChanged=ff.prototype.onVerticalOffsetOrPositionTargetChanged;_.r([_.L(_.Du),_.h("design:type",Object)],ff.prototype,"ironOverlayBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ff.prototype,"data",void 0);_.r([_.E(),_.h("design:type",_.op)],ff.prototype,"emojiManager",void 0);
_.r([_.E(),_.h("design:type",Object)],ff.prototype,"emojiVariants",void 0);_.r([_.E(),_.h("design:type",Object)],ff.prototype,"focusedIndex",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ff.prototype,"positionTarget",null);_.r([_.E({reflectToAttribute:!0}),_.A("verticalOffset","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ff.prototype,"isPositioned",null);_.r([_.E(),_.h("design:type",Object)],ff.prototype,"verticalOffset",void 0);
_.r([_.E(),_.h("design:type",Object)],ff.prototype,"verticalAlign",void 0);_.r([_.E(),_.h("design:type",Object)],ff.prototype,"dynamicAlign",void 0);_.r([_.wD("verticalOffset","positionTarget"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ff.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.r([_.wD("emojiVariants"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ff.prototype,"onEmojiVariantsChanged",null);
_.r([_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],ff.prototype,"onKeyDown",null);_.r([_.qY("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype",Promise)],ff.prototype,"onYtEmojiSelect",null);_.r([_.Um()],ff);var C$K=[ff.prototype];var HWN;var Xn0;var yrT=/medium-light|medium-dark|light|medium|dark/,g8i=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Yj0=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),BQ=function(){var G=_.J.apply(this,arguments)||this;G.userSelection={left:null,right:null};G.scrollAction="lock";G.isEmojiDraftInProgress=!1;return G};
_.u(BQ,_.J);_.P=BQ.prototype;_.P.onClick=function(G){G=_.HH(G);G instanceof HTMLImageElement&&this.selectOrUpdateEmoji(G)};
_.P.selectOrUpdateEmoji=function(G){var c=G.getAttribute("selection");c&&(c==="default"?_.Xl(this.hostElement,"yt-emoji-select",_.U7(this.emojiManager,G.id)):c==="left"?this.userSelection=Object.assign({},this.userSelection,{left:G.src}):c==="right"?this.userSelection=Object.assign({},this.userSelection,{right:G.src}):c==="user"&&this.userSelection.left&&this.userSelection.right&&_.Xl(this.hostElement,"yt-emoji-select",_.U7(this.emojiManager,G.id)))};
_.P.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.P.onMultiSelectorThumbnailRowChanged=function(){var G,c,I;((G=this.data)==null?0:(c=G.emoji)==null?0:(I=c.multiSelectorThumbnailRow)==null?0:I.length)&&this.openSelector()};
_.P.getThumbnailFromEmojiRow=function(G){var c,I;return(G==null?void 0:(c=G.thumbnails)==null?void 0:(I=c[0])==null?void 0:I.url)||""};
_.P.getEmojiAltTextForPartialSelector=function(G){var c;return((c=this.getThumbnailFromEmojiRow(G).match(g8i))==null?void 0:c[0])||""};
_.P.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.P.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.P.getRowSelection=function(G){return["left","right"][G]};
_.P.getIdFromComposedEmoji=function(G){return(G==null?void 0:G.emojiId)||""};
_.P.getEmojiFromPartialSelections=function(G,c){if(!G&&!c)return null;var I,R,Z=(I=this.data)==null?void 0:(R=I.emoji)==null?void 0:R.variantIds;if(!Z||!Z.length)return null;var K;G=(K=G.match(yrT))==null?void 0:K[0];var m;c=(m=c.match(yrT))==null?void 0:m[0];if(!G||!c)return null;var a=Yj0.get(G);m=Yj0.get(c);if(a===m){m=Array.from(Yj0.values()).filter(function(N){return N!==a}).join("|");
var O=new RegExp("^((?!("+m+")).)*"+a+"$")}else O=new RegExp(a+".*"+m);return(Z=Z.find(function(N){return O.test(N)}))&&_.U7(this.emojiManager,Z)||null};
_.P.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var G,c=this.ytEmojiSelectorBehavior.emojiUrl(((G=this.data.emoji)==null?void 0:G.emojiId)||"");_.Q1(this.hostElement).querySelector('[selection="user"]').src.includes(c)||(this.isEmojiDraftInProgress=!0)}};
_.P.onDomChange=function(){d1K(this.ytEmojiSelectorBehavior)};
_.P.getFocusableElements=function(){return _.Q1(this.hostElement).querySelectorAll("img").filter(function(G){return G.getAttribute("role")==="option"})};
_.P.changeFocus=function(G){var c=this.getFocusableElements();c!=null&&c.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+G+c.length)%c.length,this.ytEmojiSelectorBehavior.focusedIndex<c.length&&(G=c[this.ytEmojiSelectorBehavior.focusedIndex])&&G.focus())};
_.P.onKeyboardEnter=function(){var G=this.getFocusableElements();G!=null&&G.length&&(G=G[this.ytEmojiSelectorBehavior.focusedIndex])&&G instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(G),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Nh.Object.defineProperties(BQ.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,c,I,R;return this.emojiManager&&((c=this.data)==null?0:(I=c.emoji)==null?0:(R=I.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(Z){return!!Z&&_.U7(G.emojiManager,Z)}).filter(function(Z){return!!Z}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G,c=(G=this.userSelection)==null?void 0:G.left,I;G=(I=this.userSelection)==null?void 0:I.right;return c&&G?this.getEmojiFromPartialSelections(c,G):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.composedEmojiSelection)==null?0:G.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var c;G=(c=this.userSelection)==null?void 0:c.left;var I;c=(I=this.userSelection)==null?void 0:I.right;if(!G&&!c){var R;return this.ytEmojiSelectorBehavior.emojiUrl(((R=this.data.emoji)==null?void 0:R.emojiId)||"")}return G&&!c?G:!G&&c?c:""}}});
BQ.prototype.onMultiSelectorThumbnailRowChanged=BQ.prototype.onMultiSelectorThumbnailRowChanged;BQ.prototype.onClick=BQ.prototype.onClick;_.r([_.L(_.Du),_.h("design:type",Object)],BQ.prototype,"ironOverlayBehavior",void 0);_.r([_.L(C$K),_.h("design:type",Object)],BQ.prototype,"ytEmojiSelectorBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],BQ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",_.op)],BQ.prototype,"emojiManager",void 0);
_.r([_.E(),_.h("design:type",Object)],BQ.prototype,"userSelection",void 0);_.r([_.E(),_.h("design:type",Object)],BQ.prototype,"scrollAction",void 0);_.r([_.E(),_.h("design:type",Object)],BQ.prototype,"isEmojiDraftInProgress",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],BQ.prototype,"emojiVariants",null);_.r([_.A("data","userSelection"),_.h("design:type",Object),_.h("design:paramtypes",[])],BQ.prototype,"composedEmojiSelection",null);
_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],BQ.prototype,"onClick",null);_.r([_.wD("data.emoji.multiSelectorThumbnailRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BQ.prototype,"onMultiSelectorThumbnailRowChanged",null);_.r([_.A("data","userSelection","composedEmojiSelection"),_.h("design:type",String),_.h("design:paramtypes",[])],BQ.prototype,"draftEmojiUrl",null);
_.r([_.Em({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],BQ);
_.B(BQ,"yt-emoji-multi-person-selector",function(){if(Xn0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;HWN===void 0&&(HWN=document.createElement("template"));var R=HWN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Xn0=G}G=Xn0;return G},{mode:2});var GNT;var cLk;var ry=function(){var G=_.J.apply(this,arguments)||this;G.tooltip_=null;return G};
_.u(ry,_.J);_.P=ry.prototype;_.P.dataChanged_=function(){var G;if((G=this.data)==null?0:G.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Q1(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Om)(this.tooltip_).textContent=this.data.tooltip};
_.P.computeTargetId=function(){var G;return((G=this.data)==null?void 0:G.targetId)||""};
_.P.computeId_=function(G){return G};
_.P.computeIcon_=function(G){return _.On(G)};
_.P.onTap_=function(){this.active=!this.active;_.Xl(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.P.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("active-changed",this.active))};
_.Nh.Object.defineProperties(ry.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var G,c;if((G=this.data)==null?0:(c=G.icon)==null?0:c.iconType)return this.data.icon.iconType==="SUPER_STICKER";var I,R;return((I=this.data)==null?void 0:(R=I.icon)==null?void 0:R.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
ry.prototype.activeChangedForBinding=ry.prototype.activeChangedForBinding;ry.prototype.dataChanged_=ry.prototype.dataChanged_;_.r([_.L(_.qi.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],ry.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ry.prototype,"data",void 0);_.r([_.E({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.h("design:type",String)],ry.prototype,"id",void 0);
_.r([_.E({computed:"computeTargetId(data.targetId)"}),_.h("design:type",String)],ry.prototype,"targetId",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],ry.prototype,"active",void 0);_.r([_.E({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.h("design:type",String)],ry.prototype,"icon",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ry.prototype,"dataChanged_",null);
_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ry.prototype,"iconFilled",null);_.r([_.wD("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ry.prototype,"activeChangedForBinding",null);_.r([_.Em({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],ry);
_.B(ry,"yt-emoji-picker-category-button-renderer",function(){if(cLk===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;GNT===void 0&&(GNT=document.createElement("template"));var R=GNT;I.call(c,R.content.cloneNode(!0),G.content.firstChild);cLk=G}G=cLk;return G},{mode:2});var I8B;var ROp;var jN=function(){var G=_.J.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};G.JSC$14463_ignoreNextFocus_=!1;G.longPressTimeoutId=-1;return G};
_.u(jN,_.J);_.P=jN.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.DP(),c=0;c<this.emoji.length;c++){var I={veType:88013,elementIndex:c},R=this.emoji[c];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(I=_.vI(G,I))&&(R.visualElement=I)}};
_.P.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.P.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.P.emojiSkinToneChanged_=function(G){this.skinTone=G};
_.P.dataChanged=function(){this.data&&this.data.emojiData&&CgN(this.emojiManager,this.data.emojiData)};
_.P.emojiUrl=function(G){G=this.getEmoji(G);if(!G)return"";var c;G=(c=G.image)==null?void 0:c.thumbnails;return _.ZX(G,24)||""};
_.P.emojiAlt=function(G){var c=this.get("image.accessibility.accessibilityData.label",G);return c?c:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.P.emojiAriaLabel=function(G){return G.shortcuts?G.shortcuts[0]:""};
_.P.emojiAriaSelected=function(G,c,I){return G&&I==c?"true":"false"};
_.P.getEmoji=function(G){if(this.emojiManager)return this.shouldUseStickyPreferences?XA9(this.emojiManager,G):ud(this.emojiManager,G)};
_.P.computeId_=function(G){return G.categoryId||""};
_.P.computeEmoji=function(G){var c=this;return this.emojiManager?G.emojiIds?G.emojiIds.map(function(I){return I?_.U7(c.emojiManager,I):null}).filter(fBr):G.emojiData?G.emojiData.map(function(I){var R=!!I.emojiId&&_.U7(c.emojiManager,I.emojiId);
return R?Object.assign({},R,I):null}).filter(fBr):[]:[]};
_.P.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.P.computeAriaLabel_=function(G){return _.HY(G)};
_.P.computeAriaActivedescendant_=function(G,c){return G&&G[c]?G[c].emojiId||"":""};
_.P.handleLongPressEmojiWithVariants=function(G,c){this.changeFocusToEmoji(G.emojiId,!1);this.openVariantSelector(G,c)};
_.P.onMouseDown=function(G){var c=this;this.hostElement!==document.activeElement&&(this.JSC$14463_ignoreNextFocus_=!0);if(G.button===0){var I=_.HH(G);if(I instanceof HTMLImageElement){var R=_.Q1(this.hostElement).querySelector("#repeat").itemForElement(I);this.emojiContainsVariants(R)&&(this.longPressTimeoutId=setTimeout(function(){c.handleLongPressEmojiWithVariants(R,I)},500))}}};
_.P.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.P.onFocus=function(){this.JSC$14463_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14463_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.emojiContainsVariants=function(G){return!!(G&&G.variantIds&&G.variantIds.length)};
_.P.onClick=function(G){clearTimeout(this.longPressTimeoutId);G=_.HH(G);if(G instanceof HTMLImageElement){var c=G.id;this.changeFocusToEmoji(c,!1);var I=this.getEmoji(c),R;if(R=this.shouldUseStickyPreferences&&this.emojiContainsVariants(I)){var Z;R=!((Z=this.emojiManager.emojiMap[c])!=null&&Z.stickyPrefId)}R?(Z=_.Q1(this.hostElement).querySelector("#repeat").itemForElement(G),this.openVariantSelector(Z,G)):_.Xl(this.hostElement,"yt-emoji-select",I)}};
_.P.isActiveEmojiWithVariants=function(G,c){return G&&c?c.stickyPrefId?G===c.stickyPrefId:G===c.emojiId:!1};
_.P.onCloseEmojiVariantSelector=function(G){this.activeEmojiWithVariantsId===G&&(this.activeEmojiWithVariantsId="")};
_.P.onMouseOver_=function(G){G=_.HH(G);G instanceof HTMLImageElement&&_.Xl(this.hostElement,"yt-emoji-hover",_.U7(this.emojiManager,G.id))};
_.P.changeFocus_=function(G,c){this.focusedIndex=(this.focusedIndex+G+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(G=this.emoji[this.focusedIndex],c&&(this.showFocus=!0,_.Q1(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Xl(this.hostElement,"yt-emoji-hover",G)))};
_.P.changeFocusToEmoji=function(G,c){if(G){var I=this.emoji.findIndex(function(R){return R.emojiId===G});
I!==-1&&this.changeFocus_(I-this.focusedIndex,c)}};
_.P.onKeyDown_=function(G){switch(G.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var c=this.emoji[this.focusedIndex];if(c&&c.emojiId){if(this.emojiContainsVariants(c)){var I=_.Q1(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(c,I)}else _.Xl(this.hostElement,"yt-emoji-select",ud(this.emojiManager,c.emojiId)),this.hostElement.focus();G.preventDefault()}}break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),
G.preventDefault()}};
_.P.onEmojiStickyPreferenceChanged=function(G,c){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&G.emojiId&&G.variantIds&&G.variantIds.includes(c)&&this.activeEmojiWithVariantsId!==c&&this.setStickyEmojiPreference(G.emojiId,c)};
_.P.openVariantSelector=function(G,c){this.activeEmojiWithVariantsId=G.stickyPrefId||G.emojiId||"";_.Xl(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:G,target:c})};
_.P.setStickyEmojiPreference=function(G,c){if(this.data){var I=this.emoji.findIndex(function(Z){return Z.emojiId===G});
if(I!==-1){var R=this.emoji[I];R.stickyPrefId=c;this.set("emoji."+I,Object.assign({},R));this.activeEmojiWithVariantsId=c}}};
jN.prototype.onKeyDown_=jN.prototype.onKeyDown_;jN.prototype.onMouseOver_=jN.prototype.onMouseOver_;jN.prototype.onClick=jN.prototype.onClick;jN.prototype.onBlur_=jN.prototype.onBlur_;jN.prototype.onFocus=jN.prototype.onFocus;jN.prototype.onMouseUp=jN.prototype.onMouseUp;jN.prototype.onMouseDown=jN.prototype.onMouseDown;jN.prototype.dataChanged=jN.prototype.dataChanged;jN.prototype.disableIncrementalLoadingChanged_=jN.prototype.disableIncrementalLoadingChanged_;jN.prototype.emojiManagerChanged_=jN.prototype.emojiManagerChanged_;
jN.prototype.emojiChanged_=jN.prototype.emojiChanged_;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],jN.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jN.prototype,"data",void 0);_.r([_.E({computed:"computeId_(data)"}),_.h("design:type",String)],jN.prototype,"id",void 0);_.r([_.E({computed:"computeEmoji(data)"}),_.h("design:type",Array)],jN.prototype,"emoji",void 0);_.r([_.E(),_.h("design:type",Number)],jN.prototype,"skinTone",void 0);
_.r([_.E(),_.h("design:type",_.op)],jN.prototype,"emojiManager",void 0);_.r([_.E(),_.h("design:type",Boolean)],jN.prototype,"disableIncrementalLoading",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],jN.prototype,"focusedIndex",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],jN.prototype,"showFocus",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.h("design:type",Object)],jN.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.h("design:type",Object)],jN.prototype,"ariaActivedescendant",void 0);_.r([_.E({value:60}),_.h("design:type",Number)],jN.prototype,"domRepeatTargetFramerate",void 0);_.r([_.E({value:1}),_.h("design:type",Number)],jN.prototype,"domRepeatInitialCount",void 0);_.r([_.E({value:""}),_.h("design:type",String)],jN.prototype,"activeEmojiWithVariantsId",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],jN.prototype,"shouldUseStickyPreferences",void 0);_.r([_.wD("emoji"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jN.prototype,"emojiChanged_",null);_.r([_.wD("emojiManager"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jN.prototype,"emojiManagerChanged_",null);
_.r([_.wD("disableIncrementalLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jN.prototype,"disableIncrementalLoadingChanged_",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jN.prototype,"dataChanged",null);_.r([_.qY("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],jN.prototype,"onMouseDown",null);
_.r([_.qY("mouseup"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jN.prototype,"onMouseUp",null);_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jN.prototype,"onFocus",null);_.r([_.qY("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jN.prototype,"onBlur_",null);
_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],jN.prototype,"onClick",null);_.r([_.qY("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],jN.prototype,"onMouseOver_",null);_.r([_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],jN.prototype,"onKeyDown_",null);
_.r([_.Em({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],jN);
_.B(jN,"yt-emoji-picker-category-renderer",function(){if(ROp===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;I8B===void 0&&(I8B=document.createElement("template"));var R=I8B;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ROp=G}G=ROp;return G},{mode:2});var Z2K;var KiB;var P0N;var QAi;var x4=function(){var G=_.J.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.getFormattedStringRawText=_.HY;G.JSC$14469_ignoreNextFocus_=!1;return G};
_.u(x4,_.J);_.P=x4.prototype;_.P.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.emojiUrl=function(G){var c,I;G=(c=ud(this.emojiManager,G,!0))==null?void 0:(I=c.image)==null?void 0:I.thumbnails;return _.ZX(G,24)||""};
_.P.emojiAlt=function(G){var c=this.get("image.accessibility.accessibilityData.label",G);return c?c:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.P.emojiId=function(G){return"emoji"+G};
_.P.computeId_=function(G){return G.categoryId||""};
_.P.computeAriaActivedescendant_=function(G){return this.emoji&&G<this.emoji.length?this.emojiId(G):""};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.DP(),c=0;c<this.emoji.length;c++){var I={veType:88013,elementIndex:c},R=this.emoji[c];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(I=_.vI(G,I))&&(R.visualElement=I)}};
_.P.computeEmoji_=function(G){var c=this;return this.emojiManager?G.emojiIds.map(function(I){return _.U7(c.emojiManager,I,!0)}).filter(B98):[]};
_.P.titleOffsetChanged_=function(){var G=this.hostElement.getBoundingClientRect(),c=_.Q1(this.hostElement).querySelector("#title").getBoundingClientRect();G=Math.max(0,Math.min(this.titleOffset,G.height-c.height));_.Q1(this.hostElement).querySelector("#title").style.top=G+"px"};
_.P.onEmojiMouseOver_=function(G){_.Xl(this.hostElement,"yt-emoji-hover",G.model.item)};
_.P.onEmojiTap_=function(G){this.data.command&&(G=ATr(_.wH().resolve(_.qR(cN)),this.data.command,G),_.Xl(this.hostElement,"yt-navigate",G))};
_.P.emojiAriaLabel=function(G){return G.shortcuts[0]};
_.P.emojiAriaSelected=function(G,c,I){return G&&I==c?"true":"false"};
_.P.changeFocus_=function(G,c){var I=this.emoji.length;this.focusedIndex=(this.focusedIndex+G+I)%I;G=this.emoji[this.focusedIndex];if(c){var R;(R=_.Q1(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||R.scrollIntoView(!1);_.Xl(this.hostElement,"yt-emoji-hover",G)}};
_.P.onMouseDown_=function(){this.JSC$14469_ignoreNextFocus_=!0};
_.P.onFocus_=function(){this.JSC$14469_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14469_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.onKeyDown_=function(G){switch(G.keyCode){case 13:this.onEmojiTap_(G);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),G.preventDefault()}};
x4.prototype.onKeyDown_=x4.prototype.onKeyDown_;x4.prototype.onBlur_=x4.prototype.onBlur_;x4.prototype.onFocus_=x4.prototype.onFocus_;x4.prototype.onMouseDown_=x4.prototype.onMouseDown_;x4.prototype.onEmojiTap_=x4.prototype.onEmojiTap_;x4.prototype.titleOffsetChanged_=x4.prototype.titleOffsetChanged_;x4.prototype.emojiChanged_=x4.prototype.emojiChanged_;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],x4.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],x4.prototype,"data",void 0);_.r([_.E({computed:"computeId_(data)"}),_.h("design:type",String)],x4.prototype,"id",void 0);_.r([_.E({computed:"computeEmoji_(data)"}),_.h("design:type",Array)],x4.prototype,"emoji",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],x4.prototype,"titleOffset",void 0);_.r([_.E({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.h("design:type",Object)],x4.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.h("design:type",Object)],x4.prototype,"ariaActivedescendant",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],x4.prototype,"showFocus",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],x4.prototype,"focusedIndex",void 0);_.r([_.E(),_.h("design:type",_.op)],x4.prototype,"emojiManager",void 0);
_.r([_.wD("emoji"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x4.prototype,"emojiChanged_",null);_.r([_.wD("titleOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x4.prototype,"titleOffsetChanged_",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],x4.prototype,"onEmojiTap_",null);
_.r([_.qY("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x4.prototype,"onMouseDown_",null);_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x4.prototype,"onFocus_",null);_.r([_.qY("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x4.prototype,"onBlur_",null);
_.r([_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],x4.prototype,"onKeyDown_",null);_.r([_.Em({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],x4);
_.B(x4,"yt-emoji-picker-upsell-category-renderer",function(){if(QAi===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;P0N===void 0&&(P0N=document.createElement("template"));var R=P0N;I.call(c,R.content.cloneNode(!0),G.content.firstChild);QAi=G}G=QAi;return G},{mode:2});var mT0;var a8K;var tG=function(){var G=_.J.apply(this,arguments)||this;G.scrollAction="lock";G.verticalAlign="top";return G};
_.u(tG,_.J);_.P=tG.prototype;_.P.onClick=function(G){G=_.HH(G);G instanceof HTMLImageElement&&_.Xl(this.hostElement,"yt-emoji-select",_.U7(this.emojiManager,G.id))};
_.P.openSelector=function(){this.ironOverlayBehavior.open()};
_.P.onDomChange=function(){d1K(this.ytEmojiSelectorBehavior)};
_.P.computeIsFamilySelector=function(G){var c;return(G==null?void 0:(c=G.emoji)==null?void 0:c.emojiId)==="\ud83d\udc6a"};
_.P.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var G=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];G&&G.emojiId&&(_.Xl(this.hostElement,"yt-emoji-select",_.U7(this.emojiManager,G.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Nh.Object.defineProperties(tG.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,c,I,R;return this.emojiManager&&((c=this.data)==null?0:(I=c.emoji)==null?0:(R=I.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(Z){return!!Z&&_.U7(G.emojiManager,Z)}).filter(function(Z){return!!Z}):[]}}});
tG.prototype.onClick=tG.prototype.onClick;_.r([_.L(_.Du),_.h("design:type",Object)],tG.prototype,"ironOverlayBehavior",void 0);_.r([_.L(C$K),_.h("design:type",Object)],tG.prototype,"ytEmojiSelectorBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tG.prototype,"data",void 0);_.r([_.E(),_.h("design:type",_.op)],tG.prototype,"emojiManager",void 0);_.r([_.E(),_.h("design:type",Object)],tG.prototype,"scrollAction",void 0);_.r([_.E(),_.h("design:type",Object)],tG.prototype,"verticalAlign",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.h("design:type",Boolean)],tG.prototype,"isFamilySelector",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],tG.prototype,"emojiVariants",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],tG.prototype,"onClick",null);_.r([_.Em({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],tG);
_.B(tG,"yt-emoji-variant-selector",function(){if(a8K===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;mT0===void 0&&(mT0=document.createElement("template"));var R=mT0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);a8K=G}G=a8K;return G},{mode:2});var Tf0=/:/g,O2N=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],hG=function(){var G=_.J.apply(this,arguments)||this;G.emojiVariantSelector=null;G.emojiMultiPersonSelector=null;G.identity=_.E0;G.lastAnimationTime_=0;G.animationStart_=null;G.animationEnd_=null;return G};
_.u(hG,_.J);_.P=hG.prototype;
_.P.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.P.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.bd)};
_.P.attached=function(){_.FY&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&HZT(this.emojiManager)};
_.P.dataChanged=function(){var G;if((G=this.data)==null?0:G.categories){G=this.emojiManager;var c=this.getCustomEmojiIds();G.pickerCustomEmojiIds=[].concat(_.jn(jBe),_.jn(c))}};
_.P.getCustomEmojiIds=function(){var G,c=(G=this.data.categories)==null?void 0:G.find(function(K){var m;return((m=K.emojiPickerCategoryRenderer)==null?void 0:m.categoryId)&&O2N.includes(K.emojiPickerCategoryRenderer.categoryId)}),I;
G=(I=this.data.categories)==null?void 0:I.find(function(K){return K.emojiPickerUpsellCategoryRenderer});
var R,Z;return[c==null?void 0:(R=c.emojiPickerCategoryRenderer)==null?void 0:R.emojiIds,G==null?void 0:(Z=G.emojiPickerUpsellCategoryRenderer)==null?void 0:Z.emojiIds].flat().filter(function(K){return!!K})};
_.P.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.P.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.P.updateCategoriesAndPlaceholderInternal=function(G,c){var I=this;G&&c&&(this.categories=G.categories||[],this.categoryButtons=G.categoryButtons||[],this.resetPlaceholder(),this.search="",_.xW(function(){I.updateButtons_()}))};
_.P.computeId_=function(G){return G.id||""};
_.P.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(G){return G.emojiPickerCategoryRenderer&&G.emojiPickerCategoryRenderer.emojiData}):!1};
_.P.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.P.onShowEmojiVariantSelector=function(G){var c=G.detail.emojiData;c.variantIds&&c.variantIds.length&&(c.multiSelectorThumbnailRow&&c.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:c,target:G.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:c,target:G.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onIronOverlayClosed=function(G){var c=XA9(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");c&&G.composedPath&&(G.composedPath().includes(_.Q1(this.hostElement).querySelector("#emoji-variant-selector"))||G.composedPath().includes(_.Q1(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ym(this.hostElement,"yt-close-emoji-variant-selector",[c.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onEmojiVariantSelectorMouseup=function(G){var c=G.target.firstChild;this.variantSelectorOpened&&c&&_.xW(function(){c.noCancelOnOutsideClick=!1},100)};
_.P.onEmojiVariantSelectorMousedown=function(G){G=G.target.firstChild;this.variantSelectorOpened&&G&&(G.noCancelOnOutsideClick=!1)};
_.P.onSelectCategory_=function(G){var c=this.search!="";this.search="";for(var I=_.Q1(this.hostElement).querySelector("#categories").children,R=0;R<I.length;R++){var Z=I[R];if(Z.id==G.detail.categoryId){c?(_.Q1(this.hostElement).querySelector("#categories").scrollTop=Z.offsetTop,this.updateButtons_()):(this.animationStart_=_.Q1(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Z.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.P.onEmojiHover_=function(G){this.placeholder=G.detail.shortcuts?G.detail.shortcuts[0]:""};
_.P.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.P.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.P.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.P.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.P.computeSearchCategory_=function(G){G=G.replace(Tf0,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();G=G.split(" ");for(var c=[],I=this.emojiManager.emojis,R=0;R<I.length;R++){var Z=I[R];if(Z.searchTerms)for(var K=0;K<Z.searchTerms.length;K++){for(var m=Z.searchTerms[K].toLocaleLowerCase(),a=!1,O=0;O<G.length;O++)if(m.indexOf(G[O])!=-1){a=!0;break}if(a&&(!Z.isCustomEmoji||!Z.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Z.emojiId))){c.push(Z.emojiId);
break}}}return{categoryId:-1,emojiIds:c}};
_.P.computeSearchEmptyMessage_=function(G,c){return G&&c&&c.emojiIds&&c.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.P.computeSearching_=function(G){return this.emojiManager&&G.replace(Tf0,"").length>1};
_.P.computeSkinToneHidden=function(){var G;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((G=this.data)==null||!G.hideSkinTonePicker)};
_.P.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.P.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.P.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.P.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.P.selectSkinTone_=function(G){G=Number(G.target.getAttribute("tone"));this.set("emojiManager.skinTone",G);_.ym(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[G]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.P.skinToneChanged_=function(){_.Q1(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var G=_.Q1(this.hostElement).querySelector("#dropdown-content").children,c=0;c<G.length;c++)c===this.skinTone?G[c].setAttribute("selected",""):G[c].removeAttribute("selected")};
_.P.animateScroll_=function(G){this.lastAnimationTime_||(this.lastAnimationTime_=G);G-=this.lastAnimationTime_;G<200?(_.Q1(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*G/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Q1(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.P.searchChanged_=function(){this.updateButtons_()};
_.P.updateButtons_=function(){var G=null;if(!this.search)for(var c=_.Q1(this.hostElement).querySelector("#categories").scrollTop,I=_.Q1(this.hostElement).querySelector("#categories").children,R=0;R<I.length;R++){var Z=I[R];Z.offsetTop<=c&&(G=Z.id)}c=_.Q1(this.hostElement).querySelector("#category-buttons").children;for(I=0;I<c.length;I++)R=c[I],R.active=R.id===G};
hG.prototype.searchChanged_=hG.prototype.searchChanged_;hG.prototype.skinToneChanged_=hG.prototype.skinToneChanged_;hG.prototype.onEmojiHover_=hG.prototype.onEmojiHover_;hG.prototype.onSelectCategory_=hG.prototype.onSelectCategory_;hG.prototype.onShowEmojiVariantSelector=hG.prototype.onShowEmojiVariantSelector;hG.prototype.updateCategoriesAndPlaceholder_=hG.prototype.updateCategoriesAndPlaceholder_;hG.prototype.dataChanged=hG.prototype.dataChanged;
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hG.prototype,"data",void 0);_.r([_.E({value:function(){return[]}}),
_.h("design:type",Array)],hG.prototype,"categories",void 0);_.r([_.E({value:function(){return[]}}),
_.h("design:type",Array)],hG.prototype,"categoryButtons",void 0);_.r([_.E({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.h("design:type",Boolean)],hG.prototype,"disableScroll",void 0);_.r([_.E({computed:"computeId_(data)",reflectToAttribute:!0}),_.h("design:type",String)],hG.prototype,"id",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],hG.prototype,"selected",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],hG.prototype,"disableIncrementalLoading",void 0);_.r([_.E(),_.h("design:type",String)],hG.prototype,"placeholder",void 0);_.r([_.E({value:""}),_.h("design:type",String)],hG.prototype,"search",void 0);_.r([_.E({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.h("design:type",Boolean)],hG.prototype,"searching",void 0);_.r([_.E({computed:"computeSearchCategory_(search)"}),_.h("design:type",Object)],hG.prototype,"searchCategory",void 0);
_.r([_.E({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.h("design:type",Object)],hG.prototype,"searchEmptyMessage",void 0);_.r([_.E({computed:"identity(emojiManager.skinTone)"}),_.h("design:type",Number)],hG.prototype,"skinTone",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],hG.prototype,"skinToneOpened",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],hG.prototype,"variantSelectorOpened",void 0);
_.r([_.E({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.h("design:type",Boolean)],hG.prototype,"skinToneHidden",void 0);_.r([_.E(),_.h("design:type",_.op)],hG.prototype,"emojiManager",void 0);_.r([_.E(),_.h("design:type",Object)],hG.prototype,"emojiVariantSelector",void 0);_.r([_.E(),_.h("design:type",Object)],hG.prototype,"emojiMultiPersonSelector",void 0);
_.r([_.E({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.h("design:type",Boolean)],hG.prototype,"shouldUseStickyPreferences",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hG.prototype,"dataChanged",null);_.r([_.wD("data","selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hG.prototype,"updateCategoriesAndPlaceholder_",null);
_.r([_.qY("yt-show-emoji-variant-selector"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],hG.prototype,"onShowEmojiVariantSelector",null);_.r([_.qY("yt-emoji-picker-select-category"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],hG.prototype,"onSelectCategory_",null);_.r([_.qY("yt-emoji-hover"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],hG.prototype,"onEmojiHover_",null);
_.r([_.wD("skinTone"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hG.prototype,"skinToneChanged_",null);_.r([_.wD("search"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hG.prototype,"searchChanged_",null);_.r([_.Em({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],hG);
_.B(hG,"yt-emoji-picker-renderer",function(){if(KiB===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Z2K===void 0&&(Z2K=document.createElement("template"));var R=Z2K;I.call(c,R.content.cloneNode(!0),G.content.firstChild);KiB=G}G=KiB;return G},{mode:2});var dy=function(){var G=_.J.apply(this,arguments)||this;G.emojiManager=_.bd;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.selectedIndex=1;G.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return G};
_.u(dy,_.J);_.P=dy.prototype;_.P.handleEmojiCustomizationVisible=function(G){this.emojiPickerRenderer.selected=G;this.selectedIndex=1;G?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.P.emojiCustomizationSetChanged=function(){var G;(G=this.data)!=null&&G.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.gb(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.P.updateSaveButtonState=function(G){var c;(c=this.data)!=null&&c.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Le("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:G}))};
_.P.emojiUrl=function(G){G=_.U7(this.emojiManager,G);if(!G)return"";var c;G=(c=G.image)==null?void 0:c.thumbnails;return _.ZX(G,24)||""};
_.P.emojiAlt=function(G){var c=_.U7(this.emojiManager,G);if(!c)return G;var I,R,Z,K=(c==null?void 0:(I=c.image)==null?void 0:(R=I.accessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label)||"";return K?K:c.isCustomEmoji?c.shortcuts[0]:c.emojiId||G};
_.P.emojiAriaLabel=function(G){var c,I;return((c=_.U7(this.emojiManager,G))==null?void 0:(I=c.shortcuts)==null?void 0:I[0])||G};
_.P.onEmojiClick=function(G){G.model.index!==0&&(this.selectedIndex=G.model.index)};
_.P.onEmojiSelect=function(G){G=G.detail;var c,I;((c=this.data)==null?0:c.emojiCustomizationSetEntityKey)&&((I=this.emojiCustomizationSet)==null?0:I.emojiId)&&G.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Le("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)}))};
_.P.canEditEmoji=function(G,c,I){G=G.indexOf(c);return G===I||G===0||I===0?!1:!0};
_.P.getUpdatedEmojiIdList=function(G,c,I){var R=G.indexOf(c);G=[].concat(_.jn(G));R>=0&&(G[R]=G[I]);G[I]=c;return G};
_.Nh.Object.defineProperties(dy,{template:{configurable:!0,enumerable:!0,get:function(){if(Sji===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;$10===void 0&&($10=document.createElement("template"));var R=$10;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Sji=G}G=Sji;return G}}});
dy.prototype.onEmojiSelect=dy.prototype.onEmojiSelect;_.r([_.L(_.ll),_.h("design:type",Object)],dy.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],dy.prototype,"ytActionHandlerBehavior",void 0);_.r([_.nH("yt-emoji-picker-renderer"),_.h("design:type",Object)],dy.prototype,"emojiPickerRenderer",void 0);
_.r([_.E({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(G,c){return _.a6(G.entities,"emojiCustomizationSetEntity",c)},
observer:"emojiCustomizationSetChanged"}),_.h("design:type",Object)],dy.prototype,"emojiCustomizationSet",void 0);_.r([_.E(),_.h("design:type",Object)],dy.prototype,"originalEmojiSet",void 0);_.r([_.E(),_.h("design:type",_.op)],dy.prototype,"emojiManager",void 0);_.r([_.E(),_.h("design:type",Object)],dy.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],dy.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",Object)],dy.prototype,"selectedIndex",void 0);
_.r([_.qY("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],dy.prototype,"onEmojiSelect",null);_.r([_.Em({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],dy);var eOe;var Nfe;var l8N;var qlT;var Cf=function(){var G=_.J.apply(this,arguments)||this;G.authorBadges=[];return G};
_.u(Cf,_.J);_.P=Cf.prototype;_.P.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.P.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.P.dataChanged=function(){var G=Nvi(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",G)};
_.P.updateMessage=function(){var G=this.data.message,c=_.Q1(_.Q1(this.hostElement).querySelector("#message"));c.textContent="";G&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.P.onShowOriginalClick=function(G){G.preventDefault();this.showOriginal=!0};
_.P.computeShowBar=function(G,c,I){return G&&c||I};
_.P.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.P.computeAuthorIsOwner=function(G){return!!lag(G.authorBadges,"owner")};
_.P.computeAuthorNameColor=function(G){var c;if(_.v("live_chat_author_name_color_usernames")&&(G==null?0:(c=G.authorName)==null?0:c.simpleText))return _.Dab(_.ogp(G.authorName.simpleText));if(_.v("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.Dab(_.aJ(G.authorSeedColorArgb));if(_.v("live_chat_colored_usernames"))return"#cc0000";var I;return _.v("live_chat_simple_color_usernames")&&(G==null?0:(I=G.authorName)==null?0:I.simpleText)&&(G==null?0:G.authorUsernameColorLight)&&
(G==null?0:G.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.aJ(G.authorUsernameColorDark):_.aJ(G.authorUsernameColorLight):""};
Cf.prototype.updateMessage=Cf.prototype.updateMessage;Cf.prototype.dataChanged=Cf.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],Cf.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Cf.prototype,"data",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Cf.prototype,"showOriginal",void 0);_.r([_.E({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Cf.prototype,"isDimmed",void 0);_.r([_.E({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Cf.prototype,"showBar",void 0);
_.r([_.E({computed:"computeAuthorBadges(data)"}),_.h("design:type",Array)],Cf.prototype,"authorBadges",void 0);_.r([_.E({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Cf.prototype,"authorIsOwner",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Cf.prototype,"inCollapsedBanner",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Cf.prototype,"inBanner",void 0);
_.r([_.E({value:_.v("live_chat_hide_avatars"),reflectToAttribute:!0}),_.h("design:type",Boolean)],Cf.prototype,"avatarHidden",void 0);_.r([_.E({computed:"computeAuthorNameColor(data)"}),_.h("design:type",String)],Cf.prototype,"authorNameColor",void 0);_.r([_.E(),_.h("design:type",_.$4)],Cf.prototype,"participantsManager",void 0);_.r([_.E({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.h("design:type",Object)],Cf.prototype,"filledButtonOverrides",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cf.prototype,"dataChanged",null);_.r([_.wD("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cf.prototype,"updateMessage",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Cf);
_.B(Cf,"yt-live-chat-text-message-renderer",function(){if(qlT===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;l8N===void 0&&(l8N=document.createElement("template"));var R=l8N;I.call(c,R.content.cloneNode(!0),G.content.firstChild);qlT=G}G=qlT;return G},{mode:0});var HQ=function(){var G=_.J.apply(this,arguments)||this;G.tonalButtonOverrides={type:"tonal",style:"overlay"};return G};
_.u(HQ,_.J);
HQ.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]]"}}}}}};
HQ.prototype.shouldSupportInlineActionButtons=function(){return!0};
HQ.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Nh.Object.defineProperties(HQ.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],HQ.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],HQ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",_.$4)],HQ.prototype,"participantsManager",void 0);
_.r([_.E(),_.h("design:type",Object)],HQ.prototype,"tonalButtonOverrides",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.infoDialogButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],HQ.prototype,"hasInfoDialogButton",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],HQ);
_.B(HQ,"yt-live-chat-auto-mod-message-renderer",function(){if(Nfe===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;eOe===void 0&&(eOe=document.createElement("template"));var R=eOe;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Nfe=G}G=Nfe;return G},{mode:0});var wse;var FiB;var nke;var vkK=function(){return _.J.apply(this,arguments)||this};
_.u(vkK,_.J);_.r([_.E(),_.h("design:type",Object)],vkK.prototype,"data",void 0);_.r([_.Jc({is:"ytd-factoid-renderer",disableElementRegistration:!0})],vkK);
_.B(vkK,"ytd-factoid-renderer",function(){if(nke!==void 0)return nke;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return nke=G},{mode:1});var X5=function(){return _.J.apply(this,arguments)||this};
_.u(X5,_.J);X5.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.r([_.E(),_.h("design:type",Object)],X5.prototype,"data",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],X5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],X5);
_.B(X5,"yt-live-chat-channel-activity-reputation-renderer",function(){if(FiB===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;wse===void 0&&(wse=document.createElement("template"));var R=wse;I.call(c,R.content.cloneNode(!0),G.content.firstChild);FiB=G}G=FiB;return G},{mode:0});var DTK;var okK;var yZ=function(){return _.J.apply(this,arguments)||this};
_.u(yZ,_.J);yZ.prototype.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Boolean)],yZ.prototype,"menuFocused",void 0);_.r([_.E(),_.h("design:type",Object)],yZ.prototype,"data",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],yZ.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],yZ);
_.B(yZ,"yt-live-chat-donation-announcement-renderer",function(){if(okK===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;DTK===void 0&&(DTK=document.createElement("template"));var R=DTK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);okK=G}G=okK;return G},{mode:0});var UTK;var ube,b2e=function(){if(ube!==void 0)return ube;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;UTK===void 0&&(UTK=document.createElement("template"));var R=UTK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return ube=G};var gy=function(){return _.J.apply(this,arguments)||this};
_.u(gy,_.J);_.Nh.Object.defineProperties(gy,{template:{configurable:!0,enumerable:!0,get:function(){return b2e()}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gy.prototype,"data",void 0);_.r([_.Em({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],gy);_.B(gy,"yt-live-chat-empty-feed-view-model",function(){return b2e()},{mode:0});var kNB;var sAp;var Y4=function(){return _.J.apply(this,arguments)||this};
_.u(Y4,_.J);Y4.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"}}}}}};
_.Nh.Object.defineProperties(Y4.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var G,c;return{runs:[{text:(G=this.data)==null?void 0:(c=G.channelName)==null?void 0:c.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var G=[],c;if((c=this.data)==null||!c.channelBadges)return G;var I;c=_.Q((I=this.data)==null?void 0:I.channelBadges);for(I=c.next();!I.done;I=c.next()){I=_.D(I.value,kkK);var R=void 0,Z=void 0;if((R=I)==null?0:(Z=R.badgeImage)==null?0:Z.sources)R=void 0,Z={liveChatAuthorBadgeRenderer:{tooltip:I.tooltip,accessibility:{accessibilityData:{label:(R=_.D(I.rendererContext,_.Aq))==null?void 0:R.label}}}},I.badgeImage.sources[0].clientResource?Z.liveChatAuthorBadgeRenderer.icon=
{iconType:I.badgeImage.sources[0].clientResource.imageName}:Z.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:I.badgeImage.sources},G.push(Z)}return G}}});
_.r([_.E(),_.h("design:type",Object)],Y4.prototype,"data",void 0);_.r([_.A("data.channelName"),_.h("design:type",Object),_.h("design:paramtypes",[])],Y4.prototype,"channelName",null);_.r([_.A("data.channelBadges"),_.h("design:type",Array),_.h("design:paramtypes",[])],Y4.prototype,"channelBadges",null);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Y4);
_.B(Y4,"yt-live-chat-identity-view-model",function(){if(sAp===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;kNB===void 0&&(kNB=document.createElement("template"));var R=kNB;I.call(c,R.content.cloneNode(!0),G.content.firstChild);sAp=G}G=sAp;return G},{mode:0});var Lii;var AL0;var $TV;var Sl9;var G5=function(){var G=_.J.apply(this,arguments)||this;G.hidden=!1;G.supportsInlineActionButtons=!0;return G};
_.u(G5,_.J);G5.prototype.ready=function(){var G;((G=document.querySelector("yt-live-chat-app"))==null?0:G.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
G5.prototype.dataChanged=function(G){var c=(0,_.Om)(_.Q1(this.hostElement).querySelector("#detail-text"));c.textContent="";(G==null?0:G.detailText)&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G.detailText))};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],G5.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({observer:"dataChanged"}),_.h("design:type",Object)],G5.prototype,"data",void 0);
_.r([_.E({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.h("design:type",Object)],G5.prototype,"hidden",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],G5);
_.B(G5,"yt-live-chat-legacy-paid-message-renderer",function(){if(Sl9===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;$TV===void 0&&($TV=document.createElement("template"));var R=$TV;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Sl9=G}G=Sl9;return G},{mode:0});var pse;var Mp0;var Vp0={},cT=function(){return _.D4.apply(this,arguments)||this};
_.u(cT,_.D4);cT.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
cT.prototype.onLiveChatMembershipItemBehaviorClick=cT.prototype.onLiveChatMembershipItemBehaviorClick;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],cT.prototype,"data",void 0);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],cT.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.r([_.Um()],cT);
Vp0.YtLiveChatMembershipItemBehavior=[cT.prototype,_.X.YtRendererBehavior];var Ie=function(){var G=_.J.apply(this,arguments)||this;G.supportsInlineActionButtons=!0;G.hasPrimaryHeaderText=!1;G.showOnlyHeader=!1;G.authorBadges=[];G.modern=_.v("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.u(Ie,_.J);_.P=Ie.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.P.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.P.messageChanged=function(){var G=this.data.message,c=(0,_.Om)(_.Q1(this.hostElement).querySelector("#message"));c.textContent="";G&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.P.computeHasPrimaryHeaderText=function(G){return!(!G||!G.headerPrimaryText)};
_.P.computeShowOnlyHeader=function(G,c){return this.isMessageEmpty(G,c)};
_.P.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.P.isMessageEmpty=function(G,c){return!G||G.empty?!0:!G.message&&!G.inputField&&!c};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.P.getInputElement=function(){return _.Q1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.P.inputFocus=function(){var G=this.getInputElement();G&&G.focus()};
_.P.inputInsertEmoji=function(G){var c=this.getInputElement();c&&c.insertEmoji(G)};
_.P.inputMessage=function(){var G=this.getInputElement();return G&&this.data.inputField?(G.completeEmojis(),_.ju(G.liveChatRichMessageInput)):null};
_.P.onFooterButtonClick=function(){this.data.footerButton&&_.Xl(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.P.shouldSupportWholeItemClick=function(){return!0};
Ie.prototype.isDeletedChanged=Ie.prototype.isDeletedChanged;Ie.prototype.messageChanged=Ie.prototype.messageChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],Ie.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.L(Vp0.YtLiveChatMembershipItemBehavior),_.h("design:type",Object)],Ie.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ie.prototype,"data",void 0);_.r([_.E({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.h("design:type",Object)],Ie.prototype,"hasPrimaryHeaderText",void 0);_.r([_.E({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.h("design:type",Object)],Ie.prototype,"showOnlyHeader",void 0);
_.r([_.E({computed:"computeAuthorBadges(data)"}),_.h("design:type",Array)],Ie.prototype,"authorBadges",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ie.prototype,"modern",void 0);_.r([_.wD("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ie.prototype,"messageChanged",null);_.r([_.wD("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ie.prototype,"isDeletedChanged",null);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Ie);
_.B(Ie,"yt-live-chat-membership-item-renderer",function(){if(Mp0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;pse===void 0&&(pse=document.createElement("template"));var R=pse;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Mp0=G}G=Mp0;return G},{mode:0});var zOK;var EkN;var Re=function(){return _.J.apply(this,arguments)||this};
_.u(Re,_.J);Re.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Re.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Re);
_.B(Re,"yt-live-chat-mode-change-message-renderer",function(){if(EkN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;zOK===void 0&&(zOK=document.createElement("template"));var R=zOK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);EkN=G}G=EkN;return G},{mode:0});var JLK;var Wi0;var Zg=function(){return _.J.apply(this,arguments)||this};
_.u(Zg,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],Zg.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Zg.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Zg);
_.B(Zg,"yt-live-chat-moderation-message-renderer",function(){if(Wi0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;JLK===void 0&&(JLK=document.createElement("template"));var R=JLK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Wi0=G}G=Wi0;return G},{mode:0});var i2T;var f80;var KI=function(){return _.J.apply(this,arguments)||this};
_.u(KI,_.J);KI.prototype.onClick=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var c;_.NC.instance.resolveCommand((c=this.data)==null?void 0:c.onClickCommand)}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],KI.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],KI.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],KI.prototype,"data",void 0);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],KI);
_.B(KI,"yt-live-chat-offer-click-count-message-renderer",function(){if(f80===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;i2T===void 0&&(i2T=document.createElement("template"));var R=i2T;I.call(c,R.content.cloneNode(!0),G.content.firstChild);f80=G}G=f80;return G},{mode:0});var BfK;var rLK=function(){return _.J.apply(this,arguments)||this};
_.u(rLK,_.J);_.r([_.E(),_.h("design:type",Object)],rLK.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],rLK);
_.B(rLK,"yt-live-chat-placeholder-item-renderer",function(){if(BfK===void 0){var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);BfK=G}G=BfK;return G},{mode:0});var jAA;var xTe;var tpV=new dL(7),PT=function(){var G=_.J.apply(this,arguments)||this;G.data={};return G};
_.u(PT,_.J);PT.prototype.dataChanged=function(){var G;((G=this.data)==null?0:G.class)&&_.as(this.hostElement,this.data.class,!0);var c;((c=this.oldData)==null?0:c.class)&&_.as(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
PT.prototype.computeTimestampString=function(G){return tpV.format(new Date(G/1E3))};
PT.prototype.dataChanged=PT.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],PT.prototype,"data",void 0);_.r([_.E({computed:"computeTimestampString(data.timestampUsec)"}),_.h("design:type",String)],PT.prototype,"timestampString",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PT.prototype,"dataChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],PT);
_.B(PT,"yt-live-chat-server-error-message",function(){if(xTe===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;jAA===void 0&&(jAA=document.createElement("template"));var R=jAA;I.call(c,R.content.cloneNode(!0),G.content.firstChild);xTe=G}G=xTe;return G},{mode:0});var hON;var dT2;var Q_=function(){var G=_.J.apply(this,arguments)||this;G.defaultToFilledIcon=!1;return G};
_.u(Q_,_.J);Q_.prototype.computeHasPrimaryColorIcon=function(G){return G==="SPARK"||G==="SPONSORSHIP_STAR"};
Q_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],Q_.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Q_.prototype,"defaultToFilledIcon",void 0);_.r([_.E(),_.h("design:type",Object)],Q_.prototype,"data",void 0);
_.r([_.E({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Q_.prototype,"hasPrimaryColorIcon",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Q_);
_.B(Q_,"yt-live-chat-viewer-engagement-message-renderer",function(){if(dT2===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;hON===void 0&&(hON=document.createElement("template"));var R=hON;I.call(c,R.content.cloneNode(!0),G.content.firstChild);dT2=G}G=dT2;return G},{mode:0});var C02;var mO=function(){var G=_.J.apply(this,arguments)||this;G.modernUpdate=!1;G.buttonStyle="overlay";G.buttonType="filled";return G};
_.u(mO,_.J);mO.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
mO.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mO.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],mO.prototype,"modernUpdate",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],mO.prototype,"buttonStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],mO.prototype,"buttonType",void 0);
_.r([_.Jc({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],mO);
_.B(mO,"ytd-ad-hover-text-button-renderer",function(){if(C02!==void 0)return C02;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return C02=G},{mode:1});var H2e;var ae=function(){var G=_.J.apply(this,arguments)||this;G.buttonOverrides={size:"XS"};return G};
_.u(ae,_.J);ae.prototype.onHelpTap=function(G){this.data&&this.data.informationDialog&&(_.Xl(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),G.preventDefault(),G.stopPropagation())};
_.r([_.E(),_.h("design:type",Object)],ae.prototype,"buttonOverrides",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ae.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],ae);
_.B(ae,"ytd-live-chat-purchased-product-message-renderer",function(){if(H2e!==void 0)return H2e;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return H2e=G},{mode:1});var Xsk;var yLp;var T5=function(){var G=_.J.apply(this,arguments)||this;G.isContainerDeleted=!1;return G};
_.u(T5,_.J);T5.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
T5.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))};
T5.prototype.isContainerDeletedChanged=T5.prototype.isContainerDeletedChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],T5.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],T5.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],T5.prototype,"isContainerDeleted",void 0);
_.r([_.E(),_.h("design:type",String)],T5.prototype,"deletedStateMessage",void 0);_.r([_.wD("isContainerDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],T5.prototype,"isContainerDeletedChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],T5);
_.B(T5,"ytd-sponsorships-live-chat-header-renderer",function(){if(yLp!==void 0)return yLp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return yLp=G},{mode:1});var OX=function(){var G=_.J.apply(this,arguments)||this;G.modern=_.v("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.u(OX,_.J);OX.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]]"}}}}}};
OX.prototype.onCtaButtonClick=function(){var G,c=_.D((G=this.data)==null?void 0:G.optInPrompt,_.vE);if(G=this.maybeGetButtonCommand(c)){var I;(I=_.DP())==null||I.clickCommand(G)}};
OX.prototype.maybeGetButtonCommand=function(G){return!G||!G.command||_.D(G.command,agK)===void 0&&_.D(G.command,m_e)===void 0?null:G.command};
OX.prototype.shouldHideOptinPrompt=function(G,c){return!G||c};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],OX.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],OX.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],OX.prototype,"modern",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],OX);
_.B(OX,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Xsk!==void 0)return Xsk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Xsk=G},{mode:1});var gk9;var eH=function(){return _.J.apply(this,arguments)||this};
_.u(eH,_.J);eH.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
eH.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))};
eH.prototype.isDeletedChanged=eH.prototype.isDeletedChanged;_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],eH.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],eH.prototype,"data",void 0);_.r([_.wD("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eH.prototype,"isDeletedChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],eH);
_.B(eH,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(gk9!==void 0)return gk9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return gk9=G},{mode:1});var N_=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return G};
_.u(N_,_.J);_.P=N_.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.P.handleLiveChatAction=function(G){_.D(G,de2)?this.handleMarkChatItemAsDeletedAction(_.D(G,de2)):_.D(G,huK)&&this.handleRemoveChatItemAction(_.D(G,huK))};
_.P.handleLiveChatActions=function(G){G.forEach(this.handleLiveChatAction,this)};
_.P.handleMarkChatItemAsDeletedAction=function(G){var c=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(R,Z){var K=Object.keys(R)[0];Object.values(R)[0].id===G.targetItemId&&c.markAsDeleted("data.items",Z,K,G.deletedStateMessage,G.showOriginalContentMessage)})};
_.P.handleRemoveChatItemAction=function(G){var c=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(R,Z){Object.values(R)[0].id===G.targetItemId&&c.splice("data.items",Z,1)})};
_.P.markAsDeleted=function(G,c,I,R,Z){G=[G,c,I].join(".");this.set(G+".deletedStateMessage",R);this.set(G+".showOriginalContentMessage",Z)};
_.r([_.E(),_.h("design:type",Object)],N_.prototype,"data",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],N_.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],N_);
_.B(N_,"yt-live-chat-item-display-list-renderer",function(){if(AL0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Lii===void 0&&(Lii=document.createElement("template"));var R=Lii;I.call(c,R.content.cloneNode(!0),G.content.firstChild);AL0=G}G=AL0;return G},{mode:0});var YlK;var GAA,c10=function(){if(GAA!==void 0)return GAA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;YlK===void 0&&(YlK=document.createElement("template"));var R=YlK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return GAA=G};var ls=function(){var G=_.J.apply(this,arguments)||this;G.isHeader=!1;return G};
_.u(ls,_.J);ls.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Nh.Object.defineProperties(ls,{template:{configurable:!0,enumerable:!0,get:function(){return c10()}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ls.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ls.prototype,"isHeader",void 0);_.r([_.Em({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],ls);_.B(ls,"yt-live-chat-item-display-renderer",function(){return c10()},{mode:0});var Ije,R5B,mrB,QrT;
Ije={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}};R5B={home:"eohps",search:"eosps",watch:"eowps"};_.ZwV=["watch","search","home"];
_.q_=function(){this.JSC$14580_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14580_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.H1("PRECONSTRUCTION_DELAY",0);this.signals_=_.kL();this.targetPage_=""};
_.q_.prototype.init=function(G,c){G=G===void 0?"":G;c=c===void 0?null:c;if(this.JSC$14580_isInitialized_)this.abort();else if(this.JSC$14580_isInitialized_=!0,G&&_.KTk(this,G),c){var I=_.sO(this.signals_,"pcl")?0:10,R=function(){for(var Z=0,K;K=_.ZwV[Z++];)K!=G&&K!=c&&this.pendingPages_.push(K);_.PFT(this)}.bind(this);
this.signals_.parkOrScheduleJob(R,I,"pcl")}};
_.q_.prototype.abort=function(){this.fragmentJobId_&&(_.dJ.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);QrT(this)};
_.KTk=function(G,c){G.JSC$14580_isInitialized_&&!G.targetPage_&&(G.targetPage_=c,mrB(G,c),G.isInitialPass_=!1,mrB(G,c),G.signals_.processSignal(R5B[G.targetPage_]),QrT(G),_.PFT(G))};
_.PFT=function(G){G.pendingPages_.length&&!G.pagePreparerJobId_&&(G.pagePreparerJobId_=_.W_(_.dJ,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.KTk(this,this.pendingPages_.shift())}.bind(G),G.DEFAULT_DELAY_))};
mrB=function(G,c){if(c=Ije[c])for(var I in c){var R=!1,Z=I;I.charAt(0)=="~"&&(R=!0,Z=I.substring(1));var K=c[I];K=typeof K=="object"?K:{count:K};c[I]=K;K.componentName=Z;K.count>0&&(G.isInitialPass_?R||G.isSeenDuringInitialPass_[Z]||(G.JSC$14580_queue_.push({componentName:Z,count:1,signals:K.signals}),G.isSeenDuringInitialPass_[Z]=!0,K.count--):G.JSC$14580_queue_.push(K))}};
QrT=function(G){G.JSC$14580_queue_.length=0;G.targetPage_="";G.isInitialPass_=!0;G.signals_.processSignal("eop")};
_.q_.getInstance=function(){return _.Pe(_.q_)};var aj9=function(){this.signals=_.kL();this.init()};
aj9.prototype.startPreconstruction=function(){_.q_.getInstance().init(_.XG("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
aj9.prototype.init=function(){T_0(this);window.Polymer&&nDB&&PEA();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var G=_.Rq.ytcsi;if(G&&G.gt&&(G=G.gt())&&G.tick&&(G.tick.aft>0||G.tick.pbs>0)&&(_.XG("IS_HOMEPAGE_COLD")||_.XG("IS_RESULTS_PAGE_COLD")||_.XG("IS_WATCH_PAGE_COLD"))){Owe(this);break a}Cu0(HVT,this.onNotifications,this)}};
var T_0=function(G){var c=function(){G.signals.processSignal("dl")};
document.readyState==="complete"?(_.Ra(Error("th"),"WARNING"),c()):_.uPb(window,"load",c)};
aj9.prototype.onNotifications=function(G){G.timer||(_.XG("IS_HOMEPAGE_COLD")||_.XG("IS_RESULTS_PAGE_COLD")||_.XG("IS_WATCH_PAGE_COLD"))&&Owe(this)};
var Owe=function(G){G.signals.parkOrScheduleJob(function(){G.signals.processSignal("eocs")},10,"eor")};
new aj9;var e50=function(){return _.D4.apply(this,arguments)||this};
_.u(e50,_.D4);_.Nh.Object.defineProperties(e50.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_entity_store_from_dependency_injection")?_.XZ():_.y4()}}});
_.r([_.Um()],e50);_.wQ=[Q5.prototype,e50.prototype];var N_T=["ytd-rich-shelf-renderer"],F$=function(){var G=_.D4.apply(this,arguments)||this;G._noAccessors=!0;G.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";G.followUpDialogPromise=null;G.followUpDialogPromiseResolve=null;G.followUpDialogPromiseReject=null;return G};
_.u(F$,_.D4);_.P=F$.prototype;_.P.dismissibleItemIsDismissedChanged_=function(G){_.v("kevlar_fluid_dismiss")&&(G?_.Xl(this.hostElement,"yt-dismissible-item-dismissed"):_.Xl(this.hostElement,"yt-dismissible-item-undismissed"))};
_.P.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.P.dismissibleItemReset_=function(){var G=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.Lk(function(c,I){G.followUpDialogPromiseResolve=c;G.followUpDialogPromiseReject=I});
_.Xl(this.hostElement,"yt-enable-lockup-interaction")};
_.P.dismissibleItemOnYtServiceRequestSent_=function(G,c){c.actions&&this.dismissibleItemProcessActions(c.actions,G)};
_.P.dismissibleItemOnRequestSent=function(G){for(var c=_.Q(G.detail),I=c.next();!I.done;I=c.next()){var R=void 0;(I=(R=_.D(I.value,_.KC))==null?void 0:R.actions)&&this.dismissibleItemProcessActions(I,G)}};
_.P.dismissibleItemOnCommandSent=function(G,c){c&&this.dismissibleItemProcessActions(c,G)};
_.P.setAndGetDismissedContentId=function(G){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+G};
_.P.replayDismissAction=function(G){this.dismissibleItemProcessActions([G])};
_.P.dismissibleItemProcessActions=function(G,c){for(var I=0;I<G.length;I++){var R=G[I],Z=void 0;((Z=_.D(R,_.RP))==null?0:Z.commands)&&this.dismissibleItemProcessActions(_.D(R,_.RP).commands,c);if(_.D(R,_.gA)){if(Z=_.D(R,_.gA),!Z.replaceParentSection||N_T.includes(this.hostElement.nodeName.toLowerCase()))Z.groupDismissal&&rrr(this,Z.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Z),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Le("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:R})),R=void 0,(R=c)==null||R.stopPropagation()}else if(_.D(R,feV))this.dismissibleItemHandleHideEnclosingAction_(),R=void 0,(R=c)==null||R.stopPropagation();else if(_.D(R,Twk))R=_.D(R,Twk),Z=void 0,((Z=R)==null?0:Z.targetGroupId)&&rrr(this,{targetGroupId:R.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Le("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
R=void 0,(R=c)==null||R.stopPropagation();else if(_.D(R,_.KC))(R=_.D(R,_.KC).actions)&&_.cd(this.hostElement,R,this.hostElement),R=void 0,(R=c)==null||R.stopPropagation();else{var K=Z=void 0;((Z=_.D(R,_.GP))==null?void 0:Z.signal)!=="TELL_US_WHY"||((K=_.D(R,_.GP))==null?0:K.targetId)&&_.v("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),R=void 0,(R=c)==null||R.stopPropagation())}}};
_.P.dismissibleItemOnYtServiceRequestCompleted_=function(G,c){var I=this.get("feedbackResponses.0.followUpDialog",c.data);I?this.followUpDialogPromiseResolve(I):c.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(c.actions,G)};
_.P.dismissibleItemHandleReplaceEnclosingAction_=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0;var c=null;(c=_.Q1(this.hostElement).querySelector("#dismissed"))&&_.O$(this,function(){_.ax(c)});
_.Xl(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.P.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.P.dismissibleItemHandleUndoFeedbackAction_=function(){_.Xl(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.P.dismissibleItemHandleTellUsWhySignalAction_=function(){var G=this;this.followUpDialogPromise.then(function(c){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:c}})})};
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_;_.r([_.L(_.zQ),_.h("design:type",Object)],F$.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],F$.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],F$.prototype,"isDismissed",void 0);_.r([_.E(),_.h("design:type",Object)],F$.prototype,"dismissedRenderer",void 0);
_.r([_.wD("isDismissed"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],F$.prototype,"dismissibleItemIsDismissedChanged_",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F$.prototype,"dismissibleItemDataChanged_",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],F$.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.r([_.qY("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],F$.prototype,"dismissibleItemOnRequestSent",null);
_.r([_.qY("yt-dismissible-item-action"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Array]),_.h("design:returntype")],F$.prototype,"dismissibleItemOnCommandSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],F$.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.r([_.Um()],F$);_.nI=[_.zQ,_.wQ,F$.prototype];var vT=function(){var G=_.D4.apply(this,arguments)||this;G.disableGridStateAware=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};G.currentGridClass="";return G};
_.u(vT,_.D4);vT.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.O$(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var G=this.gridStateAwareGetElement();_.as(G,"grid",!0)}};
vT.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
vT.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Q1(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
vT.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var G="grid-disabled";else{G=_.js.getInstance();var c=this.get("pageSubtype");G=c&&Uce.includes(c)?"grid-disabled":G.currentSnapState_?G.currentSnapState_.className:null}(c=this.gridStateAwareGetElement())&&G!==this.currentGridClass&&(G&&_.as(c,G,!0),this.currentGridClass&&_.as(c,this.currentGridClass,!1),this.currentGridClass=G)};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],vT.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",String)],vT.prototype,"gridStateAwareSizingElementSelector",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],vT.prototype,"disableGridStateAware",void 0);_.r([_.Um()],vT);_.Dg=[vT.prototype,_.HR.YtActionHandlerBehavior];_.oe=new _.De("GUIDE_TOKEN");var us;_.UX={};us=function(){var G=_.D4.apply(this,arguments)||this;G.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return G};
_.u(us,_.D4);_.P=us.prototype;_.P.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var G=_.wH().resolve(_.qR(_.oe));G&&(this.guidePersistentAndVisible=G.getGuidePersistentAndVisible(),this.activeEndpoint=G.getActiveEndpoint(),this.guideOpened=G.getGuideOpened(),this.miniGuideVisible=G.getMiniGuideVisible())};
_.P.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.P.handleGuideStateAction=function(G){this.guidePersistentAndVisible=G};
_.P.handleMiniGuideStateAction=function(G){this.miniGuideVisible=G};
_.P.handleGuideOpenedAction=function(G){this.guideOpened=G};
_.P.handleActiveEndpointAction=function(G){this.activeEndpoint=G};
us.prototype.onActiveEndpointChange=us.prototype.onActiveEndpointChange;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],us.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],us.prototype,"guidePersistentAndVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],us.prototype,"miniGuideVisible",void 0);_.r([_.E(),_.h("design:type",Object)],us.prototype,"activeEndpoint",void 0);
_.r([_.wD("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],us.prototype,"onActiveEndpointChange",null);_.r([_.E(),_.h("design:type",Boolean)],us.prototype,"guideOpened",void 0);_.r([_.Um()],us);_.UX.YtdGuideStateAwareBehavior=[];_.UX.YtdGuideStateAwareBehavior.push(us.prototype,_.HR.YtActionHandlerBehavior);var ljT=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],bs=function(){var G=_.D4.apply(this,arguments)||this;G.hoverJobId=0;G.JSC$14607_touched=!1;return G};
_.u(bs,_.D4);_.P=bs.prototype;_.P.created=function(){this.useExpandableTooltip=!ljT.includes(this.is)};
_.P.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.P.detached=function(){this.useExpandableTooltip=!1};
_.P.lockupOnDown=function(G){this.interactionElement&&!_.Gf(_.CE(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.P.lockupOnUp=function(G){this.interactionElement&&!_.Gf(_.CE(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.P.onTouchStart=function(){this.JSC$14607_touched=!0};
_.P.lockupOnMouseEnter=function(){var G=this,c=_.DH("kevlar_lockup_hover_delay",-1);this.JSC$14607_touched&&c>=0?(_.dJ.cancelJob(this.hoverJobId),this.hoverJobId=_.dJ.addJob(function(){G.lockupIsHovered=!0},8,c),this.JSC$14607_touched=!1):this.lockupIsHovered=!0};
_.P.lockupOnMouseLeave=function(){this.hoverJobId&&(_.dJ.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.P.lockupOnPopupClosed=function(G,c){var I;((I=c.popupRenderer)==null?void 0:I.is)==="ytd-menu-popup-renderer"&&(G=c.popupRenderer.veData,c=_.k0(),G&&c&&_.rU(c,[G]))};
_.P.lockupOnLockupRequested=function(G){var c=G.detail.videoIds[0],I;G.detail&&c===((I=this.data)==null?void 0:I.videoId)&&(G.detail.returnValue=[this.data])};
_.P.lockupOnYtServiceRequestSent=function(G,c){if(G=c.actions)for(var I=0;I<G.length;I++){var R=G[I];if(R.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&c.ajaxPromise){var Z=void 0,K=(Z=_.D(c.endpoint,_.ql))==null?void 0:Z.playlistId;Z=void 0;R=(Z=R.removedVideoId)!=null?Z:"";CSB(_.Ah(),R,K)}else R.action==="ACTION_REMOVE_VIDEO"&&c.ajaxPromise&&(K=void 0,R=(K=R.setVideoId)!=null?K:"",_.HoA(_.Ah(),R))}};
_.P.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.P.lockupOnLockupEnabled=function(){if(!this.$){var G=_.wH().resolve(_.I9).getCurrentPage(),c=this.getParentRenderer?this.getParentRenderer():void 0;_.Ck(new _.iW("component not ready",this.is,this.isAttached,G==null?void 0:G.is,c==null?void 0:c.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
bs.prototype.lockupOnLockupEnabled=bs.prototype.lockupOnLockupEnabled;bs.prototype.lockupOnLockupDisabled=bs.prototype.lockupOnLockupDisabled;bs.prototype.lockupOnYtServiceRequestSent=bs.prototype.lockupOnYtServiceRequestSent;bs.prototype.lockupOnLockupRequested=bs.prototype.lockupOnLockupRequested;bs.prototype.lockupOnPopupClosed=bs.prototype.lockupOnPopupClosed;bs.prototype.lockupOnMouseLeave=bs.prototype.lockupOnMouseLeave;bs.prototype.lockupOnMouseEnter=bs.prototype.lockupOnMouseEnter;
bs.prototype.onTouchStart=bs.prototype.onTouchStart;bs.prototype.lockupOnUp=bs.prototype.lockupOnUp;bs.prototype.lockupOnDown=bs.prototype.lockupOnDown;_.r([_.E(),_.h("design:type",Object)],bs.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],bs.prototype,"lockupIsHovered",void 0);_.r([_.E(),_.h("design:type",Boolean)],bs.prototype,"lockupTouchTriggered",void 0);_.r([_.E(),_.h("design:type",Boolean)],bs.prototype,"useExpandableTooltip",void 0);
_.r([_.nH("#interaction"),_.h("design:type",Object)],bs.prototype,"interactionElement",void 0);_.r([_.qY("down"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],bs.prototype,"lockupOnDown",null);_.r([_.qY("up"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],bs.prototype,"lockupOnUp",null);
_.r([_.qY("touchstart"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bs.prototype,"onTouchStart",null);_.r([_.qY("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bs.prototype,"lockupOnMouseEnter",null);_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bs.prototype,"lockupOnMouseLeave",null);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],bs.prototype,"lockupOnPopupClosed",null);_.r([_.qY("yt-lockup-requested"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],bs.prototype,"lockupOnLockupRequested",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],bs.prototype,"lockupOnYtServiceRequestSent",null);_.r([_.qY("yt-disable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bs.prototype,"lockupOnLockupDisabled",null);
_.r([_.qY("yt-enable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bs.prototype,"lockupOnLockupEnabled",null);_.r([_.Um()],bs);_.kw=[bs.prototype];_.qai={YtdReduxBehavior:[]};_.qai.YtdReduxBehavior.push.apply(_.qai.YtdReduxBehavior,_.wQ);var sX=function(){var G=_.D4.apply(this,arguments)||this;G._noAccessors=!0;G.disableNowPlaying=!1;G.disableTooltips=!1;G.useHoveredProperty=!1;G.hovered=!1;G.isThumbnailHovered_=!1;G.addBackground=_.v("kevlar_thumbnail_bg");G.nowPlaying=!1;G.disableRounding=!1;G.size="small";return G};
_.u(sX,_.D4);_.P=sX.prototype;_.P.computeThumbnailOverlaySidePanelWidth_=function(G,c){return G-c};
_.P.computeSize=function(G,c){if(!this.disableRounding){if(!G&&!c)return"small";G=Math.max(G||0,c||0);return G>=256?"large":G>=96?"medium":"small"}};
_.P.computeFinalHoveredState_=function(G,c,I){return this.nowPlaying?!1:_.v("kevlar_thumbnail_fluid")&&G?c:I};
_.P.computeHoverOverlays_=function(G,c){return G&&c?c:void 0};
_.P.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.P.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.P.checkMiniplayer_=function(){var G;if(((G=this.data)==null?0:G.playlistSetVideoId)&&_.v("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{G=_.ck();var c=G.currentEndpoint;!this.disableNowPlaying&&c&&_.D(c,_.fR)&&this.data?(c=_.D(c,_.fR),this.nowPlaying=this.data.playlistId?c.playlistId===this.data.playlistId:c.videoId===this.data.videoId,this.isVideoPlaying=G==null?void 0:G.isVideoPlaying):this.nowPlaying=!1}};
sX.prototype.checkMiniplayer_=sX.prototype.checkMiniplayer_;sX.prototype.onMouseLeave_=sX.prototype.onMouseLeave_;sX.prototype.onMouseEnter_=sX.prototype.onMouseEnter_;sX.prototype.computeHoverOverlays_=sX.prototype.computeHoverOverlays_;sX.prototype.computeFinalHoveredState_=sX.prototype.computeFinalHoveredState_;sX.prototype.computeSize=sX.prototype.computeSize;sX.prototype.computeThumbnailOverlaySidePanelWidth_=sX.prototype.computeThumbnailOverlaySidePanelWidth_;
_.r([_.L(_.wQ),_.h("design:type",Object)],sX.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sX.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],sX.prototype,"height",void 0);_.r([_.E(),_.h("design:type",Boolean)],sX.prototype,"bottomSidePanel",void 0);_.r([_.E(),_.h("design:type",Number)],sX.prototype,"width",void 0);_.r([_.E(),_.h("design:type",Object)],sX.prototype,"disableNowPlaying",void 0);
_.r([_.E({selector:_.pp}),_.h("design:type",Boolean)],sX.prototype,"miniplayerIsActive",void 0);_.r([_.E(),_.h("design:type",Object)],sX.prototype,"disableTooltips",void 0);_.r([_.E(),_.h("design:type",Object)],sX.prototype,"useHoveredProperty",void 0);_.r([_.E(),_.h("design:type",Object)],sX.prototype,"hovered",void 0);_.r([_.E(),_.h("design:type",Object)],sX.prototype,"isThumbnailHovered_",void 0);
_.r([_.E({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.h("design:type",Boolean)],sX.prototype,"finalHoveredState_",void 0);_.r([_.E({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.h("design:type",Number)],sX.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sX.prototype,"addBackground",void 0);
_.r([_.E({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.h("design:type",Object)],sX.prototype,"hoverOverlays_",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sX.prototype,"nowPlaying",void 0);_.r([_.E(),_.h("design:type",Boolean)],sX.prototype,"isVideoPlaying",void 0);_.r([_.E(),_.h("design:type",Object)],sX.prototype,"disableRounding",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.h("design:type",Object)],sX.prototype,"size",void 0);_.r([_.qY("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sX.prototype,"onMouseEnter_",null);_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sX.prototype,"onMouseLeave_",null);
_.r([_.wD("data","disableNowPlaying","miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sX.prototype,"checkMiniplayer_",null);_.r([_.Um()],sX);var wPp=[sX.prototype];_.LI={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(G,c){return G+":"+_.XB(c)},
getPlayerListener_:function(G,c,I){G=this.getPlayerListenerKey_(G,c);c=this.playerListeners_.get(G);I&&this.playerListeners_.delete(G);return c},
savePlayerListener_:function(G,c){var I=c.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(G,c),I);return I},
listenToPlayerEvent:function(G,c,I){I=this.savePlayerListener_(c,I);G.addEventListener(c,I)},
listenToPlayerEvents:function(G,c){c.forEach(function(I,R){this.listenToPlayerEvent(G,R,I)}.bind(this))},
unlistenFromPlayerEvent:function(G,c,I){I=this.getPlayerListener_(c,I,!0);G.removeEventListener(c,I)},
unlistenFromPlayerEvents:function(G,c){c.forEach(function(I,R){this.unlistenFromPlayerEvent(G,R,I)}.bind(this))}}};
_.Au=function(){};_.FTN=new _.De("PLAYER_API_TOKEN");var hPO=!1,Xnq,C$0=!1,g8r;var QK=function(G,c,I,R,Z){_.JK.call(this);var K=this;this.playerId=c;this.webPlayerContextConfig=R;this.jo0=Z;this.qWZ=!1;this.api={};this.ytK=this.a1V=null;this.iAF=new _.p4;this.w8={};this.sPl=this.ec9=this.elementId=this.zgK=this.config=null;this.j4N=!1;this.sM=this.dz2=null;this.q6o={};this.cAR=["onReady"];this.lastError=null;this.pbO=NaN;this.kR0={};this.bfo=0;this.cU=this.targetElement=G;_.k9(this,this.iAF);nQK(this);I?this.bfo=setTimeout(function(){K.loadNewVideoConfig(I)},0):R&&(vQ0(this),
Dr0(this))};
_.u(QK,_.JK);QK.prototype.getId=function(){return this.playerId};
QK.prototype.loadNewVideoConfig=function(G){if(!this.isDisposed()){this.bfo&&(clearTimeout(this.bfo),this.bfo=0);var c=G||{};c instanceof Yyk||(c=new Yyk(c));this.config=c;this.setConfig(G);Dr0(this);this.isReady()&&oQK(this)}};
var vQ0=function(G){var c;G.webPlayerContextConfig?c=G.webPlayerContextConfig.rootElementId:c=G.config.attrs.id;G.elementId=c||G.elementId;G.elementId==="video-player"&&(G.elementId=G.playerId,G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.playerId:G.config.attrs.id=G.playerId);var I;((I=G.cU)==null?void 0:I.id)===G.elementId&&(G.elementId+="-player",G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.elementId:G.config.attrs.id=G.elementId)};
QK.prototype.setConfig=function(G){this.zgK=G;this.config=UrK(G);vQ0(this);if(!this.ec9){var c;this.ec9=uw9(this,((c=this.config.args)==null?void 0:c.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var I;if((I=this.config)==null?0:I.attrs)G=this.config.attrs,(c=G.width)&&this.cU&&(this.cU.style.width=GR(Number(c)||c,!0)),(G=G.height)&&this.cU&&(this.cU.style.height=GR(Number(G)||G,!0))};
QK.prototype.getConfig=function(){return this.zgK};
var oQK=function(G){if(G.config&&G.config.loaded!==!0)if(G.config.loaded=!0,!G.config.args||G.config.args.autoplay!=="0"&&G.config.args.autoplay!==0&&G.config.args.autoplay!==!1){var c;G.api.loadVideoByPlayerVars((c=G.config.args)!=null?c:null)}else G.api.cueVideoByPlayerVars(G.config.args)},kAe=function(G){var c=!0,I=G.getPlayerElement();
I&&G.config&&(c=I.dataset.version===bw0(G));return c&&!!_.Yc("yt.player.Application.create")},Dr0=function(G){if(!G.isDisposed()&&!G.j4N){var c=kAe(G);
if(c&&(G.getPlayerElement()?"html5":null)==="html5")G.sPl="html5",G.isReady()||srK(G);else if(LTV(G),G.sPl="html5",c&&G.sM&&G.targetElement)G.targetElement.appendChild(G.sM),srK(G);else{G.config&&(G.config.loaded=!0);var I=!1;G.dz2=function(){I=!0;var R=A1p(G,"player_bootstrap_method")?_.Yc("yt.player.Application.createAlternate")||_.Yc("yt.player.Application.create"):_.Yc("yt.player.Application.create");var Z=G.config?UrK(G.config):void 0;R&&R(G.targetElement,Z,G.webPlayerContextConfig,G.jo0);srK(G)};
G.j4N=!0;c?G.dz2():(_.My(bw0(G),G.dz2),(c=$r9(G))&&F48(c||""),Sa9(G)&&!I&&_.lr("yt.player.Application.create",null))}}};
QK.prototype.getPlayerElement=function(){var G=_.P8(document,this.elementId);!G&&this.cU&&this.cU.querySelector&&(G=this.cU.querySelector("#"+this.elementId));return G};
var srK=function(G){if(!G.isDisposed()){var c=G.getPlayerElement(),I=!1;c&&c.getApiInterface&&c.getApiInterface()&&(I=!0);if(I){G.j4N=!1;if(!A1p(G,"html5_remove_not_servable_check_killswitch")){var R;if((c==null?0:c.isNotServable)&&G.config&&(c==null?0:c.isNotServable((R=G.config.args)==null?void 0:R.video_id)))return}pPB(G)}else G.pbO=setTimeout(function(){srK(G)},50)}},pPB=function(G){nQK(G);
G.qWZ=!0;var c=G.getPlayerElement();if(c){G.a1V=M$0(G,c,"addEventListener");G.ytK=M$0(G,c,"removeEventListener");var I=c.getApiInterface();I=I.concat(c.getInternalApiInterface());for(var R=G.api,Z=0;Z<I.length;Z++){var K=I[Z];R[K]||(R[K]=M$0(G,c,K))}}for(var m in G.w8)G.w8.hasOwnProperty(m)&&G.a1V&&G.a1V(m,G.w8[m]);oQK(G);G.ec9&&G.ec9(G.api);G.iAF.publish("onReady",G.api)},M$0=function(G,c,I){var R=c[I];
return function(){var Z=_.Hy.apply(0,arguments);try{return G.lastError=null,R.apply(c,Z)}catch(K){if(I!=="sendAbandonmentPing")throw K.params=I,G.lastError=K,Z=new _.iW("PlayerProxy error in method call",{error:K,method:I,playerId:G.playerId}),Z.level="WARNING",Z;}}},nQK=function(G){G.qWZ=!1;
if(G.ytK)for(var c in G.w8)G.w8.hasOwnProperty(c)&&G.ytK(c,G.w8[c]);for(var I in G.kR0)G.kR0.hasOwnProperty(I)&&clearTimeout(Number(I));G.kR0={};G.a1V=null;G.ytK=null;c=G.api;for(var R in c)c.hasOwnProperty(R)&&(c[R]=null);c.addEventListener=function(Z,K){G.addEventListener(Z,K)};
c.removeEventListener=function(Z,K){G.removeEventListener(Z,K)};
c.destroy=function(){G.dispose()};
c.getLastError=function(){return G.getLastError()};
c.getPlayerType=function(){return G.getPlayerType()};
c.getCurrentVideoConfig=function(){return G.getConfig()};
c.loadNewVideoConfig=function(Z){G.loadNewVideoConfig(Z)};
c.isReady=function(){return G.isReady()}};
QK.prototype.isReady=function(){return this.qWZ};
QK.prototype.addEventListener=function(G,c){var I=this;this.isDisposed();var R=uw9(this,c);R&&(_.fA(this.cAR,G)||this.w8[G]||(c=V$B(this,G),this.a1V&&this.a1V(G,c)),this.iAF.subscribe(G,R),G==="onReady"&&this.isReady()&&setTimeout(function(){R(I.api)},0))};
QK.prototype.removeEventListener=function(G,c){this.isDisposed()||(c=uw9(this,c))&&this.iAF.unsubscribe(G,c)};
var uw9=function(G,c){var I=c;if(typeof c==="string"){if(G.q6o[c])return G.q6o[c];I=function(){var R=_.Hy.apply(0,arguments),Z=_.Yc(c);if(Z)try{Z.apply(_.Rq,R)}catch(K){throw R=new _.iW("PlayerProxy error when executing callback",{error:K}),R.level="ERROR",R;}};
G.q6o[c]=I}return I?I:null},V$B=function(G,c){var I=function(R){var Z=function(){G.isDisposed();
if(!G.isDisposed())try{G.iAF.publish(c,R!=null?R:void 0)}catch(a){var m=new _.iW("PlayerProxy error when creating global callback",{error:a.message,event:c,playerId:G.playerId,data:R,originalStack:a.stack,componentStack:a.componentStack});m.level="WARNING";throw m;}};
if(A1p(G,"web_player_publish_events_immediately"))Z();else{var K=setTimeout(function(){Z();_.rx.remove(G.kR0,String(K))},0);
_.rx.add(G.kR0,String(K),!0)}};
return G.w8[c]=I};
QK.prototype.getPlayerType=function(){return this.sPl||(this.getPlayerElement()?"html5":null)};
QK.prototype.getLastError=function(){return this.lastError};
var LTV=function(G){G.cancel();nQK(G);G.sPl=null;G.config&&(G.config.loaded=!1);var c=G.getPlayerElement();c&&(kAe(G)||!Sa9(G)?G.sM=c:(c&&c.destroy&&c.destroy(),G.sM=null));G.targetElement&&_.d1(G.targetElement)};
QK.prototype.cancel=function(){this.dz2&&_.hLr(bw0(this),this.dz2);clearTimeout(this.pbO);this.j4N=!1};
QK.prototype.disposeInternal=function(){LTV(this);if(this.sM&&this.config&&this.sM.destroy)try{this.sM.destroy()}catch(c){var G=new _.iW("PlayerProxy error during disposal",{error:c});G.level="ERROR";throw G;}this.q6o=null;for(G in this.w8)this.w8.hasOwnProperty(G)&&delete this.w8[G];this.zgK=this.config=this.api=null;delete this.targetElement;delete this.cU;_.JK.prototype.disposeInternal.call(this)};
var Sa9=function(G){var c,I;G=(c=G.config)==null?void 0:(I=c.args)==null?void 0:I.fflags;return!!G&&G.indexOf("player_destroy_old_version=true")!==-1},bw0=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.jsUrl:(G=G.config.assets)?G.js:""},$r9=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.cssUrl:(G=G.config.assets)?G.css:""},A1p=function(G,c){if(G.webPlayerContextConfig)var I=G.webPlayerContextConfig.serializedExperimentFlags;
else{var R;if((R=G.config)==null?0:R.args)I=G.config.args.fflags}return(I||"").split("&").includes(c+"=true")},UrK=function(G){for(var c={},I=_.Q(Object.keys(G)),R=I.next();!R.done;R=I.next()){R=R.value;
var Z=G[R];c[R]=typeof Z==="object"?_.rx.clone(Z):Z}return c};var ROi={},I8O="player_uid_"+(Math.random()*1E9>>>0);var $w=function(G,c,I,R,Z,K){c=c===void 0?document.createElement("div"):c;this.webPlayerContextConfig=G;this.container=c;this.commandResolver=I;this.apiResolver=P0A();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Te;R||K?z5K(this):EQ9(this);this.pendingPlayerResponse=R;this.pendingWatchNextResponse=Z;this.pendingPlayerVars=K;J10(this)};
$w.prototype.loadVideoWithPlayerResponse=function(G,c,I){this.loadVideo(G,c,I)};
$w.prototype.loadVideoWithPlayerVars=function(G){return this.loadVideo(void 0,void 0,G)};
$w.prototype.destroy=function(G){if(G=_.P8(document,G))G=I8O+"_"+_.XB(G),(G=ROi[G])&&G.dispose()};
var iwA=function(G,c){var I;_.T(function(R){if(R.nextAddress==1)return G.pendingWatchNextResponse=c,G.synchronousApi?(I=G.synchronousApi,R.jumpTo(2)):R.yield(G.api,3);R.nextAddress!=2&&(I=R.yieldResult);if(!WTT(G,I))return R.return();G.pendingWatchNextResponse&&(I.updateVideoData({raw_watch_next_response:G.pendingWatchNextResponse}),G.pendingWatchNextResponse=void 0);_.Vp(R)})},WTT=function(G,c){var I;
if(!(c==null?0:(I=c.isReady)==null?0:I.call(c))){var R;_.Ck(new _.iW("playerApi is falsey",{synchronousApi:G.synchronousApi,apiResolved:G.apiResolver.resolved,playerApiUndefined:c===void 0,playerApiNull:c===null,playerApiReady:(c==null?void 0:(R=c.isReady)==null?void 0:R.call(c))===!0,playerApiMethods:c?Object.keys(c):[]}));return!1}return!0},fjT=function(G,c){if(typeof G[c]==="function")return G[c]()},B_0=function(G){var c=window,I,R=(I=c.ytplayer)==null?void 0:I.bootstrapPlayerContainer;
if((I=R==null?void 0:R.firstElementChild)&&_.aN(I,"html5-video-player")){var Z,K,m=(Z=c.ytplayer)==null?void 0:(K=Z.bootstrapWebPlayerContextConfig)==null?void 0:K.contextId;Z=G.webPlayerContextConfig.contextId;if(m&&m===Z){R!==G.container&&(R=!1,fjT(I,"getPlayerState")===2&&(R=!0),G.container.appendChild(I),R||fjT(I,"playVideo"));var a;if((a=c.ytplayer)==null?0:a.bootstrapPlayerResponse)G.bootstrapPlayerResponse=c.ytplayer.bootstrapPlayerResponse}}},J10=function(G){var c,I,R,Z,K;
_.T(function(m){if(m.nextAddress==1)return G.pageReadyOrDataAvailable?m.jumpTo(2):m.yield(G.pageReadyOrDataAvailableResolver.promise,2);if(m.nextAddress!=4)return!_.v("kevlar_player_unified_player_loading")||d1p()&&HWA()?m.jumpTo(4):m.yield(GNB(),4);B_0(G);if(G.pendingPlayerResponse||G.pendingPlayerVars)c=cLf(G.pendingPlayerResponse,G.pendingWatchNextResponse,G.pendingPlayerVars),G.pendingPlayerResponse&&G.pendingPlayerResponse===G.bootstrapPlayerResponse&&(c.loaded=!0),G.bootstrapPlayerResponse=
void 0;I=KiO(G.container,c,G.webPlayerContextConfig);((R=c)==null?0:R.loaded)&&G.pendingWatchNextResponse?(iwA(G,G.pendingWatchNextResponse),G.pendingPlayerResponse=void 0,G.pendingPlayerVars=void 0):r1e(G);Z=function(a){I.removeEventListener("onReady",Z);G.synchronousApi=a;G.apiResolver.resolve(a)};
I.addEventListener("onReady",Z);G.commandResolver!==void 0&&(K=G.commandResolver,I.addEventListener("innertubeCommand",function(a){K(a)}));
_.Vp(m)})};
$w.prototype.loadVideo=function(G,c,I){var R=this,Z,K,m,a,O,N,q,w,F;return _.T(function(n){if(n.nextAddress==1)return R.pendingPlayerResponse=G,R.pendingWatchNextResponse=c,R.pendingPlayerVars=I,z5K(R),R.synchronousApi?(Z=R.synchronousApi,n.jumpTo(2)):n.yield(R.api,3);n.nextAddress!=2&&(Z=n.yieldResult);if(!WTT(R,Z))return n.return(new Promise(function(){}));
m=new Promise(function(U){K=U});
a=function(){var U=Z.getPlayerResponse();U&&(Z.removeEventListener("onVideoDataChange",a),K(U))};
Z.addEventListener("onVideoDataChange",a);if(R.pendingPlayerResponse||R.pendingPlayerVars)R.pendingPlayerResponse&&R.pendingPlayerResponse===R.bootstrapPlayerResponse?(K(R.pendingPlayerResponse),R.pendingWatchNextResponse&&iwA(R,R.pendingWatchNextResponse)):(O=cLf(R.pendingPlayerResponse,R.pendingWatchNextResponse,R.pendingPlayerVars),(F=(N=R.pendingPlayerResponse)==null?void 0:(q=N.playerConfig)==null?void 0:(w=q.playbackStartConfig)==null?void 0:w.startPaused)?Z.cueVideoByPlayerVars(O.args):Z.loadVideoByPlayerVars(O.args)),
r1e(R),R.bootstrapPlayerResponse=void 0;return n.return(m)})};
var EQ9=function(G){if(document.readyState==="complete"||document.readyState==="interactive")z5K(G);else{var c=function(){document.removeEventListener("DOMContentLoaded",c);z5K(G)};
document.addEventListener("DOMContentLoaded",c)}},z5K=function(G){G.pageReadyOrDataAvailable=!0;
G.pageReadyOrDataAvailableResolver.resolve()},r1e=function(G){G.pendingPlayerResponse=void 0;
G.pendingWatchNextResponse=void 0;G.pendingPlayerVars=void 0};
_.Nh.Object.defineProperties($w.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var SH=function(G){cw.call(this,G===void 0?"document_active":G);var c=this;this.overridePriority=10;this.JSC$14640_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(I){c.transition("document_disposed",{event:I})});
window.addEventListener("beforeunload",function(I){c.transition("document_disposed_preventable",{event:I})});
window.addEventListener("unload",function(I){c.transition("document_disposed",{event:I});c.JSC$14640_hasRun=new Map})};
_.u(SH,cw);
SH.prototype.runPreventableDispose=function(G,c){if(!this.JSC$14640_hasRun.get("document_disposed_preventable")){G(c==null?void 0:c.event);var I,R;if((c==null?0:(I=c.event)==null?0:I.defaultPrevented)||(c==null?0:(R=c.event)==null?0:R.returnValue)){c.event.returnValue||(c.event.returnValue=!0);c.event.defaultPrevented||c.event.preventDefault();this.JSC$14640_hasRun=new Map;this.transition("document_active");return}}this.JSC$14640_hasRun.set("document_disposed_preventable",!0);this.JSC$14640_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
SH.prototype.runDispose=function(G,c){this.JSC$14640_hasRun.get("document_disposed")?this.transition("document_active"):(G(c==null?void 0:c.event),this.JSC$14640_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
SH.prototype.runFlush=function(G,c){G(c==null?void 0:c.event);this.transition("document_active")};
SH.prototype.runActive=function(){};var pI=function(G){cw.call(this,G===void 0?"document_visibility_unknown":G);var c=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(I){document.visibilityState==="visible"?c.transition("document_visible",{event:I}):c.transition("document_hidden",
{event:I})});
_.v("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(I){c.transition("document_backgrounded",{event:I})}),window.addEventListener("focus",function(I){c.transition("document_foregrounded",{event:I})}))};
_.u(pI,cw);pI.prototype.runVisible=function(G,c){G(c==null?void 0:c.event);_.v("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
pI.prototype.runHidden=function(G,c){G(c==null?void 0:c.event);_.v("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
pI.prototype.runBackgrounded=function(G,c){G(c==null?void 0:c.event)};
pI.prototype.runForegrounded=function(G,c){G(c==null?void 0:c.event)};var M_=function(){this.teardownLifecycle=new SH;this.visibilityLifecycle=new pI};
M_.prototype.install=function(){var G=_.Hy.apply(0,arguments),c=this;G.forEach(function(I){c.teardownLifecycle.install(I)});
G.forEach(function(I){c.visibilityLifecycle.install(I)})};var V_=function(){M_.call(this);var G={};this.install((G.document_disposed={callback:this.abortSlisAndFlush},G));_.v("combine_ve_grafts")&&(G={},this.install((G.document_disposed={callback:this.flushInteractionLoggingAttachVes},G)));G={};this.install((G.flush_logs={callback:this.logFinalPayload},G));_.v("web_log_cfg_cee_ks")||_.W_(_.dJ,jrK)};
_.u(V_,M_);var QAr=function(){V_.loggingInstance||(V_.loggingInstance=new V_);return V_.loggingInstance};
V_.prototype.logFinalPayload=function(){if(_.v("web_fp_via_jspb")){var G=new Cnk,c=_.k0();c&&_.Eq(G,1,c);c=_.v("jspb_sparse_encoded_pivot")?new Jg([{}]):new Jg;_.$N(c,380,Hpe,G);EOB("finalPayload",c);_.v("web_fp_via_jspb_and_json")&&_.x7("finalPayload",{csn:_.k0()})}else _.x7("finalPayload",{csn:_.k0()})};
V_.prototype.abortSlisAndFlush=function(){W2K(LJ);At!=null&&At.flush()};
V_.prototype.flushInteractionLoggingAttachVes=function(){ZPB(_.DP())};
var jrK=function(){var G=_.H1("CLIENT_EXPERIMENT_EVENTS");if(G){var c=Ipq();G=_.Q(G);for(var I=G.next();!I.done;I=G.next())I=I.value,c(I)&&_.x7("genericClientExperimentEvent",{eventType:I});delete _.dK.CLIENT_EXPERIMENT_EVENTS}};var xrN={};
xrN.YtPlayerBehavior=[_.LI.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var G=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Te;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;mTq(function(){G.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.CY(this,"pan-down"),_.v("kevlar_pinch_fullscreen")&&_.YL().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.v("kevlar_pinch_fullscreen")&&_.YL().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(G,c,I){var R=this;m7(this.useUnifiedPlayer_());if(this.mainAppPlayer_)m7(!1,"MainAppPlayer already created.");else{var Z=_.v("kevlar_player_container_query_killswitch")?this.$.container:_.Q1(this.hostElement).querySelector("#container");this.mainAppPlayer_=new $w(this.getWebPlayerContextConfig_(),Z,function(K){return _.qC(K,R.hostElement)},G,c,I);
this.mainAppPlayer_.api.then(function(K){R.player_=K;R.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&PSK.resolve(K)})}},
loadVideoWithPlayerResponse:function(G,c){var I=this;if(this.useUnifiedPlayer_()){var R=this.watchNextData,Z,K=(Z=G.videoDetails)==null?void 0:Z.videoId,m,a,O;(Z=(m=this.watchNextData)==null?void 0:(a=m.currentVideoEndpoint)==null?void 0:(O=a.watchEndpoint)==null?void 0:O.videoId)&&K!=Z&&(R=void 0,_.v("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(G,R,c):this.createMainAppPlayer_(G,R,c);this.mainAppPlayer_.api.then(function(){_.Xl(I.hostElement,
"yt-player-updated")})}else this.update(j8p(G,c))},
loadVideoWithPlayerVars:function(G){var c=this;this.useUnifiedPlayer_()?(_.v("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(G):this.createMainAppPlayer_(void 0,void 0,G),this.mainAppPlayer_.api.then(function(){_.Xl(c.hostElement,"yt-player-updated")})):this.update({args:G})},
update:function(G){var c=this;if(this.useUnifiedPlayer_())m7(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(G);var I=cjT(G.args);I&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==I&&Object.assign(G.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(G).then(function(R){_.Xl(c.hostElement,"yt-player-updated",_.v("kevlar_player_updated_obsolete_player_killswitch")?
R:void 0)})}_.dj(new _.iW("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(c.getPlayerPromise(),2);I=R.yieldResult;if(!I)throw Error("vh");G&&c.updatePlayerPlaylist_(G);_.Vp(R)})},
acquireApi_:function(G){var c=this;if(this.useUnifiedPlayer_())m7(!1,"Invalid method call in kevlar_unified_player.");else return _.dJ.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(m7(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(I){c.shouldAutoplay_(G)?I.loadVideoByPlayerVars(G.args):I.cueVideoByPlayerVars(G.args)})):this.initPlayerPromise_=this.initPlayerContainer_(G),this.initPlayerPromise_},
initPlayerContainer_:function(G){var c=this;if(this.useUnifiedPlayer_())m7(!1,"Invalid method call in kevlar_unified_player.");else return m7(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Ck(Error("wh")),m7(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.v("kevlar_player_container_query_killswitch")?this.$.container:_.Q1(this.hostElement).querySelector("#container"),GNB().then(function(){var I=c.initPlayer_(G);c.playerResolver_.resolve(I);
return I})},
onPlayerReady_:function(G,c){this.useUnifiedPlayer_()?m7(!1,"Invalid method call in kevlar_unified_player."):(G.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&PSK.resolve(G),c(G))},
maybeCallApiMethodOnElement_:function(G,c){if(typeof G[c]==="function")return G[c]()},
maybeAdoptBootstrapPlayer_:function(){var G=window,c,I=(c=G.ytplayer)==null?void 0:c.bootstrapPlayerContainer;if((c=I==null?void 0:I.firstElementChild)&&c.classList.contains("html5-video-player")){var R,Z,K=(R=G.ytplayer)==null?void 0:(Z=R.bootstrapWebPlayerContextConfig)==null?void 0:Z.contextId;R=this.getWebPlayerContextConfig_().contextId;if(K&&K===R){I!==this.playerContainer_&&(I=!1,this.maybeCallApiMethodOnElement_(c,"getPlayerState")===2&&(I=!0),this.playerContainer_.appendChild(c),I||this.maybeCallApiMethodOnElement_(c,
"playVideo"));var m;if((m=G.ytplayer)==null?0:m.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=G.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(G){var c=this;if(this.useUnifiedPlayer_())m7(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(I){c.maybeAdoptBootstrapPlayer_();var R=G?x1r(G):void 0;R&&R==c.bootstrapPlayerResponse_&&(G.loaded=!0);R=c.playerContainer_;var Z=c.getWebPlayerContextConfig_();R=KiO(R,G,Z);c.player_=R;c.onPlayerReadyEvent_=c.onPlayerReady_.bind(c,c.player_,I);c.player_.addEventListener("onReady",c.onPlayerReadyEvent_);c.player_.addEventListener("innertubeCommand",
c.onPlayerInnerTubeCommand_.bind(c))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(G){G.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(G){G.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var G=_.wH().resolve(_.I9).getCurrentPage();G&&G.getScrollTop()<=0?_.CY(this,"pan-down"):_.CY(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(G){G.isFullscreen()||G.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(G){G.isFullscreen()&&G.toggleFullscreen()})},
updatePlayerPlaylist_:function(G){var c=this,I,R,Z;return _.T(function(K){if(K.nextAddress==1)return I=_.wH().resolve(_.qR(_.u1)),R=!!(I&&I.playlistComponent&&I.playlistComponent.loopOn),K.yield(c.getPlayerPromise(),2);var m=Z=K.yieldResult,a=m.updatePlaylist,O=[];if(_.v("kevlar_player_playlist_use_local_index")){var N,q;var w=(q=(N=G.localCurrentIndex)!=null?N:G.currentIndex)!=null?q:0}else{var F;w=(F=G.currentIndex)!=null?F:0}if(G.contents)for(N=0;N<G.contents.length;N++)if((q=G.contents[N])&&q.playlistPanelVideoRenderer)if(U_T(q)){q=
q.playlistPanelVideoRenderer;F="";q.shortBylineText&&(F=_.HY(q.shortBylineText));var n="";q.title?n=_.HY(q.title):q.unplayableText&&(n=_.HY(q.unplayableText));O.push({author:F,title:n,encrypted_id:q.videoId})}else N<w&&--w;a.call(m,{index:w,list:G.playlistId?G.playlistId:"",loop:R,playlist_title:G.title,playlist_length:O.length,video:O,fetch:0,external_list:"1",title:G.title?G.title:"",playlist_author:G.ownerName?_.HY(G.ownerName):void 0});_.Vp(K)})},
focusOnPlayer:function(){_.O$(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var G=this.playerContainer_.querySelector(".html5-video-player");G&&(_.z5(_.wH().resolve(_.uf)),G.focus())}})},
preparePlayer:function(){var G=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(c){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")c();else{var I=function(){document.removeEventListener("DOMContentLoaded",I);c()};
document.addEventListener("DOMContentLoaded",I)}})).then(function(){return GNB()}).then(function(){G.initPlayerPromise_||G.preparePlayerJobId_||(G.preparePlayerJobId_=_.W_(_.dJ,function(){G.initPlayerPromise_||(G.initPlayerPromise_=G.initPlayerContainer_())}))}):_.dj(new _.iW("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(G){this.useUnifiedPlayer_()?m7(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(G)||(G.args.autoplay="0")},
shouldAutoplay_:function(G){if(this.useUnifiedPlayer_())m7(!1,"Invalid method call in kevlar_unified_player.");else{var c=this.get("args.el",G);return c&&c!="detailpage"&&this.isMiniplayerActive_()||c&&(c=="sponsorshipsoffer"||c=="handlesclaiming")&&this.get("args.autoplay",G)=="0"?!1:(G=x1r(G))&&this.get("playerConfig.playbackStartConfig.startPaused",G)?!1:!0}},
isMiniplayerActive_:function(){return _.wH().resolve(_.tA).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var G=this.getPlayer();if(G){var c=G.getPlayerState();_.v("kevlar_player_check_ad_state_on_stop")&&(c=G.getPlayerState(G.getPresentingPlayerType()));c!=5&&G.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(G,c,I){I=I===void 0?!1:I;var R=this,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1)return c||(c=R.hostElement),Z=R.useUnifiedPlayer_()?!!R.mainAppPlayer_:!!R.initPlayerPromise_,Z?O.yield(R.getPlayerPromise(),2):(I?G.insertBefore(c,G.firstChild):G.appendChild(c),O.return());K=O.yieldResult;m=K.getPlayerState(K.getPresentingPlayerType());a=!1;if(m==-1||m==1||m==3)a=!0;I?G.insertBefore(c,G.firstChild):G.appendChild(c);a&&K.playVideo();K.setSize(NaN,NaN);_.Vp(O)})},
watchNextDataChanged_:function(G){var c=this;G&&(this.useUnifiedPlayer_()&&_.v("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&iwA(this.mainAppPlayer_,G):this.getPlayerPromise().then(function(I){I.updateVideoData(c.computeWatchNextPlayerVars_(G))}))},
computeWatchNextPlayerVars_:function(G){if(this.useUnifiedPlayer_()&&_.v("kevlar_unified_player_update_watch_next_killswitch"))m7(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:G}},
maybeSendAbandonmentPing_:function(){var G=this.getPlayer();G&&G.getPlayerState()!=5&&G.getPlayerState()!=0&&G.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var G=_.H1("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(G=Object.assign({},G),G.rootElementId=this.playerId);G.serializedExperimentIds&&G.serializedExperimentFlags||_.Ck(Error("xh"));return G},
hasWebPlayerContextConfig_:function(){return!!_.H1("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(G){this.useUnifiedPlayer_()?m7(!1,"Invalid method call in kevlar_unified_player."):_.qC(G,this.hostElement)},
useUnifiedPlayer_:function(){var G=_.v("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.v("kevlar_unified_player")||G}}];var t$V={};t$V.YtPlaylistPanelBehavior=[_.X.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(G){G=G.detail;if(G.actions.loop!=void 0||G.actions["yt-icons:loop"]!=void 0)this.loopOn=G.actions.loop||G.actions["yt-icons:loop"];if(G.actions.shuffle!=void 0||G.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=G.actions.shuffle||G.actions["yt-icons:shuffle"]},
setMenuData_:function(G){if(!G||!G.playlistButtons||G.isInfinite)return null;for(var c=G.playlistButtons.menuRenderer.topLevelButtons,I=c.length,R=0;R<I;R++)if(c[R].toggleButtonRenderer){var Z=c[R].toggleButtonRenderer;Z.defaultIcon.iconType=="LOOP"&&this.loopOn?Z.isToggled=this.loopOn:Z.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Z.isToggled=this.shuffleOn)}return G.playlistButtons}}];_.EX={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(G,c,I){var R=this.getClickTarget_(c);if(R&&this.isClickAllowed_(R)){c.preventDefault();G=(0,_.rx.unsafeClone)(G);var Z=this.getContainerBoundingRect();c=this.getRelativeClickXy_(c,Z);this.expandEndpointUrlMacros_(G,{NX:c[0],NY:c[1],NB:R.code});I&&this.truncateWebCommendMetadataUrl_(G);_.Xl(this.hostElement,"yt-navigate",{endpoint:G})}},
getClickTarget_:function(G){if(!this.clickTargetMap)return null;G=_.CE(G)||[];G=_.Q(G);for(var c=G.next();!c.done;c=G.next()){c=c.value;if(c===_.Q1(this.hostElement).querySelector("#menu"))break;if(c=this.clickTargetMap.get(c.id))return c}return null},
getRelativeClickXy_:function(G,c){var I=Math.round(G.detail.x-c.left);G=Math.round(G.detail.y-c.top);return I<0||G<0?[null,null]:[I,G]},
getContainerBoundingRect:function(){return _.Q1(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(G,c){for(var I=_.Q(G.loggingUrls||[]),R=I.next();!R.done;R=I.next())R=R.value,R.baseUrl&&(R.baseUrl=vsO(R.baseUrl,c));G.urlEndpoint&&G.urlEndpoint.url&&(G.urlEndpoint.url=vsO(G.urlEndpoint.url,c));G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url&&(G.commandMetadata.webCommandMetadata.url=vsO(G.commandMetadata.webCommandMetadata.url,c))},
truncateWebCommendMetadataUrl_:function(G){if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url){var c=G.commandMetadata.webCommandMetadata.url,I=c.indexOf("&pp=");if(I>0){var R=c.indexOf("&",I+1);G.commandMetadata.webCommandMetadata.url=R>I&&R<c.length?c.slice(0,I)+c.slice(R):c.slice(0,I)}}},
configureClickTargets:function(G,c,I){this.containerId=G;this.clickTargetMap=new Map;G=_.Q(c);for(c=G.next();!c.done;c=G.next())if(c=c.value,c.location){var R=I.get(c.location);R&&(_.as(_.Q1(this.hostElement).querySelector("#"+R),"yt-simple-endpoint",this.isClickAllowed_(c)),this.clickTargetMap.set(R,c))}},
isClickAllowed_:function(G){return G.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Ju={};
_.Ju.YtLazyListBehavior=[_.$r.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var G=(this.constructor.generatedFrom||this).observers;G||(G=[]);G.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
G}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var G=this.renderElementsOutsideVisibleArea_;G&&(xuk(G,4),G.processSignal())},
deepLazyListObserver_:function(G){var c=this;if(G){var I=G.value||[];if(this.itemsPath==G.path){var R=this.nonDeferredItemCount;G=0;R>-1&&I.length>R&&(G=_.H1("REMAINING_DOVA_DEFERRED_CHUNKS",-1));G>0?(R>0&&(R=I.slice(0,R),this.setInitialItemsOnDataChanged(R)),(R=this.renderElementsOutsideVisibleArea_)?R.cancel():(R=this.renderElementsOutsideVisibleArea_=new _.px(2,"eocs"),_.uPb(window,"scroll",function(){return c.renderDeferredElements()})),_.Mi(R,function(){c.setInitialItemsOnDataChanged(I)}),_.Ch("REMAINING_DOVA_DEFERRED_CHUNKS",
G-1)):this.setInitialItemsOnDataChanged(I)}else if(this.itemsPath+".splices"==G.path)this.onItemsUpdated_(I);
else R="shownItems"+G.path.substr(this.itemsPath.length),this.useSignals&&R==="shownItems.length"||this.notifyPath(R,G.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(G){G&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(G),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(G){G=G.indexSplices;for(var c=0,I=G.length;c<I;c++){var R=G[c];if(R.index<this.shownCount&&(R.removed&&this.splice("shownItems",R.index,R.removed.length),R.addedCount)){var Z=R.object.slice(R.index,R.index+R.addedCount);R=["shownItems",R.index,0];R.push.apply(R,Z);this.splice.apply(this,R)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(G){this.cancelPendingTasks_();G||(G=[]);this.items_=G;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.XG("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.O$(this,this.tryRenderChunk_)))},
fillRange_:function(G,c){this.canShowMore&&this.items_&&(G=this.items_.slice(G,c),G.unshift("shownItems"),this.push.apply(this,G),this.shownCount=c,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var G=this;this.canShowMore&&_.tc(this,"renderChunk",function(){G.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.XG("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.SR(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var G=this.renderElementsOutsideVisibleArea_;G&&(G.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var G=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(G-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=G;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(G){return Math.ceil(1E3/G)},
onCanShowMoreUpdated_:function(G){this.data&&this.items_!==null&&(G?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(G){!this.shouldUseTaskManager()&&this.data&&(!G&&this.canShowMore?(_.scO(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):G&&this.partiallyRenderedItems_.has(this.items_)&&(_.v("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var fI;_.WT={};
fI=function(){var G=_.D4.apply(this,arguments)||this;G.atStart=!0;G.atEnd=!0;G.startIndex=0;G.endIndex=0;G.scrollCount=0;G.initialStartIndex=0;G.disableScrollEventListener=!1;G.useFloorScrolling=!1;G.isSearch=!1;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.disableWheelScroll=!1;G.centerListItems=!1;G.offset=0;G.minComponentWidth=0;G.marginWidthRight=0;G.marginWidthLeft=0;G.setButtonsStateRequested=!1;G.itemsVisibilityObserver=null;G.fullyVisibleItemsIndices=[];G.JSC$14669_onWheelScroll=function(c){if(G.isSearch&&
!G.disableWheelScroll&&_.v("desktop_enable_dmpanel_wheel_scroll")){var I=c.shiftKey?Math.abs(c.deltaY)>Math.abs(c.deltaX)?c.deltaY:c.deltaX:c.deltaX;I!==0&&(c.preventDefault(),G.ytLazyListBehavior.fillRemainingListItems(),G.offset+=I,is(G),G.reposition_())}};
G.onPointerDown=function(c){h5B(G)&&(G.dragMouseStart=c.clientX,G.dragOffsetStart=G.offset,G.dragging=!0)};
G.onPointerMove=function(c){h5B(G)&&G.dragging&&(G.ytLazyListBehavior.fillRemainingListItems(),G.offset=G.dragOffsetStart-(c.clientX-G.dragMouseStart),is(G),G.reposition_())};
G.onPointerUp=function(){h5B(G)&&(G.dragging=!1)};
return G};
_.u(fI,_.D4);var dr9=function(G){var c=_.Q1(G.hostElement).querySelector("#items").children;if(!c)return 0;var I=0;G=_.Q(G.fullyVisibleItemsIndices);for(var R=G.next();!R.done;R=G.next())I+=c[R.value].clientWidth;return I},h5B=function(G){return G.isSearch&&_.v("desktop_enable_dmpanel_click_drag_scroll")};
fI.prototype.created=function(){this.cachedViewportWidth=_.H1("initialInnerWidth")||window.innerWidth;this.JSC$14669_cachedViewportHeight=_.H1("initialInnerHeight")||window.innerHeight;_.H1("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Ch("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
fI.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.v("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();CF0(this)};
fI.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.v("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var G;(G=this.itemsVisibilityObserver)==null||G.disconnect();this.itemsVisibilityObserver=null;var c;(c=this.itemsObserver)==null||c.disconnect()};
var CF0=function(G){var c=_.Q1(G.hostElement).querySelector("#scroll-container");if(c){if(!G.itemsVisibilityObserver){var I=window.getComputedStyle(c).marginRight;G.itemsVisibilityObserver=new IntersectionObserver(function(R){HwV(G,R)},{root:c,
rootMargin:I,threshold:.98})}if(c=_.Q1(G.hostElement).querySelector("#items"))G.itemsObserver=new UCN(c,function(R){XPe(G,R)})}},XPe=function(G,c){y1T(G)&&(Array.from(c.addedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.observe(I)}),Array.from(c.removedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.unobserve(I)}))},
HwV=function(G,c){var I=new Set(G.fullyVisibleItemsIndices);
c=_.Q(c);for(var R=c.next();!R.done;R=c.next()){R=R.value;var Z=R.target.parentElement;Z?(Z=Array.from(Z.children).indexOf(R.target),R.isIntersecting?I.add(Z):I.has(Z)&&I.delete(Z)):_.Ck(new _.iW("Parent element not found",R.target.nodeName))}G.fullyVisibleItemsIndices=Array.from(I).sort(function(K,m){return K-m});
I.size===0?_.Ck(new _.iW("No visible entries in horizontal list")):(G.startIndex=G.fullyVisibleItemsIndices[0],G.endIndex=G.fullyVisibleItemsIndices[G.fullyVisibleItemsIndices.length-1])},y1T=function(G){G.data?G=(G=G.data)&&G.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===G.itemSizeConstraint:!1:G=!1;
return G};
_.P=fI.prototype;_.P.addScrollEventListeners=function(){var G=_.Q1(this.hostElement).querySelector("#scroll-container");G.style.touchAction="pan-y";G.addEventListener("wheel",this.JSC$14669_onWheelScroll);G.addEventListener("pointerdown",this.onPointerDown);G.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.P.removeScrollEventListeners=function(){var G=_.Q1(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.JSC$14669_onWheelScroll);G.removeEventListener("pointerdown",this.onPointerDown);G.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.P.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.O$(this,this.setStartIndex,[this.initialStartIndex])};
_.P.reposition_=function(){var G=_.H1("HTML_DIR")=="rtl"?"":"-",c=_.Q1(this.hostElement).querySelector("#items");c&&(c.style.transform="translateX("+G+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.P.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.O$(this,this.setButtonsState_))};
_.P.setButtonsState_=function(){this.setButtonsStateRequested=!1;var G=_.Q1(this.hostElement).querySelector("#items").firstElementChild;if(G){this.minComponentWidth||(this.minComponentWidth=gQK(this,G));G=_.Q1(this.hostElement).querySelector("#scroll-container").clientWidth;var c=_.Q1(this.hostElement).querySelector("#items");c=_.v("kevlar_horizontal_list_scroll_width_killswitch")?c.clientWidth:c.scrollWidth;var I=this.get(this.ytLazyListBehavior.itemsPath,this);if(I){var R=Math.round(G/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+R,I.length)-1)}this.ytLazyListBehavior.canShowMore?c+this.minComponentWidth>=this.offset+G&&(this.atEnd=!1):this.atEnd=this.offset+G>=c-20?!0:!1;this.atStart=this.offset<=20}};
_.P.setStartIndex=function(G){if(!this.minComponentWidth){var c=_.Q1(this.hostElement).querySelector("#items").firstElementChild;if(!c)return;this.minComponentWidth=gQK(this,c)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*G;is(this);this.reposition_()};
_.P.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Jk();var G=_.Q1(this.hostElement).querySelector("#scroll-container").clientWidth;_.v("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=gQK(this,_.Q1(this.hostElement).querySelector("#items").firstElementChild));G=this.useFloorScrolling?Math.floor(G/this.minComponentWidth)||1:Math.round(G/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Yai(this);this.offset+=y1T(this)?
dr9(this):G*this.minComponentWidth;is(this);this.reposition_();this.scrollCount++};
_.P.prevClick_=function(){var G=_.Q1(this.hostElement).querySelector("#scroll-container").clientWidth;G=this.useFloorScrolling?Math.floor(G/this.minComponentWidth)||1:Math.round(G/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=y1T(this)?dr9(this):this.minComponentWidth*this.scrollCount-1):this.offset-=y1T(this)?dr9(this):G*this.minComponentWidth;this.centerListItems&&Yai(this);is(this);this.reposition_()};
_.P.onIronResize_=function(){this.resizeSupportEnabled&&_.O$(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.P.onItemsTransitionEnd_=function(G){_.HH(G)===_.Q1(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.P.onChildElementFocus_=function(G){G=G.target.closest("#items > *");var c=_.Q1(this.hostElement).querySelector("#scroll-container");if(c.contains(G)){if(_.v("web_horizontal_list_behavior_focus_killswitch"))if(G.offsetLeft<this.offset)this.offset=Math.abs(G.offsetLeft)<G.clientWidth?0:G.offsetLeft;else if(G.offsetLeft+G.clientWidth>this.offset+c.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Jk(),this.offset=G.offsetLeft+G.clientWidth-c.clientWidth;else return;else{var I=_.Q1(this.hostElement).querySelector("#items"),
R=_.H1("HTML_DIR")==="rtl",Z=R?I.clientWidth-G.offsetLeft:G.offsetLeft;I=R?I.clientWidth-(G.offsetLeft+G.clientWidth):G.offsetLeft+G.clientWidth;var K=R?Z>this.offset+c.clientWidth:Z<this.offset,m=R?I<this.offset:I>this.offset+c.clientWidth,a=R?K:m;if(R?m:K)c=R?I:Z,this.offset=Math.abs(c)<G.clientWidth?0:c;else if(a)this.ytLazyListBehavior.fillRemainingListItems(),_.Jk(),this.offset=(R?Z:I)-c.clientWidth;else return}is(this);this.reposition_()}};
_.P.observeShownItems_=function(){this.reset()};
_.P.checkComponentWidthResize=function(){var G=_.Q1(this.hostElement).querySelector("#items").firstElementChild;G&&(G=gQK(this,G),this.centerListItems||G!==this.minComponentWidth)&&(this.minComponentWidth=G,this.offset=G*this.scrollCount,this.centerListItems&&Yai(this),is(this),this.reposition_())};
var gQK=function(G,c){var I=window.getComputedStyle(c).marginRight;I=Math.floor(Number(I.replace("px","")));var R=window.getComputedStyle(c).marginLeft;R=Math.floor(Number(R.replace("px","")));G.centerListItems&&!G.marginWidthRight&&(G.marginWidthRight=I,G.marginWidthLeft=R);return G.resizeSupportEnabled?c.getBoundingClientRect().width+I:c.offsetWidth+I},is=function(G){var c=_.Q1(G.hostElement).querySelector("#scroll-container").clientWidth,I=_.Q1(G.hostElement).querySelector("#items").clientWidth;
G.offset<0?G.offset=0:G.offset+c>=I&&(G.offset=I-c)},Yai=function(G){G.offset-=(_.Q1(G.hostElement).querySelector("#scroll-container").clientWidth+G.marginWidthRight-G.minComponentWidth)/2-G.marginWidthLeft};
_.Nh.Object.defineProperties(fI.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var G=_.H1("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(G==-1)G=this.JSC$14669_cachedViewportHeight,G=G>1320?5:G>1020?4:G>730?3:G>430?2:1;else if(G==0)return 0;_.Ch("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",G-1);G=_.H1("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(G>-1)return G;G=this.cachedViewportWidth;G=G>1600?6:G>1400?5:G>1300?4:G>1090?5:G>870?4:G>660?3:2;_.Ch("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
G);return G},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.v("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
fI.prototype.observeShownItems_=fI.prototype.observeShownItems_;fI.prototype.onChildElementFocus_=fI.prototype.onChildElementFocus_;fI.prototype.onItemsTransitionEnd_=fI.prototype.onItemsTransitionEnd_;fI.prototype.onIronResize_=fI.prototype.onIronResize_;fI.prototype.prevClick_=fI.prototype.prevClick_;fI.prototype.nextClick_=fI.prototype.nextClick_;fI.prototype.setButtonsState_=fI.prototype.setButtonsState_;fI.prototype.requestButtonsStateUpdate_=fI.prototype.requestButtonsStateUpdate_;
fI.prototype.reposition_=fI.prototype.reposition_;fI.prototype.reset=fI.prototype.reset;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],fI.prototype,"ytLazyListBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],fI.prototype,"atStart",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],fI.prototype,"atEnd",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"startIndex",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"endIndex",void 0);_.r([_.E({value:6}),_.h("design:type",Number)],fI.prototype,"initialCount",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"scrollCount",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"initialStartIndex",void 0);
_.r([_.E(),_.h("design:type",Object)],fI.prototype,"disableScrollEventListener",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"supportComponentResize",void 0);_.r([_.E({value:function(){var G=this;return function(){return G.prevClick_()}}}),
_.h("design:type",Function)],fI.prototype,"boundPrevClick",void 0);_.r([_.E({value:function(){var G=this;return function(){return G.nextClick_()}}}),
_.h("design:type",Function)],fI.prototype,"boundNextClick",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"useFloorScrolling",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"isSearch",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"dragging",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"dragMouseStart",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"dragOffsetStart",void 0);
_.r([_.E(),_.h("design:type",Object)],fI.prototype,"disableWheelScroll",void 0);_.r([_.E(),_.h("design:type",Object)],fI.prototype,"centerListItems",void 0);_.r([_.qY("iron-resize"),_.wD("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fI.prototype,"onIronResize_",null);_.r([_.qY("transitionend"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],fI.prototype,"onItemsTransitionEnd_",null);
_.r([_.qY("focusin"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],fI.prototype,"onChildElementFocus_",null);_.r([_.wD("shownItems"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fI.prototype,"observeShownItems_",null);_.r([_.Um()],fI);_.WT.YtdHorizontalListBehavior=[];_.WT.YtdHorizontalListBehavior.push(_.Zu,_.X.YtRendererBehavior,_.Ju.YtLazyListBehavior,_.UX.YtdGuideStateAwareBehavior,fI.prototype);var Tfq=["APP_STATE","PI"];var BT,rQ=function(G){this.hostElement=G},jH=function(G,c){if(c&&(l8A(c.viewableCommands)||l8A(c.endOfSessionCommands))){var I=wsU(c.viewableCommands);
c=wsU(c.endOfSessionCommands);if(!BT){var R=_.DH("custom_active_view_tos_timeout_ms");BT=R>0&&R!==36E5?new iab(qlB(),R):new iab(qlB())}BsA(BT,G.hostElement);rob(BT,G.hostElement,I,c)}},xw=function(G){BT&&BsA(BT,G.hostElement)};var GSK=_.I3(["about:blank"]),cnK={pushState:window.history.pushState,replaceState:window.history.replaceState};var tu=function(G){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=G;this.internalPushState=G.pushState.bind(G);this.internalReplaceState=G.replaceState.bind(G)};
tu.prototype.init=function(){this.initialized=!0};
tu.prototype.pushState=function(G,c){this.initialized||this.init();this.internalPushState&&this.internalPushState(G,"",c)};
tu.prototype.replaceState=function(G,c){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(G,"",c)};
tu.prototype.getState=function(){return this.history&&this.history.state};var IUK=function(G){var c=function(){var I=G.apply(this,arguments)||this;I.boundHistoryPushState=!1;I.boundHistoryReplaceState=!1;I.debugInfo={};return I};
_.u(c,G);c.prototype.init=function(){var I=_.$9("IFRAME");_.IE(I,_.D3(GSK));I.sandbox="allow-same-origin";I.style.display="none";this.iframe=I;document.body.appendChild(I);this.bindHistoryStateFunctions();G.prototype.init.call(this)};
c.prototype.bindHistoryStateFunctions=function(){var I=this,R=[],Z;this.iframe&&((Z=this.iframe.contentWindow)==null?0:Z.history)&&(Z=this.iframe.contentWindow.history)&&(R.push(Z),Object.getPrototypeOf(Z)&&R.push(Object.getPrototypeOf(Z)));window.history&&R.push(window.history);Z=window.history;Object.getPrototypeOf(Z)&&R.push(Object.getPrototypeOf(Z));R.push(cnK);Z=function(m){for(var a=null,O=0;O<R.length;O++){var N=R[O][m];if(typeof N==="function"){a=N.bind(window.history);I.debugInfo[m]=O;break}}return a};
if(!this.boundHistoryReplaceState){var K=Z("replaceState");K&&(this.internalReplaceState=K,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Z=Z("pushState"))&&(this.internalPushState=Z,this.boundHistoryPushState=!0)};
return c}(tu),RxB=function(){return IUK.call(this,window.history)||this};
_.u(RxB,IUK);RxB.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var hu=function(G){this.browserHistory=G;this.initialized=!1};
hu.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
hu.prototype.pushState=function(G,c){this.initialized||this.init();this.browserHistory.pushState(G,c)};
hu.prototype.replaceState=function(G,c){this.initialized||this.init();this.browserHistory.replaceState(G,c)};
hu.prototype.handlePopstate=function(G){return G.state};_.Z50=function(G,c,I,R,Z){this.endpoint=G;this.forward=c;this.historyEntry=I;this.JSC$30933_savedComponentState=R;this.legacyBorder=Z===void 0?!1:Z};var Kv2=function(G,c){this.rootData=G;this.scrollTop=c};_.dQ=new _.De("EPHEMERAL_STORE_TOKEN");_.CI=function(G){this.data=Object.assign({},G);var c;(c=this.data.innertubeResponse)==null||delete c.frameworkUpdates};
_.CI.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Fa)()};
_.mG=function(G){return Object.assign({},G.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var PNi=function(){this.maxSize=100;this.timeToDataCache=new Map};
PNi.prototype.get=function(G){var c=this.timeToDataCache.get(G);c&&(this.timeToDataCache.delete(G),this.timeToDataCache.set(G,c));if(c&&c.rootData&&(_.v("web_use_response_store_for_history_cache")||_.v("mweb_use_new_history_manager"))){var I=_.wH().resolve(_.dQ),R=Qo9(c),Z=!!R;if(R){if(R.content){var K=HT(I,R.content);Z&&K?c.rootData.response=_.mG(K):Z=!1}R.player&&(K=HT(I,R.player),Z&&K?c.rootData.playerResponse=_.mG(K):Z=!1);R.reelSequence&&(I=HT(I,R.reelSequence),Z&&I?c.rootData.reelWatchSequenceResponse=
_.mG(I):Z=!1)}Z||(this.timeToDataCache.delete(G),c=void 0)}return c};
PNi.prototype.set=function(G,c){if(c.rootData&&(_.v("web_use_response_store_for_history_cache")||_.v("mweb_use_new_history_manager"))){var I=Qo9(c),R=Object.assign({},c.rootData);I&&(I.content&&c.rootData.response&&(mG0(this,I.content,c.rootData.response),R.response=null),I.player&&c.rootData.playerResponse&&(mG0(this,I.player,c.rootData.playerResponse),R.playerResponse=null),I.reelSequence&&c.rootData.reelWatchSequenceResponse&&(mG0(this,I.reelSequence,c.rootData.reelWatchSequenceResponse),R.reelWatchSequenceResponse=
null));c=new Kv2(R,c.scrollTop)}this.timeToDataCache.has(G)?this.timeToDataCache.delete(G):this.timeToDataCache.size>=this.maxSize&&(I=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(I.value));this.maxSize!==0&&this.timeToDataCache.set(G,c)};
PNi.prototype.clear=function(){this.timeToDataCache.clear()};
var Qo9=function(G){var c=_.wH().resolve(_.qR(_.MB)),I;if((I=G.rootData)==null?0:I.endpoint)return c==null?void 0:$Pb(c,G.rootData.endpoint);var R;_.Ck(new _.iW("History snapshot response data does not contain endpoint",(R=G.rootData)==null?void 0:R.url));return null},mG0=function(G,c,I){if(G.maxSize>0){var R;
(G=(R=I.responseContext)==null?void 0:R.maxAgeSeconds)&&Number(G)>0&&(R=_.wH().resolve(_.dQ),I=Nj(I,G),R.put(c,new _.CI(I)))}};var aU9=function(G,c,I){this.endpoint=c;this.JSC$30939_savedComponentState=I===void 0?null:I;this.entryTime=G};var vk0=1;var X$=function(G){var c=function(){var I=G.apply(this,[].concat(_.jn(_.Hy.apply(0,arguments))))||this;I.historyEntryTime=0;I.historySnapshotCache=I.createHistoryCache();return I};
_.u(c,G);c.prototype.createHistoryCache=function(){return new PNi};
c.prototype.saveAndReplace=function(I,R,Z){var K=window.location.href;var m=m===void 0?{}:m;var a=(a=this.browserHistory.getState())&&a.entryTime?a.entryTime:DTp();I=this.createNewHistoryEntry(I,m,a);this.saveSnapshot(a,R,Z);this.replaceState(I,K||window.location.href)};
c.prototype.saveAndPush=function(I,R,Z,K,m){m=m===void 0?{}:m;this.saveSnapshot(this.historyEntryTime,Z,K);Z=this.historySnapshotCache;K=this.historyEntryTime;var a=Z.timeToDataCache.keys();a=_.Q(a);for(var O=a.next();!O.done;O=a.next())O=O.value,O>K&&Z.timeToDataCache.delete(O);R=this.createNewHistoryEntry(R,m);this.pushState(R,I)};
c.prototype.saveSnapshot=function(I,R,Z){this.historySnapshotCache.set(I,new Kv2(R,Z))};
c.prototype.createNewHistoryEntry=function(I,R,Z){Z=Z===void 0?DTp():Z;return new aU9(Z,I,R)};
c.prototype.handlePopstate=function(I){var R=G.prototype.handlePopstate.call(this,I),Z=null,K=null,m=!1,a=null;R&&R.entryTime&&(a=this.historySnapshotCache.get(R.entryTime)||null,m=R.entryTime>this.historyEntryTime,this.historyEntryTime=R.entryTime,Z=R.endpoint,K=R.JSC$30939_savedComponentState);this.handleHistoryCacheLoad(new _.Z50(Z,m,a,K),I);return R};
c.prototype.pushState=function(I,R){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);G.prototype.pushState.call(this,I,R)};
c.prototype.replaceState=function(I,R){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);G.prototype.replaceState.call(this,I,R)};
c.prototype.handleHistoryCacheLoad=function(){};
return c}(hu),TpV=function(){var G=X$.call(this,new RxB)||this;
G.dispatchElement=null;G.entryIndex=0;return G};
_.u(TpV,X$);_.P=TpV.prototype;_.P.init=function(G){G=G===void 0?!0:G;X$.prototype.init.call(this);this.initialized||(G||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.P.handlePopstate=function(G){var c=null;G.state||(c="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return X$.prototype.handlePopstate.call(this,G);var I=new CustomEvent("yt-history-pop",{cancelable:!0});_.ym(this.dispatchElement,"yt-history-pop",[I,{errorMsg:c}]);_.gq(this.dispatchElement,"yt-close-all-popups-action");if(!I.defaultPrevented){I=_.wH().resolve(_.I9);c=I.getCurrentData();var R=I.getCurrentPage();I=0;R?(R=_.ym(this.dispatchElement,"yt-get-page-offset",
[R]),R.length>0&&(I=R[0])):_.Ck(new _.iW("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:c?c.page:"undefined"}));c&&(c.csn=_.k0());this.saveSnapshot(this.historyEntryTime,c,I)}return X$.prototype.handlePopstate.call(this,G)};
_.P.handleHistoryCacheLoad=function(G,c){G.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.Q(_.gq(this.dispatchElement,"yt-history-will-navigate",[c])).next().value||_.ym(this.dispatchElement,"yt-history-load",[c,G]))};
_.P.pushState=function(G,c){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var I=new _.iW("history.pushState is not a function",this.getDebugString());_.hg(I)}X$.prototype.pushState.call(this,G,c)};
_.P.replaceState=function(G,c){if(!this.browserHistory.boundHistoryReplaceState){var I=new _.iW("history.replaceState is not a function",this.getDebugString());_.hg(I)}X$.prototype.replaceState.call(this,G,c)};
_.P.saveAndPush=function(G,c,I,R,Z){Z=Z===void 0?{}:Z;I&&(I.csn=_.k0());X$.prototype.saveAndPush.call(this,G,c,I,R,Z)};
_.P.getDebugString=function(){var G=[];this.initialized&&G.push("i");this.browserHistory.boundHistoryReplaceState&&G.push("bhr");this.browserHistory.boundHistoryPushState&&G.push("bhs");"replaceState"in this.browserHistory.debugInfo&&G.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&G.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&G.push("ei:"+String(this.entryIndex));return G.join(",")};
_.y_=function(G,c){G.init(!0);var I=G.browserHistory.getState();G.replaceState(I,eR(c))};
TpV.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.gQ=new _.De("DESKTOP_HISTORY_MANAGER_TOKEN");var O5N=[10,20,30,40,50,60],Yw=function(){this.currentPartitionIndex=0},ex2=function(G){h4B({mainAppWeb:_.xa(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},NpB=function(G){h4B({mainAppWeb:_.xa(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},lUe=function(G){return G.currentPartitionIndex>=0&&G.currentPartitionIndex<O5N.length?O5N[G.currentPartitionIndex]:-1},qwN=function(G){return G.currentPartitionIndex>0&&G.currentPartitionIndex-1<O5N.length?O5N[G.currentPartitionIndex-1]:-1};
Yw.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var G=qwN(this);G>0&&NpB(G);G=lUe(this);G>0&&ex2(G);wiK(this)}};
var wiK=function(G){var c=lUe(G);if(c>0){var I=qwN(G);I<0&&(I=0);G.intervalId=_.dJ.addJob(function(){var R=qwN(G);R>0&&NpB(R);R=lUe(G);R>0&&ex2(R);wiK(G)},3,(c-I)*6E4);
G.currentPartitionIndex+=1}else G.currentPartitionIndex=-1};var Fv2=function(G){of.call(this,G,132);this.isDocument=G===document.documentElement};
_.u(Fv2,of);Fv2.prototype.calculateScrollDelta=function(G,c,I){var R=0;G<c?R=G<c-100?-48:-8:G>c+I&&(R=G>c+I+100?48:8);return R};
Fv2.prototype.JSC$11561_onMouseMove=function(G){this.isDocument||(G.clientX=G.event_.pageX,G.clientY=G.event_.pageY);of.prototype.JSC$11561_onMouseMove.call(this,G)};_.nEK=function(G,c){var I=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14723_dragListGroup=null;this.onDraggerCreated=function(R){var Z=R.JSC$11557_dragger;Z.scrollTarget_=I.scrollElement;R=R.draggerEl;Z&&R.menuOpened&&Z.setEnabled(!1)};
this.onDragStart=function(R){var Z=R.draggerEl;R=R.currDragItem;var K=Object.assign({},R==null?void 0:R.data);K.trackingParams=void 0;Z.data=K;Z.style.position="absolute";Z.style.width=(R==null?void 0:R.clientWidth)+"px";Z.style.zIndex="2030";Z.onDrag&&Z.onDrag();R=_.dx(Z);(K=R.querySelector("ytd-app"))?_.Q1(K).appendChild(Z):R.body.appendChild(Z);I.dragScrollSupport=new Fv2(I.scrollElement);I.dragScrollSupport.horizontalScrolling_=!1;Z=I.dragScrollSupport;Z.constrainScroll_=!!Z.margin_&&!1};
this.onDrop=function(R){I.handleDrop(R);I.dragScrollSupport&&(_.TB(I.dragScrollSupport),I.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(I.JSC$14723_dragListGroup){var R=I.JSC$14723_dragListGroup;dxk(R,R.currDragItem_)}};
this.handleDrop=c};
_.Gl=function(G){G.JSC$14723_dragListGroup&&(_.BL(G.JSC$14723_dragListGroup,Wq2,G.onDragStart),_.BL(G.JSC$14723_dragListGroup,r0K,G.onDragStart),G.JSC$14723_dragListGroup.dispose(),G.JSC$14723_dragListGroup=null);G.dragScrollSupport&&(_.TB(G.dragScrollSupport),G.dragScrollSupport=null);G.scrollElement.removeEventListener("scroll",G.onReorderableScroll)};
_.vET=function(G,c,I,R){R=R===void 0?"":R;_.Gl(G);I&&(G.scrollElement=I);G.JSC$14723_dragListGroup=new OY;G.JSC$14723_dragListGroup.hysteresisDistance_=2;xxB(G.JSC$14723_dragListGroup,c);G.JSC$14723_dragListGroup.draggerElClasses_=Nf("dragging").split(" ");R&&tup(G.JSC$14723_dragListGroup,function(Z){var K=Z||document,m=null;K.getElementsByClassName?m=K.getElementsByClassName(R)[0]:m=nMK("*",R,Z);return m||Z});
_.Ld(G.JSC$14723_dragListGroup,E5i,G.onDraggerCreated);_.Ld(G.JSC$14723_dragListGroup,Wq2,G.onDragStart);_.Ld(G.JSC$14723_dragListGroup,r0K,G.onDrop);G.JSC$14723_dragListGroup.init();G.scrollElement.addEventListener("scroll",G.onReorderableScroll,{passive:!0})};
_.Nh.Object.defineProperties(_.nEK.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var DGA=function(){this.skipNextNavigation=!1},oEe=function(G,c,I){if(!c)return!1;
if(G.skipNextNavigation)return G.skipNextNavigation=!1;if(_.D(I,_.ID))return!1;var R,Z,K;if((R=_.D(I,_.qD))==null?0:(Z=R.browseEndpointContextSupportedConfigs)==null?0:(K=Z.browseEndpointContextMainConfig)==null?0:K.skipConfirmation)return!1;var m;return((m=_.D(c.commandMetadata,_.Pd))==null?void 0:m.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
DGA.prototype.showConfirmationDialog=function(G,c){this.navigateParams=c;this.customConfirmationCommand?_.wH().resolve(_.n4).resolveCommand(this.customConfirmationCommand):(c={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Cp(_.mJ("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Cp(_.mJ("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Cp(_.mJ("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Cp(_.mJ("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.RD.getInstance().triggerAction("yt-open-popup-action",c,G))};
DGA.prototype.cancelPendingNavigation=function(){var G;((G=this.navigateParams)==null?void 0:G.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var UG0=function(){},b5N=function(G,c,I,R,Z,K,m){I=I===void 0?{}:I;
m=m===void 0?{}:m;var a=_.wH().resolve(_.MB),O,N=(O=_.D(c,_.ID))==null?void 0:O.url;return N?mvO(a,N,I,window.location.href,function(q,w){uH9(G,q,w,!1,!0,I,K,R)},function(){return!1}):X0(a,c,I,window.location.href,FN(c),function(q,w){uH9(G,q,w,!1,!0,I,K,R)},Z,m)},uH9=function(G,c,I,R,Z,K,m,a){if(!G.JSC$14738_chunkHandler)if(I.page==="learning_journey_watch"&&_.v("web_enable_canvas_on_learning_journey")){var O=!_.D(a,_.qD);
Z=Z||R;if(O)if(Z){if(_.v("kevlar_continue_playback_without_player_response")){var N;var q=(N=_.D(a,_.fR))==null?void 0:N.videoId}R={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:R,previousVideoId:q},tempData:K}}else R={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else R={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};G.JSC$14738_chunkHandler=new q80(_.ZA,R,m,O,Z)}else if(I.page==="watch"||I.page==="learning_journey_watch")if(Z||R){if(_.v("kevlar_continue_playback_without_player_response")){var w;
O=(w=_.D(a,_.fR))==null?void 0:w.videoId}G.JSC$14738_chunkHandler=new nRN(_.ZA,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:R,previousVideoId:O},tempData:K},m)}else G.JSC$14738_chunkHandler=new NTN(_.ZA);else I.page==="shorts"&&Z&&!R?G.JSC$14738_chunkHandler=new F09(_.ZA,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:K},m):G.JSC$14738_chunkHandler=new l_0(m);G.JSC$14738_chunkHandler.processChunk({endpoint:c,data:I});return G.JSC$14738_chunkHandler.uS.promise},
kSB=function(G,c,I,R,Z){(I=_.MaK(I))&&uH9(G,c,I,!1,!0,R,void 0,Z)};_.soV=new _.De("NAVIGATION_SERVICE_TOKEN");var Lv9=function(){this.pendingNavigationPromise=null};
_.P=Lv9.prototype;_.P.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.P.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.P.addEventListener=function(){throw Error("yh");};
_.P.dispatchEvent=function(){throw Error("yh");};
_.P.removeEventListener=function(){throw Error("yh");};var AnB=new _.De("APP_ROOT");var UT0=null;var $Gp=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],c$=function(){_.r4.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];SwT(this)};
_.u(c$,_.r4);c$.prototype.verifyUser=function(){var G=SwT(this),c=G.logout;if(!G.sessionChange)return!0;this.dispatchEvent("ytsessionchange");c&&this.dispatchEvent("ytuserinvalid");return!1};
var SwT=function(G){var c=$Gp.map(function(Z){var K;return(K=_.VU.get(Z))!=null?K:""}),I=c.some(function(Z,K){return G.sessionCookies&&G.sessionCookies[K]!==""&&Z===""}),R=c.some(function(Z,K){return G.sessionCookies&&G.sessionCookies[K]!==Z});
G.sessionCookies=c;return{logout:I,sessionChange:R}};
c$.prototype.clearTimeout=function(){this.scheduledJobId&&(_.dJ.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var ALq=new _.De("POSTMESSAGE_TUNNEL_TOKEN");var kNO=["/parent_tools","/file_download","/artist_roster"],psb=[Gi9,c_0,ITN,ZTi,RJ0,YTi,Kz0,Pa2];var Iv=new _.De("NAVIGATION_CONFIRMATION_SERVICE");var pi0="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),MZp=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],Rv=function(G,c){this.pendingNavigationPromise=null;this.JSC$14761_clientRoot=G;this.historyManager=c;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 UG0;this.debugString=G.is;G={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.KY(_.RD.getInstance(),G,this.JSC$14761_clientRoot)},Wve,i5T,fUV,BpN,JnA;
_.u(Rv,Lv9);Rv.prototype.reload=function(){_.Ji(window.location.href)};
var ERA=function(G){G.currentEndpoint&&_.D(G.currentEndpoint,_.vH)?G.reload():G.currentEndpoint&&G.navigate(G.currentEndpoint,!0,void 0,{disableCache:!0})};
Rv.prototype.navigate=function(G,c,I,R,Z,K,m,a){c=c===void 0?!1:c;I=I===void 0?{}:I;R=R===void 0?{}:R;var O=_.wH().resolve(Iv),N;if(!m&&oEe(O,(N=this.currentEndpoint)!=null?N:void 0,G))return O.showConfirmationDialog(this.JSC$14761_clientRoot.parentElement,{endpoint:G,reload:c,params:I,tempData:R,requestType:Z,createScreenConfig:K}),!1;var q=_.kL();_.sO(q,"eocs")||q.parkOrScheduleJob(function(){q.processSignal("eocs")},10,"eor");
ubU();m=FN(G);O=R.autonav==="1";N=_.k0();c$.instance||(c$.instance=new c$);var w=c$.instance.verifyUser(),F;if(_.v("enable_dark_theme_only_on_shorts")){var n=document.documentElement.hasAttribute("dark"),U=_.iu(!0)==="USER_INTERFACE_THEME_DARK";if(m==="shorts"){if(!n)if(_.v("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var k;_.Ji((k=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?void 0:k.url,void 0,void 0,window.top)}}else{var p;_.Ji(_.mb((p=_.D(G==
null?void 0:G.commandMetadata,_.Pd))==null?void 0:p.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.v("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!n){var M;_.Ji(_.mb((M=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?void 0:M.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(U!==n){var z;_.Ji(_.mb((z=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?void 0:z.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(m==="watch"){if(VZe(_.wH().resolve(_.tA),
G)&&(w||_.v("fix_miniplayer_navigation_killswitch")))return!1;_.v("block_all_player_prefetch_requests")||(F=Va2(_.Pe(_.C7),G,O))}else{var t,x=(t=_.D(this.currentEndpoint,_.fR))==null?void 0:t.videoId;x&&_.TI.getInstance().then(function(Wr){Wr&&Wr.set("yt-miniplayer-shown-video-id",x)})}F&&(I.frags=F.missingFragments_.join(","));
k=null;var C;p=(C=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?void 0:C.ignoreNavigation;if(!p)if(_.v("kevlar_command_url")){var H;k=(H=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?void 0:H.url}else k=_.aA0(G,I);if(k&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&k==this.lastNavigationUrl)return _.b8({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Do(pR(),"CANCELLED")}k&&(this.lastNavigationUrl=k);R4f();_.Ch("IS_HOMEPAGE_COLD",
!1);_.Ch("IS_RESULTS_PAGE_COLD",!1);_.Ch("IS_WATCH_PAGE_COLD",!1);G.loggingUrls&&G.loggingUrls.forEach(function(Wr){Wr.baseUrl&&_.Rx(Wr.baseUrl)});
_.EkA(G,K?K.layer:0)&&_.v("kevlar_flush_logs_on_away_navigation")&&_.tg();if(Mpq(G))return!1;laA(m,Z);if(!k)return p||_.Ck(new _.iW("Can't construct url for endpoint",G)),_.Do(pR(),"FAILURE"),!1;_.b2U();C=G&&_.D(G,_.qD)&&_.D(G,_.qD).browseId.startsWith("UC");I=(H=_.v("enable_dark_theme_only_on_shorts")&&m==="shorts"?!1:_.fE()&&document.documentElement.hasAttribute("dark")!==_.WH())?{themeRefresh:1}:{};H&&!_.E2()&&_.iu()==="USER_INTERFACE_THEME_DARK"&&(I.theme="dark");C=H||zxA(k)&&!C&&!_.v("kevlar_disable_url_allowlist");
w||(C=!0);if(C||_.H1("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var g;var QO=(g=window.top)==null?void 0:g.location.href}catch(Wr){var T8;QO=(T8=Wr)==null?void 0:T8.message}_.Ck(new _.iW("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:QO}))}G=_.v("kevlar_redirect_on_window_killswitch")?window.top:window;EU(k);_.Ji(_.mb(k,I),void 0,void 0,G);_.Do(pR(),"ABORTED");return!1}_.v("kevlar_early_popup_close")&&_.ym(this.JSC$14761_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14738_chunkHandler=void 0;var kp;QO=FN((kp=this.currentEndpoint)!=null?kp:void 0);(kp=m==="shorts"&&QO==="shorts")||_.YAi();_.gK(BAr)("nr",void 0);O&&_.b8({webInfo:{navigationReason:"an"}});G.clickTrackingParams&&(R.itct=G.clickTrackingParams,R.csn=N);ICB(R);R.endpoint=JSON.stringify(G);_.v("enable_unknown_lact_fix_on_html5")&&(_.wH().resolve(_.uf),R.lact=_.wj());_.rx.isEmpty(R)||_.x0(k,R);!_.v("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(K=Object.assign({},{layer:0},K,{parentLayer:3}));this.pendingNavigationPromise=K=b5N(this.pageFetcher,G,R,this.currentEndpoint,this.JSC$14761_isNetworkPromiseStale.bind(this),K,a);K=K.then(this.handleNavigateSuccess.bind(this,K,G,F,R),this.handleNavigateFail.bind(this,K,G));_.ck().navigationFinishPromise=K;c={endpoint:G,pageType:m,url:eR(k),reload:!!c,noProgressBar:kp};Z&&(c.type=Z);var FB;Z=_.lu((FB=this.currentEndpoint)!=null?FB:null);FB=_.lu(G!=null?G:null);this.fireEvent("yt-navigate-start",
c);var oq;(oq=_.wH().resolve(_.qR(_.soV)))==null||oq.publish("navigation-start",{sourcePageSubtype:Z,destinationPageSubtype:FB});F&&kSB(this.pageFetcher,G,F,R,this.currentEndpoint);return!0};
Rv.prototype.JSC$14761_isNetworkPromiseStale=function(G){return G!=this.pendingNavigationPromise};
var EE0=function(G,c,I,R,Z){var K=FN(c);c={endpoint:c,pageType:K};Z&&(c.errorMessage=Z);_.Ck(I);c.navigationDoneMs=_.LC("nd");c.navigationErrorReason=R;G.fireEvent("yt-navigate-error",c)};
Rv.prototype.handleNavigateFail=function(G,c,I){var R=void 0;I instanceof _.tq&&(R=I,Q98(I));if(this.JSC$14761_isNetworkPromiseStale(G))return _.$C(R);_.Do(pR(),"FAILURE");EE0(this,c,I,"101");return _.$C(I)};
Rv.prototype.handleNavigateSuccess=function(G,c,I,R,Z){if(this.JSC$14761_isNetworkPromiseStale(G))return _.IP();this.pendingNavigationPromise=null;if(!Z)return c=new _.iW("Missing data in response for navigation endpoint",c),_.$C(c);if(Z.reload)return window.location.reload(!0),_.IP();I&&(G={},_.rx.extend(G,_.MaK(I),Z),Z=G);var K,m;I=(K=Z)==null?void 0:(m=K.timing)==null?void 0:m.responseStart;I!=null&&_.LC("srt",I);_.LC("pdc");var a,O;K=(a=Z)==null?void 0:(O=a.timing)==null?void 0:O.info;K!=null&&
(a=_.gK(_.tMB)(K),_.b8(a));_.Do(pR(),"SUCCESS");JnA(this,c,Z,1,R);return _.IP()};
var zxA=function(G){var c=G;_.v("kevlar_no_redirect_to_classic_2_ks")||(c=(new _.Bq(G)).getPath());if(c==="/"||c==="/red")return!1;var I=!0;pi0.forEach(function(R){G.indexOf(R)===0&&(I=!1)});
MZp.forEach(function(R){var Z=R.url;_.v(R.expFlag)&&G.indexOf(Z)===0&&(I=!1)});
return I};
Rv.prototype.publishPageData=function(G){this.fireEvent("yt-page-data-fetched",{pageData:G})};
Wve=function(G,c,I,R,Z,K){var m=null;c.page!=="watch"&&c.page!=="learning_journey_watch"||R?c.filler||_.ym(G.JSC$14761_clientRoot,"yt-stop-old-player",[c]):m=uH9(G.pageFetcher,Z,c,I,!1,K,void 0,G.currentEndpoint);if(m)return m.then(G.publishPageData.bind(G,c));G.publishPageData(c);return _.IP()};
i5T=function(G,c,I){var R=null;if(!I)return R=new _.iW("Empty data",G.debugString,c);var Z=I.response;if(!Z)return R;var K={endpointType:FN(c)||"unknown"};Z.responseContext?(Z=Z.responseContext.errors)&&(R=new _.iW("Errors in response context",G.debugString,c,Z,K)):R=Z.error||Z.errorMetadata?new _.iW("Errors in response",G.debugString,c,Z.error,Z.errorMetadata,K):new _.iW("responseContext missing",G.debugString,c,Object.keys(Z).sort().join(","),K);var m,a,O,N;if(G=I==null?void 0:(m=I.response)==null?
void 0:(a=m.responseContext)==null?void 0:(O=a.webResponseContextExtensionData)==null?void 0:(N=O.webResponseContextDebugData)==null?void 0:N.debugErrorMessages)for(m=0;m<G.length;m++);return R};
fUV=function(G){var c,I,R,Z;return G==null?void 0:(c=G.response)==null?void 0:(I=c.responseContext)==null?void 0:(R=I.errors)==null?void 0:(Z=R.error)==null?void 0:Z["0"]};
BpN=function(G,c){var I;if(I=c.url&&!c.url.startsWith("/clip"))I=c.url,I=!_.v("webfe_parse_debug_param_in_resolveurl_service")&&G.searchDebugUrlMatcher.test(I)||FJ0(I)?!0:!1;if(I)FJ0(c.url)&&_.QU(window.location.href).themeRefresh?(c=_.tO(c.url,"themeRefresh"),_.y_(G.historyManager,c)):c.url&&!FiO(c.url)&&_.y_(G.historyManager,c.url);else if(c.endpoint){var R,Z,K;(I=(R=c.endpoint)==null?void 0:(Z=R.commandMetadata)==null?void 0:(K=Z.webCommandMetadata)==null?void 0:K.url)&&!FiO(I)&&_.y_(G.historyManager,
I);I&&c.url&&I!=c.url&&!c.url.match("playnext=1")&&new _.iW("Response url mismatch in response data",G.debugString,I,c.url)}};
_.rnK=function(G,c,I,R,Z,K,m,a){K=K===void 0?!1:K;var O=_.wH().resolve(Iv),N;if(!a&&oEe(O,(N=G.currentEndpoint)!=null?N:void 0,c))return O.showConfirmationDialog(G.JSC$14761_clientRoot.parentElement,{endpoint:c,data:I,navigationType:R,tempData:Z,isMiniplayer:K,isForwardHistoryNavigation:m==null?void 0:m.forward}),_.IP();G.pageFetcher.JSC$14738_chunkHandler=void 0;return JnA(G,c,I,R,Z,K)};
JnA=function(G,c,I,R,Z,K){K=K===void 0?!1:K;G.isMiniplayerExpansion=K;var m=R===2;G.currentEndpoint=c;G.numNavigations++;G.numNavigations&&(jUr.navigationCount=G.numNavigations);_.Ch("NUM_NAV",G.numNavigations);var a=i5T(G,c,I);if(a)return EE0(G,c,a,"102",fUV(I)),_.$C(a);var O,N,q,w;a=I.rootVe||(I==null?void 0:(O=I.response)==null?void 0:(N=O.responseContext)==null?void 0:(q=N.webResponseContextExtensionData)==null?void 0:(w=q.ytConfigData)==null?void 0:w.rootVisualElementType);!m&&I&&BpN(G,I);var F,
n;O=I==null?void 0:(F=I.response)==null?void 0:(n=F.responseContext)==null?void 0:n.maxAgeSeconds;if(!m&&!isNaN(O)){var U;_.v("kevlar_use_response_ttl_to_invalidate_cache")?U=(0,_.Fa)()+1E3*O:_.v("kevlar_always_invalidate_cache")&&(U=0);isNaN(U)||(I.expirationTime=U)}_.Pe(_.C7).prefetchCache_.clear();m||I.page!=="watch"||R!==1?R=Wve(G,I,m,!!K,c,Z):(G.publishPageData(I),R=_.IP());Z=R.then(function(){var k=FN(c);k={endpoint:c,pageType:k,fromHistory:m,response:I};k.navigationDoneMs=_.LC("nd");G.fireEvent("yt-navigate-finish",
k);var p;(p=_.wH().resolve(_.qR(_.soV)))==null||p.publish("navigation-end")});
I.csn&&a&&I.clientSideGrafts&&R.then(G.attachClientSideGrafts.bind(G,I,_.u6()));return Z};
_.P=Rv.prototype;_.P.attachClientSideGrafts=function(G,c){G.clientSideGrafts&&c&&G.clientSideGrafts.forEach(function(I){if(c&&I){var R=_.kC(I);_.v("combine_ve_grafts")?_.DP().graftServerVe(I,c):_.Wd(G.csn,c,R)}})};
_.P.handleSignalActionHistoryBack=function(){window.history.back()};
_.P.handleSignalActionCloseWindow=function(){window.close()};
_.P.handleSignalActionReloadPage=function(){this.reload()};
_.P.handleSignalActionSoftReloadPage=function(){ERA(this)};
_.P.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.P.fireEvent=function(G,c){G=new CustomEvent(G,{bubbles:!0,cancelable:!1,composed:!0,detail:c});this.dispatchEvent(G)};
_.P.addEventListener=function(G,c){this.JSC$14761_clientRoot.addEventListener(G,c)};
_.P.dispatchEvent=function(G){return this.JSC$14761_clientRoot.dispatchEvent(G)};
_.P.removeEventListener=function(G,c){this.JSC$14761_clientRoot.removeEventListener(G,c)};
Rv[FA]=[AnB,_.gQ];_.lv0=new qH("browse","h8y2qb");_.qMC=new qH("search","JzFVk");_.wZq=new qH("shorts","xwEKAe");_.FaC=new qH("watchFixie","nmfa2d");_.n20=new qH("watchFlexy","CF909");_.v2q=new qH("watchGrid","Tm0L3c");_.DPi=new qH("watchLearningJourney","L3n37");var joe;var xGB=function(){return _.J.apply(this,arguments)||this};
_.u(xGB,_.J);_.Nh.Object.defineProperties(xGB,{template:{configurable:!0,enumerable:!0,get:function(){if(joe===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);joe=G}G=joe;return G}}});
_.r([_.L(xrN.YtPlayerBehavior),_.h("design:type",Object)],xGB.prototype,"ytPlayerBehavior",void 0);_.r([_.Jc({is:"ytd-player"})],xGB);var tZ9;var hxK;var dGN;var Z5=function(){var G=_.J.apply(this,arguments)||this;G.forceModernIconButton=!1;G.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return G};
_.u(Z5,_.J);Z5.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]]"}}}}}};
Z5.prototype.handleAccountLinkingStateChangedCommand=function(G){if(G=_.D(G,uRe)){var c,I=(c=this.data)==null?void 0:c.providerKey;c=G.providerKey;I&&c&&I.id===c.id&&I.subject===c.subject&&(G=G.linked,G!==void 0&&(this.set("data.linked",G),this.notifyPath("data.linked"),_.v("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(G)))}};
Z5.prototype.setPlayerAccountLinkState=function(G){var c=new fIN;Btk(c,W1e(new JtB,G));var I=_.ZA();I&&I.getPlayerPromise().then(function(R){R.setAccountLinkState(_.zr(c.JSC$12488_serializeBinary(),4));R.updateAccountLinkingConfig(G)})};
Z5.prototype.handleShowAccountLinkDialog=function(){var G=this.get("button.buttonRenderer.command");G&&_.ZS([G],this.hostElement)};
_.Nh.Object.defineProperties(Z5.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}}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.r([_.L([_.HR.YtActionHandlerBehavior]),_.h("design:type",Object)],Z5.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Z5.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Z5.prototype,"overrides",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Z5.prototype,"forceModernIconButton",void 0);_.r([_.E({value:"bottom"}),_.h("design:type",String)],Z5.prototype,"buttonTooltipPosition",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Z5.prototype,"forceIconButton",void 0);_.r([_.E(),_.h("design:type",Boolean)],Z5.prototype,"disableTextTransform",void 0);
_.r([_.A("data","data.linked","data.isWarning"),_.h("design:type",Object),_.h("design:paramtypes",[])],Z5.prototype,"button",null);_.r([_.Jc({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Z5);
_.B(Z5,"ytd-account-link-button-renderer",function(){if(dGN!==void 0)return dGN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return dGN=G},{mode:1});var CN2;var H52=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Ki=function(){return _.J.apply(this,arguments)||this};
_.u(Ki,_.J);Ki.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Ki.prototype.updateButtonActiveState=function(){var G=this,c=!!H52.find(function(I){return G.currentState===I});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.v("enable_web_delhi_icons")&&(c=!1);this.button&&(this.button.isPressed=c)};
_.Nh.Object.defineProperties(Ki.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.playlistLoopStateEntity)==null?void 0:G.state)||((c=this.data)==null?void 0:c.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=void 0,c;if(this.currentState&&((c=this.data)==null?0:c.states)){c=_.Q(this.data.states);for(var I=c.next();!I.done;I=c.next()){I=_.D(I.value,_.i$A);var R=void 0;if(((R=I)==null?void 0:R.state)===this.currentState){G=I;break}}}return G}}});
Ki.prototype.updateButtonActiveState=Ki.prototype.updateButtonActiveState;_.r([_.L(_.wQ),_.h("design:type",Object)],Ki.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.QZ.playlistLoopStateEntitySelector}),_.h("design:type",Object)],Ki.prototype,"playlistLoopStateEntity",void 0);_.r([_.E(),_.h("design:type",Object)],Ki.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],Ki.prototype,"forceIconOnly",void 0);_.r([_.nH("ytd-button-renderer"),_.h("design:type",_.JG)],Ki.prototype,"button",void 0);
_.r([_.A("data","playlistLoopStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ki.prototype,"currentState",null);_.r([_.wD("currentButtonStateRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ki.prototype,"updateButtonActiveState",null);_.r([_.A("currentState"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ki.prototype,"currentButtonStateRenderer",null);
_.r([_.Jc({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Ki);
_.B(Ki,"ytd-playlist-loop-button-renderer",function(){if(CN2!==void 0)return CN2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return CN2=G},
{mode:1});var Xie;var yne=_.mJ("DOWNLOAD",{},"Download"),gEK=_.mJ("DOWNLOADING",{},"Downloading"),Ywk=_.mJ("DOWNLOADED",{},"Downloaded"),Gtk=_.mJ("RETRY",{},"Retry"),P$=function(){var G=_.J.apply(this,arguments)||this;G.forceIconButton=!1;G.forceIconOnly=!1;G.overrides=!1;G.buttonTooltipPosition=!1;G.styleActionButton=!1;G.disableTextTransform=!1;G.downloadProgress=0;G.isDownloadComplete=!1;G.isHidden=!0;G.transferState="TRANSFER_STATE_UNKNOWN";G.isVideoDeletedByUser=!1;G.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return G};
_.u(P$,_.J);_.P=P$.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var G;(G=this.data)!=null&&G.text||(G=_.E4(_.y4().getState(),this.videoId),this.updateButtonState(G))};
_.P.computeVideoId=function(G){return G};
_.P.computePlayerStateEntityKey=function(G){return G};
_.P.showHideButton=function(){this.updateButtonVisibility()};
_.P.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var G;((G=this.playerStateEntity)==null?void 0:G.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(G){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==gEK||!_.vY(G))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=yne;var c="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":G=Gtk;c="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":G=Ywk;c="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":G=
gEK;c="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":G=Gtk;c="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;default:G=yne,c="OFFLINE_DOWNLOAD",I="ACTION_ADD"}this.isVideoDeletedByUser&&(G=yne,c="OFFLINE_DOWNLOAD",I="ACTION_ADD");var R=Object.assign({},this.data);R.text=_.Cp(G);R.tooltip=G;R.icon={iconType:c};R.size="SIZE_DEFAULT";R.style="STYLE_DEFAULT";_.D(R.command,_.o9)&&(_.D(R.command,_.o9).action=I);this.set("data",R)}};
_.P.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var G="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?G="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?G="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?G="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?G="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?G="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(G="OFFLINE_PIN",this.isDownloadComplete=!0);var c;G!==((c=this.data.icon)==null?void 0:c.iconType)&&(c=Object.assign({},this.data),c.text=_.Cp(gEK),c.tooltip=gEK,c.icon={iconType:G},_.D(c.command,_.o9)&&(_.D(c.command,_.o9).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",c))}};
P$.prototype.updateProgress=P$.prototype.updateProgress;P$.prototype.onTransferStateChanged=P$.prototype.onTransferStateChanged;P$.prototype.showHideButton=P$.prototype.showHideButton;P$.prototype.dataChanged=P$.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],P$.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],P$.prototype,"forceIconButton",void 0);
_.r([_.E(),_.h("design:type",Object)],P$.prototype,"forceIconOnly",void 0);_.r([_.E(),_.h("design:type",Object)],P$.prototype,"overrides",void 0);_.r([_.E(),_.h("design:type",Object)],P$.prototype,"buttonTooltipPosition",void 0);_.r([_.E(),_.h("design:type",Object)],P$.prototype,"styleActionButton",void 0);_.r([_.E(),_.h("design:type",Object)],P$.prototype,"disableTextTransform",void 0);
_.r([_.E({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.h("design:type",String)],P$.prototype,"videoId",void 0);_.r([_.E({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.h("design:type",String)],P$.prototype,"playerStateEntityKey",void 0);_.r([_.E(),_.h("design:type",Object)],P$.prototype,"data",void 0);_.r([_.E({selector:WY,selectorArgs:["videoId"]}),_.h("design:type",Object)],P$.prototype,"downloadProgress",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],P$.prototype,"isDownloadComplete",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],P$.prototype,"isHidden",void 0);_.r([_.E({selector:_.E4,selectorArgs:["videoId"]}),_.h("design:type",String)],P$.prototype,"transferState",void 0);_.r([_.E({selector:_.Zf0,selectorArgs:["videoId"]}),_.h("design:type",Object)],P$.prototype,"isVideoDeletedByUser",void 0);
_.r([_.E({selector:grq,selectorArgs:["videoId"]}),_.h("design:type",Object)],P$.prototype,"offlineabilityState",void 0);_.r([_.E({selector:_.eu,selectorArgs:["playerStateEntityKey"]}),_.h("design:type",Object)],P$.prototype,"playerStateEntity",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],P$.prototype,"showTooltips",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],P$.prototype,"sendCommandWhenDisabled",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],P$.prototype,"disabled",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P$.prototype,"dataChanged",null);_.r([_.uO("offlineabilityState","playerStateEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P$.prototype,"showHideButton",null);
_.r([_.uO("transferState","isVideoDeletedByUser"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P$.prototype,"onTransferStateChanged",null);_.r([_.uO("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P$.prototype,"updateProgress",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],P$);
_.B(P$,"ytd-download-button-renderer",function(){if(Xie!==void 0)return Xie;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Xie=G},{mode:2});var c99;var I7K,Rs2=function(){if(I7K!==void 0)return I7K;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return I7K=G};var ZXT=_.v("web_button_rework")&&_.XG("BUTTON_REWORK")||_.v("web_button_rework_with_live"),K5i=_.DH("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Qk=function(){var G=_.J.apply(this,arguments)||this;G.isPressed=!1;G.forceIconButton=!1;G.forceIconOnly=!1;G.forceModernIconButton=!1;G.alignByText=!1;G.isShorts=!1;G.animatedText=!1;G.shouldAnimate=!1;G.JSC$14799_browserSupportsAnimation=_.v("web_supports_animations_api");G.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};G.onTap=function(){var c;if((c=G.data)==null||!c.defaultNavigationEndpoint){var I;c=!((I=G.data)==null?0:I.isToggled);var R;if((R=G.data)==null||!R.preventAutoToggle){G.shouldAnimate=!1;G.disableTextUpdateJobId&&_.dJ.cancelJob(G.disableTextUpdateJobId);G.disableTextUpdateJobId=_.dJ.addLowPriorityJob(function(){G.disableTextUpdateJobId=void 0},K5i);
var Z;G.set("data.isToggled",!((Z=G.data)==null?0:Z.isToggled));I=G.getInnertubeIcon();R={toggled:c,actions:{}};I&&(R.actions[I.toLowerCase()]=c);_.Xl(G.hostElement,"yt-toggle-button",R)}}};
return G};
_.u(Qk,_.J);_.P=Qk.prototype;_.P.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.dJ.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.toggle=function(G){var c;this.set("data.isToggled",G!==void 0?G:!((c=this.data)==null?0:c.isToggled))};
_.P.handleUpdateToggleButtonStateCommand=function(G){if(this.data){G=_.D(G,$nV);var c,I,R,Z=(c=this.data)==null?void 0:(I=c.toggleButtonSupportedData)==null?void 0:(R=I.toggleButtonIdData)==null?void 0:R.id;Z&&G&&Z===(G==null?void 0:G.buttonId)&&this.set("data.isToggled",G.toggled)}};
_.P.handleUpdateToggleButtonTextAction=function(G){if(this.data){G=_.D(G,XTK);var c,I,R,Z=(c=this.data)==null?void 0:(I=c.toggleButtonSupportedData)==null?void 0:(R=I.toggleButtonIdData)==null?void 0:R.id;Z&&G&&Z===(G==null?void 0:G.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=G.defaultNumericalValue,this.set("data.defaultText",G.defaultText),this.set("data.toggledText",G.toggledText),this.shouldAnimate=!1)}};
_.P.getInnertubeIcon=function(){var G=this.data;if(G){var c,I,R=((c=G.defaultIcon)==null?0:c.iconType)?(I=G.defaultIcon)==null?void 0:I.iconType:null,Z,K;c=((Z=G.toggledIcon)==null?0:Z.iconType)?(K=G.toggledIcon)==null?void 0:K.iconType:R;return G.isToggled?c:R}};
_.P.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Nh.Object.defineProperties(Qk.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14799_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var c=G.renderer;var I=G.element;var R=G.toggled;var Z=G.onTapCallback;var K=G.commandClientArgs;var m=G.overrides;var a=G.forceIcon;var O=G.forceModernIconButton;var N=G.forceDisabled;var q=G.useAnimatedText;var w=G.animatedTextProps;G=i2B(c,R);a=!c.defaultIcon||!a&&c.defaultText?c.defaultIcon?"leading":void 0:O?"icon-only":"icon-only-40";a==="icon-only-40"&&(G.type="text");var F;O=Object;var n=O.assign,U;a:switch((U=
c.style)==null?void 0:U.styleType){case "STYLE_COMPACT_GRAY":U={size:"S"};break a;default:U={size:"M"}}var k=!!R;var p=(p=R&&c.toggledText||c.defaultText)?_.Vc(p):void 0;q?(q=_.HY(R&&c.toggledText||c.defaultText))&&w&&!isNaN(Number(w.numberValue))?(w.numberText=q,R&&(w.numberValue+=1),q=w):q=void 0:q=void 0;var M,z,t,x;var C=(w=((z=R?c.toggledAccessibilityData||((C=c.toggledText)==null?void 0:C.accessibility):c.accessibilityData||((M=c.defaultText)==null?void 0:M.accessibility))==null?void 0:(t=z.accessibilityData)==
null?void 0:t.label)||((x=c.accessibility)==null?void 0:x.label))?w:_.HY(R&&c.toggledText||c.defaultText);N=N===void 0?c.isDisabled:N;I=Wir(c,R,Z,I,K);R=JL0(c,R);R!=null&&R.length?(R=_.fd({innertubeCommand:UM0(R),forceNewState:!0}),R=BI(R)?R:void 0):R=void 0;c=n.call(O,{},G,U,{iconPosition:a},m,{focused:!1,toggled:k,toggleable:!0,formattedButtonText:p,animatedTextProps:q,accessibilityLabel:C,disabled:N,onTap:I,aTagConfig:R},XAC((F=c.colorData)==null?void 0:F.basicColorPaletteData));c.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(c.type="filled");return c}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.getInnertubeIcon();if(G)return _.On(G)}}});
Qk.prototype.resetAnimation=Qk.prototype.resetAnimation;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Qk.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Qk.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"isPressed",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"forceIconButton",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"forceIconOnly",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"forceModernIconButton",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"alignByText",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"overrides",void 0);
_.r([_.E(),_.h("design:type",Boolean)],Qk.prototype,"disabled",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"isShorts",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"buttonTooltipPosition",void 0);_.r([_.E(),_.h("design:type",Object)],Qk.prototype,"animatedText",void 0);_.r([_.E(),_.h("design:type",String)],Qk.prototype,"textNumberValue",void 0);_.r([_.E({computed:"computeTooltip(data, data.isToggled)"}),_.h("design:type",Object)],Qk.prototype,"tooltip",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qk.prototype,"resetAnimation",null);_.r([_.A("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qk.prototype,"computedButtonShape",null);_.r([_.A("data.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qk.prototype,"computedIcon",null);
_.r([_.Jc({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Qk);ZXT&&_.B(Qk,"ytd-toggle-button-renderer",Rs2,{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var P49=_.W(function(G){function c(N){var q;return _.T(function(w){if(w.nextAddress==1)return(q=!Bfp(N,a())||!a().enabled)?w.jumpTo(2):w.yield(hOA(),3);w.nextAddress!=2&&(q=w.yieldResult);if(q)return w.return();I();setTimeout(function(){m(!1)},1500);
_.Vp(w)})}
function I(){setTimeout(function(){m(!0);var N;(N=R.lottieEl)==null||N.goToAndPlay(0)},150)}
var R=_.ne(),Z=_.Q(_.ks(!1,void 0,"UfUosc")),K=Z.next().value,m=Z.next().value,a=_.gD(G.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.tI(function(){var N,q;((N=G.settings)==null?void 0:(q=N.call(G))==null?void 0:q.uniqueId)==="this is not intended behavior"&&_.Ck(new _.iW("Smartimation Settings is undefined"))});
_.xs(function(){a().experimentEnabled&&(a().enabled?rL0(c):(m(!1),jAg(c)),_.ty(function(){jAg(c)}))},"IHhVmc");
_.xs(function(){a().timings.join("");a().experimentEnabled&&(xTb(a()),_.ty(function(){tp8(a())}))},"fsfhOe");
var O=_.SE(function(){var N=R,q=a().uniqueId+"-border",w,F;var n="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((F=(w=_.wH().resolve(_.qR(_.d0)))==null?void 0:w())!=null&&F?"dark":"light")+"_v2.json";return{animationRef:N,animationConfig:{name:q,autoplay:!1,loop:!1,path:n}}},void 0,"UWvUGe");
Z={};return _.e("yt-smartimation",{class:_.O3(G.className,"smartimation",(Z["smartimation--experiment-enabled"]=function(){return a().experimentEnabled},Z["smartimation--active-border"]=K,Z["smartimation--enable-masking"]=dTT(),Z))},_.e(_.l,{cond:function(){return a().experimentEnabled},
then:function(){return _.e("div",{class:"smartimation__border"},_.e(_.XX,{className:"smartimation__border-gradient",data:O,animationName:function(){return O().animationConfig.name}}))}}),_.e("div",{class:"smartimation__content"},G.children))},"ha");
P49.idomCompat=!0;_.R1(P49,"yt-smartimation",{props:{className:_.bl,settings:_.bl}});var mj=function(){var G=_.J.apply(this,arguments)||this;G.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};G.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};G.shouldEnableSmartimation=!1;return G};
_.u(mj,_.J);mj.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
mj.prototype.onDataChanged=function(){var G,c;this.shouldEnableSmartimation=(((G=this.data)==null?void 0:(c=G.timedAnimationData)==null?void 0:c.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
mj.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var G=_.D(this.data.likeButton,_.DI),c=_.D(this.data.dislikeButton,_.DI);return!!((G==null?0:G.isToggled)||(c==null?0:c.isToggled))};
mj.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]]"}}}}}};
_.Nh.Object.defineProperties(mj.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,c,I=((G=this.data)==null?void 0:(c=G.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:this.shouldEnableSmartimation,experimentEnabled:I.length>0}}}});
mj.prototype.onDataChanged=mj.prototype.onDataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mj.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],mj.prototype,"likeButtonOverride",void 0);_.r([_.E(),_.h("design:type",Object)],mj.prototype,"dislikeButtonOverride",void 0);
_.r([_.A("shouldEnableSmartimation"),_.h("design:type",Object),_.h("design:paramtypes",[])],mj.prototype,"smartimationSettings",null);_.r([_.wD("data"),_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mj.prototype,"onDataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],mj);
_.B(mj,"ytd-segmented-like-dislike-button-renderer",function(){if(c99!==void 0)return c99;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return c99=G},{mode:1});var QLe;var mzV;(mzV=document.body)==null||mzV.setAttribute("rounded-container","");var a7N={};a7N.YtToggleButtonBehavior=[_.HR.YtActionHandlerBehavior,Ip.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var G=this.data.isToggled;if(!this.isModal_(G)){if(!this.data.preventAutoToggle){this.toggle();var c={toggled:this.data.isToggled,actions:{}};c.actions[this.buttonIcon]=this.data.isToggled;_.Xl(this.hostElement,"yt-toggle-button",c)}c=this.data.defaultServiceEndpoint||null;var I=this.data.toggledServiceEndpoint||null;if(c&&I||c&&this.data.preventAutoToggle)G=G?I:c,c=this.disableCommandHandlerOverride,_.v("killswitch_toggle_button_behavior_resolve_command")||c?_.Gs(this.hostElement,
[G]):_.qC(G,this.hostElement),_.Xl(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:G})}},
stateChanged_:function(){var G=this.data;if(G){var c=G.isToggled;this._setEndpoint(this.computeEndpoint_(G));this._setServiceEndpoint(this.computeServiceEndpoint_(G));this._setButtonIcon(this.computeButtonIcon_(G,c));this._setButtonText(this.computeButtonText_(G,c));this._setButtonAccessibility(this.computeAccessibility_(G,c));this._setButtonTooltip(this.computeTooltip_(G,c));this._setButtonClass(this.computeButtonClass_(G,c));this._setIconPositionType(this.computeIconPositionType_(G));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=c):this.elements_.button.setAttribute("aria-pressed",c));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=c)}},
shouldSetIconActiveState_:function(){return _.v("kevlar_system_icons")},
toggle:function(G){this.set("data.isToggled",G!==void 0?G:!this.data.isToggled);_.v("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(G){if(G){var c,I;return!!((c=this.data)==null?0:(I=c.toggledServiceEndpoint)==null?0:I.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(G){return G&&G.defaultNavigationEndpoint||null},
computeButtonIcon_:function(G,c){var I=G&&G.defaultIcon?_.On(G.defaultIcon.iconType):null;G=G&&G.toggledIcon?_.On(G.toggledIcon.iconType):I;return c?G:I},
handleUpdateToggleButtonStateCommand_:function(G){G=G.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&this.toggle(G.toggled)},
computeButtonText_:function(G,c){return G?c&&G.toggledText||G.defaultText||null:null},
computeAccessibility_:function(G,c){return G?(c?this.get("toggledAccessibilityData.accessibilityData",G):this.get("accessibilityData.accessibilityData",G))||G.accessibility||null:null},
computeTooltip_:function(G,c){return G?c&&G.toggledTooltip||G.defaultTooltip||null:null},
computeButtonClass_:function(G,c){if(!G)return"";var I="",R=G.toggledStyle||G.style;if(c=c?R:G.style){c.styleType&&(c=c.styleType);try{I+=c.toLowerCase().replace(/_/g,"-")+" "}catch(Z){_.H_(Z,c,typeof c),_.Ck(Z)}}if(G=G.size){G.sizeType&&(G=G.sizeType);try{I+=G.toLowerCase().replace(/_/g,"-")+" "}catch(Z){_.H_(Z,G,typeof G),_.Ck(Z)}}return I.trim()},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeServiceEndpoint_:function(G){var c=G&&G.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:I&&G.command?G.command:null},
handleUpdateToggleButtonTextAction_:function(G){G=G.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&(this.set("data.defaultText",G.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",G.toggledText),this.notifyPath("data.toggledText"))}}];_.Su("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var TkK=_.v("web_button_rework")&&_.XG("BUTTON_REWORK")||_.v("web_button_rework_with_live"),av=function(){var G=_.J.apply(this,arguments)||this;G.systemIcons=_.v("kevlar_system_icons");G.roundedContainer=!0;return G};
_.u(av,_.J);av.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
av.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var G=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var c={toggled:!!this.data.isToggled,actions:{}};c.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var I,R;c.actions.playlistId=(I=this.data.defaultServiceEndpoint)==null?void 0:(R=I.playlistEditEndpoint)==null?void 0:R.playlistId;_.Xl(this.hostElement,"yt-toggle-button",c)}(G=G?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(G)}};
av.prototype.onYtNavigate=function(G){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);c&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(c))};
_.Nh.Object.defineProperties(av,{template:{configurable:!0,enumerable:!0,get:function(){if(QLe===void 0){var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);QLe=G}G=QLe;return G}}});
av.prototype.onYtNavigate=av.prototype.onYtNavigate;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],av.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],av.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(a7N.YtToggleButtonBehavior),_.h("design:type",Object)],av.prototype,"ytToggleButtonBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],av.prototype,"data",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],av.prototype,"showTooltips",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],av.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],av.prototype,"roundedContainer",void 0);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],av.prototype,"onYtNavigate",null);
_.r([_.Jc({is:"ytd-toggle-button-renderer",disableElementRegistration:TkK})],av);var OXK,esB;_.Tl=new _.De("PANEL_CONTROLLER_TOKEN");_.O6=new _.De("SHEET_CONTROLLER_TOKEN");_.eJ=new _.De("DIALOG_CONTROLLER_TOKEN");OXK=new _.De("DIALOG_CONTAINER_TOKEN");esB=new _.De("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.NI=new _.De("PERSISTENT_PANEL_CONTROLLER_TOKEN");var IjU=_.mJ("DOWNLOAD",{},"Download"),R5O=_.mJ("DOWNLOADING",{},"Downloading"),Zw8=_.mJ("DOWNLOADED",{},"Downloaded"),KTf=_.mJ("RETRY",{},"Retry");var NkA=_.W(function(G){var c=T_q,I=function(){return""},R=PFB(G.data),Z=QrB(G.data),K=mrO(G.data),m=ajC(G.data);
c=function(){var a=G.data(),O=GAg(a,R(),Z(),K(),m()),N=!!a.videoId,q=O.text;return{title:N?q:void 0,tooltip:N?void 0:q,accessibilityText:q,onTap:O.onTap,iconName:O.iconType,style:a.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:O.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:a.buttonSize}};
I={};I=_.O3("ytDownloadButtonViewModelHost",(I.ytDownloadButtonViewModelIsHidden=function(){var a=G.data(),O=m();return a.playlistId||O()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||O()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},I));
return _.e("download-button-view-model",{class:I},_.e(_.BR,{data:c}))},"ia");
NkA.idomCompat=!0;var vQq=new _.De("SUBMIT_API_SERVICE_TOKEN");var wPi,FTA,Drr={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var iwg=new _.De("RENDERER_LOGGER_TOKEN");var z5p=new _.De("RENDERER_STAMPER_OPTIONS_TOKEN");var Ur0;_.kZ=new Aqp;Ur0=new Map;var EQC="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),WTB=["notificationTextRenderer","notificationMultiActionRenderer"],
J1r="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),V$O=uwC(function(G){return _.dN(G==null?void 0:G.targetId)}).useUpdatableData;var M$r=0,SaC=new Set;_.sN.debugName="EjJbCe";var l7e=_.W(function(G){var c=G.data;G=G.className;_.xc(function(){c().formId||_.hg(Error("Ch"))});
var I=_.qar(function(){return c().formId},function(){return c().beforeSubmitCommand},function(){return c().afterSubmitCommand}),R=I.submitForm,Z=I.isValid,K=I.isSubmitting,m=function(){return{state:c().isDisabled||!Z()||K()?"disabled":"active"}};
return _.e("yt-submit-button-view-model",{class:_.O3("ytSubmitButtonViewModelHost",G)},_.e(_.sN,{data:function(){return c().button}},{buttonViewModel:function(a){return _.e(_.BR,{data:a.data,
buttonOverrides:m,onClick:R})}}))},"la");var wJ2=_.W(function(G){var c=G.backgroundLottieRef;var I=G.foregroundLottieRef;var R=G.children;var Z=G.wrapperClass;var K=G.disableAnimation;G=function(){return(_.v("web_animated_actions")||_.v("web_animated_actions_v2"))&&!(K==null?0:K())};
return _.e("yt-animated-action",{class:_.O3("ytAnimatedActionHost",Z)},_.e("div",{class:"ytAnimatedActionContentWithBackground"},_.e(_.l,{cond:G,then:function(){return _.e(q5p,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:c==null?void 0:c(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(fjB()?"dark":"light")+"_v5.json"}}}})}}),R),_.e(_.l,{cond:G,
then:function(){return _.e(q5p,{lottiePlayerProps:function(){return{animationRef:I==null?void 0:I(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(fjB()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
wJ2.idomCompat=!0;var q5p=_.W(function(G){var c=G.wrapperClass;var I=G.lottieClass;var R=G.lottiePlayerProps;return _.e("div",{class:_.O3("ytAnimatedActionLottie",c),"aria-hidden":"true"},_.e(_.XX,{className:I,data:R,animationName:function(){return R().animationConfig.name}}))},"na");var B_q={isOpen:!1};var jrp={isAllowed:!1};var t$8={errorMessage:"",title:"",privacy:"",isDisabled:!0};var drC={isOpen:!1};var Hw8={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var F5e={response:void 0};var y1B=function(G,c){G=G===void 0?F5e:G;switch(c.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},G,{response:c.payload});default:return G}};var nUK={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var gQ0=function(G,c){G=G===void 0?nUK:G;switch(c.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},G,{nextDisabled:c.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},G,{nextCommand:c.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},G,{footerSubmissionData:c.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},G,{isImpersonationValid:c.payload});default:return G}};var vUp={reportFormData:void 0,reportDetailsFormData:void 0};var Yar=function(G,c){G=G===void 0?vUp:G;switch(c.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportFormData:c.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportDetailsFormData:c.payload});default:return G}};var Dzp=void 0;_.v("mweb_enable_redux_store_on_demand")||(Dzp=new Xf(GS0()));var lX=_.v("enable_web_delhi_icons");var oUB=_.W(function(G){G=_.YW(G,{themeOverride:void 0,animationRef:{}});var c=G.animatedIconType,I=G.active,R=G.themeOverride,Z=G.animationRef;G=G.staticIconFn;var K=_.Q(_.ks(void 0,void 0,"l48agc")),m=K.next().value,a=K.next().value,O=function(){a:{var p=c();var M=R==null?void 0:R();var z;M=(M==null?void 0:M.useDarkTheme)||((z=_.wH().resolve(_.qR(_.d0)))==null?void 0:z());switch(p){case "LIKE":Dzp||(Dzp=new Xf(GS0()));p=(p=sYr(Dzp.getState()))&&p.animationLightUrl&&p.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:M?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:M?p.animationDarkUrl:p.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(p){M=p;break a}M="animated_like_icon_"+(M?"dark":"light")+"_"+(lX?"v5":"v4");M={lottiePlayerProps:{animationConfig:{name:M,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+M+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(lX?" animated-like-icon-delhi":"")}}},totalFrames:lX?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":M={lottiePlayerProps:{animationConfig:{name:M?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(M?"dark":"light")+(lX?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(lX?" animated-subscribe-icon-delhi":"")}}},totalFrames:lX?120:79,lazyLoad:!1};break a}M=
void 0}return M},N=function(){var p,M;
return(M=(p=O())==null?void 0:p.lottiePlayerProps.animationConfig.name)!=null?M:""},q=function(){if(O()){var p=O().lottiePlayerProps.animationConfig.path;
return s3.get(p)||m()}};
K=_.Q(_.ks(!1,void 0,"sDrGId"));var w=K.next().value;K=K.next().value;var F=IU0(K),n=function(){var p=O(),M,z,t;return(t=p==null?void 0:(M=p.lottiePlayerProps.animationConfig)==null?void 0:(z=M.rendererSettings)==null?void 0:z.className)!=null?t:""},U=void 0,k=void 0;
_.xs(function(){var p=O(),M=N(),z=q(),t=w(),x=I();if(p&&(k!==M&&(k=M,U=x,M=Z(),F.animationConfig=p.lottiePlayerProps.animationConfig,F.animationRef=M,z&&(F.animationConfig.animationData=z,F.animationConfig.path=void 0),M=p.lottiePlayerProps.animationConfig.path,!s3.get(M)&&p.lazyLoad&&M&&cnp(M,a)),!(t||p.lazyLoad&&!z))){if(z=!Z().lottieEl)x?(t=p.totalFrames,F.animationConfig.initialSegment=[t-1,t]):F.animationConfig.initialSegment=void 0;if(U!==x&&!z)if(z=Z(),x){var C;(C=z.lottieEl)==null||C.playSegments([0,
p.totalFrames],!0)}else{var H;(H=z.lottieEl)==null||H.playSegments([0,1],!0)}U=x}},"RQVZ1d");
return _.e("animated-icon",{class:"ytAnimatedIconHost"},_.e(_.l,{cond:function(){var p,M;return!((p=O())==null||!p.lottiePlayerProps.animationConfig.path||((M=O())==null?0:M.lazyLoad)&&!q()||w())},
then:function(){return _.e(_.XX,{data:F,animationName:N,className:n,animationRef:Z})},
else:G}))},"pa");_.qI=_.W(function(G){var c=_.mX("yt-subscribe-button-view-model"),I=_.mX("div"),R=_.mX("div"),Z=_.ne(),K=_.ne(),m=_.ne(),a=_.um(PNr,function(){return G.data().stateEntityStoreKey}),O=_.um(QoC,function(){var Hr,v0;
return(v0=(Hr=G.data().notificationStateEntityStoreKeys)==null?void 0:Hr.subsNotificationStateKey)!=null?v0:""}),N=function(){return!G.data().enableSubscribeButtonPostClickAnimation},q=_.Q(_.ks(0,void 0,"YtsSKb")),w=q.next().value,F=q.next().value;
q=_.Q(_.ks(0,void 0,"V6JxRe"));var n=q.next().value,U=q.next().value;q=_.Q(_.ks(!1,void 0,"JUCSZ"));var k=q.next().value,p=q.next().value;q=_.Q(_.ks(!1,void 0,"oV6jwf"));var M=q.next().value,z=q.next().value;q=_.Q(_.ks(!1,void 0,"hK1Whe"));var t=q.next().value,x=q.next().value,C;q=_.Q(_.ks(!1,void 0,"Asaolf"));var H=q.next().value,g=q.next().value,QO=function(){z(!0);_.SR(_.dJ,function(){z(!1)},1500)};
_.xs(function(){var Hr=M();_.ue(function(){Hr&&!N()&&a()&&DGg(Z,K,m)})},"Qq6Hsf");
_.xs(function(){var Hr=a();_.ue(function(){if(!N()&&Hr){var v0;((v0=G.animateWidth)==null?0:v0.call(G))&&vEB(c.value,!!Hr.subscribed,w(),n());var kK,pN;((kK=C)==null?0:kK.subscribed)||!Hr.subscribed||Hr.key!==((pN=C)==null?void 0:pN.key)||QO();C=Hr}})},"hog8te");
q=_.SE(function(){var Hr,v0,kK,pN=G.data(),bH=!((Hr=a())==null||!Hr.subscribed);Hr=!((v0=G.isOverlay)==null||!v0.call(G));v0=k()?c:void 0;var n1=(kK=O())==null?void 0:kK.state;kK=H();nE0(pN,n1);return KvT({model:pN,subscribed:bH,isOverlay:Hr,element:v0,notificationState:n1,disableTextEllipsis:!0,focused:kK})},void 0,"hc1PRd");
var T8=function(){var Hr;if(!N()&&((Hr=G.animateWidth)==null?0:Hr.call(G))&&(I==null?0:I.value)&&(R==null?0:R.value)&&!t()){Hr=a();var v0=_.Q((Hr==null?0:Hr.subscribed)?[I,R]:[R,I]),kK=v0.next().value;v0=v0.next().value;kK=Math.ceil(kK.value.getBoundingClientRect().width);v0=Math.ceil(v0.value.getBoundingClientRect().width);F(kK);U(v0);vEB(c.value,!(Hr==null||!Hr.subscribed),kK,v0);x(!0)}},kp=_.Nx(function(Hr){T8();
var v0=a();v0&&(Hr.detail.endpoint.subscribeEndpoint||Hr.detail.endpoint.unsubscribeEndpoint)&&qwA(c.value,!v0.subscribed,v0)}),FB=function(){var Hr=_.wH().resolve(_.qR(_.zb));
Hr&&g(Hr.isKeyBoardInUse())},oq=function(){g(!1)};
_.QF("yt-player-subscribe",function(Hr){var v0=a();v0&&Hr===G.data().channelId&&qwA(c.value,!0,v0)});
_.QF("yt-player-unsubscribe",function(Hr){var v0=a();v0&&Hr===G.data().channelId&&qwA(c.value,!1,v0)});
_.QF("yt-update-subscribe-button-action",function(Hr){Hr=_.D(Hr,eLT);var v0=a();v0&&Hr&&Hr.channelId===G.data().channelId&&qwA(c.value,!!Hr.subscribed,v0)});
_.tI(function(){c.value&&(c.value.addEventListener("focusin",FB),c.value.addEventListener("focusout",oq));var Hr=_.W_(_.dJ,function(){T8()});
p(!0);_.ty(function(){_.dJ.cancelJob(Hr);c.value&&(c.value.removeEventListener("focusin",FB),c.value.removeEventListener("focusout",oq))})});
var Wr=function(){var Hr,v0,kK;if(kK=!((Hr=a())==null||!Hr.subscribed))Hr=!!G.data().disableNotificationBell,kK=(v0=O())==null?void 0:v0.state,kK=!Hr&&!!kK;return kK},iT=function(){var Hr;
return!((Hr=a())==null?0:Hr.subscribed)},z8=function(){var Hr,v0;
if(v0=iT()){v0=!!G.data().disableNotificationBell;var kK=(Hr=O())==null?void 0:Hr.state;v0=!v0&&!!kK}return v0},GV={},ei={};
return _.e("yt-subscribe-button-view-model",{class:_.O3(G.className,"ytSubscribeButtonViewModelHost",(GV.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var Hr,v0;return!((Hr=a())==null||!Hr.subscribed)&&((v0=G.animateWidth)==null?void 0:v0.call(G))&&M()},GV.ytSubscribeButtonViewModelHostHidden=function(){var Hr;
return!((Hr=a())==null?0:Hr.subscribed)&&G.data().hideWhenUnsubscribed},GV)),
el:c,"on:yt-service-request-sent":kp},_.e(wJ2,{backgroundLottieRef:Z,foregroundLottieRef:K,wrapperClass:_.O3("ytSubscribeButtonViewModelAnimatedActionWrapper",(ei.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var Hr;return((Hr=G.animateWidth)==null?void 0:Hr.call(G))&&M()},ei.ytSubscribeButtonViewModelStaticWidth=function(){var Hr;
return!((Hr=G.animateWidth)==null?0:Hr.call(G))},ei)),
disableAnimation:N},_.e("div",{el:I,class:"ytSubscribeButtonViewModelContainer"},_.e(_.fx,{data:q,icon:function(){return _.e(_.l,{cond:Wr,then:function(){var Hr=function(){var v0;return lUb((v0=O())==null?void 0:v0.state)};
return _.e(_.l,{cond:function(){return N()||Hr()!=="NOTIFICATIONS_NONE"},
then:function(){return _.e(_.F6,{icon:Hr})},
else:function(){return _.e(oUB,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:m})}})}})},
secondaryIconName:function(){return Wr()?"EXPAND":void 0}}))),_.e("div",{el:R,
class:"ytSubscribeButtonViewModelInvisible"},_.e(_.l,{cond:function(){var Hr;return((Hr=G.animateWidth)==null?void 0:Hr.call(G))&&!N()&&!t()},
then:function(){return _.e(_.fx,{data:_.SE(function(){var Hr;return KvT({model:G.data(),subscribed:iT(),isOverlay:!((Hr=G.isOverlay)==null||!Hr.call(G)),element:c,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var Hr;return z8()?lUb((Hr=O())==null?void 0:Hr.state):void 0},
secondaryIconName:function(){return z8()?"EXPAND":void 0}})}})))},"sa");
_.qI.idomCompat=!0;var Uz2=_.W(function(G){var c=G.data;var I=_.um(PNr,function(){return c().subscriptionStateEntityKey});
return _.e(_.l,{cond:function(){var R=c(),Z=I();return!R.hideWhenUnsubscribed||(Z==null?0:Z.subscribed)?_.D(c().button,_.uv):void 0},
then:function(R){return _.e("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.e(_.BR,{data:R,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
Uz2.idomCompat=!0;var uv9,wr;uv9=_.W(function(G){return _.e(_.sN,{data:function(){return G.actionRow().actions}},{buttonViewModel:function(c){var I=c.data;
return _.e(wr,{isRow:G.isRow,isIconOnlyButton:function(){return oEU(I())},
useIntrinsicWidth:G.useIntrinsicWidth},_.e(_.BR,{data:I}))},
subscribeButtonViewModel:function(c){return _.e(wr,{isRow:G.isRow},_.e(_.qI,{data:c.data,isOverlay:!1,animateWidth:function(){return!G.isRow()}}))},
downloadButtonViewModel:function(c){var I=c.data;return _.e(wr,{isRow:G.isRow,isIconOnlyButton:function(){return!!I().playlistId}},_.e(NkA,{data:I}))},
submitButtonViewModel:function(c){var I=c.data;return _.e(wr,{isRow:G.isRow,isIconOnlyButton:function(){var R=I();return oEU(_.D(R==null?void 0:R.button,_.uv))}},_.e(l7e,{data:I}))},
toggleButtonViewModel:function(c){var I=c.data;return _.e(wr,{isRow:G.isRow,isIconOnlyButton:function(){var R=I();return oEU(_.D(R.isToggled?R.toggledButtonViewModel:R.defaultButtonViewModel,_.uv))}},_.e(_.m8,{data:I}))},
subscribePlusButtonViewModel:function(c){return _.e(wr,{isRow:G.isRow},_.e(Uz2,{data:c.data}))}})},"ua");
wr=_.W(function(G){var c={};return _.e("div",{class:_.O3("ytFlexibleActionsViewModelAction",(c.ytFlexibleActionsViewModelActionRowAction=G.isRow,c.ytFlexibleActionsViewModelActionIntrinsicWidth=G.useIntrinsicWidth,c.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,c.ytFlexibleActionsViewModelActionIconOnlyButton=G.isIconOnlyButton,c))},G.children)},"va");
_.FK=_.W(function(G){var c=function(){var R;return((R=G.layout)==null?void 0:R.call(G))===1},I={};
return _.e("yt-flexible-actions-view-model",{class:_.O3("ytFlexibleActionsViewModelHost",G.className,(I.ytFlexibleActionsViewModelInline=function(){return!c()},I.ytFlexibleActionsViewModelScrollable=function(){return G.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},I))},_.e(_.fh,{each:function(){return G.data().actionsRows||[]}},function(R){return _.e(_.l,{cond:c,
then:function(){return _.e("div",{class:"ytFlexibleActionsViewModelActionRow"},_.e(uv9,{actionRow:R,isRow:c,useIntrinsicWidth:function(){return!!G.data().respectActionIntrinsicWidth}}))},
else:function(){return _.e(uv9,{actionRow:R,isRow:c})}})}))},"wa");_.R1(_.FK,"yt-flexible-actions-view-model",{props:{data:_.bl,layout:_.bl,justifyContentOverride:_.bl,className:_.bl}});_.ni=_.W(function(G){var c=_.um(_.WU,function(){var Z;return(Z=G.data().dislikeEntityKey)!=null?Z:""}),I=_.SE(function(){var Z=c();
return Z?Z.likeStatus==="DISLIKE":_.D(G.data().toggleButtonViewModel,_.kh).isToggled},void 0,"fNr9he"),R=_.SE(function(){return Object.assign({},_.D(G.data().toggleButtonViewModel,_.kh),{isToggled:I()})},void 0,"AezoCc");
return _.e("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.e(_.m8,{data:R,buttonShapeOverrides:G.buttonShapeOverrideables,onToggle:function(Z){var K=c();K&&Z!==(K.likeStatus==="DISLIKE")&&K.key&&_.y1(_.Wm("likeStatusEntity",K.key,{likeStatus:Z?"DISLIKE":"INDIFFERENT",hadUserInteraction:Z}))}}))},"xa");
_.ni.idomCompat=!0;_.v$=_.W(function(G){var c=_.v("web_supports_animations_api"),I=M0i(function(F){var n=N();if(!F){var U,k;return{numberText:(k=n==null?void 0:(U=n.likeCountIfIndifferent)==null?void 0:U.content)!=null?k:"",numberValue:Number(n==null?void 0:n.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var p;U=(n==null?void 0:(p=n.likeCountIfIndifferent)==null?void 0:p.content)!==F.numberText;if(a()||!U)return F;var M;return{numberText:(n==null?void 0:(M=n.likeCountIfIndifferent)==null?void 0:M.content)||
"",numberValue:Number(n==null?void 0:n.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!n}}),R=M0i(function(F){var n=N();
if(!F){var U,k;return{numberText:(k=n==null?void 0:(U=n.likeCountIfLiked)==null?void 0:U.content)!=null?k:"",numberValue:Number(n==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var p;U=(n==null?void 0:(p=n.likeCountIfIndifferent)==null?void 0:p.content)!==F.numberText;if(a()||!U)return F;var M;return{numberText:(n==null?void 0:(M=n.likeCountIfLiked)==null?void 0:M.content)||"",numberValue:Number(n==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!n}}),Z=_.Q(_.ks(void 0,
void 0,"xYSlUe")),K=Z.next().value,m=Z.next().value,a=K,O=_.um(_.WU,function(){var F,n;
return(n=(F=G.data())==null?void 0:F.likeStatusEntityKey)!=null?n:""}),N=_.um(T90,function(){var F,n;
return((F=G.likeCountEntity)==null?void 0:(n=F.call(G))==null?void 0:n.key)||""}),q=_.SE(function(){var F;
return((F=O())==null?void 0:F.likeStatus)==="LIKE"},void 0,"DG5Osd"),w=function(){var F;
return c&&!((F=G.likeCountEntity)==null||!F.call(G))};
return _.e("like-button-view-model",{class:_.O3("ytLikeButtonViewModelHost",G.className)},_.e(_.m8,{data:function(){var F=Object,n=F.assign,U;var k=_.D((U=G.data())==null?void 0:U.toggleButtonViewModel,_.kh);return n.call(F,{},k||{},{isToggled:q()})},
buttonShapeOverrides:G.buttonShapeOverrideables,animatedTextPropsDefault:function(){return w()?I():void 0},
animatedTextPropsToggled:function(){return w()?R():void 0},
onToggle:function(F){UGq(F,O(),a(),m)},
style:function(){var F;return((F=G.disableIconAnimation)==null?0:F.call(G))?void 0:{animateIcon:"true"}}}))},"ya");
_.v$.idomCompat=!0;var bXN=_.W(function(G){var c=function(){return _.D(G.data().likeButtonViewModel,_.hA)},I=function(){var Z;
return((Z=c())==null?void 0:Z.likeStatusEntityKey)||""},R=_.SE(function(){var Z,K;
var m=(K=_.um(_.WU,I)())!=null?K:(Z=c())==null?void 0:Z.likeStatusEntity;Z=G.data();var a;Z=(Z==null?void 0:(a=Z.timedAnimationData)==null?void 0:a.animationTiming)||[];return{uniqueId:"like-dislike",timings:Z,enabled:(m==null?void 0:m.likeStatus)==="INDIFFERENT"&&Z.length>0,experimentEnabled:Z.length>0}},void 0,"zZ3GQb");
return _.e("segmented-like-dislike-button-view-model",{class:_.O3("ytSegmentedLikeDislikeButtonViewModelHost",G.className),"button-renderer":!0},_.e(P49,{settings:R},_.e("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.e(_.l,{cond:c,then:function(Z){return _.e(_.v$,{data:Z,likeCountEntity:function(){return G.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.v("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.e(_.l,{cond:function(){return _.D(G.data().dislikeButtonViewModel,_.dG)},
then:function(Z){return _.e(_.ni,{data:Z,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
bXN.idomCompat=!0;_.R1(bXN,"segmented-like-dislike-button-view-model",{props:{data:_.bl,className:_.bl}});var kti=_.W(function(G){var c=G.data;var I=G.className;var R=G.setMinWidth;var Z=G.forceIconOnly;var K=_.mX("account-link-button-view-model"),m=_.um(_.uHC,function(){var F;return(F=c().accountLinkStatusEntityKey)!=null?F:""}),a=_.um(_.uHC,function(){var F;
return(F=c().accountLinkStatusSecondaryEntityKey)!=null?F:""}),O=function(){if(!_.v("web_account_link_secondary_killswitch")){var F,n;
return((F=m())==null?void 0:F.linked)||((n=a())==null?void 0:n.linked)}var U;return(U=m())==null?void 0:U.linked};
_.xs(function(){var F=m();if(F){var n=Btk(new fIN,W1e(new JtB,!!F.linked));_.wP().then(function(U){U&&(U.setAccountLinkState(_.zr(n.JSC$12488_serializeBinary(),4)),U.updateAccountLinkingConfig(!!F.linked))})}},"IvZF7");
var N=function(){return _.D(c().toggleButtonViewModel,_.kh)};
_.QF("yt-signal-action-show-account-link-dialog",function(){if(N()){var F=O()?N().toggledButtonViewModel:N().defaultButtonViewModel;F=_.D(F,_.uv);var n;if((n=m())==null?0:n.isWarning){n=_.D(c().warningButtonViewModel,_.uv);if(!n){_.Ra(Error("Dh"));return}F=n}var U;(n=_.WI((U=F)==null?void 0:U.onTap))&&_.ZS([n],K.value)}else _.Ra(Error("Eh"))});
var q=function(){var F=N();return Object.assign({},F,{isToggled:O()})},w=function(){return(Z==null?0:Z())?{iconPosition:"icon-only"}:{}};
return _.e("account-link-button-view-model",{class:_.O3("ytwAccountLinkButtonViewModelHost",I,function(){return(R==null?0:R())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:K,"button-renderer":!0},_.e("div",null,_.e(_.l,{cond:function(){var F;if((F=m())==null?0:F.isWarning)return(F=_.D(c().warningButtonViewModel,_.uv))||_.Ra(Error("Dh")),F},
then:function(F){return _.e(_.BR,{data:F,buttonOverrides:w})},
else:function(){return _.e(_.m8,{data:q,buttonShapeOverrides:w})}})))},"Ba");_.R1(kti,"account-link-button-view-model",{props:{data:_.bl,className:_.G9,setMinWidth:_.G9,forceIconOnly:_.G9}});_.Su("menuRenderer","menuRenderer","ytd-menu-renderer");
var sLV={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"}},
L5A=_.v("web_fix_missing_action_buttons")?100:200,D5=function(){var G=_.J.apply(this,arguments)||this;G.safeArea=!_.v("kevlar_flex_menu_safe_area_killswitch");G.tonalOverride=!1;G.threeDotSize="M";G.isOverlay=!1;G.useOverlayDark=!1;G.topLevelIconsOnly=!1;G.JSC$14932_lastWidth=0;G.maybeUpdateFlexibleMenu=function(){_.v("web_fix_missing_action_buttons")?requestAnimationFrame(G.maybeUpdateFlexibleMenuImpl):G.maybeUpdateFlexibleMenuImpl()};
G.maybeUpdateFlexibleMenuImpl=function(){var c;if((c=G.data)!=null&&c.flexibleItems){G.maybeFlushDebouncer();c=G.hostElement.clientWidth;var I=c>G.JSC$14932_lastWidth,R,Z=((R=G.topLevelButtonsContainer)==null?void 0:R.scrollHeight)||0,K;R=((K=G.flexibleItemButtonsContainer)==null?void 0:K.scrollHeight)||0;K=G.hostElement.scrollHeight>Math.max(Z,R)+8;I?(G.resetFlexibleItems(),G.JSC$14932_lastWidth=G.hostElement.clientWidth,G.maybeUpdateFlexibleMenu()):K&&(G.shrinkFlexibleMenu(),G.JSC$14932_lastWidth=
c)}};
G.computeThreeDotButtonShape=function(){if(G.tonalOverride)return Object.assign({},{onTap:function(){G.onOverflowTap()},
iconPosition:"icon-only",style:G.isOverlay?G.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:G.threeDotSize,state:"active",accessibilityLabel:G.computeAccessibilityLabel(G.data)},G.threeDotButtonOverride)};
G.onOverflowTap=function(){if(G.data.fetchMenuCommand)_.wH().resolve(_.n4).resolveCommand(G.data.fetchMenuCommand,{form:{element:G.hostElement}});else if(G.data.isDisabled&&G.data.disabledCommand)_.qC(G.data.disabledCommand,G.hostElement);else{var c=G.createMenuRendererVe(),I={items:G.items};G.data.menuPopupAccessibility&&(I.menuPopupAccessibility=G.data.menuPopupAccessibility);G.data.footer&&(I.footer=G.data.footer);c={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I},veData:c}};
_.wH().resolve(_.O6).openSheet({openPopupActionCommand:c},G.hostElement)}};
return G};
_.u(D5,_.J);_.P=D5.prototype;_.P.updateButtonOverrides=function(){if(!_.v("menu_renderer_label_update_upkillswitch")){var G=_.Q1(this.hostElement).querySelector("yt-button-view-model");G&&(G.buttonOverrides=this.buttonOverrides)}};
_.P.computeHasItems=function(){var G;return((G=this.topLevelButtonData)==null?void 0:G.length)||this.hasFlexibleItems};
_.P.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.P.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.eD(this.hostElement,{"--ytd-menu-renderer-button-color":_.Sx(this.data.iconColor)}))};
_.P.onStamperFinished=function(){this.JSC$14932_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.P.setupFlexibleMenu=function(){var G=this,c;(c=this.data)!=null&&c.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.qx(this.maybeUpdateFlexibleMenu,L5A,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){G.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.P.maybeFlushDebouncer=function(){if(_.v("web_replace_formatted_with_attributed_string")){var G;(G=this.topLevelButtons)==null||G.forEach(function(I){var R;(I=(R=I.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&Lkq(I)});
var c;(c=this.flexibleItemButtons)==null||c.forEach(function(I){var R;(I=(R=I.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&Lkq(I)})}};
_.P.resetFlexibleItems=function(){var G;if((G=this.data)!=null&&G.flexibleItems){_.v("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var c;this.flexAsTopLevelButtons=(c=this.data.flexibleItems)==null?void 0:c.map(function(I){return _.D(I,_.DHN).topLevelButton});
_.v("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.P.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.P.shrinkFlexibleMenu=function(){var G;(G=this.flexAsTopLevelButtons)!=null&&G.length&&(this.flexAsTopLevelButtons=[].concat(_.jn(this.flexAsTopLevelButtons.slice(0,-1))))};
_.P.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:sLV,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:sLV,events:!0}}};
_.P.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.detached=function(){this.icon="MORE_VERT"};
_.P.computeTopLevelButtonData=function(G){if(!G)return[];var c;G=(c=G==null?void 0:G.topLevelButtons)!=null?c:[];return _.rx.unsafeClone([].concat(_.jn(G)))};
_.P.computeItems=function(G,c){if(!G)return[];var I=[];if(c){var R=(G.flexibleItems||[]).map(function(m){return _.D(m,_.DHN)});
R=_.Q(R);for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,c.includes(Z.topLevelButton)||(Z=Z.menuItem)&&I.push(Z)}var K;G=(K=G==null?void 0:G.items)!=null?K:[];return[].concat(_.jn(I),_.jn(G))};
_.P.computeMenuActive=function(G,c){return G||c};
_.P.onPopupOpened=function(){this.overlayOpen=!0;_.Xl(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.P.onPopupClosed=function(){this.overlayOpen=!1;_.Xl(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.onPopupCanceled=function(){this.overlayOpen=!1;_.Xl(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.computeAccessibilityLabel=function(G){return this.get("accessibility.accessibilityData.label",G)};
_.P.isHidden=function(G,c){return this.tonalOverride||!G?!0:G.fetchMenuCommand||G.isDisabled&&G.disabledCommand?!1:!(c==null?0:c.length)};
_.P.isModernOverflowHidden=function(G,c){return this.tonalOverride&&G?G.fetchMenuCommand?!1:!(c==null?0:c.length):!0};
_.P.createMenuRendererVe=function(){var G=this.data.trackingParams,c=_.k0(),I=_.u6();return G&&c&&I?(G=_.kC(G),I=_.qj(7591),_.v("combine_ve_grafts")?_.CJ(_.DP(),I,G):_.Wd(c,G,I),I):null};
_.Nh.Object.defineProperties(D5.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.flexAsTopLevelButtons)==null||!G.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
D5.prototype.onPopupCanceled=D5.prototype.onPopupCanceled;D5.prototype.onPopupClosed=D5.prototype.onPopupClosed;D5.prototype.onPopupOpened=D5.prototype.onPopupOpened;D5.prototype.tonalOverrideChanged=D5.prototype.tonalOverrideChanged;D5.prototype.resetFlexibleItems=D5.prototype.resetFlexibleItems;D5.prototype.setupFlexibleMenu=D5.prototype.setupFlexibleMenu;D5.prototype.iconButtonColorChanged=D5.prototype.iconButtonColorChanged;D5.prototype.updateButtonOverrides=D5.prototype.updateButtonOverrides;
_.r([_.L(_.zQ),_.h("design:type",Object)],D5.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("#button-shape"),_.h("design:type",HTMLElement)],D5.prototype,"buttonShape",void 0);_.r([_.nH("#button"),_.h("design:type",Object)],D5.prototype,"button",void 0);
_.r([_.E(),_.h("design:type",Object)],D5.prototype,"data",void 0);_.r([_.E({computed:"computeTopLevelButtonData(data)"}),_.h("design:type",Array)],D5.prototype,"topLevelButtonData",void 0);_.r([_.E(),_.h("design:type",Array)],D5.prototype,"flexAsTopLevelButtons",void 0);_.r([_.E({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.h("design:type",Array)],D5.prototype,"items",void 0);_.r([_.E({value:"MORE_VERT"}),_.h("design:type",String)],D5.prototype,"icon",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],D5.prototype,"safeArea",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.h("design:type",Boolean)],D5.prototype,"menuActive",void 0);_.r([_.E(),_.h("design:type",Boolean)],D5.prototype,"menuFocused",void 0);_.r([_.E({value:"bottom"}),_.h("design:type",String)],D5.prototype,"buttonTooltipPosition",void 0);_.r([_.E(),_.h("design:type",Boolean)],D5.prototype,"overlayOpen",void 0);
_.r([_.E({value:!0}),_.h("design:type",Boolean)],D5.prototype,"forceIconButton",void 0);_.r([_.E(),_.h("design:type",Boolean)],D5.prototype,"styleActionButton",void 0);_.r([_.E(),_.h("design:type",Boolean)],D5.prototype,"disableTextTransformOnButtons",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],D5.prototype,"tonalOverride",void 0);_.r([_.E(),_.h("design:type",Object)],D5.prototype,"threeDotSize",void 0);
_.r([_.E(),_.h("design:type",Object)],D5.prototype,"threeDotButtonOverride",void 0);_.r([_.E(),_.h("design:type",Object)],D5.prototype,"isOverlay",void 0);_.r([_.E(),_.h("design:type",Object)],D5.prototype,"useOverlayDark",void 0);_.r([_.E({computed:"computeButtonOverride(tonalOverride)"}),_.h("design:type",Object)],D5.prototype,"buttonOverride",void 0);_.r([_.E(),_.h("design:type",Boolean)],D5.prototype,"minimizePipBreakages",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],D5.prototype,"hasCustomIconColor",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("flexAsTopLevelButtons"),_.h("design:type",Object),_.h("design:paramtypes",[])],D5.prototype,"hasFlexibleItems",null);_.r([_.E({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.h("design:type",Boolean)],D5.prototype,"hasItems",void 0);_.r([_.E(),_.h("design:type",Object)],D5.prototype,"topLevelIconsOnly",void 0);
_.r([_.wD("topLevelIconsOnly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"updateButtonOverrides",null);_.r([_.A("topLevelIconsOnly"),_.h("design:type",Object),_.h("design:paramtypes",[])],D5.prototype,"buttonOverrides",null);_.r([_.nH("#top-level-buttons-computed"),_.h("design:type",HTMLElement)],D5.prototype,"topLevelButtonsContainer",void 0);_.r([_.vB(".top-level-buttons > *"),_.h("design:type",Array)],D5.prototype,"topLevelButtons",void 0);
_.r([_.nH("#flexible-item-buttons"),_.h("design:type",HTMLElement)],D5.prototype,"flexibleItemButtonsContainer",void 0);_.r([_.vB("#flexible-item-buttons > *"),_.h("design:type",Array)],D5.prototype,"flexibleItemButtons",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"iconButtonColorChanged",null);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"setupFlexibleMenu",null);_.r([_.uO("topLevelIconsOnly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"resetFlexibleItems",null);_.r([_.wD("tonalOverride"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"tonalOverrideChanged",null);
_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"onPopupOpened",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"onPopupClosed",null);_.r([_.qY("yt-popup-canceled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D5.prototype,"onPopupCanceled",null);
_.B(D5,"ytd-menu-renderer",function(){if(hxK===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);hxK=G}G=hxK;return G},{mode:2});var A9A;var $zK;_.ov=_.W(function(G){var c=G.data;var I=function(){if(c().icon)a:{var Z={iconName:c().icon};for(var K=_.wH().resolve(_.ek),m=_.Q([12,24]),a=m.next();!a.done;a=m.next()){var O=a.value;a=Object.assign({},Z,{iconStyle:"youtube_fill",iconSize:O});O=Object.assign({},Z,{iconStyle:"youtube_outline",iconSize:O});if(K.resolveIcon(a)){Z=a;break a}if(K.resolveIcon(O)){Z=O;break a}}Z=void 0}else Z=void 0;return Z};
G={};var R={};return _.e("badge-shape",{class:_.O3("yt-badge-shape",function(){return $Gi(c().type)},(G["yt-badge-shape--overlay"]=function(){return c().isOverlay},G["yt-badge-shape--ads-include-dot"]=function(){return c().adsIncludeDot},G["yt-badge-shape--thumbnail-badge"]=function(){a:switch(c().type){case 17:case 18:case 19:var Z=!0;
break a;default:Z=!1}return Z},G["yt-badge-shape--status-badge"]=function(){a:switch(c().type){case 12:case 13:case 14:case 15:case 16:var Z=!0;
break a;default:Z=!1}return Z},G["yt-badge-shape--no-text"]=function(){return!c().text},G["yt-badge-shape--modern"]=function(){return c().modern||_.v("web_modern_badge_shape")},G)),
style:_.wi({"background-color":function(){var Z;return(Z=c().customColors)==null?void 0:Z.backgroundColor}}),
role:function(){return c().accessibilityText?"img":void 0},
"aria-label":function(){return c().accessibilityText}},_.e(_.l,{cond:function(){return c().animation},
then:function(Z){return _.e(_.XX,{className:"yt-badge-shape__icon",data:Z,animationName:function(){return Z().animationConfig.name||""}})}}),_.e(_.l,{cond:function(){var Z;
return I()&&!((Z=c())==null?0:Z.animation)},
then:function(){return _.e("div",{class:"yt-badge-shape__icon"},_.e(_.LQ,{data:function(){return I()}}))}}),_.e("div",{class:_.O3("yt-badge-shape__text",(R["yt-badge-shape__text--clip-text-overflow"]=function(){return c().clipTextOverflow},R["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(c().numBadgesInRow||0)>1},R))},function(){var Z;
return(Z=c())==null?void 0:Z.text}))},"Ca");
_.ov.idomCompat=!0;_.R1(_.ov,"badge-shape",{props:{data:_.bl}});var U6=function(){var G=_.J.apply(this,arguments)||this;G.systemIcons=_.v("kevlar_system_icons");G.animated=_.v("animated_live_badge_icon");G.useBadgeShape=_.v("web_badge_shape_defrag");return G};
_.u(U6,_.J);_.P=U6.prototype;_.P.addTooltips=function(){for(var G=_.Q1(this.hostElement).querySelectorAll(".badge"),c=0,I;I=G[c++];){var R=this.repeatElement.itemForElement(I);I=_.Q1(I);I.lastChild&&I.lastChild.is==="tp-yt-paper-tooltip"&&I.removeChild(I.lastChild);if(R=R.metadataBadgeRenderer&&R.metadataBadgeRenderer.tooltip){var Z=_.SP("tp-yt-paper-tooltip");(0,_.Om)(Z).textContent=R;Z.setAttribute("position","top");Z.setAttribute("aria-hidden","true");I.appendChild(Z)}}};
_.P.badgesChanged=function(){var G=this;_.kL().parkOrScheduleJob(function(){G.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.P.standaloneRoundedBadgeChanged=function(){var G=this.useRoundedBadge?this.useRoundedBadge:void 0;G&&(this.useRoundedBadge=G)};
_.P.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.computeStyle=function(G){_.v("kevlar_ytb_live_badges")&&G==="BADGE_STYLE_TYPE_LIVE_NOW"&&(G="badge-style-type-live-now-alternate");return G?G.toLowerCase().replace(/_/g,"-"):""};
_.P.computeRole=function(G){return this.computeAriaLabel(G)?"img":"status"};
_.P.computeAriaLabel=function(G){var c;return(G==null?void 0:(c=G.accessibilityData)==null?void 0:c.label)||(G==null?void 0:G.label)};
_.P.computeBadgeShape=function(G){if(G){var c,I;var R=LvC(G.style);var Z=AnO(G.style),K=G.label,m=((c=G.accessibilityData)==null?void 0:c.label)||G.label;a:switch(G.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":c=!0;break a;default:c=!1}var a=(I=G.icon)==null?void 0:I.iconType;a:switch(G.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":G=!0;break a;default:G=!1}R={type:R,brNzRatingBadgeType:Z,text:K,accessibilityText:m,
isOverlay:c,icon:a!=="PREMIUM"?a:void 0,modern:_.v("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:G}}else R={};return R};
_.P.updateComputedBadges=function(G,c,I){var R=this;(c=c?[c]:I?[I]:void 0)?this.computedBadges=c:this.computedBadges=G==null?void 0:G.filter(function(Z){var K;if((K=Z.metadataBadgeRenderer)==null?0:K.groups){K=!1;Z=_.Q(Z.metadataBadgeRenderer.groups);for(var m=Z.next();!m.done;m=Z.next()){m=m.value;var a=void 0;K=K||((a=R.hiddenBadgeGroups)==null?void 0:a.includes(m))}return!K}return!0})};
_.P.useFilledIcons=function(G){return _.v("kevlar_system_icons")&&(G==="AUDIO_BADGE"||G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE"||G==="SPONSORSHIP_STAR"||G==="PERSON_RADAR_FILLED"||G==="PERSON_RADAR")};
_.P.computeBadgeShapeStyle=function(G){return this.useBadgeShape?G==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||G==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":G==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.P.computeIcon=function(G){var c,I;G=G==null?void 0:(c=G.metadataBadgeRenderer)==null?void 0:(I=c.icon)==null?void 0:I.iconType;if(G!=="PREMIUM"&&G)return _.On(G)};
_.P.computeStandaloneBadge=function(G){var c;G=G==null?void 0:(c=G.icon)==null?void 0:c.iconType;return G==="PREMIUM_STANDALONE"||G==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
U6.prototype.hiddenBadgeGroupsChanged=U6.prototype.hiddenBadgeGroupsChanged;U6.prototype.standaloneBadgeChanged=U6.prototype.standaloneBadgeChanged;U6.prototype.standaloneRoundedBadgeChanged=U6.prototype.standaloneRoundedBadgeChanged;U6.prototype.badgesChanged=U6.prototype.badgesChanged;_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"hidden",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],U6.prototype,"componentBehavior",void 0);
_.r([_.E(),_.h("design:type",Array)],U6.prototype,"badges",void 0);_.r([_.E(),_.h("design:type",Object)],U6.prototype,"topStandaloneBadge",void 0);_.r([_.E(),_.h("design:type",Object)],U6.prototype,"bottomStandaloneBadge",void 0);_.r([_.E(),_.h("design:type",Object)],U6.prototype,"computedBadges",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"mediumFontAdBadge",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"useRoundedBadge",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"largeFontAdBadge",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"overlayAd",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"overlayPremium",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"noDotAdBadge",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"collectionTruncate",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"isThumbnailBadge",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],U6.prototype,"wrapBadges",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Number)],U6.prototype,"numBadgesInRow",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],U6.prototype,"systemIcons",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],U6.prototype,"animated",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],U6.prototype,"useBadgeShape",void 0);_.r([_.E({value:[]}),_.h("design:type",Array)],U6.prototype,"hiddenBadgeGroups",void 0);_.r([_.nH("#repeat"),_.h("design:type",pH)],U6.prototype,"repeatElement",void 0);_.r([_.uO("badges"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],U6.prototype,"badgesChanged",null);
_.r([_.uO("useRoundedBadge"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],U6.prototype,"standaloneRoundedBadgeChanged",null);_.r([_.uO("topStandaloneBadge","bottomStandaloneBadge"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],U6.prototype,"standaloneBadgeChanged",null);_.r([_.uO("hiddenBadgeGroups"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],U6.prototype,"hiddenBadgeGroupsChanged",null);
_.r([_.Jc({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],U6);
var S5K=_.PI()(U6,"ytd-badge-supported-renderer",function(){if($zK===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);$zK=G}G=$zK;return G},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Qc("kevlar_poly_si_batch_j053")?1:2});var uX=function(){var G=_.J.apply(this,arguments)||this;G.iconType="STAR";G.plaMedium=_.v("enable_pla_resizing_for_desktop_medium");G.plaLarge=_.v("enable_pla_resizing_for_desktop_large");G.plaExtraLarge=_.v("enable_pla_resizing_for_desktop_extra_large");G.standardizeIconSize=_.v("kevlar_system_icons");G.mediaHoverOverlayInitialVisibility=_.v("enable_top_landscape_image_button_command_web");G.noBottomMargin=!1;G.thumbnailObjectFit="CONTAIN";G.thumbnailFitHeight=!0;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return G};
_.u(uX,_.J);_.P=uX.prototype;_.P.created=function(){this.activeView=new rQ(this.hostElement)};
_.P.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",uX.JSC$14944_DEFAULT_CLICK_LOCATION_BEHAVIOR,uX.JSC$14944_CLICK_LOCATION_ID_MAP))};
_.P.onTap=function(G){this.onTapOrClick(G)};
_.P.onTapOrClick=function(G){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,G,!1)};
_.P.updateMediaBackgroundImage=function(){var G=this.get("data.image.thumbnail.thumbnails");G&&(G=_.ZX(G,0))&&_.eD(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+G+")"})};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var G=0;G<this.data.impressionEndpoints.length;G++){var c=this.data.impressionEndpoints[G];c.clickTrackingParams&&delete c.clickTrackingParams;_.wH().resolve(_.n4).resolveCommand(c,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var I;((I=this.data)==null?0:I.activeView)&&jH(this.activeView,this.data.activeView)}};
_.P.handleMuteAd=function(){};
_.P.attached=function(){var G=this;_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xw(G.activeView)})};
_.P.detached=function(){_.v("stop_av_measurement_on_detach")&&xw(this.activeView)};
_.Nh.Object.defineProperties(uX.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.titleText)return"";var c;return _.mJ("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((c=this.data)==null?void 0:c.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
uX.prototype.onTap=uX.prototype.onTap;uX.prototype.dataChanged=uX.prototype.dataChanged;
uX.JSC$14944_CLICK_LOCATION_ID_MAP=_.v("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"]]);
uX.JSC$14944_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.v("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"}];_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.nI),_.h("design:type",Object)],uX.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],uX.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],uX.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.L([_.HR.YtActionHandlerBehavior]),_.h("design:type",Object)],uX.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uX.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],uX.prototype,"clickCommand",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],uX.prototype,"miniMode",void 0);_.r([_.E(),_.h("design:type",String)],uX.prototype,"iconType",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"plaMedium",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"plaLarge",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"plaExtraLarge",void 0);_.r([_.A("data.titleText"),_.h("design:type",String),_.h("design:paramtypes",[])],uX.prototype,"titleAriaLabel",null);_.r([_.A("data.rating"),_.h("design:type",Object),_.h("design:paramtypes",[])],uX.prototype,"getRating",null);_.r([_.A("data.price"),_.h("design:type",Object),_.h("design:paramtypes",[])],uX.prototype,"getPrice",null);
_.r([_.A("data.thirdLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],uX.prototype,"getThirdLine",null);_.r([_.A("data.fourthLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],uX.prototype,"getFourthLine",null);_.r([_.A("data.fifthLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],uX.prototype,"getFifthLine",null);_.r([_.A("getRating"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"computeRatingHidden",null);
_.r([_.A("getPrice"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"computePriceHidden",null);_.r([_.A("getThirdLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"computeThirdLineHidden",null);_.r([_.A("getFourthLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"computeFourthLineHidden",null);_.r([_.A("getFifthLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"computeFifthLineHidden",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data.energyIcon"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"hasEnergyIcon",null);_.r([_.A("computePriceHidden","computeRatingHidden"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"computeSecondaryTextHidden",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"standardizeIconSize",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uX.prototype,"noBottomMargin",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.layout"),_.h("design:type",String),_.h("design:paramtypes",[])],uX.prototype,"layout",null);_.r([_.A("data.layout"),_.h("design:type",Object),_.h("design:paramtypes",[])],uX.prototype,"mediaThumbnailWidth",null);
_.r([_.A("layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uX.prototype,"useRoundedBadge",null);_.r([_.E(),_.h("design:type",String)],uX.prototype,"thumbnailObjectFit",void 0);_.r([_.E(),_.h("design:type",Object)],uX.prototype,"thumbnailFitHeight",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uX.prototype,"dataChanged",null);
_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uX.prototype,"onTap",null);_.r([_.Jc({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],uX);
_.B(uX,"ytd-display-ad-renderer",function(){if(A9A!==void 0)return A9A;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return A9A=G},{mode:1});var pJV;var MF2;var VFA;var SwB=new Map;var zsp=!1;var bX=function(){var G=_.J.apply(this,arguments)||this;G.DEFAULT_TOOLTIP_OFFSET="10";G.TOOLTIP_OFFSET_NO_BANNER="-8";G.badges=null;G.noEndpoints=!1;G.wrapText=!1;G.forceVerified=!1;G.tooltipPosition="top";G.compactStyle=!1;G.height=0;G.lineHeight=0;return G};
_.u(bX,_.J);_.P=bX.prototype;_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.P.attached=function(){var G=this;this.observer=new MutationObserver(function(c,I){G.handleResized();I.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.P.detached=function(){this.observer&&this.observer.disconnect()};
_.P.logTooltipEvent=function(){_.v("kevlar_wiz_tooltip_event_killswitch")||zsp||(_.pir("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),zsp=!0)};
_.P.handleWindowResized=function(){this.handleResized()};
_.P.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.P.onHeightChanged=function(){if(this.verified){var G=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.H1("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=G:this.textContainerEl.style.marginRight=G}};
_.P.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.H1("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.P.handleResized=function(){var G=this;this.verified&&_.dJ.addLowPriorityJob(function(){G.fitBackgroundToText();var c=getComputedStyle(G.hostElement).lineHeight;c&&(c=c.match(/\d+/))&&c.length&&(G.lineHeight=Number(c[0]));G.height=G.lineHeight&&!G.wrapText?G.lineHeight:G.textEl.offsetHeight})};
_.P.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var G=document.createRange(),c=_.Q1(this.textEl).children;c.length>0?G.selectNodeContents(c[0]):G.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(G.getBoundingClientRect().width)+"px"}};
_.P.computeChannelBadgeStyle=function(G){var c;if((G==null?0:(c=G.runs)==null?0:c.length)&&G.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Sx(G.runs[0].textColor)+";"};
_.Nh.Object.defineProperties(bX.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"?_.Cp(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var G=this.get("badges.0.metadataBadgeRenderer.tooltip");if(G)return G}return _.HY(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
bX.prototype.onLineHeightChanged=bX.prototype.onLineHeightChanged;bX.prototype.onHeightChanged=bX.prototype.onHeightChanged;bX.prototype.onChannelNameChanged=bX.prototype.onChannelNameChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],bX.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bX.prototype,"badges",void 0);_.r([_.E(),_.h("design:type",Object)],bX.prototype,"channelName",void 0);
_.r([_.E(),_.h("design:type",Object)],bX.prototype,"noEndpoints",void 0);_.r([_.E(),_.h("design:type",Object)],bX.prototype,"wrapText",void 0);_.r([_.E(),_.h("design:type",Object)],bX.prototype,"forceVerified",void 0);_.r([_.E(),_.h("design:type",Object)],bX.prototype,"tooltipPosition",void 0);_.r([_.E(),_.h("design:type",String)],bX.prototype,"tooltip",void 0);_.r([_.E(),_.h("design:type",Boolean)],bX.prototype,"hasChannelArt",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],bX.prototype,"compactStyle",void 0);_.r([_.nH("#text-container"),_.h("design:type",HTMLElement)],bX.prototype,"textContainerEl",void 0);_.r([_.nH("#text"),_.h("design:type",Object)],bX.prototype,"textEl",void 0);_.r([_.nH("#verified-tooltip"),_.h("design:type",HTMLElement)],bX.prototype,"verifiedTooltip",void 0);_.r([_.E(),_.h("design:type",Object)],bX.prototype,"height",void 0);
_.r([_.E(),_.h("design:type",Object)],bX.prototype,"lineHeight",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("badges","forceVerified"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],bX.prototype,"verified",null);_.r([_.A("badges","verified"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],bX.prototype,"hideBadges",null);_.r([_.A("channelName"),_.h("design:type",Object),_.h("design:paramtypes",[])],bX.prototype,"formattedName",null);
_.r([_.A("badges","verified","formattedName"),_.h("design:type",String),_.h("design:paramtypes",[])],bX.prototype,"tooltipText",null);_.r([_.A("hasChannelArt"),_.h("design:type",String),_.h("design:paramtypes",[])],bX.prototype,"tooltipOffset",null);_.r([_.wD("channelName"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bX.prototype,"onChannelNameChanged",null);
_.r([_.wD("height"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bX.prototype,"onHeightChanged",null);_.r([_.wD("lineHeight","height"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bX.prototype,"onLineHeightChanged",null);_.r([_.Jc({is:"ytd-channel-name",disableElementRegistration:!0})],bX);
_.B(bX,"ytd-channel-name",function(){if(VFA!==void 0)return VFA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return VFA=G},{mode:_.Qc("kevlar_poly_si_batch_j036")?1:2});var ke=function(){var G=_.J.apply(this,arguments)||this;G.standardizeIconSize=_.v("kevlar_system_icons");return G};
_.u(ke,_.J);ke.prototype.basicPaletteChanged=function(){var G;(G=this.data.color)!=null&&G.basicColorPaletteData&&_.A0(this.hostElement,this.data.color.basicColorPaletteData)};
ke.prototype.useFilledIcons=function(G){return _.v("kevlar_system_icons")&&(G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE")};
_.Nh.Object.defineProperties(ke.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return this.data.authorCreator||((G=this.data)==null?void 0:(c=G.color)==null?void 0:(I=c.basicColorPaletteData)==null?void 0:I.backgroundColor)}}});
ke.prototype.basicPaletteChanged=ke.prototype.basicPaletteChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ke.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],ke.prototype,"standardizeIconSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.authorUnifiedVerified"),_.h("design:type",Object),_.h("design:paramtypes",[])],ke.prototype,"verified",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ke.prototype,"creator",null);_.r([_.wD("data.color.basicColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ke.prototype,"basicPaletteChanged",null);_.r([_.Jc({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],ke);
_.B(ke,"ytd-author-comment-badge-renderer",function(){if(MF2!==void 0)return MF2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return MF2=G},{mode:1});var EUA;var s6=function(){return _.J.apply(this,arguments)||this};
_.u(s6,_.J);s6.prototype.computeThumbnailWidth=function(G){if(G==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],s6.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],s6.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],s6.prototype,"surface",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.v("enable_shrink_image_size_on_web_posts_singleton")}),_.h("design:type",Boolean)],s6.prototype,"searchSxsUx",void 0);_.r([_.E({reflectToAttribute:!0,value:_.v("enable_community_page_on_desktop")}),_.h("design:type",Boolean)],s6.prototype,"useSmallerPostImageAttachments",void 0);_.r([_.Jc({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],s6);
_.B(s6,"ytd-backstage-image-renderer",function(){if(EUA!==void 0)return EUA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return EUA=G},{mode:1});var J9V;var Li=function(){var G=_.J.apply(this,arguments)||this;G.isLoading=!1;G.selectedItemIndex=-1;return G};
_.u(Li,_.J);_.P=Li.prototype;_.P.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.P.computeIsImagePoll=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.P.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.P.thumbnailSrc=function(G){var c,I,R,Z;return(G==null?0:(c=G.thumbnails)==null?0:(I=c[0])==null?0:I.url)?_.dS((R=G.thumbnails)==null?void 0:(Z=R[0])==null?void 0:Z.url):void 0};
_.P.progressWidth=function(G){return"width:"+(G?G*100:0)+"%;"};
_.P.textAreaWidth=function(G){return this.isImagePoll?null:"width:"+(G?G*100:0)+"%;"};
_.P.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.P.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var G=this.data.choices,c=0;c<G.length;c++)if(G[c].selected){this.selectedItemIndex=c;break}};
_.P.onPopupClosed=function(G,c){G=Number(this.pollVotes.selected);c.confirmed&&(this.selectChoice(G,!1),_.ym(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.P.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.P.onYtCommentPollRevert=function(G,c){c&&(this.selectChoice(c.selectedChoiceIndex,!0),this.set("data.totalVotes",c.totalVotes))};
_.P.onYtServiceRequestSent=function(G,c){if(c.actions)for(G=0;G<c.actions.length;G++){var I=c.actions[G];_.D(I,cE)&&this.set("data.totalVotes",_.D(I,cE).totalVotes)}};
_.P.onYtServiceRequestCompleted=function(G){var c=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(c==="FEEDBACK_DESELECT"||c==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.Xl(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.P.getEndpoint=function(G,c){return c===G?this.data.choices[c].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.P.selectChoice=function(G,c){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var I=0;I<this.data.choices.length;I++){var R;if(G===this.selectedItemIndex){var Z=!1;var K=R=null}else R=(Z=I===G)?this.data.choices[I].voteRatioIfSelected:this.data.choices[I].voteRatioIfNotSelected,K=Z?this.data.choices[I].votePercentageIfSelected:this.data.choices[I].votePercentageIfNotSelected;this.set("data.choices."+I+".voteRatio",R);
this.set("data.choices."+I+".votePercentage",K);this.set("data.choices."+I+".selected",Z)}c||(this.isLoading=!0,(c=this.getEndpoint(G,this.selectedItemIndex))&&_.wH().resolve(_.n4).resolveCommand(c,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.Nh.Object.defineProperties(Li.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Li.prototype.onYtServiceRequestCompleted=Li.prototype.onYtServiceRequestCompleted;Li.prototype.onYtServiceRequestSent=Li.prototype.onYtServiceRequestSent;Li.prototype.onYtCommentPollRevert=Li.prototype.onYtCommentPollRevert;Li.prototype.onPopupClosed=Li.prototype.onPopupClosed;Li.prototype.dataChanged=Li.prototype.dataChanged;_.r([_.L(_.uY),_.h("design:type",Object)],Li.prototype,"paperItemBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],Li.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Li.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Li.prototype,"isLoading",void 0);_.r([_.E({computed:"computeIsChannelOwner(data.choices)"}),_.h("design:type",Boolean)],Li.prototype,"isChannelOwner",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.h("design:type",Boolean)],Li.prototype,"isImagePoll",void 0);_.r([_.E({computed:"computeIsTotalVotesDisabled(data)"}),_.h("design:type",Boolean)],Li.prototype,"isTotalVotesDisabled",void 0);_.r([_.E(),_.h("design:type",Object)],Li.prototype,"previousPollInfo",void 0);_.r([_.E(),_.h("design:type",Object)],Li.prototype,"selectedItemIndex",void 0);_.r([_.nH("#poll-votes"),_.h("design:type",Object)],Li.prototype,"pollVotes",void 0);
_.r([_.A("isChannelOwner"),_.h("design:type",Object),_.h("design:paramtypes",[])],Li.prototype,"endpointStyle",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Li.prototype,"dataChanged",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Li.prototype,"onPopupClosed",null);
_.r([_.qY("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Li.prototype,"onYtCommentPollRevert",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],Li.prototype,"onYtServiceRequestSent",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Li.prototype,"onYtServiceRequestCompleted",null);_.r([_.Jc({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Li);
_.B(Li,"ytd-backstage-poll-renderer",function(){if(J9V!==void 0)return J9V;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" aria-selected$="[[item.selected]]" name="[[index]]" role="option" 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" default-to-filled="true" hidden="[[!item.selected]]" icon="check-circle"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return J9V=G},{mode:2});var W5p;var iXA={autoplay:!1,loop:!1},f72={simpleText:""},AJ=function(){var G=_.J.apply(this,arguments)||this;G.isLoading=!1;G.usesPanelLockup=!1;G.selectedItemIndex=-1;G.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},iXA,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});G.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},iXA,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});G.correctnessAnimationProps=[];G.correctnessAnimationRefs=[];return G};
_.u(AJ,_.J);_.P=AJ.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.P.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.P.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.P.computeIsImageQuiz=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.P.onExplanationChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var G=this.data.choices;if(G){this.maybeInitializeQuizLotties(G);for(var c=0;c<G.length;c++)if(G[c].isSelected||this.isChannelOwner&&G[c].isCorrect){this.selectedItemIndex=c;return}this.selectedItemIndex=-1}}};
_.P.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var G=this.selectedItemIndex,c=Number(this.quizVotes.selected);this.selectChoice(c);this.sendVoteAction(c,G);this.quizVotes.selected=-1;var I;G=!((I=this.data)==null?0:I.enableAnimation);this.maybePlayAnswerAnimations(G)}};
_.P.onYtCommentPollRevert=function(G,c){c&&(this.selectChoice(c.selectedChoiceIndex),this.set("data.totalVotes",c.totalVotes))};
_.P.onYtServiceRequestSent=function(G,c){if(c.actions)for(G=_.Q(c.actions),c=G.next();!c.done;c=G.next())(c=_.D(c.value,cE))&&this.set("data.totalVotes",c.totalVotes)};
_.P.onYtServiceRequestCompleted=function(G){var c=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(c==="FEEDBACK_DESELECT"||c==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.Xl(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.P.getAnimationPropsForChoiceIndex=function(G,c){return c[G]};
_.P.maybePlayAnswerAnimations=function(G){G=G===void 0?!1:G;var c;if((c=this.data)!=null&&c.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){c=_.Q(this.correctnessAnimationRefs);for(var I=c.next();!I.done;I=c.next()){var R=void 0,Z=void 0;(R=I.value)==null||(Z=R.lottieEl)==null||Z.stop()}if(!(this.selectedItemIndex<0)){c=0;G&&(c=this.isCorrect?37:25);var K,m;(K=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(m=K.lottieEl)==null||m.goToAndPlay(G?c:0,!0);if(!(this.isCorrect||
(K=this.data.choices.findIndex(function(q){return q.isCorrect}),K<0))){var a,O;
(O=(a=this.correctnessAnimationRefs[K])==null?void 0:a.lottieEl)==null||O.goToAndPlay(37,!0);var N;a=(N=this.fadeContainers)==null?void 0:N.item(K);!G&&a&&this.fadeIn(a)}}}};
_.P.thumbnailSrc=function(G){var c,I,R,Z;return(G==null?0:(c=G.thumbnails)==null?0:(I=c[0])==null?0:I.url)?_.dS((R=G.thumbnails)==null?void 0:(Z=R[0])==null?void 0:Z.url):void 0};
_.P.a11yVotedText=function(G,c){var I,R,Z=((I=this.data)==null?void 0:(R=I.correctVotedText)==null?void 0:R.simpleText)||"",K,m;I=((K=this.data)==null?void 0:(m=K.votedText)==null?void 0:m.simpleText)||"";if(!c)return"";var a,O;if((a=this.data)==null?0:(O=a.choices)==null?0:O[G].isCorrect)return Z;var N,q;return((N=this.data)==null?0:(q=N.choices)==null?0:q[G].isSelected)?I:""};
_.P.getEndpoint=function(G,c){return c===G?this.data.choices[G].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.P.sendVoteAction=function(G,c){if(G=this.getEndpoint(G,c))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(G)};
_.P.selectChoice=function(G){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var c=0;c<this.data.choices.length;c++)this.set("data.choices."+c+".isSelected",G===this.selectedItemIndex?!1:c===G);this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.P.maybeInitializeQuizLotties=function(G){var c=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=G.map(function(I){return{animationConfig:I.isCorrect?c.baseCorrectLottiePlayerAnimationConfig:c.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){c.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(I){return I.animationRef||{}})};
_.P.fadeIn=function(G){G.classList.add("fade-in");_.mq(_.dJ,function(){G.classList.remove("fade-in")},900)};
_.Nh.Object.defineProperties(AJ.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.HY(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:(c=G.choices)==null?void 0:c.some(function(I){return I.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null||!G.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?f72:this.data.choices[this.selectedItemIndex].explanation||f72}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null||!G.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
AJ.prototype.onYtServiceRequestCompleted=AJ.prototype.onYtServiceRequestCompleted;AJ.prototype.onYtServiceRequestSent=AJ.prototype.onYtServiceRequestSent;AJ.prototype.onYtCommentPollRevert=AJ.prototype.onYtCommentPollRevert;AJ.prototype.dataChanged=AJ.prototype.dataChanged;AJ.prototype.onExplanationChanged=AJ.prototype.onExplanationChanged;_.r([_.L(_.uY),_.h("design:type",Object)],AJ.prototype,"paperItemBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],AJ.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.$r.YtTaskEmitterBehavior),_.h("design:type",Object)],AJ.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],AJ.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],AJ.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],AJ.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Object)],AJ.prototype,"usesPanelLockup",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.h("design:type",Boolean)],AJ.prototype,"isChannelOwner",void 0);_.r([_.E({computed:"computeIsTotalVotesDisabled(data)"}),_.h("design:type",Boolean)],AJ.prototype,"isTotalVotesDisabled",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.h("design:type",Boolean)],AJ.prototype,"isImageQuiz",void 0);_.r([_.E(),_.h("design:type",Object)],AJ.prototype,"previousQuizInfo",void 0);_.r([_.E(),_.h("design:type",Object)],AJ.prototype,"selectedItemIndex",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data","usesPanelLockup"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AJ.prototype,"shouldUseModernUi",null);
_.r([_.vB(".fade-container"),_.h("design:type",Object)],AJ.prototype,"fadeContainers",void 0);_.r([_.E(),_.h("design:type",Array)],AJ.prototype,"correctnessAnimationProps",void 0);_.r([_.A("explanation","showCorrectAnswer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AJ.prototype,"showExplanation",null);_.r([_.A("isChannelOwner","isAttempted"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AJ.prototype,"showCorrectAnswer",null);
_.r([_.A("isChannelOwner","isAttempted","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AJ.prototype,"isQuizAnsweringDisabled",null);_.r([_.A("isQuizAnsweringDisabled"),_.h("design:type",Object),_.h("design:paramtypes",[])],AJ.prototype,"endpointStyle",null);_.r([_.A("data","selectedItemIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AJ.prototype,"isAttempted",null);
_.r([_.A("data","selectedItemIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],AJ.prototype,"explanation",null);_.r([_.A("data","selectedItemIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AJ.prototype,"isCorrect",null);_.r([_.nH("ytd-expander"),_.h("design:type",Object)],AJ.prototype,"expander",void 0);_.r([_.nH("#quiz-votes"),_.h("design:type",Object)],AJ.prototype,"quizVotes",void 0);
_.r([_.wD("explanation"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AJ.prototype,"onExplanationChanged",null);_.r([_.wD("data","isChannelOwner"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AJ.prototype,"dataChanged",null);_.r([_.qY("yt-comment-quiz-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],AJ.prototype,"onYtCommentPollRevert",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],AJ.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],AJ.prototype,"onYtServiceRequestCompleted",null);_.r([_.Jc({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],AJ);
_.B(AJ,"ytd-backstage-quiz-renderer",function(){if(W5p!==void 0)return W5p;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-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');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return W5p=G},{mode:1});var BkK;var $e=function(){return _.J.apply(this,arguments)||this};
_.u($e,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$e.prototype,"data",void 0);_.r([_.Jc({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],$e);
_.B($e,"ytd-post-uploaded-video-renderer",function(){if(BkK!==void 0)return BkK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return BkK=G},{mode:1});var r9A;var SJ=function(){return _.J.apply(this,arguments)||this};
_.u(SJ,_.J);SJ.prototype.useFilledIcons=function(G){return G==="SPONSORSHIP_STAR"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],SJ.prototype,"data",void 0);_.r([_.Jc({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],SJ);
var jLB=_.PI()(SJ,"ytd-sponsors-only-badge-renderer",function(){if(r9A===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);r9A=G}G=r9A;return G},{allowedProps:["data"],
mode:1});var xze;var pi=function(){return _.J.apply(this,arguments)||this};
_.u(pi,_.J);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],pi.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pi.prototype,"data",void 0);_.r([_.Jc({is:"ytd-child-video-renderer",disableElementRegistration:!0})],pi);
_.B(pi,"ytd-child-video-renderer",function(){if(xze!==void 0)return xze;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return xze=G},{mode:1});var tF2;var hsK;var MI=function(){var G=_.J.apply(this,arguments)||this;G.size=0;G.fallbackImageSize={height:void 0,width:9999};G.webModernCollections=!1;return G};
_.u(MI,_.J);_.P=MI.prototype;_.P.computeBlurredImageSize=function(G){return G?{height:G*2,width:G*2}:this.fallbackImageSize};
_.P.computeImageSize=function(G){return G?{height:G,width:G}:this.fallbackImageSize};
_.P.computeObjectFit=function(G){return G?"FILL":"CONTAIN"};
_.P.computePreserve=function(G){return G?!0:!1};
_.P.setBackground=function(){var G,c;if((G=this.data)==null?0:(c=G.thumbnail)==null?0:c.sampledThumbnailColor)G=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+G.red+","+G.green+","+G.blue+",1)"};
MI.prototype.setBackground=MI.prototype.setBackground;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],MI.prototype,"watchFeedThumbnail",void 0);_.r([_.E(),_.h("design:type",Object)],MI.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],MI.prototype,"size",void 0);
_.r([_.E({computed:"computeBlurredImageSize(size)"}),_.h("design:type",Object)],MI.prototype,"blurredImageSize",void 0);_.r([_.E({computed:"computeImageSize(size)"}),_.h("design:type",Object)],MI.prototype,"imageSize",void 0);_.r([_.E({computed:"computePreserve(size)"}),_.h("design:type",String)],MI.prototype,"preserve",void 0);_.r([_.E({computed:"computeObjectFit(size)"}),_.h("design:type",String)],MI.prototype,"objectFit",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],MI.prototype,"webModernCollections",void 0);_.r([_.wD("data.thumbnail.sampledThumbnailColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MI.prototype,"setBackground",null);_.r([_.Jc({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],MI);
_.B(MI,"ytd-playlist-custom-thumbnail-renderer",function(){if(hsK!==void 0)return hsK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return hsK=G},{mode:1});var dze;var Vk=function(){return _.J.apply(this,arguments)||this};
_.u(Vk,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Vk.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],Vk.prototype,"width",void 0);_.r([_.Jc({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Vk);
_.B(Vk,"ytd-playlist-video-thumbnail-renderer",function(){if(dze!==void 0)return dze;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return dze=G},{mode:1});var C4K;var zl=function(){return _.J.apply(this,arguments)||this};
_.u(zl,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zl.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],zl.prototype,"width",void 0);_.r([_.Jc({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],zl);
_.B(zl,"ytd-show-custom-thumbnail-renderer",function(){if(C4K!==void 0)return C4K;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return C4K=G},{mode:1});var HXK;var E6=function(){return _.J.apply(this,arguments)||this};
_.u(E6,_.J);E6.prototype.useFilledIcons=function(G){return G==="MUSIC"||G==="COURSE"};
E6.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=MD(this.overlayColor,"0.8");else if(this.overlayColor){var G=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+G.red+","+G.green+","+G.blue+",0.8)"}};
_.Nh.Object.defineProperties(E6.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)}}});
E6.prototype.overlayColorChanged=E6.prototype.overlayColorChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],E6.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],E6.prototype,"overlayColor",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.icon","data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],E6.prototype,"overlayStyle",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data.icon","data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],E6.prototype,"overlayTextStyle",null);_.r([_.wD("overlayColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E6.prototype,"overlayColorChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],E6);
_.B(E6,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(HXK!==void 0)return HXK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return HXK=G},{mode:1});var XJe;var JJ=function(){var G=_.J.apply(this,arguments)||this;G.active=!1;return G};
_.u(JJ,_.J);JJ.prototype.computeIsSpinnerHidden=function(G){return(G==null?void 0:G.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
JJ.prototype.computeOverlayIcon=function(G){return(G==null?void 0:G.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(G==null?void 0:G.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],JJ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],JJ.prototype,"active",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],JJ);
_.B(JJ,"ytd-thumbnail-overlay-downloading-renderer",function(){if(XJe!==void 0)return XJe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return XJe=G},{mode:1});var y9N;var W$=function(){return _.J.apply(this,arguments)||this};
_.u(W$,_.J);_.Nh.Object.defineProperties(W$.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],W$.prototype,"data",void 0);_.r([_.A("data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],W$.prototype,"text",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],W$);
_.B(W$,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(y9N!==void 0)return y9N;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return y9N=G},{mode:1});var gUe,Y50=function(){if(gUe!==void 0)return gUe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return gUe=G};var iX=function(){return _.J.apply(this,arguments)||this};
_.u(iX,_.J);_.Nh.Object.defineProperties(iX,{template:{configurable:!0,enumerable:!0,get:function(){return Y50()}}});
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],iX.prototype,"animateEqualizer",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],iX);_.PI()(iX,"ytd-thumbnail-overlay-equalizer",function(){return Y50()},{allowedProps:["animateEqualizer"],
mode:1});var GDV;var fi=function(){var G=_.J.apply(this,arguments)||this;G.nowPlayingBadge=_.v("web_now_playing_badge");G.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return G};
_.u(fi,_.J);fi.prototype.activeChanged=function(){var G=this;_.v("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.O$(this,function(){_.Xl(G.hostElement,"yt-playlist-lockup-now-playing-active",G)})};
fi.prototype.onMiniplayerPlayStateChanged=function(G){var c,I=(c=_.D(_.ck().currentEndpoint,_.fR))==null?void 0:c.videoId;this.isVideoPlaying=G&&(_.v("web_limit_now_playing_animation_killswitch")||this.videoId===I)};
fi.prototype.activeChanged=fi.prototype.activeChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],fi.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],fi.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],fi.prototype,"isVideoPlaying",void 0);_.r([_.E(),_.h("design:type",String)],fi.prototype,"videoId",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],fi.prototype,"equalizerOnly",void 0);_.r([_.E(),_.h("design:type",Boolean)],fi.prototype,"isActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],fi.prototype,"nowPlayingBadge",void 0);_.r([_.wD("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fi.prototype,"activeChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],fi);
_.B(fi,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(GDV!==void 0)return GDV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return GDV=G},{mode:1});var co0;var B$=function(){return _.J.apply(this,arguments)||this};
_.u(B$,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],B$.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],B$);
_.B(B$,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(co0!==void 0)return co0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return co0=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var Itk;var rr=function(){return _.J.apply(this,arguments)||this};
_.u(rr,_.J);rr.prototype.onDurationChanged=function(){var G,c;_.Q1(this.hostElement).querySelector("#progress").style.width=((c=(G=this.data)==null?void 0:G.percentDurationWatched)!=null?c:0)+"%"};
rr.prototype.onDurationChanged=rr.prototype.onDurationChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],rr.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rr.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],rr.prototype,"isLive",void 0);_.r([_.wD("data.percentDurationWatched"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rr.prototype,"onDurationChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],rr);
_.B(rr,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Itk!==void 0)return Itk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Itk=G},{mode:1});var R62;var jJ=function(){var G=_.J.apply(this,arguments)||this;G.bottomPanel=!1;G.richGridOverlay=!1;G.watchFeedOverlay=!1;G.isCompact=!1;return G};
_.u(jJ,_.J);jJ.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Nh.Object.defineProperties(jJ.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:(c=G.icon)==null?void 0:c.iconType)==="PLAY_ALL"&&_.v("kevlar_system_icons")}}});
jJ.prototype.widthChanged=jJ.prototype.widthChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jJ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],jJ.prototype,"width",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jJ.prototype,"bottomPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jJ.prototype,"richGridOverlay",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jJ.prototype,"watchFeedOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jJ.prototype,"isCompact",void 0);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],jJ.prototype,"isIconFilled",null);_.r([_.wD("width","watchFeedOverlay"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jJ.prototype,"widthChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],jJ);
_.B(jJ,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(R62!==void 0)return R62;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return R62=G},{mode:1});var Zae;var Kmp=["CLIP","SHORTS"],xe=function(){var G=_.J.apply(this,arguments)||this;G.animated=_.v("animated_live_badge_icon");G.hasIcon=!1;G.updateTimerIntervalId=0;G.timeSinceLive=0;return G};
_.u(xe,_.J);_.P=xe.prototype;_.P.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.P.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.P.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.P.hasIconOrText=function(){var G,c;return!!(((G=this.data)==null?0:G.icon)||((c=this.data)==null?0:c.text))};
_.P.initializeLiveBadgeTimer=function(){var G=this,c,I=(c=this.liveBadgeData)==null?void 0:c.startTimestampSec;if(I&&this.canShowLiveBadgeTimer()){var R;c=Number((R=this.liveBadgeData)==null?void 0:R.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(I);this.updateTimerIntervalId=_.s2(function(){G.canShowLiveBadgeTimer()?G.timeSinceLive++:(G.timeSinceLive=0,window.clearInterval(G.updateTimerIntervalId))},c)}else this.timeSinceLive=0};
_.P.canShowLiveBadgeTimer=function(){var G=Date.now(),c,I;return G<(Number((c=this.liveBadgeData)==null?void 0:c.endTimestampSec)-1)*1E3&&G>Number((I=this.liveBadgeData)==null?void 0:I.startTimestampSec)*1E3};
_.Nh.Object.defineProperties(xe.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.MZi(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return Kmp.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
xe.prototype.initializeLiveBadgeTimer=xe.prototype.initializeLiveBadgeTimer;xe.prototype.dataChanged=xe.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],xe.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xe.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],xe.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],xe.prototype,"animated",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.h("design:type",Boolean)],xe.prototype,"hideTimeStatus",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],xe.prototype,"hasIcon",void 0);_.r([_.E(),_.h("design:type",Object)],xe.prototype,"timeSinceLive",void 0);_.r([_.A("data","timeSinceLive"),_.h("design:type",Object),_.h("design:paramtypes",[])],xe.prototype,"badgeShapeData",null);
_.r([_.A("data","overlayType"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xe.prototype,"hideBadgeShape",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xe.prototype,"dataChanged",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],xe.prototype,"overlayStyle",null);
_.r([_.A("data.liveBadgeData"),_.h("design:type",Object),_.h("design:paramtypes",[])],xe.prototype,"liveBadgeData",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.type"),_.h("design:type",Object),_.h("design:paramtypes",[])],xe.prototype,"overlayType",null);_.r([_.A("overlayType","overlayStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xe.prototype,"useFilledIcon",null);
_.r([_.uO("liveBadgeData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xe.prototype,"initializeLiveBadgeTimer",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],xe);
_.B(xe,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Zae!==void 0)return Zae;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Zae=G},{mode:_.Qc("kevlar_poly_si_batch_j035")?1:2});var P_e;var tJ=function(){return _.J.apply(this,arguments)||this};
_.u(tJ,_.J);tJ.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"}}}}};
tJ.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(G){if(this.hasPlaybackProgressBar)return{percentDurationWatched:G.percentDurationWatched}};
tJ.prototype.computeHasPlaybackProgressBar=function(G){return!!G.percentDurationWatched&&G.percentDurationWatched>0};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tJ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.h("design:type",Boolean)],tJ.prototype,"hasPlaybackProgressBar",void 0);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],tJ);
_.B(tJ,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(P_e!==void 0)return P_e;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return P_e=G},{mode:1});var QCk;var mLK=_.W(function(G){var c=G.data;var I=G.children;var R=function(){return!!c().doubleStack},Z=function(){return!!c().includeStackHeight};
return _.e("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!c().experimentEnabled}},_.e(_.l,{cond:c,
then:function(){var K={};return _.e(_.FG,null,_.e(_.l,{cond:Z,then:function(){var m={};return _.e("div",{class:_.O3("ytCollectionsStackSpacer",(m.ytCollectionsStackSpacerDoubleStack=R,m))})}}),_.e("div",{class:_.O3((K.ytCollectionsStackRelativeStack=Z,K))},_.e(_.l,{cond:R,
then:function(){var m={};return _.e("div",{class:_.O3("ytCollectionsStackCollectionStack2",function(){return c().customClassName2ndStack},(m.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return c().enableResponsiveMode},m)),
style:_.wi({"background-color":function(){return zxg(c())}})})}}),_.e("div",{class:_.O3("ytCollectionsStackCollectionStack1",function(){return c().customClassName1stStack},function(){return VZU(c().thumbnailSize?c().thumbnailSize:"medium")}),
style:_.wi({"background-color":function(){return zxg(c())}})}),I))}}))},"Da");_.R1(mLK,"yt-collections-stack",{props:{data:_.bl}});var hJ=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};G.webModernCollections=!1;G.isSearch=!1;G.isDoubleStack=!1;G.thumbnailSize="medium";return G};
_.u(hJ,_.J);_.P=hJ.prototype;
_.P.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.P.getThumbnailDetails=function(G){if(G!=null&&G.thumbnailRenderer){var c=G.thumbnailRenderer,I;if((I=c.playlistVideoThumbnailRenderer)==null?0:I.thumbnail)return c.playlistVideoThumbnailRenderer.thumbnail;var R;if((R=c.playlistCustomThumbnailRenderer)==null?0:R.thumbnail)return c.playlistCustomThumbnailRenderer.thumbnail;G=G.thumbnailRenderer;var Z;if((Z=G.showCustomThumbnailRenderer)==null?0:Z.thumbnail)return G.showCustomThumbnailRenderer.thumbnail}};
_.P.computeOverlayColor=function(G){var c,I;if((c=this.getThumbnailDetails(G))==null?0:(I=c.darkColorPalette)==null?0:I.section2Color)return this.getThumbnailDetails(G).darkColorPalette.section2Color;var R;return(R=this.getThumbnailDetails(G))==null?void 0:R.sampledThumbnailColor};
_.P.computeWebModernCollections=function(G){if(G==null||!G.thumbnailOverlays)return!1;G=_.Q(G.thumbnailOverlays);for(var c=G.next();!c.done;c=G.next()){var I=void 0;if((I=c.value)==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.P.computeNavigationEndpoint=function(G){return rtr(G==null?void 0:G.navigationEndpoint)};
_.Nh.Object.defineProperties(hJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:G==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:G==null?void 0:G.vibrantColorPalette,darkColorPalette:G==null?void 0:G.darkColorPalette,experimentEnabled:!0}}}});
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],hJ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(wPp),_.h("design:type",Object)],hJ.prototype,"ytdThumbnailBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],hJ.prototype,"componentBehavior",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],hJ.prototype,"watchFeedThumbnail",void 0);_.r([_.E(),_.h("design:type",Number)],hJ.prototype,"customThumbnailSize",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],hJ.prototype,"hideAria",void 0);_.r([_.E(),_.h("design:type",Object)],hJ.prototype,"data",void 0);_.r([_.E({computed:"computeOverlayColor(data)"}),_.h("design:type",Object)],hJ.prototype,"overlayColor",void 0);
_.r([_.E({computed:"computeWebModernCollections(data)"}),_.h("design:type",Object)],hJ.prototype,"webModernCollections",void 0);_.r([_.E({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],hJ.prototype,"computedNavigationEndpoint",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],hJ.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],hJ.prototype,"isDoubleStack",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],hJ.prototype,"thumbnailSize",void 0);_.r([_.A("data","isDoubleStack","thumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],hJ.prototype,"collectionStack",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],hJ);
_.B(hJ,"ytd-playlist-thumbnail",function(){if(QCk!==void 0)return QCk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return QCk=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var atN;_.R1(_.W(function(G){return _.e("yt-text-view-model",{class:_.O3("ytTextViewModelHost")},_.e(_.ul,{text:function(){return G.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.bl}});var dr=function(){var G=_.J.apply(this,arguments)||this;G.noEndpoints=!1;G.amsterdamPostMvp=_.v("web_amsterdam_post_mvp_playlists");G.badges=[];G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.u(dr,_.J);_.P=dr.prototype;_.P.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.P.getMetadata=function(G){if(!G)return[];var c=[],I=G.shortViewCountText||G.viewCountText;I&&c.push(_.HY(I));G.publishedTimeText&&c.push(_.HY(G.publishedTimeText));G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&c.push(_.pe(_.HY(G.upcomingEventData.upcomingEventText),Number(G.upcomingEventData.startTime)));return c};
_.P.observeDataForBylineSeparator=function(){this.data&&_.as(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.P.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Sx(this.metadataColor)};
_.P.getSimpleString=function(G){return _.HY(G)};
_.P.isBylineHidden=function(G){return this.noByline||!((G==null?0:G.longBylineText)||(G==null?0:G.shortBylineText))};
_.P.isMetadataHidden=function(G){var c;return((c=this.getMetadata(G))==null?void 0:c.length)===0};
_.P.isBylineMetadataSeparatorHidden=function(G){return this.isMetadataHidden(G)||!this.shouldShowVideoInfo};
_.P.isLongByline=function(G,c){return c&&!(G==null||!G.longBylineText)};
_.Nh.Object.defineProperties(dr.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var G;return this.amsterdamPostMvp&&!((G=this.data)==null||!G.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
dr.prototype.metadataColorChanged=dr.prototype.metadataColorChanged;dr.prototype.observeDataForBylineSeparator=dr.prototype.observeDataForBylineSeparator;_.r([_.L(_.wQ),_.h("design:type",Object)],dr.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dr.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],dr.prototype,"noEndpoints",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dr.prototype,"isSlimShort",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dr.prototype,"radioMeta",void 0);_.r([_.E({selector:_.J0}),_.h("design:type",Object)],dr.prototype,"isGridViewEnabled",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dr.prototype,"richMeta",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],dr.prototype,"amsterdamPostMvp",void 0);
_.r([_.E(),_.h("design:type",Boolean)],dr.prototype,"noByline",void 0);_.r([_.E({computed:"isLongByline(data, radioMeta)"}),_.h("design:type",Boolean)],dr.prototype,"longByline",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dr.prototype,"truncateMetadataLine",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dr.prototype,"miniMode",void 0);_.r([_.E(),_.h("design:type",Number)],dr.prototype,"metadataColor",void 0);
_.r([_.E(),_.h("design:type",Array)],dr.prototype,"badges",void 0);_.r([_.E({selector:_.E4,selectorArgs:["data.videoId"]}),_.h("design:type",String)],dr.prototype,"transferState",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dr.prototype,"isDownloading",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dr.prototype,"typographyBump",void 0);_.r([_.nH("#metadata-line"),_.h("design:type",HTMLElement)],dr.prototype,"metadataLine",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dr.prototype,"observeDataForBylineSeparator",null);_.r([_.wD("metadataColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dr.prototype,"metadataColorChanged",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],dr.prototype,"shouldShowVideoInfo",null);
_.r([_.A("badges"),_.h("design:type",String),_.h("design:paramtypes",[])],dr.prototype,"inlineBadgeClass",null);_.r([_.A("longByline"),_.h("design:type",String),_.h("design:paramtypes",[])],dr.prototype,"longBylineClass",null);_.r([_.A("data","longByline"),_.h("design:type",Object),_.h("design:paramtypes",[])],dr.prototype,"bylineText",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dr.prototype,"hasAttributedBylineText",null);
_.r([_.A("isGridViewEnabled","data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dr.prototype,"watchFeedBigThumbs",null);_.r([_.Jc({is:"ytd-video-meta-block",disableElementRegistration:!0})],dr);
_.B(dr,"ytd-video-meta-block",function(){if(atN!==void 0)return atN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return atN=G},{mode:_.Qc("kevlar_poly_si_batch_j080")?1:2});_.Su("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Ci=function(){var G=_.J.apply(this,arguments)||this;G.displayItemCount=2;G.isBackstagePlaylist=!1;G.isPostCompactPlaylist=!1;G.shouldShowChannelThumbnail=!1;return G};
_.u(Ci,_.J);_.P=Ci.prototype;_.P.computeFirstVideos=function(G,c){return G===void 0||c===void 0?[]:G.slice(0,c)};
_.P.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var G=this.data.thumbnailRenderer;G.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",G.playlistVideoThumbnailRenderer.thumbnail);G.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",G.playlistCustomThumbnailRenderer.thumbnail)}};
_.P.computeThumbnailHeight=function(G,c,I,R,Z){return R?Z==="BIG"?280:Z==="MASSIVE"?337:234:I?240:c?72:G?118:138};
_.P.computeThumbnailWidth=function(G,c,I,R,Z){return R?Z==="MEDIUM"?450:Z==="BIG"?500:Z==="MASSIVE"?600:420:I?360:c?128:G?210:246};
_.P.computeUseBiggerThumbs=function(G){return G&&_.v("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelThumbnail=function(G,c){return G&&!(c==null||!c.channelThumbnail)};
_.Nh.Object.defineProperties(Ci.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Ci.prototype.dataChanged=Ci.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],Ci.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Ci.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ci.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Ci.prototype,"displayItemCount",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ci.prototype,"isBackstagePlaylist",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ci.prototype,"isPostCompactPlaylist",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ci.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.h("design:type",Boolean)],Ci.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],Ci.prototype,"biggerThumbsStyle",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ci.prototype,"isDownloads",void 0);_.r([_.E({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.h("design:type",Object)],Ci.prototype,"shouldShowChannelThumbnail",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ci.prototype,"dataChanged",null);
_.r([_.A("isSearch"),_.h("design:type",String),_.h("design:paramtypes",[])],Ci.prototype,"stackThumbnailSize",null);_.r([_.Jc({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Ci);
_.B(Ci,"ytd-playlist-renderer",function(){if(tF2===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);tF2=G}G=tF2;return G},{mode:1});var TsN;var OaN;var H$=function(){var G=_.J.apply(this,arguments)||this;G.startX=0;return G};
_.u(H$,_.J);H$.prototype.onEndpointMouseDown=function(G){this.startX=G.clientX};
H$.prototype.onEndpointClick=function(G){this.startX!==G.clientX&&(G.preventDefault(),G.stopPropagation())};
H$.prototype.computeObjectFit=function(G){return G==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||G==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||G==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
H$.prototype.computeCardStyle=function(G){return G?G.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Nh.Object.defineProperties(H$.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:(c=G.searchRefinementCardRendererStyle)==null?void 0:c.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],H$.prototype,"data",void 0);_.r([_.E({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.h("design:type",Number)],H$.prototype,"objectFit",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.h("design:type",String)],H$.prototype,"cardStyle",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],H$.prototype,"roundContainer",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],H$.prototype,"isAlbumCard",null);_.r([_.A("data","isAlbumCard"),_.h("design:type",Object),_.h("design:paramtypes",[])],H$.prototype,"collectionStack",null);_.r([_.Jc({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],H$);
_.B(H$,"ytd-search-refinement-card-renderer",function(){if(OaN!==void 0)return OaN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return OaN=G},{mode:1});var e6k;var XK=function(){var G=_.J.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.u(XK,_.J);_.r([_.E(),_.h("design:type",Object)],XK.prototype,"data",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],XK.prototype,"componentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],XK.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],XK.prototype,"isRichGrid",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],XK.prototype,"miniMode",void 0);
_.r([_.Jc({is:"ytd-game-details-renderer",disableElementRegistration:!0})],XK);
_.B(XK,"ytd-game-details-renderer",function(){if(e6k!==void 0)return e6k;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return e6k=G},{mode:1});var NsV;var ltV;var yk=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return G};
_.u(yk,_.J);_.P=yk.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(G){var c=G||this.data;return c&&c.states&&c.currentStateId!=null?c.states.find(function(I){return I.stateId===c.currentStateId})||null:null};
_.P.currentStateRendererData=function(G){return(G=this.currentStateData(G))&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.P.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.P.computeButtonIcon=function(G){G=this.currentStateRendererData(G);var c;return(G==null?0:(c=G.icon)==null?0:c.iconType)?G.icon.iconType.toLowerCase():null};
_.P.computeAccessibility=function(G){return(G=this.currentStateRendererData(G))&&G.accessibilityData?G.accessibilityData.accessibilityData||null:null};
_.P.computeButtonClass=function(G){var c=this.currentStateRendererData(G);if(!c)return"";G="";var I=c.style;I&&(G+=I.toLowerCase().replace(/_/g,"-")+" ");(c=c.size)&&(G+=c.toLowerCase().replace(/_/g,"-")+" ");return G.trim()};
_.P.computeServiceEndpoint=function(G){if(!G)return null;var c=G&&G.serviceEndpoint,I=this.get("command.commandMetadata.webCommandMetadata.sendPost",G);return c?c:I&&G.command?G.command:null};
_.P.computeBellMenuItemParams=function(G){var c;G=(c=_.D(G==null?void 0:G.command,_.RP))==null?void 0:c.commands;if(!G||G.length===0)return null;c=_.D(G[0],_.Ih);var I,R;return(c==null?0:(I=c.popup)==null?0:(R=I.menuPopupRenderer)==null?0:R.items)?c.popup.menuPopupRenderer.items.map(function(Z){return Z.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(G){var c=G.trackingParams,I=this.computeBellMenuItemParams(this.data);this.data&&c&&I&&I.includes(c)&&this.ytRenderButtonBehavior._setButtonIcon(G.icon.iconType.toLowerCase())};
_.P.onYtServiceRequestCompleted=function(G,c){(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",c))&&this.set("data",G)};
_.P.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.P.resetState=function(){this.set("data.currentStateId",3)};
_.P.onYtButtonTapHandler=function(){if(this.data){var G=this.currentStateRendererData(this.data);G&&this.ytRendererBehavior.logExplicitClick(G)}};
yk.prototype.onYtServiceRequestError=yk.prototype.onYtServiceRequestError;yk.prototype.onYtServiceRequestCompleted=yk.prototype.onYtServiceRequestCompleted;yk.prototype.stateChanged=yk.prototype.stateChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],yk.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(Ip.YtRenderButtonBehavior),_.h("design:type",Object)],yk.prototype,"ytRenderButtonBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yk.prototype,"data",void 0);_.r([_.uO("data","data.currentStateId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yk.prototype,"stateChanged",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],yk.prototype,"onYtServiceRequestCompleted",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],yk.prototype,"onYtServiceRequestError",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],yk);
_.B(yk,"ytd-subscription-notification-toggle-button-renderer",function(){if(ltV!==void 0)return ltV;var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ltV=G},{mode:1});var qi2;var gr=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};G.tapHandler=function(){if(G.data){var c=G.currentStateRendererData();c&&G.ytRendererBehavior.logExplicitClick(c)}};
return G};
_.u(gr,_.J);_.P=gr.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(){var G=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(c){return c.stateId===G.data.currentStateId})||null:null};
_.P.currentStateRendererData=function(){var G=this.currentStateData();return G&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.P.computeAccessibilityLabel=function(){var G,c,I;return(G=this.currentStateRendererData())==null?void 0:(c=G.accessibilityData)==null?void 0:(I=c.accessibilityData)==null?void 0:I.label};
_.P.computeBellMenuItemParams=function(){var G,c,I=(c=_.D((G=this.data)==null?void 0:G.command,_.RP))==null?void 0:c.commands;if(!I||I.length===0)return null;G=_.D(I[0],_.Ih);var R,Z;return(G==null?0:(R=G.popup)==null?0:(Z=R.menuPopupRenderer)==null?0:Z.items)?G.popup.menuPopupRenderer.items.map(function(K){return K.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(G){var c=G.trackingParams,I=this.computeBellMenuItemParams();if(this.data&&c&&I&&I.includes(c)&&(G==null||!G.isDisabled)){var R;((R=_.D(G.serviceEndpoint,_.KC))==null?void 0:R.signal)!=="CLIENT_SIGNAL"&&(this.icon=G.icon.iconType)}};
_.P.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.P.onYtServiceRequestCompleted=function(G,c){if(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",c))this.icon=void 0,this.set("data",G)};
_.P.onYtServiceRequestError=function(){this.icon=void 0};
_.Nh.Object.defineProperties(gr.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data,c=this.textLabel,I=this.hostElement,R=this.computeAccessibilityLabel(),Z=this.tapHandler,K=this.isOverlay?"overlay":"mono",m=(G==null?0:G.disableButton)?"disabled":"active";c=c?_.Vc(c):void 0;return{style:K,type:"tonal",state:m,size:"M",focused:!1,formattedButtonText:c,iconPosition:"leading-trailing",onTap:Jng(G,Z,I),accessibilityLabel:R}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.currentStateRendererData(),c,I,R=(I=this.icon)!=null?I:G==null?void 0:(c=G.icon)==null?void 0:c.iconType;if(R)return _.On(R)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.secondaryIcon)==null?void 0:c.iconType;if(I)return _.On(I)}}});
gr.prototype.onYtServiceRequestError=gr.prototype.onYtServiceRequestError;gr.prototype.onYtServiceRequestCompleted=gr.prototype.onYtServiceRequestCompleted;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],gr.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gr.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],gr.prototype,"textLabel",void 0);
_.r([_.E(),_.h("design:type",String)],gr.prototype,"icon",void 0);_.r([_.E(),_.h("design:type",Boolean)],gr.prototype,"isOverlay",void 0);_.r([_.A("data.*","textLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],gr.prototype,"computedButtonShape",null);_.r([_.A("data.*","icon"),_.h("design:type",Object),_.h("design:paramtypes",[])],gr.prototype,"computedIcon",null);_.r([_.A("computedIcon"),_.h("design:type",Object),_.h("design:paramtypes",[])],gr.prototype,"computedAnimateIcon",null);
_.r([_.A("data.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],gr.prototype,"computedSecondaryIcon",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],gr.prototype,"onYtServiceRequestCompleted",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],gr.prototype,"onYtServiceRequestError",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],gr);
_.B(gr,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(qi2!==void 0)return qi2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return qi2=G},{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var w5A;_.R1(wJ2,"yt-animated-action",{props:{backgroundLottieRef:_.bl,foregroundLottieRef:_.bl,wrapperClass:_.bl,disableAnimation:_.bl},unsafeExternallySettableAttributes:new Set(["key"])});var Ye=function(){var G=_.J.apply(this,arguments)||this;G.animatedActionEnabled=_.v("web_animated_actions");G.foregroundLottieRef={};G.backgroundLottieRef={};G.forceIconOnly=!1;G.showTextWhileAnimating=!1;G.keyboardFocused=!1;G.isAnimating=!1;G.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return G};
_.u(Ye,_.J);_.P=Ye.prototype;_.P.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.P.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onYtServiceRequestSent=function(G,c){(this.get("endpoint.subscribeEndpoint",c)||this.get("endpoint.unsubscribeEndpoint",c))&&this.updateSubscriptionState(!this.subscribed)};
_.P.onYtServiceRequestCompleted=function(G,c){(G=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",c.data))&&this.bellButton&&(this.bellButton.data=G)};
_.P.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.eD(this.hostElement)};
_.P.onPlayerSubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.P.onPlayerUnsubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||this.updateSubscriptionState(!1)};
_.P.handleUpdateSubscribeButtonAction=function(G){G=_.D(G,eLT);var c;G&&G.channelId===((c=this.data)==null?void 0:c.channelId)&&this.updateSubscriptionState(!!G.subscribed)};
_.P.computeButtonStyle=function(G){return this.get("style.styleType",G)||null};
_.P.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.P.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.P.updateSubscriptionState=function(G){if(G!==this.subscribed){this.set("data.subscribed",G);var c,I=(c=this.data)==null?void 0:c.subscribedEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Le("subscriptionStateEntity",I,{key:I,subscribed:G}));this.isCompactRed()||_.Xl(this.hostElement,"yt-subscription-changed",G);G||(_.ym(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!G),G&&this.hasBellButton&&this.startAnimation())}};
_.P.startAnimation=function(){var G=this;if(!this.isAnimating){var c=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var I;(I=this.backgroundLottieRef.lottieEl)==null||I.goToAndPlay(0);var R;(R=this.foregroundLottieRef.lottieEl)==null||R.goToAndPlay(0);_.dJ.addJob(function(){G.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.dJ.addJob(function(){G.updateContainerToFitContent(!!G.subscribed,!0)},2,1500);
_.dJ.addJob(function(){G.isAnimating=!1},2,c)}};
_.P.maybeAnimateBellIcon=function(){var G=_.m9(this.hostElement).querySelector("yt-animated-icon");if(G){var c;(c=G.animationRef.lottieEl)==null||c.goToAndPlay(0)}};
_.P.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.P.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.P.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var G;this.unsubscribedWidth=(G=this.subscribeButtonShape)==null?void 0:G.getBoundingClientRect().width}var c;this.subscribedWidth=(c=this.bellButton)==null?void 0:c.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.P.updateContainerToFitContent=function(G,c){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(G?(G=this.subscribedWidth,c=this.isAnimating&&!c,this.subscribedIconOnlyWidth===void 0||c||(G=this.subscribedIconOnlyWidth),this.hostElement.style.width=G+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.P.clearContainerSize=function(){this.hostElement.style.width=""};
_.P.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.P.maybeSetSubscribedButtonIconOnlyWidth=function(){var G=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var c;G.subscribedIconOnlyWidth=(c=G.bellButton)==null?void 0:c.getBoundingClientRect().width;requestAnimationFrame(function(){if(G.bellButton){var I;G.bellButton.textLabel=
(I=G.data)==null?void 0:I.subscribedButtonText}})})))};
_.Nh.Object.defineProperties(Ye.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var G;return(G=this.data)==null?void 0:G.subscribedButtonText}var c;return this.forceIconOnly?void 0:(c=this.data)==null?void 0:c.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,c,I=((G=this.data)==null?void 0:(c=G.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"subscribe",timings:I,enabled:I.length>0&&!this.subscribed,experimentEnabled:I.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!this.subscribed&&((G=this.data)==null?void 0:G.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var c=G.renderer;var I=G.element;var R=G.subscribed;var Z=G.commandController;var K=G.isOverlay;G=G.stopPropagation;var m=BpA(c,R);K&&(m.style="overlay");K=Object;var a=K.assign,O;a:switch((O=c.style)==null?void 0:O.styleType){case "COMPACT_GRAY":case "COMPACT_RED":O={size:"S"};break a;default:O={size:"M"}}var N=fU8(c,
R);var q=(q=R?c.subscribedButtonText:c.unsubscribedButtonText)?_.Vc(q):void 0;return a.call(K,{},m,O,{focused:!1,toggled:R,accessibilityLabel:N,formattedButtonText:q,onTap:i5B(c,R,I,Z,G)})}}}});
Ye.prototype.onMouseDown=Ye.prototype.onMouseDown;Ye.prototype.onDataChanged=Ye.prototype.onDataChanged;Ye.prototype.observedSubscribed=Ye.prototype.observedSubscribed;Ye.prototype.onYtServiceRequestCompleted=Ye.prototype.onYtServiceRequestCompleted;Ye.prototype.onYtServiceRequestSent=Ye.prototype.onYtServiceRequestSent;Ye.prototype.maybeUpdateBellButtonText=Ye.prototype.maybeUpdateBellButtonText;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Ye.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Ye.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Ye.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ye.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.subscribedEntityKey"],selector:PNr}),_.h("design:type",Object)],Ye.prototype,"subscriptionStateEntity",void 0);_.r([_.E({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Ye.prototype,"subscribed",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ye.prototype,"branded",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ye.prototype,"animatedActionEnabled",void 0);
_.r([_.E(),_.h("design:type",Object)],Ye.prototype,"foregroundLottieRef",void 0);_.r([_.E(),_.h("design:type",Object)],Ye.prototype,"backgroundLottieRef",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ye.prototype,"overlayButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.h("design:type",Object)],Ye.prototype,"buttonStyle",void 0);_.r([_.E(),_.h("design:type",Object)],Ye.prototype,"forceIconOnly",void 0);
_.r([_.E(),_.h("design:type",Object)],Ye.prototype,"showTextWhileAnimating",void 0);_.r([_.E({value:function(){return!!_.wH().resolve(_.qR(_.zb))&&_.v("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.h("design:type",Boolean)],Ye.prototype,"useKeyboardFocused",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ye.prototype,"keyboardFocused",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ye.prototype,"isAnimating",void 0);_.r([_.A("data.notificationPreferenceButton.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ye.prototype,"hasBellButton",null);
_.r([_.wD("subscribedButtonText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ye.prototype,"maybeUpdateBellButtonText",null);_.r([_.A("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ye.prototype,"subscribedButtonText",null);_.r([_.A("data.timedAnimationData.animationTiming","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ye.prototype,"smartimationSettings",null);
_.r([_.E({reflectToAttribute:!0}),_.A("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ye.prototype,"subscribeButtonHidden",null);_.r([_.E({reflectToAttribute:!0}),_.A("subscribed","hasBellButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ye.prototype,"subscribeButtonInvisible",null);
_.r([_.E({reflectToAttribute:!0}),_.A("subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ye.prototype,"unsubscribeButtonHidden",null);_.r([_.nH("ytd-subscription-notification-toggle-button-renderer-next"),_.h("design:type",Object)],Ye.prototype,"bellButton",void 0);_.r([_.nH("#subscribe-button-shape"),_.h("design:type",HTMLElement)],Ye.prototype,"subscribeButtonShape",void 0);
_.r([_.A("overlayButton","subscribed","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ye.prototype,"buttonShape",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],Ye.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],Ye.prototype,"onYtServiceRequestCompleted",null);
_.r([_.wD("subscribed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ye.prototype,"observedSubscribed",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ye.prototype,"onDataChanged",null);_.r([_.qY("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ye.prototype,"onMouseDown",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Ye);
_.B(Ye,"ytd-subscribe-button-renderer",function(){if(w5A!==void 0)return w5A;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return w5A=G},{mode:1});var Gw=function(){var G=_.J.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.u(Gw,_.J);Gw.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Gw.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Gw.prototype,"isRichGrid",void 0);_.r([_.Jc({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Gw);
_.B(Gw,"ytd-game-card-renderer",function(){if(NsV!==void 0)return NsV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return NsV=G},{mode:1});var ch={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.v("defer_menus")&&!HrB?0:void 0,waitForSignal:"eocs"};var FmA;var nup;var IU=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return G};
_.u(IU,_.J);_.P=IU.prototype;_.P.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.P.onSeriesReminderStateEntityChange=function(){var G,c,I;((G=this.eventReminderStateEntity)==null?0:G.key)&&((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((I=this.eventReminderStateEntity)==null?void 0:I.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Le("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.P.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.P.onYtServiceRequestError=function(){var G;this.updateReminderStateEntitiesFromButtonState((G=this.data)==null?void 0:G.currentState)};
_.P.handleUpdateUpcomingEventReminderButtonStateCommand=function(G){if(G=_.D(G,OIB)){var c,I=(c=this.data)==null?void 0:c.targetId;I&&G.targetId===I&&_.xW(this.updateReminderStateEntitiesFromButtonState.bind(this,G.state))}};
_.P.getButtonStateFromReminderState=function(){var G;if(((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var c;if(((c=this.eventReminderStateEntity)==null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var I,R;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((R=this.eventReminderStateEntity)==
null?void 0:R.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Z;return(Z=this.data)==null?void 0:Z.currentState};
_.P.updateReminderStateEntitiesFromButtonState=function(G){if(G){switch(G){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":G="UPCOMING_EVENT_REMINDER_STATE_NONE";var c="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":G="UPCOMING_EVENT_REMINDER_STATE_SINGLE";c="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":G="UPCOMING_EVENT_REMINDER_STATE_NONE";c="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var I;
((I=this.eventReminderStateEntity)==null?0:I.key)&&this.ytdReduxBehavior.dispatch(_.Le("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:G})));var R;((R=this.seriesReminderStateEntity)==null?0:R.key)&&this.ytdReduxBehavior.dispatch(_.Le("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:c})))}};
_.Nh.Object.defineProperties(IU.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.getButtonStateFromReminderState(),c,I;if(G&&((c=this.data)==null?0:(I=c.states)==null?0:I.length))for(c=_.Q(this.data.states),I=c.next();!I.done;I=c.next()){I=I.value;var R=void 0;if(((R=_.D(I,eTT))==null?void 0:R.state)===G)return _.D(I,eTT)}}}});
IU.prototype.onYtServiceRequestError=IU.prototype.onYtServiceRequestError;IU.prototype.onYtServiceRequestCompleted=IU.prototype.onYtServiceRequestCompleted;IU.prototype.onSeriesReminderStateEntityChange=IU.prototype.onSeriesReminderStateEntityChange;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],IU.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],IU.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],IU.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:mGr}),_.h("design:type",Object)],IU.prototype,"eventReminderStateEntity",void 0);
_.r([_.E({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(G,c){return _.a6(G.entities,"sportsSeriesReminderStateEntity",c)}}),
_.h("design:type",Object)],IU.prototype,"seriesReminderStateEntity",void 0);_.r([_.A("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],IU.prototype,"currentButtonStateRenderer",null);_.r([_.wD("seriesReminderStateEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IU.prototype,"onSeriesReminderStateEntityChange",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IU.prototype,"onYtServiceRequestCompleted",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IU.prototype,"onYtServiceRequestError",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],IU);
_.B(IU,"ytd-upcoming-event-reminder-button-renderer",function(){if(nup!==void 0)return nup;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return nup=G},{mode:1});var vu9;var RU=function(){return _.J.apply(this,arguments)||this};
_.u(RU,_.J);RU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Nh.Object.defineProperties(RU.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(_.v("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],RU.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],RU.prototype,"shelfDismissal",void 0);_.r([_.A("data.responseText"),_.h("design:type",Object),_.h("design:paramtypes",[])],RU.prototype,"text",null);
_.r([_.A("data.responseText"),_.h("design:type",Object),_.h("design:paramtypes",[])],RU.prototype,"textAriaLabel",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],RU);
_.B(RU,"ytd-notification-multi-action-renderer",function(){if(vu9!==void 0)return vu9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return vu9=G},{mode:1});var DLV;var Z1=function(){return _.J.apply(this,arguments)||this};
_.u(Z1,_.J);Z1.prototype.ready=function(){var G=this;_.Q1(this.hostElement).querySelector("#undo").addEventListener("tap",function(){G.onUndoTap()})};
Z1.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Z1.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Z1);
_.B(Z1,"ytd-notification-text-renderer",function(){if(DLV!==void 0)return DLV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return DLV=G},{mode:1});var ouK;var Kb=function(){var G=_.J.apply(this,arguments)||this;G.mouseOverDelayJobId=0;G.fadeInImageDelayJobId=0;G.startTimeMs=-1;G.loadingStartTimeMs=-1;G.loadingEndTimeMs=-1;G.hasVideoPreview=!1;return G};
_.u(Kb,_.J);_.P=Kb.prototype;_.P.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.P.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.showThumbnail=function(){var G=this;this.csn=_.k0();_.SW("fmth");_.dJ.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.mq(_.dJ,function(){G.loadingStartTimeMs=(0,_.Fa)();var c=_.Q1(G.hostElement).querySelector("#thumbnail");c.complete?G.displayMouseOverImage():c.addEventListener("load",_.lO(G,G.displayMouseOverImage))},150):_.as(_.Q1(this.hostElement).querySelector("#play"),"show",!0)};
_.P.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.P.onTap=function(){this.removeVideoPreview()};
_.P.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var G=this.videoId,c=this.csn,I=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,R=this.startTimeMs,Z=this.hasVideoPreview,K=_.kC(this.trackingParams),m={isMovingThumbnail:Z};Z&&R>0&&(I>0&&(m.movingThumbnailLoadingDurationMs=Math.round(I)),m.durationHoveredMs=Math.round((0,_.Fa)()-R));G&&(m.videoId=G);_.xD(c,K,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:m});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.P.removeVideoPreview=function(){_.dJ.cancelJob(this.mouseOverDelayJobId);_.dJ.cancelJob(this.fadeInImageDelayJobId);var G=_.Q1(this.hostElement).querySelector("#thumbnail");_.as(G,"fade-in",!1);G.removeEventListener("load",_.lO(this,this.displayMouseOverImage));G=_.Q1(this.hostElement).querySelector("#play");_.as(G,"fade-in",!1);_.as(G,"show",!1)};
_.P.displayMouseOverImage=function(){var G=_.Q1(this.hostElement).querySelector("#thumbnail"),c=_.Q1(this.hostElement).querySelector("#play");this.isImageAvailable(G)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Fa)(),this.startTimeMs=(0,_.Fa)(),this.fadeInImageDelayJobId=_.mq(_.dJ,function(){_.as(G,"fade-in",!0)},50)):_.as(c,"fade-in",!0)};
_.P.computeThumbnail=function(G,c){var I;G&&G.movingThumbnailDetails&&G.movingThumbnailDetails.thumbnails&&c?I=_.ZX(G.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):I=c?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(I)return _.dS(I)};
_.P.isImageAvailable=function(G){return!(!G.src||G.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||G.naturalWidth===120)};
Kb.prototype.onTap=Kb.prototype.onTap;Kb.prototype.dataChanged=Kb.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Kb.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Kb.prototype,"csn",void 0);_.r([_.E(),_.h("design:type",Object)],Kb.prototype,"trackingParams",void 0);
_.r([_.E(),_.h("design:type",String)],Kb.prototype,"videoId",void 0);_.r([_.E(),_.h("design:type",Boolean)],Kb.prototype,"isAttachedAndDataSet",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kb.prototype,"dataChanged",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kb.prototype,"onTap",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Kb);
_.B(Kb,"ytd-moving-thumbnail-renderer",function(){if(ouK!==void 0)return ouK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ouK=G},{mode:1});var ULK;_.wG=function(G){this.hostElement=G;this.eventSink=null;this.eventList=[]};
_.wG.prototype.shouldForward=function(){var G,c;return(c=(G=this.eventSink)==null?void 0:G.isConnected)!=null?c:document.body.contains(this.eventSink)};
_.wG.prototype.start=function(G,c){this.eventSink&&this.stop();for(var I=0;I<G.length;I++)this.hostElement.addEventListener(G[I],_.lO(this,this.forwardEvent));var R;this.eventSink=(R=c.hostElement)!=null?R:c;this.eventList=G};
_.wG.prototype.stop=function(){for(var G=0;G<this.eventList.length;G++)this.hostElement.removeEventListener(this.eventList[G],_.lO(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.wG.prototype.forwardEvent=function(G,c){this.shouldForward()&&(G.stopPropagation(),this.eventSink instanceof Element?_.Xl(this.eventSink,G.type,c):_.Ck(new _.iW("eventSink is not an element")))};_.Ph={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.wG(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(G,c){this.forwarder_.start(G,c)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Qu=function(){return _.J.apply(this,arguments)||this};
_.u(Qu,_.J);_.P=Qu.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.H1("HTML_DIR")==="rtl"?"right":"left"};
_.P.dataChanged=function(){this.popupOpen=!1};
_.P.computeAriaLabel=function(G){return _.D(G,pSA).label};
_.P.onTap=function(G){G.stopPropagation();G.preventDefault();this.data.command&&_.wH().resolve(_.n4).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Qu.prototype.onPopupClosed=Qu.prototype.onPopupClosed;Qu.prototype.onPopupOpened=Qu.prototype.onPopupOpened;Qu.prototype.onTap=Qu.prototype.onTap;Qu.prototype.dataChanged=Qu.prototype.dataChanged;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],Qu.prototype,"eventForwardingBehavior",void 0);_.r([_.L(_.Pp),_.h("design:type",Object)],Qu.prototype,"ironButtonState",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Qu.prototype,"componentBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Qu.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:-1}),_.h("design:type",Number)],Qu.prototype,"tabindex",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.h("design:type",Object)],Qu.prototype,"ariaLabel",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Qu.prototype,"disableTooltips",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Qu.prototype,"popupOpen",void 0);
_.r([_.E(),_.h("design:type",Element)],Qu.prototype,"eventSink",void 0);_.r([_.nH("#tooltip"),_.h("design:type",Object)],Qu.prototype,"tooltip",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qu.prototype,"dataChanged",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Qu.prototype,"onTap",null);
_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qu.prototype,"onPopupOpened",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qu.prototype,"onPopupClosed",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Qu);
_.B(Qu,"ytd-thumbnail-overlay-button-renderer",function(){if(ULK!==void 0)return ULK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ULK=G},{mode:1});var uWe;var m2=function(){return _.J.apply(this,arguments)||this};
_.u(m2,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],m2.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],m2.prototype,"disableAnimation",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],m2.prototype,"rounded",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],m2.prototype,"transparentBackground",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],m2.prototype,"noPadding",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],m2);
_.B(m2,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(uWe!==void 0)return uWe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return uWe=G},{mode:1});var baA;var aU=function(){return _.J.apply(this,arguments)||this};
_.u(aU,_.J);aU.prototype.computeIconPosition=function(G){return this.get("iconPosition",G)||null};
aU.prototype.computeIconStyle=function(G){return this.get("iconStyle",G)||null};
aU.prototype.computeIsIconStyleFilled=function(G){if(!G)return!1;var c;return G.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((c=G.icon)==null?void 0:c.iconType)==="ERROR_BLACK"};
_.r([_.E(),_.h("design:type",Object)],aU.prototype,"data",void 0);_.r([_.E({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.h("design:type",Object)],aU.prototype,"iconPosition",void 0);_.r([_.E({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.h("design:type",Object)],aU.prototype,"iconStyle",void 0);_.r([_.E({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],aU.prototype,"iconStyleFilled",void 0);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],aU);
_.B(aU,"ytd-thumbnail-overlay-icon-renderer",function(){if(baA!==void 0)return baA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return baA=G},{mode:1});var kDk;var Tw=function(){return _.J.apply(this,arguments)||this};
_.u(Tw,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Tw.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Tw);
_.B(Tw,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(kDk!==void 0)return kDk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return kDk=G},{mode:1});var sCT;var Oy=function(){var G=_.J.apply(this,arguments)||this;G.isPreviewLoading=!1;return G};
_.u(Oy,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Oy.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Oy.prototype,"isPreviewLoading",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Oy);
_.B(Oy,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(sCT!==void 0)return sCT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return sCT=G},{mode:1});var Lm9;var e4=function(){return _.J.apply(this,arguments)||this};
_.u(e4,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],e4.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],e4);
_.B(e4,"ytd-thumbnail-overlay-pinking-renderer",function(){if(Lm9!==void 0)return Lm9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Lm9=G},{mode:1});var AoN;var NF=function(){var G=_.J.apply(this,arguments)||this;G.disableTooltips=!1;G.isLoading=!1;G.useExpandableTooltip=!1;G.toggled=!1;G.hovered=!1;G.mouseoverDelayJobId=0;G.toggleDelayJobId=0;G.expandAnimationDelayJobId=0;return G};
_.u(NF,_.J);_.P=NF.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.Q1(this.hostElement).querySelector("#tooltip").position=_.H1("HTML_DIR")==="rtl"?"right":"left"};
_.P.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.dJ.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.dJ.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.dJ.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.P.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.dJ.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.dJ.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.dJ.cancelJob(this.expandAnimationDelayJobId)};
_.P.computeIcon=function(G,c,I){return(G=I?c:G)&&G.iconType?_.On(G.iconType):void 0};
_.P.computeAriaLabel=function(G,c,I){return _.D(I?c:G,pSA).label};
_.P.computeTooltip=function(G,c,I){return I?c:G};
_.P.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.P.computeIconOnHover=function(G,c){if((G==null?0:G.iconType)&&!c)return _.On(G.iconType)};
_.P.onTap=function(G){var c=this;G.stopPropagation();G.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(G),this.useExpandableTooltip&&(this.toggleDelayJobId=_.mq(_.dJ,function(){c.hovered=!1;c.data&&!c.data.toggledServiceEndpoint&&(c.expandAnimationDelayJobId=_.mq(_.dJ,function(){c.set("data.isToggled",
!1)},200))},2E3))};
_.P.onMouseenter=function(){var G=this;this.mouseoverDelayJobId=_.mq(_.dJ,function(){G.hovered=!0},300)};
_.P.onMouseleave=function(){_.dJ.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.P.onServiceRequestCompleted=function(G,c){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(c)||this.set("data.isToggled",!this.data.isToggled)};
_.P.serviceRequestWasSuccessful=function(G){return _.D(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.ql)?G.data.status==="STATUS_SUCCEEDED":!0};
NF.prototype.onServiceRequestCompleted=NF.prototype.onServiceRequestCompleted;NF.prototype.onPopupClosed=NF.prototype.onPopupClosed;NF.prototype.onPopupOpened=NF.prototype.onPopupOpened;NF.prototype.onMouseleave=NF.prototype.onMouseleave;NF.prototype.dataChanged=NF.prototype.dataChanged;_.r([_.L(_.Pp),_.h("design:type",Object)],NF.prototype,"ironButtonState",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],NF.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],NF.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NF.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.h("design:type",Object)],NF.prototype,"ariaLabel",void 0);_.r([_.E(),_.h("design:type",Object)],NF.prototype,"disableTooltips",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],NF.prototype,"popupOpen",void 0);_.r([_.E(),_.h("design:type",Object)],NF.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Element)],NF.prototype,"eventSink",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],NF.prototype,"useExpandableTooltip",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.h("design:type",Object)],NF.prototype,"toggled",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],NF.prototype,"hovered",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.h("design:type",Object)],NF.prototype,"iconOnHover",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NF.prototype,"dataChanged",null);
_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NF.prototype,"onMouseleave",null);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NF.prototype,"onPopupOpened",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NF.prototype,"onPopupClosed",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],NF.prototype,"onServiceRequestCompleted",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],NF);
_.B(NF,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(AoN!==void 0)return AoN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return AoN=G},{mode:_.Qc("kevlar_poly_si_batch_j053")?1:2});var $L0;var SiT=_.W(function(G){var c=G.data;var I=G.thumbnailSize;var R=function(){return c().enableSegmentView};
return _.e("yt-thumbnail-overlay-progress-bar-view-model",{class:_.O3("ytThumbnailOverlayProgressBarHost",function(){return rn0(I==null?void 0:I())})},_.e(_.l,{cond:R,
then:function(){return _.e("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.e("div",{class:_.VK("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+c().startPercent+"%"}}),_.e("div",{class:_.VK("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+c().segmentDurationPercent+"%"}},_.e("div",{class:_.VK("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.e("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.e("div",null," ",function(){return c().segmentLabel})),_.e("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.e("div",{class:_.VK("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.e(_.l,{cond:function(){return!R()&&c().startPercent},
then:function(){var Z={};return _.e("div",{class:_.VK("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Z.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.v("web_enable_modern_progress_bar_overlay"),Z))},_.e("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+c().startPercent+"%"}}))}}))},"Fa");
SiT.idomCompat=!0;_.p5K=_.W(function(G){var c=_.ne(),I=_.o1(function(Z){var K,m,a;a:{var O=(K=G.data())==null?void 0:K.animationActivationTargetId;K=((m=G.data())==null?void 0:m.animationActivationEntityKey)||"";m=(a=G.data())==null?void 0:a.animationActivationEntitySelectorType;if(K&&O)switch(m){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Z=_.eu(Z,K);a=_.wH().resolve(_.qR(_.tA));O=!!(Z&&Z.videoId===O&&(a==null?0:a.isMiniplayerActive()));O={activated:O,playAnimation:O&&Z.playerState==="PLAYER_STATE_PLAYING"};
break a}O=void 0}return O});
_.xs(function(){var Z;if((Z=I())==null?0:Z.activated){var K;if((K=I())==null?0:K.playAnimation){var m;(m=c.lottieEl)==null||m.goToAndPlay(0)}else{var a;(a=c.lottieEl)==null||a.goToAndStop(0)}}},"DbQiXd");
var R=function(){var Z,K=!((Z=I())==null||!Z.activated);if(G.data()){Z=G.data();var m=void 0;Z.icon&&(m=_.muq(Z.icon),m=FPr(m));var a=void 0,O;if((O=Z.backgroundColor)==null?0:O.lightTheme){var N;a={backgroundColor:MD((N=Z.backgroundColor)==null?void 0:N.lightTheme,"0.8")}}if(Z.text||m||K){if(K&&Z.lottieData&&c){N=Z.lottieData;var q,w,F;O={animationConfig:{name:N.url,path:N.url,autoplay:(q=N.settings)==null?void 0:q.autoplay,loop:(F=(w=N.settings)==null?void 0:w.loop)!=null?F:!0},animationRef:c}}else O=
void 0;if(K)q=17;else b:switch(Z.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":q=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":q=19;break b;default:q=17}K={type:q,text:K&&Z.animatedText?Z.animatedText:Z.text,icon:m,customColors:a,animation:O}}else K=void 0}else K=void 0;return K};
return _.e("yt-thumbnail-badge-view-model",{class:_.O3("ytThumbnailBadgeViewModelHost",G.class)},_.e(_.l,{cond:R,then:function(){return _.e(_.ov,{data:function(){return R()}})}}))},"Ha");var M32=_.W(function(G){var c={},I={};return _.e("yt-thumbnail-bottom-overlay-view-model",{class:_.O3("ytThumbnailBottomOverlayViewModelHost",(c.ytThumbnailBottomOverlayViewModelHostBackground=function(){return G.data().enableGradientBackground},c))},_.e(_.sN,{data:function(){return G.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(R){return _.e(SiT,{data:R.data,
thumbnailSize:G.thumbnailSize})}}),_.e("div",{class:_.O3("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var R;
return joU((R=G.thumbnailSize)==null?void 0:R.call(G))},(I.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var R;
return(R=G.isClip)==null?void 0:R.call(G)},I.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var R;
return!_.v("web_enable_modern_progress_bar_overlay")&&((R=G.thumbnailSize)==null?void 0:R.call(G))==="small"},I))},_.e(_.sN,{data:function(){return G.data().badge}},{thumbnailBadgeViewModel:function(R){return _.e(_.p5K,{data:R.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.e(_.sN,{data:function(){return G.data().badges}},{thumbnailBadgeViewModel:function(R){return _.e(_.p5K,{data:R.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
M32.idomCompat=!0;_.R1(M32,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.G9,thumbnailSize:_.G9,isClip:_.G9}});var lE=_.W(function(G){var c=G.data;var I=G.className;G=G.alwaysShow;var R=_.hx0(),Z={};return _.e("thumbnail-hover-overlay-view-model",{el:_.YC(_.im(function(){return c().rendererContext})),
class:_.O3("ytThumbnailHoverOverlayViewModelHost",I,(Z.ytThumbnailHoverOverlayViewModelHostForceHover=G,Z)),"aria-label":function(){var K;return(K=_.D(c().rendererContext,_.Aq))==null?void 0:K.label},
role:function(){return _.JY(c().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.JY(c().rendererContext)!==void 0?0:void 0},
"on:keypress":R},_.e("div",{class:_.O3("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(c().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var K="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:K="ytThumbnailHoverOverlayViewModelStyleCover"}return K})},_.e(_.l,{cond:function(){return c().icon},
then:function(K){return _.e(_.yc,{data:K,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.e(_.l,{cond:function(){return c().text},
then:function(K){return _.e(_.ul,{text:K,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
lE.idomCompat=!0;var V3B=_.W(function(G){var c=G.data;return _.e(_.sN,{data:function(){return c==null?void 0:c().overlays}},{thumbnailHoverOverlayViewModel:lE})},"La");
V3B.idomCompat=!0;var z6K={};var EuN=_.W(function(G){var c=G.data;var I=G.image;var R=G.state;var Z=G.iconType;var K=G.overlays;var m=G.isOverlay;var a=_.Op("div");G=_.Q(_.ks(!0,void 0,"AA4e7b"));var O=G.next().value,N=G.next().value,q=function(){return!!c().onTap},w=_.gD(Z,"LIVE");
_.xs(function(){var n=c();requestAnimationFrame(function(){if(a.value===null)var U=!0;else{var k=a.value;U=n.badgeText;var p=Gtf(n.size);U in z6K?k=z6K[U]:(k=k.clientWidth,z6K[U]=k);(U=k>p)?a.value.style.display="none":a.value.style.visibility="visible"}N(U)})},"vNdN8b");
var F=function(){var n={};return n["yt-spec-avatar-shape__image"]=!0,n["yt-spec-avatar-shape__image--ads-app"]=c().type===1,n["yt-spec-avatar-shape__image--inscribed-square"]=c().type===2,n};
return _.e("yt-avatar-shape",null,_.e("div",{el:_.YC(I7p(q,{keydown:function(n){if(n.key==="Enter"){var U;(U=n.currentTarget)==null||U.click()}},
click:function(n){var U,k;return void((k=(U=c()).onTap)==null?void 0:k.call(U,n))}})),
class:function(){var n={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},U=c();n=(n[U.clusterLayoutConfig?K5r(U.clusterLayoutConfig):P4C(U.size)]=!0,n["yt-spec-avatar-shape__button--tappable"]=q(),n);(U=c().avatarButtonCustomClassName)&&(n[U]=!0);return _.VK(n)},
"aria-label":function(){return q()?c().accessibilityText:""},
role:function(){return q()?"button":void 0},
tabindex:function(){return q()?0:void 0}},_.e("div",{class:function(){var n,U=c(),k=R==null?void 0:R(),p=m==null?void 0:m(),M=!((n=U.decorations)==null||!n.includes(2)||U.size!=="medium"&&U.size!=="large"),z=U.size==="tiny"||U.size==="extra-small",t,x,C,H,g={};
n=(g["yt-spec-avatar-shape--live-ring"]=!!(((t=U.decorations)==null?0:t.includes(0))&&mz8(U.size)),g["yt-spec-avatar-shape--stories-watched"]=M&&!(k==null||!k.storiesWatched),g["yt-spec-avatar-shape--stories-unwatched"]=M&&!(k==null?0:k.storiesWatched),g["yt-spec-avatar-shape--background-border"]=a7A(U.decorations)&&!z,g["yt-spec-avatar-shape--background-border-thin"]=a7A(U.decorations)&&z,g["yt-spec-avatar-shape__on-select-border"]=!((x=U.decorations)==null||!x.includes(4)),g["yt-spec-avatar-shape__white-border"]=
!((C=U.decorations)==null||!C.includes(5)),g["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((H=U.decorations)==null?0:H.includes(5))&&z),g["yt-spec-avatar-shape--is-overlay"]=!!p,g);return _.VK(n)},
style:function(){a:{var n=c().clusterLayoutConfig;if(n){b:{var U=n.numAvatarsInCluster;var k=n.avatarIndex;if(k!==U-1){switch(n.clusterSize){case "small":n="32";break;case "medium":n="36";break;case "40":n="40";break;default:U=void 0;break b}U="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+n+"x"+n+"_avatars_"+U+"_index_"+k+".svg"}else U=void 0}if(U){U=_.wi({"-webkit-mask-image":"url("+U+")","mask-image":"url("+U+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}U=void 0}return U}},_.e("div",{class:function(){var n={};
var U=c();n=(n[U.clusterLayoutConfig?RsT(U.clusterLayoutConfig):ZXB(U.size)]=!0,n["yt-spec-avatar-shape--no-margin"]=a7A(c().decorations),n["yt-spec-avatar-shape--square"]=c().type===2,n);return _.VK(n)}},_.e(_.yc,{data:I,
alt:function(){return!q()&&c().accessibilityText?c().accessibilityText:""},
targetWidth:function(){return QLU(c().size)},
targetHeight:function(){return QLU(c().size)},
className:function(){return _.VK(F())}}),_.e(_.l,{cond:function(){var n;
return((n=c().decorations)==null?void 0:n.includes(0))&&mz8(c().size)},
then:function(){return _.e("div",{class:function(){var n={};n=(n["yt-spec-avatar-shape__live-badge"]=!0,n["yt-spec-avatar-shape__live-badge--badge-small"]=c().size==="small",n["yt-spec-avatar-shape__live-badge--badge-medium"]=c().size==="medium"||c().size==="48",n["yt-spec-avatar-shape__live-badge--badge-large"]=c().size==="large",n["yt-spec-avatar-shape__live-badge--badge-extra-large"]=c().size==="extra-large"||c().size==="extra-extra-large"||c().size==="giant",n);return _.VK(n)}},_.e(_.l,{cond:function(){return c().badgeText},
then:function(n){return _.e("div",{class:"yt-spec-avatar-shape__badge-text",el:a},n)}}),_.e(_.l,{cond:O,
then:function(){return _.e("div",{class:"yt-spec-avatar-shape__badge-icon"},_.e(_.F6,{icon:w,size:function(){a:switch(c().size){case "extra-large":var n=16;break a;default:n=13}return n}}))}}))}}),_.e(_.l,{cond:function(){var n,U;
return((n=c().decorations)==null?void 0:n.includes(1))||((U=c().decorations)==null?void 0:U.includes(0))&&!mz8(c().size)},
then:function(){return _.e("div",{class:function(){var n=c(),U,k,p={};var M=(p["yt-spec-avatar-shape__live-dot"]=!((U=n.decorations)==null||!U.includes(0)||mz8(n.size)),p["yt-spec-avatar-shape__new-content"]=!((k=n.decorations)==null||!k.includes(1)),p);return _.VK(M)}})}}),_.e(_.l,{cond:function(){return!!K},
then:function(){return _.e("div",{class:function(){var n={};n=Object.assign((n["yt-spec-avatar-shape__image-overlays"]=!0,n),F());return _.VK(n)}},K==null?void 0:K())}})))))},"Oa");
EuN.idomCompat={callbacks:{overlays:!0}};_.qF=_.W(function(G){function c(){I().endpoint&&_.r0(I().endpoint)}
var I=G.data;var R=G.decorations;var Z=G.avatarButtonCustomClassName;var K=G.isOverlay;var m=G.clusterLayoutConfig;return _.e("avatar-view-model",null,_.e(_.l,{cond:function(){return I().image},
then:function(a){return _.e(EuN,{data:function(){return OXp({data:I(),onTap:I().endpoint?c:void 0,decorations:R==null?void 0:R(),badgeText:void 0,accessibilityText:I().accessibilityText,avatarButtonCustomClassName:Z==null?void 0:Z(),clusterLayoutConfig:m==null?void 0:m()})},
image:a,iconType:"RADAR_LIVE",overlays:function(){return _.e(V3B,{data:I})},
isOverlay:K})}}))},"Pa");
_.qF.idomCompat=!0;_.wE=_.W(function(G){var c=G.data;G=G.className;var I=_.Op("yt-decorated-avatar-view-model"),R=function(){return _.D(c().avatar,_.B8)},Z=_.SE(function(){var K,m=c(),a=R(),O=_.JY(c().rendererContext),N=(K=I.value)!=null?K:void 0,q;
if(a){N={data:m,avatar:a,onTap:O,element:N};K=N.data;m=N.avatar;a=N.onTap;O=N.element;N=N.commandController;a=a?q5i(a,O,N):void 0;O=[];K.liveData&&O.push(0);var w;N=(w=K.liveData)==null?void 0:w.liveBadgeText;w=(q=_.D(K.rendererContext,_.Aq))==null?void 0:q.label;q=OXp({data:m,onTap:a,decorations:O,badgeText:N,accessibilityText:w?w:K.a11yLabel})}else q={size:"medium"};return q},void 0,"c00kWd");
return _.e("yt-decorated-avatar-view-model",{class:_.O3("ytDecoratedAvatarViewModelHost",G),el:I},_.e(_.l,{cond:function(){var K;return(K=R())==null?void 0:K.image},
then:function(K){return _.e(EuN,{data:Z,image:K,iconType:"RADAR_LIVE",overlays:function(){return _.e(V3B,{data:R})}})}}))},"Qa");
_.wE.idomCompat=!0;_.Fh=_.W(function(G){var c=function(){var a;return Object.assign({},G.data(),(a=G.overrides)==null?void 0:a.call(G))},I=function(){return _.W8(c().rendererContext)},R=function(){var a=c().avatars,O,N;
return(N=(O=(a==null?0:a[0])?_.D(a[0],_.B8):void 0)==null?void 0:O.avatarImageSize)!=null?N:"AVATAR_SIZE_UNKNOWN"},Z=function(){return l7b(c())},K=function(){if(c().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var a=void 0;
else if((a=G.decorations)==null?0:a.call(G))a=G.decorations();else{a=c();var O=0;a.avatars&&(O+=a.avatars.length);a.decoratedText&&(O+=1);a=O>1?[3]:[]}return a},m={};
return _.e("yt-avatar-stack-view-model",{el:_.YC(_.im(function(){return c().rendererContext})),
class:_.O3("yt-avatar-stack-view-model",G.className,(m["yt-avatar-stack-view-model--tappable"]=I,m["yt-avatar-stack-view-model--is-overlay"]=G.isOverlay,m["yt-avatar-stack-view-model--medium-text"]=G.useMediumText,m)),tabindex:function(){return I()?0:void 0},
role:function(){return I()?"link":void 0},
"aria-label":function(){var a,O;return(O=(a=_.D(c().rendererContext,_.Aq))==null?void 0:a.label)!=null?O:""}},_.e(_.l,{cond:function(){var a;
return c().avatars&&!((a=G.hideAvatar)==null?0:a.call(G))},
then:function(){return _.e("div",{class:"yt-avatar-stack-view-model__avatars"},_.e(_.l,{cond:function(){return c().decoratedText},
then:function(a){var O={};return _.e("div",{class:_.O3("yt-avatar-stack-view-model__text-container",(O["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS"},O["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var N;
return((N=G.isOverlay)==null?void 0:N.call(G))&&(R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS")},O)),
style:_.wi({width:function(){return Z().avatarSizeInPx+"px"},
height:function(){return Z().avatarSizeInPx+"px"}})},_.e(_.ul,{text:a,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.e("div",{style:function(){return _.wi(Z().avatarStackStyle)()},
class:function(){return Z().avatarStackClass}},_.e(_.sN,{data:function(){return Z().avatars.reverse()}},{avatarViewModel:function(a,O){return _.e("div",{style:function(){var N,q;
return _.wi((q=(N=Z()).avatarStyle)==null?void 0:q.call(N,O()))()},
class:function(){return Z().avatarClass}},_.e(_.qF,{data:a.data,
decorations:K,avatarButtonCustomClassName:function(){return Z().avatarButtonCustomClassName},
isOverlay:G.isOverlay,clusterLayoutConfig:function(){var N,q;return(q=(N=Z()).clusterLayoutConfig)==null?void 0:q.call(N,O())}}))},
decoratedAvatarViewModel:function(a,O){return _.e("div",{style:function(){var N,q;return _.wi((q=(N=Z()).avatarStyle)==null?void 0:q.call(N,O()))()},
class:function(){return Z().avatarClass}},_.e(_.wE,{data:a.data}))}})))}}),_.e(_.l,{cond:function(){return c().text},
then:function(a){return _.e(_.ul,{text:a,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.Fh.idomCompat=!0;_.R1(_.W(function(G){var c=G.data;var I=G.thumbnailSize;return _.e("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.e("div",{class:_.O3("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return wJT(I==null?void 0:I())})},_.e(_.sN,{data:function(){return c().avatarStack}},{avatarStackViewModel:function(R){return _.e(_.Fh,{data:R.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.bl,
thumbnailSize:_.bl}});var Jop=_.W(function(G){G=_.YW(G,{hidden:!1});var c=G.data;G=G.hidden;return _.e("yt-thumbnail-overlay-title-view-model",{class:_.O3("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(c().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var I="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:I="ytThumbnailOverlayTitleViewModelPositionTop"}return I}),
hidden:G},_.e(_.l,{cond:function(){return c().leadingContent},
then:function(I){return _.e("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.e(_.sN,{data:I},{decoratedAvatarViewModel:_.wE}))}}),_.e("div",null,_.e(_.ul,{text:function(){return c().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.e(_.l,{cond:function(){return c().subtitle},
then:function(){return _.e(_.ul,{text:function(){return c().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
Jop.idomCompat=!0;_.R1(Jop,"yt-thumbnail-overlay-title-view-model",{props:{data:_.bl,hidden:_.bl}});_.WmA=_.W(function(G){G=_.YW(G,{isClip:!1});var c=G.data,I=G.thumbnailSize,R={};return _.e("yt-thumbnail-overlay-badge-view-model",{class:_.O3("yt-thumbnail-overlay-badge-view-model",function(){a:switch(c().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Z="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:Z="yt-thumbnail-overlay-badge-view-model--bottom-end"}return Z},function(){return F5U(I==null?void 0:I())},(R["yt-thumbnail-overlay-badge-view-model--clip"]=G.isClip,
R))},_.e(_.sN,{data:function(){return c().thumbnailBadges}},{thumbnailBadgeViewModel:function(Z){return _.e(_.p5K,{data:Z.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.WmA.idomCompat=!0;_.R1(_.WmA,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.bl,thumbnailSize:_.bl,isClip:_.bl}});var iae=_.W(function(G){var c=G.data;G=G.hidden;var I=_.SE(function(){return c().indicatorCount||0},void 0,"AbKnMc"),R={};
return _.e("yt-page-indicator-view-model",{class:_.O3("ytPageIndicatorViewModelHost",(R.ytPageIndicatorViewModelIndicatorHidden=function(){return!c().indicatorCount},R)),
hidden:G},_.e(_.fh,{each:function(){return Array(I())}},function(Z,K){var m={};
return _.e("div",{class:_.O3("ytPageIndicatorViewModelIndicator",(m.ytPageIndicatorViewModelIndicatorSelected=function(){return c().selectedIndex===K()},m))})}))},"Va");
iae.idomCompat=!0;_.R1(iae,"yt-page-indicator-view-model",{props:{data:_.bl,hidden:_.bl}});var nb=function(){var G=_.J.apply(this,arguments)||this;G.eventSink=function(){return G};
G.disableInteraction=!1;G.noRoundedCorners=!1;G.isPreviewLoading=!1;G.isOriginalAspectRatio=!1;G.computedObjectFit=!1;G.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return G};
_.u(nb,_.J);_.P=nb.prototype;
_.P.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.v("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.P.onImageLoaded=function(){this.loaded=!0};
_.P.onImageUnloaded=function(){this.loaded=!1};
_.P.computeRichThumbnail=function(G,c,I,R){if(G&&c&&!R&&!_.v("disable_moving_thumbs_handling")&&!I)return c};
_.P.computeImageWidth=function(G,c){return c||9999};
_.P.computeIsOriginalAspectRatio=function(G){return G};
_.P.computeIsLive=function(G){if(G==null?0:G.badges)for(var c=0;c<G.badges.length;c++){var I=G.badges[c];if(I.metadataBadgeRenderer&&I.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(G==null?0:G.thumbnailOverlays)for(c=0;c<G.thumbnailOverlays.length;c++)if(I=G.thumbnailOverlays[c],I.thumbnailOverlayTimeStatusRenderer&&I.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.P.computeObjectFit=function(G,c){return c||(G?"CONTAIN":"")};
_.P.computeNavigationEndpoint=function(G,c,I){return G?c:I};
_.P.computeHasClip=function(G){G=_.Q(G||[]);for(var c=G.next();!c.done;c=G.next())if(c.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.P.computeOverlayColor=function(G){var c;return(G==null?0:(c=G.darkColorPalette)==null?0:c.section2Color)?G.darkColorPalette.section2Color:G==null?void 0:G.sampledThumbnailColor};
_.Nh.Object.defineProperties(nb.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.xVU(this.width)}}});
nb.prototype.onImageUnloaded=nb.prototype.onImageUnloaded;nb.prototype.onImageLoaded=nb.prototype.onImageLoaded;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],nb.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(wPp),_.h("design:type",Object)],nb.prototype,"ytdThumbnailBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],nb.prototype,"componentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],nb.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],nb.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],nb.prototype,"circular",void 0);
_.r([_.E({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.h("design:type",Object)],nb.prototype,"richThumbnail",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.h("design:type",Boolean)],nb.prototype,"hasClip",void 0);_.r([_.E(),_.h("design:type",Object)],nb.prototype,"eventSink",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],nb.prototype,"queued",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],nb.prototype,"richGridThumbnail",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],nb.prototype,"useExpandableTooltip",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],nb.prototype,"useUntranslatedNavigationEndpoint",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],nb.prototype,"disableInteraction",void 0);
_.r([_.E({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.h("design:type",Object)],nb.prototype,"computedNavigationEndpoint",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],nb.prototype,"nowPlayingEqualizerOnly",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],nb.prototype,"hidePlaybackStatus",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],nb.prototype,"objectFit",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],nb.prototype,"noRoundedCorners",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],nb.prototype,"watchFeedThumbnail",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],nb.prototype,"isPreviewLoading",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.h("design:type",Object)],nb.prototype,"isOriginalAspectRatio",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.h("design:type",Object)],nb.prototype,"computedObjectFit",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.h("design:type",Boolean)],nb.prototype,"isLiveVideo",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],nb.prototype,"loaded",void 0);_.r([_.E({computed:"computeOverlayColor(data.thumbnail)"}),_.h("design:type",Object)],nb.prototype,"overlayColor",void 0);_.r([_.E(),_.h("design:type",Boolean)],nb.prototype,"minimizePipBreakages",void 0);_.r([_.E({selector:_.BmO}),_.h("design:type",Boolean)],nb.prototype,"inlinePreviewIsEnabled",void 0);_.r([_.E(),_.h("design:type",Number)],nb.prototype,"width",void 0);
_.r([_.A("inlinePreviewIsEnabled"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nb.prototype,"isPreviewDisabled",null);_.r([_.A("width"),_.h("design:type",String),_.h("design:paramtypes",[])],nb.prototype,"thumbnailSize",null);_.r([_.qY("image-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nb.prototype,"onImageLoaded",null);
_.r([_.qY("image-unloaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nb.prototype,"onImageUnloaded",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-thumbnail"})],nb);
var ft0=_.PI()(nb,"ytd-thumbnail",function(){if($L0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);$L0=G}G=$L0;return G},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var Dzi=function(G){var c=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15204_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15204_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(I){BsN(c,I)};
this.onLockupMouseLeaveFn=function(I){I=I.relatedTarget;var R,Z;((R=document.getElementsByTagName("ytd-video-preview"))==null?0:(Z=R.item(0))==null?0:Z.contains(I))||(c.terminateVideoPreview(),vh(c))};
this.onThumbnailMouseDownFn=function(){c.terminateVideoPreview();vh(c)};
this.onTouchStart=function(){c.JSC$15204_touched=!0};
this.mediaRenderer=G.mediaRenderer;this.thumbnailElement=G.thumbnailElement;this.lockupElement=G.lockupElement;this.videoPreviewOptsInput=G.videoPreviewOpts;roe(this);D1(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)):
_.Ck(Error("Fh")):_.Ck(Error("Gh")):jCT(this)},Rw=function(G){jCT(G);
var c;(c=G.lockupElement)==null||c.removeEventListener("mouseenter",G.onMouseMoveFn);var I;(I=G.lockupElement)==null||I.removeEventListener("mouseleave",G.onLockupMouseLeaveFn);var R;(R=G.lockupElement)==null||R.removeEventListener("touchstart",G.onTouchStart);var Z;(Z=G.thumbnailElement)==null||Z.removeEventListener("mousedown",G.onThumbnailMouseDownFn);vh(G)},roe=function(G){G.inlinePreviewIsEnabledForUser=_.y4().getState().ui.inlinePreviewIsEnabled;
G.unsubscribeFromInlinePreviewIsEnabled=_.RM(_.y4(),_.BmO,function(c){(G.inlinePreviewIsEnabledForUser=c)||vh(G)});
G.JSC$15204_unsubscribeFromInlinePreviewIsActive=_.RM(_.y4(),_.fs0,function(c){(G.inlinePreviewIsActive=c)||vh(G)})},jCT=function(G){G.unsubscribeFromInlinePreviewIsEnabled();
G.unsubscribeFromInlinePreviewIsEnabled=function(){};
G.JSC$15204_unsubscribeFromInlinePreviewIsActive();G.JSC$15204_unsubscribeFromInlinePreviewIsActive=function(){}},BsN=function(G,c){c.buttons>0||(c=_.DH("kevlar_lockup_hover_delay",-1),G.JSC$15204_touched&&c>=0?(_.dJ.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.mq(_.dJ,function(){xLN(G)},c),G.JSC$15204_touched=!1):xLN(G))},lyp=function(G){G.videoPreviewJobId=_.mq(_.dJ,function(){return _.T(function(c){return c.yield(t30(G,{isAutoplay:!0}),0)})})},xLN=function(G){!G.previewTriggered&&D1(G)&&
(G.inlinePreviewIsActive&&G.terminateVideoPreview(),G.previewTriggered=!0,G.mediaRenderer.isInlinePreviewTriggered=!0,_.dJ.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.mq(_.dJ,function(){return _.T(function(c){return c.yield(t30(G),0)})}))},t30=function(G,c){c=c===void 0?{}:c;
var I=c.isAutoplay===void 0?!1:c.isAutoplay;var R,Z,K,m;return _.T(function(a){if(a.nextAddress==1){if(!D1(G))return a.return();R=G.getVideoPreviewOpts();if(!R)return a.return();I&&(R.isAutoplay=!0);return(K=(Z=_.gq(G.mediaRenderer.hostElement,"yt-open-video-preview-action",[R]))&&Z[0])?a.yield(Z[0],3):a.jumpTo(2)}a.nextAddress!=2&&(K=a.yieldResult===1);if(K){var O=(m=G.mediaRenderer)==null?void 0:m.data;O&&(vUi(O)?delete O.inlinePlayerData:"inlinePlaybackEndpoint"in O&&delete O.inlinePlaybackEndpoint)}_.Vp(a)})};
Dzi.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var G,c;if((c=(G=this.videoPreviewOptsInput)==null?void 0:G.videoPreviewData)!=null)G=c;else if(G=this.mediaRenderer.data)if(vUi(G))G={inlinePlaybackEndpoint:_.WI(G.inlinePlayerData.onVisible),navigationEndpoint:_.WI(G.onTap),thumbnail:"image"in G?G.image:G.thumbnail,thumbnailOverlays:void 0,accessibilityText:nU0(G)};else if("multipleInlinePlaybackEndpoint"in G){var I=_.D(_.D(G.multipleInlinePlaybackEndpoint,C92),H$T);if(I!=
null&&I.playerDescriptors){c=[];I=_.Q(I.playerDescriptors);for(var R=I.next();!R.done;R=I.next())R=R.value,c.push({inlinePlaybackEndpoint:R.inlinePlaybackEndpoint,navigationEndpoint:R.navigationEndpoint,thumbnail:R.thumbnail,thumbnailOverlays:R.thumbnailOverlays,accessibilityText:nU0(G)});G=c}else G=void 0}else G={inlinePlaybackEndpoint:G.inlinePlaybackEndpoint,navigationEndpoint:G.navigationEndpoint,thumbnail:G.thumbnail,thumbnailOverlays:G.thumbnailOverlays,accessibilityText:nU0(G)};else G=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:G,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var D1=function(G){var c;if(c=G.inlinePreviewIsEnabledForUser)c=(G=G.mediaRenderer.data)?"inlinePlaybackEndpoint"in G&&G.inlinePlaybackEndpoint||vUi(G)&&G.inlinePlayerData||"multipleInlinePlaybackEndpoint"in G&&G.multipleInlinePlaybackEndpoint?!0:!1:!1;return c};
Dzi.prototype.terminateVideoPreview=function(){_.ym(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var vh=function(G){_.dJ.cancelJob(G.videoPreviewJobId);G.inlinePreviewIsActive=!1;G.previewTriggered=!1;G.mediaRenderer.isInlinePreviewTriggered=!1};var h62=_.I3(["#"]),oU=function(){var G=_.J.apply(this,arguments)||this;G.isDisabled=!1;return G};
_.u(oU,_.J);_.P=oU.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":ch,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.getMetadata=function(G){var c=[];if(G.metadataText&&Object.keys(G.metadataText).length>0){var I=this.ytRendererBehavior.getSimpleString(G.metadataText);G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&(I=_.pe(I,Number(G.upcomingEventData.startTime)));c.push(I)}else G.shortViewCountText&&c.push(this.ytRendererBehavior.getSimpleString(G.shortViewCountText)),G.publishedTimeText&&c.push(this.ytRendererBehavior.getSimpleString(G.publishedTimeText)),G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&
(I=this.ytRendererBehavior.getSimpleString(G.upcomingEventData.upcomingEventText),c.push(_.pe(I,Number(G.upcomingEventData.startTime))));return c};
_.P.calculateBylineText=function(G){return G.shortBylineText?G.shortBylineText:G.bylineText?G.bylineText:null};
_.P.calculateIsDisabled=function(G){return!!G.isDisabled};
_.P.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.q9i(h62)};
_.P.onDetailsTap=function(G){var c=this.data&&this.data.navigationEndpoint;c&&!_.Gf(_.CE(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.v("kevlar_grid_video_renderer_killswitch")?_.Xl(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c))};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15211_inlinePreviewHoverListener=rP({mediaRenderer:this,lockupElement:_.Q1(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Q1(this.hostElement).querySelector("ytd-thumbnail")})};
_.P.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15211_inlinePreviewHoverListener)==null||Rw(G)};
_.P.computeThumbnailWidth=function(G,c){return c&&c>0?c:G?360:210};
_.P.computeNumBadgesInRow=function(G){var c;return((c=G.badges)==null?void 0:c.length)||0};
_.P.computeShowChannelThumbnail=function(G,c){var I;return c&&!!(G==null?0:(I=G.channelThumbnailSupportedRenderers)==null?0:I.channelThumbnailWithLinkRenderer)};
_.Nh.Object.defineProperties(oU.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15211_inlinePreviewHoverListener)==null?0:D1(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
oU.prototype.dataChanged=oU.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],oU.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],oU.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.L(_.kw),_.h("design:type",Object)],oU.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],oU.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oU.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],oU.prototype,"noEndpoints",void 0);_.r([_.E({computed:"calculateBylineText(data)"}),_.h("design:type",Object)],oU.prototype,"bylineText",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],oU.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],oU.prototype,"isDownloading",void 0);_.r([_.E({reflectToAttribute:!0,value:0}),_.h("design:type",Number)],oU.prototype,"width",void 0);_.r([_.E({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.h("design:type",Object)],oU.prototype,"isDisabled",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oU.prototype,"dataChanged",null);_.r([_.A("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oU.prototype,"isHovered",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oU.prototype,"hasAttributedBylineText",null);
_.r([_.A("bylineText","hasAttributedBylineText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oU.prototype,"showBylineText",null);_.r([_.Jc({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],oU);
_.B(oU,"ytd-grid-video-renderer",function(){if(FmA!==void 0)return FmA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return FmA=G},{mode:_.Qc("kevlar_poly_si_batch_j047")?1:2});var dLe;var Uy=function(){var G=_.J.apply(this,arguments)||this;G.roundedContainer=!0;G.skipRoundingTop=!1;G.disableTopPadding=!1;G.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");G.extractOverlay=!1;return G};
_.u(Uy,_.J);Uy.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Uy.prototype.onClick=function(G){var c,I=(c=this.data)==null?void 0:c.sourceEndpoint;!_.Gf(_.CE(G),this.hostElement,["A".toString()])&&I&&_.Xl(this.hostElement,"yt-navigate",{endpoint:I})};
_.Nh.Object.defineProperties(Uy.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=(G=this.data)==null?void 0:G.paragraphMaxLines)!=null?c:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Uy.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uy.prototype,"showVerticalDividers",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uy.prototype,"roundedContainer",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uy.prototype,"skipRoundingTop",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uy.prototype,"disableTopPadding",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Uy.prototype,"amsterdamEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uy.prototype,"extractOverlay",void 0);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uy.prototype,"showMetadataAtTop",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uy.prototype,"showMetadataBelowTitle",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uy.prototype,"hasMenu",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data.truncateParagraphs"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uy.prototype,"truncateParagraphs",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.paragraphMaxLines"),_.h("design:type",Number),_.h("design:paramtypes",[])],Uy.prototype,"paragraphMaxLines",null);
_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.background"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uy.prototype,"background",null);_.r([_.Jc({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Uy);
_.B(Uy,"ytd-info-panel-content-renderer",function(){if(dLe!==void 0)return dLe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return dLe=G},{mode:_.Qc("kevlar_poly_si_batch_j076")?1:2});var C_p;var Ha2;var X5T;var yoN;var uE=function(){return _.J.apply(this,arguments)||this};
_.u(uE,_.J);uE.prototype.computeStyle=function(G){return G};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uE.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],uE.prototype,"style_",void 0);_.r([_.Em({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],uE);
_.B(uE,"yt-channel-thumbnail-with-link-renderer",function(){if(yoN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;X5T===void 0&&(X5T=document.createElement("template"));var R=X5T;I.call(c,R.content.cloneNode(!0),G.content.firstChild);yoN=G}G=yoN;return G},{mode:2});var bE=function(){return _.J.apply(this,arguments)||this};
_.u(bE,_.J);bE.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"}}}};
bE.prototype.computeTitleStyle=function(G){return G||null};
bE.prototype.computeAvatarStyle=function(G){return G||null};
bE.prototype.computeShowNavigationButton=function(G,c){return!(G==null||!G.navigationButton||c)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bE.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.h("design:type",String)],bE.prototype,"titleStyle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.h("design:type",String)],bE.prototype,"avatarStyle",void 0);_.r([_.E(),_.h("design:type",Boolean)],bE.prototype,"hideNavigationButton",void 0);_.r([_.Jc({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],bE);
_.B(bE,"ytd-rich-list-header-renderer",function(){if(Ha2!==void 0)return Ha2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ha2=G},{mode:_.Qc("kevlar_poly_si_batch_j058")?1:2});var ky=function(){return _.J.apply(this,arguments)||this};
_.u(ky,_.J);ky.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]]"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ky.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],ky.prototype,"isSearch",void 0);_.r([_.Jc({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],ky);
_.B(ky,"ytd-preview-card-renderer",function(){if(C_p!==void 0)return C_p;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return C_p=G},{mode:1});var gu0;var sy=function(){return _.J.apply(this,arguments)||this};
_.u(sy,_.J);sy.prototype.configureRendererStamper=function(){return{"data.menu":ch}};
sy.prototype.dataChanged=function(){var G=this.get("colorExtractionPalette.section1Color",this.data);G=_.Sx(G);_.eD(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":G})};
sy.prototype.computeCardStyle=function(G){return this.get("style.value",G)||null};
sy.prototype.dataChanged=sy.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],sy.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sy.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.h("design:type",String)],sy.prototype,"cardStyle",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sy.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],sy);
_.B(sy,"ytd-compact-channel-recommendation-card-renderer",function(){if(gu0!==void 0)return gu0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return gu0=G},{mode:1});var YiB;var GKN;var Lb=function(){var G=_.J.apply(this,arguments)||this;G.alignAuto=!1;G.collapsed=!0;G.isToggled=!1;G.alwaysCollapsed=!1;G.canToggle=!0;G.collapsedHeight=80;G.disableToggle=!1;G.alwaysToggleable=!1;G.reversed=!1;G.shouldUseNumberOfLines=!1;G.recomputeOnResize=!1;G.canToggleJobId=0;G.lastReversed=!1;return G};
_.u(Lb,_.J);_.P=Lb.prototype;_.P.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.P.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.P.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var G=_.Q1(this.hostElement),c=G.childNodes,I=document.createDocumentFragment(),R=G.childNodes.length-1;R>=0;R--)_.Q1(I).appendChild(c[R]);_.v("enable_shadydom_free_scoped_node_methods")?_.m9(this.hostElement).appendChild(I):G.appendChild(I)}};
_.P.ready=function(){var G=this;_.xW(function(){G.initChildrenObserver()},1)};
_.P.attached=function(){var G;(G=this.resizeObserver)==null||G.observe(this.content)};
_.P.detached=function(){this.detachObserver()};
_.P.toggle=function(G,c){this.canToggle&&(this.isToggled=c,_.Xl(this.hostElement,"yt-refit"),G&&G.stopPropagation())};
_.P.reset=function(){this.childrenChanged()};
_.P.onIronResize=function(){this.recomputeOnResize&&!_.v("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.P.computeIsMoreVisible=function(G,c){return G&&!c};
_.P.computeShouldUseNumberOfLines=function(G){try{return!!G&&window.CSS.supports("-webkit-line-clamp","1")}catch(c){}return!1};
_.P.computeIsLessVisible=function(G,c){return G&&c};
_.P.observeCollapsedHeightAndMaxLines=function(){var G=this.collapsedHeight,c=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.eD(this.hostElement,{"--ytd-expander-max-lines":""+c,"--ytd-expander-collapsed-height":""}):_.eD(this.hostElement,{"--ytd-expander-collapsed-height":G+"px","--ytd-expander-max-lines":""})};
_.P.handleMoreTap=function(G){this.disableToggle||(_.Xl(this.hostElement,"yt-expander-more-tapped"),this.toggle(G,!0))};
_.P.handleLessTap=function(G){_.Xl(this.hostElement,"yt-expander-less-tapped");this.toggle(G,!1)};
_.P.initChildrenObserver=function(){var G=this;this.observer=new MutationObserver(function(){G.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.v("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.qx(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var c;(c=G.resizeThrottle)==null||c.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.P.childrenChanged=function(){var G=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Qe(function(){G.canToggleJobId=0;G.calculateCanCollapse()})}))};
_.P.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.P.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.P.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("collapsed-changed",this.collapsed))};
_.P.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("is-toggled-changed",this.isToggled))};
_.P.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("can-toggle-changed",this.canToggle))};
_.Nh.Object.defineProperties(Lb.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Lb.prototype.canToggleChangedForBinding=Lb.prototype.canToggleChangedForBinding;Lb.prototype.isToggledChangedForBinding=Lb.prototype.isToggledChangedForBinding;Lb.prototype.collapsedChangedForBinding=Lb.prototype.collapsedChangedForBinding;Lb.prototype.observeCollapsedHeightAndMaxLines=Lb.prototype.observeCollapsedHeightAndMaxLines;Lb.prototype.onIronResize=Lb.prototype.onIronResize;Lb.prototype.reversedChanged=Lb.prototype.reversedChanged;Lb.prototype.toggledChanged=Lb.prototype.toggledChanged;
Lb.prototype.alwaysToggleableChanged=Lb.prototype.alwaysToggleableChanged;_.r([_.L(_.Zu),_.h("design:type",Object)],Lb.prototype,"ironResizableBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Lb.prototype,"alignAuto",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Lb.prototype,"collapsed",void 0);_.r([_.E(),_.h("design:type",Object)],Lb.prototype,"isToggled",void 0);_.r([_.E(),_.h("design:type",Object)],Lb.prototype,"alwaysCollapsed",void 0);
_.r([_.E(),_.h("design:type",Object)],Lb.prototype,"canToggle",void 0);_.r([_.E(),_.h("design:type",Object)],Lb.prototype,"collapsedHeight",void 0);_.r([_.E(),_.h("design:type",Object)],Lb.prototype,"disableToggle",void 0);_.r([_.E(),_.h("design:type",Object)],Lb.prototype,"alwaysToggleable",void 0);_.r([_.E(),_.h("design:type",Object)],Lb.prototype,"reversed",void 0);_.r([_.E(),_.h("design:type",Number)],Lb.prototype,"maxNumberOfLines",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.h("design:type",Object)],Lb.prototype,"shouldUseNumberOfLines",void 0);_.r([_.E(),_.h("design:type",Object)],Lb.prototype,"recomputeOnResize",void 0);_.r([_.nH("#content"),_.h("design:type",HTMLDivElement)],Lb.prototype,"content",void 0);_.r([_.uO("alwaysToggleable"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lb.prototype,"alwaysToggleableChanged",null);
_.r([_.uO("isToggled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lb.prototype,"toggledChanged",null);_.r([_.A("canToggleJobId"),_.h("design:type",Object),_.h("design:paramtypes",[])],Lb.prototype,"isResetting",null);_.r([_.wD("reversed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lb.prototype,"reversedChanged",null);
_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lb.prototype,"onIronResize",null);_.r([_.wD("maxNumberOfLines","collapsedHeight"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lb.prototype,"observeCollapsedHeightAndMaxLines",null);_.r([_.wD("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lb.prototype,"collapsedChangedForBinding",null);
_.r([_.wD("isToggled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lb.prototype,"isToggledChangedForBinding",null);_.r([_.wD("canToggle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lb.prototype,"canToggleChangedForBinding",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-expander"})],Lb);
_.B(Lb,"ytd-expander",function(){if(GKN!==void 0)return GKN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return GKN=G},{mode:1});var Ap=function(){return _.J.apply(this,arguments)||this};
_.u(Ap,_.J);Ap.prototype.computeIsCarousel=function(G){return!!G.isCarousel};
Ap.prototype.observeLightsourcePalette=function(){var G,c=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;c&&_.A0(this.hostElement,c)};
Ap.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Ap.prototype.observeLightsourcePalette=Ap.prototype.observeLightsourcePalette;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ap.prototype,"data",void 0);_.r([_.E({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Ap.prototype,"isCarousel",void 0);
_.r([_.wD("data.vibrantsourceColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ap.prototype,"observeLightsourcePalette",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Ap);
_.B(Ap,"ytd-media-upsell-renderer",function(){if(YiB!==void 0)return YiB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return YiB=G},{mode:2});var clB;var Vu=function(){var G=_.J.apply(this,arguments)||this;G.JSC$15238_playerEvents=new Map;G.listeningToPlayer=!1;G.startX=0;G.active=!1;G.shouldShowButtons=_.v("web_buttons_hidden_killswitch");G.isHighlighted=!1;G.useHighlightStyling=_.v("web_enable_deeper_metadata_highlight_styling");G.enableProblemWalkthrough=_.v("problem_walkthrough_sd");return G};
_.u(Vu,_.J);_.P=Vu.prototype;
_.P.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.P.created=function(){this.JSC$15238_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.lO(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.lO(this,this.onActiveUpdate))};
_.P.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.lO(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.lO(this,this.onActiveUpdate))};
_.P.onDataChanged=function(){this.removePlayerListeners()};
_.P.onColorPaletteChange=function(){var G={},c;if(_.iu()==="USER_INTERFACE_THEME_DARK"&&((c=this.data)==null?0:c.darkColorPalette)){var I=this.data.darkColorPalette;G["--ytd-macro-markers-list-item-background-color"]=_.pE(this.get("section2Color",I))}else{var R;_.iu()==="USER_INTERFACE_THEME_LIGHT"&&((R=this.data)==null?0:R.lightColorPalette)&&(I=this.data.lightColorPalette,G["--ytd-macro-markers-list-item-background-color"]=_.pE(this.get("section3Color",I)))}I?(G["--ytd-macro-markers-list-item-title-color"]=
_.pE(this.get("primaryTitleColor",I)),G["--ytd-macro-markers-list-item-secondary-color"]=_.pE(this.get("secondaryTitleColor",I)),G["--ytd-macro-markers-list-item-timestamp-background-color"]=_.pE(this.get("section1Color",I)),this.customButtonProperties={customColors:{color:_.pE(this.get("primaryTitleColor",I))}},this.useColorSampling=!0):(G["--ytd-macro-markers-list-item-background-color"]="initial",G["--ytd-macro-markers-list-item-title-color"]="initial",G["--ytd-macro-markers-list-item-secondary-color"]=
"initial",G["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.eD(this.hostElement,G)};
_.P.onEndpointMouseDown=function(G){this.startX=G.clientX};
_.P.onEndpointClick=function(G){var c=this,I,R,Z;return _.T(function(K){if(K.nextAddress==1){if(c.startX!==G.clientX)return G.preventDefault(),K.return();c.data&&c.ytRendererBehavior.logExplicitClick(c.data);if(!c.seekWithAnimationOnClick)return K.jumpTo(0);if(G.button!==0||G.shiftKey||G.altKey||G.metaKey||G.ctrlKey||_.Gf(_.CE(G),c.hostElement,["BUTTON".toString()]))return K.return();G.stopPropagation();G.preventDefault();return c.data?K.yield(_.Ke().getPlayerPromise(),3):K.return()}I=K.yieldResult;
Z=(R=_.D(c.data.onTap,_.fR))==null?void 0:R.startTimeSeconds;Z!==void 0&&I.seekToTimeWithAnimation(Z*1E3,_.HY(c.data.title));_.Vp(K)})};
_.P.computeLayout=function(G){return G};
_.P.computeIsHighlighted=function(G){return!!G};
_.P.computeCarouselType=function(G){return G};
_.P.hideCarousel=function(G){return this.hideThumbnail(G)};
_.P.hideThumbnail=function(G){return this.enableProblemWalkthrough&&G!==null&&G==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.P.onRepeatButtonToggle=function(G){var c=this;G.detail.toggled&&_.Ke().getPlayerPromise().then(function(I){c.ytPlayerListenerBehavior.listenToPlayerEvents(I,c.JSC$15238_playerEvents);c.listeningToPlayer=!0})};
_.P.onLoopRangeChange=function(G){var c=_.Q1(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(c){var I=c.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",c.polymerController.data);if(I){var R=Number(I.endTimeMs);if(Number(I.startTimeMs)!==(G==null?void 0:G.startTimeMs)||R!==(G==null?void 0:G.endTimeMs))c.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.P.removePlayerListeners=function(){var G=this;this.listeningToPlayer&&_.Ke().getPlayerPromise().then(function(c){G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c,G.JSC$15238_playerEvents);G.listeningToPlayer=!1})};
_.P.onActiveUpdate=function(G){this.active=G.detail.active};
Vu.prototype.onColorPaletteChange=Vu.prototype.onColorPaletteChange;Vu.prototype.onDataChanged=Vu.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],Vu.prototype,"ytPlayerListenerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Vu.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Vu.prototype,"useCustomColors",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Vu.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Vu.prototype,"shouldShowButtons",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.h("design:type",String)],Vu.prototype,"layout",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.h("design:type",Object)],Vu.prototype,"isHighlighted",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Vu.prototype,"useHighlightStyling",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Vu.prototype,"enableProblemWalkthrough",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.h("design:type",String)],Vu.prototype,"carouselType",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Vu.prototype,"useColorSampling",void 0);_.r([_.E(),_.h("design:type",Boolean)],Vu.prototype,"seekWithAnimationOnClick",void 0);_.r([_.E(),_.h("design:type",Object)],Vu.prototype,"customButtonProperties",void 0);
_.r([_.nH("#repeat-button"),_.h("design:type",HTMLElement)],Vu.prototype,"repeatButton",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Vu.prototype,"onDataChanged",null);_.r([_.wD("data.lightColorPalette","data.darkColorPalette"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Vu.prototype,"onColorPaletteChange",null);
_.r([_.Jc({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Vu);
_.B(Vu,"ytd-macro-markers-list-item-renderer",function(){if(clB!==void 0)return clB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return clB=G},{mode:1});var Ifi;var Rji;var zw=function(){return _.J.apply(this,arguments)||this};
_.u(zw,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zw.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],zw);
_.B(zw,"ytd-title-and-button-list-header-renderer",function(){if(Rji!==void 0)return Rji;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Rji=G},{mode:1});var ZBB;var KSp=new _.De("BUTTON_RENDERER_TOKEN");_.Ey=_.W(function(G){var c=_.wH().resolve(KSp);return _.e(c,Object.assign({},G,{overrides:G.buttonOverrides}))},"Wa");var PzA=_.W(function(G){var c=G.data,I=_.gD(G.useSquareAspectRatio,!1);return _.e("dismissed-mini-game-card-view-model",null,_.e(_.l,{cond:function(){var R,Z;return(R=c().responseText)==null?void 0:(Z=R.runs)==null?void 0:Z.length},
then:function(){var R={};return _.e("div",{class:_.O3("yt-mini-game-card-view-model__dismissed-card",(R["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!I()},R["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.v("web_game_card_force_2_by_3")},R["yt-mini-game-card-view-model--dismissed-square-card"]=I,R))},_.e("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.e(_.l,{cond:function(){return c().responseText.runs[0].text},
then:function(Z){return _.e("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Z},Z)}}),_.e(_.sN,{data:function(){return c().buttons}},{buttonRenderer:_.Ey,
buttonViewModel:_.BR})))}}))},"Xa");var QS2=_.W(function(G){var c=G.data;return _.e("br-nz-badge-shape",{class:_.O3(function(){return oUO(c().brNzRatingBadgeType)}),
role:function(){return c().accessibilityText?"img":void 0},
"aria-label":function(){return c().accessibilityText}},function(){var I;
return(I=c())==null?void 0:I.text})},"Ya");_.Jp=_.W(function(G){var c=function(){var I=G.data(),R,Z,K,m;if(I){var a=!((R=G.workaroundShortsIsThumbnailBadge)==null||!R.call(G));R=(Z=G.modern)==null?void 0:Z.call(G);Z=(K=G.numBadgesInRow)==null?void 0:K.call(G);K=(m=G.clipTextOverflow)==null?void 0:m.call(G);var O;a:switch(I.badgeStyle){case "BADGE_OVERLAY":m=!0;break a;default:m=!1}I={type:a?17:UzT(I.badgeStyle),brNzRatingBadgeType:uvC(I.badgeStyle),text:I.badgeText,icon:I.iconName,isOverlay:m,modern:R||_.v("web_modern_badge_view_model"),accessibilityText:I.accessibilityLabel||
((O=_.D(I.rendererContext,_.Aq))==null?void 0:O.label),numBadgesInRow:Z,clipTextOverflow:K}}else I=void 0;return I};
return _.e("yt-badge-view-model",{class:_.O3("ytBadgeViewModelHost",G.class)},_.e(_.B1,null,_.e(_.W1,{when:function(){var I;return!((I=c())==null||!I.brNzRatingBadgeType)}},function(){return _.e(QS2,{data:function(){return c()}})}),_.e(_.W1,{when:function(){return!!c()&&!c().brNzRatingBadgeType}},function(){return _.e(_.ov,{data:function(){return c()}})})))},"Za");
_.Jp.idomCompat=!0;var quB=_.W(function(G){G=_.YW(G,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var c=G.data,I=G.useFullWidth,R=G.isDesktopWeb,Z=G.addSearchResultTopMargin,K=function(){return c().layout},m=function(){return c().title},a=function(){return c().metadataText?c().metadataText:c().genre},O=function(){return c().channelName},N=function(){return c().image},q=function(){return c().colorPalette},w=function(){return c().actionButton},F=function(){return c().overflowButton},
n=function(){return c().avatar},U=function(){return c().ageRating},k=function(){var t={};
t=_.O3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(t["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return R()},t));
return _.e("div",{class:t},_.e(m$A,{imageData:N,colorPalette:q}),_.e(afN,{onTap:function(){return c().onTap},
imageData:N,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.e(_.l,{cond:function(){return!R()},
then:function(){return _.e(_.FG,null,_.e(T$V,{layout:K,colorPalette:q,isDesktopWeb:R,overflowButton:F,avatar:n,onTap:function(){return c().onTap},
genre:a,title:m,channelName:O}),_.e(OB9,{actionButton:w}))}}))},p=function(){var t={};
t=_.O3((t["yt-mini-game-card-view-model--search-result-desktop"]=function(){return R()},t["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!R()},t["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Z()},t));
return _.e("div",{class:t},k(),_.e(ejK,{description:function(){return c().description},
isDesktopWeb:R,title:m,genre:a,onTap:function(){return c().onTap},
actionButton:w,overflowButton:F,avatar:n,channelName:O}))},M=function(){var t={};
t=_.O3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(t["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return R()},t["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return R()&&c().width===135},t["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return R()},t["yt-mini-game-card-view-model--big-metadata-font"]=function(){return c().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},t["yt-mini-game-card-view-model--use-full-width"]=
function(){return I()},t["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.v("web_game_card_force_2_by_3")},t));
return _.e("div",{class:t},_.e(N$K,{colorPalette:q,isDesktopWeb:R,onTap:function(){return c().onTap},
accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
actionButton:w,imageData:N}),_.e(T$V,{layout:K,colorPalette:q,isDesktopWeb:R,overflowButton:F,avatar:n,onTap:function(){return c().onTap},
genre:a,title:m,channelName:O}),_.e(_.l,{cond:U,then:function(x){return _.e(lfK,{ageRating:x})}}))},z=function(){var t={};
t=_.O3("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(t["yt-mini-game-card-view-model--square-card-desktop"]=function(){return R()},t["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},t));
return _.e("div",{class:t},_.e(afN,{onTap:function(){return c().onTap},
imageData:N,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.e(T$V,{layout:K,colorPalette:q,isDesktopWeb:R,overflowButton:F,avatar:n,onTap:function(){return c().onTap},
genre:a,title:m,channelName:O}),_.e(_.l,{cond:U,then:function(x){return _.e(lfK,{ageRating:x})}}))};
return _.e("mini-game-card-view-model",{class:G.className},_.e(_.B1,null,_.e(_.W1,{when:function(){return K()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return M()}),_.e(_.W1,{when:function(){return K()==="MINI_APP_LAYOUT_SQUARE"}},function(){return z()}),_.e(_.W1,{when:function(){return K()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return p()})))},"$a");
quB.idomCompat=!0;var OB9=_.W(function(G){var c=_.gD(G.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.e(_.sN,{data:G.actionButton},{buttonViewModel:function(I){return _.e("div",{class:c},_.e(_.BR,{data:I.data}))}})},"ab"),afN=_.W(function(G){var c=G.onTap;
var I=G.imageData;var R=G.accessibilityText;var Z=G.overlayBadgeText;var K=G.iconName;var m=G.unplayableInlinePlaybackIconName;G=G.isDesktopWeb;return _.e(_.Er,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:c},_.e(_.yc,{data:I,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(R==null?void 0:R())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.e(w4e,{overlayBadgeText:Z,iconName:K,unplayableInlinePlaybackIconName:m,isDesktopWeb:G}))},"bb"),w4e=_.W(function(G){var c=G.overlayBadgeText;
var I=G.iconName;var R=G.unplayableInlinePlaybackIconName;var Z=G.isDesktopWeb;return _.e("div",{class:"yt-mini-game-card-view-model__badge-container"},_.e(_.l,{cond:I,then:function(K){return _.e("div",{class:"yt-mini-game-card-view-model__badge"},_.e("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.e(_.F6,{icon:K,className:"yt-mini-game-card-view-model__icon",size:12}),_.e("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},c)))}}),_.e(_.l,{cond:function(){return!I()&&
c()},
then:function(){return _.e("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},c)}}),_.e(_.l,{cond:function(){return R()&&Z()},
then:function(){return _.e("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.e(_.F6,{icon:R,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),m$A=_.W(function(G){var c=G.colorPalette;
var I=G.imageData;var R=function(){return c().vibrantColorPalette?c().vibrantColorPalette.section2Color:c().sectionTwoColor};
return _.e(_.FG,null,_.e("div",{class:"yt-mini-game-card-view-model__background-base",style:_.wi({"background-color":function(){return MD(R(),"1")}})}),_.e("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.wi({"background-image":function(){return"url("+I().sources[0].url+")"}})}),_.e("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.wi({background:function(){return"linear-gradient(180deg,\n    "+MD(R(),".8")+" 0%,\n    "+MD(R(),".4")+" 25%,\n    "+MD(c().vibrantColorPalette?c().vibrantColorPalette.section4Color:c().sectionFourColor,".8")+" 100%)"}})}))},"db"),T$V=_.W(function(G){var c=G.layout;
var I=G.colorPalette;var R=G.overflowButton;var Z=G.avatar;var K=G.onTap;var m=G.title;var a=G.channelName;var O=G.genre;var N=function(){var q;return c()!=="MINI_APP_LAYOUT_SQUARE"&&((q=I())==null?0:q.textPrimaryColor)?"color: "+MD(I().textPrimaryColor,".7"):""};
return _.e("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.e(_.l,{cond:Z,then:function(){return _.e("div",{class:"yt-mini-game-card-view-model__avatar"},_.e(_.sN,{data:Z},{avatarViewModel:_.qF}))}}),_.e(_.Er,{command:K,
className:"yt-mini-game-card-view-model__metadata-details"},_.e("h3",{class:"yt-mini-game-card-view-model__title",title:m},m),_.e(_.l,{cond:Z,then:function(){return _.e("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.e("span",{class:"yt-mini-game-card-view-model__genre",title:a,style:N},a),_.e("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:N},O))},
else:function(){return _.e("span",{class:"yt-mini-game-card-view-model__genre",title:O},O)}})),_.e("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.e(_.sN,{data:R},{buttonViewModel:function(q){var w=q.data;
return _.e(_.BR,{data:function(){return Object.assign({},w(),{customFontColor:c()==="MINI_APP_LAYOUT_SINGLETON"?w().customFontColor:void 0})}})}})))},"eb"),N$K=_.W(function(G){var c=G.colorPalette;
var I=G.isDesktopWeb;var R=G.onTap;var Z=G.accessibilityText;var K=G.overlayBadgeText;var m=G.iconName;var a=G.unplayableInlinePlaybackIconName;var O=G.actionButton;G=G.imageData;return _.e("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.e(m$A,{imageData:G,colorPalette:c}),_.e(afN,{onTap:R,imageData:G,accessibilityText:Z,overlayBadgeText:K,iconName:m,unplayableInlinePlaybackIconName:a,isDesktopWeb:I}),_.e(_.l,{cond:function(){return O==null?void 0:O()},
then:function(){return _.e(OB9,{actionButton:O})}}))},"fb"),ejK=_.W(function(G){var c=G.description;
var I=G.isDesktopWeb;var R=G.title;var Z=G.genre;var K=G.onTap;var m=G.actionButton;var a=G.overflowButton;var O=G.avatar;G=G.channelName;var N={};N=_.O3("yt-mini-game-card-view-model--search-result-metadata-wrapper",(N["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=I,N["yt-mini-game-card-view-model--show-unplayable-on-hover"]=I,N["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!I()},N));
var q={};q=_.O3("yt-mini-game-card-view-model__search-result-info-row",(q["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!I()},q));
return _.e("div",{class:N},_.e("div",{class:q},_.e(_.Er,{command:K,className:"yt-mini-game-card-view-model__metadata-details"},_.e("h3",{class:"yt-mini-game-card-view-model__title",title:R},R),_.e("span",{class:"yt-mini-game-card-view-model__genre",title:Z},Z)),_.e(OB9,{actionButton:m,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.e("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.e(_.sN,{data:a},{buttonViewModel:_.BR}))),_.e("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.e("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.e("div",{class:"yt-mini-game-card-view-model__avatar"},_.e(_.sN,{data:O},{avatarViewModel:function(w){var F=w.data;return _.e(_.qF,{data:function(){return Object.assign({},F(),{avatarImageSize:I()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.e(_.Er,{command:K,
className:"yt-mini-game-card-view-model__description"},_.e("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},G)),_.e(_.Er,{command:K,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.e("div",null)))),_.e(_.l,{cond:I,then:function(){return _.e(_.Er,{command:K,className:"yt-mini-game-card-view-model__description"},c)}}))},"gb"),lfK=_.W(function(G){var c=G.ageRating;
return _.e("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.e(_.yc,{data:function(){return{sources:[{url:c().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.e(_.Jp,{data:function(){return{badgeText:c().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.R1(quB,"mini-game-card-view-model",{props:{data:_.bl,className:_.bl,useFullWidth:_.bl,isDesktopWeb:_.bl,addSearchResultTopMargin:_.bl}});_.R1(PzA,"dismissed-mini-game-card-view-model",{props:{data:_.bl,useSquareAspectRatio:_.bl}});var Wh=function(){var G=_.J.apply(this,arguments)||this;G.isSearch=!1;G.isRichGrid=!1;return G};
_.u(Wh,_.J);_.P=Wh.prototype;_.P.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.P.dismissibleItemOnYtServiceRequestSent=function(G,c){c.actions&&this.dismissibleItemProcessActions(G,c.actions)};
_.P.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.P.dataChanged=function(){this.dismissibleItemReset()};
_.P.dismissibleItemProcessActions=function(G,c){for(var I=0;I<c.length;I++){var R=c[I];_.D(R,_.gA)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.D(R,_.gA)),G.stopPropagation())}};
_.P.dismissibleItemHandleReplaceEnclosingAction=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0};
_.Nh.Object.defineProperties(Wh.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var G;return!!this.data&&!((G=this.dismissedRenderer)==null?0:G.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.dismissedRenderer)==null||!G.notificationMultiActionRenderer)}}});
Wh.prototype.dataChanged=Wh.prototype.dataChanged;Wh.prototype.dismissibleItemOnRequestSent=Wh.prototype.dismissibleItemOnRequestSent;Wh.prototype.dismissibleItemOnYtServiceRequestSent=Wh.prototype.dismissibleItemOnYtServiceRequestSent;_.r([_.E(),_.h("design:type",Object)],Wh.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Wh.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Wh.prototype,"isDismissed",void 0);
_.r([_.E(),_.h("design:type",Object)],Wh.prototype,"dismissedRenderer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Wh.prototype,"isRichGrid",void 0);_.r([_.A("data.layout"),_.h("design:type",Object),_.h("design:paramtypes",[])],Wh.prototype,"useSquareAspectRatio",null);_.r([_.A("data","dismissedRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],Wh.prototype,"showCard",null);
_.r([_.A("data","dismissedRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],Wh.prototype,"showDismissed",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],Wh.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.r([_.qY("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Wh.prototype,"dismissibleItemOnRequestSent",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wh.prototype,"dataChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Wh);
_.B(Wh,"ytd-mini-game-card-view-model",function(){if(ZBB!==void 0)return ZBB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ZBB=G},{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var FSK;var n3K;var iE=function(){return _.li.apply(this,arguments)||this};
_.u(iE,_.li);iE.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
iE.prototype.getContinuationUrl=function(G){var c={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(c.itct=this.data.clickTrackingParams);return _.aa(G,c)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],iE.prototype,"data",void 0);_.r([_.Em({is:"yt-reload-continuation",noInjection:!0})],iE);var v3e;var D$e;var fb=function(){var G=_.J.apply(this,arguments)||this;G.notificationData={};return G};
_.u(fb,_.J);_.P=fb.prototype;_.P.isMenuExpanded=function(G){return G&&G.length<=1?"undefined":"false"};
_.P.dataChanged_=function(){this.selected=void 0;var G=this.computeSelectedIndex_(this.data);G>=0&&(this.selected=G);G=this.data&&this.data.length>1;_.as(this.hostElement,"has-items",G);_.Q1(this.hostElement).querySelector("#label").tabIndex=G?0:-1};
_.P.onDropdownOpen=function(){var G=_.k0();if(this.parentTrackingParams&&this.data){var c=_.kC(this.parentTrackingParams);this.data.forEach(function(I){G&&c&&I.trackingParams&&(I=_.kC(I.trackingParams),_.Wd(G,c,I),_.Bd(G,[I]))})}else this.parentTrackingParams||_.Ck(new _.iW("No parent tracking params passed in for yt-dropdown-menu."))};
_.P.hasNotification=function(G){var c;if(G.targetId&&((c=this.notificationData)==null?0:c.targetId)){var I;return G.targetId===((I=this.notificationData)==null?void 0:I.targetId)}};
_.P.computeSelectedIndex_=function(G){if(G)for(var c=0,I=G.length;c<I;c++)if(G[c].selected)return c;return-1};
_.P.computeLabel_=function(G){return this.data&&G!=void 0?this.data[G].title:""};
_.P.computeShowIcon_=function(G,c){return!c&&!!G};
_.P.computeVerticalOffset_=function(G){return G?36:0};
_.P.computeEndpoint_=function(G){return G.endpoint||G.navigationEndpoint};
_.P.onLabelClick_=function(G){this.data&&this.data.length<=1?G.stopPropagation():this.menuExpanded="true"};
_.P.onIronActivate_=function(G){G=G.detail.item;var c=_.Q1(this.hostElement).querySelector("#repeat").itemForElement(G);if(c&&c.trackingParams){var I=_.k0(),R=_.kC(c.trackingParams);I&&_.jW(I,R)}if(c&&c.serviceEndpoint)_.v("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(c.serviceEndpoint):_.Gs(this.hostElement,[c.serviceEndpoint]),_.Xl(this.hostElement,"yt-playlist-reloading");else a:{if((c=G.querySelector("yt-supported-renderers"))&&
(c=c.rendererElement)&&c.is=="yt-reload-continuation"){c.trigger();break a}(G=G.querySelector("yt-reload-continuation"))&&G.trigger()}};
_.P.onTap_=function(G){G.preventDefault()};
_.P.onItemTap_=function(G){this.ytEndpointBehavior.onEndpointTap_(G)};
_.P.onLinkFocus_=function(G){try{var c=G.target}catch(R){}if(c){var I=c.querySelector("tp-yt-paper-item");I&&_.tc(this,"focus",function(){I.focus()})}};
_.P.onMenuClose_=function(){this.menuExpanded="false"};
_.P.isLabelIconActive_=function(G){return G==="true"};
_.P.computeHasSubtitle_=function(G){return!!G};
_.P.computeHrefForItem_=function(G){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(G))};
_.P.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
_.Nh.Object.defineProperties(fb.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
fb.prototype.onMenuClose_=fb.prototype.onMenuClose_;fb.prototype.onTap_=fb.prototype.onTap_;fb.prototype.onIronActivate_=fb.prototype.onIronActivate_;fb.prototype.onDropdownOpen=fb.prototype.onDropdownOpen;fb.prototype.dataChanged_=fb.prototype.dataChanged_;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],fb.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Cx.YtEndpointBehavior),_.h("design:type",Object)],fb.prototype,"ytEndpointBehavior",void 0);
_.r([_.E(),_.h("design:type",Array)],fb.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],fb.prototype,"parentTrackingParams",void 0);_.r([_.E(),_.h("design:type",Object)],fb.prototype,"selected",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],fb.prototype,"useLabel",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],fb.prototype,"useComputedAriaLabel",void 0);_.r([_.E(),_.h("design:type",String)],fb.prototype,"icon",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],fb.prototype,"iconLabel",void 0);_.r([_.E(),_.h("design:type",String)],fb.prototype,"ariaLabel",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],fb.prototype,"disabled",void 0);_.r([_.E({computed:"isMenuExpanded(data)"}),_.h("design:type",String)],fb.prototype,"menuExpanded",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],fb.prototype,"closeOnActivate",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.v("web_modern_buttons")}),_.h("design:type",Boolean)],fb.prototype,"modernButtons",void 0);_.r([_.E(),_.h("design:type",Object)],fb.prototype,"notificationData",void 0);_.r([_.A("ariaLabel, selected"),_.E(),_.h("design:type",String),_.h("design:paramtypes",[])],fb.prototype,"computedAriaLabel",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fb.prototype,"dataChanged_",null);
_.r([_.qY("paper-dropdown-open"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],fb.prototype,"onDropdownOpen",null);_.r([_.qY("iron-activate"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],fb.prototype,"onIronActivate_",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fb.prototype,"onTap_",null);
_.r([_.qY("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],fb.prototype,"onMenuClose_",null);_.r([_.Em({is:"yt-dropdown-menu",disableElementRegistration:!0})],fb);
_.B(fb,"yt-dropdown-menu",function(){if(D$e===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;v3e===void 0&&(v3e=document.createElement("template"));var R=v3e;I.call(c,R.content.cloneNode(!0),G.content.firstChild);D$e=G}G=D$e;return G},{mode:2});var Bh=function(){var G=_.J.apply(this,arguments)||this;G.hasNotification=!1;return G};
_.u(Bh,_.J);Bh.prototype.computeId=function(G){return G};
Bh.prototype.computeHorizontalAlign=function(G){return G?"right":"left"};
Bh.prototype.computeAccessibilityLabel=function(G){var c,I;return((c=G.accessibility)==null?void 0:(I=c.accessibilityData)==null?void 0:I.label)||null};
Bh.prototype.notificationDataChanged=function(){var G;this.hasNotification=!!this.notificationData&&!((G=this.data)==null?0:G.icon)};
Bh.prototype.notificationDataChanged=Bh.prototype.notificationDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.qi.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],Bh.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Bh.prototype,"data",void 0);_.r([_.E({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",String)],Bh.prototype,"id",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],Bh.prototype,"isRightAligned",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Bh.prototype,"disabled",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Bh.prototype,"closeOnActivate",void 0);_.r([_.E(),_.h("design:type",Object)],Bh.prototype,"notificationData",void 0);_.r([_.E(),_.h("design:type",Object)],Bh.prototype,"hasNotification",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],Bh.prototype,"useComputedAriaLabel",void 0);_.r([_.wD("notificationData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bh.prototype,"notificationDataChanged",null);_.r([_.Em({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Bh);
_.B(Bh,"yt-sort-filter-sub-menu-renderer",function(){if(n3K===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;FSK===void 0&&(FSK=document.createElement("template"));var R=FSK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);n3K=G}G=n3K;return G},{mode:2});var o3V=_.W(function(G){var c=G.data;var I=_.Nx(function(){var K=c().onTap;(K=_.D(K,_.JN))&&_.wH().resolve(_.n4).resolveCommand(K);return!1}),R=function(){return{sources:[{url:c().thumbnailUrl,
width:120,height:90}]}},Z=function(){return c().rating&&c().ratingA11yLabel&&c().reviewsCount&&c().reviewsCountA11yLabel};
return _.e("place-data-view-model",null,_.e(_.l,{cond:function(){return c().placeName&&c().placeCategory},
then:function(){return _.e("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":I},_.e(_.yc,{data:R,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.e(_.Er,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return c().onTap}},_.e("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return c().placeName}},function(){return c().placeName})),_.e("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.e(_.l,{cond:Z,
then:function(){return _.e("div",{class:_.O3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.e("span",{class:"score",title:function(){return c().ratingA11yLabel}},function(){return c().rating}),_.e("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.e(_.F6,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.e("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return c().reviewsCountA11yLabel}},function(){return c().reviewsCount}))},
else:function(){return _.e("div",{class:_.O3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.e("div",{class:_.O3("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.e("span",{class:"category",
title:function(){return c().placeCategory}},function(){return c().placeCategory}))))}}))},"ib");
o3V.idomCompat=!0;_.R1(o3V,"place-data-view-model",{props:{data:_.bl}});var U$i=new _.De("INLINE_PLAYBACK_HOOK_TOKEN");var uo0=Mx({sharedUi:cSK});_.Ce=Ve(uo0)(uo0.sharedUi,{animatedThumbnailEnabledSelector:function(G){return G.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(G){return G.inlinePreviewEnabled},
currentPageTypeSelector:function(G){return G.currentPageType},
currentPageSubTypeSelector:function(G){return G.currentPageSubType},
persistentPanelVisibleSelector:function(G){return G.persistentPanelVisible}});var bB2=function(G){this.setActiveSlideIndex=G;this.jobIds=[];this.isSlideshowPlaying=!1},LSp=function(G,c){G.isSlideshowPlaying||(G.isSlideshowPlaying=!0,kK2(G),sSK(G,c,0))},kK2=function(G){_.mq(_.dJ,function(){G.setActiveSlideIndex(0)},1)},sSK=function(G,c,I){G.jobIds.push(_.mq(_.dJ,function(){var R=I<c-1?I+1:0;
G.setActiveSlideIndex(R);sSK(G,c,R)},1800))};var Al0,Su2;Al0=new _.De("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.$$K=new _.De("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");Su2=new _.De("COMMON_MARK_VIEW_MODEL_TOKEN");var p4e=new _.De("IMAGE_ON_LOAD_HANDLER_TOKEN");var MY9=_.W(function(G){return _.e("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.e(_.l,{cond:function(){var c;return(c=G.data())==null?void 0:c.thumbnail},
then:function(c){return _.e(_.yc,{data:c,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.VY2=_.W(function(G){var c=G.data;var I=G.lockupExperiments;G={};return _.e("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.e("div",{class:_.O3("ytThumbnailOverlayButtonViewModelButton",(G.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var R;return I&&((R=I())==null?void 0:R.useLegacySizedIconButton)},G))},_.e(_.sN,{data:function(){return c().overlayButton}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
buttonOverrides:function(){var Z;return I&&((Z=I())==null?0:Z.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.VY2.idomCompat=!0;var zjp=_.W(function(G){return _.e("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Nx(function(c){c.preventDefault();return!1})},_.e(_.sN,{data:function(){return G.data().buttons}},{toggleButtonViewModel:function(c){return _.e("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.e(_.m8,{data:c.data}))}}))},"lb");
zjp.idomCompat=!0;var E3N=_.W(function(G){var c=function(){var I;return((I=_.D(G.data().rendererContext,_.Aq))==null?void 0:I.label)||""};
return _.e("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.e(_.l,{cond:function(){return G.data().image},
then:function(){return _.e("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.e(_.yc,{data:function(){return G.data().image},
alt:c}))}}),_.e(_.l,{cond:function(){return G.data().text},
then:function(){return _.e("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return G.data().text})}}))},"mb");var Jl0;Jl0=_.Ce.animatedThumbnailEnabledSelector;_.rE=_.W(function(G){var c=[],I=function(){var F,n;return _.xVU((F=G.width)==null?void 0:F.call(G),(n=G.height)==null?void 0:n.call(G))},R=_.wH().resolve(_.qR(p4e)),Z=_.mX("yt-thumbnail-view-model",function(){c.push("elRef.value set");
var F;(F=G.playbackRef)==null||F.call(G,{thumbnailElRef:Z,thumbnail:G.data().image,thumbnailOverlays:G.data().overlays,thumbnailSize:I()})});
_.tI(function(){c.push("onInit");_.ty(function(){c.push("onCleanup")})});
var K=_.o1(Jl0),m=function(){var F,n;return(n=(F=G.aspectRatio)==null?void 0:F.call(G))!=null?n:0},a=function(){return(G.data().image?_.Qt8(G.data().image):m())<=1&&m()===0},O=function(){return a()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},N=function(){Z.value||_.Ck(new _.iW("Thumbnail elRef.value is null",c.join("\n")));
R&&Z.value&&R(Z.value)},q=function(){var F,n;
return((F=G.hovered)==null?void 0:F.call(G))&&I()!=="large"&&((n=G.data().overlays)==null?void 0:n.some(function(U){return _.D(U,VH2)}))},w={};
return _.e("yt-thumbnail-view-model",{class:_.O3("ytThumbnailViewModelHost",G.className,function(){return ktr(m())},function(){var F,n;
a:{var U=I(),k=(F=G.disableRounding)==null?void 0:F.call(G);F=(n=G.isClip)==null?void 0:n.call(G);if(!k&&!F)switch(U){case "large":n="ytThumbnailViewModelLarge";break a;case "small":n="ytThumbnailViewModelSmall";break a;default:n="ytThumbnailViewModelMedium";break a}n=void 0}return n},(w.ytThumbnailViewModelCinematic=a,w)),
style:_.wi({"background-color":function(){var F,n=a()?(F=G.data().backgroundColor)==null?void 0:F.lightTheme:void 0;return n?MD(n,"1"):void 0}}),
el:Z},_.e(_.l,{cond:a,then:function(){return _.e("div",{class:"ytThumbnailViewModelBlurredImage"},_.e(_.yc,{data:function(){return G.data().image},
alt:"",contentMode:O,targetWidth:G.width,onload:N}))}}),_.e("div",{class:"ytThumbnailViewModelImage"},_.e(_.yc,{data:function(){return G.data().image},
alt:"",contentMode:O,targetWidth:G.width,onload:N}),null),_.e(_.sN,{data:function(){return q()?void 0:G.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Jop,thumbnailOverlayBadgeViewModel:function(F){return _.e(_.WmA,{data:F.data,thumbnailSize:I,isClip:G.isClip})},
thumbnailBottomOverlayViewModel:function(F){return _.e(M32,{data:F.data,thumbnailSize:I,isClip:G.isClip})},
thumbnailOverlayFullViewModel:E3N,thumbnailOverlayButtonViewModel:function(F){return _.e(_.VY2,{data:F.data,lockupExperiments:G.lockupExperiments})},
channelDisclosureViewModel:function(F){F=F.data;var n;return _.e("div",null,(n=_.wH().resolve(_.qR(Al0)))==null?void 0:n({data:F}))}}),_.e(_.sN,{data:function(){var F;
return((F=G.hovered)==null?0:F.call(G))?G.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(F){return _.e(lE,{data:F.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:zjp}),_.e(_.sN,{data:function(){var F;return((F=G.hovered)==null?0:F.call(G))&&K()?G.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:MY9}),_.e(_.l,{cond:G.isClip,then:function(){return _.e("div",{class:"ytPinkingNsHost"},_.e("svg",{class:"ytPinkingNsPinkingLeft"},_.e("defs",null,_.e("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.e("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.e("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.e("svg",{class:"ytPinkingNsPinkingRight"},_.e("defs",null,_.e("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.e("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.e("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.rE.idomCompat={callbacks:{playbackRef:!0}};var WS0=_.W(function(G){var c=_.Q(_.ks(-1,void 0,"RW2Ole")),I=c.next().value,R=c.next().value;_.tI(function(){var Z=new bB2(R);LSp(Z,G.data().thumbnails.length);_.ty(function(){if(Z.isSlideshowPlaying){Z.isSlideshowPlaying=!1;for(var K=Z.jobIds,m=0,a=K.length;m<a;m++)_.dJ.cancelJob(K[m]);Z.jobIds.length=0}})});
return _.e("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.e(_.sN,{data:function(){return G.data().thumbnails}},{thumbnailViewModel:function(Z,K){return _.e("div",{class:function(){var m=!G.data().primaryThumbnail,a=K(),O=I(),N=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
m&&a===0&&N.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");a<=O&&N.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return N.join(" ")}},_.e(_.rE,{data:Z.data,
disableRounding:G.disableRounding}))}}))},"ob");
WS0.idomCompat=!0;var sL8=new _.De("DWELL_DETECTOR_REGISTRY_TOKEN");var ffi=_.W(function(G){var c=L5g(G.triggeringElement),I=function(){return!!G.data().primaryThumbnail},R=function(){var K,m=(K=G.data())==null?void 0:K.maxHeight,a;
K=(a=G.maxHeight)==null?void 0:a.call(G);return m!=null&&K!=null?Math.min(m,K):K!=null?K:m},Z=function(){var K=R();
if(K){var m;if(I()&&(m=G.includeStackHeight)!=null&&m.call(G)){var a;m=((a=G.doubleStack)==null?0:a.call(G))?8:4}else m=0;K=K-m-1;if(!(K<0)){a=Math;m=a.ceil;var O,N;var q=jYi((N=(O=G.aspectRatio)==null?void 0:O.call(G))!=null?N:0);return m.call(a,K*q)}}};
return _.e("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.wi({height:function(){return R()?R()+"px":void 0},
width:function(){return Z()?Z()+"px":void 0}})},_.e(iBA,{stackEnabled:I,
thumbnailSize:function(){var K,m;return _.xVU((K=G.width)==null?void 0:K.call(G),(m=G.height)==null?void 0:m.call(G))},
doubleStack:G.doubleStack,stackColor:function(){return G.data().stackColor},
includeStackHeight:G.includeStackHeight},_.e(_.sN,{data:function(){return G.data().primaryThumbnail}},{thumbnailViewModel:function(K){var m={};
return _.e(_.rE,{data:K.data,width:G.width,height:G.height,aspectRatio:G.aspectRatio,disableRounding:G.disableRounding,className:_.O3((m.ytCollectionThumbnailViewModelHostHasStacks=I,m)),hovered:G.hovered,playbackRef:G.playbackRef})}}),_.e(_.l,{cond:function(){var K;
return c()&&((K=G.data().thumbnails)==null?void 0:K.length)},
then:function(){return _.e("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.e(WS0,{data:G.data,disableRounding:function(){return!I()}}))}})))},"pb");
ffi.idomCompat={callbacks:{playbackRef:!0}};
var iBA=_.W(function(G){var c=G.children;var I=G.stackEnabled;var R=G.thumbnailSize;var Z=G.doubleStack;var K=G.stackColor;var m=G.includeStackHeight;var a,O=(a=_.wH().resolve(_.qR(_.d0)))==null?void 0:a();return _.e(_.l,{cond:I,then:function(){return _.e(mLK,{data:function(){var N,q;return{experimentEnabled:!0,thumbnailSize:R(),doubleStack:Z==null?void 0:Z(),color:O?K==null?void 0:(N=K())==null?void 0:N.darkTheme:K==null?void 0:(q=K())==null?void 0:q.lightTheme,enableResponsiveMode:!1,includeStackHeight:m==
null?void 0:m()}}},c)},
else:function(){return c}})},"qb");var B$2=new _.De("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var xy;_.j4={calledOnce:!0,state:"visible"};xy={calledOnce:!0,state:"hidden"};_.tp=_.W(function(G){var c=G.data;var I=G.customCommandResolver;var R=G.className;var Z=G.delayedClassName;var K=G.animationEntityKey;var m=G.isCompactWidth;var a=G.isContentWidth;G=_.Q(_.ks(!1,void 0,"pC3tUb"));var O=G.next().value,N=G.next().value,q=_.gD(K,""),w=_.um(bOq,q),F=function(){var FB,oq;return(oq=(FB=w())==null?void 0:FB.value)!=null?oq:!1},n=function(){_.y1(_.Le("booleanEntity",q(),{key:q(),
value:!0}));C=void 0};
K=_.Q(_.Gz(F));var U=K.next().value,k=K.next().value;K=_.Q(_.Gz(F));var p=K.next().value,M=K.next().value;K=_.Q(_.Gz(function(){var FB;return F()?(FB=c().styleTransitionConfig)==null?void 0:FB.destinationStyle:void 0}));
var z=K.next().value,t=K.next().value,x=function(){var FB=Object.assign({},c(),z()&&{style:z()});var oq,Wr,iT=FB.label,z8=(oq=FB.interaction)==null?void 0:(Wr=oq.accessibility)==null?void 0:Wr.label;oq=FB.iconImage?FB.label&&FB.label.content?FB.iconLeading?"leading":"trailing":"icon-only":void 0;FB={formattedButtonText:iT,accessibilityLabel:z8,style:pJ8(FB.style),type:MFT(FB.style),state:"active",size:S5p(FB.size),iconPosition:oq,disabled:!1,aTagConfig:$zp(FB,I)};_.v("enable_desktop_vdcbg_components")&&
(FB.focused=O());return FB},C;
K=_.wZ({visibilityCallback:function(FB){var oq,Wr=(oq=c().interaction)==null?void 0:oq.onFirstVisible;FB&&Wr&&_.r0(Wr)},
showOption:_.j4});var H=function(){return gYr(x(),!!c().iconImage)};
G={};var g={};R=_.O3(function(){return"ytwAdButtonViewModelHost"},function(){return c().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var FB=!!c().delayedAppearanceConfig,oq=U();
return FB?oq?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var FB=!!c().delayedAppearanceConfig,oq=p();
return FB?oq?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!c().delayedAppearanceConfig||U()?Z==null?void 0:Z():""},(G.ytwAdButtonViewModelHostCompactWidth=function(){return m==null?void 0:m()},G),(g.ytwAdButtonViewModelHostContentWidth=function(){return a==null?void 0:a()},g),R!=null?R:"");
var QO=function(){var FB,oq=(FB=c().delayedAppearanceConfig)==null?void 0:FB.delayedInvisibleSeconds;oq&&(C=_.SR(_.dJ,function(){k(!0);T8()},oq*1E3))},T8=function(){var FB,oq=(FB=c().delayedAppearanceConfig)==null?void 0:FB.delayedVisibleSeconds;
oq&&(C=_.SR(_.dJ,function(){M(!0);kp()},oq*1E3))},kp=function(){var FB,oq=(FB=c().styleTransitionConfig)==null?void 0:FB.styleTransitionSeconds,Wr,iT=(Wr=c().styleTransitionConfig)==null?void 0:Wr.destinationStyle;
oq&&iT?C=_.SR(_.dJ,function(){t(iT);n()},oq*1E3):n()};
_.tI(function(){QO()});
_.ty(function(){C&&_.dJ.cancelJob(C)});
return _.e("ad-button-view-model",{"on:focusin":_.Nx(_.v("enable_desktop_vdcbg_components")?function(){var FB=_.wH().resolve(_.qR(_.zb));FB&&N(FB.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Nx(_.v("enable_desktop_vdcbg_components")?function(){N(!1);return!1}:void 0),
class:R,el:_.YC(K),style:_.wi({"transition-duration":"0.3s"})},_.e(_.l,{cond:x,then:function(){return _.e(_.fx,{data:x,icon:function(){return _.e(_.l,{cond:function(){return c().iconImage},
then:function(FB){return _.e(_.yc,{data:FB,alt:"",targetWidth:H,targetHeight:H,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var rlK=_.W(function(G){var c=G.data;G=function(){return c().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var I=_.wZ({visibilityCallback:function(K){var m,a=(m=c().interaction)==null?void 0:m.onFirstVisible;K&&a&&_.r0(a)},
showOption:_.j4}),R={},Z={};return _.e("ad-button-group-view-model",{class:_.O3("ytwAdButtonGroupViewModelHost",(R.ytwAdButtonGroupViewModelHostCompactWidth=G,R)),el:_.YC(I)},_.e("div",{class:_.O3("ytwAdButtonGroupViewModelHostSecondaryButton",(Z.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=G,Z))},_.e(_.sN,{data:function(){return c().secondaryAdButton}},{adButtonViewModel:function(K){return _.e(_.tp,{data:K.data})}})),_.e("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.e(_.sN,
{data:function(){return c().primaryAdButton}},{adButtonViewModel:function(K){return _.e(_.tp,{data:K.data})}})))},"tb");var jS0=_.W(function(G){var c=function(){var I;return((I=G.data())==null?void 0:I.answers)||[]};
return _.e("yt-survey-icons",{class:"ytSurveyIconsHost"},_.e("div",{class:"ytSurveyIconsHeader"},_.e("div",{class:"ytSurveyIconsTitle"},function(){var I;return(I=G.data())==null?void 0:I.text}),_.e("div",null,_.e(_.fx,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var I;(I=G.onDismiss)==null||I.call(G)}}},
iconName:"DISMISSAL"}))),_.e("div",null,_.e("div",{class:"ytSurveyIconsAnswers"},_.e(_.fh,{each:function(){return c()},
keyBy:"INDEX"},function(I,R){return _.e("div",null,_.e(_.fx,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Z;(Z=G.onSelect)==null||Z.call(G,I(),R)}}},
icon:function(){return _.e(_.F6,{icon:function(){var Z,K;return(Z=I())==null?void 0:(K=Z.icon)==null?void 0:K.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.e("div",{class:"ytSurveyIconsAnswersText"},_.e("div",null,function(){return c().length?c()[0].text:""}),_.e("div",null,function(){return c().length?c()[c().length-1].text:""}))))},"ub");var x$0=_.W(function(G){var c=_.YC(_.im(function(){var O;return(O=G.data())==null?void 0:O.rendererContext},void 0,void 0,void 0,!0)),I=_.Q(_.ks(!1,void 0,"GW0yjf")),R=I.next().value,Z=I.next().value,K=_.um(b5A,function(){var O;
return(O=G.data().keys)==null?void 0:O.surveyEntityKey}),m=_.um(kSO,function(){var O;
return(O=G.data().keys)==null?void 0:O.surveyStateEntityKey});
_.QF("ytd-slimline-survey-show-action",function(){Z(!1)});
var a=function(){var O,N;var q=(O=m())==null?void 0:(N=O.questionStack)==null?void 0:N[0];if(q!==void 0){var w,F;return(w=K())==null?void 0:(F=w.questions)==null?void 0:F[q]}};
I={};return _.e("yt-slimline-survey-view-model",{el:c,class:_.O3("ytSlimlineSurveyViewModelHost",(I.ytSlimlineSurveyViewModelCollapsed=function(){return R()},I))},_.e("div",{class:"ytSlimlineSurveyViewModelContainer"},_.e(_.l,{cond:function(){var O;
return((O=a())==null?void 0:O.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.e(jS0,{data:function(){return a()},
onSelect:function(O,N){var q,w;return _.T(function(F){Z(!0);if(w=(q=G.data())==null?void 0:q.onSelectRating)_.r0(w),_.y1(lKe(N));_.Vp(F)})},
onDismiss:function(){Z(!0);var O;var N=(O=K())==null?void 0:O.dismissalFeedbackToken;O=N?{feedbackEndpoint:{feedbackToken:N}}:void 0;O&&_.iD(O,{form:{element:c.value}})}})}})))},"vb");var tYe=_.W(function(G){return _.e("yt-table-view-model",{class:_.O3("ytTableViewModelHost",G.className)},_.e(_.fh,{each:function(){return G.data().rows||[]}},function(c){var I={};
return _.e("div",{class:_.O3("ytTableViewModelRow",(I.ytTableViewModelRowBottomBorder=function(){return G.data().showSeparators},I))},_.e(_.fh,{each:function(){return(c==null?void 0:c.cells)||[]}},function(R,Z){var K,m={};
return _.e("span",{class:_.O3((m.ytTableViewModelRowLabel=function(){return Z()===0&&G.data().showHorizontalHeaders},m.ytTableViewModelCell=function(){return!G.data().showHorizontalHeaders||Z()>0},m))},(K=R.text)==null?void 0:K.content)}))}))},"wb");var hjN=_.W(function(G){return _.e("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.e(_.sN,{data:function(){var c;return(c=G.data())==null?void 0:c.attachments}},{flexibleActionsViewModel:function(c){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(_.FK,{data:c.data,
layout:function(){var I;return((I=G.lockupStyle())==null?void 0:I.arrangement)===1?0:1},
justifyContentOverride:function(){var I;return((I=G.lockupStyle())==null?void 0:I.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(c){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(x$0,{data:c.data}))},
expandableMetadataViewModel:function(c){c=c.data;var I;return _.e("div",{class:_.O3("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(I=_.wH().resolve(_.qR(B$2)))==null?void 0:I({data:c}))},
adButtonGroupViewModel:function(c){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(rlK,{data:c.data}))},
adButtonViewModel:function(c){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(_.tp,{data:c.data,isCompactWidth:!0}))},
tableViewModel:function(c){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(tYe,{data:c.data}))},
aiCompanionAttachmentViewModel:function(c){c=c.data;var I;return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},(I=_.wH().resolve(_.qR(_.$$K)))==null?void 0:I({data:c}))}}))},"xb");var iXg=_.DH("rich_grid_min_item_width",310),J98=_.DH("rich_grid_max_item_width",500);var C40,dzU;C40=16/9;dzU=2/3;_.hp=_.W(function(G){var c=G.data;var I=G.className;var R=G.imageSizeConfig;var Z=G.notifyOnLoaded;var K=function(){return c().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},m=function(){var F;
return _.W8((F=c())==null?void 0:F.rendererContext)};
G={};G=(G.ytContentPreviewImageViewModelHost=!0,G.ytContentPreviewImageViewModelCircleImage=function(){return K()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},G.ytContentPreviewImageViewModelTappable=function(){return m()},G);
var a=function(){var F,n;return(n=(F=_.D(c().rendererContext,_.Aq))==null?void 0:F.label)!=null?n:""},O=function(){return XJU(c())},N=function(){var F=HXp(K(),c().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",R==null?void 0:R(),y9A(O()),c().layoutWidth,c().layoutHeight),n=Object.assign({},F);
F.width&&(n.width=Math.round(F.width));F.height&&(n.height=Math.round(F.height));F.maxWidth&&(n.maxWidth=Math.round(F.maxWidth));F.maxHeight&&(n.maxHeight=Math.round(F.maxHeight));return n},q=_.SE(function(){return N().height},void 0,"CxFlJb"),w=_.SE(function(){return N().width},void 0,"lb8Jhd");
return _.e("yt-content-preview-image-view-model",{el:_.YC(_.im(function(){var F;return(F=c())==null?void 0:F.rendererContext})),
role:function(){return m()?"link":void 0},
tabindex:function(){return m()?0:void 0},
class:_.O3(I,G,function(){var F=K();var n=R==null?void 0:R();F=F==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||F==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||F==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||F==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(n==null?void 0:n.size)!=null&&n.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(n==null?void 0:n.size)!=null&&n.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return F}),
style:function(){var F=N(),n=[];F.width&&n.push("width: "+F.width+"px");F.height&&n.push("height: "+F.height+"px");F.maxWidth&&n.push("max-width: "+F.maxWidth+"px");F.maxHeight&&n.push("max-height: "+F.maxHeight+"px");F.fullWidth&&n.push("width: 100%");return n.join(";")}},_.e(_.l,{cond:O,
then:function(F){return _.e(_.yc,{data:F,alt:a,"data-disabled$":function(){return!a()},
notifyOnLoaded:Z,targetWidth:w,targetHeight:q,preserveWidth:function(){return!!w()},
preserveHeight:function(){return!!q()}})}}),_.e(_.sN,{data:function(){var F;
return(F=c())==null?void 0:F.overlays}},{thumbnailHoverOverlayViewModel:lE,
thumbnailOverlayButtonViewModel:_.VY2}))},"yb");
_.hp.idomCompat=!0;var dE=_.W(function(G){var c=G.data;var I=G.className;var R=G.useSmallLayout;var Z=G.useMediumText;G=G.useHeavyText;var K={};return _.e("yt-attribution-view-model",{el:_.YC(_.im(function(){var m;return(m=c())==null?void 0:m.rendererContext})),
class:_.O3(I,(K.ytAttributionViewModelHost=!0,K.ytAttributionViewModelMediumText=Z,K.ytAttributionViewModelHeavyText=G,K))},_.e(_.l,{cond:function(){return _.W8(c().rendererContext)},
then:function(){return _.e("button",{class:"ytAttributionViewModelTappable"},_.e(d$A,{data:c,useSmallLayout:R}))},
else:function(){return _.e(d$A,{data:c,useSmallLayout:R})}}))},"zb"),d$A=_.W(function(G){var c=G.data;
var I=G.useSmallLayout;var R=function(){return{size:(I==null?0:I())?16:24}};
return _.e(_.FG,null,_.e(_.sN,{data:function(){return c().contentPreviewImage}},{contentPreviewImageViewModel:function(Z){return _.e(_.hp,{data:Z.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:R})}}),_.e(_.sN,{data:function(){return c().badge}},{badgeViewModel:function(Z){return _.e(_.Jp,{data:Z.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.e(_.l,{cond:function(){return c().text},
then:function(){return _.e(_.ul,{text:function(){return c().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.e(_.l,{cond:function(){return c().suffix},
then:function(){return _.e(_.ul,{text:function(){return c().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
dE.idomCompat=!0;var Cz0,HBK,X40,yle,g3i;Cz0=_.W(function(G){var c=G.delimiter;var I=G.max;var R=G.index;var Z=G.isStandalone;return _.e(_.l,{cond:function(){return I()-1>R()},
then:function(){var K={};return _.e("span",{class:_.O3("yt-content-metadata-view-model__delimiter",(K["yt-content-metadata-view-model__delimiter--standalone"]=Z,K)),"aria-hidden":!0},c)}})},"Bb");
HBK=_.W(function(G){var c=G.metadataPart;var I=G.maxLines;return _.e(_.ul,{text:function(){return c().text},
linkInheritColor:!0,className:function(){return gUb(I())},
userInput:!0})},"Cb");
X40=_.W(function(G){var c=G.metadataPart;var I=G.maxLines;return _.e(_.l,{cond:function(){return c().tooltip},
then:function(R){return _.e("span",{title:R,role:"tooltip"},_.e(HBK,{metadataPart:c,maxLines:I}))},
else:function(){return _.e(HBK,{metadataPart:c,maxLines:I})}})},"Db");
yle=_.W(function(G){var c=G.metadataPart;var I=G.isOverlay;var R=G.useMediumText;var Z=G.hideAvatar;var K=function(){return c().maxLines!==void 0?c().maxLines:1};
return _.e(_.FG,null,_.e(_.sN,{data:function(){return c().avatarStack}},{avatarStackViewModel:function(m){return _.e(_.Fh,{data:m.data,
isOverlay:I,useMediumText:R,hideAvatar:Z})},
badgeViewModel:_.Jp}),_.e(_.l,{cond:function(){return c().leadingIcon},
then:function(m){return _.e(_.F6,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return m().name},
size:function(){return m().width}})}}),_.e(_.l,{cond:function(){return c().text},
then:function(){return _.e(X40,{metadataPart:c,maxLines:K})}}),_.e(_.l,{cond:function(){return c().icon},
then:function(m){return _.e(_.F6,{className:"yt-content-metadata-view-model__icon",icon:function(){return m().name},
size:function(){return m().width}})}}))},"Eb");
g3i=_.W(function(G){var c=G.metadataRow;var I=G.isInline;var R=G.delimiter;var Z=G.isOverlay;var K=G.useMediumText;var m=G.extensions;var a=function(){var N,q=m==null?void 0:(N=m())==null?void 0:N.lockupMetadata;N=c();var w,F;return!!((q==null?0:(w=q.byline)==null?0:w.hideAvatar)&&((F=_.D(N,k50))==null?void 0:F.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},O=function(){return c().metadataParts||[]};
G={};return _.e("div",{class:_.O3("yt-content-metadata-view-model__metadata-row",(G["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=I,G["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var N,q=m==null?void 0:(N=m())==null?void 0:N.lockupMetadata;N=c();var w,F;return!!((q==null?0:(w=q.byline)==null?0:w.addPadding)&&((F=_.D(N,k50))==null?void 0:F.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},G["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var N;
return!!(m==null?0:(N=m())==null?0:N.lockupMetadata)&&c().badges&&!c().metadataParts},G))},_.e(_.sN,{data:function(){return c().badges}},{badgeViewModel:function(N){return _.e("div",{class:"yt-content-metadata-view-model__badge"},_.e(_.Jp,{data:N.data,
numBadgesInRow:function(){var q,w;return((q=c())==null?void 0:(w=q.badges)==null?void 0:w.length)||0}}))}}),_.e(_.fh,{each:O},function(N,q){return _.e(_.FG,null,_.e(yle,{metadataPart:N,
isOverlay:Z,useMediumText:K,hideAvatar:a}),_.e(Cz0,{delimiter:R,max:function(){return O().length},
index:q,isStandalone:!1}))}),_.e(_.l,{cond:function(){return c().isSpacerRow&&!I()},
then:function(){return _.e("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.Cb=_.W(function(G){G=_.YW(G,{layout:0,isOverlay:!1});var c=G.data,I=G.layout,R=G.isOverlay,Z=G.useMediumText,K=G.extensions,m=function(){return I()===0},a=function(){var N;
return((N=c().metadataRows)==null?void 0:N.filter(function(q){var w,F=K==null?void 0:(w=K())==null?void 0:w.lockupMetadata,n,U;w=!!((F==null?0:(n=F.description)==null?0:n.hideDescription)&&((U=_.D(q,k50))==null?void 0:U.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var k,p;return!((F==null?0:(k=F.spacer)==null?0:k.hideSpacer)&&((p=_.D(q,k50))==null?void 0:p.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||w)}))||[]},O={};
return _.e("yt-content-metadata-view-model",{class:_.O3(G.className,"yt-content-metadata-view-model",(O["yt-content-metadata-view-model--inline"]=m,O["yt-content-metadata-view-model--tappable"]=function(){return _.W8(c().rendererContext)},O["yt-content-metadata-view-model--medium-text"]=Z,O)),
el:_.YC(_.im(function(){return c().rendererContext}))},_.e(_.fh,{each:a},function(N,q){return _.e(_.FG,null,_.e(g3i,{metadataRow:N,
isInline:m,delimiter:function(){return c().delimiter},
isOverlay:R,useMediumText:Z,extensions:K}),_.e(_.l,{cond:function(){return m()&&!N.isSpacerRow},
then:function(){return _.e(Cz0,{delimiter:function(){return c().delimiter},
max:function(){return a().length},
index:q,isStandalone:!0})}}))}))},"Gb");
_.Cb.idomCompat=!0;var YuT=_.W(function(G){var c=_.wH().resolve(_.qR(_.d0)),I={};return _.e("yt-lockup-metadata-view-model",{class:_.O3("yt-lockup-metadata-view-model",function(){a:{var R=G.lockupStyle();if(R==null?0:R.isOverlay)R="yt-lockup-metadata-view-model--overlay";else switch(R==null?void 0:R.arrangement){case 1:R="yt-lockup-metadata-view-model--horizontal";break a;default:R="yt-lockup-metadata-view-model--vertical"}}return R},function(){a:{var R=G.lockupStyle();
switch(R==null?void 0:R.titleMaxLines){case 1:R="yt-lockup-metadata-view-model--title-max-lines-1";break a}R=void 0}return R},function(){a:{var R=G.lockupStyle();
if(R==null?0:R.isTiny)R="yt-lockup-metadata-view-model--tiny";else switch(R==null?void 0:R.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":R="yt-lockup-metadata-view-model--compact";break a;default:R="yt-lockup-metadata-view-model--standard"}}return R},(I["yt-lockup-metadata-view-model--overlay"]=function(){var R;
return(R=G.lockupStyle())==null?void 0:R.isOverlay},I["yt-lockup-metadata-view-model--card"]=function(){var R;
return(R=G.lockupStyle())==null?void 0:R.isCard},I["yt-lockup-metadata-view-model--centered"]=function(){var R;
return(R=G.lockupStyle())==null?void 0:R.isCentered},I["yt-lockup-metadata-view-model--typography-bump"]=function(){var R;
return(R=G.lockupStyle())==null?void 0:R.typographyBump},I["yt-lockup-metadata-view-model--legacy-typography"]=function(){var R;
return(R=G.lockupStyle())==null?void 0:R.useLegacyTypography},I["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var R;
return(R=G.lockupStyle())==null?void 0:R.useRichGridLegacyTypography},I))},_.e(_.sN,{data:function(){return G.data().image}},{avatarStackViewModel:function(R){return _.e("div",{class:"yt-lockup-metadata-view-model__avatar"},_.e(_.Fh,{data:R.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(R){return _.e("div",{class:"yt-lockup-metadata-view-model__avatar"},_.e(_.qF,{data:R.data}))},
decoratedAvatarViewModel:function(R){return _.e("div",{class:"yt-lockup-metadata-view-model__avatar"},_.e(_.wE,{data:R.data}))}}),_.e("div",{class:"yt-lockup-metadata-view-model__text-container"},_.e("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var R;return(R=G.data().title)==null?void 0:R.content}},_.e(_.l,{cond:function(){return G.data().title},
then:function(R){return _.e(_.Er,{command:G.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.wi({color:function(){var Z;a:{var K=G.lockupStyle();var m=(Z=G.hovered)==null?void 0:Z.call(G);Z=!(c==null||!c());var a;if((K==null?0:(a=K.onFocusEffect)==null?0:a.textPrimaryColor)&&m&&(K=Z?K.onFocusEffect.textPrimaryColor.darkTheme:K.onFocusEffect.textPrimaryColor.lightTheme)){K=VJ(K);break a}K=void 0}return K}}),
ariaLabel:G.lockupAccessibilityLabel},_.e(_.ul,{text:R,userInput:!0}))}})),_.e("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.wi({color:function(){var R;a:{var Z=G.lockupStyle();var K=(R=G.hovered)==null?void 0:R.call(G);R=!(c==null||!c());var m;if((Z==null?0:(m=Z.onFocusEffect)==null?0:m.textSecondaryColor)&&K&&(Z=R?Z.onFocusEffect.textSecondaryColor.darkTheme:Z.onFocusEffect.textSecondaryColor.lightTheme)){Z=VJ(Z);break a}Z=void 0}return Z}})},_.e(_.sN,{data:function(){return G.data().metadata}},{contentMetadataViewModel:function(R){return _.e(_.Cb,{data:R.data,
layout:function(){var Z,K;return(K=(Z=G.layout)==null?void 0:Z.call(G))!=null?K:1},
useMediumText:function(){var Z,K;return((Z=G.lockupStyle())==null?void 0:Z.typographyBump)||((K=G.lockupStyle())==null?void 0:K.useRichGridLegacyTypography)},
extensions:function(){var Z,K,m,a;return{lockupMetadata:{byline:{hideAvatar:((Z=G.lockupStyle())==null?void 0:Z.arrangement)===0,addPadding:((K=G.lockupStyle())==null?void 0:K.arrangement)===1},description:{hideDescription:!((m=G.lockupStyle())==null||!m.compactMetadata)},spacer:{hideSpacer:!((a=G.lockupStyle())==null||!a.compactMetadata)}}}}})}})),_.e(_.sN,{data:function(){return G.data().attribution}},{attributionViewModel:function(R){return _.e("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.e(dE,{data:R.data,
useSmallLayout:!0}))}})),_.e("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.e(_.sN,{data:function(){return G.data().menuButton}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
buttonOverrides:function(){var Z;return((Z=G.lockupStyle())==null?0:Z.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
YuT.idomCompat=!0;var G_e=_.W(function(G){var c=_.mX("notification-multi-action-renderer");_.xc(function(){requestAnimationFrame(function(){_.ax(c.value)})});
var I={},R={},Z={};return _.e("notification-multi-action-renderer",{class:_.O3("ytNotificationMultiActionRendererHost",(I.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var K;return(K=G.useLegacyShelfStyle)==null?void 0:K.call(G)},I)),
el:c},_.e("span",{"aria-live":"polite",class:_.O3("ytNotificationMultiActionRendererTextContainer",(R.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var K;return(K=G.useLegacyShelfStyle)==null?void 0:K.call(G)},R))},_.e(_.ul,{text:function(){return G.data().responseText}})),_.e("div",{class:_.O3("ytNotificationMultiActionRendererButtonContainer",(Z.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var K;
return(K=G.useLegacyShelfStyle)==null?void 0:K.call(G)},Z))},_.e(_.sN,{data:function(){var K;
return(K=G.data().buttons)==null?void 0:K.map(function(m){if(m=m.buttonRenderer){var a,O=Object,N=O.assign,q=(a=m.icon)==null?void 0:a.iconType;a=(a=m.command||m.serviceEndpoint||m.navigationEndpoint)?{innertubeCommand:a}:void 0;m={buttonViewModel:N.call(O,{},{iconName:q,onTap:a,trackingParams:m.trackingParams,titleFormatted:m.text?_.Vc(m.text):void 0},GD8(m))}}else m=void 0;return m}).filter(function(m){return!!m})}},{buttonViewModel:function(K,m){return _.e("div",null,_.e(_.BR,{data:K.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var a;return((a=G.useModernStyles)==null?0:a.call(G))?{type:m()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var c60=_.W(function(G){var c=_.mX("notification-text-renderer");_.xc(function(){requestAnimationFrame(function(){_.ax(c.value)})});
return _.e("notification-text-renderer",{el:c,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.e(_.ul,{text:function(){return G.data().successResponseText}}))},"Lb");_.Hh=_.W(function(G){var c=_.um(NpO,function(){var R;return cor((R=G.contentId)==null?void 0:R.call(G))}),I=function(){var R;
return _.D((R=c())==null?void 0:R.command,_.gA)};
return _.e(_.l,{cond:function(){var R;if(!(R=I())){var Z;R=_.D((Z=c())==null?void 0:Z.command,feV)}return R},
then:function(){return _.e(_.l,{cond:I,then:function(){var R={};return _.e("div",{class:_.O3("ytDismissibleItemReplacedContent",function(){var Z;return Itf((Z=G.aspectRatio)==null?void 0:Z.call(G))})},_.e("div",{class:_.O3((R.ytDismissibleItemAspectRatioContainer=function(){var Z;
return((Z=G.aspectRatio)==null?void 0:Z.call(G))!==void 0},R))},_.e(_.sN,{data:function(){var Z;
return(Z=I())==null?void 0:Z.item}},{notificationMultiActionRenderer:function(Z){return _.e(G_e,{data:Z.data,
useModernStyles:G.useModernStyle,useLegacyShelfStyle:G.useLegacyShelfStyle})},
notificationTextRenderer:c60})))}})},
else:G.children})},"Mb");_.IVK=_.W(function(G){var c=G.data;var I=G.customCommandResolver;G=_.YC(_.wZ({visibilityCallback:function(K){var m,a=(m=c().interaction)==null?void 0:m.onFirstVisible;K&&a&&_.r0(a)},
showOption:_.j4}));var R=function(){var K;return((K=c().interaction)==null?0:K.onTap)?function(m){var a;A9g(m,(a=c().interaction)==null?void 0:a.onTap,I)}:void 0},Z=function(){var K,m=c(),a=R(),O=(K=_.D(c().rendererContext,_.Aq))==null?void 0:K.label;
a:switch(m.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":K=1;break a;default:K=0}return{size:Kmi(m.size),type:K,onTap:a,accessibilityText:O}};
return _.e("ad-avatar-view-model",{class:function(){var K;return((K=c().interaction)==null?0:K.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:G},_.e(_.l,{cond:function(){return c().image},
then:function(K){return _.e(EuN,{data:Z,image:K})}}))},"Nb");_.Xh=_.W(function(G){var c=_.YW(G,{hasDot:!1,usedInMasthead:!1}),I=Object.assign({},c),R=c.data,Z=c.hasDot;G=c.customCommandResolver;var K=c.usedInMasthead,m=(delete I.data,delete I.hasDot,delete I.customCommandResolver,delete I.usedInMasthead,I);c=function(){return R().style};
c!==void 0&&c!==null||_.Ra(Error("Hh"));G=_.xZ(function(){return R().interaction},G);
return _.e("ad-badge-view-model",{class:_.O3(function(){var a;return((a=R().interaction)==null?0:a.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var a=m.adRenderingContextType(),O=K();
R();return a!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||O?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.YC(G)},_.e(_.ov,{data:function(){var a;R();return{type:2,text:(a=R().label)==null?void 0:a.content,adsIncludeDot:Z(),isOverlay:R().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var R3V;_.yu=_.W(function(G){var c=G.data;var I=G.customCommandResolver;var R=G.adRenderingContextType;return _.e("ad-details-line-view-model",{class:function(){var Z;return((Z=c().interaction)==null?0:Z.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.YC(_.wZ({visibilityCallback:function(Z){var K,m=(K=c().interaction)==null?void 0:K.onFirstVisible;Z&&m&&_.r0(m)},
showOption:_.j4}),_.xZ(function(){return c().interaction},I))},_.e(_.l,{cond:function(){return c().style},
then:function(Z){return _.e(_.fh,{each:function(){var K;return((K=c())==null?void 0:K.attributes)||[]},
keyBy:"INDEX"},function(K){return _.e(R3V,{attribute:K,style:Z,adRenderingContextType:function(){return R()}})})}}))},"Pb");
R3V=_.W(function(G){var c=G.attribute;var I=G.style;var R=G.adRenderingContextType;return _.e(_.l,{cond:function(){return c().text},
then:function(Z){return _.e(_.ul,{text:Z,className:function(){var K=R();I();return K==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var ZK0=_.W(function(G){var c=G.data;var I=G.typographyBump;var R=function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},Z=function(){return{size:"M"}};
G={};return _.e(_.FG,null,_.e("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.e(_.ul,{text:function(){return c().headline},
className:_.O3("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return R==null?void 0:R()},G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(I==null?void 0:I())&&!(R==null?0:R())},G)),
linkInheritColor:!0}),_.e(_.l,{cond:function(){return c().description},
then:function(K){var m={};return _.e(_.ul,{text:K,className:_.O3("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(m.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return R==null?void 0:R()},m.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(I==null?void 0:I())&&!(R==null?0:R())},m)),
linkInheritColor:!0})}}),_.e(_.l,{cond:function(){return c().secondaryDescription},
then:function(K){var m={};return _.e(_.ul,{text:K,className:_.O3("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(m.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return I==null?void 0:I()},m)),
linkInheritColor:!0})}}),_.e("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.e(_.l,{cond:function(){return c().adAvatar},
then:function(){return _.e("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.e(_.sN,{data:function(){return c().adAvatar}},{adAvatarViewModel:_.IVK}))}}),_.e(_.sN,{data:function(){return c().adBadge}},{adBadgeViewModel:function(K){return _.e(_.Xh,{data:K.data,
hasDot:function(){return!!c().adDetailsLine},
adRenderingContextType:function(){return c().adRenderingContextType}})}}),_.e(_.sN,{data:function(){return c().adDetailsLine}},{adDetailsLineViewModel:function(K){return _.e(_.yu,{data:K.data,
adRenderingContextType:function(){return c().adRenderingContextType}})}}))),_.e("div",{class:function(){return _.v("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":R()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.e(_.sN,{data:function(){return c().menu}},{buttonViewModel:function(K){return _.e(_.BR,{data:K.data,
buttonOverrides:_.v("enable_desktop_vdc_components")?Z:function(){a:switch(c().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var m="S";break a;default:m="M"}return{size:m}}})}})))},"Rb"),KNN=_.W(function(G){var c=G.data;
var I=G.noBottomMargin;var R=G.useVideoLockupTopPadding;var Z=G.typographyBump;G={};G=_.O3("ytwFeedAdMetadataViewModelHostMetadata",(G.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return I==null?void 0:I()},G.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},G));
var K=function(){return c().adBadge};
K!==void 0&&K!==null||_.Ra(Error("Ih"));K={};var m={};return _.e(_.FG,null,_.e(_.l,{cond:function(){return c().adAvatar},
then:function(){return _.e("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.e(_.sN,{data:function(){return c().adAvatar}},{adAvatarViewModel:function(a){return _.e(_.IVK,{data:a.data})}}))}}),_.e("div",{class:G},_.e("div",{class:_.O3("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(K.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Z==null?void 0:Z()},K.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Z==
null?void 0:Z())&&_.v("web_enable_typography_bump_v2")},K))},_.e(_.ul,{text:function(){return c().headline},
linkInheritColor:!0})),_.e(_.l,{cond:function(){return c().description},
then:function(a){return _.e(_.ul,{text:a,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.e("div",{class:function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.v("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.e(_.sN,{data:function(){return c().adBadge}},
{adBadgeViewModel:function(a){return _.e(_.Xh,{data:a.data,
hasDot:function(){return!!c().adDetailsLine},
adRenderingContextType:function(){return c().adRenderingContextType}})}}),_.e(_.sN,{data:function(){return c().adDetailsLine}},{adDetailsLineViewModel:function(a){return _.e(_.yu,{data:a.data,
adRenderingContextType:function(){return c().adRenderingContextType}})}})),_.e(_.l,{cond:function(){return c().secondaryDescription},
then:function(a){return _.e(_.ul,{text:a,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.e("div",{class:_.O3("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(m.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},m))},_.e(_.sN,{data:function(){return c().menu}},{buttonViewModel:_.BR})))},"Sb"),gE=_.W(function(G){var c=G.data;
var I=G.noBottomMargin;var R=G.listenToTapEvent;var Z=G.setTouchEndHandler;var K=G.useVideoLockupTopPadding;var m=G.typographyBump;G=_.wZ({visibilityCallback:function(w){var F,n=(F=c().interaction)==null?void 0:F.onFirstVisible;w&&n&&_.r0(n)},
showOption:_.j4});var a=_.xZ(function(){return c().interaction},void 0,function(){return R==null?void 0:R()}),O=_.Q(_.ks(!1,void 0,"N3Oquc")),N=O.next().value,q=O.next().value;
O=_.Nx(function(w){(Z==null?0:Z())&&!N()&&(w.currentTarget.click(),q(!0),setTimeout(function(){q(!1)},100));
return!1});
return _.e("feed-ad-metadata-view-model",{class:function(){var w;return((w=c().interaction)==null?0:w.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.YC(G,a),"on:touchend":O},_.e(_.B1,null,_.e(_.W1,{when:function(){return c().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.e(ZK0,{data:c,
typographyBump:m})}),_.e(_.W1,{when:function(){return c().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.e(KNN,{data:c,
noBottomMargin:I,useVideoLockupTopPadding:K,typographyBump:m})})))},"Tb");var PMB,Q_p;PMB=_.Ce.inlinePreviewEnabledSelector;_.Yy=_.W(function(G){return _.e("yt-lockup-view-model",{class:_.O3(G.className,"yt-lockup-view-model--wrapper")},_.e(_.Hh,{contentId:function(){return G.data().contentId},
useModernStyle:!0,aspectRatio:function(){var c,I;return((c=G.containerType)==null?void 0:c.call(G))!==3?tFT(G.data().contentType,(I=G.force16By9ThumbnailAspectRatio)==null?void 0:I.call(G)):void 0}},function(){return _.e(Q_p,Object.assign({},G))}))},"Ub");
Q_p=_.W(function(G){G=_.YW(G,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var c=G.data,I=G.containerLayoutConfig,R=G.containerType,Z=G.sizing,K=G.protectBackground,m=G.typographyBump,a=G.force16By9ThumbnailAspectRatio,O=G.thumbnailFixedWidth,N=G.thumbnailTargetWidth,q=G.lockupExperiments,
w=G.elementsPerRow,F=G.useOverlayStyling,n=_.wH().resolve(_.qR(_.d0));G=_.YC(_.im(function(){var z8;return(z8=c())==null?void 0:z8.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var U=_.o1(PMB),k=_.wH().resolve(_.qR(U$i)),p=k?{}:void 0,M=function(){var z8,GV,ei;return(ei=(GV=_.D((z8=c())==null?void 0:z8.rendererContext,_.Aq))==null?void 0:GV.label)!=null?ei:void 0},z=function(){var z8;
return(z8=_.D(c().metadata,_.sep))==null?void 0:z8.endorsement},t=function(){var z8=I==null?void 0:I(),GV;
if(z8==null?0:z8.containerType){var ei=(GV=c())==null?void 0:GV.contentType;GV=q();var Hr=m(),v0=N(),kK=K();z8=Object.assign({},hs0(Bk0(z8),hY(z8.responsiveSize),Hr,ei,z8.force16By9ThumbnailAspectRatio,v0,kK,void 0,GV),{thumbnailFixedWidth:z8.contentPreviewWidth})}else z8=hs0(R(),Z(),m(),(ei=c())==null?void 0:ei.contentType,a(),N(),K(),F(),q());return z8};
k&&p&&k({enabled:function(){return U()},
itemPlaybackModel:function(){return c().itemPlayback},
thumbnailElRef:function(){return p.thumbnailElRef},
containerElRef:G,options:function(){var z8=p.thumbnailOverlays||[],GV=z(),ei;!GV||((ei=q())==null?0:ei.onFocusEffect)||z8.push(GV);var Hr,v0;return{thumbnail:p.thumbnail,thumbnailOverlays:z8,accessibilityText:M(),thumbnailSize:p.thumbnailSize,enableRounding:t().isCollection,containPlayerWithinThumbnail:t().isCollection,mouseleaveCallback:function(){H(!1)},
trackingParams:(Hr=_.D(c().rendererContext,_.oJ))==null?void 0:(v0=Hr.loggingDirectives)==null?void 0:v0.trackingParams}}});
var x=0;k=_.Q(_.ks(!1,void 0,"v0iGab"));var C=k.next().value,H=k.next().value;k=_.Q(_.ks(!1,void 0,"PVKcBd"));var g=k.next().value,QO=k.next().value;k=_.Nx(function(){g()?(_.dJ.cancelJob(x),x=_.dJ.addJob(function(){H(!0)},8,32)):H(!0);
return!0});
var T8=_.Nx(function(z8){z8=z8.relatedTarget;var GV=document.querySelector("ytd-video-preview");z8&&GV&&GV.contains(z8)||(x&&(_.dJ.cancelJob(x),x=0),H(!1))});
_.ty(function(){x&&(_.dJ.cancelJob(x),x=0)});
var kp=Zab(function(){QO(!0)}),FB=kp.touchFeedbackEvents,oq=kp.touchFeedbackOnPointerUp,Wr=kp.touchFeedbackOnPointerDown;
kp=kp.touchFeedbackOnPointerLeave;var iT={};return _.e(_.FG,null,_.e("div",{el:G,class:_.O3("yt-lockup-view-model",function(){a:{var z8=t();if(z8.metadataOnThumbnail)z8="yt-lockup-view-model--metadata-on-thumbnail";else switch(z8.arrangement){case 1:z8="yt-lockup-view-model--horizontal";break a;default:z8="yt-lockup-view-model--vertical"}}return z8},function(){a:{var z8=t();
if(z8.metadataOnThumbnail)z8="yt-lockup-view-model--metadata-on-thumbnail";else{switch(z8.collectionStackNumber){case 1:z8="yt-lockup-view-model--collection-stack-1";break a;case 2:z8="yt-lockup-view-model--collection-stack-2";break a}z8=void 0}}return z8},function(){var z8;
return _.Y5r((z8=c())==null?void 0:z8.contentId)},(iT["yt-lockup-view-model--card"]=function(){return t().isCard},iT["yt-lockup-view-model--compact"]=function(){return t().isTiny||t().sizing!=="STANDARD"},iT["yt-lockup-view-model--protect-background"]=K,iT["yt-lockup-view-model--add-margins"]=function(){return t().addMarginForFullbleed},iT["yt-lockup-view-model--centered"]=function(){return t().isCentered},iT["yt-lockup-view-model--fullbleed"]=function(){return t().fullbleed},iT["yt-lockup-view-model--single-column-grid"]=
function(){return w()===1&&R()===2},iT["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var z8;
return(z8=q())==null?void 0:z8.useRichGridLegacyMargin},iT["yt-lockup-view-model--flex-none"]=function(){return!_.v("lockup_flex_none_killswitch")},iT)),
"on:mousedown":Wr,"on:mouseleave":T8,"on:mouseup":oq,"on:mouseover":k,"on:touchstart":Wr,"on:touchend":oq,"on:pointerleave":kp},_.e(_.Jx,{model:function(){var z8,GV,ei=Object,Hr=ei.assign,v0=(p==null?void 0:p.thumbnailSize)||"small";a:{var kK=t();var pN=!!(z()&&((z8=q())==null?0:z8.onFocusEffect));switch((p==null?void 0:p.thumbnailSize)||"small"){case "small":z8=4;break;case "large":z8=12;break;default:z8=8}if(pN)kK=z8+12;else{switch(kK.collectionStackNumber){case 1:kK=z8+8;break a;case 2:kK=z8+12;
break a}kK=void 0}}v0={thumbnailSize:v0,triggerEvents:!0,customTopExtend:kK};var bH;kK=(GV=q())==null?void 0:GV.onFocusEffect;pN=!(n==null||!n());if(kK){var n1,qf;GV=pN?(n1=kK.onFocusColor)==null?void 0:n1.darkTheme:(qf=kK.onFocusColor)==null?void 0:qf.lightTheme;var hU,we;n1=pN?(hU=kK.keyLightColor)==null?void 0:hU.darkTheme:(we=kK.keyLightColor)==null?void 0:we.lightTheme;var xK;hU=pN?(bH=kK.touchResponseColor)==null?void 0:bH.darkTheme:(xK=kK.touchResponseColor)==null?void 0:xK.lightTheme;bH={background:GV!==
void 0?VJ(GV):void 0,keyLight:n1!==void 0?VJ(n1):void 0};xK=[];we=_.Q(kK.lightingTechniques||[]);for(n1=we.next();!n1.done;n1=we.next())switch(n1.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":xK.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":xK.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":xK.push(3)}bH={hoverEffect:{palette:bH,lightingTechniques:xK},touchEffect:{palette:{background:hU!==void 0?VJ(hU):void 0}}}}else bH={};return Hr.call(ei,{},v0,bH)},
hovered:function(){return C()},
pointerDownEvent:FB.pointerDownEvent,pointerUpEvent:FB.pointerUpEvent,pointerLeaveEvent:FB.pointerLeaveEvent}),_.e(_.l,{cond:function(){var z8;return z()&&C()&&((z8=q())==null?void 0:z8.onFocusEffect)},
then:function(){return _.e("div",{class:"yt-lockup-view-model__endorsement"},_.e(_.sN,{data:function(){return z()}},{attributionViewModel:function(z8){return _.e(dE,{data:z8.data,
useHeavyText:!0})}}))}}),_.e(_.Er,{command:function(){var z8;
return _.JY((z8=c())==null?void 0:z8.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(O()||t().thumbnailFixedWidth)&&t().arrangement===1?"width: "+(O()||t().thumbnailFixedWidth):""}},_.e(_.sN,{data:function(){var z8;
return(z8=c())==null?void 0:z8.contentImage}},{thumbnailViewModel:function(z8){return _.e(_.rE,{data:z8.data,
aspectRatio:function(){return t().aspectRatio},
disableRounding:function(){return t().disableRounding},
width:N,hovered:function(){return C()&&!(U()&&c().itemPlayback)},
isClip:function(){var GV;return((GV=c())==null?void 0:GV.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:bXA(p),lockupExperiments:function(){return q()}})},
collectionThumbnailViewModel:function(z8){return _.e(ffi,{data:z8.data,aspectRatio:function(){return t().aspectRatio},
disableRounding:function(){return t().disableRounding},
width:N,doubleStack:function(){return t().collectionStackNumber===2},
hovered:function(){return C()&&!(U()&&c().itemPlayback)},
playbackRef:bXA(p)})},
decoratedAvatarViewModel:_.wE})),_.e("div",{class:"yt-lockup-view-model__metadata"},_.e(_.sN,{data:function(){var z8;return(z8=c())==null?void 0:z8.metadata}},{lockupMetadataViewModel:function(z8){return _.e(YuT,{data:z8.data,
hovered:C,lockupStyle:t,lockupCommand:function(){var GV;return _.JY((GV=c())==null?void 0:GV.rendererContext)},
lockupAccessibilityLabel:function(){return M()},
layout:function(){var GV;return((GV=q())==null?0:GV.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(z8){return _.e(gE,{data:z8.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:m})}}),_.e(_.sN,{data:function(){var z8;
return(z8=c())==null?void 0:z8.attachmentSlot}},{lockupAttachmentsViewModel:function(z8){return _.e(hjN,{data:z8.data,
lockupStyle:t})}}))),_.e(_.sN,{data:function(){var z8;
return(z8=c())==null?void 0:z8.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(z8){return _.e(hjN,{data:z8.data,
lockupStyle:t})}}))},"Vb");
_.Yy.idomCompat=!0;_.R1(_.Yy,"yt-lockup-view-model",{props:{data:_.bl,containerLayoutConfig:_.bl,containerType:_.bl,sizing:_.bl,protectBackground:_.bl,typographyBump:_.bl,thumbnailFixedWidth:_.bl,thumbnailTargetWidth:_.bl,force16By9ThumbnailAspectRatio:_.bl,className:_.bl,lockupExperiments:_.bl,elementsPerRow:_.bl,useOverlayStyling:_.bl}});var atA,mmi=_.W(function(G){var c=_.YW(G,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),I=c.text,R=c.alwaysShowTruncationText;G=c.truncationText;var Z=c.onTextClick,K=c.maxLines,m=c.disableTextMask,a=c.textStyle,O=c.accessibilityLabel,N=c.textSize,q=c.alwaysTruncateAtMaxLines,w=c.expandOnClick;c=_.Q(_.ks(!1,void 0,"EzA1q"));var F=c.next().value,n=c.next().value;c=_.Nx(function(){w()&&n(!F());Z==null||Z()});
var U=function(){a:switch(N()){case "medium":var g=2;break a;case "large":g=2.2;break a;default:g=1.8}return g},k=e6f(I,function(){return F()?Infinity:K()},U,m,q,F),p=k.isTruncated;
I=k.displayText;q=k.contentRef;var M=k.hiddenRef,z=k.placeholderTruncationTextRef,t=k.hiddenTruncationTextRef;k=k.truncationTextRef;var x={},C={},H={};return _.e("truncated-text",{class:_.O3((x["yt-truncated-text"]=!0,x["yt-truncated-text--overlay"]=function(){return a()==="overlay"},x["yt-truncated-text--medium-text"]=function(){return N()==="medium"},x["yt-truncated-text--large-text"]=function(){return N()==="large"},x["yt-truncated-text--primary-text"]=function(){return a()==="primary-text"},x)),
"on:click":c,style:function(){return"line-height: "+U()+"rem;"}},_.e("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:q,style:function(){return F()?"":"max-height: "+K()*U()+"rem;"}},_.e(_.ul,{text:I}),_.e("button",{"aria-disabled":!0,
disabled:!0,class:_.O3((C["yt-truncated-text__inline-button"]=!0,C["yt-truncated-text--hidden"]=function(){return!(!F()&&(R!=null&&R()||p()))},C)),
el:z,style:function(){return"line-height: "+U()+"rem;"}},_.e(_.ul,{text:G}))),_.e("truncated-text-content",{class:_.O3("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:M,style:function(){return F()?"":"max-height: "+K()*U()+"rem;"},
"aria-hidden":"true"},_.e(_.ul,{text:I}),_.e("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:t,style:function(){return"line-height: "+U()+"rem;"}},_.e(_.ul,{text:G}))),_.e("button",{"aria-label":O,
class:_.O3((H["yt-truncated-text__absolute-button"]=function(){return!m()},H["yt-truncated-text__bottom-button"]=function(){return m()},H["yt-truncated-text--hidden"]=function(){return!(!F()&&(R!=null&&R()||p()))},H)),
el:k,style:function(){return"line-height: "+U()+"rem;"}},_.e(_.ul,{text:G})))},"Xb");
mmi.idomCompat={callbacks:{onTextClick:!0}};var OKN=_.W(function(G){var c=G.data;G=G.className;var I=_.SE(function(){return lt8(c())},void 0,"uDhDke"),R=_.e(_.FG,null,_.e(_.l,{cond:function(){return c().heroText||c().image},
then:function(){return _.e(aV9,{data:c})}}),_.e(Tup,{data:c,
sizeSmall:function(){return c().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.e("yt-video-attribute-view-model",{class:G},_.e("div",{class:function(){var Z=c();a:switch(Z.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var K="yt-video-attribute-view-model--vertical";break a;default:K="yt-video-attribute-view-model--horizontal"}a:switch(Z.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(Z.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var a=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":a="yt-video-attribute-view-model--image-avatar";break a;default:a=""}a:switch(Z.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var O="yt-video-attribute-view-model--metadata-header";break a;default:O=""}a:switch(Z.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var N="yt-video-attribute-view-model--container-card";break a;default:N=""}return["yt-video-attribute-view-model",K,m,
a,O,N,lt8(Z)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.wi({"background-color":function(){var Z=c();if(Z.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var K="";else{K=Z.lightColorPalette;Z=Z.darkColorPalette;var m,a=((m=_.wH().resolve(_.qR(_.d0)))==null?0:m())&&Z?Z:K;K=(K=a==null?void 0:a.section2Color)?_.pE(K):""}return K}})},_.e(_.l,{cond:I,
then:function(){return _.e(_.Er,{className:"yt-video-attribute-view-model__content-container",command:I,role:"group",ariaLabel:function(){return c().title}},R)},
else:function(){return _.e("div",{class:"yt-video-attribute-view-model__content-container"},R)}})))},"Yb");
OKN.idomCompat=!0;var aV9=_.W(function(G){var c=G.data;var I,R=(I=_.wH().resolve(_.qR(_.d0)))==null?void 0:I(),Z=function(){return R&&c().darkThemeImage?c().darkThemeImage:c().image},K=_.SE(function(){return qiT(c())},void 0,"UDqj0b");
return _.e("div",{class:"yt-video-attribute-view-model__hero-section"},_.e(_.B1,null,_.e(_.W1,{when:Z},function(){return _.e(_.yc,{data:function(){return Z()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.e(_.W1,{when:function(){return c().heroText}},function(){return _.e("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.e("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return c().heroText}))})),_.e(_.l,{cond:function(){return c().overflowMenuOnTap},
then:function(){return _.e("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.e(_.fx,{data:K,iconName:"MORE_VERT"}))}}))},"Zb");
aV9.idomCompat=!0;var Tup=_.W(function(G){var c=G.data;G=G.sizeSmall;var I=function(){return c().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},R=_.SE(function(){return BI(_.fd({innertubeCommand:lt8(c())}))?"link":lt8(c())?"button":"group"},void 0,"e2MmYe"),Z={};
return _.e("div",{class:_.O3("yt-video-attribute-view-model__metadata",(Z["yt-video-attribute-view-model--small-font"]=G,Z)),role:R},_.e("h1",{class:"yt-video-attribute-view-model__title"},function(){return c().title}),_.e(_.l,{cond:function(){return c().subtitle},
then:function(){return _.e("h4",{class:"yt-video-attribute-view-model__subtitle"},_.e(_.l,{cond:I,then:function(){return _.e(mmi,{text:function(){return Ns8(c().subtitle)},
truncationText:function(){return Ns8(c().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.e("span",null,function(){return c().subtitle})}}))}}),_.e(_.l,{cond:function(){return c().secondarySubtitle},
then:function(K){return _.e("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.e(_.ul,{text:function(){var m=K();if(m!=null&&m.attachmentRuns){for(var a=[],O=_.Q(m.attachmentRuns),N=O.next();!N.done;N=O.next())N=N.value,N.element&&a.push(Object.assign({},N,{element:Object.assign({},N.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));m=Object.assign({},m,{attachmentRuns:a})}return m}}))}}),_.e(_.sN,
{data:function(){return c().buttonViewModel}},{buttonViewModel:function(K){return _.e(_.BR,{data:K.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
Tup.idomCompat=!0;_.R1(OKN,"yt-video-attribute-view-model",{props:{data:_.bl,className:_.bl}});var GX=function(){var G=_.J.apply(this,arguments)||this;G.useHighlightStyling=_.v("web_enable_deeper_metadata_highlight_styling");G.isSearch=!1;G.JSC$15454_lastScrollContainerWidth=NaN;G.pageLoadingFromNavigation=!1;G.currentIndex=0;G.supportComponentResize=!1;return G};
_.u(GX,_.J);_.P=GX.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.lO(this,this.onPageChange))};
_.P.detached=function(){document.removeEventListener("yt-page-type-changed",_.lO(this,this.onPageChange))};
_.P.getItemsPath=function(){return"data.cards"};
_.P.onIronResize=function(){this.updateListStyles()};
_.P.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var G;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(G=this.data)==null?void 0:G.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.v("problem_walkthrough_sd")&&!!this.centerItems};
_.P.computeCardListStyle=function(G){return G||null};
_.P.computeEmpty=function(G){return!this.get("cards.length",G)};
_.P.computeThumbnailStyle=function(G){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",G)||null};
_.P.computeHasSubtitle=function(G){return!!this.get("header.richListHeaderRenderer.subtitle",G)};
_.P.computeInitialCountNumber=function(G){return this.hasSquareMiniApp&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.P.computeUseFloorScrolling=function(G){return G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.P.computeHasGameCard=function(G){return(G=this.get("cards",G))?G.some(function(c){return c.gameCardRenderer}):!1};
_.P.computeCenterHeaderTitle=function(G){return!(G==null||!G.centerHeaderTitle)};
_.P.computeHasPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.P.computeHasSquareMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.P.computeHasSkinnyWidthPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.width===135}):!1};
_.P.computeCenterItems=function(G){return!!G};
_.P.computeHasInfoPanel=function(G){var c;return G==null?void 0:(c=G.cards)==null?void 0:c.some(function(I){return I.infoPanelContentRenderer})};
_.P.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.P.getItemByIndex=function(G){var c=this.items.children;return c&&c.length>G?c[G]:void 0};
_.P.onPageChange=function(){var G=this;this.pageLoadingFromNavigation=!0;_.dJ.addJob(function(){G.pageLoadingFromNavigation=!1;_.gq(G.hostElement,"yt-terminate-video-preview-action")},8)};
_.P.updateListStyles=function(){if(_.v("problem_walkthrough_sd")&&this.JSC$15454_scrollContainer!==void 0){var G=this.JSC$15454_scrollContainer.clientWidth;G!==this.JSC$15454_lastScrollContainerWidth&&(this.JSC$15454_lastScrollContainerWidth=G,_.eD(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(G*.8,415)+"px"}),_.Xl(this.hostElement,"iron-resize"))}};
_.Nh.Object.defineProperties(GX.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.v("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!!((G=this.data)==null?0:(c=G.cards)==null?0:(I=c[0])==null?0:I.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!!((G=this.data)==null?0:(c=G.cards)==null?0:(I=c[0])==null?0:I.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return _.v("enable_desktop_amsterdam_info_panels")&&!!((G=this.data)==null?0:(c=G.cards)==null?0:(I=c[0])==null?0:I.infoPanelContentRenderer)}}});
GX.prototype.dataChanged=GX.prototype.dataChanged;GX.prototype.onIronResize=GX.prototype.onIronResize;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.WT.YtdHorizontalListBehavior),_.h("design:type",Object)],GX.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.L(_.nI),_.h("design:type",Object)],GX.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],GX.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],GX.prototype,"useCustomColors",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],GX.prototype,"useHighlightStyling",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.h("design:type",Object)],GX.prototype,"cardListStyle",void 0);_.r([_.E({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.h("design:type",Boolean)],GX.prototype,"empty",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.h("design:type",Boolean)],GX.prototype,"hasSubtitle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.h("design:type",Boolean)],GX.prototype,"thumbnailStyle",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.h("design:type",Boolean)],GX.prototype,"hasGameCard",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.h("design:type",Boolean)],GX.prototype,"centerHeaderTitle",void 0);
_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.h("design:type",Boolean)],GX.prototype,"hasPortraitMiniApp",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.h("design:type",Boolean)],GX.prototype,"hasSquareMiniApp",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.h("design:type",Boolean)],GX.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.h("design:type",Boolean)],GX.prototype,"hasInfoPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],GX.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],GX.prototype,"inlineStructuredDescription",void 0);_.r([_.nH("#scroll-container"),_.h("design:type",HTMLDivElement)],GX.prototype,"JSC$15454_scrollContainer",void 0);
_.r([_.E({computed:"computeInitialCountNumber(data.style.type)"}),_.h("design:type",Number)],GX.prototype,"initialCount",void 0);_.r([_.E({computed:"computeUseFloorScrolling(data.style.type)"}),_.h("design:type",Boolean)],GX.prototype,"useFloorScrolling",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.h("design:type",Boolean)],GX.prototype,"centerItems",void 0);_.r([_.E(),_.h("design:type",Object)],GX.prototype,"pageLoadingFromNavigation",void 0);
_.r([_.E(),_.h("design:type",Object)],GX.prototype,"currentIndex",void 0);_.r([_.E(),_.h("design:type",Number)],GX.prototype,"scrollCount",void 0);_.r([_.E(),_.h("design:type",Object)],GX.prototype,"supportComponentResize",void 0);_.r([_.nH("#items"),_.h("design:type",HTMLDivElement)],GX.prototype,"items",void 0);_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GX.prototype,"onIronResize",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GX.prototype,"dataChanged",null);_.r([_.E({reflectToAttribute:!0}),_.A("inlineStructuredDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],GX.prototype,"hideNavigationButton",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],GX.prototype,"modernChapters",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],GX.prototype,"hasVideoAttributeViewModels",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],GX.prototype,"modernInfoPanels",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],GX);
_.B(GX,"ytd-horizontal-card-list-renderer",function(){if(Ifi!==void 0)return Ifi;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Ifi=G},{mode:_.Qc("kevlar_poly_si_batch_j072")?1:2});var e3e=_.W(function(G){var c=G.data;var I={};return _.e("video-summary-content-view-model",{class:_.O3("videoSummaryContentViewModelHost",G.className,(I.videoSummaryContentViewModelHostIsSearch=G.isSearch,I))},_.e(_.fh,{each:function(){var R=[],Z=c().paragraphs;if(Z==null||!Z.length)return[];for(var K=0;K<Z.length;K++){var m=_.D(Z[K],AhB),a=void 0;K>0&&(a=_.D(Z[K-1],AhB));a&&!!a.marker===!!m.marker?R[R.length-1].paragraphs.push(m):R.push({isList:!!m.marker,paragraphs:[m]})}return R},
keyBy:"INDEX"},function(R){return _.e(_.l,{cond:function(){return R().isList},
then:function(){return _.e("ul",{class:"videoSummaryContentViewModelList"},_.e(_.fh,{each:function(){return R().paragraphs},
keyBy:"INDEX"},function(Z){return _.e("li",{class:"videoSummaryContentViewModelListItem"},_.e(_.ul,{text:function(){return Z().text}}))}))},
else:function(){return _.e("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.e(_.fh,{each:function(){return R().paragraphs},
keyBy:"INDEX"},function(Z){return _.e("p",{class:"videoSummaryContentViewModelParagraph"},_.e(_.ul,{text:function(){return Z().text}}))}))}})}),_.e(_.l,{cond:function(){return!!_.D(c().likeButtonViewModel,_.hA)&&!!_.D(c().dislikeButtonViewModel,_.dG)},
then:function(){return _.e("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.e("div",{class:"videoSummaryContentViewModelLikeButton"},_.e(_.v$,{data:function(){return _.D(c().likeButtonViewModel,_.hA)},
disableIconAnimation:!0})),_.e(_.ni,{data:function(){return _.D(c().dislikeButtonViewModel,_.dG)}}))}}))},"ac");
e3e.idomCompat=!0;_.R1(e3e,"video-summary-content-view-model",{props:{data:_.bl,isSearch:_.bl,className:_.bl}});var ct=function(){var G=_.J.apply(this,arguments)||this;var c,I;G.isExpanded=(I=(c=G.data)==null?void 0:c.isExpanded)!=null?I:!1;G.disableExpand=!1;G.showProminentLabel=!1;G.showRightSideLabel=!0;G.toggleExpandableContent=function(R){G.disableExpand||(R.stopPropagation(),_.c8(_.CE(R),G.hostElement,["info","expanded-subtitle"])||(G.isExpanded=!G.isExpanded,G.ytRendererBehavior.logExplicitClick(G.data),G.JSC$15465_cardList&&!_.v("expandable_metadata_a11y_fix_ks")&&_.O$(G,function(){_.mp(G.hostElement)})))};
G.useSquareThumbnail=!1;G.startX=0;return G};
_.u(ct,_.J);_.P=ct.prototype;_.P.computeUseSquareThumbnail=function(){var G;return(G=this.data)==null?void 0:G.useSquareThumbnail};
_.P.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.P.dataChanged=function(){if(this.data){var G,c;this.isExpanded=(c=(G=this.data)==null?void 0:G.isExpanded)!=null?c:!1;var I,R,Z,K;if(G=this.isDarkTheme()?(I=this.data)==null?void 0:(R=I.colorData)==null?void 0:R.darkColorPalette:(Z=this.data)==null?void 0:(K=Z.colorData)==null?void 0:K.lightColorPalette){var m,a;if((m=this.data)==null?0:(a=m.colorData)==null?0:a.vibrantColorPalette)G.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.A0(this.hostElement,G)}}};
_.P.isExpandedChanged=function(){this.isExpanded&&this.JSC$15465_cardList&&_.Xl(this.JSC$15465_cardList,"iron-resize")};
_.P.computeIsExpanded=function(G){return!!G.isExpanded};
_.P.computeShowProminentLabel=function(G,c){var I;return!!(G==null?0:(I=G.header)==null?0:I.showLeadingCollapsedLabel)&&!c};
_.P.computeShowRightSideLabel=function(G,c){var I;return!(G==null?0:(I=G.header)==null?0:I.showLeadingCollapsedLabel)&&!c};
_.P.captureContentClick=function(G){if(!this.disableExpand)if(_.v("expandable_metadata_fix_killswitch")){var c=G.target;_.j20(c,"ytd-macro-markers-list-item-renderer")||G.stopPropagation();(c==null?void 0:c.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.c8(_.CE(G),this.hostElement,["items"])||_.Gf(_.CE(G),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.P.timestampClick=function(G){G.stopPropagation();var c,I;(G=(c=this.data)==null?void 0:(I=c.header)==null?void 0:I.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(G)};
_.P.onDown=function(G){G.stopPropagation();this.startX=G.detail?G.detail.x:0};
_.P.onUp=function(G){this.skipKeyInteraction(G)&&G.stopPropagation()};
_.P.skipKeyInteraction=function(G){var c=G.target;if((c==null?void 0:c.id)==="scroll-container"||(c==null?void 0:c.id)==="items"||G.detail&&G.detail.x!==this.startX)return!0;G=_.CE(G);G=_.Q(G);for(c=G.next();!c.done;c=G.next()){c=c.value;if(c===this.hostElement)break;if(c.hasAttribute&&c.hasAttribute("skip-key-interaction"))return!0}return!1};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Nh.Object.defineProperties(ct.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.D((G=this.data)==null?void 0:G.expandedContent,LCK)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.D((G=this.data)==null?void 0:G.expandedContent,_.LOi)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.useCustomColors)&&!((c=this.data)==null||!c.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var G,c;return!!((G=this.data)==null?0:(c=G.header)==null?0:c.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var G,c;return!!((G=this.data)==null?0:(c=G.header)==null?0:c.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.header)==null?void 0:c.expandedSubtitleTapCommand;G=I&&_.D(I,_.ID);return _.v("web_open_ai_support_links_external_window")&&(G==null?void 0:G.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.header)==null?void 0:c.expandedSubtitleTapCommand;G=I&&_.D(I,_.ID);return _.v("web_open_ai_support_links_external_window")&&(G==null?void 0:G.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,c;return!!((G=this.data)==null?0:(c=G.header)==null?0:c.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
ct.prototype.onUp=ct.prototype.onUp;ct.prototype.onDown=ct.prototype.onDown;ct.prototype.isExpandedChanged=ct.prototype.isExpandedChanged;ct.prototype.dataChanged=ct.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ct.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ct.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ct.prototype,"isExpanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ct.prototype,"disableExpand",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],ct.prototype,"isSearch",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],ct.prototype,"isWatch",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.h("design:type",Object)],ct.prototype,"showProminentLabel",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.h("design:type",Object)],ct.prototype,"showRightSideLabel",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ct.prototype,"hasVideoSummary",null);_.r([_.E({value:!1,reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ct.prototype,"hasLockupViewModel",null);_.r([_.E({reflectToAttribute:!0}),_.A("data","isWatch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ct.prototype,"useCustomColors",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ct.prototype,"showInfoButton",null);_.r([_.A("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ct.prototype,"showTimestamp",null);_.r([_.A("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ct.prototype,"showExpandedSubtitle",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ct.prototype,"expandedSubtitleTarget",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ct.prototype,"expandedSubtitleRel",null);_.r([_.A("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ct.prototype,"showThumbnail",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ct.prototype,"useVppShoppingDestinationStyle",null);
_.r([_.E(),_.h("design:type",Object)],ct.prototype,"toggleExpandableContent",void 0);_.r([_.nH("ytd-horizontal-card-list-renderer"),_.h("design:type",Object)],ct.prototype,"JSC$15465_cardList",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.h("design:type",Object)],ct.prototype,"useSquareThumbnail",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ct.prototype,"dataChanged",null);
_.r([_.wD("isExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ct.prototype,"isExpandedChanged",null);_.r([_.qY("down"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ct.prototype,"onDown",null);_.r([_.qY("up"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ct.prototype,"onUp",null);
_.r([_.Jc({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],ct);
_.B(ct,"ytd-expandable-metadata-renderer",function(){if(TsN!==void 0)return TsN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return TsN=G},{mode:1});var Nu0,lVK=function(){if(Nu0!==void 0)return Nu0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Nu0=G};_.R1(_.Fh,"yt-avatar-stack-view-model",{props:{className:_.bl,data:_.bl,overrides:_.bl,isOverlay:_.bl,useMediumText:_.bl,decorations:_.bl,hideAvatar:_.bl}});_.Su("itemSectionRenderer","videoRenderer","ytd-video-renderer");var IX=function(){var G=_.J.apply(this,arguments)||this;G.disableExpand=!1;G.shouldShowChannelInfo=!1;G.hasAttributedBylineText=!1;G.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return G};
_.u(IX,_.J);_.P=IX.prototype;_.P.computeUseSearchUi=function(){var G,c;return this.isSearch||((G=this.data)==null?void 0:(c=G.style)==null?void 0:c.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.computeUseThreeLineTitle=function(){var G;return((G=this.data)==null?void 0:G.maxTitleLines)===3};
_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.v("polymer_video_renderer_defer_menu")&&!HrB?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.P.attached=function(){_.as(this.hostElement,"blue-links",_.v("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.T1(_.Q1(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),c;G&&((c=_.D(G.commandMetadata,_.Rh))==null?0:c.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G);this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15470_inlinePreviewHoverListener=rP({mediaRenderer:this,lockupElement:this.JSC$15470_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.P.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15470_inlinePreviewHoverListener)==null||Rw(G)};
_.P.onTextWrapperClick=function(G){var c,I,R=this.hideTranslation?(c=this.data)==null?void 0:c.untranslatedNavigationEndpoint:(I=this.data)==null?void 0:I.navigationEndpoint;c=_.c8(_.CE(G),this.hostElement,["expandable-metadata"]);!R||c&&!_.v("expandable_metadata_fix_killswitch")||_.Gf(_.CE(G),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Xl(this.hostElement,"yt-navigate",{endpoint:R})};
_.P.computeThumbnailWidth=function(G,c,I,R,Z){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:R?Z==="MASSIVE"?600:Z==="BIG"?500:Z==="MEDIUM"?450:420:I?360:c?128:G?210:246};
_.P.computeUseBiggerThumbs=function(G){return G&&_.v("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.P.computeHasAttributedBylineText=function(){var G;return!((G=this.data)==null||!G.attributedBylineText)};
_.P.computeVideoStyle=function(){if(_.v("enable_video_style")){var G,c;return(G=this.data)==null?void 0:(c=G.style)==null?void 0:c.value}};
_.P.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.handleHideItemSectionVideosByIdCommand=function(G){var c;G=(c=_.D(G,XEV))==null?void 0:c.videoId;this.data&&this.data.videoId===G&&(this.isHidden=!0)};
_.P.getMetadataSnippetContainerClass=function(G){return G?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.P.computeTitleText=function(G,c,I){return G?I:c};
_.P.computeDescriptionSnippet=function(G,c,I){return G?I:c};
_.P.computeSnippetText=function(G,c,I){return G?I:c};
_.P.computeNavigationEndpoint=function(G,c){return G?c==null?void 0:c.untranslatedNavigationEndpoint:c==null?void 0:c.navigationEndpoint};
_.P.hideInlineTitleIcon=function(G,c){return G||!c};
_.Nh.Object.defineProperties(IX.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var G;return(G=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?G:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!!(this==null?0:(G=this.data)==null?0:(c=G.channelThumbnailSupportedRenderers)==null?0:(I=c.channelThumbnailWithLinkRenderer)==null?0:I.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.D((G=this.data)==null?void 0:G.avatar,AuA)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15470_inlinePreviewHoverListener)==null?0:D1(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Nh.Object.defineProperties(IX,{template:{configurable:!0,enumerable:!0,get:function(){return lVK()}}});
IX.prototype.dataChanged=IX.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],IX.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.L(_.kw),_.h("design:type",Object)],IX.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],IX.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],IX.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],IX.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],IX.prototype,"isBackstageVideo",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],IX.prototype,"isPostCompactVideo",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],IX.prototype,"isHistory",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],IX.prototype,"isRichGridVideoPost",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],IX.prototype,"isHidden",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],IX.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.h("design:type",Boolean)],IX.prototype,"useSearchUi",void 0);_.r([_.E({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.h("design:type",Boolean)],IX.prototype,"useThreeLineTitle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.h("design:type",Boolean)],IX.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.h("design:type",Object)],IX.prototype,"videoStyle",void 0);_.r([_.E({computed:"computeDisableExpand(videoStyle)"}),_.h("design:type",Object)],IX.prototype,"disableExpand",void 0);
_.r([_.E({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.h("design:type",Object)],IX.prototype,"shouldShowChannelInfo",void 0);_.r([_.E({computed:"computeHasAttributedBylineText(data)"}),_.h("design:type",Object)],IX.prototype,"hasAttributedBylineText",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],IX.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.h("design:type",String)],IX.prototype,"inlineTitleIcon",void 0);_.r([_.E({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.h("design:type",Object)],IX.prototype,"computedNavigationEndpoint",void 0);_.r([_.E({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(G,c){return _.a6(G.entities,"searchVideoResultEntity",c)}}),
_.h("design:type",Object)],IX.prototype,"searchVideoResultEntity",void 0);_.r([_.nH("ytd-thumbnail"),_.h("design:type",HTMLElement)],IX.prototype,"thumbnail",void 0);_.r([_.nH("#dismissible"),_.h("design:type",HTMLElement)],IX.prototype,"JSC$15470_dismissibleMedia",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IX.prototype,"dataChanged",null);
_.r([_.A("searchVideoResultEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],IX.prototype,"hideTranslation",null);_.r([_.A("searchVideoResultEntity"),_.h("design:type",Array),_.h("design:paramtypes",[])],IX.prototype,"hiddenBadgeGroups",null);_.r([_.A("data","useAvatar"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],IX.prototype,"shouldShowChannelThumbnail",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],IX.prototype,"useAvatar",null);
_.r([_.A("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],IX.prototype,"isHovered",null);_.r([_.Jc({is:"ytd-video-renderer",disableElementRegistration:!0})],IX);_.B(IX,"ytd-video-renderer",function(){return lVK()},{mode:_.Qc("kevlar_poly_si_batch_j047")?1:2});var RX=function(){var G=_.J.apply(this,arguments)||this;G.editDialog=null;G.roundedContainer=!0;G.isLoading=!1;G.isRichGrid=!1;G.isRichGridRepost=!1;G.reduceSidePaddings=_.v("reduce_side_paddings_in_shelf");G.JSC$15477_spinnerEl=null;return G};
_.u(RX,_.J);_.P=RX.prototype;
_.P.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){var G=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var c=0,I=this.data.actions&&this.data.actions.length;c<I;c++)this.openEditDialog(_.D(this.data.actions[c],MdB));if((c=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(c=this.get("buttonRenderer.hint.hintRenderer.hintId",c))&&c.startsWith("share-post-hint")){var R=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(R){_.th.getInstance();var Z=hh(_.Cp(_.mJ("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.dJ.addLowPriorityJob(function(){_.cd(G.hostElement,Z,R)})}}}};
_.P.updatePoll=function(G){G>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15477_spinnerEl||(this.JSC$15477_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Q1(this.hostElement).appendChild(this.JSC$15477_spinnerEl));this.JSC$15477_spinnerEl&&(this.JSC$15477_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(G){var c=this.get("updateCommentDialogEndpoint",G.detail.endpoint);c&&(this.openEditDialog(c),G.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(G,c){c&&this.updatePoll(c.selectedChoiceIndex)};
_.P.onYtServiceRequestSent=function(G,c){var I;c.endpoint&&(_.D(c.endpoint,jpe)||_.D(c.endpoint,rGK)&&((I=_.D(c.endpoint,rGK))==null||!I.clientActions))&&(this.isLoading=!0);if(c.actions)for(G=0;G<c.actions.length;G++)I=c.actions[G],_.D(I,cE)&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I==void 0&&(I=-1),this.updatePoll(I))};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.P.computeIsPostHidden=function(G,c){return!!G||c};
_.P.computeSurfaceType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.P.computeUsesCompactLockup=function(G){return G==="BACKSTAGE_SURFACE_TYPE_HOME"||G==="BACKSTAGE_SURFACE_TYPE_SEARCH"||G==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||G==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||G==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||G==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeShowWithoutToolbar=function(G){return!G.actionButtons&&!G.actionMenu};
_.P.computePostAttachment=function(G){if(G.backstageAttachment){if(_.D(G.backstageAttachment,o4A))return"poll";if(_.D(G.backstageAttachment,K8K))return"quiz";if(_.D(G.backstageAttachment,_.oh))return"video";if(_.D(G.backstageAttachment,Pd0))return"uploaded-videos";if(_.D(G.backstageAttachment,ZqA))return G.contentText?"image":"image-only";if(_.D(G.backstageAttachment,cG9))return"playlist"}return"none"};
_.P.computePostTabIndex=function(G){return G?0:-1};
_.P.computeButtonTooltipPosition=function(G){return this.computeUsesCompactLockup(G)?"top":"bottom"};
_.P.computeHasText=function(G){return!(G==null||!G.contentText)};
_.P.onTap=function(G){var c,I;if(((c=this.data)==null?0:c.navigationEndpoint)&&((I=this.data)==null?void 0:I.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var R;((R=this.data)==null?0:R.navigationEndpoint)&&!_.Gf(_.CE(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Nh.Object.defineProperties(RX.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.Cp("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,o4A))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,Pd0))}}});
RX.prototype.onYtServiceRequestCompleted=RX.prototype.onYtServiceRequestCompleted;RX.prototype.onYtServiceRequestSent=RX.prototype.onYtServiceRequestSent;RX.prototype.onYtCommentPollRevert=RX.prototype.onYtCommentPollRevert;RX.prototype.onYtCommentboxDismiss=RX.prototype.onYtCommentboxDismiss;RX.prototype.onYtNavigate=RX.prototype.onYtNavigate;RX.prototype.isLoadingChanged=RX.prototype.isLoadingChanged;RX.prototype.dataChanged=RX.prototype.dataChanged;RX.prototype.contentTextChanged=RX.prototype.contentTextChanged;
_.r([_.L(_.nI),_.h("design:type",Object)],RX.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],RX.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],RX.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],RX.prototype,"editDialog",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RX.prototype,"roundedContainer",void 0);_.r([_.E(),_.h("design:type",Object)],RX.prototype,"isLoading",void 0);_.r([_.E({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.h("design:type",String)],RX.prototype,"surface",void 0);
_.r([_.E({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.h("design:type",Boolean)],RX.prototype,"usesCompactLockup",void 0);_.r([_.E({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],RX.prototype,"showWithoutToolbar",void 0);_.r([_.E({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.h("design:type",String)],RX.prototype,"attachment",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RX.prototype,"isRichGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RX.prototype,"isRichGridRepost",void 0);_.r([_.E({reflectToAttribute:!0,value:_.v("use_better_post_dismissals")}),_.h("design:type",Boolean)],RX.prototype,"useBetterPostDismissals",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RX.prototype,"reduceSidePaddings",void 0);
_.r([_.E({computed:"computeHasText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],RX.prototype,"hasText",void 0);_.r([_.nH("#expander"),_.h("design:type",Object)],RX.prototype,"expander",void 0);_.r([_.nH("#action-buttons"),_.h("design:type",Object)],RX.prototype,"actionButtons",void 0);_.r([_.nH("#edit-dialog"),_.h("design:type",HTMLElement)],RX.prototype,"editDialogEl",void 0);
_.r([_.wD("data.contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RX.prototype,"contentTextChanged",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RX.prototype,"dataChanged",null);_.r([_.wD("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RX.prototype,"isLoadingChanged",null);
_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],RX.prototype,"onYtNavigate",null);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RX.prototype,"onYtCommentboxDismiss",null);_.r([_.qY("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],RX.prototype,"onYtCommentPollRevert",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],RX.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],RX.prototype,"onYtServiceRequestCompleted",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],RX.prototype,"voteCount",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],RX.prototype,"commentCount",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],RX.prototype,"hasPoll",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],RX.prototype,"hasUploadedVideo",null);_.r([_.Jc({is:"ytd-post-renderer",disableElementRegistration:!0})],RX);
_.B(RX,"ytd-post-renderer",function(){if(pJV!==void 0)return pJV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return pJV=G},{mode:1});var qV0;var w9B;var ZC=function(){return _.J.apply(this,arguments)||this};
_.u(ZC,_.J);ZC.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.WT.YtdHorizontalListBehavior),_.h("design:type",Object)],ZC.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ZC.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ZC.prototype,"data",void 0);
_.r([_.E({value:"$.items.children"}),_.h("design:type",String)],ZC.prototype,"itemsPath",void 0);_.r([_.E({value:1}),_.h("design:type",Number)],ZC.prototype,"initialCount",void 0);_.r([_.E({reflectToAttribute:!0,value:_.v("enable_community_page_on_desktop")}),_.h("design:type",Boolean)],ZC.prototype,"useSmallerPostImageAttachments",void 0);_.r([_.E(),_.h("design:type",String)],ZC.prototype,"surface",void 0);_.r([_.Jc({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],ZC);
_.B(ZC,"ytd-post-multi-image-renderer",function(){if(w9B!==void 0)return w9B;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return w9B=G},{mode:_.Qc("kevlar_poly_si_batch_j079")?1:2});var FN2={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
K0=function(){var G=_.J.apply(this,arguments)||this;G.hasInlineCommentSection=!1;G.editDialog=null;G.isLoading=!1;G.shouldHideAuthor=!1;G.shouldShowVideoTime=!1;G.isInEngagementPanel=!1;G.hideBorder=!1;G.usesFullLockup=!1;G.shouldShowMenuInCompactView=!1;G.JSC$15492_spinnerEl=null;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.u(K0,_.J);_.P=K0.prototype;_.P.configureRendererStamper=function(){return FN2};
_.P.computeIsPollHeaderEnabled=function(G){return(G==null?void 0:G.pollMetadataIcon)!=null};
_.P.getPublishTimeStampString=function(G,c){c=new Date((Number(c)-60*((new Date).getTimezoneOffset()-(new Date(Number(c)*1E3)).getTimezoneOffset()))*1E3);c=(new dL(10)).format(c);if(G&&G.runs&&G.runs.length)for(var I=0;I<G.runs.length;I++)G.runs[I].text&&(G.runs[I].text=G.runs[I].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",c));return G};
_.P.created=function(){this.JSC$15492_spinnerEl=null};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var G;if((G=this.data)==null?0:G.actions){G=_.Q(this.data.actions);for(var c=G.next();!c.done;c=G.next())this.openEditDialog(_.D(c.value,MdB))}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){_.Q1(this.hostElement).querySelector("#action-buttons").reply()};
_.P.updatePoll=function(G,c){c&&this.set("data.pollMetadataVoteCountText",c);this.hasInlineCommentSection&&(G=G>=0,c=_.Q1(this.hostElement).querySelector("#action-buttons"),G?c.reply():c.hideReplyDialog())};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15492_spinnerEl||(this.JSC$15492_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Q1(this.hostElement).appendChild(this.JSC$15492_spinnerEl));this.JSC$15492_spinnerEl&&(this.JSC$15492_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(G){var c=this.get("updateCommentDialogEndpoint",G.detail.endpoint);c&&(this.openEditDialog(c),G.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(G,c){c&&this.updatePoll(c.selectedChoiceIndex,c.totalVotes)};
_.P.onYtServiceRequestSent=function(G,c){G.stopPropagation();G=_.D(c.endpoint,rGK);if(_.D(c.endpoint,jpe)||G&&!G.clientActions)this.isLoading=!0;if(c.actions)for(G=0;G<c.actions.length;G++){var I=c.actions[G],R=_.D(I,cE);R&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I===void 0&&(I=-1),this.updatePoll(I,R.totalVotes))}};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogElement.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.P.computeIsBodyHidden=function(G,c){return!!G||c};
_.Nh.Object.defineProperties(K0.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G=this.data,c=G.showPostAuthorBackgroundHighlight,I=G.postAuthorBadgeType,R=G.authorEndpoint;if(!c&&I!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&I!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var Z,K,m;G=_.Cp(((Z=G.authorText)==null?void 0:(K=Z.runs)==null?void 0:(m=K[0])==null?void 0:m.text)||"");Z=void 0;switch(I){case "POST_AUTHOR_BADGE_TYPE_ARTIST":Z={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":Z={iconType:c?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:G,authorEndpoint:R,authorCreator:c,icon:Z}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var G,c;if((G=this.data)==null?0:(c=G.pollMetadataIcon)==null?0:c.iconType)return _.On(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.Cp("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,o4A))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,K8K))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,Pd0))}}});
K0.prototype.onYtServiceRequestCompleted=K0.prototype.onYtServiceRequestCompleted;K0.prototype.onYtServiceRequestSent=K0.prototype.onYtServiceRequestSent;K0.prototype.onYtCommentPollRevert=K0.prototype.onYtCommentPollRevert;K0.prototype.onYtCommentboxDismiss=K0.prototype.onYtCommentboxDismiss;K0.prototype.onYtNavigate=K0.prototype.onYtNavigate;K0.prototype.isLoadingChanged=K0.prototype.isLoadingChanged;K0.prototype.dataChanged=K0.prototype.dataChanged;K0.prototype.contentTextChanged=K0.prototype.contentTextChanged;
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],K0.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],K0.prototype,"rendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],K0.prototype,"rendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],K0.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.nH("#contentTextExpander"),_.h("design:type",Object)],K0.prototype,"expander",void 0);_.r([_.nH("#edit-dialog"),_.h("design:type",Element)],K0.prototype,"editDialogElement",void 0);_.r([_.E(),_.h("design:type",Object)],K0.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],K0.prototype,"hasInlineCommentSection",void 0);_.r([_.E(),_.h("design:type",Object)],K0.prototype,"editDialog",void 0);_.r([_.E(),_.h("design:type",Object)],K0.prototype,"isLoading",void 0);
_.r([_.E({computed:"computeIsPollHeaderEnabled(data)"}),_.h("design:type",Boolean)],K0.prototype,"isPollHeaderEnabled",void 0);_.r([_.E(),_.h("design:type",Object)],K0.prototype,"shouldHideAuthor",void 0);_.r([_.E(),_.h("design:type",Object)],K0.prototype,"shouldShowVideoTime",void 0);_.r([_.E(),_.h("design:type",Object)],K0.prototype,"isInEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],K0.prototype,"hideBorder",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],K0.prototype,"usesFullLockup",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],K0.prototype,"shouldShowMenuInCompactView",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],K0.prototype,"authorCommentBadge",null);_.r([_.A("isInEngagementPanel"),_.h("design:type",Number),_.h("design:paramtypes",[])],K0.prototype,"postTextMaxLines",null);
_.r([_.A("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],K0.prototype,"pollIcon",null);_.r([_.wD("data.contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],K0.prototype,"contentTextChanged",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],K0.prototype,"dataChanged",null);
_.r([_.wD("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],K0.prototype,"isLoadingChanged",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],K0.prototype,"onYtNavigate",null);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],K0.prototype,"onYtCommentboxDismiss",null);
_.r([_.qY("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],K0.prototype,"onYtCommentPollRevert",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],K0.prototype,"onYtServiceRequestSent",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],K0.prototype,"onYtServiceRequestCompleted",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],K0.prototype,"voteCount",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],K0.prototype,"commentCount",null);
_.r([_.A("data.backstageAttachment"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],K0.prototype,"hasPoll",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],K0.prototype,"hasQuiz",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],K0.prototype,"hasUploadedVideo",null);_.r([_.Jc({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],K0);
_.B(K0,"ytd-backstage-post-renderer",function(){if(qV0!==void 0)return qV0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return qV0=G},{mode:1});var nJe;var Pt=function(){var G=_.J.apply(this,arguments)||this;G.editDialog=null;G.showExpandButton=!1;G.isRichGrid=!1;G.usesFullLockup=!1;return G};
_.u(Pt,_.J);_.P=Pt.prototype;_.P.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.P.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.P.computeShowExpandButton=function(G){return this.usesCompactLockup||G&&G.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.P.computeUsesCompactLockup=function(G){return!!G.condensedContent};
_.P.computeShowFullContentText=function(G){return!G};
_.P.onYtNavigate=function(G){G=this.get("updateCommentDialogEndpoint",G.detail.endpoint);this.openEditDialog(G)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.repostEditDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.P.onTap=function(G){if(this.data){var c=null;this.usesCompactLockup&&!_.Gf(_.CE(G)||[],this.hostElement,["YT-IMG-SHADOW"])?c=this.get("navigationEndpoint",this.data):G.target===this.moreButtonEl&&(c=this.get("navigationEndpoint",G.target.data));c&&_.Xl(this.hostElement,"yt-navigate",{endpoint:c})}};
Pt.prototype.onYtCommentboxDismiss=Pt.prototype.onYtCommentboxDismiss;Pt.prototype.onYtNavigate=Pt.prototype.onYtNavigate;Pt.prototype.dataChanged=Pt.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Pt.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],Pt.prototype,"editDialog",void 0);_.r([_.E({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Pt.prototype,"usesCompactLockup",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Pt.prototype,"showExpandButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Pt.prototype,"isRichGrid",void 0);
_.r([_.E({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Pt.prototype,"showFullContentText",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Pt.prototype,"usesFullLockup",void 0);_.r([_.nH("#more"),_.h("design:type",Object)],Pt.prototype,"moreButtonEl",void 0);_.r([_.nH("#repost-content-text"),_.h("design:type",HTMLElement)],Pt.prototype,"repostContentTextEl",void 0);
_.r([_.nH("#repost-edit-dialog"),_.h("design:type",HTMLElement)],Pt.prototype,"repostEditDialogEl",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pt.prototype,"dataChanged",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Pt.prototype,"onYtNavigate",null);
_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pt.prototype,"onYtCommentboxDismiss",null);_.r([_.Jc({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Pt);
_.B(Pt,"ytd-shared-post-renderer",function(){if(nJe!==void 0)return nJe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return nJe=G},{mode:1});var vJ0;var Dm0;var Qn=function(){return _.J.apply(this,arguments)||this};
_.u(Qn,_.J);Qn.prototype.attached=function(){var G=this;this.networkStatusManager||(this.networkStatusManager=new _.Kk,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){G.onlineHandler()}))};
Qn.prototype.detached=function(){var G=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){G.onlineHandler()}),delete this.networkStatusManager)};
Qn.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Qn.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Qn.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Qn);
_.B(Qn,"ytd-reload-page-button-renderer",function(){if(Dm0!==void 0)return Dm0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return Dm0=G},{mode:1});var oJi={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"},mK=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(mK,_.J);_.P=mK.prototype;_.P.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.P.computeHasBodyText=function(G){return!!G.bodyText};
_.P.computeButtons=function(G){var c=[];G.ctaButton&&c.push(G.ctaButton);G.secondaryButton&&c.push(G.secondaryButton);return c};
_.P.computeRendererStyle=function(G){return G.style?G.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():G.icon?"":"no-icon"};
_.P.getIconName=function(G,c){c=c===void 0?!1:c;if(G===void 0)return"";G=this.get("icon.iconType",G);var I;_.v("enable_hlp_client_icon_pick")?I=this.getThemedIcon(G,c):I=G;(c=oJi[I])||(c="yt-icons");return[c,I].join(":")};
_.P.getThemedIcon=function(G,c){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(G)?c?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(G)?c?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":G};
_.P.isThumbnail=function(G){return!!G.thumbnail};
_.P.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],mK.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mK.prototype,"data",void 0);
_.r([_.E({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],mK.prototype,"rendererStyle",void 0);_.r([_.E({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.h("design:type",String)],mK.prototype,"iconName",void 0);_.r([_.E({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],mK.prototype,"thumbnail",void 0);_.r([_.E({computed:"computeButtons(data)"}),_.h("design:type",Array)],mK.prototype,"buttons",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],mK.prototype,"isDarkTheme",void 0);_.r([_.E({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],mK.prototype,"hasBodyText",void 0);_.r([_.Jc({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],mK);
_.PI()(mK,"ytd-background-promo-renderer",function(){if(vJ0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);vJ0=G}G=vJ0;return G},{allowedProps:["data"],
mode:1});var Um2;var aX=function(){return _.J.apply(this,arguments)||this};
_.u(aX,_.J);_.Nh.Object.defineProperties(aX.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z,K;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(c=G.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(R=I.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(Z=this.data)==null?void 0:(K=Z.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],aX.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],aX.prototype,"collectionStack",null);_.r([_.Jc({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],aX);
_.B(aX,"ytd-compact-station-renderer",function(){if(Um2!==void 0)return Um2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Um2=G},{mode:1});var u1e;var TX=function(){var G=_.J.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.u(TX,_.J);TX.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]]"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],TX.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],TX.prototype,"isRichGrid",void 0);_.r([_.Jc({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],TX);
_.B(TX,"ytd-grid-channel-renderer",function(){if(u1e!==void 0)return u1e;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return u1e=G},{mode:1});var bK0;var OE=function(){return _.J.apply(this,arguments)||this};
_.u(OE,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],OE.prototype,"data",void 0);_.r([_.Jc({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],OE);
_.B(OE,"ytd-grid-movie-playlist-renderer",function(){if(bK0!==void 0)return bK0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return bK0=G},{mode:1});var k_e;var eS=function(){var G=_.J.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.modernButtons=_.v("web_modern_buttons");return G};
_.u(eS,_.J);eS.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
eS.prototype.configureRendererStamper=function(){return{"data.menu":ch}};
eS.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
eS.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.v("woffle_playlist_renderer_killswitch")){var G,c=W8b(this.entityInfo,this.transferState,this.downloadProgress,(G=this.data)==null?void 0:G.playlistId,this.isOnline);G=c.viewPlaylistText;var I=c.badges;c=c.thumbnailOverlays;this.isDownloads=!!G||!!I;this.set("data.viewPlaylistText",G);I&&I.length>0&&this.set("data.badges",I);c&&c.length>0&&this.set("data.thumbnailOverlays",
c)}};
_.Nh.Object.defineProperties(eS.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.menu)}}});
eS.prototype.transferStateChanged=eS.prototype.transferStateChanged;eS.prototype.dataChanged=eS.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],eS.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],eS.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E({selector:_.Hxb,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],eS.prototype,"downloadProgress",void 0);_.r([_.E({selector:_.JX,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],eS.prototype,"transferState",void 0);_.r([_.E({selector:Cli,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],eS.prototype,"entityInfo",void 0);_.r([_.E({selector:_.V4}),_.h("design:type",Boolean)],eS.prototype,"isOnline",void 0);
_.r([_.E(),_.h("design:type",Object)],eS.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],eS.prototype,"downloadRenderData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],eS.prototype,"modernButtons",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],eS.prototype,"isDownloads",void 0);_.r([_.A("transferState"),_.E({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],eS.prototype,"downloadState",null);
_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],eS.prototype,"menuHidden",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eS.prototype,"dataChanged",null);_.r([_.uO("transferState","downloadProgress","isOnline"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eS.prototype,"transferStateChanged",null);
_.r([_.Jc({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],eS);
_.B(eS,"ytd-grid-playlist-renderer",function(){if(k_e!==void 0)return k_e;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return k_e=G},{mode:1});var s_K;var NZ=function(){return _.J.apply(this,arguments)||this};
_.u(NZ,_.J);NZ.prototype.configureRendererStamper=function(){return{"data.menu":ch,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Nh.Object.defineProperties(NZ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z,K;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(c=G.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(R=I.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(Z=this.data)==null?void 0:(K=Z.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],NZ.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],NZ.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NZ.prototype,"data",void 0);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],NZ.prototype,"collectionStack",null);_.r([_.Jc({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],NZ);
_.B(NZ,"ytd-grid-radio-renderer",function(){if(s_K!==void 0)return s_K;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return s_K=G},{mode:1});var LN0;var lk=function(){return _.J.apply(this,arguments)||this};
_.u(lk,_.J);lk.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
lk.prototype.computeNavigationEndpoint=function(G){return rtr(G==null?void 0:G.navigationEndpoint)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],lk.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lk.prototype,"data",void 0);_.r([_.E({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],lk.prototype,"computedNavigationEndpoint",void 0);
_.r([_.Jc({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],lk);
_.B(lk,"ytd-grid-show-renderer",function(){if(LN0!==void 0)return LN0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return LN0=G},{mode:1});var A6B;_.qZ=function(G){this.playerClient=G};
_.$mp=function(G,c,I){I=I===void 0?{}:I;return G.playerClient.setOption("ad",c,I)};
_.qZ.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.qZ.prototype.executeCommand=function(G,c){this.getOptions().includes("executeCommand")?_.$mp(this,"executeCommand",{command:G,layoutId:c}):_.H8("Calling executeCommand when adModule is not loaded")};var wX=function(){return _.J.apply(this,arguments)||this};
_.u(wX,_.J);wX.prototype.getLayoutId=function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
wX.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var G=_.ZA(),c=this.getLayoutId(),I=this.data.clickthroughEndpoint;G&&c&&_.v("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(R){(new _.qZ(R)).executeCommand(I,c)}):_.Xl(this.hostElement,"yt-navigate",{endpoint:I})}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wX.prototype,"data",void 0);_.r([_.Jc({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],wX);
_.B(wX,"ytd-shopping-companion-item-renderer",function(){if(A6B!==void 0)return A6B;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return A6B=G},{mode:1});var SVp;var F_=function(){var G=_.J.apply(this,arguments)||this;G.isExpandableContent=!1;return G};
_.u(F_,_.J);_.Nh.Object.defineProperties(F_.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.data)==null?void 0:G.price)||((c=this.data)==null?void 0:(I=c.dealsData)==null?void 0:I.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var G,c;if((G=this.data)!=null&&G.dealsData&&((c=this.data)==null||!c.priceReplacementText)){G=this.data.dealsData;var I,R,Z;return((I=G.salesData)==null?void 0:I.originalPrice)||((R=G.priceDropData)==null?void 0:R.referencePrice)||((Z=G.promotionData)==null?void 0:Z.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var G,c;return(G=this.data)==null?void 0:(c=G.dealsData)==null?void 0:c.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],F_.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],F_.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],F_.prototype,"isExpandableContent",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"showCta",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"ctaText",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"hasPriceTopPosition",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"hasPriceBottomPosition",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"useNewStyle",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"showPriceReplacementText",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"priceValue",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"showDeal",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"showAffiliateDisclaimer",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"useSaleStyle",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"useFromBrandCtaStyle",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"useFromVendorCtaStyle",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"useShoppingCollectionCtaStyle",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],F_);
_.B(F_,"ytd-vertical-product-card-renderer",function(){if(SVp!==void 0)return SVp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return SVp=G},{mode:1});var p92;var n0=function(){return _.J.apply(this,arguments)||this};
_.u(n0,_.J);n0.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],n0.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],n0.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],n0);
_.B(n0,"ytd-grid-movie-renderer",function(){if(p92!==void 0)return p92;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return p92=G},{mode:1});var Mq9;var vt=function(){var G=_.J.apply(this,arguments)||this;G.roundedFix=_.v("web_enable_merch_item_rounding_fix");G.itemStyle="small-item";return G};
_.u(vt,_.J);vt.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,c,I,R,Z=(c=_.D((G=this.data)==null?void 0:G.buttonCommand,_.iuV))==null?void 0:(I=c.item)==null?void 0:(R=I.notificationTextRenderer)==null?void 0:R.successResponseText;Z&&_.w5g(this.hostElement,Z)}};
_.Nh.Object.defineProperties(vt.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:G.isProductPlaceholder)!==void 0&&((c=this.data)==null?void 0:c.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],vt.prototype,"roundedFix",void 0);_.r([_.E(),_.h("design:type",Object)],vt.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],vt.prototype,"itemStyle",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"hasPrice",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"hasPriceReplacementText",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"hasAdditionalFeesText",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"hasAffiliateDisclaimer",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"isProductPlaceholder",null);
_.r([_.E(),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"hideOpenInNewIcon",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"ariaLabel",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],vt);
_.B(vt,"ytd-merch-shelf-item-renderer",function(){if(Mq9!==void 0)return Mq9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Mq9=G},{mode:1});_.R1(_.W(function(G){return _.e("button-card-view-model",{el:_.YC(_.im(function(){return G.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return G.data().title},
role:"button"},_.e(_.Jx,{model:{}}),_.e("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.e("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.e(_.l,{cond:function(){return G.data().image},
then:function(c){return _.e(_.yc,{data:c,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.e("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return G.data().title})))},"bc"),"button-card-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){G=_.YW(G,{className:void 0});var c=G.data;G=G.className;var I=_.SE(function(){return c().onTapCommand},void 0,"SXkP9e");
return _.e("ytd-shopping-item-card",{class:_.O3("ytdShoppingItemCardHost",G)},_.e(_.Er,{command:I,className:"ytdShoppingItemCardHostLink"},_.e("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.e(_.sN,{data:function(){return c().thumbnailViewModel}},{thumbnailViewModel:function(R){return _.e(_.rE,{data:R.data,
aspectRatio:3})}})),_.e("div",null,_.e("p",{class:"ytdShoppingItemCardHostItemTitle"},_.e(_.ul,{text:function(){return c().itemTitle}})),_.e("p",{class:"ytdShoppingItemCardHostPrice"},_.e(_.ul,{text:function(){return c().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.bl,
className:_.bl}});var Vq9={isAdsVideo:!0},z3N={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},EJ9={showPlayerControls:!1,videoPreviewDurationMs:15E3},J6e={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},WNi={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var yK=null,Fmg={};var DL8="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(" "),DC={},oup=(DC.FEwhat_to_watch="home",DC.FEhashtag="hashtag",DC.FEtrending="trending",DC.FEhistory="history",DC.SPunlimited="premium",DC.FEmemberships_and_purchases="paid_memberships",DC.SPredeem_code="redeem",DC.SPverify_location="locate",DC.SPminor_moment="minor_moment",
DC.FEmini_app_container="mini_app",DC.FEnews_destination="news",DC.SPopen_in_app="open_in_app",DC.FEexplore="explore",DC.FEsubscriptions="subscriptions",DC.FEsfv_audio_pivot="sfv_audio_pivot",DC.FEplaylist_aggregation="playlist_aggregation",DC);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");_.IP("init");var iKi=function(){},j_i=_.W(function(G){var c=G.data;
var I=G.inlineMetadata;var R=G.aspectRatio;var Z=G.scrimStyle;var K=G.className;var m=G.useDefaultStyle;var a=G.titleStyle;var O=new iKi,N=_.v("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",q=_.SE(function(){return(m==null?0:m())?N==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),w=_.SE(function(){return _.dN(I)||q()||!1},void 0,"SEL6Qd"),F=function(){return(Z==null?void 0:Z())!==void 0?Z==null?void 0:Z():1},
n=_.SE(function(){return c().belowThumbnailMetadata||!w()},void 0,"KAqk1b");
G=_.wZ({visibilityCallback:function(QO){var T8=c().onFirstVisible;QO&&T8&&_.r0(T8)},
showOption:{calledOnce:!0,state:"visible"}});var U=_.YC(),k={},p=_.O3(function(){return q(),"shortsLockupViewModelHostThumbnailContainer"},(k.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.dN(R)===1},k.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.dN(R)===2},k.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.v("web_shorts_2_by_3_lockups_study")&&!_.v("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
k)),M=_.SE(function(){if(_.dN(R)===1)return 1;
_.dN(R);return 2},void 0,"Bg5Es"),z,t=function(){if(O){var QO;
(QO=z)==null||Rw(QO);var T8;if(O.hostElement&&((T8=O.data)==null?0:T8.inlinePlayerData)){var kp,FB;QO=((kp=O.data)==null?0:(FB=kp.inlinePlayerData)==null?0:FB.enableAudioControl)?Object.assign({},WNi):Object.assign({},J6e);var oq,Wr;((oq=O.data)==null?void 0:(Wr=oq.inlinePlayerData)==null?void 0:Wr.maxPlaybackLengthSec)!==void 0&&(QO.videoPreviewDurationMs=O.data.inlinePlayerData.maxPlaybackLengthSec*1E3);z=rP({mediaRenderer:O,lockupElement:O.hostElement,thumbnailElement:U.value,videoPreviewOpts:QO})}}};
_.xs(function(){O&&(O.data=c(),t())},"wo9C7e");
var x=_.SE(function(){return c().thumbnail},void 0,"haijYd");
k=_.SE(function(){return c().badge},void 0,"RpDeSe");
var C=_.SE(function(){return c().onTap},void 0,"hOfuOb"),H={},g={};
return _.e("ytm-shorts-lockup-view-model",{el:_.YC(function(QO){O&&(O.hostElement=QO)},t,G),
class:_.O3("shortsLockupViewModelHost",K)},_.e(_.FG,null,_.e(_.Er,{command:C,className:_.O3("shortsLockupViewModelHostEndpoint",(H.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!n()},H),"reel-item-endpoint",""),
ariaHidden:function(){return!w()},
tabIndex:function(){return w()?0:-1}},_.e("div",{el:U,
class:_.O3("shortsLockupViewModelHostThumbnailParentContainer",(g.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!q()},g))},_.e(_.l,{cond:x,
then:function(){return _.e("div",{class:p},_.e(_.yc,{data:function(){var QO;return(QO=x==null?void 0:x())!=null?QO:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.e(_.sN,{data:function(){return c().thumbnailViewModel}},{thumbnailViewModel:function(QO){return _.e(_.rE,{data:QO.data,
aspectRatio:function(){return M()},
disableRounding:function(){return q()}})}}),null),_.e(_.l,{cond:w,
then:function(){return _.e(fV9,{data:c,scrimStyle:F,useDefaultStyle:m,titleStyle:a})}}),_.e(_.sN,{data:k},{badgeViewModel:function(QO){return _.e(_.Jp,{data:QO.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.e(_.l,{cond:function(){return w()&&c().menuOnTap},
then:function(){return _.e(BuB,{data:c,inlineMetadata:!0})}}),_.e(_.l,{cond:n,
then:function(){return _.e(r6K,{data:c,useDefaultStyle:m,inlineMetadata:w})}})))},"ec"),fV9=_.W(function(G){var c=G.data;
var I=G.scrimStyle;var R=G.useDefaultStyle;var Z=G.titleStyle;var K=_.v("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",m=R&&_.v("web_hide_primary_text_for_pivot_panel"),a=_.SE(function(){return(R==null?0:R())?K==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
G={};G=_.O3("shortsLockupViewModelHostInlineMetadata",(G.shortsLockupViewModelHostMetadataRounded=function(){return!a()},G.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(I==null?void 0:I())===3&&!_.v("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(I==null?void 0:I())===3&&_.v("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(I==null?void 0:I())===2||(I==null?void 0:
I())===4},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
var O={};return _.e("div",{class:G},_.e("h3",{class:_.O3("shortsLockupViewModelHostMetadataTitle",(O.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(I==null?void 0:I())===4},O.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return c().belowThumbnailMetadata},O.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(Z==null?void 0:Z())===1},O.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(Z==null?void 0:Z())===2},O)),
"aria-label":function(){return c().accessibilityText}},_.e(_.l,{cond:function(){var N;
return!((N=c().overlayMetadata)==null||!N.primaryText)&&!m},
then:function(){return _.e(_.ul,{text:function(){var N;return(N=c().overlayMetadata)==null?void 0:N.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.e(_.l,{cond:function(){var N;
return(N=c().overlayMetadata)==null?void 0:N.secondaryText},
then:function(){return _.e(xmK,{data:c,scrimStyle:I,className:void 0})}}))},"fc"),r6K=_.W(function(G){var c=G.data;
var I=G.useDefaultStyle;var R=G.inlineMetadata;var Z=_.v("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",K=_.SE(function(){return(I==null?0:I())?Z==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),m=_.YC(),a;
G=_.Nx(function(n){if(_.EN(_.zf(n),m.value,["AVATAR-VIEW-MODEL"]))return!1;var U;(U=a)==null||U.click();return!1});
var O=_.SE(function(){return c().belowThumbnailMetadata||c().overlayMetadata},void 0,"GwezKf"),N=function(){return c().menuOnTap&&!R()},q=function(){var n;
return(n=O())==null?void 0:n.avatar},w={},F={};
return _.e("div",{class:_.O3(function(){return K()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(w.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!q()},w.shortsLockupViewModelHostOutsideMetadataHasMenu=N,w)),
"on:click":G,el:m,role:"presentation"},_.e(_.sN,{data:q},{avatarViewModel:function(n){return _.e(_.qF,{data:n.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.e("div",null,_.e("h3",{class:_.O3("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(F.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var n,U;
return!((n=O())==null?0:(U=n.primaryText)==null?0:U.content)},F.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=R,F)),
role:"presentation"},_.e(_.Er,{ref:function(n){return void(a=n)},
command:function(){return c().onTap},
className:_.O3("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var n,U;return(n=O())==null?void 0:(U=n.primaryText)==null?void 0:U.content},
"aria-label":function(){return c().accessibilityText}},_.e(_.l,{cond:function(){var n;
return(n=O())==null?void 0:n.primaryText},
then:function(n){return _.e(_.ul,{text:n,noEndpoints:!0,noStyleRuns:!0})}}))),_.e(_.l,{cond:function(){var n;
return(n=O())==null?void 0:n.secondaryText},
then:function(n){return _.e("div",{class:_.O3("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.e(_.ul,{text:n,noStyleRuns:!0}))}})),_.e(_.l,{cond:N,
then:function(){return _.e(BuB,{data:c,inlineMetadata:!1})}}))},"gc"),xmK=_.W(function(G){var c=G.data;
var I=G.scrimStyle;G=G.className;var R={};return _.e("div",{class:_.O3((R.shortsLockupViewModelHostMetadataSubhead=function(){return(I==null?void 0:I())!==4},R.shortsLockupViewModelHostMetadataSubheadNew=_.v("enable_shorts_lockup_new_scrim"),R.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(I==null?void 0:I())===4},R),G),
"aria-hidden":"true"},_.e(_.ul,{text:function(){var Z;return(Z=c().overlayMetadata)==null?void 0:Z.secondaryText},
noStyleRuns:!0}))},"hc"),BuB=_.W(function(G){var c=G.data;
var I=G.inlineMetadata;G={};G=_.O3((G.shortsLockupViewModelHostInlineMetadataMenu=function(){return I()},G.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!I()},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
return _.e("div",{class:G},_.e(_.fx,{data:function(){return{style:I()?"overlay":"mono",accessibilityLabel:c().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(R){R.preventDefault();R.stopPropagation();var Z=_.fd({elementsCommand:c().menuOnTap,forceNewState:!0});if(Z==null?0:Z.onclick)Z.onclick(R)}}},
iconName:"MORE_VERT"}))},"ic");var tqN=_.W(function(G){var c=G.data;var I=G.inlineMetadata;var R=G.aspectRatio;var Z=G.scrimStyle;var K=G.className;var m=G.useDefaultStyle;G=_.SE(function(){var a=c().entityId;return a?a.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.e("ytm-shorts-lockup-view-model-v2",{class:_.O3("shortsLockupViewModelHost",K)},_.e(_.Hh,{contentId:G,aspectRatio:function(){return(R==null?void 0:R())===1?1:(R==null?void 0:R())===2?2:4}},function(){return _.e(j_i,{data:c,
inlineMetadata:I,aspectRatio:R,scrimStyle:Z,className:K,useDefaultStyle:m})}))},"jc");_.R1(tqN,"ytm-shorts-lockup-view-model-v2",{props:{data:_.G9,inlineMetadata:_.G9,aspectRatio:_.G9,scrimStyle:_.G9,className:_.G9,useDefaultStyle:_.G9,titleStyle:_.G9}});var h3B=16/9*210,oX=function(){var G=_.J.apply(this,arguments)||this;G.isExpandableContent=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.buttonClasses=["arrow"];G.isSearch=!1;G.disableScrollEventListener=!1;G.containsLockup=!1;G.overrideArrowPositionForProductCard=!1;G.overrideArrowPositionForShoppingItemCard=!1;G.overrideArrowPositionForReelItems=!1;G.overrideArrowPositionForGridMovie=!1;G.overrideArrowPositionToCenter=!1;G.isSearchPostShelf=!1;G.overrideArrowPositionForMixedShelf=!1;G.overrideArrowPositionForMixedShelfShortsOnly=
!1;G.hasBigThumbsReelItems=!1;G.shouldUseMixedListHeight=!1;G.shouldUseShortsListHeight=!1;G.gridVideoWidth=0;G.isSearchVodShelf=!1;G.disableWheelScroll=!1;G.sizing="COMPACT";G.shortsLockupAspectRatio=0;return G};
_.u(oX,_.J);_.P=oX.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.v("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.P.computeInitialCountNumber=function(G){if(!G)return 6;var c=G.items.some(function(K){return!!K.topicRecommendationsChipRenderer}),I=G.items.some(function(K){return!!K.displayAdRenderer}),R=this.computeShouldListItemsHaveEqualHeight(G),Z=G.items.some(function(K){return!!K.gridPlaylistRenderer});
G=G.items.some(function(K){return!!K.shoppingItemCardViewModel});
return c?9:I?8:Z||R?10:G?7:6};
_.P.computeContainsPost=function(G){return!!G&&!!G.items&&G.items.some(function(c){return!!c.postRenderer})};
_.P.computeContainsLockup=function(){if(_.v("web_horizontal_list_lockup_arrow_killswitch"))return!1;var G,c;return(G=this.data)==null?void 0:(c=G.items)==null?void 0:c.some(function(I){return!!I.lockupViewModel})};
_.P.maybeUpdateLockupAspectRatio=function(){var G,c;if(this.computeContainsLockup()&&((G=this.data)==null?0:(c=G.items)==null?0:c.length)){var I;G=tFT((I=this.data.items[0].lockupViewModel)==null?void 0:I.contentType,this.data.force16By9ThumbnailAspectRatio);I=t8B(G);I=this.computeLockupWidth()/I;_.eD(this.hostElement,{"--yt-horizontal-list-content-height":I+"px"})}};
_.P.computeOverrideArrowPositionForProductCard=function(G){if(this.isExpandableContent)return!1;var c;return!!(G==null?0:(c=G.items)==null?0:c.some(function(I){return!!I.verticalProductCardRenderer}))};
_.P.computeOverrideArrowPositionForShoppingItemCard=function(G){var c;return!!(G==null?0:(c=G.items)==null?0:c.some(function(I){return!!I.shoppingItemCardViewModel}))};
_.P.computeOverrideArrowPositionForReelItemRenderer=function(G){return this.containsReelItemRenderer(G)};
_.P.computeHasBigThumbsReelItems=function(G,c){return G&&this.containsReelItemRenderer(c)};
_.P.computeShouldListItemsHaveEqualHeight=function(G){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(G==null?void 0:G.itemSizeConstraint)};
_.P.computeShouldListItemsHaveShortsHeight=function(G){return this.computeShouldListItemsHaveEqualHeight(G)&&!this.containsGridVideoRenderer(G)};
_.P.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.P.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.P.containsReelItemRenderer=function(G){var c;return!!(G==null?0:(c=G.items)==null?0:c.some(function(I){return!(!I.reelItemRenderer&&!I.shortsLockupViewModel)}))};
_.P.containsGridVideoRenderer=function(G){var c;return!!(G==null?0:(c=G.items)==null?0:c.some(function(I){return!!I.gridVideoRenderer||!!I.lockupViewModel}))};
_.P.computeContainsGridMovieRenderer=function(G){var c;return!!(G==null?0:(c=G.items)==null?0:c.some(function(I){return!!I.gridMovieRenderer}))};
_.P.computeOverrideArrowPositionToCenter=function(G){return this.computeIsSearchPostShelf(G)};
_.P.computeIsSearchPostShelf=function(G){var c;return!!(G==null?0:(c=G.items)==null?0:c.some(function(I){var R,Z;return((Z=(R=I.postRenderer)==null?void 0:R.surface)!=null?Z:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.P.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(G){var c;return!!(G==null?0:(c=G.items)==null?0:c.some(function(I){var R,Z,K;return((K=(R=I.backgroundPromoRenderer)==null?void 0:(Z=R.style)==null?void 0:Z.value)!=null?K:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.P.computeIsSearchVodShelf=function(G,c){return G&&this.containsGridVideoRenderer(c)};
_.P.computeDisableWheelScroll=function(G,c){return this.computeIsSearchVodShelf(G,c)};
_.P.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.P.computeShortsLockupAspectRatio=function(){return 1};
_.P.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.eD(this.hostElement,{"--ytd-reel-item-thumbnail-height":h3B+"px"})};
oX.prototype.dataChanged=oX.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],oX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.WT.YtdHorizontalListBehavior),_.h("design:type",Object)],oX.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oX.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],oX.prototype,"isExpandableContent",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"hideShelfHeader",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"engagementPanel",void 0);_.r([_.E(),_.h("design:type",Array)],oX.prototype,"buttonClasses",void 0);_.r([_.E(),_.h("design:type",Object)],oX.prototype,"isSearch",void 0);
_.r([_.E(),_.h("design:type",Object)],oX.prototype,"disableScrollEventListener",void 0);_.r([_.E({computed:"computeInitialCountNumber(data)"}),_.h("design:type",Number)],oX.prototype,"initialCount",void 0);_.r([_.E({computed:"computeContainsPost(data)"}),_.h("design:type",Boolean)],oX.prototype,"supportComponentResize",void 0);_.r([_.E({computed:"computeContainsPost(data)"}),_.h("design:type",Boolean)],oX.prototype,"containsPost",void 0);
_.r([_.E({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"containsLockup",void 0);_.r([_.E({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],oX.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.r([_.E({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"overrideArrowPositionForProductCard",void 0);_.r([_.E({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.r([_.E({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"overrideArrowPositionForReelItems",void 0);_.r([_.E({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"overrideArrowPositionForGridMovie",void 0);
_.r([_.E({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"overrideArrowPositionToCenter",void 0);_.r([_.E({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"isSearchPostShelf",void 0);_.r([_.E({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.r([_.E({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.r([_.E({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"hasBigThumbsReelItems",void 0);
_.r([_.E({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"shouldUseMixedListHeight",void 0);_.r([_.E({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"shouldUseShortsListHeight",void 0);_.r([_.E({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"gridVideoWidth",void 0);
_.r([_.E({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"isSearchVodShelf",void 0);_.r([_.E({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],oX.prototype,"disableWheelScroll",void 0);_.r([_.E({computed:"computeSizing(isSearch)"}),_.h("design:type",Object)],oX.prototype,"sizing",void 0);
_.r([_.E({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.h("design:type",Object)],oX.prototype,"shortsLockupAspectRatio",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oX.prototype,"dataChanged",null);
_.B(oX,"yt-horizontal-list-renderer",function(){if(tZ9===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);tZ9=G}G=tZ9;return G},{mode:1});var dmT=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
dmT.prototype.subscribe=function(G,c){var I=this.subscriptions.get(G);if(!I)return function(){};
I.add(c);return function(){I.delete(c)}};
dmT.prototype.unsubscribe=function(G,c){(G=this.subscriptions.get(G))&&G.delete(c)};
dmT.prototype.publish=function(G,c){c=c===void 0?{}:c;(G=this.subscriptions.get(G))&&G.forEach(function(I){I(c)})};var CM2;var HKe=[10,12,14,16,18,20,24,28,32,36],X9i=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],UE=function(){var G=_.J.apply(this,arguments)||this;G.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";G.hideOverflow=!1;G.useRoboto=!1;G.fontClass="";G.overflown=!1;G.actionMap={"yt-window-resized":"resize"};return G};
_.u(UE,_.J);_.P=UE.prototype;
_.P.attached=function(){var G=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.O$(this,function(){G.resize()});
if(!_.FY){var c,I,R;(c=document)==null||(I=c.fonts)==null||(R=I.ready)==null||R.then(function(){G.resize()})}};
_.P.dataChanged=function(){this.resize()};
_.P.guideIsExpandedChanged=function(){this.resize()};
_.P.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var G=this.getMaxNumLines(),c=this.getMinFont(),I=this.getMaxFont(),R=this.useRoboto?HKe:X9i;for(R=R.filter(function(K){return K<=I&&K>=c});R.length>1;){var Z=Math.floor(R.length/2);
this.updateFontSize(R[Z]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=G)R=R.slice(Z,R.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>G)R=R.slice(0,Z);else break}this.updateFontSize(R[R.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(G)}};
_.P.handleOverflow=function(G){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>G&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",G.toString()))};
_.P.updateFontSize=function(G){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+G;this.textNode.classList.add(this.fontClass)};
_.P.getMaxFont=function(){var G=this.useRoboto?HKe:X9i;G=G[G.length-1];return this.maxFontSize&&this.maxFontSize<=G?this.maxFontSize:G};
_.P.getMinFont=function(){var G=(this.useRoboto?HKe:X9i)[0];return this.minFontSize&&this.minFontSize>=G?this.minFontSize:G};
_.P.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.P.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.P.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.HY(this.text).split("\n").length-1:Infinity};
_.P.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
UE.prototype.guideIsExpandedChanged=UE.prototype.guideIsExpandedChanged;UE.prototype.dataChanged=UE.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],UE.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],UE.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],UE.prototype,"text",void 0);
_.r([_.E(),_.h("design:type",String)],UE.prototype,"fontFamily",void 0);_.r([_.E(),_.h("design:type",Number)],UE.prototype,"maxWidth",void 0);_.r([_.E(),_.h("design:type",Number)],UE.prototype,"maxHeight",void 0);_.r([_.E(),_.h("design:type",Number)],UE.prototype,"maxFontSize",void 0);_.r([_.E(),_.h("design:type",Number)],UE.prototype,"minFontSize",void 0);_.r([_.E(),_.h("design:type",Number)],UE.prototype,"maxLines",void 0);_.r([_.E(),_.h("design:type",Object)],UE.prototype,"hideOverflow",void 0);
_.r([_.E({selector:_.ErU}),_.h("design:type",Boolean)],UE.prototype,"guideIsExpanded",void 0);_.r([_.nH("#container"),_.h("design:type",HTMLElement)],UE.prototype,"containerNode",void 0);_.r([_.nH("#text"),_.h("design:type",HTMLElement)],UE.prototype,"textNode",void 0);_.r([_.uO("text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UE.prototype,"dataChanged",null);
_.r([_.uO("guideIsExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UE.prototype,"guideIsExpandedChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],UE);
_.B(UE,"yt-dynamic-sizing-formatted-string",function(){if(CM2!==void 0)return CM2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return CM2=G},{mode:1});var y60;_.gJp=function(G){_.G8.call(this,G)};
_.u(_.gJp,_.G8);var YVA=function(G){_.G8.call(this,G)};
_.u(YVA,_.gJp);var uk=function(){return _.J.apply(this,arguments)||this};
_.u(uk,_.J);uk.prototype.onTapSuspendedChannel=function(){var G;if((G=this.data)!=null&&G.serviceEndpoint){var c,I;(G=(I=_.D((c=this.data)==null?void 0:c.serviceEndpoint,_.ID))==null?void 0:I.url)?_.Ji(G,void 0,void 0,window.top):(c=new YVA("Did not handle suspended account tap. No appealUrl."),_.hg(c))}else c=new YVA("Did not handle suspended account tap. No serviceEndpoint."),_.hg(c)};
uk.prototype.onTap=function(){var G=this,c=_.DP(),I,R=(I=_.vI(c,{veType:7116}))!=null?I:void 0;_.t0(c,{visualElement:R});_.ze();this.saveRoleText();var Z;if((Z=this.data)==null?0:Z.youtubeSuspended)this.onTapSuspendedChannel();else{var K=!1,m,a;(c=(a=_.D((m=this.data)==null?void 0:m.serviceEndpoint,_.Hf2))==null?void 0:a.supportedTokens)&&c.forEach(function(O){if(O.accountSigninToken)if(K=!0,G.onAccountItemTap)G.onAccountItemTap(O.accountSigninToken.signinUrl);else _.Ji(O.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!K){if(m=this.get("serviceEndpoint",this.data))K=!0,this.ytComponentBehavior.resolveCommand(m);K||_.dj(new YVA("Did not handle account switch tap. No token."))}}};
uk.prototype.saveRoleText=function(){if(this.data){var G=this.data,c=G.channelDelegationRole;if(c){var I,R=(I=_.D(G==null?void 0:G.serviceEndpoint,_.Hf2))==null?void 0:I.supportedTokens;if(!R){var Z,K,m,a;R=(Z=_.D(G==null?void 0:G.serviceEndpoint,_.Ih))==null?void 0:(K=Z.popup)==null?void 0:(m=K.confirmDialogRenderer)==null?void 0:(a=m.confirmButton)==null?void 0:a.buttonRenderer;var O;R=(O=_.D(R==null?void 0:R.command,_.RP))==null?void 0:O.commands;if(!R)return;var N;R=(N=_.D(R[1],_.Hf2))==null?
void 0:N.supportedTokens}if(R){O=void 0;N=_.Q(R);for(R=N.next();!R.done;R=N.next())if(R=R.value,R.datasyncIdToken){O=R.datasyncIdToken.datasyncIdToken;break}if(O){var q;a:{if(_.Hbg()&&(N=_.x6(O+"::pom"))){N=new Gb(N);break a}N=void 0}(q=N)==null||q.set("role_text",c);if((mZ8?mZ8:window.location).href.indexOf("studio")!==-1&&(q=Xhg())){N=q.src?(new URL(q.src)).origin:"*";var w;(w=q.contentWindow)==null||w.postMessage({action:"save_pom_role",datasyncId:O,roleText:c},N)}}}}}};
_.Nh.Object.defineProperties(uk.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.accountPhoto)==null?void 0:c.thumbnails;return I&&I.length>0&&(I[0].height===36||I[0].height===48)?I[0].height:40}}});
uk.prototype.onTap=uk.prototype.onTap;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],uk.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uk.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!1}),_.h("design:type",Function)],uk.prototype,"onAccountItemTap",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uk.prototype,"enableRingForActiveAccount",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],uk.prototype,"thumbnailSize",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uk.prototype,"onTap",null);_.r([_.Jc({is:"ytd-account-item-renderer",disableElementRegistration:!0})],uk);
_.B(uk,"ytd-account-item-renderer",function(){if(y60!==void 0)return y60;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return y60=G},{mode:1});var G4A;var bk=function(){return _.J.apply(this,arguments)||this};
_.u(bk,_.J);bk.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.wH().resolve(_.n4).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bk.prototype,"data",void 0);_.r([_.Jc({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],bk);
_.B(bk,"ytd-identity-chip-renderer",function(){if(G4A!==void 0)return G4A;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return G4A=G},{mode:1});var c3T;var IzV;var RAA;var Znk;var kv=function(){var G=_.J.apply(this,arguments)||this;G.richItemMinWidth=_.DH("wn_grid_min_item_width",310);G.isShorts=!1;G.isWatchNext=!1;G.isExploreHub=!1;return G};
_.u(kv,_.J);_.Nh.Object.defineProperties(kv.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var G=[],c=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.eD(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var I;if(((I=this.data)==null?0:I.rows)&&c)for(c*=this.data.rows,I=0;I<c;I++)G.push({});return G}}});
_.r([_.L(_.wQ),_.h("design:type",Object)],kv.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kv.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.SC,value:3}),_.h("design:type",Number)],kv.prototype,"itemsPerRow",void 0);_.r([_.E({selector:_.z$g,value:6}),_.h("design:type",Number)],kv.prototype,"slimItemsPerRow",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Number)],kv.prototype,"richItemMinWidth",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],kv.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],kv.prototype,"isShorts",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],kv.prototype,"isWatchNext",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],kv.prototype,"isExploreHub",void 0);
_.r([_.A("isExploreHub"),_.E({reflectToAttribute:!0}),_.h("design:type",Object),_.h("design:paramtypes",[])],kv.prototype,"shimmerAnimation",null);_.r([_.A("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.h("design:type",Array),_.h("design:paramtypes",[])],kv.prototype,"cardItems",null);_.r([_.Jc({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],kv);
_.KHA=_.PI()(kv,"ytd-ghost-grid-renderer",function(){if(Znk===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);Znk=G}G=Znk;return G},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.R1(_.W(function(G){var c=_.YW(G,{numberOfComments:3}).numberOfComments,I=_.YW(G,{isInitialLoad:!1}).isInitialLoad,R=_.YW(G,{engagementPanel:!1}).engagementPanel,Z=function(){return Math.min(Number(c==null?void 0:c())||20,20)};
return _.e("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.e(_.l,{cond:function(){return!(R==null?0:R())&&(I==null?void 0:I())},
then:function(){return _.e("div",{class:"ytGhostCommentsComments"},_.e("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.e("div",{class:_.O3("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.e("div",{class:_.O3("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.e("div",{class:"ytGhostCommentsGhostCard"},_.e("div",{class:"ytGhostCommentsAvatar"},_.e("div",{class:"ytGhostCommentsCircle"})),_.e("div",{class:"ytGhostCommentsComments"},_.e("div",{class:"ytGhostCommentsMeta"},
_.e("div",{class:_.O3("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.e("div",{class:_.O3("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.e("div",{class:"ytGhostCommentsComments"},_.e(_.fh,{each:function(){return Array((Z==null?void 0:Z())||3)}},function(){return _.e("div",{class:"ytGhostCommentsGhostCard"},_.e("div",{class:"ytGhostCommentsAvatar"},_.e("div",{class:"ytGhostCommentsCircle"})),_.e("div",{class:"ytGhostCommentsHost"},_.e("div",{class:"ytGhostCommentsMeta"},
_.e("div",{class:_.O3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.e("div",{class:_.O3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.e("div",{class:_.O3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.e("div",{class:"ytGhostCommentsGhostLikeDislike"},_.e("div",{class:_.O3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.e("div",{class:_.O3("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.bl,
isInitialLoad:_.bl,engagementPanel:_.bl},unsafeExternallySettableAttributes:new Set(["hidden"])});_.Su("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var sE=function(){var G=_.J.apply(this,arguments)||this;G.isOverridable=!1;G.spinnerActive=!1;G.showButton=!1;G.isCommentsSection=!1;G.engagementPanel=!0;G.isShortsGrid=!1;G.isShortsPage=!1;G.isWatchPage=!1;G.originalShowButton=!1;G.endOfList=!1;return G};
_.u(sE,_.J);_.P=sE.prototype;_.P.resetIntersectionObserver=function(){var G;(G=this.observer)==null||G.disconnect();this.observer=void 0};
_.P.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var G,c;((G=this.data)==null?void 0:G.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((c=this.data)==null?0:c.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.P.initializeIntersectionObserver=function(){var G=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(c){c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I.value.isIntersecting&&(G.triggerContinuation(),G.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.P.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.P.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var G;((G=this.data)==null?0:G.continuationEndpoint)&&(G=_.D(this.data.continuationEndpoint,_.fQ))&&this.ytdReduxBehavior.dispatch(_.R6({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:G}}))};
_.P.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.P.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.P.onServiceRequestCompleted=function(G,c){if(!_.v("kevlar_hide_spinner_on_empty_continuation_killswitch")){var I;(I=c.actions)!=null&&I.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.P.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.P.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.P.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.P.numberOfGhostCommentsChanged=function(){var G=3;if(this.engagementPanel){var c,I,R;G=Math.floor(((((c=this.hostElement)==null?void 0:(I=c.parentElement)==null?void 0:(R=I.parentElement)==null?void 0:R.scrollHeight)||108)-108)/108);G=this.isInitialLoad?Math.max(G,3):3}c=[].concat(_.jn(this.hostElement.querySelectorAll("yt-ghost-comments")));c=_.Q(c);for(I=c.next();!I.done;I=c.next())I=I.value,I.numberOfComments=G,I.isInitialLoad=this.isInitialLoad,I.engagementPanel=this.engagementPanel};
_.P.detached=function(){this.resetIntersectionObserver()};
_.Nh.Object.defineProperties(sE.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
sE.prototype.numberOfGhostCommentsChanged=sE.prototype.numberOfGhostCommentsChanged;sE.prototype.continuationTriggerOffsetChanged=sE.prototype.continuationTriggerOffsetChanged;sE.prototype.showButtonChanged=sE.prototype.showButtonChanged;sE.prototype.onYtServiceRequestCompletedForButtonRenderer=sE.prototype.onYtServiceRequestCompletedForButtonRenderer;sE.prototype.onServiceRequestCompleted=sE.prototype.onServiceRequestCompleted;sE.prototype.onYtServiceRequestSentForButtonRenderer=sE.prototype.onYtServiceRequestSentForButtonRenderer;
sE.prototype.observeData=sE.prototype.observeData;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.vR.YtVisibilityBehavior),_.h("design:type",Object)],sE.prototype,"ytVisibilityBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],sE.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],sE.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sE.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],sE.prototype,"isOverridable",void 0);_.r([_.E(),_.h("design:type",Object)],sE.prototype,"spinnerActive",void 0);_.r([_.E(),_.h("design:type",Object)],sE.prototype,"showButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sE.prototype,"isCommentsSection",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sE.prototype,"engagementPanel",void 0);_.r([_.E(),_.h("design:type",Object)],sE.prototype,"isShortsGrid",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.ixb}),_.h("design:type",Object)],sE.prototype,"isShortsPage",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.W$O}),_.h("design:type",Object)],sE.prototype,"isWatchPage",void 0);_.r([_.E(),_.h("design:type",Number)],sE.prototype,"continuationTriggerOffset",void 0);
_.r([_.E(),_.h("design:type",Object)],sE.prototype,"endOfList",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],sE.prototype,"isInitialLoad",void 0);_.r([_.nH("ytd-button-renderer"),_.h("design:type",_.JG)],sE.prototype,"buttonRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],sE.prototype,"buttonOverrides",void 0);
_.r([_.E(),_.A("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.h("design:type",Object),_.h("design:paramtypes",[])],sE.prototype,"showGhostCardComments",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sE.prototype,"observeData",null);
_.r([_.qY("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sE.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],sE.prototype,"onServiceRequestCompleted",null);
_.r([_.qY("yt-service-request-completed-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sE.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.r([_.uO("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sE.prototype,"showButtonChanged",null);
_.r([_.uO("continuationTriggerOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sE.prototype,"continuationTriggerOffsetChanged",null);_.r([_.wD("isInitialLoad","engagementPanel"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sE.prototype,"numberOfGhostCommentsChanged",null);_.r([_.Jc({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],sE);
_.B(sE,"ytd-continuation-item-renderer",function(){if(RAA!==void 0)return RAA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return RAA=G},{mode:1});var Ppp;var L0=function(){var G=_.J.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.downloadState="DOWNLOAD_STATE_UNKNOWN";G.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";G.offlineVideoPolicyExpirationTimestamp=0;G.downloadedVideoPlaybackPosition=0;return G};
_.u(L0,_.J);L0.prototype.dataChanged=function(){var G;this.videoData=_.D((G=this.data)==null?void 0:G.renderer,spi);this.transferStateChanged()};
L0.prototype.downloadProgressChanged=function(){if(this.entityInfo){var G=Object.assign({},this.videoData),c=ifq(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),I=c.publishedTimeText,R=c.badges;G.shortViewCountText=c.shortViewCountText;G.publishedTimeText=I;G.badges=R;this.set("videoData",G)}};
L0.prototype.transferStateChanged=function(){if(this.entityInfo){var G=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",c=_.vY(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!np(this.entityInfo.policyEntity),I=Object.assign({},this.videoData),R=ifq(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Z=R.publishedTimeText,K=R.badges;I.shortViewCountText=
R.shortViewCountText;I.publishedTimeText=Z;I.badges=K;I.isDisabled=c;I.isWatched=this.downloadedVideoPlaybackPosition>0;I.navigationEndpoint=c?void 0:fIA(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var m;G&&((m=this.videoData)==null?0:m.videoId)&&!_.v("dl_resume_click_killswitch")&&(I.isDisabled=!1,I.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});I.thumbnailOverlays=JGT(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",I)}};
L0.prototype.transferStateChanged=L0.prototype.transferStateChanged;L0.prototype.downloadProgressChanged=L0.prototype.downloadProgressChanged;L0.prototype.dataChanged=L0.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],L0.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],L0.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],L0.prototype,"videoData",void 0);_.r([_.E({selector:WY,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],L0.prototype,"downloadProgress",void 0);_.r([_.E(),_.h("design:type",Number)],L0.prototype,"relativeDateReference",void 0);_.r([_.E({selector:_.E4,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],L0.prototype,"transferState",void 0);
_.r([_.E({selector:K80,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],L0.prototype,"downloadState",void 0);_.r([_.E({selector:xiC,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],L0.prototype,"offlinePolicyAction",void 0);_.r([_.E({selector:tPr,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],L0.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.r([_.E({selector:fp,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],L0.prototype,"downloadedVideoPlaybackPosition",void 0);_.r([_.E({selector:dir,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],L0.prototype,"entityInfo",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],L0.prototype,"isDownloading",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L0.prototype,"dataChanged",null);
_.r([_.uO("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L0.prototype,"downloadProgressChanged",null);_.r([_.uO("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L0.prototype,"transferStateChanged",null);
_.r([_.Jc({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],L0);
_.B(L0,"ytd-downloaded-video-grid-video-renderer",function(){if(Ppp!==void 0)return Ppp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ppp=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var QZT;var Af=function(){};
Af.prototype.resolve=function(G,c){var I=this;return _.T(function(R){return R.yield(I.resolveCommand(G,c),0)})};var ms0,$v;ms0=uwC(function(G){return G.targetId},{shouldPersist:!1});
$v=ms0.updateData;_.az0=ms0.useUpdatableData;var TM0,OnN;TM0=uwC(function(G){return G.targetId});
OnN=TM0.updateData;_.eA0=TM0.useUpdatableData;var NMi=bag.bind(null,$v),lzV=bag.bind(null,OnN);(function(G,c,I){var R=_.D(I==null?void 0:I.updatedRenderer,_.IdK);return R?G({targetId:c},function(){return R}):!1}).bind(null,$v);var SS=function(){};
_.u(SS,Af);SS.prototype.resolveCommand=function(G){var c;return _.T(function(I){c=_.D(G,_.zPr);if(!c)return I.return();NMi(c.targetId,c);_.Vp(I)})};var p0=function(){var G=_.D4.apply(this,arguments)||this;G.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return G};
_.u(p0,_.D4);_.P=p0.prototype;_.P.configureContinuationPathMap=function(){return{}};
_.P.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.P.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.P.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.P.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.P.handleAppendContinuationItemsAction=function(G){var c=_.D(G,_.C3e);if(this.data&&this.data.targetId&&c&&this.continuationPathMap&&c.targetId===this.data.targetId){var I=NPp(G),R=I&&this.continuationPathMap[I];if(R&&I)if(G=this.get(R,this.data)){a:{for(I=0;I<G.length;I++){var Z=G[I],K=void 0,m=!!_.D((K=_.D(Z,zL0))==null?void 0:K.content,_.UH9);if(_.D(Z,_.Zo)||m)break a}I=G.length}R="data."+R;c.continuationItems?I===G.length-1?(this.pop(R),this.push.apply(this,[R].concat(_.jn(c.continuationItems)))):
I===G.length?this.push.apply(this,[R].concat(_.jn(c.continuationItems))):this.splice.apply(this,[R,I,1].concat(_.jn(c.continuationItems))):this.splice(R,I,1);(_.v("web_enable_voting_animation")||_.v("enable_music_web_cairo_voting_animation"))&&_.Xl(this.hostElement,"yt-append-continuation-items-action-finished");_.Xl(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Ck(new _.iW("append continuation items does not exist",I));else _.Ck(new _.iW("append continuation path does not exist",
I))}};
_.P.handleReloadContinuationItemsCommand=function(G){var c=_.D(G,_.zPr);if(this.data&&c){if(_.v("web_client_explore_hub")||_.v("web_explore_hub_on_hover")||_.v("web_client_explore_hub_on_hover")||!_.v("web_reload_continuation_items_command_resolver_killswitch"))try{_.wH().resolve(SS).resolveCommand(G)}catch(K){}if(this.data.targetId&&this.continuationPathMap&&c.targetId===this.data.targetId&&(!_.v("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||c.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var I,
R=(I=c.slot)==null?void 0:I.replace("RELOAD_CONTINUATION_SLOT_","");I=(G=NPp(G)+"-"+(R==null?void 0:R.toLowerCase()))&&this.continuationPathMap[G];if(!I||!G||!R)_.Ck(new _.iW("reload continuation path does not exist",G));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(c)){if(c.replaceWithFirstItem){var Z;this.set("data."+I,((Z=c.continuationItems)==null?0:Z.length)?c.continuationItems[0]:{})}else this.set("data."+I,c.continuationItems?c.continuationItems:
[]);this.continuationIsReloading=!1;this.reloadUiContent=void 0;_.Xl(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.P.handleShowReloadUiCommand=function(G){G=_.D(G,aMi);var c;((c=this.data)==null?0:c.targetId)&&(G==null?0:G.targetId)&&G.targetId===this.data.targetId&&(this.continuationIsReloading=!0,G.content&&(this.reloadUiContent=G.content))};
p0.prototype.observeData=p0.prototype.observeData;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],p0.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],p0.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],p0.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],p0.prototype,"continuationIsReloading",void 0);
_.r([_.E(),_.h("design:type",Object)],p0.prototype,"reloadUiContent",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],p0.prototype,"observeData",null);_.r([_.Um()],p0);_.MZ=[_.wm.YtComponentBehavior,_.HR.YtActionHandlerBehavior,p0.prototype];_.Vn={};_.Vn.YtNextContinuationBehavior=[_.$r.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",_.lO(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.lO(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(G,c){G.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,c,{}):(G={locationRetrieved:function(I){this.makeNextContinuationRequest_(I,c,{})}.bind(this)},_.Xl(this.hostElement,"yt-retrieve-location",G))},
makeNextContinuationRequest_:function(G,c,I){_.SW("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();G=c(G);var R;this.canUseContextualNetworkManager_()&&(R=this.getNetworkManager());R||(R=_.wH().resolve(_.oI));c=_.h0.instance;if(_.H1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&c){R=_.gL([G.startsWith("/")?G.substr(1):G]);var Z,K;I=_.UO(c,{},R,I==null?void 0:(Z=I.context)==null?void 0:(K=Z.clickTracking)==null?void 0:K.clickTrackingParams).then(function(m){return{response:m}})}else I=
this.nextContinuation.usePost?R.postData(G,I):R.fetchData(G);
I.then(this.updateNextContinuationData_.bind(this,G));this.pendingContinuationRequest_=I;this.startListeningForNavigate_()},
updateNextContinuationData_:function(G,c){var I=this;_.SW("ncl");this.pendingContinuationRequest_=void 0;if(c){var R={};this.nextContinuation&&(R=this.nextContinuation);if(c.response&&c.response.continuationContents&&c.response.continuationContents[R.continuationType]){G=c.response.continuationContents[R.continuationType];var Z=R.header||"data.header",K=G[R.responseHeaderKey||"header"];K&&this.set(Z,K);Z=R.contentsArray||"data.contents";K=this.getContents_(G,R.responseContentsKey||"contents")||[];
this.pathExists_(Z)?(K.unshift(Z),this.push.apply(this,K)):this.set(Z,K);K&&(kDf(_.DP(),c.response,this.hostElement,function(m){_.ym(I.hostElement,"yt-store-grafted-ve-action",[m])}),_.Xl(this.hostElement,"yt-next-continuation-data-updated",{continuationData:c,
page:this,contentsArray:Z}));this.set(R.continuationsArray||"data.continuations",G[R.responseContinuationsKey||"continuations"]||[])}else c.reload?_.Ck(new _.iW("Reloading from continuation is unsupported")):c.responseContext&&c.responseContext.errors||(delete c.xsrf_token,delete c.timing,delete c.endpoint,delete c.csn,c.responseContext&&delete c.responseContext.serviceTrackingParams,Z={request:_.mb(G,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(c).sort()},c.response&&(Z.responseContentKeys=
Object.keys(c.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Z.continuationType=this.nextContinuation.continuationType.substr(0,256)),c=new _.iW("Malformed continuation",Z),G.indexOf("/comment_service_ajax")==0?_.Ck(c):_.hg(c)),this.set(R.continuationsArray||"data.continuations",[])}else _.dj(new _.iW("Missing continuation response",G))},
getContents_:function(G,c){c=c.split(".");return _.rx.getValueByKeys(G,c)},
pathExists_:function(G){var c=this;G=G.toString().split(".");for(var I=0;I<G.length;I++)if(c=c[G[I]],c===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var qWi;var wF0;var zX=function(){var G=_.J.apply(this,arguments)||this;G.triggered_=!1;return G};
_.u(zX,_.J);_.P=zX.prototype;_.P.attached=function(){this.maybeTriggerAutoload()};
_.P.detached=function(){this.hasBeenTriggered_=!1};
_.P.onPrescanVisible=function(){this.onShow()};
_.P.onShow=function(){this.showButton||this.trigger()};
_.P.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Xl(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.P.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.P.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.P.computeLabel_=function(G,c){return G===void 0?null:G.label||!c?G.label:this.showMoreText_};
_.P.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.P.getContinuationUrl=function(G){var c={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(c.itct=this.data.clickTrackingParams);return _.aa(G,c)};
_.P.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
zX.prototype.showButtonChanged_=zX.prototype.showButtonChanged_;zX.prototype.observeData_=zX.prototype.observeData_;_.r([_.L(_.vR.YtVisibilityBehavior),_.h("design:type",Object)],zX.prototype,"ytVisibilityBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zX.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],zX.prototype,"showButton",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],zX.prototype,"showIcon",void 0);_.r([_.E({computed:"computeLabel_(data, showButton)"}),_.h("design:type",Object)],zX.prototype,"label",void 0);_.r([_.E({value:_.Cp(_.mJ("SHOW_MORE",void 0,"Show More"))}),_.h("design:type",Object)],zX.prototype,"showMoreText_",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],zX.prototype,"spinnerActive_",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],zX.prototype,"hasBeenTriggered_",void 0);
_.r([_.E({value:void 0}),_.h("design:type",String)],zX.prototype,"observeVisibleOption",void 0);_.r([_.E({value:void 0}),_.h("design:type",String)],zX.prototype,"observeHiddenOption",void 0);_.r([_.E({value:"observe_once"}),_.h("design:type",Object)],zX.prototype,"observePrescanOption",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zX.prototype,"observeData_",null);
_.r([_.wD("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zX.prototype,"showButtonChanged_",null);_.r([_.Em({is:"yt-next-continuation",disableElementRegistration:!0})],zX);
_.B(zX,"yt-next-continuation",function(){if(wF0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;qWi===void 0&&(qWi=document.createElement("template"));var R=qWi;I.call(c,R.content.cloneNode(!0),G.content.firstChild);wF0=G}G=wF0;return G},{mode:2});var FHK;var nIi;var EE=function(){return _.J.apply(this,arguments)||this};
_.u(EE,_.J);EE.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],EE.prototype,"data",void 0);_.r([_.Em({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],EE);
_.B(EE,"yt-music-pass-small-feature-info-renderer",function(){if(nIi===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;FHK===void 0&&(FHK=document.createElement("template"));var R=FHK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);nIi=G}G=nIi;return G},{mode:2});_.Su("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Jf=function(){var G=_.J.apply(this,arguments)||this;G.isCollapsible=!1;G.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return G};
_.u(Jf,_.J);_.P=Jf.prototype;_.P.computeIsCollapsible=function(G){return!!(((G==null?0:G.showMoreText)||(G==null?0:G.visibleRowCount))&&(G==null?0:G.isCollapsible))};
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.P.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.P.onIronResize=function(){var G=this;_.tc(this,"updateGridInitItems",function(){G.maybeUpdateInitialItemsDisplayed()})};
_.P.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var G=this.getVisibleWidth();G!==0&&(G=Math.floor(G/214)*(this.data.visibleRowCount||2),G!==this.initialCount&&(this.initialCount=G,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.P.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.P.computeExpandVisible=function(G,c,I,R){return G&&c&&I&&!!R&&!!R.showMoreText};
_.P.computeShowMoreButton=function(G){return{text:G,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.P.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.P.initCollapsed=function(){var G=this;this.ytLazyListBehavior.canShowMore=!1;var c;(this.collapsed=!((c=this.data)==null||!c.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.O$(this,function(){_.gq(G.hostElement,"yt-refit-popups-action")})};
_.P.fillRestIfNotCollapsible=function(){var G=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!G||this.ytLazyListBehavior.fillRemainingListItems()};
_.P.computeViewAllHidden=function(G,c){return G||!c.viewAllEndpoint};
Jf.prototype.fillRestIfNotCollapsible=Jf.prototype.fillRestIfNotCollapsible;Jf.prototype.initCollapsed=Jf.prototype.initCollapsed;Jf.prototype.onIronResize=Jf.prototype.onIronResize;Jf.prototype.persistentGuideChanged=Jf.prototype.persistentGuideChanged;_.r([_.L(_.Zu),_.h("design:type",Object)],Jf.prototype,"ironResizableBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],Jf.prototype,"ytLazyListBehavior",void 0);_.r([_.L(_.Vn.YtNextContinuationBehavior),_.h("design:type",Object)],Jf.prototype,"ytNextContinuationBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Jf.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.L(_.MZ),_.h("design:type",Object)],Jf.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Jf.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],Jf.prototype,"collapsed",void 0);_.r([_.E(),_.h("design:type",Number)],Jf.prototype,"initialCount",void 0);_.r([_.E({computed:"computeShowMoreButton(data.showMoreText)"}),_.h("design:type",Object)],Jf.prototype,"showMoreButton",void 0);
_.r([_.E({computed:"computeIsCollapsible(data)"}),_.h("design:type",Object)],Jf.prototype,"isCollapsible",void 0);_.r([_.nH("#items"),_.h("design:type",HTMLElement)],Jf.prototype,"items",void 0);_.r([_.uO("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jf.prototype,"persistentGuideChanged",null);_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jf.prototype,"onIronResize",null);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jf.prototype,"initCollapsed",null);_.r([_.uO("canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jf.prototype,"fillRestIfNotCollapsible",null);_.r([_.Jc({is:"ytd-grid-renderer",disableElementRegistration:!0})],Jf);
_.B(Jf,"ytd-grid-renderer",function(){if(QZT!==void 0)return QZT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return QZT=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var Wt=function(){return _.J.apply(this,arguments)||this};
_.u(Wt,_.J);
Wt.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"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Wt.prototype,"data",void 0);_.r([_.Jc({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Wt);
_.B(Wt,"ytd-carousel-ad-renderer",function(){if(IzV!==void 0)return IzV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return IzV=G},{mode:1});var vIV;var ik=function(){return _.J.apply(this,arguments)||this};
_.u(ik,_.J);_.P=ik.prototype;_.P.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,ik.JSC$15675_CLICK_LOCATION_ID_MAP))};
_.P.onSitelinkTap=function(G){G.stopPropagation();var c,I,R=G==null?void 0:(c=G.model)==null?void 0:(I=c.item)==null?void 0:I.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,G,!1)};
_.P.onTap=function(G){var c=this.data&&this.data.content&&this.data.content.navigationEndpoint;c&&this.ytSparklesClickLocationBehavior.handleClick(c,G,!1)};
_.P.sendImpression=function(){if(this.data&&this.data.content)for(var G=_.Q(this.data.content.impressionEndpoints||[]),c=G.next();!c.done;c=G.next()){c=_.Q(c.value.loggingUrls||[]);for(var I=c.next();!I.done;I=c.next())I=I.value,I.baseUrl&&Z6(I.baseUrl,I.attributionSrcMode)}};
ik.prototype.onTap=ik.prototype.onTap;ik.prototype.dataChanged=ik.prototype.dataChanged;ik.JSC$15675_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"]]);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],ik.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ik.prototype,"data",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ik.prototype,"dataChanged",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ik.prototype,"onTap",null);_.r([_.Jc({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],ik);
_.B(ik,"ytd-promoted-sparkles-text-search-renderer",function(){if(vIV!==void 0)return vIV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return vIV=G},{mode:1});var DsB;var f0=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.u(f0,_.J);_.P=f0.prototype;_.P.created=function(){this.activeView=new rQ(this.hostElement)};
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.v("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.P.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.P.computeHasAdBadge=function(G){return!(G==null||!G.adBadge)};
_.P.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",f0.JSC$15684_DEFAULT_AD_BADGE_RENDERER),_.as(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&jH(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,f0.JSC$15684_CLICK_LOCATION_ID_MAP))};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var G;(((G=this.data)==null?void 0:G.impressionCommands)||[]).forEach(function(c){c=_.Q(c.loggingUrls||[]);for(var I=c.next();!I.done;I=c.next())I=I.value,I.baseUrl&&Z6(I.baseUrl,I.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.P.onTap=function(G){var c,I=(c=this.data)==null?void 0:c.navigationEndpoint,R;(c=(R=this.data)==null?void 0:R.thumbnailNavigationEndpoint)&&_.c8(_.CE(G),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(c,G,!1):I&&this.ytSparklesClickLocationBehavior.handleClick(I,G,!1)};
_.P.handleMuteAd=function(){this.collapsed=!0};
_.P.attached=function(){var G=this;_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xw(G.activeView)})};
_.P.detached=function(){_.v("stop_av_measurement_on_detach")&&xw(this.activeView)};
_.Nh.Object.defineProperties(f0.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var G;return!(((G=this.data)==null?void 0:G.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var G;return!(((G=this.data)==null?void 0:G.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
f0.prototype.dataChanged=f0.prototype.dataChanged;
f0.JSC$15684_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"]]);
f0.JSC$15684_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.mJ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],f0.prototype,"actionHandlerBehavior",void 0);
_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],f0.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],f0.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],f0.prototype,"collapsed",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],f0.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],f0.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.h("design:type",Boolean)],f0.prototype,"fixAlignmentSmallScreens",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs_square")}}),
_.h("design:type",Boolean)],f0.prototype,"useBiggerThumbsSquare",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.mediaHoverOverlay"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],f0.prototype,"hideHoverOverlay",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],f0.prototype,"webSearchLayout",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],f0.prototype,"webSearchLayoutLandscape",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],f0.prototype,"webSearchLayoutSquare",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],f0.prototype,"sparklesCtaNoBackground",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.actionButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],f0.prototype,"hideActionButton",null);_.r([_.E({computed:"computeButtonOverride(uiUpdate)"}),_.h("design:type",Object)],f0.prototype,"buttonOverride",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.h("design:type",Boolean)],f0.prototype,"hasNewAdBadge",void 0);_.r([_.A("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],f0.prototype,"useRoundedBadge",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],f0.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],f0);
_.B(f0,"ytd-promoted-sparkles-web-renderer",function(){if(DsB!==void 0)return DsB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return DsB=G},{mode:1});var oI2;var Bt=function(){var G=_.J.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.enableMonoStyle=_.v("enable_default_mono_cta_migration_web_client");return G};
_.u(Bt,_.J);_.P=Bt.prototype;_.P.created=function(){this.activeView=new rQ(this.hostElement)};
_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.P.computeShowCta=function(G){return!(G==null||!G.ctaRenderer)};
_.P.onCtaClick=function(){var G,c,I,R=(G=this.data)==null?void 0:(c=G.ctaRenderer)==null?void 0:(I=c.buttonRenderer)==null?void 0:I.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.P.onWatchButtonClick=function(){var G,c,I,R=(G=this.data)==null?void 0:(c=G.watchButtonRenderer)==null?void 0:(I=c.buttonRenderer)==null?void 0:I.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.P.onTap=function(){};
_.P.dataChanged=function(){if(this.data){var G;_.v("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Bt.JSC$15688_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&jH(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Bt.JSC$15688_DEFAULT_CLICK_LOCATION_BEHAVIOR,Bt.JSC$15688_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var c;if(((c=this.data)==null?0:c.forceImpAutoplay)&&_.v("enable_force_imp_autoplay_on_desktop_search")){var I;(I=this.JSC$15689_inlinePreviewHoverListener)==null||lyp(I)}}};
_.P.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var G=_.Q(this.data.impressionUrls),c=G.next();!c.done;c=G.next())c=c.value,gWA(c,GzB(c));this.data.impressionsFired=!0}};
_.P.maybeComputeHref=function(){return null};
_.P.computeIsShortDR=function(G){return!(G==null||!G.watchButtonRenderer)&&!(G==null||!G.ctaRenderer)&&!!this.enableShortDR};
_.P.computeIsNewUiOrShortDr=function(G){return!!this.enableUiUpdate||this.computeIsShortDR(G)};
_.P.computeIsNewUiAndNotShortDr=function(G){return!!this.enableUiUpdate&&!this.computeIsShortDR(G)};
_.P.computeHideAvatar=function(G){return!((G==null?0:G.channelThumbnail)&&this.computeIsNewUiOrShortDr(G))};
_.P.onClick=function(G){var c,I=(c=this.data)==null?void 0:c.navigationEndpoint;if(this.enableShortDR&&I&&(_.D(I,_.fR)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(I,G,!!_.D(I,_.fR)),G.stopPropagation();else if(I&&_.D(I,_.fR))this.ytSparklesClickLocationBehavior.handleClick(I,G,!0),G.stopPropagation();else if(I){var R,Z;((R=this.data)==null?0:R.navigationEndpoint)&&((Z=this.data)==null?0:Z.adPlaybackContextParams)&&(c=this.data.navigationEndpoint,G=this.data.adPlaybackContextParams,
c.commandMetadata&&_.D(c.commandMetadata,_.Pd)&&_.D(c.commandMetadata,_.Pd).url&&(c=_.QU(_.D(c.commandMetadata,_.Pd).url).adurl)&&_.cHO(c)&&_.x0(_.zO(c),{encoded_ad_playback_context:G}));this.ytComponentBehavior.resolveCommand(I)}};
_.P.computeButtonOverride=function(G){if(this.computeIsNewUiOrShortDr(G))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.P.onThumbnailContainerClick=function(G){this.onClick(G)};
_.P.computeThumbnailWidth=function(G,c){return G?c==="MASSIVE"?600:c==="BIG"?500:c==="MEDIUM"?450:420:360};
_.P.attached=function(){var G=this,c;_.v("enable_inline_muted_playback_on_web_search")&&((c=this.data)==null?0:c.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xw(G.activeView)})};
_.P.detached=function(){var G;_.v("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.v("stop_av_measurement_on_detach")&&xw(this.activeView)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15689_inlinePreviewHoverListener=rP({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:Vq9})};
_.P.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15689_inlinePreviewHoverListener)==null||Rw(G)};
Bt.prototype.dataChanged=Bt.prototype.dataChanged;Bt.prototype.onTap=Bt.prototype.onTap;Bt.JSC$15688_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.mJ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Bt.JSC$15688_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Bt.JSC$15688_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"}];_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Bt.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],Bt.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.nH("#main-container"),_.h("design:type",HTMLElement)],Bt.prototype,"mainContainer",void 0);
_.r([_.E(),_.h("design:type",Object)],Bt.prototype,"isInlinePreviewTriggered",void 0);_.r([_.E(),_.h("design:type",Object)],Bt.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],Bt.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_video_display_compact_button_group_for_desktop_search")}}),
_.h("design:type",Boolean)],Bt.prototype,"enableShortDR",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_vac_ui_update_for_desktop_search")}}),
_.h("design:type",Boolean)],Bt.prototype,"enableUiUpdate",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],Bt.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.h("design:type",Boolean)],Bt.prototype,"showCta",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.h("design:type",Boolean)],Bt.prototype,"isShortDr",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.h("design:type",Boolean)],Bt.prototype,"isShortDrOrNewUi",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.h("design:type",Boolean)],Bt.prototype,"isNewUiAndNotShortDr",void 0);_.r([_.E({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],Bt.prototype,"buttonOverride",void 0);_.r([_.E({computed:"computeSecondaryButtonOverride(data)"}),_.h("design:type",Object)],Bt.prototype,"secondaryButtonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Bt.prototype,"enableMonoStyle",void 0);
_.r([_.nH("ytd-thumbnail"),_.h("design:type",HTMLElement)],Bt.prototype,"thumbnail",void 0);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bt.prototype,"onTap",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bt.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Bt);
_.B(Bt,"ytd-promoted-video-renderer",function(){if(oI2!==void 0)return oI2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return oI2=G},{mode:1});var UsA;var rX=function(){var G=_.J.apply(this,arguments)||this;G.useRoundedBadge=!0;G.sitelinkIds=[];return G};
_.u(rX,_.J);_.P=rX.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.v("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.P.dataChanged=function(){var G;(G=this.data)!=null&&G.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,rX.JSC$15694_CLICK_LOCATION_ID_MAP)};
_.P.onTap=function(G){var c,I=(c=this.data)==null?void 0:c.navigationCommand;I&&!_.c8(_.CE(G),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(I,G,!1)};
_.P.onSitelinkTap=function(G){var c,I,R=G==null?void 0:(c=G.model)==null?void 0:(I=c.item)==null?void 0:I.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,G,!1)};
_.P.configureSitelinkClickTargets=function(){var G=this,c,I,R=(c=this.data)==null?void 0:(I=c.clickLocationTargets)==null?void 0:I.find(function(Z){return Z.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
R&&_.Q1(this.hostElement).querySelectorAll(".sitelink").forEach(function(Z){_.as(Z,"yt-simple-endpoint",!0);G.sitelinkIds.push(Z.id);var K,m;(K=G.ytSparklesClickLocationBehavior)==null||(m=K.clickTargetMap)==null||m.set(Z.id,R)})};
_.P.sendImpression=function(){var G,c,I=((G=this.data)==null?void 0:(c=G.impressionCommand)==null?void 0:c.loggingUrls)||[];G=_.Q(I);for(c=G.next();!c.done;c=G.next())c=c.value,c.baseUrl&&Z6(c.baseUrl,c.attributionSrcMode)};
_.P.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Nh.Object.defineProperties(rX.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
rX.prototype.onTap=rX.prototype.onTap;rX.prototype.dataChanged=rX.prototype.dataChanged;rX.JSC$15694_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"]]);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],rX.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rX.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rX.prototype,"showFavicon",null);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],rX.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],rX.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.h("design:type",Boolean)],rX.prototype,"enableThumbnailScalingFix",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rX.prototype,"dataChanged",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],rX.prototype,"onTap",null);_.r([_.Jc({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],rX);
_.B(rX,"ytd-text-image-no-button-layout-renderer",function(){if(UsA!==void 0)return UsA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return UsA=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var u20;var jS=function(){var G=_.J.apply(this,arguments)||this;G.isInlinePlaybackState=!1;G.uiUpdate=_.v("web_modern_buttons");G.hideCta=_.v("hide_cta_for_home_web_video_ads");G.noBottomMargin=!1;G.animateInTimeStamp=_.DH("hide_cta_for_home_web_video_ads_animate_in_time");G.animateInCta=!1;G.isHovered=!1;G.enableMonoStyle=_.v("enable_default_mono_cta_migration_web_client");G.player=null;G.JSC$15701_playerEvents=new Map;G.JSC$15701_preventProgressSaveTimer=null;G.delayedCtaJobId=null;return G};
_.u(jS,_.J);_.P=jS.prototype;_.P.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.P.attached=function(){this.JSC$15701_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15701_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.v("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.P.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15701_playerEvents)};
_.P.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",jS.JSC$15700_DEFAULT_CLICK_LOCATION_BEHAVIOR,jS.JSC$15700_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.P.hoverChanged=function(){var G=this;this.delayedCtaJobId&&(_.dJ.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.v("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.SR(_.dJ,function(){G.buttonContainer.classList.add("show-delayed-buttons")},_.DH("delayed_cta_on_web_delay_milliseconds")))};
_.P.setPlayer=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return(c=_.gq(G.hostElement,"yt-get-inline-preview-player-action"))&&c[0]?I.yield(c[0].getPlayerPromise(),3):I.jumpTo(0);G.player=I.yieldResult;G.ytPlayerListenerBehavior.listenToPlayerEvents(G.player,G.JSC$15701_playerEvents);_.Vp(I)})};
_.P.onPlaybackStart=function(){var G=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15701_preventProgressSaveTimer=_.mq(_.dJ,function(){G.JSC$15701_preventProgressSaveTimer=null},1E4))};
_.P.onVideoProgress=function(G){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&G>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.P.resetPreventProgressSaveTimer=function(){_.dJ.cancelJob(this.JSC$15701_preventProgressSaveTimer);this.JSC$15701_preventProgressSaveTimer=null};
_.P.getSimpleString=function(G){return _.HY(G)};
_.P.onClick=function(G){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var c,I=(c=this.data)==null?void 0:c.navigationEndpoint,R;c=(R=this.data)==null?void 0:R.channelEndpoint;var Z,K;((K=_.D((Z=this.data)==null?void 0:Z.adCtaButton,_.vE))==null?0:K.command)&&_.c8(_.CE(G),this.hostElement,["call-to-action"])||(c&&_.c8(_.CE(G),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(c,G,!1):!_.c8(_.CE(G),this.hostElement,
["secondary-button"])&&I&&(_.v("enable_short_dr_for_desktop_launchable")?(R=!!_.D(I,_.fR),this.isInlinePlaybackState&&R&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,G,R)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,G,!0))))}};
_.P.updateWatchEndpointStartTime=function(){var G,c;this.player&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&((c=this.data)==null?0:c.navigationEndpoint)&&!this.JSC$15701_preventProgressSaveTimer&&(G=Math.floor(this.player.getCurrentTime()),_.D(this.data.navigationEndpoint,_.fR).startTimeSeconds=G,_.D(this.data.inlinePlaybackEndpoint,_.fR).startTimeSeconds=G)};
_.P.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Nh.Object.defineProperties(jS.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.v("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.watchButton)&&!((c=this.data)==null||!c.adCtaButton)}}});
jS.prototype.hoverChanged=jS.prototype.hoverChanged;jS.prototype.dataChanged=jS.prototype.dataChanged;
jS.JSC$15700_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"]]);
jS.JSC$15700_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"}];
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],jS.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],jS.prototype,"ytSparklesClickLocationBehavior",void 0);
_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],jS.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jS.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jS.prototype,"isInlinePlaybackState",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],jS.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jS.prototype,"uiUpdate",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jS.prototype,"hideCta",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jS.prototype,"noBottomMargin",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jS.prototype,"animateInCta",void 0);_.r([_.E({computed:"computeButtonOverride(uiUpdate)"}),_.h("design:type",Object)],jS.prototype,"buttonOverride",void 0);
_.r([_.E({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.h("design:type",Object)],jS.prototype,"secondaryButtonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jS.prototype,"isHovered",void 0);_.r([_.nH("#button-container"),_.h("design:type",HTMLElement)],jS.prototype,"buttonContainer",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],jS.prototype,"typographyBump",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("typographyBump"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],jS.prototype,"typographyBumpV2",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jS.prototype,"enableMonoStyle",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jS.prototype,"dataChanged",null);
_.r([_.wD("isHovered"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jS.prototype,"hoverChanged",null);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],jS.prototype,"isButtonGroup",null);_.r([_.Jc({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],jS);
_.B(jS,"ytd-ad-inline-playback-meta-block",function(){if(u20!==void 0)return u20;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return u20=G},{mode:_.Qc("kevlar_poly_si_batch_j065")?1:2});var bnK;var xv=function(){var G=_.J.apply(this,arguments)||this;G.noBottomMargin=!1;G.isInlinePreviewTriggered=!1;G.JSC$15706_activeViewMeasurementDataResolver=_.HU();return G};
_.u(xv,_.J);_.P=xv.prototype;_.P.created=function(){this.activeView=new rQ(this.hostElement)};
_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15706_activeViewMeasurementDataResolver.promise.then(function(c){jH(G.activeView,c)});
_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xw(G.activeView)})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners();_.v("stop_av_measurement_on_detach")&&xw(this.activeView)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15706_inlinePreviewHoverListener=rP({mediaRenderer:this,lockupElement:this.JSC$15706_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Vq9})};
_.P.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15706_inlinePreviewHoverListener)==null||Rw(G)};
_.P.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15706_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",xv.JSC$15705_DEFAULT_CLICK_LOCATION_BEHAVIOR,xv.JSC$15705_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var c;if((c=this.data)==
null?0:c.forceImpAutoplay){var I;(I=this.JSC$15706_inlinePreviewHoverListener)==null||lyp(I)}};
_.P.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.P.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var c,I=(c=this.data)==null?void 0:c.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,G,!!_.D(I,_.fR));G.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var c,I,R=(I=_.D((c=this.data)==null?void 0:c.onImpression,_.RP))==null?void 0:I.commands;R&&(R.forEach(function(Z){Z.clickTrackingParams&&delete Z.clickTrackingParams;G.ytComponentBehavior.resolveCommand(Z)}),this.data.impressionsFired=!0)}};
_.Nh.Object.defineProperties(xv.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15706_inlinePreviewHoverListener)==null?0:D1(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
xv.prototype.onTypographyBumpChanged=xv.prototype.onTypographyBumpChanged;xv.prototype.onDataChanged=xv.prototype.onDataChanged;xv.JSC$15705_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);xv.JSC$15705_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"}];
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],xv.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],xv.prototype,"ytdLockupBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],xv.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],xv.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xv.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],xv.prototype,"noBottomMargin",void 0);_.r([_.E(),_.h("design:type",Object)],xv.prototype,"isInlinePreviewTriggered",void 0);
_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],xv.prototype,"miniMode",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],xv.prototype,"typographyBump",void 0);_.r([_.nH("ytd-thumbnail"),_.h("design:type",HTMLElement)],xv.prototype,"thumbnail",void 0);_.r([_.nH("#dismissible"),_.h("design:type",HTMLElement)],xv.prototype,"JSC$15706_dismissibleMedia",void 0);
_.r([_.nH("ytd-ad-inline-playback-meta-block"),_.h("design:type",HTMLElement)],xv.prototype,"adInlinePlaybackMetaBlock",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xv.prototype,"onDataChanged",null);_.r([_.uO("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xv.prototype,"onTypographyBumpChanged",null);
_.r([_.A("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xv.prototype,"isHovered",null);_.r([_.Jc({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],xv);
_.B(xv,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(bnK!==void 0)return bnK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return bnK=G},{mode:1});var k4K;var tf=function(){var G=_.J.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.JSC$15709_activeViewMeasurementDataResolver=_.HU();return G};
_.u(tf,_.J);_.P=tf.prototype;_.P.created=function(){this.activeView=new rQ(this.hostElement)};
_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15709_activeViewMeasurementDataResolver.promise.then(function(c){jH(G.activeView,c)})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15709_inlinePreviewHoverListener=rP({mediaRenderer:this,lockupElement:this.JSC$15709_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Vq9})};
_.P.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15709_inlinePreviewHoverListener)==null||Rw(G)};
_.P.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15709_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",tf.JSC$15708_DEFAULT_CLICK_LOCATION_BEHAVIOR,tf.JSC$15708_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))};
_.P.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var c,I=(c=this.data)==null?void 0:c.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,G,!0);G.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var c,I,R=(I=_.D((c=this.data)==null?void 0:c.onImpression,_.RP))==null?void 0:I.commands;R&&(R.forEach(function(Z){Z.clickTrackingParams&&delete Z.clickTrackingParams;_.wH().resolve(_.n4).resolveCommand(Z,{form:{element:G.hostElement}})}),this.data.impressionsFired=!0)}};
_.Nh.Object.defineProperties(tf.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15709_inlinePreviewHoverListener)==null?0:D1(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tf.prototype.onDataChanged=tf.prototype.onDataChanged;tf.JSC$15708_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);tf.JSC$15708_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"}];_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],tf.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],tf.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],tf.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],tf.prototype,"ytSparklesClickLocationBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],tf.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],tf.prototype,"isInlinePreviewTriggered",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],tf.prototype,"miniMode",void 0);_.r([_.nH("ytd-thumbnail"),_.h("design:type",HTMLElement)],tf.prototype,"thumbnail",void 0);_.r([_.nH("#dismissible"),_.h("design:type",HTMLElement)],tf.prototype,"JSC$15709_dismissibleMedia",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tf.prototype,"onDataChanged",null);_.r([_.A("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tf.prototype,"isHovered",null);_.r([_.Jc({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],tf);
_.B(tf,"ytd-video-display-full-buttoned-renderer",function(){if(k4K!==void 0)return k4K;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return k4K=G},{mode:1});var Ks=function(G,c,I,R){R=R===void 0?!1:R;_.G8.call(this,G);this.adsClientErrorMessage=I;this.aggressivelySample=R;this.args=[];c&&this.args.push(c)};
_.u(Ks,_.G8);var Rl=function(G,c,I,R){R=R===void 0?!1:R;_.G8.call(this,G);this.adsClientErrorMessage=I;this.aggressivelySample=R;this.args=[];c&&this.args.push(c)};
_.u(Rl,_.G8);var sZ2=function(G){_.JK.call(this);var c=this;this.initializationFunction=G;this.instance=null;this.addOnDisposeCallback(function(){_.TB(c.instance);c.instance=null})};
_.u(sZ2,_.JK);sZ2.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.H8("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var V3O=function(){var G=new Map;[].forEach(function(c){G.set(c.JSC$31246_getType(),c)});
this.getters=G};new Promise(function(){});var AoA=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"]]),sCB=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"}]]),LHe=function(G){this.experimentApiProvider=G;G=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=G<.1};var hf=function(G,c,I,R){_.JK.call(this);this.adsControlFlowEventListeners=c;this.adEventLogger=I;this.experimentApiProvider=R;this.adsControlFlowManagerHelper=G(this,this,this,this,this);_.k9(this,this.adsControlFlowManagerHelper);G=_.Q(c);for(c=G.next();!c.done;c=G.next())_.k9(this,c.value)};
_.u(hf,_.JK);var A3B=function(G,c,I,R){dX(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",c,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R);G=_.Q(G.adsControlFlowEventListeners);for(R=G.next();!R.done;R=G.next())A3B(R.value,c,I)};
_.P=hf.prototype;_.P.onOpportunityProcessedExternallyManaged=function(G,c,I,R){dX(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",G,I,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R)};
_.P.onSlotReceivedExternallyManaged=function(G,c){C0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",G,c)};
_.P.onSlotEntered=function(G){if(Ht(this.adsControlFlowManagerHelper,G)!=null){C0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",G);this.adsControlFlowManagerHelper.onSlotEntered(G);for(var c=_.Q(this.adsControlFlowEventListeners),I=c.next();!I.done;I=c.next())I.value.onSlotEntered(G);if(Ht(this.adsControlFlowManagerHelper,G)!=null&&Ht(this.adsControlFlowManagerHelper,G).isOccupyingSlotType()&&X_(this.adsControlFlowManagerHelper,G)&&!$s0(this.adsControlFlowManagerHelper,G)){var R;yn(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",G,(R=X_(this.adsControlFlowManagerHelper,G))!=null?R:void 0);G=Ht(this.adsControlFlowManagerHelper,G);G.slotLifecycleStage!=="entered"&&gX(G.slot,G.slotLifecycleStage,"enterLayoutForSlot");G.slotLifecycleStage="rendering";G.registeredLayoutRenderingAdapter.startRendering(G.layout)}}};
_.P.onSlotExited=function(G){if(Ht(this.adsControlFlowManagerHelper,G)!=null){C0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",G);this.adsControlFlowManagerHelper.onSlotExited(G);for(var c=_.Q(this.adsControlFlowEventListeners),I=c.next();!I.done;I=c.next())I.value.onSlotExited(G);Ht(this.adsControlFlowManagerHelper,G)!=null&&Ht(this.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests&&SWT(this,G)}};
_.P.onLayoutReceivedExternallyManaged=function(G,c,I){G.managerLayer!=="core"&&yn(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",G,c,I)};
var pFe=function(G,c,I){if(Ht(G.adsControlFlowManagerHelper,c)!=null){yn(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",c,I);G=_.Q(G.adsControlFlowEventListeners);for(var R=G.next();!R.done;R=G.next())pFe(R.value,c,I)}};
hf.prototype.onLayoutExited=function(G,c,I){if(Ht(this.adsControlFlowManagerHelper,G)!=null){yn(this.adEventLogger,LmC(I),G,c);this.adsControlFlowManagerHelper.onLayoutExited(G,c);for(var R=_.Q(this.adsControlFlowEventListeners),Z=R.next();!Z.done;Z=R.next())Z.value.onLayoutExited(G,c,I);(I=X_(this.adsControlFlowManagerHelper,G))&&c.layoutId===I.layoutId&&Mm0(this,G)}};
hf.prototype.disposeInternal=function(){var G=VmN(this.adsControlFlowManagerHelper);G=_.Q(G);for(var c=G.next();!c.done;c=G.next())SWT(this,c.value);_.JK.prototype.disposeInternal.call(this)};
var SWT=function(G,c){if(Ht(G.adsControlFlowManagerHelper,c)!=null)if(Ht(G.adsControlFlowManagerHelper,c).JSC$31276_isSlotExitRequested()||Ht(G.adsControlFlowManagerHelper,c).JSC$31276_isLayoutExitRequested())Ht(G.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Ht(G.adsControlFlowManagerHelper,c).isOccupyingSlotType())Ht(G.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests=!0,Mm0(G,c);else if(Ht(G.adsControlFlowManagerHelper,c).JSC$31276_isSlotFillRequested())Ht(G.adsControlFlowManagerHelper,
c).markedForUnscheduleAfterOutboundAdapterRequests=!0,Ht(G.adsControlFlowManagerHelper,c)!=null&&(C0(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",c),c=Ht(G.adsControlFlowManagerHelper,c),c.fulfillmentLifecycleStage="fill_cancel_requested",c.registeredFulfillmentAdapter.cancelSlotFilling());else{var I=X_(G.adsControlFlowManagerHelper,c),R;G.experimentApiProvider.get();(R=_.v("h5_enable_layout_unscheduling_events"))&&(I?zAK(G,c,I):_.H8(Error("Lh"),c,I,void 0,!1));C0(G.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",c);var Z=Ht(G.adsControlFlowManagerHelper,c),K=c.slotEntryTrigger,m=Z.registeredSlotEntryTriggerAdapters.get(K.triggerId);m&&(m.unregisterTrigger(K),Z.registeredSlotEntryTriggerAdapters.delete(K.triggerId));K=_.Q(c.slotFulfillmentTriggers);for(m=K.next();!m.done;m=K.next()){m=m.value;var a=Z.registeredFulfillmentTriggerAdapters.get(m.triggerId);a&&(a.unregisterTrigger(m),Z.registeredFulfillmentTriggerAdapters.delete(m.triggerId))}K=_.Q(c.slotExpirationTriggers);
for(m=K.next();!m.done;m=K.next())if(m=m.value,a=Z.registeredExpirationTriggerAdapters.get(m.triggerId))a.unregisterTrigger(m),Z.registeredExpirationTriggerAdapters.delete(m.triggerId);Z.hasLayout()&&(K=Z.layout,Yv(Z,K.layoutExitNormalTriggers),Yv(Z,K.layoutExitSkipTriggers),Yv(Z,K.layoutExitMuteTriggers),Yv(Z,K.layoutExitUserInputSubmittedTriggers),Yv(Z,K.layoutExitUserCancelledTriggers));Z.registeredFulfillmentAdapter=void 0;Z.registeredSlotAdapter!=null&&(Z.registeredSlotAdapter.release(),Z.registeredSlotAdapter=
void 0);Z.registeredLayoutRenderingAdapter!=null&&(Z.registeredLayoutRenderingAdapter.release(),Z.registeredLayoutRenderingAdapter=void 0);Z=G.adsControlFlowManagerHelper;Ht(Z,c)&&(Z=EIK(Z,c.slotType+"_"+c.slotPhysicalPosition))&&Z.delete(c.slotId);C0(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",c);G=_.Q(G.adsControlFlowEventListeners);for(Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z.onSlotUnscheduled(c),I&&!R&&zAK(Z,c,I)}},zAK=function(G,c,I){yn(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
c,I);
yn(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",c,I);G=_.Q(G.adsControlFlowEventListeners);for(var R=G.next();!R.done;R=G.next())R=R.value,I&&zAK(R,c,I)},Mm0=function(G,c){if(Ht(G.adsControlFlowManagerHelper,c)!=null&&Ht(G.adsControlFlowManagerHelper,c).isOccupyingSlotType()){var I=X_(G.adsControlFlowManagerHelper,c);
if(I&&$s0(G.adsControlFlowManagerHelper,c)){if(Ht(G.adsControlFlowManagerHelper,c)!=null){var R=G.adEventLogger,Z;var K=((Z=sCB.get("abandoned"))==null?void 0:Z.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";yn(R,K,c,I);G=Ht(G.adsControlFlowManagerHelper,c);G.slotLifecycleStage!=="rendering"&&gX(G.slot,G.slotLifecycleStage,"exitLayout");G.slotLifecycleStage="rendering_stop_requested";G.registeredLayoutRenderingAdapter.stopRendering(I,"abandoned")}}else{C0(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
c);try{R=Ht(G.adsControlFlowManagerHelper,c);if(!R)throw new Rl("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");R.slotLifecycleStage!=="enter_requested"&&R.slotLifecycleStage!=="entered"&&R.slotLifecycleStage!=="rendering"&&gX(R.slot,R.slotLifecycleStage,"exitSlot");R.slotLifecycleStage="exit_requested";if(R.registeredSlotAdapter===void 0)throw R.slotLifecycleStage="scheduled",new Rl("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
R.registeredSlotAdapter.exit()}catch(m){m instanceof Rl&&m.adsClientErrorMessage?(J3e(G.adEventLogger,m.adsClientErrorMessage,c),_.H8(m,c,void 0,void 0,m.aggressivelySample)):(J3e(G.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),_.H8(m,c))}}}};var GU=function(G,c,I,R,Z,K){_.JK.call(this);this.registry=G;this.experimentApiProvider=K;this.slotMap=new Map};
_.u(GU,_.JK);var EIK=function(G,c){return(G=G.slotMap.get(c))?G:new Map},Ht=function(G,c){return EIK(G,c.slotType+"_"+c.slotPhysicalPosition).get(c.slotId)},VmN=function(G){var c=[];
G.slotMap.forEach(function(I){I=_.Q(I.values());for(var R=I.next();!R.done;R=I.next())c.push(R.value.slot)});
return c};
GU.prototype.onSlotEntered=function(G){G=Ht(this,G);G.slotLifecycleStage!=="enter_requested"&&gX(G.slot,G.slotLifecycleStage,"onSlotEntered");G.slotLifecycleStage="entered"};
var $s0=function(G,c){G=Ht(G,c);return G.hasLayout()&&G.isRendering()},X_=function(G,c){(G=Ht(G,c))?G.hasLayout()&&!G.layout&&_.H8("Unexpected empty layout",c):_.H8("Unexpected undefined slotState",c);
return(G==null?void 0:G.layout)||null};
GU.prototype.onSlotExited=function(G){G=Ht(this,G);G.slotLifecycleStage!=="exit_requested"&&gX(G.slot,G.slotLifecycleStage,"onSlotExited");G.slotLifecycleStage="scheduled"};
GU.prototype.onLayoutExited=function(G,c){G=Ht(this,G);G.isPrimaryLayout(c)&&(G.slotLifecycleStage!=="rendering_stop_requested"&&gX(G.slot,G.slotLifecycleStage,"onLayoutExited"),G.slotLifecycleStage="entered")};
var Yv=function(G,c){c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;var R=G.registeredLayoutExitTriggerAdapters.get(I.triggerId);R&&(R.unregisterTrigger(I),G.registeredLayoutExitTriggerAdapters.delete(I.triggerId))}},gX=function(G,c,I){_.H8("Slot stage was "+c+" when calling method "+I,G)};var inK=function(G){_.JK.call(this);this.deps=G;this.JSC$15762_adsControlFlowManager=WHA(this)};
_.u(inK,_.JK);var WHA=function(G){var c=new hf(function(I,R,Z,K){return new GU(G.deps.registry,I,R,Z,K,G.deps.experimentApiProvider)},new Set(M3T(G.deps.registry).concat(G.deps.listeners)),G.deps.adEventLogger,G.deps.experimentApiProvider);
_.k9(G,c);return c};var P80=function(){};var fz0=function(G,c){_.JK.call(this);this.experimentApiProvider=G;this.eventLoggingSettingsProvider=c;this.eventCount=0;this.premiumAdSeenEventLogger=QPg()()};
_.u(fz0,_.JK);fz0.prototype.logEvent=function(G){dX(this,G)};
var C0=function(G,c,I,R){dX(G,c,void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,void 0,R)},yn=function(G,c,I,R,Z){dX(G,c,void 0,void 0,void 0,I,R?R:void 0,void 0,void 0,I.adSlotLoggingData,R?R.adLayoutLoggingData:void 0,void 0,Z);
I=_.wH().resolve(_.qR(iB))==null?void 0:fk();c=I==null?void 0:I.adsSeenHotConfig;I=I==null?void 0:I.adsHotConfig;(c==null?0:c.logOnAdsSeen)&&(I==null?0:I.webEnablePremiumAdsSeenLogging)&&BM0(G,R?R:void 0,Z)},J3e=function(G,c,I){dX(G,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:c})},dX=function(G,c,I,R,Z,K,m,a,O,N,q,w,F){F=F===void 0?0:F;
r30(G.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+c,"slot:",K,"layout:",m,"ping:",a,"Opportunity:",{opportunityType:I,associatedSlotId:R,slotsFromOpportunity:Z,triggerBundle:O,adSlotLoggingData:N,adLayoutLoggingData:q});try{var n=function(){G.experimentApiProvider.get();if(c!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){c||_.H8("Empty PACF event type",K,m);var U=G.eventLoggingSettingsProvider.get();var k;(k=U.alwaysIncludeDebugData)||(U.experimentApiProvider.get(),k=
!1);U=k;k={eventType:c,eventOrder:++G.eventCount};var p={};K&&(p.slotData=SiB(U,K));if(m){var M={type:m.layoutType,controlFlowManagerLayer:AoA.get(m.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};U&&(M.debugData={layoutId:m.layoutId});p.layoutData=M}a&&(p.pingData={pingDispatchStatus:a.dispatchStatus,serializedAdPingMetadata:a.ping.serializedAdPingMetadata,pingIndex:a.index});O&&(p.triggerData=$Lq(O.trigger,O.category));I&&(p.opportunityData=p50(U,I,R,Z));k.adClientData=p;N&&(k.serializedSlotAdServingData=
N.serializedSlotAdServingDataEntry);q&&(k.serializedAdServingData=q.serializedAdServingDataEntry);w&&(k.errorInfo=w);_.x7("adsClientStateChange",{adsClientEvent:k})}};
F&&F>0?_.W_(_.E_(),function(){return n()},F):n()}catch(U){r30(G.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.W_(_.E_(),function(){_.H8(U instanceof Error?U:String(U),K,m,{pacf_message:"exception during pacf logging"})})}},BM0=function(G,c,I){if(c){var R=c.adLayoutLoggingData;
_.W_(_.E_(),function(){G.premiumAdSeenEventLogger!=null&&R&&_.x7("adsSeenClientLogging",{serializedAdServingDataEntry:R.serializedAdServingDataEntry})},I!=null?I:0)}};var jZB=function(G,c){fz0.call(this,G,c)};
_.u(jZB,fz0);var xsT=function(){},r30=function(G,c){return _.v(c)};var hAk=function(){var G=new tm9;this.JSC$15787_adsControlFlowManager=(new inK(G)).JSC$15762_adsControlFlowManager},tm9=function(){_.JK.call(this);
var G=this;this.experimentApiProvider=new sZ2(function(){return new xsT});
var c=new sZ2(function(){return new LHe(G.experimentApiProvider)});
this.adEventLogger=new jZB(this.experimentApiProvider,c);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.u(tm9,_.JK);var dsB=function(){},Cp9,cW=function(){Cp9||(Cp9=new dsB);
return Cp9},I7=function(G){if(!G.JSC$15798_externallyManagedSlotAdapterCallback){var c=(new hAk).JSC$15787_adsControlFlowManager;
G.JSC$15798_externallyManagedSlotAdapterCallback=c}return G.JSC$15798_externallyManagedSlotAdapterCallback},Hne=function(G,c,I){var R=c.opportunityType,Z=Error("Mh");
if(R!==void 0){var K=I7(G);A3B(K,R,void 0,I)}else _.H8(Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});K=[];if(c.adSlotAndLayoutMetadata!==void 0){c=_.Q(c.adSlotAndLayoutMetadata);for(var m=c.next();!m.done;m=c.next()){var a=m.value;if(m=a.adSlotMetadata)if(K.push(m),G.onSlotReceivedExternallyManaged(m,I),a.adLayoutMetadata){a=_.Q(a.adLayoutMetadata);for(var O=a.next();!O.done;O=a.next())G.onLayoutReceivedExternallyManaged(m,O.value,I)}else I>0&&_.H8("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else I>0&&_.H8("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else I>0&&_.H8("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(R!==void 0)G.onOpportunityProcessedExternallyManaged(R,K,void 0,I);else _.H8(Z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
dsB.prototype.onSlotReceivedExternallyManaged=function(G,c){G=Z2(G);if(G instanceof Rl)_.H8(G,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else I7(this).onSlotReceivedExternallyManaged(G,c)};
dsB.prototype.onLayoutReceivedExternallyManaged=function(G,c,I){G=Z2(G);c=z60(c);if(G instanceof Rl)_.H8(G,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(c instanceof Ks)_.H8(c,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else I7(this).onLayoutReceivedExternallyManaged(G,c,I)};
dsB.prototype.onOpportunityProcessedExternallyManaged=function(G,c,I,R){var Z=[];c=_.Q(c);for(var K=c.next();!K.done;K=c.next())K=Z2(K.value),K instanceof Rl?_.H8(K,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Z.push(K);I7(this).onOpportunityProcessedExternallyManaged(G,Z,I,R)};
var XFN=function(G,c){c=Z2(c);if(c instanceof Rl)_.H8(c,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var I=I7(G);C0(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);I=_.Q(I.adsControlFlowEventListeners);for(var R=I.next();!R.done;R=I.next())R=Ht(R.value,c),R.slotLifecycleStage!=="not_scheduled"&&gX(R.slot,R.slotLifecycleStage,"onSlotScheduled"),R.slotLifecycleStage="scheduled";G=I7(G);C0(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",c);G=_.Q(G.adsControlFlowEventListeners);
for(I=G.next();!I.done;I=G.next())I.value.onSlotEntered(c)}},y3e=function(G,c){c=Z2(c);
if(c instanceof Rl)_.H8(c,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var I=I7(G);C0(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",c);I=_.Q(I.adsControlFlowEventListeners);for(var R=I.next();!R.done;R=I.next())R.value.onSlotExited(c);G=I7(G);C0(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",c);G=_.Q(G.adsControlFlowEventListeners);for(I=G.next();!I.done;I=G.next())I.value.onSlotUnscheduled(c)}},gIK=function(G,c,I){c=Z2(c);
I=z60(I);if(c instanceof Rl)_.H8(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(I instanceof Ks)_.H8(I,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var R=I7(G);yn(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",c,I);R=_.Q(R.adsControlFlowEventListeners);for(var Z=R.next();!Z.done;Z=R.next())Z.value.onLayoutScheduled(c,I);G=I7(G);yn(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",c,I);G=_.Q(G.adsControlFlowEventListeners);
for(R=G.next();!R.done;R=G.next())pFe(R.value,c,I)}},R7=function(G,c,I){c=Z2(c);
I=z60(I);if(c instanceof Rl)_.H8(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(I instanceof Ks)_.H8(I,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var R=I7(G);yn(R.adEventLogger,LmC("normal"),c,I);R=_.Q(R.adsControlFlowEventListeners);for(var Z=R.next();!Z.done;Z=R.next())Z.value.onLayoutExited(c,I,"normal");G=I7(G);G=_.Q(G.adsControlFlowEventListeners);for(R=G.next();!R.done;R=G.next())zAK(R.value,c,I)}};_.Zc=_.W(function(G){var c=_.YW(G,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});G=Object.assign({},c);var I=c.data;c=c.customCommandResolver;var R=(delete G.data,delete G.customCommandResolver,G);G=_.wZ({visibilityCallback:function(a,O){var N,q=(N=I().interaction)==null?void 0:N.onFirstVisible;a&&(q&&_.r0(q),R.setOnErrorHandler()&&EuA(O))},
showOption:_.j4});c=_.xZ(function(){return I().interaction},c,function(){var a;
return(a=R.listenToTapEvent)==null?void 0:a.call(R)});
var Z=_.Q(_.ks(!1,void 0,"wAC0Lc")),K=Z.next().value,m=Z.next().value;Z=_.Nx(function(a){var O;((O=R.setTouchEndHandler)==null?0:O.call(R))&&!K()&&(a.currentTarget.click(),m(!0),setTimeout(function(){m(!1)},100));
return!1});
return _.e("ad-image-view-model",{class:function(){var a,O=[((a=I().interaction)==null?0:a.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],N;((N=R.isGridViewEnabled)==null?0:N.call(R))&&O.push("ytwAdImageViewModelHostInGridView");return O.join(" ")},
el:_.YC(G,c),"on:touchend":Z},_.e("div",{class:"ytwAdImageViewModelHostImageContainer"},_.e(_.yc,{data:function(){var a;return{sources:I().imageSources,contentMode:(a=I().imageProperties)==null?void 0:a.contentMode}},
alt:function(){var a,O;return((a=I().interaction)==null?void 0:(O=a.accessibility)==null?void 0:O.label)||""},
targetHeight:R.targetHeight,targetWidth:R.targetWidth,preserveHeight:R.preserveHeight,preserveWidth:R.preserveWidth,useWidth:R.useWidth,style:function(){var a,O;return"vertical-align: bottom;"+(((a=I().background)==null?0:a.color)?"background-color:"+_.Sx((O=I().background)==null?void 0:O.color)+";":"")},
className:function(){return R.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var a,O;return(O=(a=R.setDraggable)==null?void 0:a.call(R))!=null?O:void 0}})))},"lc");var YW0=_.W(function(G){var c=G.data,I=G.listenToTapEvent,R=function(){};
return _.e("ad-button-hover-overlay-view-model",{"on:click":_.Nx(function(Z){if(_.v("enable_web_home_top_landscape_image_layout_legacy_click_command")){var K,m=(K=c().interaction)==null?void 0:K.onTap;m&&_.Xl(Z.currentTarget,"yt-navigate",{endpoint:_.WI(m)})}}),
class:function(){var Z;return((Z=c().interaction)==null?0:Z.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.YC(_.wZ({visibilityCallback:function(Z){var K,m=(K=c().interaction)==null?void 0:K.onFirstVisible;Z&&m&&_.r0(m)},
showOption:_.j4}),_.xZ(function(){return c().interaction},void 0,function(){return!_.v("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(I==null?void 0:I())}))},function(){return _.v("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.e(_.sN,{data:function(){return c().button}},{adButtonViewModel:function(Z){return _.e(_.tp,{data:Z.data,
customCommandResolver:R})}}):_.e(_.sN,{data:function(){return c().button}},{adButtonViewModel:_.tp})}())},"mc");var Pm;_.R1(_.W(function(G){var c=G.data;G=_.wZ({visibilityCallback:function(a,O){if(a){var N;(a=(N=c().interaction)==null?void 0:N.onFirstVisible)&&_.r0(a);var q;if(N=(q=c().adLayoutData)==null?void 0:q.activeViewData)QY(O,N),_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&mL(O)})}else _.v("stop_av_measurement_on_detach")&&mL(O)},
showOption:_.j4,hideOption:xy});var I=_.xZ(function(){return c().interaction},void 0,function(){return!0}),R=_.Q(_.ks(!1,void 0,"VNDDT")),Z=R.next().value,K=R.next().value;
R=_.Nx(function(){K(!0)});
var m=_.Nx(function(){K(!1)});
return _.e("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.YC(G,jCB,I),"on:mouseenter":R,"on:mouseleave":m},_.e("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.wi({"max-width":function(){return _.v("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.e("div",{class:function(){var a;
a:{var O;switch((a=_.D(c().thumbnailImage,g1p))==null?void 0:(O=a.imageProperties)==null?void 0:O.renderingAspect){case "RENDERING_ASPECT_SQUARE":a="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":a="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}a=void 0}return a}},_.e(_.sN,{data:function(){return c().thumbnailImage}},{adImageViewModel:function(a){return _.e(_.Zc,
{data:a.data,
listenToTapEvent:!0,setTouchEndHandler:_.v("enable_top_landscape_image_experiment_dom_id_web")})}})),_.e("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.e(_.l,{cond:function(){var a,O,N;
return(a=_.D(c().thumbnailImage,g1p))==null?void 0:(O=a.imageProperties)==null?void 0:(N=O.overlayIcon)==null?void 0:N.iconImage},
then:function(a){return _.e(_.yc,{data:a,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.e("div",{class:function(){return Z()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.e(_.sN,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(a){return _.e(YW0,
{data:a.data,
listenToTapEvent:!0})}}))),_.e("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.e(_.sN,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(a){return _.e(gE,{data:a.data,
listenToTapEvent:!0,setTouchEndHandler:_.v("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;G=_.wZ({visibilityCallback:function(a,O){if(a){var N;(a=(N=c().interaction)==null?void 0:N.onFirstVisible)&&_.r0(a);var q;if(N=(q=c().adLayoutData)==null?void 0:q.activeViewData)QY(O,N),_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&mL(O)})}else _.v("stop_av_measurement_on_detach")&&mL(O)},
showOption:_.j4,hideOption:xy});var I=_.o1(_.J0),R=_.xZ(function(){return c().interaction}),Z={},K={},m={};
return _.e("square-image-layout-view-model",{class:_.O3("ytwSquareImageLayoutViewModelHost",(Z.ytwSquareImageLayoutViewModelHostColumn=I,Z)),el:_.YC(G,xLA,R)},_.e("div",{class:_.O3("ytwSquareImageLayoutViewModelHostImage",(K.ytwSquareImageLayoutViewModelHostColumnImage=I,K))},function(){return _.e(_.sN,{data:function(){return c().adImage}},{adImageViewModel:function(a){return _.e(_.Zc,{data:a.data,
isGridViewEnabled:I,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.e("div",{class:_.O3("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(m.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=I,m))},_.e(_.sN,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:gE}),function(){return _.e(_.sN,{data:function(){return c().adButton}},{adButtonViewModel:function(a){var O={};
return _.e(_.tp,{data:a.data,className:_.O3((O.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=I,O))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=G.noBottomMargin;var R=G.typographyBump;G=_.wZ({visibilityCallback:function(w,F){if(w){var n;(w=(n=c().interaction)==null?void 0:n.onFirstVisible)&&_.r0(w);var U;if(n=(U=c().adLayoutData)==null?void 0:U.activeViewData)QY(F,n),_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&mL(F)})}else _.v("stop_av_measurement_on_detach")&&mL(F)},
showOption:_.j4,hideOption:xy});var Z=_.xZ(function(){return c().interaction},void 0,function(){return _.v("enable_web_home_top_landscape_image_layout_level_click")}),K=function(){return c().interaction};
K!==void 0&&K!==null||_.Ra(Error("Nh"));var m=function(){var w,F,n;return(w=_.D(c().thumbnailImage,g1p))==null?void 0:(F=w.background)==null?void 0:(n=F.backgroundImageSource)==null?void 0:n.imageSources};
K=_.Q(_.ks(!1,void 0,"NFjwje"));var a=K.next().value,O=K.next().value;K=_.Nx(function(){O(!0)});
var N=_.Nx(function(){O(!1)}),q=function(){return a()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.e("top-landscape-image-layout-view-model",{class:function(){var w;return((w=c().interaction)==null?0:w.onTap)&&_.v("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.YC(G,t3q,Z),"on:mouseenter":K,"on:mouseleave":N},_.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.e(_.l,{cond:function(){return m()&&m().length>0},
then:function(){return _.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.wi({top:"0","background-image":function(){return"url("+String(m()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.e(_.l,{cond:function(){return!!c().adButtonHoverOverlay},
then:function(){return _.e("div",{class:q},_.e(_.sN,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:YW0}))}}),_.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.e(_.sN,{data:function(){return c().thumbnailImage}},{adImageViewModel:function(w){return _.e(_.Zc,{data:w.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.v("enable_web_home_top_landscape_image_layout_level_click")})}})),_.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.e(_.yc,{data:{sources:[{clientResource:{imageName:_.v("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.e(_.sN,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(w){return _.e(gE,{data:w.data,
noBottomMargin:function(){return I==null?void 0:I()},
listenToTapEvent:function(){return _.v("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return R==null?void 0:R()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.bl,
noBottomMargin:_.bl,typographyBump:_.bl}});var GJk=_.W(function(G){var c=G.data,I=_.wZ({visibilityCallback:function(Z){var K,m=(K=c().interaction)==null?void 0:K.onFirstVisible;Z&&m&&_.r0(m)},
showOption:_.j4});G=_.xZ(function(){return c().interaction},G.customCommandResolver);
var R={};return _.e("ad-text-image-view-model",{class:_.O3("ytwAdTextImageViewModelHost",(R.ytwAdTextImageViewModelHostDarkBackground=function(){return c().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},R)),
el:_.YC(I,G),"aria-label":function(){var Z,K;return(Z=c().interaction)==null?void 0:(K=Z.accessibility)==null?void 0:K.label}},_.e("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.e(_.ul,{text:function(){return c().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.e(_.l,{cond:function(){return c().overlayIcon},
then:function(Z){return _.e("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.e(_.yc,{data:Z,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var cWB=_.W(function(G){var c=G.data;return _.e("feed-ad-sitelink-view-model",{class:function(){var I;return((I=c().interaction)==null?0:I.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.YC(_.xZ(function(){return c().interaction},G.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var I,R;return(I=c().interaction)==null?void 0:(R=I.accessibility)==null?void 0:R.label},
role:"link",tabindex:0},_.e(_.ul,{text:function(){return c().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var IxK=_.W(function(G){var c=G.data;G={};return _.e("feed-ad-sitelinks-carousel-view-model",{el:_.YC(_.wZ({visibilityCallback:function(I){var R,Z=(R=c().interaction)==null?void 0:R.onFirstVisible;I&&Z&&_.r0(Z)},
showOption:_.j4})),class:_.O3("ytwFeedAdSitelinksCarouselViewModelHost",(G.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return c().style==="FEED_AD_SITELINKS_STYLE_NONE"},G))},_.e(_.sN,{data:function(){return c().sitelinks}},{feedAdSitelinkViewModel:cWB}))},"sc");_.R1(_.W(function(G){var c=G.data;G=_.wZ({visibilityCallback:function(m,a){if(m){var O;(m=(O=c().interaction)==null?void 0:O.onFirstVisible)&&_.r0(m);var N;(O=(N=c().adLayoutData)==null?void 0:N.activeViewData)&&QY(a,O)}},
showOption:_.j4});var I=_.Q(_.ks(!1,void 0,"BzPhl")),R=I.next().value,Z=I.next().value;I=_.Nx(function(){Z(!0)});
var K=_.Nx(function(){Z(!1)});
return _.e("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.YC(G),"on:mouseenter":I,"on:mouseleave":K},_.e("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.e("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.e(_.sN,{data:function(){return c().textImage}},{adTextImageViewModel:GJk})),_.e("div",{class:function(){return R()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.e(_.sN,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(m){return _.e(YW0,{data:m.data,
listenToTapEvent:!0})}}))),_.e("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.e(_.sN,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(m){return _.e(gE,{data:m.data,
listenToTapEvent:!0})}}),_.e(_.sN,{data:function(){return c().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:IxK})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=G.typographyBump;return _.e("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.YC(_.wZ({visibilityCallback:function(R,Z){if(R){var K;(R=(K=c().interaction)==null?void 0:K.onFirstVisible)&&_.r0(R);var m;(K=(m=c().adLayoutData)==null?void 0:m.activeViewData)&&QY(Z,K)}},
showOption:_.j4,hideOption:xy}))},_.e("div",null,_.e(_.sN,{data:function(){return c().videoLockup}},{lockupViewModel:function(R){return _.e(_.Yy,{data:R.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.bl,
noBottomMargin:_.bl,typographyBump:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=G.className;var R=G.typographyBump;return _.e("video-display-compact-button-group-layout-view-model",{el:_.YC(_.wZ({visibilityCallback:function(Z,K){if(Z){var m;(Z=(m=c().interaction)==null?void 0:m.onFirstVisible)&&_.r0(Z);var a;(m=(a=c().adLayoutData)==null?void 0:a.activeViewData)&&QY(K,m)}},
showOption:_.j4})),class:_.O3("videoDisplayCompactButtonGroupLayoutViewModelHost",I)},_.e(_.sN,{data:function(){return c().videoLockup}},{lockupViewModel:function(Z){return _.e(_.Yy,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:R})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.bl,
className:_.bl,typographyBump:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=G.className;var R=G.typographyBump;return _.e("video-display-compact-buttoned-layout-view-model",{el:_.YC(_.wZ({visibilityCallback:function(Z,K){if(Z){var m;(Z=(m=c().interaction)==null?void 0:m.onFirstVisible)&&_.r0(Z);var a;(m=(a=c().adLayoutData)==null?void 0:a.activeViewData)&&QY(K,m)}},
showOption:_.j4})),class:_.O3("videoDisplayCompactButtonedLayoutViewModelHost",I)},_.e(_.sN,{data:function(){return c().videoLockup}},{lockupViewModel:function(Z){return _.e(_.Yy,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:R})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.bl,
className:_.bl,typographyBump:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=G.className;var R=G.typographyBump;var Z=function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},K=_.o1(_.J0);
G=_.wZ({visibilityCallback:function(N,q){if(N){var w=c();N=w.adLayoutData;var F;(w=(F=w.interaction)==null?void 0:F.onFirstVisible)&&_.r0(w);(F=N==null?void 0:N.activeViewData)&&QY(q,F)}},
showOption:_.j4});var m=_.SE(function(){return{containerType:Z()&&K()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:Z()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),a=_.SE(function(){return Z()&&K()?"":Z()?"168px":"50%"},void 0,"Om6kNe"),O=_.SE(function(){return Z()&&K()?9999:void 0},void 0,"S71lKd");
return _.e("video-display-compact-layout-view-model",{el:_.YC(G),class:_.O3("videoDisplayCompactLayoutViewModelHost",I)},_.e(_.sN,{data:function(){return c().videoLockup}},{lockupViewModel:function(N){return _.e(_.Yy,{data:N.data,
containerLayoutConfig:m,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:a,thumbnailTargetWidth:O,typographyBump:R})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.bl,
className:_.bl,typographyBump:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=G.typographyBump;return _.e("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.YC(_.wZ({visibilityCallback:function(R,Z){if(R){var K;(R=(K=c().interaction)==null?void 0:K.onFirstVisible)&&_.r0(R);var m;(K=(m=c().adLayoutData)==null?void 0:m.activeViewData)&&QY(Z,K)}},
showOption:_.j4,hideOption:xy}))},_.e("div",null,_.e(_.sN,{data:function(){return c().videoLockup}},{lockupViewModel:function(R){return _.e(_.Yy,{data:R.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.bl,
noBottomMargin:_.bl,typographyBump:_.bl}});_.Rre=_.W(function(G){var c=G.data;G=_.mX("ad-card-badge-view-model");return _.e("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:G},_.e(_.l,{cond:function(){return c().imageBadge},
then:function(I){return _.e(_.yc,{data:I,alt:""})}}))},"zc");var ZvT=_.W(function(G){var c=G.data;var I=G.customCommandResolver;return _.e("carousel-ad-card-image-view-model",{class:function(){var R;return((R=c().interaction)==null?0:R.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.YC(_.wZ({visibilityCallback:function(R){var Z,K=(Z=c().interaction)==null?void 0:Z.onFirstVisible;R&&K&&_.r0(K)},
showOption:_.j4}),_.xZ(function(){return c().interaction},I)),
"aria-label":function(){var R,Z;return(R=c().interaction)==null?void 0:(Z=R.accessibility)==null?void 0:Z.label}},_.e(_.sN,{data:function(){return c().adImage}},{adImageViewModel:function(R){return _.e(_.Zc,{data:R.data,
customCommandResolver:I})}}),_.e("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.e(_.sN,{data:function(){return c().badge}},{adCardBadgeViewModel:_.Rre})),_.e(_.Jx,{model:{color:4}}))},"Ac");var KsV=_.W(function(G){var c=_.Q(_.ks(0,void 0,"JJ0QQc")),I=c.next().value;c.next();var R=c.next().value,Z=_.Q(_.ks(!1,void 0,"f6YICe"));c=Z.next().value;var K=Z.next().value,m;_.ty(function(){clearTimeout(m)});
Z=_.Nx(function(){var N;((N=G.animate)==null?0:N.call(G))?(K(!0),m=setTimeout(function(){K(!1);a()},200)):a();
return!1});
var a=function(){R(function(N){return(N+G.numShownItems())%G.data().length})},O={};
return _.e("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.e("div",{class:_.O3("ytwHorizontalCarouselCarouselWrapper")},_.e("div",{class:_.O3("ytwHorizontalCarouselCarouselInnerWrapper",(O.ytwHorizontalCarouselAnimating=c,O))},_.e(_.fh,{each:G.data,keyBy:"INDEX"},function(N,q){return _.e("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.wi({"flex-basis":function(){return"calc((100% - (8px * "+(G.numShownItems()-1)+")) / "+G.numShownItems()+")"},
order:function(){var w=q-I();w<0&&(w+=G.data().length);return w}})},G.children(N,q))}))),_.e("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Z},G.nextButton()))},"Bc");var PLe=_.W(function(G){var c=G.data;var I=G.customCommandResolver;var R=G.expansive;return _.e("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.YC(_.wZ({visibilityCallback:function(Z){var K,m=(K=c().interaction)==null?void 0:K.onFirstVisible;Z&&m&&_.r0(m)},
showOption:_.j4}))},_.e(KsV,{data:function(){var Z;return((Z=c())==null?void 0:Z.carouselAdCards)||[]},
nextButton:function(){return _.e(_.sN,{data:function(){return c().nextButton}},{buttonViewModel:function(Z){var K=Z.data;
return _.e(_.BR,{data:function(){return(R==null?0:R())?Object.assign({},K(),{style:"mono"}):K()},
className:_.v("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Z){return _.e(_.sN,{data:Z},{carouselAdCardImageViewModel:function(K){return _.e(ZvT,{data:K.data,customCommandResolver:I})}})}))},"Cc");var QFK=_.W(function(G){var c=G.data;var I=G.customCommandResolver;var R=G.className;var Z=G.buttonClassName;var K=G.animationEntityKey;var m=G.expansive;return _.e("carousel-button-view-model",{class:_.O3("ytwCarouselButtonViewModelHost",R)},_.e(_.sN,{data:function(){return c().carousel}},{carouselAdCardCollectionViewModel:function(a){return _.e(PLe,{data:a.data,
customCommandResolver:I,expansive:m})}}),_.e(_.sN,{data:function(){return c().button}},{adButtonViewModel:function(a){var O=a.data;
return _.e(_.tp,{data:function(){return(m==null?0:m())?Object.assign({},O(),{style:"AD_BUTTON_STYLE_TONAL"}):O()},
className:Z,customCommandResolver:I,animationEntityKey:K})}}))},"Dc");_.mQA=_.W(function(G){var c=G.data;G=G.className;var I=_.mX("pivot-button-view-model");_.tI(function(){var R;((R=c())==null?0:R.backgroundColor)&&I.value.setAttribute("data-background-color",String(c().backgroundColor))});
return _.e("pivot-button-view-model",{el:I,class:_.O3("ytwPivotButtonViewModelHost",G)},_.e(_.Er,{command:function(){var R=c();R=R.onClickCommand?_.WI(R.onClickCommand):R.contentDescription?_.Ge(R.contentDescription):void 0;return R},
ariaLabel:function(){return c().contentDescription}},_.e(_.l,{cond:function(){return c().thumbnail},
then:function(R){return _.e(_.yc,{data:R,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.e(_.l,{cond:function(){return c().icon},
then:function(R){return _.e(_.F6,{icon:function(){return R().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.axB=_.W(function(G){var c=G.data;var I=G.buttonShapeOverrideables;return _.e("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.e(_.sN,{data:function(){return c().buttonViewModels}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
buttonOverrides:I})},
likeButtonViewModel:function(R){return _.e(_.v$,{data:R.data,buttonShapeOverrideables:I})},
dislikeButtonViewModel:function(R){return _.e(_.ni,{data:R.data,buttonShapeOverrideables:I})},
toggleButtonViewModel:function(R){return _.e(_.m8,{data:R.data,buttonShapeOverrides:I})}}))},"Fc");var T6p=_.W(function(G){var c=G.avatar;var I=G.headline;var R=G.badge;var Z=G.description;var K=G.expansive;G={};return _.e("yt-ad-metadata-shape",{class:_.O3("ytAdMetadataShapeHost",(G.ytAdMetadataShapeHostLarge=K,G))},_.e("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.e(_.l,{cond:c,then:function(m){return _.e(_.IVK,{data:function(){return(K==null?0:K())?Object.assign({},m(),{size:"AD_AVATAR_SIZE_M"}):m()}})}}),_.e("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.e(_.ul,{text:I,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.e(_.l,{cond:R,then:function(m){return _.e(_.Xh,{data:function(){return(K==null?0:K())?Object.assign({},m(),{style:"AD_BADGE_STYLE_STARK"}):m()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.e("h2",{class:"ytAdMetadataShapeHostDescription"},_.e(_.ul,{text:Z,
linkInheritColor:!0,isHeadline:function(){return K==null?void 0:K()}})))},"Gc");var OvB=_.W(function(G){var c=G.data;var I=G.onShow;var R=G.expansive;G=_.xZ(function(){return c().interaction});
_.tI(function(){var K,m=(K=c().animatedRenderingConfig)==null?void 0:K.delayedSecondsToVisible;if(m){var a=setTimeout(I,m*1E3);_.ty(function(){clearTimeout(a)})}});
var Z={};return _.e("reels-ad-card-buttoned-view-model",{class:_.O3(function(){var K;return((K=c().interaction)==null?0:K.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Z.ytwReelsAdCardButtonedViewModelHostExpansive=R,Z)),
el:_.YC(G)},_.e(T6p,{avatar:function(){return _.D(c().avatar,HuV)},
headline:function(){return c().headline},
badge:function(){return _.D(c().adBadge,XST)},
description:function(){return c().description},
expansive:R}),_.e(_.sN,{data:function(){return c().ctaButton}},{adButtonViewModel:function(K){var m=K.data;
return _.e(_.tp,{data:function(){return(R==null?0:R())?Object.assign({},m(),{style:"AD_BUTTON_STYLE_FILLED"}):m()}})}}))},"Hc");var erp=_.W(function(G){var c=G.data;G=G.expansive;var I=_.v("web_ad_metadata_clickable")?_.xZ(function(){return c().interaction},void 0,function(){return _.v("web_ad_metadata_clickable")}):void 0,R={};
R=_.VK("ytwReelsAdMetadataViewModelHost",(R.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.v("web_ad_metadata_clickable"),R));return _.e("reels-ad-metadata-view-model",{class:R,el:_.YC(I)},_.e(T6p,{avatar:function(){return _.D(c().avatar,HuV)},
headline:function(){return c().headline},
badge:function(){return _.D(c().adBadge,XST)},
description:function(){return c().description},
expansive:G}))},"Ic");var N6K={iconPosition:"icon-with-label",size:"L"},lxB=_.W(function(G){var c=G.data;var I=G.overlayDensity;var R=G.extractOverlay;var Z=G.extractActionBar;G=_.mX("reels-player-overlay-layout-view-model");var K=_.gD(I,0),m=function(){var n;return(n=c().reelsAdCardButtonedEntityKey)!=null?n:""},a=function(){return m()+"/ad_button"},O=_.um(bOq,m),N=function(){var n,U;
return(U=(n=O())==null?void 0:n.value)!=null?U:!1},q=_.o1(h6T),w=function(){var n;
return Object.assign({},N6K,(q()||!((n=Z==null?void 0:Z())!=null&&n))&&{style:"overlay-dark"})};
I={};var F={};return _.e("reels-player-overlay-layout-view-model",{class:_.O3("ytwReelsPlayerOverlayLayoutViewModelHost",(I.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!c().extension},I.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},I.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return K()===1&&!(R==null?0:R())},I.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var n;
return(n=R==null?void 0:R())!=null?n:!1},I.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var n;
return(n=Z==null?void 0:Z())!=null?n:!1},I)),
"overlay-density":function(){return String(K())},
el:G},_.e("div",{class:_.O3("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(F.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},F))},_.e("div",{"aria-hidden":function(){return N()},
class:_.O3("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return N()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.wi({"transition-duration":function(){return X5B(c())}})},_.e(_.sN,{data:function(){return c().adMetadata}},{reelsAdMetadataViewModel:function(n){return _.e(erp,{data:n.data,
expansive:function(){return K()===1}})}}),_.e(_.l,{cond:function(){return c().extension},
then:function(n){return _.e("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.e(_.sN,{data:n},{adButtonViewModel:function(U){return _.e(_.tp,{data:U.data,animationEntityKey:a,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(U){return _.e(QFK,{data:U.data,animationEntityKey:a,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return K()===1}})}}))}})),_.e("div",{"aria-hidden":function(){return!N()},
class:_.O3("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return N()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.wi({"transition-duration":function(){return X5B(c())}})},_.e(_.sN,{data:function(){return c().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(n){return _.e(OvB,{data:n.data,
onShow:function(){_.y1(_.Le("booleanEntity",m(),{key:m(),value:!0}))},
expansive:function(){var U;return(U=R==null?void 0:R())!=null?U:!1}})}}))),_.e("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.e(_.sN,{data:function(){return c().actions}},{reelActionBarViewModel:function(n){return _.e(_.axB,{data:n.data,
buttonShapeOverrideables:w})}}),_.e(_.sN,{data:function(){return c().menu}},{buttonViewModel:function(n){return _.e(_.BR,{data:n.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},w(),{type:"tonal"})}})}}),_.e(_.sN,{data:function(){return c().pivotButton}},{pivotButtonViewModel:function(n){return _.e(_.mQA,{data:n.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.R1(lxB,"reels-player-overlay-layout-view-model",{props:{data:_.bl,overlayDensity:_.bl,extractOverlay:_.bl,extractActionBar:_.bl}});var a7=function(){var G=_.J.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.u(a7,_.J);_.P=a7.prototype;
_.P.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.v("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.P.ready=function(){var G=this;mTq(function(){G.isAttached&&cm(G.JSC$15844_storedAdSlotMetadata,G.JSC$15844_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&R7(cW(),G.JSC$15844_storedAdSlotMetadata,G.JSC$15844_storedAdLayoutMetadata)})};
_.P.attached=function(){cm(this.JSC$15844_storedAdSlotMetadata,this.JSC$15844_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gIK(cW(),this.JSC$15844_storedAdSlotMetadata,this.JSC$15844_storedAdLayoutMetadata)};
_.P.detached=function(){cm(this.JSC$15844_storedAdSlotMetadata,this.JSC$15844_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&R7(cW(),this.JSC$15844_storedAdSlotMetadata,this.JSC$15844_storedAdLayoutMetadata)};
_.P.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15844_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15844_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15844_storedAdLayoutMetadata!==void 0&&this.JSC$15844_storedAdSlotMetadata!==void 0&&R7(cW(),this.JSC$15844_storedAdSlotMetadata,this.JSC$15844_storedAdLayoutMetadata),gIK(cW(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15844_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15844_storedAdSlotMetadata=this.adSlotMetadata)};
_.Nh.Object.defineProperties(a7.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
a7.prototype.onAdMetadataChanged=a7.prototype.onAdMetadataChanged;a7.prototype.onTypographyBumpChanged=a7.prototype.onTypographyBumpChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],a7.prototype,"rendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],a7.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],a7.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],a7.prototype,"noBottomMargin",void 0);_.r([_.E(),_.h("design:type",Object)],a7.prototype,"overlayDensity",void 0);_.r([_.E(),_.h("design:type",Object)],a7.prototype,"extractOverlay",void 0);_.r([_.E(),_.h("design:type",Object)],a7.prototype,"extractActionBar",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],a7.prototype,"typographyBump",void 0);
_.r([_.A("data.adLayoutMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],a7.prototype,"adLayoutMetadata",null);_.r([_.E(),_.h("design:type",Object)],a7.prototype,"adSlotMetadata",void 0);_.r([_.nH("ytd-video-display-full-buttoned-and-button-group-renderer"),_.h("design:type",HTMLElement)],a7.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.r([_.wD("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],a7.prototype,"onTypographyBumpChanged",null);_.r([_.wD("adLayoutMetadata","adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],a7.prototype,"onAdMetadataChanged",null);_.r([_.Jc({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],a7);
_.B(a7,"ytd-in-feed-ad-layout-renderer",function(){if(c3T!==void 0)return c3T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return c3T=G},
{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var qsi;var wO0;_.R1(_.Xh,"ad-badge-view-model",{props:{data:_.bl,hasDot:_.bl,customCommandResolver:_.G9,adRenderingContextType:_.G9,usedInMasthead:_.G9}});_.R1(_.tp,"ad-button-view-model",{props:{data:_.bl,customCommandResolver:_.G9,className:_.G9,delayedClassName:_.G9,animationEntityKey:_.G9,isCompactWidth:_.G9,isContentWidth:_.G9}});var TU=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return G};
_.u(TU,_.J);_.P=TU.prototype;_.P.computeHasLiveDescription=function(G){return!(G==null||!G.liveDescription)};
_.P.computeHasByline=function(G){return!(G==null||!G.byline)};
_.P.computeUsesAdButtonViewModel=function(G){return!!_.D(G==null?void 0:G.cta,y4K)};
_.P.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.P.onYtToggleButton=function(G){var c,I=(c=this.data)==null?void 0:c.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Le("upcomingEventReminderStateEntity",I,{key:I,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.P.attached=function(){this.updateChannelBanner()};
_.P.dataChanged=function(){this.updateChannelBanner()};
_.P.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.D((G=this.data)==null?void 0:G.cta,_.DI)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.P.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var G=_.ZX(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);G&&(G.startsWith("//")&&(G="https:"+G),this.hostElement.classList.add("channel-banner"),_.eD(this.hostElement,{"--ytvmh-channel-banner":"url("+G+")"}))}else _.v("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.P.onPlayerReady=function(){this.onIronResize()};
_.P.maybeFlushDebouncer=function(){_.v("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(G){var c;G=(c=G.getElementsByTagName("yt-attributed-string"))==null?void 0:c[0];Lkq(G==null?void 0:G.polymerController)})};
_.P.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var G=_.Q1(this.hostElement).querySelector("#live-description"),c;G&&((c=this.data)==null?0:c.shortLiveDescription)&&G.clientWidth<G.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
TU.prototype.onIronResize=TU.prototype.onIronResize;TU.prototype.videoReminderStateChanged=TU.prototype.videoReminderStateChanged;TU.prototype.dataChanged=TU.prototype.dataChanged;TU.prototype.onYtToggleButton=TU.prototype.onYtToggleButton;_.r([_.L(_.Zu),_.h("design:type",Object)],TU.prototype,"ironResizableBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],TU.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],TU.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],TU.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.videoReminderEntityKey"],selector:mGr}),_.h("design:type",Object)],TU.prototype,"videoReminderState",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.v("web_modern_buttons")}),_.h("design:type",Boolean)],TU.prototype,"rounded",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.h("design:type",Boolean)],TU.prototype,"hasLiveDescription",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.h("design:type",Boolean)],TU.prototype,"hasByline",void 0);
_.r([_.E({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.h("design:type",String)],TU.prototype,"adRenderingContextType",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],TU.prototype,"isMasthead",void 0);_.r([_.E({computed:"computeUsesAdButtonViewModel(data)"}),_.h("design:type",Boolean)],TU.prototype,"usesAdButtonViewModel",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.v("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.h("design:type",Boolean)],TU.prototype,"resizableAdBannerSafariFix",void 0);_.r([_.vB("yt-formatted-string"),_.h("design:type",Array)],TU.prototype,"formattedStrings",void 0);_.r([_.nH("#cta-button"),_.h("design:type",HTMLElement)],TU.prototype,"ctaButton",void 0);
_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],TU.prototype,"onYtToggleButton",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TU.prototype,"dataChanged",null);_.r([_.wD("videoReminderState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TU.prototype,"videoReminderStateChanged",null);
_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TU.prototype,"onIronResize",null);_.r([_.Jc({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],TU);
_.B(TU,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(wO0!==void 0)return wO0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return wO0=G},{mode:1});var FsT;var OS=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};G.isLocked=!1;return G};
_.u(OS,_.J);_.P=OS.prototype;_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded&&_.gq(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(G){G!==this&&(this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(G){this.isLocked=!0;G!==this&&(this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
OS.prototype.onTap=OS.prototype.onTap;OS.prototype.onMouseOver=OS.prototype.onMouseOver;OS.prototype.onExpandedChanged=OS.prototype.onExpandedChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],OS.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],OS.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],OS.prototype,"expanded",void 0);_.r([_.uO("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OS.prototype,"onExpandedChanged",null);_.r([_.qY("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OS.prototype,"onMouseOver",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OS.prototype,"onTap",null);
_.r([_.Jc({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],OS);
_.B(OS,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(FsT!==void 0)return FsT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return FsT=G},{mode:1});var nGA;var et=function(){var G=_.J.apply(this,arguments)||this;G.buttonOverrides={style:"overlay"};G.useYtdPlayer=_.v("use_ytd_player_for_desktop_masthead");G.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};G.playbackFinished=!1;G.JSC$15858_playerManager=null;G.JSC$15858_mastheadCounter=new qoK;return G};
_.u(et,_.J);_.P=et.prototype;_.P.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.created=function(){this.JSC$15858_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15858_playerManager=new cR)};
_.P.ready=function(){var G=this;this.JSC$15858_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var c=_.Q1(this.hostElement).querySelector("#player");this.useYtdPlayer?c.style.display="none":(this.ytdPlayer.style.display="none",mai(this.JSC$15858_playerManager,c,function(){G.onPlaybackEnded()}),_.Q1(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var I;
((I=G.data)==null?0:I.navigationEndpoint)&&_.Xl(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})}))};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15858_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.P.attached=function(){var G=this;_.xW(function(){G.maybePlayVideo()})};
_.P.maybePlayVideo=function(){var G=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15858_playerManager.playVideo(),this.getPlayerPromise().then(function(){G.JSC$15858_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.P.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15858_playerManager.stopVideo()};
_.P.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var G,c={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((G=this.data.playbackStartMs)!=null?G:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(c);this.setupYtdPlayer()}else Tv2(this.JSC$15858_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(aa2(this.JSC$15858_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.P.getPlayerPromise=function(){return this.JSC$15858_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$15858_playerManager.mute():this.JSC$15858_playerManager.unMute()};
_.P.onYtNavigate=function(G){var c=TXC(G.detail.endpoint),I=O0U(this.data.clickthroughReportingData);c&&I&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=I:_.x0(c,I,30))};
_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded?(_.gq(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(G){G!==this&&(this.stopVideo(),this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(G){G!==this&&(this.isLocked=!0,this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
_.P.lockAndCollapseExpandableTiles=function(){_.ym(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.P.unlockExpandableTiles=function(){_.ym(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.P.setupYtdPlayer=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return I.yield(G.ytdPlayer.getPlayerPromise(),2);c=I.yieldResult;c.addEventListener("onStateChange",function(R){G.onPlayerStateChange(R)});
c.addEventListener("onCueRangeExit",function(R){G.onCueRangeExit(R)});
_.Vp(I)})};
_.P.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var c=G.getCurrentTime(),I,R,Z=c+((R=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?R:0)/1E3;G.addCueRange("playback",c,Z);this.JSC$15858_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.P.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(c.ytdPlayer.getPlayerPromise(),2);I=R.yieldResult;G?I.mute():I.unMute();_.Vp(R)})};
et.prototype.onTap=et.prototype.onTap;et.prototype.onMouseOver=et.prototype.onMouseOver;et.prototype.onExpandedChanged=et.prototype.onExpandedChanged;et.prototype.onYtNavigate=et.prototype.onYtNavigate;et.prototype.onYtToggleButton=et.prototype.onYtToggleButton;et.prototype.dataChanged=et.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],et.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],et.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],et.prototype,"expanded",void 0);_.r([_.E(),_.h("design:type",Object)],et.prototype,"buttonOverrides",void 0);
_.r([_.E(),_.h("design:type",Object)],et.prototype,"useYtdPlayer",void 0);_.r([_.nH("#ytd-player"),_.h("design:type",Object)],et.prototype,"ytdPlayer",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],et.prototype,"dataChanged",null);_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],et.prototype,"onYtToggleButton",null);
_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],et.prototype,"onYtNavigate",null);_.r([_.uO("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],et.prototype,"onExpandedChanged",null);_.r([_.qY("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],et.prototype,"onMouseOver",null);
_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],et.prototype,"onTap",null);_.r([_.Jc({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],et);
_.B(et,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(nGA!==void 0)return nGA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return nGA=G},{mode:1});var vGi;var N6=function(){return _.J.apply(this,arguments)||this};
_.u(N6,_.J);N6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
N6.prototype.onShow=function(){var G=_.Q1(this.hostElement).querySelector("#live-description"),c;G&&((c=this.data)==null?0:c.shortLiveDescription)&&G.clientWidth<G.scrollWidth&&this.hostElement.classList.add("short-live-description")};
N6.prototype.onYtToggleButton=function(G){var c,I=(c=this.data)==null?void 0:c.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Le("upcomingEventReminderStateEntity",I,{key:I,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
N6.prototype.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.D((G=this.data)==null?void 0:G.cta,_.DI)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
N6.prototype.videoReminderStateChanged=N6.prototype.videoReminderStateChanged;N6.prototype.onYtToggleButton=N6.prototype.onYtToggleButton;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],N6.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],N6.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.videoReminderEntityKey"],selector:mGr}),_.h("design:type",Object)],N6.prototype,"videoReminderState",void 0);_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],N6.prototype,"onYtToggleButton",null);_.r([_.wD("videoReminderState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],N6.prototype,"videoReminderStateChanged",null);
_.r([_.Jc({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],N6);
_.B(N6,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(vGi!==void 0)return vGi;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return vGi=G},{mode:_.Qc("kevlar_poly_si_batch_j065")?1:2});var DQ9;var lj=function(){var G=_.J.apply(this,arguments)||this;G.useYtdPlayer=_.v("use_ytd_player_for_desktop_masthead");G.buttonOverrides={style:"overlay"};G.JSC$15866_playerManager=null;G.JSC$15866_mastheadCounter=new qoK;G.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return G};
_.u(lj,_.J);_.P=lj.prototype;_.P.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.created=function(){this.JSC$15866_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15866_playerManager=new cR)};
_.P.ready=function(){var G=this;this.JSC$15866_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var c;(c=this.embeddedPlayer)==null||c.remove()}else{var I;(I=this.ytdPlayer)==null||I.remove();mai(this.JSC$15866_playerManager,this.embeddedPlayer,function(){G.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){G.data&&G.data.navigationEndpoint&&_.Xl(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})})}};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15866_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.P.dataChanged=function(){var G=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var c=!this.data.disableAutoPlayback,I,R={autoplay:c,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((I=this.data.playbackStartMs)!=null?I:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(c?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(R);this.setupYtdPlayer()}else Tv2(this.JSC$15866_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(aa2(this.JSC$15866_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15866_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ym(G.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");G.JSC$15866_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.P.getPlayerPromise=function(){return this.JSC$15866_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$15866_playerManager.mute():this.JSC$15866_playerManager.unMute()};
_.P.onYtNavigate=function(G){var c=TXC(G.detail.endpoint),I=O0U(this.data.clickthroughReportingData);c&&I&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=I:_.x0(c,I,30))};
_.P.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15866_playerManager.stopVideo()};
_.P.setupYtdPlayer=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return I.yield(G.ytdPlayer.getPlayerPromise(),2);c=I.yieldResult;c.addEventListener("onStateChange",function(R){G.onPlayerStateChange(R)});
c.addEventListener("onCueRangeExit",function(R){G.onCueRangeExit(R)});
_.Vp(I)})};
_.P.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var c=G.getCurrentTime(),I,R,Z=c+((R=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?R:0)/1E3;G.addCueRange("playback",c,Z);_.ym(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15866_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.P.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(c.ytdPlayer.getPlayerPromise(),2);I=R.yieldResult;G?I.mute():I.unMute();_.Vp(R)})};
_.Nh.Object.defineProperties(lj.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G,c;if(!((G=this.data)==null?0:(c=G.accessibilityData)==null?0:c.label))return"Ad primary link";var I,R;return _.mJ("AD_TITLE",{title:(I=this.data)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label})}}});
lj.prototype.onYtMastheadHidden=lj.prototype.onYtMastheadHidden;lj.prototype.onYtNavigate=lj.prototype.onYtNavigate;lj.prototype.onYtToggleButton=lj.prototype.onYtToggleButton;lj.prototype.dataChanged=lj.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],lj.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lj.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],lj.prototype,"useYtdPlayer",void 0);_.r([_.nH("ytd-toggle-button-renderer"),_.h("design:type",Object)],lj.prototype,"muteButton",void 0);_.r([_.E(),_.h("design:type",Object)],lj.prototype,"buttonOverrides",void 0);
_.r([_.A("data.accessibilityData.label"),_.h("design:type",String),_.h("design:paramtypes",[])],lj.prototype,"titleAriaLabel",null);_.r([_.nH("#replay-button"),_.h("design:type",Object)],lj.prototype,"replayButton",void 0);_.r([_.nH("#player-container"),_.h("design:type",Object)],lj.prototype,"playerContainer",void 0);_.r([_.nH("#player"),_.h("design:type",Object)],lj.prototype,"embeddedPlayer",void 0);_.r([_.nH("#ytd-player"),_.h("design:type",Object)],lj.prototype,"ytdPlayer",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lj.prototype,"dataChanged",null);_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],lj.prototype,"onYtToggleButton",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],lj.prototype,"onYtNavigate",null);
_.r([_.qY("yt-masthead-hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lj.prototype,"onYtMastheadHidden",null);_.r([_.Jc({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],lj);
_.B(lj,"ytd-video-masthead-ad-primary-video-renderer",function(){if(DQ9!==void 0)return DQ9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return DQ9=G},{mode:2});var oGK;var q6=function(){var G=_.J.apply(this,arguments)||this;G.collapsed=!1;G.impressionResolver=_.HU();G.JSC$15870_activeViewMeasurementDataResolver=_.HU();G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.u(q6,_.J);_.P=q6.prototype;_.P.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){this.activeView=new rQ(this.hostElement)};
_.P.ready=function(){var G=this;_.Q1(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){G.expandAd()});
this.hostElement.addEventListener("yt-action",function(c){if(c.detail.actionName==="yt-service-request"){var I=c.detail.args[1];I.videoMastheadAdMuteCommand&&(G.collapseAd(I.videoMastheadAdMuteCommand.encryptedMastheadId),c.stopPropagation())}})};
_.P.attached=function(){var G=this;_.xW(function(){G.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(c){if(!G.collapsed){c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=I.value,Z6(I.baseUrl,I.attributionSrcMode);G.data.impressionCommand=void 0}});
this.JSC$15870_activeViewMeasurementDataResolver.promise.then(function(c){jH(G.activeView,c)});
_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xw(G.activeView)})};
_.P.dataChanged=function(){var G;((G=this.data.impressionCommand)==null?0:G.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var c;((c=this.data)==null?0:c.activeView)&&this.JSC$15870_activeViewMeasurementDataResolver.resolve(this.data.activeView);(G=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(G.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.P.computeWidescreen=function(G){var c;return!!(G&&((c=_.D(G,xX0))==null?0:c.isWidescreen))};
_.P.computeExpandable=function(G){return!!(G&&G.length>0)};
_.P.onIronResize=function(){if(this.expandable){var G=_.Q1(this.hostElement).querySelector("#expandable-tile-container :first-child");G&&!G.expanded&&(G.expanded=!0)}};
_.P.handleMuteAd=function(){this.collapseAd(null)};
_.P.restoreCollapsedState=function(G){this.collapsed=_.OC().get("HIDDEN_MASTHEAD_ID")===G};
_.P.collapseAd=function(G){if(G){var c=_.OC();c.set("HIDDEN_MASTHEAD_ID",G);c.save()}(G=_.Q1(this.hostElement).querySelector("#video"))&&_.Xl(G,"yt-masthead-hidden");this.collapsed=!0};
_.P.expandAd=function(){var G=_.OC();G.set("HIDDEN_MASTHEAD_ID",!1);G.save();location.reload()};
_.P.detached=function(){_.v("stop_av_measurement_on_detach")&&xw(this.activeView)};
q6.prototype.onIronResize=q6.prototype.onIronResize;q6.prototype.dataChanged=q6.prototype.dataChanged;_.r([_.L(_.Zu),_.h("design:type",Object)],q6.prototype,"ironResizableBehavior",void 0);_.r([_.L(_.Dg),_.h("design:type",Object)],q6.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],q6.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],q6.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.h("design:type",Boolean)],q6.prototype,"widescreen",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.h("design:type",Boolean)],q6.prototype,"expandable",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],q6.prototype,"collapsed",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q6.prototype,"dataChanged",null);_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q6.prototype,"onIronResize",null);_.r([_.Jc({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],q6);
_.B(q6,"ytd-video-masthead-ad-v3-renderer",function(){if(oGK!==void 0)return oGK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return oGK=G},{mode:2});var wC=function(){return _.J.apply(this,arguments)||this};
_.u(wC,_.J);_.P=wC.prototype;_.P.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.P.ready=function(){var G=this;mTq(function(){G.isAttached&&cm(G.JSC$15875_storedAdSlotMetadata,G.JSC$15875_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&R7(cW(),G.JSC$15875_storedAdSlotMetadata,G.JSC$15875_storedAdLayoutMetadata)})};
_.P.attached=function(){cm(this.JSC$15875_storedAdSlotMetadata,this.JSC$15875_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gIK(cW(),this.JSC$15875_storedAdSlotMetadata,this.JSC$15875_storedAdLayoutMetadata)};
_.P.detached=function(){cm(this.JSC$15875_storedAdSlotMetadata,this.JSC$15875_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&R7(cW(),this.JSC$15875_storedAdSlotMetadata,this.JSC$15875_storedAdLayoutMetadata)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15875_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15875_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15875_storedAdLayoutMetadata!==void 0&&this.JSC$15875_storedAdSlotMetadata!==void 0&&R7(cW(),this.JSC$15875_storedAdSlotMetadata,this.JSC$15875_storedAdLayoutMetadata),gIK(cW(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15875_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15875_storedAdSlotMetadata=this.adSlotMetadata)};
_.Nh.Object.defineProperties(wC.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
wC.prototype.onAdMetadataChanged=wC.prototype.onAdMetadataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],wC.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wC.prototype,"data",void 0);_.r([_.A("data.adLayoutMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],wC.prototype,"adLayoutMetadata",null);
_.r([_.E(),_.h("design:type",Object)],wC.prototype,"adSlotMetadata",void 0);_.r([_.wD("adLayoutMetadata","adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wC.prototype,"onAdMetadataChanged",null);_.r([_.Jc({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],wC);
_.B(wC,"ytd-page-top-ad-layout-renderer",function(){if(qsi!==void 0)return qsi;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return qsi=
G},{mode:_.Qc("kevlar_poly_si_batch_j070")?1:2});var UQk;var F9=function(){var G=_.J.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.typographyBump=!1;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.u(F9,_.J);_.P=F9.prototype;
_.P.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.P.ready=function(){var G=this;mTq(function(){G.isAttached&&G.adSlotMetadata&&y3e(cW(),G.adSlotMetadata)})};
_.P.attached=function(){if(this.adSlotMetadata){var G;if(this.adSlotMetadata===((G=this.data)==null?void 0:G.adSlotMetadata))XFN(cW(),this.adSlotMetadata);else{var c;_.Ck(Error("Oh`"+this.adSlotMetadata+"`"+((c=this.data)==null?void 0:c.adSlotMetadata)))}}};
_.P.detached=function(){this.adSlotMetadata&&y3e(cW(),this.adSlotMetadata)};
_.P.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.P.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&y3e(cW(),this.adSlotMetadata),XFN(cW(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Nh.Object.defineProperties(F9.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var G,c,I=_.D((G=this.data)==null?void 0:(c=G.fulfillmentContent)==null?void 0:c.fulfilledLayout,_.hDp),R;return(G=(R=_.D(I==null?void 0:I.renderingContent,tIN))==null?void 0:R.layout)?G.toLowerCase().replace(/_/g,"-"):""}}});
F9.prototype.onAdSlotMetadataChanged=F9.prototype.onAdSlotMetadataChanged;F9.prototype.onTypographyBumpChanged=F9.prototype.onTypographyBumpChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],F9.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],F9.prototype,"rendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],F9.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],F9.prototype,"noBottomMargin",void 0);_.r([_.E(),_.h("design:type",Object)],F9.prototype,"overlayDensity",void 0);_.r([_.E(),_.h("design:type",Object)],F9.prototype,"typographyBump",void 0);_.r([_.E(),_.h("design:type",Object)],F9.prototype,"extractOverlay",void 0);_.r([_.E(),_.h("design:type",Object)],F9.prototype,"extractActionBar",void 0);
_.r([_.nH("ytd-in-feed-ad-layout-renderer"),_.h("design:type",HTMLElement)],F9.prototype,"inFeedAdLayoutRenderer",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],F9.prototype,"layout",null);_.r([_.wD("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F9.prototype,"onTypographyBumpChanged",null);
_.r([_.wD("data.adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F9.prototype,"onAdSlotMetadataChanged",null);_.r([_.Jc({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],F9);
_.B(F9,"ytd-ad-slot-renderer",function(){if(UQk!==void 0)return UQk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return UQk=G},{mode:_.Qc("kevlar_poly_si_batch_j077")?
1:2});var ukT;var ng=function(){return _.J.apply(this,arguments)||this};
_.u(ng,_.J);_.P=ng.prototype;_.P.created=function(){this.activeView=new rQ(this.hostElement)};
_.P.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P.maybeComputeHref=function(){return null};
_.P.onTap=function(){};
_.P.onThumbnailContainerClick=function(G){this.onClick(G)};
_.P.onClick=function(G){var c,I=(c=this.data)==null?void 0:c.navigationEndpoint;I&&_.D(I,_.fR)&&(this.ytSparklesClickLocationBehavior.handleClick(I,G,!1),G.stopPropagation())};
_.P.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var G=_.Q(this.data.impressionUrls),c=G.next();!c.done;c=G.next())c=c.value,gWA(c,GzB(c));this.data.activeView&&jH(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",ng.JSC$15883_DEFAULT_CLICK_LOCATION_BEHAVIOR,ng.JSC$15883_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))}};
_.P.attached=function(){var G=this;_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xw(G.activeView)})};
_.P.detached=function(){_.v("stop_av_measurement_on_detach")&&xw(this.activeView)};
_.Nh.Object.defineProperties(ng.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
ng.prototype.dataChanged=ng.prototype.dataChanged;ng.prototype.onTap=ng.prototype.onTap;ng.JSC$15883_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
ng.JSC$15883_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"}];_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ng.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ng.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ng.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],ng.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],ng.prototype,"ytSparklesClickLocationBehavior",void 0);
_.r([_.E({selector:_.J0}),_.h("design:type",Object)],ng.prototype,"isGridViewEnabled",void 0);_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ng.prototype,"watchFeedBigThumbs",null);_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],ng.prototype,"thumbnailWidth",null);_.r([_.E(),_.h("design:type",Object)],ng.prototype,"data",void 0);
_.r([_.nH("ytd-thumbnail"),_.h("design:type",HTMLElement)],ng.prototype,"thumbnail",void 0);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ng.prototype,"onTap",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ng.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],ng);
_.B(ng,"ytd-compact-promoted-video-renderer",function(){if(ukT!==void 0)return ukT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ukT=G},{mode:1});var bvB;_.Su("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var vW=function(){return _.J.apply(this,arguments)||this};
_.u(vW,_.J);vW.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],vW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],vW.prototype,"data",void 0);_.r([_.Jc({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],vW);
_.B(vW,"ytd-search-pyv-renderer",function(){if(bvB!==void 0)return bvB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return bvB=G},{mode:1});var kJk;_.Su("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Dc=function(){var G=_.J.apply(this,arguments)||this;G.roundedContainer=!0;G.JSC$15891_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.u(Dc,_.J);_.P=Dc.prototype;
_.P.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.P.onStampFinished=function(){this.JSC$15891_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.Q1(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");G?G.openDialog():this.JSC$15891_handleOpenPostCommentDialogActionAfterStamp=!0};
_.P.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.P.computeHideBorder=function(){return this.isInEngagementPanel};
_.P.computeIsCompact=function(){return this.isInEngagementPanel};
_.P.computeUsesCompactLockup=function(G){return G==="BACKSTAGE_SURFACE_TYPE_HOME"||G==="BACKSTAGE_SURFACE_TYPE_SEARCH"||G==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||G==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||G==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||G==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeUsesFullLockup=function(){var G,c=(G=this.data)==null?void 0:G.post,I;G=(I=_.D(c,KB9))==null?void 0:I.surface;var R;I=(R=_.D(c,m70))==null?void 0:R.originalPost;var Z;if(R=G||((Z=_.D(I,KB9))==null?void 0:Z.surface))return!this.computeUsesCompactLockup(R)&&this.useUpdatedRepostUi;var K;return((K=_.D(c,m70))==null?void 0:K.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Nh.Object.defineProperties(Dc.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var G,c;return((c=_.D((G=this.data)==null?void 0:G.post,KB9))==null?void 0:c.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useUpdatedRepostUi}}});
Dc.prototype.onYtCommentModerationPanelEmpty=Dc.prototype.onYtCommentModerationPanelEmpty;Dc.prototype.onStampFinished=Dc.prototype.onStampFinished;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Dc.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Dc.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Dc.prototype,"roundedContainer",void 0);_.r([_.E({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Dc.prototype,"hideBorder",void 0);_.r([_.E({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Dc.prototype,"isCompact",void 0);
_.r([_.E({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Dc.prototype,"usesFullLockup",void 0);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Dc.prototype,"onStampFinished",null);
_.r([_.qY("ytd-comment-moderation-panel-empty"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Dc.prototype,"onYtCommentModerationPanelEmpty",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Dc.prototype,"isInEngagementPanel",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Dc.prototype,"useUpdatedRepostUi",null);
_.r([_.Jc({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Dc);
_.B(Dc,"ytd-backstage-post-thread-renderer",function(){if(kJk!==void 0)return kJk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return kJk=G},{mode:1});var sF9;var o7=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(o7,_.J);o7.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
o7.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var G=this.data.thumbnail.thumbnails;this.isDarkTheme&&(G=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(G=_.ZX(G,24,void 0,"height"))?G:void 0}};
o7.prototype.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
o7.prototype.computeHasText=function(){var G;return!((G=this.data)==null||!G.text)};
_.Nh.Object.defineProperties(o7.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.dS(this.bannerImageUrl))+'");'}}});
o7.prototype.computeHasText=o7.prototype.computeHasText;o7.prototype.computeBannerImageUrl=o7.prototype.computeBannerImageUrl;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],o7.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],o7.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],o7.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],o7.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",String)],o7.prototype,"bannerImageUrl",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.h("design:type",Boolean)],o7.prototype,"hasText",void 0);_.r([_.wD("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],o7.prototype,"computeBannerImageUrl",null);
_.r([_.wD("data.text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],o7.prototype,"computeHasText",null);_.r([_.A("bannerImageUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],o7.prototype,"bannerStyle",null);_.r([_.Jc({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],o7);
_.B(o7,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(sF9!==void 0)return sF9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return sF9=G},{mode:1});var LsT;var US=function(){return _.J.apply(this,arguments)||this};
_.u(US,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],US.prototype,"data",void 0);_.r([_.Jc({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],US);
_.B(US,"ytd-backstage-zero-state-renderer",function(){if(LsT!==void 0)return LsT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return LsT=G},{mode:1});var AWT;var uj=function(){return _.J.apply(this,arguments)||this};
_.u(uj,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uj.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],uj.prototype,"icon",void 0);_.r([_.Jc({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],uj);
_.B(uj,"ytd-post-filter-zero-state-renderer",function(){if(AWT!==void 0)return AWT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return AWT=G},{mode:1});var $Q2;var Ss0={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},bj=function(){return _.J.apply(this,arguments)||this};
_.u(bj,_.J);bj.prototype.configureRendererStamper=function(){return Ss0};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],bj.prototype,"rendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bj.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],bj.prototype,"icon",void 0);_.r([_.Jc({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],bj);
_.B(bj,"ytd-post-scheduling-zero-state-renderer",function(){if($Q2!==void 0)return $Q2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return $Q2=G},{mode:1});var pOk;var kB=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return G};
_.u(kB,_.J);kB.prototype.onTabsActivate=function(G){this.data&&this.data.tabs&&_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[G.detail.selected].navigationEndpoint})};
kB.prototype.shouldShowTotalCount=function(G){return G&&G.totalCount!==void 0};
kB.prototype.handleUpdatePostsTotalCountAction=function(G){var c=this.get(["data.tabs",1,"totalCount"]),I=this.get("updatePostsTotalCountAction.updateType",G);G=this.get("updatePostsTotalCountAction.number",G);c!==void 0&&I!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&G&&(I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(c)+G):I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(c)-G))};
_.Nh.Object.defineProperties(kB.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var G=0,c=this.data.tabs.length;G<c;G++)if(this.data.tabs[G].selected)return G;return 0}}});
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],kB.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],kB.prototype,"rendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kB.prototype,"data",void 0);_.r([_.A("data.tabs"),_.h("design:type",Number),_.h("design:paramtypes",[])],kB.prototype,"selected",null);_.r([_.Jc({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],kB);
_.B(kB,"ytd-post-stream-filter-renderer",function(){if(pOk!==void 0)return pOk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return pOk=G},{mode:1});var MQK;var sS=function(){return _.J.apply(this,arguments)||this};
_.u(sS,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sS.prototype,"kevlarBehaviors",void 0);_.r([_.E(),_.h("design:type",Object)],sS.prototype,"data",void 0);_.r([_.Jc({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],sS);
_.B(sS,"ytd-channel-age-gate-renderer",function(){if(MQK!==void 0)return MQK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return MQK=G},{mode:1});var VQ0;_.Su("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Lg=function(){var G=_.J.apply(this,arguments)||this;G.data=null;return G};
_.u(Lg,_.J);Lg.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Nh.Object.defineProperties(Lg.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.data)==null?0:(c=G.title)==null?0:(I=c.runs)==null?0:I.length)?147:160}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Lg.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Lg.prototype,"imageSizePx",null);_.r([_.Jc({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Lg);
_.B(Lg,"ytd-channel-owner-empty-state-renderer",function(){if(VQ0!==void 0)return VQ0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return VQ0=G},{mode:1});var zrT;var EG0;var AZ=function(){var G=_.J.apply(this,arguments)||this;G.boundSubmitSearch=function(){G.submitSearch()};
G.boundClearSearch=function(){G.clearSearch()};
return G};
_.u(AZ,_.J);_.P=AZ.prototype;_.P.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.P.toggleClearButton=function(){this.hideClearButton=CTK||!this.input.value};
_.P.submitOnEnterKeyUp=function(G){G.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.P.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.P.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.P.submit=function(){_.Xl(this.hostElement,"search-query-changed",this.input.value)};
AZ.prototype.toggleClearButton=AZ.prototype.toggleClearButton;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],AZ.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],AZ.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],AZ.prototype,"hideClearButton",void 0);_.r([_.E(),_.h("design:type",Object)],AZ.prototype,"boundSubmitSearch",void 0);_.r([_.E(),_.h("design:type",Object)],AZ.prototype,"boundClearSearch",void 0);_.r([_.nH("#input"),_.h("design:type",Object)],AZ.prototype,"input",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AZ.prototype,"toggleClearButton",null);
_.r([_.Jc({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],AZ);
_.B(AZ,"ytd-channel-switcher-search-box-renderer",function(){if(EG0!==void 0)return EG0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return EG0=G},{mode:1});var JWk;var $B=function(){var G=_.J.apply(this,arguments)||this;G.boundSubmit=function(){G.submit()};
return G};
_.u($B,_.J);_.P=$B.prototype;_.P.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P.ready=function(){var G=this;this.form.addEventListener("submit",function(c){return G.onSubmit(c)})};
_.P.onSubmit=function(G){G.preventDefault();return!1};
_.P.toggleClearButton=function(){this.hideClearButton=CTK||!this.input.value};
_.P.submitOnEnterKeyUp=function(G){G.keyCode===13&&this.submit()};
_.P.submit=function(){var G=this.data.endpoint,c=(0,_.rx.unsafeClone)(G);_.D(c,_.qD)?_.D(c,_.qD).query=this.input.value:_.D(c,_.wn)&&(_.D(c,_.wn).query=this.input.value);var I=_.D(c.commandMetadata,_.Pd);(I==null?0:I.url)?(I.url=_.gj(I.url,"query",this.input.value),_.Xl(this.hostElement,"yt-navigate",{endpoint:c})):_.D(c,WlN)?(_.D(c,WlN).channelSwitcherQuery=this.input.value,_.wH().resolve(_.n4).resolveCommand(c,{form:{element:this.hostElement}})):(G=Error("Ph`"+JSON.stringify(G)),_.hg(G))};
_.P.getUrl=function(G){return this.get("commandMetadata.webCommandMetadata.url",G)};
$B.prototype.toggleClearButton=$B.prototype.toggleClearButton;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$B.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],$B.prototype,"hideClearButton",void 0);
_.r([_.E(),_.h("design:type",Object)],$B.prototype,"boundSubmit",void 0);_.r([_.nH("#form"),_.h("design:type",HTMLFormElement)],$B.prototype,"form",void 0);_.r([_.nH("#input"),_.h("design:type",Object)],$B.prototype,"input",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$B.prototype,"toggleClearButton",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],$B);
_.B($B,"ytd-search-box-renderer",function(){if(JWk!==void 0)return JWk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <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');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return JWk=G},{mode:2});var St=function(){var G=_.J.apply(this,arguments)||this;G.showSearchBox=!0;return G};
_.u(St,_.J);St.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],St.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],St.prototype,"showSearchBox",void 0);_.r([_.Jc({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],St);
_.B(St,"ytd-channel-switcher-header-renderer",function(){if(zrT!==void 0)return zrT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return zrT=G},{mode:1});var WsA;var ivp;var pg=function(){var G=_.J.apply(this,arguments)||this;G.isDisplayed=!0;return G};
_.u(pg,_.J);_.P=pg.prototype;_.P.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.isDisplayed=!0};
_.P.computeType=function(G){return G||"UNKNOWN"};
_.P.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isDisplayed=!1};
_.P.onClose=function(){this.isDisplayed=!1};
pg.prototype.onYtServiceRequestCompleted=pg.prototype.onYtServiceRequestCompleted;pg.prototype.dataChanged=pg.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pg.prototype,"data",void 0);
_.r([_.E({computed:"computeType(data.type)",reflectToAttribute:!0}),_.h("design:type",String)],pg.prototype,"type",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],pg.prototype,"isDisplayed",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pg.prototype,"dataChanged",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pg.prototype,"onYtServiceRequestCompleted",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],pg);
_.B(pg,"ytd-alert-with-button-renderer",function(){if(ivp!==void 0)return ivp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ivp=G},{mode:1});var M6=function(){var G=_.J.apply(this,arguments)||this;G.noResult=!1;G.enableAlertBanner=!1;G.dismissedAlertBanner=!1;G.hideCreateChannelButton=!1;G.boundDismissAlertBanner=function(){G.dismissAlertBanner()};
G.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return G};
_.u(M6,_.J);_.P=M6.prototype;_.P.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.P.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.P.updateChannelSwitcherAction=function(G){var c;G=(c=_.D(G,V7A))==null?void 0:c.page;_.D(G,M7N)!==void 0&&(this.data=_.D(G,M7N))};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.searchQueryChanged=function(G,c){if(this.data&&this.data.contents&&this.data.contents.length){G=[];var I=[];this.hideCreateChannelButton=this.noResult=!1;for(var R=document.querySelectorAll("ytd-account-item-renderer"),Z=_.Q(R),K=Z.next();!K.done;K=Z.next())K=K.value,I.push(K),K.style.display="block";this.resetRightBorder(I);if(c){this.hideCreateChannelButton=!0;for(I=1;I<this.data.contents.length;I++)if(K=this.data.contents[I],_.D(K,zD0)){var m=void 0,a=void 0;Z=(m=_.D(K,zD0))==null?void 0:(a=
m.accountName)==null?void 0:a.simpleText;a=m=void 0;K=(m=_.D(K,zD0))==null?void 0:(a=m.channelHandle)==null?void 0:a.simpleText;(m=R[I-1])&&Z&&_.er(Z,c)?G.push(m):_.v("enable_handle_search_on_channel_switcher")&&m&&K&&_.er(K.toString(),c.toString())?G.push(m):m.style.display="none"}G.length===0&&(this.noResult=!0);this.resetRightBorder(G)}}};
_.P.resetRightBorder=function(G){for(var c=0;c<G.length;c++)G[c].style.borderRight=!this.hideCreateChannelButton&&(c+2)%3===0||this.hideCreateChannelButton&&(c+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.P.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.P.setShowSearchBox=function(G){if(G&&G.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var c=0;c<G.contents.length;c++)_.D(G.contents[c],_.Zo)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.P.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Nh.Object.defineProperties(M6.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.contents)}}});
M6.prototype.onContinuationItemsUpdated=M6.prototype.onContinuationItemsUpdated;M6.prototype.searchQueryChanged=M6.prototype.searchQueryChanged;M6.prototype.onDataChanged=M6.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],M6.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],M6.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],M6.prototype,"data",void 0);_.r([_.nH("ytd-channel-switcher-header-renderer"),_.h("design:type",Object)],M6.prototype,"channelSwitcherHeaderRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],M6.prototype,"noResult",void 0);
_.r([_.E(),_.h("design:type",Object)],M6.prototype,"enableAlertBanner",void 0);_.r([_.E(),_.h("design:type",Object)],M6.prototype,"dismissedAlertBanner",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],M6.prototype,"hideCreateChannelButton",void 0);_.r([_.A("data.contents"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],M6.prototype,"isLoading",null);_.r([_.E(),_.h("design:type",Object)],M6.prototype,"boundDismissAlertBanner",void 0);
_.r([_.E({computed:"computeButtonOverride()"}),_.h("design:type",Object)],M6.prototype,"buttonOverride",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],M6.prototype,"onDataChanged",null);_.r([_.qY("search-query-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],M6.prototype,"searchQueryChanged",null);
_.r([_.qY("yt-next-continuation-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],M6.prototype,"onContinuationItemsUpdated",null);_.r([_.Jc({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],M6);
_.B(M6,"ytd-channel-switcher-page-renderer",function(){if(WsA!==void 0)return WsA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return WsA=G},{mode:1});var fxT;var B6T;var Vi=function(){var G=_.J.apply(this,arguments)||this;G.images=[];G.selectedImageIndex=0;return G};
_.u(Vi,_.J);_.P=Vi.prototype;
_.P.ready=function(){_.Ld(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Ld(this.JSC$15936_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Ld(this.JSC$15936_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Ld(this.JSC$15936_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.P.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.P.updateImageThumbnails=function(G){G=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:G.event_.detail});this.images.splice(this.selectedImageIndex,1,G);this.images=[].concat(_.jn(this.images))};
_.P.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Xl(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.P.saveImageRepositions=function(){this.selectedImageIndex=0;_.Xl(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Nh.Object.defineProperties(Vi.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var G=this;return(this.images||[]).map(function(c,I){return{image:c,selected:I===G.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("ytd-backstage-image-preview-renderer"),_.h("design:type",Object)],Vi.prototype,"JSC$15936_imagePreviewContainer",void 0);_.r([_.nH(".thumbnail-images-container"),_.h("design:type",HTMLElement)],Vi.prototype,"thumbnailImagesContainer",void 0);_.r([_.E(),_.h("design:type",Array)],Vi.prototype,"images",void 0);
_.r([_.E(),_.h("design:type",Object)],Vi.prototype,"repositionInstructions",void 0);_.r([_.E(),_.h("design:type",Object)],Vi.prototype,"selectedImageIndex",void 0);_.r([_.A("images","selectedImageIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],Vi.prototype,"thumbnailRendererDatas",null);_.r([_.A("images","selectedImageIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],Vi.prototype,"selectedImageData",null);
_.r([_.Jc({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Vi);
_.B(Vi,"ytd-backstage-multi-image-reposition-renderer",function(){if(B6T!==void 0)return B6T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return B6T=G},{mode:1});var zU=function(G,c){_.r4.call(this);this.uploadUrl=G;this.channelId=c;this.imagesUploadData=[]};
_.u(zU,_.r4);zU.prototype.getAllUploadStatuses=function(){var G=this,c,I,R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(rWA(G),2);c=Z.yieldResult;I=c.get("succeed");R=c.get("failed");return Z.return(I.concat(R))})};
var xQK=function(G){var c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(rWA(G),2);c=R.yieldResult;I=c.get("failed");I.length>0&&jF9(G,I);return R.return(G.getAllUploadStatuses())})},rWA=function(G){var c,I,R,Z,K,m,a;
return _.T(function(O){if(O.nextAddress==1)return c=new Map,O.yield(Promise.allSettled(G.imagesUploadData.map(function(N){return N.uploadPromise})),2);
I=O.yieldResult;R=[];Z=_.Q(I);for(K=Z.next();!K.done;K=Z.next())m=K.value,m.status==="fulfilled"&&R.push(m.value);a=G.imagesUploadData.map(function(N){return N.image}).filter(function(N){return R.every(function(q){return q.id!==N.id})});
c.set("succeed",R);c.set("failed",a);return O.return(c)})},jF9=function(G,c){c=_.Q(c);
for(var I=c.next();!I.done;I=c.next()){var R=G;I=I.value;tQe(R,I.id)>=0&&R.cancel(I.id);var Z=new hrK(I),K=_.u8V(R.uploadUrl,{"X-YouTube-ChannelId":R.channelId},I.imageBlob);Z.transfer=K;Z.uploadPromise=dQ0(K,I);R.imagesUploadData.push(Z);K.run()}};
zU.prototype.cancel=function(G){var c=tQe(this,G);c!==-1&&((c=this.imagesUploadData[c].transfer)&&c.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(I){return I.image.id!==G}))};
var tQe=function(G,c){return G.imagesUploadData.findIndex(function(I){return I.image.id===c})},dQ0=function(G,c){return new Promise(function(I,R){G.listen("l",function(){var Z=G.getResponseText();
Z?(Z=JSON.parse(Z).encryptedBlobId,c.encryptedBlobId=Z,I(c)):R("upload failed")});
G.listen("n",function(){R("upload failed")})})},hrK=function(G){this.image=G};var yoA=function(G,c,I,R,Z){this.id=G;this.imageBlob=c;this.localImageSrc=I;this.naturalWidth=R;this.naturalHeight=Z;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 CLk=[".jpeg",".jpg",".png"],ES=function(){var G=_.J.apply(this,arguments)||this;G.showImagesPreview=!1;G.pollOptions=[];G.errorMessage="";G.optionPlaceholderText="";G.optionDefaultText="";G.JSC$15947_imageId=0;G.maxFileSizeMb=0;G.maxAspectRatio=0;G.invalidFileSizeError="";G.invalidAspectRatioError="";G.invalidFileTypeError="";G.imageSelector=new rA(null,"single_file",CLk);return G};
_.u(ES,_.J);_.P=ES.prototype;_.P.ready=function(){_.Ld(this.imageSelector,"j",this.onImageSelect,!1,this);_.Ld(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Ld(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.P.dataChanged=function(){var G,c,I=_.D((G=this.data)==null?void 0:(c=G.cellTemplate)==null?void 0:c.onEmptyCellTap,lsN);if(I&&I.uploadUrl&&I.channelId){var R;this.maxFileSizeMb=((R=I.imageValidationInfo)==null?void 0:R.maxFileSizeMb)||0;var Z;this.maxAspectRatio=((Z=I.imageValidationInfo)==null?void 0:Z.allowedMaxAspectRatio)||0;var K;this.invalidFileSizeError=this.getSimpleString((K=this.data)==null?void 0:K.invalidFileSizeError);var m;this.invalidAspectRatioError=this.getSimpleString((m=this.data)==
null?void 0:m.invalidAspectRatioError);var a;this.invalidFileTypeError=this.getSimpleString((a=this.data)==null?void 0:a.invalidFileTypeError);this.uploadManager=new zU(I.uploadUrl,I.channelId)}};
_.P.onEditorInfoChange=function(){this.optionPlaceholderText=_.HY(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.HY(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.P.observeAddImageError=function(){this.errorMessage!==""&&_.Xl(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.P.onPollOptionsChange=function(){for(var G=!1,c=[],I=0;I<this.pollOptions.length;I++){var R=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(I+1);this.pollOptions[I].placeholderText!==R?(G=!0,c.push(Object.assign({},this.pollOptions[I],{placeholderText:R}))):c.push(this.pollOptions[I])}G&&(this.pollOptions=c);this.isValid()?_.Xl(this.hostElement,"yt-commentbox-post-enable"):_.Xl(this.hostElement,"yt-commentbox-post-disable")};
_.P.createPollOptions=function(G){var c=[],I;G=(I=G==null?void 0:G.minPollOptions)!=null?I:0;for(I=0;I<G;I++)c.push(this.createPollOption());return c};
_.P.onImageSelect=function(G){var c=this,I,R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1){if(c.selectedImageIndex===void 0)return O.jumpTo(0);I=G.files[0];c.errorMessage="";R=c.validateImage(I);if(R!=="")return c.errorMessage=R,O.return();Z=new pJ(c.maxAspectRatio,!1,!0);return O.yield(Z.transform(I),3)}if(O.nextAddress!=4)return K=O.yieldResult,K.transformedData?K.invalidAspectRatio?(c.errorMessage=c.invalidAspectRatioError,O.return()):O.yield(guq(c.JSC$15947_imageId,G.files[0],K.transformedData),
4):(c.errorMessage=c.invalidFileTypeError,O.return());m=O.yieldResult;c.JSC$15947_imageId++;jF9(c.uploadManager,[m]);a=Object.assign({},c.pollOptions[c.selectedImageIndex],{image:m});c.pollOptions.splice(c.selectedImageIndex,1,a);c.refreshPollOptions();_.Xl(c.hostElement,"yt-backstage-poll-image-select");_.Vp(O)})};
_.P.validateImage=function(G){return G.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.P.refreshPollOptions=function(){this.pollOptions=[].concat(_.jn(this.pollOptions))};
_.P.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.jn(this.pollOptions),[this.createPollOption()]))};
_.P.onRemovePollOption=function(G){var c=this.pollOptions[G.model.index];c&&c.image&&this.uploadManager.cancel(c.image.id);this.pollOptions.splice(G.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Xl(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.P.onTextInput=function(){this.refreshPollOptions()};
_.P.onImageButtonClick=function(G){this.selectedImageIndex=G.model.index;this.imageSelector.click()};
_.P.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.P.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.P.saveImageRepositions=function(G){G=G.event_.detail;for(var c=0,I=[],R=_.Q(this.pollOptions),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.image!==void 0?(Z=Object.assign({},Z,{image:G[c]}),I.push(Z),c++):I.push(Z);this.showImagesPreview=!1;this.pollOptions=[].concat(_.jn(I))};
_.P.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var G=0,c=_.Q(this.pollOptions),I=c.next();!I.done;I=c.next())if(I=I.value,I.optionText.trim()!==""||I.image!==void 0){if(!I.image||this.hasCustomOptionText&&I.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;G++}return G>=Number(this.editorInfo.minPollOptions)};
_.P.getAllUploadStatuses=function(){var G=this,c,I,R,Z;return _.T(function(K){if(K.nextAddress==1)return K.yield(G.uploadManager.getAllUploadStatuses(),2);c=K.yieldResult;I=_.Q(c);for(R=I.next();!R.done;R=I.next())if(Z=R.value,Z.encryptedBlobId===void 0)return K.return(xQK(G.uploadManager));return K.return(c)})};
_.P.getPostCreateOptions=function(){for(var G=[],c=_.Q(this.pollOptions),I=c.next();!I.done;I=c.next())I=I.value,I.image!==void 0&&G.push({text:this.hasCustomOptionText?I.optionText:I.placeholderText,image:I.image});return G};
_.P.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.P.createButtonRenderer=function(G,c){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleString(G)}},isDisabled:c}};
_.P.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.P.computeThumbnailRendererData=function(G){return G?{image:G,selected:!1}:void 0};
_.P.getSimpleString=function(G){return _.HY(G)};
_.P.updateOptionTextFromBinding=function(G){if(G.target){var c=Array.from(_.Q1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(G.target);if(c>=0){var I;this.pollOptions[c].optionText=(I=G.detail.value)!=null?I:""}}};
_.Nh.Object.defineProperties(ES.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,c;return this.pollOptions.length<((c=(G=this.editorInfo)==null?void 0:G.maxPollOptions)!=null?c:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(G){return G.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(G){return G.image}).map(function(G){return G.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(G){return G.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.data)==null?void 0:G.addOptionButtonText;return c?this.createButtonRenderer(c,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.data)==null?void 0:G.repositionImagesButtonLabel;return c?this.createButtonRenderer(c,!this.hasImages):void 0}}});
ES.prototype.onPollOptionsChange=ES.prototype.onPollOptionsChange;ES.prototype.observeAddImageError=ES.prototype.observeAddImageError;ES.prototype.onEditorInfoChange=ES.prototype.onEditorInfoChange;ES.prototype.dataChanged=ES.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("ytd-backstage-multi-image-reposition-renderer"),_.h("design:type",Object)],ES.prototype,"imageRepositionContainer",void 0);
_.r([_.E(),_.h("design:type",Object)],ES.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],ES.prototype,"editorInfo",void 0);_.r([_.E(),_.h("design:type",zU)],ES.prototype,"uploadManager",void 0);_.r([_.E(),_.h("design:type",Object)],ES.prototype,"showImagesPreview",void 0);_.r([_.E(),_.h("design:type",Array)],ES.prototype,"pollOptions",void 0);_.r([_.E(),_.h("design:type",Object)],ES.prototype,"errorMessage",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ES.prototype,"dataChanged",null);_.r([_.uO("editorInfo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ES.prototype,"onEditorInfoChange",null);_.r([_.wD("errorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ES.prototype,"observeAddImageError",null);
_.r([_.uO("pollOptions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ES.prototype,"onPollOptionsChange",null);_.r([_.A("pollOptions","editorInfo"),_.h("design:type",Object),_.h("design:paramtypes",[])],ES.prototype,"isAllowedToAddOption",null);_.r([_.A("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],ES.prototype,"hasImages",null);
_.r([_.A("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],ES.prototype,"imagesToReposition",null);_.r([_.A("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],ES.prototype,"hasCustomOptionText",null);_.r([_.A("data","isAllowedToAddOption"),_.h("design:type",Object),_.h("design:paramtypes",[])],ES.prototype,"addOptionButton",null);_.r([_.A("data","hasImages"),_.h("design:type",Object),_.h("design:paramtypes",[])],ES.prototype,"repositionImagesButton",null);
_.r([_.Jc({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],ES);
_.B(ES,"ytd-backstage-image-poll-editor-renderer",function(){if(fxT!==void 0)return fxT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return fxT=G},{mode:2});var Hvp={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 XOV;var JZ=function(){var G=_.J.apply(this,arguments)||this;G.a11yConfig=Hvp;G.imageDisplayOffsetTop=0;G.imageDisplayOffsetLeft=0;G.pickerDisplayOffsetTop=0;G.pickerDisplayOffsetLeft=0;G.showPreviewContainer=!0;G.startPicker=!1;G.repositionOptional=!1;G.editOnlyMode=!1;G.savedImageDisplayOffsetTop=0;G.savedImageDisplayOffsetLeft=0;return G};
_.u(JZ,_.J);_.P=JZ.prototype;_.P.created=function(){_.qe.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(G){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var c=0,I=0,R="";switch(G.detail.keyboardEvent.key){case "ArrowUp":YiO(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:c=this.imageHeight*.05*-1;break;case "ArrowDown":YiO(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
c=this.imageHeight*.05;break;case "ArrowLeft":YiO(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":YiO(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}R&&_.mJ(R)&&_.Xl(this.hostElement,"iron-announce",{text:_.mJ(R)});if(I||c)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+c)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.mJ(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),G=_.mJ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.Xl(this.hostElement,"iron-announce",{text:G})}};
_.P.getPreviewPosition=function(G,c,I,R){return Math.round(100*(G+c*.5-I)/R)};
_.P.calculateDisplayPosition=function(){var G=this.imageData.naturalWidth,c=this.imageData.naturalHeight;this.displayScale=Math.max(200/G,200/c);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var I=G*this.displayScale*this.imageData.previewCoordinates.left,R=c*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=c>G?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-I;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=G>c?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-R;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=G*this.displayScale;this.imageHeight=c*this.displayScale};
_.P.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.P.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.P.getSignedPosition=function(G,c,I){return c==="X"&&_.H1("HTML_DIR")==="rtl"?I==="-"?G+"px":G*-1+"px":I==="-"?G*-1+"px":G+"px"};
_.P.pickerMove=function(G){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var c=this.pickerOffsetX-G.clientX,I=this.pickerOffsetY-G.clientY;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-c))}};
_.P.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var G=this.generateCropPreview();G&&_.Xl(this.hostElement,"ytd-backstage-image-preview-coordinates-update",G)};
_.P.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Xl(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.P.deleteImage=function(){_.Xl(this.hostElement,"ytd-backstage-image-preview-delete")};
_.P.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.P.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var G=this.generateCropPreview();G&&_.Xl(this.hostElement,"ytd-backstage-image-preview-coordinates-save",G)};
_.P.getPreviewOffset=function(G,c,I){return c&&G?(I==="X"&&_.H1("HTML_DIR")==="rtl"?300/c*G:300/c*G*-1)+"px":"0px"};
_.P.getSimpleText=function(G){return G?_.HY(G):""};
_.P.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.Nh.Object.defineProperties(JZ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.mJ(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.mJ(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.mJ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.mJ(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.instruction)==null?void 0:(c=G.previewInstruction)==null?void 0:c.editButtonLabel;return I?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z=this.editOnlyMode?(G=this.instruction)==null?void 0:(c=G.editInstruction)==null?void 0:c.saveImagesButtonLabel:(I=this.instruction)==null?void 0:(R=I.editInstruction)==null?void 0:R.saveButtonLabel;return Z?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Z,accessibilityData:{accessibilityData:{label:this.getSimpleText(Z)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.instruction)==null?void 0:(c=G.previewInstruction)==null?void 0:c.deleteButtonLabel;return I?{size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.instruction)==null?void 0:(c=G.editInstruction)==null?void 0:c.cancelButtonLabel;G=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return I?{style:G,size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}: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"}}});
JZ.prototype.onEditOnlyModeUpdate=JZ.prototype.onEditOnlyModeUpdate;JZ.prototype.onImageChange=JZ.prototype.onImageChange;_.r([_.E(),_.h("design:type",yoA)],JZ.prototype,"imageData",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"instruction",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"a11yConfig",void 0);_.r([_.E(),_.h("design:type",Number)],JZ.prototype,"imageWidth",void 0);_.r([_.E(),_.h("design:type",Number)],JZ.prototype,"imageHeight",void 0);
_.r([_.E(),_.h("design:type",Number)],JZ.prototype,"displayScale",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"imageDisplayOffsetTop",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"imageDisplayOffsetLeft",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"pickerDisplayOffsetTop",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"pickerDisplayOffsetLeft",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"showPreviewContainer",void 0);
_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"startPicker",void 0);_.r([_.E(),_.h("design:type",Number)],JZ.prototype,"pickerOffsetX",void 0);_.r([_.E(),_.h("design:type",Number)],JZ.prototype,"pickerOffsetY",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"repositionOptional",void 0);_.r([_.E(),_.h("design:type",Object)],JZ.prototype,"editOnlyMode",void 0);_.r([_.nH("#picker-container"),_.h("design:type",HTMLElement)],JZ.prototype,"JSC$15960_pickerContainer",void 0);
_.r([_.nH("#picker"),_.h("design:type",HTMLElement)],JZ.prototype,"picker",void 0);_.r([_.nH("#preview-clipper"),_.h("design:type",HTMLElement)],JZ.prototype,"previewClipper",void 0);_.r([_.nH("#image-in-picker-background"),_.h("design:type",HTMLImageElement)],JZ.prototype,"JSC$15960_imageInBackground",void 0);_.r([_.nH("#image-in-picker"),_.h("design:type",HTMLImageElement)],JZ.prototype,"JSC$15960_imageInPicker",void 0);
_.r([_.nH("#image-in-preview-clipper"),_.h("design:type",HTMLImageElement)],JZ.prototype,"JSC$15960_imageInPreviewClipper",void 0);_.r([_.A("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],JZ.prototype,"altLabelForImage",null);_.r([_.A("imageHeight","imageWidth"),_.h("design:type",Number),_.h("design:paramtypes",[])],JZ.prototype,"pickerSize",null);
_.r([_.A("imageHeight","imageWidth"),_.h("design:type",Object),_.h("design:paramtypes",[])],JZ.prototype,"imageOrientationStyle",null);_.r([_.A("instruction"),_.h("design:type",Object),_.h("design:paramtypes",[])],JZ.prototype,"editButton",null);_.r([_.A("instruction","editOnlyMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],JZ.prototype,"saveButton",null);_.r([_.A("instruction"),_.h("design:type",Object),_.h("design:paramtypes",[])],JZ.prototype,"deleteButton",null);
_.r([_.A("instruction","editOnlyMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],JZ.prototype,"cancelButton",null);_.r([_.A("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.h("design:type",Number),_.h("design:paramtypes",[])],JZ.prototype,"cropOffsetTop",null);_.r([_.A("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.h("design:type",Number),_.h("design:paramtypes",[])],JZ.prototype,"cropOffsetLeft",null);
_.r([_.A("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],JZ.prototype,"pickerBackgroundStyle",null);_.r([_.A("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],JZ.prototype,"pickerDisplayStyle",null);_.r([_.A("cropOffsetLeft","cropOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],JZ.prototype,"imageInPickerStyle",null);
_.r([_.A("cropOffsetLeft","cropOffsetTop","pickerSize"),_.h("design:type",String),_.h("design:paramtypes",[])],JZ.prototype,"previewClipperStyle",null);_.r([_.uO("imageData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JZ.prototype,"onImageChange",null);_.r([_.uO("editOnlyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JZ.prototype,"onEditOnlyModeUpdate",null);
_.r([_.A("showPreviewContainer"),_.h("design:type",String),_.h("design:paramtypes",[])],JZ.prototype,"pickerModeStyle",null);_.r([_.Jc({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],JZ);
_.B(JZ,"ytd-backstage-image-preview-renderer",function(){if(XOV!==void 0)return XOV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return XOV=G},{mode:1});var yW9;var gGe={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 Ys9;var GHN;var WW=function(){var G=_.J.apply(this,arguments)||this;G.a11yConfig=gGe;G.imageDisplayOffsetTop=0;G.imageDisplayOffsetLeft=0;G.pickerDisplayOffsetTop=0;G.pickerDisplayOffsetLeft=0;G.cropCoordinatesSaved=!1;G.previewSize=0;G.startPicker=!1;G.repositionOptional=!1;return G};
_.u(WW,_.J);_.P=WW.prototype;_.P.created=function(){_.qe.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(G){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var c=0,I=0,R="";switch(G.detail.keyboardEvent.key){case "ArrowUp":GKA(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:c=this.imageHeight*.05*-1;break;case "ArrowDown":GKA(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
c=this.imageHeight*.05;break;case "ArrowLeft":GKA(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":GKA(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}R&&_.mJ(R)&&_.Xl(this.hostElement,"iron-announce",{text:_.mJ(R)});if(I||c)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+c)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.mJ(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),G=_.mJ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.Xl(this.hostElement,"iron-announce",{text:G})}};
_.P.getPreviewPosition=function(G,c,I,R){return Math.round(100*(G+c*.5-I)/R)};
_.P.displayImage=function(){var G=this.JSC$15971_pickerContainer.getBoundingClientRect().width,c=this.JSC$15971_pickerContainer.getBoundingClientRect().height,I=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),R=this.JSC$15971_imageInBackground.naturalWidth,Z=this.JSC$15971_imageInBackground.naturalHeight;this.displayScale=Math.max(I/R,I/Z);this.imageWidth=R*this.displayScale;this.imageHeight=Z*this.displayScale;this.pickerDisplayOffsetLeft=(G-I)/2;this.pickerDisplayOffsetTop=
(c-I)/2;this.imageDisplayOffsetLeft=Z>R?this.pickerDisplayOffsetLeft:(G-this.imageWidth)/2;this.imageDisplayOffsetTop=R>Z?this.pickerDisplayOffsetTop:(c-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.P.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15971_imageInBackground.src=this.imageData.toString(),this.JSC$15971_imageInPicker.src=this.imageData.toString(),this.JSC$15971_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.P.getSignedPosition=function(G,c,I){return c==="X"&&_.H1("HTML_DIR")==="rtl"?I==="-"?G+"px":G*-1+"px":I==="-"?G*-1+"px":G+"px"};
_.P.pickerMove=function(G){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var c=this.pickerOffsetX-G.clientX,I=this.pickerOffsetY-G.clientY;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-c))}};
_.P.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.P.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Xl(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.P.getPreviewOffset=function(G,c,I,R){return c&&G&&I?(R==="X"&&_.H1("HTML_DIR")==="rtl"?I/c*G:I/c*G*-1)+"px":"0px"};
_.P.getSimpleText=function(G){return G?_.HY(G):""};
_.P.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var G=this.cropOffsetTop/this.imageHeight,c=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,I=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,R=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Q1(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Xl(this.hostElement,"yt-img-crop-coordinates-update",{top:G,right:c,bottom:I,left:R})}};
_.Nh.Object.defineProperties(WW.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.mJ(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.mJ(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.mJ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.mJ(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var G,c=(G=this.learnMore.runs[0])==null?void 0:G.navigationEndpoint,I;return((I=_.D(c,_.ID))==null?void 0:I.url)||void 0}}}});
WW.prototype.onImageDataChange=WW.prototype.onImageDataChange;_.r([_.E(),_.h("design:type",Object)],WW.prototype,"imageData",void 0);_.r([_.E(),_.h("design:type",Object)],WW.prototype,"instruction",void 0);_.r([_.E(),_.h("design:type",Object)],WW.prototype,"a11yConfig",void 0);_.r([_.E(),_.h("design:type",Number)],WW.prototype,"imageWidth",void 0);_.r([_.E(),_.h("design:type",Number)],WW.prototype,"imageHeight",void 0);_.r([_.E(),_.h("design:type",Number)],WW.prototype,"displayScale",void 0);
_.r([_.E(),_.h("design:type",Object)],WW.prototype,"imageDisplayOffsetTop",void 0);_.r([_.E(),_.h("design:type",Object)],WW.prototype,"imageDisplayOffsetLeft",void 0);_.r([_.E(),_.h("design:type",Object)],WW.prototype,"pickerDisplayOffsetTop",void 0);_.r([_.E(),_.h("design:type",Object)],WW.prototype,"pickerDisplayOffsetLeft",void 0);_.r([_.E(),_.h("design:type",Object)],WW.prototype,"cropCoordinatesSaved",void 0);_.r([_.E(),_.h("design:type",Object)],WW.prototype,"previewSize",void 0);
_.r([_.E(),_.h("design:type",Object)],WW.prototype,"startPicker",void 0);_.r([_.E(),_.h("design:type",Number)],WW.prototype,"pickerOffsetX",void 0);_.r([_.E(),_.h("design:type",Number)],WW.prototype,"pickerOffsetY",void 0);_.r([_.E(),_.h("design:type",Object)],WW.prototype,"repositionOptional",void 0);_.r([_.nH("#picker-container"),_.h("design:type",HTMLElement)],WW.prototype,"JSC$15971_pickerContainer",void 0);_.r([_.nH("#picker"),_.h("design:type",HTMLElement)],WW.prototype,"picker",void 0);
_.r([_.nH("#image-in-picker-background"),_.h("design:type",HTMLImageElement)],WW.prototype,"JSC$15971_imageInBackground",void 0);_.r([_.nH("#image-in-picker"),_.h("design:type",HTMLImageElement)],WW.prototype,"JSC$15971_imageInPicker",void 0);_.r([_.nH("#image-in-preview-clipper"),_.h("design:type",HTMLImageElement)],WW.prototype,"JSC$15971_imageInPreviewClipper",void 0);_.r([_.nH("#full-image-as-preview"),_.h("design:type",HTMLImageElement)],WW.prototype,"imageAsPreview",void 0);
_.r([_.A("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],WW.prototype,"altLabelForImage",null);_.r([_.A("imageHeight","imageWidth"),_.h("design:type",Number),_.h("design:paramtypes",[])],WW.prototype,"pickerSize",null);_.r([_.A("imageHeight","imageWidth"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"imageOrientationStyle",null);
_.r([_.A("instruction.previewInstruction.editButtonLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"editButton",null);_.r([_.A("instruction.editInstruction.saveButtonLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"saveButton",null);_.r([_.A("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.h("design:type",Number),_.h("design:paramtypes",[])],WW.prototype,"cropOffsetTop",null);
_.r([_.A("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.h("design:type",Number),_.h("design:paramtypes",[])],WW.prototype,"cropOffsetLeft",null);_.r([_.A("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],WW.prototype,"pickerBackgroundStyle",null);_.r([_.A("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],WW.prototype,"pickerDisplayStyle",null);
_.r([_.A("cropOffsetLeft","cropOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],WW.prototype,"imageInPickerStyle",null);_.r([_.A("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.h("design:type",String),_.h("design:paramtypes",[])],WW.prototype,"previewClipperStyle",null);_.r([_.wD("imageData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WW.prototype,"onImageDataChange",null);
_.r([_.A("cropCoordinatesSaved"),_.h("design:type",String),_.h("design:paramtypes",[])],WW.prototype,"pickerModeStyle",null);_.r([_.A("instruction.editInstruction.learnMore"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"learnMore",null);_.r([_.A("learnMore"),_.h("design:type",Object),_.h("design:paramtypes",[])],WW.prototype,"learnMoreUrl",null);_.r([_.Em({is:"yt-img-crop-picker",disableElementRegistration:!0})],WW);
_.B(WW,"yt-img-crop-picker",function(){if(GHN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Ys9===void 0&&(Ys9=document.createElement("template"));var R=Ys9;I.call(c,R.content.cloneNode(!0),G.content.firstChild);GHN=G}G=GHN;return G},{mode:2});var ij=function(){var G=_.J.apply(this,arguments)||this;G.errorMessage="";G.hasPreview=!1;G.isBackstagePost=!1;G.dismissButtonOverrides={size:"XS"};return G};
_.u(ij,_.J);_.P=ij.prototype;_.P.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.detached=function(){this.removeOverlay()};
_.P.setPreview=function(G){_.Q1(this.hostElement).querySelector("#preview-picker").imageData=G;this.hasPreview=!0;_.Xl(this.hostElement,"yt-backstage-image-select-preview")};
_.P.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var G=_.Q1(this.hostElement).querySelector("#dropzone");G.classList.remove("dragover");G.classList.remove("error");_.Xl(this.hostElement,"yt-backstage-image-select-cancel")};
_.P.setupOverlay=function(){var G=this.imageUploadEndpoint;this.removeOverlay();if(G&&G.imageValidationInfo){var c=_.Q1(this.hostElement).querySelector("#dropzone"),I=_.Q1(this.hostElement).querySelector("#select");this.overlay=new VI(G.uploadUrl,G.channelId,G.imageValidationInfo.maxFileSizeMb,G.imageValidationInfo.allowedMaxAspectRatio,c,I,!0);_.Ld(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Ld(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Ld(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Ld(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Ld(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.P.removeOverlay=function(){this.overlay&&(_.BL(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.BL(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.BL(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.BL(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.BL(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.P.onDragOver=function(G){var c=_.Q1(this.hostElement).querySelector("#dropzone");_.as(c,"dragover",G.value)};
_.P.onPreview=function(G){this.setPreview(G.value)};
_.P.onImageError=function(G){if(G.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var c;G=(c=this.data)==null?void 0:c.fileSizeError}else if(G.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var I;G=(I=this.data)==null?void 0:I.invalidError}else if(G.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var R;G=(R=this.data)==null?void 0:R.invalidAspectRatioError}else return;this.errorMessage=_.HY(G);_.Q1(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.P.onImageAlert=function(G){this.onImageError(G)};
_.P.uploadPromise=function(){var G=this,c=this.overlay&&this.overlay.uploadPromise();if(c)return c.catch(function(){throw Error(G.data?_.HY(G.data.uploadFailureError):"");})};
_.Nh.Object.defineProperties(ij.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var G,c;if((G=this.data)==null?0:(c=G.icon)==null?0:c.iconType)return _.On(this.data.icon.iconType)}}});
ij.prototype.setupOverlay=ij.prototype.setupOverlay;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ij.prototype,"rendererStamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ij.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],ij.prototype,"imageUploadEndpoint",void 0);_.r([_.E(),_.h("design:type",Object)],ij.prototype,"errorMessage",void 0);
_.r([_.E(),_.h("design:type",VI)],ij.prototype,"overlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ij.prototype,"hasPreview",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ij.prototype,"isBackstagePost",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ij.prototype,"selectionCancel",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ij.prototype,"previewCancel",null);
_.r([_.A("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],ij.prototype,"icon",null);_.r([_.E(),_.h("design:type",Object)],ij.prototype,"dismissButtonOverrides",void 0);_.r([_.wD("imageUploadEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ij.prototype,"setupOverlay",null);_.r([_.Jc({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],ij);
_.B(ij,"ytd-backstage-image-select-renderer",function(){if(yW9!==void 0)return yW9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return yW9=G},{mode:1});var cVe;var IyK;var fg=function(){var G=_.J.apply(this,arguments)||this;G.selected=!1;return G};
_.u(fg,_.J);_.P=fg.prototype;_.P.computeSelected=function(G){return G==null?void 0:G.selected};
_.P.computeTransform=function(G,c,I){var R,Z,K=(Z=(R=this.imageContainer)==null?void 0:R.getBoundingClientRect())!=null?Z:{width:0,height:0};R=Math.max(K.width/c,K.height/I);I=I*R*G.top;return"translateX("+this.getSignedPosition(c*R*G.left,"X","-")+") translateY("+this.getSignedPosition(I,"Y","-")+")"};
_.P.getSignedPosition=function(G,c,I){return c==="X"&&_.H1("HTML_DIR")==="rtl"?I==="-"?G+"px":G*-1+"px":I==="-"?G*-1+"px":G+"px"};
_.P.onClick=function(){var G;_.Xl(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(G=this.data)==null?void 0:G.image)};
_.P.onKeyPress=function(G){if(G.keyCode===13)this.onClick()};
_.Nh.Object.defineProperties(fg.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:(c=G.image)==null?void 0:c.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.image){var c;G=(c=this.data)==null?void 0:c.image;return G.previewCoordinates.top!==0||G.previewCoordinates.left!==0?(c=this.computeTransform(G.previewCoordinates,G.naturalWidth,G.naturalHeight),G.naturalHeight>=G.naturalWidth?"width:inherit;transform:"+c+";":"height:inherit;transform:"+c+";"):G.naturalHeight>=G.naturalWidth?"width:inherit;":"height:inherit;"}}}});
fg.prototype.onKeyPress=fg.prototype.onKeyPress;_.r([_.nH(".image-container"),_.h("design:type",HTMLElement)],fg.prototype,"imageContainer",void 0);_.r([_.E(),_.h("design:type",Object)],fg.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.h("design:type",Object)],fg.prototype,"selected",void 0);_.r([_.A("data.image"),_.h("design:type",Object),_.h("design:paramtypes",[])],fg.prototype,"thumbnailUrl",null);
_.r([_.A("data.image","data.image.previewCoordinates"),_.h("design:type",Object),_.h("design:paramtypes",[])],fg.prototype,"thumbnailStyle",null);_.r([_.qY("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],fg.prototype,"onKeyPress",null);_.r([_.Jc({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],fg);
_.B(fg,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(IyK!==void 0)return IyK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return IyK=G},{mode:2});var BW=function(G,c,I){I=I===void 0?!1:I;_.r4.call(this);var R=this;this.dropZoneOverlay=new Bp(G);this.selectOverlay=I?new rA(c,"multiple_file",["image/*"]):new rA(c,"single_file",["image/*"]);this.handler=new _.D0(this);_.k9(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(c,"click",function(){R.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.u(BW,_.r4);BW.prototype.onChange=function(G){var c;(c=G.files)!=null&&c.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:G.files}))};var rC=function(){var G=_.J.apply(this,arguments)||this;G.addImageErrorMessage="";G.errorMessage="";G.images=[];G.selectedImageIndex=0;G.modern=_.v("web_modern_buttons");G.maxNumImagesPerPost=_.DH("max_num_images_per_post_web_ui");G.JSC$15986_imageId=0;return G};
_.u(rC,_.J);_.P=rC.prototype;_.P.created=function(){var G=this;this.JSC$15986_ytReorderableController=new _.nEK(100,function(c){G.handleDrop(c)})};
_.P.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Xl(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.P.observeDragToReorder=function(){var G=this;if(this.showImagesPreview){var c,I=L0e(_.th.getInstance(),(c=this.data)==null?void 0:c.dragToReorderTooltip);_.dJ.addLowPriorityJob(function(){_.cd(G.hostElement,I,G.thumbnailDragDropArea)})}};
_.P.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.P.computeThumbnail=function(G){return(G==null?void 0:G.localImageSrc)||void 0};
_.P.onRendererstamperFinished=function(){_.vET(this.JSC$15986_ytReorderableController,_.Q1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Q1(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.P.handleDrop=function(G){var c=G.currDragItem;if(c!=null&&c.data){G=this.images[this.selectedImageIndex];var I=c.data.image,R=this.images.indexOf(I)||0;c=_.JU(c.parentNode.children,c);this.images.splice(R,1);this.images.splice(c,0,I);this.images=[].concat(_.jn(this.images));this.selectedImageIndex=this.images.indexOf(G)}};
_.P.setUpImagePicker=function(){var G=this.imageUploadEndpoint;G&&G.imageValidationInfo&&(this.uploadManager=new zU(G.uploadUrl,G.channelId),this.initialPicker||(this.initialPicker=new BW(this.dropzone,this.selectLink,!0),_.Ld(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new BW(this.addImageButtonContainer,this.addImageSelectButton),_.Ld(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Ld(this.JSC$15986_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Ld(this.JSC$15986_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Ld(_.Q1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.P.detached=function(){this.initialPicker&&(_.BL(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.BL(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Gl(this.JSC$15986_ytReorderableController)};
_.P.onInitialSelectImages=function(G){var c=this;return _.T(function(I){return I.yield(c.onSelectImages(G,!1),0)})};
_.P.onAddImage=function(G){var c=this;return _.T(function(I){return I.yield(c.onSelectImages(G,!0),0)})};
_.P.onSelectImages=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H;return _.T(function(g){switch(g.nextAddress){case 1:c?I.addImageErrorMessage="":(I.images=[],I.errorMessage="");R=G.detail;Z=I.validateImages([].concat(_.jn(R)));if(Z!=="")return c?I.addImageErrorMessage=Z:I.errorMessage=Z,g.return();K=[].concat(_.jn(R)).map(function(QO){return(new pJ(I.maxAspectRatio,!1,!0)).transform(QO)});
return g.yield(Promise.allSettled(K),2);case 2:m=g.yieldResult,a=_.Q(m.entries()),O=a.next();case 3:if(O.done){g.jumpTo(5);break}N=O.value;q=_.Q(N);w=q.next().value;F=q.next().value;n=w;U=F;if(U.status!=="fulfilled"){M=p=k=void 0;c?I.addImageErrorMessage=_.HY((k=I.data)==null?void 0:k.invalidError):I.errorMessage=I.errorMessage===""?_.HY((p=I.data)==null?void 0:p.invalidError):_.HY((M=I.data)==null?void 0:M.multiFileError);g.jumpTo(4);break}z=U.value;z.cropped&&_.Xl(I.hostElement,"yt-backstage-multi-image-cropped");
if(z.invalidAspectRatio){C=x=t=void 0;c?I.addImageErrorMessage=_.HY((t=I.data)==null?void 0:t.invalidAspectRatioError):I.errorMessage=I.errorMessage===""?_.HY((x=I.data)==null?void 0:x.invalidAspectRatioError):_.HY((C=I.data)==null?void 0:C.multiFileError);g.jumpTo(4);break}return g.yield(guq(I.JSC$15986_imageId,G.detail[n],z.transformedData),8);case 8:H=g.yieldResult,I.images.push(H),I.JSC$15986_imageId++;case 4:O=a.next();g.jumpTo(3);break;case 5:if(I.errorMessage!==""||I.addImageErrorMessage!==
"")return g.return();c?jF9(I.uploadManager,[I.images[I.images.length-1]]):jF9(I.uploadManager,I.images);I.images=[].concat(_.jn(I.images));I.selectedImageIndex=c?Math.max(I.images.length-1,0):0;_.Xl(I.hostElement,"yt-backstage-multi-image-select");_.Vp(g)}})};
_.P.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.P.validateImages=function(G){if(G.length>this.maxNumImagesPerPost){var c;return _.HY((c=this.data)==null?void 0:c.multiImageExceedMaxImageCountError)}var I=1048576*this.maxFileSizeMb;G=G.filter(function(K){return K.size>I}).length;
if(G===0)return"";var R,Z;G=G>1?(R=this.data)==null?void 0:R.multiFileError:(Z=this.data)==null?void 0:Z.fileSizeError;return _.HY(G)};
_.P.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.jn(this.images));this.selectedImageIndex=0};
_.P.repositionImage=function(G){this.images[this.selectedImageIndex].previewCoordinates=G.event_.detail;this.images=[].concat(_.jn(this.images))};
_.P.getAllUploadStatuses=function(){var G=this,c,I,R,Z;return _.T(function(K){if(K.nextAddress==1)return K.yield(G.uploadManager.getAllUploadStatuses(),2);c=K.yieldResult;I=_.Q(c);for(R=I.next();!R.done;R=I.next())if(Z=R.value,Z.encryptedBlobId===void 0)return K.return(xQK(G.uploadManager));return K.return(c)})};
_.P.hasImages=function(){return this.images.length>0};
_.P.cancel=function(){for(var G=this.uploadManager,c=_.Q(G.imagesUploadData),I=c.next();!I.done;I=c.next())G.cancel(I.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Xl(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Nh.Object.defineProperties(rC.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.imageUploadEndpoint)==null?void 0:(c=G.imageValidationInfo)==null?void 0:c.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.imageUploadEndpoint)==null?void 0:(c=G.imageValidationInfo)==null?void 0:c.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var G,c;if((G=this.data)==null?0:(c=G.icon)==null?0:c.iconType)return _.On(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var G=this;return(this.images||[]).map(function(c,I){return{renderer:{image:c,selected:I===G.selectedImageIndex}}})}}});
rC.prototype.setUpImagePicker=rC.prototype.setUpImagePicker;rC.prototype.onRendererstamperFinished=rC.prototype.onRendererstamperFinished;rC.prototype.observeDragToReorder=rC.prototype.observeDragToReorder;rC.prototype.observeAddImageError=rC.prototype.observeAddImageError;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],rC.prototype,"rendererStamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);
_.r([_.nH("#dropzone"),_.h("design:type",HTMLElement)],rC.prototype,"dropzone",void 0);_.r([_.nH("#select-link"),_.h("design:type",HTMLElement)],rC.prototype,"selectLink",void 0);_.r([_.nH("#thumbnail-drag-drop-area"),_.h("design:type",HTMLElement)],rC.prototype,"thumbnailDragDropArea",void 0);_.r([_.nH("#add-image-button-container"),_.h("design:type",HTMLElement)],rC.prototype,"addImageButtonContainer",void 0);
_.r([_.nH("#add-image-button"),_.h("design:type",HTMLElement)],rC.prototype,"addImageSelectButton",void 0);_.r([_.nH("#image-preview-container"),_.h("design:type",Object)],rC.prototype,"JSC$15986_imagePreviewContainer",void 0);_.r([_.E(),_.h("design:type",Object)],rC.prototype,"addImageErrorMessage",void 0);_.r([_.E(),_.h("design:type",Object)],rC.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],rC.prototype,"errorMessage",void 0);
_.r([_.E(),_.h("design:type",Object)],rC.prototype,"imageUploadEndpoint",void 0);_.r([_.E(),_.h("design:type",Array)],rC.prototype,"images",void 0);_.r([_.E(),_.h("design:type",BW)],rC.prototype,"initialPicker",void 0);_.r([_.E(),_.h("design:type",BW)],rC.prototype,"addImagePicker",void 0);_.r([_.E(),_.h("design:type",zU)],rC.prototype,"uploadManager",void 0);_.r([_.E(),_.h("design:type",Object)],rC.prototype,"selectedImageIndex",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],rC.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],rC.prototype,"maxNumImagesPerPost",void 0);_.r([_.A("imageUploadEndpoint"),_.h("design:type",Number),_.h("design:paramtypes",[])],rC.prototype,"maxAspectRatio",null);_.r([_.A("imageUploadEndpoint"),_.h("design:type",Number),_.h("design:paramtypes",[])],rC.prototype,"maxFileSizeMb",null);
_.r([_.A("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],rC.prototype,"dropIcon",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rC.prototype,"selectionCancel",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rC.prototype,"previewCancel",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rC.prototype,"dataForAddImageButton",null);
_.r([_.A("errorMessage"),_.h("design:type",String),_.h("design:paramtypes",[])],rC.prototype,"dropzoneClass",null);_.r([_.A("images"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rC.prototype,"showImagesPreview",null);_.r([_.A("images"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rC.prototype,"containMaxImages",null);_.r([_.wD("addImageErrorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rC.prototype,"observeAddImageError",null);
_.r([_.wD("showImagesPreview"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rC.prototype,"observeDragToReorder",null);_.r([_.A("images","selectedImageIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],rC.prototype,"selectedImageData",null);_.r([_.A("images","selectedImageIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],rC.prototype,"thumbnailRenderers",null);
_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rC.prototype,"onRendererstamperFinished",null);_.r([_.wD("imageUploadEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rC.prototype,"setUpImagePicker",null);_.r([_.Jc({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],rC);
_.B(rC,"ytd-backstage-multi-image-select-renderer",function(){if(cVe!==void 0)return cVe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return cVe=G},{mode:1});var RHe;var Z6B;var KET;var jt=function(){var G=_.J.apply(this,arguments)||this;G.boundCaptureFocus=function(c){G.onCaptureFocus(c)};
return G};
_.u(jt,_.J);_.P=jt.prototype;_.P.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.P.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.P.onCaptureFocus=function(G){_.CE(G).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.P.getIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.P.onSelect=function(){var G;if((G=this.data)==null?0:G.onSelectCommand)if(_.v("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var c;((c=_.D(this.data.onSelectCommand.commandMetadata,_.Pd))==null?0:c.url)?_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.wH().resolve(_.n4).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Nh.Object.defineProperties(jt.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.HY(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}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],jt.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jt.prototype,"data",void 0);_.r([_.nH("#item"),_.h("design:type",HTMLElement)],jt.prototype,"item",void 0);_.r([_.A("data.label"),_.h("design:type",String),_.h("design:paramtypes",[])],jt.prototype,"label",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],jt.prototype,"value",null);_.r([_.Jc({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],jt);
_.B(jt,"ytd-privacy-dropdown-item-renderer",function(){if(KET!==void 0)return KET;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return KET=G},{mode:1});var xB=function(){var G=_.J.apply(this,arguments)||this;G.value="";G.label="";G.disabled=!1;return G};
_.u(xB,_.J);_.P=xB.prototype;_.P.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.P.dataChanged=function(){this.reset()};
_.P.valueChanged=function(){var G;if(this.value&&(G=this.data)!=null&&G.entries){G=_.Q(this.data.entries);for(var c=G.next();!c.done;c=G.next())if((c=this.getRendererForEntry(c.value))&&this.getItemRendererValue(c)===this.value){this.label=this.ytComponentBehavior.getSimpleString(c.label);break}}};
_.P.setInitialLabel=function(){if(this.data&&this.data.entries)for(var G=_.Q(this.data.entries),c=G.next();!c.done;c=G.next())if(c=this.getRendererForEntry(c.value)){if(c.isSelected){this.label=this.ytComponentBehavior.getSimpleString(c.label);break}this.data.label&&(this.label=this.data.label)}};
_.P.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var G=_.Q(this.data.entries),c=G.next();!c.done;c=G.next()){c=this.getRendererForEntry(c.value);var I=void 0;if((I=c)==null?0:I.isSelected)return this.getItemRendererValue(c)||-1}return-1};
_.P.getItemRendererValue=function(G){return"stringValue"in G||"int32Value"in G?G.stringValue||G.int32Value||null:null};
_.P.getRendererForEntry=function(G){return G.dropdownItemRenderer||G.privacyDropdownItemRenderer||G.navigationDropdownItemRenderer||null};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("value-changed",this.value))};
_.P.updateValueFromBinding=function(G){this.value=G.detail.value};
xB.prototype.valueChangedForBinding=xB.prototype.valueChangedForBinding;xB.prototype.valueChanged=xB.prototype.valueChanged;xB.prototype.dataChanged=xB.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],xB.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xB.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],xB.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],xB.prototype,"value",void 0);_.r([_.E(),_.h("design:type",Object)],xB.prototype,"label",void 0);_.r([_.nH("#entries"),_.h("design:type",Object)],xB.prototype,"entries",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],xB.prototype,"disabled",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xB.prototype,"dataChanged",null);
_.r([_.uO("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xB.prototype,"valueChanged",null);_.r([_.wD("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xB.prototype,"valueChangedForBinding",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],xB);
_.B(xB,"ytd-flat-dropdown-renderer",function(){if(Z6B!==void 0)return Z6B;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Z6B=G},{mode:1});var Pw2;var tZ=function(){var G=_.J.apply(this,arguments)||this;G.quizOptions=[];G.explanationPlaceholderText="";G.optionPlaceholderText="";G.correctAnswerIndex=-1;G.isMarkAnswerTooltipShown=!1;G.timer=0;return G};
_.u(tZ,_.J);_.P=tZ.prototype;_.P.dataChanged=function(){this.optionPlaceholderText=_.HY(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.HY(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.P.onMarkCorrectAnswer=function(G){var c,I=((c=this.quizOptions[this.correctAnswerIndex])==null?void 0:c.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[G.model.index]=Object.assign({},this.quizOptions[G.model.index],{explanationText:I,isCorrect:!0});this.correctAnswerIndex=G.model.index;this.quizOptions=[].concat(_.jn(this.quizOptions))};
_.P.updatePlaceholderTexts=function(){for(var G=!1,c=[],I=0;I<this.quizOptions.length;I++){var R=this.optionPlaceholderText+" "+(I+1),Z=void 0;((Z=this.quizOptions[I])==null?void 0:Z.placeholderText)!==R?(G=!0,c.push(Object.assign({},this.quizOptions[I],{placeholderText:R}))):c.push(this.quizOptions[I])}G&&(this.quizOptions=c);this.isValid()?_.Xl(this.hostElement,"yt-commentbox-post-enable"):_.Xl(this.hostElement,"yt-commentbox-post-disable")};
_.P.getSimpleString=function(G){return _.HY(G)};
_.P.createQuizOptions=function(G){var c=[],I;G=(I=G==null?void 0:G.minQuizOptions)!=null?I:0;for(I=0;I<G;I++)c.push(this.createQuizOption());return c};
_.P.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.jn(this.quizOptions),[this.createQuizOption()]))};
_.P.onInput=function(){this.quizOptions=[].concat(_.jn(this.quizOptions))};
_.P.onExplanationInput=function(){_.Xl(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.P.onRemoveQuizOption=function(G){this.quizOptions.splice(G.model.index,1);G.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:G.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.jn(this.quizOptions));this.quizOptions.length===0&&_.Xl(this.hostElement,"yt-quiz-attachment-dismiss")};
_.P.updateHintRenderer=function(){var G=this;clearTimeout(this.timer);this.timer=setTimeout(function(){G.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.P.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var G=0,c=0,I=_.Q(this.quizOptions),R=I.next();!R.done;R=I.next()){R=R.value;var Z=void 0;if(((Z=R.optionText)==null?void 0:Z.trim())!==""||R.isCorrect){R.isCorrect&&c++;Z=void 0;if(this.hasCustomOptionText&&((Z=R.optionText)==null?void 0:Z.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;G++}}return G>=
Number(this.editorInfo.minQuizOptions)&&c===1};
_.P.getPostCreateOptions=function(){for(var G=[],c=_.Q(this.quizOptions),I=c.next();!I.done;I=c.next()){I=I.value;var R=void 0;((R=I.optionText)==null?void 0:R.trim())!==""&&G.push({pollOption:{text:I.optionText,explanation:I.explanationText},isCorrect:I.isCorrect})}return G};
_.P.getExplanationText=function(){var G;return((G=this.quizOptions[this.correctAnswerIndex])==null?void 0:G.explanationText)||""};
_.P.maybeDisplayMarkAnswerEduToolTip=function(){var G,c,I,R,Z,K,m;this.shouldShowMarkAnswerTooltip()&&((G=this.editorInfo)==null?0:(c=G.markAnswerButton)==null?0:(I=c.buttonRenderer)==null?0:(R=I.hint)==null?0:(Z=R.hintRenderer)==null?0:(K=Z.content)==null?0:(m=K.bubbleHintRenderer)==null?0:m.text)&&(_.th.getInstance(),G=hh(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(G==null?void 0:G.length)>0&&this.optionSelectors&&_.qC(G[0],this.optionSelectors[0]))};
_.P.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var G=0,c=_.Q(this.quizOptions),I=c.next();!I.done;I=c.next()){I=I.value;var R=void 0;((R=I.optionText)==null?void 0:R.trim())!==""&&G++;if(I.isCorrect)return!1}return G<2?!1:!0};
_.P.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.P.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.P.updateOptionTextFromBinding=function(G){if(G.target){var c=Array.from(_.Q1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(G.target);if(c>=0){var I;this.quizOptions[c].optionText=(I=G.detail.value)!=null?I:""}}};
_.Nh.Object.defineProperties(tZ.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.editorInfo)==null?void 0:(c=G.addOptionButton)==null?void 0:c.buttonRenderer;I&&(I.style="STYLE_SUGGESTIVE",I.size="SIZE_SMALL",I.isDisabled=!this.isAllowedToAddOption);return(I==null?0:I.text)?I:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,c;return this.quizOptions.length<((c=(G=this.editorInfo)==null?void 0:G.maxQuizOptions)!=null?c:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(G){var c;return(c=G.optionText)==null?void 0:c.trim()})}}});
tZ.prototype.updatePlaceholderTexts=tZ.prototype.updatePlaceholderTexts;tZ.prototype.dataChanged=tZ.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],tZ.prototype,"editorInfo",void 0);_.r([_.E(),_.h("design:type",Array)],tZ.prototype,"quizOptions",void 0);_.r([_.E(),_.h("design:type",Object)],tZ.prototype,"explanationPlaceholderText",void 0);_.r([_.vB(".option-selector-button"),_.h("design:type",Array)],tZ.prototype,"optionSelectors",void 0);
_.r([_.uO("editorInfo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tZ.prototype,"dataChanged",null);_.r([_.A("editorInfo","isAllowedToAddOption","quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],tZ.prototype,"addAnswerButton",null);_.r([_.A("editorInfo","quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],tZ.prototype,"isAllowedToAddOption",null);
_.r([_.uO("quizOptions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tZ.prototype,"updatePlaceholderTexts",null);_.r([_.A("quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],tZ.prototype,"hasCustomOptionText",null);_.r([_.Jc({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],tZ);
_.B(tZ,"ytd-backstage-quiz-editor-renderer",function(){if(Pw2!==void 0)return Pw2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Pw2=G},{mode:2});var Q$K;var mK9=(D2.FIRSTDAYOFWEEK+1)%7;var ay0;var Tze=[],O62=0,eHT=0;O62=0;eHT=24;if(.25*(eHT-O62)<0)ay0=[];else{for(var Nze=O62;Nze<eHT;Nze+=.25)Tze.push(Nze);ay0=Tze}var lyK=ay0.map(function(G){G=G*60*60;return{secondsSinceMidnight:G,text:(new dL(7)).format(new Date(0,0,0,0,0,G))}});var qxT;var hZ=function(){var G=_.J.apply(this,arguments)||this;G.skipNextOpenDialog=!1;G.errorMessage="";G.previousMonthLabel=_.mJ("PREVIOUS_MONTH_LABEL");G.nextMonthLabel=_.mJ("NEXT_MONTH_LABEL");return G};
_.u(hZ,_.J);_.P=hZ.prototype;_.P.attached=function(){var G=this,c=new MutationObserver(function(){G.JSC$16028_calendarMain.scrollHeight>0&&(c.disconnect(),G.calendarConfig&&G.calendarConfig.selectedDate&&G.scrollToDate())});
c.observe(this.JSC$16028_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){c.disconnect()},1E3)};
_.P.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.P.onDateTextChange=function(){if(this.calendarConfig){var G=this.validateDateText();G.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(G.details)):this.textbox.setAttribute("invalid","")}};
_.P.handleDayClick=function(G){G.model.day.date&&(this.commitDate(G.model.day.date),this.dialog.close())};
_.P.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var G=afA(this.calendarConfig.selectedDate,this.renderData);G!==void 0&&this.JSC$16028_calendarMain.scrollToIndex(G)}};
_.P.scrollToNextMonth=function(){this.JSC$16028_calendarMain.scrollToIndex(this.JSC$16028_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$16028_calendarMain.firstVisibleIndex===0&&this.JSC$16028_calendarMain.scrollTo(0,0);this.JSC$16028_calendarMain.scrollToIndex(this.JSC$16028_calendarMain.firstVisibleIndex-1)};
_.P.onFormSubmit=function(G){G.preventDefault();this.calendarConfig&&(G=this.validateDateText(),G.isValid&&(this.commitDate(G.details),this.dialog.close()))};
_.P.onEscOrClickingOutside=function(G){G=G.detail.path&&!!G.detail.path.length&&G.detail.path[0];if(G.classList.contains("ytd-calendar-date-picker")){G===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var c=0;c<this.dropdownButton.children.length;c++)this.dropdownButton.children[c]===G&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}G=this.textbox.value!==this.dateText;c=this.validateDateText();G&&c.isValid&&this.commitDate(c.details);this.dialog.close();this.textbox.value=
this.dateText};
_.P.commitDate=function(G){this.calendarConfig&&(this.set("calendarConfig.selectedDate",G),_.Xl(this.hostElement,"ytd-calendar-date-selected",G))};
_.P.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var G=this.textbox.value;var c=new Date;G=(new Alr(2)).parse(G,c,{validate:!0})===G.length?QST(c):void 0;if(!G)return this.errorMessage=_.mJ("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};c=this.calendarConfig.start;var I=this.calendarConfig.end;if(Ifr(G,c))return this.errorMessage=_.mJ("ENTER_DATE_OR_LATER",{allowed_date:Pzg(c)}),{isValid:!1,details:void 0};if(Ifr(I,G))return this.errorMessage=
_.mJ("ENTER_DATE_OR_EARLIER",{allowed_date:Pzg(I)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:G}};
_.Nh.Object.defineProperties(hZ.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Pzg(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var G=this.calendarConfig,c=[],I=0;I<7;I++)c.push(D2.NARROWWEEKDAYS[(I+mK9)%7]);I=[];for(var R=new Date(G.start.year,G.start.month);R.getFullYear()<G.end.year||R.getFullYear()===G.end.year&&R.getMonth()<=G.end.month;){var Z=I,K=Z.push,m=R.getFullYear(),a=R.getMonth(),O=G,N=void 0,q=[],w=Object.freeze({extraCssClass:"invisible",debugClass:""}),F=new Date(m,a),n=QST(F);F=F.getDay();for(var U=QST(new Date);n.month===
a;){F!==mK9&&N||(N=Array.from({length:7}).fill(w),q.push(N));var k={date:{year:m,month:a,day:n.day},extraCssClass:"",debugClass:""};O.selectedDate&&k.date&&clO(k.date,O.selectedDate)&&(k.extraCssClass+=" selected");if(Ifr(n,O.start)||Ifr(O.end,n))k.extraCssClass+=" disabled";clO(n,U)&&(k.extraCssClass+=" today");k.extraCssClass=k.extraCssClass.trim();N[(F-mK9+7)%7]=k;n=ZBO(n);F=(F+1)%7}K.call(Z,{weeks:q,monthLabel:D2.SHORTMONTHS[a]+" "+m,year:m,month:a,monthLabelExtraCssClass:q[0][2]===w?"shift-down-label":
""});R.setMonth(R.getMonth()+1)}return{months:I,daysOfWeekLabel:c}}}}});
hZ.prototype.onEscOrClickingOutside=hZ.prototype.onEscOrClickingOutside;hZ.prototype.scrollToDate=hZ.prototype.scrollToDate;_.r([_.E(),_.h("design:type",Object)],hZ.prototype,"calendarConfig",void 0);_.r([_.E(),_.h("design:type",Object)],hZ.prototype,"skipNextOpenDialog",void 0);_.r([_.E(),_.h("design:type",Object)],hZ.prototype,"errorMessage",void 0);_.r([_.E(),_.h("design:type",Object)],hZ.prototype,"previousMonthLabel",void 0);
_.r([_.E(),_.h("design:type",Object)],hZ.prototype,"nextMonthLabel",void 0);_.r([_.nH("#textbox"),_.h("design:type",HTMLInputElement)],hZ.prototype,"textbox",void 0);_.r([_.nH("#calendar-dialog"),_.h("design:type",Object)],hZ.prototype,"dialog",void 0);_.r([_.nH("#calendar-main"),_.h("design:type",Object)],hZ.prototype,"JSC$16028_calendarMain",void 0);_.r([_.nH("#date-picker"),_.h("design:type",HTMLElement)],hZ.prototype,"dropdownButton",void 0);
_.r([_.A("calendarConfig.selectedDate"),_.h("design:type",String),_.h("design:paramtypes",[])],hZ.prototype,"dateText",null);_.r([_.A("calendarConfig","calendarConfig.selectedDate"),_.h("design:type",Object),_.h("design:paramtypes",[])],hZ.prototype,"renderData",null);_.r([_.wD("renderData","calendarConfig.selectedDate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hZ.prototype,"scrollToDate",null);
_.r([_.qY("iron-overlay-canceled"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],hZ.prototype,"onEscOrClickingOutside",null);_.r([_.Em({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],hZ);
_.B(hZ,"ytd-calendar-date-picker",function(){if(qxT!==void 0)return qxT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return qxT=G},{mode:2});var wvT=_.mJ("UTC_OFFSET_FORMAT",{utc_offset:(new dL("Z")).format(new Date)}),FE0=(new Date).getTimezoneOffset()*-60,nlp=new Date,vle,DKB=hX(nlp.getTimezoneOffset());vle=ZeK(Pmi(DKB,nlp));var olK=_.mJ("LOCAL_TIME_GMT_LABEL",{gmt_text:vle.replace("+0","+").replace("-0","-").replace(":00","")}),dC=function(){var G=_.J.apply(this,arguments)||this;G.selectedTimeIndex=0;G.selectedTimezoneIndex=0;G.timeOfDayOptions=lyK;return G};
_.u(dC,_.J);_.P=dC.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var G=KSi();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=G,this.selectedTimeIndex=0;else{var c=m$g(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},G,{selectedDate:c.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(I){return I.secondsSinceMidnight===c.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.P.onDatePicked=function(G){this.selectedDate=G.detail};
_.P.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Xl(this.hostElement,"ytd-date-time-selection-cancelled")};
_.P.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var G=this.selectedDate;G=new Date(G.year,G.month,G.day);_.Xl(this.hostElement,"ytd-date-time-selection-update",Math.floor(G.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+G.getTimezoneOffset()*60))}};
_.P.getTimezoneFormat=function(G){return G.localizedDisplayText?G.localizedDisplayText:_.mJ("TIMEZONE_FORMAT",{utc_offset_text:""+G.localizedUtcOffset,city_name:""+G.localizedName})};
_.P.updateSelectedTimeIndexFromBinding=function(G){this.selectedTimeIndex=G.detail.value};
_.P.updateSelectedTimezoneIndexFromBinding=function(G){this.selectedTimezoneIndex=G.detail.value};
_.Nh.Object.defineProperties(dC.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data.timezoneOptions;var c={name:"Etc/Unknown",localizedName:_.mJ("LOCAL_TIME_LABEL"),localizedUtcOffset:wvT,utcOffsetSec:""+FE0,localizedDisplayText:olK};G?G.length&&G[0].name!==c.name&&(G[0].localizedDisplayText||(c.localizedDisplayText=""),G.unshift(c)):G=[c];return G}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
dC.prototype.onDateTimeTimezoneChange=dC.prototype.onDateTimeTimezoneChange;dC.prototype.onDatePicked=dC.prototype.onDatePicked;dC.prototype.updateDefaultSelectedValue=dC.prototype.updateDefaultSelectedValue;_.r([_.E(),_.h("design:type",Object)],dC.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],dC.prototype,"calendarConfig",void 0);_.r([_.E(),_.h("design:type",Object)],dC.prototype,"selectedDate",void 0);_.r([_.E(),_.h("design:type",Object)],dC.prototype,"selectedTimeIndex",void 0);
_.r([_.E(),_.h("design:type",Object)],dC.prototype,"selectedTimezoneIndex",void 0);_.r([_.nH("#time-listbox"),_.h("design:type",Object)],dC.prototype,"timeListBox",void 0);_.r([_.nH("#timezone-listbox"),_.h("design:type",Object)],dC.prototype,"timezoneListBox",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],dC.prototype,"rendererStamperBehavior",void 0);_.r([_.A("data.timezoneOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],dC.prototype,"timeZones",null);
_.r([_.uO("data","timeZones"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dC.prototype,"updateDefaultSelectedValue",null);_.r([_.A("selectedTimezoneIndex","timeZones"),_.h("design:type",Object),_.h("design:paramtypes",[])],dC.prototype,"selectedTimezone",null);_.r([_.A("selectedTimeIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],dC.prototype,"selectedTime",null);
_.r([_.qY("ytd-calendar-date-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],dC.prototype,"onDatePicked",null);_.r([_.wD("selectedTimezone","selectedTime","selectedDate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dC.prototype,"onDateTimeTimezoneChange",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],dC);
_.B(dC,"ytd-date-time-picker-renderer",function(){if(Q$K!==void 0)return Q$K;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Q$K=G},{mode:1});var UK2;var Cg=function(){var G=_.J.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.dismissTapHandler()};
G.dismissButtonOverrides={size:"XS"};return G};
_.u(Cg,_.J);Cg.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}}}}}};
Cg.prototype.dismissTapHandler=function(){_.Xl(this.hostElement,"yt-backstage-attachment-dismissed")};
Cg.prototype.computeAttachmentType=function(G){return G?G.backstageImageRenderer?"image":G.videoRenderer?"video":"none":"none"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Cg.prototype,"attachmentPreview",void 0);_.r([_.E(),_.h("design:type",Object)],Cg.prototype,"dismissButton",void 0);_.r([_.E(),_.h("design:type",Object)],Cg.prototype,"boundOnTapDismissButton",void 0);
_.r([_.E(),_.h("design:type",Object)],Cg.prototype,"dismissButtonOverrides",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.h("design:type",String)],Cg.prototype,"attachmentType",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Cg);
_.B(Cg,"ytd-backstage-dismissable-attachment",function(){if(UK2!==void 0)return UK2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return UK2=G},{mode:1});var uD2;var HW=function(){var G=_.J.apply(this,arguments)||this;G.selectedVideoId=void 0;G.picker=void 0;G.dismissButtonOverrides={size:"XS"};G.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return G};
_.u(HW,_.J);_.P=HW.prototype;_.P.onServiceRequestCompleted=function(G){G.stopPropagation()};
_.P.handleAddVideoPreviewAction=function(G){G=this.get("addVideoPreviewAction",G);this.onGetVideoPreviewSuccess(G)};
_.P.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.P.onLaunchVideoPicker=function(G){var c=this,I=_.HY(this.get("addVideoLinkAction.title",G)),R=this.get("addVideoLinkAction.onePickHostId",G);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",G);R&&(this.picker||(I=_.Cx9(_.l1p(R).setTitle(I).addView(xqe()).addView(jDK()),function(Z){c.onPickVideo(Z)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",G)||I.addView("youtube"),this.picker=I.build()),this.picker.setVisible(!0))};
_.P.onPickVideo=function(G){if(G)if(G.action==="cancel")_.Xl(this.hostElement,"yt-video-link-button-cancel");else if(G.action==="picked"){G=G.docs;if(!G||G.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(G=(G==null?0:G.length)?G[0]:void 0)?G.id:void 0;this.setVideoPreview()}};
_.P.setVideoPreview=function(){var G=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){G.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.P.onGetVideoPreviewSuccess=function(G){if(G&&G.videoPreview&&G.cancelButton)this.videoPreview=G.videoPreview,this.cancelButton=G.cancelButton,_.Xl(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.P.onGetVideoPreviewError=function(){this.cancel()};
_.P.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Xl(this.hostElement,"yt-video-link-cancel")};
_.P.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
HW.prototype.onServiceRequestCompleted=HW.prototype.onServiceRequestCompleted;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],HW.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],HW.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],HW.prototype,"videoPreview",void 0);_.r([_.E(),_.h("design:type",Object)],HW.prototype,"cancelButton",void 0);_.r([_.E(),_.h("design:type",Object)],HW.prototype,"getVideoPreviewCommand",void 0);_.r([_.E(),_.h("design:type",Object)],HW.prototype,"dismissButtonOverrides",void 0);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],HW.prototype,"onServiceRequestCompleted",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],HW);
_.B(HW,"ytd-backstage-video-link-attachment",function(){if(uD2!==void 0)return uD2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return uD2=G},{mode:1});var b60;var kHe;var s$K;var X9=function(){return _.J.apply(this,arguments)||this};
_.u(X9,_.J);X9.prototype.dataChanged=function(){this.active=!1};
X9.prototype.onTap=function(){_.Xl(this.hostElement,"yt-select-emoji-suggestion",this.data)};
X9.prototype.identity=function(G){return G};
_.Nh.Object.defineProperties(X9.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R;if((G=this.data)==null?0:(c=G.image)==null?0:(I=c.thumbnails)==null?0:(R=I[0])==null?0:R.url)return G=this.data.image.thumbnails[0].url,G.startsWith("data:image/svg+xml")?i5(G):_.dS(G)}}});
X9.prototype.dataChanged=X9.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],X9.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],X9.prototype,"active",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],X9.prototype,"dataChanged",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],X9.prototype,"imageSrc",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],X9);
_.B(X9,"ytd-emoji-suggestion",function(){if(s$K!==void 0)return s$K;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return s$K=G},{mode:1});var LEe=/.*([:@#].*?)$/,yi=function(){var G=_.J.apply(this,arguments)||this;G.suggestions=[];G.suggestionIndex=-1;G.JSC$16056_lastSuggestionRange=null;return G};
_.u(yi,_.J);_.P=yi.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.P.getSuggestions=function(G){var c=[],I=yTK(this.emojiManager,G.substr(0,3));if(I)for(var R in I)if(R.toLocaleLowerCase().indexOf(G)===0){var Z=I[R];if(Z&&Z.emojiId){Z=ud(this.emojiManager,Z.emojiId);var K=void 0,m=void 0,a=void 0,O=void 0,N=((K=Z)==null?0:K.isCustomEmoji)?(m=Z)==null?void 0:(a=m.shortcuts)==null?void 0:a[0]:(O=Z)==null?void 0:O.emojiId;K=void 0;c.push({suggestion:{image:(K=Z)==null?void 0:K.image,alt:N,text:R}});if(c.length>=64)break}}return c?c.sort(function(q,w){return w.suggestion.text<
q.suggestion.text?-1:w.suggestion.text===q.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(G){_.Xl(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16056_lastSuggestionRange,text:G.alt});this.dropdown.opened=!1};
_.P.updateSuggestionsAtCaret=function(G){this.updateSuggestions(G,this.retrieveTextBeforeRange(G))};
_.P.offsetStartOfRangeBy=function(G,c){G.startOffset>=c&&G.setStart(G.startContainer,G.startOffset-c)};
_.P.updateSuggestions=function(G,c){var I=this;this.JSC$16056_lastSuggestionRange&&(this.JSC$16056_lastSuggestionRange.detach(),this.JSC$16056_lastSuggestionRange=null);if((c=LEe.exec(c))&&c.length&&(c=c[c.length-1].toLocaleLowerCase(),c.length>2||c===":_")&&(this.offsetStartOfRangeBy(G,c.length),this.JSC$16056_lastSuggestionRange=G,(G=this.getSuggestions(c))&&G.length)){this.suggestions=G;_.O$(this,function(){I.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(G.length-1);return}this.dropdown.opened=!1};
_.P.onKeyDown=function(G){if(this.dropdown.opened)switch(G.key){case "Escape":this.dropdown.opened=!1;G.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);G.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);G.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),G.preventDefault()}};
_.P.onKeyUp=function(G,c){switch(G.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(c);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(c)}};
_.P.onKeyPress=function(G){G.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),G.preventDefault())};
_.P.changeSuggestionIndex=function(G){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(G+this.suggestions.length)%this.suggestions.length,G=this.dropdownContent.children[this.suggestionIndex],G.active=!0,this.dropdownContent.scrollTop=G.offsetTop)};
_.P.retrieveTextBeforeRange=function(G){var c=G.startContainer;return c&&c.nodeType===Node.TEXT_NODE?c.textContent.substr(0,G.startOffset):""};
yi.prototype.onKeyPress=yi.prototype.onKeyPress;yi.prototype.onKeyUp=yi.prototype.onKeyUp;yi.prototype.onKeyDown=yi.prototype.onKeyDown;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Array)],yi.prototype,"suggestions",void 0);_.r([_.E(),_.h("design:type",_.op)],yi.prototype,"emojiManager",void 0);_.r([_.E(),_.h("design:type",Number)],yi.prototype,"verticalSuggestionsOffset",void 0);
_.r([_.nH("#dropdown"),_.h("design:type",Object)],yi.prototype,"dropdown",void 0);_.r([_.nH("#dropdown-content"),_.h("design:type",HTMLDivElement)],yi.prototype,"dropdownContent",void 0);_.r([_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],yi.prototype,"onKeyDown",null);_.r([_.qY("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent,Range]),_.h("design:returntype")],yi.prototype,"onKeyUp",null);
_.r([_.qY("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],yi.prototype,"onKeyPress",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-emoji-input"})],yi);
_.B(yi,"ytd-emoji-input",function(){if(kHe!==void 0)return kHe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return kHe=G},{mode:2});var AVV;var gC=function(){var G=_.J.apply(this,arguments)||this;G.hasMaxOptions=!1;return G};
_.u(gC,_.J);_.P=gC.prototype;_.P.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.P.setPrefilledChoices=function(G){var c=this;this.set("pollOptions",[]);var I;for(I=0;I<Math.min(G.length,this.data.maxPollOptions);I++)this.push("pollOptions",G[I].substring(0,this.data.maxPollOptionChars));for(;I<this.data.minPollOptions;I++)this.push("pollOptions","");this.hasMaxOptions=I>=this.data.maxPollOptions;_.O$(this,function(){for(var R=c.pollOptions,Z=_.Q1(c.hostElement).querySelectorAll(".poll-option-input"),K=0;K<Z.length;K++)Z[K].value=R[K]})};
_.P.focusChanged=function(){_.eD(this.hostElement)};
_.P.onInput=function(){var G=this;_.tc(this,"onInput",function(){G.isValid()?_.Xl(G.hostElement,"yt-commentbox-post-enable"):_.Xl(G.hostElement,"yt-commentbox-post-disable")},300)};
_.P.setPollOptions=function(){var G=[],c,I=((c=this.data)==null?0:c.minPollOptions)?this.data.minPollOptions:0;for(c=0;c<I;c++)G.push("");return G};
_.P.addPollOption=function(){var G=this;_.Xl(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.dJ.addLowPriorityJob(function(){var c;(c=_.Q1(G.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||c.focus()})};
_.P.onRemovePollOption=function(G){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Xl(this.hostElement,"yt-poll-attachment-dismiss")):(G=this.repeat.indexForElement(G.target.parentNode),G!==null&&(this.splice("pollOptions",G,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Xl(this.hostElement,"yt-commentbox-post-enable"))))};
_.P.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.P.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var G=0,c=this.pollOptions.length;G<c;G++)if(this.pollOptions[G].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.P.getPollOptions=function(){return this.pollOptions};
_.P.setPollOptionsFromInputs=function(){for(var G=_.Q1(this.hostElement).querySelectorAll(".poll-option-input"),c=0;c<G.length;c++)this.pollOptions[c]=G[c].value.trim()};
_.P.clearPollOptions=function(){var G=_.Q1(this.hostElement).querySelectorAll(".poll-option-input");G=_.Q(G);for(var c=G.next();!c.done;c=G.next())c.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.P.getSimpleString=function(G){return _.HY(G)};
_.P.updateValueFromBinding=function(G){if(G.target&&this.pollOptions){var c=Array.from(_.Q1(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(G.target);if(c>=0){var I;this.pollOptions[c]=(I=G.detail.value)!=null?I:"";this.notifyPath("pollOptions."+c)}}};
gC.prototype.dataChanged=gC.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gC.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Array)],gC.prototype,"pollOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],gC.prototype,"hasMaxOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],gC.prototype,"enableCreationBox",void 0);
_.r([_.nH("#repeat"),_.h("design:type",pH)],gC.prototype,"repeat",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gC.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-poll-attachment"})],gC);
_.B(gC,"ytd-poll-attachment",function(){if(AVV!==void 0)return AVV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return AVV=G},{mode:2});var $KK;var Sxk;var pvk;var MOk;var YB=function(){return _.J.apply(this,arguments)||this};
_.u(YB,_.J);_.Nh.Object.defineProperties(YB.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],YB.prototype,"rendererBehaviors",void 0);_.r([_.E(),_.h("design:type",Object)],YB.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],YB.prototype,"focused",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("focused"),_.h("design:type",Object),_.h("design:paramtypes",[])],YB.prototype,"ariaSelected",null);_.r([_.Em({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],YB);
_.B(YB,"yt-user-mention-suggestion-renderer",function(){if(MOk===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;pvk===void 0&&(pvk=document.createElement("template"));var R=pvk;I.call(c,R.content.cloneNode(!0),G.content.firstChild);MOk=G}G=MOk;return G},{mode:2});var VOe;var zHe;var Gx=function(){var G=_.J.apply(this,arguments)||this;G.focusedSuggestionIndex=-1;return G};
_.u(Gx,_.J);_.P=Gx.prototype;_.P.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.P.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.P.setFocusedSuggestionIndex=function(G){!this.data||!this.data.suggestions||G<0||G>=this.data.suggestions.length||(this.focusedSuggestionIndex=G,G=this.getSuggestionId(G),this._setFocusedSuggestionId(G))};
_.P.advanceSuggestion=function(G){this.focusedSuggestionIndex===-1||G!==-1&&G!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+G),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.P.ensureSuggestionVisible=function(G){G=this.getSuggestionId(G);G=_.Q1(this.hostElement).querySelector("[id="+G+"]");G!=null&&(G.offsetTop<this.hostElement.scrollTop?G.scrollIntoView(!0):G.offsetTop+G.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&G.scrollIntoView(!1))};
_.P.getSuggestionId=function(G){return"user-mention-suggestion-"+G};
_.P.onSuggestionTap=function(G){var c=_.D(G.model.item,Qek);this.ytRendererBehavior.logExplicitClick(c);_.Xl(this.hostElement,"yt-user-mention-suggestion-selected",{data:c,index:G.model.index})};
_.P.onSuggestionMouseMove=function(G){G.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(G.model.index)};
_.P.isSuggestionFocused=function(G,c){return G===c};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("focused-suggestion-id-changed",this.focusedSuggestionId))};
Gx.prototype.focusedSuggestionIdChangedForBinding=Gx.prototype.focusedSuggestionIdChangedForBinding;Gx.prototype.onDomChange=Gx.prototype.onDomChange;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Gx.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Gx.prototype,"focusedSuggestionIndex",void 0);_.r([_.E({readOnly:!0}),_.h("design:type",String)],Gx.prototype,"focusedSuggestionId",void 0);
_.r([_.qY("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Gx.prototype,"onDomChange",null);_.r([_.wD("focusedSuggestionId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gx.prototype,"focusedSuggestionIdChangedForBinding",null);_.r([_.Em({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Gx);
_.B(Gx,"yt-user-mention-suggestions-dropdown",function(){if(zHe===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;VOe===void 0&&(VOe=document.createElement("template"));var R=VOe;I.call(c,R.content.cloneNode(!0),G.content.firstChild);zHe=G}G=zHe;return G},{mode:2});var c3=function(){var G=_.J.apply(this,arguments)||this;G.suggestionsResponse=null;G.activeMention=null;G.selectionChangeListener=G.onSelectionChange.bind(G);G.handlesEnabled=_.v("enable_handles_in_mention_suggest_posts");G.handlesInMentionSuggestionsEnabled=_.v("handles_in_mention_suggest_posts");G.zeroPrefixMentionSuggestionEnabled=_.v("enable_zero_prefix_mention_suggestion_web");G.pendingQuery=null;G.flowNonce=null;return G};
_.u(c3,_.J);_.P=c3.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.P.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.P.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.P.hasSuggestions=function(G){return!!(G&&G.suggestions&&G.suggestions.length>0)};
_.P.onInput=function(){var G=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var c=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),I=this.activeMention.JSC$11513_getText().slice(-1)===" ",R=this.activeMention.JSC$11513_getText().slice(-2,-1)===" ",Z="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11513_getText().slice(-2,
-1))>=0;Z=this.zeroPrefixMentionSuggestionEnabled&&Z;if(this.activeMention.isCollapsed()||(c||R||Z)&&I)this.cancelActiveMention();else{var K=this.activeMention.JSC$11513_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.tc(this,"requestSuggestions",function(){G.requestSuggestions(K)},100)}}}};
_.P.onServiceRequestSent=function(G){G.stopPropagation()};
_.P.onServiceRequestCompleted=function(G){G.stopPropagation();G=G.detail.data;G.query&&(!this.pendingQuery||this.pendingQuery!==G.query)||!this.zeroPrefixMentionSuggestionEnabled&&G.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=G,this.hasSuggestions(G)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.P.onServiceRequestError=function(G){G.stopPropagation()};
_.P.onUserMentionSuggestionSelected=function(G){this.selectSuggestion(G.detail.data,G.detail.index)};
_.P.onSelectionChange=function(){if(this.activeMention){var G=_.lP(),c=this.activeMention.JSC$11513_containsRange(G);G=G&&this.containsHelper(this.dropdown,G.getContainer());c||G||this.cancelActiveMention()}};
_.P.containsHelper=function(G,c){var I;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)===!0)return G.contains(c);for(;c;){if(c===G)return!0;c=c instanceof ShadowRoot?c.host:c.parentNode}return!1};
_.P.maybeStartSuggest=function(){var G=_.lP();if(G&&G.isCollapsed()){var c=G.JSC$11513_getStartNode(),I=G.JSC$11513_getStartOffset();if(c instanceof Text&&!(I<1)){var R=c.textContent;!(R=R&&R.charAt(I-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(R)<0||(this.activeMention=_.aj(c,I-1,G.JSC$11513_getEndNode(),G.JSC$11513_getEndOffset()),this.flowNonce=oQ(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.P.updateActiveMention=function(){if(this.activeMention){var G=_.lP();G&&G.isCollapsed()&&(this.activeMention=_.aj(this.activeMention.JSC$11513_getStartNode(),this.activeMention.JSC$11513_getStartOffset(),G.JSC$11513_getEndNode(),G.JSC$11513_getEndOffset()))}};
_.P.requestSuggestions=function(G){if(this.activeMention){var c={suggestions_query:G};this.pendingQuery=G;_.Gs(this.hostElement,[this.suggestionsEndpoint,c])}};
_.P.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.P.focusPreviousSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),G.preventDefault())};
_.P.focusNextSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),G.preventDefault())};
_.P.selectFocusedSuggestion=function(G){if(this.hasSuggestions(this.suggestionsResponse)){var c=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.D(c,Qek)&&(this.selectSuggestion(_.D(c,Qek),this.dropdown.focusedSuggestionIndex),G.preventDefault())}};
_.P.selectSuggestion=function(G,c){if(G){var I=this.activeMention;if(I){var R=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&G.handle?_.yz(R,"\u00a0\u2068@"+G.handle+"\u2069\u00a0"):this.handlesEnabled?_.yz(R,"\u00a0"+G.displayName+"\u00a0"):_.yz(R,"\u00a0@"+G.displayName+"\u00a0");yx(R,"/channel/"+G.channelId);R.classList.add("yt-formatted-string","yt-simple-endpoint");R.setAttribute("spellcheck","false");I.isCollapsed()||I.JSC$11513_removeContents();I.insertNode(R,!0);G=document.createTextNode(" ");
R.parentNode.insertBefore(G,R.nextSibling);window.getSelection().collapse(G,1);c={suggestionSelected:{suggestionIndex:c}};if(this.zeroPrefixMentionSuggestionEnabled){var Z;c.suggestionSelected.isZeroPrefix=((Z=this.suggestionsResponse)==null?void 0:Z.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",c);this.cancelActiveMention();_.Xl(this.hostElement,"yt-mention-inserted")}}};
_.P.getPositionTarget=function(G){return G&&G.getBrowserRangeObject()};
_.P.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.P.onFocusedSuggestionIdChanged=function(G){var c=_.LyU(this.hostElement)[0];c&&(G.detail.value?c.setAttribute("aria-activedescendant",G.detail.value):c.removeAttribute("aria-activedescendant"))};
_.P.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.P.logGELEvent=function(G,c){G={eventType:G,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};c&&(G=Object.assign(G,c));_.x7("userMentionAutoCompleteBoxEvent",G)};
c3.prototype.onDomChange=c3.prototype.onDomChange;c3.prototype.onUserMentionSuggestionSelected=c3.prototype.onUserMentionSuggestionSelected;c3.prototype.onServiceRequestError=c3.prototype.onServiceRequestError;c3.prototype.onServiceRequestCompleted=c3.prototype.onServiceRequestCompleted;c3.prototype.onServiceRequestSent=c3.prototype.onServiceRequestSent;c3.prototype.onInput=c3.prototype.onInput;_.r([_.L(_.Ha),_.h("design:type",Object)],c3.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],c3.prototype,"suggestionsEndpoint",void 0);_.r([_.E(),_.h("design:type",Object)],c3.prototype,"suggestionsResponse",void 0);_.r([_.E(),_.h("design:type",Object)],c3.prototype,"activeMention",void 0);_.r([_.nH("#dropdown"),_.h("design:type",Object)],c3.prototype,"dropdown",void 0);_.r([_.nH("#iron-dropdown"),_.h("design:type",Object)],c3.prototype,"ironDropdown",void 0);
_.r([_.qY("input"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],c3.prototype,"onInput",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],c3.prototype,"onServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],c3.prototype,"onServiceRequestCompleted",null);
_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],c3.prototype,"onServiceRequestError",null);_.r([_.qY("yt-user-mention-suggestion-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],c3.prototype,"onUserMentionSuggestionSelected",null);
_.r([_.qY("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],c3.prototype,"onDomChange",null);_.r([_.Em({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],c3);
_.B(c3,"yt-user-mention-autosuggest-input",function(){if(Sxk===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;$KK===void 0&&($KK=document.createElement("template"));var R=$KK;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Sxk=G}G=Sxk;return G},{mode:2});var Ii=null;
_.SD({is:"ytd-commentbox",_template:function(){if(b60!==void 0)return b60;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return b60=G},
behaviors:[_.KtT.YtHostElementBehavior,_.Ha,_.HR.YtActionHandlerBehavior,_.wm.YtComponentBehavior,_.V5.YtRendererstamperBehavior,_.qai.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(G,c){return _.a6(G.entities,"aadcGuidelinesStateEntityPayload",c)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(G,c){return _.a6(G.entities,"commentboxStateEntity",c)},
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 _.bd}},
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:_.v("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.v("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",_.lO(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(G){this.fire(G?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(G){this.set("submitButtonDisabled",void 0);this.clear();G&&this.computeIsEmojiButtonDisplayed_(G)&&(G=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&G.updateEmojiCategories()},
observePrefilledImage_:function(G,c,I){this.isValidPrefilledImage_(G,c,I)&&(this.prefilledAttachment_="image",this.prefilledImageData_=c,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(G,c){this.isValidPrefilledVideo_(G,c)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(G){G&&G.pollData&&G.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(G.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Jk();this.focus()},
detached:function(){document.removeEventListener("tap",_.lO(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(G){G=G.detail;G=G.isCustomEmoji?G.shortcuts[0]:G.emojiId;var c=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(c,G);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var G=_.lP();if(G){G=G.getBrowserRangeObject();for(var c=G.commonAncestorContainer;c;){if(c===this.getEditableTextArea_())return G;c=c.parentNode}}G=this.getEditableTextArea_();G=_.mZ(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,c,I){(c=this.emojiManager.createDocumentFragment(c,!0,!1,I===void 0?!0:I))&&c.childNodes.length!==0&&(G.collapsed||G.deleteContents(),I=c.lastChild,G.insertNode(c),_.k9e(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var G=_.lP();if(G){var c=G.JSC$11513_getStartNode(),I=G.JSC$11513_getEndNode();if(T$8(c)&&T$8(I)){var R=G.JSC$11513_getStartOffset(),Z;if(_.o3&&c.nodeType===Node.ELEMENT_NODE&&(Z=_.vMA(c)))_.mZ(Z,0).select();else{Z=Og(c)?c:_.H6(c,Og);var K=Og(I)?I:_.H6(I,Og);if(Z||K)if(G.isCollapsed()){if(c.nodeType===Node.TEXT_NODE){G=!0;R===c.length&&(G=!1);if(Ii==="end"||Ii==="right")G=!1;c=c.parentNode;G=[].concat(_.jn(c.parentNode.childNodes)).indexOf(c)+(G?0:1);_.mZ(c.parentNode,
G).select()}}else Z?Z.previousSibling&&Z.previousSibling.length>0?_.aj(I,G.JSC$11513_getEndOffset(),Z.previousSibling,Z.previousSibling.length-1).select():(c=document.createTextNode("\u200b"),Z.parentNode.insertBefore(c,Z),_.aj(I,G.JSC$11513_getEndOffset(),c,0).select()):K&&(K.nextSibling&&K.nextSibling.length>0?_.aj(c,G.JSC$11513_getStartOffset(),K.nextSibling,1).select():(I=document.createTextNode("\u200b"),K.parentNode.insertBefore(I,K.nextSibling),_.aj(c,G.JSC$11513_getStartOffset(),I,I.length).select()));
Ii=null}}else Ii=null}else Ii=null},
leftKeyPressed_:function(){Ii="left"},
rightKeyPressed_:function(){Ii="right"},
endKeyPressed_:function(){Ii="end"},
maybeDeleteChip_:function(){var G=w4b(!0);if(G){var c=_.lP(),I=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();_.Rj(I,c,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=w4b(!1);if(G){var c=_.lP(),I=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();_.Rj(I,c,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var c=_.lP();if(c.isCollapsed()){var I=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();var R=FSp(I,c,!0);R&&(_.Rj(I,c,R,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var c=_.lP();if(c.isCollapsed()){var I=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();var R=FSp(I,c,!1);R&&(_.Rj(I,c,R,R.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onTap_:function(G){if(!G.defaultPrevented&&(G.currentTarget.tagName==="YTD-COMMENTBOX"&&Og(G.target)&&G.preventDefault(),this.isEmojiPickerDisplayed)){var c=this.$$("#emojis"),I=this.$$("#emoji-button"),R=this.getEditableTextArea_();if((G=G.path?G.path:G.composedPath&&G.composedPath())&&!G.includes(c)&&!G.includes(R)&&!G.includes(I))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(G,c,I){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&c!==void 0&&c.encryptedBlobId!==null&&c.sourceExternalVideoId!==null&&I!==void 0&&I.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(G,c){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!c&&!!c.videoRenderer&&!!c.videoRenderer.videoId},
isValidPrefilledAttachment_:function(G,c,I){return this.isValidPrefilledImage_(G,c,I)||this.isValidPrefilledVideo_(G,I)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.v("enable_multi_image_post_creation")){var G=this.$$("ytd-backstage-multi-image-select-renderer");G&&G.hasImages()&&G.cancel()}else(G=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&G.cancel();(G=this.$["poll-attachment"])&&this.hasPoll_&&G.clearPollOptions();(G=this.$["image-poll-attachment"])&&this.hasImagePoll_&&G.resetPollOptions();(G=this.$["quiz-attachment"])&&this.hasQuiz_&&G.resetQuizOptions();
(G=this.$["video-link-attachment"])&&this.hasVideo_&&G.cancel();(G=this.$["access-restrictions-selector"].firstElementChild)&&G.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.Q1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Q1(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(G,c){G=ej0(G,this.emojiManager,c).cloneNode(!0);for(c=G.firstChild;c;)if(c.nodeType!==1)c=c.nextSibling;else switch(c.tagName){case "BR":var I=_.t5();_.L32(I,c);c=I.nextSibling;break;case "DIV":(I=c.lastChild)&&c.nextSibling&&_.H7(_.t5(),I);c.previousSibling&&(c.previousSibling.nodeType===1||c.previousSibling.nodeType===3&&!c.previousSibling.textContent.endsWith("\n"))&&_.Cm(_.t5(),c);I&&I.nodeName==="BR"&&_.ST(I);I=c;c.hasChildNodes()?(c=c.firstChild,
_.Asi(I)):(c=c.nextSibling,_.ST(I));break;default:c=c.nextSibling}return n3p(G)},
onAddImageError_:function(G){G.stopPropagation();this.errorMessage_=_.Cp(G.detail)},
setTextAreaValue_:function(G){G||(G="");var c=this.getEditableFormattedString_();c.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});c.text=G},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Ii=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.mZ(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.H1("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),c=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",c)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var G;return Qjr((G=this.$["quiz-attachment"])==null?void 0:G.getExplanationText())||Qjr(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var c=this.getInputRange_();c&&(G=this.emojiInput.retrieveTextBeforeRange(c))}this.insertText_(G,!0);this.updateCharCount_();this.setSubmitButton_();G=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=G.scrollHeight>G.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var G=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:G})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(G){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(G)},
onPasteEmoji_:function(G){G.preventDefault();G.stopImmediatePropagation();G=G.clipboardData.getData("text/plain");this.insertText_(G,!1,!1)},
insertText_:function(G,c,I){c=c===void 0?!1:c;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(c&&this.emojiInput.offsetStartOfRangeBy(R,G.length),this.insertTextWithEmojis_(R,G,I),OBC(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,G),this.updateSuggestionOffset_(R)))}},
setSubmitButton_:function(){if(this.data){var G=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",c=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(G||c){var I=this.getTextAreaValue().trim();c=I===this.previousText_;I=!I||this.aboveCharLimit_;G&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(I=this.aboveCharLimit_);this.submitButtonDisabled=
c||I||!this.getTextLength();G&&_.v("enable_post_scheduling")&&(this.submitButtonDisabled=c&&!this.scheduledPublishTimeSec_||I)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.HY,computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computeFooterMessageClass_:function(G,c){return c?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(G,c){return c?c:G},
computeFooterMessageHidden_:function(G,c){return!c&&!G},
computePlaceholderText_:function(G,c,I){return(I==="video"||I==="image")&&(G==null?0:G.prefilledPlaceholderText)?G==null?void 0:G.prefilledPlaceholderText:c==="poll"||c==="image-poll"?G==null?void 0:G.pollPostPlaceholderText:c==="quiz"?G==null?void 0:G.quizPostPlaceholderText:c==="image"?G==null?void 0:G.imagePostPlaceholderText:G==null?void 0:G.placeholderText},
computeHideAttachmentButtons_:function(G,c,I,R){return G===void 0?!1:R&&this.getSimpleString(R)===this.getSimpleString(G.rateLimitErrorMessage)?!0:c!=="none"||I!=="none"||!G.videoLinkButton&&!G.pollButton&&!G.imagePollButton&&!G.quizButton&&!G.imageButton},
computeHideDismissableAttachment_:function(G){return G!=="image"&&G!=="video"},
computeHasVideo_:function(G){return G==="video"},
computeHasImage_:function(G){return G==="image"},
computeHasPoll_:function(G){return G==="poll"},
computeHasImagePoll_:function(G){return G==="image-poll"},
computeHasQuiz_:function(G){return G==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(G){return G&&G.backstageAttachment?G.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!G.backstageAttachment.quizRenderer&&!G.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(G){if(this.isValidPrefilledAttachment_(G.purpose,G.prefilledImageData,G.backstageAttachment))return G.backstageAttachment},
computeEditAttachment_:function(G){if(this.computePrefilledContent_(G)===void 0)return G.backstageAttachment},
computeAuthorThumbnailDimension_:function(G,c){return G&&!c?24:40},
computeImageUploadEndpoint_:function(G){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",G)},
computeRateLimitErrorCommands_:function(G){var c,I;return G==null?void 0:(c=G.advancedTierFeatures)==null?void 0:(I=c.rateLimit)==null?void 0:I.rateLimitCommands},
computeIsBackstageComment_:function(G){return!(!G||G!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)||this.get("replyButton.buttonRenderer.serviceEndpoint",G)||this.get("postButton.buttonRenderer.serviceEndpoint",G)},
computeSubmitButtonOverride:function(){if(_.v("web_modern_buttons")){var G,c;return{segmentedPosition:this.dropdownSchedulePanel_||!((G=this.data)==null?0:(c=G.postOptionsMenu)==null?0:c.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.v("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(G,c){G=this.get("submitButton.buttonRenderer",G)||this.get("replyButton.buttonRenderer",G)||this.get("postButton.buttonRenderer",G);c&&(G=c);G&&(G=Object.assign({},G),G.serviceEndpoint=void 0,G.isDisabled=this.submitButtonDisabled);return G},
computeHasExternalLinksAccess_:function(G){if(_.v("enable_rfa_external_links")){var c,I,R;return(R=G==null?void 0:(c=G.advancedTierFeatures)==null?void 0:(I=c.externalLinks)==null?void 0:I.allowExternalLinks)!=null?R:!0}return!0},
computeIsEmojiButtonDisplayed_:function(G){return G.emojiButton&&G.emojiPicker&&G.emojiPicker.emojiPickerRenderer&&G.emojiPicker.emojiPickerRenderer.categories?G.emojiPicker.emojiPickerRenderer.categories.find(function(c){return c.emojiPickerCategoryRenderer?c.emojiPickerCategoryRenderer.emojiIds&&c.emojiPickerCategoryRenderer.emojiIds.length>0:c.emojiPickerUpsellCategoryRenderer?c.emojiPickerUpsellCategoryRenderer.emojis&&c.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(G){return G.charLimit?G.charLimit:null},
computeDropdownSchedulingPanel_:function(G,c){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&c)return c},
computeInlineSchedulingPanel_:function(G,c){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c)return c},
computeHideAuthorThumbnail_:function(G,c){return G||this.computeUseIdentityChip_(c)},
computeHideIdentityChipRenderer_:function(G,c){return G||!this.computeUseIdentityChip_(c)},
computeUseIdentityChip_:function(G){return!!G&&!!G.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(G){var c,I,R,Z;(G==null?0:(c=G.detail)==null?0:(I=c.endpoint)==null?0:I.ypcGetOffersEndpoint)||(G==null?0:(R=G.detail)==null?0:(Z=R.endpoint)==null?0:Z.ypcOffersEndpoint)?(G.stopPropagation(),_.Gs(this,[G.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(G.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(G){this.addedAttachment="video";this.selectedVideoId_=G.detail.videoId},
commentboxStateEntityChanged_:function(G){var c=this;(G==null?void 0:G.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(G==null?void 0:G.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){c.focus()})},
onYtServiceRequestSent_:function(G,c){if(c.actions)for(G=_.Q(c.actions),c=G.next();!c.done;c=G.next())c.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(G){this.isLoading=!1;var c=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",G),I,R,Z,K=G==null?void 0:(I=G.detail)==null?void 0:(R=I.data)==null?void 0:(Z=R.actionResult)==null?void 0:Z.commentboxStateEntityKey;if(c)this.errorMessage_=c;else if(K){var m;this.dismissData_=G==null?void 0:(m=G.detail)==null?void 0:m.data;this.commentboxStateKey_=K}else{this.clear();var a;this.fire("yt-commentbox-dismiss",G==null?void 0:(a=G.detail)==
null?void 0:a.data)}},
onYtServiceRequestError_:function(G){G.stopPropagation();this.isLoading=!1;var c,I;if(((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((I=this.data)==null?void 0:I.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(c=this.get("detail.error.args",G)||[],c.length>1&&c[1].message){this.handlePostsServiceRequestError_(c[1].message);return}(G=this.get("detail.error.message",G))?this.errorMessage_=this.data.errorMessage||_.Cp(G):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(G){if(_.v("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var c=_.Q(this.rateLimitErrorCommands),I=c.next();!I.done;I=c.next())if(I=I.value,I.errorLabel===G){_.qC(I.command,this.hostElement);return}this.errorMessage_=_.Cp(G)},
submitIfNotBackstagePost_:function(G){if(!this.isBackstagePost)this.onSubmit_(G)},
onSubmit_:function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p;return _.T(function(M){switch(M.nextAddress){case 1:G.stopPropagation();if(!c.serviceEndpoint||!c.isValidInput_())return M.return();if(c.shouldShowPostAadcNotice_())return c.showPostAadcNotice_(),M.return();if(c.shouldShowCommentAadcNotice_())return c.showCommentAadcNotice_(),M.return();if(!(c.$$("ytd-backstage-multi-image-select-renderer")&&c.hasImage_&&_.v("enable_multi_image_post_creation"))){M.jumpTo(2);break}I=c.$$("ytd-backstage-multi-image-select-renderer");
return M.yield(I.getAllUploadStatuses(),3);case 3:R=M.yieldResult;if(!R)return M.return();Z=_.Q(R);for(K=Z.next();!K.done;K=Z.next())if(m=K.value,m.encryptedBlobId===void 0)return c.isLoading=!1,O=a=void 0,c.errorMessage_=(O=(a=c.imageUploadEndpoint_)==null?void 0:a.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?O:null,M.return();return M.return(c.submitForm_(void 0,void 0,void 0,void 0,I.images,c.taggedVideoId_));case 2:if(!c.hasImagePoll_||!c.$["image-poll-attachment"]){M.jumpTo(4);
break}return M.yield(c.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:N=M.yieldResult;if(!N)return M.return();q=_.Q(N);for(w=q.next();!w.done;w=q.next())if(F=w.value,!F.encryptedBlobId)return c.isLoading=!1,n=void 0,c.errorMessage_=(n=c.data.errorMessage)!=null?n:null,M.return();case 4:k=(U=c.$$("ytd-backstage-image-select-renderer"))&&U.uploadPromise(),p=c.getSharedPostId_(),k?k.then(function(){c.submitForm_.apply(c,_.jn(_.Hy.apply(0,arguments)))}).catch(function(z){c.isLoading=!1;
c.errorMessage_=_.Cp(z.message)}):c.selectedVideoId_?c.submitForm_(void 0,c.selectedVideoId_):c.prefilledAttachment_==="image"?c.submitForm_(c.prefilledImageData_.encryptedBlobId,void 0,void 0,c.prefilledImageData_.sourceExternalVideoId,void 0,c.taggedVideoId_):c.prefilledAttachment_==="video"?c.submitForm_(void 0,c.data.backstageAttachment.videoRenderer.videoId):p?c.submitForm_(void 0,void 0,p):c.taggedVideoId_!==void 0?c.submitForm_(void 0,void 0,void 0,void 0,void 0,c.taggedVideoId_):c.submitForm_(),
_.Vp(M)}})},
openSchedulingPanel:function(G){G&&G.scheduleButton&&G.scheduleButton.buttonRenderer&&(this.scheduleButton_=G.scheduleButton.buttonRenderer);G&&G.dateTimePicker&&this.set("data.schedulingDateTimePicker",G.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(G){G.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(G){G.stopPropagation();G.detail.alertMessage&&(this.alertMessage_=G.detail.alertMessage)},
onImageSelected_:function(G){G.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(G){G.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(G.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(G){var c=this.$["video-link-attachment"];c&&c.onLaunchVideoPicker(G)},
onAttachmentDismiss_:function(G){G.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.v("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.v("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var G;if(this.addedAttachment==="image-poll"&&((G=this.$["image-poll-attachment"])==null||!G.isValid()))return!1;var c;if(this.addedAttachment==="quiz"&&((c=this.$["quiz-attachment"])==null||!c.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;G=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(G=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")G=!0;return G||!!this.getTextAreaValue().trim()},
submitForm_:function(G,c,I,R,Z,K){var m=this.getTextAreaValue().trim(),a={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&m===this.previousText_&&(m=void 0);m!==void 0&&(a.comment_text=m);this.isLoading=!0;K!=void 0&&(a.tagged_video_id=K);G?(a.image_blob_id=G,this.imagePreviewCoordinates_&&(a.image_preview_coordinates=this.imagePreviewCoordinates_)):c?a.attached_video_id=c:I?a.shared_post_id=I:Z&&Z.length>0&&(a.images_data=Z.map(function(O){return{encryptedBlobId:O.encryptedBlobId,
previewCoordinates:O.previewCoordinates}}));
R&&(a.source_video_id=R);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(a.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(a.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(a.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(a.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.v("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(a.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Gs(this,[this.serviceEndpoint,a])},
onIsInputFocusChanged_:function(G,c){G?this.fire("yt-autonav-pause-focus"):c!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var c=this.getEditableTextArea_();[].concat(_.jn(G.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(R){c.appendChild(document.createTextNode(R))})});
G.preventDefault()},
preventDefault_:function(G){G.preventDefault()},
onSuggestionInsert_:function(G){this.insertTextWithEmojis_(G.detail.range,G.detail.text)},
onEmojiSuggestionClick_:function(G){this.emojiInput.insertSuggestion(G.detail)},
computeSubmitButtonClass_:function(G,c){return!c||G?"":"with-options"},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.Q1(this.emojiInput).querySelector("#dropdown")){var c=this.getEditableTextArea_().getBoundingClientRect().bottom,I=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(c-I)+5;c=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-c;_.Q1(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(G){if(_.v("enable_post_scheduling")&&this.data&&this.data.purpose){G=G.detail;if(Math.floor(Date.now()/1E3)>=G)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var c=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(c)||c!==G?this.scheduledPublishTimeSec_=G:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=G;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var G=["image-button","image-poll-button","poll-button","quiz-button"];_.v("auto_convert_posts_video_tag")||G.push("video-link-button");return G},
getButtonRenderer:function(G,c){if(G)switch(c){case "video-link-button":var I;return((I=G.videoLinkButton)==null?void 0:I.buttonRenderer)||void 0;case "image-button":var R;return((R=G.imageButton)==null?void 0:R.buttonRenderer)||void 0;case "poll-button":var Z;return((Z=G.pollButton)==null?void 0:Z.buttonRenderer)||void 0;case "image-poll-button":var K;return((K=G.imagePollButton)==null?void 0:K.buttonRenderer)||void 0;case "quiz-button":var m;return((m=G.quizButton)==null?void 0:m.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var G;return(G=this.data)==null||!G.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var G,c;return!((G=this.data)==null||!G.openAadcDialog)&&!((c=this.aadcGuidelinesState_)==null||!c.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.H1("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var G;((G=this.data)==null?0:G.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.gJ("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(G){G.clickTrackingParams&&_.DP().clickCommand(G);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ym(this,"yt-close-popup-action")},
onHideIdentityChip:function(G){var c;this.set("data.placeholderText",(c=G.hideIdentityChipAction)==null?void 0:c.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Ri=function(){var G=_.J.apply(this,arguments)||this;G.isOpen=!1;G.modern=_.v("web_modern_buttons");G.roundedContainer=!0;G.dropdownButtonOverride=_.v("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;G.inPopupContainer=!1;G.isCommentboxLoading=!1;var c=["image-button","image-poll-button","poll-button"];_.v("enable_quiz_creation")&&c.push("quiz-button");_.v("auto_convert_posts_video_tag")||c.push("video-link-button");G.attachmentButtonIds=c;G.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return G};
_.u(Ri,_.J);_.P=Ri.prototype;_.P.computeButtonOverride=function(){var G;return((G=this.data)==null?0:G.postOptionsMenu)&&_.v("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.P.configureRendererStamper=function(){var G={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.v("auto_convert_posts_video_tag")||(G["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return G};
_.P.ready=function(){var G=this,c=_.Q1(this.hostElement).querySelector("#placeholder-area"),I=function(R){G.onOpen(R)};
c.addEventListener("tap",I);c.addEventListener("keypress",I)};
_.P.showButtonEduTooltip=function(){var G,c,I,R,Z,K,m;if(_.v("enable_quiz_creation")&&((G=this.data)==null?0:(c=G.quizButton)==null?0:(I=c.buttonRenderer)==null?0:(R=I.hint)==null?0:(Z=R.hintRenderer)==null?0:(K=Z.content)==null?0:(m=K.bubbleHintRenderer)==null?0:m.text)&&(_.th.getInstance(),G=hh(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(G==null?void 0:
G.length)>0)){this.ytComponentBehavior.resolveCommand(G[0],{form:{element:this.quizButton}});return}var a;if((a=this.data)==null?0:a.imagePollButtonTooltip)if(_.th.getInstance(),a=hh(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(a==null?void 0:a.length)>0){this.ytComponentBehavior.resolveCommand(a[0],{form:{element:this.imagePollButton}});return}var O;_.v("enable_multi_image_post_creation")&&
((O=this.data)==null?0:O.multiImageButtonTooltip)&&(_.th.getInstance(),O=hh(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(O==null?void 0:O.length)>0&&this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.imageButton}}))};
_.P.onCreatePollAction=function(G){_.D(G,SBK)&&(this.JSC$16111_commentbox.addedAttachment="poll",this.openDialog())};
_.P.onAddVideoLinkAction=function(G){if(_.D(G,skK))this.JSC$16111_commentbox.onAddVideoLink(G)};
_.P.onShowSchedulingPanelCommand=function(G){(G=_.D(G,I9K))&&this.openSchedulingPanel(G)};
_.P.onCreateImagePollCommand=function(G){_.D(G,R7i)&&(this.JSC$16111_commentbox.openImagePollComponent(),this.openDialog())};
_.P.onCreateQuizCommand=function(G){_.D(G,ZfK)&&(this.JSC$16111_commentbox.openQuizComponent(),this.openDialog())};
_.P.openSchedulingPanel=function(G){_.v("enable_post_scheduling")&&(this.openDialog(),this.JSC$16111_commentbox.openSchedulingPanel(G))};
_.P.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.JSC$16111_commentbox.clear(),this.closeDialog())};
_.P.onOpen=function(G){G instanceof KeyboardEvent&&G.type==="keypress"&&G.keyCode!==13&&G.keyCode!==32||(this.data.prepareAccountEndpoint?_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.closeDialog()};
_.P.onYtCommentboxLoadingStart=function(G){G.stopPropagation();this.isCommentboxLoading=!0};
_.P.onYtCommentboxLoadingEnd=function(G){G.stopPropagation();this.isCommentboxLoading=!1};
_.P.onYtVideoLinkButtonCancel=function(G){G.stopPropagation();this.onOpen(G)};
_.P.onYtVideoLinkSelected=function(G){G.stopPropagation();this.onOpen(G)};
_.P.onIronSelect=function(G){G.stopPropagation();G.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=G.detail.item.value&&(this.accessRestriction?(this.accessRestriction=G.detail.item.value,this.onOpen(G)):this.accessRestriction=G.detail.item.value)};
_.P.onYtNavigate=function(G){this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(this.JSC$16111_commentbox.addedAttachment="image",this.JSC$16111_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.P.onRequestSent=function(G){for(var c=_.Q(G.detail),I=c.next();!I.done;I=c.next())_.D(I.value,lsN)&&(this.JSC$16111_commentbox.addedAttachment="image",this.JSC$16111_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.P.openDialog=function(){var G;(G=this.data)!=null&&G.isIneligibleForCommunityPagePostCreation||(this.JSC$16111_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16111_commentbox.focus())};
_.P.onPopupClosed=function(){_.th.getInstance()};
_.P.computeCreationDisabled=function(G){return!!G};
_.P.computeIsCreationDialog=function(G){return!!G&&G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.P.computeDisabledPostButton=function(G){if(!G)return null;G.isDisabled=!0;return G};
_.P.computeIsCreationDialogWithHeader=function(G){return!this.inPopupContainer&&!!G&&!!G.authorText&&G.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.P.computeIsHeaderHidden=function(G,c){return!G||c};
_.P.computeDropdownRendererClasses=function(G){return G?["text-secondary-style"]:[]};
_.P.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var G=_.Q1(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;G&&G.reset()};
Ri.prototype.onPopupClosed=Ri.prototype.onPopupClosed;Ri.prototype.onRequestSent=Ri.prototype.onRequestSent;Ri.prototype.onYtNavigate=Ri.prototype.onYtNavigate;Ri.prototype.onIronSelect=Ri.prototype.onIronSelect;Ri.prototype.onYtVideoLinkSelected=Ri.prototype.onYtVideoLinkSelected;Ri.prototype.onYtVideoLinkButtonCancel=Ri.prototype.onYtVideoLinkButtonCancel;Ri.prototype.onYtCommentboxLoadingEnd=Ri.prototype.onYtCommentboxLoadingEnd;Ri.prototype.onYtCommentboxLoadingStart=Ri.prototype.onYtCommentboxLoadingStart;
Ri.prototype.onYtCommentboxDismiss=Ri.prototype.onYtCommentboxDismiss;Ri.prototype.showButtonEduTooltip=Ri.prototype.showButtonEduTooltip;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Ri.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Ri.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ri.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ri.prototype,"isOpen",void 0);_.r([_.E({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],Ri.prototype,"buttonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ri.prototype,"modern",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ri.prototype,"roundedContainer",void 0);_.r([_.E(),_.h("design:type",Object)],Ri.prototype,"dropdownButtonOverride",void 0);_.r([_.E({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.h("design:type",Boolean)],Ri.prototype,"creationDisabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ri.prototype,"enableCreationBox",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.h("design:type",Boolean)],Ri.prototype,"isCreationDialog",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ri.prototype,"inPopupContainer",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.h("design:type",Boolean)],Ri.prototype,"isCreationDialogWithHeader",void 0);_.r([_.E(),_.h("design:type",Object)],Ri.prototype,"accessRestriction",void 0);
_.r([_.E({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.h("design:type",Array)],Ri.prototype,"dropdownRendererClasses",void 0);_.r([_.E(),_.h("design:type",Object)],Ri.prototype,"isCommentboxLoading",void 0);_.r([_.E(),_.h("design:type",Array)],Ri.prototype,"attachmentButtonIds",void 0);_.r([_.nH("#image-button"),_.h("design:type",HTMLElement)],Ri.prototype,"imageButton",void 0);
_.r([_.nH("#image-poll-button"),_.h("design:type",HTMLElement)],Ri.prototype,"imagePollButton",void 0);_.r([_.nH("#quiz-button"),_.h("design:type",HTMLElement)],Ri.prototype,"quizButton",void 0);_.r([_.nH("#commentbox"),_.h("design:type",Object)],Ri.prototype,"JSC$16111_commentbox",void 0);_.r([_.wD("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ri.prototype,"showButtonEduTooltip",null);
_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ri.prototype,"onYtCommentboxDismiss",null);_.r([_.qY("yt-commentbox-loading-start"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ri.prototype,"onYtCommentboxLoadingStart",null);
_.r([_.qY("yt-commentbox-loading-end"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ri.prototype,"onYtCommentboxLoadingEnd",null);_.r([_.qY("yt-video-link-button-cancel"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ri.prototype,"onYtVideoLinkButtonCancel",null);
_.r([_.qY("yt-video-link-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ri.prototype,"onYtVideoLinkSelected",null);_.r([_.qY("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ri.prototype,"onIronSelect",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ri.prototype,"onYtNavigate",null);
_.r([_.qY("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ri.prototype,"onRequestSent",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ri.prototype,"onPopupClosed",null);_.r([_.Jc({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Ri);
_.B(Ri,"ytd-backstage-post-dialog-renderer",function(){if(RHe!==void 0)return RHe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return RHe=G},{mode:1});var Ele;var JVK;var ZO=function(){return _.J.apply(this,arguments)||this};
_.u(ZO,_.J);_.P=ZO.prototype;_.P.computeHeartButtonStyle=function(G){return(G==null?0:G.styleType)?G.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onYtButtonTap=function(){if(this.data.isEnabled){var G=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(G=this.getEndpoint(G))&&_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}})}else(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(G)};
_.P.toggle=function(G){this.set("data.isHearted",G!==void 0?G:!this.data.isHearted)};
_.P.getEndpoint=function(G){var c,I=(c=this.data)==null?void 0:c.heartEndpoint,R;c=(R=this.data)==null?void 0:R.unheartEndpoint;if(I&&c)return G?c:I};
_.P.computeButtonAccessibility=function(G,c){var I,R,Z=G==null?void 0:(I=G.heartedAccessibility)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label,K,m;G=G==null?void 0:(K=G.unheartedAccessibility)==null?void 0:(m=K.accessibilityData)==null?void 0:m.label;return c?Z:G};
_.Nh.Object.defineProperties(ZO.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var G;return _.v("kevlar_system_icons")&&!((G=this.data)==null||!G.isHearted)}}});
ZO.prototype.onYtButtonTap=ZO.prototype.onYtButtonTap;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],ZO.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ZO.prototype,"data",void 0);_.r([_.A("data.isHearted"),_.h("design:type",Object),_.h("design:paramtypes",[])],ZO.prototype,"heartTooltip",null);
_.r([_.A("data.isHearted"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ZO.prototype,"iconFilled",null);_.r([_.E({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.h("design:type",String)],ZO.prototype,"buttonAccessibility",void 0);_.r([_.E({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],ZO.prototype,"heartButtonStyle",void 0);
_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZO.prototype,"onYtButtonTap",null);_.r([_.Jc({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ZO);
_.B(ZO,"ytd-creator-heart-renderer",function(){if(JVK!==void 0)return JVK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return JVK=G},{mode:1});var KP=function(){var G=_.J.apply(this,arguments)||this;G.hasCreatorReply=!1;G.buttonOverrides={size:"S",iconPosition:"icon-only"};G.replyButtonOverrides={size:"S",type:"text"};G.forceIconButton=!_.v("web_modern_buttons");G.modern=_.v("web_modern_buttons");G.buttonTooltipPosition="bottom";G.systemIcons=_.v("kevlar_system_icons");G.replyDialog=null;return G};
_.u(KP,_.J);_.P=KP.prototype;
_.P.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.P.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.P.dataChange=function(){this.replyDialog&&_.Q1(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var G,c,I;this.isLiked=this.systemIcons&&!!((G=this.data)==null?0:(c=G.likeButton)==null?0:(I=c.toggleButtonRenderer)==null?0:I.isToggled)};
_.P.computeShowVoteCountBeginning=function(G,c){return G===void 0||c===void 0?!0:G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.P.computeShowVoteCountEnd=function(G,c){return G===void 0||c===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.P.computeShowCommentCount=function(G,c){return G===void 0||c===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.P.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.P.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.P.showReplyDialog=function(G){G&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Q1(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=G,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.P.onRequestSent=function(G){G=_.Q(G.detail);for(var c=G.next();!c.done;c=G.next())(c=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",c.value))&&this.showReplyDialog(c)};
_.P.onYtNavigate=function(G){var c,I;(G=(c=_.D(G.detail.endpoint,_.wR9))==null?void 0:(I=c.dialog)==null?void 0:I.commentReplyDialogRenderer)&&this.showReplyDialog(G)};
_.P.onYtServiceRequestSent=function(G,c){G.stopPropagation();if(c.actions)for(G=0;G<c.actions.length;G++){var I=_.D(c.actions[G],Jk0);I&&this.handleUpdateCommentVoteAction(I)}};
_.P.handleUpdateCommentVoteAction=function(G){this.voteCount=G.voteCount||_.Cp("0");G.voteStatus==="LIKE"?this.JSC$16123_ytdDislikeToggleButtonRenderer.toggle(!1):G.voteStatus==="DISLIKE"?this.JSC$16123_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16123_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16123_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.P.computeReplyButtonHidden=function(G){return G};
_.P.computeReplyButtonBeginning=function(G){return(G==null?0:G.replyButton)&&G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.P.computeReplyButtonEnd=function(G){return(G==null?0:G.replyButton)&&G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.P.computeActionButtonStyle=function(G){return(G==null?0:G.style)?G.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.P.onYtToggleButton=function(G){var c,I;this.isLiked=this.systemIcons&&!!((c=G.detail)==null?0:(I=c.actions)==null?0:I.like)};
KP.prototype.onYtToggleButton=KP.prototype.onYtToggleButton;KP.prototype.onButtonTooltipPositionChanged=KP.prototype.onButtonTooltipPositionChanged;KP.prototype.onYtServiceRequestSent=KP.prototype.onYtServiceRequestSent;KP.prototype.onYtNavigate=KP.prototype.onYtNavigate;KP.prototype.onRequestSent=KP.prototype.onRequestSent;KP.prototype.onYtCommentboxDismiss=KP.prototype.onYtCommentboxDismiss;KP.prototype.dataChange=KP.prototype.dataChange;
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],KP.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],KP.prototype,"voteCount",void 0);_.r([_.E(),_.h("design:type",Object)],KP.prototype,"commentCount",void 0);_.r([_.E(),_.h("design:type",Object)],KP.prototype,"replyThumbnail",void 0);
_.r([_.E(),_.h("design:type",Object)],KP.prototype,"hasCreatorReply",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],KP.prototype,"enableCreationBox",void 0);_.r([_.E({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],KP.prototype,"actionButtonsStyle",void 0);_.r([_.E({computed:"computeReplyButtonBeginning(data)"}),_.h("design:type",Object)],KP.prototype,"replyButtonBeginning",void 0);
_.r([_.E({computed:"computeReplyButtonEnd(data)"}),_.h("design:type",Object)],KP.prototype,"replyButtonEnd",void 0);_.r([_.E(),_.h("design:type",Object)],KP.prototype,"buttonOverrides",void 0);_.r([_.E(),_.h("design:type",Object)],KP.prototype,"replyButtonOverrides",void 0);_.r([_.E(),_.h("design:type",Object)],KP.prototype,"forceIconButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],KP.prototype,"useCommentIcon",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],KP.prototype,"modern",void 0);_.r([_.E(),_.h("design:type",Object)],KP.prototype,"buttonTooltipPosition",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],KP.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],KP.prototype,"isLiked",void 0);_.r([_.nH("ytd-button-renderer"),_.h("design:type",Object)],KP.prototype,"ytdReplyButtonRenderer",void 0);
_.r([_.nH("#like-button"),_.h("design:type",Object)],KP.prototype,"JSC$16123_ytdLikeToggleButtonRenderer",void 0);_.r([_.nH("#dislike-button"),_.h("design:type",Object)],KP.prototype,"JSC$16123_ytdDislikeToggleButtonRenderer",void 0);_.r([_.nH("#reply-dialog"),_.h("design:type",HTMLElement)],KP.prototype,"replyDialogElement",void 0);_.r([_.nH("#reply-button"),_.h("design:type",HTMLElement)],KP.prototype,"replyButtonElement",void 0);
_.r([_.nH("#reply-button-end"),_.h("design:type",HTMLElement)],KP.prototype,"replyButtonEndElement",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KP.prototype,"dataChange",null);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],KP.prototype,"onYtCommentboxDismiss",null);
_.r([_.qY("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],KP.prototype,"onRequestSent",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],KP.prototype,"onYtNavigate",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],KP.prototype,"onYtServiceRequestSent",null);_.r([_.wD("buttonTooltipPosition"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KP.prototype,"onButtonTooltipPositionChanged",null);
_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],KP.prototype,"onYtToggleButton",null);_.r([_.Jc({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],KP);
_.B(KP,"ytd-comment-action-buttons-renderer",function(){if(Ele!==void 0)return Ele;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ele=G},{mode:1});var WEk;var P3=function(){return _.J.apply(this,arguments)||this};
_.u(P3,_.J);P3.prototype.focus=function(){_.Q1(this.hostElement).querySelector("#commentbox").focus()};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],P3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],P3.prototype,"zeroStepChannelCreationRenderer",void 0);_.r([_.Jc({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],P3);
_.B(P3,"ytd-comment-dialog-renderer",function(){if(WEk!==void 0)return WEk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return WEk=G},{mode:1});var i6T;var QD=function(){var G=_.J.apply(this,arguments)||this;G.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.v("enable_web_delhi_icons")};G.replyButtonOverrides={size:"S",type:"text"};return G};
_.u(QD,_.J);_.P=QD.prototype;_.P.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.P.detached=function(){this.replyBox&&this.replyBox.remove()};
_.P.showReplyDialog=function(G){if(G){var c=this.replyBox;c||(c=document.createElement("ytd-comment-reply-dialog-renderer"),c.id="replybox",_.Q1(this.replyDialogDiv).appendChild(c));c.data=G;this.replyDialogDiv.hidden=!1;c.openDialog()}};
_.P.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.P.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var G,c=_.D((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand,_.JN);c&&_.Xl(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:c})}};
_.P.onYtServiceRequestSent=function(G,c){G.stopPropagation();if(c.actions)for(var I=0;I<c.actions.length;I++){var R=_.D(c.actions[I],Jk0);R?this.handleUpdateCommentVoteAction(R):G.target===this.heartButton&&this.toggleHeartState()}};
_.P.handleUpdateCommentVoteAction=function(G){var c;(c=this.toolbarState)!=null&&c.key&&this.ytdReduxBehavior.dispatch(_.Wm("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:G.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":G.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.P.toggleHeartState=function(){var G;(G=this.toolbarState)!=null&&G.key&&this.ytdReduxBehavior.dispatch(_.Wm("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Nh.Object.defineProperties(QD.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return(((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(c=this.toolbarData)==null?void 0:c.likeCountLiked:(I=this.toolbarData)==null?void 0:I.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand)!==void 0&&!_.v("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,c=_.D((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.JN),I,R,Z,K,m,a,O,N,q;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:c!=null?c:_.D((Z=this.toolbarSurface)==null?void 0:Z.likeCommand,_.JN),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.D((K=this.toolbarSurface)==null?void 0:K.unlikeCommand,_.JN),defaultCommand:this.isVisiblyDisabled?_.D((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand,_.JN):void 0,defaultTooltip:(a=this.toolbarData)==null?void 0:a.likeInactiveTooltip,toggledTooltip:(O=this.toolbarData)==null?void 0:O.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(N=this.toolbarData)==null?void 0:N.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(q=this.toolbarSharedData)==null?void 0:q.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,c=_.D((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.JN),I,R,Z,K,m,a,O,N,q,w;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.D((Z=this.toolbarSurface)==null?void 0:Z.dislikeCommand,_.JN),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.D((K=this.toolbarSurface)==null?void 0:K.undislikeCommand,_.JN),defaultCommand:this.isVisiblyDisabled?_.D((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand,_.JN):void 0,defaultTooltip:(a=this.toolbarData)==null?void 0:a.dislikeInactiveTooltip,toggledTooltip:(O=this.toolbarData)==null?void 0:
O.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(N=this.toolbarSharedData)==null?void 0:N.dislikeReplyButtonA11y:(q=this.toolbarSharedData)==null?void 0:q.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var G,c,I;if(((G=this.toolbarState)==null?void 0:G.heartState)!==void 0&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((I=this.toolbarState)==null?void 0:I.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var R,Z,K,m,a,O,N,q,w,F,n,U,k,p;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(R=this.toolbarData)==null?void 0:R.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Z=this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.D((O=this.toolbarSurface)==null?void 0:O.heartCommand,
_.JN),unheartEndpoint:this.isVisiblyDisabled?void 0:_.D((N=this.toolbarSurface)==null?void 0:N.unheartCommand,_.JN),disabledEndpoint:this.isVisiblyDisabled?_.D((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand,_.JN):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(w=this.toolbarData)==null?void 0:w.heartActiveTooltip,unheartedTooltip:(F=this.toolbarData)==null?void 0:F.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((n=
this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(U=this.toolbarSharedData)==null?void 0:U.unheartButtonA11y:(k=this.toolbarSharedData)==null?void 0:k.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(p=this.toolbarSharedData)==null?void 0:p.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.toolbarSurface)==null||!G.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.commentStrings)!=null&&G.replyButtonText){var c,I,R,Z;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(c=this.commentStrings)==null?void 0:c.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.D((I=this.toolbarSurface)==null?void 0:I.replyCommand,_.JN),command:this.isVisiblyDisabled?
_.D((R=this.toolbarSurface)==null?void 0:R.commentDisabledActionCommand,_.JN):this.isSubsOnlyCommentsIneligibleUser?_.D((Z=this.toolbarSurface)==null?void 0:Z.subscribersOnlySnackbarCommand,_.JN):void 0}}}}});
QD.prototype.onYtServiceRequestSent=QD.prototype.onYtServiceRequestSent;QD.prototype.hideReplyDialogDiv=QD.prototype.hideReplyDialogDiv;_.r([_.E(),_.h("design:type",Object)],QD.prototype,"commentStrings",void 0);_.r([_.E(),_.h("design:type",Boolean)],QD.prototype,"isReply",void 0);_.r([_.E(),_.h("design:type",Object)],QD.prototype,"toolbarData",void 0);_.r([_.E(),_.h("design:type",Object)],QD.prototype,"toolbarSharedData",void 0);
_.r([_.E(),_.h("design:type",String)],QD.prototype,"toolbarStateKey",void 0);_.r([_.E(),_.h("design:type",String)],QD.prototype,"toolbarSurfaceKey",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],QD.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],QD.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.zQ),_.h("design:type",Object)],QD.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.nH("#reply-dialog"),_.h("design:type",HTMLElement)],QD.prototype,"replyDialogDiv",void 0);_.r([_.nH("#replybox"),_.h("design:type",Object)],QD.prototype,"replyBox",void 0);_.r([_.nH("ytd-creator-heart-renderer"),_.h("design:type",Object)],QD.prototype,"heartButton",void 0);_.r([_.E({selector:function(G,c){return _.a6(G.entities,"engagementToolbarStateEntityPayload",c)},
selectorArgs:["toolbarStateKey"]}),_.h("design:type",Object)],QD.prototype,"toolbarState",void 0);_.r([_.E({selector:Tp8,selectorArgs:["toolbarSurfaceKey"]}),_.h("design:type",Object)],QD.prototype,"toolbarSurface",void 0);_.r([_.E(),_.h("design:type",Object)],QD.prototype,"buttonOverrides",void 0);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QD.prototype,"hideReplyDialogDiv",null);
_.r([_.A("toolbarData","toolbarState"),_.h("design:type",String),_.h("design:paramtypes",[])],QD.prototype,"likeCount",null);_.r([_.A("likeCount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QD.prototype,"showLikeCount",null);_.r([_.A("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QD.prototype,"isVisiblyDisabled",null);_.r([_.A("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QD.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.r([_.A("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QD.prototype,"isSubsOnlyCommentsEligibleUser",null);_.r([_.A("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QD.prototype,"hasPrepareAccountCommand",null);_.r([_.A("toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],QD.prototype,"likeToggleButtonRenderer",null);
_.r([_.A("isReply","toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],QD.prototype,"dislikeToggleButtonRenderer",null);_.r([_.A("toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],QD.prototype,"creatorHeartSupportedRenderer",null);_.r([_.A("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QD.prototype,"hasReplyCommand",null);
_.r([_.A("toolbarSurface","commentStrings","isVisiblyDisabled"),_.h("design:type",Object),_.h("design:paramtypes",[])],QD.prototype,"replyButtonRenderer",null);_.r([_.E(),_.h("design:type",Object)],QD.prototype,"replyButtonOverrides",void 0);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],QD.prototype,"onYtServiceRequestSent",null);_.r([_.Jc({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],QD);
_.B(QD,"ytd-comment-engagement-bar",function(){if(i6T!==void 0)return i6T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return i6T=G},{mode:1});var fyi;var mt=function(){return _.J.apply(this,arguments)||this};
_.u(mt,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mt.prototype,"data",void 0);_.r([_.Jc({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],mt);
_.B(mt,"ytd-comment-inline-thumbnail-renderer",function(){if(fyi!==void 0)return fyi;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return fyi=G},{mode:1});var Bze;var ai=function(){return _.J.apply(this,arguments)||this};
_.u(ai,_.J);ai.prototype.onMessageTap=function(){if(this.onTapCommand){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);G&&this.ytdOpenPopupBehavior.openPopup(G)}};
_.Nh.Object.defineProperties(ai.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return(G=this.data)==null?void 0:(c=G.button)==null?void 0:(I=c.buttonRenderer)==null?void 0:I.command}}});
_.r([_.L(_.zQ),_.h("design:type",Object)],ai.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ai.prototype,"data",void 0);_.r([_.A("data.button.buttonRenderer.command"),_.h("design:type",Object),_.h("design:paramtypes",[])],ai.prototype,"onTapCommand",null);_.r([_.Jc({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],ai);
_.B(ai,"ytd-comment-pause-composer-renderer",function(){if(Bze!==void 0)return Bze;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Bze=G},{mode:1});var rVK;var j$2;var Tx=function(){var G=_.J.apply(this,arguments)||this;G.isOpen=!1;return G};
_.u(Tx,_.J);_.P=Tx.prototype;_.P.dataChanged=function(){this.isOpen=!1};
_.P.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.P.focus=function(){this.JSC$16152_commentbox.focus()};
_.P.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.P.openDialog=function(){this.isOpen=!0;this.JSC$16152_commentbox.focus();this.JSC$16152_commentbox.maybeHeightChanged()};
Tx.prototype.onYtCommentboxDismiss=Tx.prototype.onYtCommentboxDismiss;Tx.prototype.dataChanged=Tx.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Tx.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Tx.prototype,"isOpen",void 0);_.r([_.nH("#commentbox"),_.h("design:type",Object)],Tx.prototype,"JSC$16152_commentbox",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tx.prototype,"dataChanged",null);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Tx.prototype,"onYtCommentboxDismiss",null);_.r([_.Jc({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Tx);
_.B(Tx,"ytd-comment-reply-dialog-renderer",function(){if(j$2!==void 0)return j$2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return j$2=G},{mode:1});var xKp;var OD=function(){return _.J.apply(this,arguments)||this};
_.u(OD,_.J);_.Nh.Object.defineProperties(OD.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.icon)==null?void 0:c.iconType;return I?"yt-icons:"+I.toLowerCase():null}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],OD.prototype,"data",void 0);_.r([_.E(),_.A("data.icon"),_.h("design:type",Object),_.h("design:paramtypes",[])],OD.prototype,"icon",null);_.r([_.Jc({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],OD);
_.B(OD,"ytd-pinned-comment-badge-renderer",function(){if(xKp!==void 0)return xKp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return xKp=G},{mode:1});var tO0;var hHA={},dKV={input:!0,meta:!0,br:!0,link:!0,img:!0},ew=null;hHA.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(){ew==null&&(ew=document.createElement("tp-yt-paper-tooltip"),ew.offset=8,ew.fitToVisibleBounds=!0)},
onMouseOver_:function(G){if(G=_.H6(G.target,function(Z){return Z==this||Z.getAttribute&&Z.getAttribute("shared-tooltip-text")}.bind(this),!0)){var c=G.getAttribute("shared-tooltip-text");
if(c){var I=this,R=null;G!=this&&(G.tagName.toLowerCase()in dKV?I=G.parentElement:I=G,G.id&&(R=G.id));this.polymerController.createTooltipIfRequired_();if(ew.parentElement!=I||ew.for!=R)(0,_.Om)(ew).textContent=c,_.Q1(I).appendChild(ew),ew.for=R,ew.animationDelay=this.polymerController.sharedTooltipAnimationDelay,ew.position=this.polymerController.sharedTooltipPosition}}}};var NJ=function(){return _.J.apply(this,arguments)||this};
_.u(NJ,_.J);NJ.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]]"}}}}}};
NJ.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var G;((G=this.data)==null?0:G.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var c;((c=this.data)==null?0:c.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
NJ.prototype.colorChanged=function(){var G,c,I,R=(G=this.data)==null?void 0:(c=G.color)==null?void 0:(I=c.basicColorPaletteData)==null?void 0:I.foregroundBodyColor;R&&(this.rgbBadgeColor=_.Sx(R));_.Q1(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
NJ.prototype.tooltipChanged=function(){var G;((G=this.data)==null?0:G.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
NJ.prototype.tooltipChanged=NJ.prototype.tooltipChanged;NJ.prototype.colorChanged=NJ.prototype.colorChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(hHA.YtSharedTooltipBehavior),_.h("design:type",Object)],NJ.prototype,"ytSharedTooltipBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NJ.prototype,"data",void 0);
_.r([_.E({value:"#4285F4"}),_.h("design:type",String)],NJ.prototype,"rgbBadgeColor",void 0);_.r([_.wD("data.color"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NJ.prototype,"colorChanged",null);_.r([_.wD("data.tooltip"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NJ.prototype,"tooltipChanged",null);_.r([_.Jc({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],NJ);
_.B(NJ,"ytd-sponsor-comment-badge-renderer",function(){if(tO0!==void 0)return tO0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return tO0=G},{mode:1});var Cwi;var H6N;var lo=function(){return _.J.apply(this,arguments)||this};
_.u(lo,_.J);lo.prototype.computeState=function(G){switch(G==null?void 0:G.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
lo.prototype.updateStateIdentifier=function(G){if(this.viewModel.triStateKey){var c=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Wm("triStateButtonStateEntityPayload",c,{key:c,stateIdentifier:G}))}};
lo.prototype.onClick=function(){var G=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){G.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){G.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Nh.Object.defineProperties(lo.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.buttonText)||""}}});
_.r([_.E(),_.h("design:type",Object)],lo.prototype,"viewModel",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],lo.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],lo.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.r([_.E({selector:O5A,selectorArgs:["viewModel.triStateKey"]}),_.h("design:type",Object)],lo.prototype,"triStateButtonStateEntity",void 0);
_.r([_.E({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.h("design:type",String)],lo.prototype,"state",void 0);_.r([_.A("viewModel","state"),_.h("design:type",Object),_.h("design:paramtypes",[])],lo.prototype,"data",null);_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],lo.prototype,"buttonText",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],lo);
_.B(lo,"ytd-tri-state-button-view-model",function(){if(H6N!==void 0)return H6N;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return H6N=G},{mode:1});var Xv9;var yVN;var qJ=function(){var G=_.J.apply(this,arguments)||this;G.defaultIconToFilled=!_.v("kevlar_fill_comment_chip_icon_killswitch");return G};
_.u(qJ,_.J);qJ.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
qJ.prototype.dataChanged=function(){if(this.data){var G,c;((G=this.data.chipColorPalette)==null?0:G.backgroundColor)&&((c=this.data.chipColorPalette)==null?0:c.foregroundTitleColor)&&_.eD(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.pE(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.pE(this.data.chipColorPalette.foregroundTitleColor)});var I;((I=this.data)==null?0:I.command)?(_.eD(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.eD(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}};
qJ.prototype.onTap=function(){var G;if(this.data&&(G=this.data)!=null&&G.command){var c;this.ytComponentBehavior.resolveCommand((c=this.data)==null?void 0:c.command)}};
qJ.prototype.getIconSize=function(){return _.v("kevlar_fill_comment_chip_icon_killswitch")?24:12};
qJ.prototype.onTap=qJ.prototype.onTap;qJ.prototype.dataChanged=qJ.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],qJ.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Ha),_.h("design:type",Object)],qJ.prototype,"ironA11yKeysBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qJ.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],qJ.prototype,"basePriceText",void 0);_.r([_.E(),_.h("design:type",Object)],qJ.prototype,"chipIcon",void 0);_.r([_.E(),_.h("design:type",Object)],qJ.prototype,"defaultIconToFilled",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qJ.prototype,"dataChanged",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qJ.prototype,"onTap",null);
_.r([_.Em({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],qJ);
_.B(qJ,"yt-pdg-comment-chip-renderer",function(){if(yVN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Xv9===void 0&&(Xv9=document.createElement("template"));var R=Xv9;I.call(c,R.content.cloneNode(!0),G.content.firstChild);yVN=G}G=yVN;return G},{mode:2});var wR=function(){var G=_.J.apply(this,arguments)||this;G.useSmallAvatars=_.v("small_avatars_for_comments");G.commentThreadingEnabled=_.v("web_delhi_comment_threads");G.webWatchCompactComments=_.v("web_watch_compact_comments");G.editDialog=null;return G};
_.u(wR,_.J);_.P=wR.prototype;_.P.onShow=function(){_.SW("cmv",void 0,"wn_comments")};
_.P.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.P.detached=function(){this.editDialog=null;this.expander.reset()};
_.P.updateBackgroundColor=function(){if(this.backgroundColor){var G={"--ytd-comment-paid-background-color":_.pE(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.eD(this.hostElement,G)}else _.eD(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.P.resetExpander=function(){var G;(G=this.expander)==null||G.reset()};
_.P.openEditDialog=function(G){G.dialog&&(this.editDialog=G.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.P.onYtNavigate=function(G){var c=G.detail.endpoint;if(c=_.D(c,_.F$2)||_.D(c,_.nr0))G.stopPropagation(),this.openEditDialog(c)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null;_.eD(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.P.onAuthorThumbnailClicked=function(){_.v("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.P.onYtCommentboxResize=function(G){var c;(G==null?0:(c=G.detail)==null?0:c.height)&&_.eD(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":G.detail.height+"px"})};
_.Nh.Object.defineProperties(wR.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.commentEntity)==null?void 0:G.author;return c&&(c.isCreator||c.isVerified||c.isArtist)?{renderer:{authorEndpoint:c.channelPageEndpoint?_.D(c.channelPageEndpoint,_.JN):_.D(c.channelCommand,_.JN),authorText:{runs:[{text:c.displayName}]},color:c.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:c.isArtist?{iconType:"AUDIO_BADGE"}:
c.isVerified?{iconType:c.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:c.isArtist||c.isVerified?c.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.commentEntity)==null?void 0:G.author;return c!=null&&c.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:c.sponsorBadgeUrl}]},tooltip:c.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return _.D((G=this.commentSurfaceEntity)==null?void 0:G.pdgCommentChip,_.dii)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var G;return this.voiceReplyContainerViewModel&&((G=this.voiceReplyContainerViewModel)==null?void 0:G.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.D((G=this.commentSurfaceEntity)==null?void 0:G.voiceReplyContainerViewModel,hle)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var G;return this.voiceReplyContainerViewModel&&(G=this.voiceReplyContainerViewModel)!=null&&G.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=(G=this.commentSurfaceEntity)==null?void 0:G.commentBackgroundColor)!=null?c:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.v("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var G,c;return(((G=this.commentEntity)==null?void 0:(c=G.properties)==null?void 0:c.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,c;if(_.v("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(c=G.author)==null?0:c.profileCardEndpoint)&&this.viewModel.allowProfileCard){var I,R;return _.D((I=this.commentEntity)==null?void 0:(R=I.author)==null?void 0:R.profileCardEndpoint,_.JN)}var Z,K;return _.D((Z=this.commentEntity)==null?void 0:(K=Z.avatar)==null?void 0:K.endpoint,_.JN)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,c;if(_.v("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(c=G.author)==null?0:c.channelPageEndpoint)){var I,R;return _.D((I=this.commentEntity)==null?void 0:(R=I.author)==null?void 0:R.channelPageEndpoint,_.JN)}var Z,K;return _.D((Z=this.commentEntity)==null?void 0:(K=Z.avatar)==null?void 0:K.endpoint,_.JN)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z=(G=this.commentEntity)==null?void 0:(c=G.avatar)==null?void 0:(I=c.image)==null?void 0:(R=I.sources)==null?void 0:R[0];return Z?{thumbnails:[{url:Z.url,width:Z.width,height:Z.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.commentEntity)==null?0:(c=G.author)==null?0:c.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.commentEntity)==null?void 0:(c=G.author)==null?void 0:c.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.commentEntity)==null?void 0:(c=G.properties)==null?void 0:c.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.D((G=this.commentSurfaceEntity)==null?void 0:G.publishedTimeCommand,_.JN)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var G,c;if(((G=this.commentEntity)==null?0:G.translatedContent)&&((c=this.translateButtonState)==null?void 0:c.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var I;if((I=this.voiceReplyContainerViewModel)==null?0:I.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var R,Z;return((R=this.commentEntity)==null?void 0:(Z=R.properties)==null?void 0:Z.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.commentSharedEntity)==null?void 0:(c=G.strings)==null?void 0:c.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.commentSharedEntity)==null?void 0:(c=G.strings)==null?void 0:c.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.commentEntity)==null||!G.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var G,c,I=(c=_.D((G=this.viewModel)==null?void 0:G.translateButton,tdB))!=null?c:{},R,Z,K,m,a,O,N,q,w,F,n;return Object.assign({},I,{untoggledStateData:Object.assign({},I.untoggledStateData,{buttonText:(R=this.commentEntity)==null?void 0:(Z=R.translateData)==null?void 0:Z.text}),togglingStateData:Object.assign({},I.togglingStateData,{buttonText:(K=this.commentSharedEntity)==null?
void 0:(m=K.strings)==null?void 0:m.translatingText}),toggledStateData:Object.assign({},I.toggledStateData,{buttonText:(a=this.commentSharedEntity)==null?void 0:(O=a.strings)==null?void 0:O.seeOriginalText}),transitionCommand:((N=this.commentEntity)==null?0:N.translatedContent)?void 0:_.D((q=this.commentEntity)==null?void 0:(w=q.translateData)==null?void 0:w.translateComment,_.JN),triStateKey:(F=this.commentEntity)==null?void 0:(n=F.properties)==null?void 0:n.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((c=_.D(_.D((G=this.toolbarSurface)==null?void 0:G.menuCommand,_.JN),vrA))==null?void 0:(I=c.menu)==null?void 0:I.menuRenderer)||null}}});
wR.prototype.onYtCommentboxResize=wR.prototype.onYtCommentboxResize;wR.prototype.onYtCommentboxDismiss=wR.prototype.onYtCommentboxDismiss;wR.prototype.onYtNavigate=wR.prototype.onYtNavigate;wR.prototype.resetExpander=wR.prototype.resetExpander;wR.prototype.updateBackgroundColor=wR.prototype.updateBackgroundColor;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],wR.prototype,"ytdReduxBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],wR.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("#author-thumbnail > button"),_.h("design:type",HTMLElement)],wR.prototype,"authorThumbnailAnchor",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wR.prototype,"linked",null);
_.r([_.A("viewModel","linked"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"linkedCommentBadge",null);_.r([_.E({reflectToAttribute:!0}),_.A("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wR.prototype,"pinned",null);_.r([_.A("viewModel","pinned"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"pinnedCommentBadge",null);
_.r([_.A("commentEntity","commentSharedEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"authorCommentBadge",null);_.r([_.E({reflectToAttribute:!0}),_.A("authorCommentBadge"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"hasAuthorBadge",null);_.r([_.A("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"sponsorCommentBadge",null);
_.r([_.E({reflectToAttribute:!0}),_.A("sponsorCommentBadge"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"hasSponsorBadge",null);_.r([_.A("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"pdgCommentChipRenderer",null);_.r([_.E({reflectToAttribute:!0}),_.A("voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"hasVoiceReply",null);
_.r([_.A("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"voiceReplyContainerViewModel",null);_.r([_.A("voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"voiceReplyUnavailableText",null);_.r([_.E(),_.h("design:type",Object)],wR.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"viewModel",null);
_.r([_.E({selector:function(G,c){return _.a6(G.entities,"commentSharedEntityPayload",c)},
selectorArgs:["viewModel.sharedKey"]}),_.h("design:type",Object)],wR.prototype,"commentSharedEntity",void 0);_.r([_.E({selector:aUC,selectorArgs:["viewModel.commentKey"]}),_.h("design:type",Object)],wR.prototype,"commentEntity",void 0);_.r([_.E({selector:function(G,c){return _.a6(G.entities,"commentSurfaceEntityPayload",c)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.h("design:type",Object)],wR.prototype,"commentSurfaceEntity",void 0);_.r([_.E({selector:Tp8,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.h("design:type",Object)],wR.prototype,"toolbarSurface",void 0);_.r([_.E({selector:O5A,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.h("design:type",Object)],wR.prototype,"translateButtonState",void 0);
_.r([_.A("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"backgroundColor",null);_.r([_.E({reflectToAttribute:!0}),_.A("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wR.prototype,"optimalReadingWidthComments",null);_.r([_.nH("ytd-expander"),_.h("design:type",Object)],wR.prototype,"expander",void 0);
_.r([_.wD("backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wR.prototype,"updateBackgroundColor",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wR.prototype,"useSmallAvatars",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],wR.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wR.prototype,"commentThreadingEnabled",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wR.prototype,"webWatchCompactComments",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"isReply",null);_.r([_.A("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"authorThumbnailEndpoint",null);_.r([_.A("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"authorNameEndpoint",null);
_.r([_.A("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"authorThumbnail",null);_.r([_.A("commentEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],wR.prototype,"authorTextClass",null);_.r([_.A("commentEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],wR.prototype,"authorChannelName",null);_.r([_.A("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"publishedTime",null);
_.r([_.A("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"publishedTimeCommand",null);_.r([_.A("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"contentText",null);_.r([_.wD("contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wR.prototype,"resetExpander",null);
_.r([_.A("commentEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wR.prototype,"shouldShowReadMoreInitially",null);_.r([_.A("commentSharedEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],wR.prototype,"expandText",null);_.r([_.A("commentSharedEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],wR.prototype,"collapseText",null);_.r([_.A("commentEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wR.prototype,"shouldShowTranslateButton",null);
_.r([_.A("commentEntity","commentSharedEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"translateButton",null);_.r([_.A("toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],wR.prototype,"overflowMenuRenderer",null);_.r([_.E(),_.h("design:type",Object)],wR.prototype,"editDialog",void 0);_.r([_.nH("ytd-comment-dialog-renderer"),_.h("design:type",Object)],wR.prototype,"editCommentDialogContainer",void 0);
_.r([_.nH("ytd-comment-reply-dialog-renderer"),_.h("design:type",Object)],wR.prototype,"editReplyDialogContainer",void 0);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wR.prototype,"onYtNavigate",null);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wR.prototype,"onYtCommentboxDismiss",null);
_.r([_.qY("yt-commentbox-resize"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wR.prototype,"onYtCommentboxResize",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-comment-view-model"})],wR);
_.B(wR,"ytd-comment-view-model",function(){if(Cwi!==void 0)return Cwi;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Cwi=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});_.R1(_.W(function(G){var c={};return _.e("yt-sub-thread",{class:_.O3("ytSubThreadHost",(c.ytSubThreadHasButton=G.isButton,c.ytSubThreadHovered=G.hovered,c.ytSubThreadTopLevelThread=function(){var I,R;return((I=G.topLevelThread)==null?void 0:I.call(G))&&!(_.v("small_avatars_for_comments")&&((R=G.engagementPanel)==null?0:R.call(G)))},c))},_.e("div",{class:"ytSubThreadThreadline"},_.e(_.l,{cond:function(){var I;
return!((I=G.isTeaser)==null?0:I.call(G))},
then:function(){return _.e("div",{class:"ytSubThreadConnection"})}}),_.e("div",{class:"ytSubThreadContinuation"}),_.e("div",{class:"ytSubThreadShadow"})),_.e("div",{class:"ytSubThreadSubThreadContent"},G.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.bl,
isTeaser:_.bl,hovered:_.bl,topLevelThread:_.bl,engagementPanel:_.bl}});var FM=function(){var G=_.J.apply(this,arguments)||this;G.modern=_.v("web_modern_buttons");G.commentThreadingEnabled=_.v("web_delhi_comment_threads");G.isWatchGrid=_.v("kevlar_watch_grid");G.buttonOverrides=G.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};G.JSC$16198_spinnerEl=null;return G};
_.u(FM,_.J);_.P=FM.prototype;_.P.configureContinuationPathMap=function(){return _.v("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.shouldShowLegacyTeasers=function(G,c){return G&&!c};
_.P.shouldShowExpandedThreads=function(G,c){return this.commentThreadingEnabled&&c&&(G==null?void 0:G.length)>0};
_.P.shouldShowCollapsedThreads=function(G,c){return this.commentThreadingEnabled&&!c&&G};
_.P.computeCommentViewModel=function(G){return _.D(G,x7N)};
_.P.computeThreadRenderer=function(G){return _.D(G,WBB)};
_.P.computeIsContinuationItem=function(G){return!!this.computeContinuationItemRenderer(G)};
_.P.computeButtonRenderer=function(G){return _.D(G,_.vE)};
_.P.computeContinuationItemRenderer=function(G){return _.D(G,_.Zo)};
_.P.computeShowButton=function(G){var c;return!((c=this.computeContinuationItemRenderer(G))==null||!c.button)};
_.P.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.P.attached=function(){this.isShowRepliesVisible=!0};
_.P.dataChanged=function(){var G=this.expanderContents;G&&(G.hidden=!0);this.isLoading=!1};
_.P.endsInContinuation=function(G){return!!G&&G.length>0&&!!this.computeContinuationItemRenderer(G[G.length-1])};
_.P.computeShouldShowHideRepliesButton=function(G,c){return!G&&c};
_.P.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.P.isLoadingChanged=function(){this.isLoading&&!this.JSC$16198_spinnerEl&&(this.JSC$16198_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Q1(this.expanderContents).appendChild(this.JSC$16198_spinnerEl));this.JSC$16198_spinnerEl&&(this.JSC$16198_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var G;(G=this.contents)==null||G.classList.remove("reloading")}};
_.P.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var G=_.D(this.data.viewReplies,_.vE);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.P.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var G=_.D(this.data.hideReplies,_.vE);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.P.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var G=_.Q1(this.hostElement).querySelector("#expander-contents");G&&(G.hidden=this.isShowRepliesVisible)}};
_.P.computeAlign=function(){if(this.modern){var G;return!((G=this.data)==null?0:G.viewRepliesCreatorThumbnail)}};
_.Nh.Object.defineProperties(FM.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var G,c;return this.endsInContinuation((G=this.data)==null?void 0:G.contents)||this.commentThreadingEnabled&&this.endsInContinuation((c=this.data)==null?void 0:c.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var G;return(G=this.data)==null?void 0:G.teaserContents}}});
FM.prototype.isShowMoreChanged=FM.prototype.isShowMoreChanged;FM.prototype.isLoadingChanged=FM.prototype.isLoadingChanged;FM.prototype.triggerFirstContinuation=FM.prototype.triggerFirstContinuation;FM.prototype.dataChanged=FM.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.MZ),_.h("design:type",Object)],FM.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],FM.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],FM.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],FM.prototype,"commentThreadingEnabled",void 0);_.r([_.E(),_.h("design:type",Boolean)],FM.prototype,"expanded",void 0);
_.r([_.E(),_.h("design:type",Function)],FM.prototype,"toggleExpanded",void 0);_.r([_.E(),_.h("design:type",Array)],FM.prototype,"addedReplies",void 0);_.r([_.E(),_.h("design:type",Boolean)],FM.prototype,"hovered",void 0);_.r([_.E(),_.h("design:type",Boolean)],FM.prototype,"topLevelThread",void 0);_.r([_.E(),_.h("design:type",Boolean)],FM.prototype,"isLoading",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],FM.prototype,"isShowRepliesVisible",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],FM.prototype,"useNewFormatting",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],FM.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],FM.prototype,"isWatchGrid",void 0);_.r([_.E(),_.h("design:type",Object)],FM.prototype,"buttonOverrides",void 0);_.r([_.nH("#expander-contents"),_.h("design:type",HTMLElement)],FM.prototype,"expanderContents",void 0);
_.r([_.nH("ytd-continuation-item-renderer"),_.h("design:type",Object)],FM.prototype,"continuationItemRenderer",void 0);_.r([_.nH("#contents"),_.h("design:type",HTMLElement)],FM.prototype,"contents",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FM.prototype,"dataChanged",null);_.r([_.A("data.contents","data.subThreads.*"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],FM.prototype,"hasContinuation",null);
_.r([_.A("data.teaserContents"),_.h("design:type",Object),_.h("design:paramtypes",[])],FM.prototype,"subThreadTeasers",null);_.r([_.qY("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FM.prototype,"triggerFirstContinuation",null);_.r([_.wD("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FM.prototype,"isLoadingChanged",null);
_.r([_.wD("isShowRepliesVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FM.prototype,"isShowMoreChanged",null);_.r([_.Jc({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],FM);
_.B(FM,"ytd-comment-replies-renderer",function(){if(rVK!==void 0)return rVK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return rVK=G},{mode:1});var glT;var nP=function(){var G=_.J.apply(this,arguments)||this;G.isOpen=!1;G.commentDialog=null;G.useSmallAvatars=_.v("small_avatars_for_comments");G.useSmallAvatarsEngagementPanelOnly=_.v("small_avatars_for_comments_ep");G.placeholderFocusListener=null;G.hasOpenedDialog=!1;G.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return G};
_.u(nP,_.J);_.P=nP.prototype;_.P.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.P.ready=function(){var G=this,c=_.Q1(this.hostElement).querySelector("#placeholder-area"),I=_.Q1(this.hostElement).querySelector("#simplebox-placeholder"),R=function(Z){Z.stopPropagation();Z instanceof KeyboardEvent&&Z.type==="keypress"&&Z.keyCode!==13&&Z.keyCode!==32||G.openDialog()};
this.placeholderFocusListener=R;I.addEventListener("focus",this.placeholderFocusListener);c.addEventListener("tap",R);c.addEventListener("keypress",R)};
_.P.maybeRemoveFocusEventListener=function(){var G;(G=this.data)!=null&&G.prepareAccountEndpoint&&!_.v("web_comments_simplebox_modal_focus_on_tap_ks")&&(G=_.Q1(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(G.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.P.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.P.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.v("web_comment_simplebox_resolve_polymer_command_ks")?_.NC.instance.resolveCommand(this.data.prepareAccountEndpoint):_.qC(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);G&&this.ytdOpenPopupBehavior.openPopup(G);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Q1(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.P.onYtCommentboxDismiss=function(G){G.stopPropagation();this.isOpen=!1};
_.P.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.isOpen=!1)};
_.P.computeCommentDialog=function(G){return{placeholderText:G.placeholderText,authorThumbnail:G.authorThumbnail,submitButton:G.submitButton,imageButton:G.imageButton,cancelButton:G.cancelButton,emojiButton:G.emojiButton,emojis:G.emojis,emojiPicker:G.emojiPicker,aadcGuidelinesStateEntityKey:G.aadcGuidelinesStateEntityKey,openAadcDialog:G.openAadcDialog,unicodeEmojisUrl:G.unicodeEmojisUrl}};
_.P.onHideIdentityChip=function(G){_.D(G,pw0)&&this.set("data.placeholderText",_.D(G,pw0).placeholderText)};
nP.prototype.onYtCommentboxDismiss=nP.prototype.onYtCommentboxDismiss;nP.prototype.dataChanged=nP.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],nP.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],nP.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],nP.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],nP.prototype,"isOpen",void 0);_.r([_.E(),_.h("design:type",Object)],nP.prototype,"commentDialog",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],nP.prototype,"engagementPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],nP.prototype,"useSmallAvatars",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],nP.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],nP.prototype,"enableCreationBox",void 0);_.r([_.E(),_.h("design:type",Boolean)],nP.prototype,"showCreateDialog",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nP.prototype,"dataChanged",null);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],nP.prototype,"onYtCommentboxDismiss",null);_.r([_.Jc({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],nP);
_.B(nP,"ytd-comment-simplebox-renderer",function(){if(glT!==void 0)return glT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return glT=G},{mode:1});var Yxe;_.Su("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var v3=function(){var G=_.J.apply(this,arguments)||this;G.addHoverEffect=_.v("swatcheroo_comments_hover_effect");G.useSmallAvatars=_.v("small_avatars_for_comments");G.scrollingEnabled=_.v("web_comment_threading_scroll_on_collapse");G.isSubThread=!1;G.threadHovered=!1;G.expanded=!1;G.removed=!1;G.addedReplies=[];G.actionMap=G.configureActionMap();G.toggleExpanded=function(){G.expanded=!G.expanded;!G.expanded&&G.scrollingEnabled&&_.ym(G.hostElement,"yt-scroll-to-comment-element",[G.commentElement])};
return G};
_.u(v3,_.J);_.P=v3.prototype;_.P.configureActionMap=function(){return _.v("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.P.createCommentReplyAction=function(G){G=_.D(G,$7k);if(G!=null&&G.contents){var c=G.replyToCommentId,I=G.parentCommentId,R,Z=(R=this.commentViewModel)==null?void 0:R.commentId;(Z===c||Z===I&&!c)&&this.maybeAttachReply(G.contents)}};
_.P.maybeAttachReply=function(G){var c,I;(((c=this.commentEntity)==null?void 0:(I=c.properties)==null?void 0:I.replyLevel)||0)>=3?_.Xl(this.hostElement,"yt-pushed-create-comment-reply",G):this.attachReply(G)};
_.P.onPushedCreateCommentReply=function(G){var c,I;(((c=this.commentEntity)==null?void 0:(I=c.properties)==null?void 0:I.replyLevel)||0)>=3||(this.attachReply(G.detail),G.stopPropagation())};
_.P.attachReply=function(G){var c;((c=this.data)==null?0:c.replies)?(c=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+c+".continuationItemRenderer")?c===0?this.push("addedReplies",G):this.splice("data.replies.commentRepliesRenderer.subThreads",c,0,G):this.push("data.replies.commentRepliesRenderer.subThreads",G)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[G],viewReplies:{buttonRenderer:{text:_.Gv(_.mJ("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.P.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.jn(this.addedReplies))),this.set("addedReplies",[]))};
_.P.removeCommentAction=function(G){G=_.D(G,zle);var c=G==null?void 0:G.commentId,I;c&&((I=this.commentViewModel)==null?void 0:I.commentId)===c&&this.maybeRemoveComment(G.actionResult)};
_.P.banAuthorAction=function(G){G=_.D(G,LBi);var c=G==null?void 0:G.commentId,I;c&&((I=this.commentViewModel)==null?void 0:I.commentId)===c&&this.maybeRemoveComment(G.actionResult)};
_.P.hideReportedCommentAction=function(G){G=_.D(G,Xwi);var c=G==null?void 0:G.commentId,I;c&&((I=this.commentViewModel)==null?void 0:I.commentId)===c&&this.maybeRemoveComment(G.actionResult)};
_.P.maybeRemoveComment=function(G){G&&G.status==="STATUS_SUCCEEDED"&&(this.feedbackText=G.feedbackText||_.Gv("Reply removed"),this.removed=!0)};
_.P.onTap=function(G){if(this.addHoverEffect&&!this.engagementPanel&&!_.Gf(_.CE(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||_.qC({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.P.attached=function(){var G=this;this.isSubThread&&(this.expanded=!0);var c;(c=this.commentThreadHitbox)==null||c.addEventListener("mouseover",function(){G.threadHovered=!0});
var I;(I=this.commentThreadHitbox)==null||I.addEventListener("mouseout",function(){G.threadHovered=!1});
var R;(R=this.commentThreadHitbox)==null||R.addEventListener("click",function(){G.maybeToggleExpanded()})};
_.P.onDataChanged=function(){var G=_.v("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(G)&&this.set(G,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.P.maybeToggleExpanded=function(){var G,c,I,R=(G=this.data)==null?void 0:(c=G.replies)==null?void 0:(I=c.commentRepliesRenderer)==null?void 0:I.subThreads,Z;(R==null?void 0:R.length)===1&&((Z=_.D(R[0],_.Zo))==null?0:Z.button)&&this.expanded||this.toggleExpanded()};
_.Nh.Object.defineProperties(v3.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.D((G=this.data)==null?void 0:G.commentViewModel,x7N)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return _.v("web_delhi_comment_threads")&&!!((G=this.data)==null?0:(c=G.replies)==null?0:(I=c.commentRepliesRenderer)==null?0:I.subThreads)}}});
v3.prototype.onDataChanged=v3.prototype.onDataChanged;v3.prototype.onTap=v3.prototype.onTap;v3.prototype.onAppendContinuationItemsActionFinished=v3.prototype.onAppendContinuationItemsActionFinished;v3.prototype.onPushedCreateCommentReply=v3.prototype.onPushedCreateCommentReply;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],v3.prototype,"ytdReduxBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],v3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],v3.prototype,"addHoverEffect",void 0);_.r([_.E(),_.h("design:type",Object)],v3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],v3.prototype,"useSmallAvatars",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],v3.prototype,"scrollingEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],v3.prototype,"isSubThread",void 0);_.r([_.nH(".thread-hitbox"),_.h("design:type",HTMLElement)],v3.prototype,"commentThreadHitbox",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],v3.prototype,"threadHovered",void 0);_.r([_.nH("#comment"),_.h("design:type",HTMLElement)],v3.prototype,"commentElement",void 0);
_.r([_.E(),_.h("design:type",Object)],v3.prototype,"expanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],v3.prototype,"removed",void 0);_.r([_.E(),_.h("design:type",Object)],v3.prototype,"feedbackText",void 0);_.r([_.E(),_.h("design:type",Array)],v3.prototype,"addedReplies",void 0);_.r([_.E({selector:aUC,selectorArgs:["commentViewModel.commentKey"]}),_.h("design:type",Object)],v3.prototype,"commentEntity",void 0);
_.r([_.qY("yt-pushed-create-comment-reply"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],v3.prototype,"onPushedCreateCommentReply",null);_.r([_.qY("yt-append-continuation-items-action-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],v3.prototype,"onAppendContinuationItemsActionFinished",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],v3.prototype,"commentViewModel",null);
_.r([_.A("data.replies.commentRepliesRenderer.subThreads"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],v3.prototype,"hasSubThreading",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],v3.prototype,"engagementPanel",void 0);_.r([_.qY("tap"),_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],v3.prototype,"onTap",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],v3.prototype,"onDataChanged",null);_.r([_.Jc({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],v3);
_.B(v3,"ytd-comment-thread-renderer",function(){if(Yxe!==void 0)return Yxe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Yxe=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var Gjp;var DO=function(){var G=_.J.apply(this,arguments)||this;G.compactHeader=_.v("web_watch_compact_comments_header");G.hidePanelButton=!1;G.isPostSchedulingEnabled=_.v("enable_post_scheduling");G.hasFinishedStamping=!1;G.JSC$16221_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.u(DO,_.J);_.P=DO.prototype;
_.P.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.P.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.P.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16221_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.onYtServiceRequestSent=function(G,c){if(!_.v("kevlar_command_handler")&&c.actions)for(G=0;G<c.actions.length;G++){var I=c.actions[G];_.D(I,I9K)&&_.Q1(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.D(I,I9K))}};
_.P.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var G;if(this.getPrefilledBackstagePostDialog((G=this.data)==null?void 0:G.actions)){_.Q1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var c=_.Q1(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;c&&_.O$(this,function(){c.focus();c.openDialog&&c.openDialog()})}}else this.hasActionsChange=!0};
_.P.computeIsBackstage=function(G){return G};
_.P.onYtCommentboxDismiss=function(){_.Q1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.P.removePrefilledDialog=function(G){if(G==null?0:G.actions){for(var c=G.actions.length-1;c>=0;c--){var I=void 0;((I=_.D(G.actions[c],qrK))==null?0:I.dialog)&&delete G.actions[c]}this.set("data",void 0);this.set("data",G)}};
_.P.getPrefilledBackstagePostDialog=function(G){if(G)for(var c=0;c<G.length;c++){var I=G[c],R=void 0;if((R=_.D(I,qrK))==null?0:R.dialog)return _.D(I,qrK).dialog}return null};
_.P.computeBackstagePostDialog=function(G){return G&&(this.getPrefilledBackstagePostDialog(G.actions)||G.createRenderer)};
_.P.dataChanged=function(){if(this.data){var G=this.data.customEmojis,c=this.data.unicodeEmojisUrl;_.bd.clear();c&&_.hNN(_.bd,c);G&&_.bd.load(G)}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.Q1(this.hostElement).querySelector("ytd-comment-simplebox-renderer");G?G.openDialog():this.JSC$16221_handleOpenPostCommentDialogActionAfterStamp=!0};
_.P.onPostHeaderTap=function(){var G;((G=this.data)==null?0:G.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.Nh.Object.defineProperties(DO.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.v("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z,K,m;return!this.hidePanelButton&&_.v("kevlar_watch_comments_panel_button")&&((m=_.D((G=this.data)==null?void 0:(c=G.sortMenu)==null?void 0:(I=c.sortFilterSubMenuRenderer)==null?void 0:(R=I.subMenuItems)==null?void 0:(Z=R[0])==null?void 0:(K=Z.serviceEndpoint)==null?void 0:K.commandMetadata,_.Pd))==null?void 0:m.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.mJ("MINIPLAYER_EXPAND_LABEL"),text:_.Cp(_.mJ("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
DO.prototype.dataChanged=DO.prototype.dataChanged;DO.prototype.onYtCommentboxDismiss=DO.prototype.onYtCommentboxDismiss;DO.prototype.observePrefilledBackstagePostDialog=DO.prototype.observePrefilledBackstagePostDialog;DO.prototype.onYtServiceRequestSent=DO.prototype.onYtServiceRequestSent;DO.prototype.onStampFinished=DO.prototype.onStampFinished;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],DO.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],DO.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],DO.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],DO.prototype,"compactHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],DO.prototype,"engagementPanel",void 0);_.r([_.E(),_.h("design:type",Object)],DO.prototype,"hidePanelButton",void 0);_.r([_.E({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.h("design:type",Boolean)],DO.prototype,"isBackstage",void 0);_.r([_.E({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.h("design:type",Object)],DO.prototype,"backstagePostDialog",void 0);
_.r([_.E(),_.h("design:type",Object)],DO.prototype,"isPostSchedulingEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data","showCommentsPanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],DO.prototype,"useSpaceBetween",null);_.r([_.E({reflectToAttribute:!0}),_.A("data","hidePanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],DO.prototype,"showCommentsPanelButton",null);
_.r([_.A("data","showCommentsPanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],DO.prototype,"commentsPanelButtonData",null);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DO.prototype,"onStampFinished",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],DO.prototype,"onYtServiceRequestSent",null);
_.r([_.wD("data.actions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DO.prototype,"observePrefilledBackstagePostDialog",null);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],DO.prototype,"onYtCommentboxDismiss",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DO.prototype,"dataChanged",null);
_.r([_.Jc({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],DO);
_.B(DO,"ytd-comments-header-renderer",function(){if(Gjp!==void 0)return Gjp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Gjp=G},{mode:1});var cPV;var oi=function(){return _.J.apply(this,arguments)||this};
_.u(oi,_.J);_.r([_.E(),_.h("design:type",Object)],oi.prototype,"data",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.r([_.Jc({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],oi);
_.B(oi,"ytd-destination-button-renderer",function(){if(cPV!==void 0)return cPV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return cPV=G},{mode:1});var IDT;var UD=function(){var G=_.J.apply(this,arguments)||this;G.isRichGrid=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return G};
_.u(UD,_.J);_.P=UD.prototype;_.P.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.P.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.P.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var G;if((G=this.data)==null||!G.isExpanded){G=this.hostElement.clientWidth;var c;if(G&&(c=this.data)!=null&&c.destinationButtons){c=Math.floor((G+4)/214);G=this.data.destinationButtons.length;var I=Math.ceil(G/c);this.fullyVisibleRows=G%c===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}}}};
_.P.updateRichGridDestinationButtonsVisibility=function(){var G,c;if(this.isRichGrid&&((G=this.data)==null||!G.isExpanded)&&(c=this.data)!=null&&c.destinationButtons){G=this.richGridItemsPerRow+1;c=this.data.destinationButtons.length;var I=Math.ceil(c/G);this.fullyVisibleRows=c%G===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
_.P.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
UD.prototype.updateRichGridDestinationButtonsVisibility=UD.prototype.updateRichGridDestinationButtonsVisibility;_.r([_.E(),_.h("design:type",Object)],UD.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Number)],UD.prototype,"fullyVisibleRows",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],UD.prototype,"isShowMoreVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UD.prototype,"isRichGrid",void 0);
_.r([_.E({selector:_.SC,value:0}),_.h("design:type",Number)],UD.prototype,"richGridItemsPerRow",void 0);_.r([_.E(),_.h("design:type",Object)],UD.prototype,"gridStateActionMap",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],UD.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],UD.prototype,"ytdReduxBehavior",void 0);_.r([_.wD("data","richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UD.prototype,"updateRichGridDestinationButtonsVisibility",null);_.r([_.Jc({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],UD);
_.B(UD,"ytd-destination-shelf-renderer",function(){if(IDT!==void 0)return IDT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return IDT=G},{mode:1});var Rh9;var uo=function(){return _.J.apply(this,arguments)||this};
_.u(uo,_.J);uo.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],uo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uo.prototype,"data",void 0);_.r([_.Jc({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],uo);
_.B(uo,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Rh9!==void 0)return Rh9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Rh9=G},{mode:1});var Zce;var bo=function(){var G=_.J.apply(this,arguments)||this;G.disableAnimation=!1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;return G};
_.u(bo,_.J);bo.prototype.onTap=function(G){G.preventDefault();this.data&&_.Xl(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Nh.Object.defineProperties(bo.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z;return((G=this.data)==null?0:G.checked)?(c=this.data)==null?void 0:(I=c.onStateIcon)==null?void 0:I.iconType:(R=this.data)==null?void 0:(Z=R.defaultStateIcon)==null?void 0:Z.iconType}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],bo.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bo.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],bo.prototype,"disableAnimation",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],bo.prototype,"isSlimlineSurvey",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],bo.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],bo.prototype,"isShortsStyle",void 0);_.r([_.A("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],bo.prototype,"isAnimatedIcon",null);
_.r([_.A("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Number),_.h("design:paramtypes",[])],bo.prototype,"iconSize",null);_.r([_.A("isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],bo.prototype,"isDarkTheme",null);_.r([_.A("data.checked"),_.h("design:type",Object),_.h("design:paramtypes",[])],bo.prototype,"icon",null);_.r([_.Jc({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],bo);
_.B(bo,"ytd-rating-survey-option-renderer",function(){if(Zce!==void 0)return Zce;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Zce=G},{mode:2});var KR0;var kj=function(){var G=_.J.apply(this,arguments)||this;G.firstResponseText=null;G.lastResponseText=null;G.selectedNonStarOption=null;G.hideOptions=!1;G.hideUndoButton=!0;G.disableAnimation=!1;G.showResponseRangeText=!1;G.selectedRatingIndex=-1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;G.slimlineSurveyRatingSelectedIndex=-1;return G};
_.u(kj,_.J);_.P=kj.prototype;_.P.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.P.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.P.onOptionChange=function(G,c){var I=this;G=c.onStateIcon&&c.defaultStateIcon&&c.onStateIcon.iconType===c.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(m,a){m.responseText===c.responseText?I.isSlimlineSurvey?(I.selectedRatingIndex=a,I.ytdReduxBehavior.dispatch(lKe(a))):(I.setSurveyOptionValue(a,!0,"checked"),I.setSurveyOptionValue(a,!0,"selected")):(I.setSurveyOptionValue(a,!1,"checked"),I.setSurveyOptionValue(a,
!1,"selected"))});
else if(G)this.selectedNonStarOption=c,this.hideOptions=!0;else{var R=this.ytRendererBehavior.getSimpleString(c.responseText),Z=!0;this.getOptionRenderers().forEach(function(m,a){I.setSurveyOptionValue(a,Z,"checked");I.setSurveyOptionValue(a,!1,"selected");I.ytRendererBehavior.getSimpleString(m.responseText)===R&&(Z=!1,I.setSurveyOptionValue(a,!0,"selected"))})}G=c.responseEndpoint;
var K;c.followUpCommand&&(K=_.D(c.followUpCommand,QHT));this.isSlimlineSurvey?(this.resetComponent(),_.ym(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ym(this.hostElement,"ytd-inline-survey-rating-select-action",[G,K])};
_.P.showSelectedOption=function(){var G=this;_.dJ.addJob(function(){var c=G.getOptionRenderers()[G.slimlineSurveyRatingSelectedIndex];G.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),c)},8,100)};
_.P.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(G){var c;return(c=_.D(G,aui))!=null?c:{}}):[]};
_.P.onUndoClick=function(){this.resetComponent();_.ym(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.P.setSurveyOptionValue=function(G,c,I){this.notifyPath("data.ratings."+G+".ratingSurveyOptionRenderer."+I);this.set("data.ratings."+G+".ratingSurveyOptionRenderer."+I,c)};
_.P.resetComponent=function(){var G=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var c=this.getOptionRenderers(),I,R;this.firstResponseText=(R=(I=c[0])==null?void 0:I.responseText)!=null?R:null;var Z,K;this.lastResponseText=(K=(Z=c[c.length-1])==null?void 0:Z.responseText)!=null?K:null;c.forEach(function(m,a){G.setSurveyOptionValue(a,!1,"checked");G.setSurveyOptionValue(a,!1,"selected")})};
_.Nh.Object.defineProperties(kj.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
kj.prototype.onOptionChange=kj.prototype.onOptionChange;kj.prototype.dataChanged=kj.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],kj.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kj.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],kj.prototype,"firstResponseText",void 0);_.r([_.E(),_.h("design:type",Object)],kj.prototype,"lastResponseText",void 0);_.r([_.E(),_.h("design:type",Object)],kj.prototype,"selectedNonStarOption",void 0);_.r([_.E(),_.h("design:type",Object)],kj.prototype,"hideOptions",void 0);_.r([_.E(),_.h("design:type",Object)],kj.prototype,"hideUndoButton",void 0);_.r([_.E(),_.h("design:type",Object)],kj.prototype,"disableAnimation",void 0);
_.r([_.E(),_.h("design:type",Object)],kj.prototype,"showResponseRangeText",void 0);_.r([_.E(),_.h("design:type",Object)],kj.prototype,"selectedRatingIndex",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],kj.prototype,"isSlimlineSurvey",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],kj.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],kj.prototype,"isShortsStyle",void 0);_.r([_.E({selector:function(G){return G.ui.slimlineSurveyRatingSelectedIndex}}),
_.h("design:type",Object)],kj.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.r([_.A("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],kj.prototype,"isSingleSelect",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kj.prototype,"dataChanged",null);
_.r([_.qY("ytd-rating-survey-option-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],kj.prototype,"onOptionChange",null);_.r([_.Jc({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],kj);
_.B(kj,"ytd-rating-survey-renderer",function(){if(KR0!==void 0)return KR0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return KR0=G},{mode:1});var PqT;var QG0;var mAA;var kKT=(D2.FIRSTDAYOFWEEK+1)%7,aDi=function(G,c,I,R){var Z="";if(R.selection&&o38(R.selection))w8(G,R.selection)&&(Z+=" selected");else if(R.selection&&U$r(R.selection)){var K=R.selection.selectionState||"START_DATE";w8(G,R.selection.start)&&(Z+=" period-start ",K==="START_DATE"&&(Z+="selected"));w8(G,R.selection.end)&&(Z+=" period-end ",K==="END_DATE"&&(Z+="selected"));Ft(G,R.selection.start)||Ft(R.selection.end,G)||(Z+=" highlighted")}if(Ft(c,R.start)||Ft(R.end,c))Z+=" disabled";R.circleToday&&
w8(c,I)&&(Z+=" today");return Z};var sD=function(){return _.J.apply(this,arguments)||this};
_.u(sD,_.J);_.P=sD.prototype;_.P.attached=function(){var G=this;_.O$(this,function(){G.JSC$16255_calendarMain.scrollHeight>0&&(G.calendarConfig.selection?G.scrollToDate(uor(G.calendarConfig.selection)):G.scrollToDate(G.calendarConfig.end))})};
_.P.updateSelection=function(G){G=sS0(Object.assign({},this.calendarConfig,{selection:G}),aDi);this.splice.apply(this,["renderData.months",0,G.length].concat(_.jn(G)))};
_.P.scrollToDate=function(G){this.renderData&&(G=LSi(G,this.renderData),G!==void 0&&this.JSC$16255_calendarMain.scrollToIndex(G))};
_.P.scrollToNextMonth=function(){this.JSC$16255_calendarMain.scrollToIndex(this.JSC$16255_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$16255_calendarMain.firstVisibleIndex===0&&this.JSC$16255_calendarMain.scrollTo(0,0);this.JSC$16255_calendarMain.scrollToIndex(this.JSC$16255_calendarMain.firstVisibleIndex-1)};
_.P.handleDayClick=function(G){_.ym(this.hostElement,"ytd-calendar-date-clicked",[G.model.day.date])};
_.P.handleDayMouseDown=function(G){G.preventDefault();_.ym(this.hostElement,"ytd-calendar-date-mousedown",[G.model.day.date])};
_.P.handleDayMouseUp=function(G){_.ym(this.hostElement,"ytd-calendar-date-mouseup",[G.model.day.date])};
_.P.handleDayMouseEnter=function(G){G.preventDefault();_.ym(this.hostElement,"ytd-calendar-date-mouseenter",[G.model.day.date])};
_.P.handleDayMouseLeave=function(G){_.ym(this.hostElement,"ytd-calendar-date-mouseleave",[G.model.day.date])};
_.Nh.Object.defineProperties(sD.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var G=this.calendarConfig,c=aDi;c=c===void 0?aDi:c;for(var I=[],R=0;R<7;R++)I.push(D2.NARROWWEEKDAYS[(R+kKT)%7]);return{months:sS0(G,c),daysOfWeekLabel:I}}}});
_.r([_.E(),_.h("design:type",Object)],sD.prototype,"calendarConfig",void 0);_.r([_.nH("#calendar-main"),_.h("design:type",Object)],sD.prototype,"JSC$16255_calendarMain",void 0);_.r([_.A("calendarConfig"),_.h("design:type",Object),_.h("design:paramtypes",[])],sD.prototype,"renderData",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],sD);
_.B(sD,"ytd-scrollable-calendar",function(){if(mAA!==void 0)return mAA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return mAA=G},{mode:2});var T3T;var OcV;var LP=function(){var G=_.J.apply(this,arguments)||this;G.hideCharCounter=!1;G.hideLabel=!1;G.noLabelFloat=!1;G.autoValidate=!0;G.invalid=!1;G.disabled=!1;G.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return G};
_.u(LP,_.J);_.P=LP.prototype;_.P.reset=function(G){this.value=G&&this.data?this.data.value=G:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.P.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.P.focusTextInput=function(){this.input.focus()};
_.P.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.P.valueChanged=function(){var G,c;if(((G=this.data)==null?0:G.value)||((c=this.data)==null?void 0:c.value)==="")this.value=this.data.value;else{var I;((I=this.data)==null?void 0:I.value)!==void 0||this.value||(this.value="")}};
_.P.computeLabel=function(G,c){return c?"":_.HY(G)};
_.P.computeAriaLabel=function(G,c){return c?_.HY(G):""};
_.P.computeErrorMessage=function(G,c,I,R){!G&&c?G=I||this.strings.REQUIRED_LABEL:(G=_.HY(R),G=_.aq(G,"&")?"document"in _.Rq?N50(G):lTB(G):G);return G};
_.P.computeType=function(G){return G==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.P.onTextValueChanged=function(G){this.value=G.detail.value;var c;(c=this.onValueChanged)==null||c.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.P.handleUpdateTextInputFormFieldRendererCommand=function(G){(G=_.D(G,AM2))&&this.data&&this.data.id===G.id&&(G.invalid!==void 0&&(this.invalid=G.invalid),G.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",G.invalidValueErrorMessage))};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("value-changed",this.value))};
_.P.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.Nh.Object.defineProperties(LP.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var G;return!((G=this.data)==null||!G.isMultiline)}}});
LP.prototype.valueChangedForBinding=LP.prototype.valueChangedForBinding;LP.prototype.valueChanged=LP.prototype.valueChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],LP.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],LP.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],LP.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],LP.prototype,"value",void 0);_.r([_.E(),_.h("design:type",String)],LP.prototype,"pattern",void 0);_.r([_.E(),_.h("design:type",String)],LP.prototype,"errorMessage",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],LP.prototype,"componentStyle",void 0);_.r([_.E(),_.h("design:type",Object)],LP.prototype,"hideCharCounter",void 0);
_.r([_.E(),_.h("design:type",Object)],LP.prototype,"hideLabel",void 0);_.r([_.E(),_.h("design:type",Object)],LP.prototype,"noLabelFloat",void 0);_.r([_.E(),_.h("design:type",Function)],LP.prototype,"onValueChanged",void 0);_.r([_.E(),_.h("design:type",Boolean)],LP.prototype,"isMultilineOverride",void 0);_.r([_.E(),_.h("design:type",Object)],LP.prototype,"autoValidate",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],LP.prototype,"invalid",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],LP.prototype,"disabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],LP.prototype,"enableOverlayTheme",void 0);_.r([_.E({value:{REQUIRED_LABEL:_.mJ("REQUIRED_LABEL",void 0,"Required")}}),_.h("design:type",Object)],LP.prototype,"strings",void 0);_.r([_.nH("#input"),_.h("design:type",Object)],LP.prototype,"input",void 0);
_.r([_.A("data","isMultilineOverride"),_.h("design:type",Object),_.h("design:paramtypes",[])],LP.prototype,"isMultiline",null);_.r([_.uO("data.value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LP.prototype,"valueChanged",null);_.r([_.wD("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LP.prototype,"valueChangedForBinding",null);_.r([_.Em({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],LP);
_.B(LP,"yt-text-input-form-field-renderer",function(){if(OcV===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;T3T===void 0&&(T3T=document.createElement("template"));var R=T3T;I.call(c,R.content.cloneNode(!0),G.content.firstChild);OcV=G}G=OcV;return G},{mode:2});var AD=function(){var G=_.J.apply(this,arguments)||this;G.data=void 0;G.selectionState="START_DATE";G.isStartDateInvalid=!1;G.isEndDateInvalid=!1;G.autoapply=!1;G.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return G};
_.u(AD,_.J);_.P=AD.prototype;_.P.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.P.focus=function(){this.startDateInput.focus()};
_.P.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:ns(this.data.selection.start),end:ns(this.data.selection.end)})};
_.P.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.H0(this.selectionState)}};
_.P.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.P.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.P.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,c=G.end;G=$$p({start:G.start,end:this.endDate||c},this.startDateInput.value||"");this.isStartDateInvalid=!G.isValid;G.isValid&&(G=G.value,this.selection=this.endDate?{start:G,end:this.endDate}:G,this.calendar.scrollToDate(G));this.updateInvalidState()}};
_.P.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,c=G.start;G=$$p({start:this.startDate||c,end:G.end},this.endDateInput.value||"");this.isEndDateInvalid=!G.isValid;G.isValid&&(G=G.value,this.selection={start:this.startDate,end:G},this.calendar.scrollToDate(G));this.updateInvalidState()}};
_.P.handleCalendarDateClicked=function(G){var c=this.selection&&uor(this.selection),I=this.selection&&bBT(this.selection);c&&!Ft(G,c)&&this.selectionState==="END_DATE"?(this.selection={start:c,end:G},this.selectionState="START_DATE"):(I&&!Ft(I,G)?this.selection={start:G,end:I}:this.selection=G,this.selectionState="END_DATE")};
_.P.handleCalendarDateMouseDown=function(G){this.selection&&!o38(this.selection)&&(this.dragPivot=w8(G,this.selection.start)?this.selection.end:w8(G,this.selection.end)?this.selection.start:G)};
_.P.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.P.handleCalendarDateMouseEnter=function(G){this.dragPivot&&(this.selection={start:function(c,I){return Ft(c,I)?c:I}(this.dragPivot,G),
end:function(c,I){return Ft(c,I)?I:c}(this.dragPivot,G)},this.dragPivot||(this.selectionState="START_DATE"))};
_.P.handleCalendarDateMouseLeave=function(){};
_.P.handleCalendarSubmitDateRange=function(){this.selection&&!o38(this.selection)&&_.ym(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.P.updateInvalidState=function(){var G=function(c,I){I?c.setAttribute("invalid",""):c.removeAttribute("invalid")};
G(this.startDateInput,this.isStartDateInvalid);G(this.endDateInput,this.isEndDateInvalid)};
_.P.updateDateStrings=function(){this.selection&&(o38(this.selection)?D$b(this.selection):(D$b(this.selection.start),D$b(this.selection.end)))};
_.P.updateCalendarSelection=function(G){this.calendar.updateSelection(Object.assign({},G,{selectionState:this.selectionState}))};
_.P.updateIsStartDateInvalidFromBinding=function(G){this.isStartDateInvalid=G.detail.value};
_.P.updateIsEndDateInvalidFromBinding=function(G){this.isEndDateInvalid=G.detail.value};
_.P.updateStartDateStringFromBinding=function(){};
_.P.updateEndDateStringFromBinding=function(){};
_.Nh.Object.defineProperties(AD.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:ns(this.data.dateRangeStart),end:ns(this.data.dateRangeEnd),selection:{start:ns(this.data.selection.start),end:ns(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&uor(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&bBT(this.selection)}}});
AD.prototype.resetTextboxes=AD.prototype.resetTextboxes;AD.prototype.observeSelection=AD.prototype.observeSelection;AD.prototype.dataChanged=AD.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],AD.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("#calendar"),_.h("design:type",Object)],AD.prototype,"calendar",void 0);
_.r([_.nH("#start-date"),_.h("design:type",Object)],AD.prototype,"startDateInput",void 0);_.r([_.nH("#end-date"),_.h("design:type",Object)],AD.prototype,"endDateInput",void 0);_.r([_.E(),_.h("design:type",Object)],AD.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],AD.prototype,"selection",void 0);_.r([_.E(),_.h("design:type",String)],AD.prototype,"selectionState",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],AD.prototype,"calendarConfig",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],AD.prototype,"errorMessage",null);_.r([_.A("selection"),_.h("design:type",Object),_.h("design:paramtypes",[])],AD.prototype,"startDate",null);_.r([_.A("selection"),_.h("design:type",Object),_.h("design:paramtypes",[])],AD.prototype,"endDate",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AD.prototype,"dataChanged",null);
_.r([_.wD("selection","selectionState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AD.prototype,"observeSelection",null);_.r([_.wD("selectionState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AD.prototype,"resetTextboxes",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],AD);
_.B(AD,"ytd-date-period-picker-renderer",function(){if(QG0!==void 0)return QG0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return QG0=G},{mode:1});var Sw=function(){var G=_.J.apply(this,arguments)||this;var c={};G.actionMap=(c["ytd-date-period-picker-apply"]="handleDateRangeUpdated",c);return G};
_.u(Sw,_.J);Sw.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Sw.prototype.handleDateRangeUpdated=function(){};
_.r([_.E(),_.h("design:type",Object)],Sw.prototype,"data",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Sw.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Sw.prototype,"rendererstamperBehavior",void 0);_.r([_.Jc({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Sw);
_.B(Sw,"ytd-report-history-section-header-renderer",function(){if(PqT!==void 0)return PqT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return PqT=G},{mode:1});var ehk;var N30;var lD2;var pP=function(){return _.J.apply(this,arguments)||this};
_.u(pP,_.J);_.Nh.Object.defineProperties(pP.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?0:(c=G.icon)==null?0:c.iconType)?_.On(this.data.icon.iconType):""}}});
_.r([_.E(),_.h("design:type",Object)],pP.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],pP.prototype,"icon",null);_.r([_.Jc({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],pP);
_.B(pP,"ytd-report-history-table-text-cell-renderer",function(){if(lD2!==void 0)return lD2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return lD2=G},{mode:1});var MJ=function(){return _.J.apply(this,arguments)||this};
_.u(MJ,_.J);MJ.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],MJ.prototype,"data",void 0);_.r([_.Jc({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],MJ);
_.B(MJ,"ytd-report-history-table-reason-cell-renderer",function(){if(N30!==void 0)return N30;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return N30=G},{mode:1});var VD=function(){return _.J.apply(this,arguments)||this};
_.u(VD,_.J);VD.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"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],VD.prototype,"rendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],VD.prototype,"data",void 0);_.r([_.Jc({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],VD);
_.B(VD,"ytd-report-history-table-cell-renderer",function(){if(ehk!==void 0)return ehk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return ehk=G},{mode:1});var qb0;var zx=function(){var G=_.J.apply(this,arguments)||this;G.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return G};
_.u(zx,_.J);zx.prototype.onDataChanged=function(){var G;if((G=this.data)==null?0:G.style)this.componentStyle=this.getStyleName(this.data.style)};
zx.prototype.getCellForColumn=function(G){return this.cells.find(function(c){var I;return((I=_.D(c==null?void 0:c.cell,euK)||_.D(c==null?void 0:c.cell,OV2))==null?void 0:I.columnId)===G.type})};
zx.prototype.getClassForColumn=function(G){switch(G){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
zx.prototype.getStyleName=function(G){switch(G){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Nh.Object.defineProperties(zx.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.cells)||[]).map(function(c){return _.D(c,TAp)})}}});
zx.prototype.onDataChanged=zx.prototype.onDataChanged;_.r([_.E(),_.h("design:type",Object)],zx.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Array)],zx.prototype,"columnRenderData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],zx.prototype,"componentStyle",void 0);_.r([_.A("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],zx.prototype,"cells",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zx.prototype,"onDataChanged",null);_.r([_.Jc({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],zx);
_.B(zx,"ytd-report-history-table-row-renderer",function(){if(qb0!==void 0)return qb0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return qb0=G},{mode:1});var woe;var FRk;var SuT={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},p4U={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var ED=function(){return _.J.apply(this,arguments)||this};
_.u(ED,_.J);ED.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"}}}}}};
ED.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Nh.Object.defineProperties(ED.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.columns)?Jlq(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return zji(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var G=this.tableSpec,c=SuT;c=c===void 0?p4U:c;c=E3A(G.columnDimensions,G.columnsToShow||[],c);G=0;c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=I.value,G+=I.minWidth+I.paddingLeft+I.paddingRight;return G}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.r([_.L(_.MZ),_.h("design:type",Object)],ED.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ED.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ED.prototype,"tableSpec",null);_.r([_.A("tableSpec"),_.h("design:type",Array),_.h("design:paramtypes",[])],ED.prototype,"columnRenderData",null);
_.r([_.A("tableSpec"),_.h("design:type",Number),_.h("design:paramtypes",[])],ED.prototype,"totalMinWidth",null);_.r([_.A("totalMinWidth"),_.h("design:type",String),_.h("design:paramtypes",[])],ED.prototype,"tableWidthStyle",null);_.r([_.Jc({is:"ytd-table-renderer",disableElementRegistration:!0})],ED);
_.B(ED,"ytd-table-renderer",function(){if(FRk!==void 0)return FRk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return FRk=G},{mode:1});var JD=function(){return _.J.apply(this,arguments)||this};
_.u(JD,_.J);JD.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}}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],JD.prototype,"data",void 0);_.r([_.Jc({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],JD);
_.B(JD,"ytd-report-reason-history-modal-renderer",function(){if(woe!==void 0)return woe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return woe=G},{mode:1});var nA2;var vAB;var DAp;var W3=function(){return _.J.apply(this,arguments)||this};
_.u(W3,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],W3.prototype,"data",void 0);_.r([_.Jc({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],W3);
_.B(W3,"ytd-profile-column-stats-entry-renderer",function(){if(DAp!==void 0)return DAp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return DAp=G},{mode:1});var oAN;var io=function(){return _.J.apply(this,arguments)||this};
_.u(io,_.J);io.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],io.prototype,"data",void 0);_.r([_.Jc({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],io);
_.B(io,"ytd-profile-column-stats-renderer",function(){if(oAN!==void 0)return oAN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return oAN=G},{mode:1});var UAT;var fP=function(){return _.J.apply(this,arguments)||this};
_.u(fP,_.J);_.Nh.Object.defineProperties(fP.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var c,I;G=(c=this.data)==null?void 0:(I=c.thumbnail)==null?void 0:I.thumbnails;var R;return G&&((R=G[0])==null?void 0:R.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var c,I;G=(c=this.data)==null?void 0:(I=c.thumbnail)==null?void 0:I.thumbnails;var R;return G&&((R=G[0])==null?void 0:R.height)||80}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],fP.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],fP.prototype,"componentStyle",void 0);_.r([_.A("data.useThumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],fP.prototype,"thumbnailWidth",null);
_.r([_.A("data.useThumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],fP.prototype,"thumbnailHeight",null);_.r([_.Jc({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],fP);
_.B(fP,"ytd-profile-column-user-info-renderer",function(){if(UAT!==void 0)return UAT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return UAT=G},{mode:1});var B3=function(){return _.J.apply(this,arguments)||this};
_.u(B3,_.J);B3.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]]"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],B3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],B3.prototype,"componentStyle",void 0);_.r([_.Jc({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],B3);
_.B(B3,"ytd-profile-column-renderer",function(){if(vAB!==void 0)return vAB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return vAB=G},{mode:1});var rR=function(){var G=_.J.apply(this,arguments)||this;G.componentStyle="NON_CENTERED_PROFILE";return G};
_.u(rR,_.J);rR.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
rR.prototype.getIcon=function(G){return G?"settings:"+G.toLowerCase():null};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rR.prototype,"data",void 0);_.r([_.Jc({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],rR);
_.B(rR,"ytd-page-introduction-renderer",function(){if(nA2!==void 0)return nA2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return nA2=G},{mode:1});var umN;var jw=function(){return _.J.apply(this,arguments)||this};
_.u(jw,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jw.prototype,"data",void 0);_.r([_.Jc({is:"ytd-report-description-renderer",disableElementRegistration:!0})],jw);
_.B(jw,"ytd-report-description-renderer",function(){if(umN!==void 0)return umN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return umN=G},{mode:1});var bcA;var kj9;var xj=function(){return _.J.apply(this,arguments)||this};
_.u(xj,_.J);xj.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xj.prototype,"data",void 0);_.r([_.Jc({is:"ytd-video-report-renderer",disableElementRegistration:!0})],xj);
_.B(xj,"ytd-video-report-renderer",function(){if(kj9!==void 0)return kj9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return kj9=G},{mode:1});var sGe;_.Su("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Su("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var tD=function(){return _.J.apply(this,arguments)||this};
_.u(tD,_.J);tD.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
tD.prototype.computeMessageStyle=function(G){return G};
tD.prototype.computeButtonOverride=function(G){var c;if((G==null?0:(c=G.style)==null?0:c.value)&&G.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tD.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],tD.prototype,"shelf",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],tD.prototype,"panel",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.h("design:type",Boolean)],tD.prototype,"componentStyle",void 0);_.r([_.E({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],tD.prototype,"buttonOverride",void 0);_.r([_.Jc({is:"ytd-message-renderer",disableElementRegistration:!0})],tD);
_.B(tD,"ytd-message-renderer",function(){if(sGe!==void 0)return sGe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return sGe=G},{mode:1});var hD=function(){return _.J.apply(this,arguments)||this};
_.u(hD,_.J);hD.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"}}}};
hD.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
hD.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Nh.Object.defineProperties(hD.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var G,c;return!!(((G=this.data)==null?0:G.header)&&((c=this.data)==null?0:c.table))}}});
hD.prototype.onRequestError=hD.prototype.onRequestError;_.r([_.L(_.MZ),_.h("design:type",Object)],hD.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hD.prototype,"data",void 0);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],hD.prototype,"isUnifiedReportHistory",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hD.prototype,"onRequestError",null);_.r([_.Jc({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],hD);
_.B(hD,"ytd-report-history-section-renderer",function(){if(bcA!==void 0)return bcA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return bcA=G},{mode:1});var LRK;var dR=function(){var G=_.J.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.u(dR,_.J);dR.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dR.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],dR.prototype,"answerExpanded",void 0);_.r([_.Jc({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],dR);
_.B(dR,"ytd-handles-claiming-faq-renderer",function(){if(LRK!==void 0)return LRK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return LRK=G},{mode:1});var APK;var $AN=function(){return _.J.apply(this,arguments)||this};
_.u($AN,_.J);_.r([_.E(),_.h("design:type",Object)],$AN.prototype,"data",void 0);_.r([_.Jc({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],$AN);
_.B($AN,"ytd-handles-claiming-faq-section-renderer",function(){if(APK!==void 0)return APK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return APK=G},{mode:1});var Sbp;var CP=function(){var G=_.J.apply(this,arguments)||this;G.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";G.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";G.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";G.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";G.leftSquiggly=G.leftSquigglyLight;G.rightSquiggly=G.rightSquigglyLight;
G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return G};
_.u(CP,_.J);_.P=CP.prototype;_.P.updateLeftSquigglyStyle=function(){_.eD(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.P.updateRightSquigglyStyle=function(){_.eD(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.P.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.P.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),G?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
CP.prototype.updateRightSquigglyStyle=CP.prototype.updateRightSquigglyStyle;CP.prototype.updateLeftSquigglyStyle=CP.prototype.updateLeftSquigglyStyle;_.r([_.E(),_.h("design:type",Object)],CP.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],CP.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",String)],CP.prototype,"leftSquiggly",void 0);_.r([_.E(),_.h("design:type",String)],CP.prototype,"rightSquiggly",void 0);
_.r([_.wD("leftSquiggly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CP.prototype,"updateLeftSquigglyStyle",null);_.r([_.wD("rightSquiggly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CP.prototype,"updateRightSquigglyStyle",null);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],CP.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],CP.prototype,"actionButtonOverride",void 0);_.r([_.Jc({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],CP);
_.B(CP,"ytd-handles-claiming-header-renderer",function(){if(Sbp!==void 0)return Sbp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Sbp=G},{mode:1});var pok;var H3=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";G.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";G.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";G.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
G.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";G.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";G.image0SquigglyBackground=G.image0LightSquigglyBackground;G.image1SquigglyBackground=G.image1LightSquigglyBackground;G.image3SquigglyBackground=G.image3LightSquigglyBackground;return G};
_.u(H3,_.J);_.P=H3.prototype;_.P.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.P.onDataChanged=function(){this.updateTitleAndImages()};
_.P.onThemeChanged=function(){this.updateTitleAndImages()};
_.P.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.P.updateImage0SquigglyBackground=function(){_.eD(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.P.updateImage1SquigglyBackground=function(){_.eD(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.P.updateImage3SquigglyBackground=function(){_.eD(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.P.updateTitleAndImages=function(){var G,c;((G=this.data)==null?void 0:(c=G.titleImages)==null?void 0:c.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))};
H3.prototype.updateImage3SquigglyBackground=H3.prototype.updateImage3SquigglyBackground;H3.prototype.updateImage1SquigglyBackground=H3.prototype.updateImage1SquigglyBackground;H3.prototype.updateImage0SquigglyBackground=H3.prototype.updateImage0SquigglyBackground;H3.prototype.onThemeChanged=H3.prototype.onThemeChanged;H3.prototype.onDataChanged=H3.prototype.onDataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],H3.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],H3.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"title0",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"title1",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"title2",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"title3",void 0);
_.r([_.E(),_.h("design:type",Object)],H3.prototype,"title4",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"image0",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"image1",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"image2",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"image3",void 0);_.r([_.E(),_.h("design:type",Object)],H3.prototype,"image4",void 0);_.r([_.E(),_.h("design:type",String)],H3.prototype,"image0SquigglyBackground",void 0);
_.r([_.E(),_.h("design:type",String)],H3.prototype,"image1SquigglyBackground",void 0);_.r([_.E(),_.h("design:type",String)],H3.prototype,"image3SquigglyBackground",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H3.prototype,"onDataChanged",null);_.r([_.wD("isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H3.prototype,"onThemeChanged",null);
_.r([_.wD("image0SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H3.prototype,"updateImage0SquigglyBackground",null);_.r([_.wD("image1SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H3.prototype,"updateImage1SquigglyBackground",null);
_.r([_.wD("image3SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H3.prototype,"updateImage3SquigglyBackground",null);_.r([_.Jc({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],H3);
_.B(H3,"ytd-handles-claiming-title-images-section-renderer",function(){if(pok!==void 0)return pok;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return pok=G},{mode:1});var MlT;var XM=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(XM,_.J);XM.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
XM.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
XM.prototype.onCopyButtonClick=function(){var G=this,c,I,R;return _.T(function(Z){return(c=G.data)!=null&&c.primaryChannelUrl?Z.yield(navigator.clipboard.writeText(((I=G.data)==null?0:I.encodedChannelUrl)?G.data.encodedChannelUrl:"https://"+_.HY((R=G.data)==null?void 0:R.primaryChannelUrl)),0):Z.jumpTo(0)})};
_.r([_.E(),_.h("design:type",Object)],XM.prototype,"data",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],XM.prototype,"ytComponentBehavior",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],XM.prototype,"isDarkTheme",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Jc({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],XM);
_.B(XM,"ytd-handles-claiming-update-social-renderer",function(){if(MlT!==void 0)return MlT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return MlT=G},{mode:1});var Vli;var yD=function(){var G=_.J.apply(this,arguments)||this;G.JSC$16349_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";G.JSC$16349_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.squigglyBackground=G.JSC$16349_squigglyBackgroundLight;return G};
_.u(yD,_.J);yD.prototype.updateSquigglyBackgroundStyle=function(){_.eD(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
yD.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.squigglyBackground=G?this.JSC$16349_squigglyBackgroundDark:this.JSC$16349_squigglyBackgroundLight};
yD.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16349_squigglyBackgroundDark:this.JSC$16349_squigglyBackgroundLight)};
yD.prototype.updateSquigglyBackgroundStyle=yD.prototype.updateSquigglyBackgroundStyle;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],yD.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yD.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],yD.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",String)],yD.prototype,"squigglyBackground",void 0);_.r([_.wD("squigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yD.prototype,"updateSquigglyBackgroundStyle",null);_.r([_.Jc({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],yD);
_.B(yD,"ytd-handles-claiming-vanity-info-renderer",function(){if(Vli!==void 0)return Vli;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Vli=G},{mode:1});var zhe;var gR=function(){var G=_.J.apply(this,arguments)||this;G.JSC$16352_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";G.JSC$16352_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";G.squigglyBackground=G.JSC$16352_squigglyBackgroundLight;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(gR,_.J);_.P=gR.prototype;_.P.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.P.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16352_squigglyBackgroundDark:this.JSC$16352_squigglyBackgroundLight)};
_.P.updateSquigglyBackgroundStyle=function(){_.eD(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.P.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.P.detached=function(){this.stop()};
_.P.stop=function(){this.playerElement.stop()};
_.P.setupVideoPlayer=function(){var G=this,c,I;return _.T(function(R){c=G.data.videoId;I="http://i1.ytimg.com/vi/"+c+"/maxresdefault.jpg";G.playerElement.loadVideoWithPlayerVars({video_id:c,iurlhq:I});_.Vp(R)})};
gR.prototype.onDataChanged=gR.prototype.onDataChanged;gR.prototype.updateSquigglyBackgroundStyle=gR.prototype.updateSquigglyBackgroundStyle;_.r([_.E({value:!1}),_.h("design:type",Boolean)],gR.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",String)],gR.prototype,"squigglyBackground",void 0);_.r([_.nH("#player"),_.h("design:type",Object)],gR.prototype,"playerElement",void 0);_.r([_.E(),_.h("design:type",Object)],gR.prototype,"data",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],gR.prototype,"ytActionHandlerBehavior",void 0);_.r([_.wD("squigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gR.prototype,"updateSquigglyBackgroundStyle",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gR.prototype,"onDataChanged",null);
_.r([_.Jc({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],gR);
_.B(gR,"ytd-handles-claiming-video-item-renderer",function(){if(zhe!==void 0)return zhe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return zhe=G},{mode:1});var EA0;var Gh=function(){var G=_.D4.apply(this,arguments)||this;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.containerWidthDiff=0;G.boundPrevClick=function(){G.set("offset",Yj(G,G.offset-(G.scrollDistance||320)))};
G.boundNextClick=function(){G.set("offset",Yj(G,G.offset+(G.scrollDistance||320)))};
G.boundScrollContainerMouseDown=function(c){G.dragMouseStart=c.clientX;G.dragOffsetStart=G.offset;G.dragging=!0};
G.boundScrollContainerDrag=function(c){G.dragging&&G.set("offset",Yj(G,G.dragOffsetStart-(c.clientX-G.dragMouseStart)))};
G.boundMouseUp=function(){G.onMouseUp()};
G.boundWheelScroll=function(c){var I=0;Math.abs(c.deltaX)>=Math.abs(c.deltaY)?I=c.deltaX:c.shiftKey&&(I=c.deltaY);I!==0&&(G.offset+=I,c.stopPropagation(),c.preventDefault())};
G.boundChipCloudChipScrollIntoView=function(c){(c=c.detail)&&G.scrollChipIntoView(c)};
return G};
_.u(Gh,_.D4);Gh.prototype.attached=function(){var G=_.Q1(this.hostElement).querySelector("#scroll-container");G.addEventListener("wheel",this.boundWheelScroll);G.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);G.style.touchAction="pan-y";G.addEventListener("pointerdown",this.boundScrollContainerMouseDown);G.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Gh.prototype.detached=function(){var G=_.Q1(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.boundWheelScroll);G.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);G.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);G.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Gh.prototype.reset=function(){this.set("offset",0);_.O$(this,this.setContainerWidthDiff);_.O$(this,this.setButtonsState)};
var Yj=function(G,c){return Math.min(Math.max(c,0),G.containerWidthDiff)};
_.P=Gh.prototype;_.P.onMouseUp=function(){this.dragging=!1};
_.P.transformContainer=function(){this.offset=Yj(this,this.offset);var G=_.H1("HTML_DIR")==="rtl"?"":"-";_.Q1(this.hostElement).querySelector("#chips").style.transform="translateX("+G+this.offset+"px)";_.O$(this,this.setButtonsState)};
_.P.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Yj(this,this.offset));this.atStart=this.offset<=0};
_.P.setContainerWidthDiff=function(){var G=_.Q1(this.hostElement).querySelector("#scroll-container"),c=_.Q1(this.hostElement).querySelector("#chips");G&&c&&(this.containerWidthDiff=c.clientWidth-G.clientWidth)};
_.P.scrollChipIntoView=function(G){var c=_.Q1(this.hostElement).querySelector("#scroll-container");if(c){var I=this.atStart?0:106,R=this.atEnd?0:106;G.offsetLeft<this.offset+I?this.offset=Yj(this,G.offsetLeft-I):G.offsetLeft+G.clientWidth>this.offset+c.clientWidth-R&&(this.offset=Yj(this,G.offsetLeft+G.clientWidth+R-c.clientWidth))}};
Gh.prototype.transformContainer=Gh.prototype.transformContainer;_.r([_.E({value:0}),_.h("design:type",Number)],Gh.prototype,"offset",void 0);_.r([_.E({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],Gh.prototype,"atStart",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Gh.prototype,"atEnd",void 0);_.r([_.E(),_.h("design:type",Number)],Gh.prototype,"scrollDistance",void 0);
_.r([_.wD("offset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gh.prototype,"transformContainer",null);_.r([_.Um()],Gh);var JP9;var WR2;_.c2=_.W(function(G){var c=G.data;G=_.Q(_.ks(!1,void 0,"bob3J"));var I=G.next().value,R=G.next().value;G=function(K){if((c==null?void 0:c().state)!==1){var m,a;(a=(m=c()).onTap)==null||a.call(m,K)}};
var Z={};return _.e("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Nx(function(){var K=_.wH().resolve(_.qR(_.zb));if(K){R(K.isKeyBoardInUse());var m,a;(a=(m=c()).onFocusIn)==null||a.call(m)}return!1}),
"on:focusout":_.Nx(function(){R(!1);return!1})},_.e(ice,{shouldWrapInButton:function(){return c().type!==2},
selected:function(){return c().state===0},
onClick:G,isDropdown:function(){return c().type===1},
accessibilityLabel:function(){return c().type===1?void 0:c().accessibilityLabel}},_.e("div",{class:_.O3("ytChipShapeChip",function(){a:switch(c==null?void 0:c().state){case 0:var K="ytChipShapeActive";
break a;case 1:K="ytChipShapeDisabled";break a;default:K="ytChipShapeInactive"}return K},function(){var K=c().type===1||c().type===2,m=c();
return K||m!=null&&m.startIcon?m==null||!m.startIcon||m!=null&&m.text?K?"ytChipShapeEndIconPadding":(m==null?0:m.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var K=c();
if((K==null?void 0:K.style)===0&&(K==null?void 0:K.state)===0){var m;K=((m=_.wH().resolve(_.qR(_.d0)))==null?0:m())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else K="";return K},(Z.ytChipShapeFocused=function(){var K;
return I()&&((K=c())==null?void 0:K.state)!==1},Z))},_.e(_.l,{cond:function(){return c().startIcon},
then:function(){return _.e(_.F6,{icon:function(){var K;return(K=c())==null?void 0:K.startIcon},
className:_.O3(function(){return c().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var K=c(),m,a=(m=_.wH().resolve(_.qR(_.d0)))==null?void 0:m();
return(K==null?void 0:K.style)===0&&(K==null?void 0:K.state)===0&&a?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return c().text},_.e(fDK,{shape:c,
onClick:G}),_.e(_.Jx,{model:{borderRadius:"8px"}}))))},"Lc");
_.c2.idomCompat=!0;var ice=_.W(function(G){var c=_.Nx(function(I){G.onClick(I);return!1});
return _.e(_.l,{cond:G.shouldWrapInButton,then:function(){return _.e("button",{class:"ytChipShapeButtonReset","on:click":c,role:function(){return G.isDropdown()?"combobox":"tab"},
"aria-label":G.accessibilityLabel,"aria-selected":G.selected},G.children)},
else:function(){return G.children}})},"Mc"),fDK=_.W(function(G){var c=G.shape;
var I=G.onClick;var R=_.Nx(function(Z){I(Z);return!1});
return _.e(_.B1,null,_.e(_.W1,{when:function(){return c().type===1}},function(){return _.e(_.F6,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.e(_.W1,{when:function(){return c().type===2}},function(){return _.e("button",{class:"ytChipShapeButtonReset",
"on:click":R},_.e(_.F6,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.e(_.W1,{when:function(){return c().type===0}},function(){return _.e(_.FG,null)}))},"Nc");_.R1(_.c2,"chip-shape",{props:{data:_.bl}});var Ic=function(){var G=_.J.apply(this,arguments)||this;G.disableDeselectEvent=!1;G.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return G};
_.u(Ic,_.J);_.P=Ic.prototype;_.P.onSelectChipCommand=function(G){if(!this.selected&&this.data&&(G=_.D(G,nnp),G.targetId&&G.targetId===this.data.targetId))this.onTap()};
_.P.onFilterChipTransformCommand=function(G){if(!this.selected&&this.data){var c;(G=(c=_.D(G,elB))==null?void 0:c.chipUniqueId)&&G===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.P.dataChanged=function(){var G=this;_.O$(this,function(){G.data&&G.data.isSelected&&!G.selected&&(G.scrollChipIntoView(),G.onTap())})};
_.P.computeChipStyle=function(G){return G!=null?G:"STYLE_DEFAULT"};
_.P.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.ym(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ym(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.P.onFocus=function(){var G=_.wH().resolve(_.qR(_.zb));G&&G.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.P.scrollChipIntoView=function(){_.Xl(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Nh.Object.defineProperties(Ic.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return x$r({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Ic.prototype.onFocus=Ic.prototype.onFocus;Ic.prototype.onTap=Ic.prototype.onTap;Ic.prototype.dataChanged=Ic.prototype.dataChanged;_.r([_.L(_.gw),_.h("design:type",Object)],Ic.prototype,"ironButtonState",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Ic.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Ic.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Ha),_.h("design:type",Object)],Ic.prototype,"ironA11yKeysBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ic.prototype,"disableDeselectEvent",void 0);_.r([_.E(),_.h("design:type",Object)],Ic.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.icon"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ic.prototype,"hasIcon",null);
_.r([_.E({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.h("design:type",String)],Ic.prototype,"chipStyle",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ic.prototype,"selected",void 0);_.r([_.A("data","selected"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ic.prototype,"chipShapeData",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ic.prototype,"dataChanged",null);
_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ic.prototype,"onTap",null);_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ic.prototype,"onFocus",null);_.r([_.Em({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Ic);
_.B(Ic,"yt-chip-cloud-chip-renderer",function(){if(WR2===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;JP9===void 0&&(JP9=document.createElement("template"));var R=JP9;I.call(c,R.content.cloneNode(!0),G.content.firstChild);WR2=G}G=WR2;return G},{mode:2});var d$g=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.B32=_.W(function(G){function c(){if(d$g.has(G.data().displayType)){var N=!R(),q;if((q=G.disableDeselection)==null||!q.call(G)||N){G.data().selected=N;q=Object.assign({},m(),{selected:N});a(q);var w;(w=G.callback)==null||w.call(G,q,N)}}}
var I=_.mX("chip-view-model",function(N){var q=G.data().tooltipTargetId,w=_.gg();q&&_.yV(w,q,N);return function(){Xi(w,N)}}),R=function(){var N,q;
return!!(((N=G.selected)==null?void 0:N.call(G))!==void 0?(q=G.selected)==null?0:q.call(G):m().selected)},Z=_.Q(_.Gz(G.data)),K=Z.next().value;
Z=Z.next().value;var m=K,a=Z,O=_.um(hjA,function(){return G.data().chipEntityKey||""});
return _.e("chip-view-model",{class:"ytChipViewModelHost",el:I},_.e(_.c2,{data:function(){var N,q=Object.assign({},m(),{selected:R()}),w=O(),F=(N=G.disableDeselection)==null?void 0:N.call(G);a:switch(q.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":N=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":N=3;break a;default:N=0}return{text:(w==null?void 0:w.text)||q.text,state:q.disabled?1:q.selected?0:2,type:N,onTap:Czr(q,I,c,
F),accessibilityLabel:q.accessibilityLabel||q.text}}}))},"Oc");
_.B32.idomCompat={callbacks:{callback:!0}};_.Rc=_.W(function(G){G=_.YW(G,{nextButtonStyle:0});var c=G.data,I=G.callback,R=G.selectionBehavior,Z=G.disableChipsScrollAnimation,K=G.nextButtonStyle,m=_.Op("div");G=_.Q(_.ks(!0,void 0,"VwW6Jc"));var a=G.next().value,O=G.next().value;G=_.Q(_.ks(!1,void 0,"OIoagd"));var N=G.next().value,q=G.next().value,w=!1,F=0,n=function(){switch(K()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.xc(function(){O(p());q(M())});
G=_.Q(_.Gz(function(){var T8={};return c().autoselectedChipIndex!=null?(T8[c().autoselectedChipIndex]=!0,T8):{}}));
var U=G.next().value,k=G.next().value,p=function(){var T8=m.value;return T8==null||T8.scrollLeft-1<=0},M=function(){var T8=m.value;
return T8==null?!1:T8.scrollLeft+1>=(T8==null?NaN:T8.scrollWidth)-(T8==null?NaN:T8.clientWidth)},z=function(){return c().isHorizontallyScrollable},t=function(T8){m.value!=null&&(_.H1("HTML_DIR")==="rtl"&&(T8=-T8),m.value.scrollBy({left:T8,
behavior:(Z==null?0:Z())?"instant":"smooth"}))},x=function(){t(-320)},C=function(){t(320)},H=_.Nx(function(T8){w=!0;
F=T8.clientX}),g=_.Nx(function(T8){if(w){T8=T8.clientX;
var kp=T8-F;F=T8;var FB;(FB=m.value)==null||FB.scrollBy({left:-kp})}}),QO=_.Nx(function(){var T8=p(),kp=M();
T8!==a()&&O(T8);kp!==N()&&q(kp)});
_.lx("pointerup",function(){w&&(w=!1)});
return _.e("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.e(_.Hh,{contentId:function(){return c().contentId},
useModernStyle:!0},function(){var T8={},kp={};return _.e("div",null,_.e(_.l,{cond:function(){return c().title},
then:function(){return _.e("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.e("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return c().title}),_.e(_.sN,{data:function(){return c().overflowButton}},{buttonViewModel:_.BR}))}}),_.e("div",{class:_.O3("ytChipsShelfViewModelChipsShelfContent",n)},_.e(_.l,{cond:function(){return c().previousButton},
then:function(){var FB={};return _.e("div",{class:_.O3("ytChipsShelfViewModelLeftArrowContainer",(FB.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return a()},FB))},_.e(_.sN,{data:function(){return c().previousButton}},{buttonViewModel:function(oq){return _.e(_.BR,{data:oq.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:x})}}))}}),_.e("div",{el:m,
"on:pointerdown":H,"on:pointermove":g,"on:scroll":QO,class:_.O3("ytChipsShelfViewModelChipsScrollContainer",(T8.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=z,T8))},_.e("div",{class:_.O3("ytChipsShelfViewModelChipsContainer",(kp.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=z,kp.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,kp)),role:"tablist"},_.e(_.sN,{data:function(){return c().contents}},{chipViewModel:function(FB,oq){return _.e("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.e(_.B32,{data:FB.data,
callback:function(Wr,iT){var z8=oq(),GV,ei=(GV=R==null?void 0:R())!=null?GV:0;ei===1||ei===2?(GV={},k((GV[z8]=iT,GV))):ei===0&&(GV={},k(Object.assign({},U(),(GV[z8]=iT,GV))));I==null||I(Wr,iT,z8)},
disableDeselection:function(){return(R==null?void 0:R())===1},
selected:function(){return!!U()[oq()]}}))}}))),_.e(_.l,{cond:function(){return c().nextButton},
then:function(){var FB={};return _.e("div",{class:_.O3("ytChipsShelfViewModelRightArrowContainer",(FB.ytChipsShelfViewModelRightArrowContainerIsHidden=N,FB))},_.e(_.sN,{data:function(){return c().nextButton}},{buttonViewModel:function(oq){return _.e(_.BR,{data:oq.data,
className:"ytChipsShelfViewModelRightArrow",onClick:C})}}))}})))}))},"Qc");
_.Rc.idomCompat={callbacks:{callback:!0}};var rPT=_.W(function(G){var c=G.data;var I=G.showChips;var R=G.isUpdateInProgress;var Z=function(){return I()&&!R()};
G={};return _.e("ytd-ai-response-box-view-model",{class:_.O3("ytdAiResponseBoxViewModelHost")},_.e("div",{class:_.O3("ytdAiResponseBoxViewModelResponseMessageContainer",(G.ytdAiResponseBoxViewModelResponseMessageContainerHidden=Z,G))},_.e(_.l,{cond:R,then:function(){return _.e("div",null,_.e(_.ul,{text:function(){return c().responsePendingMessage}}))},
else:function(){return _.e(_.FG,null,_.e(_.l,{cond:function(){var K;return(K=c().responseMessageIcon)==null?void 0:K.iconType},
then:function(K){return _.e("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.e(_.F6,{icon:K}))}}),_.e("div",null,_.e(_.ul,{text:function(){return c().responseMessage}})))}})),_.e(_.sN,{data:function(){return c().chipsShelf}},{chipsShelfViewModel:function(K){K=K.data;
var m={};return _.e("div",{class:_.O3("ytdAiResponseBoxViewModelChipsShelfContainer",(m.ytdAiResponseBoxViewModelChipsShelfContainerShown=Z,m))},_.e(_.Rc,{data:K,selectionBehavior:3,nextButtonStyle:1}))}}))},"Rc");var jG0;jG0=Object.assign({},{continuation:Rv0,download:X3A,canvas:xHC,reportChannelAbuse:aKi,ui:h7p,share:TWK,talkToRecs:NWT,watch:Fi,ypc:v_p,radioButtonGroup:rGp,collabInviteLink:fd8},IKK,{voiceSearch:HfT,shorts:wg});_.xAe=Mx(jG0);_.tlp=Ve(_.xAe);_.hhV=(0,_.tlp)(_.xAe.talkToRecs,{talkToRecsStateSelector:function(G){return G}});_.R1(_.W(function(G){var c=_.Q((0,_.az0)(G.data)).next().value;G=_.Q(_.ks(!1,void 0,"TDiQze"));var I=G.next().value,R=G.next().value;G=_.Q(tYU());var Z=G.next().value;G=G.next().value;var K=_.o1(_.hhV.talkToRecsStateSelector),m=_.Q(_.ks("",void 0,"T3OlGc")),a=m.next().value,O=m.next().value;m=_.Q(_.ks(!1,void 0,"La6B3d"));var N=m.next().value,q=m.next().value,w=_.Q(_.ks(!1,void 0,"HLicjb"));m=w.next().value;var F=w.next().value;w=_.Q(_.ks(!1,void 0,"RGx7M"));var n=w.next().value,U=w.next().value;
w=_.Q(_.ks(!1,void 0,"NCcNIf"));var k=w.next().value,p=w.next().value,M=_.mX("div");w=_.Q(_.ks(void 0,void 0,"o1By9c"));var z=w.next().value,t=w.next().value,x=function(){if(z()!==void 0){var z8=z();z8=window.scrollY>z8;z8!==I()&&R(z8)}},C=function(){var z8;
t((z8=M.value)==null?void 0:z8.offsetHeight);Z("yt-feed-filter-chip-bar-resize")};
_.tI(function(){var z8=c().onVisible;z8&&_.r0(z8,{});var GV,ei,Hr;O((Hr=(ei=X4r(c(),K()))!=null?ei:(GV=c().textInputValue)==null?void 0:GV.content)!=null?Hr:"");q(!!c().welcomeBannerTitle&&!a());C();document.addEventListener("scroll",x);_.ty(function(){document.removeEventListener("scroll",x)})});
_.xs(function(){var z8=X4r(c(),K());z8!==void 0&&z8!==a()&&O(z8)},"Tkjh9b");
_.xs(function(){N();C()},"UJeAbb");
w=_.Nx(function(){U(!0);F(!0)});
var H=_.Nx(function(){F(!1)});
_.xs(function(){c()&&(U(!1),p(!1))},"c0Qi6");
var g=function(z8){var GV=c().onUpdateText;GV&&_.r0(GV,{form:{userQuery:z8}})},QO=_.W7(function(z8){g(z8)},150),T8=_.Nx(function(z8){QO(z8.target.value);
return!1});
_.xs(function(){var z8=X4r(c(),K());z8&&z8!==a()&&O(z8)},"AThUfe");
var kp=function(){p(!0);q(!1)},FB=_.Nx(function(z8){if(z8.key==="Enter"){g(z8.target.value.trim());
z8=_.D(c().submitButton,_.uv);if(z8==null?0:z8.trackingParams){var GV=_.kC(z8.trackingParams),ei=_.k0();ei&&GV&&_.xD(ei,GV,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(z8=z8==null?void 0:z8.onTap)_.r0(z8),kp()}return!1}),oq=_.Nx(function(){Z("yt-feed-customization-scroll-up")}),Wr={},iT={};
return _.e("ytd-feed-customization-form-view-model",{class:_.O3("ytdFeedCustomizationFormViewModelHost",(Wr.ytdFeedCustomizationFormViewModelHostCollapsed=I,Wr)),el:_.YC(G)},_.e("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:M},_.e("div",{class:"ytdFeedCustomizationFormViewModelExpandedContent"},_.e(_.l,{cond:N,then:function(){return _.e("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.e("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},
_.e(_.ul,{text:function(){return c().welcomeBannerTitle}})),_.e("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.e(_.ul,{text:function(){return c().welcomeBannerSubtitle}})))}}),_.e("div",{class:_.O3("ytdFeedCustomizationFormViewModelInputContainer",(iT.ytdFeedCustomizationFormViewModelInputContainerHighlighted=m,iT))},_.e("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var z8;return(z8=c().textInputPlaceholder)==null?void 0:z8.content},
"prop:value":a,"on:focus":w,"on:blur":H,"on:input":T8,"on:keyup":FB,maxlength:250}),_.e(_.l,{cond:function(){return!!a()},
then:function(){return _.e(_.sN,{data:function(){return c().clearButton}},{buttonViewModel:function(z8){return _.e("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.e(_.BR,{data:z8.data}))}})}}),_.e(_.l,{cond:function(){return k()},
then:function(){return _.e(_.sN,{data:function(){return c().inProgressButton}},{buttonViewModel:function(z8){return _.e("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.e(_.BR,{data:z8.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.e(_.sN,{data:function(){return c().submitButton}},{buttonViewModel:function(z8){return _.e("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.e(_.BR,{data:z8.data,
onClick:kp}))}})}}),_.e(_.sN,{data:function(){return c().menuButton}},{buttonViewModel:function(z8){return _.e("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.e(_.BR,{data:z8.data}))}})),_.e(_.sN,{data:function(){return c().contents}},{aiResponseBoxViewModel:function(z8){return _.e("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.e(rPT,{data:z8.data,
showChips:n,isUpdateInProgress:k}))}})),_.e("div",{class:"ytdFeedCustomizationFormViewModelCollapsedContent",
"on:click":oq},_.e("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var z8;return a()||((z8=c().textInputPlaceholder)==null?void 0:z8.content)}))))},"Wc"),"ytd-feed-customization-form-view-model",{props:{data:_.bl}});var dAT=_.Ce.persistentPanelVisibleSelector,ZK=function(){var G=_.J.apply(this,arguments)||this;G.isDarkTheme=!1;G.notSticky=!1;G.transparentBackground=!1;G.shouldHide=!1;G.disableSticky=!1;G.fluidWidth=!1;G.isClipList=!1;G.defaultChipIndex=0;G.hasSelectedChipContent=!1;G.isPlaylist=!1;G.playlistVotingAnimationEnabled=_.v("web_enable_voting_animation");G.toolbarHeight=0;G.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(ZK,_.J);_.P=ZK.prototype;
_.P.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.P.attached=function(){var G=this;document.addEventListener("scroll",_.lO(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.lO(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var c;this.toolbarHeight=((c=document.querySelector("ytd-masthead"))==null?void 0:c.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(I){G.handleIntersect(I)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.P.detached=function(){var G;(G=this.intersectionObserver)==null||G.disconnect();var c;(c=this.resizeObserver)==null||c.disconnect();document.removeEventListener("scroll",_.lO(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.lO(this,this.onFeedFilterChipBarResize))};
_.P.dataChanged=function(){var G=this,c,I,R=(c=this.data)==null?void 0:(I=c.contents)==null?void 0:I.findIndex(function(K){var m;return!((m=_.D(K,bf2))==null?0:m.navigationEndpoint)});
R&&(this.defaultChipIndex=R);this.updating=!0;var Z=this.findSelectedChipIndex();this.selectedIndex!==Z&&(this.selectedIndex=-1);_.O$(this,function(){G.selectedIndex=Z;G.updateSelectedChipContent(G.selectedIndex);G.updating=!1;G.ytScrollableChipCloudBehavior.reset()})};
_.P.findSelectedChipIndex=function(){var G;if((G=this.data)==null||!G.contents)return 0;G=this.data.contents;for(var c=0;c<G.length;c++){var I=void 0;if((I=_.D(G[c],bf2))==null?0:I.isSelected)return c}return 0};
_.P.computeStyle=function(G){return G};
_.P.handleChipCloudChipSelectAction=function(G){G=this.JSC$16394_chipsSelector.indexOf(G);G>-1&&(this.JSC$16394_chipsSelector.selectIndex(G),this.updateSelectedChipContent(G))};
_.P.updateSelectedChipContent=function(G){var c;if((c=this.data)==null||!c.contents||G<0||G>=this.data.contents.length)this.selectedChipContent=void 0;else{var I;this.selectedChipContent=(I=_.D(this.data.contents[G],bf2))==null?void 0:I.content}};
_.P.handleChipCloudChipDeselectAction=function(){if(_.v("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var G,c,I,R=(I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[this.defaultChipIndex],bf2))==null?void 0:I.navigationEndpoint;R&&_.ym(this.hostElement,"yt-browse-section-list-reload-endpoint",[R]);this.JSC$16394_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.P.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.P.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.P.updateDynamicHeight=function(){var G=this;this.hasSelectedChipContent&&!this.notSticky?_.O$(this,function(){var c=_.Q1(G.hostElement).querySelector("#chips-wrapper");c&&_.eD(G.hostElement,{"--ytd-chips-bar-dynamic-height":c.clientHeight+"px"})}):_.eD(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.P.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.P.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.P.onResize=function(){this.updateLayout()};
_.P.updateLayout=function(){var G=this.ytScrollableChipCloudBehavior;_.O$(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.O$(G,G.setButtonsState)};
_.P.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.P.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.P.handleIntersect=function(G){this.notSticky=this.isChannelPageGrid||this.disableSticky||G[0].intersectionRatio===1};
_.P.updateDimensions=function(){var G=this.ytRendererBehavior.parentComponent;if(G){var c,I=(c=G.headerElement)!=null?c:G;_.eD(this.hostElement,{"--ytd-rich-grid-chips-bar-width":I.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.P.updateSelectedIndexFromBinding=function(G){this.selectedIndex=G.detail.value};
_.P.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var G;(G=this.sortFilterHeaderRendererElement)==null||G.setAttribute("is-playlist-page-with-filters","")}};
_.P.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(FkB(!this.notSticky))};
_.Nh.Object.defineProperties(ZK.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.contents)==null?void 0:c.find(function(R){return _.D(R,$HN)});
return{sortFilterHeaderRenderer:_.D(I,$HN)}}}});
ZK.prototype.dispatchChipBarIsSticky=ZK.prototype.dispatchChipBarIsSticky;ZK.prototype.isPlaylistPageChanged=ZK.prototype.isPlaylistPageChanged;ZK.prototype.updateChipBarWidthAndTop=ZK.prototype.updateChipBarWidthAndTop;ZK.prototype.onResize=ZK.prototype.onResize;ZK.prototype.onPersistentPanelVisibleChanged=ZK.prototype.onPersistentPanelVisibleChanged;ZK.prototype.onGuideIsExpandedChanged=ZK.prototype.onGuideIsExpandedChanged;ZK.prototype.updateDynamicHeight=ZK.prototype.updateDynamicHeight;
ZK.prototype.onSelectedChipContentChanged=ZK.prototype.onSelectedChipContentChanged;ZK.prototype.dataChanged=ZK.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],ZK.prototype,"actionHandlerBehavior",void 0);
_.r([_.L(_.Zu),_.h("design:type",Object)],ZK.prototype,"ironResizableBehavior",void 0);_.r([_.L(),_.h("design:type",Gh)],ZK.prototype,"ytScrollableChipCloudBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],ZK.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ZK.prototype,"data",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],ZK.prototype,"selectedIndex",void 0);_.r([_.E({value:320}),_.h("design:type",Number)],ZK.prototype,"scrollDistance",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"notSticky",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"transparentBackground",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.h("design:type",String)],ZK.prototype,"componentStyle",void 0);
_.r([_.E({selector:_.ErU}),_.h("design:type",Boolean)],ZK.prototype,"guideIsExpanded",void 0);_.r([_.E({selector:dAT}),_.h("design:type",Boolean)],ZK.prototype,"persistentPanelVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"shouldHide",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"disableSticky",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"fluidWidth",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"isClipList",void 0);_.r([_.E(),_.h("design:type",Object)],ZK.prototype,"defaultChipIndex",void 0);_.r([_.E(),_.h("design:type",Object)],ZK.prototype,"selectedChipContent",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"hasSelectedChipContent",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ZK.prototype,"isPlaylist",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],ZK.prototype,"playlistVotingAnimationEnabled",void 0);_.r([_.nH("#chips"),_.h("design:type",Object)],ZK.prototype,"JSC$16394_chipsSelector",void 0);_.r([_.nH("ytd-sort-filter-header-renderer"),_.h("design:type",HTMLElement)],ZK.prototype,"sortFilterHeaderRendererElement",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],ZK.prototype,"updating",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"dataChanged",null);_.r([_.wD("selectedChipContent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"onSelectedChipContentChanged",null);_.r([_.wD("hasSelectedChipContent","notSticky"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"updateDynamicHeight",null);
_.r([_.wD("guideIsExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"onGuideIsExpandedChanged",null);_.r([_.wD("persistentPanelVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"onPersistentPanelVisibleChanged",null);_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"onResize",null);
_.r([_.uO("isChannelPageGrid","disableSticky","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"updateChipBarWidthAndTop",null);_.r([_.A("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ZK.prototype,"isChannelPageGrid",null);_.r([_.A("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ZK.prototype,"isHashtagLandingPage",null);
_.r([_.wD("isPlaylistPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"isPlaylistPageChanged",null);_.r([_.A("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ZK.prototype,"isPlaylistPage",null);_.r([_.A("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ZK.prototype,"isDisableDeselectEvent",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ZK.prototype,"sortFilterHeaderRendererData",null);_.r([_.E({reflectToAttribute:!0,selector:_.jTg}),_.h("design:type",String)],ZK.prototype,"frostedGlassMode",void 0);_.r([_.wD("notSticky"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"dispatchChipBarIsSticky",null);_.r([_.Jc({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],ZK);
_.B(ZK,"ytd-feed-filter-chip-bar-renderer",function(){if(EA0!==void 0)return EA0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return EA0=G},{mode:1});var CqT;var HcN=_.W(function(G){var c=G.data;var I=G.buttonIndex;var R=G.selectedIndex;var Z=G.onSelect;var K=function(){return I()===R()},m=function(){var a,O;
return(O=(a=c().text)==null?void 0:a.content)!=null?O:""};
G=_.tZC();return _.e("yt-toggleable-image-button-view-model",{class:function(){var a={};a=(a.toggleableImageButtonViewModelHost=!0,a[""]=!0,a.toggleableImageButtonViewModelSemiTransparent=R()!==-1&&!K(),a);return _.VK(a)},
tabindex:0,"aria-label":m,"aria-pressed":K,role:"button","on:keydown":G,"on:click":_.Nx(function(){Z(c().onSubmitCommand);return!1})},_.e(_.l,{cond:function(){return c().logo},
then:function(a){return _.e(_.yc,{data:a,className:function(){var O={};O=(O.toggleableImageButtonViewModelImage=!0,O.toggleableImageButtonViewModelCircularRadius=!(!c().backgroundColor||!c().backgroundColorDarkMode),O.toggleableImageButtonViewModelGradientRing=!!(K()&&c().backgroundColor&&c().backgroundColorDarkMode),O);return _.VK(O)},
alt:m,useWidth:!1,style:function(){if(K()&&c().backgroundColor&&c().backgroundColorDarkMode){var O=MD(Number(c().backgroundColorDarkMode),"1");var N=MD(Number(c().backgroundColor),"1");O="background: linear-gradient(180deg,"+O+","+N+") border-box;"}else O="";return O}})}}),_.e(_.Jx,{model:{borderRadius:"16px"}}),_.e("p",{class:function(){var a={};
a=(a.toggleableImageButtonViewModelLabel=!0,a.toggleableImageButtonViewModelBoldText=K(),a);return _.VK(a)}},_.e(_.ul,{text:function(){return c().text}})))},"Xc");
HcN.idomCompat=!0;var yPB=_.W(function(G){var c=G.data;G=_.Q(_.ks({index:-1,command:{}},void 0,"GM3umb"));var I=G.next().value,R=G.next().value;return _.e("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.e("div",{class:"nudgeFormViewModelFormOptions"},_.e(_.sN,{data:function(){return c().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Z,K){return _.e(HcN,{data:Z.data,buttonIndex:K,selectedIndex:function(){return I().index},
onSelect:function(m){R({index:K(),command:m})}})}})),_.e(_.ul,{text:function(){return c().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.e("div",{class:"nudgeFormViewModelSubmit"},_.e(_.sN,{data:function(){return c().submitButton}},{buttonViewModel:function(Z){return _.e(XoV,{data:Z.data,
isDisabled:function(){return I().index===-1},
onClick:function(){_.r0(I().command)}})}})))},"Yc");
yPB.idomCompat=!0;var XoV=_.W(function(G){var c=_.SE(function(){return Object.assign({},G.data(),{state:G.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.e(_.BR,{data:c,onClick:G.onClick})},"Zc");_.R1(yPB,"yt-nudge-form-view-model",{props:{data:_.bl}});var Ko=function(){var G=_.J.apply(this,arguments)||this;G.roundedContainer=!0;G.buttonUpdate=_.v("web_modern_buttons");G.isDarkMode=!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.u(Ko,_.J);_.P=Ko.prototype;_.P.computeNudgeStyle=function(G){return G?"modernized-nudge":""};
_.P.handleDarkModeToggledAction=function(G){this.isDarkMode=G};
_.P.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.computeIsHorizontalButtons=function(G){return G?!!G.applyModernizedStyle&&!!G.enableHorizontalButtons&&!!G.secondaryButton:!1};
_.Nh.Object.defineProperties(Ko.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=(G=this.data)==null?void 0:G.backgroundStyle)!=null?c:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=(G=this.data)==null?void 0:G.contentsLocation)!=null?c:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.lightIconImage)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],Ko.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Ko.prototype,"actionHandlerBehavior",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("isHideEnclosingAction"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ko.prototype,"isHidden",null);_.r([_.E(),_.h("design:type",Object)],Ko.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ko.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ko.prototype,"buttonUpdate",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.h("design:type",String)],Ko.prototype,"nudgeStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.trimStyle"),_.h("design:type",String),_.h("design:paramtypes",[])],Ko.prototype,"trimStyle",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.backgroundStyle"),_.h("design:type",String),_.h("design:paramtypes",[])],Ko.prototype,"backgroundStyle",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data.contentsLocation"),_.h("design:type",String),_.h("design:paramtypes",[])],Ko.prototype,"contentsLocation",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.disableDropShadow"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ko.prototype,"noShadow",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.lightIconImage"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ko.prototype,"noIcon",null);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.h("design:type",Boolean)],Ko.prototype,"isHorizontalButtons",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],Ko.prototype,"isDarkMode",void 0);_.r([_.Jc({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Ko);
_.B(Ko,"ytd-feed-nudge-renderer",function(){if(CqT!==void 0)return CqT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return CqT=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var gAk;var YbK;var P2=function(){var G=_.J.apply(this,arguments)||this;G.collapsed=!1;G.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return G};
_.u(P2,_.J);P2.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"}}}};
P2.prototype.handleRatingSelect=function(){var G;((G=this.data)==null?0:G.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
P2.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],P2.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],P2.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.nI),_.h("design:type",Object)],P2.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],P2.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],P2.prototype,"collapsed",void 0);_.r([_.Jc({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],P2);
_.B(P2,"ytd-slimline-survey-renderer",function(){if(YbK!==void 0)return YbK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return YbK=G},{mode:1});var GCK;var Q6=function(){return _.J.apply(this,arguments)||this};
_.u(Q6,_.J);Q6.prototype.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
Q6.prototype.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G&&(G==null?0:G.secondaryTitleColor)&&this.maybeGetBackgroundColor(G)?(this.hostElement.style.backgroundColor=_.Sx(this.maybeGetBackgroundColor(G)),this.hostElement.style.color=_.Sx(G.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Q6.prototype.colorPaletteChanged=Q6.prototype.colorPaletteChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],Q6.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Q6.prototype,"data",void 0);_.r([_.E({selector:function(G){return G.ui.darkModeIsEnabled}}),
_.h("design:type",Boolean)],Q6.prototype,"isDarkMode",void 0);_.r([_.E(),_.h("design:type",Object)],Q6.prototype,"lightColorPalette",void 0);_.r([_.E(),_.h("design:type",Object)],Q6.prototype,"darkColorPalette",void 0);_.r([_.wD("darkColorPalette","lightColorPalette","data","isDarkMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q6.prototype,"colorPaletteChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Q6);
_.B(Q6,"ytd-endorsement-header-renderer",function(){if(GCK!==void 0)return GCK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return GCK=G},{mode:1});_.R1(_.wE,"yt-decorated-avatar-view-model",{props:{data:_.bl,className:_.bl}});_.mk=new _.De("VIEW_TRANSITION_MANAGER_TOKEN");var ac=function(){var G=_.J.apply(this,arguments)||this;G.fullHeight=_.v("web_rich_grid_media_full_height");G.showChannelAvatar=!0;G.hasPlaylistThumbnail=!1;G.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};G.registerThumbnailForPageTransition=function(){_.v("web_thumbnail_to_watch_transition")&&_.cRV(_.wH().resolve(_.mk),G.thumbnail)};
return G};
_.u(ac,_.J);_.P=ac.prototype;
_.P.configureRendererStamper=function(){return{lazyLoadMenu:ch,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.shouldLazyLoadMenu=function(){var G=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.v("kevlar_modern_downloads_page")||!G};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16418_inlinePreviewHoverListener=rP({mediaRenderer:this,lockupElement:this.JSC$16418_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.P.getVideoPreviewOpts=function(){var G={},c;if((c=this.data)==null?0:c.multipleInlinePlaybackEndpoint)G=EJ9;this.isRadio&&(G=z3N);return G};
_.P.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16418_inlinePreviewHoverListener)==null||Rw(G)};
_.P.getOwner=function(){var G,c,I;return((G=this.data)==null?void 0:(c=G.channelThumbnailSupportedRenderers)==null?void 0:c.channelThumbnailWithLinkRenderer)||_.D((I=this.data)==null?void 0:I.showProviderChannelThumbnail,U7A)};
_.P.updateLockupSize=function(){var G;((G=this.getOwner())==null?0:G.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.P.getFeedbackEndpoint=function(G){if(_.D(G,_.fM))return G;var c,I;G=(I=(c=_.D(G,_.RP))==null?void 0:c.commands)!=null?I:[];c=_.Q(G);for(I=c.next();!I.done;I=c.next())if(I=this.getFeedbackEndpoint(I.value))return I;return null};
_.P.computeNavigationEndpoint=function(G){return rtr(G==null?void 0:G.navigationEndpoint)};
_.P.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var G=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(G)!==JSON.stringify(this.data)&&this.set("data",G)}};
_.P.onDataChanged=function(){var G=this,c=this.getOwner();if(c){this.set("data.owner",c);var I,R,Z,K,m,a=((I=this.data)==null?void 0:(R=I.shortBylineText)==null?void 0:(Z=R.runs)==null?void 0:(K=Z[0])==null?void 0:K.text)||((m=c.name)==null?void 0:m.simpleText);this.set("data.owner.title",a)}var O,N,q,w,F,n;c=((O=this.data)==null?void 0:(N=O.thumbnailRenderer)==null?void 0:N.playlistVideoThumbnailRenderer)||((q=this.data)==null?void 0:(w=q.thumbnailRenderer)==null?void 0:w.playlistCustomThumbnailRenderer)||
((F=this.data)==null?void 0:(n=F.thumbnailRenderer)==null?void 0:n.showCustomThumbnailRenderer);var U;((U=this.data)==null?0:U.thumbnail)||!c||this.set("data.thumbnail",c.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){G.updateLockupSize()});
var k;if(O=((k=this.data)==null?void 0:k.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(O);var p;((p=this.dismissActionToReplayEntity)==null?0:p.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.P.onHiddenChanged=function(){this.updateLockupSize()};
_.P.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ym(this.hostElement,"yt-terminate-video-preview-action");else{var G;(G=this.videoTitleLink)==null||G.focus()}};
_.P.metadataColorChanged=function(){var G;if(this.metadataColor&&((G=this.videoTitle)==null?0:G.style))this.videoTitle.style.color=_.Sx(this.metadataColor);else{var c,I;!this.metadataColor&&((c=this.videoTitle)==null?0:(I=c.style)==null?0:I.color)&&(this.videoTitle.style.color="")}};
_.P.onDetailsClick=function(G){var c=this.computedNavigationEndpoint;c&&(_.Gf(_.CE(G),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Xl(this.hostElement,"yt-navigate",{endpoint:c}))};
_.P.onRendererTap=function(){this.registerThumbnailForPageTransition();var G,c,I=((G=this.data)==null?void 0:G.serviceEndpoint)||this.getFeedbackEndpoint((c=this.data)==null?void 0:c.navigationEndpoint);I&&_.D(I,_.fM)&&this.ytComponentBehavior.resolveCommand(I)};
_.P.onMouseDown=function(G){var c=G.target,I=this.computedNavigationEndpoint,R;G=c.href||((R=_.D(I==null?void 0:I.commandMetadata,_.Pd))==null?void 0:R.url);R=c.data||I;G&&R&&MUf(G,R)};
_.P.computeVideoTitleText=function(){var G;if((G=this.data)==null?0:G.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.P.computeHasPlaylistThumbnail=function(G){var c,I,R,Z,K;if((((c=G.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((I=G.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer)||((R=G.thumbnailRenderer)==null?0:R.showCustomThumbnailRenderer)||((Z=G.thumbnailRenderer)==null?0:Z.playlistVideoThumbnailRenderer)||((K=G.thumbnailRenderer)==null?0:K.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(c=0;c<G.thumbnailOverlays.length;c++)if(I=void 0,(I=G.thumbnailOverlays[c])==
null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Nh.Object.defineProperties(ac.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.v("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var G;return(G=this.data)==null?void 0:G.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var G;return(G=this.data)==null?void 0:G.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16418_inlinePreviewHoverListener)==null?0:D1(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.mFb(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:G.videoId)||((c=this.data)==null?void 0:c.playlistId)||""}}});
ac.prototype.onMouseDown=ac.prototype.onMouseDown;ac.prototype.metadataColorChanged=ac.prototype.metadataColorChanged;ac.prototype.onIsDismissedChanged=ac.prototype.onIsDismissedChanged;ac.prototype.onHiddenChanged=ac.prototype.onHiddenChanged;ac.prototype.onDataChanged=ac.prototype.onDataChanged;ac.prototype.handleReloadDownloadsInfo=ac.prototype.handleReloadDownloadsInfo;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ac.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],ac.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],ac.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],ac.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],ac.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],ac.prototype,"entitySelectorType",void 0);_.r([_.E(),_.h("design:type",Boolean)],ac.prototype,"noEndpoints",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],ac.prototype,"isRadio",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],ac.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ac.prototype,"fullHeight",void 0);
_.r([_.E(),_.h("design:type",Boolean)],ac.prototype,"showDarkVideoMetadata",void 0);_.r([_.E(),_.h("design:type",Boolean)],ac.prototype,"showLightVideoMetadata",void 0);_.r([_.E(),_.h("design:type",Number)],ac.prototype,"metadataColor",void 0);_.r([_.E(),_.h("design:type",Object)],ac.prototype,"showChannelAvatar",void 0);_.r([_.E(),_.h("design:type",Boolean)],ac.prototype,"hidden",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],ac.prototype,"showYtInteraction",void 0);
_.r([_.E(),_.h("design:type",String)],ac.prototype,"dismissedContentId",void 0);_.r([_.E({selectorArgs:["dismissedContentId"],selector:NpO}),_.h("design:type",Object)],ac.prototype,"dismissActionToReplayEntity",void 0);
_.r([_.E({selectorArgs:["entitySelectorType","mediaId"],selector:function(G,c,I){if(_.v("kevlar_modern_downloads_page")&&I&&c&&c!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var R=dir(G,I);if(R){c=_.E4(G,I);var Z=WY(G,I),K=K80(G,I);G=fp(G,I);var m=ifq(R,c,Z,K);Z=m.shortViewCountText;var a=m.publishedTimeText;m=m.badges;var O=G>0;K=JGT(R,c,K,G);R=_.vY(c)||c==="TRANSFER_STATE_FAILED"||c==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!np(R.policyEntity)?
void 0:fIA(I,G,R.videoEntity.lengthSeconds);c==="TRANSFER_STATE_PAUSED_BY_USER"&&I&&!_.v("dl_resume_click_killswitch")&&(R={offlineVideoEndpoint:{videoId:I,action:"ACTION_RESUME"}});I={shortViewCountText:Z,publishedTimeText:a,badges:m,isWatched:O,navigationEndpoint:R,thumbnailOverlays:K}}else I=void 0;return I;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(c=Cli(G,I))if(R=_.JX(G,I),K=_.Hxb(G,I),R!=="TRANSFER_STATE_UNKNOWN"){I=W8b(c,R,K,I,_.V4(G));break a}I=void 0}return I;default:_.Ck(new _.iW("Error: entitySelectorType defined but not matched in selector.",
G,c))}}}),
_.h("design:type",Object)],ac.prototype,"entityDrivenState",void 0);_.r([_.E({computed:"computeVideoTitleText(data)"}),_.h("design:type",Object)],ac.prototype,"videoTitleText",void 0);_.r([_.E({computed:"computeHasPlaylistThumbnail(data)"}),_.h("design:type",Object)],ac.prototype,"hasPlaylistThumbnail",void 0);_.r([_.E({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],ac.prototype,"computedNavigationEndpoint",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],ac.prototype,"typographyBump",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("typographyBump"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ac.prototype,"typographyBumpV2",null);_.r([_.nH("#video-title"),_.h("design:type",HTMLElement)],ac.prototype,"videoTitle",void 0);_.r([_.nH("#video-title-link"),_.h("design:type",HTMLElement)],ac.prototype,"videoTitleLink",void 0);
_.r([_.nH("#thumbnail"),_.h("design:type",HTMLElement)],ac.prototype,"thumbnail",void 0);_.r([_.nH("#dismissible"),_.h("design:type",HTMLElement)],ac.prototype,"JSC$16418_dismissibleMedia",void 0);_.r([_.A("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],ac.prototype,"lazyLoadMenu",null);_.r([_.A("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],ac.prototype,"immediateLoadMenu",null);
_.r([_.uO("entityDrivenState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ac.prototype,"handleReloadDownloadsInfo",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ac.prototype,"onDataChanged",null);_.r([_.uO("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ac.prototype,"onHiddenChanged",null);
_.r([_.wD("isDismissed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ac.prototype,"onIsDismissedChanged",null);_.r([_.wD("metadataColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ac.prototype,"metadataColorChanged",null);_.r([_.qY("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ac.prototype,"onMouseDown",null);
_.r([_.A("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ac.prototype,"isHovered",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ac.prototype,"useAvatar",null);_.r([_.A("data","entitySelectorType"),_.h("design:type",String),_.h("design:paramtypes",[])],ac.prototype,"mediaId",null);_.r([_.Jc({is:"ytd-rich-grid-media",disableElementRegistration:!0})],ac);
var IQp=_.PI()(ac,"ytd-rich-grid-media",function(){if(gAk!==void 0)return gAk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return gAk=G},{mode:_.Qc("kevlar_poly_si_batch_j072")?1:2});var RtT;var Th=function(){var G=_.J.apply(this,arguments)||this;G.removeMaxWidth=!0;G.insetMetadata=!1;return G};
_.u(Th,_.J);_.P=Th.prototype;_.P.configureRendererStamper=function(){return{innerMenu:ch,outerMenu:Object.assign({},ch,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onDataChanged=function(){var G,c=((G=this.data)==null?void 0:G.trackingParams)||"";c&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(c));var I;((I=this.dismissActionToReplayEntity)==null?0:I.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16423_inlinePreviewHoverListener=rP({mediaRenderer:this,lockupElement:this.JSC$16423_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:J6e})};
_.P.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16423_inlinePreviewHoverListener)==null||Rw(G)};
_.P.onRendererTap=function(){var G,c,I=(G=this.data)==null?void 0:(c=G.serviceEndpoints)==null?void 0:c[0];_.D(I,_.fM)&&this.componentBehavior.resolveCommand(I)};
_.P.onDetailsClick=function(G){var c,I=(c=this.data)==null?void 0:c.navigationEndpoint;I&&(_.Gf(_.CE(G),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(I))};
_.P.onShow=function(){var G=this.data;G.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(G.onFirstVisibleCommand),delete G.onFirstVisibleCommand)};
_.Nh.Object.defineProperties(Th.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var G;return this.insetMetadata?void 0:(G=this.data)==null?void 0:G.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var G;return this.insetMetadata?(G=this.data)==null?void 0:G.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var G=this.data;if(G!=null&&G.badge&&(G=_.D(G.badge,F8i))){var c,I,R;return[{metadataBadgeRenderer:{label:((c=G.label)==null?void 0:(I=c.runs)==null?void 0:I[0].text)||((R=G.label)==null?void 0:R.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var G=this.data;return Object.assign({},G.headline,{accessibility:G.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return this.isSlimShort?(G=this.computedTitle)==null?void 0:(c=G.accessibility)==null?void 0:(I=c.accessibilityData)==null?void 0:I.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.v("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16423_inlinePreviewHoverListener)==null?0:D1(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Th.prototype.onDataChanged=Th.prototype.onDataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Th.prototype,"componentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],Th.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.nI),_.h("design:type",Object)],Th.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);_.r([_.nH("ytd-thumbnail"),_.h("design:type",HTMLElement)],Th.prototype,"thumbnail",void 0);_.r([_.nH("#dismissible"),_.h("design:type",HTMLElement)],Th.prototype,"JSC$16423_dismissibleMedia",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Th.prototype,"removeMaxWidth",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Th.prototype,"insetMetadata",void 0);_.r([_.E(),_.h("design:type",String)],Th.prototype,"dismissedContentId",void 0);_.r([_.E({selectorArgs:["dismissedContentId"],selector:NpO}),_.h("design:type",Object)],Th.prototype,"dismissActionToReplayEntity",void 0);_.r([_.A("insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Th.prototype,"thumbnailObjectFit",null);
_.r([_.A("data","insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Th.prototype,"innerMenu",null);_.r([_.A("data","insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Th.prototype,"outerMenu",null);_.r([_.E(),_.h("design:type",Object)],Th.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],Th.prototype,"miniMode",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Th.prototype,"onDataChanged",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Th.prototype,"shortsBadges",null);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Th.prototype,"isShort",null);
_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Th.prototype,"isSlimShort",null);_.r([_.A("data","isShort"),_.h("design:type",Object),_.h("design:paramtypes",[])],Th.prototype,"computedTitle",null);_.r([_.A("isSlimShort","computedTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Th.prototype,"computedAccessibilityLabel",null);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Th.prototype,"shouldForce2By3",null);_.r([_.A("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Th.prototype,"isHovered",null);_.r([_.Jc({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Th);
_.B(Th,"ytd-rich-grid-slim-media",function(){if(RtT!==void 0)return RtT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return RtT=G},{mode:_.Qc("kevlar_poly_si_batch_j063")?1:2});var Z3e;var KnN;var Ov=function(){return _.J.apply(this,arguments)||this};
_.u(Ov,_.J);Ov.prototype.computeIcon=function(G){return G&&G.iconType?"yt-sys-icons:"+G.iconType.toLowerCase():""};
Ov.prototype.onMouseEnter=function(){this.isHovered=!0};
Ov.prototype.onMouseLeave=function(){this.isHovered=!1};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ov.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Ov.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ov.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Ov.prototype,"isHovered",void 0);
_.r([_.Jc({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Ov);
_.B(Ov,"ytd-expand-on-hover-card-renderer",function(){if(KnN!==void 0)return KnN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return KnN=G},{mode:1});var P7K,QO2=function(){if(P7K!==void 0)return P7K;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return P7K=G};_.Su("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var ef=function(){var G=_.J.apply(this,arguments)||this;G.compactStyle=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(ef,_.J);_.P=ef.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.computeHideDot=function(G){return!(G&&G.subscriberCountText&&G.videoCountText)||this.compactStyle};
_.P.hasDualButtons=function(G){return G&&G.purchaseButton&&G.subscribeButton};
_.P.backgroundColorChanged=function(){if(this.data!==void 0){var G=this.data.backgroundColor;this.isDarkTheme&&(G=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=G!=null?_.Sx(G):"transparent"}};
_.P.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.P.onTap=function(G){var c,I,R=((c=this.data)==null?void 0:c.navigationEndpoint)||((I=this.data)==null?void 0:I.serviceEndpoint);_.D(R,_.YZ)&&(R&&_.wH().resolve(_.n4).resolveCommand(R,{form:{element:this.hostElement}}),G.preventDefault())};
_.P.computeChannelEndpoint=function(G){return _.D(G,_.YZ)?null:G};
_.P.computeHrefEndpoint=function(G){return _.D(G,_.YZ)?null:this.componentBehavior.computeHref_(G)};
_.P.computeChannelRendererStyle=function(G){return G};
_.P.computeIconSize=function(G){return G?108:136};
_.Nh.Object.defineProperties(ef,{template:{configurable:!0,enumerable:!0,get:function(){return QO2()}}});
ef.prototype.backgroundColorChanged=ef.prototype.backgroundColorChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],ef.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ef.prototype,"componentBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],ef.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],ef.prototype,"isDarkTheme",void 0);_.r([_.E({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.h("design:type",String)],ef.prototype,"channelRendererStyle",void 0);_.r([_.E({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],ef.prototype,"dualButtons",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],ef.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],ef.prototype,"biggerThumbStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ef.prototype,"compactStyle",void 0);_.r([_.wD("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ef.prototype,"backgroundColorChanged",null);_.r([_.Jc({is:"ytd-channel-renderer",disableElementRegistration:!0})],ef);_.B(ef,"ytd-channel-renderer",function(){return QO2()},{mode:1});var mdK;var aQA;_.Su("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var NW=function(){var G=_.J.apply(this,arguments)||this;G.displayItemCount=2;G.hasPlaylistThumbnail=!1;G.stackThumbnailSize="large";return G};
_.u(NW,_.J);_.P=NW.prototype;_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.computeFirstVideos=function(G,c){return G&&c?G.slice(0,c):[]};
_.P.computeThumbnailWidth=function(G,c){return G?c==="BIG"?500:c==="MASSIVE"?600:c==="MEDIUM"?450:420:360};
_.P.computeThumbnailHeight=function(G,c){return G?c==="BIG"?280:c==="MASSIVE"?337:234:202};
_.P.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16436_inlinePreviewHoverListener)==null||Rw(G)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16436_inlinePreviewHoverListener=rP({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:EJ9,thumbnailElement:this.thumbnail})};
_.P.computeHasPlaylistThumbnail=function(G){var c,I;if((((c=G.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((I=G.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(c=0;c<G.thumbnailOverlays.length;c++)if(I=void 0,(I=G.thumbnailOverlays[c])==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Nh.Object.defineProperties(NW.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16436_inlinePreviewHoverListener)==null?0:D1(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
NW.prototype.dataChanged=NW.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],NW.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NW.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],NW.prototype,"displayItemCount",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],NW.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],NW.prototype,"biggerThumbsStyle",void 0);_.r([_.E({computed:"computeHasPlaylistThumbnail(data)"}),_.h("design:type",Object)],NW.prototype,"hasPlaylistThumbnail",void 0);_.r([_.E(),_.h("design:type",String)],NW.prototype,"stackThumbnailSize",void 0);_.r([_.nH("ytd-thumbnail"),_.h("design:type",HTMLElement)],NW.prototype,"thumbnail",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NW.prototype,"dataChanged",null);
_.r([_.A("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NW.prototype,"isHovered",null);_.r([_.Jc({is:"ytd-radio-renderer",disableElementRegistration:!0})],NW);
_.B(NW,"ytd-radio-renderer",function(){if(aQA!==void 0)return aQA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return aQA=G},{mode:_.Qc("kevlar_poly_si_batch_j058")?1:2});var Toe;_.Su("itemSectionRenderer","showRenderer","ytd-show-renderer");var lS=function(){return _.J.apply(this,arguments)||this};
_.u(lS,_.J);lS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
lS.prototype.computeThumbnailWidth=function(G){return G?360:246};
lS.prototype.computeUseProminentThumbs=function(G){return G};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lS.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],lS.prototype,"isSearch",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.h("design:type",Boolean)],lS.prototype,"useProminentThumbs",void 0);_.r([_.Jc({is:"ytd-show-renderer",disableElementRegistration:!0})],lS);
_.B(lS,"ytd-show-renderer",function(){if(Toe!==void 0)return Toe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Toe=G},{mode:1});_.Su("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var qW=function(){var G=_.J.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.u(qW,_.J);qW.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"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qW.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],qW.prototype,"isRichGrid",void 0);_.r([_.Jc({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],qW);
_.B(qW,"ytd-feed-entry-renderer",function(){if(mdK!==void 0)return mdK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return mdK=G},{mode:1});var O39;var wW=function(){return _.J.apply(this,arguments)||this};
_.u(wW,_.J);wW.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.r([_.L(_.wQ),_.h("design:type",Object)],wW.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],wW.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wW.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.SC,value:3}),_.h("design:type",Number)],wW.prototype,"itemsPerRow",void 0);
_.r([_.Jc({is:"ytd-link-card-renderer",disableElementRegistration:!0})],wW);
_.B(wW,"ytd-link-card-renderer",function(){if(O39!==void 0)return O39;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return O39=G},{mode:1});var etK;var FS=function(){return _.J.apply(this,arguments)||this};
_.u(FS,_.J);_.P=FS.prototype;_.P.configureRendererStamper=function(){return{"data.menu":ch,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onRendererTap=function(G){if(!this.ytdDismissibleItemBehavior.isDismissed){var c,I=(c=this.data)==null?void 0:c.navigationEndpoint;I&&!_.Gf(_.CE(G),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(I)?_.Gf(_.CE(G),this.hostElement,["A"])||_.Xl(this.hostElement,"yt-navigate",{endpoint:I}):this.ytComponentBehavior.resolveCommand(I,{}))}};
_.P.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.P.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
_.P.isNavigationCommand=function(G){return G?_.D(G,_.qD)||_.D(G,_.fR)||_.D(G,_.ID)?!0:!1:!1};
FS.prototype.onRendererTap=FS.prototype.onRendererTap;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],FS.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],FS.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],FS.prototype,"data",void 0);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],FS.prototype,"onRendererTap",null);_.r([_.Jc({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],FS);
_.B(FS,"ytd-lumiere-promo-item-image-renderer",function(){if(etK!==void 0)return etK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return etK=G},{mode:1});var No0;var no=function(){return _.J.apply(this,arguments)||this};
_.u(no,_.J);no.prototype.computeLandscapeThumbnail=function(){var G;return((G=this.data)==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],no.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],no.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],no.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.SC}),_.h("design:type",Number)],no.prototype,"itemsPerRow",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.h("design:type",Boolean)],no.prototype,"landscapeThumbnail",void 0);_.r([_.Jc({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],no);
_.B(no,"ytd-lumiere-shelf-details-renderer",function(){if(No0!==void 0)return No0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return No0=G},{mode:_.Qc("kevlar_poly_si_batch_j076")?1:2});var lQT;var v2=function(){return _.J.apply(this,arguments)||this};
_.u(v2,_.J);v2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],v2.prototype,"data",void 0);_.r([_.Jc({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],v2);
_.B(v2,"ytd-primetime-promo-details-renderer",function(){if(lQT!==void 0)return lQT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return lQT=G},{mode:1});var qLK;var DK=function(){return _.J.apply(this,arguments)||this};
_.u(DK,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],DK.prototype,"data",void 0);_.r([_.Jc({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],DK);
_.B(DK,"ytd-panel-show-style-metadata-renderer",function(){if(qLK!==void 0)return qLK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return qLK=G},{mode:1});var wg9;var oc=function(){return _.J.apply(this,arguments)||this};
_.u(oc,_.J);_.P=oc.prototype;_.P.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.P.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.P.computeThumbnail=function(G){if(G)return G.smallFormFactorBackgroundThumbnail||G.largeFormFactorBackgroundThumbnail};
_.P.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.P.isNavigationCommand=function(G){return G?_.D(G,_.qD)||_.D(G,_.fR)||_.D(G,_.ID)?!0:!1:!1};
_.P.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
oc.prototype.onPanelTap=oc.prototype.onPanelTap;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],oc.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],oc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oc.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],oc.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0,value:_.v("web_modern_buttons")}),_.h("design:type",Boolean)],oc.prototype,"modernButtons",void 0);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oc.prototype,"onPanelTap",null);_.r([_.Jc({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],oc);
_.B(oc,"ytd-primetime-promo-panel-renderer",function(){if(wg9!==void 0)return wg9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return wg9=G},{mode:1});_.R1(_.W(function(G){G=_.YW(G,{data:{},useFullWidth:!1});var c=G.data,I=G.useFullWidth;G={};return _.e("teaser-card-view-model",{class:_.O3("ytTeaserCardViewModelHost",(G.ytTeaserCardViewModelUseFullWidth=function(){return I()},G))},_.e(_.l,{cond:function(){return c().onTap},
then:function(R){return _.e(_.Er,{className:"ytTeaserCardViewModelLink",command:R},_.e("div",{class:"ytTeaserCardViewModelImageContainer"},_.e(_.l,{cond:function(){return c().image},
then:function(Z){return _.e(_.yc,{data:Z,className:"ytTeaserCardViewModelImage",alt:""})}})),_.e("p",{class:"ytTeaserCardViewModelCaption"},function(){return c().caption}))}}))},"$c"),"teaser-card-view-model",{props:{data:_.bl,
useFullWidth:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=function(){var R;return _.dP((R=c())==null?void 0:R.iconThemedImage)};
return _.e("yt-edu-card-view-model",null,_.e(_.Hh,{contentId:function(){return c().nudgeId}},function(){return _.e("div",{class:_.O3("ytEduCardViewModelHost",function(){return c().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.e("div",{class:"ytEduCardViewModelTopCornerButton"},_.e(_.sN,{data:function(){return c().dismissButton}},{buttonViewModel:_.BR})),_.e("div",{class:"ytEduCardViewModelContentWrapper"},_.e("div",{class:"ytEduCardViewModelHeaderImage"},_.e(_.l,
{cond:I,
then:function(R){return _.e(_.yc,{data:R,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.e("div",{class:"ytEduCardViewModelTextContainer"},_.e("div",{class:"ytEduCardViewModelTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e("div",{class:"ytEduCardViewModelSubtitle"},_.e(_.ul,{text:function(){return c().subtitle}}))),_.e("div",{class:"ytEduCardViewModelContent"},_.e(_.sN,{data:function(){return c().form}},{nudgeFormViewModel:yPB}))),_.e("div",{class:_.O3("ytEduCardViewModelButtonWrapper",
function(){return c().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.e(_.sN,{data:function(){return c().primaryButton}},{buttonViewModel:function(R){return _.e("div",{class:"ytEduCardViewModelPrimaryButton"},_.e(_.BR,{data:R.data}))}}),_.e(_.sN,{data:function(){return c().secondaryButton}},{buttonViewModel:function(R){return _.e("div",{class:"ytEduCardViewModelSecondaryButton"},_.e(_.BR,{data:R.data}))}})))}))},"ad"),"yt-edu-card-view-model",{props:{data:_.bl}});var Fn0=new _.De("RICH_GRID_VIDEO_RENDERER_TOKEN");_.R1(_.W(function(G){var c=G.data;var I=G.showYtInteractionInContent;var R=function(){return!!c().selectableFeedback};
G=_.Q(_.ks(!1,void 0,"qxtgaf"));var Z=G.next().value,K=G.next().value;_.tI(function(){var F=_.D(c().primaryButton,_.kh);(F==null?0:F.isToggled)&&K(F.isToggled)});
G=_.Nx(function(F){if(!R())return!1;if(Z()){var n;var U=(n=c().selectableFeedback)==null?void 0:n.onDeselect}else{var k;U=(k=c().selectableFeedback)==null?void 0:k.onSelect}U&&_.r0(U,{form:{element:F.target}});K(!Z());if(F=_.D(c().primaryButton,_.kh))F.isToggled=Z();return!1});
var m=function(){if(!R()){var F,n=(F=c().loggingDirectives)==null?void 0:F.trackingParams;n&&_.yI(_.wH().resolve(_.PQ),n)}},a=_.hx0(),O=function(){var F;
return R()?(F=c().selectableFeedback)==null?void 0:F.a11yLabel:void 0},N=function(){return R()?{toggled:Z()}:{}},q=_.wH().resolve(_.qR(Fn0)),w={};
return _.e("yt-feedback-item-renderer",{class:_.O3("ytFeedbackItemRendererHost",(w.ytFeedbackItemRendererSelectableFeedback=R,w)),"on:click":G,"on:keydown":a,title:O,"aria-label":O,"aria-pressed":function(){return R()?Z():void 0},
tabindex:function(){return R()?0:void 0},
role:function(){return R()?"button":void 0}},_.e("div",{class:"ytFeedbackItemRendererContentContainer"},_.e(_.sN,{data:function(){return c().content}},{videoRenderer:function(F){return _.e(q,{data:F.data,
showYtInteraction:I})},
lockupViewModel:function(F){return _.e(_.Yy,{data:F.data,containerType:2})}})),_.e("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.e(_.sN,{data:function(){return c().primaryButton}},{toggleButtonViewModel:function(F){return _.e(_.m8,{data:F.data,
buttonShapeOverrides:N,disableExplicitClickLogging:!0,onToggle:m})}})))},"bd"),"yt-feedback-item-renderer",{props:{data:_.bl,
showYtInteractionInContent:_.bl}});var Uv=function(){var G=_.J.apply(this,arguments)||this;G.isShortsGrid=!1;G.isCompactGrid=!1;G.isShortsPanelGrid=!1;G.renderedFromRichGrid=!1;G.isInFirstColumn=!1;G.noGutterMargins=!1;G.noBottomMargin=!1;G.halfBottomMargin=!1;G.isInlineGroupItem=!1;G.insetMetadata=!1;G.noBottomMarginInAds=!0;G.force16By9ThumbnailAspectRatio=!1;G.useCompactList=!1;G.containerType=2;G.thumbnailTargetWidth=9999;G.isResponsiveGrid=!1;G.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};G.hoverListener=
G.hover.bind(G);G.leaveListener=G.leave.bind(G);G.highlighted=!1;G.JSC$16472_unsubscribeFromInlinePreviewIsActive=function(){};
return G};
_.u(Uv,_.J);_.P=Uv.prototype;_.P.computeContainerType=function(){return this.useCompactList?3:2};
_.P.itemWidthChanged=function(){var G;this.thumbnailTargetWidth=(G=this.itemWidth)!=null?G:9999};
_.P.updateIsInFirstColumn=function(){var G;this.isInFirstColumn=((G=this.data)==null?void 0:G.colIndex)===0};
_.P.observerContainerType=function(){if(this.lockup){var G=this.lockup;G.containerType=this.containerType;G.sizing=this.sizing;G.typographyBump=this.typographyBump;G.itemWidth=this.itemWidth}this.richGridMedia&&_.v("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.v("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.P.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.P.leave=function(G){G=G.relatedTarget;var c=document.querySelector("ytd-video-preview");G&&c&&_.m9(c).contains(G)||this.removeAndCleanupHighlight()};
_.P.hover=function(){var G;!this.highlighted&&(G=this.data)!=null&&G.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(G=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:G,boxShadow:"0 0 0 10px "+G})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.P.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.P.registerHoverHighlightListeners=function(){var G=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16472_unsubscribeFromInlinePreviewIsActive=_.RM(_.y4(),_.fs0,function(c){G.highlighted&&!c&&G.removeAndCleanupHighlight()})};
_.P.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16472_unsubscribeFromInlinePreviewIsActive()};
_.P.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.P.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.P.getBackgroundColor=function(){var G,c,I=(G=this.data)==null?void 0:(c=G.onFocusEffect)==null?void 0:c.onFocusColor;if(I){if(document.documentElement.hasAttribute("dark")&&(I==null?0:I.darkTheme))return VJ(I==null?void 0:I.darkTheme);if(I==null?0:I.lightTheme)return VJ(I==null?void 0:I.lightTheme)}};
_.P.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var G=_.k0(),c,I,R;G&&((c=this.data)==null?0:c.trackingParams)&&((I=this.data)==null?void 0:I.colIndex)!=null&&((R=this.data)==null?void 0:R.rowIndex)!=null&&_.tH(G,_.kC(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.P.isSlimMediaRenderer=function(G){return!!_.D(G==null?void 0:G.content,_.ts9)||!!_.D(G==null?void 0:G.content,x4B)||!!_.D(G==null?void 0:G.content,_.FF)||!!_.D(G==null?void 0:G.content,ldV)};
_.P.isPostRenderer=function(){var G,c;return!!_.D((G=this.data)==null?void 0:G.content,QkV)||!!_.D((c=this.data)==null?void 0:c.content,m70)};
_.P.computeIsGameCardShelf=function(){var G;return!!_.D((G=this.data)==null?void 0:G.content,UeB)};
_.P.computeIsMiniGameCardShelf=function(){var G,c;return!!_.D((G=this.data)==null?void 0:G.content,JjK)||!!_.D((c=this.data)==null?void 0:c.content,W4i)};
_.P.computeIsTeaserCard=function(){var G;return!!_.D((G=this.data)==null?void 0:G.content,W4i)};
_.P.computeIsSelectableFeedbackItem=function(){var G,c;return!((c=_.D((G=this.data)==null?void 0:G.content,fuK))==null||!c.selectableFeedback)};
_.P.computeContainsLumierePosters=function(){var G,c;return((c=_.D((G=this.data)==null?void 0:G.content,FBi))==null?void 0:c.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.computeIsExpandOnHoverCardShelf=function(){var G;return!!_.D((G=this.data)==null?void 0:G.content,wwA)};
_.P.computeIsLinkCardShelf=function(){var G;return!!_.D((G=this.data)==null?void 0:G.content,L29)};
_.P.computeIsReelItemStyleAvatarCircle=function(G){var c;return((c=_.D(G==null?void 0:G.content,_.FF))==null?void 0:c.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.P.computeIsLinkCardFullWidth=function(G,c){var I;return((I=_.D(G==null?void 0:G.content,L29))==null?void 0:I.useFullWidth)||c<=2};
_.Nh.Object.defineProperties(Uv.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var G;return _.v("web_hover_effect_refactor")&&_.D((G=this.data)==null?void 0:G.content,_.LOi)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.v("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var G;if(_.v("web_hover_effect_refactor")&&_.D((G=this.data)==null?void 0:G.content,_.LOi))return!1;var c;return!((c=this.data)==null||!c.onFocusEffect)||_.v("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var G;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.v("web_hover_effect_refactor")?(G=this.data)==null?void 0:G.onFocusEffect:void 0}}}});
Uv.prototype.richGridHoverHighlightChanged=Uv.prototype.richGridHoverHighlightChanged;Uv.prototype.observerContainerType=Uv.prototype.observerContainerType;Uv.prototype.updateIsInFirstColumn=Uv.prototype.updateIsInFirstColumn;Uv.prototype.itemWidthChanged=Uv.prototype.itemWidthChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],Uv.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Uv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],Uv.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Uv.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isPost",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.h("design:type",Boolean)],Uv.prototype,"containsLumierePosters",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isSlimMedia",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isGameCardShelf",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isMiniGameCardShelf",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isTeaserCard",void 0);_.r([_.E({computed:"computeIsSelectableFeedbackItem(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isSelectableFeedbackItem",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"isShortsGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Uv.prototype,"isSlimGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"isCompactGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"isShortsPanelGrid",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isExpandOnHoverCardShelf",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isLinkCardShelf",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.SC,value:3}),_.h("design:type",Number)],Uv.prototype,"itemsPerRow",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"renderedFromRichGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"isInFirstColumn",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"noGutterMargins",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"noBottomMargin",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"halfBottomMargin",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"isInlineGroupItem",void 0);_.r([_.E(),_.h("design:type",Object)],Uv.prototype,"insetMetadata",void 0);_.r([_.E(),_.h("design:type",Object)],Uv.prototype,"noBottomMarginInAds",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Uv.prototype,"isShelfItem",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.h("design:type",Boolean)],Uv.prototype,"isReelItemStyleAvatarCircle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.h("design:type",Boolean)],Uv.prototype,"isLinkCardFullWidth",void 0);_.r([_.E(),_.h("design:type",Object)],Uv.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"useCompactList",void 0);_.r([_.E(),_.h("design:type",String)],Uv.prototype,"sizing",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Uv.prototype,"typographyBump",void 0);_.r([_.E(),_.h("design:type",Number)],Uv.prototype,"itemWidth",void 0);_.r([_.E(),_.h("design:type",Boolean)],Uv.prototype,"isHomeShelf",void 0);_.r([_.E(),_.h("design:type",Boolean)],Uv.prototype,"isHomeGrid",void 0);
_.r([_.nH("yt-lockup-view-model"),_.h("design:type",HTMLElement)],Uv.prototype,"lockup",void 0);_.r([_.nH("ytd-rich-grid-media"),_.h("design:type",HTMLElement)],Uv.prototype,"richGridMedia",void 0);_.r([_.nH("ytd-ad-slot-renderer"),_.h("design:type",HTMLElement)],Uv.prototype,"adSlotRenderer",void 0);_.r([_.E({computed:"computeContainerType(useCompactList)"}),_.h("design:type",Object)],Uv.prototype,"containerType",void 0);_.r([_.E(),_.h("design:type",Object)],Uv.prototype,"thumbnailTargetWidth",void 0);
_.r([_.A("showYtInteractionOnRichItem"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Uv.prototype,"showYtInteractionOnRichGridMedia",null);_.r([_.A("isSelectableFeedbackItem","richGridHoverHighlight"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Uv.prototype,"showYtInteractionOnRichItem",null);_.r([_.A("typographyBump","isHomeGrid"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Uv.prototype,"richTypographyBump",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data","isShortsGrid","isCompactGrid"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Uv.prototype,"richGridHoverHighlight",null);_.r([_.A("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.h("design:type",Number),_.h("design:paramtypes",[])],Uv.prototype,"shortsLockupViewModelAspectRatio",null);_.r([_.A("isInlineGroupItem"),_.h("design:type",Number),_.h("design:paramtypes",[])],Uv.prototype,"shortsLockupViewModelScrimStyle",null);
_.r([_.wD("itemWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Uv.prototype,"itemWidthChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Uv.prototype,"updateIsInFirstColumn",null);_.r([_.wD("containerType","sizing","typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Uv.prototype,"observerContainerType",null);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Uv.prototype,"isResponsiveGrid",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uv.prototype,"lockupExperiments",null);_.r([_.wD("richGridHoverHighlight"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Uv.prototype,"richGridHoverHighlightChanged",null);_.r([_.Jc({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Uv);
_.nH2=_.PI()(Uv,"ytd-rich-item-renderer",function(){if(Z3e===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);Z3e=G}G=Z3e;return G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var ZKr={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var FNT=_.Cp(_.mJ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var PMO={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},mmr={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},aVC={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var vHV;var uS=function(){var G=_.J.apply(this,arguments)||this;G.useResponsiveGrid=!1;G.hidden=!1;G.isShowMoreHidden=!1;G.isShowLessHidden=!0;G.hasExpansionButton=!1;G.isInnerShelf=!1;G.allVideosCount=0;G.allPlaylistCount=0;G.haveSmartDownloadsCompleted=!1;G.restrictContentsOverflow=!1;G.firstShownIndex=0;G.horizontalOffset=0;G.atEnd=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
G.nextClick=function(){var c;(c=G.data)!=null&&c.contents&&(G.firstShownIndex+=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
G.previousClick=function(){var c;(c=G.data)!=null&&c.contents&&(G.firstShownIndex-=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
return G};
_.u(uS,_.J);_.P=uS.prototype;
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.H1("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.P.attached=function(){this.requestElementsPerRow()};
_.P.refreshGridLayoutNew=function(){var G;if((G=this.data)!=null&&G.contents&&this.containerWidth){var c;((c=this.data.responsiveContainerConfiguration)==null?0:c.responsiveSize)?(G=_.Dmq(this.data.responsiveContainerConfiguration,this.containerWidth,2),G=_.tY(Object.assign({},G,{standardUnitMinWidth:this.standardUnitMinWidth}))):G=_.tY({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=G.typographyBump;if(this.elementsPerRow!==
G.numItems||this.gutter!==G.gutter)this.elementsPerRow=G.numItems,this.gutter=G.gutter,this.itemWidth=G.itemWidth,_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":G.gutter+"px"})}};
_.P.computeSizing=function(){if(!this.isLumiere){var G=_.f7T(this.data);return G?G:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.P.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.P.computeButton=function(G){var c=_.D(G,_.vE);G=Object.assign({},_.D(G,_.vE));return c?(G.text||(G.text={simpleText:G.tooltip}),G.style="STYLE_MONO_OUTLINE",G.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",G):c};
_.P.onRowIndexChange=function(){var G=_.k0(),c,I;((c=this.data)==null?0:c.trackingParams)&&((I=this.data)==null?void 0:I.rowIndex)!=null&&G&&_.tH(G,_.kC(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.P.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var G,c=((G=this.getRichItemRenderers()[0])==null?void 0:G.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*c;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.P.requestElementsPerRow=function(){_.Xl(this.hostElement,"yt-request-elements-per-row")};
_.P.onUpdateElementsPerRowAction=function(G,c,I,R,Z,K){if(this.containerWidth!==K&&(this.containerWidth=K,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&G&&c&&I&&R&&Z&&(this.elementsPerRow!==G||this.postsPerRow!==c||this.slimItemsPerRow!==I||this.gameCardsPerRow!==R||this.miniGameCardsPerRow!==Z)&&(this.elementsPerRow=G,this.postsPerRow=c,this.slimItemsPerRow=I,this.gameCardsPerRow=R,this.miniGameCardsPerRow=Z,this.updateItemVisibility())};
_.P.isExpandedChanged=function(){var G=this.getRichItemRenderers(),c=this.isExpanded;G.forEach(function(I){I.halfBottomMargin=c})};
_.P.isCollapsedChanged=function(){var G=this.getRichItemRenderers(),c=this.isCollapsed;G.forEach(function(I){I.noBottomMargin=c})};
_.P.getRichItemRenderers=function(){return _.Q1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.P.updateItemVisibility=function(){var G=this;if(this.data&&this.data.contents){var c=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(R,Z){var K;((K=G.data)==null?0:K.isExpanded)?(R.hidden=Z>c-1,R.ytRendererBehavior.markDirty()):R.hidden=Z>G.currentElementsPerRow-1||Z>c-1});
var I=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||I||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||I||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.P.setHeightToSingleRow=function(){var G=this.getRichItemRenderers(),c=Number.parseInt(getComputedStyle(G[0]).marginBottom,10)||0;G=G.slice(0,this.currentElementsPerRow).reduce(function(I,R){return Math.max(I,R.getBoundingClientRect().height+c)},0);
this.contents.style.height=G+"px"};
_.P.focusNextExpandedItem=function(){var G;((G=this.data)==null?0:G.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.P.focusItem=function(G,c){var I=this.getRichItemRenderers();if(I[G]&&(G=I[G].querySelector(".focus-on-expand"))){if(c){var R;(R=I[this.currentElementsPerRow])==null||R.scrollIntoView({behavior:"smooth",block:"center"})}G.focus({preventScroll:!0})}};
_.P.onDataChange=function(){var G=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var c;if((c=this.data)==null?0:c.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.O$(this,function(){G.updateItemVisibility()});
var I;if((I=this.data)==null?0:I.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.eD(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),c=0;c<this.data.contents.length;c++)I=_.D(this.data.contents[c],_.ZI)||{},I.colIndex=c,I.rowIndex=this.data.rowIndex};
_.P.handleRerenderDownloadsData=function(){_.v("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.P.blockInlinePreview=function(G){var c=this,I;return _.T(function(R){(I=c.inlinePreviewIsEnabled)&&c.ytdReduxBehavior.dispatch(_.w2K(!1));return R.return(new Promise(function(Z){G(function(){I&&c.ytdReduxBehavior.dispatch(_.w2K(!0));Z()})}))})};
_.P.expandShelf=function(){var G=this;if(this.data){var c,I=(c=_.D(this.data.showMoreButton,_.vE))==null?void 0:c.trackingParams;I&&_.yI(_.DP(),I);this.set("data.isExpanded",!0);this.blockInlinePreview(function(R){G.setHeightToSingleRow();G.updateItemVisibility();G.contents.style.height=G.contents.scrollHeight+"px";_.dJ.addJob(function(){G.contents.style.height="auto";G.focusNextExpandedItem();R()},2,200)})}};
_.P.collapseShelf=function(){var G=this;return _.T(function(c){if(c.nextAddress==1){if(!G.data)return c.return();G.set("data.isExpanded",!1);return c.yield(G.blockInlinePreview(function(I){G.contents.style.height=G.contents.scrollHeight+"px";G.setHeightToSingleRow();_.dJ.addJob(function(){G.updateItemVisibility();G.contents.style.height="auto";I()},2,200)}),2)}_.Xl(G.hostElement,"yt-rich-shelf-renderer-collapse",G.data.trackingParams);
G.focusItem(0,!1);_.Vp(c)})};
_.P.updateArrowButtonStatus=function(){this.getRichItemRenderers();var G,c;var I=((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=I};
_.P.onChildElementFocus=function(G){this.hasChevronButtons&&(G=G.target.closest("#contents > *"),this.contents.contains(G)&&(G.offsetLeft<this.horizontalOffset?this.previousClick():G.offsetLeft+G.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.P.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.H1("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.P.updateHorizontalOffset=function(){var G=this.getRichItemRenderers(),c,I;var R=((c=this.data)==null?void 0:(I=c.contents)==null?void 0:I.length)||0;var Z;G=((Z=G[0])==null?void 0:Z.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>R?this.firstShownIndex=R-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*G};
_.P.isSlimMediaShelfRenderer=function(){var G,c,I,R=(I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[0],_.ZI))==null?void 0:I.content;return!!(_.D(R,_.ts9)||_.D(R,x4B)||_.D(R,_.FF)||_.D(R,ldV))};
_.P.isGameCardShelf=function(){var G,c,I,R=(I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[0],_.ZI))==null?void 0:I.content;return!!_.D(R,UeB)};
_.P.isMiniGameCardShelf=function(){var G,c,I,R=(I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[0],_.ZI))==null?void 0:I.content;return!!_.D(R,JjK)||!!_.D(R,W4i)};
_.P.hasGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.P.hasRoundedGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.P.isShortsShelf=function(){var G,c,I,R=(I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[0],_.ZI))==null?void 0:I.content;return!!_.D(R,_.FF)||!!_.D(R,ldV)};
_.P.isPostShelfRenderer=function(){var G,c,I,R=(I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[0],_.ZI))==null?void 0:I.content;return!(!_.D(R,QkV)&&!_.D(R,m70))};
_.P.isLumiereShelf=function(){var G,c,I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[0],_.ZI);return!!_.D(I==null?void 0:I.content,FBi)};
_.P.isLumiereShelfWithPosters=function(){var G,c,I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[0],_.ZI),R;return((R=_.D(I==null?void 0:I.content,FBi))==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.isExpandOnHoverCardShelf=function(){var G,c,I,R=(I=_.D((G=this.data)==null?void 0:(c=G.contents)==null?void 0:c[0],_.ZI))==null?void 0:I.content;return!!_.D(R,wwA)};
_.P.computeHasFeaturedBadge=function(){var G,c,I=_.D((G=this.data)==null?void 0:(c=G.badges)==null?void 0:c[0],_.JMK);return I?I.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHasPaygatedFeaturedBadge=function(){var G,c,I=_.D((G=this.data)==null?void 0:(c=G.badges)==null?void 0:c[0],_.JMK);return I?(I==null?void 0:I.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHeaderHidden=function(){var G,c,I,R,Z,K;return!((G=this.data)==null?0:G.icon)&&!((c=this.data)==null?0:c.title)&&!((I=this.data)==null?0:I.subtitle)&&!((R=this.data)==null?0:R.thumbnail)&&!((Z=this.data)==null?0:Z.badges)&&!((K=this.data)==null?0:K.menu)};
_.P.showCtaButton=function(){var G;return!((G=this.data)==null||!G.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.P.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.P.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.P.computeForce16By9ThumbnailAspectRatio=function(){var G,c;return((G=this.data)==null?void 0:(c=G.responsiveContainerConfiguration)==null?void 0:c.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.P.onSectionReactiveDismissal=function(G,c,I){var R,Z;var K=(R=this.data)==null?void 0:(Z=R.targetingContext)==null?void 0:Z.targetGroupId;this&&K&&c.targetGroupId&&K.includes(c.targetGroupId)?(R=this.rowIndex,G=R===void 0?!1:!(c.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&R<=G)):G=!1;G&&(this.hidden=I)};
_.Nh.Object.defineProperties(uS.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var G=this.elementsPerRow;this.isPostShelfRenderer()?G=this.postsPerRow:this.isSlimMediaShelfRenderer()?G=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?G=this.slimItemsPerRow-1:this.isGameCardShelf()?G=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(G=this.miniGameCardsPerRow);return G}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.previousButton)&&!((c=this.data)==null||!c.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.wH().resolve(_.I9).getCurrentPage())==null?void 0:G.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R;return!((G=this.data)==null?0:(c=G.thumbnail)==null?0:(I=c.accessibility)==null?0:(R=I.accessibilityData)==null?0:R.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
uS.prototype.onChildElementFocus=uS.prototype.onChildElementFocus;uS.prototype.handleRerenderDownloadsData=uS.prototype.handleRerenderDownloadsData;uS.prototype.onDataChange=uS.prototype.onDataChange;uS.prototype.isCollapsedChanged=uS.prototype.isCollapsedChanged;uS.prototype.isExpandedChanged=uS.prototype.isExpandedChanged;uS.prototype.onRowIndexChange=uS.prototype.onRowIndexChange;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],uS.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],uS.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],uS.prototype,"ytdReduxBehavior",void 0);
_.r([_.E({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.h("design:type",Object)],uS.prototype,"useResponsiveGrid",void 0);_.r([_.E(),_.h("design:type",Object)],uS.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],uS.prototype,"standardUnitMinWidth",void 0);_.r([_.E({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],uS.prototype,"elementsPerRow",void 0);_.r([_.E({value:3}),_.h("design:type",Number)],uS.prototype,"postsPerRow",void 0);
_.r([_.E({value:6}),_.h("design:type",Number)],uS.prototype,"slimItemsPerRow",void 0);_.r([_.E({value:6}),_.h("design:type",Number)],uS.prototype,"gameCardsPerRow",void 0);_.r([_.E({value:6}),_.h("design:type",Number)],uS.prototype,"miniGameCardsPerRow",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uS.prototype,"hidden",void 0);_.r([_.E(),_.h("design:type",Object)],uS.prototype,"isShowMoreHidden",void 0);
_.r([_.E(),_.h("design:type",Object)],uS.prototype,"isShowLessHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uS.prototype,"hasExpansionButton",void 0);_.r([_.A("data.isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uS.prototype,"isExpanded",null);_.r([_.A("data.isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uS.prototype,"isCollapsed",null);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uS.prototype,"isInnerShelf",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.h("design:type",Boolean)],uS.prototype,"isShorts",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.h("design:type",Boolean)],uS.prototype,"isLumiere",void 0);_.r([_.E({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.h("design:type",Boolean)],uS.prototype,"hasBoxArtThumbnailStyle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.h("design:type",Boolean)],uS.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.h("design:type",Boolean)],uS.prototype,"hasFeaturedBadge",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.h("design:type",Boolean)],uS.prototype,"hasPaygatedFeaturedBadge",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.h("design:type",Boolean)],uS.prototype,"isHeaderHidden",void 0);_.r([_.E({selector:_.h$g}),_.h("design:type",Object)],uS.prototype,"allVideosCount",void 0);_.r([_.E({selector:vJq}),_.h("design:type",Object)],uS.prototype,"allPlaylistCount",void 0);_.r([_.E({selector:Idp}),_.h("design:type",Object)],uS.prototype,"haveSmartDownloadsCompleted",void 0);
_.r([_.E({selectorArgs:["entitySelectorType"],selector:function(G,c){if(_.v("kevlar_modern_downloads_page")&&c&&c!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var I=G.entities;switch(c){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":c=_.s4(I);G=Ug(c);var R=_.DY(c);I=_.AX(I);I=_.Gv(OKA(R,I,c.length));return{contents:G,subtitle:I};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return I=_.s4(I),{contents:Ug(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return I=
_.Lp(I),{contents:Ug(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return I=_.Ui0(I),{contents:Ug(I)};default:_.Ck(new _.iW("Error: entitySelectorType defined but not matched in selector.",G,c))}}}}),
_.h("design:type",Object)],uS.prototype,"entityDrivenRichShelfData",void 0);_.r([_.E({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.h("design:type",Boolean)],uS.prototype,"hasTopCtaButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.h("design:type",Boolean)],uS.prototype,"hasBottomCtaButton",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.h("design:type",Boolean)],uS.prototype,"force16By9ThumbnailAspectRatio",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uS.prototype,"restrictContentsOverflow",void 0);_.r([_.E({selector:_.BmO}),_.h("design:type",Boolean)],uS.prototype,"inlinePreviewIsEnabled",void 0);_.r([_.E({computed:"computeSizing(data)"}),_.h("design:type",String)],uS.prototype,"sizing",void 0);
_.r([_.E(),_.h("design:type",Boolean)],uS.prototype,"typographyBump",void 0);_.r([_.E(),_.h("design:type",Number)],uS.prototype,"itemWidth",void 0);_.r([_.E(),_.h("design:type",Object)],uS.prototype,"firstShownIndex",void 0);_.r([_.E(),_.h("design:type",Object)],uS.prototype,"horizontalOffset",void 0);_.r([_.E(),_.h("design:type",Object)],uS.prototype,"atEnd",void 0);_.r([_.nH("#contents"),_.h("design:type",HTMLElement)],uS.prototype,"contents",void 0);
_.r([_.wD("data.rowIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uS.prototype,"onRowIndexChange",null);_.r([_.wD("isExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uS.prototype,"isExpandedChanged",null);_.r([_.wD("isCollapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uS.prototype,"isCollapsedChanged",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uS.prototype,"onDataChange",null);_.r([_.wD("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uS.prototype,"handleRerenderDownloadsData",null);_.r([_.qY("focusin"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],uS.prototype,"onChildElementFocus",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data","isHomePage"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uS.prototype,"isTruncated",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uS.prototype,"showBottomDivider",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],uS.prototype,"hasChevronButtons",null);
_.r([_.A("firstShownIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],uS.prototype,"previousButtonOverride",null);_.r([_.A("atEnd"),_.h("design:type",Object),_.h("design:paramtypes",[])],uS.prototype,"nextButtonOverride",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uS.prototype,"isHomePage",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uS.prototype,"thumbnailAriaHidden",null);
_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],uS.prototype,"entitySelectorType",null);_.r([_.Jc({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],uS);
_.DdA=_.PI()(uS,"ytd-rich-shelf-renderer",function(){if(vHV===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);vHV=G}G=vHV;return G},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var oH0;_.R1(_.Jp,"yt-badge-view-model",{props:{data:_.bl,class:_.bl,workaroundShortsIsThumbnailBadge:_.bl,modern:_.bl,numBadgesInRow:_.bl,clipTextOverflow:_.bl}});_.R1(x$0,"yt-slimline-survey-view-model",{props:{data:_.bl}});var bS=function(){var G=_.J.apply(this,arguments)||this;G.tileLottieAnimationRef={};G.backgroundLottieAnimationRef={};G.isOnHoverBehaviorForLottieEnabled=!0;G.useBiggerShowcaseImage=_.v("enable_desktop_search_bigger_thumbs");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return G};
_.u(bS,_.J);_.P=bS.prototype;_.P.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.P.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.P.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var G=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);G!==this.hasTile&&this.set("hasTile",G);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.P.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.P.currentColorChanged=function(){this.updateButtonPalette()};
_.P.computeBackgroundStyle=function(G){if(G&&this.data){var c=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.KQ((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&c.push('background-image: url("'+I+'");')}var R;((R=G.basicColorData)==null?void 0:R.backgroundColor)!==void 0&&c.push("background-color: "+_.pE(G.basicColorData.backgroundColor)+";");return c.join("")}};
_.P.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
_.P.getCurrentLogo=function(G,c){if(G)return c?G.darkLogoImage:G.lightLogoImage};
_.P.getCurrentStaticTileImage=function(G,c){if(this.hasStaticTile(G))return G.darkTileImage?c?G.darkTileImage:G.tileImage:G.tileImage};
_.P.computeTitleStyle=function(G){if(this.data&&this.data.title&&G&&G.basicColorData&&G.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Sx(G.basicColorData.foregroundTitleColor)+";"};
_.P.computeSubtitleStyle=function(G){if(this.data&&this.data.subtitle&&G&&G.basicColorData&&G.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Sx(G.basicColorData.foregroundBodyColor)+";"};
_.P.computeSupplementalStyle=function(G){if(this.data&&this.data.supplementalText&&G&&G.supplementalTextColor!==void 0)return G=_.Sx(G.supplementalTextColor),"color:"+G+";--yt-endpoint-color:"+G+";--yt-endpoint-hover-color:"+G+";--yt-endpoint-visited-color:"+G+";--yt-formatted-string-bold-font-weight:700;"};
_.P.computeDismissIconStyle=function(G){var c,I;if((G==null?0:(c=G.dismissButtonColorData)==null?0:c.foregroundTitleColor)&&(G==null?0:(I=G.dismissButtonColorData)==null?0:I.backgroundColor))return"--yt-button-color:"+_.pE(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.pE(G.dismissButtonColorData.backgroundColor)+";"};
_.P.computeOverflowIconStyle=function(G){var c,I;if((G==null?0:(c=G.dismissButtonColorData)==null?0:c.foregroundTitleColor)&&(G==null?0:(I=G.dismissButtonColorData)==null?0:I.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.pE(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.pE(G.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.pE(G.dismissButtonColorData.foregroundTitleColor)+";"};
_.P.computeBannerStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.P.computeLocation=function(G){switch(G==null?void 0:G.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.P.shouldShowTileSection=function(G,c,I){return!this.shouldExpandLogo(G,c,I)&&c};
_.P.shouldShowExpandedLogoSection=function(G,c,I){return this.shouldExpandLogo(G,c,I)&&G!==void 0&&this.hasLogo(G)};
_.P.shouldExpandLogo=function(G,c,I){return G&&c?!1:I>=2};
_.P.hasStaticTile=function(G){return!(G==null||!G.tileImage)};
_.P.hasTileLottie=function(G){var c;return!!(G==null?0:(c=G.tileLottie)==null?0:c.url)};
_.P.hasLogo=function(G){return this.getCurrentLogo(G,this.isDarkTheme)!==void 0};
_.P.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.P.getExpandedLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.P.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.P.getMaxTitleFontSize=function(G){return G.overrideTitleMaxFontSize?String(G.overrideTitleMaxFontSize):"36"};
_.P.hasBackgroundLottie=function(G){var c;return!!(G==null?0:(c=G.backgroundLottie)==null?0:c.url)};
_.P.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,c;(G=this.tileLottieAnimationRef)==null||(c=G.lottieEl)==null||c.play();var I,R;(I=this.backgroundLottieAnimationRef)==null||(R=I.lottieEl)==null||R.play()}};
_.P.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,c;(G=this.tileLottieAnimationRef)==null||(c=G.lottieEl)==null||c.pause();var I,R;(I=this.backgroundLottieAnimationRef)==null||(R=I.lottieEl)==null||R.pause()}};
_.P.pauseLottie=function(){var G,c;(G=this.tileLottieAnimationRef)==null||(c=G.lottieEl)==null||c.pause();var I,R;(I=this.backgroundLottieAnimationRef)==null||(R=I.lottieEl)==null||R.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.P.performPrimaryButtonAction=function(){var G,c,I;((G=this.data)==null?0:(c=G.primaryButton)==null?0:(I=c.buttonRenderer)==null?0:I.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.P.requestElementsPerRow=function(){_.Xl(this.hostElement,"yt-request-elements-per-row")};
_.P.updateButtonPalette=function(){if(this.data&&this.currentColorData){var G;((G=this.data.dismissButton)==null?0:G.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var c;if((c=this.data.primaryButton)==null?0:c.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 I;if((I=this.data.secondaryButton)==
null?0:I.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 R;((R=this.data.primaryButton)==null?0:R.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Z;((Z=this.data.primaryButton)==null?0:Z.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var K;((K=this.data.secondaryButton)==null?0:K.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var m;((m=this.data.primaryButton)==null?0:m.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.P.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var G=this.getTileLottieDataBasedOnTheme(),c,I;if(G.url!==((c=this.tileLottiePlayerProps)==null?void 0:(I=c.animationConfig)==null?void 0:I.path)){var R,Z;(R=this.tileLottieAnimationRef)==null||(Z=R.lottieEl)==null||Z.destroy();var K;this.isOnHoverBehaviorForLottieEnabled=!((K=G.settings)==null?0:K.autoplay);var m,a;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(a=(m=G.settings)==null?void 0:m.autoplay)!=null?a:!1,loop:this.getLottieLoopValue(G.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof G.url==="string"?this.tileLottiePlayerProps.animationConfig.path=G.url:this.tileLottiePlayerProps.animationConfig.animationData=G.url}}};
_.P.getOverflowButton=function(G){return _.D(G.overflowButton,v42)};
_.P.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var G=this.getBackgroundLottieDataBasedOnTheme(),c,I;if(G.url!==((c=this.backgroundLottiePlayerProps)==null?void 0:(I=c.animationConfig)==null?void 0:I.path)){var R,Z;(R=this.backgroundLottieAnimationRef)==null||(Z=R.lottieEl)==null||Z.destroy();var K;this.isOnHoverBehaviorForLottieEnabled=!((K=G.settings)==null?0:K.autoplay);var m,a;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(a=(m=G.settings)==null?void 0:m.autoplay)!=null?a:!1,loop:this.getLottieLoopValue(G.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof G.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=G.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
G.url}}};
_.P.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var G;((G=this.tileLottieAnimationRef)==null?void 0:G.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var c;((c=this.backgroundLottieAnimationRef)==null?void 0:c.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.P.getTileLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeTileLottie))return this.data.darkThemeTileLottie;var c;return((c=this.data)==null?0:c.tileLottie)?this.data.tileLottie:{}};
_.P.getBackgroundLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var c;return((c=this.data)==null?0:c.backgroundLottie)?this.data.backgroundLottie:{}};
_.P.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.P.getLottieLoopValue=function(G){return G?G.loop!==void 0?G.loop:G.loopCount?G.loopCount-1:!0:!0};
_.P.logoWithPadding=function(G){var c,I,R;return(G=(c=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(I=c.thumbnails)==null?void 0:(R=I[0])==null?void 0:R.height)&&G%31===0?!0:!1};
bS.prototype.currentColorChanged=bS.prototype.currentColorChanged;bS.prototype.themeChanged=bS.prototype.themeChanged;bS.prototype.dataChanged=bS.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],bS.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],bS.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bS.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],bS.prototype,"primaryButton",void 0);_.r([_.E(),_.h("design:type",Object)],bS.prototype,"secondaryButton",void 0);
_.r([_.E({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],bS.prototype,"elementsPerRow",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],bS.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],bS.prototype,"hasTile",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],bS.prototype,"hasMetadata",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],bS.prototype,"showLogoImage",void 0);_.r([_.E(),_.h("design:type",Object)],bS.prototype,"currentColorData",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.h("design:type",String)],bS.prototype,"bannerStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.h("design:type",String)],bS.prototype,"location",void 0);
_.r([_.E(),_.h("design:type",Object)],bS.prototype,"tileLottiePlayerProps",void 0);_.r([_.E(),_.h("design:type",Object)],bS.prototype,"tileLottieAnimationRef",void 0);_.r([_.E(),_.h("design:type",Object)],bS.prototype,"backgroundLottiePlayerProps",void 0);_.r([_.E(),_.h("design:type",Object)],bS.prototype,"backgroundLottieAnimationRef",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],bS.prototype,"useBiggerShowcaseImage",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],bS.prototype,"isHideEnclosingAction",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bS.prototype,"dataChanged",null);_.r([_.uO("isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bS.prototype,"themeChanged",null);
_.r([_.uO("currentColorData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bS.prototype,"currentColorChanged",null);_.r([_.Jc({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],bS);
_.B(bS,"ytd-statement-banner-renderer",function(){if(oH0!==void 0)return oH0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return oH0=G},{mode:1});var Ud0;var k_=function(){var G=_.J.apply(this,arguments)||this;G.isSearch=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.disableMouseScroll=!0;G.useFloorScrolling=!0;return G};
_.u(k_,_.J);k_.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.mJ("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.mJ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
k_.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
k_.prototype.onDataChanged=k_.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],k_.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],k_.prototype,"hideShelfHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],k_.prototype,"engagementPanel",void 0);_.r([_.E(),_.h("design:type",Object)],k_.prototype,"disableMouseScroll",void 0);_.r([_.E(),_.h("design:type",Object)],k_.prototype,"useFloorScrolling",void 0);_.r([_.E(),_.h("design:type",Object)],k_.prototype,"data",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k_.prototype,"onDataChanged",null);
_.r([_.Jc({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],k_);
_.B(k_,"ytd-reel-shelf-renderer",function(){if(Ud0!==void 0)return Ud0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ud0=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var upK;var b39;b39=_.I3(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.kC2=_.D3(b39);var sO9=_.W(function(G){var c=G.data;G=G.useSmallFont;var I={},R={};return _.e("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.e(_.l,{cond:function(){return c().favicon},
then:function(Z){return _.e(_.yc,{data:Z,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.e("div",{class:"ytChannelExternalLinkViewModelContainer"},_.e(_.ul,{text:function(){return c().title},
className:_.O3("ytChannelExternalLinkViewModelTitle",(I.ytChannelExternalLinkViewModelTitleSmallFont=G,I)),ellipsisTruncate:!0,userInput:!0}),_.e(_.ul,{text:function(){return c().link},
className:_.O3("ytChannelExternalLinkViewModelLink",(R.ytChannelExternalLinkViewModelLinkSmallFont=G,R)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"cd");
sO9.idomCompat=!0;_.R1(sO9,"yt-channel-external-link-view-model",{props:{data:_.bl,useSmallFont:_.bl}});_.Su("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var sv=function(){var G=_.J.apply(this,arguments)||this;G.revealButtonClass="button";G.businessEmailDisplayState="HIDE_SECTION";return G};
_.u(sv,_.J);_.P=sv.prototype;_.P.refit=function(){var G=this;_.xW(function(){_.gq(G.hostElement,"yt-refit-popups-action")});
_.O$(this,function(){_.gq(G.hostElement,"yt-refit-popups-action")})};
_.P.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.My(_.kC2),this.businessEmailDisplayState="CAPTCHA")};
_.P.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.P.computeEmailHref=function(G){return"mailto:"+G};
_.P.computeSafeUrl=function(G){if(G)return _.dS(G)};
_.P.linkEndpoint=function(G){return _.D(G.onTap,_.JN)};
_.P.linkEndpointToHref=function(G){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(G))};
_.P.onYtServiceRequestCompleted=function(G){var c;if((c=G.detail.data)==null?0:c.businessEmail)this.businessEmail=G.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=G.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=G.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var G=this.JSC$16586_captchaTextarea.value;if(G){G={recaptcha_response_token:G,channel_id:this.metadata.channelId};var c=_.D(this.metadata.onBusinessEmailRevealClickCommand,_.JN);c&&this.ytComponentBehavior.resolveCommand(c,{form:G})}}};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Nh.Object.defineProperties(sv.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var G;return _.D((G=this.data)==null?void 0:G.metadata,oST)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.D(this.metadata.businessEmailRevealButton,_.uv)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var G=new URL(this.metadata.canonicalChannelUrl);return G.host+G.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.D(this.metadata.learnMoreOnTap,_.JN)}}});
sv.prototype.onYtServiceRequestCompleted=sv.prototype.onYtServiceRequestCompleted;sv.prototype.businessEmailMetadataChanged=sv.prototype.businessEmailMetadataChanged;sv.prototype.refit=sv.prototype.refit;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],sv.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("#g-recaptcha-response"),_.h("design:type",HTMLTextAreaElement)],sv.prototype,"JSC$16586_captchaTextarea",void 0);_.r([_.E(),_.h("design:type",Object)],sv.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],sv.prototype,"revealButtonClass",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sv.prototype,"metadata",null);
_.r([_.A("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],sv.prototype,"revealButton",null);_.r([_.A("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],sv.prototype,"channelDisplayUrl",null);_.r([_.uO("metadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sv.prototype,"refit",null);_.r([_.A("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],sv.prototype,"formattedDescription",null);
_.r([_.A("metadata","learnMoreCommand"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],sv.prototype,"shouldRendereVerifiedPhoneStatus",null);_.r([_.A("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],sv.prototype,"learnMoreCommand",null);_.r([_.E(),_.h("design:type",String)],sv.prototype,"businessEmailDisplayState",void 0);_.r([_.E(),_.h("design:type",String)],sv.prototype,"businessEmail",void 0);
_.r([_.E(),_.h("design:type",String)],sv.prototype,"businessEmailErrorMessage",void 0);_.r([_.uO("metadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sv.prototype,"businessEmailMetadataChanged",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sv.prototype,"onYtServiceRequestCompleted",null);
_.r([_.Jc({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],sv);
_.B(sv,"ytd-about-channel-renderer",function(){if(upK!==void 0)return upK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return upK=G},{mode:1});var Lnk;var Lo=function(){return _.J.apply(this,arguments)||this};
_.u(Lo,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Lo.prototype,"data",void 0);_.r([_.Jc({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Lo);
_.B(Lo,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Lnk!==void 0)return Lnk;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Lnk=G},{mode:1});var AR9;var AS=function(){return _.J.apply(this,arguments)||this};
_.u(AS,_.J);AS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],AS.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],AS.prototype,"aligment",void 0);_.r([_.Jc({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],AS);
_.B(AS,"ytd-channel-list-sub-menu-renderer",function(){if(AR9!==void 0)return AR9;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return AR9=
G},{mode:1});var $dK;var $_=function(){return _.J.apply(this,arguments)||this};
_.u($_,_.J);$_.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}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$_.prototype,"data",void 0);_.r([_.Jc({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],$_);
_.B($_,"ytd-channel-sub-menu-renderer",function(){if($dK!==void 0)return $dK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return $dK=G},{mode:1});var SLB;var pg0;var Sf=function(){var G=_.J.apply(this,arguments)||this;G.isCompact=!1;return G};
_.u(Sf,_.J);_.Nh.Object.defineProperties(Sf.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var G,c;return((c=_.D((G=this.data)==null?void 0:G.endpoint,_.ID))==null?void 0:c.target)==="TARGET_NEW_WINDOW"}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Sf.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Sf.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Sf.prototype,"isCompact",void 0);_.r([_.A("isCompact"),_.h("design:type",Number),_.h("design:paramtypes",[])],Sf.prototype,"thumbnailWidth",null);
_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Sf.prototype,"openNewWindow",null);_.r([_.Jc({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Sf);
_.B(Sf,"ytd-media-lockup-renderer",function(){if(pg0!==void 0)return pg0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return pg0=G},{mode:1});var M2A;var po=function(){return _.J.apply(this,arguments)||this};
_.u(po,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],po.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],po.prototype,"data",void 0);_.r([_.Jc({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],po);
_.B(po,"ytd-structured-description-channel-lockup-renderer",function(){if(M2A!==void 0)return M2A;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return M2A=G},{mode:1});var V22;var MW=function(){var G=_.J.apply(this,arguments)||this;G.isCompact=!1;G.collectionsStackColor=_.v("modernize_structured_description_playlist_lockups_v2");return G};
_.u(MW,_.J);MW.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:_.v("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Nh.Object.defineProperties(MW.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z,K;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(G=this.data)==null?void 0:(c=G.thumbnail)==null?void 0:c.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(I=this.data)==null?void 0:(R=I.thumbnail)==null?void 0:R.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Z=this.data)==null?void 0:(K=Z.thumbnail)==null?
void 0:K.vibrantColorPalette:void 0}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],MW.prototype,"componentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],MW.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],MW.prototype,"showSidePanelThumbnailOverlay",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],MW.prototype,"isCompact",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],MW.prototype,"collectionsStackColor",void 0);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],MW.prototype,"twoLineTitle",null);_.r([_.A("data","collectionsStackColor"),_.h("design:type",Object),_.h("design:paramtypes",[])],MW.prototype,"collectionStack",null);
_.r([_.Jc({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],MW);
_.B(MW,"ytd-structured-description-playlist-lockup-renderer",function(){if(V22!==void 0)return V22;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return V22=G},{mode:1});var zt2;var V6=function(){return _.J.apply(this,arguments)||this};
_.u(V6,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],V6.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],V6.prototype,"data",void 0);_.r([_.Jc({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],V6);
_.B(V6,"ytd-structured-description-video-lockup-renderer",function(){if(zt2!==void 0)return zt2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return zt2=G},{mode:2});var zh=function(){return _.J.apply(this,arguments)||this};
_.u(zh,_.J);
zh.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}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zh.prototype,"data",void 0);_.r([_.Jc({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],zh);
_.B(zh,"ytd-compact-infocard-renderer",function(){if(SLB!==void 0)return SLB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return SLB=G},{mode:1});var EHT;var Ev=function(){return _.J.apply(this,arguments)||this};
_.u(Ev,_.J);Ev.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Nh.Object.defineProperties(Ev.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],Ev.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Ev.prototype,"ytdReduxBehavior",void 0);_.r([_.E({selector:_.J0}),_.h("design:type",Object)],Ev.prototype,"isGridViewEnabled",void 0);
_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ev.prototype,"watchFeedBigThumbs",null);_.r([_.A("isGridViewEnabled","data"),_.E({reflectToAttribute:!0,value:"168"}),_.h("design:type",String),_.h("design:paramtypes",[])],Ev.prototype,"thumbnailWidth",null);_.r([_.A("isGridViewEnabled","data"),_.E({reflectToAttribute:!0,value:"94"}),_.h("design:type",String),_.h("design:paramtypes",[])],Ev.prototype,"customThumbnailSize",null);
_.r([_.E(),_.h("design:type",Object)],Ev.prototype,"data",void 0);_.r([_.Jc({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Ev);
_.B(Ev,"ytd-compact-playlist-renderer",function(){if(EHT!==void 0)return EHT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return EHT=G},{mode:1});var JRp;var JS=function(){var G=_.J.apply(this,arguments)||this;G.roundedContainer=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.u(JS,_.J);_.P=JS.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.P.computeViewStyle=function(G){return G.style?G.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.P.onUpdateElementsPerRowAction=function(G){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&G===1};
_.P.requestElementsPerRow=function(){_.Xl(this.hostElement,"yt-request-elements-per-row")};
JS.prototype.dataChanged=JS.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],JS.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],JS.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],JS.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],JS.prototype,"hideThumbnail",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.h("design:type",String)],JS.prototype,"viewStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],JS.prototype,"roundedContainer",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JS.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],JS);
_.B(JS,"ytd-compact-promoted-item-renderer",function(){if(JRp!==void 0)return JRp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return JRp=G},{mode:1});var WnK;var W2=function(){return _.J.apply(this,arguments)||this};
_.u(W2,_.J);W2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
W2.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
W2.prototype.onYtNavigate=function(G,c){var I=this;if(c.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",c)){var R=this.get("watchEndpoint.videoId",c.endpoint),Z=_.gq(this.hostElement,"yt-get-current-video-id-action")[0];_.v("kevlar_mix_handle_first_endpoint_different")&&R&&Z&&R!==Z||(G.stopPropagation(),_.Ke().getPlayerPromise().then(function(K){if(K.getPlayerState()===0&&I.data.secondaryNavigationEndpoint)var m=I.data.secondaryNavigationEndpoint;else{m=
Object.assign({},c.endpoint);var a=_.D(m.commandMetadata,_.Pd);a&&(K=Math.floor(K.getCurrentTime()),a.url=_.aa(a.url,{t:K}),!_.v("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(a=_.D(m,_.fR)))&&(a.startTimeSeconds=K)}_.Xl(I.hostElement,"yt-navigate",{endpoint:m})}))}};
_.Nh.Object.defineProperties(W2.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z,K;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(c=G.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(R=I.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(Z=this.data)==null?void 0:(K=Z.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
W2.prototype.onYtNavigate=W2.prototype.onYtNavigate;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Cx.YtEndpointBehavior),_.h("design:type",Object)],W2.prototype,"ytEndpointBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],W2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],W2.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.L(_.kw),_.h("design:type",Object)],W2.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],W2.prototype,"ytdReduxBehavior",void 0);_.r([_.E({selector:_.J0}),_.h("design:type",Object)],W2.prototype,"isGridViewEnabled",void 0);_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],W2.prototype,"watchFeedBigThumbs",null);
_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],W2.prototype,"thumbnailWidth",null);_.r([_.E(),_.h("design:type",Object)],W2.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],W2.prototype,"collectionStack",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],W2.prototype,"onYtNavigate",null);
_.r([_.Jc({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],W2);
_.B(W2,"ytd-compact-radio-renderer",function(){if(WnK!==void 0)return WnK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return WnK=G},{mode:1});var i30;var iS=function(){return _.J.apply(this,arguments)||this};
_.u(iS,_.J);iS.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
iS.prototype.computeRendererStyle=function(G){return G.style?G.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.r([_.E(),_.h("design:type",Object)],iS.prototype,"data",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],iS.prototype,"rendererBehavior",void 0);_.r([_.E({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],iS.prototype,"rendererStyle",void 0);_.r([_.Jc({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],iS);
_.B(iS,"ytd-compact-text-promo-renderer",function(){if(i30!==void 0)return i30;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return i30=G},{mode:1});var fQT;var fo=function(){var G=_.J.apply(this,arguments)||this;G.isShortsStyle=!1;return G};
_.u(fo,_.J);_.P=fo.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Xl(this.hostElement,"yt-disable-lockup-interaction"):_.Xl(this.hostElement,"yt-enable-lockup-interaction"))};
_.P.isMetaBlockEmpty=function(G){return!G||!G.longBylineText&&!G.shortBylineText&&!G.shortViewCountText&&!G.viewCountText};
_.P.computeHasOneLineTitle=function(G){return this.forceOneLineTitle||!(G==null||!G.buttons)};
_.P.computeDisableInteraction=function(){var G;return!((G=this.data)==null?0:G.navigationEndpoint)};
_.P.hasSingularTopStandaloneBadge=function(){var G;return!((G=this.data)==null||!G.topStandaloneBadge)};
_.Nh.Object.defineProperties(fo.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var G;return this.hasSingularTopStandaloneBadge()?[(G=this.data)==null?void 0:G.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var G;return this.shouldShowTopBadges?((G=this.data)==null?void 0:G.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
fo.prototype.disableInteractionChanged=fo.prototype.disableInteractionChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],fo.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],fo.prototype,"ytdLockupBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],fo.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.h("design:type",Boolean)],fo.prototype,"metaBlockEmpty",void 0);_.r([_.E({selector:_.J0}),_.h("design:type",Object)],fo.prototype,"isGridViewEnabled",void 0);_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],fo.prototype,"watchFeedBigThumbs",null);
_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],fo.prototype,"thumbnailWidth",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],fo.prototype,"isShortsStyle",void 0);_.r([_.E(),_.h("design:type",Object)],fo.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.h("design:type",Boolean)],fo.prototype,"hasOneLineTitle",void 0);
_.r([_.E(),_.h("design:type",Boolean)],fo.prototype,"hideThumbnail",void 0);_.r([_.E(),_.h("design:type",Boolean)],fo.prototype,"forceOneLineTitle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.h("design:type",Boolean)],fo.prototype,"disableInteraction",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],fo.prototype,"musicMetadataVideoLockup",void 0);
_.r([_.wD("disableInteraction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fo.prototype,"disableInteractionChanged",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],fo.prototype,"shouldShowTopBadges",null);_.r([_.A("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],fo.prototype,"topBadges",null);
_.r([_.A("shouldShowTopBadges","data"),_.h("design:type",Array),_.h("design:paramtypes",[])],fo.prototype,"inlineMetadataBadges",null);_.r([_.A("shouldShowTopBadges"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],fo.prototype,"shouldShowBadgesBelowMetadata",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],fo.prototype,"compactTitleClass",null);_.r([_.Jc({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],fo);
_.B(fo,"ytd-compact-video-renderer",function(){if(fQT!==void 0)return fQT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return fQT=G},{mode:_.Qc("kevlar_poly_si_batch_j067")?1:2});var BoN;_.Su("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var B2=function(){return _.J.apply(this,arguments)||this};
_.u(B2,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],B2.prototype,"data",void 0);_.r([_.Jc({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],B2);
_.B(B2,"ytd-counterfactual-renderer",function(){if(BoN!==void 0)return BoN;var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return BoN=G},{mode:1});var rRe;var rW=function(){var G=_.J.apply(this,arguments)||this;G.hidden=!1;return G};
_.u(rW,_.J);rW.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.wH().resolve(_.n4).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
rW.prototype.computeHidden=function(G){return!!G};
_.Nh.Object.defineProperties(rW.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rW.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.h("design:type",Object)],rW.prototype,"hidden",void 0);_.r([_.A("data.label"),_.h("design:type",String),_.h("design:paramtypes",[])],rW.prototype,"label",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rW.prototype,"value",null);
_.r([_.Jc({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],rW);
_.B(rW,"ytd-dropdown-item-renderer",function(){if(rRe!==void 0)return rRe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return rRe=G},{mode:1});var jOe;var xdT;var jf=function(){return _.J.apply(this,arguments)||this};
_.u(jf,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jf.prototype,"data",void 0);_.r([_.E({computed:"getSimpleString(data.label)"}),_.h("design:type",String)],jf.prototype,"label",void 0);_.r([_.Jc({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],jf);
_.B(jf,"ytd-navigation-dropdown-item-renderer",function(){if(xdT!==void 0)return xdT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return xdT=G},{mode:1});var x_=function(){var G=_.J.apply(this,arguments)||this;G.disabled=!1;G.value="";G.noLabelFloat=!1;G.noUnderline=!1;G.usePrimaryColor=!1;G.hasBackground=!1;G.verticalAlign="top";G.autosize=!1;G.minAutosizeWidth=100;G.autosizeFont="14px Roboto";return G};
_.u(x_,_.J);_.P=x_.prototype;_.P.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.P.open=function(){this.inputEl.open()};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.P.dataChanged=function(){this.reset()};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("value-changed",this.value))};
_.P.stopPropagation=function(G){G.stopPropagation()};
_.P.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var G=this.canvas.getContext("2d");G&&(G.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(G.measureText(this.inputEl.value).width)+24)+"px")}};
_.P.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var G=0,c=this.data.entries.length;G<c;G++){var I=this.data.entries[G],R;for(R in I)if(I.hasOwnProperty(R)){var Z=I[R];if("isSelected"in Z&&Z.isSelected)return"stringValue"in Z?Z.stringValue||"":"int32Value"in Z?Z.int32Value||0:0}}return null};
_.P.updateValueFromBinding=function(G){this.value=G.detail.value};
_.Nh.Object.defineProperties(x_.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var G=0,c=this.data.entries.length;G<c;G++){var I=this.data.entries[G],R;for(R in I)if(I.hasOwnProperty(R)){var Z=I[R];if("isSelected"in Z&&Z.isSelected&&"label"in Z)return this.ytRendererBehavior.getSimpleString(Z.label)}}return null}}});
x_.prototype.autoSizeLabel=x_.prototype.autoSizeLabel;x_.prototype.stopPropagation=x_.prototype.stopPropagation;x_.prototype.valueChangedForBinding=x_.prototype.valueChangedForBinding;x_.prototype.dataChanged=x_.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],x_.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],x_.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],x_.prototype,"disabled",void 0);_.r([_.E(),_.h("design:type",Object)],x_.prototype,"value",void 0);_.r([_.E(),_.h("design:type",Object)],x_.prototype,"noLabelFloat",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],x_.prototype,"noUnderline",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],x_.prototype,"theme",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],x_.prototype,"usePrimaryColor",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],x_.prototype,"hasBackground",void 0);_.r([_.E(),_.h("design:type",Object)],x_.prototype,"verticalAlign",void 0);_.r([_.E(),_.h("design:type",Object)],x_.prototype,"autosize",void 0);_.r([_.E(),_.h("design:type",Object)],x_.prototype,"minAutosizeWidth",void 0);_.r([_.E(),_.h("design:type",Object)],x_.prototype,"autosizeFont",void 0);
_.r([_.nH("#entries"),_.h("design:type",Object)],x_.prototype,"entries",void 0);_.r([_.nH("#input"),_.h("design:type",Object)],x_.prototype,"inputEl",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x_.prototype,"dataChanged",null);_.r([_.uO("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x_.prototype,"valueChangedForBinding",null);
_.r([_.qY("iron-overlay-opened"),_.qY("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],x_.prototype,"stopPropagation",null);_.r([_.qY("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x_.prototype,"autoSizeLabel",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],x_.prototype,"label",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],x_);
_.B(x_,"ytd-dropdown-renderer",function(){if(jOe!==void 0)return jOe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return jOe=G},{mode:1});var t2T;var tS=function(){var G=_.J.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.u(tS,_.J);tS.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"}}}};
tS.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
tS.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
tS.prototype.computeViewAllHidden=function(G,c){return G||!c.viewAllEndpoint};
tS.prototype.fillRestIfNoShowMore=tS.prototype.fillRestIfNoShowMore;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],tS.prototype,"ytLazyListBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tS.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tS.prototype,"isConstrainedList",void 0);_.r([_.uO("data","canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tS.prototype,"fillRestIfNoShowMore",null);_.r([_.Jc({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],tS);
_.B(tS,"ytd-expanded-shelf-contents-renderer",function(){if(t2T!==void 0)return t2T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return t2T=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var hte;var hS=function(){return _.J.apply(this,arguments)||this};
_.u(hS,_.J);hS.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}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hS.prototype,"data",void 0);_.r([_.Jc({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],hS);
_.B(hS,"ytd-feed-channel-filter-header-renderer",function(){if(hte!==void 0)return hte;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return hte=G},{mode:1});var ddA;var C79;var H30;var dW=function(){return _.J.apply(this,arguments)||this};
_.u(dW,_.J);_.P=dW.prototype;_.P.onClick=function(G){var c,I=(c=this.data)==null?void 0:c.sectionEndpoint;!_.Gf(_.CE(G),this.hostElement,["A".toString()])&&I&&_.Xl(this.hostElement,"yt-navigate",{endpoint:I})};
_.P.computeHasSectionEndpoint=function(G){return(G==null?void 0:G.sectionEndpoint)!==void 0};
_.P.computeShowHeaderAsLink=function(G){return(G==null?void 0:G.header)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0};
_.P.computeShowSubheaderAsLink=function(G){return(G==null?void 0:G.subheader)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0&&(G==null?void 0:G.header)===void 0};
_.P.getHeaderAsLinkClass=function(G){var c=[],I;(G==null?0:(I=G.headerIcon)==null?0:I.iconType)&&c.push("header-link-active");return c.join(" ")};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],dW.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dW.prototype,"data",void 0);
_.r([_.E({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],dW.prototype,"hasSectionEndpoint",void 0);_.r([_.E({computed:"computeShowHeaderAsLink(data)"}),_.h("design:type",Boolean)],dW.prototype,"showHeaderAsLink",void 0);_.r([_.E({computed:"computeShowSubheaderAsLink(data)"}),_.h("design:type",Boolean)],dW.prototype,"showSubheaderAsLink",void 0);_.r([_.Jc({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],dW);
_.B(dW,"ytd-medical-panel-section-renderer",function(){if(H30!==void 0)return H30;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return H30=G},{mode:1});var Co=function(){var G=_.J.apply(this,arguments)||this;G.isExpanded=!1;G.roundedContainer=!0;G.skipRoundingTop=!1;G.toggleExpandableSection=function(){G.isExpanded=!G.isExpanded};
return G};
_.u(Co,_.J);
Co.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]]"}}}}}};
Co.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Co.prototype.dataChanged=Co.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Co.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Co.prototype,"isExpanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Co.prototype,"roundedContainer",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Co.prototype,"skipRoundingTop",void 0);_.r([_.E(),_.h("design:type",Object)],Co.prototype,"toggleExpandableSection",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Co.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Co);
_.B(Co,"ytd-medical-panel-content-renderer",function(){if(C79!==void 0)return C79;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return C79=G},{mode:1});_.Su("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var H2=function(){var G=_.J.apply(this,arguments)||this;G.roundedContainer=!0;G.extractOverlay=!1;G.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");G.hasTitle=!1;G.linkIcon="OPEN_IN_NEW";G.isDismissed=!1;return G};
_.u(H2,_.J);H2.prototype.onOverlayConditionsChange=function(){var G=_.Q1(this.hostElement).querySelector("ytd-info-panel-content-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.roundedContainer))};
H2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
H2.prototype.computeHasTitle=function(G){return!(G==null||!G.title)};
H2.prototype.onClick=function(G){var c,I=(c=this.data)==null?void 0:c.headerEndpoint;!_.Gf(_.CE(G),this.hostElement,["BUTTON".toString()])&&I&&this.ytComponentBehavior.resolveCommand(I)};
_.Nh.Object.defineProperties(H2.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:G.disableBottomDivider)||!((c=this.data)==null?0:c.title)}}});
H2.prototype.onOverlayConditionsChange=H2.prototype.onOverlayConditionsChange;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],H2.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],H2.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],H2.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],H2.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],H2.prototype,"extractOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],H2.prototype,"amsterdamEnabled",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.h("design:type",Object)],H2.prototype,"hasTitle",void 0);
_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.background"),_.h("design:type",Object),_.h("design:paramtypes",[])],H2.prototype,"background",null);_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.titleStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],H2.prototype,"titleStyle",null);
_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.A("data.titleStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],H2.prototype,"showLinkIcon",null);_.r([_.E(),_.h("design:type",String)],H2.prototype,"linkIcon",void 0);_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],H2.prototype,"hideDivider",null);
_.r([_.E({selectorArgs:["data.dismissStateEntityKey"],selector:function(G,c){G=_.a6(G.entities,"dismissState",c);return(G==null?void 0:G.isDismissed)||(G==null?void 0:G.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(G==null?void 0:G.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.h("design:type",Object)],H2.prototype,"isDismissed",void 0);_.r([_.wD("roundedContainer","extractOverlay"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H2.prototype,"onOverlayConditionsChange",null);_.r([_.Jc({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],H2);
_.B(H2,"ytd-info-panel-container-renderer",function(){if(ddA!==void 0)return ddA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ddA=G},{mode:1});var XgT;_.Su("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var XS=function(){return _.J.apply(this,arguments)||this};
_.u(XS,_.J);XS.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
XS.prototype.computeStyle=function(G){return G?G:""};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],XS.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.h("design:type",String)],XS.prototype,"titleStyle",void 0);
_.r([_.Jc({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],XS);
_.PI()(XS,"ytd-item-section-header-renderer",function(){if(XgT===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);XgT=G}G=XgT;return G},{allowedProps:["data"],
mode:1});var yRp;var gHN,YLB=function(){return gHN!==void 0?gHN:gHN=document.createElement("template")};
document.head.appendChild(YLB().content);var GnK;_.y6=new _.De("VOTING_ANIMATION_CONTROLLER_TOKEN");var IFK=_.W(function(G){var c=G.data;var I=_.mX("div"),R=_.mX("div");G=_.Q(_.ks("VOTE_STATUS_NONE",void 0,"YPH5mf"));var Z=G.next().value,K=G.next().value,m=_.um(oJr,function(){var F;return(F=c())==null?void 0:F.entityKey}),a=_.v("web_enable_voting_animation")||_.v("enable_music_web_cairo_voting_animation");
_.tI(function(){var F;((F=c().initialState)==null?0:F.status)&&K(c().initialState.status)});
var O=function(){var F,n,U=(n=(F=c().initialState)==null?void 0:F.votes)!=null?n:0,k;F=(k=c().initialState)==null?void 0:k.status;return F==="VOTE_STATUS_UPVOTED"?U-1:F==="VOTE_STATUS_DOWNVOTED"?U+1:U},N=function(){return Z()==="VOTE_STATUS_UPVOTED"?O()+1:Z()==="VOTE_STATUS_DOWNVOTED"?O()-1:O()},q=function(F){var n=F?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
K(n);var U=N(),k=_.wH().resolve(_.qR(_.y6)),p=m();p&&(F&&(p==null?0:p.upvoteDefaultButtonOnTap)?_.r0(p.upvoteDefaultButtonOnTap,{form:{element:I.value},disableClickTracking:!0}):(p==null?0:p.upvoteToggledButtonOnTap)&&_.r0(p.upvoteToggledButtonOnTap,{form:{element:I.value},disableClickTracking:!0}));var M;F=(M=p==null?void 0:p.enableOptimisticReordering)!=null?M:c().enableOptimisticReordering;a&&k&&c().itemId&&F&&cvT(k,c().itemId,U,n)},w=function(F){var n=F?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
K(n);var U=N(),k=_.wH().resolve(_.qR(_.y6)),p=m();p&&(F&&(p==null?0:p.downvoteDefaultButtonOnTap)?_.r0(p.downvoteDefaultButtonOnTap,{form:{element:R.value},disableClickTracking:!0}):(p==null?0:p.downvoteToggledButtonOnTap)&&_.r0(p.downvoteToggledButtonOnTap,{form:{element:R.value},disableClickTracking:!0}));var M;F=(M=p==null?void 0:p.enableOptimisticReordering)!=null?M:c().enableOptimisticReordering;a&&k&&c().itemId&&F&&cvT(k,c().itemId,U,n)};
G={};G=_.O3("ytVotingViewModelVoteCount",(G.ytVotingViewModelVoteCountDisabled=function(){return c().isDisabled},G));
return _.e("voting-view-model",{class:"ytVotingViewModelHost"},_.e("div",{el:I},_.e(_.sN,{data:function(){var F=_.D(c().upvoteButton,_.kh);return{toggleButtonViewModel:Object.assign({},F,{isToggled:Z()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(F){return _.e(_.m8,{data:F.data,
onToggle:q})}})),_.e("div",{class:G},function(){var F,n,U;
return Z()==="VOTE_STATUS_UPVOTED"?(F=c().initialState)==null?void 0:F.compactVotesUpvoted:Z()==="VOTE_STATUS_DOWNVOTED"?(n=c().initialState)==null?void 0:n.compactVotesDownvoted:(U=c().initialState)==null?void 0:U.compactVotes}),_.e("div",{el:R},_.e(_.sN,{data:function(){var F=_.D(c().downvoteButton,_.kh);
return{toggleButtonViewModel:Object.assign({},F,{isToggled:Z()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(F){return _.e(_.m8,{data:F.data,
onToggle:w})}})))},"dd");_.R1(_.W(function(G){var c=G.data;return _.e("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.e("div",{class:_.O3("ytEngagementBarViewModelEngagementBarWrapper",G.className)},_.e(_.sN,{data:function(){return c().actions}},{votingViewModel:IFK})))},"ed"),"engagement-bar-view-model",{props:{data:_.bl,
className:_.bl}});var gW=function(){var G=_.J.apply(this,arguments)||this;G.playlistVotingAnimationEnabled=_.v("web_enable_voting_animation");G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.downloadState="DOWNLOAD_STATE_UNKNOWN";G.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";G.offlineVideoPolicyExpirationTimestamp=0;return G};
_.u(gW,_.J);_.P=gW.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.P.canReorderChanged=function(){this.persistentDragHandle=_.v("kevlar_playlist_drag_handles")&&this.canReorder};
_.P.onDrag=function(){if(this.thumbnail){var G=_.Q1(this.thumbnail).querySelector("yt-image");G&&(G.shouldRenderLazy=!1)}};
_.P.onMenuOverlayChanged=function(G,c){this.menuOpened=c};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.P.onContentsTap=function(G){var c,I=(c=this.data)==null?void 0:c.serviceEndpoints;if(I&&I.length===1&&_.D(I[0],ULp)&&!_.Gf(_.CE(G),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(I[0]);else{var R;(c=(R=this.data)==null?void 0:R.navigationEndpoint)&&_.v("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?ReT(_.wH().resolve(_.tA),c):(_.ck().playlistSuggestionsShelfActivation=
!0,_.Zzk(_.wH().resolve(_.tA),c)):c&&!_.Gf(_.CE(G),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.v("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Xl(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c))}};
_.P.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(G){return G==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.P.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=ifq(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.P.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.dataChanged=function(){if(this.data){var G,c,I,R=((G=this.downloadRenderData)==null?void 0:G.badges)&&((c=this.downloadRenderData)==null?void 0:c.badges)!==((I=this.data)==null?void 0:I.badges),Z,K,m;G=((Z=this.downloadRenderData)==null?void 0:Z.thumbnailOverlays)&&((K=this.downloadRenderData)==null?void 0:K.thumbnailOverlays)!==((m=this.data)==null?void 0:m.thumbnailOverlays);(!this.downloadRenderData||R||G)&&this.downloadStateChanged()}};
_.P.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var G,c,I=(G=this.data.menu)==null?void 0:(c=G.menuRenderer)==null?void 0:c.items;if(I)for(G=_.Q(I),c=G.next();!c.done;c=G.next())if(c=c.value,I=void 0,_.D((I=c.menuServiceItemRenderer)==null?void 0:I.serviceEndpoint,_.ql)){var R=I=void 0,Z=void 0;c=(I=c)==null?void 0:(R=I.menuServiceItemRenderer)==null?void 0:(Z=R.serviceEndpoint)==null?void 0:Z.playlistEditEndpoint;Z=R=void 0;if(I=(R=c)==null?void 0:(Z=R.actions)==null?void 0:
Z[0])R=void 0,I.setVideoId=(R=this.data)==null?void 0:R.setVideoId;Z=R=I=void 0;if(c=(I=c)==null?void 0:(R=I.clientActions)==null?void 0:(Z=R[0])==null?void 0:Z.playlistRemoveVideosAction)I=void 0,c.setVideoIds=[(I=this.data)==null?void 0:I.setVideoId]}}};
_.Nh.Object.defineProperties(gW.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
gW.prototype.setVideoIdChanged=gW.prototype.setVideoIdChanged;gW.prototype.dataChanged=gW.prototype.dataChanged;gW.prototype.downloadStateChanged=gW.prototype.downloadStateChanged;gW.prototype.onMenuOverlayChanged=gW.prototype.onMenuOverlayChanged;gW.prototype.canReorderChanged=gW.prototype.canReorderChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],gW.prototype,"ytdReduxBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],gW.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],gW.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],gW.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gW.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],gW.prototype,"canReorder",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],gW.prototype,"menuOpened",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],gW.prototype,"handleIsHovered",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],gW.prototype,"persistentDragHandle",void 0);_.r([_.E(),_.h("design:type",Object)],gW.prototype,"downloadRenderData",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],gW.prototype,"styleType",void 0);_.r([_.E({computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],gW.prototype,"thumbnailWidth",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],gW.prototype,"isDownloads",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],gW.prototype,"playlistVotingAnimationEnabled",void 0);
_.r([_.E({selector:WY,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],gW.prototype,"downloadProgress",void 0);_.r([_.E(),_.h("design:type",Number)],gW.prototype,"relativeDateReference",void 0);_.r([_.E({selector:_.E4,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],gW.prototype,"transferState",void 0);_.r([_.E({selector:K80,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],gW.prototype,"downloadState",void 0);
_.r([_.E({selector:xiC,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],gW.prototype,"offlinePolicyAction",void 0);_.r([_.E({selector:tPr,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],gW.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.r([_.E({selector:dir,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],gW.prototype,"entityInfo",void 0);_.r([_.E({selector:_.pp}),_.h("design:type",Boolean)],gW.prototype,"miniplayerIsActive",void 0);
_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],gW.prototype,"playlistVideoId",null);_.r([_.nH("#thumbnail"),_.h("design:type",Object)],gW.prototype,"thumbnail",void 0);_.r([_.uO("canReorder"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gW.prototype,"canReorderChanged",null);
_.r([_.qY("yt-menu-overlay-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Boolean]),_.h("design:returntype")],gW.prototype,"onMenuOverlayChanged",null);_.r([_.uO("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gW.prototype,"downloadStateChanged",null);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gW.prototype,"dataChanged",null);_.r([_.uO("data.setVideoId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gW.prototype,"setVideoIdChanged",null);_.r([_.Jc({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],gW);
_.B(gW,"ytd-playlist-video-renderer",function(){if(GnK!==void 0)return GnK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);G.content.insertBefore(YLB().content.cloneNode(!0),G.content.firstChild);return GnK=G},{mode:1});var KQK;var Y_=function(){return _.J.apply(this,arguments)||this};
_.u(Y_,_.J);_.r([_.E(),_.h("design:type",Object)],Y_.prototype,"data",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Y_.prototype,"rendererBehavior",void 0);_.r([_.Jc({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Y_);
_.B(Y_,"ytd-premium-browse-footer-renderer",function(){if(KQK!==void 0)return KQK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return KQK=G},{mode:1});var PCK;var Gq=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.u(Gq,_.J);_.P=Gq.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.handleDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.P.computeHeaderLogoThumbnail=function(G,c){if(G)return c?G.darkLogo:G.lightLogo};
_.P.computeHeaderLogoHeight=function(G,c){var I,R,Z;return(G=(I=this.computeHeaderLogoThumbnail(G,c))==null?void 0:(R=I.thumbnails)==null?void 0:(Z=R[0])==null?void 0:Z.height)&&G%31===0?"31":"24"};
_.P.computeHeaderLogoMarginBottom=function(G,c){return this.computeHeaderLogoHeight(G,c)==="24"?"0":"-7"};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Gq.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Gq.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],Gq.prototype,"isDarkTheme",void 0);_.r([_.E({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.h("design:type",Object)],Gq.prototype,"themeLogo",void 0);
_.r([_.E({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.h("design:type",String)],Gq.prototype,"logoHeight",void 0);_.r([_.E({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.h("design:type",String)],Gq.prototype,"logoMarginBottom",void 0);_.r([_.Jc({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Gq);
_.B(Gq,"ytd-primetime-promo-header-renderer",function(){if(PCK!==void 0)return PCK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return PCK=G},{mode:1});var QVT;_.cc=_.W(function(G){var c=G.className;var I=G.data;var R=G.isOverlay;var Z=G.maxLinesOverride;var K=G.useMediumText;var m=function(){return I().alwaysShowTruncationText},a=function(){return I().truncationText},O=function(){return K!==void 0&&K()?"medium":"small"},N=function(){return R!==void 0&&R()?"overlay":"default"},q=function(){var U,k;
return(k=(U=_.D(I().rendererContext,_.Aq))==null?void 0:U.label)!=null?k:""};
G=_.Q(_.ks(!1,void 0,"llBUm"));var w=G.next().value,F=G.next().value;G=_.Nx(function(){I().expandOnTap&&F(!w());return!1});
var n={};return _.e("yt-description-preview-view-model",{el:_.YC(_.im(function(){return I().rendererContext})),
class:_.O3("ytDescriptionPreviewViewModelHost",c,(n.ytDescriptionPreviewViewModelClickable=function(){var U;return!((U=_.D(I().rendererContext,_.fe))==null||!U.onTap)},n.ytDescriptionPreviewViewModelIsOverlay=R,n)),
"on:click":G},_.e(_.l,{cond:function(){return I().description},
then:function(U){return _.e(_.l,{cond:w,then:function(){var k={};return _.e("div",{class:_.O3("ytDescriptionPreviewViewModelDescription",(k.ytDescriptionPreviewViewModelDescriptionMediumText=K,k))},_.e(_.ul,{text:U}))},
else:function(){return _.e(mmi,{text:U,alwaysShowTruncationText:m,truncationText:a,maxLines:function(){var k;return(k=Z==null?void 0:Z())!=null?k:I().maxLines},
textStyle:N,accessibilityLabel:q,textSize:O})}})}}))},"fd");
_.cc.idomCompat=!0;var aFV=_.W(function(G){var c=_.Nx(function(Z){var K;(K=G.onClick)==null||K.call(G,Z)}),I={},R={};
return _.e("yt-shelf-header-layout",{class:_.O3("yt-shelf-header-layout",(I["yt-shelf-header-layout--disable-horizontal-padding"]=G.disableHorizontalPadding,I["yt-shelf-header-layout--disable-vertical-padding"]=G.disableVerticalPadding,I["yt-shelf-header-layout--responsive"]=G.useResponsiveLayout,I["yt-shelf-header-layout--narrow"]=function(){var Z,K;return((Z=G.useResponsiveLayout)==null?void 0:Z.call(G))&&((K=G.forceSmallLayout)==null?void 0:K.call(G))},I["yt-shelf-header-layout--is-overlay"]=G.isOverlay,
I["yt-shelf-header-layout--tappable"]=G.isInteractive,I["yt-shelf-header-layout--optional-medium-layout-padding"]=G.useUpdatedPadding,I)),
"on:click":c,tabindex:function(){var Z;return((Z=G.isInteractive)==null?0:Z.call(G))?0:void 0}},_.e("div",{class:"yt-shelf-header-layout__header-row"},_.e(_.l,{cond:G.leadingIcon,
then:function(Z){return _.e("div",{class:"yt-shelf-header-layout__leading-icon"},_.e(_.F6,{icon:Z}))},
else:function(){return _.e(_.l,{cond:G.hasLeadingImage,then:function(){var Z,K={};return _.e("div",{class:_.O3("yt-shelf-header-layout__leading-image",(K["yt-shelf-header-layout__leading-image--circular-image"]=G.circularImage,K))},(Z=G.leadingImage)==null?void 0:Z.call(G))}})}}),_.e("div",{class:"yt-shelf-header-layout__label-container"},_.e(_.l,{cond:G.hasSuperlabel,
then:function(){var Z;return _.e("div",{class:"yt-shelf-header-layout__superlabel"},(Z=G.superlabel)==null?void 0:Z.call(G))}}),_.e("div",{class:"yt-shelf-header-layout__title-row"},_.e(mvB,{text:G.title,
className:_.O3("yt-shelf-header-layout__title",(R["yt-shelf-header-layout__title--small-title"]=G.forceSmallLayout,R)),tagLevel:G.tagLevel}),_.e(_.l,{cond:G.hasDetail,then:function(){var Z;return _.e("div",{class:"yt-shelf-header-layout__detail"},(Z=G.detail)==null?void 0:Z.call(G))}})),_.e(_.l,{cond:G.hasSublabel,
then:function(){var Z;return _.e("div",{class:"yt-shelf-header-layout__sublabel"},(Z=G.sublabel)==null?void 0:Z.call(G))}})),_.e(_.l,{cond:G.hasTrailingActions,
then:function(){var Z;return _.e("div",{class:"yt-shelf-header-layout__trailing-actions"},(Z=G.trailingActions)==null?void 0:Z.call(G))}})),_.e(_.l,{cond:G.hasBottomAccessory,
then:function(){var Z;return _.e("div",{class:"yt-shelf-header-layout__bottom-accessory"},(Z=G.bottomAccessory)==null?void 0:Z.call(G))}}))},"gd");
aFV.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var mvB=_.W(function(G){var c=G.text;var I=G.className;var R=G.tagLevel;return _.e(_.B1,null,_.e(_.W1,{when:function(){return(R==null?void 0:R())===0}},function(){return _.e("h2",{class:I},c())}),_.e(_.W1,{when:function(){return(R==null?void 0:R())===1}},function(){return _.e("h3",{class:I},c())}),_.e(_.W1,{when:function(){return(R==null?void 0:R())===2}},function(){return _.e("h4",{class:I},c())}),_.e(_.iV,null,function(){return _.e("h2",{class:I},c())}))},"hd");var ee0,TdB,Oze;_.I4=_.W(function(G){var c=G.className;var I=G.data;var R=G.disableHorizontalPadding;var Z=G.disableVerticalPadding;var K=G.forceSmallLayout;var m=G.useResponsiveLayout;var a=G.isOverlay;G=G.useUpdatedPadding;return _.e("yt-section-header-view-model",{class:_.O3("ytSectionHeaderViewModelHost",c),style:_.wi({"background-color":function(){return uP(I().backgroundColor)?_.pE(uP(I().backgroundColor)):void 0}})},_.e(aFV,{hasDetail:!1,
title:function(){return _.e(_.ul,{text:function(){return I().headline}})},
hasTitle:!0,sublabel:function(){return _.e(TdB,{data:I})},
hasSublabel:function(){return!!I().sublabel||!!I().bottomBadge},
superlabel:function(){return _.e(Oze,{data:I})},
hasSuperlabel:function(){return!!I().superlabel||!!I().topBadge},
leadingImage:function(){return _.e(ee0,{leadingAccessory:function(){return I().leadingAccessory}})},
hasLeadingImage:function(){return!!I().leadingAccessory},
trailingActions:function(){return _.e(_.sN,{data:function(){return I().trailingActions}},{flexibleActionsViewModel:_.FK})},
hasTrailingActions:function(){return!!I().trailingActions},
disableHorizontalPadding:function(){return(R==null?void 0:R())||I().disableHorizontalPadding},
disableVerticalPadding:Z,forceSmallLayout:K,useResponsiveLayout:m,isOverlay:a,isInteractive:function(){return!!_.JY(I().rendererContext)},
onClick:function(O){if(_.W8(I().rendererContext)){var N=_.JY(I().rendererContext);N&&_.iD(N,{form:{element:O.target,event:O}})}},
bottomAccessory:function(){return _.e(_.sN,{data:function(){return I().bottomAccessory}},{descriptionPreviewViewModel:function(O){return _.e(_.cc,{data:O.data,
useMediumText:!0})},
commonMarkViewModel:function(O){O=O.data;var N;return _.e(_.FG,null,(N=_.wH().resolve(_.qR(Su2)))==null?void 0:N({data:O}))}})},
hasBottomAccessory:function(){return!!I().bottomAccessory},
useUpdatedPadding:G}))},"id");
ee0=_.W(function(G){var c=G.leadingAccessory;return _.e(_.FG,null,_.e(_.l,{cond:function(){var I;return(I=c().image)!=null?I:_.dP(c().themedImage)},
then:function(I){return _.e(_.yc,{data:I,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.e(_.l,{cond:function(){return _.D(c().avatar,_.B8)},
then:function(I){return _.e(_.qF,{data:I})}}))},"jd");
TdB=_.W(function(G){var c=G.data;return _.e(_.FG,null,_.e(_.l,{cond:function(){return _.D(c().bottomBadge,owB)},
then:function(I){var R={};return _.e(_.Jp,{data:I,class:_.O3((R.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!c().sublabel},R))})}}),_.e(_.l,{cond:function(){return c().sublabel},
then:function(I){return _.e(_.ul,{text:I})}}))},"kd");
Oze=_.W(function(G){var c=G.data;return _.e(_.FG,null,_.e(_.l,{cond:function(){return _.D(c().topBadge,owB)},
then:function(I){var R={};return _.e(_.Jp,{data:I,class:_.O3((R.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!c().superlabel},R))})}}),_.e(_.l,{cond:function(){return c().superlabel},
then:function(I){return _.e(_.ul,{text:I})}}))},"ld");_.R1(_.I4,"yt-section-header-view-model",{props:{data:_.bl,className:_.bl,disableHorizontalPadding:_.bl,disableVerticalPadding:_.bl,forceSmallLayout:_.bl,useResponsiveLayout:_.bl,isOverlay:_.bl,useUpdatedPadding:_.bl}});_.Su("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var R4=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.u(R4,_.J);_.P=R4.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.P.onDataChange=function(){var G=this;_.O$(this,function(){G.updateItemVisibility()})};
_.P.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G,this.updateItemVisibility())};
_.P.updateItemVisibility=function(){var G=this;this.data&&this.data.panels&&_.Q1(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(c,I){c.hidden=I>G.elementsPerRow-1})};
_.P.requestElementsPerRow=function(){_.Xl(this.hostElement,"yt-request-elements-per-row")};
R4.prototype.onDataChange=R4.prototype.onDataChange;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],R4.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],R4.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],R4.prototype,"data",void 0);_.r([_.E({value:3}),_.h("design:type",Number)],R4.prototype,"elementsPerRow",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],R4.prototype,"onDataChange",null);_.r([_.Jc({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],R4);
_.B(R4,"ytd-primetime-promo-renderer",function(){if(QVT!==void 0)return QVT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return QVT=G},{mode:1});var NdA;var Z_=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return G};
_.u(Z_,_.J);Z_.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Z_.prototype.handleButtonRefreshAction=function(G){if(G=_.D(G,Bak))this.set("data.button",G.membershipButton),this.notifyPath("data.button")};
_.Nh.Object.defineProperties(Z_.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:(c=G.avatars)==null?void 0:c.slice(0,8))||[]}}});
_.r([_.E(),_.h("design:type",Object)],Z_.prototype,"data",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Z_.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Z_.prototype,"rendererBehavior",void 0);_.r([_.A("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],Z_.prototype,"avatars",null);
_.r([_.Jc({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Z_);
_.B(Z_,"ytd-recognition-shelf-renderer",function(){if(NdA!==void 0)return NdA;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return NdA=G},{mode:1});var lFB;var qRe;var Kr=function(){var G=_.J.apply(this,arguments)||this;G.modernButtons=_.v("web_modern_buttons");return G};
_.u(Kr,_.J);_.P=Kr.prototype;
_.P.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.P.dataChanged=function(){this.collapsed=!0};
_.P.computeVisibleItems=function(G,c){return G!==void 0&&G.items?c?G.items.slice(0,this.data.collapsedItemCount):G.items:[]};
_.P.computeHideShowMore=function(G,c,I){return G>=c||!I};
_.P.computeHideShowAll=function(G,c,I){return!(G&&c)||I};
_.P.onMoreClick=function(){this.collapsed=!1};
_.Nh.Object.defineProperties(Kr.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.v("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.oa("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.v("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Kr.prototype.dataChanged=Kr.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Kr.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Kr.prototype,"isSearch",void 0);
_.r([_.E({computed:"computeVisibleItems(data,collapsed)"}),_.h("design:type",Array)],Kr.prototype,"visibleItems",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],Kr.prototype,"collapsed",void 0);_.r([_.E({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.h("design:type",Boolean)],Kr.prototype,"hideShowMore",void 0);
_.r([_.E({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.h("design:type",Boolean)],Kr.prototype,"hideShowAll",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Kr.prototype,"modernButtons",void 0);_.r([_.A("isSearch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Kr.prototype,"typographyBump",null);
_.r([_.A("isSearch"),_.h("design:type",Object),_.h("design:paramtypes",[])],Kr.prototype,"lockupExperiments",null);_.r([_.A("isSearch"),_.h("design:type",String),_.h("design:paramtypes",[])],Kr.prototype,"thumbnailWidth",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kr.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Kr);
_.B(Kr,"ytd-vertical-list-renderer",function(){if(qRe!==void 0)return qRe;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return qRe=G},{mode:1});var wGp=_.I3(["#"]);_.Su("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Pc=function(){var G=_.J.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.u(Pc,_.J);_.P=Pc.prototype;
_.P.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.computeThumbnailStyle=function(G){return G||""};
_.P.computePlaceAnnotationUnderTitle=function(){var G;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((G=this.data)==null?void 0:G.thumbnailStyle)||"")};
_.P.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.q9i(wGp)};
_.P.computeIsPromoShelf=function(G){var c;return(G=G==null?void 0:(c=G[0])==null?void 0:c.metadataBadgeRenderer)?G.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.P.computePlaceBadgeBesideTitle=function(G){var c;return(G==null?0:(c=G[0])==null?0:c.metadataBadgeRenderer)?!this.computeIsPromoShelf(G):!1};
_.P.computeMenuIcon=function(G){return this.computeIsPromoShelf(G)?"yt-icons:more_vert":"yt-icons:more"};
_.P.onDataChange=function(){var G,c;((G=this.data)==null?0:(c=G.content)==null?0:c.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.P.onLockupRequested=function(G){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&G.detail&&G.detail.videoIds){for(var c=this.data.content.gridRenderer.items,I=new Set,R=_.Q(G.detail.videoIds),Z=R.next();!Z.done;Z=R.next())I.add(Z.value);G.detail.returnValue=c.filter(function(K){return K.gridVideoRenderer&&K.gridVideoRenderer.videoId&&I.has(K.gridVideoRenderer.videoId)}).map(function(K){return K.gridVideoRenderer})}};
_.P.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Pc.prototype.onLockupRequested=Pc.prototype.onLockupRequested;Pc.prototype.onDataChange=Pc.prototype.onDataChange;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],Pc.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Pc.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Zu),_.h("design:type",Object)],Pc.prototype,"ironResizableBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Pc.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Pc.prototype,"isSearch",void 0);_.r([_.E(),_.h("design:type",Object)],Pc.prototype,"isConstrainedList",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("kevlar_fluid_dismiss")}}),
_.h("design:type",Boolean)],Pc.prototype,"enableFluidDismiss",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.h("design:type",String)],Pc.prototype,"thumbnailStyle",void 0);_.r([_.E({computed:"computeMenuIcon(data.badges)"}),_.h("design:type",String)],Pc.prototype,"menuIcon",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.h("design:type",Boolean)],Pc.prototype,"featuredPromo",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pc.prototype,"onDataChange",null);_.r([_.qY("yt-lockup-requested"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Pc.prototype,"onLockupRequested",null);_.r([_.Jc({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Pc);
_.B(Pc,"ytd-shelf-renderer",function(){if(lFB!==void 0)return lFB;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return lFB=G},{mode:1});var FQV;var Qw=function(){return _.J.apply(this,arguments)||this};
_.u(Qw,_.J);Qw.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Nh.Object.defineProperties(Qw.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Qw.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Qw.prototype,"isPlaylist",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Qw.prototype,"isClipList",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Qw.prototype,"isPlaylistPageWithFilters",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qw.prototype,"hasTitle",null);_.r([_.E(),_.A("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qw.prototype,"isRightAligned",null);
_.r([_.Jc({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Qw);
_.B(Qw,"ytd-sort-filter-header-renderer",function(){if(FQV!==void 0)return FQV;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return FQV=G},{mode:1});var niN;var m0=function(){var G=_.J.apply(this,arguments)||this;G.enableRightArrowHidden=_.v("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return G};
_.u(m0,_.J);m0.prototype.attached=function(){var G=this;this.enableRightArrowHidden&&(this.JSC$16715_throttledOnResize=new _.qx(function(){var c;(c=G.ytdHorizontalListBehavior)==null||c.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var c;
(c=G.JSC$16715_throttledOnResize)==null||c.fire()}),this.resizeObserver.observe(this.hostElement))};
m0.prototype.detached=function(){if(this.enableRightArrowHidden){var G;(G=this.resizeObserver)==null||G.disconnect();var c;(c=this.JSC$16715_throttledOnResize)==null||c.dispose()}};
m0.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]]"}}}}}};
m0.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Nh.Object.defineProperties(m0.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.v("enable_creator_details_shelf_m2")){var G=[],c;((c=this.data)==null?0:c.creatorVideosButton)&&G.push(this.data.creatorVideosButton);var I;((I=this.data)==null?0:I.creatorAboutButton)&&G.push(this.data.creatorAboutButton);c=_.Q(this.data.creatorCustomUrlButtons||[]);for(I=c.next();!I.done;I=c.next())G.push(I.value);return G}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.v("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.WT.YtdHorizontalListBehavior),_.h("design:type",Object)],m0.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],m0.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],m0.prototype,"engagementPanel",void 0);
_.r([_.E(),_.h("design:type",Object)],m0.prototype,"enableRightArrowHidden",void 0);_.r([_.A("enableRightArrowHidden","atEnd"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],m0.prototype,"hideRightArrow",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],m0.prototype,"creatorCustomUrlButtons",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data","creatorCustomUrlButtons"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],m0.prototype,"showCreatorCustomUrlButtons",null);_.r([_.A("showCreatorCustomUrlButtons"),_.h("design:type",Number),_.h("design:paramtypes",[])],m0.prototype,"channelAvatarSize",null);_.r([_.Jc({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],m0);
_.B(m0,"ytd-video-description-infocards-section-renderer",function(){if(niN!==void 0)return niN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return niN=G},{mode:_.Qc("kevlar_poly_si_batch_j067")?1:2});var vie;var a4=function(){return _.J.apply(this,arguments)||this};
_.u(a4,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],a4.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.infoIcon)"}),_.h("design:type",Object)],a4.prototype,"infoIcon",void 0);_.r([_.Jc({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],a4);
_.B(a4,"ytd-eom-settings-disclaimer-renderer",function(){if(vie!==void 0)return vie;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return vie=G},{mode:1});var Dve;var Tq=function(){return _.J.apply(this,arguments)||this};
_.u(Tq,_.J);_.Nh.Object.defineProperties(Tq.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.suppressPaddingDisclaimer)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Tq.prototype,"componentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Tq.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Tq.prototype,"suppressPaddingDisclaimer",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Tq);
_.B(Tq,"ytd-product-list-header-renderer",function(){if(Dve!==void 0)return Dve;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Dve=G},{mode:1});var oi2;var O8=function(){return _.J.apply(this,arguments)||this};
_.u(O8,_.J);O8.prototype.computeThumbnailStyle=function(G){if(G&&(G=_.Sx(G)))return"background-color:"+G+";"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],O8.prototype,"rendererBehaviors",void 0);_.r([_.E(),_.h("design:type",Object)],O8.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],O8);
_.B(O8,"ytd-hashtag-tile-renderer",function(){if(oi2!==void 0)return oi2;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return oi2=G},{mode:1});var UvK;var ea=function(){return _.J.apply(this,arguments)||this};
_.u(ea,_.J);ea.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}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ea.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ea);
_.B(ea,"ytd-sponsorships-alert-renderer",function(){if(UvK!==void 0)return UvK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return UvK=G},{mode:1});var uQT;var Nc=function(){return _.J.apply(this,arguments)||this};
_.u(Nc,_.J);Nc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Nh.Object.defineProperties(Nc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.r([_.L(_.nI),_.h("design:type",Object)],Nc.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],Nc.prototype,"ytdLockupBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.r([_.E({selector:_.J0}),_.h("design:type",Object)],Nc.prototype,"isGridViewEnabled",void 0);
_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Nc.prototype,"watchFeedBigThumbs",null);_.r([_.A("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],Nc.prototype,"thumbnailWidth",null);_.r([_.E(),_.h("design:type",Object)],Nc.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Nc);
_.B(Nc,"ytd-compact-movie-renderer",function(){if(uQT!==void 0)return uQT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return uQT=G},{mode:1});var bzN;var kne;var sV0=_.H1("HTML_DIR")==="rtl",lh=function(){var G=_.J.apply(this,arguments)||this;G.engagementPanel=!1;G.maxLines=2;G.expandButtonOffset=0;G.showExpandButton=!1;G.isTruncated=!1;G.isExpanded=!1;G.currentSnippetType=2;G.alwaysShowExpandButton=!1;G.JSC$16732_lastWidth=NaN;G.observer=null;G.left=0;G.right=0;G.mid=0;G.longestSnippetLength=0;G.isFinalSnippet=!1;G.isFirstMutation=!1;G.isResetMutation=!1;G.OVERFLOW_THRESHOLD=5;return G};
_.u(lh,_.J);_.P=lh.prototype;_.P.onClick=function(G){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Gf(_.CE(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;if((c=window.getSelection())==null||!c.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.P.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.P.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.P.updateTextOnSnippetTypeChange=function(){_.v("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.P.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.P.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Ck(new _.iW("AttributedSnippet is empty when the description is not empty",this.text))};
_.P.mutationCallback=function(){if(this.observer!=null){var G=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var c=Math.floor(G*this.maxLines/8);this.setSnippetText(this.text,c);c!==0||this.attributedTextIsEmpty()||_.Ck(new _.iW("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;G=G*this.maxLines/8;this.left=0;var I;this.right=Math.min(G*2,(I=(c=this.simpleText)==null?void 0:c.length)!=null?I:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.P.mutationObserve=function(G){var c=this;this.observer||(this.observer=new MutationObserver(function(){c.mutationCallback()}));
this.observer.observe(G,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.P.attached=function(){var G=this;_.O$(this,function(){G.resize()})};
_.P.isExpandedChanged=function(){_.Xl(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.P.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.P.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var G="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((sV0?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",G);this.snippetContainer.style.setProperty("mask-image",
G)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(sV0?"right":"left",this.expandButtonOffset+"px")};
_.P.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.P.setSnippetText=function(G,c){G||(G={});if(_.Cd(G)){var I=hN(G,c);I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.alignment||I.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:hN(G,c),headerRuns:WFg(c,this.headerRuns)},this.currentSnippetType=0):_.Ck(new _.iW("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=xC(G.content||"",c),this.currentSnippetType=2)}else{a:{I=UmT(G,c);if(I.runs){I=_.Q(I.runs);for(var R=
I.next();!R.done;R=I.next())if(R=R.value,R.bold||R.deemphasize||R.italics||R.strikethrough||R.textColor||R.navigationEndpoint||_.D(R,zz)){I=!0;break a}}I=!1}I?this.formattedSnippetText?(this.formattedSnippetText.text=UmT(G,c),this.currentSnippetType=1):_.Ck(new _.iW("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=xC(_.HY(G),c),this.currentSnippetType=2)}};
_.P.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.P.attributedTextIsEmpty=function(){var G=this.text;if(!_.Cd(G))return!0;var c;return((c=G.content)==null?void 0:c.length)===0?!0:!1};
_.P.resize=function(G){if(this.snippetText){if(G===void 0?0:G)this.JSC$16732_lastWidth=NaN;var c=this.hostElement.offsetWidth;if(c!==this.JSC$16732_lastWidth&&!this.isExpanded)if(this.JSC$16732_lastWidth=c,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;G=0;var I,R;c=Math.min(c*this.maxLines/8*2,(R=(I=this.simpleText)==null?void 0:I.length)!=null?R:0)-1;for(I=0;G<=c;)R=Math.floor(G+(c-G)/2),this.setSnippetText(this.text,R),this.isOverflowing()?c=R-1:(G=R+1,I=R);this.setSnippetText(this.text,I);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.P.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.P.onExpandClick=function(){var G=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.v("inline_expander_reset_focus_killswitch")||_.O$(this,function(){var c;((c=_.wH().resolve(_.qR(_.zb)))==null?0:c.isKeyBoardInUse())&&_.mp(G.hostElement)});
_.Xl(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.P.onCollapseClick=function(){this.collapse();_.Xl(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.P.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.P.computeExpandButtonOffset=function(){var G=this.expandSizer;return G?sV0?G.offsetParent?G.offsetParent.offsetWidth-G.offsetWidth-G.offsetLeft:0:G.offsetLeft:0};
_.Nh.Object.defineProperties(lh.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Cd(this.text)?this.text.content||"":_.HY(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 _.Cd(this.text)?!0:this.text&&_.v("web_replace_formatted_with_attributed_string")&&alT(this.text)?(this.text=_.Vc(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}}});
lh.prototype.onTextChanged=lh.prototype.onTextChanged;lh.prototype.updateMaskAndExpandButtonOffset=lh.prototype.updateMaskAndExpandButtonOffset;lh.prototype.updateSnippetContainerMaxHeight=lh.prototype.updateSnippetContainerMaxHeight;lh.prototype.isExpandedChanged=lh.prototype.isExpandedChanged;lh.prototype.updateTextOnSnippetTypeChange=lh.prototype.updateTextOnSnippetTypeChange;lh.prototype.updateIsFormattedExpanded=lh.prototype.updateIsFormattedExpanded;lh.prototype.updateIsAttributedExpanded=lh.prototype.updateIsAttributedExpanded;
lh.prototype.onClick=lh.prototype.onClick;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],lh.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lh.prototype,"text",void 0);_.r([_.E(),_.h("design:type",Array)],lh.prototype,"headerRuns",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],lh.prototype,"engagementPanel",void 0);_.r([_.E(),_.h("design:type",Object)],lh.prototype,"maxLines",void 0);
_.r([_.E(),_.h("design:type",String)],lh.prototype,"expandLabel",void 0);_.r([_.E(),_.h("design:type",String)],lh.prototype,"collapseLabel",void 0);_.r([_.E(),_.h("design:type",Object)],lh.prototype,"expandCommand",void 0);_.r([_.E(),_.h("design:type",Object)],lh.prototype,"expandButtonOffset",void 0);_.r([_.A("text"),_.h("design:type",String),_.h("design:paramtypes",[])],lh.prototype,"simpleText",null);
_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],lh.prototype,"onClick",null);_.r([_.A("text","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],lh.prototype,"expandedText",null);_.r([_.A("headerRuns","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],lh.prototype,"expandedHeaderRuns",null);
_.r([_.A("text"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lh.prototype,"hasAttributedStringText",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],lh.prototype,"showExpandButton",void 0);_.r([_.A("collapseLabel","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],lh.prototype,"showCollapseButton",null);_.r([_.E(),_.h("design:type",Object)],lh.prototype,"isTruncated",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],lh.prototype,"isExpanded",void 0);_.r([_.E(),_.h("design:type",Boolean)],lh.prototype,"isAttributedExpanded",void 0);_.r([_.wD("isExpanded","hasAttributedStringText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lh.prototype,"updateIsAttributedExpanded",null);_.r([_.E(),_.h("design:type",Boolean)],lh.prototype,"isFormattedExpanded",void 0);
_.r([_.wD("isExpanded","hasAttributedStringText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lh.prototype,"updateIsFormattedExpanded",null);_.r([_.E(),_.h("design:type",Number)],lh.prototype,"currentSnippetType",void 0);_.r([_.A("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],lh.prototype,"useAttributedSnippet",null);
_.r([_.A("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],lh.prototype,"useFormattedSnippet",null);_.r([_.A("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],lh.prototype,"usePlainSnippet",null);_.r([_.E(),_.h("design:type",Object)],lh.prototype,"alwaysShowExpandButton",void 0);_.r([_.wD("currentSnippetType"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lh.prototype,"updateTextOnSnippetTypeChange",null);
_.r([_.E(),_.h("design:type",Object)],lh.prototype,"attributedSnippetText",void 0);_.r([_.nH("#snippet"),_.h("design:type",HTMLElement)],lh.prototype,"snippetContainer",void 0);_.r([_.nH("#snippet-text"),_.h("design:type",HTMLElement)],lh.prototype,"snippetText",void 0);_.r([_.nH("#plain-snippet-text"),_.h("design:type",HTMLElement)],lh.prototype,"plainSnippetText",void 0);_.r([_.nH("#formatted-snippet-text"),_.h("design:type",Object)],lh.prototype,"formattedSnippetText",void 0);
_.r([_.nH("#attributed-snippet-text"),_.h("design:type",Object)],lh.prototype,"attributedSnippetTextEl",void 0);_.r([_.nH("#expand"),_.h("design:type",HTMLElement)],lh.prototype,"expandButton",void 0);_.r([_.nH("#expand-sizer"),_.h("design:type",HTMLElement)],lh.prototype,"expandSizer",void 0);_.r([_.uO("isExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lh.prototype,"isExpandedChanged",null);
_.r([_.wD("isExpanded","maxLines"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lh.prototype,"updateSnippetContainerMaxHeight",null);_.r([_.wD("isTruncated","showExpandButton","expandButtonOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lh.prototype,"updateMaskAndExpandButtonOffset",null);
_.r([_.uO("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lh.prototype,"onTextChanged",null);_.r([_.Jc({is:"ytd-text-inline-expander",disableElementRegistration:!0})],lh);
_.B(lh,"ytd-text-inline-expander",function(){if(kne===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);kne=G}G=kne;return G},{mode:2});var qc=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return G};
_.u(qc,_.J);qc.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
qc.prototype.handleUpdateDescriptionAction=function(G){if(G=_.D(G,_.HIA))if(G.attributedDescription)this.set("data.attributedDescriptionBodyText",G.attributedDescription);else if(G.description){var c;((c=this.data)==null?0:c.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Vc(G.description)):this.set("data.descriptionBodyText",G.description)}};
_.Nh.Object.defineProperties(qc.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.attributedDescriptionBodyText)||!((c=this.data)==null||!c.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.collapsedLineCount){var c;return(c=this.data)==null?void 0:c.collapsedLineCount}G=_.DH("web_watch_description_collapsed_default_lines",12);if(_.v("ww_desc_line_page_size_ks"))return G;c=Math.round(_.nE().height*_.DH("web_watch_description_screen_height_percentage",.5)/20);return Math.max(c,G)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return(I=(G=this.data)==null?void 0:G.descriptionBodyText)!=null?I:(c=this.data)==null?void 0:c.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.sourceAttributions}}});
qc.prototype.panelContentVisibleChanged=qc.prototype.panelContentVisibleChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],qc.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],qc.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qc.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Boolean)],qc.prototype,"panelContentVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qc.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qc.prototype,"shortsPanel",void 0);_.r([_.nH("#inline-expander"),_.h("design:type",Object)],qc.prototype,"inlineExpander",void 0);
_.r([_.wD("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qc.prototype,"panelContentVisibleChanged",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],qc.prototype,"hasDescriptionText",null);_.r([_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],qc.prototype,"collapsedLines",null);
_.r([_.A("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.h("design:type",Object),_.h("design:paramtypes",[])],qc.prototype,"descriptionText",null);_.r([_.A("data","data.headerRuns"),_.h("design:type",Object),_.h("design:paramtypes",[])],qc.prototype,"headerRuns",null);_.r([_.A("data","data.sourceAttributions"),_.h("design:type",Object),_.h("design:paramtypes",[])],qc.prototype,"sourceAttributions",null);
_.r([_.Jc({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],qc);
_.B(qc,"ytd-expandable-video-description-body-renderer",function(){if(bzN!==void 0)return bzN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return bzN=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var LQK;var AvB=_.W(function(G){var c=G.data;return _.e("factoid-renderer",{class:"ytwFactoidRendererHost"},_.e("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return c().accessibilityText}},_.e("span",{class:"ytwFactoidRendererValue"},_.e(_.ul,{text:function(){return c().value}})),_.e("span",{class:"ytwFactoidRendererLabel"},_.e(_.ul,{text:function(){return c().label}}))))},"md");_.R1(AvB,"factoid-renderer",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;return _.e("upload-time-factoid-renderer",null,_.e(_.sN,{data:function(){return c().factoid}},{factoidRenderer:AvB}))},"nd"),"upload-time-factoid-renderer",{props:{data:_.G9}});_.R1(_.W(function(G){var c=G.data;return _.e("view-count-factoid-renderer",null,_.e(_.sN,{data:function(){return c().factoid}},{factoidRenderer:AvB}))},"od"),"view-count-factoid-renderer",{props:{data:_.G9}});var wT=function(){var G=_.J.apply(this,arguments)||this;G.shortsPanel=!1;G.engagementPanel=!1;G.watchWhileSdp=_.v("shorts_desktop_watch_while_sdp");return G};
_.u(wT,_.J);wT.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"}}}}};
_.Nh.Object.defineProperties(wT.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var G;return(G=this.data)==null?void 0:G.channel}}});
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],wT.prototype,"componentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wT.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wT.prototype,"shortsPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wT.prototype,"engagementPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wT.prototype,"watchWhileSdp",void 0);_.r([_.A("shortsPanel","engagementPanel","data.channel"),_.h("design:type",Object),_.h("design:paramtypes",[])],wT.prototype,"showChannelInfo",null);_.r([_.Jc({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],wT);
_.B(wT,"ytd-video-description-header-renderer",function(){if(LQK!==void 0)return LQK;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return LQK=G},{mode:1});var $vp;var Fz=function(){return _.J.apply(this,arguments)||this};
_.u(Fz,_.J);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Fz.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Fz.prototype,"noPadding",void 0);_.r([_.E(),_.h("design:type",Object)],Fz.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Fz);
_.B(Fz,"ytd-list-item-view-model",function(){if($vp!==void 0)return $vp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return $vp=G},{mode:1});var SRN;var pGp;var Mze;var VzA;var nr=function(){var G=_.J.apply(this,arguments)||this;G.adaptiveFullWidth=!1;G.modernButtons=_.v("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return G};
_.u(nr,_.J);nr.prototype.handleSetTimestamp_=function(G){this.data&&this.data.shortUrl&&(_.Q1(this.hostElement).querySelector("#share-url").value=G.isSet?_.KU(this.data.shortUrl,"t",G.timestamp):this.data.shortUrl)};
nr.prototype.handleSignalActionCopyShareUrl_=function(G,c){(_.v("killswitch_copy_link_target_check")||_.Q1(this.hostElement).querySelector("#copy-button")===c)&&this.copyUrlToClipboard()};
nr.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Q1(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
nr.prototype.computeStyle_=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],nr.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],nr.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.h("design:type",String)],nr.prototype,"rendererStyle",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],nr.prototype,"adaptiveFullWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],nr.prototype,"modernButtons",void 0);_.r([_.E(),_.h("design:type",Object)],nr.prototype,"buttonOverrides",void 0);_.r([_.Em({is:"yt-copy-link-renderer",disableElementRegistration:!0})],nr);
_.B(nr,"yt-copy-link-renderer",function(){if(VzA===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Mze===void 0&&(Mze=document.createElement("template"));var R=Mze;I.call(c,R.content.cloneNode(!0),G.content.firstChild);VzA=G}G=VzA;return G},{mode:2});_.Su("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var vc=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return G};
_.u(vc,_.J);_.P=vc.prototype;_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var G=_.wH().resolve(_.qR(_.zb));G&&(this.keyboardFocused=G.isKeyBoardInUse())}};
_.P.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.P.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.P.onChange_=function(){if(this.data){var G=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;G&&this.ytComponentBehavior.resolveCommand(G);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.P.handleUpdateToggleAction_=function(G){(G=_.D(G,NwB))&&this.data&&G.targetId==this.data.targetId&&this.set("data.toggled",G.toggled)};
_.P.toBoolean_=function(G){return!!G};
_.P.reset=function(){};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("data-changed",this.data))};
_.P.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
vc.prototype.dataChangedForBinding=vc.prototype.dataChangedForBinding;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],vc.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],vc.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],vc.prototype,"data",void 0);_.r([_.E({computed:"computeDescription_(data.*)"}),_.h("design:type",Object)],vc.prototype,"description_",void 0);_.r([_.E({value:function(){return!!_.wH().resolve(_.qR(_.zb))&&_.v("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"useKeyboardFocused",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"keyboardFocused",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"dataChangedForBinding",null);_.r([_.Em({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],vc);
_.B(vc,"yt-toggle-form-field-renderer",function(){if(pGp===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;SRN===void 0&&(SRN=document.createElement("template"));var R=SRN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);pGp=G}G=pGp;return G},{mode:2});var ze2;var Ei0;var D_=function(){var G=_.J.apply(this,arguments)||this;G.isDarkTheme=!1;G.isSearch=!1;G.noTopMargin=_.v("kevlar_watch_no_top_margin");G.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(D_,_.J);_.P=D_.prototype;_.P.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.P.dataChanged=function(){var G=this.getSelectedIndex();if(G>0)this.selected=G;else{this.selected=0;var c,I;(c=this.ytScrollableChipCloudBehavior)==null||(I=c.reset)==null||I.call(c)}};
_.P.getSelectedIndex=function(){var G;if((G=this.data)==null||!G.chips)return-1;G=-1;for(var c,I=0;I<((c=this.data)==null?void 0:c.chips.length);I++){var R=void 0,Z=void 0;if((R=this.data)==null?0:(Z=R.chips[I].chipCloudChipRenderer)==null?0:Z.isSelected){G=I;break}}return G};
_.P.onResize=function(){var G=this.ytScrollableChipCloudBehavior;_.O$(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.O$(G,G.setButtonsState)};
_.P.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.P.handleRelatedChipCommand=function(G,c){G=this.JSC$16759_chipsSelector.indexOf(c);G!==-1&&this.JSC$16759_chipsSelector.selectIndex(G)};
_.P.handleChipCloudChipSelectAction=function(G){G=this.JSC$16759_chipsSelector.indexOf(G);G>-1&&this.JSC$16759_chipsSelector.selectIndex(G)};
_.P.handleChipCloudChipDeselectAction=function(){var G=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16759_chipsSelector&&((G==null?0:G.continuationCommand)?_.Gs(this.hostElement,[G]):(G==null?0:G.searchEndpoint)?this.ytComponentBehavior.resolveCommand(G):G&&_.cd(this.hostElement,[G],this.hostElement),this.JSC$16759_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.P.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
D_.prototype.onResize=D_.prototype.onResize;D_.prototype.dataChanged=D_.prototype.dataChanged;D_.prototype.isSearchChanged=D_.prototype.isSearchChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],D_.prototype,"actionHandlerBehavior",void 0);
_.r([_.L(_.Zu),_.h("design:type",Object)],D_.prototype,"ironResizableBehavior",void 0);_.r([_.L(),_.h("design:type",Gh)],D_.prototype,"ytScrollableChipCloudBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],D_.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],D_.prototype,"data",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],D_.prototype,"selected",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],D_.prototype,"isDarkTheme",void 0);_.r([_.E({value:160}),_.h("design:type",Number)],D_.prototype,"scrollDistance",void 0);_.r([_.E(),_.h("design:type",Object)],D_.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],D_.prototype,"noTopMargin",void 0);_.r([_.nH("#chips"),_.h("design:type",Object)],D_.prototype,"JSC$16759_chipsSelector",void 0);
_.r([_.wD("isSearch"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D_.prototype,"isSearchChanged",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D_.prototype,"dataChanged",null);_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D_.prototype,"onResize",null);_.r([_.Em({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],D_);
_.B(D_,"yt-chip-cloud-renderer",function(){if(Ei0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;ze2===void 0&&(ze2=document.createElement("template"));var R=ze2;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Ei0=G}G=Ei0;return G},{mode:2});var Jv0,WQp=function(){return Jv0!==void 0?Jv0:Jv0=document.createElement("template")};
document.head.appendChild(WQp().content);var izA;var fFk=document.head,BdN=fFk.appendChild,rvT;if(izA===void 0){var jVp=document.createElement("template");_.b(jVp,"");jVp.content.insertBefore(WQp().content.cloneNode(!0),jVp.content.firstChild);izA=jVp}rvT=izA;BdN.call(fFk,rvT.content);var xvi=_.W(function(G){var c=G.data;return _.e("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.e("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.e("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.e(_.l,{cond:function(){return _.dP(c().image)},
then:function(I){return _.e("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.e(_.yc,{data:I,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.e("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.e(_.ul,{text:function(){return c().title}})),_.e("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.e(_.ul,{text:function(){return c().subtitle}})))),_.e(_.l,{cond:function(){var I;
return(I=c())==null?void 0:I.hasBottomDivider},
then:function(){return _.e("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"pd");var tzN=_.W(function(G){var c=G.data;return _.e("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.e("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.e(_.sN,{data:function(){var I;return(I=c().offerPlanDetailsItem)!=null?I:[]}},{offerPlanDetailsItemViewModel:function(I){return _.e("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.e(xvi,{data:I.data}))}})),_.e("div",null,_.e(_.l,{cond:function(){return c().hasBottomDivider},
then:function(){return _.e("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.e("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.e("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.e("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.e("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"qd");var he0=_.W(function(G){var c=G.data;G=_.Q(_.ks(!1,void 0,"MrXxy"));var I=G.next().value,R=G.next().value,Z=_.Nx(function(){R(!I());return!1}),K=function(){var m;
return(m=c().offerPlanDetailsContainer)!=null?m:[]};
return _.e("lp-complex-offer-card-details-view-model",null,_.e("div",null,_.e(_.l,{cond:function(){return I()},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.e("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Z,"aria-expanded":I},_.e(_.ul,{text:function(){return c().expandedTitle}})),_.e("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.e(_.sN,{data:K},{offerPlanDetailsContainerViewModel:function(m){return _.e("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.e(tzN,{data:m.data}))}})),_.e("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.e(_.ul,{text:function(){return c().legalText}})))},
else:function(){return _.e("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Z,"aria-expanded":I},_.e(_.ul,{text:function(){return c().collapsedTitle}}),_.e("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.e(_.F6,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"rd");var dvk=_.W(function(G){var c=G.data;return _.e("lp-complex-offer-card-option-view-model",null,_.e("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.e(_.l,{cond:function(){return c().topDividerText},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.e("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.e("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.e("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.e(_.ul,{text:function(){return c().topDividerText}}))))}}),_.e(_.l,{cond:function(){return c().description},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.e(_.ul,{text:function(){return c().description}}))}}),_.e(_.l,{cond:function(){return c().planPricingPrimary},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.e(_.ul,{text:function(){return c().planPricingPrimary}}))}}),_.e(_.l,{cond:function(){return c().planPricingSecondary},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.e(_.ul,{text:function(){return c().planPricingSecondary}}))}}),_.e(_.l,{cond:function(){return c().primaryButton},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.e(_.sN,{data:function(){return c().primaryButton}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"sd");var CC9=_.W(function(G){var c=G.data;var I=function(){var K;return((K=c())==null?void 0:K.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var R={},Z={};return _.e("ytm-lp-complex-offer-card-view-model",null,_.e("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.e("div",{class:_.O3((G.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=I,G),"ytmLpComplexOfferCardViewModelCardContainer")},_.e(_.l,{cond:function(){var K;return(K=c())==null?void 0:K.bannerText},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.e("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.e(_.ul,{text:function(){return c().bannerText}})))}}),_.e(_.l,{cond:function(){return _.dP(c().logo)},
then:function(K){var m={};return _.e("div",{class:_.O3((m.ytmLpComplexOfferCardViewModelLogoAlignLeft=I,m),"ytmLpComplexOfferCardViewModelLogo")},_.e(_.yc,{data:K,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.e("div",{class:_.O3((R.ytmLpComplexOfferCardViewModelTitleAlignLeft=I,R),"ytmLpComplexOfferCardViewModelTitle")},_.e(_.ul,{text:function(){return c().title}})),_.e(_.l,{cond:function(){var K;
return(K=c())==null?void 0:K.subtitle},
then:function(){var K={};return _.e("div",{class:_.O3((K.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=I,K),"ytmLpComplexOfferCardViewModelSubtitle")},_.e(_.ul,{text:function(){return c().subtitle}}))}}),_.e(_.l,{cond:function(){return c().planPricingPrimary},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.e(_.ul,{text:function(){return c().planPricingPrimary}}))}}),_.e(_.l,{cond:function(){return c().planPricingSecondary},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.e(_.ul,{text:function(){return c().planPricingSecondary}}))}}),_.e(_.l,{cond:function(){return c().purchaseButton},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.e(_.sN,{data:function(){return c().purchaseButton}},{buttonViewModel:function(K){return _.e(_.BR,{data:K.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.e(_.l,{cond:function(){var K;
return(K=c())==null?void 0:K.offerOptions},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.e(_.sN,{data:function(){return c().offerOptions}},{lpComplexOfferCardOptionViewModel:dvk}))}}),_.e("div",{class:_.O3((Z.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=I,Z),"ytmLpComplexOfferCardViewModelLegalText")},_.e(_.ul,{text:function(){return c().legalText}})),_.e(_.l,{cond:function(){var K;
return(K=c())==null?void 0:K.offerCardDetails},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.e(_.sN,{data:function(){return c().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:he0}))}}))))},"td");var Hze=_.W(function(G){var c=G.data;var I=function(){var m;return((m=c())==null?void 0:m.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var R={},Z={},K={};return _.e("ytm-lp-complex-offer-card-section-view-model",null,_.e("div",{class:_.O3("ytmLpComplexOfferCardSectionViewModelHost")},_.e("div",{class:_.O3((G.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=I,G),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.e("div",{class:_.O3((R.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=I,R),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.e("h2",{class:_.O3((Z.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
I,Z),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.e(_.ul,{text:function(){return c().title}}))),_.e(_.l,{cond:function(){var m;
return(m=c())==null?void 0:m.subtitle},
then:function(){var m={},a={};return _.e("div",{class:_.O3((m.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=I,m),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.e("div",{class:_.O3((a.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=I,a),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.e(_.ul,{text:function(){return c().subtitle}})))}}),_.e("div",{class:_.O3((K.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=I,K),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.e(_.sN,{data:function(){var m;
return(m=c().offerPlans)!=null?m:[]}},{lpComplexOfferCardViewModel:function(m){return _.e("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.e(CC9,{data:m.data}))}})))))},"ud");var XGi=_.W(function(G){return _.e("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.e("div",{class:"ytLpCouponBannerViewModelIcon"},_.e(_.F6,{icon:function(){return"price_tag"}})),_.e("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.e("div",{class:"ytLpCouponBannerViewModelContent"},_.e("div",{class:"ytLpCouponBannerViewModelHeading"},_.e(_.ul,{text:function(){var c;
return(c=G.data())==null?void 0:c.title}})),_.e("div",{class:"ytLpCouponBannerViewModelBody"},_.e(_.ul,{text:function(){var c;
return(c=G.data())==null?void 0:c.subtitle}})))))},"vd");
XGi.idomCompat=!0;_.o4=J8B.getInstance();var yvA;yvA=_.W(function(G){return _.e("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":G.shouldAriaHideContent},_.e("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:G.questionId},_.e(_.ul,{text:G.question})))},"wd");
_.giN=_.W(function(G){var c=G.data;var I=G.themeOverride;G=_.Q(_.ks(!1,void 0,"pNli2b"));var R=G.next().value,Z=G.next().value;G=_.Nx(function(){Z(!R());return!1});
var K=function(){return R()?"EXPAND_LESS":"EXPAND_MORE"},m=("faq-container"+_.Yb(_.o4)).toString(),a="faq-question-and-answers-section-question"+_.Yb(_.o4),O={},N={};
return _.e("faq-entry-view-model",null,_.e("div",{class:_.O3("ytLpFaqEntryViewModelHost",(O.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return I==null?void 0:I().useDarkTheme},O))},_.e("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":G,role:"button","aria-expanded":R,"aria-labelledby":a.toString(),"tab-index":"0"},_.e(yvA,{question:function(){return c().question},
questionId:a,shouldAriaHideContent:!0}),_.e(_.l,{cond:function(){return R()!==void 0},
then:function(){return _.e("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.e(_.F6,{icon:K,ariaHidden:!0}),_.e("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.e("div",{class:_.O3("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(N.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!R()},N))},_.e("div",{id:m},_.e(_.fh,{each:function(){return c().answers||[]}},function(q){return _.e("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.e(_.ul,
{text:q}))})))))},"xd");
_.giN.idomCompat=!0;var YRK=_.W(function(G){var c=G.data;var I=G.themeOverride;G={};return _.e("lp-faq-section-view-model",null,_.e("div",{class:_.O3("yt-lp-faq-section-view-model",(G["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},G))},_.e("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.e(_.l,{cond:function(){return c().header},
then:function(R){return _.e("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.e(_.ul,{text:R}))}}),_.e("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.e(_.sN,{data:function(){return c().faqs}},{faqEntryViewModel:function(R){return _.e(_.giN,{data:R.data,
themeOverride:I})}})),_.e("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.e(_.fh,{each:function(){return c().footers||[]}},function(R){return _.e(_.ul,{text:R})})),_.e(_.l,{cond:function(){return c().legal},
then:function(R){return _.e("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.e(_.ul,{text:R}))}}))))},"yd");
YRK.idomCompat=!0;var G30=_.W(function(G){var c=G.data;var I=G.themeOverride;_.tI(function(){var m=c().gtmId;m&&_.Zs(m,_.H1("GL",""))});
var R={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var m,a,O;return(O=(m=c().logo)==null?void 0:(a=m.accessibilityData)==null?void 0:a.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Z=_.wH().resolve(_.qR(_.d0)),K=function(){return Z&&Z()||(I==null?void 0:I().useDarkTheme)};
return _.e("lp-header-section-view-model",null,_.e("div",{class:function(){var m=c().layoutType,a=c().marginType==="LP_SECTION_MARGIN_TYPE_TOP",O=I==null?void 0:I().useDarkTheme,N=["lp-header-section-view-model"];switch(m){case "LP_MODULE_LAYOUT_TYPE_PTC":N.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":N.push("lp-header-section-view-model--narrow-header-layout-type")}a&&N.push("lp-header-section-view-model__lp-header-section-margin");O&&N.push("lp-header-section-view-model--premium-force-dark-mode");
return N.join(" ")}},_.e(_.l,{cond:function(){return c().logo},
then:function(){return _.e("div",null,_.e(_.l,{cond:K,then:function(){return _.e(_.l,{cond:function(){var m;return(m=c().logo)==null?void 0:m.imageDark},
then:function(m){return _.e(_.yc,Object.assign({},{data:m},R))}})},
else:function(){return _.e(_.l,{cond:function(){var m;return(m=c().logo)==null?void 0:m.imageLight},
then:function(m){return _.e(_.yc,Object.assign({},{data:m},R))}})}}))}}),_.e(_.l,{cond:function(){return c().title},
then:function(m){return _.e("div",{class:"lp-header-section-view-model__lp-header-title"},_.e(_.ul,{text:m}))}}),_.e("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.e(_.l,{cond:function(){return c().subtitles},
then:function(m){return _.e(_.fh,{each:m},function(a){return _.e("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.e(_.ul,{text:a}))})}})),_.e(_.l,{cond:function(){return c().additionalInfo},
then:function(m){return _.e("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.e(_.ul,{text:m}))}}),_.e("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.e(_.l,{cond:function(){return c().primaryButton},
then:function(m){return _.e("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.e(_.sN,{data:m},{buttonViewModel:_.BR}))}}),_.e(_.l,{cond:function(){return c().secondaryButton},
then:function(m){return _.e("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.e(_.sN,{data:m},{buttonViewModel:_.BR}))}})),_.e(_.l,{cond:function(){return c().otherOffersInfo},
then:function(m){return _.e("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.e(_.ul,{text:m}))}}),_.e("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.e(_.l,{cond:function(){return c().billingInfo},
then:function(m){return _.e(_.fh,{each:m},function(a){return _.e("div",null,_.e(_.ul,{text:a}))})}}))))},"zd");
G30.idomCompat=!0;var cCA=_.W(function(G){return _.e("lp-header-upsell-banner-view-model",{class:_.O3("lpHeaderUpsellBannerViewModelHost",G.className,{})},_.e("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.e(_.F6,{icon:function(){return"CAMPAIGN"}})),_.e("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.e("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.e("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.e("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.e(_.ul,{text:function(){var c;
return(c=G.data())==null?void 0:c.description}})))),_.e(_.sN,{data:function(){var c;
return(c=G.data())==null?void 0:c.purchaseButton}},{buttonViewModel:function(c){return _.e(_.BR,{data:c.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Ad");var IvT=_.W(function(G){var c=G.data;var I=_.gD(G.themeOverride,{useDarkTheme:!1});G={};G=_.O3("ytmLpHeadlineSectionViewModelHost",(G.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return I().useDarkTheme},G));
return _.e("lp-headline-section-view-model",null,_.e("div",{class:G},_.e(_.l,{cond:function(){return c().title},
then:function(R){return _.e("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.e(_.ul,{text:R}))}}),_.e(_.l,{cond:function(){return c().subtitle},
then:function(R){return _.e("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.e(_.ul,{text:R}))}})))},"Bd");var Rii=_.W(function(G){var c=G.data;var I=G.themeOverride;var R=_.wH().resolve(_.qR(_.d0)),Z=function(){return R&&R()||(I==null?void 0:I().useDarkTheme)},K=function(){var N,q;
var w=Z()?(N=c().textBackgroundImage)==null?void 0:N.imageDark:(q=c().textBackgroundImage)==null?void 0:q.imageLight;return PGT((w==null?void 0:w.sources)||[])},m=function(){var N,q;
return Z()?(N=c().featureImage)==null?void 0:N.imageDark:(q=c().featureImage)==null?void 0:q.imageLight},a=function(){return c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},O=function(){var N,q;
return Z()?(N=c().logo)==null?void 0:N.imageDark:(q=c().logo)==null?void 0:q.imageLight};
return _.e("ytm-lp-large-feature-section-view-model",null,_.e("div",{class:function(){var N=c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",q=c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",w=(c().index||0)%2===1,F=I==null?void 0:I().useDarkTheme,n=["yt-lp-large-feature-section-view-model"];N?n.push("yt-lp-large-feature-section-view-model--music-feature-type"):q?n.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):w||n.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
F&&n.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return n.join(" ")}},_.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.e(_.l,{cond:m,
then:function(){return _.e(_.yc,{data:function(){return m()},
alt:function(){var N,q,w;return(w=(N=c().featureImage)==null?void 0:(q=N.accessibilityData)==null?void 0:q.label)!=null?w:""},
contentMode:a})}})),_.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var N;return((N=K())==null?0:N.url)?"background-image: url("+_.dS(K().url)+");":""}},_.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.e(_.l,{cond:O,
then:function(){return _.e(_.yc,{data:function(){return O()},
alt:function(){var N,q,w;return(w=(N=c().logo)==null?void 0:(q=N.accessibilityData)==null?void 0:q.label)!=null?w:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.e(_.l,{cond:function(){return c().eyebrowText},
then:function(){return _.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.e(_.ul,{text:function(){return c().eyebrowText}}))}}),_.e(_.l,{cond:function(){return c().title},
then:function(){return _.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.e(_.ul,{text:function(){return c().title}}))}}),_.e(_.l,{cond:function(){return c().subtitles},
then:function(){return _.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.e(_.fh,{each:function(){return c().subtitles||[]}},function(N){return _.e(_.ul,{text:N})}))}})))))},"Cd");
Rii.idomCompat=!0;var Z_0=_.W(function(G){return _.e("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.e("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.e(_.F6,{icon:function(){var c;return(c=G.data())==null?void 0:c.iconType},
className:function(){var c;switch((c=G.data())==null?void 0:c.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var c;return((c=G.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.e("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.e(_.ul,{text:function(){var c;
return(c=G.data())==null?void 0:c.text},
className:function(){var c;return((c=G.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Dd");var KaK=_.W(function(G){G=_.YW(G,{config:void 0,themeOverride:void 0});var c=G.data,I=G.config,R=G.themeOverride;G={};G=_.O3("ytmLpOfferCardOptionViewModelHost",(G.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var a;return(a=R())==null?void 0:a.useDarkTheme},G));
var Z=_.Nx(function(){var a,O;(a=I())==null||(O=a.handleRadioButtonClick)==null||O.call(a,c());return!1}),K=function(){var a;
return(a=I())==null?void 0:a.shouldDisplayRadioButton},m=function(){var a;
return(a=c().featureListItems)!=null?a:[]};
return _.e("ytm-lp-offer-card-option-view-model",null,_.e("div",{class:G,"on:click":_.Nx(function(){if(K()){var a,O;(a=I())==null||(O=a.handleRadioButtonClick)==null||O.call(a,c())}return!1})},_.e(_.l,{cond:K,
then:function(){return _.e("div",null,_.e("input",{type:"radio","on:click":Z,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var a;return!((a=I())==null||!a.isOptionSelected)}}))}}),_.e("div",null,_.e("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.e(_.ul,{text:function(){return c().eyebrowText}})),_.e("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.e(_.ul,
{text:function(){return c().subtitle}})),_.e(_.l,{cond:function(){return m().length>0},
then:function(){return _.e("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.e(_.sN,{data:m},{lpFeatureListItemViewModel:Z_0}))}}),_.e("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.e(_.ul,{text:function(){return c().description}})))))},"Ed");
KaK.idomCompat=!0;var PA9=_.W(function(G){var c=G.data;var I=G.themeOverride;G=_.Q(_.Gz(function(){var K,m=(K=c().offerOptions)==null?void 0:K[0];return _.D(m,mHp)||{}}));
var R=G.next().value,Z=G.next().value;G={};return _.e("ytm-lp-offer-card-view-model",null,_.e("div",{class:_.O3("ytmLpOfferCardViewModelHost",(G.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(I==null||!I().useDarkTheme)},G))},_.e("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.e(_.l,{cond:function(){return c().titleIconType},
then:function(){return _.e("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.e(_.F6,{icon:function(){var K;return((K=c().titleIconType)==null?void 0:K.toString())||""}}))}}),_.e("div",{class:"ytmLpOfferCardViewModelTitleText"},_.e(_.ul,{text:function(){return c().title}})),_.e(_.sN,{data:function(){return c().titleBadge}},{badgeViewModel:function(K){return _.e("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.e(_.Jp,{data:K.data}))}})),_.e("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.e(_.sN,{data:function(){return c().offerOptions}},{lpOfferCardOptionViewModel:function(K){var m=K.data;
return _.e(_.FG,null,_.e("div",{class:"ytmLpOfferCardViewModelDivider"}),_.e(KaK,{data:m,config:function(){var a;return{shouldDisplayRadioButton:(c().offerOptions||[]).length>1,isOptionSelected:m().id===((a=R())==null?void 0:a.id),handleRadioButtonClick:function(O){return void Z(O)}}},
themeOverride:I}))}})),_.e("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.e(_.sN,{data:function(){var K;
return(K=R())==null?void 0:K.purchaseButtonOverride}},{buttonViewModel:_.BR}))))},"Fd");
PA9.idomCompat=!0;var Qyi=_.W(function(G){var c=G.data;var I=G.themeOverride;G={};G=_.O3("ytmLpOfferCardSectionViewModelHost",(G.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var R;return I==null?void 0:(R=I())==null?void 0:R.useDarkTheme},G));
return _.e("ytm-lp-offer-card-section-view-model",null,_.e("div",{class:G},_.e(_.l,{cond:function(){return c().title!==void 0},
then:function(){return _.e("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.e("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.e(_.ul,{text:function(){return c().title}})),_.e(_.l,{cond:function(){return c().subtitle},
then:function(){return _.e("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.e(_.ul,{text:function(){return c().subtitle}}))}}))}}),_.e("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.e(_.sN,{data:function(){return c().offerCards}},{lpOfferCardViewModel:function(R){return _.e("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.e(PA9,{data:R.data,
themeOverride:I}))}})),_.e(_.l,{cond:function(){return c().footer},
then:function(){return _.e("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.e(_.ul,{text:function(){return c().footer}}))}})))},"Gd");var mPK=_.W(function(G){var c=G.data;return _.e("lp-offer-table-cell-content-view-model",null,_.e("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.e(_.B1,null,_.e(_.W1,{when:function(){return c().title}},function(){return _.e(_.ul,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return c().title}})}),_.e(_.W1,{when:function(){return c().subTitle}},function(){return _.e(_.ul,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return c().subTitle}})}),_.e(_.W1,{when:function(){return c().featureDescription}},function(){return _.e(_.ul,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return c().featureDescription}})}),_.e(_.W1,{when:function(){return c().description}},function(){return _.e(_.ul,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return c().description}})}),_.e(_.W1,{when:function(){return c().iconType}},function(){return _.e("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.e(_.F6,{icon:function(){return c().iconType.toString()}}))}),_.e(_.W1,{when:function(){return c().purchaseButton}},function(){return _.e(_.sN,{data:function(){return c().purchaseButton}},{buttonViewModel:function(I){return _.e("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.e(_.BR,
{data:I.data}))}})}),_.e(_.W1,{when:function(){return c().note}},function(){return _.e(_.ul,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return c().note}})}),_.e(_.W1,{when:function(){return c().featureDetail}},function(){return _.e(_.ul,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return c().featureDetail}})}),_.e(_.W1,{when:function(){return c().badge}},function(){return _.e(_.sN,{data:function(){return c().badge}},{badgeViewModel:_.Jp})}))))},"Hd");
mPK.idomCompat=!0;var av0=_.W(function(G){var c=G.data;return _.e("lp-offer-table-cell-view-model",null,_.e("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(c().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.e(_.sN,{data:function(){return c().contents}},{lpOfferTableCellContentViewModel:mPK})))},
"Id");
av0.idomCompat=!0;var TOK=_.W(function(G){var c=G.data;var I=G.lpTableIsFirstRow;var R=G.lpTableIsLastRow;var Z=function(){return(I==null?0:I())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},K=function(){return(I==null?0:I())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(R==null?0:R())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.e("ytm-lp-offer-table-row-view-model",null,_.e("div",{class:"ytLpOfferTableRowViewModelHost"},_.e(_.sN,{data:function(){return c().rowHeaderCell}},{lpOfferTableCellViewModel:function(m){return _.e("div",{class:Z},_.e(av0,{data:m.data}))}}),_.e(_.sN,{data:function(){return c().contentCells}},{lpOfferTableCellViewModel:function(m){return _.e("div",{class:K},_.e(av0,{data:m.data}))}})))},"Jd");
TOK.idomCompat=!0;var O_e=_.W(function(G){var c=G.data;var I=G.themeOverride;var R=_.wH().resolve(_.qR(_.d0)),Z=function(){return _.D(c().logo,$FK)||{}};
G={};return _.e("ytm-lp-offer-table-section-view-model",null,_.e("div",{class:"ytLpOfferTableViewModelHost"},_.e(_.l,{cond:function(){var K,m;return R&&R()||(I==null?0:I().useDarkTheme)?(K=Z())==null?void 0:K.imageDark:(m=Z())==null?void 0:m.imageLight},
then:function(K){return _.e(_.yc,{data:K,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var m,a,O;return(O=(m=Z())==null?void 0:(a=m.accessibilityData)==null?void 0:a.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.e(_.ul,{text:function(){return c().subtitle}})),_.e(_.l,{cond:function(){return c().disclaimers},
then:function(K){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.e(_.fh,{each:K},function(m){return _.e("div",null,_.e(_.ul,{text:m}))}))}}),_.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.e(_.sN,{data:function(){return c().rows}},{lpOfferTableRowViewModel:function(K,m){return _.e(TOK,{data:K.data,
lpTableIsFirstRow:function(){return m()===0},
lpTableIsLastRow:function(){return m()===c().rows.length-1}})}})),_.e("div",{class:_.O3((G.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return c().hasFooterBackground},G))},_.e(_.l,{cond:function(){return c().footer},
then:function(){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.e(_.ul,{text:function(){return c().footer}}))}}),_.e(_.l,{cond:function(){return c().footerTitle},
then:function(){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.e(_.ul,{text:function(){return c().footerTitle}}))}}),_.e(_.l,{cond:function(){return c().footerDescription},
then:function(){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.e(_.ul,{text:function(){return c().footerDescription}}))}}),_.e(_.l,{cond:function(){return c().footerDescriptions},
then:function(K){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.e(_.fh,{each:K},function(m){return _.e("div",null,_.e(_.ul,{text:m}))}))}}))))},"Kd");
O_e.idomCompat=!0;var eiN=_.W(function(G){var c=G.data;var I=G.themeOverride;var R=_.wH().resolve(_.qR(_.d0)),Z=function(){var a;return I==null?void 0:(a=I())==null?void 0:a.useDarkTheme},K=function(){var a,O;
return R&&R()||Z()?(a=c().image)==null?void 0:a.imageDark:(O=c().image)==null?void 0:O.imageLight};
G={};G=_.O3("ytmLpSmallFeatureSectionViewModelHost",(G.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=Z,G));var m=function(){var a,O,N;return(N=(a=c().image)==null?void 0:(O=a.accessibilityData)==null?void 0:O.label)!=null?N:""};
return _.e("ytm-lp-small-feature-section-view-model",{class:G},_.e(_.l,{cond:function(){return K()&&!mLp},
then:function(){return _.e("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.e(_.yc,{data:function(){return K()},
alt:m,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.e("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.e("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.e(_.l,{cond:function(){return c().title},
then:function(a){return _.e(_.ul,{text:a})}})),_.e("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.e(_.ul,{text:function(){return c().description}}))))},"Ld");
eiN.idomCompat=!0;var NOK=_.W(function(G){var c=G.data;var I=G.themeOverride;G={};return _.e("ytm-lp-small-feature-section-group-view-model",null,_.e("div",{class:_.O3("ytmLpSmallFeatureSectionGroupViewModelHost",(G.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(I==null||!I().useDarkTheme)},G))},_.e("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.e(_.sN,{data:function(){return c().smallFeatures}},{lpSmallFeatureSectionViewModel:function(R){return _.e("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.e(eiN,{data:R.data,
themeOverride:I}))}}))))},"Md");
NOK.idomCompat=!0;_.R1(_.W(function(G){var c=G.data;var I=function(){return c().forcedTheme==="USER_INTERFACE_THEME_DARK"},R=function(){return c().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Z=function(){var m="",a,O;
var N=_.wH().resolve(_.qR(_.d0));N=I()||(N==null?0:N())?(a=c().themedImageViewModel)==null?void 0:a.imageDark:(O=c().themedImageViewModel)==null?void 0:O.imageLight;(a=PGT((N==null?void 0:N.sources)||[]))&&a.url&&(m=R()?"background-image: linear-gradient(to bottom, transparent, "+(c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.dS(a.url)+");":"background-image: url("+_.dS(a.url)+");");return m},K=function(){return{useDarkTheme:I()}};
G={};return _.e("yt-section-group-view-model",null,_.e("div",{class:_.O3("yt-lp-section-group-view-model",(G["yt-lp-section-group-view-model--premium-force-dark-mode"]=I,G["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G))},_.e(_.l,{cond:function(){return Z().length},
then:function(){var m={};return _.e("div",{class:_.O3("yt-lp-section-group-view-model__bg-image",(m["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=R,m)),style:Z})}}),_.e("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.e(_.sN,{data:function(){return c().sections}},{lpHeaderUpsellBannerViewModel:function(m){return _.e(cCA,{data:m.data})},
lpFaqSectionViewModel:function(m){return _.e(YRK,{data:m.data,themeOverride:K})},
lpHeaderSectionViewModel:function(m){return _.e(G30,{data:m.data,themeOverride:K})},
lpHeadlineSectionViewModel:function(m){return _.e(IvT,{data:m.data,themeOverride:K})},
lpLargeFeatureSectionViewModel:function(m){return _.e(Rii,{data:m.data,themeOverride:K})},
lpOfferCardSectionViewModel:function(m){return _.e(Qyi,{data:m.data,themeOverride:K})},
lpComplexOfferCardSectionViewModel:function(m){return _.e(Hze,{data:m.data})},
lpOfferTableSectionViewModel:function(m){return _.e(O_e,{data:m.data,themeOverride:K})},
lpSmallFeatureSectionGroupViewModel:function(m){return _.e(NOK,{data:m.data,themeOverride:K})},
lpCouponBannerViewModel:function(m){return _.e(XGi,{data:m.data})}}))))},"Nd"),"yt-section-group-view-model",{props:{data:_.bl}});_.lvK=_.W(function(G){var c=_.um(u1b,function(){var m;return(m=G.data())==null?void 0:m.chipBarStateEntityKey}),I=function(){return G.data().disableDeselection},R=_.Q(_.Gz(function(){var m;
if(((m=c())==null?void 0:m.selectedIndex)!=void 0)return c().selectedIndex;var a,O;m=_.Q(((a=G.data())==null?void 0:(O=a.chips)==null?void 0:O.entries())||[]);for(a=m.next();!a.done;a=m.next()){a=_.Q(a.value);O=a.next().value;a=a.next().value;var N=void 0;if((N=_.D(a,_.bv))==null?0:N.selected)return O}return-1})),Z=R.next().value,K=R.next().value;
return _.e("chip-bar-view-model",{class:_.O3("ytChipBarViewModelHost",G.className),role:"tablist"},_.e(_.sN,{data:function(){return G.data().chips}},{chipViewModel:function(m,a){return _.e("div",{class:"ytChipBarViewModelChipWrapper"},_.e(_.B32,{data:m.data,
selected:function(){return a()===Z()},
callback:function(O,N){O=!!N;N=a();K(O?N:-1);var q,w=(q=G.data())==null?void 0:q.chipBarStateEntityKey;w&&O&&_.y1(_.Le("chipBarStateEntity",w,{key:w,selectedIndex:N}))},
disableDeselection:G.disableDeselection||I}))}}))},"Od");_.R1(_.lvK,"chip-bar-view-model",{props:{data:_.G9,className:_.G9,disableDeselection:_.G9}});_.qM9=_.W(function(G){var c=G.data;G={};return _.e("divider-view-model",{class:_.O3("dividerViewModelHost",(G.dividerViewModelInsetThinPadding=function(){return c().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},G))},_.e("div",{class:_.O3("dividerViewModelBaseDivider",function(){return bKr(c().dividerStyle)})}))},"Pd");
_.qM9.idomCompat=!0;_.R1(_.qM9,"divider-view-model",{props:{data:_.bl}});var bP=new Map,kP=new Map,LNq=0,sg;var VqC=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],J6b={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var wZ0,Fa9;wZ0=function(G){return function(c){return function(){return(c==null?void 0:c())!==void 0?String(c())+G:void 0}}};
_.U8=wZ0("px");Fa9=wZ0("s");var n2K=uwC(function(G){return G.targetGroupId}).useUpdatableData;_.uh=_.W(function(G){function c(QO){return function(){var T8=p().numItemsPerGridRow,kp=QO()*T8;T8=kp+T8;var FB,oq;return(oq=(FB=R().contents)==null?void 0:FB.slice(kp,T8))!=null?oq:[]}}
var I=_.YW(G,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),R=I.data,Z=I.layoutContainerWidth,K=I.shouldUseOwnContainerSize,m=I.marginSettings,a=I.useUpdatedMargin,O=QBb(),N=_.Q(n2K(function(){var QO,T8;return{targetGroupId:(QO=R().targetingContext)==null?void 0:(T8=QO.targetGroupId)==null?void 0:T8[0]}})).next().value;
I=_.Q(_.ks(!0,void 0,"lKny6d"));var q=I.next().value,w=I.next().value,F=function(){var QO,T8=(QO=_.D(R().showMoreButton,_.uv))==null?void 0:QO.trackingParams;T8&&_.yI(_.DP(),T8);w(!1)},n=function(){var QO,T8=(QO=_.D(R().showLessButton,_.uv))==null?void 0:QO.trackingParams;
T8&&_.yI(_.DP(),T8);w(!0)};
I=_.Q(_.Ls({canHaveZeroSize:!1}));var U=I.next().value;I=I.next().value;var k=function(){var QO;return(QO=R().contentAspectRatio)!=null?QO:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},p=_.SE(function(){var QO=K()&&U.width()>0?U.width()||Z():Z(),T8,kp=(T8=G.data())==null?void 0:T8.responsiveContainerConfiguration;
QO=_.tY({containerWidth:QO,sizing:kp?hY(kp==null?void 0:kp.responsiveSize):"EXTRA_COMPACT",marginSettings:m(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:QO.maxContainerWidth,numItemsPerGridRow:QO.numItems,contentPadding:K()?QO.margin:QO.contentMargin,itemWidth:QO.itemWidth,itemMargin:QO.gutter/2}},void 0,"XYkF9e"),M=function(){if(R().enableVerticalExpansion){if(q())return z();
var QO,T8,kp=(T8=(QO=R().contents)==null?void 0:QO.length)!=null?T8:0;return Math.ceil(kp/p().numItemsPerGridRow)}return p().numItemsPerGridRow<=2?2:1},z=function(){var QO;
return Math.ceil(((QO=R().minCollapsedItemCount)!=null?QO:1)/p().numItemsPerGridRow)},t=function(){return R().enableVerticalExpansion&&R().showLessButton&&!q()&&M()>z()},x=function(){var QO,T8;
return R().enableVerticalExpansion&&R().showMoreButton&&q()&&((T8=(QO=R().contents)==null?void 0:QO.length)!=null?T8:0)>p().numItemsPerGridRow*z()},C=function(){return!t()},H=function(){return!x()},g={};
return _.e("grid-shelf-view-model",{class:_.O3("ytGridShelfViewModelHost",G.className,(g.ytGridShelfViewModelHostHasBottomButton=function(){return t()||x()},g.ytGridShelfViewModelHostIsDismissed=function(){var QO,T8=(QO=N())!=null?QO:{};
QO=T8.behavior;var kp=T8.isDismissed,FB=T8.stamperContextTargetId;T8=T8.stamperIndex;if(!(_.v("mweb_see_fewer_shorts_group_dismissal")&&kp&&QO&&FB))return!1;var oq;kp=O;for(var Wr,iT,z8=((Wr=kp)==null?0:Wr.targetId)?_.dN((iT=kp)==null?void 0:iT.targetId):void 0;((oq=kp)==null?0:oq.parent)&&z8!==FB;)kp=kp.parent,iT=Wr=void 0,z8=((Wr=kp)==null?0:Wr.targetId)?_.dN((iT=kp)==null?void 0:iT.targetId):void 0;oq=z8===FB?kp:void 0;if(!oq)return!1;var GV;FB=oq==null?void 0:(GV=oq.stamperIndex)==null?void 0:
GV.call(oq);return QO==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||QO==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&FB!=null&&T8!=null&&FB>T8},g.ytGridShelfViewModelHostOptionalMediumLayoutMargin=a,g)),
el:_.YC(I),style:_.wi({"margin-left":(0,_.U8)(function(){return p().contentPadding}),
"margin-right":(0,_.U8)(function(){return p().contentPadding})})},_.e(_.l,{cond:function(){return _.D(R().header,EwV)},
then:function(QO){return _.e(_.I4,{data:QO,useUpdatedPadding:a,disableHorizontalPadding:!0})}}),_.e("div",null,_.e(_.fh,{each:function(){return Array(M())}},function(QO,T8){return _.e(v20,{className:G.className,
items:c(T8),responsiveGridShelfLayout:p,contentAspectRatio:k})})),_.e("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.e(_.sN,{data:function(){return R().showMoreButton}},{buttonViewModel:function(QO){return _.e("div",{hidden:H},_.e(_.BR,{data:QO.data,
onClick:F}))}}),_.e(_.sN,{data:function(){return R().showLessButton}},{buttonViewModel:function(QO){return _.e("div",{hidden:C},_.e(_.BR,{data:QO.data,
onClick:n}))}})))},"Rd");
_.uh.idomCompat=!0;var v20=_.W(function(G){var c=G.items;var I=G.responsiveGridShelfLayout;var R=G.contentAspectRatio;G=G.className;var Z=_.mX("div");s_p(Z,function(){a:{var m=Z.value;for(var a=c(),O=[],N=0;N<a.length;N++){var q=_.D(a[N],ldV);if(!q||q==null||!q.inlinePlayerData){m=null;break a}var w=m.children.item(N);if(!w){m=null;break a}O.push({thumbnailElement:w,videoData:q})}m={gridVideoPreviewData:{gridItems:O}}}return m});
var K=(0,_.U8)(function(){return-I().itemMargin});
return _.e("div",{el:Z,class:_.O3("ytGridShelfViewModelGridShelfRow",G),style:_.wi({"margin-left":K,"margin-right":K})},_.e(_.sN,{data:c,replacementWrapper:function(m){return _.e(DPp,{responsiveGridShelfLayout:I},m)}},{shortsLockupViewModel:function(m){return _.e(DPp,{responsiveGridShelfLayout:I},_.e(tqN,{data:m.data,
aspectRatio:function(){return R()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.v("mweb_enable_one_line_title_on_shorts")?1:_.v("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(m){return _.e(DPp,{responsiveGridShelfLayout:I},_.e(_.Yy,{data:m.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Sd"),DPp=_.W(function(G){return _.e("div",{style:_.wi({width:(0,_.U8)(function(){return G.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+G.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},G.children)},"Td");
_.uh.idomCompat=!0;_.R1(_.uh,"grid-shelf-view-model",{props:{data:_.bl,layoutContainerWidth:_.bl,shouldUseOwnContainerSize:_.bl,marginSettings:_.bl,useUpdatedMargin:_.bl,className:_.bl}});_.o2B=_.W(function(G){var c=_.Q(_.ks(!1,void 0,"FVl30c")),I=c.next().value,R=c.next().value;c={};return _.e("yt-alert-banner-view-model",{class:_.O3("ytAlertBannerViewModelHost",G.className,function(){var Z;a:switch((Z=G.data())==null?void 0:Z.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Z="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Z="ytAlertBannerViewModelWarning";break a;default:Z="ytAlertBannerViewModelInformational"}return Z},(c.ytAlertBannerViewModelDismissed=
I,c.ytAlertBannerViewModelFullbleed=G.fullbleed,c.ytAlertBannerViewModelNarrow=G.narrow,c.ytAlertBannerViewModelIsInRichGrid=G.isInRichGrid,c))},_.e(_.l,{cond:function(){var Z;
return!((Z=G.data())==null?0:Z.hideIcon)},
then:function(){return _.e("div",{class:"ytAlertBannerViewModelIcon"},_.e(_.F6,{icon:function(){return"info_circle"}}))}}),_.e("div",{class:"ytAlertBannerViewModelOuterContainer"},_.e("div",{class:"ytAlertBannerViewModelContainer"},_.e("div",{class:"ytAlertBannerViewModelContent"},_.e("div",{class:"ytAlertBannerViewModelHeading"},_.e(_.ul,{text:function(){var Z;
return(Z=G.data())==null?void 0:Z.heading}})),_.e("div",{class:"ytAlertBannerViewModelBody"},_.e(_.ul,{text:function(){var Z;
return(Z=G.data())==null?void 0:Z.body}})))),_.e(_.sN,{data:function(){var Z;
return(Z=G.data())==null?void 0:Z.actionButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.e(_.sN,{data:function(){var Z;
return(Z=G.data())==null?void 0:Z.dismissButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var K;((K=G.data())==null?0:K.disableLocalDismissBehavior)||R(!0)}})}}))},"Ud");_.R1(_.o2B,"yt-alert-banner-view-model",{props:{data:_.bl,fullbleed:_.bl,narrow:_.bl,isInRichGrid:_.bl,className:_.bl}});var UP0;_.bh=_.W(function(G){return _.e("basic-content-view-model",{class:_.O3("ytBasicContentViewModelHost",_.gD(G.className))},_.e(_.l,{cond:function(){return G.data().headline},
then:function(c){return _.e("div",{class:"ytBasicContentViewModelHeadline"},_.e(_.ul,{text:c}))}}),_.e(_.fh,{each:function(){return G.data().paragraphs||[]},
keyBy:"INDEX"},function(c){return _.e("div",{class:"ytBasicContentViewModelParagraph"},_.e(_.l,{cond:function(){var I=c();return!!(I.header||I.customHeader||I.headline)},
then:function(){return _.e(UP0,{paragraph:c})}}),_.e(_.l,{cond:function(){return c().asset||c().text},
then:function(){return _.e("div",{class:"ytBasicContentViewModelParagraphContent"},_.e(_.l,{cond:function(){return c().asset},
then:function(I){return _.e("div",{class:"ytBasicContentViewModelParagraphAsset"},_.e(_.sN,{data:I},{contentPreviewImageViewModel:_.hp}))}}),_.e(_.l,{cond:function(){return c().text},
then:function(I){return _.e("div",{class:"ytBasicContentViewModelParagraphText"},_.e(_.ul,{text:I}))}}))}}))}))},"Vd");
UP0=_.W(function(G){var c=G.paragraph;return _.e(_.FG,null,_.e(_.l,{cond:function(){return c().headline},
then:function(I){return _.e(_.ul,{text:I,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.e(_.sN,{data:function(){return c().header||c().customHeader}},{sectionHeaderViewModel:function(I){return _.e(_.I4,{data:I.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Wd");_.uVe=_.W(function(G){function c(){var n,U;O((U=(n=Z)==null?void 0:n.isKeyBoardInUse())!=null?U:!1)}
function I(){O(!1)}
function R(){var n;return a()?(n=G.focusedClassName)==null?void 0:n.call(G):""}
var Z=_.wH().resolve(_.qR(_.zb)),K=_.Q(_.ks(!1,void 0,"SgkTXc")),m=K.next().value;K=K.next().value;var a=m,O=K,N=function(){var n,U;return((n=G.toggleable)==null?0:n.call(G))?(U=G.toggled)==null?void 0:U.call(G):void 0},q=_.Nx(function(n){var U,k=(U=G.command)==null?void 0:U.call(G);
k&&_.wH().resolve(_.n4).resolveCommand(k);var p;(p=G.onClick)==null||p.call(G,n)}),w=_.Nx(c),F=_.Nx(I);
return _.e(_.l,{cond:function(){var n;if(n=G.command){n=G.command();n=FFf(n);var U=n.href;n=!(!n.navigatingCommand||!U)}return n},
then:function(){return _.e(_.Er,Object.assign({},{command:G.command,style:G.style,ariaDescribedby:G.ariaDescribedby,ariaHidden:G.ariaHidden,ariaLabel:G.ariaLabel,ariaLabelledby:G.ariaLabelledby,ariaSelected:G.ariaSelected,disabled:G.disabled,dir:G.dir,tabIndex:G.tabIndex,target:G.target,title:G.title,onClick:G.onClick},{className:_.O3("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",G.className,function(){return R()}),
onFocusin:c,onFocusout:I,ariaCurrent:function(){var n,U;return(U=(n=G.ariaCurrent)==null?void 0:n.call(G))!=null?U:N()}}),G.children)},
else:function(){return _.e("button",{"on:click":q,"on:focusin":w,"on:focusout":F,class:_.O3("ytButtonOrAnchorHost","ytButtonOrAnchorButton",G.className,function(){return R()}),
style:G.style,"aria-describedby":G.ariaDescribedby,"aria-hidden":G.ariaHidden,"aria-label":G.ariaLabel,"aria-labelledby":G.ariaLabelledby,"aria-pressed":N,dir:G.dir,disabled:G.disabled,tabindex:G.tabIndex,title:G.title},G.children)}})},"Xd");var b_0=_.W(function(G){G=_.YW(G,{disabled:!1});var c=G.active,I=G.disabled;G={};G=_.O3("ytSwitchShapeTrack",(G.ytSwitchShapeTrackActive=function(){return c()},G.ytSwitchShapeTrackDisabled=function(){return I()},G));
var R={};R=_.O3("ytSwitchShapeKnob",(R.ytSwitchShapeKnobActive=function(){return c()},R));
return _.e("switch-shape",{class:"ytSwitchShapeHost"},_.e("div",{class:G}),_.e("div",{class:R}))},"Yd");var k3e=_.W(function(G){var c=_.YW(G,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),I=c.data;G=c.className;var R=c.handleOnTapEventInParent,Z=c.parentActive,K=c.onTap;c=_.Q(_.Gz(function(){var F;return(F=Z())!=null?F:I().switchedOnByDefault||!1}));
var m=c.next().value,a=c.next().value,O=function(){return I().isDisabled},N=_.mX("button");
c=_.Nx(function(F){return F.key==="Enter"?(F.preventDefault(),N.value.click(),!1):!0});
var q=_.Nx(function(F){if(I().handleOnTapEventInParent||R())return!0;if(O())return!1;if(K)return K(F),!0;fVC(I(),m(),F);a(!m());return!1}),w={};
w=_.O3("ytSwitchButtonViewModelButton",(w.ytSwitchButtonViewModelTappable=function(){return!O()},w));
return _.e("switch-button-view-model",{class:_.O3("ytSwitchButtonViewModelHost",G)},_.e("button",{el:N,class:w,"on:click":q,"on:keydown":c,"aria-label":function(){return m()?I().a11yLabelSwitchedOn:I().a11yLabelSwitchedOff},
"aria-checked":m,"aria-disabled":O,role:"switch"},_.e(b_0,{active:m,disabled:O})))},"Zd");var sye=_.W(function(G){var c=G.data;var I=G.isLeading;var R=G.hideSelectionTextChevron;var Z=G.isToggled;var K=G.shouldNotFillIcon;var m=function(){if(I())var w=c().leadingImage;else{var F;w=(F=c().trailingImage)!=null?F:_.dP(c().themedTrailingImage)}return w},a=function(){a:switch(c().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var w="expand_more";
break a;default:w="chevron_right"}return w};
G={};var O=_.O3("yt-list-item-view-model__image-container",(G["yt-list-item-view-model__leading"]=I,G["yt-list-item-view-model__trailing"]=function(){return!I()},G)),N=_.O3("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
G={};var q=_.O3("yt-list-item-view-model__accessory",(G["yt-list-item-view-model__leading"]=I,G["yt-list-item-view-model__trailing"]=function(){return!I()},G));
return _.e(_.l,{cond:function(){var w=c(),F=I();return!!(F&&(w.leadingImage||w.leadingAccessory)||!F&&(w.trailingImage||w.trailingButton||w.trailingButtons||w.selectionText||w.themedTrailingImage||w.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.e(_.FG,null,_.e(_.l,{cond:m,then:function(w){return _.e("div",{class:O,"aria-hidden":"true"},_.e(_.yc,{data:w,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var F=(I()?c().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":c().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?I()?j_r(c().leadingIconAccessorySize):j_r(c().trailingIconAccessorySize):void 0;return F},
className:N,isToggled:function(){return!(K==null?0:K())&&(Z==null?void 0:Z())}}))}}),_.e(_.l,{cond:function(){return I()&&c().leadingAccessory},
then:function(){return _.e("div",{class:O},_.e(_.sN,{data:function(){return c().leadingAccessory}},{avatarViewModel:function(w){return _.e(_.qF,{data:w.data,
avatarButtonCustomClassName:N})},
collectionThumbnailViewModel:function(w){return _.e(ffi,{data:w.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.e(_.l,{cond:function(){return!I()&&c().trailingButton},
then:function(){return _.e("div",{class:"yt-list-item-view-model__button-container"},_.e(_.sN,{data:function(){return c().trailingButton}},{buttonViewModel:function(w){return _.e(_.BR,{data:w.data,
className:q})}}))}}),_.e(_.l,{cond:function(){var w;
return!I()&&((w=c().trailingButtons)==null?void 0:w.buttons)},
then:function(){return _.e("div",{class:"yt-list-item-view-model__button-container"},_.e(_.sN,{data:function(){var w;return(w=c().trailingButtons)==null?void 0:w.buttons}},{buttonViewModel:function(w){return _.e(_.BR,{data:w.data,
className:q})},
accountLinkButtonViewModel:function(w){return _.e(kti,{data:w.data,className:q})},
switchButtonViewModel:function(w){return _.e(k3e,{data:w.data,className:q})},
subscribeButtonViewModel:function(w){return _.e(_.qI,{data:w.data,isOverlay:!1,animateWidth:!1,className:q})},
toggleButtonViewModel:function(w){return _.e(_.m8,{data:w.data,className:q})}}))}}),_.e(_.l,{cond:function(){return!I()&&!!c().selectionText},
then:function(){return _.e(_.FG,null,_.e(_.ul,{text:function(){return c().selectionText},
className:_.O3("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.e(_.l,{cond:function(){return!(R==null?0:R())},
then:function(){return _.e(_.F6,{icon:a,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.e(_.l,{cond:function(){return!I()&&c().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.e("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"$d");var La2=_.W(function(G){var c=G.data;return _.e(_.l,{cond:function(){return c().title||c().subtitle},
then:function(){return _.e("div",{class:"yt-list-item-view-model__text-wrapper"},_.e(_.l,{cond:function(){return c().title},
then:function(I){return _.e("div",{class:"yt-list-item-view-model__title-wrapper"},_.e(_.ul,{text:I,className:"yt-list-item-view-model__title"}))}}),_.e(_.l,{cond:function(){return c().subtitle},
then:function(I){return _.e(_.ul,{text:I,className:"yt-list-item-view-model__subtitle"})}}))}})},"ae");var ACi=_.W(function(G){var c=G.data;var I=G.hideSelectionTextChevron;var R=G.TrailingAccessory;var Z=G.isToggled;var K=G.disabled;var m=G.isSelectItem;var a=G.isCompact;var O=G.inPopup;var N=G.disableHorizontalPadding;var q=G.isTappableWithoutSelect;var w=G.useButtonOrAnchor;var F=G.onTap;var n=G.shouldNotFillIcon;var U=function(){return _.e(La2,{data:c,onTap:F,useButtonOrAnchor:w,isTappableWithoutSelect:q,isToggled:Z})};
G={};return _.e("div",{class:_.O3("yt-list-item-view-model__label",(G["yt-list-item-view-model__container"]=function(){return!(m==null?0:m())},G["yt-list-item-view-model__container--disabled"]=function(){return!!c().isDisabled||!(K==null||!K())},G["yt-list-item-view-model__container--has-subtitle"]=function(){return!!c().subtitle},G["yt-list-item-view-model__container--compact"]=a,G["yt-list-item-view-model__container--tappable"]=q,G["yt-list-item-view-model__container--in-popup"]=O,G["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(N==null?void 0:N())&&!(m==null?0:m())},G))},_.e(sye,{data:c,
isLeading:!0,hideSelectionTextChevron:I,isToggled:Z,shouldNotFillIcon:n}),_.e(_.l,{cond:function(){return(w==null?void 0:w())&&(q==null?void 0:q())},
then:function(){return _.e(_.uVe,{command:function(){return _.JY(c().rendererContext)},
onClick:F,className:"yt-list-item-view-model__button-or-anchor",toggleable:Z!==void 0,toggled:Z},_.e(U,null))},
else:function(){return _.e(U,null)}}),_.e(_.l,{cond:function(){return!!R},
then:function(){return _.e("div",{class:"yt-list-item-view-model__trailing"},R&&_.e(R,null))},
else:function(){return _.e(sye,{data:c,isLeading:!1,hideSelectionTextChevron:I,isToggled:Z,shouldNotFillIcon:n})}}))},"be");var SMA=_.W(function(G){var c=_.YW(G,{checked:!1,disabled:!1});G=c.name;var I=c.onChange,R=c.onClick,Z=c.checked,K=c.labelRenderable,m=c.hasLeadingLabel,a=c.labelClass,O=c.isCompact,N=c.selectElementClass,q=c.disableHorizontalPadding;c=c.disabled;var w="checkbox"+_.Yb(_.o4),F=_.Nx(function(k){R==null||R(k);return!1}),n=_.Nx(function(k){I==null||I(k);
return!1}),U={};
return _.e("checkbox-shape",null,_.e("label",{class:_.O3("ytCheckboxShapeHost",a,(U.ytCheckboxShapeHostCompact=O,U.ytCheckboxShapeDisableHorizontalPadding=q,U))},_.e("input",{class:"ytCheckboxShapeInput",id:w,checked:Z,name:G,type:"checkbox",disabled:c,"prop:checked":Z,"on:change":n,"on:click":F}),_.e(_.l,{cond:function(){return!(m==null?0:m())},
then:function(){return _.e($Pe,{isLeading:!0,selectElementClass:N})}}),_.e(_.l,{cond:function(){return!!K},
then:function(){return _.e("div",{class:"ytCheckboxShapeLabel"},K==null?void 0:K())}}),_.e(_.l,{cond:m,
then:function(){return _.e($Pe,{isLeading:!1,selectElementClass:N})}})))},"ce");
SMA.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var $Pe=_.W(function(G){var c=G.selectElementClass;G={};return _.e("div",{class:_.O3("ytCheckboxShapeCheckbox",c,(G.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(c==null?0:c())},G)),
"aria-hidden":"true"},_.e(_.F6,{icon:_.v("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.e(_.F6,{icon:_.v("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"de");_.kR=_.W(function(G){var c=G.name;var I=G.onChange;var R=G.onClick;var Z=G.checked;var K=G.labelRenderable;var m=G.useCheckIcon;var a=G.hasLeadingLabel;var O=G.labelClass;var N=G.isCompact;var q=G.selectElementClass;var w=G.ariaLabel;var F=G.className;G=G.disabled;var n="radio"+_.Yb(_.o4),U=_.mX("input"),k=_.v("enable_ios_webview_radio_button_responsiveness"),p=_.Nx(function(g){U.value.checked=!(Z==null||!Z());I==null||I(g);return!1}),M=_.Nx(function(g){R==null||R(g);
return!1}),z=_.Q(_.ks(!1,void 0,"Ucg5gd")),t=z.next().value,x=z.next().value;
z=_.Nx(function(){var g;((g=_.wH().resolve(_.qR(_.zb)))==null?0:g.isKeyBoardInUse())&&x(!0)});
var C=_.Nx(function(){x(!1)}),H={};
return _.e("radio-shape",{class:_.O3("yt-radio-shape",F)},_.e("input",{el:U,class:"yt-radio-shape__input",id:n,"prop:checked":Z,name:c,type:"radio",disabled:G,"on:change":p,"on:click":M,"aria-label":w,"on:focusin":z,"on:focusout":C}),_.e("label",{class:_.O3("yt-radio-shape__label-container",O,(H["yt-radio-shape--compact"]=N,H["yt-radio-shape__label-container--keyboard-focused"]=t,H)),for:n},_.e(_.l,{cond:function(){return!(a==null?0:a())},
then:function(){return _.e(pZK,{checked:Z,useCheckIcon:m,isLeading:!0,selectElementClass:q,usePassthrough:k})}}),_.e(_.l,{cond:function(){return!!K},
then:function(){var g={};return _.e("div",{class:_.O3("yt-radio-shape__label",(g["yt-radio-shape--event-passthrough"]=k,g)),"aria-hidden":function(){return(w==null?0:w())?"true":"false"}},K==null?void 0:K())}}),_.e(_.l,{cond:a,
then:function(){return _.e(pZK,{checked:Z,useCheckIcon:m,isLeading:!1,selectElementClass:q,usePassthrough:k})}})))},"ee");
_.kR.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var pZK=_.W(function(G){var c=G.useCheckIcon;var I=G.selectElementClass;G=G.usePassthrough;var R=function(){return(c==null?0:c())?"CHECK":_.v("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"},Z={};
return _.e("div",{class:_.O3("yt-radio-shape__radio",I,(Z["yt-radio-shape__radio--check-icon"]=c,Z["yt-radio-shape__radio--radio-default-style"]=function(){return!(I==null?0:I())},Z["yt-radio-shape--event-passthrough"]=G,Z)),
"aria-hidden":"true"},_.e(_.F6,{icon:R}),_.e(_.F6,{icon:R,active:function(){return!(c==null?0:c())}}))},"fe");_.s8=_.W(function(G){var c=G.data;var I=G.isMenuItem;var R=G.isCompact;var Z=G.onTap;var K=G.trailingAccessory;var m=G.hideSelectionTextChevron;var a=G.disabled;var O=G.inPopup;var N=G.disableHorizontalPadding;var q=G.isOverlay;var w=G.isToggled;var F=G.ariaLabel;var n=G.ariaPressed;var U=G.shouldNotFillIcon;var k=!_.v("web_enable_killswitch_for_selectable_list_item_on_tap_fix");G=!_.v("web_enable_killswitch_for_skip_child_tags");var p=_.o1(function(ei){return xmp(c(),ei)}),M=function(){return(N==
null?void 0:N())||c().disableHorizontalPadding},z=function(){return _.v("enable_web_shorts_captions_language_command")||_.v("web_shorts_audio_track_picker")||c().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},t=function(){return z()?Object.assign({},c(),p().data):c()},x=function(){return!!t().isDisabled||!(a==null||!a())},C=_.h3O(function(){return t().rendererContext}),H=function(){return!(t().isSelected===void 0||!t().selectionStyle||t().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
g=function(){return(_.W8(t().rendererContext)||Z)&&!H()},QO={},T8=_.O3("yt-list-item-view-model__container",(QO["yt-list-item-view-model__container--tappable"]=function(){return _.W8(t().rendererContext)||H()},QO["yt-list-item-view-model__container--compact"]=R,QO["yt-list-item-view-model__container--in-popup"]=O,QO["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(M==null?void 0:M())&&H()},QO)),kp=function(){return t().leadingImage||t().leadingAccessory},FB=_.O3("yt-list-item-view-model__image-container",
function(){return kp()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
QO=_.tZC();var oq=_.Q(_.ks(!1,void 0,"D1Nwsd")),Wr=oq.next().value,iT=oq.next().value,z8=function(){return _.e(ACi,{data:t,hideSelectionTextChevron:m,TrailingAccessory:K,isToggled:w,disabled:a,isSelectItem:H,isCompact:R,inPopup:O,disableHorizontalPadding:M,isTappableWithoutSelect:g,useButtonOrAnchor:GV,onTap:Z,shouldNotFillIcon:U})},GV=_.v("web_button_or_anchor_list_item");
oq={};return _.e("yt-list-item-view-model",{el:_.YC(_.im(function(){return x()?void 0:t().rendererContext},void 0,void 0,GV?["A".toString(),
"BUTTON".toString()]:[]),tqA(function(ei){if(!x()){var Hr;if(Hr=k)Hr=t().selectionStyle,Hr=Hr==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||Hr==="LIST_ITEM_SELECTION_STYLE_RADIO"||Hr==="LIST_ITEM_SELECTION_STYLE_DEFAULT";Hr||Z==null||Z(ei)}},G?["A".toString(),
"BUTTON".toString()]:[]),I7p(function(){return g==null?void 0:g()},{focusin:function(){var ei;
((ei=_.wH().resolve(_.qR(_.zb)))==null?0:ei.isKeyBoardInUse())&&iT(!0)},
focusout:function(){iT(!1)}})),
class:_.O3("yt-list-item-view-model",(oq["yt-list-item-view-model--is-overlay"]=q,oq["yt-list-item-view-model--keyboard-focused"]=Wr,oq["yt-list-item-view-model--hidden"]=function(){return z()?p().isHidden:!1},oq)),
role:function(){return(I==null?0:I())?"menuitem":"listitem"},
tabindex:function(){var ei=g();ei=GV?void 0:Z||ei?0:void 0;return ei},
"on:keydown":QO,"aria-label":function(){var ei;return(F==null?void 0:F())||((ei=C())==null?void 0:ei.label)},
"aria-pressed":n},_.e(_.l,{cond:H,then:function(){return _.e(_.B1,null,_.e(_.W1,{when:function(){return t().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.e(SMA,{labelRenderable:z8,
isCompact:R,checked:function(){return t().isSelected},
hasLeadingLabel:function(){return!!kp()},
labelClass:T8,selectElementClass:FB,disableHorizontalPadding:M,onClick:k?Z:void 0,disabled:x})}),_.e(_.W1,{when:function(){return t().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.e(_.kR,{labelRenderable:z8,
isCompact:R,checked:function(){return t().isSelected},
hasLeadingLabel:function(){return!!kp()},
labelClass:T8,selectElementClass:FB,onClick:k?Z:void 0,disabled:x})}),_.e(_.W1,{when:function(){return t().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.e(_.kR,{labelRenderable:z8,
isCompact:R,checked:function(){return t().isSelected},
hasLeadingLabel:function(){return!!kp()},
labelClass:T8,selectElementClass:FB,useCheckIcon:!0,onClick:k?Z:void 0,disabled:x})}),_.e(_.iV,null,z8))},
else:z8}))},"ge");
_.s8.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Lr=_.W(function(G){var c=_.Q(_.Ls({canHaveZeroSize:!1})),I=c.next().value;c=c.next().value;var R=function(){return Znf(I.width(),G.data().responsiveContainerConfiguration)||YVg(I.width(),G.data().linearLayoutContainerConfiguration)};
return _.e("yt-linear-layout-view-model",{el:_.YC(c),class:"ytLinearLayoutViewModelHost"},_.e("div",{class:_.O3("ytLinearLayoutViewModelContainer",function(){a:switch(G.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var Z="ytLinearLayoutViewModelHorizontal";break a;default:Z="ytLinearLayoutViewModelVertical"}return Z},function(){var Z=G.data().linearLayoutContainerConfiguration;
return Z?[X9r(Z.flexDirection),y6r(Z.justifyContent),gJi(Z.alignItems)].join(" "):""}),
style:function(){var Z;var K=((Z=R())==null?void 0:Z.containerStyles)||{};return _.wi(K)()}},_.e(_.sN,{data:function(){return G.data().items},
wrapper:function(Z,K,m){return _.e("div",{style:function(){var a=m(),O;if((O=R())==null)a=void 0;else{var N=O.itemStyles,q=a===0,w,F;var n=(F=(w=G.data().items)==null?void 0:w.length)!=null?F:0;a=N.call(O,q,a===n-1)}return _.wi(a||{})()}},Z())}},{lockupViewModel:function(Z){return _.e(_.Yy,{data:Z.data,
containerLayoutConfig:function(){var K;return(K=R())==null?void 0:K.containerLayoutConfig}})},
basicContentViewModel:_.bh,buttonViewModel:_.BR,linearLayoutViewModel:_.Lr,thumbnailViewModel:_.rE,descriptionPreviewViewModel:_.cc,listItemViewModel:_.s8,sectionHeaderViewModel:_.I4})))},"he");_.R1(_.Lr,"yt-linear-layout-view-model",{props:{data:_.bl}});_.R1(_.Rc,"chips-shelf-view-model",{props:{data:_.bl,callback:_.G9,selectionBehavior:_.bl,disableChipsScrollAnimation:_.bl,nextButtonStyle:_.bl}});_.R1(_.W(function(G){return _.e("yt-comment-filter-context-view-model",{class:_.O3("ytCommentFilterContextHost",G.className)},_.e(_.ul,{text:function(){return G.data().text}}))},"ie"),"yt-comment-filter-context-view-model",{props:{data:_.bl,
className:_.G9}});_.Mbi=_.W(function(G){var c=G.data;var I=G.onTap;var R=G.onSwitch;var Z=G.overrideDisabled;G=G.disableHorizontalPadding;var K=_.Q(_.Gz(function(){var F;return((F=r60(q()))==null?void 0:F.switchedOnByDefault)||!1})),m=K.next().value,a=K.next().value;
K=_.Q(_.ks(!1,void 0,"V0hCrd"));var O=K.next().value,N=K.next().value,q=function(){var F;if(!(F=c().switchButton)){var n=c();F=Z==null?void 0:Z();n={switchOnCommand:n.switchOnCommand,switchOffCommand:n.switchOffCommand,switchedOnByDefault:n.switchedOnByDefault,isDisabled:n.isDisabled,a11yLabelSwitchedOn:n.a11yLabelSwitchedOn,a11yLabelSwitchedOff:n.a11yLabelSwitchedOff};F!==void 0&&(n.isDisabled=F);F={switchButtonViewModel:n}}return F},w=function(F){var n=r60(q());
!n||n.isDisabled||c().ignoreTapUntilCommandCompletes&&O()||(I==null||I(F),fVC(n,m(),F,c().ignoreTapUntilCommandCompletes,N),a(!m()),R==null||R(m()))};
return _.e("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.e(_.s8,{data:function(){return{title:c().title,subtitle:c().attributedSubtitle,leadingImage:c().leadingImage,leadingAccessory:c().leadingAccessory,isDisabled:c().isDisabled}},
onTap:w,isToggled:m,shouldNotFillIcon:!0,trailingAccessory:function(){return _.e(_.sN,{data:q},{switchButtonViewModel:function(F){return _.e(k3e,{data:F.data,parentActive:m,onTap:w})}})},
disableHorizontalPadding:G}))},"je");var VbT=_.W(function(G){var c=_.Q(_.Gz(function(){var Z,K;return!!((Z=G.data())==null?0:(K=Z.initialState)==null?0:K.isToggled)})),I=c.next().value,R=c.next().value;
return _.e("toggleable-list-item-view-model",{el:_.YC(_.im(function(){return G.data().rendererContext},{onTap:function(Z,K){K();
R(!I())}})),
class:_.O3("toggleableListItemViewModelHost",G.className)},_.e(_.l,{cond:function(){if(I()){var Z=G.data().toggledListItem;Z=_.D(Z,_.$Z)}else Z=G.data().defaultListItem,Z=_.D(Z,_.$Z);return Z},
then:function(Z){return _.e(_.s8,{data:Z,isToggled:I,ariaLabel:function(){var K=I()?G.data().toggledListItem:G.data().defaultListItem,m;K=(m=_.D(K,_.$Z))==null?void 0:m.rendererContext;var a;return(a=_.D(K,_.Aq))==null?void 0:a.label},
ariaPressed:function(){return I()}})}}))},"ke");var zi0=_.mJ("DOWNLOAD",{},"Download"),E2i=_.mJ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),JCT=_.mJ("RETRY",{},"Retry"),WaK=_.mJ("PAUSE_DOWNLOADING",{},"Pause downloading"),i_V=_.mJ("RESUME_DOWNLOAD",{},"Resume download"),KHg={text:zi0,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},$P={text:E2i,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},msr={text:JCT,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Ppi={text:WaK,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},QZB={text:i_V,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var fve=_.W(function(G){var c=function(){var a=G.data();a=_.JY(a.rendererContext);var O;return(O=_.D(a,_.o9))==null?void 0:O.videoId},I=_.o1(function(a){var O=c(),N=OnA(G.data());
return O?_.E4(a,O):N?_.JX(a,N):"TRANSFER_STATE_UNKNOWN"}),R=_.um(_.Zf0,c),Z=_.o1(function(a){return _.yxB(a,c(),OnA(G.data()))}),K=function(){return TMq(I(),R(),_.JY(G.data().rendererContext),!!OnA(G.data()))},m=function(){return Z()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.e("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:m},_.e(_.l,{cond:function(){return!m()},
then:function(){return _.e(_.l,{cond:K,then:function(a){return _.e(_.fh,{each:a},function(O){return _.e(_.s8,{data:O,isCompact:G.isCompact,isMenuItem:G.isMenuItem,inPopup:G.inPopup,disableHorizontalPadding:G.disableHorizontalPadding})})}})}}))},"le");
fve.idomCompat=!0;_.BOe=_.W(function(G){var c=G.data;var I=G.isCompact;var R=G.hideSelectionTextChevron;var Z=G.inPopup;var K=G.isOverlay;var m=G.disableHorizontalPadding;var a=function(){return eAr(c())&&(Z==null?void 0:Z())},O=_.v("web_list_view_model_listbox_killswitch")?"menu":"listbox";
G=_.Nx(function(q){if(Z!=null&&Z()&&_.v("web_enable_arrow_key_navigation_in_dropdown")){var w=_.QqC(q.currentTarget),F=w.length;if(F!==0){var n=Array.prototype.indexOf.call(w,document.activeElement);switch(q.key){case "ArrowDown":q.preventDefault();var U;(U=w[(n+1)%F])==null||U.focus();break;case "ArrowUp":q.preventDefault();var k;(k=w[n===-1?F-1:(n-1+F)%F])==null||k.focus()}}}});
var N={};return _.e("yt-list-view-model",{class:_.O3("ytListViewModelHost",(N.ytListViewModelHostKaiosSpatNav=mLp&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",N)),role:function(){return a()?O:"list"},
style:_.wi({"max-height":function(){var q,w=(q=c())==null?void 0:q.visibleElementCount;if(w)return(w+.5)*40+"px"}}),
"on:keydown":G},_.e(_.sN,{data:function(){return c().listItems}},{listItemViewModel:function(q){return _.e(_.s8,{data:q.data,
isMenuItem:a,isCompact:I,hideSelectionTextChevron:R,inPopup:Z,isOverlay:K,disableHorizontalPadding:m})},
toggleableListItemViewModel:function(q){return _.e(VbT,{data:q.data})},
downloadListItemViewModel:function(q){return _.e(fve,{data:q.data,isMenuItem:a,isCompact:I,inPopup:Z,disableHorizontalPadding:m})},
switchListItemViewModel:function(q){return _.e(_.Mbi,{data:q.data,disableHorizontalPadding:m})}}))},"me");
_.BOe.idomCompat=!0;var rCA=_.W(function(G){var c=G.data;var I=G.isOverlay;G={};return _.e("yt-course-perks-view-model",{class:_.O3("ytwCoursePerksViewModelHost",(G.ytwCoursePerksViewModelHostOverlay=I,G))},_.e("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e("div",null,_.e(_.l,{cond:function(){return c().perks},
then:function(R){return _.e(_.BOe,{data:function(){return{listItems:R()}},
isCompact:!0,isOverlay:I})}})))},"ne");_.R1(rCA,"yt-course-perks-view-model",{props:{data:_.G9,isOverlay:_.G9}});_.R1(_.W(function(G){var c=G.data;return _.e("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.e("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.e(_.ul,{text:function(){return c().progressSummary}})),_.e("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.e("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.wi({width:function(){return c().progressPercentage*100+"%"}})})))},"oe"),"yt-course-progress-view-model",{props:{data:_.bl}});var jyV=_.W(function(G){var c={};return _.e("yt-progress-view-model",{class:_.O3("ytwProgressViewModelHost",(c.ytwProgressViewModelHostOverlay=_.gD(G.isOverlay,!1),c))},_.e(_.l,{cond:function(){return G.data().progressSummary},
then:function(I){return _.e("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.e(_.ul,{text:I}))}}),_.e("div",{class:"ytwProgressViewModelHostProgressContainer"},_.e(_.l,{cond:function(){return G.data().leadingLabel},
then:function(I){return _.e("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.e(_.ul,{text:I}))}}),_.e("div",{class:"ytwProgressViewModelHostProgressBar"},_.e("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(G.data().progressPercentage||0)*100+"%"}}))))},"pe");var AB=_.W(function(G){var c=G.starNumber;var I=G.data;var R=function(){var Z;return((Z=I())==null?void 0:Z.rating)||0};
return _.e(_.l,{cond:function(){return c()},
then:function(Z){return _.e(_.B1,null,_.e(_.W1,{when:function(){return R()>=Z()-.25}},function(){return _.e("div",{class:"ytStarRatingViewModelHostStar"},_.e(_.F6,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.e(_.W1,{when:function(){return R()>=Z()-.75}},function(){return _.e("div",{class:"ytStarRatingViewModelHostStar"},_.e(_.F6,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.e(_.iV,null,function(){return _.e("div",{class:"ytStarRatingViewModelHostStar"},_.e(_.F6,{icon:"STAR",
size:function(){return 24}}))}))}})},"qe"),xPK=_.W(function(G){G=G.data;
return _.e("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.e(AB,{starNumber:1,data:G}),_.e(AB,{starNumber:2,data:G}),_.e(AB,{starNumber:3,data:G}),_.e(AB,{starNumber:4,data:G}),_.e(AB,{starNumber:5,data:G}))},"re");_.R1(_.W(function(G){var c=_.YW(G,{}).data;return _.e("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.e("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.e(_.ul,{text:function(){var I;return(I=c())==null?void 0:I.title}})),_.e("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.e(_.l,{cond:function(){return c().starProgressViewModels},
then:function(I){return _.e("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.e(_.sN,{data:I},{progressViewModel:jyV}))}}),_.e("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.e("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.e(_.ul,{text:function(){var I;
return(I=c())==null?void 0:I.averageRatingLabel}})),_.e(_.l,{cond:function(){return c().zeroStateText},
then:function(I){return _.e("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.e(_.ul,{text:I}))}}),_.e(_.l,{cond:function(){return c().starRatingViewModel},
then:function(I){return _.e("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.e(_.sN,{data:I},{starRatingViewModel:xPK}))}}),_.e("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.e(_.ul,{text:function(){var I;
return(I=c())==null?void 0:I.totalRatingsCountLabel}})))))},"se"),"yt-course-ratings-view-model",{props:{data:_.G9}});var tb0;tb0={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.hie=_.W(function(G){var c=_.mX("yt-learning-journey-loader-view-model"),I=_.ne();_.xc(function(){requestAnimationFrame(function(){var Z;(Z=I.lottieEl)==null||Z.addEventListener("DOMLoaded",function(){var K;(K=G.onLottieLoaded)==null||K.call(G)})});
var R=G.data().browseEndpoint;R&&_.r0(R)});
return _.e("yt-learning-journey-loader-view-model",{class:_.O3("learningJourneyLoaderViewModelHost",G.className),"data-target-id":function(){return G.data().targetId||""},
el:c},_.e(_.XX,{className:_.O3("learningJourneyLoaderViewModelLoader",G.className),animationName:function(){return tb0.animationConfig.name},
data:tb0,animationRef:I}))},"ue");_.R1(_.hie,"yt-learning-journey-loader-view-model",{props:{data:_.bl,className:_.G9,onLottieLoaded:_.G9}});var dP2=_.W(function(G){var c=function(){return G.data()},I=function(){return!!_.Mo(_.Sh(c())).optionColor},R=_.Q(_.ks(-1,void 0,"gXOYR")),Z=R.next().value,K=R.next().value,m=function(w){return Z()===w},a=function(w){return c().correctAnswerIndex===w},O=function(){return Z()!==-1};
R=_.Q(_.ks("",void 0,"BFwDQb"));var N=R.next().value,q=R.next().value;return _.e("learning-journey-quiz-view-model",{class:_.O3("learningQuizComponentHost","learningJourneyQuizYoututorHost",G.className),style:_.wi({background:function(){return _.Mo(_.Sh(c())).backgroundColor}})},_.e("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},N),_.e("div",{class:"learningQuizComponentQuizContainer"},_.e("div",{class:"learningQuizComponentQuiz"},_.e("div",{class:"learningQuizComponentQuizContent"},_.e(_.l,{cond:function(){return!!c().aiGeneratedQuizLabel},
then:function(){return _.e("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.e(_.ul,{text:function(){return c().aiGeneratedQuizLabel}}))}}),_.e("div",{class:"learningQuizComponentQuizHeader",
style:_.wi({"align-items":function(){return c().overflowMenu?"start":"center"}})},_.e("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.wi({"min-height":function(){return c().overflowMenu?"48px":"26px"}})},_.e("div",{class:"learningJourneyQuizYoututorText",
style:_.wi({color:function(){return _.Mo(_.Sh(c())).primaryTextColor}})},_.e(_.ul,{text:function(){return c().questionHeaderText}})))),_.e("div",{class:"learningQuizComponentQuizSubheader",
style:_.wi({color:function(){return _.Mo(_.Sh(c())).secondaryTextColor}})},_.e(_.ul,{text:function(){var w=c();
return O()?w.explanationText:w.questionSubheaderText}}))),_.e("div",{role:"group",
class:_.O3("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.e(_.fh,{each:function(){return c().optionsData||[]}},function(w,F){var n={};
return _.e("button",{class:_.O3("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(n.learningQuizComponentQuizHover=function(){return!O()},n.learningQuizComponentQuizOptionWithCustomColor=I,n.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return O()&&a(F())},n.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return Z()!==c().correctAnswerIndex&&m(F())},n.learningQuizComponentQuizIncorrectShake=
function(){return Z()!==c().correctAnswerIndex&&m(F())},n)),
"on:click":_.Nx(function(){_.t0(_.DP(),{data:w});if(O())return!1;K(F());var U,k;q(a(F())?((U=c().successTitle)==null?void 0:U.content)||"":((k=c().failureTitle)==null?void 0:k.content)||"");return!1}),
style:_.wi({background:"transparent"}),"aria-description":function(){var U,k;return O()?a(F())?(U=c().successTitle)==null?void 0:U.content:(k=c().failureTitle)==null?void 0:k.content:""},
"aria-disabled":O},_.e("div",{class:"learningQuizComponentQuizOptionContainer"},_.e(_.ul,{text:w.optionText}),_.e(_.l,{cond:function(){var U=F();return O()&&(m(U)||a(U))},
then:function(){var U={};return _.e(_.F6,{className:_.O3("learningJourneyQuizYoututorOptionIcon",(U.learningQuizComponentQuizPulse=function(){return Z()===c().correctAnswerIndex&&a(F())},U)),
size:24,icon:function(){return a(F())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.e(_.l,{cond:O,
then:function(){return _.e("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.e("div",{class:"learningJourneyQuizYoututorExplanationText"},_.e(_.ul,{text:function(){return c().explanationHeaderText}})),_.e(_.ul,{text:function(){return c().optionsData[Z()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ve");
dP2.idomCompat=!0;var lz8=new Set,NMr=null;var CAV;_.H_i=_.W(function(G){var c=null,I=null,R=null,Z=function(){return G.data()},K=function(){return _.Mo(_.Sh(Z()))},m=function(){return!!K().optionColor},a=_.Q(_.ks(-1,void 0,"H2gnQb")),O=a.next().value,N=a.next().value,q=function(x){return O()===x},w=function(x){return Z().correctAnswerIndex===x},F=function(){return O()!==-1},n=function(){return O()===Z().correctAnswerIndex},U=function(){var x=Z(),C=F(),H=n();
return C?H?x.successTitle:x.failureTitle:x.questionHeaderText},k=function(){var x=F(),C=n();
return x?C?264685:264684:264683},p=function(){var x=Z();
return F()?x.explanationText:x.questionSubheaderText},M=function(){return!!Z().video},z=function(x){return n()&&w(x)},t=_.Nx(function(){N(-1);
return!1});
return _.e(_.l,{cond:function(){return Z().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.e(dP2,{data:function(){return Z()}})},
else:function(){return _.e("learning-journey-quiz-view-model",{class:_.O3("learningQuizComponentHost",G.className),style:_.wi({background:function(){return K().backgroundColor}})},_.e(_.l,{cond:M,
then:function(){return _.e("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.wi({background:function(){return K().videoBackgroundColor}})},_.e(_.sN,{data:function(){return Z().video}},{lockupViewModel:function(x){return _.e(_.Yy,{data:x.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.e("div",{class:"learningQuizComponentQuizContainer"},_.e("div",{class:"learningQuizComponentQuiz"},_.e("div",{class:"learningQuizComponentQuizContent"},_.e(_.l,{cond:function(){return!!Z().aiGeneratedQuizLabel},
then:function(){return _.e("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.e(_.ul,{text:function(){return Z().aiGeneratedQuizLabel}}))}}),_.e("div",{class:"learningQuizComponentQuizHeader",
style:_.wi({"align-items":function(){return Z().overflowMenu?"start":"center"}})},_.e("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.wi({"min-height":function(){return Z().overflowMenu?"48px":"26px"}})},_.e("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.YC(function(x){_.VY(k(),x,c,function(C){c=C})}),
style:_.wi({color:function(){return K().primaryTextColor}}),
"client-ve-type":k},_.e(_.ul,{text:U}))),_.e("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.e(_.l,{cond:F,then:function(){return _.e("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.YC(function(x){_.VY(264687,x,I,function(C){I=C})}),
"on:click":t,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.e("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.wi({fill:function(){return K().primaryTextColor}})},_.e("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.e(_.sN,{data:function(){return Z().overflowMenu}},{buttonViewModel:function(x){return _.e(_.BR,{data:x.data})}}))),_.e("div",{class:"learningQuizComponentQuizSubheader",
el:_.YC(function(x){_.VY(264688,x,R,function(C){R=C})}),
style:_.wi({color:function(){return K().secondaryTextColor}}),
"client-ve-type":264688},_.e(_.ul,{text:p}))),_.e("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.e(_.fh,{each:function(){return Z().optionsData||[]}},function(x,C){var H={};
return _.e("button",{class:_.O3("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(H.learningQuizComponentQuizHover=function(){return!F()},H.learningQuizComponentQuizOptionWithCustomColor=m,H.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return z(C())},H.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!n()&&q(C())},H.learningQuizComponentQuizIncorrectShake=function(){return!n()&&
q(C())},H.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return F()&&!q(C())},H)),
"on:click":_.Nx(function(){_.t0(_.DP(),{data:x});if(F())return!1;N(C());return!1}),
style:_.wi({background:function(){var g=C();return F()&&q(g)?"":m()?K().optionColor:"transparent"}}),
"aria-disabled":F},_.e("div",{class:"learningQuizComponentQuizOptionContainer"},_.e(_.l,{cond:F,then:function(){return _.e(CAV,{isOptionCorrect:w,optionIndex:C,isOptionSelectedAndCorrect:z,colors:K})}}),_.e(_.ul,{text:x.optionText})))})))))}})},"we");
CAV=_.W(function(G){var c={};return _.e("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var I=G.optionIndex();return G.isOptionCorrect(I)?"0 0 24 24":"0 -960 960 960"},
class:_.O3("learningJourneyQuizViewModelQuizOptionIconLeading",(c.learningQuizComponentQuizPulse=function(){return G.isOptionSelectedAndCorrect(G.optionIndex())},c)),
style:_.wi({fill:function(){return G.colors().primaryTextColor}})},_.e("path",{d:function(){var I=G.optionIndex();
return G.isOptionCorrect(I)?"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"}}))},"xe");
_.H_i.idomCompat=!0;_.R1(_.H_i,"learning-journey-quiz-view-model",{props:{data:_.bl,className:_.bl}});var XZ2=_.W(function(G){var c=_.Q((0,_.az0)(function(){var m;return{targetId:(m=G.data().config)==null?void 0:m.suspenseKey,contents:[G.data()]}})).next().value,I=_.wH().resolve(_.n4),R=function(){var m=c().contents.length>0?c().contents[0]:void 0;
return m==null?void 0:m.config},Z=function(){var m;
return(m=R())==null?void 0:m.entityTriggerConfig},K=_.um(ePf,function(){var m,a;
return(a=(m=Z())==null?void 0:m.entityKey)!=null?a:""});
_.xs(function(){var m,a,O,N=(O=Number((m=Z())==null?void 0:(a=m.invalidationTimestamp)==null?void 0:a.seconds))!=null?O:0,q,w,F;if(((F=Number((q=K())==null?void 0:(w=q.lastUpdated)==null?void 0:w.seconds))!=null?F:0)>N){var n;(m=(n=R())==null?void 0:n.continuationCommand)&&I.resolveCommand(m)}},"tC8nKe");
return _.e("yt-suspense-view-model",{class:_.O3("ytSuspenseViewModelHost")},_.e(_.sN,{data:function(){var m;return(m=R())==null?void 0:m.contents}},{lockupViewModel:_.Yy}))},"ze");var yCT=_.W(function(G){var c=_.YW(G,{palette:void 0,isLastItem:!1}),I=c.palette,R=c.isLastItem,Z=function(){return G.data().isHighlighted},K=function(){var O;
return wFr((O=I())==null?void 0:O.iconDisabledColor)},m=function(){var O;
return wFr((O=I())==null?void 0:O.primaryTitleColor)},a=function(){var O;
return wFr((O=I())==null?void 0:O.secondaryTitleColor)};
c={};return _.e("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.YC(_.im(function(){return G.data().rendererContext}))},_.e(_.sN,{data:function(){return G.data().thumbnail}},{thumbnailViewModel:_.rE}),_.e("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.e("div",{class:_.O3("ytMacroMarkerListItemViewModelTimeDescription",(c.ytMacroMarkerListItemViewModelHighlighted=Z,c)),
style:_.wi({"background-color":function(){return Z()?m():K()},
color:function(){return Z()?"":a()}})},_.e(_.ul,{text:function(){return G.data().timestamp}})),_.e("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.wi({"background-color":function(){return R()?"transparent":K()}})}),_.e("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Z()?m():a())}},_.e(_.ul,{text:function(){return G.data().title}}))))},"Ae");_.$R=_.W(function(G){function c(hU){z("transform:translateX("+(_.H1("HTML_DIR")==="rtl"?"":"-")+hU+"px)")}
function I(hU){return Math.min(Math.max(hU,0),M()-g())}
function R(){var hU=C()+FB();return Z()?(Math.round(g()/hU)||1)*hU:0}
var Z=function(){return G.data().items||[]},K=function(){return G.data().previousButton},m=function(){return G.data().nextButton},a=function(){var hU,we;
return(we=(hU=G.disableArrows)==null?void 0:hU.call(G))!=null?we:!1},O=function(){var hU;
return!((hU=G.forceNarrowLayout)==null||!hU.call(G))},N=_.SE(function(){var hU;
return!((hU=G.centerAlignItems)==null||!hU.call(G))&&M()<=g()},void 0,"Uto0kc"),q=_.mX("horizontal-shelf-view-model"),w=_.mX("div"),F=_.Q(_.ks(0,void 0,"G0xZB")),n=F.next().value,U=F.next().value;
F=_.Q(_.ks(0,void 0,"kqCYFf"));var k=F.next().value,p=F.next().value,M=k;k=_.Q(_.ks("",void 0,"Hh6Uye"));F=k.next().value;var z=k.next().value;k=_.Q(_.ks(0,void 0,"yMGBKb"));var t=k.next().value,x=k.next().value,C=t;k=_.Q(_.ks(0,void 0,"VChthd"));t=k.next().value;var H=k.next().value,g=t;k=_.Q(_.ks(!1,void 0,"qJlhhe"));var QO=k.next().value,T8=k.next().value;k=_.Q(_.ks(0,void 0,"x7H94"));t=k.next().value;var kp=k.next().value,FB=t;k=_.Q(_.ks(0,void 0,"ksuUee"));var oq=k.next().value,Wr=k.next().value;
k=_.Q(_.ks("50%",void 0,"uxCxde"));var iT=k.next().value,z8=k.next().value,GV=function(){var hU,we=(hU=G.data())==null?void 0:hU.responsiveContainerConfiguration,xK,UK;return we?hY(we==null?void 0:we.responsiveSize):(UK=(xK=G.sizing)==null?void 0:xK.call(G))!=null?UK:"STANDARD"},ei=function(){var hU,we=(hU=G.data())==null?void 0:hU.responsiveContainerConfiguration;
return we?we.enableContentSpecificAspectRatio===!1:!1};
k=_.SE(function(){return!a()&&n()>0},void 0,"hCgtqd");
t=_.SE(function(){return!a()&&n()<M()-g()},void 0,"bluuC");
var Hr=function(){U(I(n()-R()));c(n())},v0=function(){U(I(n()+R()));
c(n())},kK=function(){q.value!==null&&bH()},pN;
_.tI(function(){bH();window.ResizeObserver?(pN=new ResizeObserver(_.W7(kK,0)),pN.observe(q.value)):window.addEventListener("resize",kK)});
_.ty(function(){if(window.ResizeObserver){var hU;(hU=pN)==null||hU.disconnect()}else window.removeEventListener("resize",kK)});
var bH=function(){var hU=q.value.clientWidth,we=G.includeMargin!==void 0?G.includeMargin():!1,xK;var UK=G.hasPeek!==void 0?G.hasPeek():!((xK=G.data())==null||!xK.hasPeek);hU=_.tY({containerWidth:hU,hasPeek:UK,sizing:GV(),marginSettings:we?O()?4:1:0});kp(hU.gutter);Wr(hU.margin);x(hU.itemWidth);T8(hU.maxContainerWidth<528||O());H(hU.maxContainerWidth);Z()&&p((hU.itemWidth+hU.gutter)*Z().length-hU.gutter);if(Z()){var YK;if(((YK=G.thumbnailAspectRatio)==null?void 0:YK.call(G))!==void 0){var en;z8(C()/
jYi((en=G.thumbnailAspectRatio)==null?void 0:en.call(G))/2+"px")}else z8("50%")}},n1={},qf={};
return _.e("horizontal-shelf-view-model",{class:_.O3("ytwHorizontalShelfViewModelHost",G.className),el:q},_.e(_.l,{cond:function(){var hU;return G.data().header&&!((hU=G.horizontalShelfExperiments)==null?0:hU.call(G).hideHeader)},
then:function(){return _.e("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.wi({width:function(){return g()+"px"},
padding:function(){return"0 "+oq()+"px"}})},_.e(_.sN,{data:function(){return G.data().header}},{sectionHeaderViewModel:function(hU){return _.e(_.I4,{data:hU.data,
disableHorizontalPadding:!0,forceSmallLayout:QO,useResponsiveLayout:!0})}}))}}),_.e("div",{class:_.O3("ytwHorizontalShelfViewModelOuterContainer",(n1.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return N()},n1)),
style:_.wi({"margin-top":function(){var hU,we=G.data().header&&!((hU=G.horizontalShelfExperiments)==null?0:hU.call(G).hideHeader),xK;return(((xK=G.ensureMarginTop)==null?0:xK.call(G))&&!we?12:0)+"px"}})},_.e("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.wi({width:function(){return g()+"px"},
padding:function(){return"0 "+oq()+"px"},
overflow:function(){return a()?"auto":"hidden"}})},_.e("div",{class:_.O3("ytwHorizontalShelfViewModelItems",(qf.ytwHorizontalShelfViewModelCenterAlignItems=function(){return N()},qf)),
el:w,style:F},_.e(_.sN,{data:Z},{macroMarkerListItemViewModel:function(hU,we){return _.e("div",{style:_.wi({width:function(){return C()+"px"},
"margin-right":function(){return(we()===Z().length-1?0:FB())+"px"}})},_.e(yCT,{data:hU.data,
palette:_.gD(G.palette),isLastItem:function(){return we()===Z().length-1}}))},
lockupViewModel:function(hU,we){var xK=hU.data;return _.e("div",{style:_.wi({width:function(){return C()+"px"},
"margin-right":function(){return(we()===Z().length-1?0:FB())+"px"}})},_.e(_.Yy,{data:xK,
containerType:4,sizing:GV,protectBackground:G.protectBackground,thumbnailFixedWidth:function(){return FH0(xK())+"px"},
thumbnailTargetWidth:function(){return FH0(xK())},
force16By9ThumbnailAspectRatio:ei}))},
suspenseViewModel:function(hU,we){return _.e("div",{style:_.wi({width:function(){return C()+"px"},
"margin-right":function(){return(we()===Z().length-1?0:FB())+"px"}})},_.e(XZ2,{data:hU.data}))}}))),_.e(_.l,{cond:k,
then:function(){return _.e("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.wi({top:function(){return iT()}})},_.e(_.sN,{data:K},{buttonViewModel:function(hU){return _.e(_.BR,{data:hU.data,
onClick:Hr})}}))}}),_.e(_.l,{cond:t,
then:function(){return _.e("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.wi({top:function(){return iT()}})},_.e(_.sN,{data:m},{buttonViewModel:function(hU){return _.e(_.BR,{data:hU.data,
onClick:v0})}}))}})))},"Be");
_.$R.idomCompat=!0;var g2B=_.W(function(G){var c=function(){return G.data().targetId||""},I=function(){var k;
return((k=G.data())==null?void 0:k.expansionEntityKey)||""},R=_.um(_.OWA,I),Z=!0,K=function(){var k;
return((k=R())==null?void 0:k.value)===c()},m=function(k){_.y1(_.Le("stringEntity",I(),{key:I(),
value:k?c():""}))};
_.xc(function(){Z=!1;G.data().isExpanded&&m(!0)});
var a=function(){if(K()){var k=!0;G.onCollapse!==void 0&&(k=G.onCollapse());k&&m(!1)}else m(!0)},O=_.Nx(a),N=function(){var k;
return(((k=G.accordionStyle)==null?void 0:k.call(G))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},q=_.mX("div"),w=function(){var k,p;
return(p=(k=_.D(G.data().rendererContext,_.Aq))==null?void 0:k.label)!=null?p:""},F=function(){var k,p;
return{disabled:(k=G.hideIfNotExpanded)==null?void 0:k.call(G),ariaHidden:(p=G.hideIfNotExpanded)==null?void 0:p.call(G)}},n={},U={};
return _.e("yt-accordion-item-view-model",{class:_.O3("ytAccordionItemViewModelHost",G.className,(n.ytAccordionItemViewModelExpanded=function(){return K()},n.ytAccordionItemViewModelHidden=function(){var k;
return(k=G.hideIfNotExpanded)==null?void 0:k.call(G)},n.ytAccordionItemViewModelMini=N,n)),
"data-target-id":c},_.e("div",{class:"ytAccordionItemViewModelContainer"},_.e("div",{class:"ytAccordionItemViewModelLeftSection","on:click":O,title:w,"aria-hidden":function(){var k;return(k=G.hideIfNotExpanded)==null?void 0:k.call(G)}},_.e(_.ul,{text:function(){return G.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:w})),_.e("div",{class:"ytAccordionItemViewModelRightSection"},_.e(_.sN,{data:function(){return K()?G.data().expandButton:G.data().collapseButton}},{buttonViewModel:function(k){return _.e(_.BR,{data:k.data,
className:"ytAccordionItemViewModelToggleButton",onClick:a,buttonOverrides:F})}}))),_.e("div",{class:"ytAccordionItemViewModelContainer"},_.e("div",{class:_.O3("ytAccordionItemViewModelContent",(U.ytAccordionItemViewModelExpandedSubtitle=function(){return K()},U)),
el:q,style:_.wi({"max-height":function(){return Z?"auto":K()?q.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!K()}},_.e(_.l,{cond:function(){return!N()},
then:function(){return _.e(_.ul,{text:function(){return G.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.e(_.sN,{data:function(){return G.data().content}},{horizontalShelfViewModel:function(k){return _.e(_.$R,{data:k.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"De");_.YM2=_.W(function(G){var c=_.Q((0,_.az0)(G.data)).next().value,I=function(){return G.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},R=function(){return I()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Z=_.Q(_.ks(!0,void 0,"VFpYAb")),K=Z.next().value,m=Z.next().value,a=function(){return R()&&K()},O=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){m(!K())}}},N=_.Nx(function(){c().onTitleTap&&_.r0(c().onTitleTap||{})});
Z={};return _.e("yt-accordion-view-model",{class:_.O3("ytAccordionViewModelHost",(Z.ytAccordionViewModelMinimized=function(){return a()},Z)),
"data-target-id":function(){return G.data().targetId||""}},_.e(_.l,{cond:function(){return R()||!!c().title},
then:function(){return _.e("div",{class:"ytAccordionViewModelHeader"},_.e("div",{class:"ytAccordionViewModelTitleSection"},_.e("div",{class:"ytAccordionViewModelTitleWrapper"},_.e(_.l,{cond:function(){return!!G.data().headerIcon},
then:function(){return _.e(_.F6,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var q;return(q=G.data().headerIcon)==null?void 0:q.iconType}})}}),_.e("div",{class:"ytAccordionViewModelTitle",
"on:click":N},_.e(_.ul,{className:"ytAccordionViewModelTitleText",text:function(){return c().title}})))),_.e("div",{class:"ytAccordionViewModelButtonSection"},_.e(_.l,{cond:R,
then:function(){return _.e(_.fx,{data:O,iconName:function(){return a()?"chevron_down":"chevron_collapse"}})}})))}}),_.e("div",{class:"ytAccordionViewModelContent"},_.e(_.sN,{data:function(){return c().contents}},{accordionItemViewModel:function(q){return _.e(g2B,{data:q.data,
className:"ytAccordionViewModelRow",accordionStyle:I,hideIfNotExpanded:a,onCollapse:function(){return R()?(m(!0),!1):!0}})}})),_.e("div",null,_.e(_.l,{cond:function(){return!R()&&(!!c().disclaimerFooter||!!c().footer)},
then:function(){return _.e("div",{class:"ytAccordionViewModelFooter"},_.e(_.ul,{text:function(){return c().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.e(_.sN,{data:function(){return G.data().footer}},{flexibleActionsViewModel:function(q){return _.e(_.FK,{data:q.data,
layout:0})}}))}})))},"Ee");_.R1(_.YM2,"yt-accordion-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=null,I=null,R,Z=(R=_.wH().resolve(_.qR(_.d0)))==null?void 0:R(),K=_.Q(_.ks(!1,void 0,"CmEVtc"));R=K.next().value;var m=K.next().value;K=_.Q(_.ks(!0,void 0,"yo9dR"));var a=K.next().value,O=K.next().value,N=_.mX("textarea",function(p){_.VY(264503,p,c,function(M){c=M})}),q=function(p){m(!0);
p={learningJourneyFormData:{query:p}};_.r0(G.data().searchEndpoint||{},{form:{formData:p}});return!1},w=_.Nx(function(p){p.target.closest("button-view-model")&&m(!0)});
K=_.Nx(function(){O(N.value.value.length===0)});
var F=_.Nx(function(p){if(p.key==="Enter"&&!p.shiftKey&&!a()){var M=p.target;p.preventDefault();q(M.value)}}),n={},U={},k={};
return _.e("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.e("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.e(_.yc,{data:function(){return G.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.e("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.e("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.e("div",{class:_.O3("ytLearningJourneyZeroStateSearchBar",(n.ytLearningJourneyZeroStateSearchBarDark=Z,n))},_.e("textarea",{class:_.O3("ytLearningJourneyZeroStateTextInput",(U.ytLearningJourneyZeroStateTextInputDark=Z,U)),el:N,"on:keyup":K,"on:keydown":F,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.e("div",{class:_.O3("ytLearningJourneyZeroStateSearchButtonContainer",(k.ytLearningJourneyZeroStateSearchButtonContainerDark=Z,k))},_.e(_.BR,{data:function(){return _.D(G.data().searchButton,_.uv)},
className:"search-button",onClick:function(){return q(N.value.value)},
buttonOverrides:function(){return{disabled:a(),style:Z?"mono-inverse":"mono",size:"XL"}}}))),_.e(_.l,{cond:function(){return!!G.data().errorBanner},
then:function(){return _.e("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.YC(function(p){_.VY(264617,p,I,function(M){I=M})})},_.e(_.sN,{data:function(){return G.data().errorBanner}},{alertBannerViewModel:function(p){return _.e(_.o2B,{data:p.data,
"client-ve-type":264617})}}))}})),_.e(_.l,{cond:R,
then:function(){return _.e("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.e(_.sN,{data:function(){return G.data().loader}},{learningJourneyLoaderViewModel:function(p){return _.e(_.hie,{data:p.data})}}))},
else:function(){return _.e("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.e(_.l,{cond:function(){return!!G.data().learningJourneyShelf},
then:function(){return _.e("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.e("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().learningJourneySectionTitle}),_.e(_.sN,{data:function(){return G.data().learningJourneyShelf}},{horizontalShelfViewModel:function(p){return _.e(_.$R,{data:p.data,
centerAlignItems:!0})}}))}}),_.e("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.e("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().suggestedJourneySectionTitle}),_.e("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":w},_.e(_.sN,{data:function(){return G.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(p){return _.e(_.FK,{data:p.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Fe"),"yt-learning-journey-zero-state",{props:{data:_.bl}});var G8j=_.W(function(G){var c=G.data;return _.e("ytvl-live-leaderboard-item-action-content-view-model",{class:_.O3("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.e(_.ul,{text:function(){var I;return(I=c())==null?void 0:I.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.e(_.sN,{data:function(){return c().actionButton}},{buttonViewModel:function(I){return _.e(_.BR,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:I.data})}}))},"Ge");var cUr=_.W(function(G){var c=G.data;return _.e("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.O3("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.e(_.ul,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var I;return(I=c())==null?void 0:I.displayName},
ellipsisTruncate:!0}),_.e(_.sN,{data:function(){return c().badge}},{buttonViewModel:function(I){return _.e(_.BR,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:I.data})}}))},"He");_.R1(_.W(function(G){var c=G.data;return _.e("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.e("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.e(_.ul,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var I;return(I=c())==null?void 0:I.rank}})),_.e("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.e(_.sN,{data:function(){return c().avatar}},{avatarViewModel:_.qF})),_.e("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.e(_.sN,{data:function(){return c().content}},{liveLeaderboardItemChannelContentViewModel:cUr,
liveLeaderboardItemActionContentViewModel:G8j})),_.e(_.ul,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var I;return(I=c())==null?void 0:I.points}}))},"Ie"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;return _.e("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.e(_.ul,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var I,R;return(I=c())==null?void 0:(R=I.ranking)==null?void 0:R.rank}}),_.e("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.e(_.sN,{data:function(){return c().avatar}},{avatarViewModel:_.qF})),_.e(_.ul,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var I,R;return(I=c())==null?void 0:(R=I.channelContent)==null?void 0:R.channelName}}),_.e(_.ul,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var I;return(I=c())==null?void 0:I.points}}))},"Je"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.bl}});var Iir=_.W(function(G){G=_.YW(G,{wrapper:!1}).wrapper;return _.e(_.l,{cond:G,then:function(){return _.e("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.e("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.e("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ke");
Iir.idomCompat=!0;var RCG=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],ZAj=_.W(function(G){var c=G.data;var I=_.YC(),R=_.SE(function(){return c().command},void 0,"fyYsT");
_.xs(function(){R()&&_.iD(R(),{form:{element:I.value}})},"B0nxdb");
return _.e("div",{el:I,class:"YtQrCodeRendererHostContainer"},_.e(_.l,{cond:function(){return c().qrCodeImage},
then:function(Z){return _.e(_.yc,{data:Z,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.e(_.l,{cond:function(){return c().spinner},
then:function(){return _.e(Iir,null)}})}}),_.e(_.l,{cond:function(){return c().label},
then:function(Z){return _.e(_.ul,{text:Z,className:"YtQrCodeRendererHostLabel"})}}),_.e(_.l,{cond:function(){return c().labels},
then:function(Z){return _.e("div",{class:"YtQrCodeRendererHostLabels"},_.e(_.fh,{each:Z},function(K){return _.e(_.ul,{text:K})}))}}))},"Ne");_.R1(_.W(function(G){var c=G.data;var I=_.SE(function(){return c().qrEntityKey},void 0,"LmZ2xf"),R=_.SE(function(){return c().deleteEntityOnDismiss},void 0,"my0Tzb"),Z=_.SE(function(){return c().command},void 0,"hzECIb"),K=_.um(kYO,I);
G=_.SE(function(){return c().qrCodeImage},void 0,"AnD9rc");
var m=_.SE(function(){return c().style&&RCG.includes(c().style)},void 0,"f5fZv"),a=_.wZ({visibilityCallback:function(O){O&&Z()&&_.iD(Z())},
showOption:{calledOnce:!0,state:"visible"}});_.tI(function(){_.ty(function(){R()&&I()&&_.XZ().dispatch(_.Le("qrCodeEntity",I()))})});
return _.e("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.YC(a)},_.e(_.l,{cond:m,then:function(){return _.e(_.l,{cond:K,then:function(O){return _.e(ZAj,{data:O})}})}}),_.e(_.l,{cond:G,
then:function(O){return _.e(_.yc,{data:O,alt:""})}}))},"Le"),"yt-qr-code-renderer",{props:{data:_.bl}});var PTH=_.W(function(G){var c=function(){return _.pE(1728053247&(G.barColor!==void 0?uP(G.barColor()):4278190080))};
return _.e("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.e("div",{class:"ytVideoOverviewGhostCardDetails"},_.e(KgH,{animationDelay:0,percentWidth:100,barColor:function(){return c()}}),_.e(KgH,{animationDelay:600,
percentWidth:60,barColor:function(){return c()}})))},"Oe"),KgH=_.W(function(G){return _.e("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+G.percentWidth()+"%"}},_.e("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var c=G.animationDelay(),I=G.barColor();return"animation-delay:"+c+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+I+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Pe");var Qq0;_.mfW=_.W(function(G){function c(M){m(M)}
var I=G.data;var R=_.mX("yt-video-overview-view-model"),Z=_.Op("div");G=_.Q(_.ks(-1,void 0,"dW11He"));var K=G.next().value,m=G.next().value;G=_.Q(_.ks(0,void 0,"LqrsK"));var a=G.next().value,O=G.next().value,N={},q=_.um(nIr,function(){return I().asyncDataEntityKey}),w=function(){var M;
if((M=q())==null?0:M.videoOverviewViewModel){var z;return _.D((z=q())==null?void 0:z.videoOverviewViewModel,z7i)}return I()};
_.tI(function(){O(Math.min((R.value.clientWidth-24)/4-8,72))});
var F=function(M){m(M);(Z==null?0:Z.value)&&Z.value.children[M]&&Z.value.children[M].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
s_p(R,function(){var M;if((M=w())==null||!M.inlinePlaybackEndpoint)return null;var z;M=N==null?void 0:(z=N.thumbnailElRef)==null?void 0:z.value;if(!M)return null;var t;z=(t=w())==null?void 0:t.inlinePlaybackEndpoint;t=_.D(z,H$T);return{multipleVideoPreviewData:{data:(t==null?0:t.playerDescriptors)&&(t==null?0:t.playerDescriptors.length)?t.playerDescriptors:[],thumbnailElement:M,trackingParams:"test",callbacks:{onPlaybackStarted:F},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var n=function(){var M;return((M=w())==null?void 0:M.headerSubtext)!==void 0?!0:!1},U=function(){var M,z=uP((M=w())==null?void 0:M.titleColor);
return z?"color: "+_.pE(z)+";":void 0},k=function(){var M,z=uP((M=w())==null?void 0:M.subtextColor);
return z?"color: "+_.pE(z)+";":void 0},p=function(){return _.e("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.e("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return U()}},_.e(_.ul,{text:function(){var M;
return(M=w())==null?void 0:M.headerText}})),_.e(_.l,{cond:n,
then:function(){return _.e("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.e("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return k()}},_.e(_.F6,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.e("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return k()}},_.e(_.ul,{text:function(){var M;
return(M=w())==null?void 0:M.headerSubtext}})))}}))};
G={};return _.e("yt-video-overview-view-model",{class:_.O3("ytGenAiVideoOverviewViewModelHost",(G.ytGenAiVideoOverviewViewModelMweb=!1,G.ytGenAiVideoOverviewViewModelDesktop=!0,G)),el:R,style:function(){var M,z=uP((M=w())==null?void 0:M.backgroundColor);return z?"background-color: "+_.pE(z)+";":void 0}},_.e(_.l,{cond:function(){var M;
return(M=w())==null?void 0:M.isLoading},
then:function(){return _.e(PTH,{barColor:function(){var M;return(M=w())==null?void 0:M.titleColor}})},
else:function(){return _.e(_.FG,null,null,_.e("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.e(_.sN,{data:function(){var M;return(M=w())==null?void 0:M.thumbnail}},{thumbnailViewModel:function(M){return _.e(_.rE,{data:M.data,
aspectRatio:0,playbackRef:bXA(N)})}})),_.e("div",{class:"ytGenAiVideoOverviewViewModelDetails"},p(),_.e(_.l,{cond:function(){var M,z,t,x;
return((M=w())==null?void 0:(z=M.listItems)==null?void 0:z.length)!==void 0&&((t=w())==null?void 0:(x=t.listItems)==null?void 0:x.length)>0?!0:!1},
then:function(){return _.e("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:Z},_.e(_.fh,{each:function(){var M;return(M=w())==null?void 0:M.listItems}},function(M,z){return _.e(Qq0,{image:M.image,
index:z,isSelected:function(){return z()===K()},
onClick:c,itemWidth:a})}))}}),_.e("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.e("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return U()}},_.e(_.ul,{text:function(){var M,z,t,x,C,H,g;
return(g=(M=w())==null?void 0:(z=M.listItems)==null?void 0:(t=z[K()])==null?void 0:t.headline)!=null?g:(x=w())==null?void 0:(C=x.listItems)==null?void 0:(H=C[0])==null?void 0:H.headline}})),_.e("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return k()}},_.e(_.ul,{text:function(){var M,z,t,x,C,H,g;
return(g=(M=w())==null?void 0:(z=M.listItems)==null?void 0:(t=z[K()])==null?void 0:t.subtext)!=null?g:(x=w())==null?void 0:(C=x.listItems)==null?void 0:(H=C[0])==null?void 0:H.subtext}})))))}}))},"Qe");
Qq0=_.W(function(G){var c=G.image;var I=G.itemWidth;var R=G.index;var Z=G.isSelected;var K=G.onClick;G=_.Nx(function(){R!==void 0&&K!==void 0&&K(R());return!1});
var m={};return _.e("div",{class:_.O3("ytGenAiVideoOverviewViewModelCarouselItem",(m.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return Z==null?void 0:Z()},m)),
style:function(){return"width: "+I()+"px;"},
"on:click":G},_.e(_.yc,{data:c,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.e(_.l,{cond:function(){return Z==null?void 0:Z()},
then:function(){return _.e("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.e("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Re");
_.mfW.idomCompat=!0;_.R1(_.mfW,"yt-video-overview-view-model",{props:{data:_.bl}});_.ai0=_.W(function(G){var c=G.data;var I=G.topbarOffset;var R,Z=((R=_.wH().resolve(_.qR(_.d0)))==null?void 0:R())||!1;return _.e("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var K=c();var m,a,O=Z?(m=K.config)==null?void 0:m.darkThemeBackgroundColor:(a=K.config)==null?void 0:a.lightThemeBackgroundColor;K=O?_.Sx(O):void 0;K="background-color: "+K+";";I!==void 0&&(K+="top: -"+I()+"px;");return K},
"aria-hidden":!0},_.e(_.l,{cond:function(){var K,m,a;return!!((K=c().backgroundImageConfig)==null?0:(m=K.image)==null?0:(a=m.sources)==null?0:a.length)},
then:function(){return _.e(_.yc,{data:function(){var K;return(K=c().backgroundImageConfig)==null?void 0:K.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.e("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+vI8(Z,c().gradientColorConfig)+";"}}))},"Se");
_.ai0.idomCompat=!0;var Tbg=_.W(function(G){var c=G.data;var I=G.isOverlay;return _.e("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.e("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.e(_.sN,{data:function(){return c().header}},{sectionHeaderViewModel:function(R){return _.e(_.I4,{data:R.data,
isOverlay:I})}})),_.e("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.e(_.sN,{data:function(){return c().channelInfoButtons}},{flexibleActionsViewModel:_.FK})),_.e("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.e(_.sN,{data:function(){return c().description}},{descriptionPreviewViewModel:function(R){return _.e(_.cc,{data:R.data,
isOverlay:I})}})))},"Te");
Tbg.idomCompat=!0;var OA$=_.W(function(G){var c=G.data;var I={};return _.e("factoid-view-model",{class:_.O3("ytwFactoidViewModelHost",(I.ytwFactoidViewModelHostOverlay=G.isOverlay,I))},_.e(_.ul,{text:function(){return c().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.e(_.ul,{text:function(){return c().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ue");
OA$.idomCompat=!0;var eCG=_.W(function(G){var c=G.data;var I=G.isOverlay;return _.e("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.e(_.sN,{data:function(){return c().factoids}},{factoidViewModel:function(R){return _.e(OA$,{data:R.data,
isOverlay:I})}}))},"Ve");
eCG.idomCompat=!0;_.Nbr=_.W(function(G){var c=G.data;var I=G.isOverlay;return _.e("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.e(_.sN,{data:function(){return c().items}},{channelInfoViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(Tbg,{data:R.data,
isOverlay:I}))},
coursePerksViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(rCA,{data:R.data,isOverlay:I}))},
descriptionPreviewViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(_.cc,{data:R.data,isOverlay:I}))},
factoidsRowViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(eCG,{data:R.data,isOverlay:I}))},
progressViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(jyV,{data:R.data,isOverlay:I}))}}))},"We");var liu=_.W(function(G){return _.e("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.e(_.sN,{data:function(){return G.data().content}},{courseMetadataViewModel:function(c){return _.e(_.Nbr,{data:c.data,
isOverlay:G.isOverlay})},
progressViewModel:function(c){return _.e(jyV,{data:c.data})}}))},"Xe");var q0r=_.W(function(G){var c=G.data;G=G.className;var I=function(){var Z;return _.W8((Z=c())==null?void 0:Z.rendererContext)},R={};
R=(R.dynamicTextViewModelHost=!0,R.dynamicTextViewModelHostTappable=function(){return I()},R);
return _.e("yt-dynamic-text-view-model",{el:_.YC(_.im(function(){var Z;return(Z=c())==null?void 0:Z.rendererContext})),
role:function(){return I()?"link":void 0},
tabindex:function(){return I()?0:void 0},
class:_.O3(G,R)},_.e("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var Z,K,m;return(m=(K=_.D((Z=c())==null?void 0:Z.rendererContext,_.Aq))==null?void 0:K.label)!=null?m:""}},_.e(_.ul,{text:function(){return c().text},
userInput:!0})))},"Ye");
q0r.idomCompat=!0;_.Sa=_.W(function(G){var c=G.data;var I=G.isPositionRelative;var R=_.oIT("(max-width: 527.9px)"),Z=function(){var K,m;return(m=(K=c())==null?void 0:K.style)!=null?m:"IMAGE_BANNER_STYLE_FULL_BLEED"};
G={};return _.e("yt-image-banner-view-model",{el:_.YC(_.im(function(){var K;return(K=c())==null?void 0:K.rendererContext})),
class:_.O3((G.ytImageBannerViewModelHost=!0,G.ytImageBannerViewModelInset=function(){return Usg(Z())},G.ytImageBannerViewModelPositionAbsolute=function(){return _.dN(!0)&&!(I==null?0:I())},G.ytImageBannerViewModelSmallInset=function(){return Usg(Z())&&R()},G.ytImageBannerViewModelTappable=function(){var K;
return _.W8((K=c())==null?void 0:K.rendererContext)},G))},_.e(_.l,{cond:function(){var K;
return(K=c())==null?void 0:K.image},
then:function(){return _.e(_.yc,{data:function(){return c().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.e(_.sN,{data:function(){var K;
return(K=c())==null?void 0:K.overlays}},{thumbnailHoverOverlayViewModel:lE}))},"Ze");
_.Sa.idomCompat=!0;var wrW;wrW=_.W(function(G){var c=G.condition;var I=G.content;return _.e(_.l,{cond:c,then:function(){return _.e("div",{class:"yt-page-header-view-model__scroll-container"},I())},
else:function(){return I()}})},"$e");
_.Fgr=_.W(function(G){var c=G.data;var I=G.noPadding;var R=G.enableBanner;var Z=G.cinematicContainerTopbarOffset;var K=G.allowCinematicContainerOverflow;var m=G.displayAsSidebar;var a=G.displayAsPanel;var O=G.alwaysUseMediumTextDescription;var N=u2r(),q=function(){return!!c().image||!!c().animatedImage},w=function(){return!!c().background},F=function(){return(m==null?0:m())||(a==null?0:a())?1:N()},n=function(){return F()===1},U=function(){return n()||F()===2},k=function(){return F()===4},p=function(){var oq=
c();
var Wr=!!c().heroImage;var iT=F(),z8=bnp(c()),GV=m==null?void 0:m(),ei=!oq.metadata,Hr;if(Hr=Wr?_.D(oq.heroImage,U_2):_.D(oq.animatedImage||oq.image,U_2)){oq=Hr.style;var v0=Hr.layoutMode;if(v0!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Hr=y9A(XJU(Hr)),Wr)Wr=DsO(iT,oq,v0,Hr,GV);else b:if(ei)Wr=iT===1?{size:48}:{size:72};else switch(iT){case 1:Wr={size:72};break b;case 2:Wr={size:120};break b;default:Wr=z8<4?{size:120}:{size:160}}else Wr=void 0}else Wr={size:0};return Wr};
G={};G=_.O3((G["yt-page-header-view-model"]=!0,G["yt-page-header-view-model--no-padding"]=function(){return!(I==null||!I())},G["yt-page-header-view-model--small-top-padding"]=function(){return n()&&!c().actions&&!(a==null?0:a())||F()===2&&!(q()||c().heroImage)},G["yt-page-header-view-model--small-bottom-padding"]=function(){return U()&&!c().actions&&!(a==null?0:a())},G["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(K==null?0:K())},G["yt-page-header-view-model--display-as-sidebar"]=
m,G));
var M={},z=_.O3((M["yt-page-header-view-model__page-header-headline"]=!0,M["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var oq;return(oq=p())==null?void 0:oq.allowFullWidth},M)),t=function(){var oq;
return U()&&!((oq=p())==null?0:oq.allowFullWidth)},x=function(){return n()&&(!!c().heroImage||q())&&bnp(c())>0},C=function(){return x()&&(a==null?void 0:a())};
M={};var H=_.O3((M["yt-page-header-view-model__page-header-title"]=!0,M["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!x()},M["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return x()&&!C()},M["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=C,M["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=w,M));
M={};var g=_.O3((M["yt-page-header-view-model__page-header-headline-image"]=!0,M["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!c().heroImage&&U()},M));
M={};var QO=_.O3((M["yt-page-header-view-model__page-header-banner-container"]=R,M["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var oq;return(R==null?void 0:R())&&((oq=_.D(c().banner,_.bIi))==null?void 0:oq.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},M));
M={};var T8=_.O3((M["yt-page-header-view-model__page-header-content-metadata"]=!0,M["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=w,M));M={};var kp=_.O3((M["yt-page-header-view-model__page-header-flexible-actions"]=!0,M["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!c().metadata||U()},M["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!U()},M));
M={};var FB=_.O3((M["yt-page-header-view-model__page-header-attribution"]=!0,M["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=w,M));return _.e("yt-page-header-view-model",{class:G},_.e(_.l,{cond:w,then:function(){return _.e("div",{class:"yt-page-header-view-model__page-header-background"},_.e(_.sN,{data:function(){return c().background}},{cinematicContainerViewModel:function(oq){return _.e(_.ai0,{data:oq.data,
topbarOffset:Z})}}))}}),_.e(wrW,{condition:function(){return!(m==null||!m())},
content:function(){return _.e("div",{class:"yt-page-header-view-model__page-header-content"},_.e(_.l,{cond:function(){return(R==null?void 0:R())&&c().banner},
then:function(){return _.e("div",{class:QO},_.e(_.sN,{data:function(){return c().banner}},{imageBannerViewModel:_.Sa}))}}),_.e("div",{class:z},_.e(_.l,{cond:q,
then:function(){return _.e(_.sN,{data:function(){var oq;if(!(oq=c().animatedImage)){oq=c();if(q()){var Wr=oq=Object.assign({},oq),iT=F(),z8=bnp(c()),GV=Wr.image,ei=_.D(GV,u$e),Hr=ei==null?void 0:ei.avatar,v0=_.D(Hr,_.B8);if(GV&&Hr&&v0){switch(iT){case 1:v0.avatarImageSize="AVATAR_SIZE_XL";break;case 2:v0.avatarImageSize="AVATAR_SIZE_XXL";break;default:z8<4?v0.avatarImageSize="AVATAR_SIZE_XXL":v0.avatarImageSize="AVATAR_SIZE_XXXL"}_.MC(Hr,_.B8,Object.assign({},v0));ei.avatar=Object.assign({},Hr);_.MC(GV,
u$e,Object.assign({},ei));Wr.image=Object.assign({},GV)}}oq=oq.image}return oq}},{contentPreviewImageViewModel:function(oq){return _.e(_.hp,{data:oq.data,
className:g,imageSizeConfig:p})},
decoratedAvatarViewModel:function(oq){return _.e(_.wE,{data:oq.data,className:g})}})}}),_.e(_.l,{cond:function(){return!!c().heroImage&&!t()},
then:function(){return _.e(_.sN,{data:function(){return c().heroImage}},{contentPreviewImageViewModel:function(oq){return _.e(_.hp,{data:oq.data,
className:g,imageSizeConfig:p})}})}}),_.e("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.e(_.l,{cond:function(){return!!c().heroImage&&t()},
then:function(){return _.e("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.e(_.sN,{data:function(){return c().heroImage}},{contentPreviewImageViewModel:function(oq){return _.e(_.hp,{data:oq.data,
className:g,imageSizeConfig:p})}}))}}),_.e(_.sN,{data:function(){return c().title}},{dynamicTextViewModel:function(oq){return _.e(q0r,{data:oq.data,
className:H})}}),_.e(_.sN,{data:function(){return c().metadata}},{contentMetadataViewModel:function(oq){return _.e(_.Cb,{data:oq.data,
layout:function(){return n()?1:0},
className:T8,isOverlay:w,useMediumText:k})}}),_.e(_.l,{cond:function(){return c().description&&!n()},
then:function(){return _.e(_.sN,{data:function(){return c().description}},{descriptionPreviewViewModel:function(oq){return _.e(_.cc,{data:oq.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:w,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:function(){return(O==null?void 0:O())||k()}})}})}}),_.e(_.l,{cond:function(){return c().attribution&&!U()},
then:function(){return _.e(_.sN,{data:function(){return c().attribution}},{attributionViewModel:function(oq){return _.e(dE,{data:oq.data,
className:FB,useMediumText:k})}})}}),_.e(_.l,{cond:function(){return c().actions&&!U()},
then:function(){return _.e(_.sN,{data:function(){return c().actions}},{flexibleActionsViewModel:function(oq){return _.e(_.FK,{data:oq.data,
layout:function(){return k4p(F())},
className:kp})}})}}))),_.e("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.e(_.l,{cond:function(){return c().description&&n()},
then:function(){return _.e(_.sN,{data:function(){return c().description}},{descriptionPreviewViewModel:function(oq){return _.e(_.cc,{data:oq.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:w,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:function(){return(O==null?void 0:O())||k()}})}})}}),_.e(_.l,{cond:function(){return c().attribution&&U()},
then:function(){return _.e(_.sN,{data:function(){return c().attribution}},{attributionViewModel:function(oq){return _.e(dE,{data:oq.data,
className:FB,useMediumText:k})}})}}),_.e(_.l,{cond:function(){return c().actions&&U()},
then:function(){return _.e(_.sN,{data:function(){return c().actions}},{flexibleActionsViewModel:function(oq){return _.e(_.FK,{data:oq.data,
layout:function(){return k4p(F())},
className:kp})}})}})),_.e("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.e(_.sN,{data:function(){return c().bottomMetadataFlexibleContainer}},{flexibleContainer:function(oq){return _.e(liu,{data:oq.data,
isOverlay:w})}})))}}))},"af");
_.Fgr.idomCompat=!0;_.R1(_.W(function(G){var c=_.Q(_.ks(!1,void 0,"qvRy4d")),I=c.next().value,R=c.next().value;return _.e("yt-official-card-view-model",{class:_.O3("ytOfficialCardViewModelHost",G.className),style:_.wi({"background-color":function(){var Z,K=uP((Z=G.data())==null?void 0:Z.backgroundColor);return K?_.pE(K):void 0}})},_.e(_.sN,{data:function(){return G.data().header}},{pageHeaderViewModel:function(Z){return _.e(_.Fgr,{data:Z.data,
noPadding:!0})}}),_.e(_.sN,{data:function(){return G.data().contents}},{horizontalShelfViewModel:function(Z){return _.e(_.$R,{data:Z.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.e(_.l,{cond:I,
then:function(){return _.e("div",{class:"ytOfficialCardViewModelExpandedContent"},_.e(_.sN,{data:function(){return G.data().expandedContents}},{horizontalShelfViewModel:function(Z){return _.e(_.$R,{data:Z.data,
sizing:"MINI"})}}),_.e("div",{class:"ytOfficialCardViewModelCollapseButton"},_.e(_.sN,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
onClick:function(){R(!I())}})}})))},
else:function(){return _.e("div",{class:"ytOfficialCardViewModelExpandButton"},_.e(_.sN,{data:function(){return G.data().expandButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
onClick:function(){R(!I())}})}}))}}))},"bf"),"yt-official-card-view-model",{props:{data:_.bl,
className:_.bl}});var npF=_.W(function(G){var c,I=(c=_.wH().resolve(_.qR(_.d0)))==null?void 0:c();return _.e("ytw-search-friction-view-model",{class:_.O3("ytwSearchFrictionViewModelHost",G.className)},_.e("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.e("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.e(_.l,{cond:function(){return I&&G.data().darkThemeImage?G.data().darkThemeImage:G.data().image},
then:function(R){return _.e(_.yc,{data:R,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.e(_.sN,{data:function(){return G.data().overflowMenuButton}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.e(_.ul,{text:function(){return G.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.e(_.fh,{each:function(){return G.data().bodyText||[]}},function(R){return _.e(_.ul,{text:R,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.e(_.sN,{data:function(){return G.data().actions}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.e(_.ul,{text:function(){return G.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.e(_.ul,{text:function(){return G.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"cf");
npF.idomCompat=!0;_.R1(npF,"ytw-search-friction-view-model",{props:{data:_.bl,className:_.bl}});_.pr=_.W(function(G){var c=_.mX("markdown-div"),I,R=(I=_.wH().resolve(_.qR(_.d0)))==null?void 0:I();_.xs(function(){var Z=c.value;var K=new TxN,m=new Map(K.JSC$9467_sanitizerTable.globalAttributePolicies);m.set("style",{policyAction:4});K.JSC$9467_sanitizerTable=new iI(K.JSC$9467_sanitizerTable.allowedElements,K.JSC$9467_sanitizerTable.elementPolicies,K.JSC$9467_sanitizerTable.allowedGlobalAttributes,m,K.JSC$9467_sanitizerTable.globallyAllowedAttributePrefixes);var a=["data-time"];if(a===void 0)m=
new Set(K.JSC$9467_sanitizerTable.globallyAllowedAttributePrefixes),m.add("data-"),K.JSC$9467_sanitizerTable=new iI(K.JSC$9467_sanitizerTable.allowedElements,K.JSC$9467_sanitizerTable.elementPolicies,K.JSC$9467_sanitizerTable.allowedGlobalAttributes,K.JSC$9467_sanitizerTable.globalAttributePolicies,m);else{m=new Set(K.JSC$9467_sanitizerTable.allowedGlobalAttributes);a=_.Q(a);for(var O=a.next();!O.done;O=a.next()){O=O.value;if(O.indexOf("data-")!==0)throw Error("ka`"+O);m.add(O)}K.JSC$9467_sanitizerTable=
new iI(K.JSC$9467_sanitizerTable.allowedElements,K.JSC$9467_sanitizerTable.elementPolicies,m,K.JSC$9467_sanitizerTable.globalAttributePolicies,K.JSC$9467_sanitizerTable.globallyAllowedAttributePrefixes)}m=new Set(K.JSC$9467_sanitizerTable.allowedGlobalAttributes);m.add("class");K.JSC$9467_sanitizerTable=new iI(K.JSC$9467_sanitizerTable.allowedElements,K.JSC$9467_sanitizerTable.elementPolicies,m,K.JSC$9467_sanitizerTable.globalAttributePolicies,K.JSC$9467_sanitizerTable.globallyAllowedAttributePrefixes);
_.O9(Z,_.K3i(K.build(),LHb(G.text())));A3O(c.value)},"OZ439c");
I={};return _.e("div",null,_.e("markdown-div",{class:_.O3("ytwMarkdownDivHost",(I.ytwMarkdownDivDark=R,I.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var Z;return((Z=G.isSmallText)==null?void 0:Z.call(G))||!1},I.ytwMarkdownDivHostWrapCodeBlocks=function(){var Z;
return((Z=G.wrapCodeBlocks)==null?void 0:Z.call(G))||!1},I.ytwMarkdownDivHostEnableDefaultStyling=function(){var Z;
return!((Z=G.disableDefaultStyling)==null?0:Z.call(G))},I)),
el:c}))},"ef");
_.pr.idomCompat=!0;var vp$=_.W(function(G){var c=G.imageData;var I=_.gD(G.isInList,!1),R=function(){return I()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.e("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.e(_.l,{cond:function(){return c().image},
then:function(Z){return _.e(_.yc,{data:Z,alt:function(){return R().alt},
contentMode:function(){return R().contentMode},
targetWidth:function(){return R().targetWidth},
targetHeight:function(){return R().targetHeight},
className:function(){return R().className}})}}),_.e("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.e("div",{class:_.O3("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.e(_.ul,{text:function(){return c().title}})),_.e(_.fh,{each:function(){var Z;
return(Z=c().description)!=null?Z:[]}},function(Z){return _.e("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.e(Mc,{content:Z}))})))},"ff"),DfW=_.W(function(G){var c=G.list;
var I=function(){var R;return(R=c().items)!=null?R:[]};
return _.e("div",{class:"ytwGenAiRichTextViewModelListContent"},_.e(_.l,{cond:function(){return c().title},
then:function(R){return _.e("div",{class:_.O3("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.e(_.ul,{text:R}))}}),_.e(_.l,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.e("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.e(_.fh,{each:I},function(R){return _.e("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.e(Mc,{content:R,isInList:!0}))}))}}),_.e(_.l,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.e("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.e(_.fh,{each:I},function(R){return _.e("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.e(Mc,{content:R,isInList:!0}))}))}}),_.e(_.l,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.e("div",{class:"ytwGenAiRichTextViewModelImageList"},_.e(_.fh,{each:I},function(R){return _.e("div",{class:"ytwGenAiRichTextViewModelListItem"},_.e(Mc,{content:R,isInList:!0}))}))}}))},"gf"),opG=_.W(function(G){var c=G.table;
return _.e("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.e("thead",null,_.e("tr",null,_.e(_.fh,{each:function(){var I,R;return(R=(I=c().header)==null?void 0:I.cells)!=null?R:[]}},function(I){return _.e("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.e(_.fh,{each:function(){return I.contents}},function(R){return _.e(Mc,{content:R})}))}))),_.e("tbody",null,_.e(_.fh,{each:function(){var I;
return(I=c().rows)!=null?I:[]}},function(I){return _.e("tr",null,_.e(_.fh,{each:function(){return I.cells}},function(R){return _.e("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.e(_.fh,{each:function(){return R.contents}},function(Z){return _.e(Mc,{content:Z})}))}))})))},"hf"),Mc=_.W(function(G){var c=G.content;
var I=_.gD(G.isInList,!1),R=function(){var Z,K;return(K=(Z=c().contentBlock)==null?void 0:Z.contents)!=null?K:[]};
return _.e("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.e(_.l,{cond:function(){return c().text},
then:function(Z){return _.e(_.ul,{className:"ytwGenAiRichTextViewModelText",text:Z})}}),_.e(_.l,{cond:function(){return c().image},
then:function(Z){return _.e(vp$,{imageData:Z,isInList:I})}}),_.e(_.l,{cond:function(){return c().list},
then:function(Z){return _.e(DfW,{list:Z})}}),_.e(_.l,{cond:function(){return c().contentBlock},
then:function(){return _.e("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.e(_.fh,{each:R},function(Z){return _.e(Mc,{content:Z,isInList:!1})}))}}),_.e(_.l,{cond:function(){return c().table},
then:function(Z){return _.e(opG,{table:Z})}}))},"jf"),Ufu=_.W(function(G){var c={};
c=_.VK("ytwGenAiRichTextViewModelHost",(c.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.oa("search_overview_link_style")),c));return _.e("gen-ai-rich-text-view-model",{class:c},_.e(Mc,{content:function(){return G.data().content}}))},"kf");_.uBd=_.W(function(G){var c=G.data;var I=function(){var k;return((k=c().loadingUi)!=null?k:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},R=function(){return c().isLoading&&(I()==="UNSPECIFIED"||I()==="GHOST_CARD")},Z=function(){return!c().isLoading},K=function(){return!!c().content&&!c().contents},m=function(){return!!c().contents},a=function(){return!!c().nextQueryButtons},O=function(){return c().isLoading&&I()==="INVISIBLE"},N=function(){var k,p;
return(p=(k=c().headerIcon)==null?void 0:k.iconType)!=null?p:""},q=function(){var k;
return(k=c().content)!=null?k:""},w=function(){return!!c().sourcesSection},F,n=!((F=_.wH().resolve(_.qR(_.d0)))==null||!F()),U=_.SE(function(){var k=[],p=c().contents;
if(p)for(var M=0;M<p.length;M++){var z=_.D(p&&p[M],VN0);z&&k.push(z)}return k},void 0,"gcCsZb");
_.tI(function(){c().isLoading||_.LC("so_re",void 0,"search_overview_answer")});
return _.e("ytd-overview-answer-view-model",{class:function(){var k={};k=(k.ytdOverviewAnswerViewModelHost=!0,k.ytdOverviewAnswerViewModelDarkBackground=n&&!O(),k.ytdOverviewAnswerViewModelLightBackground=!n&&!O(),k);return _.VK(k)}},_.e(_.l,{cond:function(){return!O()},
then:function(){return _.e(_.FG,null,_.e("h2",null,_.e("div",{class:"ytdOverviewAnswerViewModelHeader"},_.e(_.l,{cond:N,then:function(k){return _.e("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.e(_.F6,{icon:k}))}}),_.e("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.e("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return c().headerText}),_.e("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.e(_.ul,{text:function(){return c().headerSubtext}}))))),_.e(_.l,{cond:R,
then:function(){return _.e($sq,null)}}),_.e(_.l,{cond:Z,
then:function(){return _.e(_.FG,null,_.e(_.l,{cond:K,then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelText"},_.e(_.pr,{text:q,isSmallText:!0}))}}),_.e(_.l,{cond:m,
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelRichText"},_.e(_.fh,{each:U},function(k){return _.e(Ufu,{data:k})}))}}),_.e(_.l,{cond:a,
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.e(_.sN,{data:function(){return c().nextQueryButtons}},{buttonViewModel:function(k){return _.e(_.BR,{data:k.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.$R}))}}),_.e("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.e("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.e(_.l,{cond:function(){return!!_.D(c().likeButtonViewModel,_.hA)&&!!_.D(c().dislikeButtonViewModel,_.dG)},
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.e(_.v$,{data:function(){return _.D(c().likeButtonViewModel,_.hA)},
disableIconAnimation:!0}),_.e(_.ni,{data:function(){return _.D(c().dislikeButtonViewModel,_.dG)}}))}})),_.e(_.l,{cond:function(){var k;
return(k=c().sourcesSection)==null?void 0:k.headerText},
then:function(k){return _.e("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.e(_.ul,{text:k}))}})),_.e(_.l,{cond:w,
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelSources"},_.e(_.sN,{data:function(){var k;return(k=c().sourcesSection)==null?void 0:k.sourcesShelf}},{buttonViewModel:_.BR,
horizontalShelfViewModel:function(k){return _.e(_.$R,{data:k.data,includeMargin:!0,hasPeek:!0})}}))}}),_.e(_.l,{cond:function(){return c().disclaimerText},
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.e(_.ul,{text:function(){return c().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"lf");var bAu=_.W(function(G){var c=_.YW(G,{}).data;return _.e("yt-shopping-content-line-item-view-model",{class:_.O3("ytShoppingContentLineItemViewModelHost")},_.e(_.ul,{text:function(){var I;return(I=c().text)==null?void 0:I.attributedString}}))},"mf");_.Vw=_.W(function(G){G=_.YW(G,{});var c=G.data,I={};return _.e("yt-shopping-content-line-view-model",{class:_.O3("ytShoppingContentLineViewModelHost",G.className,(I.ytShoppingContentLineViewModelTruncateText=function(){return!c().wrapContent},I)),
style:_.wi({"--shopping-content-line-gap":function(){return c().itemGap?c().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return c().lineHeight?c().lineHeight+"px":void 0}})},_.e(_.fh,{each:function(){return(c().items||[]).map(function(R){return _.D(R,jMT)}).filter(function(R){return!!R})}},function(R){return _.e(bAu,{data:R})}))},"nf");var k8g=_.W(function(G){var c=G.data;var I=function(){var K;return((K=c().image)==null?void 0:K.height)||48},R=function(){var K;
return((K=c().image)==null?void 0:K.width)||48},Z=function(){return"width: "+R()+"px; height: "+I()+"px;"};
return _.e("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var K,m,a,O=((K=_.wH().resolve(_.qR(_.d0)))==null?0:K())?(m=c())==null?void 0:m.darkThemeBackgroundColor:(a=c())==null?void 0:a.lightThemeBackgroundColor;return"background-color: "+(O?_.pE(O):"")+";"},
el:_.YC(_.im(function(){var K;return(K=c())==null?void 0:K.rendererContext}))},_.e(_.l,{cond:function(){var K,m;
return(m=(K=c().image)==null?void 0:K.image)!=null?m:c().thumbnail},
then:function(K){return _.e("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var m;return"background-color: "+(((m=c().image)==null?0:m.backgroundColor)?_.pE(c().image.backgroundColor):"")+";"+Z()}},_.e(_.yc,{data:K,
height:I,width:R,style:Z,alt:""}))}}),_.e("div",{class:"ytShoppingDescriptionItemViewModelText"},_.e(_.sN,{data:function(){return c().line1}},{shoppingContentLineViewModel:function(K){return _.e(_.Vw,{data:K.data})}}),_.e(_.sN,{data:function(){return c().line2}},{shoppingContentLineViewModel:function(K){return _.e(_.Vw,{data:K.data})}}),_.e(_.sN,{data:function(){return c().line3}},{shoppingContentLineViewModel:function(K){return _.e(_.Vw,{data:K.data})}})))},"of");var sqG=_.W(function(G){var c=G.data;var I=G.active;var R=_.mX("transcript-segment-view-model");_.xs(function(){var Z,K,m,a=((Z=_.wH().resolve(_.qR(_.d0)))==null?0:Z())?(K=c())==null?void 0:K.darkThemeColorPalette:(m=c())==null?void 0:m.lightThemeColorPalette;a&&(a.additiveBackground&&R.value.style.setProperty("--timestamp-active-background-color",_.pE(a.additiveBackground)),a.textSecondary&&R.value.style.setProperty("--timestamp-active-color",_.Sx(a.textSecondary)))},"TnVCnb");
G={};return _.e("transcript-segment-view-model",{class:_.O3("ytwTranscriptSegmentViewModelHost",(G.ytwTranscriptSegmentViewModelHostActive=I,G.ytwTranscriptSegmentViewModelHostModern=_.v("enable_timeline_view_modern_transcript")||_.v("enable_timeline_view_modern_transcript_fe"),G)),el:R},_.e(_.l,{cond:function(){var Z;return(Z=c())==null?void 0:Z.timestamp},
then:function(Z){var K={};return _.e(_.FG,null,_.e("div",{class:_.O3("ytwTranscriptSegmentViewModelTimestamp",(K.ytwTranscriptSegmentViewModelTimestampActive=I,K)),"aria-hidden":!0},Z),_.e("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var m=Z().split(":").map(Number),a=_.Q(m.reverse());m=a.next().value;var O=a.next().value;a=a.next().value;return _.OfA({hours:a,minutes:O,seconds:m})}))}}),_.e(_.ul,{text:function(){var Z,K,m;
return(m=(Z=c())==null?void 0:Z.attributedText)!=null?m:{content:(K=c())==null?void 0:K.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"qf");var Lgd=_.W(function(G){var c=G.data;return _.e("div",{class:"videoAttributesSectionViewModelHeader"},_.e("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.e("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return c().headerTitle}),_.e(_.l,{cond:function(){return c().headerInfoButton},
then:function(){return _.e(_.sN,{data:function(){return c().headerInfoButton}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.e(_.l,{cond:function(){return c().headerSubtitle},
then:function(){return _.e("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return c().headerSubtitle})}}))},"rf"),AUF=_.W(function(G){function c(k){return Math.max(Math.min(k,0),N()-a())}
var I=G.data;var R;G=_.mX("div",function(k){var p=function(){q(k.clientWidth)};
p();window.ResizeObserver&&(R=new ResizeObserver(p),R.observe(k))});
var Z=_.mX("div",function(k){O(k.scrollWidth)}),K=_.Q(_.ks(0,void 0,"C3XQAe")),m=K.next().value;
K=K.next().value;var a=m,O=K;K=_.Q(_.ks(0,void 0,"db7y3"));m=K.next().value;K=K.next().value;var N=m,q=K;m=_.Q(_.ks(0,void 0,"RchC7"));var w=m.next().value,F=m.next().value;_.ty(function(){var k;(k=R)==null||k.disconnect()});
var n=function(){F(c(w()+N()))},U=function(){F(c(w()-N()))};
return _.e("yt-video-attributes-section-view-model",null,_.e("div",{class:"videoAttributesSectionViewModelHost"},_.e(_.l,{cond:function(){return I().headerTitle},
then:function(){return _.e(Lgd,{data:I})}}),_.e("div",{class:_.O3("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:G},_.e("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.wi({transform:function(){var k=w();_.H1("HTML_DIR")==="rtl"&&(k*=-1);return"translateX("+k+"px)"}}),
el:Z},_.e(_.sN,{data:function(){return I().videoAttributeViewModels}},{videoAttributeViewModel:OKN}))),_.e(_.sN,{data:function(){return I().footerButton}},{buttonViewModel:function(k){return _.e(_.BR,{data:k.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.e(_.l,{cond:function(){return w()<0&&I().previousButton},
then:function(){return _.e("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.e(_.sN,{data:function(){return I().previousButton}},{buttonViewModel:function(k){return _.e(_.BR,{data:k.data,
onClick:n})}}))}}),_.e(_.l,{cond:function(){return w()>N()-a()&&I().nextButton},
then:function(){return _.e("div",{class:"videoAttributesSectionViewModelRightArrow"},_.e(_.sN,{data:function(){return I().nextButton}},{buttonViewModel:function(k){return _.e(_.BR,{data:k.data,
onClick:U})}}))}})))},"sf");
AUF.idomCompat=!0;var $fd=_.W(function(G){var c=G.data;var I=G.active;var R={},Z={};return _.e("timeline-item-view-model",{class:_.O3("ytwTimelineItemViewModelHost",(R.ytwTimelineItemViewModelHostChapterChild=G.chapterChild,R.ytwTimelineItemViewModelModern=_.v("enable_timeline_view_modern_transcript")||_.v("enable_timeline_view_modern_transcript_fe"),R))},_.e("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.e("div",{class:_.O3("ytwTimelineItemViewModelTimestamp",(Z.ytwTimelineItemViewModelTimestampActive=
I,Z))},function(){return c().timestamp})),_.e("div",{class:"ytwTimelineItemViewModelContentItems"},_.e(_.sN,{data:function(){return c().contentItems}},{transcriptSegmentViewModel:function(K){return _.e(sqG,{data:K.data,
active:I})},
videoAttributesSectionViewModel:AUF})))},"tf");var S0d=_.W(function(G){var c=G.data;G={};return _.e("timeline-chapter-view-model",{class:_.O3("ytwTimelineChapterViewModelHost")},_.e("div",{class:_.O3("ytwTimelineChapterViewModelTitle",(G.ytwTimelineChapterViewModelModern=_.v("enable_timeline_view_modern_transcript")||_.v("enable_timeline_view_modern_transcript_fe"),G))},function(){return c().title}),_.e(_.sN,{data:function(){return c().contents}},{timelineItemViewModel:function(I){return _.e($fd,{data:I.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(I){return _.e(AUF,{data:I.data})}}))},"uf");var prG=_.W(function(G){var c=G.data;var I=_.mX("macro-markers-panel-item-view-model"),R=_.um(_.DVf,function(){var K;return(K=c().markersEngagementPanelSyncEntityKey)!=null?K:""}),Z=function(){var K;
return((K=R())==null?void 0:K.activeItemIndex)===c().index};
G=_.Nx(function(K){var m,a,O,N,q;return _.T(function(w){if(w.nextAddress==1)return K.stopPropagation(),_.EN(_.zf(K),I.value,["A".toString(),"BUTTON".toString()])?w.return():(m=_.WI(c().onTap))?w.yield(_.wP(),2):w.return();a=w.yieldResult;N=(O=_.D(m,_.fR))==null?void 0:O.startTimeSeconds;N===void 0||(q=a)!=null&&q.seekTo(N,!0);_.Vp(w)})});
return _.e("macro-markers-panel-item-view-model",{class:_.O3("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Z}),el:I,"on:click":G,tabindex:0,role:"button"},_.e(_.sN,{data:function(){var K;return(K=c())==null?void 0:K.item}},{timelineChapterViewModel:function(K){return _.e(S0d,{data:K.data,
active:Z})},
timelineItemViewModel:function(K){return _.e($fd,{data:K.data,active:Z})},
videoAttributeViewModel:OKN,shoppingDescriptionItemViewModel:k8g}))},"vf");
prG.idomCompat=!0;_.R1(prG,"macro-markers-panel-item-view-model",{props:{data:_.bl}});_.R1(AUF,"yt-video-attributes-section-view-model",{props:{data:_.bl}});var Mrg=_.W(function(G){var c=function(){var I,R,Z;return(Z=(I=G.data().leadingLogoAccessibility)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label)!=null?Z:""};
return _.e("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.e(_.l,{cond:function(){return G.data().leadingLogo},
then:function(I){return _.e(_.yc,{className:"ytwFantasySectionHeaderViewModelLogo",data:I,alt:c})}}),_.e("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.e(_.ul,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return G.data().title}}),_.e(_.ul,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return G.data().subtitle}})),_.e(_.sN,{data:function(){return G.data().trailingButton}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"wf");var VrW=_.W(function(G){var c={};c=_.O3("ytwFantasyTeamViewModelHost",(c.ytwFantasyTeamViewModelCompact=function(){var Z;return!((Z=G.compact)==null||!Z.call(G))},c.ytwFantasyTeamViewModelUser=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},c.ytwFantasyTeamViewModelOpponent=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},c));
var I=function(){var Z,K,m;return(m=(Z=G.data().teamLogoAccessibility)==null?void 0:(K=Z.accessibilityData)==null?void 0:K.label)!=null?m:""},R=_.um(UVq,function(){return G.data().teamEntityKey});
return _.e("ytw-fantasy-team-view-model",{class:c},_.e(_.l,{cond:function(){return G.data().teamLogo},
then:function(Z){return _.e(_.yc,{className:"ytwFantasyTeamViewModelLogo",data:Z,alt:I})}}),_.e("div",{class:"ytwFantasyTeamViewModelMetadata"},_.e("div",{class:"ytwFantasyTeamViewModelHeader"},_.e(_.ul,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Z;return(Z=R())==null?void 0:Z.score}}),_.e(_.F6,{icon:function(){var Z;
return(Z=R())==null?void 0:Z.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.e(_.ul,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Z;return(Z=R())==null?void 0:Z.projectedScore}})),_.e(_.ul,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return G.data().primaryText}}),_.e(_.ul,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return G.data().secondaryText}}),_.e(_.ul,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return G.data().tertiaryText}})),_.e(_.ul,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Z;return(Z=R())==null?void 0:Z.score}}))},"xf");_.R1(_.W(function(G){return _.e("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.e("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.e(_.sN,{data:function(){return G.data().summaryHeader}},{fantasySectionHeaderViewModel:Mrg})),_.e(_.sN,{data:function(){return G.data().userTeam}},{fantasyTeamViewModel:VrW}),_.e(_.sN,{data:function(){return G.data().opponentTeam}},{fantasyTeamViewModel:VrW}))},"yf"),"fantasy-league-summary-view-model",{props:{data:_.bl}});var zCd=_.W(function(G){var c=_.YW(G,{shape:{},useCustomTabRenderable:!1}),I=c.shape;c=c.useCustomTabRenderable;var R=G.customTabRenderable,Z=function(){return I().disabled},K=function(){return I().selected},m=function(){return I().title},a=function(){return I().icon},O=_.mX("yt-tab-shape");
G=_.Nx(function(w){var F;if(!Z()&&((F=I().aTagConfig)==null?0:F.onclick))I().aTagConfig.onclick(w);return!1});
var N=_.Nx(function(w){if(w.key==="Enter"||w.key==="ArrowUp"||w.key==="ArrowDown")w.preventDefault(),O.value.click();return!1}),q={};
return _.e("yt-tab-shape",{class:_.O3("yt-tab-shape",function(){return I().className},(q["yt-tab-shape__tab--last-tab"]=function(){return I().isLastTab},q["yt-tab-shape--host-disabled"]=Z,q["yt-tab-shape--host-clickable"]=!R,q)),
role:R?void 0:"tab","aria-selected":K!=null?K:!1,"aria-disabled":Z,tabindex:R?void 0:0,"on:click":G,"on:keydown":N,el:O,"tab-identifier":function(){return I().identifier},
"tab-title":m},_.e(_.l,{cond:c,then:function(){return R()},
else:function(){var w={},F={};return _.e(_.FG,null,_.e("div",{class:_.O3("yt-tab-shape__tab",(w["yt-tab-shape__tab--tab-selected"]=K,w))},_.e(_.l,{cond:a,then:function(n){return _.e(_.F6,{className:"yt-tab-shape__tab-icon",icon:function(){return n().iconType}})}}),m),_.e("div",{class:_.O3("yt-tab-shape__tab-bar",(F["yt-tab-shape__tab-bar--tab-bar-selected"]=K,F))}))}}))},"zf");
zCd.idomCompat={callbacks:{customTabRenderable:!0}};_.JU0=_.W(function(G){var c=G.shape;G=_.Q(_.ks(48,void 0,"nDAx4"));var I=G.next().value,R=G.next().value;G=_.Q(_.ks(0,void 0,"GCgjqb"));var Z=G.next().value,K=G.next().value,m=function(){return c().tabs},a=_.mX("yt-tab-group-shape"),O=function(){var F,n;
return(n=(F=m())==null?void 0:F.findIndex(function(U){return U.selected}))!=null?n:-1};
G=_.Q(_.ks(!1,void 0,"SU01tf"));var N=G.next().value,q=G.next().value,w=function(){N()||_.dJ.addJob(function(){q(!0)},0)};
_.xs(function(){var F=O(),n=_.dJ.addJob(function(){var U,k=((U=a.value)==null?void 0:U.querySelectorAll("yt-tab-shape"))||[],p;R(((p=F>-1?k[F]:void 0)==null?void 0:p.getBoundingClientRect().width)||0);for(p=U=0;p<F;p++)U+=k[p].offsetWidth+24;_.H1("HTML_DIR")==="rtl"&&(U=-U);K(U);w()},8,0);
_.ty(function(){_.dJ.cancelJob(n)})},"PMwgb");
G={};return _.e("yt-tab-group-shape",{class:_.O3("tabGroupShapeHost",(G.tabGroupShapeOverflowHidden=function(){return c().isOverflowHidden},G)),
el:a},_.e(_.l,{cond:m,then:function(F){return _.e(_.FG,null,_.e("div",{class:"tabGroupShapeTabs",role:"tablist"},_.e(_.fh,{each:F},function(n,U){return _.e(zCd,{shape:function(){return Object.assign({},n,{isLastTab:U()===F().length-1})},
customTabRenderable:n.customTabRenderable,useCustomTabRenderable:!!n.customTabRenderable})})),_.e(Ep0,{width:I,
sliderOffset:Z,enableTransition:N}))}}))},"Bf");
_.JU0.idomCompat=!0;var Ep0=_.W(function(G){var c=_.gD(G.sliderOffset,0),I=G.width,R=G.enableTransition;G={};return _.e("div",{class:_.O3("tabGroupShapeSlider",(G.tabGroupShapeSliderTransition=function(){return R()},G)),
style:_.wi({width:function(){return I()+"px"},
transform:function(){return"translateX("+c()+"px)"}})})},"Cf");var WgF=_.W(function(G){var c=function(){var K,m,a;return(a=(K=G.data().playerLogoAccessibility)==null?void 0:(m=K.accessibilityData)==null?void 0:m.label)!=null?a:""},I=_.um(uJb,function(){return G.data().playerEntityKey}),R={};
R=_.O3("ytwFantasyPlayerViewModelHost",(R.ytwFantasyPlayerViewModelPlaying=function(){var K;return!((K=I())==null||!K.isPlayerPlaying)},R.ytwFantasyPlayerViewModelOnField=function(){var K;
return((K=I())==null?void 0:K.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},R.ytwFantasyPlayerViewModelRedZone=function(){var K;
return((K=I())==null?void 0:K.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},R));
var Z=function(){var K,m,a,O=((K=_.wH().resolve(_.qR(_.d0)))==null?0:K())?(m=G.data().playerLogoBackgroundColor)==null?void 0:m.darkTheme:(a=G.data().playerLogoBackgroundColor)==null?void 0:a.lightTheme;return O===void 0?"":_.pE(O)};
return _.e("ytw-fantasy-player-view-model",{class:R},_.e(_.l,{cond:function(){return G.data().playerLogo},
then:function(K){return _.e("div",{class:"ytwFantasyPlayerViewModelLogo"},_.e("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.e(_.yc,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.wi({"background-color":Z}),data:K,alt:c})),_.e("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.e(_.F6,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.e("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.e("div",{class:"ytwFantasyPlayerViewModelHeader"},_.e(_.ul,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var K;return(K=G.data())==null?void 0:K.playerNameText}}),_.e(_.ul,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var K;return(K=G.data())==null?void 0:K.playerDescriptionText}})),_.e("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.e(_.ul,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=I())==null?void 0:K.gamePeriodText}}),_.e(_.ul,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=G.data())==null?void 0:K.opponentTeamText}}),_.e(_.ul,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=I())==null?void 0:K.gameStatusText}}),_.e(_.ul,{className:_.O3("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var K;return(K=I())==null?void 0:K.playerStatusText}})),_.e("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.e(_.ul,{text:function(){var K;
return(K=I())==null?void 0:K.playerStatsText}}))),_.e(_.ul,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var K;return(K=I())==null?void 0:K.fantasyScore}}))},"Df");var iAd=_.W(function(G){return _.e("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.e(_.l,{cond:function(){return G.data().players},
then:function(c){return _.e(_.sN,{data:c},{fantasyPlayerViewModel:WgF})}}))},"Ef");var fiH=_.W(function(G){var c=_.Q(_.Gz(function(){var Z;return(Z=G.data().selectedTabIdentifierKey)!=null?Z:""})),I=c.next().value,R=c.next().value;
_.xc(function(){var Z;(Z=G.setSelectedTabSignal)==null||Z.call(G,I)});
return _.e("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.e("div",{class:"ytTabbedViewModelTabGroup"},_.e(_.JU0,{shape:function(){var Z=G.data(),K=[],m={tabs:K};if(!Z.tabs)return m;Z=_.Q(Z.tabs);for(var a=Z.next(),O={};!a.done;O={tabViewModel:void 0},a=Z.next())if(O.tabViewModel=_.D(a.value,hTA),O.tabViewModel){var N=a=void 0;K.push({aTagConfig:{onclick:function(q){return function(){var w;R((w=q.tabViewModel.tabIdentifier)!=null?w:"")}}(O)},
identifier:O.tabViewModel.tabIdentifier,selected:I()===O.tabViewModel.tabIdentifier,title:(N=(a=O.tabViewModel.title)==null?void 0:a.content)!=null?N:""})}return m}})),_.e(_.sN,{data:function(){var Z,K=_.Q((Z=G.data().tabs)!=null?Z:[]);
for(Z=K.next();!Z.done;Z=K.next())if((Z=_.D(Z.value,hTA))&&Z.tabIdentifier===I())return Z.content}},{fantasyRosterViewModel:iAd}))},"Gf");_.R1(_.W(function(G){var c=_.Q(SWB()),I=c.next().value,R=c.next().value;return _.e("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.e(_.ul,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return G.data().title}}),_.e(_.l,{cond:function(){return G.data().tabbedViewModel},
then:function(Z){return _.e(_.sN,{data:Z},{tabbedViewModel:function(K){return _.e(fiH,{data:K.data,setSelectedTabSignal:R})}})}}),_.e(_.l,{cond:function(){var Z,K=(Z=_.D(G.data().tabbedViewModel,d_9))==null?void 0:Z.tabs;
Z=_.D(K==null?void 0:K[0],hTA);K=_.D(K==null?void 0:K[1],hTA);var m=Z==null?void 0:Z.tabIdentifier;if(I()===m){var a,O;if(!((a=_.D(Z==null?void 0:Z.content,PYi))==null?0:(O=a.players)==null?0:O.length))return G.data().noUserTeamPlayersText}else{var N,q;if(!((N=_.D(K==null?void 0:K.content,PYi))==null?0:(q=N.players)==null?0:q.length))return G.data().noOpponentTeamPlayersText}},
then:function(Z){return _.e(_.ul,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Z})}}))},"Hf"),"ytw-fantasy-matchup-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){return _.e("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.e(_.ul,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return G.data().title}}),_.e(_.l,{cond:function(){return G.data().matchupTeamPairs},
then:function(c){return _.e(_.fh,{each:c,keyBy:"INDEX"},function(I){return _.e("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.e(_.sN,{data:function(){return[I().firstTeam,I().secondTeam]}},{fantasyTeamViewModel:function(R){return _.e(VrW,{data:R.data,
compact:!0})}}))})}}))},"If"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=function(){var Z,K,m;return(m=(Z=G.data().userLogoAccessibility)==null?void 0:(K=Z.accessibilityData)==null?void 0:K.label)!=null?m:""},I=function(){var Z,K,m;
return(m=(Z=G.data().opponentLogoAccessibility)==null?void 0:(K=Z.accessibilityData)==null?void 0:K.label)!=null?m:""},R=_.um(oYC,function(){return G.data().entityKey});
return _.e("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.e("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.e(_.l,{cond:function(){return G.data().userLogo},
then:function(Z){return _.e(_.yc,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Z,alt:c})}}),_.e("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.e(_.ul,{text:function(){return G.data().title}})),_.e(_.l,{cond:function(){return G.data().opponentLogo},
then:function(Z){return _.e(_.yc,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Z,alt:I})}})),_.e("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.e("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.e(_.ul,{text:function(){var Z;
return(Z=R())==null?void 0:Z.userWinNumberLabel}})),_.e("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.e("div",{class:_.O3("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.wi({flex:function(){var Z,K;return(K=(Z=R())==null?void 0:Z.userWinNumber)!=null?K:50}})}),_.e("div",{class:_.O3("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.wi({flex:function(){var Z,K;return(K=(Z=R())==null?void 0:Z.opponentWinNumber)!=null?K:50}})})),_.e("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.e(_.ul,{text:function(){var Z;
return(Z=R())==null?void 0:Z.opponentWinNumberLabel}}))))},"Jf"),"fantasy-win-probability-view-model",{props:{data:_.bl}});var Bbj={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},rUH=_.W(function(G){return _.e(_.sN,{data:G.button},{buttonViewModel:function(c){return _.e(_.BR,{data:c.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Kf"),jqu=_.W(function(G){return _.e("ytd-backstage-locked-post-view-model",{class:_.O3("ytdBackstageLockedPostViewModelHost",G.className)},_.e("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.e("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.e(_.sN,
{data:function(){return G.data().authorAvatar}},{decoratedAvatarViewModel:_.wE})),_.e("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.e("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.e(_.ul,{text:function(){return G.data().authorText}})),_.e("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.e(_.ul,{text:function(){return G.data().publishedTimeText}}),_.e(_.sN,{data:function(){return G.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(c){return _.e(jLB,
{data:c.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.e("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.e(_.ul,{text:function(){return G.data().contentText}})),_.e(_.B1,null,_.e(_.W1,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.e("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.e(_.yc,{data:Bbj,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.e(_.ul,{text:function(){return G.data().lockedText}}))}),_.e(_.W1,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.e("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.e("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.e(_.yc,{data:Bbj,
alt:""})),_.e(_.ul,{text:function(){return G.data().lockedText}}))})),_.e("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.e(rUH,{button:function(){return G.data().likeButton}}),_.e("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().voteCountA11y}},_.e(_.ul,{text:function(){return G.data().voteCount}})),_.e(rUH,{button:function(){return G.data().dislikeButton}}),_.e(rUH,{button:function(){return G.data().commentButton}}),_.e("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().commentCountA11y}},_.e(_.ul,{text:function(){return G.data().commentCount}}))))},"Lf");
jqu.idomCompat=!0;_.R1(jqu,"ytd-backstage-locked-post-view-model",{props:{data:_.bl,className:_.bl}});_.Su("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var zq=function(){var G=_.J.apply(this,arguments)||this;G.darkerPanels=_.v("web_watch_darker_panels");G.commentsHidePanelButton=!1;G.isWatchGrid=!1;G.continuationShowButton=!1;G.isSearch=!1;G.isConstrainedList=!1;G.isWatch=!1;G.eligibleToSwitchToGrid=!1;G.useBigThumbs=!1;G.epRestyle=!1;G.isCarouselInFeed=!0;G.topSpacingZero=!1;G.continuationIsInitialLoad=!0;G.enableSqueezebackPanels=_.v("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");G.notSticky=
!0;G.mastheadHeight=0;G.isStickyChipBarSetup=!1;G.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};G.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return G};
_.u(zq,_.J);_.P=zq.prototype;_.P.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var c;(c=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||c.forEach(function(I){I.containerType=G})}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.v("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.v("kevlar_low_priority_continuation")}}};
_.P.created=function(){};
_.P.updateStickySetup=function(){_.v("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.P.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(FkB(!this.notSticky))};
_.P.setupStickyChipBar=function(){var G=this;if(!this.isStickyChipBarSetup&&_.v("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.lO(this,this.updateHeaderState));var c;this.mastheadHeight=((c=document.querySelector("ytd-masthead"))==null?void 0:c.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(I){G.handleIntersect(I)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateHeaderState();G.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.P.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.lO(this,this.updateHeaderState));var G;(G=this.intersectionObserver)==null||G.disconnect();var c;(c=this.resizeObserver)==null||c.disconnect()}};
_.P.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.P.handleIntersect=function(G){this.notSticky=G[0].intersectionRatio===1};
_.P.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.P.detached=function(){this.teardownStickyChipBar()};
_.P.updated=function(G){G.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.P.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var G=_.Q1(this.hostElement).querySelector("ytd-comments-header-renderer");G&&(G.hidePanelButton=this.commentsHidePanelButton)}};
_.P.onRetrieveLocation=function(G,c){this.containsComments()&&(this.firstCommentsLoaded=c.hasComments=!0)};
_.P.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.P.onLoadReloadContinuation=function(G,c){var I=this;G.stopPropagation();this.isReloading=!0;_.Xl(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(R){var Z=_.wH().resolve(_.oI);R=c(R);Z.postData(R).then(function(K){I.onReloadContinuationData(K)})}})};
_.P.onReloadContinuationData=function(G){if(G=this.get("response.continuationContents.itemSectionContinuation",G)||this.get("response.contents.itemSectionRenderer",G)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",G)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",G))this.set("data.contents",G.contents||G.results),G.header&&this.set("data.header",G.header),this.set("data.continuations",
G.continuations||[]);this.isReloading=!1};
_.P.computeContentsClass=function(G){return G?"reloading":""};
_.P.computeSectionIdentifier=function(G){return G==null?void 0:G.sectionIdentifier};
_.P.computeFitContainer=function(G){return(G==null?void 0:G.sectionIdentifier)==="youchat-item-section"};
_.P.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.v("kevlar_disable_comments_auto_load")};
_.P.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.P.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.P.computeHasDestinationShelfRenderer=function(G){var c,I;return!!(G==null?0:(c=G.contents)==null?0:(I=c[0])==null?0:I.destinationShelfRenderer)};
_.P.computeHasSectionGroupViewModel=function(G){var c,I;return!!(G==null?0:(c=G.contents)==null?0:(I=c[0])==null?0:I.sectionGroupViewModel)};
_.P.computeHasQrCodeRenderer=function(G){var c,I;return!!(G==null?0:(c=G.contents)==null?0:(I=c[0])==null?0:I.qrCodeRenderer)};
_.P.computeStaticCommentsHeader=function(G){return G&&this.containsComments()};
_.P.computeEpRestyle=function(G){return _.v("web_ep_restyling")&&G&&this.containsComments()};
_.P.computeIsContinuationCommentSection=function(G){return(G==null?void 0:G.targetId)==="shorts-engagement-panel-comments-section"||(G==null?void 0:G.targetId)==="comments-section"||(G==null?void 0:G.targetId)==="engagement-panel-comments-section"};
_.P.computeSuppressPaddingDisclaimer=function(){var G,c,I,R;return!!((G=this.data)==null?0:(c=G.contents)==null?0:(I=c[0])==null?0:(R=I.productListHeaderRenderer)==null?0:R.suppressPaddingDisclaimer)};
_.P.computeHeaderStyle=function(G){switch(G==null?void 0:G.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.P.dataChanged=function(){this.firstCommentsLoaded=!1};
_.P.observeDataContentsLength=function(){var G,c;((G=this.data)==null?0:(c=G.contents)==null?0:c.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.P.onYtDismissibleItemDismissedChange=function(G){this._setItemDismissed(G.type==="yt-dismissible-item-dismissed")};
_.P.triggerContinuations=function(){for(var G=_.Q1(this.hostElement).querySelector("#continuations").children,c=0;c<G.length;c++)G[c].trigger()};
_.P.triggerInitialContinuations=function(){for(var G=_.Q1(this.hostElement).querySelector("#continuations").children,c=0;c<G.length;c++)G[c].triggerIfNotPreviouslyTriggered()};
_.P.handleYtItemSectionContinuation=function(G,c){var I;c&&((I=this.data)==null?void 0:I.sectionIdentifier)!==c||(this.set("data.continuations",[G]),this.triggerContinuations())};
_.P.handleYtItemSectionReplace=function(G,c){var I;c&&((I=this.data)==null?void 0:I.sectionIdentifier)!==c||(this.set("data.contents",G),this.set("data.continuations",[]))};
_.P.computeUseHeightHack=function(G){return G&&!_.v("kevlar_disable_height_hack")};
_.P.computeTopSpacingZero=function(G){return G};
_.P.continuationShowButtonChanged=function(){var G=_.Q1(this.hostElement).querySelector("ytd-continuation-item-renderer");G&&(G.showButton=this.continuationShowButton)};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("data-changed",this.data))};
_.Nh.Object.defineProperties(zq.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.v("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!!((G=this.data)==null?0:(c=G.contents)==null?0:(I=c[0])==null?0:I.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R,Z,K,m;return!!((G=this.data)==null?0:(c=G.contents)==null?0:(I=c[0])==null?0:(R=I.shelfRenderer)==null?0:(Z=R.content)==null?0:(K=Z.gridRenderer)==null?0:(m=K.targetId)==null?0:m.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!!((G=this.data)==null?0:(c=G.contents)==null?0:(I=c[0])==null?0:I.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!!((G=this.data)==null?0:(c=G.contents)==null?0:(I=c[0])==null?0:I.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.oa("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.v("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.v("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var G,c;return!!((G=this.data)==null?0:(c=G.header)==null?0:c.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.v("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.v("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
zq.prototype.dataChangedForBinding=zq.prototype.dataChangedForBinding;zq.prototype.continuationShowButtonChanged=zq.prototype.continuationShowButtonChanged;zq.prototype.onYtDismissibleItemDismissedChange=zq.prototype.onYtDismissibleItemDismissedChange;zq.prototype.observeDataContentsLength=zq.prototype.observeDataContentsLength;zq.prototype.dataChanged=zq.prototype.dataChanged;zq.prototype.onServiceRequestCompleted=zq.prototype.onServiceRequestCompleted;zq.prototype.onLoadReloadContinuation=zq.prototype.onLoadReloadContinuation;
zq.prototype.onRetrieveLocation=zq.prototype.onRetrieveLocation;zq.prototype.commentsHidePanelButtonChanged=zq.prototype.commentsHidePanelButtonChanged;zq.prototype.dispatchChipBarIsSticky=zq.prototype.dispatchChipBarIsSticky;zq.prototype.updateStickySetup=zq.prototype.updateStickySetup;zq.prototype.updateLockupContainerTypes=zq.prototype.updateLockupContainerTypes;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],zq.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],zq.prototype,"ytLazyListBehavior",void 0);_.r([_.L(_.Vn.YtNextContinuationBehavior),_.h("design:type",Object)],zq.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.L(_.MZ),_.h("design:type",Object)],zq.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],zq.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],zq.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],zq.prototype,"darkerPanels",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Boolean)],zq.prototype,"engagementPanel",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"commentsHidePanelButton",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"isWatchGrid",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"continuationShowButton",void 0);_.r([_.E({computed:"computeIsContinuationCommentSection(data)"}),_.h("design:type",Boolean)],zq.prototype,"continuationIsCommentsSection",void 0);
_.r([_.E({value:!0}),_.h("design:type",Boolean)],zq.prototype,"autoFill",void 0);_.r([_.E(),_.h("design:type",Boolean)],zq.prototype,"continuationDisablePrescanVisibility",void 0);_.r([_.E(),_.h("design:type",Boolean)],zq.prototype,"isReloading",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"isSearch",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"isConstrainedList",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"isWatch",void 0);
_.r([_.E(),_.h("design:type",Object)],zq.prototype,"eligibleToSwitchToGrid",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"useBigThumbs",void 0);_.r([_.E({selector:_.J0,reflectToAttribute:!0}),_.h("design:type",Object)],zq.prototype,"isGridViewEnabled",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.h("design:type",Object)],zq.prototype,"epRestyle",void 0);
_.r([_.A("isWatch"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"hideShortsShelfHeader",null);_.r([_.A("isSearch","isWatch"),_.h("design:type",String),_.h("design:paramtypes",[])],zq.prototype,"thumbnailWidth",null);_.r([_.A("isSearch","containerWidth"),_.h("design:type",Object),_.h("design:paramtypes",[])],zq.prototype,"thumbnailTargetWidth",null);
_.r([_.A("isSearch","isWatch","useBigThumbs"),_.h("design:type",String),_.h("design:paramtypes",[])],zq.prototype,"sizing",null);_.r([_.A("isWatch","isGridViewEnabled","useBigThumbs","data"),_.E({reflectToAttribute:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],zq.prototype,"lockupContainerType",null);_.r([_.wD("lockupContainerType","data"),_.h("design:type",Function),_.h("design:paramtypes",[Number]),_.h("design:returntype")],zq.prototype,"updateLockupContainerTypes",null);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],zq.prototype,"pageSubtype",void 0);_.r([_.E(),_.h("design:type",Number)],zq.prototype,"containerWidth",void 0);_.r([_.E(),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"isPlaylist",null);_.r([_.E(),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"isClipList",null);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"isCarouselInFeed",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"isPlaylistVideoContainer",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"isSearchFrictionPage",null);_.r([_.E({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.h("design:type",Boolean)],zq.prototype,"useHeightHack",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.h("design:type",Object)],zq.prototype,"topSpacingZero",void 0);_.r([_.E({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.h("design:type",Boolean)],zq.prototype,"showButton",void 0);_.r([_.E(),_.h("design:type",Boolean)],zq.prototype,"firstCommentsLoaded",void 0);_.r([_.E(),_.h("design:type",Object)],zq.prototype,"continuationIsInitialLoad",void 0);
_.r([_.E({reflectToAttribute:!0,readOnly:!0}),_.h("design:type",Boolean)],zq.prototype,"itemDismissed",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.h("design:type",String)],zq.prototype,"sectionIdentifier",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.h("design:type",String)],zq.prototype,"fitContainer",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.h("design:type",Boolean)],zq.prototype,"hasDestinationShelfRenderer",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.h("design:type",Boolean)],zq.prototype,"staticCommentsHeader",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],zq.prototype,"enableSqueezebackPanels",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],zq.prototype,"enableAnchoredPanel",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.h("design:type",Boolean)],zq.prototype,"hasSectionGroupViewModel",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.h("design:type",Boolean)],zq.prototype,"hasQrCodeRenderer",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.h("design:type",Boolean)],zq.prototype,"suppressDisclaimerSeparator",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.h("design:type",String)],zq.prototype,"headerStyle",void 0);_.r([_.A("isSearch","isWatch","useBigThumbs"),_.h("design:type",Object),_.h("design:paramtypes",[])],zq.prototype,"lockupExperiments",null);
_.r([_.A("isSearch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"typographyBump",null);_.r([_.nH("#header"),_.h("design:type",HTMLElement)],zq.prototype,"header",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],zq.prototype,"notSticky",void 0);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Object),_.h("design:paramtypes",[])],zq.prototype,"useChipBarViewModelHeader",null);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"expFixPlaylistHeader",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"expFixPlaylistHeaderV2",null);_.r([_.wD("pageSubtype"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"updateStickySetup",null);
_.r([_.wD("notSticky"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"dispatchChipBarIsSticky",null);_.r([_.wD("commentsHidePanelButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"commentsHidePanelButtonChanged",null);_.r([_.qY("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],zq.prototype,"onRetrieveLocation",null);
_.r([_.qY("yt-load-reload-continuation"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Function]),_.h("design:returntype")],zq.prototype,"onLoadReloadContinuation",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"onServiceRequestCompleted",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"dataChanged",null);
_.r([_.uO("data.contents.length"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"observeDataContentsLength",null);_.r([_.qY("yt-dismissible-item-dismissed"),_.qY("yt-dismissible-item-undismissed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],zq.prototype,"onYtDismissibleItemDismissedChange",null);
_.r([_.wD("continuationShowButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"continuationShowButtonChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"dataChangedForBinding",null);_.r([_.Jc({is:"ytd-item-section-renderer",disableElementRegistration:!0})],zq);
_.B(zq,"ytd-item-section-renderer",function(){if(yRp!==void 0)return yRp;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return yRp=G},{mode:1});var xfW;var VmA=_.Cp(_.mJ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var tru={},Mmq=(tru[0]={title:_.Gv(_.mJ("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Gv(_.mJ("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.gU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},tru[1]={title:_.Gv(_.mJ("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.gU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},tru);_.Su("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var E8=function(){var G=_.J.apply(this,arguments)||this;G.allVideosCount=0;G.allPlaylistCount=0;G.isOnline=!1;G.shouldRenderDownloadsBanner=!1;G.shouldRenderDownloadsBannerUpsell=!1;G.hasOptedIntoSmartDownloads=!1;G.areAllSmartDownloadsDeleted=!1;G.smartDownloadsCompleted=!1;return G};
_.u(E8,_.J);E8.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
E8.prototype.attached=function(){this.downloadsToRenderChanged()};
E8.prototype.detached=function(){this.set("renderableData",{})};
E8.prototype.downloadsToRenderChanged=function(){var G=_.y4().getState().entities,c=_.s4(G),I=_.v("kevlar_playlist_dl_page_killswitch")?MP0(G):_.Lp(G),R=_.kbA(G),Z=_.$iT(G),K=_.DY(c);G=_.AX(G);this.set("renderableData",EI0(I,c,R,Z,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,K,G))};
E8.prototype.downloadsToRenderChanged=E8.prototype.downloadsToRenderChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],E8.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],E8.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],E8.prototype,"renderableData",void 0);_.r([_.E({selector:_.h$g}),_.h("design:type",Object)],E8.prototype,"allVideosCount",void 0);_.r([_.E({selector:vJq}),_.h("design:type",Object)],E8.prototype,"allPlaylistCount",void 0);_.r([_.E({selector:_.V4}),_.h("design:type",Object)],E8.prototype,"isOnline",void 0);_.r([_.E({selector:_.Yrb}),_.h("design:type",Object)],E8.prototype,"shouldRenderDownloadsBanner",void 0);
_.r([_.E({selector:_.R7r}),_.h("design:type",Object)],E8.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.r([_.E({selector:_.GQ8}),_.h("design:type",Object)],E8.prototype,"hasOptedIntoSmartDownloads",void 0);_.r([_.E({selector:_.cGC}),_.h("design:type",Object)],E8.prototype,"areAllSmartDownloadsDeleted",void 0);_.r([_.E({selector:Idp}),_.h("design:type",Object)],E8.prototype,"smartDownloadsCompleted",void 0);
_.r([_.uO("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],E8.prototype,"downloadsToRenderChanged",null);_.r([_.Jc({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],E8);
_.B(E8,"ytd-offline-item-section-renderer",function(){if(xfW!==void 0)return xfW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return xfW=G},
{mode:1});var hCH;var dfF;var JB=function(){return _.J.apply(this,arguments)||this};
_.u(JB,_.J);
JB.prototype.onDataChanged=function(){if(this.JSC$17024_lastData){var G=this.getFilterClass(this.JSC$17024_lastData.status);G&&this.hostElement.classList.remove(G)}var c;(G=this.getFilterClass((c=this.data)==null?void 0:c.status))&&this.hostElement.classList.add(G);G==="selected"?_.Q1(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Q1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");G==="disabled"?_.Q1(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Q1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17024_lastData=this.data};
JB.prototype.getFilterClass=function(G){switch(G){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
JB.prototype.onDataChanged=JB.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],JB.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JB.prototype,"onDataChanged",null);_.r([_.Jc({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],JB);
_.B(JB,"ytd-search-filter-renderer",function(){if(dfF!==void 0)return dfF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return dfF=G},{mode:_.Qc("kevlar_poly_si_batch_j075")?1:2});var Wc=function(){return _.J.apply(this,arguments)||this};
_.u(Wc,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Wc.prototype,"data",void 0);_.r([_.Jc({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Wc);
_.B(Wc,"ytd-search-filter-group-renderer",function(){if(hCH!==void 0)return hCH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return hCH=G},{mode:_.Qc("kevlar_poly_si_batch_j075")?1:2});var CTd;var ih=function(){return _.J.apply(this,arguments)||this};
_.u(ih,_.J);ih.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Jk());this.isCollapsed=!this.isCollapsed};
ih.prototype.navigateToAboutTheseResultsPage=function(){var G=_.j_("https://www.youtube.com/howyoutubeworks/product-features/search/");G?_.ZT(window,G,"_blank"):_.yL(Error("Uh"))};
ih.prototype.dataChanged=function(){this.isCollapsed=!0};
ih.prototype.computeShowBottomBorder=function(){var G,c,I;return!!((G=this.data)==null?0:(c=G.button)==null?0:c.toggleButtonRenderer)||!((I=this.data)==null||!I.aboutTheseResultsButton)};
ih.prototype.dataChanged=ih.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ih.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.h("design:type",Boolean)],ih.prototype,"showBottomBorder",void 0);_.r([_.E(),_.h("design:type",Boolean)],ih.prototype,"renderCollapsibleMenu",void 0);
_.r([_.E(),_.h("design:type",Boolean)],ih.prototype,"isCollapsed",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ih.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],ih);
_.B(ih,"ytd-search-sub-menu-renderer",function(){if(CTd!==void 0)return CTd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return CTd=G},{mode:1});var HA1;var Xru=new _.De("SECTION_LIST_RENDERER_TOKEN");var yUr;var fr=function(){return _.J.apply(this,arguments)||this};
_.u(fr,_.J);fr.prototype.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],fr.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],fr.prototype,"headerStyle",void 0);_.r([_.Jc({is:"ytd-text-header-renderer",disableElementRegistration:!0})],fr);
_.B(fr,"ytd-text-header-renderer",function(){if(yUr!==void 0)return yUr;var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return yUr=G},{mode:1});var gpd;var Bc=function(){return _.J.apply(this,arguments)||this};
_.u(Bc,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Bc.prototype,"data",void 0);_.r([_.Jc({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Bc);
_.B(Bc,"ytd-minor-moment-header-renderer",function(){if(gpd!==void 0)return gpd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return gpd=G},{mode:1});var Y0G;var rT=function(){return _.J.apply(this,arguments)||this};
_.u(rT,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rT.prototype,"data",void 0);_.r([_.Jc({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],rT);
_.B(rT,"ytd-minor-moment-setting-alert-renderer",function(){if(Y0G!==void 0)return Y0G;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Y0G=G},{mode:1});var GVg;var cer;var ja=function(){var G=_.J.apply(this,arguments)||this;G.booleanSettingById=!1;G.smartDownloadsEnabledVE=_.qj(128287);G.smartDownloadsDisabledVE=_.qj(128286);G.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return G};
_.u(ja,_.J);_.P=ja.prototype;_.P.attachSmartDownloadsSettingVes=function(){var G;this.activeVeForLogging||((G=this.data)==null?void 0:G.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.CJ(_.DP(),this.smartDownloadsEnabledVE),_.CJ(_.DP(),this.smartDownloadsDisabledVE))};
_.P.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Xl(this.hostElement,"yt-settings-switch-ready")};
_.P.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.P.onSwitchChange=function(G){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(G=_.HH(G).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.v("kevlar_settings_switch_resolve_command_killswitch")?_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(G)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.P.handleUpdateSettingsSwitch=function(G){(G=_.D(G,kWp))&&this.data&&this.data.id===G.id&&this.set("data.enabled",!!G.enabled)};
_.P.onToggleSettingsSwitch=function(G,c){this.data&&this.data.id===G&&this.set("data.enabled",c!=null?c:!this.data.enabled)};
_.P.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Jt.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.P.maybeLogSmartDownloadsSettingVisibility=function(){var G=_.k0(),c;G&&((c=this.data)==null?void 0:c.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Bd(G,[this.smartDownloadsEnabledVE]),_.rU(G,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Bd(G,[this.smartDownloadsDisabledVE]),_.rU(G,[this.smartDownloadsEnabledVE])))};
_.P.maybeLogSmartDownloadsSettingClick=function(){var G;((G=this.data)==null?void 0:G.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.XF(_.DP(),this.activeVeForLogging)};
_.P.updateDataEnabledFromBinding=function(G){this.set("data.enabled",G.detail.value)};
_.Nh.Object.defineProperties(ja.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!G&&(G=this.ytRendererBehavior.getSimpleString(this.data.title));return G}}});
ja.prototype.dataChanged=ja.prototype.dataChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],ja.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],ja.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ja.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],ja.prototype,"data",void 0);_.r([_.E({selector:function(G,c){if(Object.keys(G==null?void 0:G.entities).length)switch(c){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return VPr(G.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.h("design:type",Object)],ja.prototype,"booleanSettingById",void 0);_.r([_.E(),_.h("design:type",UQ)],ja.prototype,"activeVeForLogging",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ja.prototype,"toggleAriaLabel",null);_.r([_.uO("data"),_.uO("booleanSettingById"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ja.prototype,"dataChanged",null);
_.r([_.Jc({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],ja);
_.B(ja,"ytd-settings-switch-renderer",function(){if(cer!==void 0)return cer;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return cer=G},{mode:1});var xR=function(){return _.J.apply(this,arguments)||this};
_.u(xR,_.J);xR.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}}}}};
_.Nh.Object.defineProperties(xR.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var G=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(G+=" remove-left-margin");this.data.extraBottomSpace&&(G+=" extra-bottom-space");return G}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xR.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xR.prototype,"contentsClassName",null);_.r([_.Jc({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],xR);
_.B(xR,"ytd-minor-moment-setting-section-renderer",function(){if(GVg!==void 0)return GVg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return GVg=G},{mode:1});var Ipu;var tB=function(){return _.J.apply(this,arguments)||this};
_.u(tB,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],tB.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tB.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],tB);
_.B(tB,"ytd-empty-product-details-renderer",function(){if(Ipu!==void 0)return Ipu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ipu=G},{mode:1});var R91;var ZNG;var hB=function(){var G=_.J.apply(this,arguments)||this;G.expanded=!0;return G};
_.u(hB,_.J);hB.prototype.getBadgeRowClass=function(G,c,I){for(var R=_.Q(this.hostElement.querySelectorAll("yt-img-shadow")),Z=R.next();!Z.done;Z=R.next())Z.value.onShow();G=G.selected;return I?G!==-1?G===c?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(G!==void 0?G:0)===c?"badge-line":"badge-hidden"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hB.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],hB.prototype,"expanded",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],hB);
_.B(hB,"ytd-sponsorships-loyalty-badges-renderer",function(){if(ZNG!==void 0)return ZNG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ZNG=G},{mode:1});var KAg;var dT=function(){var G=_.J.apply(this,arguments)||this;G.expanded=!0;return G};
_.u(dT,_.J);dT.prototype.getContainerClasses=function(G,c){G=G?"expanded":"collapsed";c&&(G+=" item");return G};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dT.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],dT.prototype,"expanded",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],dT);
_.B(dT,"ytd-sponsorships-perk-renderer",function(){if(KAg!==void 0)return KAg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return KAg=G},{mode:1});var P21;var Cr=function(){var G=_.J.apply(this,arguments)||this;G.expanded=!0;return G};
_.u(Cr,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Cr.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Cr.prototype,"expanded",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Cr);
_.B(Cr,"ytd-sponsorships-perks-renderer",function(){if(P21!==void 0)return P21;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return P21=G},{mode:1});var Hc=function(){var G=_.J.apply(this,arguments)||this;G.isCollapsed=!1;return G};
_.u(Hc,_.J);Hc.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Hc.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Hc.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var G;this.expandCollapseButton=_.D((G=this.data)==null?void 0:G.expandButton,_.vE)}else{var c;this.expandCollapseButton=_.D((c=this.data)==null?void 0:c.collapseButton,_.vE)}};
Hc.prototype.updateExpandCollapseButton=Hc.prototype.updateExpandCollapseButton;Hc.prototype.onDataChanged=Hc.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Hc.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hc.prototype,"isCollapsed",void 0);_.r([_.E(),_.h("design:type",Object)],Hc.prototype,"expandCollapseButton",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hc.prototype,"onDataChanged",null);_.r([_.uO("data","isCollapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hc.prototype,"updateExpandCollapseButton",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Hc);
_.B(Hc,"ytd-sponsorships-expandable-perks-renderer",function(){if(R91!==void 0)return R91;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return R91=G},{mode:1});var Q0W;var Xz=function(){return _.J.apply(this,arguments)||this};
_.u(Xz,_.J);Xz.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Xz.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Xz.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Xz);
_.B(Xz,"ytd-sponsorships-actionable-message-renderer",function(){if(Q0W!==void 0)return Q0W;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Q0W=G},{mode:1});var mkj;var yw=function(){return _.J.apply(this,arguments)||this};
_.u(yw,_.J);_.P=yw.prototype;_.P.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.P.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.P.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.computeMessageContainerStyle=function(G){var c=G.expandableItems?" style-clickable":"";return G.messageContainerStyle?G.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+c:"style-unspecified"+c};
_.P.isSinglePerk=function(G){return!!G.messageContainerStyle&&(G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.P.onExpandedChanged=function(){var G=this;if(this.expanded)for(var c=_.Q(this.hostElement.querySelectorAll("yt-img-shadow")),I=c.next();!I.done;I=c.next())I.value.onShow();_.O$(this,function(){_.Xl(G.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
yw.prototype.onDataChanged=yw.prototype.onDataChanged;yw.prototype.onExpandedChanged=yw.prototype.onExpandedChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yw.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],yw.prototype,"expanded",void 0);
_.r([_.wD("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yw.prototype,"onExpandedChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yw.prototype,"onDataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],yw);
_.B(yw,"ytd-sponsorships-expandable-message-renderer",function(){if(mkj!==void 0)return mkj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return mkj=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var apH;var gT=function(){return _.J.apply(this,arguments)||this};
_.u(gT,_.J);gT.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"}}}}};
gT.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.D(this.data.endButton,_.vE).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
gT.prototype.onDataChanged=gT.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gT.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gT.prototype,"onDataChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],gT);
_.B(gT,"ytd-sponsorships-heading-renderer",function(){if(apH!==void 0)return apH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return apH=G},{mode:1});var Ter;var YR=function(){return _.J.apply(this,arguments)||this};
_.u(YR,_.J);_.r([_.E(),_.h("design:type",Object)],YR.prototype,"data",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],YR);
_.B(YR,"ytd-sponsorships-links-renderer",function(){if(Ter!==void 0)return Ter;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ter=G},{mode:1});var ONG;var GT=function(){return _.J.apply(this,arguments)||this};
_.u(GT,_.J);_.P=GT.prototype;_.P.onDataChanged=function(){if(this.data&&this.data.expandableItems){var G;(G=_.Q1(this.hostElement).querySelector("tp-yt-paper-button"))==null||G.setAttribute("role","button")}else{var c;(c=_.Q1(this.hostElement).querySelector("tp-yt-paper-button"))==null||c.removeAttribute("role")}};
_.P.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.P.getTileClasses=function(G){return G?"tile expandable-tile":"tile"};
_.P.getButtonDisabled=function(G){return G?void 0:""};
GT.prototype.onDataChanged=GT.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],GT.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],GT.prototype,"expanded",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GT.prototype,"onDataChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],GT);
_.B(GT,"ytd-sponsorships-list-tile-renderer",function(){if(ONG!==void 0)return ONG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ONG=G},{mode:1});var e91;var NeF;var cx=function(){return _.J.apply(this,arguments)||this};
_.u(cx,_.J);cx.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],cx.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],cx);
_.B(cx,"ytd-sponsorships-promotion-renderer",function(){if(NeF!==void 0)return NeF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return NeF=G},{mode:1});var lpF;var Id=function(){return _.J.apply(this,arguments)||this};
_.u(Id,_.J);Id.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Id.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Id);
_.B(Id,"ytd-sponsorships-purchase-option-renderer",function(){if(lpF!==void 0)return lpF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return lpF=G},{mode:1});var qKd;var w0r;var FAd=function(){return _.J.apply(this,arguments)||this};
_.u(FAd,_.J);_.r([_.E(),_.h("design:type",Object)],FAd.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],FAd);
_.B(FAd,"ytd-ypc-offer-promo-renderer",function(){if(w0r!==void 0)return w0r;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return w0r=G},{mode:1});var Rd=function(){return _.J.apply(this,arguments)||this};
_.u(Rd,_.J);_.P=Rd.prototype;
_.P.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.P.expansionCTA=function(G,c){return G&&(c?G.collapseCallToAction:G.expansionCallToAction)};
_.P.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.P.expansionCallToActionTap=function(){var G=this;this.expanded=!this.expanded;_.O$(this,function(){_.Xl(G.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var G,c=(G=this.data)==null?void 0:G.onVisible;c&&this.ytComponentBehavior.resolveCommand(c)};
_.P.computeDisplayTitle=function(G){return!(!G||this.titledisplaystatus!=="show")};
_.P.computeDisplaySeparator=function(){return!1};
_.P.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Rd.prototype.onDataChanged=Rd.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Rd.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Rd.prototype,"data",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],Rd.prototype,"expanded",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Rd.prototype,"purchaseButtonClicked",void 0);_.r([_.E({reflectToAttribute:!0,value:"show"}),_.h("design:type",String)],Rd.prototype,"titledisplaystatus",void 0);_.r([_.E({computed:"computeDisplayTitle(data.title)"}),_.h("design:type",Boolean)],Rd.prototype,"displayTitle",void 0);
_.r([_.E({computed:"computeDisplaySeparator(data)"}),_.h("design:type",Boolean)],Rd.prototype,"displaySeparator",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rd.prototype,"onDataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Rd);
_.B(Rd,"ytd-sponsorships-tier-renderer",function(){if(qKd!==void 0)return qKd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return qKd=G},{mode:2});var Za=function(){return _.J.apply(this,arguments)||this};
_.u(Za,_.J);
Za.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"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Za.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Za);
_.B(Za,"ytd-sponsorships-management-renderer",function(){if(e91!==void 0)return e91;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return e91=G},{mode:1});var nKg;var KL=function(){return _.J.apply(this,arguments)||this};
_.u(KL,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],KL.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],KL);
_.B(KL,"ytd-open-in-native-app-view-model",function(){if(nKg!==void 0)return nKg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return nKg=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var vKr;var Dku;var oKg=_.I3(["top-"]),Uk7=_.I3(["bottom-"]),uTd=_.I3(["left-"]),bNG=_.I3(["right-"]),kVj={},s07=function(G,c,I){G.removeAttribute("top-"+I);G.removeAttribute("bottom-"+I);G.removeAttribute("left-"+I);G.removeAttribute("right-"+I);c&&(c.top&&_.N3([_.FU(oKg)],G,"top-"+I,c.top),c.bottom&&_.N3([_.FU(Uk7)],G,"bottom-"+I,c.bottom),c.left&&_.N3([_.FU(uTd)],G,"left-"+I,c.left),c.right&&_.N3([_.FU(bNG)],G,"right-"+I,c.right))};
kVj.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(G){var c,I=_.Q1((c=this.hostElement)!=null?c:this),R;c=this.cardItemBoxBehaviorMarginTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(R=this.hostElement)!=null?R:this;s07(c,G,"margin")},
cardItemContainerPaddingChanged_:function(G){var c,I=_.Q1((c=this.hostElement)!=null?c:this),R;c=this.cardItemBoxBehaviorPaddingTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(R=this.hostElement)!=null?R:this;s07(c,G,"padding")}}];var Px={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var LAu;var Ae1;var QP=function(){return _.J.apply(this,arguments)||this};
_.u(QP,_.J);QP.prototype.textColorChanged_=function(){this.hostElement.style.color=Px[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
QP.prototype.textColorChanged_=QP.prototype.textColorChanged_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.r([_.L(kVj.YtCardItemBoxBehavior),_.h("design:type",Object)],QP.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],QP.prototype,"data",void 0);_.r([_.wD("data.textColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QP.prototype,"textColorChanged_",null);
_.r([_.Em({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],QP);
_.B(QP,"yt-card-item-text-renderer",function(){if(Ae1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;LAu===void 0&&(LAu=document.createElement("template"));var R=LAu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Ae1=G}G=Ae1;return G},{mode:2});var $kr;var SKu;var m6=function(){return _.J.apply(this,arguments)||this};
_.u(m6,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],m6.prototype,"data",void 0);_.r([_.Em({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],m6);
_.B(m6,"yt-card-item-badge-renderer",function(){if(SKu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;$kr===void 0&&($kr=document.createElement("template"));var R=$kr;I.call(c,R.content.cloneNode(!0),G.content.firstChild);SKu=G}G=SKu;return G},{mode:2});var p0r;var Mig;var ad=function(){return _.J.apply(this,arguments)||this};
_.u(ad,_.J);ad.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ad.prototype,"data",void 0);_.r([_.Em({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],ad);
_.B(ad,"yt-card-item-text-collection-renderer",function(){if(Mig===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;p0r===void 0&&(p0r=document.createElement("template"));var R=p0r;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Mig=G}G=Mig;return G},{mode:2});var Vir;var z9j;var TT=function(){return _.J.apply(this,arguments)||this};
_.u(TT,_.J);TT.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]]"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],TT.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Number)],TT.prototype,"iconSize",void 0);_.r([_.Em({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],TT);
_.B(TT,"yt-card-item-text-with-button-renderer",function(){if(z9j===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Vir===void 0&&(Vir=document.createElement("template"));var R=Vir;I.call(c,R.content.cloneNode(!0),G.content.firstChild);z9j=G}G=z9j;return G},{mode:2});var O1=function(){return _.J.apply(this,arguments)||this};
_.u(O1,_.J);O1.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],O1.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],O1.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],O1);
_.B(O1,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Dku!==void 0)return Dku;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Dku=G},{mode:1});_.Su("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var e9=function(){var G=_.J.apply(this,arguments)||this;G.hidden=!1;return G};
_.u(e9,_.J);_.P=e9.prototype;_.P.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.P.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.P.updateSummary=function(){var G=this.commerceCartCheckoutButtonEntity,c;if(((c=this.data)==null?0:c.cartButton)&&G.checkoutSummaryText){var I,R=Eg((I=this.data)==null?void 0:I.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",Jq(G.checkoutSummaryText));if(G.checkoutDetailText){var Z;I=Eg((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",Jq(G.checkoutDetailText))}if(G.checkoutAdditionalMetadataText){var K;
Z=Eg((K=this.data)==null?void 0:K.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",Jq(G.checkoutAdditionalMetadataText))}}else G.estimatedTotalPrice&&(K=Eg((R=this.data)==null?void 0:R.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",Jq(G.estimatedTotalPrice)))};
_.P.updateIsHidden=function(){var G,c=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;c!==void 0&&(this.hidden=c)};
_.P.updateCheckoutButton=function(){var G,c=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isDisabled;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",c);var I;G=(I=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:I.innertubeCommand;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",G);var R;I=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.checkoutButtonText;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:I})};
e9.prototype.entityChanged=e9.prototype.entityChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],e9.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],e9.prototype,"fullWidth",void 0);_.r([_.E(),_.h("design:type",Object)],e9.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],e9.prototype,"compact",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],e9.prototype,"hidden",void 0);
_.r([_.E({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:exT}),_.h("design:type",Object)],e9.prototype,"commerceCartCheckoutButtonEntity",void 0);_.r([_.wD("commerceCartCheckoutButtonEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e9.prototype,"entityChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],e9);
_.B(e9,"ytd-commerce-cart-checkout-button-renderer",function(){if(vKr!==void 0)return vKr;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return vKr=G},{mode:2});var EKu;_.JeW={};
_.JeW.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",_.lO(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.lO(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(G){!this.tappableItemBehaviorTapEnabled||G.keyCode!==13&&G.keyCode!==32||G.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var G=this.data.onTap;G.ypcGetCartEndpoint?(_.Gs(this.hostElement,[G]),this.tappableItemBehaviorTapEnabled=!1):G.ypcOffersEndpoint?_.Gs(this.hostElement,[G]):_.cd(this.hostElement,[G],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(G){this.tappableItemBehaviorTapEnabled=!!G},
tappableItemBehaviorOnTapEnabledChanged_:function(){var G=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(G.setAttribute("tabIndex",0),G.setAttribute("role","button")):(G.removeAttribute("tabIndex"),G.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(G){G.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var WAr;var iNH;var Na=function(){return _.J.apply(this,arguments)||this};
_.u(Na,_.J);Na.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.pQ("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.pQ("sharingToggleButtonAndDefaultButton")}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Na.prototype,"data",void 0);_.r([_.Em({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Na);
_.B(Na,"yt-card-item-actions-renderer",function(){if(iNH===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;WAr===void 0&&(WAr=document.createElement("template"));var R=WAr;I.call(c,R.content.cloneNode(!0),G.content.firstChild);iNH=G}G=iNH;return G},{mode:2});var fpd;var BeW;var reW;var j0H;var xk1;var tiW;var lQ=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return G};
_.u(lQ,_.J);lQ.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
lQ.prototype.handleDarkModeToggledAction_=function(G){this.isDarkTheme_=G};
lQ.prototype.computeThemeImage_=function(G,c){if(!G||!G.imageLight)return!1;this.isCircular_=G.isCircular;G.imageWidth&&(this.hostElement.style.width=G.imageWidth+"px");G.imageHeight&&(this.hostElement.style.height=G.imageHeight+"px");G.borderWidth&&(this.image.style.borderWidth=G.borderWidth+"px",this.image.style.borderStyle="solid");G.borderColor&&(this.image.style.borderColor=_.pE(G.borderColor));return c&&G.imageDark?G.imageDark:G.imageLight};
lQ.prototype.computeThemeIcon_=function(G){var c,I;if(!(G==null?0:(c=G.themedIcon)==null?0:(I=c.icon)==null?0:I.iconType))return!1;this.icon.style.color=Px[G.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(G.imageWidth||18)+"px";this.icon.style.height=(G.imageHeight||18)+"px";return _.On(G.themedIcon.icon.iconType)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(kVj.YtCardItemBoxBehavior),_.h("design:type",Object)],lQ.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],lQ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lQ.prototype,"data",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],lQ.prototype,"fit",void 0);_.r([_.E(),_.h("design:type",Boolean)],lQ.prototype,"isDarkTheme_",void 0);_.r([_.E({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.h("design:type",Object)],lQ.prototype,"themeImage_",void 0);_.r([_.E({computed:"computeThemeIcon_(data)"}),_.h("design:type",Object)],lQ.prototype,"themeIcon_",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],lQ.prototype,"isCircular_",void 0);
_.r([_.nH("#image"),_.h("design:type",Object)],lQ.prototype,"image",void 0);_.r([_.nH("#icon"),_.h("design:type",Object)],lQ.prototype,"icon",void 0);_.r([_.Em({is:"yt-themed-image-renderer",disableElementRegistration:!0})],lQ);
_.B(lQ,"yt-themed-image-renderer",function(){if(tiW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;xk1===void 0&&(xk1=document.createElement("template"));var R=xk1;I.call(c,R.content.cloneNode(!0),G.content.firstChild);tiW=G}G=tiW;return G},{mode:2});var qa=function(){return _.J.apply(this,arguments)||this};
_.u(qa,_.J);qa.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"}}}}};
qa.prototype.computeImagePlacement_=function(G){return G||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],qa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qa.prototype,"data",void 0);_.r([_.E({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.h("design:type",String)],qa.prototype,"imagePlacement",void 0);
_.r([_.Em({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],qa);
_.B(qa,"yt-card-item-text-with-image-renderer",function(){if(j0H===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;reW===void 0&&(reW=document.createElement("template"));var R=reW;I.call(c,R.content.cloneNode(!0),G.content.firstChild);j0H=G}G=j0H;return G},{mode:2});var wv=function(){return _.J.apply(this,arguments)||this};
_.u(wv,_.J);wv.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"}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wv.prototype,"data",void 0);_.r([_.Em({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],wv);
_.B(wv,"yt-card-item-error-renderer",function(){if(BeW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;fpd===void 0&&(fpd=document.createElement("template"));var R=fpd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);BeW=G}G=BeW;return G},{mode:2});var h9F;var dk1;_.Su("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Fs=function(){return _.J.apply(this,arguments)||this};
_.u(Fs,_.J);_.P=Fs.prototype;
_.P.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.P.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.P.backgroundColorChanged_=function(){var G,c=(G=this.data)==null?void 0:G.backgroundColor;G=Px[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Q1(this.hostElement).querySelector("#main-content").style.backgroundColor=G};
_.P.headerPromoBackgroundColorChanged_=function(){var G,c=(G=this.data)==null?void 0:G.headerPromoBackgroundColor;G=Px[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Q1(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=G};
_.P.errorRendererVisibilityChanged_=function(){var G=this.isExpanded_,c;this.isErrorRendererVisible_=!((c=this.data)==null||!c.errorRenderer)&&!G};
_.P.onYtToggleButton_=function(G,c){this.isExpanded_=c.toggled};
Fs.prototype.onYtToggleButton_=Fs.prototype.onYtToggleButton_;Fs.prototype.errorRendererVisibilityChanged_=Fs.prototype.errorRendererVisibilityChanged_;Fs.prototype.headerPromoBackgroundColorChanged_=Fs.prototype.headerPromoBackgroundColorChanged_;Fs.prototype.backgroundColorChanged_=Fs.prototype.backgroundColorChanged_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(kVj.YtCardItemBoxBehavior),_.h("design:type",Object)],Fs.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.L(_.JeW.YtTappableItemBehavior),_.h("design:type",Object)],Fs.prototype,"ytTappableItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Fs.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Fs.prototype,"isExpanded_",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],Fs.prototype,"isErrorRendererVisible_",void 0);_.r([_.wD("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fs.prototype,"backgroundColorChanged_",null);_.r([_.wD("data.headerPromoBackgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fs.prototype,"headerPromoBackgroundColorChanged_",null);
_.r([_.wD("data.errorRenderer","isExpanded_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fs.prototype,"errorRendererVisibilityChanged_",null);_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],Fs.prototype,"onYtToggleButton_",null);_.r([_.Em({is:"yt-card-item-renderer",disableElementRegistration:!0})],Fs);
_.B(Fs,"yt-card-item-renderer",function(){if(dk1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;h9F===void 0&&(h9F=document.createElement("template"));var R=h9F;I.call(c,R.content.cloneNode(!0),G.content.firstChild);dk1=G}G=dk1;return G},{mode:2});_.Su("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var nL=function(){var G=_.J.apply(this,arguments)||this;G.hidden=!1;return G};
_.u(nL,_.J);_.P=nL.prototype;_.P.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.P.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,c=(G=this.commerceCartHeaderEntity)==null?void 0:G.isHidden;c!==void 0&&(this.hidden=c)}};
_.P.updateTitle=function(){var G=this.commerceCartHeaderEntity.isDisabled,c,I,R=(I=_.D((c=this.data)==null?void 0:c.item,bb0))==null?void 0:I.headingRenderer;R&&(c=Eg(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+c+".0.cardItemTextRenderer.textColor",G?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.P.updateSummaryText=function(){var G=this.commerceCartHeaderEntity;if(this.compact){var c,I,R=(I=_.D((c=this.data)==null?void 0:c.item,bb0))==null?void 0:I.headingRenderer;R&&(c=Eg(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+c+".1.cardItemTextRenderer.text",G.shortHeaderSummaryText?Jq(G.shortHeaderSummaryText):G.headerSummaryText?Jq(G.headerSummaryText):""))}else{var Z;if(c=(Z=_.D((R=this.data)==null?void 0:R.item,bb0))==null?void 0:Z.additionalInfoRenderer)c=Eg(c,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".text",G.headerSummaryText?Jq(G.headerSummaryText):"")}};
_.P.updateCheckoutButton=function(){var G=this.commerceCartHeaderEntity,c,I,R=(I=_.D((c=this.data)==null?void 0:c.item,bb0))==null?void 0:I.additionalInfoRenderer;c=Eg(R,"buttonRenderer");var Z;I=(Z=this.commerceCartHeaderEntity)==null?void 0:Z.isButtonDisabled;var K;Z=(K=this.commerceCartHeaderEntity)==null?void 0:K.isButtonHidden;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".buttonRenderer.isDisabled",I);Z!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Z);var m;G=(m=G.checkoutButtonCommand)==null?void 0:m.innertubeCommand;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".buttonRenderer.command",G)};
nL.prototype.entityChanged=nL.prototype.entityChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],nL.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],nL.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],nL.prototype,"compact",void 0);_.r([_.E({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(G,c){return _.a6(G.entities,"commerceCartHeaderEntity",c)}}),
_.h("design:type",Object)],nL.prototype,"commerceCartHeaderEntity",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],nL.prototype,"hidden",void 0);_.r([_.wD("commerceCartHeaderEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nL.prototype,"entityChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],nL);
_.B(nL,"ytd-commerce-cart-header-renderer",function(){if(EKu!==void 0)return EKu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return EKu=G},{mode:1});var C2W;var HNu=_.W7(function(G,c){var I;return(I=G.onChangeCallback)==null?void 0:I.call(G,c)},1E3),X01=_.W(function(G){var c=G.data;
var I=G.iconMinus;G=G.iconPlus;var R=function(){return!!c().disabled},Z=_.Q(_.ks(0,void 0,"mKh0af")),K=Z.next().value,m=Z.next().value;
Z=_.Nx(function(){if(K()===1){var w,F;(F=(w=c()).onRemoveCommand)==null||F.call(w)}w=K()>c().maxValue?c().maxValue:K()-1;m(w);HNu(c(),w);return!1});
var a=_.Nx(function(){if(K()===c().maxValue)return!1;var w=K()+1;m(w);HNu(c(),w);return!1});
_.xc(function(){m(c().value)});
var O={},N={},q={};return _.e("quantity-incrementer-shape",null,_.e("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.e("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return K()===(c().onRemoveCommand?0:1)||R()},
"aria-label":function(){return K()!==1?c().minusLabel:c().minimumReachedLabel},
"on:click":Z},_.e(_.Jx,{model:{circular:!0}}),_.e("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.e("div",{class:_.O3("ytSpecQuantityIncrementerShapeIcon",(O.ytSpecQuantityIncrementerShapeIconDisabled=function(){return R()||K()===(c().onRemoveCommand?0:1)},O))},I()))),_.e("div",{class:_.O3("ytSpecQuantityIncrementerShapeText",(N.ytSpecQuantityIncrementerShapeTextInvalid=function(){return K()>c().maxValue},N.ytSpecQuantityIncrementerShapeTextDisabled=R,N))},K),_.e("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return K()>=c().maxValue||R()},
"aria-label":function(){return K()!==c().maxValue?c().plusLabel:c().maximumReachedLabel},
"on:click":a},_.e(_.Jx,{model:{circular:!0}}),_.e("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.e("div",{class:_.O3("ytSpecQuantityIncrementerShapeIcon",(q.ytSpecQuantityIncrementerShapeIconDisabled=function(){return K()>=c().maxValue||R()},q))},G())))))},"Nf");_.R1(_.W(function(G){function c(){I().onRemoveCommand&&_.r0(I().onRemoveCommand)}
var I=G.data;var R=_.um(so8,function(){return I().quantityIncrementerEntityKey});
return _.e("yt-quantity-incrementer-view-model",null,_.e(X01,{data:function(){var Z=I(),K;var m=R()?!((K=R())==null||!K.disabled):!1;var a;K=R()?(a=R())==null?void 0:a.quantity:I().quantity;return in0(Z,m,c,K)},
iconMinus:function(){return _.e(_.F6,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.e(_.F6,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Of"),"yt-quantity-incrementer-view-model",{props:{data:_.bl}});var vx=function(){var G=_.J.apply(this,arguments)||this;G.compact=!1;G.hasQuantityIncrementer=!1;return G};
_.u(vx,_.J);vx.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"}}}};
vx.prototype.computeHasQuantityIncrementer=function(){var G;return!!_.D((G=this.data)==null?void 0:G.picker,ApB)};
vx.prototype.onLabelClick=function(){var G;(G=this.dropdownEl)==null||G.open()};
_.r([_.nH("ytd-dropdown-renderer"),_.h("design:type",Object)],vx.prototype,"dropdownEl",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],vx.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],vx.prototype,"quantityColor",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],vx.prototype,"compact",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.h("design:type",Object)],vx.prototype,"hasQuantityIncrementer",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],vx);
_.B(vx,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(C2W!==void 0)return C2W;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return C2W=G},{mode:1});var yed;var gK1;var Da=function(){return _.J.apply(this,arguments)||this};
_.u(Da,_.J);Da.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Da.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Da.prototype.updateTitle=function(){var G=this.disabledCartItemEntity;G.disableActionName&&this.set("data.title",Jq(G.disableActionName))};
Da.prototype.updateButton=function(){var G,c=(G=this.disabledCartItemEntity.undoCommand)==null?void 0:G.innertubeCommand;c!==void 0&&(this.set("data.actionButton.buttonRenderer.command",c),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Da.prototype.entityChanged=Da.prototype.entityChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],Da.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(G,c){return _.a6(G.entities,"disabledCartItemEntity",c)}}),
_.h("design:type",Object)],Da.prototype,"disabledCartItemEntity",void 0);_.r([_.E(),_.h("design:type",Object)],Da.prototype,"data",void 0);_.r([_.wD("disabledCartItemEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Da.prototype,"entityChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Da);
_.B(Da,"ytd-disabled-cart-item-renderer",function(){if(gK1!==void 0)return gK1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return gK1=G},{mode:1});_.Su("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var od=function(){var G=_.J.apply(this,arguments)||this;G.compact=!1;G.hidden=!1;G.errorHidden=!1;G.noOnTap=!1;return G};
_.u(od,_.J);_.P=od.prototype;
_.P.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.P.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.P.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var G=this.firstButtonElement;G.alignByText=!0;G.iconAlignByText=!0}};
_.P.computeNoOnTap=function(G){return!G};
_.P.updateQuantityColor=function(){if(this.pickerElement){var G,c=(G=this.commerceCartItemEntity)==null?void 0:G.quantityColor;this.pickerElement.quantityColor=c}};
_.P.updateTotalPriceColor=function(){var G,c=(G=this.commerceCartItemEntity)==null?void 0:G.totalPriceColor;if(c){var I;G=_.D((I=this.data)==null?void 0:I.quantityPicker,sUA);if(I=_.D(G==null?void 0:G.price,kwK))I.textColor=c}};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,c=(G=this.commerceCartItemEntity)==null?void 0:G.isHidden;c!==void 0&&(this.hidden=c)}};
_.P.updateHideErrorMessage=function(){var G,c=(G=this.commerceCartItemEntity)==null?void 0:G.hideErrorMessage;c!==void 0&&(this.errorHidden=c)};
_.P.updateQuantity=function(){var G=this,c,I=(c=this.commerceCartItemEntity)==null?void 0:c.quantity,R;c=(R=this.commerceCartItemEntity)==null?void 0:R.totalPrice;if(I){this.updateTotalPriceColor();this.updateQuantityColor();var Z;R=_.D((Z=this.data)==null?void 0:Z.quantityPicker,sUA);if(Z=_.D(R==null?void 0:R.price,kwK))Z.text=c?{simpleText:c.content}:void 0;if(c=_.D(R==null?void 0:R.picker,ApB))c.quantity=I;var K;if(Z=(K=_.D(R==null?void 0:R.picker,kQK))==null?void 0:K.entries){K=!1;c=void 0;Z=
_.Q(Z);for(R=Z.next();!R.done;R=Z.next())R=R.value,R.dropdownItemRenderer&&(c||(c=R.dropdownItemRenderer),R.dropdownItemRenderer.isSelected=!1,I===R.dropdownItemRenderer.int32Value&&(K=!0,R.dropdownItemRenderer.isSelected=!0));!K&&c&&(c.isSelected=!0)}_.O$(this,function(){var m;G.set("data.quantityPicker",_.rx.unsafeClone((m=G.data)==null?void 0:m.quantityPicker))})}};
od.prototype.onYtRendererstamperFinished=od.prototype.onYtRendererstamperFinished;od.prototype.entityChanged=od.prototype.entityChanged;_.r([_.E(),_.h("design:type",Object)],od.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],od.prototype,"compact",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],od.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],od.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(G,c){return _.a6(G.entities,"commerceCartItemEntity",c)}}),
_.h("design:type",Object)],od.prototype,"commerceCartItemEntity",void 0);_.r([_.E(),_.h("design:type",Object)],od.prototype,"quantityPicker",void 0);_.r([_.E(),_.h("design:type",Object)],od.prototype,"compactQuantityPicker",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],od.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],od.prototype,"errorHidden",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.h("design:type",Object)],od.prototype,"noOnTap",void 0);_.r([_.nH("ytd-commerce-cart-item-quantity-picker-renderer"),_.h("design:type",Object)],od.prototype,"pickerElement",void 0);_.r([_.nH("yt-button-renderer"),_.h("design:type",Element)],od.prototype,"firstButtonElement",void 0);
_.r([_.wD("commerceCartItemEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],od.prototype,"entityChanged",null);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],od.prototype,"onYtRendererstamperFinished",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],od);
_.B(od,"ytd-commerce-cart-item-renderer",function(){if(yed!==void 0)return yed;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return yed=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var YK$;var GrW;var U1=function(){return _.J.apply(this,arguments)||this};
_.u(U1,_.J);U1.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}}}}}};
U1.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
U1.prototype.updateCheckoutLineItems=function(){var G,c=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.checkoutLineItems;c&&(G=c.map(function(I){a:{var R=I.price,Z=I.description;switch(I.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Jq(Z),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:Jq(R),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Jq(Z),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:Jq(R),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return I}),this.set("data.summaryLineItems",G))};
U1.prototype.updateIsHidden=function(){var G,c=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;c!==void 0&&(this.hostElement.hidden=c)};
U1.prototype.entityChanged=U1.prototype.entityChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],U1.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],U1.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],U1.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:exT}),_.h("design:type",Object)],U1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.r([_.wD("commerceCartCheckoutButtonEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],U1.prototype,"entityChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],U1);
_.B(U1,"ytd-commerce-cart-summary-renderer",function(){if(GrW!==void 0)return GrW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return GrW=G},{mode:1});var cdH={};cdH.InjectBehavior=[IO0.InjectBehavior];var IWW;var R0g;var uQ=function(){return _.J.apply(this,arguments)||this};
_.u(uQ,_.J);
uQ.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:_.pQ("menuRenderer")}}};
uQ.prototype.onMenuTap=function(G){G.stopPropagation()};
_.Nh.Object.defineProperties(uQ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var G,c;return!(((G=this.data)==null||!G.sectionHeading)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var G,c;return!(((G=this.data)==null||!G.image)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var G,c;return!(((G=this.data)==null||!G.menu)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.JeW.YtTappableItemBehavior),_.h("design:type",Object)],uQ.prototype,"ytTappableItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uQ.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data.accessibilityData"),_.h("design:type",String),_.h("design:paramtypes",[])],uQ.prototype,"ariaLabel",null);_.r([_.A("data.sectionHeading","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uQ.prototype,"sectionHeadingVisible",null);_.r([_.A("data.image","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uQ.prototype,"imageVisible",null);
_.r([_.A("data.menu","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uQ.prototype,"menuVisible",null);_.r([_.Em({is:"yt-activity-item-renderer",disableElementRegistration:!0})],uQ);
_.B(uQ,"yt-activity-item-renderer",function(){if(R0g===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;IWW===void 0&&(IWW=document.createElement("template"));var R=IWW;I.call(c,R.content.cloneNode(!0),G.content.firstChild);R0g=G}G=R0g;return G},{mode:2});var Z1$;var KWG;var PH$;var Qu$;var bQ=function(){return _.J.apply(this,arguments)||this};
_.u(bQ,_.J);
bQ.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"}}}}};
bQ.prototype.backgroundColorChanged_=function(){var G,c=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=Px[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
bQ.prototype.backgroundColorChanged_=bQ.prototype.backgroundColorChanged_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bQ.prototype,"data",void 0);
_.r([_.wD("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bQ.prototype,"backgroundColorChanged_",null);_.r([_.Em({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],bQ);
_.B(bQ,"yt-offer-item-upsell-renderer",function(){if(Qu$===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;PH$===void 0&&(PH$=document.createElement("template"));var R=PH$;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Qu$=G}G=Qu$;return G},{mode:2});_.Su("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var kg=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};G.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return G};
_.u(kg,_.J);_.P=kg.prototype;
_.P.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.pQ("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.P.computeContainerStyle_=function(G){return G};
_.P.computeContainerIsHidden_=function(G){return G&&!!G.isHidden};
_.P.computeShowSpinner_=function(G,c){return G&&c==="in-progress"};
_.P.computeShowMoreContentsButton_=function(G,c,I,R,Z){return!(!(R&&R.length||Z&&Z.length&&I)||!G||c)};
_.P.onToggleButton_=function(G){var c=this;G.stopPropagation();this.isExpanded_=G.detail&&G.detail.toggled;var I,R;this.isExpanded_&&!this.data.continuationSection.length&&((I=this.data)==null?0:(R=I.continuation)==null?0:R.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Xl(this.hostElement,"yt-load-next-continuation",function(Z){return c.getContinuationUrl_(c.data.continuation.onClickContinuationData,Z)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Gs(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.P.onShowMoreContentsButtonClicked_=function(G){var c=this;G.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Xl(this.hostElement,"yt-load-next-continuation",function(I){return c.getContinuationUrl_(c.data.continuations[0].nextContinuationData,I)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Gs(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.P.getContinuationUrl_=function(G,c){var I=G.continuation;G=G.clickTrackingParams;var R=_.k0();G&&R&&_.jW(R,_.kC(G));return _.aa(c,{continuation:I})};
_.P.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var G=_.Q1(this.hostElement).querySelector("#continuation-section");G&&(G=G.querySelectorAll("ytmusic-item-section-renderer"))&&G.forEach(function(c){return c.classList.add("memberships-and-purchases")})};
_.P.dataChanged_=function(){var G;this.isExpanded_=!((G=this.data)==null||!G.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.P.updateCardOnClickCommand_=function(G){G=_.D(G,l5i);var c,I;this.data&&((c=this.data)==null?0:c.targetId)&&G&&G.targetId===((I=this.data)==null?void 0:I.targetId)&&G.onClickCommand&&(this.data.onClickCommand=G.onClickCommand,this.isOnClickCommand_=!0)};
_.P.backgroundColorChanged_=function(){var G,c=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=Px[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
kg.prototype.backgroundColorChanged_=kg.prototype.backgroundColorChanged_;kg.prototype.dataChanged_=kg.prototype.dataChanged_;kg.prototype.nextContinuationDataUpdated_=kg.prototype.nextContinuationDataUpdated_;kg.prototype.onToggleButton_=kg.prototype.onToggleButton_;_.r([_.L(_.MZ),_.h("design:type",Object)],kg.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],kg.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Vn.YtNextContinuationBehavior),_.h("design:type",Object)],kg.prototype,"ytNextContinuationBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.r([_.L(cdH.InjectBehavior),_.h("design:type",Object)],kg.prototype,"injectBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kg.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],kg.prototype,"compact",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],kg.prototype,"isExpanded_",void 0);_.r([_.E({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.h("design:type",String)],kg.prototype,"containerStyle_",void 0);_.r([_.E({value:"not-started"}),_.h("design:type",String)],kg.prototype,"continuationStatus_",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.h("design:type",Boolean)],kg.prototype,"showSpinner_",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],kg.prototype,"isOnClickCommand_",void 0);_.r([_.E({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.h("design:type",Boolean)],kg.prototype,"showMoreContentsButton_",void 0);
_.r([_.E({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(G,c){return!c||G.entities?null:_.a6(G.entities,"cardItemContainerEntity",c)}}),
_.h("design:type",Object)],kg.prototype,"cardItemContainerEntity_",void 0);_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],kg.prototype,"onToggleButton_",null);_.r([_.qY("yt-next-continuation-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kg.prototype,"nextContinuationDataUpdated_",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kg.prototype,"dataChanged_",null);_.r([_.wD("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kg.prototype,"backgroundColorChanged_",null);_.r([_.Em({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],kg);
_.B(kg,"yt-card-item-container-renderer",function(){if(KWG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Z1$===void 0&&(Z1$=document.createElement("template"));var R=Z1$;I.call(c,R.content.cloneNode(!0),G.content.firstChild);KWG=G}G=KWG;return G},{mode:2});var s1=function(){return _.J.apply(this,arguments)||this};
_.u(s1,_.J);s1.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"}}}};
s1.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
s1.prototype.computeLoadingHidden=function(){var G;return!((G=this.commerceCartPageStateEntity)==null?0:G.cartActionInProgress)};
s1.prototype.updateNotification=function(){var G,c=(G=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:G.summaryText;c&&this.set("data.cartNotification",Jq(c))};
s1.prototype.notificationEntityChanged=s1.prototype.notificationEntityChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],s1.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],s1.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],s1.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(G,c){return _.a6(G.entities,"commerceCartExpandableNotificationEntity",c)}}),
_.h("design:type",Object)],s1.prototype,"commerceCartExpandableNotificationEntity",void 0);_.r([_.E({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(G,c){return _.a6(G.entities,"commerceCartPageStateEntity",c)}}),
_.h("design:type",Object)],s1.prototype,"commerceCartPageStateEntity",void 0);_.r([_.nH("#spinner"),_.h("design:type",HTMLElement)],s1.prototype,"spinner",void 0);_.r([_.wD("commerceCartExpandableNotificationEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],s1.prototype,"notificationEntityChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],s1);
_.B(s1,"ytd-commerce-cart-renderer",function(){if(YK$!==void 0)return YK$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return YK$=G},{mode:1});var mgj;var LL=function(){var G=_.J.apply(this,arguments)||this;G.bigImage=!1;return G};
_.u(LL,_.J);_.Nh.Object.defineProperties(LL.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.placeholderImageUrl}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],LL.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],LL.prototype,"bigImage",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],LL.prototype,"placeholderImageUrl",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],LL);
_.B(LL,"ytd-empty-product-shelf-renderer",function(){if(mgj!==void 0)return mgj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return mgj=G},{mode:1});var aW7;var AF=function(){var G=_.J.apply(this,arguments)||this;G.itemStyle="link-item";G.watchMetadataRefresh=!1;G.skinnyMode=!1;G.metaPanel=!1;G.inStructuredDescription=!1;G.detailedDescriptionOverride=!1;G.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};G.updateOnResizeDebouncer=null;return G};
_.u(AF,_.J);_.P=AF.prototype;_.P.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.P.attachVEs=function(G){G.trackingParams&&_.DP().graftServerVe(G.trackingParams)};
_.P.handleUpdateMerchShelfAction=function(G){var c=this,I=_.D(G.updateMerchandiseShelfAction.merchandiseShelf,_.rh9);I&&(I.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){c.attachVEs(I);c.data=I},Number(I.renderDelayMs))):(this.attachVEs(I),this.data=I))};
_.P.updateOnResize=function(){if(this.JSC$17192_scrollContainer!==void 0&&this.JSC$17192_scrollContainer.clientWidth!==0&&this.items!==void 0){var G=this.JSC$17192_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_();var c;switch((c=this.data)==null?void 0:c.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var I,
R;((I=this.data)==null?void 0:(R=I.items)==null?void 0:R.length)===1?this.itemStyle="cta-item":this.itemStyle=G>=740?"large-item":"small-item"}}};
_.P.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.pq(this.updateOnResizeDebouncer,_.vw.after(100),this.updateOnResize)};
AF.prototype.debouncedUpdateOnResize=AF.prototype.debouncedUpdateOnResize;AF.prototype.dataChanged=AF.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.WT.YtdHorizontalListBehavior),_.h("design:type",Object)],AF.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],AF.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],AF.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],AF.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],AF.prototype,"itemStyle",void 0);_.r([_.E({value:6}),_.h("design:type",Number)],AF.prototype,"initialCount",void 0);
_.r([_.E({value:"data.items"}),_.h("design:type",String)],AF.prototype,"itemsPath",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],AF.prototype,"watchMetadataRefresh",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],AF.prototype,"skinnyMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],AF.prototype,"metaPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],AF.prototype,"inStructuredDescription",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],AF.prototype,"detailedDescriptionOverride",void 0);_.r([_.nH("#items"),_.h("design:type",HTMLDivElement)],AF.prototype,"items",void 0);_.r([_.nH("#scroll-container"),_.h("design:type",HTMLDivElement)],AF.prototype,"JSC$17192_scrollContainer",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AF.prototype,"dataChanged",null);
_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AF.prototype,"debouncedUpdateOnResize",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],AF);
_.B(AF,"ytd-merch-shelf-renderer",function(){if(aW7!==void 0)return aW7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return aW7=G},{mode:2});var T7r;var $g=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return G};
_.u($g,_.J);_.P=$g.prototype;
_.P.addBackstagePostAction=function(G){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(G=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",G))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:G}):this.set("data.contents",[{backstagePostThreadRenderer:G}]))};
_.P.addBackstageCommentAction=function(G){var c=this.get("addBackstageCommentAction.parentId",G);G=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",G);if(c&&G){c=this.postIdToIndices(c);for(var I=0;I<c.length;I++){var R=c[I];if(R<0)break;R="data.contents."+R+".backstagePostThreadRenderer.comments";this.get(R)&&(this.get(R+".backstageCommentsRenderer.contents")&&this.push(R+".backstageCommentsRenderer.contents",{commentThreadRenderer:G}),this.get(R+".backstageCommentsRenderer.teaserContents")?
this.push(R+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:G}):this.set(R+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:G}]))}}};
_.P.addBackstageReplyAction=function(G){var c=this.get("addBackstageReplyAction.parentId",G);G=this.get("addBackstageReplyAction.renderer.commentRenderer",G);c&&G&&this.setCreatorReply(c,G)};
_.P.banAuthorAction=function(G){var c=this.get("banAuthorAction.commentId",G);c&&(G=this.get("banAuthorAction.parentCommentId",G)||this.getParentPostId(c),this.removeFromStream(c,G))};
_.P.hideReportedCommentAction=function(G){var c=this.get("hideReportedCommentAction.commentId",G);c&&((G=this.get("hideReportedCommentAction.parentCommentId",G))||(G=this.getParentPostId(c)),this.removeFromStream(c,G))};
_.P.replaceBackstageCommentAction=function(G){var c=this.get("replaceBackstageCommentAction.commentId",G),I=this.get("replaceBackstageCommentAction.parentId",G);G=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",G);if(c&&I&&G){I=this.postIdToIndices(I);for(var R=0;R<I.length;R++){var Z=I[R];if(Z<0)break;var K=this.commentIdToIndex(c,Z,!1);if(K>=0){var m=this.get("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+K+".commentThreadRenderer.replies.commentRepliesRenderer");
m&&(G.replies={commentRepliesRenderer:m});this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",K,1,{commentThreadRenderer:G})}K=this.commentIdToIndex(c,Z,!0);if(K>=0){if(m=this.get("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(K+".commentThreadRenderer.replies.commentRepliesRenderer")))G.replies={commentRepliesRenderer:m};this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
K,1,{commentThreadRenderer:G})}}}};
_.P.replaceBackstagePostAction=function(G){var c=this.get("replaceBackstagePostAction.itemId",G);if(c){c=this.postIdToIndices(c);for(var I=0;I<c.length;I++){var R=c[I];if(R<0)break;var Z=this.getPostRendererType(R),K=this.get("replaceBackstagePostAction.renderer."+Z,G);if(!K&&Z!=="sharedPostRenderer")break;var m=!1;K||(m=!0,K=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",G));if(!K)break;var a={};m?(_.MC(a,KB9,K),this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
a)):(_.MC(a,new _.vS(Z),K),this.set("data.contents."+R+".backstagePostThreadRenderer.post",a))}}};
_.P.replaceBackstageReplyAction=function(G){var c=this.get("replaceBackstageReplyAction.replyId",G),I=this.get("replaceBackstageReplyAction.parentId",G);G=this.get("replaceBackstageReplyAction.renderer.commentRenderer",G);c&&G&&I&&this.setCreatorReply(I,G)};
_.P.removeCommentAction=function(G){var c=this.get("removeCommentAction.commentId",G);if(c){var I=this.get("removeCommentAction.parentCommentId",G);I&&this.get("removeCommentAction.isCreatorReply",G)?this.setCreatorReply(I,void 0):(I||(I=this.getParentPostId(c)),this.removeFromStream(c,I))}};
_.P.setCreatorReply=function(G,c){var I=this.getParentPostId(G);if(I){I=this.postIdToIndices(I);for(var R=0;R<I.length;R++){var Z=I[R];if(Z<0)break;var K=this.commentIdToIndex(G,Z,!1);if(K>=0){var m="data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+K;K=m+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";m+=".commentThreadRenderer.replies";c==void 0?(this.set(m,{}),this.set(K,!1)):(this.set(m,{commentRepliesRenderer:{teaserContents:[{commentRenderer:c}]}}),
this.set(m+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(K,!0))}K=this.commentIdToIndex(G,Z,!0);K>=0&&(K="data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+K,Z=K+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",K+=".commentThreadRenderer.replies",c==void 0?(this.set(K,{}),this.set(Z,!1)):(this.set(K,{commentRepliesRenderer:{teaserContents:[{commentRenderer:c}]}}),this.set(Z,!0)))}}};
_.P.removeFromStream=function(G,c){if(c){c=this.postIdToIndices(c);for(var I=0;I<c.length;I++){var R=c[I];if(R<0)break;var Z=this.commentIdToIndex(G,R,!1);Z>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Z,1);Z=this.commentIdToIndex(G,R,!0);Z>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Z,1);R="data.contents."+R+".backstagePostThreadRenderer.post.backstagePostRenderer";
Z=R+".backstageAttachment.pollRenderer.votedCommentId";this.get(Z)===G&&(this.set(Z,null),this.set(R+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(c=this.postIdToIndices(G).reverse(),I=0;I<c.length;I++){R=c[I];if(R<0)break;Z=this.getPostRendererType(R);var K=this.get("backstagePostThreadRenderer.post."+Z,this.data.contents[R]);K.postId===G?this.splice("data.contents",R,1):Z==="sharedPostRenderer"&&this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);K.scheduledPublishTimeSec&&_.ym(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.P.postIdToIndices=function(G){for(var c=[],I=0;I<this.data.contents.length;I++){var R=this.getPostRendererType(I);this.get("backstagePostThreadRenderer.post."+R+".postId",this.data.contents[I])===G&&c.push(I);if(R==="sharedPostRenderer"){var Z=this.get("backstagePostThreadRenderer.post."+R+".originalPost.backstagePostRenderer.postId",this.data.contents[I]);R=this.get("backstagePostThreadRenderer.post."+R+".originalPost.postRenderer.postId",this.data.contents[I]);Z!==G&&R!==G||c.push(I)}}return c};
_.P.commentIdToIndex=function(G,c,I){if(c<0)return-1;var R,Z,K,m,a=_.D((R=this.data)==null?void 0:(Z=R.contents)==null?void 0:(K=Z[c])==null?void 0:(m=K.backstagePostThreadRenderer)==null?void 0:m.comments,Rle);return(c=I?a==null?void 0:a.teaserContents:a==null?void 0:a.contents)&&c.length?c.findIndex(function(O){return _.D(O,WBB).comment.commentRenderer.commentId===G}):-1};
_.P.getParentPostId=function(G){G=G.split(".");if(G[1])return G[0]};
_.P.getPostRendererType=function(G){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[G])?"sharedPostRenderer":"backstagePostRenderer"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],$g.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$g.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:_.v("enable_community_page_on_desktop")}),_.h("design:type",Boolean)],$g.prototype,"useSmallerPostContainer",void 0);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-backstage-items"})],$g);
_.B($g,"ytd-backstage-items",function(){if(T7r!==void 0)return T7r;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return T7r=
G},{mode:1});var O1d;var e0u={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},S9=function(){var G=_.J.apply(this,arguments)||this;G.disablePrescanVisibility=!0;G.canScheduleJobs=!0;G.engagementPanel=!1;G.hidePanelButton=!1;G.isWatchGrid=
!1;G.hasShownSubscribersOnlyDisclaimer=!1;G.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};G.TEST_ONLY=void 0;return G};
_.u(S9,_.J);_.P=S9.prototype;_.P.created=function(){this.initCommentsCsi_();_.v("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.v("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.P.contentsChanged_=function(){var G;(G=this.data)!=null&&G.contents&&this.tickForCommentsTimer_("cml")};
_.P.headerChanged_=function(){var G;(G=this.data)!=null&&G.header&&this.tickForCommentsTimer_("cmhl")};
_.P.initCommentsCsi_=function(){_.sC("wn_comments");var G=_.k0();G&&_.b8({clientScreenNonce:G},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.P.createCommentAction_=function(G){G=_.rx.unsafeClone(G);var c,I;if(G=(c=_.D(G,Ak9))==null?void 0:(I=c.contents)==null?void 0:I.commentThreadRenderer){var R,Z,K,m,a,O;!this.isBackstage&&((R=this.data)==null?0:(Z=R.header)==null?0:(K=Z.commentsHeaderRenderer)==null?0:(m=K.createRenderer)==null?0:(a=m.commentSimpleboxRenderer)==null?0:(O=a.zeroStep)==null?0:O.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var N,
q,w;this.isBackstage&&_.D((N=this.data)==null?void 0:(q=N.header)==null?void 0:(w=q.commentsHeaderRenderer)==null?void 0:w.zeroStateMessage,P3p)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(G)}};
_.P.doReplyInsert_=function(G,c,I,R){R?this.splice(G,R,0,c):this.push(G,c)};
_.P.getRepliesPath_=function(G){return"data.contents."+G+".commentThreadRenderer.replies"};
_.P.getRepliesContentsPath_=function(G,c){G=this.getRepliesPath_(G);return c?G+".commentRepliesRenderer.teaserContents":G+".commentRepliesRenderer.contents"};
_.P.showSubscribersOnlyDisclaimer_=function(G){(G=G.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&(_.ym(this.hostElement,"yt-open-popup-action",[G,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.P.createCommentReplyAction_=function(G){G=_.rx.unsafeClone(G);var c=_.D(G,$7k);if(G=c==null?void 0:c.contents){var I=this.commentIdToIndex_(c==null?void 0:c.parentCommentId);if(!(I<0)){var R=this.getRepliesPath_(I);if(this.get(R)){c=c.replyToCommentId;R=this.getRepliesContentsPath_(I,!1);if(this.get(R)){var Z=this.get(R).length,K=R+"."+(Z-1)+".continuationItemRenderer";this.get(K+".button")?(K=this.replyIdToIndex_(c,I,!1),this.doReplyInsert_(R,G,K,Z-1)):this.get(K)||(Z=this.replyIdToIndex_(c,I,
!1),this.doReplyInsert_(R,G,Z,null))}R=this.getRepliesContentsPath_(I,!0);this.get(R)?(I=this.replyIdToIndex_(c,I,!0),(!c||I>=0)&&this.doReplyInsert_(R,G,I,null)):this.set(R,[G])}else this.set(R,{commentRepliesRenderer:{teaserContents:[G]}})}}};
_.P.hideReportedCommentAction_=function(G){var c=_.D(G,Xwi);if(G=c==null?void 0:c.commentId)(c=this.get("parentCommentId",c))||(c=this.getParentCommentId_(G)),this.remove_(G,c)};
_.P.getParentCommentId_=function(G){G=G.split(".");if(G[1])return G[0]};
_.P.removeCommentAction_=function(G){var c=_.D(G,zle);if(G=c==null?void 0:c.commentId)c=(c==null?void 0:c.parentCommentId)||this.getParentCommentId_(G),this.remove_(G,c)};
_.P.pinCommentAction_=function(G){G=_.rx.unsafeClone(G);var c=_.D(G,VdN);c!=null&&c.commentId&&(G=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",G))&&(this.remove_(c.commentId),this.insert_(G,!0))};
_.P.unpinCommentAction_=function(G){G=_.rx.unsafeClone(G);G=_.D(G,ESB);if(G!=null&&G.commentId){var c,I,R=(c=G.actionResult)==null?void 0:(I=c.update)==null?void 0:I.commentThreadRenderer;R&&(this.remove_(G.commentId),this.insert_(R))}};
_.P.banAuthorAction_=function(G){var c=_.D(G,LBi);c!=null&&c.commentId&&(G=c.commentId,c=c.parentCommentId||this.getParentCommentId_(G),this.remove_(G,c))};
_.P.handleScrollToCommentElement_=function(G){this.hostElement.contains(G)&&(this.nearestScrollParent||(this.nearestScrollParent=fzq(G)),this.isCommentVisibleInScrollParent(G)||G.scrollIntoView({behavior:"smooth",block:"start"}))};
_.P.isCommentVisibleInScrollParent=function(G){if(!this.nearestScrollParent)return!1;G=G.getBoundingClientRect();var c=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return G.top>=c.top&&G.bottom<=c.bottom};
_.P.commentIdToIndex_=function(G){var c;return G&&(c=this.data)!=null&&c.contents?this.data.contents.findIndex(function(I){I=I.commentThreadRenderer;var R;return G===((I==null?void 0:I.commentViewModel)&&((R=_.D(I.commentViewModel,x7N))==null?void 0:R.commentId))}):-1};
_.P.insert_=function(G,c){c=c===void 0?!1:c;var I,R;if((I=this.data)==null?0:(R=I.contents)==null?0:R.some(function(K){return!!K.commentThreadRenderer}))for(I=0,R=this.data.contents.length;I<R;I++){var Z=this.data.contents[I].commentThreadRenderer;
if(e0u[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=e0u[Z.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){c&&e0u[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===e0u[Z.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",I,1,{commentThreadRenderer:G}):this.splice("data.contents",I,0,{commentThreadRenderer:G});break}}else this.set("data.contents",[{commentThreadRenderer:G}])};
_.P.doReplyRemove_=function(G,c,I){G=this.replyIdToIndex_(G,c,I);G<0||(c=this.getRepliesContentsPath_(c,I),this.splice(c,G,1))};
_.P.remove_=function(G,c){c=this.commentIdToIndex_(c);c<0?(c=this.commentIdToIndex_(G),c<0||this.splice("data.contents",c,1)):_.v("web_delhi_comment_threads")||(this.doReplyRemove_(G,c,!1),this.doReplyRemove_(G,c,!0))};
_.P.replyIdToIndex_=function(G,c,I){if(c<0)return-1;c=this.getRepliesContentsPath_(c,I);c=this.get(c);if(!c||!c.length)return-1;I=0;for(var R=c.length;I<R;I++){var Z=void 0,K=void 0;if(((Z=c[I])==null?void 0:(K=Z.commentViewModel)==null?void 0:K.commentId)===G)return I}return-1};
_.P.tickForCommentsTimer_=function(G){_.SW(G,void 0,"wn_comments")};
_.P.reloadComments_=function(G){G=_.D(G,rkB);_.D(G==null?void 0:G.command,_.fQ)&&_.Gs(this.hostElement,[G==null?void 0:G.command])};
_.Nh.Object.defineProperties(S9.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!!((G=this.data)==null?0:(c=G.header)==null?0:(I=c.commentsHeaderRenderer)==null?0:I.isBackstageContent)}}});
_.Nh.Object.defineProperties(S9,{template:{configurable:!0,enumerable:!0,get:function(){if(O1d===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);O1d=G}G=O1d;return G}}});
S9.prototype.showSubscribersOnlyDisclaimer_=S9.prototype.showSubscribersOnlyDisclaimer_;S9.prototype.headerChanged_=S9.prototype.headerChanged_;S9.prototype.contentsChanged_=S9.prototype.contentsChanged_;_.r([_.L(_.zQ),_.h("design:type",Object)],S9.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",Function)],S9.prototype,"ytPlayerListenerBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],S9.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],S9.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.header.commentsHeaderRenderer.isBackstageContent"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],S9.prototype,"isBackstage",null);
_.r([_.E(),_.h("design:type",Object)],S9.prototype,"disablePrescanVisibility",void 0);_.r([_.E(),_.h("design:type",Object)],S9.prototype,"canScheduleJobs",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],S9.prototype,"engagementPanel",void 0);_.r([_.E(),_.h("design:type",Object)],S9.prototype,"hidePanelButton",void 0);_.r([_.E(),_.h("design:type",Object)],S9.prototype,"isWatchGrid",void 0);_.r([_.E(),_.h("design:type",Object)],S9.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.r([_.wD("data.contents"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S9.prototype,"contentsChanged_",null);_.r([_.wD("data.header"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S9.prototype,"headerChanged_",null);_.r([_.qY("yt-show-subscribers-only-disclaimer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],S9.prototype,"showSubscribersOnlyDisclaimer_",null);
_.r([_.Jc({is:"ytd-comments"})],S9);var pL=function(){return _.D4.apply(this,arguments)||this};
_.u(pL,_.D4);_.P=pL.prototype;_.P.bindIf=function(G,c,I){return G?c:I};
_.P.bindIfDefined=function(G,c){return G!==void 0?G:c};
_.P.booleanString=function(G){return(!!G).toString()};
_.P.equals=function(){for(var G=_.Hy.apply(0,arguments),c=G[0],I=1;I<G.length;I++)if(c!=G[I])return!1;return!0};
_.P.isGreaterThan=function(G,c){return G>c};
_.P.isLessThan=function(G,c){return G<c};
_.P.logicalAND=function(){for(var G=_.Hy.apply(0,arguments),c=!!G[0],I=1;I<G.length;I++)c=c&&!!G[I];return c};
_.P.logicalOR=function(){for(var G=_.Hy.apply(0,arguments),c=!!G[0],I=1;I<G.length;I++)c=c||!!G[I];return c};
_.P.toBool=function(G){return!!G};
pL.prototype.toBool=pL.prototype.toBool;pL.prototype.logicalOR=pL.prototype.logicalOR;pL.prototype.logicalAND=pL.prototype.logicalAND;pL.prototype.isLessThan=pL.prototype.isLessThan;pL.prototype.isGreaterThan=pL.prototype.isGreaterThan;pL.prototype.equals=pL.prototype.equals;pL.prototype.booleanString=pL.prototype.booleanString;pL.prototype.bindIfDefined=pL.prototype.bindIfDefined;pL.prototype.bindIf=pL.prototype.bindIf;_.r([_.Um()],pL);_.N7W=[pL.prototype];var lW1;var qdu;var Ma=function(){return _.J.apply(this,arguments)||this};
_.u(Ma,_.J);Ma.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Ma.prototype.onBackIconTap_=function(){window.history.back()};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ma.prototype,"data",void 0);_.r([_.Em({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Ma);
_.B(Ma,"yt-header-with-back-renderer",function(){if(qdu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;lW1===void 0&&(lW1=document.createElement("template"));var R=lW1;I.call(c,R.content.cloneNode(!0),G.content.firstChild);qdu=G}G=qdu;return G},{mode:2});var wuH;var FWu;var VP=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(VP,_.J);_.P=VP.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G,this.setUrl())};
_.P.dataChanged=function(){var G=this;if(this.data){var c=this.setUrl();c&&_.FI({destination:window,iframe:this.iframe,origin:_.NFi(c.toString()),channelName:"yt-iframe",onMessage:function(I){(I=G.getCommunicationCommand(I.data))&&G.ytComponentBehavior.resolveCommand(I)},
onEstablished:function(){}})}};
_.P.setUrl=function(){if(this.data&&this.data.iframeUrl){var G=_.Cj(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(G)return _.IE(this.iframe,G),G}};
_.P.getCommunicationCommand=function(G){var c;if((c=this.data)!=null&&c.onCommunicationCommandsMap){c=this.data.onCommunicationCommandsMap.find(function(Z){return Z.key===G});
if(c==null?0:c.value)return c==null?void 0:c.value;try{var I=Kjk(_.Yp(G)),R=this.data.onCommunicationCommandsMap.find(function(Z){return Z.key===(I==null?void 0:I.getMethodName())});
if(R==null?0:R.value)return R==null?void 0:R.value}catch(Z){}}};
VP.prototype.dataChanged=VP.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],VP.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],VP.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],VP.prototype,"data",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],VP.prototype,"isDarkTheme",void 0);_.r([_.nH("#iframe"),_.h("design:type",HTMLIFrameElement)],VP.prototype,"iframe",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VP.prototype,"dataChanged",null);_.r([_.Em({is:"yt-iframe-renderer",disableElementRegistration:!0})],VP);
_.B(VP,"yt-iframe-renderer",function(){if(FWu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;wuH===void 0&&(wuH=document.createElement("template"));var R=wuH;I.call(c,R.content.cloneNode(!0),G.content.firstChild);FWu=G}G=FWu;return G},{mode:2});_.zT=function(G){_.JK.call(this);this.callback=G;this.bezier=new qgK(0,0,.4,0,.2,1,1,1);this.delay=new _.wc(this.next,window,this);this.JSC$17232_animating=!1;_.k9(this,this.delay)};
_.u(_.zT,_.JK);_.zT.prototype.isAnimating=function(){return this.JSC$17232_animating};
_.zT.prototype.start=function(G,c,I){this.config={from:G,to:c,duration:I,startTime:(0,_.Fa)()};this.JSC$17232_animating=!0;this.next()};
_.zT.prototype.stop=function(){this.delay.stop();this.JSC$17232_animating=!1;this.config=void 0};
_.zT.prototype.next=function(){if(this.config){var G=this.config,c=G.from,I=G.to,R=G.duration;G=G.startTime;var Z=(0,_.Fa)()-G;G=this.bezier;R=FLi(G,Z/R);if(R==0)G=G.y0;else if(R==1)G=G.y3;else{Z=fm(G.y0,G.y1,R);var K=fm(G.y1,G.y2,R);G=fm(G.y2,G.y3,R);Z=fm(Z,K,R);K=fm(K,G,R);G=fm(Z,K,R)}G=_.Be(G,0,1);this.callback(c+(I-c)*G);G<1?this.delay.start():this.JSC$17232_animating=!1}};_.E1=new _.De("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var nFW={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Dgu=function(G,c,I,R){_.JK.call(this);this.JSC$17243_miniAppId=G;this.localReleaseId=c;this.derivedDeviceInterface=I;this.isForeground=R;this.JSC$17243_playNonceResolver=new _.Te;this.playPingTimerId=NaN;this.playPingIntervalMs=_.DH("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.DH("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.v("enable_displaying_ppn");this.JSC$17243_miniAppClientDataProvider=_.wH().resolve(_.E1);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;vF0(this);var Z=setTimeout(function(){_.Ck(new _.iW("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17243_playNonceResolver.promise.then(function(){clearTimeout(Z)})};
_.u(Dgu,_.JK);var UgF=function(G,c){G.JSC$17243_playNonceResolver.resolve(c!=null?c:oQ(8));G.enableDisplayingPpn&&oFu(G).then(function(I){G.JSC$17243_miniAppClientDataProvider.clientData.set("post_play_nonce",I)})},oFu=function(G){return _.T(function(c){return c.nextAddress==1?c.yield(G.JSC$17243_playNonceResolver.promise,2):c.return(c.yieldResult)})},vF0=function(G){var c,I;
_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$17243_playNonceResolver.promise,2);c=R.yieldResult;I={miniAppInfo:{externalPostId:G.JSC$17243_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:c,derivedDeviceInterface:G.derivedDeviceInterface}};_.b8(I);_.Vp(R)})},b1r=function(G){G.state!==0?_.Ck(new _.iW("[MiniAppPlayLogger] recordPlayStart failed with state "+nFW[G.state])):(G.state=1,JF(G,"ma_cl"),Wx(G,"PLAY_EVENT_TYPE_PLAY_START"),ujH(G))},kru=function(G){G.isForeground=!1;
Wx(G,"PLAY_EVENT_TYPE_PLAY_PAUSE")},suu=function(G){G.state!==1&&G.state!==2?_.Ck(new _.iW("[MiniAppPlayLogger] recordPlayEnd failed with state "+nFW[G.state])):(G.state=3,window.clearInterval(G.playPingTimerId),G.playPingTimerId=NaN,Gkf(),Wx(G,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},LWF=function(G,c){G.state===2&&G.gameReady&&(G.firstClickRecorded?Date.now()-G.clickRecordedMs<G.playClickIntervalMs||(G.clickRecordedMs=Date.now(),Wx(G,"PLAY_EVENT_TYPE_PLAY_CLICK")):c&&(JF(G,"ma_fua"),Wx(G,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),G.firstClickRecorded=!0,G.clickRecordedMs=Date.now()))};
Dgu.prototype.logError=function(G){var c=this,I;_.T(function(R){if(R.nextAddress==1)return G.metadata.externalPostId=c.JSC$17243_miniAppId,I=G.metadata,R.yield(Promise.race([c.JSC$17243_playNonceResolver.promise,new Promise(function(Z){setTimeout(function(){Z("")},3E4)})]),2);
I.postPlayNonce=R.yieldResult;G.metadata.localReleaseId=c.localReleaseId;G.loggingError.level="WARNING";_.hg(G.loggingError,G.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:G.metadata});_.Vp(R)})};
var AdG=function(G,c,I,R){var Z,K,m,a,O,N;_.T(function(q){if(q.nextAddress==1)return q.yield(G.JSC$17243_playNonceResolver.promise,2);Z=q.yieldResult;K={externalPostId:G.JSC$17243_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:Z,sdkVersion:I,api:c};R!==void 0&&(K.networkRequestsMeasurement={networkRequests:_.wF(R,1),cachedRequests:_.wF(R,2),transferredBytes:_.wF(R,3)},(m=R)==null?0:_.A7(m,sA,6))&&(K.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((a=_.Dw(R,
sA,6))==null?void 0:BC(a,1))||"0",cacheHits:((O=_.Dw(R,sA,6))==null?void 0:BC(O,2))||"0",cachedBytes:((N=_.Dw(R,sA,6))==null?void 0:BC(N,3))||"0"});_.x7("miniAppSdkUsage",K);_.Vp(q)})},Sd7=function(G,c,I){var R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z;
_.T(function(t){if(t.nextAddress==1)return t.yield(G.JSC$17243_playNonceResolver.promise,2);R=t.yieldResult;Z={externalPostId:G.JSC$17243_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:R,sdkVersion:I,measurementWindow:{startTimestampMs:String(J7(c,1)),endTimestampMs:String(J7(c,2))},frameRate:{averageFrameTimeDeltaMs:WC(c,3),averageFrameIdleTimeMs:WC(c,4)}};_.A7(c,LV,5)&&(Z.networkRequests={networkRequests:(K=zE(c))==null?void 0:_.wF(K,1),cachedRequests:(m=zE(c))==null?void 0:_.wF(m,2),transferredBytes:(a=
zE(c))==null?void 0:_.wF(a,3),sameOriginStatusCodeToCounts:$gu((O=zE(c))==null?void 0:_.Jd8(O,4,void 0,tig,tig)),crossOriginStatusCodeToCounts:$gu((N=zE(c))==null?void 0:_.Jd8(N,5,void 0,tig,tig))},(q=zE(c))==null?0:_.A7(q,sA,6))&&(Z.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((w=zE(c))==null?void 0:(F=_.Dw(w,sA,6))==null?void 0:BC(F,1))||"0",cacheHits:((n=zE(c))==null?void 0:(U=_.Dw(n,sA,6))==null?void 0:BC(U,2))||"0",cachedBytes:((k=zE(c))==null?void 0:(p=_.Dw(k,sA,6))==
null?void 0:BC(p,3))||"0"});_.A7(c,ymk,7)&&(Z.gameCapture={averageFrameTimeDeltaMs:(M=_.Dw(c,ymk,7))==null?void 0:WC(M,1),averageFrameIdleTimeMs:(z=_.Dw(c,ymk,7))==null?void 0:WC(z,2)});_.x7("miniAppPerformanceMetrics",Z);_.Vp(t)})},pu$=function(G,c){var I,R;
return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$17243_playNonceResolver.promise,2);I=Z.yieldResult;R={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:G.JSC$17243_miniAppId,postPlayNonce:I,miniAppReleaseId:G.localReleaseId},derivedDeviceInterface:G.derivedDeviceInterface,adTriggerType:c,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.x7("miniAppAdEvent",R);_.Vp(Z)})};
Dgu.prototype.disposeInternal=function(){_.JK.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Wx=function(G,c,I,R){I=I===void 0?{}:I;R=R===void 0?!1:R;var Z,K,m,a;_.T(function(O){if(O.nextAddress==1)return Z=G.isForeground,K=G.beforeReady,O.yield(G.JSC$17243_playNonceResolver.promise,2);m=O.yieldResult;a={externalPostId:G.JSC$17243_miniAppId,localReleaseId:G.localReleaseId,derivedDeviceInterface:G.derivedDeviceInterface,postPlayNonce:m,type:c};I.sequenceGroup=m;a.playState=K?"PLAY_STATE_NOT_READY":Z?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.x7("miniAppPlayEvent",a,
I);R&&_.tg();_.Vp(O)})},JF=function(G,c){var I;
_.T(function(R){if(R.nextAddress==1)return I=(0,_.Fa)(),R.yield(G.JSC$17243_playNonceResolver.promise,2);_.LC(c,I);_.Vp(R)})},ujH=function(G){isNaN(G.playPingTimerId)&&(G.playPingTimerId=_.s2(function(){G.state!==1&&G.state!==2?_.Ck(new _.iW("[MiniAppPlayLogger] reportPlayPing failed with state "+nFW[G.state])):Wx(G,"PLAY_EVENT_TYPE_PLAY_PING")},G.playPingIntervalMs))},$gu=function(G){return Array.from(G.entries()).map(function(c){var I=_.Q(c);
c=I.next().value;I=I.next().value;return{key:c,value:I}})};var MGW=function(){},VGj=function(G,c){G.showMiniAppAdCommand=c.showMiniAppAdCommand;
G.isEmbeddedInWebview=c.isEmbeddedInWebview;G.playLogger=c.playLogger},EFr=function(G,c){var I;
return _.T(function(R){if(R.nextAddress==1){if(!G.showMiniAppAdCommand||!G.isEmbeddedInWebview)return R.return(z0g(G,c));G.adResolver=new _.Te;var Z=new QI;I=_.oz(Z,3,c);r8(G.showMiniAppAdCommand,zu2(I));return R.yield(G.adResolver.promise,2)}return R.return(R.yieldResult)})};
MGW.prototype.onAdFinished=function(G){G=AmN(G);var c;(c=this.adResolver)==null||c.resolve(G)};
var z0g=function(G,c){var I;return _.T(function(R){if(R.nextAddress==1)R=R.yield((I=G.playLogger)==null?void 0:pu$(I,CpC(c)),2);else{var Z=R.return;var K=new LD0;K=_.oz(K,1,2);R=Z.call(R,K)}return R})};var Jdr=new _.De("INNERTUBE_MANAGER_TOKEN");var WW7=function(){this.callbacks={}};
WW7.prototype.initialize=function(G){var c=this;this.callbacks=G;window.youtubewebview?window.youtubewebview.onmessage=function(I){i1d(c,I)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(I){i1d(c,I)})};
var i1d=function(G,c){if(c.data)try{var I=Kjk(c.data);if(_.Ud(_.Ly(I,1))!=null){var R=Aj9(_.iU(I,2));switch(I.getMethodName()){case "yt-mini-app-load-audio-state":var Z,K;(K=(Z=G.callbacks).onAudioStateLoaded)==null||K.call(Z,_.EH(R,VG(R,PE,1)));break;case "yt-mute-mini-app":var m,a;(a=(m=G.callbacks).onMuteMiniApp)==null||a.call(m);break;case "yt-unmute-mini-app":var O,N;(N=(O=G.callbacks).onUnmuteMiniApp)==null||N.call(O);break;case "yt-playable-exit":var q,w;(w=(q=G.callbacks).onExit)==null||w.call(q);
break;case "yt-post-play-nonce":var F,n;(n=(F=G.callbacks).onPostPlayNonceReceived)==null||n.call(F,rI(R,2,PE));break;case "yt-confirm-exit-mini-app":var U,k;(k=(U=G.callbacks).confirmExitMiniApp)==null||k.call(U);break;case "yt-confirm-exit-mini-app-edu":var p,M;(M=(p=G.callbacks).confirmExitMiniAppEdu)==null||M.call(p);break;case "yt-benchmarking-response":var z,t;(t=(z=G.callbacks).onNativeBenchmarkingMessageReceived)==null||t.call(z,rI(R,2,PE));break;case "yt-mini-app-load-3p-consent-state":var x,
C;(C=(x=G.callbacks).multiplayer3pAckStateLoaded)==null||C.call(x,_.EH(R,VG(R,PE,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var H,g;(g=(H=G.callbacks).exitMiniAppSeenStateLoaded)==null||g.call(H,_.EH(R,VG(R,PE,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var QO,T8;(T8=(QO=G.callbacks).onNavigateToNewMiniApp)==null||T8.call(QO);break;case "yt-game-data-available":var kp,FB;(FB=(kp=G.callbacks).onGameDataAvailable)==null||FB.call(kp,rI(R,2,PE));break;case "yt-pause-mini-app":var oq,
Wr;(Wr=(oq=G.callbacks).onPauseMiniApp)==null||Wr.call(oq);break;case "yt-resume-mini-app":var iT,z8;(z8=(iT=G.callbacks).onResumeMiniApp)==null||z8.call(iT);break;case "yt-playable-ad-finished":var GV,ei;(ei=(GV=G.callbacks).onAdFinished)==null||ei.call(GV,rI(R,2,PE))}}else _.Ck(Error("Vh"))}catch(Hr){_.hg(Error("Wh"))}else _.Ck(Error("Xh"))};var XFA=function(G){this.rpcErrorCode=G};var iQ=function(G,c,I){this.intervalMs=G;this.apiFunc=c;this.type=I;this.schedulerReady=!0};
iQ.prototype.call=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1){if(c.type!==1&&G===c.cachedValue)return R.return();c.pendingApiRequestResolver||(c.pendingApiRequestResolver=new _.Te);I=c.pendingApiRequestResolver.promise;c.cachedValue=G;return R.yield(fW0(c),2)}return R.return(I)})};
iQ.prototype.flush=function(G){G=G===void 0?!1:G;var c=this;return _.T(function(I){return c.cachedValue===void 0?I.return():I.yield(c.apiFunc(c.cachedValue,G),0)})};
var fW0=function(G){var c,I,R;return _.T(function(Z){switch(Z.nextAddress){case 1:if(!G.schedulerReady||!G.pendingApiRequestResolver)return Z.return();G.schedulerReady=!1;c=G.pendingApiRequestResolver;G.pendingApiRequestResolver=void 0;_.s9(Z,2);if(G.cachedValue===void 0){Z.jumpTo(4);break}return Z.yield(G.apiFunc(G.cachedValue),5);case 5:I=Z.yieldResult,c.resolve(I);case 4:_.Pl(Z,3);break;case 2:R=_.M3(Z),c.reject(R);case 3:setTimeout(function(){return _.T(function(K){G.schedulerReady=!0;return K.yield(fW0(G),
0)})},G.intervalMs),_.Vp(Z)}})};var YWq=window.location.origin+"/miniapp_cloudsaves",y3b=[400,401],B7r=_.DH("cloud_save_game_data_rate_limit_ms",3E3),juW=function(G){var c=this;this.JSC$17287_miniAppId=G;this.loadAttempts=0;this.cloudSaveIntervalMs=B7r;this.initialDownloadDataSucceeded=!1;this.JSC$17287_playNonceResolver=new _.Te;this.scottyUploadRateLimiter=new iQ(this.cloudSaveIntervalMs,function(I,R){return c.uploadData(I,R)},2);
this.downloadDataPromise=rd7(this);this.downloadDataPromise.then(function(){c.initialDownloadDataSucceeded=!0}).catch(function(){})},xgu=function(G,c){c.then(function(I){return G.JSC$17287_playNonceResolver.resolve(I)})},tG1=function(G){return _.T(function(c){return G.cachedData===void 0?c.return(G.downloadDataPromise):c.return(G.cachedData)})},h0u=function(G,c){return _.T(function(I){G.cachedData=c;
if(!G.initialDownloadDataSucceeded)throw Error("Yh");return I.yield(G.scottyUploadRateLimiter.call(c),0)})},dgd=function(){return new Promise(function(G){setTimeout(G,1E3,"")})},CHj=function(G,c){var I,R;
return _.T(function(Z){if(Z.nextAddress==1)return I=G.JSC$17287_miniAppId,Z.yield(Promise.race([G.JSC$17287_playNonceResolver.promise,dgd()]),2);R={"X-YouTube-MiniAppId":I,"X-YouTube-PostPlayNonce":Z.yieldResult};"DELEGATED_SESSION_ID"in _.dK&&vDi(c,R);return Z.return(R)})};
juW.prototype.uploadData=function(G,c){c=c===void 0?!1:c;var I=this;return _.T(function(R){return Hnb()?_.v("enable_cloud_save_error_popup_after_retry")?R.return(new Promise(function(Z,K){var m,a,O,N,q;return _.T(function(w){switch(w.nextAddress){case 1:m=0,a=!0,N=O=null;case 2:if(!(a&&m++<2)){w.jumpTo(4);break}_.s9(w,5);return w.yield(H1u(I,G,c),7);case 7:O=w.yieldResult;a=O.ok?!1:!y3b.includes(O.status);_.Pl(w,2);break;case 5:N=q=_.M3(w);a=gIp(N);w.jumpTo(2);break;case 4:O?O.ok?(fL(I,B7r),Z()):
(fL(I,I.cloudSaveIntervalMs*2),K(Error("Zh`"+String(O.status),{cause:{rpcErrorCode:O.status}}))):(fL(I,I.cloudSaveIntervalMs*2),K(N||Error("$h"))),_.Vp(w)}})})):R.return(new Promise(function(Z,K){var m,a;
return _.T(function(O){if(O.nextAddress==1){if(I.JSC$17287_miniAppId==="")return K(Error("ai")),O.return();_.s9(O,2);return O.yield(H1u(I,G,c),4)}if(O.nextAddress!=2)return m=O.yieldResult,m.ok?(fL(I,B7r),Z()):(fL(I,I.cloudSaveIntervalMs*2),K(Error("Zh`"+String(m.status),{cause:{rpcErrorCode:m.status}}))),_.Pl(O,0);a=_.M3(O);fL(I,I.cloudSaveIntervalMs*2);K(a);_.Vp(O)})})):R.return()})};
var H1u=function(G,c,I){I=I===void 0?!1:I;var R,Z,K;return _.T(function(m){if(m.nextAddress==1)return R=_.zr((new TextEncoder).encode(c)),Z=GJf(),m.yield(CHj(G,Z),2);K=m.yieldResult;return m.return(fetch(Z,{method:"POST",body:new Blob([R]),headers:K,keepalive:I}))})},rd7=function(G){var c,I;
return _.T(function(R){if(R.nextAddress==1){if(!Hnb())return R.return("");if(G.JSC$17287_miniAppId==="")throw Error("ai");if(G.loadAttempts>2)return R.return(G.downloadDataPromise);_.s9(R,2);return R.yield(Xu$(G),4)}if(R.nextAddress!=2)return c=R.yieldResult,R.return(c);I=_.M3(R);if(gIp(I)&&++G.loadAttempts<2)return R.return(rd7(G));throw I;})},Xu$=function(G){var c,I,R,Z,K;
return _.T(function(m){switch(m.nextAddress){case 1:return _.s9(m,2),c=GJf(),m.yield(CHj(G,c),4);case 4:return I=m.yieldResult,m.yield(fetch(c,{method:"GET",headers:I}),5);case 5:return R=m.yieldResult,R.ok?m.yield(R.text(),6):m.return(Promise.reject(Error("bi`"+String(R.status),{cause:new XFA(R.status)})));case 6:return Z=m.yieldResult,m.return((new TextDecoder).decode(_.Yp(Z)));case 2:return K=_.M3(m),m.return(Promise.reject(K))}})},fL=function(G,c){G.cloudSaveIntervalMs=c;
G.scottyUploadRateLimiter.intervalMs=G.cloudSaveIntervalMs};
juW.prototype.flush=function(){var G=this;return _.T(function(c){return G.initialDownloadDataSucceeded?c.yield(G.scottyUploadRateLimiter.flush(!0),0):c.return()})};var ydr=Me(pV(1),$O(1)),gFW=Me(pV(1),$O(3)),Bx=function(G){this.callbacks=G};
_.P=Bx.prototype;_.P.onAudioToggled=function(G,c){(c===void 0||c)&&_.bu("yt-mini-app-is-audio-enabled",G,2592E3)};
_.P.onPause=function(){this.onAudioToggled(!1,!1)};
_.P.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.P.returnNativeBenchmarkingMessage=function(){};
_.P.sendGameData=function(){};
_.P.sendStartGameFrameCapture=function(){};
var cWO=function(G,c,I){this.callbacks=G;var R=this;this.sdkVersion=new _.Te;this.channel=new vNN(_.FI({destination:window,iframe:c,origin:(new URL(I.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Z=rv;var K=pV(5);var m=new WD0;m=_.xo(m,1,1E4);K=_.$N(K,4,hni,m);Z(R,K);R.onAudioToggled(R.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){R.sdkVersion.resolve("")},1E4)};
_.u(cWO,Bx);_.P=cWO.prototype;_.P.onAudioToggled=function(G,c){Bx.prototype.onAudioToggled.call(this,G,c===void 0?!0:c);c=rv;var I=pV(2),R=new EbK;G=_.DL(R,1,G);G=_.$N(I,3,hni,G);c(this,G)};
_.P.onPause=function(){Bx.prototype.onPause.call(this);rv(this,pV(3))};
_.P.onResume=function(){Bx.prototype.onResume.call(this);rv(this,pV(4))};
_.P.returnNativeBenchmarkingMessage=function(G){var c=rv,I=pV(6);var R=$O(_.A7(G,aK,1)?1:2);G=_.A7(G,aK,1)?G:null;R=_.$N(R,5,SM,G);c(this,Me(I,R))};
_.P.sendGameData=function(G){var c=rv,I=pV(7);G=_.$N(I,5,hni,G);c(this,G)};
_.P.sendStartGameFrameCapture=function(){rv(this,pV(9))};
var j9=function(G,c,I){var R,Z,K;return _.T(function(m){if(m.nextAddress==1)return R=G.callbacks,Z=R.onSdkCalled,K=c,m.yield(G.sdkVersion.promise,2);Z.call(R,K,m.yieldResult,I);_.Vp(m)})};
cWO.prototype.onMessage=function(){var G=this;return UNT(EA,function(c){var I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H,g,QO,T8,kp,FB,oq,Wr,iT,z8,GV,ei,Hr,v0,kK,pN,bH,n1,qf,hU,we,xK,UK,YK,en,de;return _.T(function(qk){switch(qk.nextAddress){case 1:if(!c4i(c.data))return _.Ck(Error("ci")),qk.return();I=_.fy(c.data,1);_.v("enable_iframe_message_get_type_via_fields")&&(R=c.data,I=Z=_.fy(R,1));switch(I){case 8:if(c.data.hasMetadata()){var FT=G.sdkVersion,ZW=FT.resolve;var yO=c.data.getMetadata();yO=_.iU(yO,
1);ZW.call(FT,yO);clearTimeout(G.sdkVersionTimeoutId)}break;case 6:return qk.jumpTo(2);case 16:if(!_.$o(c.data,H90,14,Jj))return qk.return();K=_.jg(c.data,H90,14,Jj);(a=(m=G.callbacks).onGameFrameReceived)==null||a.call(m,K);return qk.return();case 17:if(!_.$o(c.data,CKi,15,Jj))return qk.return();(N=(O=G.callbacks).onGameAudioReceived)==null||N.call(O,_.jg(c.data,CKi,15,Jj));return qk.return();case 1:if(FT=_.jg(c.data,B2B,2,Jj))switch(_.fy(FT,1)){case 1:G.callbacks.onFirstFrameReady();if(_.v("enable_network_request_logging_on_game_events")&&
_.A7(FT,LV,4)){j9(G,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Dw(FT,LV,4));break}j9(G,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(yO=(ZW=G.callbacks).onGameReady)==null||yO.call(ZW);if(_.v("enable_network_request_logging_on_game_events")&&_.A7(FT,LV,4)){j9(G,"MINI_APP_SDK_API_GAME_READY",_.Dw(FT,LV,4));break}j9(G,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.$o(FT,Aj,3,rm9))G.callbacks.onResourceLoaded(_.jg(FT,Aj,3,rm9))}return qk.return();case 3:return qk.jumpTo(3);case 4:return qk.jumpTo(4);
case 2:return qk.jumpTo(5);case 9:return qk.jumpTo(6);case 10:return G.callbacks.onClick(),qk.return();case 5:return qk.jumpTo(7);case 11:if(!_.$o(c.data,bY,9,Jj))return qk.return();q=_.jg(c.data,bY,9,Jj);(F=(w=G.callbacks).onBenchmarkingMessageReceived)==null||F.call(w,q);FT=c.reply;ZW=pV(1);yO=$O(1);var Iu=new bY;var wS=new Uint8Array(EK0(q,VG(q,ScN,6))|0);Iu=Ag(Iu,5,ScN,_.Mk(wS,!1));yO=_.$N(yO,5,SM,Iu);FT.call(c,Me(ZW,yO));return qk.return();case 12:return qk.jumpTo(8);case 13:return qk.jumpTo(9);
case 15:if(!_.v("enable_open_yt_content"))return c.reply(gFW),qk.return();if(!_.$o(c.data,dpB,12,Jj))return c.reply(Me(pV(1),$O(2))),qk.return();FT=_.jg(c.data,dpB,12,Jj);n=_.iU(FT,1);G.callbacks.onOpenYTContent(n);c.reply(ydr);return qk.return();case 14:return qk.jumpTo(10);default:return qk.return()}qk.jumpTo(0);break;case 2:if(!_.$o(c.data,Vf,5,Jj))return qk.return();ZW=c.data;FT=VG(ZW,Jj,5);ZW=ZW.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;U=B78(ZW,ZW[_.P0]|0,Vf,FT)||Vf[reg]||(Vf[reg]=
j0T(Vf));FT=_.lR(U,kO,1,_.qw());k=_.Q(FT);p=k.next();case 12:if(p.done){qk.jumpTo(14);break}M=p.value;z=new _.iW;z.level=_.fy(M,2)===1?"WARNING":"ERROR";t=RrU(M.getSource());return qk.yield(G.sdkVersion.promise,15);case 15:x={source:t,sdkVersion:qk.yieldResult};_.Pu(_.Ly(M,6))!=null?(z.message=M.getMessage(),z.stack=_.iU(M,5),x.sdkErrorType=ZvB(_.fy(M,6)),_.Pu(_.Ly(M,7))!=null&&(x.sdkApi=Ks8(_.fy(M,7)))):z.stack=void 0;H=C=void 0;(H=(C=G.callbacks).onError)==null||H.call(C,{loggingError:z,metadata:x});
p=k.next();qk.jumpTo(12);break;case 14:return qk.return();case 3:return _.s9(qk,16),FT=qk.yield,ZW=G.callbacks,yO=ZW.onSave,Iu=_.jg(c.data,Jm2,4,Jj),Iu=_.iU(Iu,1),FT.call(qk,yO.call(ZW,Iu),18);case 18:c.reply(ydr);_.Pl(qk,17);break;case 16:return g=_.M3(qk),QO=jh,T8=g,kp=G.callbacks,FB="MINI_APP_SDK_API_SAVE_DATA",qk.yield(G.sdkVersion.promise,19);case 19:QO(T8,kp,FB,qk.yieldResult),c.reply(gFW);case 17:return qk.yield(j9(G,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return qk.return();case 4:return _.s9(qk,
21),qk.yield(G.callbacks.onLoad(),23);case 23:oq=qk.yieldResult;FT=c.reply;ZW=pV(1);yO=$O(1);Iu=new Jm2;Iu=_.Eq(Iu,1,oq);yO=_.$N(yO,3,SM,Iu);FT.call(c,Me(ZW,yO));_.Pl(qk,22);break;case 21:return Wr=_.M3(qk),iT=jh,z8=Wr,GV=G.callbacks,ei="MINI_APP_SDK_API_LOAD_DATA",qk.yield(G.sdkVersion.promise,24);case 24:iT(z8,GV,ei,qk.yieldResult),c.reply(gFW);case 22:return qk.yield(j9(G,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return qk.return();case 5:_.s9(qk,26);G.callbacks.onSendHighScore(dF(_.jg(c.data,
Ycp,3,Jj).getValue()));c.reply(Me(pV(1),$O(1)));_.Pl(qk,27);break;case 26:return Hr=_.M3(qk),v0=jh,kK=Hr,pN=G.callbacks,bH="MINI_APP_SDK_API_SEND_SCORE",qk.yield(G.sdkVersion.promise,28);case 28:v0(kK,pN,bH,qk.yieldResult),c.reply(gFW);case 27:return qk.yield(j9(G,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return qk.return();case 6:if(!_.$o(c.data,G0B,8,Jj)){qk.jumpTo(30);break}FT=qk.yield;ZW=_.jg(c.data,G0B,8,Jj);ZW=_.fy(ZW,1);return FT.call(qk,j9(G,Ks8(ZW)),30);case 30:return qk.return();case 7:return FT=
c.reply,ZW=pV(1),yO=$O(1),Iu=G.callbacks.getLanguage(),yO=Ag(yO,4,SM,DW(Iu)),FT.call(c,Me(ZW,yO)),qk.yield(j9(G,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return qk.return();case 8:if(!_.$o(c.data,gbi,10,Jj))return qk.return();n1=_.jg(c.data,gbi,10,Jj);qf=G.callbacks;hU=qf.onSdkPerformanceUpdate;return qk.yield(G.sdkVersion.promise,33);case 33:return hU.call(qf,n1,qk.yieldResult),qk.return();case 9:FT=c.data;ZW=VG(FT,Jj,11);if(_.Ud(_.Ly(FT,ZW))==null)return c.reply(Me(pV(1),$O(2))),qk.return();
we=rI(c.data,11,Jj);G.callbacks.onShareInviteCode(we);c.reply(ydr);return qk.yield(j9(G,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return qk.return();case 10:if(_.$o(c.data,znN,13,Jj)){qk.jumpTo(35);break}return qk.yield(G.callbacks.onShowMiniAppAd(2),36);case 36:return xK=qk.yieldResult,c.reply(Me(pV(1),xpK(xK))),qk.yield(j9(G,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return qk.return();case 35:FT=_.jg(c.data,znN,13,Jj);a:switch(_.fy(FT,1)){case 1:FT={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:FT={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:FT={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}UK=FT;YK=UK.adType;en=UK.sdkApi;FT=qk.yield;ZW=G.callbacks;yO=ZW.onShowMiniAppAd;Iu=_.jg(c.data,znN,13,Jj);Iu=_.iU(Iu,2);return FT.call(qk,yO.call(ZW,YK,Iu||void 0),38);case 38:return de=qk.yieldResult,c.reply(Me(pV(1),xpK(de))),qk.yield(j9(G,en),39);case 39:return qk.return()}})})};
var rv=function(G,c){_.T(function(I){G.channel.send(c);_.Vp(I)})},xP=function(G,c,I){this.callbacks=G;
var R=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;G=PaT(c,(new URL(I.toString())).origin);this.gameSnacks=new EN2(G);this.gameSnacks.page.onReady(function(){R.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){R.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Z,K;(K=(Z=R.callbacks).onGameReady)==null||K.call(Z)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Z,K){try{R.callbacks.onSendHighScore(K)}catch(m){jh(m,R.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Z,K){var m;return _.T(function(a){if(a.nextAddress==1)return _.s9(a,2),a.yield(R.callbacks.onSave(R.decoder.decode(K)),4);if(a.nextAddress!=2)return _.Pl(a,0);m=_.M3(a);jh(m,R.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return a.return()})});
this.gameSnacks.storage.onLoad(function(){var Z,K;return _.T(function(m){if(m.nextAddress==1)return _.s9(m,2),m.yield(R.callbacks.onLoad(),4);if(m.nextAddress!=2)return Z=m.yieldResult,m.return(R.encoder.encode(Z));K=_.M3(m);jh(K,R.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return m.return(R.encoder.encode(""))})});
this.gameSnacks.init()};
_.u(xP,Bx);xP.prototype.onAudioToggled=function(G,c){Bx.prototype.onAudioToggled.call(this,G,c===void 0?!0:c);var I;(I=this.gameSnacks)==null||I.audio.update(G)};
xP.prototype.onPause=function(){Bx.prototype.onPause.call(this);var G;(G=this.gameSnacks)==null||G.game.pause()};
xP.prototype.onResume=function(){Bx.prototype.onResume.call(this);var G;(G=this.gameSnacks)==null||G.game.resume()};var Ydd=PLb,G6F=_.W(function(G){var c=G.data;var I=G.loadingProgress;var R=G.forPaused;G=_.Q(_.ks("",void 0,"LYYTdd"));var Z=G.next().value,K=G.next().value;G=_.Q(_.ks(!1,void 0,"K0waae"));var m=G.next().value,a=G.next().value,O=[],N=function(){return"transform: scaleX("+(_.dN(I)||0)+")"},q=null,w=function(){return c()&&q!==null&&q!==void 0?q:q=c().showAnniversaryAnimation?6:Ydd()};
_.xs(function(){var k;if(c().timeOutMessages&&((k=c().timeOutMessages)==null?0:k.length)){q=null;k=_.Q(O);for(var p=k.next();!p.done;p=k.next())clearTimeout(p.value);O.length=0;QF0(c().timeOutMessages,O,K,a)}},"BNu9j");
var F=function(){return!!c().persistentErrorMessageTitle},n=function(){return I!==void 0},U=function(){return c().title};
return _.e("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.e("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.e("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.e("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var k,p=(k=c().backgroundImage)==null?void 0:k.sources,M;return(p==null?0:p.length)?"background-image: url("+((M=p[0])==null?void 0:M.url)+")":""}}),_.e("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.e(_.l,{cond:function(){return!F()&&!(R==null?0:R())},
then:function(){var k={};return _.e("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.e("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.e(_.XX,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+w()},
data:function(){var p="loading_animation_"+w();return{animationConfig:{name:p,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+p+".json",loop:!0,autoplay:!0}}}})),_.e("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.e(_.l,{cond:U,
then:function(){return _.e("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},U)}}),_.e("p",{class:_.O3("miniAppSplashScreenViewModelTimeoutMessage",(k.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return m()},k)),
"aria-live":"polite"},Z),_.e(_.l,{cond:n,then:function(){return _.e("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.e("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:N}))}})))}}),_.e(_.l,{cond:F,
then:function(){return _.e("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.e("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return c().persistentErrorMessageTitle}),_.e(_.l,{cond:function(){return!!c().persistentErrorMessageDescription},
then:function(){return _.e("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return c().persistentErrorMessageDescription})}}))}}),_.e(_.l,{cond:R,
then:function(){return _.e("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.e("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.e("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},U))}})))},"Qf");var czH=new _.De("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var IJG=OG;OG=function(G){function c(I){if(I){var R,Z;(R=I.__spec)==null||(Z=R.didUnmount)==null||Z.call(R);for(R=0;R<I.childNodes.length;R++)c(I.childNodes[R])}}
IJG==null||IJG(G);Sk(function(){for(var I=0;I<G.length;I++)c(G[I])})};var Rfu=_.W(function(G){var c=G.data;var I=G.score;var R=G.formattedScore;var Z=G.onScoreChanged;var K=G.isEmbeddedInWebview;var m=_.Op("yt-mini-app-score-button-view-model"),a=function(){var n;return _.D(c==null?void 0:(n=c())==null?void 0:n.buttonViewModel,_.uv)},O=function(){var n;
return(I==null?void 0:I())||Number(c==null?void 0:(n=c())==null?void 0:n.lastScore)||0},N=function(){var n;
return(R==null?void 0:R())||((n=a())==null?void 0:n.title)||""},q,w=1;
if(G=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))G=Number(G),w=isNaN(G)?1:G/100;_.xs(function(){Z==null||Z(O());var n;var U=_.WI((n=a())==null?void 0:n.onTap);if(U){n=_.D(U,FON);var k,p,M;n=_.D(n==null?void 0:(k=n.panelLoadingStrategy)==null?void 0:(p=k.inlineContent)==null?void 0:(M=p.dialogViewModel)==null?void 0:M.customContent,EOT)}else n=void 0;if(k=n)k.score=N()},"Aekez");
G=_.Nx(function(){var n,U,k=c==null?void 0:(n=c())==null?void 0:(U=n.loggingDirectives)==null?void 0:U.trackingParams;k&&_.yI(_.wH().resolve(_.PQ),k);return!1});
_.tI(function(){if(m.value){var n=m.value.querySelector("button"),U=a();n&&U&&mQg(n,U);_.lx("yt-share-playable-with-high-score",function(){var k=O().toString(),p=c==null?void 0:c().onShareHighScoreCommand,M=c==null?void 0:c().highScoreShareClientParamIdentifier,z=K==null?void 0:K();p&&(z?(M=new ZI0,k=_.Eq(M,2,k),r8(p,k.JSC$12695_serializeBinary())):M&&(_.wH().resolve(czH).clientParams.set(M,{miniAppClientParams:{highScore:k}}),jZO(p,!1)))})}});
var F=function(){var n=a();n&&(I==null?0:I())&&n.accessibilityText&&(n.accessibilityText=n.accessibilityText.replace(q,N()));q=N();return{numberValue:O(),numberText:N(),heightPx:36,fontSizeMultiplier:w,shouldAnimate:!(I==null||!I())&&!0}};
return _.e("yt-mini-app-score-button-view-model",{class:function(){var n={};return _.VK("miniAppScoreButtonViewModelHost",(n.miniAppScoreButtonViewModelIsVisible=O()!==0,n))},
el:m,"on:click":G},UtC(!1,function(){return _.e("span",{style:"display:none;"},O)}),_.e(_.sN,{data:function(){var n;
return c==null?void 0:(n=c())==null?void 0:n.buttonViewModel}},{buttonViewModel:function(n){return _.e(_.BR,{data:n.data,
animatedTextProps:F})}}))},"Sf");var mN7=_.W(function(G){var c,I=(c=_.ka("yt-mini-app-is-theater-mode-enabled"))!=null?c:!1,R=_.v("enable_playable_container_save_button"),Z=_.v("enable_play_next_destination_page_in_toolbar");c={};return _.e("ytm-mini-app-top-bar-view-model",null,_.e("div",{class:_.O3("yt-mini-app-top-bar-view-model",(c["yt-mini-app-top-bar-view-model--mobile"]=!1,c["yt-mini-app-top-bar-view-model--desktop"]=!0,c))},_.e("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.e(_.l,{cond:function(){var K;return!!G.data().backButtonEdu&&
!((K=G.isExitMiniAppSeen)==null?0:K.call(G))},
then:function(){return _.e(_.sN,{data:function(){return G.data().backButtonEdu}},{buttonViewModel:_.BR})},
else:function(){return _.e(_.sN,{data:function(){return G.data().backButton}},{buttonViewModel:_.BR})}}),_.e(_.l,{cond:function(){return G.data().viewAllButton&&!0},
then:function(){return _.e(_.sN,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.BR})}}),_.e(_.l,{cond:function(){return G.data().title&&!0},
then:function(){return _.e("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return G.data().title})}})),_.e("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.e(_.l,{cond:function(){var K;
return(K=G.isDesktopPlayPage)==null?void 0:K.call(G)},
then:function(){return _.e(_.FG,null,_.e(ZGu,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview}),_.e(KoG,{enableSaveButton:function(){return _.dN(R)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.e(P5H,{menuButton:function(){return G.data().menuButton}}))},
else:function(){return _.e(_.l,{cond:function(){return!1},
then:function(){return _.e(_.sN,{data:function(){return G.data().playPageButton}},{buttonViewModel:function(K){return _.e(_.BR,{data:K.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.e(ZGu,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview})}})}})),_.e("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.e(_.sN,{data:function(){return G.data().muteButton}},{toggleButtonViewModel:function(K){var m=K.data;
return _.e(_.m8,{data:function(){var a,O;return Object.assign({},m(),{isToggled:(O=(a=G.isAudioEnabled)==null?void 0:a.call(G))!=null?O:!0})},
onToggle:G.onAudioToggled,useOutlinedIcon:!0})}}),_.e(_.sN,{data:function(){return G.data().theatreModeButton}},{toggleButtonViewModel:function(K){var m=K.data;
return _.e("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.e(_.m8,{data:function(){return Object.assign({},m(),{isToggled:I})},
useOutlinedIcon:!0}))}}),_.e(QR0,{fullscreenButton:function(){return G.data().fullscreenButton}}),_.e(_.l,{cond:function(){return _.dN(Z)&&G.data().viewAllButton&&!1},
then:function(){return _.e(_.sN,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.BR})}}),_.e(_.l,{cond:function(){var K;
return!((K=G.isDesktopPlayPage)==null?0:K.call(G))},
then:function(){return _.e(_.FG,null,_.e(KoG,{enableSaveButton:function(){return _.dN(R)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.e(P5H,{menuButton:function(){return G.data().menuButton}}))}}))))},"Tf");
mN7.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var P5H=_.W(function(G){return _.e(_.sN,{data:G.menuButton},{buttonViewModel:_.BR})},"Uf"),KoG=_.W(function(G){var c=G.enableSaveButton;
var I=G.saveButton;var R=G.isSaved;var Z=G.onSaveToggled;return _.e(_.l,{cond:function(){return c()&&!(I==null||!I())},
then:function(){return _.e(_.sN,{data:function(){var K=_.D(I==null?void 0:I(),_.kh),m;return{toggleButtonViewModel:Object.assign({},K,{isToggled:(m=R==null?void 0:R())!=null?m:!(K==null||!K.isToggled)})}}},{toggleButtonViewModel:function(K){return _.e(_.m8,{data:K.data,
onToggle:Z})}})}})},"Vf"),ZGu=_.W(function(G){var c=G.highScoreButton;
var I=G.score;var R=G.formattedScore;var Z=G.onScoreChanged;var K=G.isEmbeddedInWebview;return _.e(_.sN,{data:c},{miniAppScoreButtonViewModel:function(m){return _.e(Rfu,{data:m.data,score:I,formattedScore:R,onScoreChanged:Z,isEmbeddedInWebview:K})}})},"Wf"),QR0=_.W(function(G){G=G.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.e(_.FG,null):_.e(_.sN,{data:G},{buttonViewModel:_.BR})},"Xf");_.aJd=_.W(function(G){var c=G.data;var I=G.extractOverlay;G={};return _.e("player-disclosure-view-model",{class:_.O3("ytwPlayerDisclosureViewModelHost",(G.ytwPlayerDisclosureViewModelExtractOverlay=function(){return I==null?void 0:I()},G))},_.e(_.Er,{command:function(){return c().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.e(_.l,{cond:function(){return c().iconName},
then:function(R){return _.e(_.F6,{icon:R})}}),_.e(_.l,{cond:function(){return c().iconName?void 0:c().image},
then:function(R){return _.e(_.yc,{data:R,alt:function(){return c().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.e(_.l,{cond:function(){return c().title||c().secondaryText},
then:function(){return _.e("div",null,_.e("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return c().title}),_.e("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return c().text}),_.e(_.l,{cond:function(){return c().secondaryText},
then:function(R){return _.e(_.FG,null,_.e("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.e("div",{class:"ytwPlayerDisclosureViewModelText"},R))}}))},
else:function(){return _.e("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return c().text})}}),_.e(_.l,{cond:function(){return c().showEndChevron},
then:function(){return _.e(_.F6,{icon:"CHEVRON_RIGHT"})}})))},"Yf");_.TSd=new _.De("DESKTOP_CURRENT_PAGE");var wyj=_.W(function(G){var c=G.data;var I=_.v("force_active_time_logging_webview"),R=!1,Z=new WW7,K=void 0,m=void 0,a=_.wH().resolve(Jdr),O=new MGW,N=void 0,q=void 0,w=[],F=void 0,n=void 0,U=!1,k=!1,p=!1,M=!1,z=new _.Te,t=_.wH().resolve(czH),x=_.wH().resolve(_.E1),C=_.wH().resolve(_.qR(Iv)),H,g=(H=_.wH().resolve(_.qR(_.TSd)))==null?void 0:H.getCurrentPage(),QO=!1,T8=0,kp=function(I0){I0.preventDefault();return I0.returnValue=""},FB,oq=_.Q(_.ks(!((FB=_.ka("yt-mini-app-is-audio-enabled"))!=null&&!FB),
void 0,"wBOrKf")),Wr=oq.next().value,iT=oq.next().value,z8,GV=_.Q(_.ks(!((z8=_.ka("exit-mini-app-seen-state"))==null||!z8),void 0,"a2xYg")),ei=GV.next().value,Hr=GV.next().value,v0=_.Q(_.ks(!1,void 0,"i8BH4")),kK=v0.next().value,pN=v0.next().value,bH=_.Q(_.ks(void 0,void 0,"UGqFqe")),n1=bH.next().value,qf=bH.next().value,hU=_.Q(_.ks(void 0,void 0,"jrV5Ob")),we=hU.next().value,xK=hU.next().value,UK=_.Q(_.ks(!0,void 0,"u5JS3d")),YK=UK.next().value,en=UK.next().value,de=_.Q(_.ks(!1,void 0,"MjPdB")),
qk=de.next().value,FT=de.next().value,ZW=_.Q(_.ks(!1,void 0,"nT6Yxf")),yO=ZW.next().value,Iu=ZW.next().value,wS=_.Q(_.ks(void 0,void 0,"nkG6")),IR=wS.next().value,vu=wS.next().value,xF=_.Q(_.ks(0,void 0,"KH4u0b")),eT=xF.next().value,v6=xF.next().value,he=_.mX("mini-app-container-view-model"),L1=_.Q(_.ks(!1,void 0,"NsE4qb")),Q$=L1.next().value,CS=L1.next().value,L8=function(){return c().isEmbeddedInWebview},MS=function(){return c().hasPlayNextShelf};
_.xc(function(){var I0,ou=(I0=_.D(c().contentDisclosure,gr0))==null?void 0:I0.animationParams;if((ou==null?0:ou.shouldHide)&&(ou==null?0:ou.hideDelaySecs)){var SG=setTimeout(function(){CS(!0)},ou.hideDelaySecs*1E3);
_.ty(function(){clearTimeout(SG)})}});
_.lx("yt-page-type-changed",function(I0){if(_.v("enable_is_mini_app_page_active_bugfix"))I0.detail.newPageSubtype==="mini_app"&&I0.detail.newPageType==="ytd-browse"||!YK()||wL();else if(I0=_.G$()==="mini_app",I0!==YK())if(en(I0),I0){var ou;I0=(ou=c().playableId)==null?void 0:ou.toString();I0!==void 0&&window.location.href.includes(I0)&&!k&&(M=!0,Ee(),ia.value&&Et(ia.value))}else I0||wL()});
_.lx("yt-action",function(I0){I0.detail.actionName==="yt-engagement-panel-visible-changed"&&I0.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&I0.detail.args[2]==="PAmini_app_panel"&&wL();_.v("enable_is_mini_app_page_active_bugfix")?I0.detail.actionName==="yt-history-load"&&!YK()&&(g==null?0:g.active)?(en(!0),Ee(),ia.value&&Et(ia.value)):I0.detail.actionName==="yt-history-load"&&YK()&&!c().isEmbeddedInWebview&&u2():YK()&&I0.detail.actionName==="yt-history-load"&&(M?M=!1:c().isEmbeddedInWebview||
u2())});
_.ty(function(){P6()});
_.xs(function(){Ee()},"bzUf2c");
var Ee=function(){var I0=c().playableId,ou=c().localReleaseId,SG=c().derivedDeviceInterface;if(k)_.Ck(new _.iW("[MiniAppContainerViewModel] onEnter was called more than once"));else{k=!0;K=new Dgu(I0,ou,SG,document.visibilityState==="visible");b1r(K);m=new juW(I0);OGH(a,I0);VGj(O,{showMiniAppAdCommand:c().showMiniAppAdCommand,isEmbeddedInWebview:c().isEmbeddedInWebview,playLogger:K});ZpA()&&(n=document.body.style.backgroundColor,_.Yq(document.body,"background-color","black"));pb();nC();z=new _.Te;
if(c().isEmbeddedInWebview){if(I0=(new URLSearchParams(window.location.search)).get("postPlayNonce"))UgF(K,I0),QO=!0;Z.initialize({onAudioStateLoaded:function(RR){CA(RR)},
onMuteMiniApp:function(){CA(!1)},
onUnmuteMiniApp:function(){CA(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(RR){QO||(UgF(K,RR),QO=!0)},
confirmExitMiniApp:function(){var RR,xM,fS;return _.T(function(Gu){if(Gu.nextAddress==1)return c().confirmExitMiniAppCommand?Gu.yield(Promise.race([z.promise,Promise.resolve(!1)]),2):Gu.return();(RR=Gu.yieldResult)?!c().confirmExitMiniAppCommandEdu||(fS=(xM=ei)==null?void 0:xM())!=null&&fS?vd(c().confirmExitMiniAppCommand):(vd(c().confirmExitMiniAppCommandEdu),_.bu("exit-mini-app-seen-state","true",2592E6)):vd(c().closeMiniAppCommand);_.Vp(Gu)})},
onNativeBenchmarkingMessageReceived:function(RR){RR=Mj0(_.ivi(RR));if(_.$o(RR,_.iP,3,$p2)){var xM=_.jg(RR,_.iP,3,$p2),fS=xsB();var Gu=dF(fS.getSeconds())-dF(xM.getSeconds());xM=_.wF(fS,2)-_.wF(xM,2);Gu<0&&xM>0?(Gu+=1,xM-=1E9):Gu>0&&xM<0&&(--Gu,xM+=1E9);Gu=(new aK).setSeconds(Gu);Gu=_.G6(Gu,2,_.mW(xM),0);_.Az(RR,1,Gu)}var Tf;(Tf=q)==null||Tf.returnNativeBenchmarkingMessage(RR)},
multiplayer3pAckStateLoaded:function(RR){u2(RR)},
exitMiniAppSeenStateLoaded:function(RR){c().confirmExitMiniAppCommandEdu&&Hr(RR)},
onNavigateToNewMiniApp:function(){vd(c().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(RR){RR=new URLSearchParams(RR);var xM=void 0;RR.has("invite_code")&&(xM=new fh0,RR=RR.get("invite_code"),xM=_.Eq(xM,1,RR));if(RR=xM){var fS;(fS=q)==null||fS.sendGameData(RR)}},
onPauseMiniApp:function(){R=!0;AU()},
onResumeMiniApp:function(){R=!0;Br()},
onAdFinished:function(RR){O.onAdFinished(RR)}});
c().showMultiplayer3pConsentDialogCommand||z.resolve(!0);vd(c().onContainerReadyCommand)}else UgF(K),z.resolve(!0);xgu(m,oFu(K));oFu(K).then(function(RR){RR={miniAppPlayData:{postPlayNonce:RR}};var xM,fS=(xM=c().loggingDirectives)==null?void 0:xM.trackingParams;fS&&_.DP().stateChanged(fS,RR)});
I0=c().showSignInDialogCommand;!Hnb()&&I0&&(_.bu("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),vd(I0));c().confirmExitMiniAppCommand&&C&&(I0=BMr(c().confirmExitMiniAppCommand))&&(C.customConfirmationCommand=I0)}},P6=function(){n&&_.Yq(document.body,"background-color",n);
U=!1;F&&F.release();m.flush().catch(function(I0){_.Ck(I0)});
a.flush().catch(function(I0){_.Ck(I0)});
suu(K);MF();q=void 0;efd(t)},wL=function(){en(!1);
P6();pN(!1);vu(void 0);qf(void 0);xK(void 0);T8=0;v6(0);k=!1},AU=function(){var I0;
(I0=q)==null||I0.onPause();F&&F.release();m.flush().catch(function(ou){_.Ck(ou)});
a.flush().catch(function(ou){_.Ck(ou)});
kru(K);FT(!0)},Br=function(){var I0;
(I0=q)==null||I0.onResume();nC();I0=K;I0.isForeground=!0;Wx(I0,"PLAY_EVENT_TYPE_PLAY_RESUME");FT(!1)},CA=function(I0){var ou;
(ou=q)==null||ou.onAudioToggled(I0);iT(I0)},u2=function(I0){c().showMultiplayer3pConsentDialogCommand&&(c().isEmbeddedInWebview&&I0!==void 0&&z.resolve(I0),!I0&&_.G$()==="mini_app"&&vd(c().showMultiplayer3pConsentDialogCommand))},uH=function(){var I0,ou,SG,RR;
return _.T(function(xM){if(xM.nextAddress==1){!c().isLivestream||c().disableVideoCapture||(I0=q)!=null&&I0.sendStartGameFrameCapture();ou=(new URL(window.location.href)).searchParams;if(ou.has("invite_code")){var fS=new fh0,Gu=ou.get("invite_code");SG=_.Eq(fS,1,Gu);(RR=q)==null||RR.sendGameData(SG)}kK()||(pN(!0),fS=K,fS.state!==1?_.Ck(new _.iW("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+nFW[fS.state])):(_.U2("mini_app_ids_without_game_ready").includes(fS.JSC$17243_miniAppId)&&(fS.gameReady=
!0),fS.state=2,fS.beforeReady=!1,JF(fS,"ma_ffr"),Wx(fS,"PLAY_EVENT_TYPE_PLAY_READY")));return xM.yield(z.promise,2)}vd(c().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();c().isEmbeddedInWebview||u2();_.Vp(xM)})},ET=function(){var I0=K;
I0.gameReady=!0;JF(I0,"ma_gr")},Mg=function(I0){var ou;
return _.T(function(SG){if(SG.nextAddress==1)return _.s9(SG,2),SG.yield(h0u(m,I0),4);if(SG.nextAddress!=2)return _.Pl(SG,0);ou=_.M3(SG);vd(c().showSavingErrorPopupCommand);throw ou;})},$K=function(){var I0,ou;
return _.T(function(SG){if(SG.nextAddress==1)return _.s9(SG,2),SG.yield(tG1(m),4);if(SG.nextAddress!=2)return I0=SG.yieldResult,SG.return(I0);ou=_.M3(SG);vd(c().showLoadingErrorDialogCommand);throw ou;})},sK=function(I0){K.logError(I0)},d7=function(I0,ou,SG){AdG(K,I0,ou,SG)},xN=function(I0,ou){Sd7(K,I0,ou)},Dp=function(){!I&&c().isEmbeddedInWebview||_.qb();
LWF(K,!0);U||(window.addEventListener("beforeunload",kp,{capture:!0}),U=!0)},gx=function(I0){var ou,SG,RR,xM,fS,Gu,Tf;
return _.T(function(rm){if(rm.nextAddress==1)return a&&(!N||N<I0)&&I0>0?rm.yield(NS0(a,I0),3):rm.jumpTo(0);ou=rm.yieldResult;SG=_.Q(ou);RR=SG.next().value;xM=SG.next().value;fS=RR;Gu=xM;((Tf=fS)==null?0:Tf.displayString)&&Gu&&(qf(Gu),xK(fS.displayString));_.Vp(rm)})},D$=function(I0){var ou=c().onBenchmarkingMessageReceivedCommand;
if(ou){var SG=xsB();_.$N(I0,3,$p2,SG);r8(ou,VjN(I0))}},tz=function(){var I0=c().iapPurchaseCommand;
I0&&r8(I0)},Xq=function(I0){var ou=c().onGameFrameReceivedCommand;
if(ou){var SG=new QI;var RR=new SAp;var xM=J7(I0,1);RR=_.Ef(RR,1,xM);I0=_.iU(I0,2);I0=_.Eq(RR,2,I0);SG=_.Az(SG,2,I0);r8(ou,zu2(SG))}},Zq=function(I0){var ou=c().onGameAudioDataReceivedCommand;
if(ou){var SG=new QI;var RR=new MMe;I0=_.iU(I0,1);RR=_.Eq(RR,1,I0);SG=_.Az(SG,4,RR);r8(ou,zu2(SG))}},U$=function(){var I0=new URLSearchParams(window.location.search);
if(c().isEmbeddedInWebview&&I0&&I0.get("override_hl")==="true"&&I0.get("hl"))return I0.get("hl");I0=document.documentElement.lang;return I0!==""?I0:BY},ie=function(I0){var ou=c().onShareInviteCodeCommand;
if(ou)if(c().isEmbeddedInWebview){var SG=new ZI0;I0=_.Eq(SG,1,I0);r8(ou,Ps9(I0))}else SG=c().inviteCodeShareClientParamIdentifier,t.clientParams.set(SG,{miniAppClientParams:{inviteCode:I0}}),vd(ou)},lD=function(I0){var ou,SG,RR;
return _.T(function(xM){if(xM.nextAddress==1)return ou=c().onMiniAppOpenYtContentRequested,a&&_.v("enable_open_yt_content")&&ou?xM.yield(lJF(a,I0),3):xM.jumpTo(0);SG=xM.yieldResult;if(SG==="OK")if(c().isEmbeddedInWebview){var fS=new sHT;RR=Ag(fS,2,PE,DW(I0));r8(ou,$ei(RR))}else x.clientData.set("video_id",I0),vd(ou);_.Vp(xM)})},bM=function(I0){T8+=_.wF(I0,3);
I0=Math.min(Math.log(1+T8/15E6*9)/Math.log(10),.99);v6(I0);rn(I0)},rn=_.W7(function(I0){var ou=c().updateLoadingProgressCommand;
if(ou){var SG=new sHT;I0=Ag(SG,3,PE,_.yB(I0));r8(ou,$ei(I0))}},100),$y=function(I0){return EFr(O,I0)},nC=function(){var I0,ou;
((I0=_.bcg())==null?void 0:(ou=I0.wakeLock)==null?void 0:ou.request)!=null&&_.bcg().wakeLock.request("screen").then(function(SG){F=SG}).catch(function(){})},ia=_.Op("iframe");
_.xs(function(){c().isSupportedCountry&&(Hnb()||_.v("enable_sign_in_promo")||!c().showSignInDialogCommand?ia.value&&Et(ia.value):vd(c().onMiniAppReadyCommand))},"wJQWDc");
var S4=function(){return _.e("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return kK()?0:-1},
title:function(){return c().title},
el:ia})},Et=function(I0,ou){ou=ou===void 0?!1:ou;
var SG=dB();if(SG&&(ou||SG.toString()!==I0.getAttribute("src"))){q=Ixp(c().source,{isAudioEnabled:Wr,onFirstFrameReady:uH,onGameReady:ET,onSave:Mg,onLoad:$K,onError:sK,onSdkCalled:d7,onSdkPerformanceUpdate:xN,onClick:Dp,onSendHighScore:gx,onBenchmarkingMessageReceived:D$,getLanguage:U$,onShareInviteCode:ie,onResourceLoaded:bM,onOpenYTContent:lD,onShowMiniAppAd:$y,onGameFrameReceived:Xq,onGameAudioReceived:Zq,onMakeIapPurchase:tz},I0,SG);uD(I0,"load",function(){JF(K,"ma_il");uD(I0,"load",function(){Et(I0,
!0)})});
var RR=_.DH("mini_app_container_iframe_src_update_delay_ms");c().isEmbeddedInWebview&&!ou&&RR>0?dsO(I0,SG,RR):_.IE(I0,SG)}},dB=function(){var I0=c().url;
if(I0&&(I0=_.Cj(I0),I0!==null)){if(c().source&&c().source==="MINI_APP_SOURCE_GAMESNACKS")I0=_.o2(I0,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.v("enable_origin_query_parameter_bugfix")){var ou=_.zF(_.nkb(I0.toString()));ou=new URLSearchParams(ou||"");ou.set("origin",window.location.origin);ou=ou.toString();I0=_.z6(I0).toString();I0=_.Vx(O89.exec(I0)[0]+(ou.trim()?"#"+ou:""))}return I0}},iZ=function(){var I0={};
I0=_.O3("yt-mini-app-container-view-model__loading-screen",(I0["yt-mini-app-container-view-model__loading-screen--fade-out"]=kK,I0));var ou=function(){return kK()?1:eT()};
return _.e("div",{class:I0},_.e(_.sN,{data:function(){return c().splashScreen}},{miniAppSplashScreenViewModel:function(SG){return _.e(G6F,{data:SG.data,
loadingProgress:ou})}}))},Cq=function(){var I0={};
return _.e("div",{class:_.O3("yt-mini-app-container-view-model__pause-interstitial",(I0["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!qk()},I0["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=qk,I0))},_.e(_.sN,{data:function(){return c().splashScreen}},{miniAppSplashScreenViewModel:function(ou){return _.e(G6F,{data:ou.data,
forPaused:!0})}}))},pb=function(){w=[];
w.push(_.Ld(window,"visibilitychange",function(){p||R&&L8()||(document.visibilityState==="visible"?Br():AU())}));
w.push(_.Ld(window,"pagehide",function(){P6()}));
w.push(_.Ld(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&he.value.dispatchEvent(new Event("tap"))},0)}));
w.push(_.Ld(he.value,"pointerdown",function(){LWF(K,!1)},!0));
w.push(_.Ld(he.value,"pause",function(){p=!0;AU()}));
w.push(_.Ld(he.value,"play",function(){p=!1;Br()}));
w.push(_.Ld(he.value,"exit",function(){P6()}));
var I0=navigator.keyboard,ou=I0&&I0.lock;w.push(_.Ld(window,A0B,function(){Iu(S3p());S3p()?(c().hasPlayNextShelf&&Vd("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),rg("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),ou&&I0.lock(["Escape"])):(c().hasPlayNextShelf&&rg("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Vd("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),ou&&I0.unlock())}));
c().showMultiplayer3pConsentDialogCommand&&w.push(_.Ld(window,"yt-playables-ack-3p-data-usage",function(){qTW(a)}));
c().confirmExitMiniAppCommandEdu&&w.push(_.Ld(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.bu("exit-mini-app-seen-state","true",2592E6)}));
c().onGameAudioDataReceivedCommand&&w.push(_.Ld(window,"message",function(SG){SG=SG.event_;var RR,xM=(RR=ia.value)==null?void 0:RR.src;if(xM&&SG.origin===(new URL(xM)).origin&&SG.data&&SG.data.type==="GAME_AUDIO"&&SG.data.audio&&SG.data.audio.length>0)if(_.v("enable_sending_unwrapped_game_audio_as_serialized_metadata"))hAf(c().onGameAudioDataReceivedCommand,SG.data.audio);else{var fS=new FileReader;fS.onload=function(){var Gu=new QI;var Tf=new MMe;Tf=_.Eq(Tf,1,fS.result);Gu=_.Az(Gu,4,Tf);r8(c().onGameAudioDataReceivedCommand,
zu2(Gu))};
fS.readAsDataURL(new Blob([SG.data.audio]))}}))},MF=function(){w.forEach(function(I0){bD(I0)});
window.removeEventListener("beforeunload",kp,{capture:!0})},vd=function(I0){I0&&jZO(I0,c().isEmbeddedInWebview||!1)},rg=function(I0,ou){I0=_.Q(he.value.getElementsByClassName(I0));
for(var SG=I0.next();!SG.done;SG=I0.next())SG.value.classList.add(ou)},Vd=function(I0,ou){I0=_.Q(he.value.getElementsByClassName(I0));
for(var SG=I0.next();!SG.done;SG=I0.next())SG.value.classList.remove(ou)};
return function(){var I0={};I0=_.O3("yt-mini-app-container-view-model",(I0["yt-mini-app-container-view-model--desktop"]=!0,I0["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return c().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},I0["yt-mini-app-container-view-model--ios-web-view"]=ZpA(),I0["yt-mini-app-container-view-model--no-top-bar"]=function(){return!c().topBar},I0["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return c().hasPlayNextShelf},I0["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return c().hasPlayNextShelf},I0["yt-mini-app-container-view-model--show-peek-below"]=function(){return!yO()&&c().hasPlayNextShelf},I0));
var ou={};ou=_.O3("yt-mini-app-container-view-model__content",(ou["yt-mini-app-container-view-model__content--desktop-content"]=!0,ou["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return c().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},ou["yt-mini-app-container-view-model--desktop-play-page"]=function(){return c().hasPlayNextShelf},ou));
return _.e("mini-app-container-view-model",{el:he},_.e("div",{class:I0},_.e(_.l,{cond:function(){return c().topBar&&!yO()},
then:function(){return _.e(_.sN,{data:function(){return c().topBar}},{miniAppTopBarViewModel:function(SG){return _.e(mN7,{data:SG.data,
isAudioEnabled:Wr,onAudioToggled:function(RR){CA(RR)},
score:n1,formattedScore:we,onScoreChanged:function(RR){N=RR},
isEmbeddedInWebview:L8,isSaved:IR,onSaveToggled:function(RR){vu(RR)},
isExitMiniAppSeen:ei,isDesktopPlayPage:MS})}})}}),_.e("div",{class:ou},_.e(_.l,{cond:YK,
then:function(){return S4()}}),_.e(_.l,{cond:function(){return c().isLivestream},
then:function(){return Cq()}}),_.e(_.l,{cond:function(){return!c().isEmbeddedInWebview},
then:function(){return iZ()}}),_.e(_.sN,{data:function(){return c().contentDisclosure}},{playerDisclosureViewModel:function(SG){SG=SG.data;
var RR={};return _.e("div",{class:_.O3("yt-mini-app-container-view-model__content-disclosure-overlay",(RR["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=Q$,RR))},_.e(_.aJd,{data:SG}))}}))))}()},"bg");
wyj.idomCompat=!0;_.R1(wyj,"mini-app-container-view-model",{props:{data:_.bl}});var FoH=_.W(function(G){var c=G.data;return _.e("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.e("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Nx(function(){var I=c().onTap;I&&_.r0(I)})},_.e(_.l,{cond:function(){return c().icon},
then:function(I){return _.e(_.F6,{icon:function(){return I().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.e("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return c().title})))},"cg");
FoH.idomCompat=!0;var nNF=_.W(function(G){var c=_.mX("div"),I=_.Q(_.ks(void 0,void 0,"dg3xff")),R=I.next().value,Z=I.next().value;I=_.Q(_.ks(void 0,void 0,"AgHNfc"));var K=I.next().value,m=I.next().value;I=_.Q(_.ks(void 0,void 0,"fuTKCc"));var a=I.next().value,O=I.next().value,N=function(){var M=R();return M!==void 0?Math.abs(M):void 0},q=function(){var M=N();
return M===void 0||M<=3},w=function(){var M=N();
var z=K(),t=a();M=M!==void 0&&z!==void 0&&t!==void 0?z-t-M:void 0;return M===void 0||M<=3},F=function(M){c.value&&c.value.scrollBy({top:0,
left:(_.H1("HTML_DIR")==="rtl"?-1:1)*M*c.value.clientWidth,behavior:"smooth"})},n=function(){var M;
Z((M=c.value)==null?void 0:M.scrollLeft);var z;m((z=c.value)==null?void 0:z.scrollWidth);var t;O((t=c.value)==null?void 0:t.clientWidth)},U=function(){F(-.5)},k=function(){F(.5)};
I=_.Nx(function(){n()});
_.xc(function(){n();if(c.value&&window.ResizeObserver){var M=new ResizeObserver(n);M.observe(c.value);_.ty(function(){M.disconnect()})}});
var p={};return _.e("yt-sponsorships-scrollable-shelf",{class:_.O3("ytdSponsorshipsScrollableShelfHost",G.className)},_.e("div",{class:_.O3("ytdSponsorshipsScrollableShelfContent",(p.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return G.data().previousButton&&G.data().nextButton&&!q()&&!w()},p.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return G.data().previousButton&&!q()&&w()},p.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return G.data().nextButton&&
q()&&!w()},p)),
el:c,"on:scroll":I},G.children),_.e(_.l,{cond:function(){return!q()},
then:function(){return _.e(_.sN,{data:function(){return G.data().previousButton}},{buttonViewModel:function(M){return _.e(_.BR,{data:M.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:U})}})}}),_.e(_.l,{cond:function(){return!w()},
then:function(){return _.e(_.sN,{data:function(){return G.data().nextButton}},{buttonViewModel:function(M){return _.e(_.BR,{data:M.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:k})}})}}))},"eg");
nNF.idomCompat=!0;var DNW=_.W(function(G){var c=G.data;G={};return _.e("yt-sponsorships-hub",{class:_.O3("ytdSponsorshipsHubHost",(G.ytdSponsorshipsHubHostIndented=function(){return c().indented},G))},_.e("div",{class:"ytdSponsorshipsHubHeader"},_.e("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.e("div",{class:"ytdSponsorshipsHubAvatar"},_.e(_.sN,{data:function(){return c().avatar}},{avatarViewModel:_.qF})),_.e(_.l,{cond:function(){return c().badgeImage},
then:function(I){return _.e("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.e("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.e("div",{class:"ytdSponsorshipsHubBadge"},_.e(_.yc,{data:I,targetWidth:24,targetHeight:24,alt:""}))))}})),_.e("div",{class:"ytdSponsorshipsHubDetails"},_.e("div",{class:"ytdSponsorshipsHubTierName"},function(){return c().tierName}),_.e("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return c().membershipType}),_.e("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return c().membershipDurationOrExpiry})),_.e("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.e(_.sN,{data:function(){return c().manageButton}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.e(_.sN,{data:function(){return c().actionMenuButton}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.e("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return c().perksTitle}),_.e(nNF,{data:function(){return{previousButton:c().previousPerkButton,
nextButton:c().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.e("div",{class:"ytdSponsorshipsHubPerkCards"},_.e(_.sN,{data:function(){return c().perkCards}},{sponsorshipsHubPerkCardViewModel:FoH}),_.e(_.l,{cond:function(){return c().viewAllPerksButton},
then:function(I){return _.e(vN1,{data:I})}}))))},"fg");
DNW.idomCompat=!0;var vN1=_.W(function(G){var c=G.data;return _.e("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.e(_.sN,{data:function(){return c().button}},{buttonViewModel:_.BR}),_.e("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.e("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return c().title}),_.e("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return c().subtitle})))},"gg");
vN1.idomCompat=!0;_.R1(DNW,"yt-sponsorships-hub",{props:{data:_.bl}});_.oNg=_.W(function(G){var c=G.data;return _.e("yt-dual-avatar-view-model",{class:_.O3("ytDualAvatarViewModelHost",G.className),style:_.wi({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var I;return((I=c().badgeCutoutRadius)!=null?I:14)+"px"}})},_.e("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.e(_.sN,{data:function(){return c().startAvatar}},{avatarViewModel:_.qF}),_.e(_.sN,{data:function(){return c().endAvatar}},{avatarViewModel:_.qF})),_.e(_.sN,{data:function(){return c().badge}},
{contentPreviewImageViewModel:function(I){return _.e("div",{class:"ytDualAvatarViewModelBadge"},_.e(_.hp,{data:I.data}))}}))},"hg");
_.oNg.idomCompat=!0;var uxu=_.W(function(G){var c=G.data;var I,R=!((I=_.wH().resolve(_.qR(_.d0)))==null||!I());G=_.SE(function(){var q,w,F=R?(q=c().header)==null?void 0:q.backgroundColorDarkMode:(w=c().header)==null?void 0:w.backgroundColorLightMode;if(F!==void 0)return _.pE(F)},void 0,"TDdh7d");
I=_.SE(function(){var q,w;return R?(q=c().header)==null?void 0:q.backgroundImagePart1Dark:(w=c().header)==null?void 0:w.backgroundImagePart1Light},void 0,"X0peMe");
var Z=_.SE(function(){var q,w;return R?(q=c().header)==null?void 0:q.backgroundImagePart2Dark:(w=c().header)==null?void 0:w.backgroundImagePart2Light},void 0,"an0Hzd"),K=_.SE(function(){return _.H1("HTML_DIR")==="rtl"},void 0,"BltEgb"),m=_.mX("yt-sponsorships-perks-list"),a=!1,O=function(){var q=m.value;
if(q&&!a){var w,F=(w=q.parentElement)==null?void 0:w.parentElement;if(F)for(q=q.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),w=0;w<q.length;++w){var n=q[w];if(n instanceof HTMLElement){F.scrollTo({top:n.offsetTop+n.clientHeight/2-F.clientHeight/2,behavior:"smooth"});a=!0;break}}}};
_.tI(function(){var q=m.value;if(q&&window.ResizeObserver){var w=new ResizeObserver(O);w.observe(q);_.ty(function(){w.disconnect()})}});
var N={};return _.e("yt-sponsorships-perks-list",{el:m,class:_.O3("ytdSponsorshipsPerksListHost",(N.ytdSponsorshipsPerksListHorizontalPadding=function(){return c().horizontalPaddingEnabled},N))},_.e("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.e("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.wi({"background-color":G})},_.e("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.e(_.l,{cond:I,then:function(q){var w={};return _.e("div",{class:_.O3((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,w.ytdSponsorshipsPerksListFlipped=K,w))},_.e(_.yc,{data:q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.e("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.e(_.l,{cond:Z,
then:function(q){var w={};return _.e("div",{class:_.O3((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,w.ytdSponsorshipsPerksListFlipped=K,w))},_.e(_.yc,{data:q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.e("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.e(_.sN,{data:function(){var q;
return(q=c().header)==null?void 0:q.dualAvatar}},{dualAvatarViewModel:_.oNg})))),_.e("div",{class:"ytdSponsorshipsPerksListBody"},_.e("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return c().title}),_.e(_.l,{cond:function(){return c().perks},
then:function(q){return _.e(_.fh,{each:q},function(w,F){var n={};return _.e("div",{class:_.O3("ytdSponsorshipsPerksListPerkContainer",(n.ytdSponsorshipsPerksListSelectedPerk=function(){var U=F(),k=c().selectedPerkIndex;return U===k},n))},_.e(_.l,{cond:function(){return F()>0},
then:function(){return _.e("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.e("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.e(_.l,{cond:function(){return w.icon},
then:function(U){return _.e(_.F6,{icon:function(){return U().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.e("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.e("div",{class:"ytdSponsorshipsPerksListPerkTitle"},w.title),_.e("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.e(_.ul,{text:w.description})),_.e(_.l,{cond:function(){return w.instructions},
then:function(){var U,k;return _.e("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.e("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(U=w.instructions)==null?void 0:U.title),_.e("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.e(_.ul,{text:(k=w.instructions)==null?void 0:k.text})))}}))),_.e(_.l,{cond:function(){return w.emoji},
then:function(U){return _.e("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.e(_.fh,{each:function(){return U()}},function(k){return _.e(_.yc,{data:k,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.e(UNj,{data:w}))})}})))},"ig");
uxu.idomCompat=!0;var UNj=_.W(function(G){var c=G.data;var I=function(m,a){return m===a},R=function(){var m=c();
m=_.D(m==null?void 0:m.badgesShelf,TQ9);return m!==void 0&&m!==null?m:{previousButton:{},nextButton:{}}},Z=_.Op("div"),K=function(){var m=Z.value;
if(m){var a=m.parentElement;if(a){m=m.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var O=0;O<m.length;++O){var N=m[O];if(N instanceof HTMLElement){a.scrollTo({left:N.offsetLeft+N.clientWidth/2-a.clientWidth/2,behavior:"instant"});break}}}}};
_.tI(function(){var m=Z.value;if(m){var a=new ResizeObserver(K);a.observe(m);_.ty(function(){a.disconnect()})}});
return _.e("div",null,_.e(_.l,{cond:function(){return c().badges},
then:function(m){return _.e(nNF,{data:R},_.e("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Z},_.e(_.fh,{each:function(){return m()}},function(a,O){var N={},q={},w={};
return _.e("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.e(_.l,{cond:function(){return O()>0},
then:function(){return _.e("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.e("div",{class:_.O3("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(N.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return I(O(),c().currentBadgeIndex)},N.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!I(O(),c().currentBadgeIndex)},N))},_.e("div",{class:_.O3("ytdSponsorshipsPerksListLoyaltyBadge",(q.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return I(O(),
c().currentBadgeIndex)},q.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!I(O(),c().currentBadgeIndex)},q))},_.e(_.l,{cond:function(){return a.image},
then:function(F){var n={};return _.e("div",{class:_.O3((n.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return I(O(),c().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!I(O(),c().currentBadgeIndex)},n))},_.e(_.yc,{data:F,
alt:""}))}})),_.e("div",{class:_.O3("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(w.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return I(O(),c().currentBadgeIndex)},w))},a.title)))})))}}))},"jg");
UNj.idomCompat=!0;_.R1(uxu,"yt-sponsorships-perks-list",{props:{data:_.bl}});_.R1(_.W(function(G){return _.e("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.e(_.l,{cond:function(){return G.data().image},
then:function(c){return _.e(_.yc,{className:"ytwFantasyEmptyStateViewModelImage",data:c,ariaHidden:!0,alt:""})}}),_.e(_.ul,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return G.data().title}}),_.e(_.ul,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return G.data().subtitle}}),_.e(_.sN,{data:function(){return G.data().primaryButton}},{buttonViewModel:function(c){return _.e(_.BR,{data:c.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"kg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.bl}});var bGu;var k6d=_.W(function(G){var c=G.data;var I=G.uniqueId;var R=G.overrides;G=_.SE(function(){var Z,K=((Z=c().timedAnimationData)==null?void 0:Z.animationTiming)||[];return{uniqueId:I(),timings:K,experimentEnabled:K.length>0,enabled:K.length>0}},void 0,"hiuXI");
return _.e("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.e(P49,{settings:G},_.e(_.sN,{data:function(){return c().buttonRenderer}},{buttonRenderer:function(Z){return _.e(_.Ey,{data:Z.data,
buttonOverrides:R})}})))},"lg");
k6d.idomCompat=!0;_.R1(k6d,"timed-animation-button-renderer",{props:{data:_.bl,uniqueId:_.bl,overrides:_.bl}});var xg=function(){var G=_.J.apply(this,arguments)||this;G.hideJoinButtonBeforeSubscribed=_.v("hide_join_button_before_subscribed");G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return G};
_.u(xg,_.J);_.P=xg.prototype;_.P.hasShowDialogCommand=function(G){return!!_.D(G,FON)};
_.P.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.updateJoinButtonOverrides=function(){var G,c;(G=_.Q1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(c=G.polymerController)==null||c.set("overrides",this.joinButtonOverrides);if(G=_.Q1(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))G.overrides=this.joinButtonOverrides};
_.P.handleButtonRefreshAction=function(G){if(G=_.D(G,Bak))this.set("data.membershipButton",G.membershipButton),this.notifyPath("data.membershipButton")};
_.P.onYtServiceRequestError=function(G){_.Xc(this.hostElement,G.detail.error.message)};
_.P.onKeydown=function(G){if(G.key==="Enter"){var c;(c=this.data)!=null&&c.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.P.handleUnsubscribeAction=function(){var G,c,I;((G=this.data)==null?void 0:(c=G.membershipButton)==null?void 0:(I=c.buttonRenderer)==null?void 0:I.style)==="STYLE_PRIMARY"&&_.Q1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Nh.Object.defineProperties(xg.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.subscriptionStateEntity)==null||!G.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.data)==null?void 0:G.membershipButton,I;G=(c==null?void 0:c.buttonRenderer)||_.D(c==null?void 0:(I=c.timedAnimationButtonRenderer)==null?void 0:I.buttonRenderer,_.vE);return(G==null?void 0:G.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(G==null?void 0:G.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(G==null?void 0:G.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var G;if(this.hasShowDialogCommand((G=this.data)==null?void 0:G.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var G;if(this.hasShowDialogCommand((G=this.data)==null?void 0:G.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedTitle)}}});
xg.prototype.onYtServiceRequestError=xg.prototype.onYtServiceRequestError;xg.prototype.updateJoinButtonOverrides=xg.prototype.updateJoinButtonOverrides;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],xg.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],xg.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],xg.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Pp),_.h("design:type",Object)],xg.prototype,"ironButtonState",void 0);_.r([_.E(),_.h("design:type",Object)],xg.prototype,"data",void 0);_.r([_.A("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],xg.prototype,"hideJoin",null);
_.r([_.E(),_.h("design:type",String)],xg.prototype,"subscribeKey",void 0);_.r([_.E({selectorArgs:["subscribeKey"],selector:PNr}),_.h("design:type",Object)],xg.prototype,"subscriptionStateEntity",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],xg.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.r([_.A("subscriptionStateEntity"),_.E({reflectToAttribute:!0}),_.h("design:type",Object),_.h("design:paramtypes",[])],xg.prototype,"subscribed",null);
_.r([_.A("subscribed","data.membershipButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],xg.prototype,"joinButtonOverrides",null);_.r([_.A("data.navigationEndpoint"),_.h("design:type",Object),_.h("design:paramtypes",[])],xg.prototype,"channelNameTabIndex",null);_.r([_.A("data.navigationEndpoint"),_.h("design:type",Object),_.h("design:paramtypes",[])],xg.prototype,"channelNameRole",null);
_.r([_.A("data.attributedTitle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xg.prototype,"hasAttributedTitle",null);_.r([_.wD("joinButtonOverrides"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xg.prototype,"updateJoinButtonOverrides",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],xg.prototype,"onYtServiceRequestError",null);
_.r([_.Jc({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],xg);
var sRG=_.PI()(xg,"ytd-video-owner-renderer",function(){if(bGu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);bGu=G}G=bGu;return G},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.R1(_.W(function(G){var c=G.data;var I;G=_.Q(_.ks(!((I=_.ka("yt-mini-app-is-theater-mode-enabled"))==null||!I),void 0,"i2pjVd"));var R=G.next().value,Z=G.next().value;I=_.Q(_.ks(!1,void 0,"ga7V5c"));var K=I.next().value,m=I.next().value;_.tI(function(){var N=_.Ld(window,A0B,function(){m(S3p())});
_.ty(function(){bD(N)})});
var a;I=(a=_.wH().resolve(_.qR(Xru)))!=null?a:function(){return _.e("div",null)};
_.QF("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Z(!0);_.bu("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.QF("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Z(!1);_.bu("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
a={};G={};var O={};return _.e("mini-app-play-page-renderer",{class:_.O3("miniAppPlayPageRendererHost",(a.miniAppPlayPageRendererHostDetailsView=function(){return!R()},a))},_.e("div",{class:_.O3("miniAppPlayPageRendererGameContainer",(G.miniAppPlayPageRendererGameContainerDetailsView=function(){return!R()},G))},_.e(_.sN,{data:function(){return c().containerViewModel}},{miniAppContainerViewModel:wyj}),_.e(_.l,{cond:function(){return c().channel&&c().subscribeButton},
then:function(){var N={};return _.e("div",{class:_.O3("miniAppPlayPageRendererChannelContainer",(N.miniAppPlayPageRendererHideVisibility=function(){return K()},N))},_.e(_.sN,{data:function(){return c().channel}},{videoOwnerRenderer:function(q){return _.e(sRG,{data:q.data})}}),_.e(_.sN,{data:function(){return c().subscribeButton}},{subscribeButtonViewModel:function(q){return _.e(_.qI,{data:q.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.e(_.l,{cond:function(){return!R()&&c().description},
then:function(){var N={};return _.e("div",{class:_.O3("miniAppPlayPageRendererMiniAppDescriptionWrapper",(N.miniAppPlayPageRendererHideVisibility=function(){return K()},N))},_.e("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return c().description}))}})),_.e("div",{class:_.O3("miniAppPlayPageRendererPlayNextContainer",(O.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!R()},O.miniAppPlayPageRendererHideVisibility=function(){return K()},O))},_.e(_.sN,{data:function(){return c().sectionList}},
{sectionListRenderer:I})))},"mg"),"mini-app-play-page-renderer",{props:{data:_.bl}});var tF=function(){var G=_.J.apply(this,arguments)||this;G.isSearch=!1;G.isConstrainedList=!1;G.hasChipsBar=!1;G.inReplyPanel=!1;G.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};G.monitorScroll=!0;G.SCROLL_ANIMATION_DURATION_MS=300;G.nextContinuation={continuationType:"sectionListContinuation"};return G};
_.u(tF,_.J);_.P=tF.prototype;
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(G){switch(G.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.v("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.v("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.P.created=function(){var G=this;this.JSC$17383_scrollAnimation=new _.zT(function(c){G.hostElement.scrollTop=c})};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.replacePrimaryContent=function(G){this.set("data.contents",G)};
_.P.computeHasSortFilter=function(G){return!!G&&!!G.sortFilterSubMenuRenderer};
_.P.computeShouldScrollInPanel=function(G){var c;return!!(G==null?0:(c=G.scrollPaneStyle)==null?0:c.scrollable)};
_.P.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.as(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.P.scrollToTop=function(){this.hostElement.scrollTop=0};
_.P.scrollToItemSection=function(G){if(G=this.getItemByIdentifier(G))G=this.getScrollPositionForItem(G),this.hostElement.scrollTop!==G&&this.JSC$17383_scrollAnimation.start(this.hostElement.scrollTop,G,this.SCROLL_ANIMATION_DURATION_MS)};
_.P.getItemByIdentifier=function(G){var c=this.contents.querySelectorAll("ytd-item-section-renderer");if(c&&c.length!==0){var I=Array.from(c).findIndex(function(R){return R.sectionIdentifier===G});
return c[I===-1?0:I]}};
_.P.getScrollPositionForItem=function(G){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===G)return 0;G=_.C8(G).y+this.hostElement.scrollTop-_.C8(this.hostElement).y;return Math.min(G,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Nh.Object.defineProperties(tF.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.targetId)==="browse-feedFEclips"}}});
tF.prototype.onScroll=tF.prototype.onScroll;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],tF.prototype,"ytLazyListBehavior",void 0);_.r([_.L(_.Vn.YtNextContinuationBehavior),_.h("design:type",Object)],tF.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.L(_.N7W),_.h("design:type",Object)],tF.prototype,"ytBooleanLogicBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],tF.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tF.prototype,"data",void 0);_.r([_.E({value:2}),_.h("design:type",Number)],tF.prototype,"initialCount",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],tF.prototype,"autoFill",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.h("design:type",Boolean)],tF.prototype,"hasSortFilter",void 0);_.r([_.E({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.h("design:type",Boolean)],tF.prototype,"hideBottomSeparator",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.h("design:type",Boolean)],tF.prototype,"shouldScrollInPanel",void 0);
_.r([_.E(),_.h("design:type",Object)],tF.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tF.prototype,"isConstrainedList",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],tF.prototype,"responsiveSizing",void 0);_.r([_.E(),_.h("design:type",Object)],tF.prototype,"hasChipsBar",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],tF.prototype,"pageSubtype",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],tF.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],tF.prototype,"liveChatEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tF.prototype,"inReplyPanel",void 0);_.r([_.nH("#action-button"),_.h("design:type",HTMLElement)],tF.prototype,"actionButton",void 0);_.r([_.E(),_.h("design:type",Object)],tF.prototype,"scrollUpButtonData",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],tF.prototype,"engagementPanelDropdown",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],tF.prototype,"engagementPanelDialog",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],tF.prototype,"isClipList",null);_.r([_.nH("#contents"),_.h("design:type",HTMLElement)],tF.prototype,"monitorScrollElement",void 0);_.r([_.nH("#contents"),_.h("design:type",HTMLElement)],tF.prototype,"contents",void 0);
_.r([_.qY("scroll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tF.prototype,"onScroll",null);_.r([_.Jc({is:"ytd-section-list-renderer",disableElementRegistration:!0})],tF);
var LoW=_.PI()(tF,"ytd-section-list-renderer",function(){if(HA1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);HA1=G}G=HA1;return G},{mode:1});var AzW;var $N$;var ST7;var py1;var hF=function(){return _.J.apply(this,arguments)||this};
_.u(hF,_.J);hF.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
hF.prototype.onLikeButtonClick=function(G){G.stopPropagation();G.preventDefault()};
_.Nh.Object.defineProperties(hF.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],hF.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],hF.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hF.prototype,"ytRendererStamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hF.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.likeStatusEntityKey"],selector:_.WU}),_.h("design:type",Object)],hF.prototype,"likeStatusEntity",void 0);_.r([_.A("data","likeStatusEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],hF.prototype,"likeButtonRenderer",null);_.r([_.Jc({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],hF);
_.B(hF,"ytd-slim-metadata-toggle-button-renderer",function(){if(py1!==void 0)return py1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return py1=G},{mode:1});var dv=function(){var G=_.J.apply(this,arguments)||this;G.showEqualizer=_.v("web_enable_playlist_video_lockup_equalizer");G.watchColorUpdate=_.v("kevlar_watch_color_update");G.actionMap={};return G};
_.u(dv,_.J);_.P=dv.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.P.computeEditableClass=function(G){return G&&G.menu?"editable":""};
_.P.computeSelected=function(G){return!(G==null||!G.selected)};
_.P.computeUseColorPalette=function(G){return!!((G==null?0:G.lightColorPalette)&&(G==null?0:G.darkColorPalette))};
_.P.computeLargerPlaylistThumbs=function(G,c){return _.v("web_enable_playlist_bigger_thumbnails")&&!c};
_.P.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.P.onYtServiceRequestSent=function(G,c){c.endpoint&&this.isHideEnclosingAction(c.endpoint)&&!this.selected&&CSB(_.Ah(),this.data.videoId)};
_.P.isHideEnclosingAction=function(G){var c=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",G);G=this.get("likeEndpoint.status",G)==="INDIFFERENT";return c||G};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Nh.Object.defineProperties(dv.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.v("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.withinMiniplayer&&((G=this.data)==null?0:G.actionButtons))}}});
dv.prototype.onYtServiceRequestSent=dv.prototype.onYtServiceRequestSent;dv.prototype.canReorderChanged=dv.prototype.canReorderChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],dv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.kw),_.h("design:type",Object)],dv.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dv.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],dv.prototype,"withinMiniplayer",void 0);_.r([_.E({computed:"computeSelected(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],dv.prototype,"selected",void 0);
_.r([_.E({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],dv.prototype,"useColorPalette",void 0);_.r([_.E({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.h("design:type",Boolean)],dv.prototype,"largerPlaylistThumbs",void 0);_.r([_.E(),_.h("design:type",Object)],dv.prototype,"showEqualizer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],dv.prototype,"canReorder",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],dv.prototype,"touchPersistentDragHandle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],dv.prototype,"handleIsHovered",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],dv.prototype,"watchColorUpdate",void 0);_.r([_.E(),_.h("design:type",String),_.h("design:paramtypes",[])],dv.prototype,"reorderIcon",null);
_.r([_.E(),_.h("design:type",String),_.h("design:paramtypes",[])],dv.prototype,"playIcon",null);_.r([_.E({reflectToAttribute:!0}),_.A("withinMiniplayer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dv.prototype,"minimizePipBreakages",null);_.r([_.A("largerPlaylistThumbs"),_.h("design:type",Number),_.h("design:paramtypes",[])],dv.prototype,"thumbnailWidth",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dv.prototype,"showActionButtons",null);_.r([_.uO("canReorder"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dv.prototype,"canReorderChanged",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],dv.prototype,"onYtServiceRequestSent",null);
_.r([_.Jc({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],dv);
_.B(dv,"ytd-playlist-panel-video-renderer",function(){if(ST7!==void 0)return ST7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ST7=G},{mode:2});var CL=function(){return _.J.apply(this,arguments)||this};
_.u(CL,_.J);CL.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],CL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],CL.prototype,"data",void 0);_.r([_.Jc({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],CL);
_.B(CL,"ytd-playlist-panel-supported-items",function(){if($N$!==void 0)return $N$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return $N$=
G},{mode:1});MRN=!0;FUB("\\P{N}");var T6i;var M_d=_.mJ("END_OF_PLAYLIST",void 0,"End of playlist"),V_F=_.mJ("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Hx=function(){var G=_.J.apply(this,arguments)||this;G.minimizePipBreakages=_.v("web_pip_minimize_breakages");G.hideHeaderText=!1;G.useColorPalette=!1;G.collapsed=!1;G.collapsedPreServerOverride="not_tracked";G.isHovered=!1;G.expandLabel=_.mJ("MINIPLAYER_EXPAND_LABEL");G.collapseLabel=_.mJ("MINIPLAYER_COLLAPSE_LABEL");G.isFloating=!1;G.metaPanel=
!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};G.currentIndex=void 0;return G};
_.u(Hx,_.J);_.P=Hx.prototype;
_.P.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){var G=this;this.scrollThrottle=new _.qx(this.onThrottledScroll,1E3,this);this.JSC$17405_ytReorderableController=new _.nEK(56,function(c){G.handleDrop(c)})};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.computeOverflowMenuData=function(G){return G&&G.menu?G.menu:null};
_.P.computeCollapsible=function(G){return!G};
_.P.computeHasPlaylistButtons=function(G){return!(!G||!G.playlistButtons)};
_.P.computeHasSeparateSaveButton=function(G){return!(!G||!G.saveButton)};
_.P.computeHasToolbarButton=function(G,c){return!(!G||!(c||G.saveButton||G.menu))};
_.P.computePlaylistType=function(G){if(G&&G.playlistId)return G.playlistId.substring(0,4)};
_.P.computeCanReorder=function(G){return G?G.playlistId&&G.playlistId.startsWith("TLPQ")?!0:!!G.isEditable&&!G.isInfinite:!1};
_.P.attached=function(){var G=this;try{_.wH().resolve(_.u1).setPlaylistComponent(this.hostElement)}catch(c){if(_.v("kevlar_park_on_playlist_token_killswitch"))throw c;_.kL().parkOrScheduleJob(function(){_.wH().resolve(_.u1).setPlaylistComponent(G.hostElement)},2,"ci")}_.CR(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.P.detached=function(){_.Hq(this.hostElement);_.Gl(this.JSC$17405_ytReorderableController)};
_.P.computeTrailingIcon=function(G,c,I){return I?c?"yt-icons:collapse":"yt-icons:close":c?"yt-icons:expand":_.v("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.P.computeIndexMessage=function(G,c){return N60(G+1)+" / "+N60(c)};
_.P.onRenderStamperFinished=function(){if(this.scrollForStampDom){var G=!0;this.isHovered&&(G=!1);if(this.collapsed||this.hidden)G=!1;G&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.P.collapseChanged=function(){var G=this;this.collapsed||(_.U_(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.P.hiddenChanged=function(){var G=this;this.hidden||_.U_(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()})};
_.P.setupReordering=function(){var G=_.Q1(this.hostElement).querySelector("#items");HrB?_.vET(this.JSC$17405_ytReorderableController,G,G,"playlist-drag-handle"):_.vET(this.JSC$17405_ytReorderableController,G,G)};
_.P.scrollToCurrentVideo=function(){var G=this;_.dJ.addJob(function(){var c=_.Q1(G.hostElement).querySelector("#items");if(c){c.style.setProperty("padding-bottom","");var I=_.Q1(G.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(I){c=I.parentElement||_.j1(document);var R=c||_.j1(document);var Z=_.C8(I),K=_.C8(R),m=_.GBV(R);if(R==_.j1(document)){var a=Z.x-R.scrollLeft;Z=Z.y-R.scrollTop}else a=Z.x-K.x-m.left,Z=Z.y-K.y-m.top;I=X69(I);K=R.clientHeight-
I.height;m=R.scrollLeft;var O=R.scrollTop;m+=a-(R.clientWidth-I.width)/2;R=new _.ts(m,O+(Z-K/2));c.scrollLeft=R.x;c.scrollTop=R.y}}},8)};
_.P.dataChanged=function(){var G=this;_.Gl(this.JSC$17405_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.O$(this,function(){_.W_(G.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty();G.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.P.onFullBleedPlayerChanged=function(){_.v("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.onFullscreenChanged=function(){_.v("web_watch_imax_theater_mode")||_.v("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.updateNowPlayingOverlay=function(){_.v("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.P.onPlaylistLockupNowPlaying=function(G,c){c&&(this.activeNowPlayingRenderer=c);this.updateNowPlayingOverlay()};
_.P.onScroll=function(){this.scrollThrottle.fire()};
_.P.onThrottledScroll=function(){var G=this;_.W_(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty()})};
_.P.onToggleExpanded=function(G){!this.collapsible||G&&(_.HH(G).tagName==="A"||_.Gf(_.CE(G),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.P.setCollapsed=function(G){this.collapsible&&(this.collapsed=G,_.gq(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.P.handleCollapsedFromData=function(G){if(G){var c=G.playlistPanelCollapseState;c==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||c==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),c=c==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==c&&this.setCollapsed(c)):this.currentPlaylistId!==G.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(c=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==c&&this.setCollapsed(c),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=G.playlistId}};
_.P.handleDrop=function(G){var c=G.currDragItem;G=c.data.playlistSetVideoId;var I=_.JU(c.parentNode.childNodes,c),R=void 0;I>0&&(R=c.parentNode.childNodes[I-1].data.playlistSetVideoId);c=_.Ah();if(c.responsePlaylistData&&c.responsePlaylistData.contents){var Z=LOr(G,c.responsePlaylistData);c.responsePlaylistData=(0,_.rx.unsafeClone)(c.responsePlaylistData);iA0(c.responsePlaylistData.contents,Z,I);c.queueProxy?uSN(c.queueProxy,Z,I,G,R):c.playlistProxy&&uSN(c.playlistProxy,Z,I,G,R);_.$L(c,_.Ss(c,c.response?
c.response.autoplayRenderer:void 0))}};
_.P.handleDarkModeChange=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.P.colorPaletteChanged=function(){var G,c=((G=this.data)==null?void 0:G.contents)||[],I;G=_.Q(c);for(c=G.next();!c.done;c=G.next()){c=c.value;var R=void 0;if((R=c.playlistPanelVideoRenderer)==null?0:R.selected){G=c.playlistPanelVideoRenderer;R=c=void 0;(I=this.isDarkTheme?(c=G)==null?void 0:c.darkColorPalette:(R=G)==null?void 0:R.lightColorPalette)&&_.A0(this.hostElement,I);break}}this.useColorPalette=!!I};
_.Nh.Object.defineProperties(Hx.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.moveThreeDotsMenuToMainHeader)&&_.v("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var G=_.wH().resolve(_.qR(_.u1)),c;if(((c=this.data)==null?0:c.contents)&&(G==null?0:G.hasAutoplayData())){var I;if(((I=this.playlistLoopStateEntity)==null?void 0:I.state)==="PLAYLIST_LOOP_STATE_ONE"){if(G=this.data.currentIndex,G!==void 0){var R,Z;var K=(R=this.data.contents[G])==null?void 0:(Z=R.playlistPanelVideoRenderer)==null?void 0:Z.title}}else{var m,a=(m=_.D(G.getAutoplayEndpoint(),_.fR))==null?void 0:m.videoId,O,N;K=(O=this.data.contents.find(function(q){var w;
return((w=q.playlistPanelVideoRenderer)==null?void 0:w.videoId)===a}))==null?void 0:(N=O.playlistPanelVideoRenderer)==null?void 0:N.title}return K}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.nextVideoLabel?this.nextVideoTitle?_.HY(this.data.nextVideoLabel)+":":M_d:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?0:G.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.v("web_mix_long_byline_from_data"))return _.Cp(V_F);var c;return(c=this.data)==null?void 0:c.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R=(G=this.data)==null?void 0:(c=G.playlistButtons)==null?void 0:(I=c.menuRenderer)==null?void 0:I.topLevelButtons;if(R)for(G=_.Q(R),c=G.next();!c.done;c=G.next())if(c=c.value,c.playlistLoopButtonRenderer)return c.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.collapsed&&((G=this.data)==null?0:G.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.v("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Hx.prototype.colorPaletteChanged=Hx.prototype.colorPaletteChanged;Hx.prototype.onPlaylistLockupNowPlaying=Hx.prototype.onPlaylistLockupNowPlaying;Hx.prototype.updateNowPlayingOverlay=Hx.prototype.updateNowPlayingOverlay;Hx.prototype.onFullscreenChanged=Hx.prototype.onFullscreenChanged;Hx.prototype.onFullBleedPlayerChanged=Hx.prototype.onFullBleedPlayerChanged;Hx.prototype.dataChanged=Hx.prototype.dataChanged;Hx.prototype.hiddenChanged=Hx.prototype.hiddenChanged;Hx.prototype.collapseChanged=Hx.prototype.collapseChanged;
Hx.prototype.onRenderStamperFinished=Hx.prototype.onRenderStamperFinished;Hx.prototype.onMouseLeave=Hx.prototype.onMouseLeave;Hx.prototype.onMouseEnter=Hx.prototype.onMouseEnter;_.r([_.L(_.Zu),_.h("design:type",Object)],Hx.prototype,"ironResizableBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(t$V.YtPlaylistPanelBehavior),_.h("design:type",Object)],Hx.prototype,"ytPlaylistPanelBehavior",void 0);_.r([_.L(_.$r.YtTaskEmitterBehavior),_.h("design:type",Object)],Hx.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Hx.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Hx.prototype,"ytdReduxBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Hx.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Hx.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Hx.prototype,"autoplayData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Hx.prototype,"withinMiniplayer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"minimizePipBreakages",void 0);
_.r([_.E({computed:"setMenuData_(data)"}),_.h("design:type",Object)],Hx.prototype,"menuRendererData",void 0);_.r([_.E({computed:"computeOverflowMenuData(data)"}),_.h("design:type",Object)],Hx.prototype,"overflowMenuDataTopRow",void 0);_.r([_.E({computed:"computeOverflowMenuData(data)"}),_.h("design:type",Object)],Hx.prototype,"overflowMenuData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"hideHeaderText",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"useColorPalette",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.h("design:type",Boolean)],Hx.prototype,"collapsible",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"collapsed",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Hx.prototype,"hidden",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.h("design:type",Boolean)],Hx.prototype,"hasPlaylistButtons",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.h("design:type",Boolean)],Hx.prototype,"hasSeparateSaveButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.h("design:type",Boolean)],Hx.prototype,"hasToolbar",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.h("design:type",String)],Hx.prototype,"playlistType",void 0);_.r([_.E(),_.h("design:type",Object)],Hx.prototype,"isHovered",void 0);_.r([_.E({selectorArgs:["playlistLoopStateEntityKey"],selector:_.QZ.playlistLoopStateEntitySelector}),_.h("design:type",Object)],Hx.prototype,"playlistLoopStateEntity",void 0);_.r([_.E({computed:"computeCanReorder(data)"}),_.h("design:type",Boolean)],Hx.prototype,"canReorder",void 0);
_.r([_.E(),_.h("design:type",Object)],Hx.prototype,"expandLabel",void 0);_.r([_.E(),_.h("design:type",Object)],Hx.prototype,"collapseLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"isFloating",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"metaPanel",void 0);_.r([_.E({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.h("design:type",String)],Hx.prototype,"trailingIcon",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Hx.prototype,"isDarkTheme",void 0);_.r([_.E({selector:_.pp}),_.h("design:type",Boolean)],Hx.prototype,"miniplayerIsActive",void 0);_.r([_.E({selector:function(G){return G.watch.playerState}}),
_.h("design:type",Number)],Hx.prototype,"playerState",void 0);_.r([_.E({selector:_.E3}),_.h("design:type",Boolean)],Hx.prototype,"isFullscreen",void 0);_.r([_.E({selector:_.z9}),_.h("design:type",Boolean)],Hx.prototype,"isTheaterMode",void 0);_.r([_.E(),_.h("design:type",Object)],Hx.prototype,"activeNowPlayingRenderer",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hx.prototype,"moveThreeDotMenuToTopRow",null);
_.r([_.A("data","autoplayData","playlistLoopStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],Hx.prototype,"nextVideoTitle",null);_.r([_.A("data","nextVideoTitle"),_.h("design:type",String),_.h("design:paramtypes",[])],Hx.prototype,"nextVideoLabel",null);_.r([_.A("collapsed"),_.h("design:type",String),_.h("design:paramtypes",[])],Hx.prototype,"buttonAriaLabel",null);
_.r([_.A("data","playlistId","longBylineText"),_.h("design:type",Object),_.h("design:paramtypes",[])],Hx.prototype,"mixLongByLine",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Hx.prototype,"playlistLoopStateEntityKey",null);_.r([_.qY("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"onMouseEnter",null);
_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"onMouseLeave",null);_.r([_.E({reflectToAttribute:!0}),_.A("data","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hx.prototype,"showNextVideoHeader",null);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"onRenderStamperFinished",null);
_.r([_.wD("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"collapseChanged",null);_.r([_.wD("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"hiddenChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"dataChanged",null);
_.r([_.A("isTheaterMode","isFullscreen"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hx.prototype,"isFullBleedPlayer",null);_.r([_.wD("isTheaterMode","isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"onFullBleedPlayerChanged",null);_.r([_.wD("isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"onFullscreenChanged",null);
_.r([_.wD("playerState","miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"updateNowPlayingOverlay",null);_.r([_.qY("yt-playlist-lockup-now-playing-active"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Hx.prototype,"onPlaylistLockupNowPlaying",null);
_.r([_.wD("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"colorPaletteChanged",null);_.r([_.Jc({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Hx);
_.zfd=_.PI()(Hx,"ytd-playlist-panel-renderer",function(){if(AzW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);AzW=G}G=AzW;return G},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.ENH={};
_.ENH.YtConditionalRendererBehavior=[_.X.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(G,c){var I=this,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:if(!c)return I.hidden=!0,I.showSpinner=!1,K.return();if((R=G)==null?0:(Z=R.visibilityCondition)==null?0:Z.mode)switch(G.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return K.jumpTo(5);default:return K.jumpTo(6)}I.showSpinner=
!1;I.hidden=!0;return K.yield(I.shouldShow_(G),4);case 4:I.hidden=!K.yieldResult;K.jumpTo(0);break;case 5:return K.yield(I.shouldShow_(G),8);case 8:I.showSpinner=K.yieldResult;I.hidden=!1;K.jumpTo(0);break;case 6:return I.showSpinner=!1,K.yield(I.shouldShow_(G),9);case 9:I.hidden=!K.yieldResult,_.Vp(K)}})},
shouldShow_:function(G){return G&&G.supportedDatas&&G.supportedDatas.rendererVisibilityConditionData&&G.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(G.supportedDatas.rendererVisibilityConditionData.showIf):G&&G.visibilityCondition&&G.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(G.visibilityCondition.showIf):G&&G.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(G.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(G){switch(G){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(G){switch(G){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var G=_.ym(this.hostElement,"yt-get-mdx-status");return G.length==1&&G[0].connected},
isLocationPermissionGranted_:function(){var G;return _.T(function(c){return c.nextAddress==1?navigator.permissions?c.yield(navigator.permissions.query({name:"geolocation"}),3):c.jumpTo(2):c.nextAddress!=2?(G=c.yieldResult,c.return(Promise.resolve(G.state==="granted"))):c.return(Promise.resolve(!1))})}}];var Jzu=dcA("yt-icon",{callbackProps:["onKeydown"]}),Woj=_.v("kevlar_use_wil_icons")?_.W(function(G){var c=G.icon;var I=G.active;var R=G.className;var Z=G.style;var K=G.title;var m=G.size;var a=G.dataSelected;var O=G.dataDisabled;var N=G.role;var q=G.themeOverride;var w=G.animateIcon;var F=G.ariaHidden;var n=G.ariaExpanded;var U=G.ariaLabel;var k=G.tabindex;var p=G.id;var M=G.iconFilter;var z=G.gradientColor;var t=G.onKeydown;var x=function(){var g=c==null?void 0:c(),QO=null,T8=void 0;g&&(g=DVk(g),
g=UaB(g),g.length&&(QO=g[1],T8=g[0]));return{iconName:QO,iconSetName:T8}},C=function(){return oY9(x().iconName,I==null?void 0:I(),void 0,m==null?void 0:m(),x().iconSetName,_.wH().resolve(_.ek))},H=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:M==null?void 0:M(),iconColor:z==null?void 0:z()}};
return _.e(_.l,{cond:w,then:function(){return _.e(Jzu,{icon:c,active:I,className:R,style:Z,title:K,dataSelected:a,dataDisabled:O,role:N,themeOverride:q,ariaHidden:F,ariaExpanded:n,ariaLabel:U,tabindex:k,id:p,iconFilter:M,gradientColor:z,onKeydown:t})},
else:function(){return _.e(_.l,{cond:C,then:function(g){return _.e("span",{class:_.O3("ytIconWrapperHost",R),role:N,"aria-label":U,"aria-hidden":F,tabindex:function(){return isNaN(Number(k==null?void 0:k()))?void 0:Number(k==null?void 0:k())},
id:p,style:Z,title:K,"on:keydown":_.Nx(function(QO){return void(t==null?void 0:t(QO))})},_.e(_.LQ,{data:g,
options:H}))}})}})},"ng"):Jzu;var iG$=function(G){var c=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];sJB();_.lr("ytglobal.ytUtilActivityCallback_",function(){_.gq(G,"yt-user-activity")});
new lB(function(){return c.JSC$17422_onMouseMove});
document.addEventListener("scroll",function(){return c.onScroll});
window.addEventListener("resize",function(){return c.onResize})},fJG=function(G,c,I){c in G.eventJobIds||(I=_.E_().addLowPriorityJob(function(){_.qb();
delete G.eventJobIds[c]},I),G.eventJobIds[c]=I)};
iG$.prototype.onScroll=function(G){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):G.target===document&&fJG(this,"scroll",200)};
iG$.prototype.onResize=function(){fJG(this,"resize",200)};
iG$.prototype.JSC$17422_onMouseMove=function(){fJG(this,"mousemove",100)};
_.z5=function(G){G.scrollEventsToIgnore+=1;G.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){G.scrollEventsToIgnore--},500))};var BSW=function(G){this.element=G;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
BSW.prototype.showFeedbackDialog=function(G,c,I,R){var Z=rzd();if(!Z)return!1;var K=bvO();K.productId=Z;c&&(K.flow="submit",K.report={description:c});I&&(rzd()==="59"?K.callback=_.gK(function(){_.x7("userFeedbackEvent",{});I()}):K.callback=_.gK(I));
K.bucket=R||_.H1("GOOGLE_FEEDBACK_BUCKET","Other");jRu(K);G=xN1(this,"GFEEDBACK",G);try{_.A42(K,G)}catch(m){return _.yL(m),!1}return!0};
BSW.prototype.showHelpDialog=function(G,c,I){var R=this,Z=rzd();if(!Z)return!1;var K={helpCenterPath:"/youtube",productData:xN1(this,"GUIDED_HELP",I)};jRu(K);var m=bvO();m.context=G||K.productData.context||"default";m.defaultHelpArticleId=c;m.enableSendFeedback=!0;(_.Yc("gapi.load")||function(a,O){return O()})("client",function(){try{var a=plk(Z,K);
if(_.v("web_always_load_chat_support")&&!R.chatSupportLoaded)try{a.JSC$10144_loadChatSupport(m),R.chatSupportLoaded=!0}catch(O){}a.startHelp(m)}catch(O){_.yL(O)}})};
var rzd=function(){var G=_.H1("GOOGLE_FEEDBACK_PRODUCT_ID");G||_.yL(Error("gi"));return G},jRu=function(G){G&&(G.locale=_.v("kevlar_help_use_locale")?_.H1("INNERTUBE_CONTEXT_HL","en"):_.H1("HTML_LANG","en"))},xN1=function(G,c,I){var R=G.productData;
delete R.origin;R.device=_.wb();var Z;a:{if(Z=document.createElement("canvas")){var K=Z.getContext("experimental-webgl",{stencil:!0});if(K){var m=K.getExtension("WEBGL_debug_renderer_info");if(m){Z=K.getParameter(m.UNMASKED_RENDERER_WEBGL);break a}}if(K=Z.getContext("webgl")){Z=K.getParameter(K.RENDERER);break a}}Z=null}R.gpu=Z;R.isSDC=!!_.H1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Z=_.H1("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.rx.extend(R,Z);_.UQf(c,R);_.ukB(R);(G=_.gq(G.element,"yt-get-autonav-pause-debug-state"))&&
G.length&&(R.autonav_pause_state=G[0]);G=_.p8();R.browser_resolution=G.width+"\u00d7"+G.height+"@"+(window.devicePixelRatio||1)+"x";I&&_.rx.extend(R,I);return R};
BSW.prototype.resetProductData=function(){this.productData={}};var t_j=function(G){this.feedbackManager=new BSW(G)};
t_j.prototype.showFeedbackDialog=function(G,c,I,R){return this.feedbackManager.showFeedbackDialog(G,c,I,R)};
t_j.prototype.showHelpDialog=function(G,c,I){return this.feedbackManager.showHelpDialog(G,c,I)};var hfu=function(){this.baseUrl="";this.aTag=document.createElement("a")},YJV=function(G,c,I){I=I===void 0?{}:I;
I.pbj||(I.pbj=1);I=_.aA0(c,I);G.baseUrl&&I&&!_.Tu(I)[1]&&!_.O2(I)&&(c=G.baseUrl,Pr(c,"/")&&(c=c.slice(0,-1)),_.KA(I,"/")&&(I=I.slice(1)),I=c+"/"+I);yx(G.aTag,_.j_(I||""));return G.aTag.href};
hfu.prototype.fetchData=function(G){return _.wOr(G)};
hfu.prototype.postData=function(G,c){var I={method:"POST"};if(c){for(var R=_.Q(Object.keys(c)),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var K=c[Z];_.db(K)&&(c[Z]=JSON.stringify(K))}I.postParams=c}return _.wOr(G,I)};
_.GLN=function(G,c,I,R,Z){G=YJV(G,c,I);if(!G)throw R=Error("hi"),Object.assign(R,{params:c}),R;return _.wOr(G,Z,R)};
hfu.prototype.requestDataForServiceEndpoint=function(G,c){if(_.D(G,_.Ar8))return this.fetchData("/getAccountSwitcherEndpoint");c=c||{};var I=_.D(G,if0);I?c.se=I.base64EncodedServiceEndpoint:c.sej=JSON.stringify(G);(I=_.k0())&&_.v("enable_service_ajax_csn")&&(c.csn=I);c.theme=_.iu();_.D(G,s8b)&&_.H1("DELEGATION_CONTEXT")&&(c.delegation_context=JSON.stringify(_.H1("DELEGATION_CONTEXT")));I=null;for(var R in G)if(Pr(R,"Endpoint")||Pr(R,"Command")){I=R;break}if(!I){var Z=Error("ii");Object.assign(Z,{params:G});
_.Pmr(Z,"WARNING");return new _.Lk(function(m,a){a(Z)})}R={name:I};
var K;(I=(K=_.D(G,_.KC))==null?void 0:K.signal)&&(R.signal=I);(K=_.QU(window.location.href))&&K.internalcountrycode&&(R.internalcountrycode=K.internalcountrycode);K="/service_ajax";_.v("debug_forward_web_query_parameters")&&(K=_.uLp(K,window.location.search));K=_.aa(K,R);G.clickTrackingParams&&_.x0(K,{itct:G.clickTrackingParams});return this.postData(K,c)};_.dNj=new _.De("GFEEDBACK_TOKEN");var C57;var HG1;var XyG;var yzr;var Xs=function(){var G=_.J.apply(this,arguments)||this;G.compact=!1;G.dismissButtonDisabled=!1;G.shouldRenderReasonAsFormattedString=!_.v("web_player_error_message_reason_as_formatted_string_killswitch");return G};
_.u(Xs,_.J);Xs.prototype.computeHasIcon_=function(G){return!!G};
Xs.prototype.isSignInIcon_=function(G){return G=="yt-icons:prompted_sign_in"};
Xs.prototype.onDismissButtonClick=function(){var G=this,c=this.data.disableOnClick,I,R=(I=this.data.dismissButton)==null?void 0:I.buttonRenderer;c&&!this.dismissButtonDisabled&&R&&setTimeout(function(){G.dismissButtonDisabled=!0},0)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.ENH.YtConditionalRendererBehavior),_.h("design:type",Object)],Xs.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Xs.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],Xs.prototype,"icon_",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.h("design:type",Boolean)],Xs.prototype,"hasIcon_",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.h("design:type",Boolean)],Xs.prototype,"signInIcon_",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Xs.prototype,"compact",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Xs.prototype,"dismissButtonDisabled",void 0);
_.r([_.E({type:Boolean}),_.h("design:type",Object)],Xs.prototype,"shouldRenderReasonAsFormattedString",void 0);_.r([_.Em({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Xs);
_.B(Xs,"yt-player-error-message-renderer",function(){if(yzr===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;XyG===void 0&&(XyG=document.createElement("template"));var R=XyG;I.call(c,R.content.cloneNode(!0),G.content.firstChild);yzr=G}G=yzr;return G},{mode:2});var gN7;var YTG;var yP=function(){return _.J.apply(this,arguments)||this};
_.u(yP,_.J);yP.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
yP.prototype.computeIcon_=function(G){return G?"yt-icons:"+G.iconType.toLowerCase():"error_outline"};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yP.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],yP.prototype,"icon_",void 0);_.r([_.Em({is:"yt-player-kav-renderer",disableElementRegistration:!0})],yP);
_.B(yP,"yt-player-kav-renderer",function(){if(YTG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;gN7===void 0&&(gN7=document.createElement("template"));var R=gN7;I.call(c,R.content.cloneNode(!0),G.content.firstChild);YTG=G}G=YTG;return G},{mode:2});var LsB=_.I3(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.R1(_.W(function(G){var c=_.mX("div"),I=_.Q(_.ks(0,void 0,"jxh75d")),R=I.next().value,Z=I.next().value;I=_.Q(_.ks(null,void 0,"F5Zm8"));var K=I.next().value,m=I.next().value;_.tI(function(){AWB(c.value,Z,m);c.value.scrollIntoView()});
I=$QT.bind(null,G.data,R);_.lx("resize",function(){var a=K();if(R()===1&&a!==null){var O;(O=window.grecaptcha)==null||O.reset(a)}});
return _.e("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.e("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.e("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var a,O;return(a=G.data().accessibility)==null?void 0:(O=a.accessibilityData)==null?void 0:O.label}),_.e(_.ul,{text:I,
className:_.O3("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.e("div",{el:c,class:"ytwPlayerCaptchaViewModelGridItem"})))},"og"),"yt-player-captcha-view-model",{props:{data:_.G9}});var Ssr=!1;_.Gi0=_.W(function(G){var c=G.data;return _.e("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.e(_.l,{cond:function(){return c().icon},
then:function(I){return _.e("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.e(_.yc,{data:I,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.e(_.l,{cond:function(){return c().title},
then:function(I){return _.e("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.e(_.ul,{text:I}))}}),_.e(_.l,{cond:function(){return c().description},
then:function(I){return _.e("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.e(_.ul,{text:I}))}}),_.e(_.sN,{data:function(){return c().primaryButton}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
className:"interstitialViewModelFlexItem"})}}),_.e(_.sN,{data:function(){return c().secondaryButton}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
className:"interstitialViewModelFlexItem"})}}))},"pg");
_.Gi0.idomCompat=!0;var c_u=_.W(function(G){var c=G.data;_.Cs();return _.e("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.e("div",{class:"playerInterstitialRendererScrim"},_.e(_.sN,{data:function(){return c().content}},{interstitialViewModel:_.Gi0})))},"qg");
c_u.idomCompat=!0;_.R1(c_u,"yt-player-interstitial-renderer",{props:{data:_.bl}});var gv=function(){var G=_.J.apply(this,arguments)||this;G.noBackground=!1;G.compact=!1;G.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return G};
_.u(gv,_.J);gv.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"}}}};
gv.prototype.onUpdatePlayerErrorMessageCommand_=function(G){if(_.D(G,yxT)){var c;if(G=(c=_.D(G,yxT))==null?void 0:c.newPlayerErrorMessageRenderer)this.data=G}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],gv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gv.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],gv.prototype,"status",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],gv.prototype,"noBackground",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],gv.prototype,"compact",void 0);_.r([_.Em({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],gv);
var IT1=_.PI()(gv,"yt-playability-error-supported-renderers",function(){if(HG1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;C57===void 0&&(C57=document.createElement("template"));var R=C57;I.call(c,R.content.cloneNode(!0),G.content.firstChild);HG1=G}G=HG1;return G},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var RJu=dcA("ytd-button-renderer");var pOf=void 0,VQr=void 0;var JWf=new wl9;var NB=new _.De("ENTITY_STATE_TOKEN"),Yg=new _.De("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var ZTG=function(G){this.store=G;this.kpi=new _.v$T},VbB=function(G,c,I){var R,Z;
if(!(Z=((R=c.playabilityStatus)==null?void 0:R.status)!=="OK")){G=G.store;var K;Z=c.offlineState&&((K=c.videoDetails)==null?0:K.videoId)?_.v("enable_pl_r_c_cd")?Xk8(G.getState().entities,c.videoDetails.videoId):!!uX8(G.getState().entities,c.videoDetails.videoId):!1}if(Z)return!0;Z=rWg(c);if(Z===1){if(_.v("ab_v_vid_sig")){var m,a=(m=c.videoDetails)==null?void 0:m.videoId;if(!a||!I||a!==I){var O;c=new _.iW("282054944_vid",{kGf:I,bh1:(O=c.videoDetails)==null?void 0:O.videoId});_.hg(c)}}return!0}Wjr=
0;var N,q;O=(a=c.auxiliaryUi)==null?void 0:(N=a.messageRenderers)==null?void 0:(q=N.bkaEnforcementMessageViewModel)==null?void 0:q.displayType;if(Z!==3&&(O==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||O==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;O={reason:_.Gv(_.mJ("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.v("ks_something_wrong_learn_more")?G_b("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Gv(_.mJ("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:_.Gv("282054944")};Kzu(c,{playerErrorMessageRenderer:O});return!1},ziq=function(G,c){if(cpA(c)){_.ND(1,!0);
var I=(I=cpA(c))&&_.MQ0()?I:void 0;I?(Kzu(c,{enforcementMessageViewModel:I}),G.kpi.increment("IN_PLAYER"),_.ND(5)):(G.kpi.increment("SKIP_DISPLAY"),_.ND(2))}},Kzu=function(G,c){G.playabilityStatus=Object.assign({},G.playabilityStatus,{status:"ERROR",
errorScreen:c});G.videoDetails=void 0};
ZTG.prototype.handleResponse=function(G,c){if(G.playabilityStatus){var I,R,Z,K=(c==null?void 0:(I=c.innerTubeRequest)==null?void 0:I.videoId)||(c==null?void 0:(R=c.innerTubeRequest)==null?void 0:(Z=R.playerRequest)==null?void 0:Z.videoId);VbB(this,G,K)&&ziq(this,G)}};
ZTG[FA]=[NB];var pZ0=new _.De("ADBLOCK_DETECTION_SERVICE_TOKEN");var YP=function(G){this.cvK=G};
YP.prototype.bindInnertubeChallengeFetcher=function(G){this.cvK.bicf(G)};
YP.prototype.registerChallengeFetchedCallback=function(G){this.cvK.bcr(G)};
YP.prototype.getLatestChallengeResponse=function(){return this.cvK.blc()};var PaH;PaH=_.I3(["https://static.doubleclick.net/instream/ad_status.js"]);_.QEd=_.D3(PaH);var OTr;_.GG=function(G,c,I){var R=this;this.network=G;this.options=c;this.networkStatusManager=I;this.gB=null;if(c.useBotguardEverywhere){var Z=new _.Te;this.gB=Z.promise;_.Rq.ytAtRC&&_.SR(_.dJ,function(){var K,m;return _.T(function(a){if(a.nextAddress==1){if(!_.Rq.ytAtRC)return a.return();K=m3d(null);return a.yield(R.yE(K),2)}m=a.yieldResult;_.Rq.ytAtRC&&_.Rq.ytAtRC(JSON.stringify(m));_.Vp(a)})});
CLf().then(function(K){var m,a,O,N;return _.T(function(q){if(q.nextAddress==1)return K.bindInnertubeChallengeFetcher(function(w){return R.yE(m3d(w))}),q.yield(yIb(),2);
m=q.yieldResult;a=K.getLatestChallengeResponse();O=a.challenge;if(!O)throw Error("ki");N={challenge:O,cW:yY(O),vm:m,bgChallenge:new Hm};Z.resolve(N);K.registerChallengeFetchedCallback(function(w){w=w.challenge;if(!w)throw Error("li");w={challenge:w,cW:yY(w),vm:m,bgChallenge:new Hm};R.gB=Promise.resolve(w)});
_.Vp(q)})})}else c.preload&&aTF(this,new Promise(function(K){_.W_(_.dJ,function(){K(T5$(R))},0)}))};
OTr=function(G){var c={preload:!0,useBotguardEverywhere:!0},I=!1;if(typeof c==="boolean")var R={preload:c};else typeof c==="undefined"?R={preload:!0}:(R=c,I=!!c.uYu);c=I?void 0:new _.Kk;_.GG.instance=new _.GG(G,R,c);return _.GG.instance};
_.GG.prototype.c6t=function(){var G=this;return _.T(function(c){return c.nextAddress==1?c.yield(Promise.race([G.gB,null]),2):c.return(!!c.yieldResult)})};
_.GG.prototype.cKZ=function(G,c,I){var R=this,Z,K,m;return _.T(function(a){R.gB===null&&aTF(R,T5$(R));Z=!1;K={};m=function(){var O,N,q,w,F;return _.T(function(n){switch(n.nextAddress){case 1:if(!R.options.yv7||!R.options.useBotguardEverywhere){n.jumpTo(2);break}return n.yield(dQr(),3);case 3:return O=n.yieldResult,n.yield((N=O)==null?void 0:N.checkForRefresh(),2);case 2:return n.yield(R.gB,5);case 5:q=n.yieldResult;K.challenge=q.challenge;if(!q.vm){"c1a"in q.cW&&(K.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
n.jumpTo(6);break}w=Object.assign({},{c:q.challenge,e:G},c);_.s9(n,7);Z=!0;return n.yield(q.vm.snapshot({yR:w}),9);case 9:(F=n.yieldResult)?K.webResponse=F:K.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Pl(n,6);break;case 7:_.M3(n),K.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(G==="ENGAGEMENT_TYPE_PLAYBACK"){var U=q.cW,k={};if(U.c6a){var p=Number(_.H1("DCLKSTAT",0));k.reportingStatus=String(Number(U.c)^(isNaN(p)?0:p))}U.c6b&&(k.broadSpectrumDetectionResult=String(Number(U.c)^Number(_.H1("CATSTAT",
0))));K.adblockReporting=k}return n.return(K)}})};
return a.return(Promise.race([m(),eJj(I,function(){var O=Object.assign({},K);Z&&(O.error="ATTESTATION_ERROR_VM_TIMEOUT");return O})]))})};
var m3d=function(G){var c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};G&&(c.interpreterHash=G);return c},T5$=function(G,c){c=c===void 0?0:c;
var I,R,Z,K,m,a,O,N,q,w,F,n;return _.T(function(U){switch(U.nextAddress){case 1:I=m3d(n6T().nSA);if(_.v("att_fet_ks"))return _.s9(U,7),U.yield(G.yE(I),9);_.s9(U,4);return U.yield(N5u(G,I),6);case 6:m=U.yieldResult;Z=m.mJA;K=m.bKQ;R=m;_.Pl(U,3);break;case 4:return _.M3(U),_.Ck(Error("mi`"+c)),lT$(G,864E5),U.return({challenge:"",cW:{},vm:void 0,bgChallenge:void 0});case 9:R=U.yieldResult;if(!R)throw Error("ni");if(!R.challenge)throw Error("oi");Z=R.challenge;K=yY(Z);if("c1a"in K&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("pi");
_.Pl(U,3);break;case 7:a=_.M3(U);_.Ck(a);c++;if(c>=5)return _.Ck(Error("mi`"+c)),lT$(G,864E5),U.return({challenge:"",cW:{},vm:void 0,bgChallenge:void 0});O=1E3*Math.pow(2,c-1)+Math.random()*1E3;return U.return(new Promise(function(k){_.W_(_.dJ,function(){k(T5$(G,c))},O)}));
case 3:N=hrp(K);lT$(G,N*1E3);q=void 0;if(!("c1a"in K&&R.bgChallenge)){U.jumpTo(10);break}w=tQU(R.bgChallenge);_.s9(U,11);return U.yield(DR0(n6T(),w),13);case 13:_.Pl(U,12);break;case 11:return F=_.M3(U),_.Ck(F),U.return({challenge:Z,cW:K,vm:q,bgChallenge:w});case 12:return _.s9(U,14),q=new _.Gp({challenge:w,mgK:{un:"aGIf"}}),U.yield(q.zKM,16);case 16:_.Pl(U,10);break;case 14:n=_.M3(U),_.Ck(n),q=void 0;case 10:return U.return({challenge:Z,cW:K,vm:q,bgChallenge:w})}})},q9W=function(G,c){var I;
return _.T(function(R){if(R.nextAddress==1)return g8(2),_.s9(R,2),R.yield(G.network.yE(c),4);if(R.nextAddress!=2)return(I=R.yieldResult)?I.challenge&&!I.bgChallenge?g8(1):g8(4):g8(3),R.return(I);_.M3(R);g8(3);return R.return(void 0)})};
_.GG.prototype.yE=function(G){var c=this,I;return _.T(function(R){I=c.networkStatusManager;if(!I||I.isNetworkAvailable())return R.return(q9W(c,G));_.pC("att_pna",void 0,"attestation_challenge_fetch");return R.return(new Promise(function(Z){I.listenOnce("publicytnetworkstatus-online",function(){q9W(c,G).then(Z)})}))})};
var wMW=function(G){if(!G)throw Error("ni");if(!G.challenge)throw Error("oi");var c=G.challenge,I=yY(c);if("c1a"in I&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("pi");return Object.assign({},G,{mJA:c,bKQ:I})},N5u=function(G,c){var I,R,Z,K,m;
return _.T(function(a){switch(a.nextAddress){case 1:I=void 0,R=0,Z={};case 2:if(!(R<5)){a.jumpTo(4);break}if(!(R>0)){a.jumpTo(5);break}Z.fCK=1E3*Math.pow(2,R-1)+Math.random()*1E3;return a.yield(new Promise(function(O){return function(N){_.W_(_.dJ,function(){N(void 0)},O.fCK)}}(Z)),5);
case 5:return _.s9(a,7),a.yield(G.yE(c),9);case 9:return K=a.yieldResult,a.return(wMW(K));case 7:I=m=_.M3(a),m instanceof Error&&_.Ck(m);case 8:R++;Z={fCK:void 0};a.jumpTo(2);break;case 4:throw I;}})},aTF=function(G,c){G.gB=c},Fz7=function(G){var c,I,R;
return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(Promise.race([G.gB,null]),2);c=Z.yieldResult;var K=T5$(G);G.gB=K;(I=c)==null||(R=I.vm)==null||R.dispose();_.Vp(Z)})},lT$=function(G,c){var I=Date.now()+c,R=function(){var Z;
return _.T(function(K){Z=I-Date.now();return Z<1E3?K.yield(Fz7(G),0):(_.W_(_.dJ,R,Math.min(Z,6E4)),K.jumpTo(0))})};
R()},eJj=function(G,c){return new Promise(function(I){_.W_(_.dJ,function(){I(c())},G)})};var nmj=function(){};
nmj.prototype.processContext=function(G){var c=_.GG.instance;if(!c)return _.S5();var I=GHA(G);return I?new $h(c.cKZ(I,yWC(G),500).then(function(R){var Z;(G==null?0:(Z=G.innerTubeRequest)==null?0:Z.context)||(G.innerTubeRequest.context={});Z=G.innerTubeRequest.context;Z.request||(Z.request={});Z.request.attestationResponseData=R})):_.S5()};var vmd=function(G){this.innertubeTransportService=G};
vmd.prototype.yE=function(G){_.pC("att_fsr",void 0,"attestation_challenge_fetch");return _.UO(this.innertubeTransportService,G,_.gL(_.REe)).then(function(c){_.pC("att_frr",void 0,"attestation_challenge_fetch");return c})};_.D3W=function(G){this.innertubeTransportService=G};var om0=new _.De("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var U31=function(){},bTd=function(G,c,I,R,Z){var K=_.H1("YPC_MB_URL");
_.i6B(K).then(function(){ueu(K,G,c,I,R,Z)})},ueu=function(G,c,I,R,Z,K){try{var m=_.KM.payments.business.integration,a=_.KM.payments.business.integration.Style.create().withMaterialDesignStyle(),O=m.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.v("enable_window_constrained_buy_flow_dialog")&&(O=O.usingPopupStyle("windowConstrained"));K&&(O=O.usingCloseCallback(K));var N=I?I:_.H1("YPC_GB_LANGUAGE"),q=_.H1("SESSION_INDEX");m.bootstrap.fromPaymentsUrl(G);m.bootstrap.asMashupMode(O).usingGaiaIndex(q).usingLocale(N).usingStyle(a).usingDefaultActivityStatusChangeHandler().inStandaloneContext(m.standaloneContextAuthId.forGaia()).purchaseManager(c,function(w){R&&R(w)}).load(void 0,Z)}catch(w){throw Z&&Z(w),_.hg(w),w;
}};var kid=new _.De("PURCHASE_MANAGER_TOKEN");var sEu=function(){var G=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return G.videos},
getContinuationsPresent:function(){return G.continuationsPresent},
setVideos:function(c){G.videos=c},
getRecommendedVideos:function(){return G.recommendedVideos},
setRecommendedVideos:function(c){G.recommendedVideos=c}}};
sEu.prototype.addVideos=function(G){G&&(this.videos=G.filter(function(c){return!!_.Iy0(c)}).map(function(c){var I=_.Iy0(c);
a:{var R;if(c.playlistVideoRenderer&&((R=c.playlistVideoRenderer)==null?0:R.voteSortTiebreaker))var Z=c.playlistVideoRenderer.voteSortTiebreaker;else{if(_.D(c,ce)){var K;if(R=(Z=_.D(c,ce))==null?void 0:(K=Z.playlistItemData)==null?void 0:K.voteSortTiebreaker){Z=R;break a}}Z=""}}return{itemId:I,videoId:_.KEB(c),voteCount:_.PwT(c),voteSortTiebreaker:Z}}),this.continuationsPresent=!!_.D(G[G.length-1],_.Zo))};
var Lzg=function(G,c){return G.videos.findIndex(function(I){return I.itemId===c})},A_7=function(G,c){return G.recommendedVideos.findIndex(function(I){return I.itemId===c})},$3H=function(G){G={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:G}}}}};_.wH().resolve(_.n4).resolveCommand(G)};var S9r=function(){sEu.apply(this,arguments)};
_.u(S9r,sEu);
var cvT=function(G,c,I,R){if(!G.parentElem)throw Error("ui");var Z=Lzg(G,c);Z===-1&&(Z=A_7(G,c),Z=Z!==-1?Z+G.videos.length:-1);if(Z===-1)throw Error("vi");var K=Z>=G.videos.length?G.recommendedVideos[Z-G.videos.length]:G.videos[Z];K.voteCount=I;K.voteSortTiebreaker=Date.now().toString();Z>=G.videos.length?G.recommendedVideos.splice(Z-G.videos.length,1):G.videos.splice(Z,1);var m=G.videos;for(var a=0,O=m.length-1;a<=O;){var N=Math.floor((a+O)/2);if(m[N].voteCount<K.voteCount)O=N-1;else if(m[N].voteCount>K.voteCount)a=
N+1;else{a:{var q=K.voteSortTiebreaker;var w=m[N].voteSortTiebreaker;if(q.length!==w.length)q=q.length>w.length;else{for(var F=0;F<q.length;F++){var n=q.charCodeAt(F),U=w.charCodeAt(F);if(n>U){q=!0;break a}if(n<U)break}q=!1}}q?O=N-1:a=N+1}}m=a;if(m===-1)throw Error("wi");G.videos.splice(m,0,K);Z!==m&&pMH(G,Z,m,c,I,R)},pMH=function(G,c,I,R,Z,K){var m,a=(m=G.parentElem)==null?void 0:m.children,O=Math.min(c,I),N=Math.max(c,I);
if(a)for(m=O;m<=N;m++)a[m].style.viewTransitionName="item-"+String(m);document.startViewTransition(function(){if(G.parentElem){var q=G.parentElem.children;if(!(!q||c<0||c>=q.length||I<0||I>=q.length)){var w=q[c];if(w){w.remove();G.showRefreshPill=I>=G.videos.length-1&&G.continuationsPresent;if(!G.showRefreshPill){q=q[I]||null;var F;(F=G.parentElem)==null||F.insertBefore(w,q)}_.Xl(G.parentElem,"yt-update-video-data-voting-animation",{toIdx:I,itemId:R,newVoteCount:Z,voteStatus:K,hideItem:G.showRefreshPill})}}}}).finished.then(function(){if(a)for(var q=
O;q<=N;q++)a[q].style.viewTransitionName="";
if(G.showRefreshPill)$3H(_.mJ("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var w;if(w=q=(w=G.parentElem)==null?void 0:w.children[I])w=q.getBoundingClientRect(),q=w.bottom,w=!(w.top>=0&&q<=G.clientHeight);w&&(w=_.aP(c>I?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(c-I)),$3H(w))}})};var zJr=function(G,c){var I=this;G?this.innertubeTransportServicePromise=Promise.resolve(G):c&&(this.innertubeTransportServicePromise=c(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new iQ(3E3,function(R){return Mnj(I,R)},0);
this.validateMiniAppVideoIdRateLimiter=new iQ(3E3,function(R){return Vng(I,R)},1)},OGH=function(G,c){G.JSC$17539_miniAppId=c;
G.reportMiniAppValueRateLimiter=new iQ(3E3,function(I){return Mnj(G,I)},0);
G.validateMiniAppVideoIdRateLimiter=new iQ(3E3,function(I){return Vng(G,I)},1)},NS0=function(G,c){var I;
return _.T(function(R){if(R.nextAddress==1)return R.yield(G.reportMiniAppValueRateLimiter.call(c),2);I=R.yieldResult;return R.return([I,c])})},Mnj=function(G,c){var I,R,Z,K,m,a,O;
return _.T(function(N){switch(N.nextAddress){case 1:return N.yield(G.innertubeTransportServicePromise,2);case 2:return I=N.yieldResult,R=_.gL(ac0),Z=Date.now(),K={externalPostId:G.JSC$17539_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Z/1E3),nanos:Math.round(Z%1E3*1E6)},intValue:""+c}},_.s9(N,3),N.yield(_.UO(I,K,R),5);case 5:m=N.yieldResult;_.Pl(N,4);break;case 3:throw a=_.M3(N),a;case 4:if(m){if("error"in m&&m.error)throw m.error;if(m.errorMetadata)throw Error("xi`"+
m.errorMetadata.status);if(O=m.userStatResult)return N.return(O);throw Error("yi");}throw Error("zi");}})},qTW=function(G){var c,I,R,Z,K;
_.T(function(m){switch(m.nextAddress){case 1:return m.yield(G.innertubeTransportServicePromise,2);case 2:return c=m.yieldResult,I=_.gL(ac0),R={externalPostId:G.JSC$17539_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.s9(m,3),m.yield(_.UO(c,R,I),5);case 5:Z=m.yieldResult;_.Pl(m,4);break;case 3:throw K=_.M3(m),K;case 4:if(Z==null)throw Error("zi");if("error"in Z&&Z.error)throw Z.error;if(Z.errorMetadata)throw Error("xi`"+Z.errorMetadata.status);_.Vp(m)}})};
zJr.prototype.flush=function(){var G=this;return _.T(function(c){return c.nextAddress==1?c.yield(G.reportMiniAppValueRateLimiter.flush(),2):c.yield(G.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var lJF=function(G,c){return _.T(function(I){return I.nextAddress==1?I.yield(G.validateMiniAppVideoIdRateLimiter.call(c),2):I.return(I.yieldResult)})},Vng=function(G,c){var I,R,Z,K,m,a;
return _.T(function(O){switch(O.nextAddress){case 1:return O.yield(G.innertubeTransportServicePromise,2);case 2:return I=O.yieldResult,R=_.gL(cZA),Z={videoId:c},_.s9(O,3),O.yield(_.UO(I,Z,R),5);case 5:K=O.yieldResult;_.Pl(O,4);break;case 3:throw m=_.M3(O),m;case 4:if(K){if("error"in K&&K.error)throw K.error;if(K.errorMetadata)throw Error("xi`"+K.errorMetadata.status);if(a=K.playabilityStatus)return O.return(a.status);throw Error("Ai");}throw Error("zi");}})};
zJr[FA]=[_.qR(_.UU),_.qR(io9)];var EmH=function(){this.clientData=new Map};
EmH.prototype.getData=function(G){return this.clientData.get(G)};var J_F=function(G){this.store=G};
J_F.prototype.handleResponse=function(G){(G=_.D(G.frameworkUpdates,ye))&&_.ln(G,this.store)};
J_F[FA]=[_.Ni];var Wzr=new _.De("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var iTH,fT1,B5W;_.cV=new _.De("FLOW_STATE_MANAGER_TOKEN");iTH=function(){this.flowStates=new Map};
fT1=function(G,c){G=_.Q(G.flowStates.values());for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.flowRenderer.targetId===c)return I};
B5W=function(G,c){var I,R=((I=G.flowRenderer.steps)!=null?I:[]).filter(function(Z){return!c.includes(_.D(Z,_.KJ).stepId)});
G.flowRenderer.steps=R};var r_$=function(G){this.JSC$17563_flowStateManager=G};
_.u(r_$,Af);r_$.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a;return _.T(function(O){I=_.D(G,lup);Z=(R=I)==null?void 0:R.stepIds;m=(K=I)==null?void 0:K.targetId;if(!Z||!m)return O.return();a=fT1(c.JSC$17563_flowStateManager,m);if(!a)return O.return();B5W(a,Z);_.Vp(O)})};
var Im=function(){r_$.apply(this,arguments)};
_.u(Im,r_$);Im[FA]=[_.cV];var jE1=function(G,c){this.JSC$17569_reduxStore=G;this.JSC$17569_flowStateManager=c};
_.u(jE1,Af);
jE1.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F,n,U;return _.T(function(k){I=_.D(G,_.qAN);R=I.stepId;Z=I.targetId;K=fT1(c.JSC$17569_flowStateManager,Z);a=(m=K)==null?void 0:m.flowRenderer;O=a.flowStateEntityKey;N=_.Iw(c.JSC$17569_reduxStore.getState(),O);if(!N)return k.return();q=N.currentStepId;n=(F=(w=N)==null?void 0:w.stepIdStack)!=null?F:[];U=q===n[n.length-1]?R:q;c.JSC$17569_reduxStore.dispatch(_.Wm("flowStateEntity",O,{currentStepId:R,stepIdStack:[U]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Vp(k)})};
var Rm=function(){jE1.apply(this,arguments)};
_.u(Rm,jE1);Rm[FA]=[_.Ni,_.cV];var x3r=function(G,c,I){this.JSC$17576_reduxStore=G;this.JSC$17576_flowStateManager=c;this.JSC$17576_commandHandler=I};
_.u(x3r,Af);
x3r.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F,n,U,k;return _.T(function(p){R=_.D(G,_.wpp);Z=R.targetId;K=fT1(I.JSC$17576_flowStateManager,Z);a=(m=K)==null?void 0:m.flowRenderer;O=a.flowStateEntityKey;N=_.Iw(I.JSC$17576_reduxStore.getState(),O);F=[].concat(_.jn((w=(q=N)==null?void 0:q.stepIdStack)!=null?w:[]));n=F.pop();((U=N)==null?void 0:U.currentStepId)===n&&(n=F[F.length-1]);if(!n)return(k=R.onFirstStepCommand)&&I.JSC$17576_commandHandler.resolveCommand(k,c),p.return();
I.JSC$17576_reduxStore.dispatch(_.Wm("flowStateEntity",O,{currentStepId:n,stepIdStack:F}));_.Vp(p)})};
var Zl=function(){x3r.apply(this,arguments)};
_.u(Zl,x3r);Zl[FA]=[_.Ni,_.cV,_.n4];var tn7=function(G,c){this.innertubeTransportService=G;this.JSC$17581_commandHandler=c};
_.u(tn7,Af);tn7.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1){R=_.D(G,F4V);if(!R)return O.return();_.s9(O,2);return O.yield(_.CQ(I.innertubeTransportService,G),4)}if(O.nextAddress!=2){Z=O.yieldResult;if(!Z)return O.return();(K=Z.updateFlowCommand)&&I.JSC$17581_commandHandler.resolveCommand(K,c);return _.Pl(O,0)}_.M3(O);(a=(m=R)==null?void 0:m.onFailureCommand)&&I.JSC$17581_commandHandler.resolveCommand(a,c);_.Vp(O)})};
var Kl=function(){tn7.apply(this,arguments)};
_.u(Kl,tn7);Kl[FA]=[_.UU,_.n4];var hJ1=function(G,c){this.JSC$17587_flowStateManager=G;this.JSC$17587_commandHandler=c};
_.u(hJ1,Af);
hJ1.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m;return _.T(function(a){R=_.D(G,_.vOK);Z=R.targetId;K=fT1(I.JSC$17587_flowStateManager,Z);if(!K)return a.return(Promise.resolve());var O=K,N=(m=R.steps)!=null?m:[],q,w=(q=O.flowRenderer.steps)!=null?q:[];N=[].concat(_.jn(w),_.jn(N));O.flowRenderer.steps=N;R.flowContinuationCommand&&(K.flowRenderer.flowContinuationCommand=R.flowContinuationCommand);R.entityUpdateCommand&&I.JSC$17587_commandHandler.resolveCommand(R.entityUpdateCommand,c);
return a.return(Promise.resolve())})};
var PV=function(){hJ1.apply(this,arguments)};
_.u(PV,hJ1);PV[FA]=[_.cV,_.n4];var d3$={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var CaG=new _.De("ICON_SET_TOKEN"),HTu=new _.De("ICON_URL_PROVIDER_TOKEN"),XMd=new _.De("PREFETCH_ICONS_TOKEN"),y_7=new _.De("ICON_MAP_FN_TOKEN");var Q3={},gmF=(Q3.ACCESS_TIME="clock",Q3.ACCOUNT_BOX=_.H1("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",Q3.ACCOUNT_BOX_CAIRO="person_account_cairo",Q3.ACCOUNT_CIRCLE="person_circle",Q3.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Q3.ACCOUNT_LINKED="account_link_success",Q3.ACCOUNT_UNLINKED="account_link",Q3.ADD_FRIEND="people",Q3.ADD_MODERATOR="shield_add",Q3.ADD_TO_LIBRARY="bookmark",Q3.ADD_TO_PLAYLIST="add",Q3.ADD_TO_QUEUE_TAIL="list_queue",Q3.ADD_TO_REMOTE_QUEUE="list_music",
Q3.ADD_TO_WATCH_LATER="clock",Q3.ADD_VIDEO_LINK="film_strip_add",Q3.ALERT_WARN_RED="alert_triangle",Q3.ARROW_BACK="arrow_left",Q3.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Q3.ARROW_DROP_DOWN="chevron_down",Q3.ARROW_DROP_UP="chevron_up",Q3.ARROW_FORWARD="arrow_right",Q3.ARTIST="person_music",Q3.AUDIOTRACK="audio",Q3.AUTO_AWESOME="sparkle",Q3.AVATAR_ANONYMOUS="person_circle",Q3.AVATAR_LOGGED_OUT="person_circle",Q3.BACK="arrow_left",Q3.BAR_CHART="bar_graph",Q3.BLOCK="slash_circle_left",
Q3.BLOCK_USER="slash_circle_left",Q3.BOOKMARK_BORDER="bookmark",Q3.BREAKING_NEWS_ALT_1="article_alert",Q3.BROADCAST_CAIRO="podcast_cairo",Q3.BUG_REPORT="bug",Q3.CAMERA_ALT="camera",Q3.CAMPAIGN="megaphone",Q3.CANCEL="x_circle",Q3.CAPTIONS="closed_caption",Q3.CAST_OUTLINE="chromecast",Q3.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Q3.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Q3.CHAT="message_bubble_left",Q3.CHAT_BUBBLE="message_bubble_empty",Q3.CHAT_SPARK="spark_message_bubble_left",Q3.CHECK_BOX_OUTLINE_BLANK=
"box_empty",Q3.CHECK_CIRCLE_OUTLINE="check_circle",Q3.CHECK_CIRCLE_THICK="check_circle",Q3.CLARIFY="article_clarify",Q3.CLOSED_CAPTION_SELECTED="closed_caption",Q3.CLOSE="x_mark",Q3.CLOUD_UPLOAD="cloud_arrow_up",Q3.COLLAPSE="chevron_up",Q3.COLLAPSE_CAIRO="chevron_up_cairo",Q3.COLLECTION="layers",Q3.COLOR_LENS="palette",Q3.COMMENT="message_bubble_right",Q3.CONSENT_SHIELD="person_shield",Q3.CONTENT_CUT="scissors",Q3.CONTENT_CUT_CAIRO="scissors_cairo",Q3.COURSE=_.v("web_enable_course_icon_update")?"creator_academy":
"lightbulb",Q3.COURSE_CAIRO=_.v("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",Q3.CREATION_LIVE="radar_live",Q3.CREATION_POST="box_pencil",Q3.CREATION_UPLOAD="my_videos",Q3.CREATION_UPLOAD_RED="upload",Q3.CREATOR_METADATA_MONETIZATION="dollar_sign",Q3.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Q3.CREATOR_STUDIO="youtube_studio",Q3.DASHBOARD="grid_asymmetrical",Q3.DELETE="trash_can",Q3.DELETE_SWEEP="trash_can",Q3.DESKTOP="laptop",Q3.DISLIKE="thumb_down",Q3.DISLIKE_SELECTED=
"thumb_down",Q3.DISMISSAL="x_mark",Q3.DISMISS_QUEUE="list_remove",Q3.DONE_ALL="check_double",Q3.DOWN_ARROW="arrow_down",Q3.DO_NOT_DISTURB="slash_circle_left",Q3.DRAFT="paper_corner_folded",Q3.DRAG_HANDLE="bars_2",Q3.EDIT="pencil",Q3.EMOJI="face_very_happy",Q3.EMOJI_FLAGS="flag",Q3.EMOJI_OBJECTS="lightbulb",Q3.EMOJI_PEOPLE="face_very_happy",Q3.EMOJI_RECENT="clock",Q3.EMPTY_HEART="heart",Q3.EMPTY_LIKE="thumb_up",Q3.ERROR_BLACK="alert_circle",Q3.ERROR_OUTLINE="alert_circle",Q3.EXIT_APP="arrow_in",Q3.EXIT_TO_APP=
"arrow_in",Q3.EXPAND="chevron_down",Q3.EXPAND_ALL="chevron_expand",Q3.EXPAND_CAIRO="chevron_down_cairo",Q3.EXPAND_LESS="chevron_up",Q3.EXPAND_MORE="chevron_down",Q3.EXPLORE="compass",Q3.EXPLORE_DESTINATION="compass",Q3.EXTERNAL_LINK="open_new",Q3.FAB_UPLOAD="upload",Q3.FACE_HAPPY_OUTLINE="face_happy",Q3.FACT_CHECK="article_check",Q3.FASHION_LOGO="fashion",Q3.FASHION_LOGO_CAIRO="fashion_cairo",Q3.FAVORITE="heart",Q3.FEEDBACK="message_bubble_alert",Q3.FEEDBACK_CAIRO="message_bubble_alert_cairo",Q3.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Q3.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Q3.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Q3.FILTER="menu_filter",Q3.FIRST_PAGE="chevron_first",Q3.FLAG="flag",Q3.FULL_HEART="heart",Q3.GAME_CONSOLE_DPAD="game_console_dpad",Q3.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Q3.GAMING_LOGO="gaming",Q3.GAMING_LOGO_CAIRO="gaming_cairo",Q3.GO_TO_PAGE="arrow_right",Q3.GROUPS="people_group",Q3.HAPPY="face_happy",Q3.HEALTH_AND_SAFETY="shield_plus",Q3.HELP="question_circle",Q3.HELP_CAIRO=
"question_circle_cairo",Q3.HELP_OUTLINE="question_circle",Q3.HIDE="slash_circle_left",Q3.IMAGE="image",Q3.INFINITY_ICON="infinity",Q3.INFO="info_circle",Q3.INFO_OUTLINE="info_circle",Q3.INSERT_CHART="bar_graph_box_vertical",Q3.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Q3.INSERT_PHOTO="image",Q3.KEEP="pin",Q3.KEEP_OFF="pin_off",Q3.KEYBOARD="keyboard",Q3.KEYBOARD_ARROW_DOWN="chevron_down",Q3.KEYBOARD_ARROW_UP="chevron_up",Q3.KIDS_BLOCK="slash_circle_left",Q3.LANGUAGE="globe",Q3.LAST_PAGE="chevron_last",
Q3.LAUNCH="open_new",Q3.LEARNING="lightbulb",Q3.LEARNING_CAIRO="lightbulb_cairo",Q3.LIBRARY_ADD=Tzb("library_add"),Q3.LIBRARY_OUTLINE="library",Q3.LIBRARY_REMOVE=Tzb(),Q3.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Q3.LIKES_PLAYLIST="thumb_up",Q3.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Q3.LIKE="thumb_up",Q3.LIKE_SELECTED="thumb_up",Q3.LIVE="radar_live",Q3.LIVE_CAIRO="radar_live_cairo",Q3.LIVE_UNLISTED="link",Q3.LOCATION_ON="location_point",Q3.LOCATION_PIN="location_point",Q3.LOOP="arrow_repeat",Q3.LOOP_ACTIVE=
"arrow_repeat",Q3.LOOP_ONE="arrow_repeat_1",Q3.LOOP_ONE_ACTIVE="arrow_repeat_1",Q3.MEH="face_meh",Q3.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Q3.MESSAGE="message_bubble_left",Q3.MICROPHONE_ON="mic",Q3.MIX="youtube_mix",Q3.MONETIZATION_ON="dollar_sign_circle",Q3.MONEY_FILL="dollar_sign_container",Q3.MONEY_FILL_JPY="yen_sign_container",Q3.MONEY_HEART="dollar_sign_heart",Q3.MORE_HORIZ="overflow_horizontal",Q3.MORE_VERT="overflow_vertical",Q3.MUSIC="audio",Q3.MUSIC_CAIRO="audio_cairo",Q3.MUSIC_NOTE_SYMBOL=
"music",Q3.MUSIC_SHUFFLE="arrow_shuffle",Q3.MY_CHANNEL="person_circle",Q3.MY_LOCATION="location_point",Q3.NEWS_STORY="news",Q3.NEXT="chevron_right",Q3.NOTIFICATIONS="bell",Q3.NOTIFICATIONS_ACTIVE="bell_on",Q3.NOTIFICATIONS_CAIRO="bell_cairo",Q3.NOTIFICATIONS_DONE_CHECKMARK="check",Q3.NOTIFICATIONS_INBOX="bell",Q3.NOTIFICATIONS_NONE="bell",Q3.NOTIFICATIONS_OFF="bell_off",Q3.NOT_INTERESTED="slash_circle_left",Q3.OFFICIAL_ARTIST_BADGE="audio",Q3.OFFLINE_CLOUD="cloud_off",Q3.OFFLINE_DOWNLOAD="download",
Q3.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Q3.OFFLINE_PAUSE="pause",Q3.OPEN_IN_NEW="open_new",Q3.OUTLINE_ADJUST="adjust",Q3.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Q3.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Q3.OUTLINE_BAG="bag",Q3.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Q3.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Q3.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Q3.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Q3.PAID="dollar_sign",Q3.PAUSE_OUTLINED="pause",Q3.PAYMENT=
"credit_card",Q3.PERSON_RADAR_FILLED="person_radar",Q3.PHONE_DOWNLOAD="mobile_download",Q3.PLAYABLES_LOGO="tic_tac_toe",Q3.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Q3.PLAYLISTS="list_play_arrow",Q3.PLAYLISTS_CAIRO="list_play_arrow_cairo",Q3.PLAYLIST_ADD=Tzb("list_add"),Q3.PLAYLIST_ADD_CHECK=Tzb("list_check"),Q3.PLAYLIST_PLAY="list_play_arrow",Q3.PLAY_ALL="play_arrow",Q3.PLAY_CIRCLE="play_arrow_circle",Q3.PLAY_OUTLINED="play_arrow_circle",Q3.PRIVACY_INFO="shield",Q3.PRIVACY_PRIVATE="lock",Q3.PRIVACY_PUBLIC=
"earth",Q3.PRIVACY_UNLISTED="link",Q3.PROMOTE="megaphone",Q3.PURCHASES="price_tag",Q3.PURCHASE_SUPER_CHAT="super_chat",Q3.PURCHASE_SUPER_STICKER="super_sticker",Q3.QUESTION_ANSWER="message_bubble_question",Q3.QUEUE_PLAY_LAST="list_queue_last",Q3.QUEUE_PLAY_NEXT="list_play_arrow",Q3.REMIX_FILLED="youtube_shorts_remix",Q3.REMOVE="bar_circle",Q3.REMOVE_CIRCLE="bar_circle",Q3.REMOVE_CIRCLE_OUTLINE="bar_circle",Q3.REMOVE_DONE="check_double_off",Q3.REMOVE_FROM_HISTORY="bar_circle",Q3.REMOVE_FROM_PLAYLIST=
"bar_circle",Q3.REMOVE_MODERATOR="shield_off",Q3.REPLAY="arrow_circle",Q3.REPLAY_10="skip_back_10",Q3.REPORT_PROBLEM="alert_triangle",Q3.SAD="face_sad",Q3.SAVE_PLAYLIST="bookmark",Q3.SCHEDULE="clock",Q3.SCHOOL="creator_academy",Q3.SCREEN_FULLSCREEN="screen_full",Q3.SEARCH_HISTORY="arrow_time",Q3.SELL="price_tag",Q3.SETTINGS="gear",Q3.SETTINGS_CAIRO="gear_cairo",Q3.SETTINGS_LIGHT="gear",Q3.SETTINGS_MATERIAL="gear",Q3.SHARE_ARROW="share",Q3.SHIELD_WITH_AVATAR="person_shield",Q3.SHOPPING_BAG="bag",Q3.SHOPPING_BAG_CAIRO=
"bag_cairo",Q3.SHOPPING_CART="cart",Q3.SHORTS_COMMENT="youtube_shorts_message_bubble_right",Q3.SHORTS_DISLIKE="youtube_shorts_thumb_down",Q3.SHORTS_LIKE="youtube_shorts_thumb_up",Q3.SHORTS_SHARE="youtube_shorts_share",Q3.SHUFFLE="arrow_shuffle",Q3.SLOW_MODE_OFF="message_bubble_left",Q3.SOCIAL="people",Q3.SORT="menu_sort",Q3.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Q3.SPEED_1X="1x",Q3.SPEED_1_POINT_2X="1_point_2x",Q3.SPEED_1_POINT_5X="1_point_5x",Q3.SPEED_1_POINT_8X="1_point_8x",Q3.SPEED_2X="2x",
Q3.SPEED_POINT_2X="point_2x",Q3.SPEED_POINT_8X="point_8x",Q3.SPONSORSHIP_STAR="star_circle",Q3.STAFF_PICK="spotlight",Q3.START_DVR="add",Q3.STAR_BORDER="star",Q3.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Q3.STICKER_EMOTICON="face_happy",Q3.STOP_DVR="stop",Q3.SUBSCRIBE="youtube_logo_icon",Q3.SUBSCRIBE_PLUS="add_cairo",Q3.SUBSCRIPTION_MANAGER="gear",Q3.SUPERVISOR_ACCOUNT="people",Q3.SUPER_CHAT_FOR_GOOD="hands_heart",Q3.SWAP_HORIZ="arrow_swap_horizontal",Q3.SWITCH_ACCOUNTS="person_account",Q3.TAB_ACCOUNT=
"person",Q3.TAB_ACTIVITY="bell",Q3.TAB_BOOKMARK="bookmark",Q3.TAB_EXPLORE="compass",Q3.TAB_HOME="home",Q3.TAB_HOME_CAIRO="home_cairo",Q3.TAB_INBOX="mail",Q3.TAB_LIKED="thumb_up",Q3.TAB_MUSIC_PREMIUM="youtube_music",Q3.TAB_SHORTS="youtube_shorts",Q3.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Q3.TAB_SUBSCRIPTIONS="subscriptions",Q3.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Q3.TAB_TRENDING="fire",Q3.TIMER="stopwatch",Q3.TRAILER="youtube_originals",Q3.TRENDING="fire",Q3.TRENDING_CAIRO="fire_cairo",Q3.TRENDING_DOWN=
"rating_down",Q3.TRENDING_UP="rating_up",Q3.TROPHY="trophy",Q3.TROPHY_CELEBRATIONS="fireworks",Q3.TUNE="adjust",Q3.UNBLOCK_USER="bar_circle",Q3.UNLIMITED="youtube_logo_icon",Q3.UNPLUGGED_LIVE_GUIDE="radar_live",Q3.UNPLUGGED_SPORTS="eye_off",Q3.UPLOADS="library",Q3.UP_ARROW="arrow_up",Q3.VERTICAL_ALIGN_BOTTOM="download",Q3.VERY_HAPPY="face_very_happy",Q3.VERY_SAD="face_very_sad",Q3.VIDEOGAME_ASSET="gaming",Q3.VIDEOS="play_arrow_circle",Q3.VIDEO_CALL="video_camera_add",Q3.VIDEO_LIBRARY_WHITE="library",
Q3.VIDEO_YOUTUBE="youtube_logo_icon",Q3.VIEW_LIST="list_view",Q3.VIEW_LIST_CAIRO="list_view_cairo",Q3.VISIBILITY="eye",Q3.VISIBILITY_OFF="eye_off",Q3.VOLUME_MUTE="volume_off",Q3.VOLUME_UP="volume_on",Q3.WALLPAPER="image",Q3.WARNING="alert_triangle",Q3.WATCH_HISTORY="arrow_time",Q3.WATCH_HISTORY_CAIRO="arrow_time_cairo",Q3.WATCH_LATER="clock",Q3.WATCH_LATER_CAIRO="clock_cairo",Q3.WATCH_RELATED_MIX="youtube_mix",Q3.WHAT_TO_WATCH="home",Q3.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Q3.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",Q3.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Q3.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Q3.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Q3.YT_OUTLINE_MUSIC_24="music",Q3);var mF={},Y9W=(mF.ACCESS_TIME="clock",mF.ACCOUNT_BOX="person_square",mF.ACCOUNT_BOX_CAIRO="person_square",mF.ACCOUNT_CIRCLE="person_circle",mF.ACCOUNT_CIRCLE_CAIRO="person_circle",mF.ACCOUNT_LINKED="account_link",mF.ACCOUNT_UNLINKED="account_link",mF.ADD_CIRCLE="add_circle",mF.ADD_CIRCLE_OUTLINE="add_circle",mF.ADD_FRIEND="person_child",mF.ADD_MODERATOR="shield_add",mF.ADD_TO_LIBRARY="bookmark",mF.ADD_TO_PLAYLIST="add",mF.ADD_TO_QUEUE_TAIL="queue",mF.ADD_TO_REMOTE_QUEUE="playlist_audio",mF.ADD_TO_WATCH_LATER=
"clock",mF.ADD_VIDEO_LINK="film_strip_add",mF.ADMIN_PANEL_SETTINGS="person_gear",mF.ALERT_WARN_RED="alert_triangle",mF.ALIGN_LEFT="text_align_left",mF.ARROWS_ALERT="arrow_split_alert",mF.ARROW_BACK="arrow_left",mF.ARROW_CIRCLE="arrow_counterclockwise",mF.ARROW_CIRCLE_PLAY="replay",mF.ARROW_CIRCLE_RIGHT="arrow_clockwise",mF.ARROW_DIAGONAL="arrow_up_left",mF.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",mF.ARROW_DROP_DOWN="triangle_down",mF.ARROW_DROP_UP="triangle_up",mF.ARROW_FORWARD="arrow_right",mF.ARROW_PAUSE=
"pause_history",mF.ARROW_UNDO="undo",mF.ARTICLE="text_page",mF.ARTICLE_ALERT="text_page_alert",mF.ARTICLE_CHECK="text_page_check",mF.ARTICLE_CLARIFY="text_page_info",mF.ARTIST="person_audio",mF.AUDIOTRACK="audio",mF.AUDIO_BADGE="audio_badge",mF.AUDIO_SURROUND="surround_sound",mF.AUTO_AWESOME="sparkles",mF.AVATAR_ANONYMOUS="person_circle",mF.AVATAR_LOGGED_OUT="person_circle",mF.BACK="arrow_left",mF.BAR_CHART="chart_bar",mF.BAR_CIRCLE="minus_circle",mF.BAR_HORIZONTAL="minus",mF.BLOCK="circle_slash",
mF.BLOCK_USER="circle_slash",mF.BOOKMARK_BORDER="bookmark",mF.BOX_OPEN_CHECK="quiz",mF.BOX_PENCIL="square_pencil",mF.BOX_STACK_3="square3_stack",mF.BREAKING_NEWS_ALT_1="text_page_alert",mF.BROADCAST="podcast",mF.BROADCAST_CAIRO="podcast",mF.BUG_REPORT="bug",mF.CAMERA_ALT="camera",mF.CAMPAIGN="megaphone",mF.CANCEL="x_circle",mF.CAPTIONS="closed_captions",mF.CAST_ICON="chromecast",mF.CAST_OUTLINE="chromecast",mF.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",mF.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
mF.CHAT="text_bubble",mF.CHAT_BUBBLE="bubble",mF.CHECK_BOX="check_square",mF.CHECK_BOX_OUTLINE_BLANK="square",mF.CHECK_CIRCLE_FILLED="check_circle",mF.CHECK_CIRCLE_OUTLINE="check_circle",mF.CHECK_CIRCLE_THICK="check_circle",mF.CHECK_DOUBLE="check_done",mF.CHECK_DOUBLE_OFF="check_done_slash",mF.CHEVRON_LEFT="chevron_left",mF.CHEVRON_RIGHT="chevron_right",mF.CHEVRON_RIGHT_CAIRO="chevron_right",mF.CIRCLES_OVERLAP="account_link",mF.CLAPPERBOARD_CAIRO="clapperboard",mF.CLARIFY="text_page_info",mF.CLOCK_ARROWS=
"clock_split",mF.CLOCK_ARROWS_ALERT="clock_split_alert",mF.CLOSED_CAPTION="closed_captions",mF.CLOSED_CAPTION_SELECTED="closed_captions",mF.CLOSE="x",mF.CLOUD_UPLOAD="cloud_arrow_up",mF.COLLAPSE="chevron_up",mF.COLLAPSE_CAIRO="chevron_up",mF.COLLECTION="square3d_stack",mF.COLOR_LENS="paint_palette",mF.COMMENT="text_bubble",mF.CONSENT_SHIELD="person_shield",mF.CONTENT_CUT="scissors",mF.CONTENT_CUT_CAIRO="scissors",mF.COURSE="graduation_cap",mF.COURSE_CAIRO="graduation_cap",mF.CREATION_LIVE="live",
mF.CREATION_POST="square_pencil",mF.CREATION_UPLOAD="video",mF.CREATION_UPLOAD_RED="upload",mF.CREATOR_ACADEMY="graduation_cap",mF.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",mF.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",mF.CREATOR_STUDIO="youtube_studio",mF.DARK_THEME="theme",mF.DELETE="trash_can",mF.DELETE_SWEEP="trash_can",mF.DESKTOP="laptop",mF.DISLIKE="thumb_down",mF.DISLIKE_SELECTED="thumb_down",mF.DISMISSAL="x",mF.DISMISS_QUEUE="playlist_x",mF.DOGFOOD="pawprint",mF.DOLLAR_SIGN=
"dollar_sign_circle",mF.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",mF.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",mF.DOWN_ARROW="arrow_down",mF.DO_NOT_DISTURB="circle_slash",mF.DRAFT="document",mF.DRAG_HANDLE="equal",mF.EARTH="globe",mF.EDIT="pencil",mF.EMOJI="face_very_happy",mF.EMOJI_FLAGS="flag",mF.EMOJI_OBJECTS="lightbulb",mF.EMOJI_PEOPLE="face_very_happy",mF.EMOJI_RECENT="clock",mF.EMPTY_HEART="heart",mF.EMPTY_LIKE="thumb_up",mF.ERROR_BLACK="alert_circle",mF.ERROR_OUTLINE="alert_circle",mF.ERROR_WHITE=
"alert_circle",mF.EXIT_APP="arrow_in",mF.EXIT_TO_APP="arrow_in",mF.EXPAND="chevron_down",mF.EXPAND_ALL="chevron_expand",mF.EXPAND_CAIRO="chevron_down",mF.EXPAND_LESS="chevron_up",mF.EXPAND_MORE="chevron_down",mF.EXPLORE="compass",mF.EXPLORE_DESTINATION="compass",mF.EXTERNAL_LINK="arrow_up_right",mF.EYE_OFF="eye_slash",mF.FAB_UPLOAD="upload",mF.FACE_HAPPY_OUTLINE="face_happy",mF.FACE_MEH="face_neutral",mF.FACT_CHECK="text_page_check",mF.FASHION_LOGO="fashion",mF.FASHION_LOGO_CAIRO="fashion",mF.FAVORITE=
"thumb_up",mF.FEEDBACK="alert_bubble",mF.FEEDBACK_CAIRO="alert_bubble",mF.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",mF.FILL_ARROW_SOLID_UP_16="arrow_solid_up",mF.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",mF.FIRST_PAGE="chevron_left_end",mF.FLAG_CAIRO="flag",mF.FLASH_OFF="flash_slash",mF.FLASH_ON="flash",mF.FULL_HEART="heart",mF.GAMING_LOGO="gaming",mF.GAMING_LOGO_CAIRO="gaming",mF.GO_TO_PAGE="arrow_right",mF.GRID_ASYMMETRICAL="dashboard",mF.GROUPS="person3",mF.HAND_SWIPE_LEFT="gesture_swipe_left",
mF.HAND_SWIPE_RIGHT="gesture_swipe_right",mF.HAPPY="face_happy",mF.HEALTH_AND_SAFETY="shield_health",mF.HEART_BOX="heart_cube",mF.HELP="help_circle",mF.HELP_CAIRO="help_circle",mF.HELP_OUTLINE="help_circle",mF.HIDE="circle_slash",mF.INCOGNITO_CAIRO="incognito",mF.INFINITY_ICON="infinity",mF.INFO="info_circle",mF.INFO_OUTLINE="info_circle",mF.INSERT_CHART="chart_bar_square",mF.INSERT_CHART_OUTLINED="chart_bar_square",mF.INSERT_PHOTO="image",mF.KEEP="pin",mF.KEEP_OFF="pin_slash",mF.KEYBOARD="keyboard",
mF.KEYBOARD_ARROW_DOWN="chevron_down",mF.KEYBOARD_ARROW_UP="chevron_up",mF.KIDS_BLOCK="circle_slash",mF.LANGUAGE="globe",mF.LAST_PAGE="chevron_right_end",mF.LAUNCH="arrow_up_right",mF.LEARNING="lightbulb",mF.LEARNING_CAIRO="lightbulb",mF.LIBRARY_ADD="bookmark",mF.LIBRARY_IMAGE="image_stack",mF.LIBRARY_MUSIC="audio_square_stack",mF.LIBRARY_OUTLINE="play_square_stack",mF.LIBRARY_REMOVE="bookmark",mF.LIBRARY_SAVED="check_square_stack",mF.LIKES_PLAYLIST="thumb_up",mF.LIKES_PLAYLIST_CAIRO="thumb_up",mF.LIKE=
"thumb_up",mF.LIKE_SELECTED="thumb_up",mF.LIST_QUEUE="queue",mF.LIVE_CAIRO="live",mF.LIVE_UNLISTED="link",mF.LOCATION_ON="location_pin",mF.LOCATION_PIN="location_pin",mF.LOCATION_POINT="location_pin",mF.LOOP="repeat",mF.LOOP_ACTIVE="repeat",mF.LOOP_ONE="repeat1",mF.LOOP_ONE_ACTIVE="repeat1",mF.MEET="google_meet",mF.MEH="face_neutral",mF.MEMBERSHIPS="memberships",mF.MEMBERS_ONLY_MODE_OFF="text_bubble",mF.MENU_FILTER="filter",mF.MESSAGE="text_bubble",mF.MESSAGE_BUBBLE_GEAR="bubble_gear",mF.MESSAGE_BUBBLE_LEFT=
"text_bubble",mF.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",mF.MESSAGE_BUBBLE_OVERLAP="bubble_stack",mF.MESSAGE_BUBBLE_QUESTION="help_bubble",mF.MICROPHONE_ON="mic",mF.MONETIZATION_ON="dollar_sign_circle",mF.MONEY_FILL="dollar_sign_rectangle",mF.MONEY_FILL_JPY="yen_sign_rectangle",mF.MONEY_HAND="dollar_sign_circle_hand",mF.MONEY_HEART="dollar_sign_heart",mF.MOON_Z="sleep_timer",mF.MORE_HORIZ="overflow_horizontal",mF.MORE_VERT="overflow_vertical",mF.MUSIC="audio",mF.MUSIC_CAIRO="audio",mF.MUSIC_EXPLICIT_BADGE=
"explicit",mF.MUSIC_NEW_RELEASE="audio_badge",mF.MUSIC_NOTE_SYMBOL="audio",mF.MUSIC_SCISSORS="audio_scissors",mF.MUSIC_SHUFFLE="shuffle",mF.MY_CHANNEL="person_circle",mF.MY_LOCATION="location_pin",mF.MY_VIDEOS="video",mF.MY_VIDEOS_CAIRO="video",mF.NEWS_CAIRO="news",mF.NEWS_STORY="news",mF.NEXT="chevron_right",mF.NOTE_ADD="bubble_pencil",mF.NOTIFICATIONS="bell",mF.NOTIFICATIONS_ACTIVE="bell_waves",mF.NOTIFICATIONS_CAIRO="bell",mF.NOTIFICATIONS_DONE_CHECKMARK="check",mF.NOTIFICATIONS_INBOX="bell",mF.NOTIFICATIONS_NONE=
"bell",mF.NOTIFICATIONS_OFF="bell_slash",mF.NOT_INTERESTED="circle_slash",mF.OFFICIAL_ARTIST_BADGE="audio",mF.OFFLINE_CLOUD="cloud_slash",mF.OFFLINE_DOWNLOAD="download",mF.OFFLINE_DOWNLOAD_CAIRO="download",mF.OFFLINE_PAUSE="pause",mF.OPEN_IN_NEW="arrow_up_right",mF.OUTLINE_ADJUST="adjust",mF.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",mF.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",mF.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",mF.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",mF.OUTLINE_BAG="bag",mF.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",mF.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",mF.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",mF.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",mF.PAID="dollar_sign_circle",mF.PAUSE_OUTLINED="pause",mF.PAYMENT="credit_card",mF.PEOPLE="person_child",mF.PEOPLE_2="person2_rectangle",mF.PEOPLE_GROUP="person3",mF.PEOPLE_NOTE="bubble_asterisk",mF.PERSON_2="person2",mF.PERSON_ACCOUNT="person_square_stack",mF.PERSON_MINUS="person_x",mF.PERSON_MUSIC="person_audio",mF.PERSON_RADAR="person_waves",
mF.PERSON_RADAR_FILLED="person_waves",mF.PERSON_SETTING="person_gear",mF.PHONE="phone",mF.PHONE_DOWNLOAD="mobile_arrow_down",mF.PICTURE_IN_PICTURE="picture_in_picture",mF.PLAYABLES_LOGO="playables",mF.PLAYABLES_LOGO_CAIRO="playables",mF.PLAYLISTS="playlist",mF.PLAYLISTS_CAIRO="playlist",mF.PLAYLIST_ADD_CHECK="bookmark",mF.PLAY_ALL="play",mF.PLAY_ARROW="play",mF.PLAY_ARROW_CIRCLE="play_circle",mF.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",mF.PLAY_CIRCLE="play_circle",mF.PLAY_OUTLINED="play_circle",
mF.PODCAST_ADD="podcast_add",mF.PODCAST_CHECK="podcast_check",mF.PRIVACY_INFO="shield_x",mF.PRIVACY_PRIVATE="lock",mF.PRIVACY_PUBLIC="globe",mF.PRIVACY_UNLISTED="link",mF.PROMOTE="megaphone",mF.PURCHASES="price_tag",mF.PURCHASE_SUPER_CHAT="super_chat",mF.PURCHASE_SUPER_STICKER="super_sticker",mF.QUESTION_ANSWER="help_bubble",mF.QUESTION_CIRCLE="help_circle",mF.QUEUE_PLAY_LAST="queue_last",mF.QUEUE_PLAY_NEXT="queue_next",mF.QUOTATION_MARK="quote",mF.RADAR_LIVE="live",mF.REMOVE="minus_circle",mF.REMOVE_CIRCLE=
"minus_circle",mF.REMOVE_CIRCLE_OUTLINE="minus_circle",mF.REMOVE_FROM_HISTORY="minus_circle",mF.REMOVE_FROM_PLAYLIST="minus_circle",mF.REMOVE_MODERATOR="shield_slash",mF.REPLAY="arrow_counterclockwise",mF.REPLAY_10="skip10_back",mF.REPLAY_ARROW="replay",mF.REPORT_PROBLEM="alert_triangle",mF.RSS_OFF="rss_slash",mF.SAD="face_sad",mF.SAVE_PLAYLIST="bookmark",mF.SCHEDULE="clock",mF.SCHOOL="graduation_cap",mF.SCREEN_DEFAULT="player_default",mF.SCREEN_FULLSCREEN="player_full_enter",mF.SCREEN_LIGHT="ambient_mode",
mF.SCREEN_ROTATION="rotate_portrait",mF.SCREEN_SWITCH="player_switch",mF.SCREEN_THEATRE="player_theater",mF.SEARCH_CAIRO="search",mF.SEARCH_HISTORY="history",mF.SELL="price_tag",mF.SETTINGS="gear",mF.SETTINGS_CAIRO="gear",mF.SETTINGS_LIGHT="gear",mF.SETTINGS_MATERIAL="gear",mF.SETTINGS_REMOTE="remote_waves",mF.SHARE="share",mF.SHARE_ARROW="share",mF.SHARE_CAIRO="share",mF.SHIELD="shield_x",mF.SHIELD_EMPTY="shield",mF.SHIELD_OFF="shield_slash",mF.SHIELD_WITH_AVATAR="person_shield",mF.SHOPPING_BAG=
"bag",mF.SHOPPING_BAG_CAIRO="bag",mF.SHOPPING_CART="cart",mF.SHORTS_COMMENT="text_bubble",mF.SHORTS_DISLIKE="thumb_down",mF.SHORTS_LIKE="thumb_up",mF.SHORTS_SHARE="share",mF.SKIP_FORWARD_30="skip30_forward",mF.SLASH_CIRCLE_LEFT="circle_slash",mF.SLASH_CIRCLE_RIGHT="circle_slash",mF.SLOW_MODE="bubble_slow",mF.SLOW_MODE_OFF="text_bubble",mF.SOCIAL="person_child",mF.SPARKLE="sparkles",mF.SPARK_IMAGE="image_spark",mF.SPARK_PENCIL="pencil_spark",mF.SPARK_RADAR="spark_waves",mF.SPARK_VIDEO="video_spark",
mF.SPEAKER_GROUP="speaker_stack",mF.SPEAKER_OFF="speaker_slash",mF.SPEED_1X="n1x",mF.SPEED_1_POINT_2X="n1point2x",mF.SPEED_1_POINT_5X="n1point5x",mF.SPEED_1_POINT_8X="n1point8x",mF.SPEED_2X="n2x",mF.SPONSORSHIP_STAR="star_circle",mF.SPORTS="basketball",mF.SPOTLIGHT="spotlight",mF.STAFF_PICK="spotlight",mF.START_DVR="add",mF.STAR_BORDER="star",mF.STAR_CIRCLE_RIBBON="memberships_gift",mF.STAR_HALF="star_full_half",mF.STAR_SHOOTING="hype",mF.STICKER="sticker",mF.STICKER_EMOTICON="face_happy",mF.STOP_DVR=
"stop",mF.SUBSCRIBE="youtube",mF.SUBSCRIBE_PLUS="add",mF.SUBSCRIPTION_MANAGER="gear",mF.SUPERSTAR="super_star",mF.SUPERVISOR_ACCOUNT="person_child",mF.SUPER_CHAT_FOR_GOOD="hands_heart",mF.SWAP_HORIZ="arrow_swap_horizontal",mF.SWITCH_ACCOUNTS="person_square_stack",mF.TAB_ACCOUNT="person",mF.TAB_ACTIVITY="bell",mF.TAB_BOOKMARK="bookmark",mF.TAB_EXPLORE="compass",mF.TAB_HOME="home",mF.TAB_HOME_CAIRO="home",mF.TAB_INBOX="mail",mF.TAB_LIKED="thumb_up",mF.TAB_MUSIC_PREMIUM="youtube_music",mF.TAB_SHORTS=
"shorts",mF.TAB_SHORTS_CAIRO="shorts",mF.TAB_SUBSCRIPTIONS="subscriptions",mF.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",mF.TAB_TRENDING="trending",mF.TARGET="target",mF.TARGET_ADD="target_add",mF.TEMPLATE_ADD="template_add",mF.TEXT="font",mF.TICKET_STAR="star_ticket",mF.TIMER="stopwatch",mF.TRENDING_CAIRO="trending",mF.TRENDING_DOWN="arrow_trend_down",mF.TRENDING_UP="arrow_trend_up",mF.TROPHY_CAIRO="trophy",mF.TROPHY_CELEBRATIONS="fireworks",mF.TROPHY_STAR="star_trophy",mF.TUNE="adjust",mF.TV_OFF="tv_slash",
mF.UNBLOCK_USER="minus_circle",mF.UNFAVORITE="thumb_down",mF.UNLIMITED="youtube",mF.UNPLUGGED_LIVE_GUIDE="live",mF.UNPLUGGED_SPORTS="eye_slash",mF.UPLOADS="play_square_stack",mF.UP_ARROW="arrow_up",mF.VERTICAL_ALIGN_BOTTOM="chevron_down_end",mF.VERTICAL_ALIGN_TOP="chevron_up_end",mF.VERY_HAPPY="face_very_happy",mF.VERY_SAD="face_very_sad",mF.VIDEOS="play_circle",mF.VIDEO_CALL="video_camera_add",mF.VIDEO_LIBRARY_WHITE="play_square_stack",mF.VIDEO_QUALITY_4K="n4k",mF.VIDEO_QUALITY_8K="n8k",mF.VIDEO_YOUTUBE=
"youtube",mF.VIEW_LIST_CAIRO="view_list",mF.VIEW_MODULE="view_column3_row2",mF.VISIBILITY="eye",mF.VISIBILITY_OFF="eye_slash",mF.VOLUME_DOWN="volume_min",mF.VOLUME_MUTE="volume_mute",mF.VOLUME_OFF="volume_mute",mF.VOLUME_STABLE="stable_volume",mF.VOLUME_UP="volume_max",mF.WALLPAPER="image",mF.WARNING="alert_triangle",mF.WATCH_HISTORY="history",mF.WATCH_HISTORY_CAIRO="history",mF.WATCH_LATER="clock",mF.WATCH_LATER_CAIRO="clock",mF.WATCH_RELATED_MIX="mix",mF.WHAT_TO_WATCH="home",mF.YOUTUBE_LINKED_TV=
"tv_mobile",mF.YOUTUBE_MUSIC_MONOCHROME="youtube_music",mF.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",mF.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",mF.YOUTUBE_SHORTS_ARROW_UP="arrow_up",mF.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",mF.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",mF.YOUTUBE_SHORTS_OUTLINE_24="shorts",mF.YT_OUTLINE_MUSIC_24="audio",mF);var GM1={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var cs7={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,
24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],
[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,
2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,5,24,!0],[1,5,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,
1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,
2,24]]};var I37={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},am=function(G){this.iconUrlProvider=G};
am.prototype.resolveIcon=function(G,c){var I=I37[G.iconName.toUpperCase()];I&&(G.iconName=I);var R=G.iconName;R=R.replace(/-/g,"_");G=Object.assign({},G,{iconName:this.mapIconTypeToStandardName(R,!!I)||R.toLowerCase()});if(_.v("enable_web_delhi_icons")||I){var Z;return mKC(cs7,G,((Z=this.iconUrlProvider)==null?void 0:Z.getYtStandardUrl)||eHB,c)}var K;return mKC(GM1,G,((K=this.iconUrlProvider)==null?void 0:K.getYtStandardUrl)||O6T,c)};
am.prototype.mapIconTypeToStandardName=function(G,c){return _.v("enable_web_delhi_icons")||c?Y9W[G.toUpperCase()]:gmF[G.toUpperCase()]};
am[FA]=[_.qR(HTu)];var RpG=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),Z8W=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),K3G=function(G){this.urlProvider=this.iconUrlProvider=G};
_.u(K3G,am);
K3G.prototype.resolveIcon=function(G,c){G.iconName==="youtube_logo"&&(G.iconName="yt-logo-updated");if(G.iconName==="youtube_premium_logo"||G.iconName==="youtube_red_logo")G.iconName="yt-logo-red-updated";var I=Object.assign({},G);G.iconName==="menu"&&(_.v("enable_web_delhi_icons")||(I.iconName="bars_3"),I.iconStyle="youtube_outline");G.iconSetName==="socialNetworksRound"&&(G.iconName==="mail"&&(I.iconName="email"),G.iconName==="embed"&&(I.iconSize=60));G.iconName==="more"&&(I.iconName="overflow_horizontal");
G.iconName==="fullscreen"&&(I.iconName="screen_full");G.iconName==="premium_standalone"&&(I.iconName="premium_standalone_cairo");_.v("enable_connect_icon_update_web")&&G.iconName==="account_linked"&&(I.iconName="circles_overlap_check",I.iconStyle="youtube_fill");_.v("enable_connect_icon_update_web")&&G.iconName==="account_unlinked"&&(I.iconName="circles_overlap",I.iconStyle="youtube_outline");RpG.has(G.iconName)&&(I.iconStyle="youtube_fill");if(_.v("enable_web_delhi_icons")){G.iconName==="playlist_add"&&
(I.iconName="bookmark");G.iconName==="offline_pin"&&(I.iconName="arrow_down_circle",I.iconStyle="youtube_fill");if(G.iconName==="circles_overlap_check"||I.iconName==="circles_overlap_check")I.iconName="account_link",I.iconStyle="youtube_fill";Z8W.has(G.iconName)&&(I.iconName+="_updated")}G=Object.assign({},I,{iconName:(am.prototype.mapIconTypeToStandardName.call(this,I.iconName)||I.iconName).toLowerCase()});var R;return(G=mKC(d3$,G,((R=this.urlProvider)==null?void 0:R.getUrl)||Nzb,c))?G:am.prototype.resolveIcon.call(this,
I,c)};
K3G[FA]=[_.qR(HTu)];_.Pyu=1;var TG=function(G,c){this.JSC$17608_commandHandler=G;this.innertubeTransportService=c};
_.u(TG,Af);TG.prototype.resolveCommand=function(G,c){var I=this,R,Z,K;return _.T(function(m){return(R=_.D(G,MI2))?m.return(Q2d(I,R,(Z=c)==null?void 0:(K=Z.form)==null?void 0:K.element)):m.return()})};
var Q2d=function(G,c,I){c={profileCardContext:c.profileCardContext,profileOwnerExternalChannelId:c.profileOwnerExternalChannelId};var R=_.gL(i0V);return _.UO(G.innertubeTransportService,c,R).then(function(Z){if(!Z)throw new _.iW("GetProfileCard failed");if(Z=Z.popupCommand){G.JSC$17608_commandHandler.resolveCommand(Z,{form:{element:I}});_.dt(_.DP(),66557);Z=Z==null?void 0:Z.clickTrackingParams;var K=_.u6();Z&&K&&_.DP().graftServerVe(Z,K)}})};
TG[FA]=[_.n4,_.UU];var OI=function(){};
_.u(OI,Af);OI.prototype.resolveCommand=function(G){var c,I;return _.T(function(R){c=_.D(G,r4K);if(!c)return R.return();I=Number(c.enableDelayedPacfLoggingTvMs);if(isNaN(I)){var Z=cW();Hne(Z,c,0)}else Hne(cW(),c,I);_.Vp(R)})};_.e6=function(){};
_.u(_.e6,Af);
_.e6.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N;return _.T(function(q){R=_.D(G,j5k);K=(Z=c.form)==null?void 0:Z.element;a=(m=K)==null?void 0:m.closest("ytd-enforcement-message-view-model");if(!R||!a)return q.return();I.allowAdsAction||(O=R.fundingChoiceInstructionPageUrl,I.allowAdsAction=new E70(window,_.Cj(O)));var w=I.allowAdsAction;w.wallElement=a;w.allowAdsPopup.style.setProperty("display","flex","important");var F=w.scrollManager;F.isScrollingEnabled&&(F.originalBodyOverflow=F.JSC$10169_domHelper.JSC$9495_document_.body.style.overflow,
F.JSC$10169_domHelper.JSC$9495_document_.body.style.overflow="hidden",F.isScrollingEnabled=!1);w.wallElement.style.setProperty("display","none","important");dtp(w.accessibilityManager,w.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((N=I.allowAdsAction.allowAdsPopup)&&N instanceof HTMLElement)for(w=_.Q(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),F=w.next();!F.done;F=w.next()){var n=_.Q(F.value);F=n.next().value;n=n.next().value;
N.style.setProperty(F,n)}_.Vp(q)})};
_.e6.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var NM=function(){};
_.u(NM,Af);NM.prototype.resolveCommand=function(G){var c;return _.T(function(I){c=_.D(G,CdB);if(!c)return I.return();smT(G);_.Vp(I)})};_.lZ=new _.De("AI_CHAT_CONTROLLER_TOKEN");var qM=function(G,c,I,R){this.JSC$17623_commandHandler=G;this.store=c;this.getPlayerCb=I;this.aiChatController=R};
_.u(qM,Af);qM.prototype.pageContext=function(){var G=_.Ce.currentPageSubTypeSelector(this.store.getState()),c;return(c=this.aiChatController)==null?void 0:_.mSg(c,G)};
qM.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m;return _.T(function(a){I=_.D(G,GZ2);Z=(R=I)==null?void 0:R.command;if(!Z)return a.return();switch((m=I)==null?void 0:m.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var O="youchat-"+Date.now(),N;var q=String(Math.floor(((N=c.getPlayerCb())==null?void 0:N.getCurrentTime())||0)*1E3);K={inputComposerFormData:{clientMessageId:O,playerOffsetMs:q,pageContext:c.pageContext()}}}if(!K)return a.return();c.JSC$17623_commandHandler.resolveCommand(Z,
{form:{formData:K}});_.Vp(a)})};
qM[FA]=[_.n4,_.Ni,f8q,_.qR(_.lZ)];var a3d=new _.De("SESSION_STORAGE");var wV=function(G){this.sessionStorage=G("conversations")};
_.u(wV,Af);wV.prototype.resolveCommand=function(G){var c=this,I;return _.T(function(R){I=_.D(G,ckB);if(!I)return R.return();I.conversationId?c.sessionStorage.set("conversation_id",I.conversationId):c.sessionStorage.remove("conversation_id");_.Vp(R)})};
wV[FA]=[a3d];var Fy=function(G){this.JSC$17635_commandHandler=G};
_.u(Fy,Af);
Fy.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N;return _.T(function(q){if(q.nextAddress==1){I=_.D(G,ore);if((R=I)==null||!R.text||!navigator.clipboard)return q.return();_.s9(q,2);return q.yield(navigator.clipboard.writeText(I.text),4)}if(q.nextAddress!=2){if(!I.successActions||I.successActions.length===0)return q.return();Z=_.Q(I.successActions);for(K=Z.next();!K.done;K=Z.next())m=K.value,c.JSC$17635_commandHandler.resolveCommand(m);return _.Pl(q,0)}_.M3(q);if(!I.failureActions||I.failureActions.length===
0)return q.return();a=_.Q(I.failureActions);for(O=a.next();!O.done;O=a.next())N=O.value,c.JSC$17635_commandHandler.resolveCommand(N);_.Vp(q)})};
Fy[FA]=[_.n4];var nl=function(G){this.JSC$17639_commandHandler=G};
_.u(nl,Af);
nl.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F;return _.T(function(n){switch(n.nextAddress){case 1:R=_.D(G,cu2);if(!R)return n.return();_.s9(n,2);if(!R.imageBytes&&!R.imageUrl)throw Error("Bi");if(!R.imageUrl){if(R.imageBytes){K=R.imageBytes;m=K.replace(/-/g,"+").replace(/_/g,"/");var U=wvB(m);Z=_.CG(U)}n.jumpTo(4);break}return n.yield(fetch(R.imageUrl),5);case 5:return a=n.yieldResult,n.yield(a.blob(),6);case 6:O=n.yieldResult,Z=_.CG(O);case 4:w=(N=c)==null?void 0:(q=N.form)==
null?void 0:q.element;F=document.createElement("a");yx(F,Z);w.appendChild(F);F.download="";F.click();w.removeChild(F);URL.revokeObjectURL(_.By(Z));R.successCommand&&I.JSC$17639_commandHandler.resolveCommand(R.successCommand);_.Pl(n,0);break;case 2:_.M3(n),R.errorCommand&&I.JSC$17639_commandHandler.resolveCommand(R.errorCommand),_.Vp(n)}})};
nl[FA]=[_.n4];var vV=function(G){this.store=G};
_.u(vV,Af);vV.prototype.resolveCommand=function(G){var c=this,I,R,Z;return _.T(function(K){R=(I=_.D(G,_.YYe))==null?void 0:I.entityBatchUpdate;if(!R)return K.jumpTo(0);Z=Object.assign({},R,{mutations:[].concat(_.jn(R.mutations||[]))});return K.yield(_.ln(Z,c.store),0)})};
vV[FA]=[NB];var Tx1=function(G){this.JSC$17646_commandHandler=G;this.feedbackDialogMap=new Map};
Tx1.prototype.openDialog=function(G,c){(G=this.feedbackDialogMap.get(G))&&this.JSC$17646_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:G}},c)};
Tx1[FA]=[_.n4];var Dl=new _.De("FEEDBACK_CONTROLLER_TOKEN");var om=new _.De("APP_STORE_TOKEN");var UI=function(G,c,I){this.store=G;this.controller=c;this.JSC$17649_commandHandler=I};
_.u(UI,Af);UI.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H;return _.T(function(g){if(g.nextAddress==1){R=_.D(G,_.fM);if(K=(Z=R)==null?void 0:Z.contentId)for(a=_.Q(((m=R)==null?void 0:m.actions)||[]),O=a.next();!O.done;O=a.next())N=O.value,O80(I,N,K);F=(q=c)==null?void 0:(w=q.form)==null?void 0:w.element;return g.yield(_.Gs(F,[G,{impression:(n=c)==null?void 0:n.disableClickTracking}]).catch(function(){}),2)}U=g.yieldResult;
if((k=U)==null?0:(p=k.data)==null?0:(M=p.feedbackResponses)==null?0:M.length)(t=(z=U.data.feedbackResponses[0])==null?void 0:z.followUpDialog)&&K&&(x=I.controller)!=null&&x.feedbackDialogMap.set(K,t),(H=(C=U.data.feedbackResponses[0])==null?void 0:C.isThumbnailReporting)&&I.JSC$17649_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.Vp(g)})};
var O80=function(G,c,I){var R=_.D(c,_.RP);if(R){R=_.Q(R.commands||[]);for(var Z=R.next();!Z.done;Z=R.next())O80(G,Z.value,I)}_.D(c,_.gA)&&G.store.dispatch(_.Le("commandEntity",cor(I),{key:I,command:c}));_.D(c,feV)&&G.store.dispatch(_.Le("commandEntity",cor(I),{key:I,command:c}))};
UI[FA]=[om,Dl,_.n4];var uZ=function(G){this.controller=G};
_.u(uZ,Af);uZ.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m;return _.T(function(a){R=_.D(G,_.GP);K=(Z=R)==null?void 0:Z.targetId;if(((m=R)==null?void 0:m.signal)!=="TELL_US_WHY"||!K)return a.return();I.controller.openDialog(K,c);_.Vp(a)})};
uZ[FA]=[Dl];var bZ=function(G){this.store=G};
_.u(bZ,Af);bZ.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N;return _.T(function(q){R=_.D(G,FQ8);K=(Z=R)==null?void 0:Z.contentId;O=(m=c)==null?void 0:(a=m.form)==null?void 0:a.element;N=_.Gs(O,[G]);K&&I.undo(K);return q.yield(N,0)})};
bZ.prototype.undo=function(G){this.store.dispatch(_.Le("commandEntity",cor(G),{key:G,command:void 0}))};
bZ[FA]=[om];var kf=function(G){this.JSC$17661_commandHandler=G};
_.u(kf,Af);kf.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N;return _.T(function(q){I=_.D(G,nO9);R=I.flowStateKey;Z=I.validationFailureCommand;K=I.submitValidFormCommand;m=K0b(_.Iw,[R||""]);a=_.D(m,oO2);((O=a)==null?0:O.isValid)&&K&&c.JSC$17661_commandHandler.resolveCommand(K);((N=a)==null?0:N.isValid)||!Z||c.JSC$17661_commandHandler.resolveCommand(Z);_.Vp(q)})};
kf[FA]=[_.n4];var sI=function(G){this.innertubeTransportService=G};
_.u(sI,Af);sI.prototype.resolveCommand=function(G,c){var I=this,R;return _.T(function(Z){return Z.yield(_.CQ(I.innertubeTransportService,G,(R=c)==null?void 0:R.form).then(function(K){var m,a;c==null||(m=c.commandController)==null||(a=m.onSuccess)==null||a.call(m,G,K)},function(K){var m,a;
c==null||(m=c.commandController)==null||(a=m.onServerError)==null||a.call(m,G,K)}),0)})};
sI[FA]=[_.UU];var Ll=function(){};
_.u(Ll,Af);Ll.prototype.resolveCommand=function(G){var c,I,R,Z;return _.T(function(K){if(c=_.D(G,_.NrT)){if(I=c.gtmId)R=_.H1("GL",""),_.Zs(I,R);(Z=c.gtmData)&&_.Kx(Z)}_.Vp(K)})};var A2=function(G,c,I){this.innertubeTransportService=G;this.JSC$17672_actionRouter=c;this.JSC$17672_screenManager=I};
_.u(A2,Af);A2.prototype.resolveCommand=function(G){var c=this,I,R;return _.T(function(Z){I=_.D(G,NBT);if(!I)return Z.return();R=I.command;if(!R)return Z.return();c.JSC$17672_actionRouter.triggerAction("yt-insert-rich-section-action",I);return Z.yield(_.CQ(c.innertubeTransportService,R,{disableCache:!0}).then(function(K){G.clickTrackingParams&&(K==null?0:K.trackingParams)&&c.JSC$17672_screenManager.graftServerVe(K.trackingParams,_.kC(G.clickTrackingParams))}),0)})};
A2[FA]=[_.UU,EP,_.PQ];nli.bind(null,$v);var epu=nli.bind(null,OnN);DKO.bind(null,$v);var NxH=DKO.bind(null,OnN);UKT.bind(null,$v);var l3F=UKT.bind(null,OnN);var $f=function(){};
_.u($f,Af);
$f.prototype.resolveCommand=function(G){var c,I,R,Z,K,m,a,O,N,q;return _.T(function(w){c=_.D(G,yke);if(!c)return w.return();R=((I=c.operations)==null?void 0:I.operations)||[];Z=_.Q(R);for(K=Z.next();!K.done;K=Z.next())if(m=K.value,m.insertItemSectionContent){var F=m.insertItemSectionContent,n=F.contents||[];F.insertByPositionInSection?epu(F.insertByPositionInSection.sectionTargetId,n,F.insertByPositionInSection.position):F.insertByRelativePositionInSection&&F.insertByRelativePositionInSection.sectionTargetId&&F.insertByRelativePositionInSection.itemTargetId&&
NxH(F.insertByRelativePositionInSection.sectionTargetId,F.insertByRelativePositionInSection.itemTargetId,n,F.insertByRelativePositionInSection.relativePosition)}else m.replaceSection?(F=m.replaceSection,n={},F.replaceByTargetId?n=F.replaceByTargetId:F.replaceByGroupId&&(n={targetId:F.replaceByGroupId.groupId,newContent:F.replaceByGroupId.newContent,undoKey:""}),n.newContent&&lzV(n.targetId,{continuationItems:[n.newContent]})):m.removeItem?(F=m.removeItem,F.removeByTargetId&&F.sectionTargetId&&l3F(F.sectionTargetId,
F.removeByTargetId.targetIds||[])):m.removeSection&&(m.removeSection.removeByTargetId?(a=void 0,qqu(((a=m.removeSection)==null?void 0:a.removeByTargetId.targetIds)||[])):m.removeSection.removeByGroupId&&(O=void 0,qqu(((O=m.removeSection)==null?void 0:O.removeByGroupId.groupIds)||[])));q=((N=c.operations)==null?void 0:N.scrollConfig)||{};w61(q);_.Vp(w)})};
var qqu=function(G){G=_.Q(G);for(var c=G.next();!c.done;c=G.next())lzV(c.value,{continuationItems:[]})},w61=function(G){if(G.scrollToItem){var c=G.scrollToItem.item||{},I=c.itemTargetId;
c=c.sectionTargetId;if(I&&c){var R=document.querySelector("[data-target-id="+c+"]"),Z=R==null?void 0:R.querySelector("[data-target-id="+I+"]");R&&Z&&setTimeout(function(){var K=Z.offsetTop-R.offsetTop,m;if(((m=G.scrollToItem)==null?void 0:m.scrollPosition)==="SCROLL_POSITION_CENTER")K-=R.offsetHeight/2,K+=Z.offsetHeight/2;else{var a;((a=G.scrollToItem)==null?void 0:a.scrollPosition)==="SCROLL_POSITION_END"&&(K-=R.offsetHeight,K+=Z.offsetHeight)}R.scroll({top:K,behavior:"smooth"})},100)}}};var S6=new _.De("CLIENT_NAME_TOKEN");var F3r=new _.De("DEFAULT_STORE_EXPIRATION_TOKEN");var Mbr=new _.De("CLIENT_LOCATION_SERVICE_TOKEN");var pl=function(G,c,I){this.clientName=G||_.H1("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=c||_.jx.getInstance();this.JSC$17700_commandHandler=I||_.NC.instance};
_.u(pl,Af);pl.prototype.resolveCommand=function(G){var c=this,I,R;return _.T(function(Z){R=(I=_.D(G,V5T))==null?void 0:I.onComplete;c.clientLocationService.clearLocationPlayabilityToken(c.clientName);R&&c.JSC$17700_commandHandler.resolveCommand(R);_.Vp(Z)})};
pl[FA]=[S6,Mbr,_.n4];var MM=function(G){this.innertubeTransportService=G};
_.u(MM,Af);MM.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m;return _.T(function(a){K=(R=c)==null?void 0:(Z=R.form)==null?void 0:Z.element;return a.yield(_.CQ(I.innertubeTransportService,G,(m=c)==null?void 0:m.form).then(function(O){u7A(K,new CustomEvent("yt-service-request-completed"),{data:O},_.H1("openPopupConfig"))}),0)})};
MM[FA]=[_.UU];var V3=function(){};
_.u(V3,Af);V3.prototype.resolveCommand=function(G){var c,I;return _.T(function(R){c=_.D(G,kEe);I=document.querySelector("mini-app-container-view-model");if(!c||!I)return R.return();c.isPlaying?I.dispatchEvent(new Event("play")):I.dispatchEvent(new Event("pause"));_.Vp(R)})};var zG=function(){};
_.u(zG,Af);zG.prototype.resolveCommand=function(G){var c,I,R,Z,K,m,a;return _.T(function(O){c=_.D(G,Qve);if((I=c)==null||!I.paramKeys)return O.return();R=c.paramKeys;Z=_.IW(window.location.href);K=_.Q(R);for(m=K.next();!m.done;m=K.next())a=m.value,Z.JSC$10201_queryData_.remove(a);window.history.replaceState(window.history.state,document.title,Z.toString());_.Vp(O)})};var nMd=function(){this.dropdownMap=new Map};_.vMW=new _.De("DROPDOWN_CONTROLLER_TOKEN");var EI=function(G){this.controller=G};
_.u(EI,Af);EI.prototype.resolveCommand=function(G){var c=this,I,R,Z,K;return _.T(function(m){I=_.D(G,Ju2);if(!I)return m.return();R=I;Z=R.dropdownId;K=R.selectedOptionIndex;if(Z===void 0||K===void 0)return m.return();var a=c.controller.dropdownMap.get(Z);a&&a(K);_.Vp(m)})};
EI[FA]=[_.vMW];var J2=function(G){this.controller=G};
_.u(J2,Af);J2.prototype.resolveCommand=function(G){var c=this,I;return _.T(function(R){return(I=_.D(G,Cv2))?R.yield(c.controller.closeDialog(),0):R.return()})};
J2[FA]=[_.eJ];var WV=function(G){this.controller=G};
_.u(WV,Af);WV.prototype.resolveCommand=function(G){var c=this,I,R;return _.T(function(Z){I=_.D(G,SOK);if(!I)return Z.return();var K,m=I.panelIdentifier||((K=I.identifier)==null?void 0:K.tag);if(!m)throw Error("Ci");return(R=m)?Z.yield(c.controller.hidePanel({identifier:R}),0):Z.jumpTo(0)})};
WV[FA]=[_.Tl];var fl=function(G){this.controller=G};
_.u(fl,Af);fl.prototype.resolveCommand=function(G){var c=this,I;return _.T(function(R){return(I=_.D(G,qXA))?R.yield(c.controller.closeSheet(),0):R.return()})};
fl[FA]=[_.O6];var BV=function(G,c){this.innertubeTransportService=G;this.controller=c};
_.u(BV,Af);BV.prototype.resolveCommand=function(G){var c=this,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return I=_.D(G,pkT),(R=I)!=null&&R.panelId?m.yield(c.controller.getReloadContinuation(I.panelId),2):m.return();if(m.nextAddress!=3)return(Z=m.yieldResult)?m.yield(_.CQ(c.innertubeTransportService,G,{continuation:Z}),3):m.return();K=m.yieldResult;return m.yield(c.controller.updatePanel({identifier:I.panelId,panelContents:K.content,shouldFocus:!1}),0)})};
BV[FA]=[_.UU,_.Tl];var rV=function(G,c,I){this.innertubeTransportService=G;this.JSC$17742_screenManager=c;this.JSC$17742_commandHandler=I};
_.u(rV,Af);
rV.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1){I=_.D(G,_.bxA);if(!I)return O.return();if(I.commands)for(R=_.Q(I.commands),Z=R.next();!Z.done;Z=R.next())K=Z.value,c.JSC$17742_commandHandler.resolveCommand(K,{disableClickTracking:!0});m=_.kC(G.clickTrackingParams);_.dt(c.JSC$17742_screenManager,21760,m,{layer:7,parentLayer:0});return O.yield(_.CQ(c.innertubeTransportService,G),2)}a=O.yieldResult;if(!a)return O.return();c.JSC$17742_screenManager.graftServerVe(a.trackingParams,m,
7);_.Vp(O)})};
rV[FA]=[_.UU,_.PQ,_.n4];var j6=new _.De("PANEL_LOADING_STRATEGY_TOKEN");var xf=function(G,c){this.controller=G;this.panelLoadingStrategy=c};
_.u(xf,Af);
xf.prototype.resolveCommand=function(G,c){var I=this,R,Z,K;return _.T(function(m){R=_.D(G,FON);if((Z=R)==null||!Z.panelLoadingStrategy)return m.return();K=function(a){var O,N,q,w,F,n,U,k,p,M;return _.T(function(z){N=_.D((O=a.dialogViewModel)==null?void 0:O.header,WO9);q={viewModel:a.dialogViewModel};w={};if(U=_.v("web_enable_dialog_header_label")?(F=N)==null?void 0:(n=F.headline)==null?void 0:n.content:void 0)w.ariaLabel=U;R.dismissOnBackgroundTap===!1&&(w.isModal=!0);return a.dialogViewModel?z.yield(I.controller.openDialog(q,
(M=(k=c)==null?void 0:(p=k.form)==null?void 0:p.element)!=null?M:document.body,w),0):z.return()})};
return m.yield(I.panelLoadingStrategy.execute({command:G,data:R.panelLoadingStrategy,renderFn:K,createScreenConfig:{layer:4}}),0)})};
xf[FA]=[_.eJ,j6];var t2=function(G,c,I){this.innertubeTransportService=G;this.controller=c;this.JSC$17762_screenManager=I};
_.u(t2,Af);
t2.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M;return _.T(function(z){switch(z.nextAddress){case 1:R=_.D(G,_.iJ);if(!R)return z.return();var t,x=R.panelIdentifier||((t=R.identifier)==null?void 0:t.tag);if(!x)throw Error("Ci");Z=x;return z.yield(I.controller.isVisible(Z,!0),2);case 2:if((K=z.yieldResult)&&R.blockIfPanelOpen)return z.return();O=(a=(m=I.controller).getPanelContent)==null?void 0:a.call(m,Z);if(!(t=O))if(R){var C;t=((C=R.globalConfiguration)==null?void 0:
C.initialState)||R.engagementPanel;if(C=!t)C=!!(R==null?0:(x=R.engagementPanelPresentationConfigs)==null?0:x.engagementPanelPopupPresentationConfig);C&&(t=_.uDT(R.panelIdentifier,R.identifier))}else t=void 0;N=t;q=R.engagementPanelPresentationConfigs;w=R.engagementPanelExtras;return z.yield(I.controller.showPanel({identifier:Z,panelContents:N,config:q,extras:w,target:(F=c)==null?void 0:(n=F.form)==null?void 0:n.element}),3);case 3:if(!R.globalConfiguration){z.jumpTo(0);break}if(R.globalConfiguration.reuseModelAndState&&
_.v("enable_ai_companion")&&(p=(k=(U=I.controller).getPanelContent)==null?void 0:k.call(U,Z)))return z.return();_.dt(I.JSC$17762_screenManager,32633);return z.yield(_.CQ(I.innertubeTransportService,G),5);case 5:return M=z.yieldResult,I.JSC$17762_screenManager.graftServerVe(M.trackingParams),z.yield(I.controller.updatePanel({identifier:Z,panelContents:M.content,shouldFocus:!0,extras:w,updatePanelContinuationData:M.updatePanelContinuationData}),0)}})};
t2[FA]=[_.UU,_.Tl,_.PQ];var h2=function(G,c){this.controller=G;this.panelLoadingStrategy=c};
_.u(h2,Af);
h2.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F,n,U;return _.T(function(k){R=_.D(G,_.AY);if((Z=R)==null||!Z.panelLoadingStrategy)return k.return();a=DSg(I.controller,(K=c)==null?void 0:(m=K.form)==null?void 0:m.element);N=(O=R.contextualSheetPresentationConfig)==null?void 0:O.position;w=(q=R.contextualSheetPresentationConfig)==null?void 0:q.hoverConfig;n=(F=R.contextualSheetPresentationConfig)==null?void 0:F.expandToFullWidth;U=function(p){return _.T(function(M){if(!p.sheetViewModel)return M.return();if(w){var z=
I.controller;z.shouldPreventClosingWhileHovered=!!w.preventCloseWhileHovered;var t;z.hideDelayMs=(t=w.hideDelayMs)!=null?t:0}return M.yield(I.controller.openSheet({viewModel:p.sheetViewModel,sheetPosition:N,expandToFullWidth:n},a),0)})};
return k.yield(I.panelLoadingStrategy.execute({command:G,data:R.panelLoadingStrategy,renderFn:U,createScreenConfig:{layer:0}}),0)})};
h2[FA]=[_.O6,j6];var dV=function(G,c){this.controller=G;this.JSC$17773_commandHandler=c};
_.u(dV,Af);dV.prototype.resolveCommand=function(G,c){var I=this,R,Z,K;return _.T(function(m){if(m.nextAddress==1){R=_.D(G,ELT);var a=_.D(R.showCommand,_.iJ),O,N,q=(N=a==null?void 0:a.panelIdentifier)!=null?N:a==null?void 0:(O=a.identifier)==null?void 0:O.tag;if(!q)throw Error("Di");Z=q;return m.yield(I.controller.isVisible(Z),2)}return(K=m.yieldResult)?m.yield(I.controller.hidePanel({identifier:Z}),0):m.yield(I.JSC$17773_commandHandler.resolveCommand(R.showCommand,c),0)})};
dV[FA]=[_.Tl,_.n4];var Cl=function(G,c,I){this.innertubeTransportService=G;this.controller=c;this.JSC$17776_screenManager=I};
_.u(Cl,Af);
Cl.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H,g;return _.T(function(QO){switch(QO.nextAddress){case 1:return R=I=_.D(G,fsK),Z=R.targetPanelIdentifier,K=R.contentSourcePanelIdentifier,m=R.globalConfiguration,((a=Z)==null?0:a.tag)&&((O=K)==null?0:O.tag)?m?QO.yield(c.controller.showPanel({identifier:Z.tag,panelContents:_.uDT(Z.tag,Z)}),5):QO.yield((F=(w=c.controller).getPanel)==null?void 0:F.call(w,K.tag),4):QO.return();case 4:n=QO.yieldResult;N=(U=n)==
null?void 0:(p=(k=U).getPanelContent)==null?void 0:p.call(k);QO.jumpTo(3);break;case 5:return QO.yield(_.CQ(c.innertubeTransportService,G),6);case 6:M=QO.yieldResult,((z=M)==null?0:z.trackingParams)&&c.JSC$17776_screenManager.graftServerVe(M.trackingParams),N=(t=M)==null?void 0:t.content,q=(x=M)==null?void 0:x.updatePanelContinuationData;case 3:if(H=(C=N)==null?void 0:C.engagementPanelSectionListRenderer)return QO.yield(c.controller.showPanel({identifier:Z.tag,panelUpdatableFields:{content:H.content,
secondaryHeaderContent:(g=H.header)!=null?g:{},targetId:H.targetId,loggingDirectives:H.loggingDirectives},updatePanelContinuationData:q}),0);QO.jumpTo(0)}})};
Cl[FA]=[_.UU,_.Tl,_.PQ];var HV=function(){};
_.u(HV,Af);HV.prototype.resolveCommand=function(G){var c,I,R;return _.T(function(Z){if(Z.nextAddress==1)return(c=_.D(G,xl9))?Z.yield(_.wP(),2):Z.return();I=Z.yieldResult;if(!I)return Z.return();var K=I,m=(R=c)==null?void 0:R.languageCode,a;(K==null?0:(a=K.isReady)==null?0:a.call(K))&&(m=b6r(K,m))&&K.setAudioTrack(m);_.Vp(Z)})};var Xy=function(){};
_.u(Xy,nf);_.P=Xy.prototype;_.P.getApiPaths=function(){return Mtp};
_.P.getExtension=function(G){return _.D(G,_.fR)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14347_getStoreKey=function(G){if((G=this.getExtension(G))&&G.videoId){var c={videoId:G.videoId};G.playlistId&&(c.playlistId=G.playlistId);G.index&&(c.index=G.index);G.params&&(c.params=G.params);return _.i6("next",c)}};
_.P.JSC$14340_getClientScreen=function(G){var c;return((c=G.contentPlaybackContext)==null?void 0:c.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$14340_buildRequest=function(G,c,I){c.videoId&&(G.videoId=c.videoId);c.playlistId&&(G.playlistId=c.playlistId);c.params&&(G.params=c.params);c.index!==void 0&&(G.playlistIndex=c.index);G.racyCheckOk=!(!I.racyCheckOk&&!c.racyCheckOk);G.contentCheckOk=!!c.contentCheckOk;I.contentPlaybackContext&&(G.autonavState=I.contentPlaybackContext.autonavState,G.playbackContext={vis:I.contentPlaybackContext.vis,lactMilliseconds:I.contentPlaybackContext.lactMilliseconds});I.prefetchPlaybackContext&&(G.context.request||
(G.context.request={}),G.context.request.isPrefetch=!0);_.v("captions_hats_killswitch")||(c=_.OC().getFlag(65),c=c!=null?!c:!1,I=!!_.ka("yt-player-sticky-caption"),G.captionsRequested=c&&I)};
_.P.getRequestConfig=function(G){G=this.JSC$14347_getStoreKey(G);var c;G&&(c={storeStrategy:{storeKey:G}});_.v("web_log_player_watch_next_ticks")&&(c=c||{},c.requestTick="wn_s",c.responseTick="wn_r");return c};
var y3=function(){};
_.u(y3,nf);y3.prototype.getApiPaths=function(){return Mtp};
y3.prototype.getExtension=function(G){return _.D(G,_.fQ)};
y3.prototype.JSC$14340_buildRequest=function(G,c){c.token&&(G.continuation=c.token)};var gV=function(){this.innerTubeTransport=_.wH().resolve(_.UU);this.miniplayerService=_.wH().resolve(_.tA)};
_.u(gV,Af);var oMj=function(G){var c;return _.T(function(I){c=_.H1("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;G.JSC$17801_mainAppPlayer=new $w(c);document.addEventListener("yt-page-data-updated",G.JSC$17801_pauseOnNavigation.bind(G));_.Vp(I)})},USj=function(G,c){var I,R,Z,K;
return _.T(function(m){if(m.nextAddress==1){I=new Xy;R=I.JSC$14340_getRequest(c);if(!R)return m.return(void 0);Z=R.innerTubeRequest;return m.yield(_.UO(G.innerTubeTransport,Z,"/youtubei/v1/next"),2)}K=m.yieldResult;var a;var O,N,q=(a=K.contents)==null?void 0:(O=a.twoColumnWatchNextResults)==null?void 0:(N=O.playlist)==null?void 0:N.playlist,w;a=(q==null?0:(w=q.contents)==null?0:w.length)?q:void 0;return m.return(a)})},uUg=function(G,c){var I,R,Z,K,m;
return _.T(function(a){if(a.nextAddress==1)return I=G.JSC$17801_mainAppPlayer,a.yield(I.api,2);if(a.nextAddress!=3)return R=a.yieldResult,c.watchCommand?a.yield(USj(G,c.watchCommand),3):a.return();Z=a.yieldResult;if((K=Z)==null||!K.contents)return a.return();m=Z.contents.map(function(O){var N;return(N=O.playlistPanelVideoRenderer)==null?void 0:N.videoId}).filter(function(O){return!!O}).map(function(O){return{encrypted_id:O}});
R.updatePlaylist({video:m});_.Vp(a)})},b8r=function(G,c){var I,R,Z;
return _.T(function(K){return K.nextAddress==1?(I=G.JSC$17801_mainAppPlayer,Z=(R=c.playerParams)!=null?R:"",c.externalVideoId?K.yield(I.loadVideoWithPlayerVars({videoId:c.externalVideoId,audio_only:"1",player_params:Z}),2):K.jumpTo(2)):c.watchCommand?K.yield(uUg(G,c),0):K.jumpTo(0)})};
gV.prototype.JSC$17801_pauseOnNavigation=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1)return c=G.JSC$17801_mainAppPlayer,R.yield(c.api,2);I=R.yieldResult;I.pauseVideo();_.Vp(R)})};
gV.prototype.pauseVideo=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1)return c=G.JSC$17801_mainAppPlayer,R.yield(c.api,2);I=R.yieldResult;I.pauseVideo();_.Vp(R)})};
gV.prototype.playVideo=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1)return c=G.JSC$17801_mainAppPlayer,R.yield(c.api,2);I=R.yieldResult;I.playVideo();_.Vp(R)})};
var kM0=function(G){var c,I;return _.T(function(R){if(R.nextAddress==1)return c=G.JSC$17801_mainAppPlayer,R.yield(c.api,2);I=R.yieldResult;I.mute();_.Vp(R)})},s2d=function(G){var c,I;
return _.T(function(R){if(R.nextAddress==1)return c=G.JSC$17801_mainAppPlayer,R.yield(c.api,2);I=R.yieldResult;I.unMute();_.Vp(R)})};
gV.prototype.stopVideo=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1)return c=G.JSC$17801_mainAppPlayer,R.yield(c.api,2);I=R.yieldResult;I.stopVideo();_.Vp(R)})};
var L3H=function(G,c){return _.T(function(I){switch(I.nextAddress){case 1:switch(c){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return I.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return I.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return I.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return I.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return I.jumpTo(6)}I.jumpTo(0);break;case 2:return I.yield(G.playVideo(),8);case 8:I.jumpTo(0);break;case 3:return I.yield(G.pauseVideo(),
9);case 9:I.jumpTo(0);break;case 4:return I.yield(G.stopVideo(),10);case 10:I.jumpTo(0);break;case 5:return I.yield(kM0(G),11);case 11:I.jumpTo(0);break;case 6:return I.yield(s2d(G),12);case 12:I.jumpTo(0)}})};
gV.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a;return _.T(function(O){return O.nextAddress==1?(I=_.D(G,qYA),((R=I)==null?0:R.newPlaybackParams)||((Z=I)==null?0:Z.controlAction)?c.JSC$17801_mainAppPlayer?O.jumpTo(2):O.yield(oMj(c),2):O.return()):((K=I)==null?0:K.newPlaybackParams)?(c.miniplayerService.isMiniplayerActive()&&((m=c.miniplayerService.getPlayerElement())==null||m.pause()),a=I.newPlaybackParams,a.externalVideoId||a.externalPlaylistId?O.yield(b8r(c,a),0):O.return()):O.yield(L3H(c,
I.controlAction),0)})};var Yf=function(G){this.JSC$17807_commandHandler=G};
_.u(Yf,Af);
Yf.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1)return(I=_.D(G,t5k))?O.yield(_.wP(),2):O.return();R=O.yieldResult;if(!R)return O.return();var N=R,q=(Z=I)==null?void 0:Z.languageCode,w=(K=I)==null?void 0:K.isAutoTranslated;N.getVideoData&&_.s$p(N).length&&((q=AV8(N,q,w))?N.setOption("captions","track",q):(N.setOption("captions","stickyLoading",{}),N.setOption("captions","track",{})));m=R.isSubtitlesOn()?_.mJ("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.mJ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");a=_.Ge(m,5E3);c.JSC$17807_commandHandler.resolveCommand(a);_.Vp(O)})};
Yf[FA]=[_.n4];var Gd=function(G,c){this.shortsPlayerPromise=G;this.JSC$17811_commandHandler=c};
_.u(Gd,Af);
Gd.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N;return _.T(function(q){if(q.nextAddress==1)return(I=_.D(G,e$2))?q.yield(c.shortsPlayerPromise,2):q.return();R=q.yieldResult;var w=$Kp(R);w!=null&&w.length||(R.loadModule("captions"),w=$Kp(R));Z=w;if((K=Z)==null||!K.length)return m=_.mJ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),a=_.Ge(m),c.JSC$17811_commandHandler.resolveCommand(a),q.return();R.toggleSubtitles();O=R.isSubtitlesOn()?_.mJ("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.mJ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");N=_.Ge(O);c.JSC$17811_commandHandler.resolveCommand(N);_.Vp(q)})};
Gd[FA]=[_.mWB,_.n4];var cj=function(G){this.JSC$17814_actionRouter=G;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(c,I){c.triggerAction("yt-dismiss-shopping-timely-shelf-action",I);(c=_.wH().resolve(_.qR(_.FTN)))&&c.dismissFeaturedProductOverlay()}]])};
_.u(cj,Af);cj.prototype.resolveCommand=function(G){var c=this,I,R,Z;return _.T(function(K){I=_.D(G,HJ0);if((R=I)==null||!R.overlayId)return K.return();Z=c.dismissPlayerOverlayActions.get(I.overlayId);if(!Z)throw Error("Ei`"+I.overlayId);Z(c.JSC$17814_actionRouter,I);_.Vp(K)})};
cj[FA]=[EP];var It=function(G){this.JSC$17818_playerPromise=G};
_.u(It,Af);It.prototype.resolveCommand=function(G){var c=this,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return(I=_.D(G,Vs0))?m.yield(c.JSC$17818_playerPromise,2):m.return();R=m.yieldResult;Z=R.getVideoData().video_id;I.videoId===Z&&(K=Number(I.offsetFromVideoStartMilliseconds),K>=0&&R.seekTo(K/1E3));_.Vp(m)})};
It[FA]=[_.a9];var AsG=_.mx("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Rt=function(G){this.store=G};
_.u(Rt,Af);
var $Su=function(G){var c,I,R,Z;return _.T(function(K){if(K.nextAddress==1)return c=_.H1("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,I=_.H1("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,R=c||I,G.JSC$17822_mainAppPlayer=new $w(R),K.yield(G.JSC$17822_mainAppPlayer.api,2);Z=K.yieldResult;Z.addEventListener("onStateChange",G.JSC$17822_playerStateChangeListener.bind(G));document.addEventListener("yt-page-data-updated",G.JSC$17822_pauseOnNavigation.bind(G));window.addEventListener("state-navigatestart",
G.JSC$17822_pauseOnNavigation.bind(G));_.Vp(K)})};
Rt.prototype.JSC$17822_playerStateChangeListener=function(G){switch(G){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}Sq0(this)};
var Sq0=function(G){G.store.dispatch(_.Le("sfvAudioItemCurrentlyPlayingEntity",AsG,{key:AsG,externalVideoId:G.externalVideoId,sfvAudioItemPlaybackState:G.playbackState,nowPlayingEntityValue:G.nowPlayingEntityValue}))};
Rt.prototype.JSC$17822_pauseOnNavigation=function(){var G=this,c,I,R,Z;return _.T(function(K){if(K.nextAddress==1){if(!G.JSC$17822_mainAppPlayer){var m=new _.iW("Error: mainAppPlayer is unavailable",G.JSC$17822_mainAppPlayer);_.hg(m);return K.return()}return K.yield(G.JSC$17822_mainAppPlayer.api,2)}c=K.yieldResult;R=(I=c)==null?void 0:I.getPlayerState();R!==1||(Z=c)!=null&&Z.pauseVideo();_.Vp(K)})};
Rt.prototype.playVideo=function(G,c,I){var R=this,Z,K;return _.T(function(m){if(m.nextAddress==1)return m.yield((Z=R.JSC$17822_mainAppPlayer)==null?void 0:Z.api,2);K=m.yieldResult;if(!R.JSC$17822_mainAppPlayer||!K){var a=new _.iW("Error: mainAppPlayer is unavailable",R.JSC$17822_mainAppPlayer);_.hg(a);return m.return()}return m.yield(R.JSC$17822_mainAppPlayer.loadVideoWithPlayerVars({videoId:R.externalVideoId,audio_only:"1",start:G/1E3,end:G/1E3+c,player_params:I}),0)})};
Rt.prototype.pauseVideo=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1){if(!G.JSC$17822_mainAppPlayer){var Z=new _.iW("Error: mainAppPlayer is unavailable",G.JSC$17822_mainAppPlayer);_.hg(Z);return R.return()}return R.yield(G.JSC$17822_mainAppPlayer.api,2)}c=R.yieldResult;(I=c)==null||I.pauseVideo();_.Vp(R)})};
Rt.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x;return _.T(function(C){if(C.nextAddress==1)return I=_.D(G,adp),Z=(R=I)==null?void 0:R.nowPlayingEntityValue,m=(K=I)==null?void 0:K.externalVideoId,w=Number((q=(a=I)==null?void 0:(O=a.defaultStartPoints)==null?void 0:(N=O[0])==null?void 0:N.offsetMs)!=null?q:"0"),M=Number((p=(F=I)==null?void 0:(n=F.defaultStartPoints)==null?void 0:(U=n[0])==null?void 0:(k=U.duration)==null?void 0:k.seconds)!=null?p:"15"),x=(t=
(z=I)==null?void 0:z.playerParams)!=null?t:"",Z&&m?c.JSC$17822_mainAppPlayer?C.jumpTo(2):C.yield($Su(c),2):C.return();if(C.nextAddress!=6){if(c.nowPlayingEntityValue&&Z===c.nowPlayingEntityValue)return c.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?C.yield(c.pauseVideo(),0):C.yield(c.playVideo(w,M,x),0);c.externalVideoId=m;c.nowPlayingEntityValue=Z;c.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return C.yield(c.playVideo(w,M,x),6)}Sq0(c);return C.jumpTo(0)})};
Rt[FA]=[NB];var ZE=function(G){this.JSC$17840_commandHandler=G};
_.u(ZE,Af);ZE.prototype.resolveCommand=function(G,c){var I=this,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return(R=_.D(G,hye))?m.yield(_.wP(),2):m.return();Z=m.yieldResult;if(!Z)return m.return();(K=Sxf(Z))&&I.JSC$17840_commandHandler.resolveCommand(K,c);_.Vp(m)})};
ZE[FA]=[_.n4];var KD=function(G){this.JSC$17846_commandHandler=G};
_.u(KD,Af);KD.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1)return(R=_.D(G,dl0))?O.yield(_.wP(),2):O.return();Z=O.yieldResult;if(!Z)return O.return();(K=ElU(Z))?I.JSC$17846_commandHandler.resolveCommand(K,c):(m=_.mJ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),a=_.Ge(m),I.JSC$17846_commandHandler.resolveCommand(a));_.Vp(O)})};
KD[FA]=[_.n4];var Pj=function(G){this.JSC$17849_playerPromise=G};
_.u(Pj,Af);Pj.prototype.resolveCommand=function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1)return(I=_.D(G,yue))?Z.yield(c.JSC$17849_playerPromise,2):Z.return();R=Z.yieldResult;R.isFullscreen()&&R.wakeUpControls();_.Vp(Z)})};
Pj[FA]=[_.a9];var Q8=function(G){this.JSC$17852_playerPromise=G};
_.u(Q8,Af);Q8.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m;return _.T(function(a){if(a.nextAddress==1){I=_.D(G,zFe);if(!I)return a.return();R=I.overlayRenderer;return R?(Z=_.D(R,I5K))?a.yield(c.JSC$17852_playerPromise,3):a.jumpTo(0):a.return()}K=a.yieldResult;K.renderChapterSeekingAnimation(1,_.HY(Z.text),(m=Z.icon)==null?void 0:m.iconType);_.Vp(a)})};
Q8[FA]=[_.a9];var mP=function(G){this.store=G};
_.u(mP,Af);
mP.prototype.resolveCommand=function(G){var c=this,I,R,Z;return _.T(function(K){if(K.nextAddress==1){I=_.D(G,waA);if(!I)return K.return();R="";(Z=c.store.getState().collabInviteLink)&&I.id===Z.playlistId?R=Z.inviteLinkURL:I.shortUrl&&(R=I.shortUrl);return R?K.yield(navigator.clipboard.writeText(R),3):K.jumpTo(0)}var m={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.mJ("COPY_LINK_SUCCESS_TOAST")}}}}};_.wH().resolve(_.n4).resolveCommand(m);_.Vp(K)})};
mP[FA]=[om];var at=function(G,c){this.innertubeTransportService=G;this.JSC$17862_commandHandler=c};
_.u(at,Af);at.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F;return _.T(function(n){if(n.nextAddress==1)return(R=_.D(G,_.UP))?n.yield(_.CQ(I.innertubeTransportService,G,(Z=c)==null?void 0:Z.form),2):n.return();(K=n.yieldResult)&&K.errorMetadata&&(m=K,a=_.Ge(m.error.message),I.JSC$17862_commandHandler.resolveCommand(a));O=K;if((N=O)==null?0:N.actions)for(q=_.Q(O.actions),w=q.next();!w.done;w=q.next())F=w.value,I.JSC$17862_commandHandler.resolveCommand(F);_.Vp(n)})};
at[FA]=[_.UU,_.n4];var Td=function(){};
_.u(Td,Af);Td.prototype.resolveCommand=function(G){var c;return _.T(function(I){c=_.D(G,P9i);if(!c)return I.return();(new zWp(c)).show();_.Vp(I)})};_.Oz=new _.De("PLAYLIST_EDIT_CONTROLLER_TOKEN");var e0=function(G,c,I,R){this.store=G;this.innertubeTransportService=c;this.controller=I;this.JSC$17870_commandHandler=R};
_.u(e0,Af);
e0.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H,g,QO,T8,kp,FB,oq;return _.T(function(Wr){if(Wr.nextAddress==1){R=_.D(G,_.ql);if(!R)return Wr.return();if(R.clientActions){Z=_.Q(R.clientActions);for(K=Z.next();!K.done;K=Z.next())m=K.value,I.JSC$17870_commandHandler.resolveCommand(m,c);var iT,z8=c==null?void 0:(iT=c.form)==null?void 0:iT.element;z8&&_.Xl(z8,"yt-dismissible-item-action",R.clientActions)}return Wr.yield(_.CQ(I.innertubeTransportService,G,(a=
c)==null?void 0:a.form),2)}if(O=Wr.yieldResult)O.errorMetadata?(N=O,q=_.Ge(N.error.message),I.JSC$17870_commandHandler.resolveCommand(q),"error"in O&&((w=c)==null?0:(F=w.commandController)==null?0:F.onServerError)&&((n=c)==null||(U=n.commandController)==null||U.onServerError(G,O))):(k=c)==null||(p=k.commandController)==null||(z=(M=p).onSuccess)==null||z.call(M,G,O);t=O;((x=t)==null?0:x.collaborationInviteLink)&&R.playlistId&&(_.v("web_enable_invite_collaborators_link")||_.v("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
I.store.dispatch(_.R6({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:R.playlistId,inviteLinkUrl:t.collaborationInviteLink}}));((C=t)==null?0:C.redirectEndpoint)&&I.JSC$17870_commandHandler.resolveCommand(t.redirectEndpoint);((H=t)==null?0:(g=H.newHeader)==null?0:g.playlistHeaderRenderer)?p60(I.controller,t.newHeader.playlistHeaderRenderer):((QO=t)==null?0:(T8=QO.newHeader)==null?0:T8.musicEditablePlaylistDetailHeaderRenderer)&&p60(I.controller,t.newHeader.musicEditablePlaylistDetailHeaderRenderer);
I.controller.playlistVideoListElement&&((kp=t)==null?0:(FB=kp.playlistEditResults)==null?0:(oq=FB[0])==null?0:oq.playlistEditVideoAddedResultData)&&((z8=I.controller.playlistVideoListElement)==null||z8.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:t.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Vp(Wr)})};
e0[FA]=[_.Ni,_.UU,_.Oz,_.n4];var Nu=function(G,c){this.controller=G;this.JSC$17880_commandHandler=c};
_.u(Nu,Af);Nu.prototype.resolveCommand=function(G,c){var I=this,R,Z,K;return _.T(function(m){R=_.D(G,FZp);I.controller.showRefreshPill&&((Z=R)==null?0:Z.command)&&(I.JSC$17880_commandHandler.resolveCommand((K=R)==null?void 0:K.command,c),I.controller.showRefreshPill=!1);_.Vp(m)})};
Nu[FA]=[_.y6,_.n4];var lG=function(G,c){this.store=G;this.JSC$17884_commandHandler=c||_.NC.instance};
_.u(lG,Af);lG.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F;return _.T(function(n){R=_.D(G,pa9);Z=I.store.getState().radioButtonGroup;if((K=R)==null?0:K.command)I.JSC$17884_commandHandler.resolveCommand((m=R)==null?void 0:m.command,c);else if(Z&&((a=R)==null?void 0:a.formId)===Z.currentFormId)for(O=Object.values(Z.commandsMap),N=_.Q(O),q=N.next();!q.done;q=N.next())w=q.value,(F=_.WI(w))&&I.JSC$17884_commandHandler.resolveCommand(F,c);_.Vp(n)})};
lG[FA]=[_.Ni];var qu=new _.De("USER_PREFS");var wh=function(G){this.JSC$17889_prefCookie=G};
_.u(wh,Af);wh.prototype.resolveCommand=function(G){var c=this,I;return _.T(function(R){(I=_.D(G,gSK))&&typeof I.useListView==="boolean"&&(_.eW(0,155,I.useListView),c.JSC$17889_prefCookie.save());_.Vp(R)})};
wh[FA]=[qu];var FE=function(G){this.JSC$17893_prefCookie=G};
_.u(FE,Af);FE.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m;return _.T(function(a){I=_.D(G,mnT);if((R=I)==null||!R.gl)return a.return();Z=I.gl;K={persist_gl:"1",gl:Z};c.JSC$17893_prefCookie.set("gl",Z);c.JSC$17893_prefCookie.save();m=Dwi(K);_.Ji(m);_.Vp(a)})};
FE[FA]=[qu];var nD=function(G){this.JSC$17897_prefCookie=G};
_.u(nD,Af);nD.prototype.resolveCommand=function(G){var c=this,I,R;return _.T(function(Z){I=_.D(G,vn9);if(!I)return Z.return();R=!1;I.flagNum&&typeof I.value==="boolean"?(_.eW(0,I.flagNum,I.value),R=!0):I.key&&typeof I.stringValue==="string"&&(c.JSC$17897_prefCookie.set(I.key,I.stringValue),R=!0);R&&c.JSC$17897_prefCookie.save();_.Vp(Z)})};
nD[FA]=[qu];var vj=new _.De("PREF_STORAGE_PROMISE_TOKEN");var DE=function(G){this.JSC$17901_prefStoragePromise=G};
_.u(DE,Af);DE.prototype.resolveCommand=function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1)return(I=_.D(G,one))?Z.yield(c.JSC$17901_prefStoragePromise,2):Z.return();R=Z.yieldResult;return R===void 0||I.key===void 0||I.value===void 0?Z.return():Z.yield(R.set(I.key,I.value),0)})};
DE[FA]=[vj];var ot=function(G){this.innertubeTransportService=G};
_.u(ot,Af);ot.prototype.resolveCommand=function(G,c){var I=this,R,Z;return _.T(function(K){(R=_.D(G,_.MNk))&&R&&R.isFirstRequest&&(_.sC("search_overview_answer"),_.LC("so_rq",void 0,"search_overview_answer"));return K.yield(_.CQ(I.innertubeTransportService,G,(Z=c)==null?void 0:Z.form),0)})};
ot[FA]=[_.UU];var MBd=function(){};
_.u(MBd,Af);
MBd.prototype.resolveCommand=function(G){var c,I,R,Z,K,m,a,O,N;return _.T(function(q){c=_.D(G,Ms0);if((I=c)==null?0:I.sectionIdentifier){if(c.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Z=(R=document.getElementsByTagName(c.sectionIdentifier))==null?void 0:R.item(0))Z.scrollIntoView({behavior:"smooth"}),(K=Fwr(Z))&&K.focus({preventScroll:!0});return q.return()}m=document.querySelector("[section-identifier="+c.sectionIdentifier+"]");a=document.querySelector("[section-identifier="+c.referenceSectionIdentifier+
"]");if(!m)return q.return();O=c.verticalScrollOffsetDp?c.verticalScrollOffsetDp:0;a&&(O-=a.offsetTop);window.scrollTo({top:m.offsetTop+O,behavior:"smooth"});(N=Fwr(m))&&N.focus({preventScroll:!0})}_.Vp(q)})};var Uz=function(G){this.JSC$17913_commandHandler=G};
_.u(Uz,Af);
Uz.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O;return _.T(function(N){if(N.nextAddress==1){I=_.D(G,Igp);if(!I||!I.imageBytes||!navigator.clipboard)return N.return();if(I.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.hg(Error("Gi")),N.return();_.s9(N,2);Z=(R=I)==null?void 0:R.imageBytes;K=Z.replace(/-/g,"+").replace(/_/g,"/");m=wvB(K);a={};O=[new ClipboardItem((a[m.type]=m,a))];return N.yield(navigator.clipboard.write(O),4)}if(N.nextAddress!=2)return I.successCommand&&
c.JSC$17913_commandHandler.resolveCommand(I.successCommand),_.Pl(N,0);_.M3(N);I.errorCommand&&c.JSC$17913_commandHandler.resolveCommand(I.errorCommand);_.Vp(N)})};
Uz[FA]=[_.n4];var uG=function(G,c){this.innertubeTransportService=G;this.JSC$17917_commandHandler=c};
_.u(uG,Af);uG.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1)return(R=_.D(G,RTT))?O.yield(_.CQ(I.innertubeTransportService,G,(Z=c)==null?void 0:Z.form),2):O.return();(K=O.yieldResult)&&K.errorMetadata&&R.onFailureCommand&&I.JSC$17917_commandHandler.resolveCommand(R.onFailureCommand);m=K;((a=m)==null?0:a.shareCommand)&&I.JSC$17917_commandHandler.resolveCommand(m.shareCommand,c);_.Vp(O)})};
uG[FA]=[_.UU,_.n4];var bG=function(){};
_.u(bG,Af);bG.prototype.resolveCommand=function(G){var c,I;return _.T(function(R){c=_.D(G,lMi);if(!c||!navigator.share)return R.return();I={url:c.url};try{return R.return(navigator.share(I))}catch(Z){}_.Vp(R)})};var kT=function(){};
_.u(kT,Af);kT.prototype.resolveCommand=function(){return _.T(function(G){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Vp(G)})};var sz=function(G){this.JSC$17927_navigationConfirmationService=G};
_.u(sz,Af);sz.prototype.resolveCommand=function(){var G=this;return _.T(function(c){G.JSC$17927_navigationConfirmationService.cancelPendingNavigation();_.Vp(c)})};
sz[FA]=[Iv];var LD=function(G){this.JSC$17930_screenManager=G};
_.u(LD,Af);LD.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N;return _.T(function(q){Z=(R=c.form)==null?void 0:R.event;m=(K=c.form)==null?void 0:K.element;if(!Z)throw new _.iW("Event not passed in when resolving command");a=_.Q(Z.composedPath());for(O=a.next();!O.done;O=a.next())if(N=O.value,N.tagName==="YT-COPY-LINK-RENDERER")return N.copyUrlToClipboard(),m&&_.t0(I.JSC$17930_screenManager,m),q.return();_.Vp(q)})};
LD[FA]=[_.PQ];var Ab=function(){this.JSC$17934_miniAppClientDataProvider=_.wH().resolve(_.E1)};
_.u(Ab,Af);Ab.prototype.resolveCommand=function(){var G=this,c,I;return _.T(function(R){if(G.JSC$17934_miniAppClientDataProvider.clientData.has("video_id")){var Z=G.JSC$17934_miniAppClientDataProvider,K=Z.clientData.get("video_id");K&&Z.clientData.delete("video_id");c="https://youtube.com/watch?v="+K;I=_.j_(c);if(I===void 0)throw Error("Hi`"+c);_.ZT(window,I)}_.Vp(R)})};var $T=function(){};
_.u($T,Af);$T.prototype.resolveCommand=function(){return _.T(function(G){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Vp(G)})};var S0=function(){};
_.u(S0,Af);S0.prototype.resolveCommand=function(){var G;return _.T(function(c){if(c.nextAddress==1)return c.yield(_.QHB(window.document.documentElement),2);(G=document.querySelector("mini-app-container-view-model iframe"))&&G.focus();_.Vp(c)})};var pD=function(G){this.JSC$17941_navigationConfirmationService=G};
_.u(pD,Af);
pD.prototype.resolveCommand=function(){var G=this;return _.T(function(c){var I=G.JSC$17941_navigationConfirmationService,R=_.wH().resolve(_.Hk),Z;if(((Z=I.navigateParams)==null?void 0:Z.data)!==void 0){var K;_.rnK(R,I.navigateParams.endpoint,I.navigateParams.data,(K=I.navigateParams.navigationType)!=null?K:1,I.navigateParams.tempData,I.navigateParams.isMiniplayer,void 0,!0);I.navigateParams=void 0;I.customConfirmationCommand=void 0}else I.navigateParams&&(R.navigate(I.navigateParams.endpoint,I.navigateParams.reload,
I.navigateParams.params,I.navigateParams.tempData,I.navigateParams.requestType,I.navigateParams.createScreenConfig,!0),I.navigateParams=void 0,I.customConfirmationCommand=void 0);_.Vp(c)})};
pD[FA]=[Iv];var Mu=function(){};
_.u(Mu,Af);Mu.prototype.resolveCommand=function(){return _.T(function(G){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Vp(G)})};var V8=function(G){this.JSC$17946_prefStorage=G};
_.u(V8,Af);V8.prototype.resolveCommand=function(){var G=this,c,I;return _.T(function(R){switch(R.nextAddress){case 1:return R.yield(G.JSC$17946_prefStorage,2);case 2:return(c=R.yieldResult)?R.yield(c.set("sfvle",!1),3):R.return();case 3:return R.yield(c.set("sfvles",!0),4);case 4:I=_.OC(),_.eW(0,203,!1),_.eW(0,204,!0),I.save(),_.Vp(R)}})};
V8[FA]=[vj];var zd=function(G){this.JSC$17949_prefStorage=G};
_.u(zd,Af);zd.prototype.resolveCommand=function(){var G=this,c,I;return _.T(function(R){switch(R.nextAddress){case 1:return R.yield(G.JSC$17949_prefStorage,2);case 2:return(c=R.yieldResult)?R.yield(c.set("sfvle",!0),3):R.return();case 3:return R.yield(c.set("sfvles",!0),4);case 4:I=_.OC(),_.eW(0,203,!0),_.eW(0,204,!0),I.save(),_.Vp(R)}})};
zd[FA]=[vj];_.VB$=new _.De("SNACKBAR_CONTROLLER_TOKEN");_.zpd=new _.De("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Ez=function(G){this.controller=G};
_.u(Ez,Af);Ez.prototype.resolveCommand=function(G){var c=this,I;return _.T(function(R){I=_.D(G,wT2);if(!I)return R.return();var Z=c.controller;Z.closeSnackbarFn&&Z.closeSnackbarFn();_.Vp(R)})};
Ez[FA]=[_.VB$];var Jb=function(G,c){this.controller=G;this.JSC$17956_sheetController=c};
_.u(Jb,Af);Jb.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O;return _.T(function(N){R=_.D(G,nwe);if(!R)return N.return();m=DSg(I.JSC$17956_sheetController,(Z=c)==null?void 0:(K=Z.form)==null?void 0:K.element);a=_.D(R.content,MH0);if(!a)return N.return();var q=I.controller,w=a,F=(O=R.animationStyle)!=null?O:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(q.showSnackbarFn)q.showSnackbarFn({snackbarViewModel:w,animationStyle:F,durationMs:R.durationSeconds*1E3,target:m});else throw Error("Aj");_.Vp(N)})};
Jb[FA]=[_.VB$,_.O6];var Wj=function(){};
_.u(Wj,Af);Wj.prototype.resolveCommand=function(G){var c;return _.T(function(I){c=_.D(G,Dn9);if(!c||typeof c.key!=="string"||typeof c.value!=="string")return I.return();window.localStorage.setItem(c.key,c.value);_.Vp(I)})};var iG=function(G){this.store=G};
_.u(iG,Af);iG.prototype.resolveCommand=function(G){var c=this,I;return _.T(function(R){I=_.D(G,wGi);if(!I||!I.stepId||!I.token)return R.return();c.store.dispatch(Oo0({stepId:I.stepId,token:I.token,isSelected:!1}));_.Vp(R)})};
iG[FA]=[om];var fD=function(G,c,I){this.innertubeTransportService=G;this.store=c;this.JSC$17968_screenManager=I};
_.u(fD,Af);
fD.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H,g,QO,T8,kp,FB,oq,Wr;return _.T(function(iT){I=_.D(G,l9k);if(!I||(R=I.stepIds)==null||!R.length)return iT.return();Z=c.store.getState().talkToRecs;K=[];m=[];a=_.Q(I.stepIds);for(O=a.next();!O.done;O=a.next())for(N=O.value,q=void 0,(w=(q=Z.stepStates[N])==null?void 0:q.userQuery)&&m.push({userQuery:I.submitEmptyUserQuery?"":w.userQuery,userQueryToken:w.token}),n=F=void 0,U=(n=(F=Z.stepStates[N])==null?void 0:
F.selectionStates)!=null?n:{},k=_.Q(Object.entries(U)),p=k.next();!p.done;p=k.next())M=p.value,z=_.Q(M),t=z.next().value,x=z.next().value,C=t,H=x,H.isSelected&&K.push(C);g={selectedChipTokens:K,userQueries:m,submittedStepIds:I.stepIds};QO={browseTalk2recsFormData:g};I.browseEndpoint?(T8=G,_.MC(T8,_.qD,I.browseEndpoint)):I.command&&(T8=I.command);if(!T8)return iT.return();kp=_.D(T8,_.fQ);if((FB=kp)==null?0:FB.command)if(oq=_.D(kp.command,aMi))Wr=_.NC.instance,Wr.resolveCommand(kp.command);return iT.yield(_.CQ(c.innertubeTransportService,
T8,{formData:QO,disableCache:!0}).then(function(z8){(z8==null?0:z8.trackingParams)&&c.JSC$17968_screenManager.graftServerVe(z8==null?void 0:z8.trackingParams)}),0)})};
fD[FA]=[_.UU,om,_.PQ];var Bj=function(G){this.store=G};
_.u(Bj,Af);
Bj.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N;return _.T(function(q){I=_.D(G,qRb);if(!I||!I.stepId)return q.return();if(I.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")m=(K=(R=c.store.getState().talkToRecs.stepStates[I.stepId])==null?void 0:(Z=R.userQuery)==null?void 0:Z.userQuery)!=null?K:"",a=m.length>0?". ":"",O=m+a+I.selectedText,c.store.dispatch(evN({stepId:I.stepId,userQueryToken:"",userQuery:O}));else if(I.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")c.store.dispatch(evN({stepId:I.stepId,userQueryToken:"",
userQuery:(N=I.selectedText)!=null?N:""}));else{if(!I.token)return q.return();c.store.dispatch(Oo0({stepId:I.stepId,token:I.token,isSelected:!0}))}_.Vp(q)})};
Bj[FA]=[om];var rh=function(G){this.store=G};
_.u(rh,Af);rh.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O;return _.T(function(N){R=_.D(G,HB0);if(!R||!R.stepId)return N.return();a=(m=(Z=c)==null?void 0:(K=Z.form)==null?void 0:K.userQuery)!=null?m:"";I.store.dispatch(evN({stepId:R.stepId,userQuery:a,userQueryToken:(O=R.userQueryToken)!=null?O:""}));_.Vp(N)})};
rh[FA]=[om];_.EM0=new _.De("TIMELY_ACTIONS_CONTROLLER_TOKEN");var j0=function(G){this.controller=G};
_.u(j0,Af);j0.prototype.resolveCommand=function(G){var c=this,I,R,Z,K;return _.T(function(m){I=_.D(G,$4k);if(!I)return m.return();R=I;Z=R.id;K=R.isVisible;if(Z===void 0||K===void 0)return m.return();var a;(a=c.controller.timelyActionsMap.get(Z))==null||a(Z,K);_.Vp(m)})};
j0[FA]=[_.EM0];var Js$=function(){this.timelyActionsMap=new Map};var xT=function(G){this.JSC$17994_commandHandler=G};
_.u(xT,Af);xT.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m;return _.T(function(a){I=_.D(G,_.iuV);if(!I)return a.return();K=(R=I.item)==null?void 0:(Z=R.notificationTextRenderer)==null?void 0:Z.successResponseText;if(!K)return a.return();m=_.YV(K);c.JSC$17994_commandHandler.resolveCommand(m);_.Vp(a)})};
xT[FA]=[_.n4];var tb=function(G,c){this.innertubeTransportService=G;this.JSC$17999_playerApiPromise=c};
_.u(tb,Af);
tb.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q;return _.T(function(w){if(w.nextAddress==1)return w.yield(c.JSC$17999_playerApiPromise,2);I=w.yieldResult;R=I.getOption("captions","track");Z=Object.assign({},_.D(G,_.jj2));(m=(K=I.getVideoData())==null?void 0:K.video_id)?Z.externalVideoId=m:_.Ra(Error("Ii"));if((a=R)==null?0:a.languageCode)Z.languageCode=R.languageCode;if((O=R)==null?0:O.kind)Z.kind=R.kind;if((N=R)==null?0:N.name)Z.name=R.name;q=Object.assign({},G,{getTranscriptEndpoint:Z});return w.yield(_.CQ(c.innertubeTransportService,
q),0)})};
tb[FA]=[_.UU,_.a9];var hb=function(){};
_.u(hb,Af);hb.prototype.resolveCommand=function(G){var c,I,R,Z,K,m,a,O;return _.T(function(N){c=_.D(G,SYK);if((I=c)==null||!I.paramKeyValuePairs)return N.return();R=window.location.href;Z=_.Q(c.paramKeyValuePairs);for(K=Z.next();!K.done;K=Z.next())m=K.value,m.key&&m.value&&(a={},R=_.mb(R,(a[m.key]=m.value,a)));O=_.wH().resolve(_.gQ);_.y_(O,R);_.Vp(N)})};_.dh=new _.De("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var CD=function(G,c,I,R){this.controller=G;this.JSC$18006_playerApiPromise=c;this.innertubeTransportService=I;this.JSC$18006_commandHandler=R};
_.u(CD,Af);
CD.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t;return _.T(function(x){if(x.nextAddress==1){I=_.D(G,gwi);if((R=I)==null||!R.watchEndpoint)return x.return();Z=new Xy;K=Z.JSC$14340_getRequest(I.watchEndpoint);if(!K)return x.return();m=I.watchEndpoint.clickTrackingParams;return x.yield(_.UO(c.innertubeTransportService,K.innerTubeRequest,K.input,m,K.config),2)}if(x.nextAddress!=3)return a=x.yieldResult,x.yield(c.JSC$18006_playerApiPromise,3);O=x.yieldResult;O.updateVideoData({raw_watch_next_response:a});
if(U=(N=a)==null?void 0:(q=N.contents)==null?void 0:(w=q.twoColumnWatchNextResults)==null?void 0:(F=w.results)==null?void 0:(n=F.results)==null?void 0:n.contents)p=(k=U.find(function(C){return C.videoPrimaryInfoRenderer}))==null?void 0:k.videoPrimaryInfoRenderer,((M=p)==null?0:M.subtitle)&&W3u(c.controller,p.subtitle);
(t=(z=a)==null?void 0:z.onUiReady)&&c.JSC$18006_commandHandler.resolveCommand(t);_.Vp(x)})};
CD[FA]=[_.dh,_.a9,_.UU,_.n4];var i8G=function(){this.subtitleChangeCallbackMap=new Map},W3u=function(G,c){G=_.Q(G.subtitleChangeCallbackMap.values());
for(var I=G.next();!I.done;I=G.next())I=I.value,I(c)};var Hj=function(G,c){this.JSC$18016_commandHandler=G;this.innertubeTransportService=c};
_.u(Hj,Af);
Hj.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t;return _.T(function(x){switch(x.nextAddress){case 1:return(K=(R=c)==null?void 0:(Z=R.form)==null?void 0:Z.element)&&_.hq(K),m=_.OC().get("hl"),a="",_.s9(x,2),x.yield(fyr(m),4);case 4:a=x.yieldResult;_.Pl(x,3);break;case 2:return _.M3(x),K&&_.d8(K),_.hg(Error("Ki"),"ERROR"),x.return();case 3:O=_.D(G,TrK);if(!O)return K&&_.d8(K),x.return();(w=(N=O.commerceActionConfig)==null?void 0:(q=N.commandLifeCycleConfig)==null?
void 0:q.onStartCommand)&&I.JSC$18016_commandHandler.resolveCommand(w);return x.yield(_.CQ(I.innertubeTransportService,G,{client_data:{paymentsClientToken:{token:a}}}),5);case 5:(F=x.yieldResult)?(K&&_.d8(K),((p=F)==null?0:p.command)&&I.JSC$18016_commandHandler.resolveCommand(F.command),(t=(M=O.commerceActionConfig)==null?void 0:(z=M.commandLifeCycleConfig)==null?void 0:z.onSuccessCommand)&&I.JSC$18016_commandHandler.resolveCommand(t)):(K&&_.d8(K),_.hg(Error("Li")),(k=(n=O.commerceActionConfig)==
null?void 0:(U=n.commandLifeCycleConfig)==null?void 0:U.onFailureCommand)&&I.JSC$18016_commandHandler.resolveCommand(k)),_.Vp(x)}})};
Hj[FA]=[_.n4,_.UU];var XE=function(G,c,I){this.store=G;this.JSC$18032_commandHandler=c;this.innertubeTransportService=I};
_.u(XE,Af);
XE.prototype.resolveCommand=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w;return _.T(function(F){R=_.D(G,Oi2);Z=R.googlePaymentPayload;R.onStartCommand&&I.JSC$18032_commandHandler.resolveCommand(R.onStartCommand);K=Z.encryptedPurchaseParams;m=Z.ypcLogWalletAnalyticDataEndpoint;a=R.serializedTransactionFlowLoggingParams;O=Z.serializedPaymentsClientParams;N=R.ypcCujContext;w=j$T(I.innertubeTransportService,(q=c)==null?void 0:q.form,K,m,a,O,N);return F.return(w.then(function(n){BzU(c==null?void 0:c.form,
!1);var U=I.store,k=I.JSC$18032_commandHandler,p=n.integratorData;p==null||p===""||n.error!=null?(String(n.error)==="-1"&&R.onDismissCommand?k.resolveCommand(R.onDismissCommand):String(n.error)!=="-1"&&R.onFailureCommand&&k.resolveCommand(R.onFailureCommand),String(n.error)!=="-1"&&String(n.error)!=="132"&&_.hg(Error("Mi"),"ERROR")):(R.googlePaymentEntityKey&&U.dispatch(_.Le("commerceAcquisitionClientPayloadEntity",R.googlePaymentEntityKey,{key:R.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:p,
fundsGuaranteeCallbackClientData:n.integratorClientCallbackData}}})),R.onSuccessCommand&&k.resolveCommand(R.onSuccessCommand));_.IP()},function(n){BzU(c==null?void 0:c.form,!1);
_.hg(n,"ERROR");R.onFailureCommand&&I.JSC$18032_commandHandler.resolveCommand(R.onFailureCommand)}))})};
XE[FA]=[NB,_.n4,_.UU];var y8=function(G,c){this.JSC$18036_commandHandler=G;this.purchaseManager=c};
_.u(y8,Af);
y8.prototype.resolveCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q;return _.T(function(w){I=_.D(G,ezK);((R=I)==null?0:(Z=R.commandLifeCycleConfig)==null?0:Z.onStartCommand)&&c.JSC$18036_commandHandler.resolveCommand(I.commandLifeCycleConfig.onStartCommand);if(!((K=I)==null?0:(m=K.googlePaymentPurchaseManagerPayload)==null?0:m.securePayloadBytes))return _.hg(Error("Ni"),"ERROR"),w.return();a=c0V(_.Yp(I.googlePaymentPurchaseManagerPayload.securePayloadBytes));O=_.OC().get("hl");N=_.HU();bTd(a.serialize(),
O,function(F){N.resolve(F)},function(F){N.reject(F)},N.resolve);
q=N.promise;return w.return(q.then(function(F){if(F)if(F==null?0:F.errorCode){_.hg(Error("Oi`"+F.errorCode),"ERROR");var n,U;((n=I)==null?0:(U=n.commandLifeCycleConfig)==null?0:U.onFailureCommand)&&c.JSC$18036_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}else if(F==null?0:F.isCancelled){var k,p;((k=I)==null?0:(p=k.commandLifeCycleConfig)==null?0:p.onCancelCommand)&&c.JSC$18036_commandHandler.resolveCommand(I.commandLifeCycleConfig.onCancelCommand)}else{var M,z;((M=I)==
null?0:(z=M.commandLifeCycleConfig)==null?0:z.onSuccessCommand)&&c.JSC$18036_commandHandler.resolveCommand(I.commandLifeCycleConfig.onSuccessCommand)}},function(F){_.hg(F,"ERROR");
var n,U;((n=I)==null?0:(U=n.commandLifeCycleConfig)==null?0:U.onFailureCommand)&&c.JSC$18036_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}))})};
y8[FA]=[_.n4,kid];var f3d=function(G,c){this.JSC$18044_commandHandler=G;this.commandAllowlistOverride=c;var I;this.commandAllowlist=(I=this.commandAllowlistOverride)!=null?I:X6};
f3d.prototype.handleResponse=function(G,c,I){var R,Z=c==null?void 0:(R=c.config)==null?void 0:R.command;if(!Z||this.commandAllowlist.some(function(K){return!!_.D(Z,K)})){c=void 0;
I!==void 0&&(c={form:{element:I}});G.onResponseReceivedCommand&&this.JSC$18044_commandHandler.resolveCommand(G.onResponseReceivedCommand,c);G.onResponseReceivedAction&&this.JSC$18044_commandHandler.resolveCommand(G.onResponseReceivedAction,c);G.onResponseReceivedEndpoint&&this.JSC$18044_commandHandler.resolveCommand(G.onResponseReceivedEndpoint,c);G.command&&this.JSC$18044_commandHandler.resolveCommand(G.command,c);if(G.onResponseReceivedCommands)for(I=_.Q(G.onResponseReceivedCommands),R=I.next();!R.done;R=
I.next())this.JSC$18044_commandHandler.resolveCommand(R.value,c);if(G.onResponseReceivedActions)for(I=_.Q(G.onResponseReceivedActions),R=I.next();!R.done;R=I.next())this.JSC$18044_commandHandler.resolveCommand(R.value,c);if(G.onResponseReceivedEndpoints)for(I=_.Q(G.onResponseReceivedEndpoints),R=I.next();!R.done;R=I.next())this.JSC$18044_commandHandler.resolveCommand(R.value,c);if(G.actions)for(G=_.Q(G.actions),I=G.next();!I.done;I=G.next())this.JSC$18044_commandHandler.resolveCommand(I.value,c)}};
f3d[FA]=[_.n4,_.qR(Mer)];var BxG=new _.De("INNERTUBE_TOKEN_SERVICE");var rsd=new _.De("SCHEDULER_TOKEN");var j2u=function(G){this.scheduler=G;G={};this.tokenMap=(G.app={},G.user={},G)};
j2u.prototype.handleResponse=function(G,c){if(!c)throw Error("Pi");var I;if(G=(I=G.responseContext)==null?void 0:I.innertubeTokenJar){if(G.appTokens){var R,Z,K;I=(R=c.innerTubeRequest.context)==null?void 0:(Z=R.request)==null?void 0:(K=Z.innertubeTokenJar)==null?void 0:K.appTokens;xSG(this,G.appTokens,this.tokenMap.app,I)}if(G.userTokens){var m,a,O;c=(m=c.innerTubeRequest.context)==null?void 0:(a=m.request)==null?void 0:(O=a.innertubeTokenJar)==null?void 0:O.userTokens;xSG(this,G.userTokens,this.tokenMap.user,
c)}}};
j2u.prototype.processContext=function(G){G.request||(G.request={});var c=Object.keys(this.tokenMap.app).length,I=Object.keys(this.tokenMap.user).length;if(c||I)G.request.innertubeTokenJar={},c&&(G.request.innertubeTokenJar.appTokens=[].concat(_.jn(Object.values(this.tokenMap.app).flat()))),I&&(G.request.innertubeTokenJar.userTokens=[].concat(_.jn(Object.values(this.tokenMap.user).flat())))};
var xSG=function(G,c,I,R){c=_.Q(c);for(var Z=c.next(),K={};!Z.done;K={token$jscomp$139:void 0},Z=c.next()){K.token$jscomp$139=Z.value;if(K.token$jscomp$139.type===void 0)throw new _.iW("InnerTube token has no type",K.token$jscomp$139);if(K.token$jscomp$139.clearTokens)I[K.token$jscomp$139.type]=[];else if(K.token$jscomp$139.value!==void 0){I[K.token$jscomp$139.type]||(I[K.token$jscomp$139.type]=[]);if(R!==void 0&&R.length){Z=_.Q(R);for(var m=Z.next(),a={};!m.done;a={requestToken:void 0},m=Z.next())a.requestToken=
m.value,m=I[K.token$jscomp$139.type].findIndex(function(O){return function(N){return N===O.requestToken||(0,_.rx.equals)(N,O.requestToken)}}(a)),m>-1&&I[K.token$jscomp$139.type].splice(m,1)}I[K.token$jscomp$139.type].push(K.token$jscomp$139);
K.token$jscomp$139.maxAgeSeconds&&Number(K.token$jscomp$139.maxAgeSeconds)>0&&G.scheduler.addLowPriorityJob(function(O){return function(){var N=I[O.token$jscomp$139.type].indexOf(O.token$jscomp$139);N>-1&&I[O.token$jscomp$139.type].splice(N,1)}}(K),Number(K.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.iW("InnerTube token has no value",K.token$jscomp$139);
}};
j2u[FA]=[rsd];var tB7=new _.De("LOCAL_INNERTUBE_ROUTER_TOKEN"),hpW=new _.De("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var gh=function(G){this.serviceMap=G};
gh.prototype.shouldPreferLocalResponse=function(G,c){return(G=dS1(this,G))?G.shouldPreferLocalResponse(c):!1};
gh.prototype.localInnertubeResponse=function(G,c){var I=this,R;return _.T(function(Z){return(R=dS1(I,G))?Z.return(R.localInnertubeResponse(c)):Z.return(Promise.reject(Error("Qi")))})};
gh.prototype.canProvideFallbackResponse=function(G,c){return(G=dS1(this,G))?G.canProvideFallbackResponse(c):!1};
gh.prototype.localFallbackInnertubeResponse=function(G,c){var I=this,R;return _.T(function(Z){return(R=dS1(I,G))?Z.return(R.localFallbackInnertubeResponse(c)):Z.return(Promise.reject(Error("Qi")))})};
var dS1=function(G,c){c=_.Aw(c);return c?(G=G.serviceMap[c])?G:null:null};
gh[FA]=[hpW];var SX=function(){};
SX.prototype.shouldPreferLocalResponse=function(){return!1};
SX.prototype.localInnertubeResponse=function(){return _.T(function(G){return G.return(Promise.reject(Error("Ri")))})};
SX.prototype.canProvideFallbackResponse=function(){return!0};
SX.prototype.localFallbackInnertubeResponse=function(){var G,c,I;return _.T(function(R){G=ol("CLOSE_POPUP");c={openPopupAction:tOr()};I={actions:[G,c]};return R.return(I)})};var PCp=function(G,c){this.JSC$18093_upliftPromise=G;this.store=c};
_.P=PCp.prototype;_.P.shouldPreferLocalResponse=function(G){var c=G.videoId,I;if(I=c)I=Xk8(this.store.getState().entities,G.videoId);return I&&yhU(this.store.getState().entities,c)?dK8(this.store.getState().entities,G.playlistId):!1};
_.P.localInnertubeResponse=function(G){var c=this,I;return _.T(function(R){return(I=c.getPlayerResponse(G))?R.return(Promise.resolve(I)):R.return(Promise.reject(Error("Si")))})};
_.P.canProvideFallbackResponse=function(G){return!!G.videoId};
_.P.localFallbackInnertubeResponse=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(c.JSC$18093_upliftPromise,2);I=c.getPlayerResponse(G);var Z;I?Z=R.return(Promise.resolve(I)):Z=U4(c.store.getState().entities,G.videoId)?R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Gv(_.mJ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:c6r()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Gv(_.mJ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:G_b()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Z})};
_.P.getPlayerResponse=function(G){return uX8(this.store.getState().entities,G.videoId)};var $X=function(G,c){this.localPlayerService=G;this.localWatchNextService=c};
$X.prototype.shouldPreferLocalResponse=function(G){var c=G.playerRequest;G=G.watchNextRequest;return!!(c&&this.localPlayerService.shouldPreferLocalResponse(c)&&G&&this.localWatchNextService.shouldPreferLocalResponse(G))};
$X.prototype.localInnertubeResponse=function(G){var c=this,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1){I=G.playerRequest;R=G.watchNextRequest;if(!I||!R)throw new _.iW("Missing streaming request",G);return m.yield(c.localPlayerService.localInnertubeResponse(I),2)}if(m.nextAddress!=3)return Z=m.yieldResult,m.yield(c.localWatchNextService.localInnertubeResponse(R),3);K=m.yieldResult;return m.return({playerResponse:Z,watchNextResponse:K})})};
$X.prototype.canProvideFallbackResponse=function(G){var c=G.playerRequest;G=G.watchNextRequest;return!!(c&&this.localPlayerService.canProvideFallbackResponse(c)&&G&&this.localWatchNextService.canProvideFallbackResponse(G))};
$X.prototype.localFallbackInnertubeResponse=function(G){var c=this,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return I=G.playerRequest,R=G.watchNextRequest,I&&R?m.yield(c.localPlayerService.localFallbackInnertubeResponse(I),2):m.return(Promise.reject(new _.iW("Missing streaming request",G)));if(m.nextAddress!=3)return Z=m.yieldResult,m.yield(c.localWatchNextService.localFallbackInnertubeResponse(R),3);K=m.yieldResult;return m.return({playerResponse:Z,watchNextResponse:K})})};var s_=function(G){this.JSC$18103_persistentStorePromiseAccessor=G};
s_.prototype.shouldPreferLocalResponse=function(){return!1};
s_.prototype.localInnertubeResponse=function(){return _.T(function(G){return G.return(Promise.reject(Error("Ti")))})};
s_.prototype.canProvideFallbackResponse=function(){return!0};
s_.prototype.localFallbackInnertubeResponse=function(){var G=this,c,I;return _.T(function(R){return R.nextAddress==1?R.yield(G.JSC$18103_persistentStorePromiseAccessor(),2):R.nextAddress!=3?(c=R.yieldResult)?R.yield(c.get("service:guide:fallback"),3):R.return(Promise.reject(Error("Ui"))):(I=R.yieldResult)&&_.mG(I)?R.return(Cwr(_.mG(I))):R.return(Promise.reject(Error("Vi")))})};var pM=function(){};
pM.prototype.shouldPreferLocalResponse=function(){return!1};
pM.prototype.localInnertubeResponse=function(){return _.T(function(G){return G.return(Promise.reject(Error("Wi")))})};
pM.prototype.canProvideFallbackResponse=function(){return!0};
pM.prototype.localFallbackInnertubeResponse=function(){var G,c,I;return _.T(function(R){G=ol("CLOSE_POPUP");c={openPopupAction:tOr()};I={actions:[G,c]};return R.return(I)})};var kX=function(){this.urlMap=Cyu;this.fallbackCommand=_.IM};
kX.prototype.shouldPreferLocalResponse=function(G){return(G=G.url)?!!H87(this,G):!1};
kX.prototype.localInnertubeResponse=function(G){var c=this,I;return _.T(function(R){return(I=G.url)?R.return(X60(G,H87(c,I))):R.return(Promise.reject(Error("Xi")))})};
kX.prototype.canProvideFallbackResponse=function(){return!0};
kX.prototype.localFallbackInnertubeResponse=function(G){var c=this,I,R,Z,K,m,a,O;return _.T(function(N){I=G.url;if(!I)return N.return(X60(G,c.fallbackCommand));if(R=H87(c,I))return N.return(X60(G,R));Z=void 0;K=_.Aw(I);K==="/watch"&&(m=_.Gy(I,"v"))&&(O=(a=_.Gy(I,"list"))!=null?a:void 0,Z=_.YD(m,O));Z||(Z=c.fallbackCommand);return N.return(X60(G,Z))})};
var H87=function(G,c){if(c)return G.urlMap[_.zO(c)]},X60=function(G,c){c&&G.parentTrackingParams&&(c.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:G.parentTrackingParams}},c.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:c})};var LM=function(G,c,I){this.JSC$18114_upliftPromise=G;this.store=c;this.JSC$18114_persistentStorePromiseAccessor=I};
LM.prototype.shouldPreferLocalResponse=function(){return!1};
LM.prototype.localInnertubeResponse=function(){return _.T(function(G){return G.return(Promise.reject(Error("Yi")))})};
LM.prototype.canProvideFallbackResponse=function(){return!0};
LM.prototype.localFallbackInnertubeResponse=function(){var G=this;return _.T(function(c){return c.return(ysH(G))})};
var ysH=function(G){var c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(Qs(G.JSC$18114_upliftPromise,G.store),2);c=R.yieldResult;I={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[hHg(c)]}}}};return R.return(gMH(G,I))})},gMH=function(G,c){var I,R;
return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$18114_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return I=Z.yieldResult,Z.yield(eX(I),3);R=Z.yieldResult;return Z.return({responseContext:{},contents:c,topbar:R})})};var uJ=function(G,c,I){this.JSC$18121_upliftPromise=G;this.store=c;this.JSC$18121_persistentStorePromiseAccessor=I};
uJ.prototype.shouldPreferLocalResponse=function(G){var c=G.videoId;return c&&Xk8(this.store.getState().entities,c)&&yhU(this.store.getState().entities,c)?dK8(this.store.getState().entities,G.playlistId):!1};
uJ.prototype.localInnertubeResponse=function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1)return(I=G.videoId)?Z.yield(c.JSC$18121_upliftPromise,2):Z.return(Promise.reject(Error("Zi")));if(Z.nextAddress!=3)return Z.yield(Yq$(c,G,I),3);R=Z.yieldResult;return Z.return(GBr(c,R,I))})};
uJ.prototype.canProvideFallbackResponse=function(G){return G.videoId?!0:!1};
uJ.prototype.localFallbackInnertubeResponse=function(G){var c=this,I,R,Z,K;return _.T(function(m){switch(m.nextAddress){case 1:return(I=G.videoId)?m.yield(c.JSC$18121_upliftPromise,2):m.return(Promise.reject(Error("Zi")));case 2:return m.yield(Yq$(c,G,I),3);case 3:R=m.yieldResult;if(U4(c.store.getState().entities,I)){m.jumpTo(4);break}return m.yield(Qs(c.JSC$18121_upliftPromise,c.store),5);case 5:return Z=m.yieldResult,m.return(cK0(R,Z));case 4:return Xk8(c.store.getState().entities,I)&&yhU(c.store.getState().entities,
I)?m.return(GBr(c,R,I)):(K={title:_.Gv(_.mJ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:c6r()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},m.return(cK0(R,K)))}})};
var Yq$=function(G,c,I){var R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1)return R=c.playlistId,Z=_.YD(I,R),O.yield(G.JSC$18121_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return K=O.yieldResult,O.yield(eX(K),3);m=O.yieldResult;a={responseContext:{},currentVideoEndpoint:Z,topbar:m};return O.return(a)})},GBr=function(G,c,I){if(G=U4(G.store.getState().entities,I)){var R;
I=G.videoEntity;var Z,K={title:cY(I.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.I6((R=I.localizedStrings)==null?void 0:R.viewCount),viewCount:_.I6((Z=I.localizedStrings)==null?void 0:Z.viewCount)}}};I.publishedTimestampMillis&&(K.dateText=_.I6(F8r(new Date(Number(I.publishedTimestampMillis)))));R={videoPrimaryInfoRenderer:K};Z=G.videoEntity;G=G.channelEntity;G={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:cY(_.mJ("SHOW_MORE",void 0,"Show more")),
showLessText:cY(_.mJ("SHOW_LESS",void 0,"Show less")),description:Z.formattedDescription,owner:{videoOwnerRenderer:{title:cY(G.title),thumbnail:G.avatar}}}};c.contents={twoColumnWatchNextResults:{results:{results:{contents:[R,G]}}}}}return c},cK0=function(G,c){G.contents={singleColumnWatchNextResults:{results:{results:{contents:[hHg(c)]}}}};
return G};var AA=function(G,c,I){this.JSC$18126_upliftPromise=G;this.store=c;this.JSC$18126_persistentStorePromiseAccessor=I};
AA.prototype.shouldPreferLocalResponse=function(){return!1};
AA.prototype.localInnertubeResponse=function(){return _.T(function(G){return G.return(Promise.reject(Error("$i")))})};
AA.prototype.canProvideFallbackResponse=function(){return!0};
AA.prototype.localFallbackInnertubeResponse=function(){var G=this,c,I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:return K.yield(G.JSC$18126_persistentStorePromiseAccessor(),2);case 2:return c=K.yieldResult,K.yield(eX(c),3);case 3:return I=K.yieldResult,R={responseContext:{},topbar:I},K.yield(G.JSC$18126_upliftPromise,4);case 4:return K.yield(Qs(G.JSC$18126_upliftPromise,G.store),5);case 5:return Z=K.yieldResult,R.watchStatus={backgroundPromoRenderer:Z},K.return(R)}})};var ILg,RYd;_.GY=new _.De("ENDPOINT_MAP");ILg=new _.De("WATCH_ENDPOINT_MAP");RYd=new _.De("REEL_ENDPOINT_MAP");var Gji=/^[a-zA-Z0-9_\-]{11}$/;var cP8=_.J5(function(){var G,c;return(c=(G=window).matchMedia)==null?void 0:c.call(G,"(prefers-reduced-motion: reduce)").matches});var ZSr=_.J5(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var G=_.Yc("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");G||(G=_.$9("VIDEO"),_.lr("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
G));return!!(G&&G.canPlayType&&G.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var Krr=XMLHttpRequest.prototype.fetch,PRr=Krr&&Krr.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!ev?!0:!1;var cf=function(G){this.JSC$18137_storeWithEntities=G};
_.u(cf,nf);_.P=cf.prototype;_.P.getApiPaths=function(){return cZA};
_.P.getExtension=function(G){return _.D(G,_.fR)||_.D(G,_.vH)||_.D(G,XRA)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14347_getStoreKey=function(G){if((_.v("kevlar_cache_on_ttl_player")||_.v("mweb_enable_shorts_innertube_player_prefetch")||_.v("mweb_use_new_history_manager")||_.v("web_shorts_prefetch_service_enabled"))&&(G=this.getExtension(G))&&G.videoId){var c={videoId:G.videoId};G.playlistId&&(c.playlistId=G.playlistId);G.playerParams&&(c.params=G.playerParams);return _.i6("player",c)}};
_.P.JSC$14340_getClientScreen=function(G){var c;return((c=G.contentPlaybackContext)==null?void 0:c.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$14340_buildRequest=function(G,c,I){if(_.v("enable_interstitial_entity_check")){var R=this.JSC$18137_storeWithEntities;if(c.videoId)for(var Z=_.Q(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),K=Z.next();!K.done;K=Z.next()){K=K.value;var m;var a=void 0,O=void 0,N=c.videoId,q=K;(m=R)?(N=_.mx(N+q,"interstitialInteractionStateEntity"),m=(a=(O=_.a6(m.getState().entities,"interstitialInteractionStateEntity",N))==null?void 0:O.primaryButtonClicked)!=null?a:!1):m=!1;if(m)switch(K){case "CONTENT_CHECK_REQUIRED":c.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":c.racyCheckOk=!0}}}c.videoId&&(G.videoId=c.videoId);c.playlistId&&(G.playlistId=c.playlistId);c.index!==void 0&&(G.playlistIndex=c.index+1);c.playerParams&&(G.params=c.playerParams);"startTimeSeconds"in c&&c.startTimeSeconds&&(_.v("enable_player_request_builder_start_time_floor")?G.startTimeSecs=Math.floor(c.startTimeSeconds):G.startTimeSecs=c.startTimeSeconds);I.contentPlaybackContext&&(G.playbackContext={contentPlaybackContext:I.contentPlaybackContext});I.prefetchPlaybackContext&&
(G.playbackContext=Object.assign({},G.playbackContext,{prefetchPlaybackContext:I.prefetchPlaybackContext}),G.context.request||(G.context.request={}),G.context.request.isPrefetch=!0);G.playbackContext||(G.playbackContext={});R=ZSr();G.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!R,supportXhr:PRr};I.overrideMutedAtStart&&(G.overrideMutedAtStart=I.overrideMutedAtStart);G.racyCheckOk=!!c.racyCheckOk;G.contentCheckOk=!!c.contentCheckOk;!_.v("captions_prefs_killswitch")&&(I=(I=_.ka("yt-player-caption-language-preferences"))?
I:[],I==null?0:I.length)&&(G.captionParams={viewerSelectedCaptionLangs:I})};
_.P.getRequestConfig=function(G){G=this.JSC$14347_getStoreKey(G);var c;G&&(c={storeStrategy:{storeKey:G}});_.v("web_log_player_watch_next_ticks")&&(c=c||{},c.requestTick="ps_s",c.responseTick="ps_r");return c};
cf[FA]=[NB];var IY=function(G,c){this.playerRequestBuilder=G;this.watchNextRequestBuilder=c};
_.u(IY,nf);IY.prototype.getApiPaths=function(){return xZB};
IY.prototype.getExtension=function(G){return _.D(G,_.fR)};
IY.prototype.isNavigationCommand=function(){return!0};
IY.prototype.JSC$14340_buildRequest=function(G,c,I){G.playerRequest={};this.playerRequestBuilder.JSC$14340_buildRequest(G.playerRequest,c,I);if(_.v("web_streaming_watch")||_.v("mweb_streaming_watch"))G.watchNextRequest={},this.watchNextRequestBuilder.JSC$14340_buildRequest(G.watchNextRequest,c,I)};
IY[FA]=[cf,Xy];var Qnj;_.RY=new _.De("SHORTS_CONTROLLER_TOKEN");Qnj=new _.De("SHORTS_STATE_STORE_TOKEN");var ZN=function(G,c){var I=_.Hy.apply(2,arguments);G=G===void 0?0:G;_.iW.call(this,c,I);this.errorType=G;Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(ZN,_.iW);var mw7,aLW,TF7,mvO,X0,$Pb,NFG,eYg,n9d,wDg,qeg;mw7=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(G){return G+"="}).join("|"));
aLW=RegExp(".*\\?.*playnext=1.*");TF7=function(G,c,I,R,Z,K){this.watchEndpointMap=G;this.reelWatchEndpointMap=c;this.innerTubeTransportService=I;this.fetchPbj=R;this.ephemeralStore=Z;this.reloadOnPlayerFailure=K===void 0?!0:K};
_.OSd=function(G,c){var I=_.DH("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;var R;if((R=_.D(c.commandMetadata,_.Pd))==null||!R.rootVe)return I&&_.Ck(Error("ej")),!1;var Z;R=(Z=_.D(c.commandMetadata,_.Pd))==null?void 0:Z.url;if(!R)return I&&_.Ck(Error("fj")),!1;if(aLW.test(R))return!0;if(mw7.test(R))return I&&_.Ck(Error("gj`"+R)),!1;if(_.D(c,_.fR)){if(!(G.watchEndpointMap.watchNext&&G.watchEndpointMap.player||_.v("kevlar_fetch_initial_data_op_watch_client")))return I&&_.Ck(Error("aj")),!1;
G=_.DH("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;_.D(c,_.fR)?glB(c)?c=!0:(G&&_.Ck(Error("bj")),c=!1):(G&&_.Ck(Error("aj")),c=!1);return c}if(_.D(c,_.vH))return Yxb(c);if(_.D(c,_.wt))return!0;G=_.di(G.innerTubeTransportService,c);!G&&I&&_.hg(Error("hj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(c)});return G};
mvO=function(G,c,I,R,Z,K){c={url:c};if(I==null?0:I.itct)c.parentTrackingParams=I.itct;var m=_.gL(TCe);return _.UO(G.innerTubeTransportService,c,m).then(function(a){(a=a.endpoint)||(a=_.IM);(I==null?0:I.itct)&&a&&!a.trackingParams&&(a.trackingParams=I.itct);var O=FN(a);return X0(G,a,I,R,O,Z,K)})};
X0=function(G,c,I,R,Z,K,m,a){a=a===void 0?{}:a;if(G.fetchPbj&&!_.OSd(G,c)&&!_.v("force_one_platform")){var O=G.fetchPbj(c),N=_.IP(O.then(function(H){if(!H)throw Error("ij");m(N)||K(c,H);return H}));
return N}var q,w,F={rootVe:(q=_.D(c.commandMetadata,_.Pd))==null?void 0:q.rootVe,url:(w=_.D(c.commandMetadata,_.Pd))==null?void 0:w.url,endpoint:c,page:Z};if(_.D(c,_.fR)){var n,U={contentPlaybackContext:_.lJ(I,(n=_.D(c.commandMetadata,_.Pd))==null?void 0:n.url,R)},k=_.HU(),p,M=(p=G.watchEndpointMap.player)==null?void 0:p().JSC$14347_getStoreKey(c);p=M!==void 0&&((O=G.ephemeralStore)==null?void 0:O.has(M));(_.v("web_streaming_watch")||_.v("mweb_streaming_watch"))&&window.TextDecoderStream&&!p?(O=WfA(G.innerTubeTransportService,
c,U,function(H){!F.response&&H.content&&(F.response=H.content);!F.playerResponse&&H.player&&(F.playerResponse=H.player);K(c,F)}),M=yMg(c),M.length&&(F.preconnect=M,K(c,F)),eYg(O,k,F).catch(function(H){H instanceof ZN&&H.errorType===2&&_.v("web_streaming_watch_fallback")&&NFG(G,c,U,F,K,m,k)})):NFG(G,c,U,F,K,m,k);
return k.promise}if(_.D(c,_.vH)){var z;if(((z=_.D(c,_.vH))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var t=_.HU();_.lLj(_.wH().resolve(_.RY),c).then(function(H){qeg(G,I,R,Z,K,t,H)});
return t.promise}O=_.IP();p={contentPlaybackContext:_.lJ(I,(M=_.D(c.commandMetadata,_.Pd))==null?void 0:M.url,R)};(M=G.reelWatchEndpointMap.player)&&(M=M().JSC$14340_getRequest(c,p))&&(O=_.UO(G.innerTubeTransportService,M.innerTubeRequest,M.input,c.clickTrackingParams,M.config));M=_.IP();(a=G.reelWatchEndpointMap.reelItemWatch)&&(a=a().JSC$14340_getRequest(c))&&(M=_.UO(G.innerTubeTransportService,a.innerTubeRequest,a.input,c.clickTrackingParams,a.config));a=_.IP();(q=G.reelWatchEndpointMap.reelWatchSequence)&&
_.D(c,_.vH).sequenceParams&&(p=q().JSC$14340_getRequest(c,p))&&(_.v("web_enable_delay_shorts_sequence_call_forget")?_.UO(G.innerTubeTransportService,p.innerTubeRequest,p.input,c.clickTrackingParams,p.config):a=_.UO(G.innerTubeTransportService,p.innerTubeRequest,p.input,c.clickTrackingParams,p.config));p=_.IP(F);q=_.HU();wDg(c,p,O,M,a,K,m,q);return q.promise}var x;if(_.D(c,TEp)&&((x=_.D(c.commandMetadata,_.Pd))==null?0:x.url))return O=wt8(_.IW(hs().location.href),_.IW(_.D(c.commandMetadata,_.Pd).url)).toString(),
mvO(G,O,I,R,K,function(){return!1});
if(_.D(c,_.wt))return K(c,F),_.IP(F);if(_.di(G.innerTubeTransportService,c)){O=Object.assign({},{tempData:I,disableCache:I.disableCache},a);var C=_.CQ(G.innerTubeTransportService,c,O).then(function(H){F.response=H;m(C)||K(c,F);return F});
return C}return _.IP(F)};
_.Fr0=function(G,c,I,R){if(_.D(c,_.fR)||_.D(c,_.vH)&&(_.v("mweb_enable_shorts_innertube_player_prefetch")||_.v("kevlar_enable_shorts_prefetch_in_sequence"))||_.D(c,XRA)&&_.v("web_enable_prefetching_videos_on_home")){var Z,K={contentPlaybackContext:_.lJ(I,(Z=_.D(c.commandMetadata,_.Pd))==null?void 0:Z.url,R),prefetchPlaybackContext:RhC(I)},m,a,O;if(((m=_.D(c,_.fR))==null?void 0:(a=m.watchEndpointSupportedPrefetchConfig)==null?void 0:(O=a.prefetchHintConfig)==null?void 0:O.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(I=
G.watchEndpointMap.watchNext)if(K=I().JSC$14340_getRequest(c,K))return Promise.resolve(_.UO(G.innerTubeTransportService,K.innerTubeRequest,K.input,void 0,K.config).then(function(w){return w}))}else if(I=G.watchEndpointMap.player)if(K=I().JSC$14340_getRequest(c,K))return Promise.resolve(_.UO(G.innerTubeTransportService,K.innerTubeRequest,K.input,void 0,K.config).then(function(w){return w}))}else if(_.di(G.innerTubeTransportService,c)){var N={tempData:I},q=MUk(G.innerTubeTransportService,c);
return q?new Promise(function(w,F){var n,U;return _.T(function(k){if(k.nextAddress==1)return k.yield(q,2);if(k.nextAddress!=4)return n=k.yieldResult,n.JSC$14347_getStoreKey(c,N)?k.yield(_.CQ(G.innerTubeTransportService,c,N),4):(F(new _.iW("Prefetching request builder with no store key.",c)),k.jumpTo(0));U=k.yieldResult;w(U);_.Vp(k)})}):Promise.reject(new _.iW("Prefetching unregistered request builder.",c))}return Promise.reject(new _.iW("No request builder available to prefetch endpoint.",c))};
$Pb=function(G,c){var I,R,Z;if(_.D(c,_.fR)){var K=G.watchEndpointMap.watchNext;K&&(I=K());(G=G.watchEndpointMap.player)&&(R=G())}else if(_.D(c,_.vH))(K=G.reelWatchEndpointMap.reelItemWatch)&&(I=K()),(K=G.reelWatchEndpointMap.player)&&(R=K()),(G=G.reelWatchEndpointMap.reelWatchSequence)&&(Z=G());else{a:{G=qjB(c,G.innerTubeTransportService.endpointMap);if(G!==void 0)if(typeof G.then==="function")_.hg(new _.iW("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",c));else break a;
G=void 0}G&&(I=G)}var m,a,O;return{content:(m=I)==null?void 0:m.JSC$14347_getStoreKey(c),player:(a=R)==null?void 0:a.JSC$14347_getStoreKey(c),reelSequence:(O=Z)==null?void 0:O.JSC$14347_getStoreKey(c)}};
NFG=function(G,c,I,R,Z,K,m){var a=_.IP(),O=G.watchEndpointMap.player;_.v("web_streaming_player")&&(O=ri(IY));O&&(O=O().JSC$14340_getRequest(c,I))&&(a=_.UO(G.innerTubeTransportService,O.innerTubeRequest,O.input,c.clickTrackingParams,O.config));O=_.IP();var N=G.watchEndpointMap.watchNext;N&&(I=N().JSC$14340_getRequest(c,I))&&(O=_.UO(G.innerTubeTransportService,I.innerTubeRequest,I.input,c.clickTrackingParams,I.config));R=_.IP(R);n9d(G,c,R,a,O,Z,K,m)};
eYg=function(G,c,I){var R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(G,2);_.v("web_streaming_watch_delay_200")||_.v("web_streaming_watch_delay_400")?(R=_.v("web_streaming_watch_delay_200")?200:400,setTimeout(function(){c.resolve(I)},R)):c.resolve(I);
_.Vp(Z)})};
n9d=function(G,c,I,R,Z,K,m,a){var O,N,q,w,F;_.T(function(n){switch(n.nextAddress){case 1:return n.yield(I,2);case 2:O=n.yieldResult;if(m(a.promise))return a.resolve(O),n.return();K(c,O);N=yMg(c);if(!N.length){n.jumpTo(3);break}return n.yield(I,4);case 4:O.preconnect=N,K(c,O);case 3:return _.s9(n,5),n.yield(R,7);case 7:q=n.yieldResult;_.Pl(n,6);break;case 5:return w=_.M3(n),a.reject(w),n.return();case 6:if(q===void 0&&G.reloadOnPlayerFailure)return O.reload=!0,K(c,O),a.resolve(O),n.return();if(m(a.promise))return a.resolve(O),
n.return();O.playerResponse=q;K(c,O);(_.v("web_watch_stop_scheduler_on_player_response")||_.v("mweb_watch_stop_scheduler_on_player_response"))&&iCe();_.s9(n,8);return n.yield(Z,10);case 10:F=n.yieldResult;_.Pl(n,9);break;case 8:_.M3(n);case 9:if(F===void 0)return O.response={responseContext:{}},a.resolve(O),n.return();if(m(a.promise))return a.resolve(O),n.return();O.response=F;K(c,O);a.resolve(O);_.Vp(n)}})};
wDg=function(G,c,I,R,Z,K,m,a){var O,N,q,w,F,n;_.T(function(U){switch(U.nextAddress){case 1:return U.yield(c,2);case 2:O=U.yieldResult;if(m(a.promise))return a.resolve(O),U.return();K(G,O);N=yMg(G);if(!N.length){U.jumpTo(3);break}return U.yield(c,4);case 4:O.preconnect=N,K(G,O);case 3:return _.s9(U,5),U.yield(I,7);case 7:q=U.yieldResult;_.Pl(U,6);break;case 5:return w=_.M3(U),a.reject(w),U.return();case 6:if(q===void 0)return O.reload=!0,K(G,O),a.resolve(O),U.return();if(m(a.promise))return a.resolve(O),
U.return();O.playerResponse=q;K(G,O);(_.v("web_shorts_stop_scheduler_on_player_response")||_.v("mweb_shorts_stop_scheduler_on_player_response"))&&iCe();_.s9(U,8);return U.yield(R,10);case 10:F=U.yieldResult;_.Pl(U,9);break;case 8:_.M3(U);case 9:if(F===void 0)return O.response={responseContext:{}},a.resolve(O),U.return();if(m(a.promise))return a.resolve(O),U.return();O.response=F;K(G,O);_.s9(U,11);return U.yield(Z,13);case 13:n=U.yieldResult;_.Pl(U,12);break;case 11:_.M3(U);case 12:if(m(a.promise))return a.resolve(O),
U.return();n&&(O.reelWatchSequenceResponse=n);K(G,O);a.resolve(O);_.Vp(U)}})};
qeg=function(G,c,I,R,Z,K,m){var a,O,N,q,w,F;_.T(function(n){if((a=m)==null||!a.replacementEndpoint)return K.reject(),n.return();O=m.replacementEndpoint;(N=_.D(O,_.vH))?(m.sequenceContinuation&&(N.sequenceParams=m.sequenceContinuation),q=_.wH().resolve(_.RY),w=N.sequenceParams,v9F(q,O)&&delete N.sequenceParams,F=X0(G,O,c,I,R,Z,function(){return!1}),F.then(function(U){return _.T(function(k){if(k.nextAddress==1)return DwG(q,{reelWatchEndpoint:{sequenceParams:w}},U),k.yield(0,2);
K.resolve(U);_.Vp(k)})})):K.reject();
_.Vp(n)})};
TF7[FA]=[ILg,RYd,_.UU,_.qR(pce),_.qR(_.dQ)];var o9$=function(){var G=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return G.sequenceMap}}},iZ2=function(G,c,I){var R,Z=(R=c.config)==null?void 0:R.sequenceStrategy;
if(!Z)return I();G.sequenceMap.has(Z.sequenceKey)||G.sequenceMap.set(Z.sequenceKey,[]);G=G.sequenceMap.get(Z.sequenceKey);switch(Z.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Uwr(G,c,I);case "REQUEST_SEQUENCE_TYPE_REPLACE":return uOF(G,c,I);default:throw new _.iW("Request could not be sequenced",c);}},Uwr=function(G,c,I){var R,Z,K;
return _.T(function(m){G.length>0?(Z=G[G.length-1],R=Z.responsePromise.then(function(){return I()})):R=I();
K={request:c,responsePromise:R};G.push(K);bSW(G,K);return m.return(K.responsePromise)})},uOF=function(G,c,I){I=I();
if(G.length>0)for(var R=_.Q(G),Z=R.next();!Z.done;Z=R.next())Z.value.responsePromise=I;var K={request:c,responsePromise:I};G.push(K);bSW(G,K);return Promise.resolve().then(function(){return G.indexOf(K)>0?K.responsePromise.then(function(m){return Object.assign({},m,{sequenceMetaData:{skipProcessing:!0}})}):K.responsePromise})},bSW=function(G,c){c.responsePromise.then(function(){var I=G.indexOf(c);
I>-1&&G.splice(I,1)})};var kBj=new _.De("REQUEST_SEQUENCING");var KO=function(){};
_.u(KO,nf);KO.prototype.getApiPaths=function(){return[]};
KO.prototype.getExtension=function(G){return _.D(G,Shi)};
KO.prototype.JSC$14340_buildRequest=function(G,c){G.recaptchaToken=c.recaptchaToken};
KO.prototype.getApiUrl=function(){return"/das_captcha"};var Pf=function(){};
_.u(Pf,nf);Pf.prototype.getApiPaths=function(){return TX9};
Pf.prototype.getExtension=function(G){return _.D(G,a9e)};
Pf.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.createBackstagePostParams&&(G.createBackstagePostParams=c.createBackstagePostParams);I.comment_text&&(G.commentText=I.comment_text);if(I.attached_video_id)G.videoAttachment={videoId:I.attached_video_id};else if(I.image_poll_options)G.pollAttachmentData={options:I.image_poll_options};else if(I.poll_options)G.pollAttachment={choices:I.poll_options};else if(I.quiz_options)G.quizAttachmentData={options:I.quiz_options};else if(I.image_blob_id)G.imageAttachment=
{encryptedBlobId:I.image_blob_id},I.source_video_id&&(G.imageAttachment.sourceExternalVideoId=I.source_video_id),I.image_preview_coordinates&&(G.imageAttachment.previewCoordinates=JSON.parse(I.image_preview_coordinates));else if(I.images_data)G.imagesAttachment={imagesData:I.images_data};else if(I.clip_external_video_id!==void 0||I.clip_offset_ms!==void 0||I.clip_duration_ms!==void 0){var R,Z,K,m,a;G.clipAttachment={externalVideoId:(K=I.clip_external_video_id)!=null?K:"",offsetMs:(m=(R=I.clip_offset_ms)==
null?void 0:R.toString())!=null?m:"",durationMs:(a=(Z=I.clip_duration_ms)==null?void 0:Z.toString())!=null?a:""}}else I.shared_post_id&&(G.sharedPostAttachment={postId:I.shared_post_id});I.tagged_video_id&&(G.postCreationData={taggedVideoId:I.tagged_video_id});I.access_restrictions&&(typeof I.access_restrictions==="number"&&(c=I.access_restrictions,G.accessRestrictions={restriction:c!==1&&c===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof I.access_restrictions==="string"&&
(G.accessRestrictionsParams=I.access_restrictions));I.scheduled_publish_time_sec&&(G.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString())};var QT=function(){};
_.u(QT,nf);QT.prototype.getApiPaths=function(){return FK0};
QT.prototype.getExtension=function(G){return _.D(G,Qpi)};
QT.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.decorateMessageParams&&(G.params=c.decorateMessageParams);I.text&&(G.text=I.text)};var mM=function(){};
_.u(mM,nf);mM.prototype.getApiPaths=function(){return WKK};
mM.prototype.getExtension=function(G){return _.D(G,TB2)};
mM.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;I.video_id&&(G.videoId=I.video_id)};var aY=function(){};
_.u(aY,nf);aY.prototype.getApiPaths=function(){return jX0};
aY.prototype.getExtension=function(G){return _.D(G,_.KC)};
aY.prototype.JSC$14340_buildRequest=function(G,c,I){I.suggestions_query&&(G.input=I.suggestions_query)};var TY=function(){};
_.u(TY,nf);TY.prototype.getApiPaths=function(){return U60};
TY.prototype.getExtension=function(G){return _.D(G,Oq2)};
TY.prototype.JSC$14340_buildRequest=function(G,c,I){I.comment_text!==void 0&&(G.commentText=I.comment_text);I.scheduled_publish_time_sec&&(G.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString());G.updateBackstagePostParams=c.updateBackstagePostParams};var Ok=function(){};
_.u(Ok,nf);Ok.prototype.getApiPaths=function(){return GF};
Ok.prototype.getExtension=function(G){return _.D(G,_.fQ)};
Ok.prototype.JSC$14340_buildRequest=function(G,c,I){I.formData&&(G.formData=I.formData);c.token?G.continuation=c.token:c.continuationTokenKey&&(I=_.y4().getState(),c=_.a6(I.entities,"continuationTokenEntity",c.continuationTokenKey))&&(G.continuation=String(c.continuationToken))};
var snu=function(){};
_.u(snu,nf);_.P=snu.prototype;_.P.getApiPaths=function(){return GF};
_.P.getExtension=function(G){return _.D(G,_.qD)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14347_getStoreKey=function(G){if((G=this.getExtension(G))&&G.browseId){var c={browseId:G.browseId};G.browseEndpointContextSupportedConfigs&&(c.browseEndpointContextSupportedConfigs=JSON.stringify(G.browseEndpointContextSupportedConfigs));G.params&&(c.params=G.params);G.query&&(c.query=G.query);return _.i6("browse",c)}};
_.P.JSC$14340_buildRequest=function(G,c,I){c.browseId&&(G.browseId=c.browseId);c.params&&(G.params=c.params);c.query&&(G.query=c.query);I.formData?G.formData=I.formData:c.formData&&(G.formData=c.formData);c.browseId==="FEsubscriptions"&&_.OC().getFlag(155)&&(G.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");c.browseId==="SPaccount_playback"&&(I=_.OC(),G.formData||(G.formData={}),G.formData.accountSettingsFormData={flagCaptionsDefaultOff:I.getFlag(65),flagAutoCaptionsDefaultOn:I.getFlag(66),
flagDisableInlinePreview:I.getFlag(186),flagAudioDescriptionDefaultOn:I.getFlag(198)});if(c.browseId==="FEwhat_to_watch"){I=_.OC();var R=I.getFlag(196);I.getFlag(197)&&(G.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:R}}})}c.browseId==="FEwhat_to_watch"&&(c=_.OC().getFlag(186),G.inlineSettingStatus=c?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.P.getRequestConfig=function(G,c){c=c===void 0?{}:c;var I={};if(G=this.JSC$14347_getStoreKey(G,c))I.storeStrategy={storeKey:G,disableCache:c.disableCache};_.v("web_log_browse_ticks_ks")||(I.requestTick="br_s",I.responseTick="br_r");return I};var e8=function(){};
_.u(e8,nf);e8.prototype.getApiPaths=function(){return Z0K};
e8.prototype.getExtension=function(G){return _.D(G,fMp)};
e8.prototype.JSC$14340_buildRequest=function(G,c,I){G.legacyYoutubeChannelUsername=I.legacyYouTubeChannelUsername||"";G.legacyYoutubeChannelPassword=I.legacyYouTubeChannelPassword||""};var NV=function(){};
_.u(NV,nf);NV.prototype.getApiPaths=function(){return OgK};
NV.prototype.getExtension=function(G){return _.D(G,nSe)};
NV.prototype.JSC$14340_buildRequest=function(G,c,I){I.recaptcha_response_token&&(G.recaptchaResponseToken=I.recaptcha_response_token);I.channel_id&&(G.channelId=I.channel_id)};var lc=function(){};
_.u(lc,nf);lc.prototype.getApiPaths=function(){return u9i};
lc.prototype.getExtension=function(G){return _.D(G,bqi)};
lc.prototype.JSC$14340_buildRequest=function(G,c,I){c.externalChannelId&&(G.externalChannelId=c.externalChannelId);I.handle&&(G.handleUpdate={handle:I.handle},c.handleEditSource&&(G.handleUpdate.handleEditSource=c.handleEditSource))};var qV=function(){};
_.u(qV,nf);qV.prototype.getApiPaths=function(){return Lye};
qV.prototype.getExtension=function(G){return _.D(G,d72)};
qV.prototype.JSC$14340_buildRequest=function(G,c,I){c.request&&(G.channelId=c.request.channelId);var R;if(I==null?0:(R=I.uploadDefaults)==null?0:R.emojiReactionSet)G.uploadDefaultsRequest||(G.uploadDefaultsRequest={}),G.uploadDefaultsRequest.emojiReactionSet=I.uploadDefaults.emojiReactionSet};var wl=function(){};
_.u(wl,nf);wl.prototype.getApiPaths=function(){return SST};
wl.prototype.getExtension=function(G){return _.D(G,vSN)};
wl.prototype.JSC$14340_buildRequest=function(G,c,I){c.externalChannelId&&(G.externalChannelId=c.externalChannelId);c.channelHandleEntityKey&&(G.channelHandleEntityKey=c.channelHandleEntityKey);c.handleEditSource&&(G.handleEditSource=c.handleEditSource);I.handle?G.handle=I.handle:I.name&&(G.name=I.name)};var FJ=function(){};
_.u(FJ,nf);FJ.prototype.getApiPaths=function(){return QXA};
FJ.prototype.getExtension=function(G){return _.D(G,rGK)};
FJ.prototype.JSC$14340_buildRequest=function(G,c){c.actions?G.actions=c.actions:c.action&&(G.actions=[c.action])};var nO=function(){};
_.u(nO,nf);nO.prototype.getApiPaths=function(){return mZV};
nO.prototype.getExtension=function(G){return _.D(G,_.fQ)};
nO.prototype.JSC$14340_buildRequest=function(G,c){c.token&&(G.continuation=c.token)};var vf=function(){};
_.u(vf,nf);vf.prototype.getApiPaths=function(){return Ev0};
vf.prototype.getExtension=function(G){return _.D(G,_.fQ)};
vf.prototype.JSC$14340_buildRequest=function(G,c){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";c.token&&(G.fetchCommentsParams={continuation:c.token})};var DN=function(){};
_.u(DN,nf);DN.prototype.getApiPaths=function(){return NXT};
DN.prototype.getExtension=function(G){return _.D(G,Bye)};
DN.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.createReplyParams&&(G.createReplyParams=c.createReplyParams);c.commentText&&(G.commentText=_.HY(c.commentText));I.comment_text&&(G.commentText=I.comment_text);I.image_blob_id&&(G.imageAttachment={encryptedBlobId:I.image_blob_id});I.botguard_response&&(G.botguardResponse=I.botguard_response)};
_.Nh.Object.defineProperties(DN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oY=function(){};
_.u(oY,nf);oY.prototype.getApiPaths=function(){return lCi};
oY.prototype.getExtension=function(G){return _.D(G,_.fdV)};
oY.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.createCommentParams&&(G.createCommentParams=c.createCommentParams);c.commentText&&(G.commentText=_.HY(c.commentText));c.videoPositionMention&&(G.videoPositionMention=c.videoPositionMention);c.sources&&(G.sources=c.sources);I.comment_text&&(G.commentText=I.comment_text);I.attached_video_id?G.videoAttachment={videoId:I.attached_video_id}:I.poll_options?G.pollAttachment={choices:I.poll_options}:I.image_blob_id?G.imageAttachment=
{encryptedBlobId:I.image_blob_id}:I.shared_post_id&&(G.sharedPostAttachment={postId:I.shared_post_id});I.access_restrictions&&typeof I.access_restrictions==="number"&&(c=I.access_restrictions,G.accessRestrictions={restriction:c!==1&&c===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});I.botguard_response&&(G.botguardResponse=I.botguard_response)};
_.Nh.Object.defineProperties(oY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Uk=function(){};
_.u(Uk,nf);Uk.prototype.getApiPaths=function(){return bgk};
Uk.prototype.getExtension=function(G){return _.D(G,xH9)};
Uk.prototype.JSC$14340_buildRequest=function(G,c,I){c.commentText&&(G.replyText=_.HY(c.commentText));I.comment_text&&(G.replyText=I.comment_text);G.updateReplyParams=c.updateReplyParams};
_.Nh.Object.defineProperties(Uk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uc=function(){};
_.u(uc,nf);uc.prototype.getApiPaths=function(){return kUe};
uc.prototype.getExtension=function(G){return _.D(G,jpe)};
uc.prototype.JSC$14340_buildRequest=function(G,c,I){c.commentText&&(G.commentText=_.HY(c.commentText));I.comment_text&&(G.commentText=I.comment_text);G.updateCommentParams=c.updateCommentParams};
_.Nh.Object.defineProperties(uc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bc=function(){};
_.u(bc,nf);bc.prototype.getApiPaths=function(){return s7e};
bc.prototype.getExtension=function(G){return _.D(G,jkT)};
bc.prototype.JSC$14340_buildRequest=function(G,c){c.settings&&(G.settings=c.settings)};var kY=function(){};
_.u(kY,nf);kY.prototype.getApiPaths=function(){return AfA};
kY.prototype.getExtension=function(G){return _.D(G,D7k)};
kY.prototype.JSC$14340_buildRequest=function(G,c){c.channelCreationToken&&(G.channelCreationToken=c.channelCreationToken);c.source&&(G.source=c.source)};var sk=function(){};
_.u(sk,nf);sk.prototype.getApiPaths=function(){return eEk};
sk.prototype.getExtension=function(G){return _.D(G,ug9)};
sk.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;if(I.name&&(I.given_name||I.family_name))G=new _.iW("channel creation cannot set both GAIA and YouTube names",c),_.hg(G);else{if(c.zeroStepChannelCreationParams){if(!I.comment_text){G=new _.iW("zero_step_create_comment_params but no zero_step_texts",c);_.hg(G);return}G.zeroStepChannelCreationParams=c.zeroStepChannelCreationParams;G.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
I.comment_text,I.botguard_response&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=I.botguard_response))}G.channelCreationToken=c.channelCreationToken;I.given_name&&(G.givenName=I.given_name);I.family_name&&(G.familyName=I.family_name);c.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(G.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(I.name||I.handle||I.avatar_url||I.encryptedBlobId||I.isNameChanged!==void 0||I.isHandleChanged!==void 0||I.isDefaultProfilePhoto!==
void 0||I.obakeImageSource)G.overrideChannelCreationParams={},I.name&&(G.overrideChannelCreationParams.name=I.name),I.handle&&(G.overrideChannelCreationParams.handle=I.handle),I.avatar_url&&(G.overrideChannelCreationParams.avatarUrl=I.avatar_url),I.encryptedBlobId&&(G.overrideChannelCreationParams.blobEncryptionId=I.encryptedBlobId),I.enableIdentityForAllChannelCreationDialog&&(I.encryptedBlobId?G.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
I.isDefaultProfilePhoto!==void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=I.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),I.isNameChanged!==void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationNameTag=I.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),I.isHandleChanged!==
void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=I.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),I.obakeImageSource&&(G.overrideChannelCreationParams.obakeImageSourceType=I.obakeImageSource))}};var LO=function(){};
_.u(LO,nf);LO.prototype.getApiPaths=function(G){return(G=this.getExtension(G))&&G.status==="DISLIKE"?ovN:G&&G.status==="INDIFFERENT"?Pji:Ck2};
LO.prototype.getExtension=function(G){return _.D(G,_.m1)};
LO.prototype.JSC$14340_buildRequest=function(G,c){c.target&&(G.target=c.target);if(c=this.getParams(c))G.params=c};
LO.prototype.getParams=function(G){switch(G==null?void 0:G.status){case "DISLIKE":return G.dislikeParams;case "INDIFFERENT":return G.removeLikeParams;default:return G==null?void 0:G.likeParams}};var AQ=function(){};
_.u(AQ,nf);AQ.prototype.getApiPaths=function(){return wWB};
AQ.prototype.getExtension=function(G){return _.D(G,XQ2)};
AQ.prototype.JSC$14340_buildRequest=function(G,c){c.settingItemId&&(G.settingItemId=c.settingItemId);c.stringValue!=null&&c.stringValue!==void 0?G.newValue={stringValue:c.stringValue}:c.intValue?G.newValue={intValue:c.intValue}:c.boolValue!==null&&c.boolValue!==void 0?G.newValue={boolValue:c.boolValue}:(G=new _.iW("Unknown value type for SetSettingEndpoint.",c),_.hg(G))};var $Y=function(){};
_.u($Y,nf);$Y.prototype.getApiPaths=function(){return vBK};
$Y.prototype.getExtension=function(G){return _.D(G,NQe)||void 0};
$Y.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.channelIds&&(G.channelIds=c.channelIds);c.siloName&&(G.siloName=c.siloName);c.params&&(G.params=c.params);I.botguardResponse&&(G.botguardResponse=I.botguardResponse);I.feature&&(G.clientFeature=I.feature)};
_.Nh.Object.defineProperties($Y.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var S8=function(){};
_.u(S8,nf);S8.prototype.getApiPaths=function(){return oBe};
S8.prototype.getExtension=function(G){return _.D(G,yG0)||void 0};
S8.prototype.JSC$14340_buildRequest=function(G,c){c.channelIds&&(G.channelIds=c.channelIds);c.siloName&&(G.siloName=c.siloName);c.params&&(G.params=c.params)};
_.Nh.Object.defineProperties(S8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pO=function(G){this.shareClientParamsProvider=G};
_.u(pO,nf);pO.prototype.getApiPaths=function(){return gGb};
pO.prototype.getExtension=function(G){return _.D(G,uXV)||_.D(G,_.bxA)||_.D(G,UiK)};
pO.prototype.JSC$14340_buildRequest=function(G,c){c.serializedShareEntity&&(G.serializedSharedEntity=c.serializedShareEntity);if(c.clientParamIdentifier){var I;if((I=this.shareClientParamsProvider)==null?0:I.clientParams.has(c.clientParamIdentifier)){I=this.shareClientParamsProvider;c=c.clientParamIdentifier;var R=I.clientParams.get(c);R&&I.clientParams.delete(c);G.clientParams=R}}};
pO[FA]=[czH];var MV=function(){};
_.u(MV,nf);MV.prototype.getApiPaths=function(){return cf0};
MV.prototype.getExtension=function(G){return _.D(G,XaA)};
MV.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var VT=function(){};
_.u(VT,nf);VT.prototype.getApiPaths=function(){return UZ0};
VT.prototype.getExtension=function(G){return _.D(G,dnA)};
VT.prototype.JSC$14340_buildRequest=function(G,c){c.dismissal&&(G.items=[c.dismissal])};
_.Nh.Object.defineProperties(VT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zY=function(){};
_.u(zY,nf);zY.prototype.getApiPaths=function(){return hEA};
zY.prototype.getExtension=function(G){return _.D(G,_.fM)||void 0};
zY.prototype.JSC$14340_buildRequest=function(G,c,I){G.feedbackTokens=[];c.feedbackToken&&G.feedbackTokens.push(c.feedbackToken);if(c=c.cpn||I.cpn)G.feedbackContext={cpn:c};G.isFeedbackTokenUnencrypted=!!I.is_feedback_token_unencrypted;G.shouldMerge=!1;I.extra_feedback_tokens&&(G.shouldMerge=!0,G.feedbackTokens=G.feedbackTokens.concat(I.extra_feedback_tokens))};
_.Nh.Object.defineProperties(zY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ek=function(){};
_.u(Ek,nf);Ek.prototype.getApiPaths=function(){return hEA};
Ek.prototype.getExtension=function(G){return _.D(G,_.KC)};
Ek.prototype.JSC$14340_buildRequest=function(G,c,I){I.feedback_tokens&&(G.feedbackTokens=I.feedback_tokens,G.shouldMerge=!0)};
_.Nh.Object.defineProperties(Ek.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var JQ=function(){};
_.u(JQ,nf);JQ.prototype.getApiPaths=function(){return hEA};
JQ.prototype.getExtension=function(G){return _.D(G,FQ8)};
JQ.prototype.JSC$14340_buildRequest=function(G,c){c.undoToken&&(G.feedbackTokens=[c.undoToken]);c.isUndoTokenUnencrypted&&(G.isFeedbackTokenUnencrypted=c.isUndoTokenUnencrypted)};
_.Nh.Object.defineProperties(JQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tQ=function(){};
_.u(tQ,nf);tQ.prototype.getApiPaths=function(){return pW9};
tQ.prototype.getExtension=function(G){return _.D(G,xnB)};
tQ.prototype.JSC$14340_buildRequest=function(G,c){c.nextEndpoint&&_.D(c.nextEndpoint,_.ID)?G.nextEndpoint={urlEndpoint:_.D(c.nextEndpoint,_.ID)}:c.nextEndpoint&&_.D(c.nextEndpoint,_.fR)&&(G.nextEndpoint={watchEndpoint:_.D(c.nextEndpoint,_.fR)});c.setRacy&&(G.setRacy=c.setRacy);c.setControvercy&&(G.setControvercy=c.setControvercy)};var hQ=function(G){this.JSC$18339_storeWithEntities=G};
_.u(hQ,nf);hQ.prototype.getApiPaths=function(){return b02};
hQ.prototype.getExtension=function(G){return _.D(G,F4V)};
hQ.prototype.JSC$14340_buildRequest=function(G,c){c.flowId&&(G.flowId=c.flowId);c.targetId&&(G.targetId=c.targetId);c.continuation&&(G.continuation=c.continuation);var I=c.flowStateEntityKey;if(c.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&I&&this.JSC$18339_storeWithEntities){var R;if(c=(R=this.JSC$18339_storeWithEntities.getState())==null?void 0:R.entities)if(R=_.Kp(I).entityType,R=_.a6(c,R,I))G.flowState=R,G.flowStateEntityKey=I}};
_.Nh.Object.defineProperties(hQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
hQ[FA]=[NB];var LrW=function(){};
_.u(LrW,nf);_.P=LrW.prototype;_.P.getApiPaths=function(){return tSK};
_.P.JSC$14347_getStoreKey=function(){return _.i6("guide")};
_.P.getRequestConfig=function(){var G=this.JSC$14347_getStoreKey(),c;G&&(c={storeStrategy:{storeKey:G}});return c};
_.P.isNavigationCommand=function(){return!0};
_.P.getExtension=function(G){return _.D(G,_.KC)};
_.P.JSC$14340_buildRequest=function(G){G.fetchLiveState=!0};var dl=function(){};
_.u(dl,nf);dl.prototype.getApiPaths=function(){return KKN};
dl.prototype.getExtension=function(G){return _.D(G,JG2)};
dl.prototype.JSC$14340_buildRequest=function(){};var CO=function(){};
_.u(CO,nf);CO.prototype.getApiPaths=function(){return Pk0};
CO.prototype.getExtension=function(G){return _.D(G,W8e)};
CO.prototype.JSC$14340_buildRequest=function(){};var Hf=function(){};
_.u(Hf,nf);Hf.prototype.getApiPaths=function(){return GXi};
Hf.prototype.getExtension=function(G){return _.D(G,_.fQ)};
Hf.prototype.JSC$14340_buildRequest=function(G,c){c.token&&(G.continuation=c.token);var I,R;G==null||(I=G.context)==null||(R=I.user)==null||delete R.onBehalfOfUser};
Hf.prototype.getRequestConfig=function(G){var c={},I;if(((I=this.getExtension(G))==null?void 0:I.sessionIndex)!==void 0){var R;c={authStrategy:{sessionIndex:(R=this.getExtension(G))==null?void 0:R.sessionIndex}}}return c};var XJ=function(){};
_.u(XJ,nf);XJ.prototype.JSC$14340_getRequest=function(G){var c=this.getExtension(G),I=G="";if(c==null?0:c.popup)G="true";if(c==null?0:c.disableSignout)I="true";c={};return{input:"/getAccountSwitcherEndpoint",requestShell:Wq("/getAccountSwitcherEndpoint","GET",(c["X-YouTube-Delegation-Context"]=_.H1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),c["X-YouTube-Account-Switcher-Popup"]=G,c["X-YouTube-Account-Switcher-Disable-Signout"]=I,c)),innerTubeRequest:{}}};
XJ.prototype.getApiPaths=function(){return[]};
XJ.prototype.getExtension=function(G){return _.D(G,_.Ar8)};
XJ.prototype.JSC$14340_buildRequest=function(){};var yT=function(){};
_.u(yT,nf);yT.prototype.JSC$14340_getRequest=function(G){var c="/cross_account_channel_transfer";(G=this.getExtension(G))&&(c=YQO(c,{target_session:G.targetSessionIndex,source_rapt:G.sourceRapt,rapt:G.targetRapt}));return{input:c,requestShell:Wq(c,"GET"),innerTubeRequest:{}}};
yT.prototype.getApiPaths=function(){return[]};
yT.prototype.getExtension=function(G){return _.D(G,J4e)};
yT.prototype.JSC$14340_buildRequest=function(){};var gl=function(){};
_.u(gl,nf);gl.prototype.getApiPaths=function(){return kX0};
gl.prototype.isNavigationCommand=function(){return!0};
gl.prototype.getExtension=function(G){return _.D(G,_.KC)};
gl.prototype.JSC$14340_buildRequest=function(G){var c=_.OC().get("gsml","");c&&(G.safetyModeLockerObfuscatedGaiaId=c);G.userInterfaceTheme=_.iu(!0);_.fE()?G.deviceTheme="DEVICE_THEME_SELECTED":_.NXB()?G.deviceTheme="DEVICE_THEME_SUPPORTED":G.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var YY=function(){};
_.u(YY,nf);YY.prototype.getApiPaths=function(){return GXi};
YY.prototype.getExtension=function(G){return _.D(G,WlN)};
YY.prototype.JSC$14340_buildRequest=function(G,c){if(c&&c.requestType&&(G.requestType=c.requestType,c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var I=c.nextUrl;I&&(_.cHO(I)||NR(I))&&(G.nextNavendpoint={urlEndpoint:{url:I}})}c&&c.channelSwitcherQuery&&(G.channelSwitcherQuery=c.channelSwitcherQuery);c&&c.triggerChannelCreation&&(G.triggerChannelCreation=c.triggerChannelCreation);var R;if(c==null?0:(R=c.contentOwnerConfig)==
null?0:R.externalContentOwnerId)G.contentOwnerConfig=c.contentOwnerConfig;G.callCircumstance=c&&c.requestType&&c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Z,K;c=G==null?void 0:(Z=G.context)==null?void 0:(K=Z.user)==null?void 0:K.onBehalfOfUser;if(c!==void 0){G.obfuscatedSelectedGaiaId=c;var m,a;G==null||(m=G.context)==null||(a=m.user)==null||delete a.onBehalfOfUser}var O,N;if(Z=G==null?void 0:(O=G.context)==null?void 0:(N=O.user)==null?
void 0:N.serializedDelegationContext)G.selectedSerializedDelegationContext=Z};var Gg=function(){};
_.u(Gg,nf);Gg.prototype.getApiPaths=function(){return ICT};
Gg.prototype.getExtension=function(G){return _.D(G,kbN)};
Gg.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var cA=function(){};
_.u(cA,nf);cA.prototype.getApiPaths=function(){return O0e};
cA.prototype.getExtension=function(G){return _.D(G,_.Jhe)};
cA.prototype.JSC$14340_buildRequest=function(G,c){if(c=c.createBroadcastRequest)G.useMasks=c.useMasks,G.broadcastType=c.broadcastType,G.broadcastSource=c.broadcastSource,G.broadcastMetadata=c.broadcastMetadata,G.broadcastMetadataMask=c.broadcastMetadataMask,G.videoMetadata=c.videoMetadata,G.videoMetadataMask=c.videoMetadataMask,G.liveChatSettingsUpdate=c.liveChatSettingsUpdate,G.liveChatSettingsUpdateMask=c.liveChatSettingsUpdateMask,G.cloneVideoId=c.cloneVideoId,G.cloneWithOverrides=c.cloneWithOverrides,
G.targetEntity=c.targetEntity,G.scheduledRedirectMetadata=c.scheduledRedirectMetadata};var IB=function(){};
_.u(IB,nf);IB.prototype.getApiPaths=function(){return qE2};
IB.prototype.getExtension=function(G){return _.D(G,At9)};
IB.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.params&&(G.params=c.params);I.questionText&&(G.questionText=I.questionText);I.optionText&&I.optionText.length>0&&(G.optionText=I.optionText)};var RB=function(){};
_.u(RB,nf);RB.prototype.getApiPaths=function(){return nvK};
RB.prototype.getExtension=function(G){return _.D(G,sh0)};
RB.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var ZR=function(){};
_.u(ZR,nf);ZR.prototype.getApiPaths=function(){return SEK};
ZR.prototype.getExtension=function(G){return _.D(G,Ul0)};
ZR.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var KZ=function(){};
_.u(KZ,nf);KZ.prototype.getApiPaths=function(){return MS9};
KZ.prototype.getExtension=function(G){return _.D(G,uFK)};
KZ.prototype.JSC$14340_buildRequest=function(G,c,I){c.params&&(G.params=c.params);c.continuation&&(G.continuation=c.continuation);I.currentPlayerState&&I.currentPlayerState.playerOffsetMs&&(G.currentPlayerState={playerOffsetMs:I.currentPlayerState.playerOffsetMs.toString()})};var PA=function(){};
_.u(PA,nf);PA.prototype.getApiPaths=function(){return VST};
PA.prototype.getExtension=function(G){return _.D(G,ohV)};
PA.prototype.JSC$14340_buildRequest=function(G,c,I){c.params&&(G.params=c.params);I.continuation&&(G.continuation=I.continuation);"hidden"in I&&(G.webClientInfo={isDocumentHidden:I.hidden});I.isInvalidationTimeoutRequest&&(G.isInvalidationTimeoutRequest=I.isInvalidationTimeoutRequest);I.invalidationPayload&&(c=Dli(_.Yp(lW(I.invalidationPayload))),G.invalidationPayloadLastPublishAtUsec=BC(c,2));I.reloadActionPanel&&(G.reloadActionPanel=I.reloadActionPanel);I.fullReload&&(G.fullReload=I.fullReload);
I.currentPlayerState&&(G.currentPlayerState=I.currentPlayerState)};var QH=function(){};
_.u(QH,nf);QH.prototype.getApiPaths=function(){return H0e};
QH.prototype.getExtension=function(G){return _.D(G,L1V)};
QH.prototype.JSC$14340_buildRequest=function(G,c){G.params=c.params};var mf=function(){};
_.u(mf,nf);mf.prototype.getApiPaths=function(){return ptK};
mf.prototype.getExtension=function(G){return _.D(G,rxK)};
mf.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var aB=function(){};
_.u(aB,nf);aB.prototype.getApiPaths=function(){return zEV};
aB.prototype.getExtension=function(G){return _.D(G,jTA)};
aB.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var Tg=function(){};
_.u(Tg,nf);Tg.prototype.getApiPaths=function(){return Xti};
Tg.prototype.getExtension=function(G){return _.D(G,$lB)};
Tg.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var OJ=function(){};
_.u(OJ,nf);OJ.prototype.getApiPaths=function(){return gvK};
OJ.prototype.getExtension=function(G){return _.D(G,SP9)};
OJ.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var eU=function(){};
_.u(eU,nf);eU.prototype.getApiPaths=function(){return Q7K};
eU.prototype.getExtension=function(G){return _.D(G,Axi)};
eU.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var N5=function(){};
_.u(N5,nf);N5.prototype.getApiPaths=function(){return lce};
N5.prototype.getExtension=function(G){return _.D(G,_.pE0)};
N5.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.params&&(G.params=c.params);I.client_message_id&&(G.clientMessageId=I.client_message_id);I.recaptcha_token&&(G.recaptchaToken=I.recaptcha_token);I.rich_message&&I.rich_message.text_segments?(c=I.rich_message.text_segments.map(function(R){var Z={};R.text&&(Z.text=R.text);R.emoji_id&&(Z.emojiId=R.emoji_id);return Z}),G.richMessage={textSegments:c}):I.message&&(G.message=I.message);
I.currentPlayerState&&(G.currentPlayerState=I.currentPlayerState)};var lg=function(){};
_.u(lg,nf);lg.prototype.getApiPaths=function(){return qSK};
lg.prototype.getExtension=function(G){return _.D(G,M5k)};
lg.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var q5=function(){};
_.u(q5,nf);q5.prototype.getApiPaths=function(){return D62};
q5.prototype.getExtension=function(G){return _.D(G,zyp)};
q5.prototype.JSC$14340_buildRequest=function(G,c,I){c.isUserInitiated&&(G.isUserInitiated=c.isUserInitiated);c.initiationSource&&(G.initiationSource=c.initiationSource);I.locationInfo&&(G.context.client.locationInfo=I.locationInfo)};var wY=function(){};
_.u(wY,nf);wY.prototype.getApiPaths=function(){return yfN};
wY.prototype.getExtension=function(G){return _.D(G,WCp)};
wY.prototype.JSC$14340_buildRequest=function(G,c,I){c.metadataUpdateRequest&&(c=c.metadataUpdateRequest,G.encryptedVideoId=c.encryptedVideoId,c.liveChat&&(c=c.liveChat,G.liveChat||(G.liveChat={}),c.performAsExternalChannelId&&(G.liveChat.performAsExternalChannelId=c.performAsExternalChannelId),c.source&&(G.liveChat.source=c.source)));var R;if(I==null?0:(R=I.liveChat)==null?0:R.liveChatSettings)G.liveChat||(G.liveChat={}),I=I.liveChat.liveChatSettings,G.liveChat.newLiveChatSettings=I,G.liveChat.newLiveChatSettingsMask||
(G.liveChat.newLiveChatSettingsMask={}),I.emojiReactionSet&&(G.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var F7=function(){};
_.u(F7,nf);F7.prototype.getApiPaths=function(){return $6T};
F7.prototype.getExtension=function(G){return _.D(G,_.g4B)};
F7.prototype.JSC$14340_buildRequest=function(G,c,I){I.continuation?G.continuation=I.continuation:c.videoId&&(G.videoId=c.videoId);I.clientParams&&(G.clientParams=I.clientParams)};var nZ=function(){};
_.u(nZ,nf);nZ.prototype.getApiPaths=function(){return Ev0};
nZ.prototype.getExtension=function(G){return _.D(G,_.lv)};
nZ.prototype.JSC$14340_buildRequest=function(G,c){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";G.fetchCommentsParams={};c.videoId&&(G.fetchCommentsParams.encryptedVideoId=c.videoId);c.postId&&(G.fetchCommentsParams.postId=c.postId);c.externalChannelId&&(G.fetchCommentsParams.externalChannelId=c.externalChannelId);c.linkedCommentId&&(G.fetchCommentsParams.linkedCommentId=c.linkedCommentId);(0,_.rx.isEmpty)(G.fetchCommentsParams)&&delete G.fetchCommentsParams};var vA=function(){};
_.u(vA,nf);vA.prototype.getApiPaths=function(){return GF};
vA.prototype.JSC$14340_buildRequest=function(G){G.browseId="FEnotifications_inbox"};
vA.prototype.getExtension=function(G){return _.D(G,_.KC)};var DR=function(){};
_.u(DR,nf);DR.prototype.getApiPaths=function(){return Ev0};
DR.prototype.JSC$14340_buildRequest=function(G,c){c.signal==="GET_NOTIFICATIONS_MENU"&&(G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");c.ctoken&&(G.ctoken=c.ctoken)};
var AK7=function(){};
_.u(AK7,DR);AK7.prototype.getExtension=function(G){return _.D(G,_.KC)};
var $w$=function(){};
_.u($w$,DR);$w$.prototype.getExtension=function(G){return _.D(G,Bw0)};var oB=function(){};
_.u(oB,nf);oB.prototype.getApiPaths=function(){return rf2};
oB.prototype.getExtension=function(G){return _.D(G,_.KC)};
oB.prototype.JSC$14340_buildRequest=function(){};var UJ=function(){};
_.u(UJ,nf);UJ.prototype.getApiPaths=function(){return YEB};
UJ.prototype.getExtension=function(G){return _.D(G,dHB)||void 0};
UJ.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params);c.secondaryParams&&(G.secondaryParams=c.secondaryParams)};var ug=function(){};
_.u(ug,nf);ug.prototype.getApiPaths=function(){return GUp};
ug.prototype.getExtension=function(G){return _.D(G,sTV)};
ug.prototype.JSC$14340_buildRequest=function(G,c){c.undo&&(G.undo=c.undo);c.serializedOptOut&&(G.serializedOptOut=c.serializedOptOut);c.serializedRecordInteractionsRequest&&(G.serializedRecordInteractionsRequest=c.serializedRecordInteractionsRequest)};var bg=function(){};
_.u(bg,nf);bg.prototype.getApiPaths=function(){return RBV};
bg.prototype.getExtension=function(G){return _.D(G,L$K)};
bg.prototype.JSC$14340_buildRequest=function(G,c){c.serializedInteractionsRequest&&(G.serializedRecordNotificationInteractionsRequest=c.serializedInteractionsRequest)};var kx=function(){};
_.u(kx,nf);kx.prototype.getApiPaths=function(){return YsC};
kx.prototype.getExtension=function(G){return _.D(G,_.Y5)};
kx.prototype.JSC$14340_buildRequest=function(G,c,I){c=c===void 0?{}:c;I=I===void 0?{}:I;c.videoId?G.videoId=c.videoId:c.playlistId&&(G.playlistId=c.playlistId);var R;G.crossDeviceDownloadData={isCrossDeviceDownload:(R=c.isCrossDeviceDownload)!=null?R:!1};!I.downloadToMobileEduShown&&c.isCrossDeviceDownload&&(G.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var Z;if(R=(Z=c.offlineWebClientEligibility)!=null?Z:I.offlineWebClientEligibility)G.offlineWebClientEligibility=R;var K;if(Z=(K=c.preferredFormatType)!=
null?K:I.preferredFormatType)G.preferredFormatType=Z;var m;if(K=(m=c.lastOfflineQualitySettingsSavedMs)!=null?m:I.lastOfflineQualitySettingsSavedMs)G.lastOfflineQualitySettingsSavedMs=K;c.params&&(G.params=c.params)};var sJ=function(){};
_.u(sJ,nf);sJ.prototype.getApiPaths=function(){return zk};
sJ.prototype.getExtension=function(G){return _.D(G,_.fQ)};
sJ.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.token&&(G.continuation=c.token);I.formData&&(G.formData=I.formData)};var LZ=function(){};
_.u(LZ,nf);LZ.prototype.getApiPaths=function(){return zk};
LZ.prototype.getExtension=function(G){return _.D(G,pkT)};
LZ.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;G.continuation=I.continuation};var AT=function(){};
_.u(AT,nf);AT.prototype.getApiPaths=function(){return zk};
AT.prototype.getExtension=function(G){return _.D(G,_.iJ)};
AT.prototype.JSC$14340_buildRequest=function(G,c){var I,R=c.panelIdentifier||((I=c.identifier)==null?void 0:I.tag);R&&(G.panelId=R);var Z;if((Z=c.globalConfiguration)==null?0:Z.params){var K;G.params=(K=c.globalConfiguration)==null?void 0:K.params}if(_.v("enable_ai_companion")){var m;c=c.engagementPanelExtras;if(c==null?0:(m=c.aiCompanionPanelExtras)==null?0:m.includeClientConversationId){var a,O;m=(O=(a=_.wH().resolve(_.qR(a3d)))==null?void 0:a("conversations"))==null?void 0:O.get("conversation_id")}else m=
void 0;if(a=m)G.formData=Object.assign({},G.formData,{inputComposerFormData:{conversationId:a}})}};
_.Nh.Object.defineProperties(AT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $x=function(){};
_.u($x,nf);$x.prototype.getApiPaths=function(){return zk};
$x.prototype.getExtension=function(G){return _.D(G,FON)};
$x.prototype.JSC$14340_buildRequest=function(G,c){c.panelLoadingStrategy&&Zcb(G,c.panelLoadingStrategy)};var SU=function(){};
_.u(SU,nf);SU.prototype.getApiPaths=function(){return zk};
SU.prototype.getExtension=function(G){return _.D(G,ixe)};
SU.prototype.JSC$14340_buildRequest=function(G,c){c.loadingStrategy&&Zcb(G,c.loadingStrategy)};var pZ=function(){};
_.u(pZ,nf);pZ.prototype.getApiPaths=function(){return zk};
pZ.prototype.getExtension=function(G){return _.D(G,_.AY)};
pZ.prototype.JSC$14340_buildRequest=function(G,c){c.panelLoadingStrategy&&Zcb(G,c.panelLoadingStrategy)};var M5=function(){};
_.u(M5,nf);M5.prototype.getApiPaths=function(){return zk};
M5.prototype.getExtension=function(G){return _.D(G,fsK)};
M5.prototype.JSC$14340_buildRequest=function(G,c){var I,R=(I=c.contentSourcePanelIdentifier)==null?void 0:I.tag;R&&(G.panelId=R);var Z;if((Z=c.globalConfiguration)==null?0:Z.params){var K;G.params=(K=c.globalConfiguration)==null?void 0:K.params}};var VH=function(){};
_.u(VH,nf);VH.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
VH.prototype.getExtension=function(G){return _.D(G,BmB)};
VH.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var zg=function(){};
_.u(zg,nf);zg.prototype.getApiPaths=function(){return AZ0};
zg.prototype.getExtension=function(G){return _.D(G,xi9)};
zg.prototype.JSC$14340_buildRequest=function(G,c){c.externalChannelId&&(G.externalChannelId=c.externalChannelId);c.superChatAction&&(G.superChatAction=c.superChatAction);c.superStickersAction&&(G.superStickersAction=c.superStickersAction)};var EJ=function(){};
_.u(EJ,nf);EJ.prototype.getApiPaths=function(){return sXK};
EJ.prototype.getExtension=function(G){return _.D(G,E4V)||_.D(G,Whr)};
EJ.prototype.JSC$14340_buildRequest=function(G,c){c.videoIds?G.videoIds=c.videoIds:c.videoId&&(G.videoIds=[c.videoId]);c.playlistId&&(G.playlistId=c.playlistId);c.params&&(G.params=c.params);G.excludeWatchLater=!1};var JT=function(){};
_.u(JT,nf);JT.prototype.getApiPaths=function(){return wtV};
JT.prototype.getExtension=function(G){return _.D(G,_.UP)};
JT.prototype.JSC$14340_buildRequest=function(G,c,I){I.create_playlist_title?G.title=I.create_playlist_title:c.title&&(G.title=c.title);if(I.create_playlist_privacy_status&&typeof I.create_playlist_privacy_status==="number"){a:{var R=I.create_playlist_privacy_status;if(R!==0){if(R===1){R="PUBLIC";break a}if(R===2){R="UNLISTED";break a}}R="PRIVATE"}G.privacyStatus=R}else c.privacyStatus&&(G.privacyStatus=c.privacyStatus);I.create_playlist_description&&(G.description=I.create_playlist_description);c.videoIds&&
(G.videoIds=c.videoIds);c.params&&(G.params=c.params);c.sourcePlaylistId&&(G.sourcePlaylistId=c.sourcePlaylistId)};var WA=function(){};
_.u(WA,nf);WA.prototype.getApiPaths=function(){return vve};
WA.prototype.getExtension=function(G){return _.D(G,tNB)};
WA.prototype.JSC$14340_buildRequest=function(G,c){G.playlistId=c.playlistId};var ig=function(){};
_.u(ig,nf);ig.prototype.getApiPaths=function(){return JfV};
ig.prototype.getExtension=function(G){return _.D(G,Di2)};
ig.prototype.JSC$14340_buildRequest=function(G,c){c.playlistId&&(G.playlistId=c.playlistId);c.params&&(G.params=c.params)};var fZ=function(){};
_.u(fZ,nf);fZ.prototype.getApiPaths=function(){return Ice};
fZ.prototype.getExtension=function(G){return _.D(G,_.ql)||void 0};
fZ.prototype.JSC$14340_buildRequest=function(G,c){c.actions&&(G.actions=c.actions);c.params&&(G.params=c.params);c.playlistId&&(G.playlistId=c.playlistId)};var BA=function(){};
_.u(BA,nf);_.P=BA.prototype;_.P.getApiPaths=function(){return Zg9};
_.P.getExtension=function(G){return _.D(G,_.vH)};
_.P.JSC$14340_buildRequest=function(G,c){c.videoId&&(G.playerRequest={videoId:c.videoId},c.playerParams&&(G.playerRequest.params=c.playerParams),c.racyCheckOk&&(G.playerRequest.racyCheckOk=!!c.racyCheckOk),c.contentCheckOk&&(G.playerRequest.contentCheckOk=!!c.contentCheckOk));c.params&&(G.params=c.params);c.inputType&&(G.inputType=c.inputType);G.disablePlayerResponse=!0};
_.P.getRequestConfig=function(G){var c;(G=this.JSC$14347_getStoreKey(G))&&(c={storeStrategy:{storeKey:G}});_.v("web_log_reels_ticks")&&(c=c||{},c.requestTick="r_wrs",c.responseTick="r_wrr");return c};
_.P.JSC$14347_getStoreKey=function(G){G=this.getExtension(G);if(G!=null&&G.videoId){var c={videoId:G.videoId};G.params&&(c.params=G.params);return _.i6("reel_item_watch",c)}};var rY=function(){};
_.u(rY,nf);_.P=rY.prototype;_.P.getApiPaths=function(){return Kye};
_.P.getExtension=function(G){return _.D(G,_.vH)};
_.P.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;G.sequenceParams=c.sequenceParams;var R;((R=I)==null?0:R.contentPlaybackContext)&&_.v("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
_.P.JSC$14347_getStoreKey=function(G){if(_.v("shorts_controller_retrieve_seedless_sequence_v2")&&(G=this.getExtension(G),G==null?0:G.sequenceParams))return _.i6("reel_watch_sequence",{sequenceParams:G.sequenceParams})};
_.P.getRequestConfig=function(G){G=this.JSC$14347_getStoreKey(G);var c;G&&(c={storeStrategy:{storeKey:G}});c=c||{};c.requestTick="r_wsrs";c.responseTick="r_wsrr";c.processorTick="r_wsrp";return c};
var jU=function(){};
_.u(jU,nf);jU.prototype.getApiPaths=function(){return Kye};
jU.prototype.getExtension=function(G){return _.D(G,_.fQ)};
jU.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.token&&(G.continuation=c.token);var R;((R=I)==null?0:R.contentPlaybackContext)&&_.v("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
jU.prototype.getRequestConfig=function(G){G=this.JSC$14347_getStoreKey(G);var c;G&&(c={storeStrategy:{storeKey:G}});c=c||{};c.requestTick="r_wsrs";c.responseTick="r_wsrr";c.processorTick="r_wsrp";return c};var xx=function(){};
_.u(xx,nf);xx.prototype.getApiPaths=function(){return u_N};
xx.prototype.getExtension=function(G){return _.D(G,_.NAK)};
xx.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.flagAction&&(G.action=c.flagAction);c.flagRequestType&&(G.flagRequestType=c.flagRequestType);c.additionalDetailCheckboxChecked&&(G.additionalDetailCheckboxChecked=c.additionalDetailCheckboxChecked);c.legalCheckboxChecked&&(G.legalCheckboxChecked=c.legalCheckboxChecked);c={};I.flag_issue_type!==void 0&&(c.issue=I.flag_issue_type);I.flag_affiliation!==void 0&&(c.affiliation=I.flag_affiliation);I.flag_full_name&&(c.fullName=I.flag_full_name);
Object.keys(c).length&&(G.legalReportDetails=c);if(I.flag_description||I.text)G.userComments=I.flag_description||I.text;c={};I.minutes!==void 0&&I.seconds!==void 0&&(c.minutes=I.minutes,c.seconds=I.seconds);I.vss_id&&(c.vssId=I.vss_id);Object.keys(c).length&&(G.videoReportDetails=c);c={};I.video_ids&&(c.videoIds=I.video_ids);I.impersonated_channel_url&&(c.impersonatedChannelUrl=I.impersonated_channel_url);Object.keys(c).length&&(G.channelAbuseReportDetails=c)};
_.Nh.Object.defineProperties(xx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tT=function(){};
_.u(tT,nf);tT.prototype.getApiPaths=function(){return $Z9};
tT.prototype.getExtension=function(G){return _.D(G,jHe)};
tT.prototype.JSC$14340_buildRequest=function(G,c){c.blockedForKidsContent&&(G.blockedForKidsContent=c.blockedForKidsContent)};var hT=function(){};
_.u(hT,nf);hT.prototype.getApiPaths=function(){return m6K};
hT.prototype.getExtension=function(G){return _.D(G,Jr0)};
hT.prototype.JSC$14340_buildRequest=function(G,c,I){G.params=c.params;I.impersonated_channel_url&&(G.impersonatedChannelUrl=I.impersonated_channel_url)};var dY=function(){};
_.u(dY,nf);dY.prototype.getApiPaths=function(){return dZp};
dY.prototype.getExtension=function(G){return _.D(G,_.xee)};
dY.prototype.JSC$14340_buildRequest=function(G,c){c.items&&(G.items=c.items);c.kidGaiaId&&(G.kidGaiaId=c.kidGaiaId)};var CZ=function(){};
_.u(CZ,nf);CZ.prototype.getApiPaths=function(){return LKi};
CZ.prototype.getExtension=function(G){return _.D(G,_.MNk)};
CZ.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params);c.targetId&&(G.targetId=c.targetId)};var HA=function(){};
_.u(HA,nf);HA.prototype.getApiPaths=function(){return eBN};
HA.prototype.getExtension=function(G){return _.D(G,rMp)};
HA.prototype.JSC$14340_buildRequest=function(G,c){c.externalVideoId&&(G.externalVideoId=c.externalVideoId);c.query&&(G.query=c.query);c.sourceTimelines&&(G.sourceTimelines=c.sourceTimelines)};var X7=function(){};
_.u(X7,nf);X7.prototype.getApiPaths=function(){return NCN};
X7.prototype.getExtension=function(G){return _.D(G,_.fQ)||void 0};
X7.prototype.JSC$14340_buildRequest=function(G,c){c.token&&(G.continuation=c.token)};
_.SeW=function(){};
_.u(_.SeW,nf);_.P=_.SeW.prototype;_.P.getApiPaths=function(){return NCN};
_.P.getExtension=function(G){return _.D(G,_.wn)||void 0};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14347_getStoreKey=function(G,c){c=c===void 0?{}:c;if(!c.disableCache&&(G=this.getExtension(G))&&G.query)return c={query:G.query},G.params&&(c.params=G.params),_.i6("search",c)};
_.P.JSC$14340_buildRequest=function(G,c,I){c.query&&(G.query=c.query);c.params&&(G.params=c.params);if(!_.v("web_forward_suggest_stats_killswitch")){var R=_.D(c,NmN);R&&(G.suggestStats=R)}var Z;!_.v("kevlar_searchbox_stats_killswitch")&&((Z=I.tempData)==null?0:Z.gs_l)&&!_.D(c,NmN)&&(G.webSearchboxStatsUrl="/search?oq="+(I.tempData.oq||"")+"&gs_l="+I.tempData.gs_l);var K;if((K=I.tempData)==null?0:K.entityMid)c=G.suggestionSearchParams||{},c.entityMid=I.tempData.entityMid,G.suggestionSearchParams=c;
if(_.v("enable_desktop_vdcbg_components")||_.v("enable_inline_muted_playback_on_web_search"))c=_.OC().getFlag(186),G.inlineSettingStatus=c?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";I.isFromShorts&&(G.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.P.getRequestConfig=function(G,c){c=c===void 0?{}:c;G=this.JSC$14347_getStoreKey(G,c);var I;G&&(I={storeStrategy:{storeKey:G}});_.v("web_log_search_ticks_ks")||(I=I||{},I.requestTick="sr_s",I.responseTick="sr_r");return I};var yH=function(){};
_.u(yH,nf);yH.prototype.getApiPaths=function(){return fCK};
yH.prototype.getExtension=function(G){return _.D(G,RTT)};
yH.prototype.JSC$14340_buildRequest=function(G,c){c.serializedGetSharingProviderDataParams&&(G.serializedGetSharingProviderDataParams=c.serializedGetSharingProviderDataParams)};var gY=function(){};
_.u(gY,nf);gY.prototype.getApiPaths=function(){return BXN};
gY.prototype.getExtension=function(G){return _.D(G,mei)};
gY.prototype.JSC$14340_buildRequest=function(G,c){c.endpoint&&(G.endpoint=c.endpoint);c.action&&(G.action=c.action)};var Yx=function(){};
_.u(Yx,nf);Yx.prototype.getApiPaths=function(){return DZ0};
Yx.prototype.getExtension=function(G){return _.D(G,h7K)};
Yx.prototype.JSC$14340_buildRequest=function(G,c){G.videoId=c.videoId;c.scheduledRedirectMetadataSourceVideoId&&(G.scheduledRedirectMetadata={sourceVideoId:c.scheduledRedirectMetadataSourceVideoId})};var GL=function(){};
_.u(GL,nf);GL.prototype.getApiPaths=function(){return FyT};
GL.prototype.getExtension=function(G){return _.D(G,_.x_0)};
GL.prototype.JSC$14340_buildRequest=function(G,c){G.params=c.params;G.correctionText=c.correctionText};var cn=function(){};
_.u(cn,nf);cn.prototype.getApiPaths=function(){return XO8};
cn.prototype.getExtension=function(G){return _.D(G,_.jj2)};
cn.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params);G.searchQuery=c.searchQuery;G.languageCode=c.languageCode;G.kind=c.kind;G.name=c.name;G.externalVideoId=c.externalVideoId};var I8=function(){};
_.u(I8,nf);I8.prototype.getApiPaths=function(){return Vtk};
I8.prototype.getExtension=function(G){return _.D(G,PXK)};
I8.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.params=c.params)};var R8=function(G){this.JSC$18615_storeWithEntities=G};
_.u(R8,nf);R8.prototype.getApiPaths=function(){return aCB};
R8.prototype.getExtension=function(G){return _.D(G,mIV)||_.D(G,TrK)};
R8.prototype.JSC$14340_buildRequest=function(G,c,I){I.client_data&&(G.clientData=I.client_data);if(c.commerceActionConfig){var R=c.commerceActionConfig;c=R.actionId;R=R.commerceActionParams;c&&(G.actionId=c);R&&(G.commerceActionParams=R)}else{var Z=c.actionId,K=c.commerceActionParams;I=c.entityKeys;Z&&(G.actionId=Z);K&&(G.commerceActionParams=K);var m;c=(R=this.JSC$18615_storeWithEntities)==null?void 0:(m=R.getState())==null?void 0:m.entities;if(I&&c){R=[];m=_.Q(I);for(I=m.next();!I.done;I=m.next())if(Z=
I.value,I=_.Kp(Z).entityType,Z=_.a6(c,I,Z))K={},R.push((K[I]=Z,K));G.entityMutationPayloads=R}}};
R8.prototype.getRequestConfig=function(G){var c,I=(c=_.D(G,mIV))==null?void 0:c.requestSequenceType;if(I&&G.clickTrackingParams&&I!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:G.clickTrackingParams,sequenceType:I}}};
R8[FA]=[NB];var ZB=function(){};
_.u(ZB,nf);ZB.prototype.getApiPaths=function(){return zBN};
ZB.prototype.getExtension=function(G){return _.D(G,_.Sye)};
ZB.prototype.JSC$14340_buildRequest=function(G,c){c.feedbackData&&(G.feedbackData=c.feedbackData);c.params&&(G.itemParams=c.params)};
_.Nh.Object.defineProperties(ZB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KW=function(){};
_.u(KW,nf);KW.prototype.getApiPaths=function(){return EB0};
KW.prototype.getExtension=function(G){return _.D(G,phN)};
KW.prototype.JSC$14340_buildRequest=function(G,c,I){I.payments_payload&&(G.paymentsPayload=I.payments_payload);I.offer_params&&(G.offerParams=I.offer_params);c.transactionParams&&(G.transactionParams=c.transactionParams)};var Pn=function(){};
_.u(Pn,nf);Pn.prototype.getApiPaths=function(){return JZe};
Pn.prototype.getExtension=function(G){return _.D(G,_.M4A)};
Pn.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.buybucketParams&&(G.buybucketData={params:c.buybucketParams},c.stickerParams?G.buybucketData.stickerParams=c.stickerParams:(I.rich_chat_message?G.buybucketData.richChatMessage=I.rich_chat_message:I.chat_message_text&&(G.buybucketData.chatMessageText=I.chat_message_text),I.purchase_price_micros&&(G.buybucketData.purchasePriceMicros=I.purchase_price_micros.toString())));c.donationAmountMicros&&(G.tipAmountMicros=c.donationAmountMicros,
c.tipParams&&(G.tipParams=c.tipParams));c.offerParams&&(G.offerParams=c.offerParams);c.productData&&(G.productData=c.productData);c.transactionParams&&(G.transactionParams=c.transactionParams)};var Qv=function(){};
_.u(Qv,nf);Qv.prototype.getApiPaths=function(){return WyB};
Qv.prototype.getExtension=function(G){return _.D(G,EyK)};
Qv.prototype.JSC$14340_buildRequest=function(G,c){c.updateFopParams&&(G.updateFopParams=c.updateFopParams)};var mh=function(){};
_.u(mh,nf);mh.prototype.getApiPaths=function(){return igN};
mh.prototype.getExtension=function(G){return _.D(G,_.YZ)};
mh.prototype.JSC$14340_buildRequest=function(G,c){c.couponCode&&(G.couponCode=c.couponCode);c.params&&(G.itemParams=c.params)};var a8=function(){};
_.u(a8,nf);a8.prototype.getApiPaths=function(){return fcN};
a8.prototype.getExtension=function(G){return _.D(G,_.a5e)};
a8.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;c.params&&(G.params=c.params);I.ctk&&(G.clientToken=I.ctk)};var TL=function(G){this.JSC$18650_storeWithEntities=G};
_.u(TL,nf);TL.prototype.getApiPaths=function(){return BCp};
TL.prototype.getExtension=function(G){return _.D(G,_.sP)};
TL.prototype.JSC$14340_buildRequest=function(G,c,I){I.purchase_price_micros&&(G.productData={pdgData:{purchasePriceMicros:I.purchase_price_micros.toString()}},I.rich_chat_message&&(G.productData.pdgData.richChatMessage=I.rich_chat_message),I.currency_code&&(G.productData.pdgData.currencyCode=I.currency_code));c.transactionParams&&(G.transactionParams=c.transactionParams);c.clientLocationContext&&(G.clientLocationContext=c.clientLocationContext);I.payments_payload&&(G.paymentsPayload=I.payments_payload);
I.funds_guarantee_callback_client_data&&(G.fundsGuaranteeCallbackClientData=I.funds_guarantee_callback_client_data);var R,Z;I=(R=this.JSC$18650_storeWithEntities)==null?void 0:(Z=R.getState())==null?void 0:Z.entities;if(c.entityKeys&&I){R=[];c=_.Q(c.entityKeys);for(Z=c.next();!Z.done;Z=c.next()){var K=Z.value;Z=_.Kp(K).entityType;if(K=_.a6(I,Z,K)){var m={};R.push((m[Z]=K,m))}}G.entityMutationPayloads=R}};
TL[FA]=[NB];var Oj=function(){};
_.u(Oj,nf);Oj.prototype.getApiPaths=function(){return rZT};
Oj.prototype.getExtension=function(G){return _.D(G,V4k)};
Oj.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;I.backend_analytics&&(G.serializedBackendAnalyticsEvent=I.backend_analytics);c.offerParams&&(G.offerParams=c.offerParams)};var ee=function(){};
_.u(ee,nf);ee.prototype.getApiPaths=function(){return igN};
ee.prototype.getExtension=function(G){return _.D(G,ULp)};
ee.prototype.JSC$14340_buildRequest=function(G,c){c.params&&(G.itemParams=c.params)};var N1=function(){};
_.u(N1,nf);N1.prototype.getApiPaths=function(){return j7B};
N1.prototype.getExtension=function(G){return _.D(G,_.q62)};
N1.prototype.JSC$14340_buildRequest=function(G,c,I){I.resume_time_ms&&(G.resumeTimeMs=I.resume_time_ms);c.pauseParams&&(G.pauseParams=c.pauseParams)};var l$=function(){};
_.u(l$,nf);l$.prototype.getApiPaths=function(){return x6K};
l$.prototype.getExtension=function(G){return _.D(G,_.z4K)};
l$.prototype.JSC$14340_buildRequest=function(G,c,I){I=I===void 0?{}:I;I.c&&(G.redeemCode=I.c);I.rd&&(G.riskData=I.rd);I.ctk&&(G.clientToken=I.ctk)};var q1=function(){};
_.u(q1,nf);q1.prototype.getApiPaths=function(){return ttK};
q1.prototype.getExtension=function(G){return _.D(G,_.w$V)};
q1.prototype.JSC$14340_buildRequest=function(G,c){c.resumeParams&&(G.resumeParams=c.resumeParams)};var w9=function(G,c){this.clientName=G;this.defaultExpirationDelayMs=c};
w9.prototype.put=function(G,c){var I=this,R;return _.T(function(Z){R=Object.assign({},c.data);R.key=G;R.clientName=I.clientName;R.expireTimestampMs===void 0&&(R.expireTimestampMs=(Math.round((0,_.Fa)())+I.defaultExpirationDelayMs).toString());return Z.return(I.putInternal(G,R))})};
w9[FA]=[S6,F3r];var pD$=function(){w9.apply(this,arguments);this.JSC$18680_responseStore=new Map};
_.u(pD$,w9);_.P=pD$.prototype;_.P.get=function(G){var c=this;return _.T(function(I){return I.return(HT(c,G))})};
_.P.putInternal=function(G,c){var I=this,R,Z,K;return _.T(function(m){R=I.defaultExpirationDelayMs;c.expireTimestampMs&&(R=Number(c.expireTimestampMs)-Math.round((0,_.Fa)()),Z=_.DH("mweb_override_response_store_expiration_ms"),Z>0&&Z<R&&(R=Z));K=setTimeout(function(){I.remove(G)},R);
I.JSC$18680_responseStore.set(G,{entryData:c,timer:K});_.Vp(m)})};
_.P.remove=function(G){var c=this;return _.T(function(I){MTH(c,G);_.Vp(I)})};
_.P.removeAll=function(){var G=this;return _.T(function(c){G.JSC$18680_responseStore.forEach(function(I){clearTimeout(I.timer)});
G.JSC$18680_responseStore.clear();_.Vp(c)})};
_.P.has=function(G){return!!this.JSC$18680_responseStore.get(G)};
_.P.getKeys=function(){return this.JSC$18680_responseStore.keys()};
var HT=function(G,c){if(G=G.JSC$18680_responseStore.get(c))return new _.CI(G.entryData)},MTH=function(G,c){var I=G.JSC$18680_responseStore.get(c);
I&&(clearTimeout(I.timer),G.JSC$18680_responseStore.delete(c))};var KRq;var mAg=function(G,c,I){w9.call(this,G,c);this.token=I};
_.u(mAg,w9);_.P=mAg.prototype;_.P.get=function(G){var c=this,I,R;return _.T(function(Z){return Z.nextAddress==1?Z.yield(QGr(c.token),2):Z.nextAddress!=3?(I=Z.yieldResult,Z.yield(I.get("ResponseStore",[G,c.clientName]),3)):(R=Z.yieldResult)?Z.return(new _.CI(R)):Z.return(void 0)})};
_.P.putInternal=function(G,c){var I=this,R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(QGr(I.token),2);R=Z.yieldResult;return Z.yield(R.put("ResponseStore",c),0)})};
_.P.remove=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(QGr(c.token),2);I=R.yieldResult;return R.return(I.delete("ResponseStore",[G,c.clientName]))})};
_.P.removeAll=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return I.yield(QGr(G.token),2);c=I.yieldResult;return I.yield(YCK(c,IDBKeyRange.only(G.clientName)),0)})};
_.P.has=function(){throw Error("jj");};_.Fr=new _.De("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var VTu=function(G){var c;this.stateTagsData=(c=G.responseContext)==null?void 0:c.stateTags},zYd=function(G){var c;
return((c=G.stateTagsData)==null?void 0:c.stateTagsModified)||[]};var E9r;E9r=function(G){this.JSC$18693_responseStore=G};
_.ys=function(G,c,I){if(!_.v("state_tags_killswitch")){var R=new VTu(c);if(zYd(R).length>0){var Z=G.JSC$18693_responseStore.getKeys();Z=_.Q(Z);for(var K=Z.next();!K.done;K=Z.next()){K=K.value;var m=HT(G.JSC$18693_responseStore,K);if(m){var a=_.mG(m);a:{var O=void 0;m=zYd(R);a=((O=(new VTu(a)).stateTagsData)==null?void 0:O.relevantStateTags)||[];O=_.Q(a);for(a=O.next();!a.done;a=O.next())if(a=a.value,a.stateTag!=null&&m.includes(a.stateTag)&&a.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){m=
!0;break a}m=!1}m&&MTH(G.JSC$18693_responseStore,K)}}}}var N;R=(N=c.responseContext)==null?void 0:N.maxAgeSeconds;I&&R&&Number(R)>0&&(c=Nj(c,R),G.JSC$18693_responseStore.put(I,new _.CI(c)))};
E9r.prototype.handleResponse=function(G,c){if(!c)throw Error("kj");var I,R;c=(I=c.config)==null?void 0:(R=I.storeStrategy)==null?void 0:R.storeKey;_.ys(this,G,c)};
E9r[FA]=[_.dQ];_.ACr=new _.De("STORE_RESPONSE_PROCESSOR_TOKEN");var JK$=function(G){this.JSC$18696_responseStore=G};
JK$.prototype.handleResponse=function(G,c){if(c.input.match(_.gL(Kye))){var I;if(G==null?0:(I=G.entries)==null?0:I.length)for(G=_.Q(G.entries),c=G.next();!c.done;c=G.next()){I=c.value.command;var R=void 0;c=(R=_.D(I,_.vH))==null?void 0:R.unserializedPrefetchData;if(!I||!c)break;R=(new BA).JSC$14347_getStoreKey(I);var Z=_.D(c,wQe),K=void 0,m=void 0,a=void 0,O=void 0,N=void 0,q=void 0,w=((K=Z)==null?0:(m=K.responseContext)==null?0:m.maxAgeSeconds)&&Number((a=Z)==null?void 0:(O=a.responseContext)==null?
void 0:O.maxAgeSeconds)>0?Number((N=Z)==null?void 0:(q=N.responseContext)==null?void 0:q.maxAgeSeconds):600;R&&w>0&&(Z=Nj(Z,w),this.JSC$18696_responseStore.put(R,new _.CI(Z)));I=(new cf).JSC$14347_getStoreKey(I);c=_.D(c,GQV);O=a=m=K=Z=R=void 0;N=((R=c)==null?0:(Z=R.responseContext)==null?0:Z.maxAgeSeconds)&&Number((K=c)==null?void 0:(m=K.responseContext)==null?void 0:m.maxAgeSeconds)>0?Number((a=c)==null?void 0:(O=a.responseContext)==null?void 0:O.maxAgeSeconds):600;I&&N>0&&(c=Nj(c,N),this.JSC$18696_responseStore.put(I,
new _.CI(c)))}}};
JK$[FA]=[_.dQ];var Wrj=function(G,c){this.innertubeTransportService=G;this.JSC$18699_commandHandler=c};
Wrj.prototype.submitForm=function(G,c,I,R,Z){var K=this,m,a,O,N,q,w;return _.T(function(F){if(F.nextAddress==1)return m={submitId:G,formData:c,submitBehavior:I,params:R},a=_.gL(nB0),F.yield(_.UO(K.innertubeTransportService,m,a,Z),2);O=F.yieldResult;if(!O)return F.return(Promise.reject(new _.iW("Submit API returned an undefined response. Submit ID: "+G)));N=O;(w=(q=N)==null?void 0:q.onResponseReceived)&&K.JSC$18699_commandHandler.resolveCommand(w);return F.return(N)})};
Wrj[FA]=[_.UU,_.n4];var nW=function(){this.scheduler=_.E_()},iSd;
nW.prototype.pause=function(){throw Error("lj");};
nW.prototype.resume=function(){throw Error("lj");};
nW.prototype.queue=function(G){var c=this,I=_.HU(),R=_.W_(this.scheduler,function(){try{var Z;if(_.NC.instance)var K=_.NC.instance;else{var m=new _.iW("Error: Unexpected uninitialized CommandHandler.");_.hg(m);K=void 0}(Z=K)==null||Z.resolveCommand(G.command);I.resolve()}catch(a){I.reject(a)}});
I.promise.thenCatch(function(Z){Z instanceof _.tq&&c.scheduler.cancelJob(R)});
return I.promise};
nW.prototype.queueAll=function(G){var c=new Map;G=_.Q(G);for(var I=G.next();!I.done;I=G.next())I=I.value,c.set(I.id,this.queue(I));return c};var BF1=function(G,c){var I=this;this.taskModel=G;this.onTaskCancelledCallback=c;this.resolver=_.HU();G=G.proto.prefetchConfig;if(!G)throw Error("mj");if(!G.prefetchAction)throw Error("nj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(R){R instanceof _.tq&&(fL0(I,I.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),I.onTaskCancelledCallback(I.taskModel.id,I.jobId),I.tick("pcc"));
throw R;});
this.timerName=this.taskModel.id;_.sC(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
BF1.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var fL0=function(G,c){_.b8({prefetchInfo:{cancellationReason:c}},G.timerName)};
BF1.prototype.tick=function(G){_.LC(G,void 0,this.timerName)};var DB=function(){var G=this;this.scheduler=_.E_();this.maxInflightTasks=_.DH("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.DH("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new pmT;this.onTaskCancelled=function(c,I){I&&G.scheduler.cancelJob(I);rK7(G,c);vn(G,3)}},jn7=function(){DB.instance||(DB.instance=new DB);
return DB.instance};
DB.prototype.pause=function(){this.prefetchCoordinatorState=0};
DB.prototype.resume=function(){vn(this,0)};
DB.prototype.queue=function(G){G=xwF(this,G);vn(this,1);return G};
DB.prototype.queueAll=function(G){var c=new Map;G=_.Q(G);for(var I=G.next();!I.done;I=G.next())I=I.value,c.set(I.id,xwF(this,I));vn(this,1);return c};
var xwF=function(G,c){var I=G.allPrefetchTasks.get(c.id);if(I)return I.cancellablePromise;try{var R=new BF1(c,G.onTaskCancelled)}catch(K){return _.$C(K)}I=R;I.tick("pcq");var Z={prefetchInfo:{taskId:I.taskModel.id,isPrefetch:!0,fetchAction:I.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:I.taskModel.command.clickTrackingParams}};I.taskModel.csn&&(Z.clientScreenNonce=I.taskModel.csn);_.b8(Z,I.timerName);G.allPrefetchTasks.set(c.id,R);G.drainingHeap.insert(-R.getPriority(),R);return R.cancellablePromise},
vn=function(G,c){G.prefetchCoordinatorState===c&&(G.prefetchCoordinatorState=2,tTd(G))},tTd=function(G){for(var c={};G.prefetchCoordinatorState!==0;c={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(G.inflightPrefetchTasks.size>=G.maxInflightTasks){G.prefetchCoordinatorState=3;break}c.prefetchTask$jscomp$1=G.drainingHeap.remove();if(!c.prefetchTask$jscomp$1){G.prefetchCoordinatorState=1;break}c.taskId$jscomp$3=c.prefetchTask$jscomp$1.taskModel.id;if(G.allPrefetchTasks.has(c.taskId$jscomp$3)){var I=-1;G.coordinatorTimeoutMs>0&&(I=_.W_(G.scheduler,function(R){return function(){o8(G,R.taskId$jscomp$3,Error("oj"))}}(c),G.coordinatorTimeoutMs));
G.inflightPrefetchTasks.set(c.taskId$jscomp$3,I);if(!G.JSC$18716_commandHandler){if(!_.NC.instance){o8(G,c.taskId$jscomp$3,Error("pj"));continue}G.JSC$18716_commandHandler=_.NC.instance}a:switch(c.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":I=1;break a;default:I=0}c.prefetchTask$jscomp$1.jobId=G.scheduler.addJob(function(R){return function(){R.prefetchTask$jscomp$1.tick("pcr");try{G.JSC$18716_commandHandler.resolveCommand(R.prefetchTask$jscomp$1.taskModel.command)||
o8(G,R.taskId$jscomp$3,Error("qj"))}catch(Z){o8(G,R.taskId$jscomp$3,Z)}}}(c),I,0)}}},hYu=function(G,c){(c=rK7(G,c))!=null&&(c.resolver.resolve(),c.tick("pce"));
vn(G,3)},o8=function(G,c,I){(c=rK7(G,c,I))!=null&&(c.resolver.reject(I),c.tick("pcc"),fL0(c,"CANCELLATION_REASON_ERROR"),Math.random()<=_.DH("prefetch_coordinator_error_logging_sampling_rate")&&(I=new _.iW("Prefetch Command failed.",c.taskModel.id,I.message),_.hg(I)));
vn(G,3)},rK7=function(G,c,I){var R=G.allPrefetchTasks.get(c);
R?((I=G.inflightPrefetchTasks.get(c))&&I!==-1&&G.scheduler.cancelJob(I),G.inflightPrefetchTasks.delete(c),G.allPrefetchTasks.delete(c)):_.Ck(new _.iW("Unexpected missing prefetch task when deleting task.",c,I==null?void 0:I.message));return R};var dw1=function(G,c,I,R,Z){this.id=G;this.triggerOn=c;this.cancelOn=I;this.command=R;this.proto=Z};
_.Nh.Object.defineProperties(dw1.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var CRd=function(){this.JSC$18721_prefetchCoordinator=jn7();iSd||(iSd=new nW);this.defaultCoordinator=iSd},HSu;
CRd.getInstance=function(){HSu||(HSu=new CRd);return HSu};
CRd.prototype.get=function(G){switch(G){case 0:return this.JSC$18721_prefetchCoordinator;default:return this.defaultCoordinator}};var Uj=function(){this.coordinatorSupplier=CRd.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},g9d=function(G){var c=_.k0()||void 0,I=Object.keys(XDg)[0];
if(I){var R=G.taskIdByTriggerId.get(I);if(R!=null){G.taskIdByTriggerId.delete(I);I=[];R=_.Q(R);for(var Z=R.next();!Z.done;Z=R.next())if(Z=G.tasks.get(Z.value))c!=="UNDEFINED_CSN"&&(Z.csn=c),I.push(Z);I=Oc8(I);c=[];I=_.Q(I);for(R=I.next();!R.done;R=I.next()){Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;R=G.coordinatorSupplier.get(R).queueAll(Z);R=_.Q(R);var K=R.next();for(Z={};!K.done;Z={taskId$jscomp$9:void 0},K=R.next()){var m=_.Q(K.value);K=m.next().value;m=m.next().value;Z.taskId$jscomp$9=
K;K=m;c.push(Z.taskId$jscomp$9);G.queuedPromisesByTask.set(Z.taskId$jscomp$9,_.hE(K,function(a){return function(){yKu(G,a.taskId$jscomp$9)}}(Z)))}}}}else _.Ck(new _.iW("Unexpected malformed TriggerEvent."))};
Uj.prototype.trigger=function(G,c){var I=this,R=this.tasks.get(G);if(!R||this.queuedPromisesByTask.has(G))return!1;Yed(this,G,R.triggerOn);c!=="UNDEFINED_CSN"&&(R.csn=c);c=this.coordinatorSupplier.get(R.taskType).queue(R);this.queuedPromisesByTask.set(G,_.hE(c,function(){yKu(I,G)}));
return!0};
Uj.prototype.cancel=function(G){var c=this.queuedPromisesByTask.get(G);if(c)c.cancel();else return yKu(this,G)};
var yKu=function(G,c){G.queuedPromisesByTask.delete(c);var I=G.tasks.get(c);if(!I)return!1;G.tasks.delete(c);Yed(G,c,I.triggerOn);(I=T3B(I.cancelOn))&&(G=G.taskIdByCancelId.get(I))&&G.delete(c);return!0},Yed=function(G,c,I){(I=Object.keys(I)[0])&&(G=G.taskIdByTriggerId.get(I))&&G.delete(c)};var XDg={taskRegistered:{}},u$=function(){Uj.instance||(Uj.instance=new Uj);this.JSC$18730_taskManager=Uj.instance};
_.u(u$,Af);
u$.prototype.resolveCommand=function(G){var c=this,I,R;return _.T(function(Z){I=_.D(G,lgV);if((R=I)==null||!R.tasks){var K=new _.iW("RegisterTasksCommand is missing tasks.");_.hg(K);return Z.return()}K=c.JSC$18730_taskManager;for(var m=_.Q(I.tasks),a=m.next();!a.done;a=m.next())if(a=a.value,a=a.id&&a.triggerOn&&a.cancelOn&&a.command?new dw1(a.id,a.triggerOn,a.cancelOn,a.command,a):void 0,a){var O=Object.keys(a.triggerOn)[0];if(O){var N=T3B(a.cancelOn);N?(K.tasks.set(a.id,a),K.taskIdByTriggerId.has(O)||K.taskIdByTriggerId.set(O,
new Set),K.taskIdByTriggerId.get(O).add(a.id),K.taskIdByCancelId.has(N)||K.taskIdByCancelId.set(N,new Set),K.taskIdByCancelId.get(N).add(a.id)):_.Ck(new _.iW("Unexpected malformed cancelOn field."))}else _.Ck(new _.iW("Unexpected malformed triggerOn field."))}else _.Ck(new _.iW("Unexpected malformed Task proto."));g9d(c.JSC$18730_taskManager);_.Vp(Z)})};var Gy1={},cyu=(Gy1.rendered={priority:_.v("web_adaptive_early_init")?8:0,callback:function(){var G={};G.numCpu=navigator.hardwareConcurrency;var c={};c.ramGb=_.Rq.navigator.deviceMemory;var I={staticContext:{}};c.ramGb&&okp(c.ramGb)&&(I.staticContext.memoryTotalKbytes=(c.ramGb*1048576).toString());G.numCpu&&okp(G.numCpu)&&(I.staticContext.cpuCores=G.numCpu);if(_.v("web_enable_adaptive_appl_signal")){G={};c=L4r();c=c.length>0?c[0]:void 0;var R,Z=(R=_.M2("rses_dpj"))!=null?R:c==null?void 0:c.tick.rses_dpj,
K;R=(K=_.M2("rsef_dpj"))!=null?K:c==null?void 0:c.tick.rsef_dpj;Z&&Number(Z)>0&&R&&Number(R)>0&&(K=Math.ceil(Number(R)-Number(Z)),K>0&&(G.loadLatency=K));G.loadLatency&&okp(G.loadLatency)&&(I.appL=G.loadLatency.toString())}_.x7("applicationStarted",I);UT0=I;_.v("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",ubU)}},Gy1);var Img=new _.De("WINDOW_ON_ERROR"),RqF=new _.De("ERROR_WEIGHT_MAPS"),Ztu=new _.De("INIT_ERROR");var Ku$={},Pe0=(Ku$.initialized={priority:10,callback:function(G){G.injector.resolve(Ztu)()}},Ku$);var QW0=function(){},m81=function(){var G=_.Yc("meta_logger_impl");
G||(G=new QW0,_.lr("meta_logger_impl",G));return G},am7=function(){m81().csiSubscriptionKey=Cu0("meta_logging_csi_event",function(G){var c=G.timerName;
if(G=G.timelineData){_.sC(c,{startTime:G.startTime},c);G.infos&&_.b8(G.infos,c);for(var I=_.Q(Object.keys(G.ticks)),R=I.next();!R.done;R=I.next())R=R.value,_.LC(R,G.ticks[R],c)}})};
QW0.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&yiA(this.csiSubscriptionKey)};var TNu={},Otg=(TNu.initialized={priority:10,callback:function(){am7()}},TNu);var eqW=function(G,c){this.innertubeClientName=G;this.JSC$18741_prefCookie=c};
eqW.prototype.record=function(){if(_.v("web_li_record_binary_eval_tick")){var G=_.M2("rsef_dpj");var c=_.M2("rses_dpj");G=G!==void 0&&c!==void 0?Math.round(G-c):void 0;if(G!==void 0&&G>0){c=_.ka(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var I=this.poolSize;if(!(c.valuesSeen>=1E9)){if(c.valuesSample.length<I)c.valuesSample.push(G);else{var R=Math.floor(Math.random()*(c.valuesSeen+1));R<I&&(c.valuesSample[R]=G)}c.valuesSeen+=1}_.bu(this.storagePrefix+"-"+this.innertubeClientName,
c,2592E3);G=c.valuesSample;c=ehf(G);G=G.length<this.poolSize?void 0:c<400?1:c<1700?2:3;G!==void 0&&(this.JSC$18741_prefCookie.set(this.cookiePrefix+this.innertubeClientName,G),this.JSC$18741_prefCookie.save())}}else _.sU(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18741_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18741_prefCookie.save()};
eqW[FA]=[S6,qu];var NNd=function(){eqW.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.u(NNd,eqW);var lmG=new _.De("PAGE_LOAD_TIME_TOKEN");var qZ1=function(G){this.signal=G;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;G.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.W_(_.dJ,this.disableLoggingAndSendPayload,1E4)};
qZ1.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.dJ.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),wX0(this))};
var wX0=function(G){var c=_.u6();if(c){var I={webClientComponentsData:{components:Array.from(G.ids,function(R){return{id:R}})}};
G.ids.clear();_.DP().visualElementStateChanged(c,I)}};var Fu0=Mx({a11y:gjp});_.nsr=Ve(Fu0)(Fu0.a11y,{ephemeralActionSelector:function(G){return G.ephemeralAction||null}});var vs$=Mx({continuation:Rv0});var D8F=Ve(vs$)(vs$.continuation,{continuationCommandSelector:function(G){return G.continuationCommand}});var osd=new _.De("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var b$=function(G,c){this.JSC$18770_storeWithEntities=G;this.JSC$18770_commandHandler=c;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
b$.prototype.start=function(){this.JSC$18770_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
b$.prototype.observeDownloadingEntities=function(){var G=_.tsC(this.JSC$18770_storeWithEntities.getState().entities).map(function(R){return hFO(R)});
if(G.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var c={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:IV0()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Gv(_.mJ("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18770_commandHandler.resolveCommand(c)}this.downloadingEntities=G}else if(this.downloadingEntities.length){var I=x4O(this.JSC$18770_storeWithEntities.getState().entities).map(function(R){return hFO(R)});
this.downloadingEntities.filter(function(R){return I.includes(R)}).length&&(G={openPopupAction:xKi()},this.JSC$18770_commandHandler.resolveCommand(G));
this.downloadingEntities=[]}};
b$[FA]=[NB,_.n4];var U8u;_.k8=function(G,c,I,R,Z,K,m,a){this.JSC$18773_playerApiPromise=G;this.JSC$18773_commandHandler=c;this.JSC$18773_screenManager=I;this.offlineWebClientEligibility=R;this.JSC$18773_prefStorage=Z;this.JSC$18773_actionRouter=K;this.entityTypeMap=m;this.JSC$18773_persistentStorePromiseAccessor=a;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
U8u=function(){var G=_.wH().resolve(_.k8),c;_.T(function(I){if(I.nextAddress==1)return G.downloadFailureListenerBound?I.return():I.yield(G.JSC$18773_playerApiPromise,2);c=I.yieldResult;c.addEventListener("onOfflineOperationFailure",function(R){if(R.failureReason&&R.entityKey&&R.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(R.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Z=_.Kp(R.entityKey).entityId;Z&&G.JSC$18773_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Z)}else if(_.v("kevlar_woffle")){Z=G.JSC$18773_commandHandler;var K=Z.resolveCommand;R=R.failureReason;var m=_.mJ("TRANSFER_FAILED",void 0,"Download failed");R==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(m=_.mJ("STORAGE_FULL",void 0,"Storage full"));K.call(Z,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Gv(m),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
G.downloadFailureListenerBound=!0;_.Vp(I)})};
_.k8.prototype.deleteVideo=function(G,c){var I=this,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return m.yield(I.JSC$18773_playerApiPromise,2);R=m.yieldResult;K={offlineLoggingData:{offlineDeleteReason:(Z=c)!=null?Z:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return m.yield(R.queueOfflineAction(G,I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",K),0)})};
_.k8.prototype.pauseVideoDownload=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(c.JSC$18773_playerApiPromise,2);I=R.yieldResult;I.pauseVideoDownload(G);_.Vp(R)})};
_.k8.prototype.resumeVideoDownload=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(c.JSC$18773_playerApiPromise,2);I=R.yieldResult;return R.yield(I.resumeVideoDownload(G),0)})};
_.k8[FA]=[_.a9,_.n4,_.PQ,osd,vj,EP,HPV,Yg];var uq1=new _.De("DOWNLOAD_STATE_STORE_TOKEN");var btW=function(G,c){this.JSC$18794_persistentStorePromiseAccessor=G;this.store=c;this.upliftCompletionResolver=new _.Te},LuW=function(){var G=_.wH().resolve(kyG),c;
_.T(function(I){switch(I.nextAddress){case 1:if(G.upliftImplPromise)return I.return(G.upliftImplPromise);_.s9(I,2);G.upliftImplPromise=sWr(G);return I.yield(G.upliftImplPromise,4);case 4:G.upliftCompletionResolver.resolve();_.Pl(I,3);break;case 2:throw c=_.M3(I),G.upliftCompletionResolver.reject(c),c;case 3:return I.return(G.upliftImplPromise)}})},sWr=function(G){var c,I,R;
return _.T(function(Z){switch(Z.nextAddress){case 1:return _.XG("LOGGED_IN")?Z.yield(G.JSC$18794_persistentStorePromiseAccessor(),2):Z.return();case 2:c=Z.yieldResult;if(!c)return _.LC("vdeur"),Z.return();_.LC("vdeus");_.s9(Z,3);return Z.yield(Ayu(c),5);case 5:I=Z.yieldResult;G.store.dispatch($4f(I));c.observe(function(K){SOp(G.store,K)});
_.Pl(Z,4);break;case 3:throw R=_.M3(Z),_.LC("vdeur"),R;case 4:_.LC("vdeuc"),_.Vp(Z)}})},Ayu=function(G){var c;
return _.T(function(I){if(I.nextAddress==1)return I.yield(nAT(G),2);c=I.yieldResult;return I.return(c.reduce(function(R,Z){if(!Z.data||!Z.key||!Z.entityType)return R;R[Z.entityType]||(R[Z.entityType]={});R[Z.entityType][Z.key]=Z.data;return R},{}))})};
btW[FA]=[Yg,_.Ni];var kyG;kyG=new _.De("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.sj=new _.De("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var LW=function(G,c){this.JSC$18797_persistentStorePromiseAccessor=G;this.transportService=c};
LW.prototype.refresh=function(){var G=this,c,I,R,Z;return _.T(function(K){if(K.nextAddress==1)return _.XG("LOGGED_IN")?K.yield(G.JSC$18797_persistentStorePromiseAccessor(),2):K.return();if(K.nextAddress!=3)return(c=K.yieldResult)?K.yield(XvC(c),3):K.return();if((I=K.yieldResult)&&!(Number(I.data.refreshTimestampMs||0)<(0,_.Fa)()))return K.return();R={browseId:"SPaccount_downloads"};Z=_.gL(GF);_.UO(G.transportService,R,Z).then(function(m){var a;if(c&&(m==null?void 0:(a=m.responseContext)==null?void 0:
a.maxAgeSeconds)!==0){var O;a=(m==null?void 0:(O=m.responseContext)==null?void 0:O.maxAgeSeconds)||604800;O=String(Math.floor((0,_.Fa)())+a*1E3);c.put("service:downloads_settings:fallback",new _.CI({innertubeResponse:m,refreshTimestampMs:O}))}});
_.Vp(K)})};
LW[FA]=[_.Fr,_.UU];var Ar=function(G,c){this.JSC$18801_playerPromise=G;this.store=c;this.started=!1};
Ar.prototype.start=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return G.started?I.return():I.yield(G.JSC$18801_playerPromise,2);c=I.yieldResult;c.addEventListener("onOrchestrationBecameLeader",G.updateIsLeader.bind(G,!0));c.addEventListener("onOrchestrationLostLeader",G.updateIsLeader.bind(G,!1));if(c.isOrchestrationLeader)G.updateIsLeader(c.isOrchestrationLeader());else{var R=new _.iW("Function isOrchestrationLeader is undefined",{"player.isReady":c.isReady(),"player.playVideo":c.playVideo?
"defined":"undefined"});_.hg(R);G.updateIsLeader(!1)}G.started=!0;_.Vp(I)})};
Ar.prototype.updateIsLeader=function(G){this.store.dispatch(_.R6({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:G}}))};
Ar[FA]=[_.a9,_.Ni];var $8H=function(G,c){this.networkStatusManager=G;this.JSC$18804_prefStoragePromise=c;this.redirectsToPreload=["https://youtube.com"]},SZd=function(){var G=_.wH().resolve($8H),c,I,R,Z,K,m;
_.T(function(a){switch(a.nextAddress){case 1:return a.yield(G.JSC$18804_prefStoragePromise,2);case 2:c=a.yieldResult;if(!(I=c)){a.jumpTo(3);break}return a.yield(c.get("yt-redirect-prefetch-id"),4);case 4:I=a.yieldResult;case 3:if(I||!G.networkStatusManager.isNetworkAvailable())return a.return();R={cache:"reload",redirect:"manual"};Z=_.Q(G.redirectsToPreload);K=Z.next();case 5:if(K.done){if(!c){a.jumpTo(0);break}return a.yield(c.set("yt-redirect-prefetch-id",!0,86400),0)}m=K.value;_.s9(a,8);return a.yield(_.Rq.fetch(m,
R),10);case 10:_.Pl(a,6);break;case 8:_.M3(a);case 6:K=Z.next(),a.jumpTo(5)}})};var pX7=function(G){this.JSC$18810_pageManager=G},MEd=function(G){var c=[];
UAB(["videoId","contentId"],G.JSC$18810_pageManager.data,new Set,c);return c},VEF=function(G){return MEd(G).filter(function(c){return c.contentType==="video"}).map(function(c){return c.contentId}).filter(function(c){return c!==void 0})};
pX7[FA]=[_.I9];var zqd=new _.De("PAGE_CONTENT_EXTRACTOR_TOKEN");var Esu=function(G){G?(this.container=G,this.containerWasInjected=!0):this.containerWasInjected=!1};
Esu.prototype.openDialog=function(G,c,I){var R=this,Z;return _.T(function(K){(Z=R.container)==null||Z.openDialog(G,c,I);_.Vp(K)})};
Esu.prototype.closeDialog=function(){var G=this,c;return _.T(function(I){(c=G.container)==null||c.closeDialog();_.Vp(I)})};
Esu.prototype.isDialogOpen=function(){var G=this,c,I;return _.T(function(R){return R.return((I=(c=G.container)==null?void 0:c.isDialogOpen())!=null?I:!1)})};
Esu[FA]=[_.qR(OXK)];_.Jyg=new _.De("POPUP_CONTROLLER_TOKEN");var Wuu=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Wuu.prototype.registerPanel=function(G,c){if(G){this.panelMap.set(G,c);var I=this.pendingPanelResolvers.get(G);I&&(I.resolve(c),this.pendingPanelResolvers.delete(G))}};
Wuu.prototype.getPanel=function(G){var c=this,I;return _.T(function(R){return(I=c.panelMap.get(G))?R.return(I):R.return(itH(c,G))})};
var itH=function(G,c){var I,R;return _.T(function(Z){if(I=G.pendingPanelResolvers.get(c))return Z.return(I.promise);R=new _.Te;G.pendingPanelResolvers.set(c,R);return Z.return(R.promise)})},fmH=function(G,c){Wuu.call(this);
var I=this;this.popupController=G;this.persistentPanelController=c;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return I.panelMap.size}}};
_.u(fmH,Wuu);_.P=fmH.prototype;_.P.getReloadContinuation=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(c.getPanel(G),2);I=R.yieldResult;return R.return(I.getReloadContinuation())})};
_.P.showPanel=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F,n;return _.T(function(U){if(U.nextAddress==1){I=G;R=I.identifier;Z=I.panelContents;K=I.config;m=I.extras;a=I.panelUpdatableFields;O=I.updatePanelContinuationData;N=G.target;O&&c.updatePanelContinuationDatas.set(R,O);if((q=K)==null?0:(w=q.engagementPanelPopupPresentationConfig)==null?0:w.popupType)if(F=K.engagementPanelPopupPresentationConfig.popupType,N===void 0&&(N=document.body),F==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!c.persistentPanelController)return _.Ck(new _.iW("Persistent panel controller is not available.")),
U.return();var k=c.persistentPanelController;k.persistentPanelIdentifiers.has(R)||(k.persistentPanelWrapper.appendChild(k.engagementPanelElement({panelIdentifier:R},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),k.persistentPanelIdentifiers.add(R));a:switch(_.Ce.currentPageSubTypeSelector(k.store.getState())){case "watch":var p="WATCH";break a;default:p="APP"}_.BNr(k,p);k.store.dispatch(Ghk(!0))}else{if(F==="PANEL_POPUP_TYPE_DIALOG"||F==="PANEL_POPUP_TYPE_DROPDOWN"){k=U.return;p=c.popupController;
var M=p.openPopup;a:switch(F){case "PANEL_POPUP_TYPE_DIALOG":var z="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":z="DROPDOWN";break a;default:throw Error("sj`"+F);}return k.call(U,M.call(p,R,Z,z,N))}_.Ck(new _.iW("Popup type "+F+" not supported in PanelController."))}return U.yield(c.getPanel(R),2)}n=U.yieldResult;(Z||a)&&n.updatePanel(Z,!1,m,a);n.showPanel(m);_.Vp(U)})};
_.P.hidePanel=function(G){var c=this,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return I=G,R=I.identifier,m.yield(c.getPanel(R),2);Z=m.yieldResult;Z.hidePanel();c.popupController.closePopup(R);(K=c.persistentPanelController)!=null&&K.persistentPanelIdentifiers.has(R)&&K.store.dispatch(Ghk(!1));_.Vp(m)})};
_.P.isVisible=function(G,c){var I=this,R;return _.T(function(Z){if(Z.nextAddress==1)return c&&!I.panelMap.has(G)?Z.return(!1):Z.yield(I.getPanel(G),2);R=Z.yieldResult;return Z.return(R.isVisible())})};
_.P.updatePanel=function(G){var c=this,I,R,Z,K,m,a,O,N;return _.T(function(q){if(q.nextAddress==1){I=G;R=I.identifier;Z=I.panelContents;K=I.shouldFocus===void 0?!1:I.shouldFocus;m=I.extras;a=I.panelUpdatableFields;O=I.updatePanelContinuationData;if(!Z&&!a)return q.return();O&&c.updatePanelContinuationDatas.set(R,O);_.v("enable_ai_companion")&&R==="PAai_companion"&&_.kZ.remove("youchat_messages_section");return q.yield(c.getPanel(R),2)}N=q.yieldResult;N.updatePanel(Z,K,m,a);Z&&_.v("enable_ai_companion")&&
c.registerPanelContent(R,Z);_.Vp(q)})};
_.P.registerPanelContent=function(G,c){G&&this.panelContentMap.set(G,c)};
_.P.unregisterPanelContent=function(G){this.panelContentMap.delete(G)};
_.P.getPanelContent=function(G){return this.panelContentMap.get(G)};
_.P.getUpdatePanelContinuationData=function(G){return this.updatePanelContinuationDatas.get(G)};
fmH[FA]=[_.Jyg,_.qR(_.NI)];var ryu=function(G,c){this.innertubeTransportService=G;this.JSC$18829_screenManager=c},jWW=function(G){var c;
return!((c=G.panelLoadingStrategy)==null||!c.requestTemplate)};
ryu.prototype.makeRequest=function(G){var c=this,I,R;return _.T(function(Z){switch(Z.nextAddress){case 1:if(!jWW(c)){Z.jumpTo(2);break}_.s9(Z,3);return Z.yield(_.CQ(c.innertubeTransportService,G),5);case 5:return I=Z.yieldResult,I?Z.return(I.content):(_.hg(Error("tj")),Z.return(void 0));case 3:R=_.M3(Z),_.hg(R);case 2:return Z.return(void 0)}})};
ryu.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
ryu.prototype.execute=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w;return _.T(function(F){if(F.nextAddress==1){I=G;R=I.data;Z=I.fallbackVe;K=I.parentVe;m=I.createScreenConfig;a=I.renderFn;O=I.command;c.panelLoadingStrategy=R;var n,U,k=((n=c.panelLoadingStrategy)==null?0:n.screenVe)?(U=c.panelLoadingStrategy)==null?void 0:U.screenVe:Z;k&&_.dt(c.JSC$18829_screenManager,k,K,m);return(N=c.getContent())?F.yield(a(N),2):F.jumpTo(2)}return F.nextAddress!=4?jWW(c)?F.yield(c.makeRequest(O),4):F.return():(w=
q=F.yieldResult)?F.yield(a(w),0):F.return()})};
ryu[FA]=[_.UU,_.PQ];var x8$;x8$=function(G,c){this.engagementPanelElement=G;this.store=c;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.BNr=function(G,c){var I=G.persistentPanelContainerMap.get(c);I?I.contains(G.persistentPanelWrapper)||(G=G.persistentPanelWrapper,_.cU=!0,_.I1.set(G,!0),I.insertBefore(G,null),_.I1.delete(G),_.cU=!1):_.Ck(new _.iW("Persistent panel container not found for surface "+c+"."))};
x8$[FA]=[esB,_.Ni];var $8=function(){var G=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){G.isHovered=!0};
this.onTargetHoverLeft=function(){G.isHovered=!1};
this.onSheetHoverEntered=function(){G.isHovered=!0;var c;(c=G.hoverEnterCallback)==null||c.call(G)};
this.onSheetHoverLeft=function(){G.isHovered=!1;var c;(c=G.hoverLeaveCallback)==null||c.call(G)}};
$8.prototype.getContainer=function(){return _.hO()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
$8.prototype.openSheet=function(G,c){var I=this,R,Z,K,m,a,O,N;return _.T(function(q){switch(q.nextAddress){case 1:return R={stack:[],error:void 0,hasError:!1},_.s9(q,2,3),Z=aW,q.yield(I.isSheetOpen(),5);case 5:K=q.yieldResult;vpB(R,A$f(Z));if(!K){q.jumpTo(6);break}if(!I.shouldPreventClosingWhileHovered){if(!_.v("delay_sheet_open_killswitch")){if(_.v("web_close_sheet_if_same_target_killswitch")&&c&&I.currentTarget===c)return(m=I.getContainer())==null||m.closeSheet(),q.return();I.pendingData={data:G,
target:DSg(I,c)};return q.return()}q.jumpTo(6);break}if(I.currentTarget===c)return q.return();tEH(I);hqj(I);return q.yield((a=I.getContainer())==null?void 0:a.closeSheet(),6);case 6:if(G.viewModel&&(G={viewModel:G.viewModel,sheetPosition:G.sheetPosition,expandToFullWidth:G.expandToFullWidth}),(O=I.getContainer())==null||O.openSheet(G,c),I.currentTarget=c,I.shouldPreventClosingWhileHovered){I.onTargetHoverEntered();var w;(w=I.currentTarget)==null||w.addEventListener("mouseenter",I.onTargetHoverEntered);
var F;(F=I.currentTarget)==null||F.addEventListener("mouseleave",I.onTargetHoverLeft);d8d(I)}else I.hasRegisteredHoverCallbacks&&d8d(I);case 3:_.A_(q);DfA(R);_.pT(q,0);break;case 2:N=_.M3(q),R.error=N,R.hasError=!0,q.jumpTo(3)}})};
$8.prototype.closeSheet=function(){var G=this;return _.T(function(c){return G.hideDelayMs?(setTimeout(function(){return _.T(function(I){return I.yield(CeG(G),0)})},G.hideDelayMs),c.return()):c.yield(CeG(G),0)})};
var CeG=function(G){var c;return _.T(function(I){if(I.nextAddress==1){if(G.shouldPreventClosingWhileHovered){if(G.isHovered)return I.return();tEH(G);hqj(G)}else G.hasRegisteredHoverCallbacks&&(hqj(G),G.onSheetHoverLeft());return I.yield((c=G.getContainer())==null?void 0:c.closeSheet(),2)}if(I.nextAddress!=4)return G.resetState(),!G.pendingData||_.v("delay_sheet_open_killswitch")?I.jumpTo(0):I.yield(G.openSheet(G.pendingData.data,G.pendingData.target),4);G.pendingData=void 0;_.Vp(I)})};
$8.prototype.isSheetOpen=function(){var G=this,c,I;return _.T(function(R){return R.return((I=(c=G.getContainer())==null?void 0:c.isSheetOpen())!=null?I:!1)})};
$8.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var tEH=function(G){var c;(c=G.currentTarget)==null||c.removeEventListener("mouseenter",G.onTargetHoverEntered);var I;(I=G.currentTarget)==null||I.removeEventListener("mouseleave",G.onTargetHoverLeft)},d8d=function(G){var c,I=(c=G.getContainer())==null?void 0:c.getSheetContainerElement();
I==null||I.addEventListener("mouseenter",G.onSheetHoverEntered);I==null||I.addEventListener("mouseleave",G.onSheetHoverLeft)},hqj=function(G){var c,I=(c=G.getContainer())==null?void 0:c.getSheetContainerElement();
I==null||I.removeEventListener("mouseenter",G.onSheetHoverEntered);I==null||I.removeEventListener("mouseleave",G.onSheetHoverLeft)},DSg=function(G,c){if(!_.v("web_parent_target_for_sheets"))return c;
var I,R;return(R=(I=G.getContainer())==null?void 0:I.getParentTarget(c))!=null?R:c};var qB=window.documentPictureInPicture;var pof=_.I3(["dark"]),MlB=_.I3(["system-icons"]),Vlr=_.I3(["typography"]),zhU=_.I3(["lang"]),EAq=_.I3(["style"]),LRp=_.I3(["dir"]),APp=_.I3(["rounded-container"]),$AA=_.I3(["style"]),WRT=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Se=function(G){this.JSC$18847_clientRoot=G;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Se.prototype.openWindow=function(G){var c=this,I,R;return _.T(function(Z){switch(Z.nextAddress){case 1:if(!window.documentPictureInPicture||!_.LA()||c.currentPipWindow)return Z.return(!1);_.s9(Z,2);return Z.yield((R=qB?qB:null)==null?void 0:R.requestWindow(G),4);case 4:I=Z.yieldResult;_.Pl(Z,3);break;case 2:return _.M3(Z),Z.return(!1);case 3:if(!I)return Z.return(!1);I.addEventListener("pagehide",function(){HtG(c)});
I.addEventListener("resize",c.handlePipWindowResize);JPC(I);fD0(I);bdO(I);return Z.yield(sGU(I),5);case 5:if(!umA())return Z.return(!1);c.currentPipWindow=I;c.JSC$18847_eventForwarder=icb(I,c.JSC$18847_clientRoot);c.pipWindowResizeDelay=new _.wc(function(){c.currentPipWindow&&_.ym(c.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.SB(c.currentPipWindow.innerWidth,c.currentPipWindow.innerHeight)])},I);
c.pipWindowResizeDelay.start();return Z.return(!0)}})};
Se.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var HtG=function(G){if(G.currentPipWindow){var c,I;(c=qB?qB:null)==null||(I=c.window)==null||I.close();G.currentPipWindow.removeEventListener("resize",G.handlePipWindowResize);var R;(R=G.pipWindowResizeDelay)==null||R.dispose();G.pipWindowResizeDelay=void 0;var Z;(Z=G.JSC$18847_eventForwarder)==null||Z.stop();G.JSC$18847_eventForwarder=void 0;c=_.Q(G.onCloseCallbacks);for(I=c.next();!I.done;I=c.next())I=I.value,I();G.onCloseCallbacks=[];G.currentPipWindow=null}};
Se.prototype.getWindow=function(){return this.currentPipWindow};
var XXj=function(G,c){var I;(I=G.onCloseCallbacks)==null||I.push(c)};
Se.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.LA()};
_.Nh.Object.defineProperties(Se.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Se[FA]=[AnB];var yyH=new _.De("PICTURE_IN_PICTURE_CONTROLLER");var B3T=function(G,c){this.lengthY=this.lengthX=0;this.lengthX=c.x-G.x;this.lengthY=c.y-G.y};var gsW=function(){},p60=function(G,c){var I;
(I=G.headerElement)==null||I.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:c}))};var YZW=function(){};
YZW.prototype.openPopup=function(G,c,I,R){var Z=this,K;return _.T(function(m){if(!Z.container)return m.return();K={openPopupAction:{popup:c,popupType:I,uniqueId:G}};return m.return(Z.container.handleOpenPopupAction(K,R))})};
YZW.prototype.closePopup=function(G){this.container&&this.container.closePopup(G)};var G2W=function(){this.openTunnels=new Map},Lir=function(G,c,I){if(dAB(I)){var R=_.Gy(I,"gclid");
I={handleEvent:function(a){c&&!c.closed&&typeof c.postMessage==="function"&&a&&a.origin&&a.source===c&&a.data&&a.data.action==="gcl_setup"&&c.postMessage(Object.assign({},{action:"gcl_transfer"},R&&{gclid:R},{gadSource:2}),a.origin)}};
for(var Z=_.Q(G.openTunnels),K=Z.next();!K.done;K=Z.next()){var m=_.Q(K.value);K=m.next().value;m=m.next().value;if(K.closed)try{window.removeEventListener("message",m),G.openTunnels.delete(K)}catch(a){_.hg(a)}}c&&G.openTunnels.size<15&&(G.openTunnels.set(c,I),window.addEventListener("message",I))}};var cI$=function(){this.clientParams=new Map},efd=function(G){for(var c=_.Q(G.clientParams.keys()),I=c.next();!I.done;I=c.next())I=I.value,I.startsWith("yt-mini-app-share")&&G.clientParams.delete(I)};var I$d=function(G,c){_.JK.call(this);var I=this;this.shortsController=G;this.storeWithShorts=c;G=_.RM(this.storeWithShorts,_.C_i,function(R){if(R){var Z,K=(Z=I.shortsController.getRoot())==null?void 0:Z.getPlayer(),m;(Z=(m=I.shortsController.alternativePlayerContainerElement)==null?void 0:m.getPlayerContainer())&&(K==null||K.appendTo(Z))}else{var a;m=(a=I.shortsController.alternativePlayerContainerElement)==null?void 0:a.getPlayerContainer().querySelector("#player");Z=I.shortsController.activeIndex;
(a=(K=I.shortsController.getRoot())==null?void 0:K.querySelector('ytd-reel-video-renderer[id="'+Z+'"] #player-container'))&&(m==null||m.appendTo(a,void 0,!0))}});
this.addOnDisposeCallback(G)};
_.u(I$d,_.JK);var pW=function(G,c,I,R){var Z=this;this.storeWithShorts=G;this.ephemeralResponseStore=c;this.innertubeTransportService=I;this.innertubeTransportLoader=R;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.o1(_.al);this.isShortsPipActive=_.o1(_.T$);this.nextReelVe=_.qj(56921);this.prevReelVe=_.qj(56922);this.backButtonVe=_.qj(22156);this.TEST_ONLY={getActiveModules:function(){return Z.activeModules}}},RZj=function(G){G.unsubscribeFromStore=
_.RM(G.storeWithShorts,_.dLU,function(c){G.initOrDisposeActiveModules(c);
!c&&G.storeWithShorts.getState().shorts.isFullscreen&&(_.dq(document.documentElement),G.storeWithShorts.dispatch(_.ZoT(!1)))});
G.initOrDisposeActiveModules(_.dLU(G.storeWithShorts.getState()))},v9F,DwG,Zh1;
pW.prototype.initOrDisposeActiveModules=function(G){G?this.activeModules.push(new I$d(this,this.storeWithShorts)):(_.Oe(this.activeModules),this.activeModules.length=0)};
pW.prototype.registerRootElement=function(G){this.rootElement=G;RZj(this)};
pW.prototype.getRoot=function(){return this.rootElement};
pW.prototype.setActiveIndex=function(G){this.activeIndex=G};
_.lLj=function(G,c){var I,R,Z,K,m,a,O;return _.T(function(N){switch(N.nextAddress){case 1:return I=new BA,(R=I.JSC$14347_getStoreKey(c))&&G.ephemeralResponseStore.has(R)?N.yield(G.ephemeralResponseStore.get(R),7):N.yield(Zh1(G,c),4);case 4:Z=N.yieldResult;if(!R){N.jumpTo(3);break}K=Nj(Z,3600);return N.yield(G.ephemeralResponseStore.put(R,new _.CI(K)),3);case 7:Z=(m=N.yieldResult)==null?void 0:_.mG(m);case 3:return((a=Z)==null?0:a.replacementEndpoint)&&(O=_.D(Z.replacementEndpoint,_.vH))&&Z.sequenceContinuation&&
(O.sequenceParams=Z.sequenceContinuation),N.return(Z)}})};
v9F=function(G,c){c=(new rY).JSC$14347_getStoreKey(c);return!!c&&G.ephemeralResponseStore.has(c)};
DwG=function(G,c,I){var R,Z,K,m,a;_.T(function(O){if(O.nextAddress==1){R=new rY;Z=R.JSC$14347_getStoreKey(c);if(!Z)return O.return();if(I.reelWatchSequenceResponse)return K=Nj(I.reelWatchSequenceResponse,3600),G.ephemeralResponseStore.put(Z,new _.CI(K)),O.jumpTo(0);if(!G.ephemeralResponseStore.has(Z))return O.jumpTo(0);a=I;return O.yield(G.ephemeralResponseStore.get(Z),4)}a.reelWatchSequenceResponse=(m=O.yieldResult)==null?void 0:_.mG(m);_.Vp(O)})};
Zh1=function(G,c){var I=I===void 0?{}:I;var R,Z,K;return _.T(function(m){switch(m.nextAddress){case 1:if(G.innertubeTransportService){R=G.innertubeTransportService;m.jumpTo(2);break}if(!G.innertubeTransportLoader){_.yL(Error("vj"));m.jumpTo(2);break}return m.yield(G.innertubeTransportLoader(),4);case 4:R=m.yieldResult;case 2:return m.yield((Z=R)==null?void 0:_.CQ(Z,c,I),5);case 5:return K=m.yieldResult,m.return(K)}})};
_.Nh.Object.defineProperties(pW.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
pW[FA]=[Qnj,_.dQ,_.qR(_.UU),_.qR(io9)];_.Keu=new _.De("STORAGE_MANAGER_TOKEN");var wgC=["touchmove","scroll"];var PVd=!1;var Ybp=!1;var qL0={onSpanEnd:function(G){G.parentId==null&&(PVd||(yPO(),setInterval(yPO,6E5),PVd=!0),cR8(G,"web_tracing_action"))}};var P70=URL.createObjectURL;var Noq,Qgg={traceAllComponents:_.v("web_tracing_all_components"),exportToCsi:_.v("web_tracing_export_to_csi"),enabledSpansArray:_.U2("web_tracing_enabled_spans"),exportToDevTools:_.v("web_tracing_export_to_devtools"),maxBreadcrumbs:_.DH("tel_max_breadcrumbs",0)};Noq=new KnA(Qgg);var lQB=_.v("web_shorts_enable_tracing");var mEd=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},a$g;
mEd.prototype.enqueue=function(G,c){c===1?this.currentPersistentToast=G:this.queue.push(G);this.openToast()};
mEd.prototype.openToast=function(){var G;(G=this.currentToast)!=null&&G.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.M1=new _.De("TOAST_MANAGER_TOKEN");var TKd=new _.De("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Oh7=new _.De("VIEW_TRANSITION_COORDINATOR_TOKEN");var eZ1=function(G){this.config=G;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;G=_.Q(G.transitionConfigs);for(var c=G.next();!c.done;c=G.next())c=_.Q(c.value).next().value,this.transitionTasksMap.set(c,[])};
eZ1.prototype.registerElement=function(G,c,I){I=I===void 0?!1:I;for(var R=_.Q(Object.keys(c)),Z=R.next(),K={};!Z.done;K={viewTransitionName:void 0},Z=R.next()){Z=Z.value;K.viewTransitionName=c[Z];var m=this.elementTasksMap.get(G),a=void 0;if((a=m)==null?0:a.has(Z)){_.dj(new _.iW("Element already registered for transition",G.tagName,Z));break}m=m||new Map;m.set(Z,{beforeTransition:function(O){return function(){G.style.viewTransitionName=O.viewTransitionName}}(K),
afterTransition:function(){G.style.viewTransitionName&&(G.style.viewTransitionName="")},
runOnce:I});this.elementTasksMap.set(G,m)}};
_.jR=function(G,c){var I=G.elementTasksMap.get(c);I&&(I.clear(),I.size===0&&G.elementTasksMap.delete(c))};
eZ1[FA]=[TKd];var l$G=_.W(function(G){var c=_.mX("yt-expandable-metadata-header-view-model"),I=_.Nx(function(R){_.t0(_.DP(),{data:G.data()});if(!_.EN(_.zf(R),c.value,["A".toString(),"BUTTON".toString()])){var Z;(Z=G.expandedCallback)==null||Z.call(G,!1)}});
return _.e("yt-expandable-metadata-header-view-model",{el:c,class:"ytExpandableMetadataHeaderViewModelHost"},_.e(_.l,{cond:function(){return G.expanded()},
then:function(){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":I},_.e("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.e(_.l,{cond:function(){return G.data().expandedTitleImage},
then:function(R){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.e(_.yc,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:R}))}}),_.e("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.e("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.e(_.ul,{text:function(){return G.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.e(_.ul,{text:function(){return G.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.e(_.ul,{text:function(){return G.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.e("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.e(_.sN,{data:function(){return G.data().infoButton}},{buttonViewModel:_.BR}),_.e(_.sN,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
onClick:function(){var Z;(Z=G.expandedCallback)==null||Z.call(G,!1)}})}})))},
else:function(){return _.e(NKH,Object.assign({},G))}}))},"sg"),qGG=_.W(function(G){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.e(_.l,{cond:function(){return G.data().collapsedLabelImage},
then:function(c){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.e(_.yc,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:c,alt:""}))}}),_.e(_.ul,{text:function(){return G.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"tg"),NKH=_.W(function(G){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Nx(function(){_.t0(_.DP(),{data:G.data()});var c;(c=G.expandedCallback)==null||c.call(G,!0)})},_.e("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.e(_.l,{cond:function(){return G.data().collapsedImage},
then:function(c){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.e(_.yc,{height:20,preserveHeight:!0,preserveWidth:!0,data:c,alt:""}))}}),_.e(_.l,{cond:function(){return G.data().showLeadingCollapsedLabel},
then:function(){return _.e(qGG,Object.assign({},G))}}),_.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.e(_.ul,{text:function(){return G.data().collapsedTitle}}))),_.e("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.e(_.l,{cond:function(){return!G.data().showLeadingCollapsedLabel},
then:function(){return _.e(qGG,Object.assign({},G))}}),_.e(_.sN,{data:function(){return G.data().infoButton}},{buttonViewModel:_.BR}),_.e(_.sN,{data:function(){return G.data().expandButton}},{buttonViewModel:function(c){var I=c.data;
return _.e(_.BR,{data:I,onClick:function(){_.t0(_.DP(),{data:I});var R;(R=G.expandedCallback)==null||R.call(G,!0)}})}})))},"ug");_.w1W=_.W(function(G){var c=_.Q(_.Gz(function(){return G.data().initiallyExpanded})),I=c.next().value,R=c.next().value,Z,K=(Z=_.wH().resolve(_.qR(_.d0)))==null?void 0:Z(),m=function(){var a=G.data().colorData;
if(a)return K?a==null?void 0:a.darkColorPalette:a==null?void 0:a.lightColorPalette};
return _.e("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.wi({"background-color":function(){var a=m();return(a==null?0:a.section2Color)?_.pE(a.section2Color):""}})},_.e(_.sN,{data:function(){return G.data().header}},{expandableMetadataHeaderViewModel:function(a){return _.e(l$G,{data:a.data,
expanded:function(){return!!I()},
expandedCallback:function(O){R(O)}})}}),_.e(_.l,{cond:function(){return I()},
then:function(){return _.e("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.e(_.sN,{data:function(){return G.data().expandedContent}},{horizontalShelfViewModel:function(a){return _.e(_.$R,{data:a.data,
includeMargin:!0,forceNarrowLayout:!0,palette:m})},
videoSummaryContentViewModel:function(a){return _.e(e3e,{data:a.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(a){return _.e(_.Yy,{data:a.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(a){return _.e(_.bh,{data:a.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.e(_.sN,{data:function(){return G.data().expandedBottomButtons}},{buttonViewModel:function(a){return _.e("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.e(_.BR,{data:a.data}))}}))}}))},"vg");var FeH=_.W(function(G){var c=G.text;var I=G.marqueeSpacing;var R=G.scrollDelay;var Z=G.scrollDuration;var K=G.enableMarqueeScroll;G=G.large;var m=_.Q(_.ks(!1,void 0,"WyNYFf")),a=m.next().value,O=m.next().value,N=_.Q(_.ks(0,void 0,"OoTdhe"));m=N.next().value;var q=N.next().value,w=_.mX("marquee-scroll");N=_.mX("div");var F=_.mX("span"),n=_.wH().resolve(_.HI);_.xs(function(){if(K()){var p=F.value.getBoundingClientRect().width,M=w.value.getBoundingClientRect().width;if(p>M){var z=(n==="ltr"?-1:1)*(p+
(I?I():16));Promise.resolve().then(function(){O(!0);q(z)})}}},"dv0Anf");
var U={},k={};return _.e("marquee-scroll",{class:_.O3("ytMarqueeScrollHost",(U.ytMarqueeScrollHostLarge=G,U)),el:w},_.e("div",{id:"marquee-scroll-inner-container",class:_.O3("ytMarqueeScrollInnerContainer",(k.ytMarqueeScrollAnimationEnabled=function(){return a()},k)),
el:N,style:_.wi({gap:I?(0,_.U8)(I):"16px","animation-duration":Z?Fa9(Z):"16s","animation-delay":R?Fa9(R):"3s","--marquee-translate":(0,_.U8)(m)})},_.e("span",{el:F,dir:"auto"},_.e(_.ul,{text:c,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.e(_.l,{cond:a,then:function(){return _.e("span",{"aria-hidden":"true",dir:"auto"},_.e(_.ul,{text:c,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"xg");_.nc$=_.W(function(G){var c=G.data;var I=G.overlayDensity;G=_.Nx(function(){c().onTapCommand&&_.r0(c().onTapCommand);return!1});
var R=_.tZC(),Z=function(){return(I==null?void 0:I())===1?22:16},K={};
return _.e("reel-sound-metadata-view-model",{class:_.O3("ytReelSoundMetadataViewModelHost",(K.ytReelSoundMetadataViewModelHostLarge=function(){return(I==null?void 0:I())===1},K)),
"on:click":G,tabindex:0,role:"button","on:keydown":R},_.e("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.e(_.l,{cond:function(){return c().musicIcon},
then:function(m){return _.e(_.yc,{data:m,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Z})}}),_.e("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.e(FeH,{text:function(){return c().soundMetadata},
enableMarqueeScroll:function(){return!!c().enableMarqueeScroll},
large:function(){return(I==null?void 0:I())===1}}))))},"yg");var vcW,DEH,uGr,k2d,LeG,bhW,SGW,$E1;vcW=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];DEH=_.DH("wil_icon_max_concurrent_fetches",Infinity);
uGr=function(G,c,I){var R=this;this.iconSet=G;this.appDirection=c;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Rq.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.v("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.v("wil_icon_network_first");this.renderWhenIdle=_.v("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.v("wil_icon_load_immediately");this.isPurging=!1;G=function(){R.cacheStorageAvailable&&(R.cacheStorageAsync=_.Rq.caches.open("yt-icons").then(function(K){return R.cacheStorageSync=K}).catch(function(){R.cacheStorageAvailable=!1}))};
I=(I==null?void 0:I())||{};I=_.Q(Object.entries(I));for(c=I.next();!c.done;c=I.next()){var Z=_.Q(c.value);c=Z.next().value;Z=Z.next().value;Z=ph(Z);ocG(Z);this.iconCache[c]=Z.cloneNode(!0)}this.isPurging=UEd(this);this.isPurging instanceof Promise?this.isPurging.then(G):G()};
_.x5b=function(G,c){var I=G.resolveIcon(c);return I?G.renderingMode===1?bhW(G,I,G.renderingMode):(c=G.iconCache[I.url])?(c=c.cloneNode(!0),k2d(G,c),bhW(G,I,G.renderingMode,c)):_.sgd(G,I).then(function(R){var Z=R?0:1;k2d(G,R);return bhW(G,I,Z,R)}):(_.dj(new _.iW("Icon not found",{iconShape:c})),function(){})};
k2d=function(G,c){if(c){G.counter+=1;G="_yt"+G.counter;c=[c].concat(_.jn(c.getElementsByTagName("*")));c=_.Q(c);for(var I=c.next();!I.done;I=c.next())if(I=I.value,I.tagName==="style"&&I.textContent)I.textContent=LeG(I.textContent,G,!0);else for(var R=_.Q(I.attributes),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;Z.name==="id"&&(Z.value+=G);["mask","fill","clip-path"].includes(Z.name)&&(Z.value=LeG(Z.value,G));if(Z.name==="style"){var K=I.style;try{K.cssText=LeG(K.cssText,G,!0)}catch(q){var m=void 0,a=
void 0,O=void 0,N=void 0;Vv({error:((m=q)==null?void 0:(O=(a=m).toString)==null?void 0:O.call(a))||"",el:I.outerHTML,style:!!K,cssText:(N=K)==null?void 0:N.cssText})}}Z.name==="xlink:href"&&(Z.value=Z.value.replace(/#(.*)/,"#$1"+G))}}};
LeG=function(G,c,I){var R=/url\(["']?#(.*?)["']?\)/;(I===void 0?0:I)&&(R=/url\(["']?#(.*?)["']?\)/g);return G.replace(R,"url(#$1"+c+")")};
bhW=function(G,c,I,R){return function(Z,K){var m;var a=Object.assign({},{iconWidth:c.size+"px",iconHeight:c.size+"px",iconDisplay:"block"},K,{iconColor:(m=K==null?void 0:K.iconColor)!=null?m:"currentcolor"});m=_.$9("DIV");K=a.iconColor;var O=a.iconFilter;a="width: "+a.iconWidth+"; height: "+a.iconHeight+"; display: "+a.iconDisplay+";";O&&(a+=" filter: "+O+";");I===0&&(a+=" fill: "+K+";");I===1&&(O=c.url,a+=" -webkit-mask: url("+O+") no-repeat center / cover; mask: url("+(O+") no-repeat center / cover; background-color: ")+
K);c.allowMirroring&&G.appDirection==="rtl"&&(a+=" transform: scale(-1, 1); transform-origin: center center;");m.setAttribute("style",a);I===0&&R&&m.appendChild(R);Z.appendChild(m)}};
_.sgd=function(G,c){var I,R,Z;return _.T(function(K){I=function(m){return Gi(m)};
R=c.url;if(!AI0(R))throw Error("yj");Z=$E1(G,R);return K.return(Z.then(function(m){return m.clone().text()}).then(function(m){var a=I(m);
m=c.size;var O=_.$9("DIV");_.O9(O,a);a=_.ST(O.firstElementChild!==void 0?O.firstElementChild:_.$S0(O.firstChild,!0));m=ocG(a,m);G.iconCache[R]=m.cloneNode(!0);delete G.responsePromises[R];return m}).catch(function(){}))})};
SGW=function(G){var c,I=(c=G.requestAninmationFrameResolver)==null?void 0:c.promise;I||(G.requestAninmationFrameResolver=new _.Te,I=G.requestAninmationFrameResolver.promise,_.Rq.requestAnimationFrame(function(){var R;(R=G.requestAninmationFrameResolver)==null||R.resolve();G.requestAninmationFrameResolver=null}));
return I};
$E1=function(G,c){var I,R;return _.T(function(Z){if(Z.nextAddress==1)return G.waitForAnimationFrame?Z.yield(SGW(G),2):Z.jumpTo(2);I=G.responsePromises[c];I||(R=function(){var K,m,a;return _.T(function(O){switch(O.nextAddress){case 1:if(!G.cacheStorageAvailable){K=void 0;O.jumpTo(2);break}if(m=G.cacheStorageSync){O.jumpTo(3);break}return O.yield(G.cacheStorageAsync,4);case 4:m=O.yieldResult;case 3:K=m;case 2:return a=K,G.isNetworkFirstStrategy?O.return(G.fetchAndUpdateCache(c,a).catch(G.getCacheStorageResponse.bind(G,
c,a))):O.return(G.getCacheStorageResponse(c,a).catch(G.fetchAndUpdateCache.bind(G,c,a)))}})},I=G.renderWhenIdle?new Promise(function(K,m){_.W_(_.dJ,function(){R().then(K).catch(m)},10)}):R(),G.responsePromises[c]=I);
return Z.return(I.catch(function(K){delete G.responsePromises[c];Vv({error:(K==null?0:K.toString)?K.toString():"",url:c});throw K;}))})};
uGr.prototype.fetchAndUpdateCache=function(G,c){var I=this;return _.T(function(R){return R.return(p1g(I,G).then(function(Z){MVj(I,G,Z,c);return Z}))})};
var p1g=function(G,c){var I;return _.T(function(R){if(G.numFetches<DEH)return G.numFetches+=1,R.return(VVj(G,c).finally(function(){--G.numFetches;if(Object.keys(G.queuedResponseResolvers).length){var Z=Object.keys(G.queuedResponseResolvers)[0],K=G.queuedResponseResolvers[Z];delete G.queuedResponseResolvers[Z];K.resolve(p1g(G,Z))}}));
I=new _.Te;G.queuedResponseResolvers[c]=I;return R.return(I.promise)})},VVj=function(G,c,I){I=I===void 0?2:I;
var R;return _.T(function(Z){R={credentials:"same-origin",priority:"low"};return Z.return(_.Rq.fetch(c,R).then(function(K){return K.ok?K:Promise.reject(Error("zj`"+K.status+"`"+K.statusText))}).catch(function(K){if(I>0)return VVj(G,c,I-1);
throw K;}))})},MVj=function(G,c,I,R){_.T(function(Z){return R?Z.return(new Promise(function(K){_.W_(_.dJ,function(){var m,a;
return _.T(function(O){switch(O.nextAddress){case 1:if(!G.isNetworkFirstStrategy){m=void 0;O.jumpTo(2);break}return O.yield(R.match(c).catch(function(){}),3);
case 3:m=O.yieldResult;case 2:if(a=m){O.jumpTo(4);break}return O.yield(R.put(c,I.clone()).catch(function(N){Vv({error:(N==null?0:N.toString)?N.toString():"",url:c})}),4);
case 4:K(),_.Vp(O)}})},50)})):Z.return()})};
uGr.prototype.getCacheStorageResponse=function(G,c){return _.T(function(I){return c?I.return(c.match(G).then(function(R){return R&&R.ok?R:Promise.reject()})):I.return(Promise.reject())})};
var ocG=function(G,c){c===void 0||G.getAttribute("viewBox")||G.setAttribute("viewBox","0 0 "+c+" "+c);G.setAttribute("focusable","false");G.setAttribute("aria-hidden","true");c=_.v("killswitch_remove_icon_fill_color");G.getAttribute("fill")!=="currentcolor"&&G.getAttribute("fill")!=="currentColor"||c||G.removeAttribute("fill");try{G.style.pointerEvents="none",G.style.display="inherit",G.style.width="100%",G.style.height="100%"}catch(Z){var I;Vv({error:((I=Z)==null?0:I.toString)?Z.toString():""});
try{G.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(K){var R;Vv({error:((R=K)==null?0:R.toString)?K.toString():""})}}return G},AI0=function(G){for(var c=_.Q(vcW),I=c.next();!I.done;I=c.next())if(G.startsWith(I.value)&&G.endsWith(".svg"))return!0;
return!1};
uGr.prototype.resolveIcon=function(G){return this.iconSet.resolveIcon(G)};
var Vv=function(G){_.Ck(new _.iW("Error in IconManager",G))},UEd=function(G){if(_.v("wil_icons_cache_purge_killswitch"))return!1;
try{var c=_.Rq.localStorage}catch(K){return!1}if(!c||!G.cacheStorageAvailable)return!1;var I=function(K){try{var m;(m=c)==null||m.setItem("yt-icons-last-purged",K.toString())}catch(O){var a;Vv({error:((a=O)==null?0:a.toString)?O.toString():""})}},R=Number(c.getItem("yt-icons-last-purged"));
if(!R)return R=new Date,R=R.setDate(R.getDate()-Math.floor(Math.random()*90+1)),I(R),!1;if(function(K,m){K=new Date(K);m=new Date(m);return m.getMonth()-K.getMonth()+12*(m.getFullYear()-K.getFullYear())}(R,Date.now())<3)return!1;
try{return _.Rq.caches.delete("yt-icons").then(function(K){K&&I(Date.now());return K}).catch(function(){return!1}).finally(function(){G.isPurging=!1})}catch(K){var Z;
Vv({error:((Z=K)==null?0:Z.toString)?K.toString():""});return!1}};
uGr[FA]=[CaG,_.HI,_.qR(y_7)];_.zZ$=function(G,c){this.iconManager=G;this.iconsToFetch=c};
_.zZ$[FA]=[_.ek,_.qR(XMd)];var Ec0=function(){};var JIr=function(G,c,I){this.requestKey=G;this.g0k=c;this.dUA=I;this.mm2=function(){return new XMLHttpRequest};
this.ysj=void 0;this.pQX=[]};
JIr.prototype.getLatestChallengeResponse=function(){return this.dUA};
var zMK=function(G,c,I){var R,Z,K,m;return _.T(function(a){if(a.nextAddress==1){_.sC("attestation_challenge_fetch");_.LC("att_fs",void 0,"attestation_challenge_fetch");if(!G.ysj)throw new _.CU(9,"Missing fetcher");return a.yield(G.ysj(c,I),2)}R=a.yieldResult;K=(Z=R)==null?void 0:Z.bgChallenge;if(!K)throw new _.CU(15,"Missing field");G.dUA=R;G.pQX.forEach(function(O){O(R)});
m=tQU(K);_.LC("att_fc",void 0,"attestation_challenge_fetch");kD("attestation_challenge_fetch");return a.return(m)})},ZjT=function(G,c){var I,R,Z,K,m;
return _.T(function(a){switch(a.nextAddress){case 1:I=new on(100,3E5,.25,2),R=void 0;case 2:if(!(I.currBackoffCount_<10)){a.jumpTo(4);break}_.s9(a,5);if(!(I.currBackoffCount_>0)){a.jumpTo(7);break}return a.yield(nHT(I.getValue()),7);case 7:return a.yield(WeW(G,c),9);case 9:return Z=a.yieldResult,a.return(Z);case 5:K=_.M3(a);K instanceof _.CU?R=K:(m=K instanceof Error?K.message:"Unknown",R=new _.CU(9,m));x8B(I);a.jumpTo(2);break;case 4:if(R)throw R;throw new _.CU(9,"Unknown error");}})},WeW=function(G,
c){c=UR0(uAN(new o6K,c),G.requestKey);
var I=new _.Te,R=G.mm2();R.open("POST",G.g0k);R.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");R.setRequestHeader("Content-Type","application/json+protobuf");R.onload=function(){if(_.qCb(R)){var Z=VvN(R.responseText);I.resolve(Z)}else I.reject(new _.CU(_.Fb8(_.bW(R)),R.statusText))};
R.onerror=function(){I.reject(new _.CU(_.Fb8(_.bW(R)),R.statusText))};
R.send(c.serialize());return I.promise};var f$7=function(G){this.networkStatusManager=G;this.isDownloaded=yVA===void 0?function(){return!1}:yVA;
this.isReady=!1;this.fZA=ihu(this)},ihu=function(G){var c;
return _.T(function(I){if(I.nextAddress==1)return I.yield(yIb(),2);if(I.nextAddress!=3)return c=I.yieldResult,I.yield(dwN(c),3);G.jG=I.yieldResult;Ddg(G.jG).then(function(){G.isReady=!0});
return I.return(G.jG)})},BKu=function(G,c,I){G.jG?(G=G.jG.b6N({yR:I,
lxw:!0,fxB:!0}),c.serviceIntegrityDimensions={poToken:G}):_.hg(Error("Bj"))};
f$7.prototype.processContext=function(G){var c=this;if(!G.input.match(_.gL(cZA)))return _.S5();var I=G.innerTubeRequest,R=I.videoId;return!R||this.isDownloaded(I)||this.networkStatusManager&&!this.jG&&!this.networkStatusManager.isNetworkAvailable()||_.v("webpo_exit_on_net_err")&&!this.jG&&(window.bgens===1||window.bgens===3)?_.S5():this.jG?this.isReady?(BKu(this,I,R),_.S5()):new $h(Ddg(this.jG).then(function(){BKu(c,I,R)})):new $h(this.fZA.then(function(Z){return _.T(function(K){if(K.nextAddress==
1)return K.yield(Ddg(Z),2);
BKu(c,I,R);_.Vp(K)})}))};var rIW=new _.De("WEB_PO_CONTEXT_PROCESSOR");var jgj=function(G,c){var I=this;this.iKZ=0;var R;this.qbg=(R=c==null?void 0:c.qbg)!=null?R:window;this.networkStatusManagerPromise=c==null?void 0:c.networkStatusManagerPromise;var Z;this.requestKey=(Z=c==null?void 0:c.requestKey)!=null?Z:_.oa("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var K;this.fo0=(K=c==null?void 0:c.fo0)!=null?K:function(O){return new cz(O)};
var m;R=(m=c==null?void 0:c.wP1)!=null?m:function(O,N,q){return new JIr(O,N,q)};
this.bgChallenge=tQU(G.bgChallenge);this.ttlSeconds=hrp(yY(G.challenge||""));this.uV=R(this.requestKey,_.v("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Rq.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",G);this.mF0=c==null?void 0:c.mF0;vH8(this.uV);var a;this.qSE=(a=c==null?void 0:c.qSE)!=null?a:function(O){_.Ld(I.qbg.document,"visibilitychange",
function(){I.qbg.document.visibilityState==="visible"&&O()})}},tV0=function(G){if(!G.vm){var c={maxAttempts:5,
dL0:G.ttlSeconds*1E3};oHr(G.qbg);G.vm=G.fo0({uV:G.uV,mgK:{disable:_.v("html5_web_po_disable_remote_logging"),un:"aGIf",fGa:TUr("html5_web_po_experiment_ids"),r0P:_.v("wpo_dis_lfdms")?0:1E3,hSe:function(R){var Z=K0e.get(R);Z||(Z=new ZrA(R),Z=new se(Z),K0e.set(R,Z));return Z}},
tv2:c,p8E:G.bgChallenge,sXT:Udq});G.iKZ=Date.now();S2V(G.vm,function(){G.iKZ=Date.now()});
G.qbg.bgevmc={p:function(){var R;(R=G.vm)==null||R.pause()},
r:function(){var R;(R=G.vm)==null||R.resume()},
cr:function(){var R,Z;return(Z=(R=G.vm)==null?void 0:R.checkForRefresh())!=null?Z:Promise.resolve()}};
cwr(G.vm,function(){return _.T(function(R){return R.return(xEd(G))})});
var I=G.b6Q.bind(G);G.networkStatusManagerPromise&&G.ttlSeconds>0&&G.networkStatusManagerPromise.then(function(R){R.listen("publicytnetworkstatus-online",I)});
G.qSE(I)}};
jgj.prototype.b6Q=function(){if(Date.now()>this.iKZ+this.ttlSeconds*1E3){var G;(G=this.vm)==null||$Re(G)}};
var xEd=function(G){if(G.bpp)return G.bpp;if(!G.vm)throw Error("Cj");G.bpp=new Pz({vm:G.vm,uV:G.uV,nyK:!0,onError:Udq,tv2:G.mF0});return G.bpp},b3C=function(G,c){G=new jgj(G,c);
tV0(G);(c==null?0:c.la7)||xEd(G)};var hZ7=_.nsr.ephemeralActionSelector,dEF=function(G,c){this.store=G;this.queue=[];c==null||c.addEventListener("yt-navigate-start",this.reset.bind(this))};
dEF.prototype.enqueue=function(G){var c=G.command,I=G.durationMs,R=G.elementToFocus;var Z=G.label;var K=G.elementToFocus;G.command?Z=_.mJ("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Z,shortcut:_.mJ("SHIFT_PLUS_ENTER")}):K&&(G=Z+". "+_.mJ("SHIFT_PLUS_ENTER")+" for more information.",Z=_.mJ("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Z,shortcut:_.mJ("SHIFT_PLUS_ENTER")},G));I={announcement:Z,durationMs:I!=null?I:8E3};c?I.command=c:R&&(R.classList.add("ephemeral-action-focusable-element"),I.selector=R.tagName+
".ephemeral-action-focusable-element");this.queue.push(I);CVu(this)};
dEF.prototype.activate=function(G){var c=hZ7(this.store.getState());if(c){if(c==null?0:c.command)_.iD(c.command),this.store.dispatch(yDN(null));if(c==null?0:c.selector)c=document.querySelector(c.selector),_.Y2g(c);G.preventDefault()}};
var CVu=function(G){if(!hZ7(G.store.getState())&&G.queue.length){var c=G.queue.shift();c&&(G.previousAnnouncement===c.announcement&&(c.announcement+="\u00a0"),G.store.dispatch(yDN(c)),G.previousAnnouncement=c.announcement,G.JSC$18969_timeoutId=setTimeout(function(){if(c.selector){var I;(I=document.querySelector(c.selector))==null||I.classList.remove("ephemeral-action-focusable-element")}G.store.dispatch(yDN(null));CVu(G)},c.durationMs))}};
dEF.prototype.reset=function(){this.JSC$18969_timeoutId&&clearTimeout(this.JSC$18969_timeoutId);this.store.dispatch(yDN(null));this.queue.length=0;this.JSC$18969_timeoutId=void 0};
dEF[FA]=[_.Ni,_.qR(_.Hk)];_.zL=new _.De("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Hhd=new _.De("AUTH_SERVICE_TOKEN");var Lnf=_.I3(["about:blank"]),sOC;var X1g=new _.De("API_IFRAME_TOKEN");var J$i;J$i=new _.De("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.yI7=new _.De("MISC_UI_SHARED_FLAGS_TOKEN");var gc1=function(){};
gc1.prototype.getFlag=function(G){if(G.configType!==2)throw Error("Dj");return YGF(G)};
var YGF=function(G){switch(G.flagType){case "bool":return _.v(G.flagName);case "int":return _.Je(_.DH(G.flagName));case "double":return _.DH(G.flagName);case "string":return _.oa(G.flagName);case "int32_list":return TUr(G.flagName);case "int64_list":return TUr(G.flagName).map(function(c){return _.Je(c)});
case "string_list":return _.U2(G.flagName);default:throw Error("Ej");}};var Ej=function(G,c,I){c=c===void 0?{}:c;cw.call(this,I===void 0?"uninitialized":I);this.env=G;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];c.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=c.shouldWaitOnAsyncImmediate)};
_.u(Ej,cw);Ej.prototype.init=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(G(c.env),2):(G(c.env),R.jumpTo(2));if(R.nextAddress!=4)return c.jobSet?R.yield(c.jobSet.completedResolver.promise,4):R.jumpTo(4);I=_.kL();I.parkOrScheduleJob(function(){c.transition("rendering")},10,"ci");
_.Vp(R)})};
Ej.prototype.initialRender=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(G(c.env),2):(G(c.env),R.jumpTo(2));if(R.nextAddress!=4)return c.jobSet?R.yield(c.jobSet.completedResolver.promise,4):R.jumpTo(4);I=_.kL();I.parkOrScheduleJob(function(){c.transition("rendered")},10,"cr");
_.Vp(R)})};
Ej.prototype.afterRenderImmediate=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(G(c.env),2):(G(c.env),R.jumpTo(2));if(R.nextAddress!=4)return c.jobSet?R.yield(c.jobSet.completedResolver.promise,4):R.jumpTo(4);I=_.kL();I.parkOrScheduleJob(function(){c.transition("after-render-deferred")},10,"carml");
_.Vp(R)})};
Ej.prototype.afterRenderDeferred=function(G){var c=this;return _.T(function(I){G(c.env);_.Vp(I)})};_.Ch("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var Guu={},cwu=(Guu.rendered={priority:0,callback:function(G){vVK(G.injector.resolve(iB))}},Guu);var b_q=new _.De("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),IHd=new _.De("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var RMr=function(G){this.callbackFnMap=G;this.configMap={}};
RMr.prototype.handleResponse=function(G){var c;if(G=(c=G.responseContext)==null?void 0:c.serviceTrackingParams)for(c=_.Q(G),G=c.next();!G.done;G=c.next()){G=G.value;var I=G.params,R=G.service;if(I&&R){this.configMap[R]||(this.configMap[R]=new bZK);G=this.configMap[R];var Z=void 0,K=(Z=this.callbackFnMap)==null?void 0:Z[R];I=_.Q(I);for(R=I.next();!R.done;R=I.next())Z=R.value,R=Z.key,Z=Z.value,R&&Z&&(G.set(R,Z),K&&K(R,Z))}}};
RMr.prototype.getConfig=function(G){return this.configMap[G]||void 0};
RMr[FA]=[_.qR(IHd)];var Z4H=!1,EHB=0,pgq=null,ztT=null;var Kbd=new _.De("NETWORK_SLI_TOKEN");var PWW=function(G){this.networkSli=G};
PWW.prototype.fetch=function(G,c,I){var R=this,Z;return _.T(function(K){Z=QaH(R,G,c);return K.return(fetch(Z).then(function(m){return R.handleResponse(m,I)}).catch(function(m){_.Ck(m);
if((I==null?0:I.expectJsonStrict)&&m instanceof ZN&&m.errorType===1)return Promise.reject(m)}))})};
var JT2=function(G,c,I,R){var Z,K,m,a,O,N,q;return _.T(function(w){switch(w.nextAddress){case 1:return Z=QaH(G,c,I),_.s9(w,2),w.yield(fetch(Z),4);case 4:K=w.yieldResult;_.Pl(w,3);break;case 2:throw _.M3(w),new ZN(2,"Failed to parse streaming response",Z.url);case 3:if(!K.redirected&&!K.ok)throw(m=G.networkSli)==null||m.failure(),new _.iW("Streaming fetch request not ok",Z.url);if(!K.body)throw new _.iW("No response body in streaming response",Z.url);a={};if(_.v("web_streaming_fast"))return O=K.body.getReader(),
w.return(mR7(G,O,a,R));N=K.body.pipeThrough(new TextDecoderStream).getReader();q=new _.Mn;return w.return(aHG(G,N,q,Fhf,a,R))}})},QaH=function(G,c,I){if(G.networkSli){var R=_.Aw(_.tO(c,"key"))||"/UNKNOWN_PATH";
G.networkSli.start(R)}G=I;_.v("wug_networking_gzip_request")&&(G=oWp(I));return new window.Request(c,G)},mR7=function(G,c,I,R){var Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H,g,QO,T8,kp,FB,oq,Wr,iT,z8,GV,ei,Hr;
return _.T(function(v0){switch(v0.nextAddress){case 1:Z=new TextDecoder("utf-8"),K=[],a=m=0,_.s9(v0,2,3);case 5:return v0.yield(c.read(),8);case 8:O=v0.yieldResult;N=O.value;if(q=O.done){w=0;if(K.length>m)for(w=K[m].length-a,F=m+1;F<K.length;F++)w+=K[F].length;w>0&&(n=JRi(K,w,m,a),U=n.indexOf(123),k=n.lastIndexOf(125),U!==-1&&k!==-1&&k>U&&(p=n.subarray(U,k+1),M=JSON.parse(Z.decode(p)),Fhf(I,M),z=void 0,(z=R)==null||z(I,M)));t=void 0;(t=G.networkSli)==null||t.success();return v0.return(I)}K.push(N);
x=m;for(C=a;x<K.length;)if(H=K[x],g=H.indexOf(10,C),g===-1){if(x===K.length-1)break;x++;C=0}else{QO=x;T8=g+1;kp=0;if(m===QO)kp=T8-a;else{kp=K[m].length-a;for(FB=m+1;FB<QO;FB++)kp+=K[FB].length;kp+=T8}oq=JRi(K,kp,m,a,QO,T8);Wr=oq.indexOf(123);iT=oq.lastIndexOf(125);if(Wr!==-1&&iT!==-1&&iT>Wr){z8=oq.subarray(Wr,iT+1);try{GV=JSON.parse(Z.decode(z8)),Fhf(I,GV),ei=void 0,(ei=R)==null||ei(I,GV)}catch(kK){throw new ZN(1,"Failed to parse streaming response object",Z.decode(z8));}}m=x;C=a=g+1;a===H.length&&
(m++,a=0,x=m,C=0)}v0.jumpTo(5);break;case 3:_.A_(v0);c.releaseLock();_.pT(v0,0);break;case 2:Hr=_.M3(v0);if(Hr instanceof ZN)throw Hr;throw new ZN(1,"Failed to process streaming response");}})},aHG=function(G,c,I,R,Z,K){var m,a,O,N,q,w,F,n,U;
return _.T(function(k){if(k.nextAddress==1)return k.yield(c.read(),2);m=k.yieldResult;a=m.value;if(O=m.done)return(N=G.networkSli)==null||N.success(),k.return(Z);try{q=I.parse(a)}catch(p){throw new ZN(1,"Failed to parse streaming response",a);}if(q!=null)for(w=_.Q(q),F=w.next();!F.done;F=w.next())n=F.value,R(Z,n),U=void 0,(U=K)==null||U(Z,n);return k.return(aHG(G,c,I,R,Z,K))})};
PWW.prototype.handleResponse=function(G,c){var I=G.text().then(function(R){if((c==null?0:c.jspbResponseCtor)&&G.ok)return ITA(c.jspbResponseCtor,R);R=R.replace(")]}'","");if((c==null?0:c.expectJsonStrict)&&R)try{var Z=JSON.parse(R)}catch(m){throw new ZN(1,"JSON parsing failed after fetch");}var K;return(K=Z)!=null?K:JSON.parse(R)});
G.redirected||G.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),I=I.then(function(R){_.Ck(new _.iW("Error: API fetch failed",G.status,G.url,R));return Object.assign({},R,{errorMetadata:{status:G.status}})}));
return I};
PWW[FA]=[_.qR(Kbd)];var THW=new _.De("NETWORK_MANAGER_TOKEN");var O4u=[1,2,4,8,16,30],NHu=function(G){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=G.maxTimeMs;this.maxFrameCount=G.maxFrameCount===void 0?Math.ceil(60*G.maxTimeMs/1E3):G.maxFrameCount;G=_.Q(O4u);for(var c=G.next();!c.done;c=G.next())this.brokenFrameSummarizers.push(new eM7(c.value/60*1E3))},lHj=function(G){var c=G.frameCountInternal>=G.maxFrameCount;
return G.elapsedTimeMs>=G.maxTimeMs||c};
NHu.prototype.summarize=function(){for(var G=[],c=_.Q(this.brokenFrameSummarizers),I=c.next();!I.done;I=c.next())I=I.value,I=I.brokenFrameCount!==0?{severityMs:Math.round(I.targetFrameTimeMs),eventCount:I.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(I.averageDurationBetweenEventsMs)}:void 0,I&&G.push(I);return{summaries:G,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.Nh.Object.defineProperties(NHu.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 eM7=function(G){this.targetFrameTimeMs=G;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Nh.Object.defineProperties(eM7.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var q2u=function(){};
q2u.prototype.start=function(G,c){var I=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var R=new NHu({maxTimeMs:G});this.monitor=R;this.lastSummaryInternal=void 0;this.metadataToLog=c;return new Promise(function(Z){var K=function(m){if(m===void 0)I.stop(),Z(void 0);else if(I.monitor!==R)m=Object.assign({},R.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Z(m);else{var a=I.monitor;if(!lHj(a)){a.frameCountInternal++;if(a.prevTime===
void 0)a.startTime=m;else for(var O=m-a.prevTime,N=_.Q(a.brokenFrameSummarizers),q=N.next();!q.done;q=N.next()){q=q.value;var w=q.currTimeMs;q.currTimeMs+=O;O>q.targetFrameTimeMs+2&&(q.brokenFrameCount++,q.timeOfFirstBrokenFrameMs===void 0&&(q.timeOfFirstBrokenFrameMs=w),q.timeOfLastBrokenFrameMs=w)}a.prevTime=m}lHj(I.monitor)?Z(I.stop()):_.dJ.addJob(K,5,0)}};
_.dJ.addJob(K,5,0)})};
q2u.prototype.stop=function(G){if(!this.monitor)return this.lastSummaryInternal;var c=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(c.monitoringDurationMs){G=G!=null?G:this.metadataToLog;var I={droppedFramesSummary:c,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};G&&(I[G.type]=G.data);_.x7("manualSmoothnessMeasurement",I)}this.monitor=void 0;this.lastSummaryInternal=c;this.metadataToLog=void 0;return c};_.wK$=new _.De("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Fbr;Fbr=function(G){this.JSC$19011_expiringStorage=new BK(G)};
_.n6j=function(G){if(_.Wn0()&&(G=_.gDT(_.Jw()+"::"+G)))return new Fbr(G)};
Fbr.prototype.set=function(G,c,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$19011_expiringStorage.set(G,c,I)};
Fbr.prototype.get=function(G){return this.JSC$19011_expiringStorage.get(G)};
Fbr.prototype.remove=function(G){this.JSC$19011_expiringStorage.remove(G)};_.Jr=function(){};
_.Jr.getInstance=function(){var G=_.Yc("ytglobal.storage_");G||(G=new _.Jr,_.lr("ytglobal.storage_",G));return G};
_.Jr.prototype.estimate=function(){var G,c,I;return _.T(function(R){G=navigator;return((c=G.storage)==null?0:c.estimate)?R.return(G.storage.estimate()):((I=G.webkitTemporaryStorage)==null?0:I.queryUsageAndQuota)?R.return(i3r()):R.return()})};
_.lr("ytglobal.storageClass_",_.Jr);var htU=0;var YLO=!1;var v6W=_.I3(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),DRu=_.I3(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Cyu={"/":_.IM,"/?feature=ytca":_.IM,"/feed/downloads":_.g3r};var o6d=D8F.continuationCommandSelector,bJ=function(G,c,I){this.JSC$19026_upliftPromise=G;this.store=c;this.JSC$19026_persistentStorePromiseAccessor=I};
bJ.prototype.shouldPreferLocalResponse=function(G){return G.browseId==="FEdownloads"||G.browseId==="FEsmart_downloads"&&_.v("kevlar_modern_downloads_page")?!0:!1};
bJ.prototype.localInnertubeResponse=function(G){var c=this;return _.T(function(I){return G.browseId==="FEdownloads"?_.v("kevlar_modern_downloads_page")?I.return(URu(c)):I.return(uA1(c)):G.browseId==="FEsmart_downloads"&&_.v("kevlar_modern_downloads_page")?I.return(b41(c)):I.return(Promise.reject(Error("Gj")))})};
bJ.prototype.canProvideFallbackResponse=function(){return!0};
bJ.prototype.localFallbackInnertubeResponse=function(G){var c=this,I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:return K.yield(c.JSC$19026_persistentStorePromiseAccessor(),2);case 2:I=K.yieldResult;if(G.browseId!=="SPaccount_downloads"||!I){K.jumpTo(3);break}return K.yield(XvC(I),4);case 4:if(R=K.yieldResult)return K.return(_.mG(R));case 3:return G.browseId==="FEwhat_to_watch"?K.return(kuH(c)):(Z=_.v("web_offline_continuation_automatic_retry")||_.v("web_offline_continuation_retry_button"))&&
G.continuation?K.return(sad(c)):K.return(Lbd(c))}})};
var kuH=function(G){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(G.JSC$19026_upliftPromise,2);c=_.Ui0(G.store.getState().entities);return c.length?I.return(AwG(G,c)):I.return(Lbd(G))})},uA1=function(G){var c,I;
return _.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$19026_upliftPromise,2);if(R.nextAddress!=3)return c=$Rd([{offlineItemSectionRenderer:{}}]),R.yield(S2r(G,c),3);I=R.yieldResult;I.onResponseReceivedActions=[ol("REFRESH_DOWNLOADS")];return R.return(I)})},URu=function(G){var c,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p;
return _.T(function(M){if(M.nextAddress==1)return M.yield(G.JSC$19026_upliftPromise,2);if(M.nextAddress!=3)return c=G.store.getState(),I=c.entities,R=_.s4(I),Z=_.Lp(I),K=_.GQ8(c),m=_.Yrb(c),a=_.cGC(c),O=_.kbA(I),N=_.DY(R),q=_.AX(I),w=_.$iT(I),F=_.R7r(c),n=_.V4(c),U={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Nuq(R,Z,O,w,K,m,N,q,a,F,n),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},k="",_.v("kevlar_modern_downloads_skip_downloads_title")||
(k=_.mJ("DOWNLOADS",void 0,"Downloads")),M.yield(pK7(G,U,k),3);p=M.yieldResult;p.onResponseReceivedActions=[ol("REFRESH_DOWNLOADS")];return M.return(p)})},b41=function(G){var c,I,R,Z,K,m,a,O,N;
return _.T(function(q){if(q.nextAddress==1)return q.yield(G.JSC$19026_upliftPromise,2);if(q.nextAddress!=3)return c=G.store.getState(),I=c.entities,R=_.s4(I),Z=_.DY(R),K=_.AX(I),m={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.qVr(R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},a=_.mJ("SMART_DOWNLOADS",void 0,"Smart downloads"),O=OKA(Z,K),q.yield(pK7(G,m,a,O),3);N=q.yieldResult;N.onResponseReceivedActions=
[ol("REFRESH_DOWNLOADS")];return q.return(N)})},Lbd=function(G){var c,I;
return _.T(function(R){if(R.nextAddress==1)return R.yield(Qs(G.JSC$19026_upliftPromise,G.store),2);c=R.yieldResult;I=$Rd([hHg(c)]);return R.return(S2r(G,I))})},sad=function(G){var c,I,R,Z;
return _.T(function(K){if(K.nextAddress==1)return c={},I=o6d(G.store.getState()),_.MC(c,_.fQ,I),K.yield(Qs(G.JSC$19026_upliftPromise,G.store,c,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);R=K.yieldResult;Z={};_.MC(Z,_.C3e,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:R}}}],targetId:"browse-feedFEwhat_to_watch"});return K.return({responseContext:{},onResponseReceivedActions:[Z]})})},$Rd=function(G){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:G}}}}]}}},AwG=function(G,c){var I,R;
return _.T(function(Z){var K={contents:Ug(c)};I=K&&K.contents?K:{};_.v("kevlar_modern_downloads_page")&&(I=Object.assign({},_.w9O(c),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:I}}}]}};return Z.return(S2r(G,R))})},S2r=function(G,c){var I,R;
return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$19026_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return I=Z.yieldResult,Z.yield(eX(I),3);R=Z.yieldResult;return Z.return({responseContext:{},contents:c,topbar:R})})},pK7=function(G,c,I,R){var Z,K;
return _.T(function(m){if(m.nextAddress==1)return m.yield(G.JSC$19026_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return Z=m.yieldResult,m.yield(eX(Z),3);K=m.yieldResult;var a=m.return;var O=I;var N=R;O=O===void 0?"":O;N=N===void 0?"":N;O={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:O}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.mJ("SETTINGS",void 0,"Settings"),accessibilityText:_.mJ("SETTINGS",void 0,"Settings"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",isFullWidth:!0,iconName:"SETTINGS",onTap:{innertubeCommand:_.gU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:N}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:O};
return a.call(m,{responseContext:{},contents:c,topbar:K,header:{pageHeaderRenderer:O}})})};var MA0=function(){this.moduleRegistry={};this.fetchCount=0};
MA0.prototype.isFetching=function(){return this.fetchCount>0};
var CM=function(G,c){G.moduleRegistry[c.toString()]={asyncId:c,isFetching:!1};return G};
MA0.prototype.JSC$19037_loadModules=function(){for(var G=this,c=new Map,I=[],R=_.Q(_.Hy.apply(0,arguments)),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var K=this.moduleRegistry[Z];K?K.resolver?c.set(Z,K.resolver):(K.resolver=new _.Te,c.set(Z,K.resolver),I.push(K.asyncId),K.isFetching=!0):(K=new _.Te,c.set(Z,K),K.resolve(void 0))}I.length&&(this.fetchCount+=1,_.hE(_.F5.getMultipleAsync.apply(_.F5,_.jn(I)).then(function(m){for(var a=0;a<I.length;a++){var O=m[a],N=G.moduleRegistry[I[a].toString()];N.isFetching=
!1;N.resolver.resolve(O)}}).catch(function(m){for(var a=_.Q(I),O=a.next();!O.done;O=a.next()){O=O.value;
var N=G.moduleRegistry[O.toString()];N.resolver=void 0;N.isFetching=!1;c.get(O.toString()).reject(m)}}),function(){--G.fetchCount}));
return Promise.all([].concat(_.jn(c.values())).map(function(m){return m.promise}))};_.He=new _.De("MODULE_REGISTRY_TOKEN");var VAW={},zMF=(VAW.rendered={priority:0,callback:function(G){a:{var c=void 0;try{var I;b:{if(_.Hbg()){var R=_.x6(_.Jw()+"::pom");if(R){var Z=new Gb(R);break b}}Z=void 0}var K=(I=Z)==null?void 0:I.get("role_text");if(!K)break a;c={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:K}]}}}}}}catch(O){}c&&G.injector.resolve(_.n4).resolveCommand(c)}try{var m=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(m){var a=JSON.parse(m);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
a&&G.injector.resolve(_.n4).resolveCommand(a)}}catch(O){}}},VAW);var E6d,Jwg={},Wb0=(Jwg.initialized={priority:10,callback:function(){E6d=Vs()}},Jwg.rendering={callback:function(G){var c;
return _.T(function(I){if(I.nextAddress==1)return I.yield(E6d,2);c=I.yieldResult;if(!c.endpoint)throw Error("Ij`"+_.Rq.location.href);We(G,c);_.Vp(I)})}},Jwg);var i4G={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.jn(_.v("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(G){var c=G.stack;if(c.includes("chrome://")||c.includes("chrome-extension://")||G.message.includes("chrome-extension://")||c.includes("moz-extension://")||
c.includes("local.adguard.org")||c.includes("auctioneer3.50million.club")||c.includes("youtubedownloader")||c.includes("youtube_home_page")||c.includes("is_youtube_video_no_longer_available")||c.includes("switchScreenSizeHack")||c.includes("yt_main_big_banner.js")||c.includes("YouTubeCenter.js")||c.includes("/mytube.js")||c.includes("JSON.parseWrapper")||c.includes("/inj_js/common.js")||c.includes("firebug-lite")||c.includes(".repl.co/")||c.includes("linkfix")||c.includes("playAfterAd")||G.message.includes("Access is denied for this document")&&
c.includes("<anonymous>")||G.fileName==="user-script"||G.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&c.includes("<anonymous>"))return!0;if(c.includes("https://www.youtube.com"))return!1;G=c.split("\n");if(!G.length)return!1;if(G.length<=3&&c.includes("s.onloadeddata"))return!0;c=0;for(var I=_.Q(G),R=I.next();!R.done;R=I.next())R=R.value,(R.includes("https://")||R.includes("http://"))&&c++;return c/G.length>.95},
weight:0},{callback:function(G){return G.message==="Unknown Error"&&G.name.indexOf("NS_")===0},
weight:100},{callback:function(G){if(!_.FY)return!1;var c=G.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||G.message.includes("available to complete this operation"),I=G.stack.includes("webcomponents")&&G.message==="Object doesn't support this action";G=G.message.includes("object that does not implement interface Element");return c||I||G},
weight:0},{callback:function(G){return G.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(G){return G.message==="Operation is not supported"&&(G.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(G){return G.stack.includes("eval code (eval (code:1:1)")||G.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(G){return G.message.includes("Permission denied")&&G.stack.includes("this.domHandler")?!0:G.name.includes("TypeError")&&G.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(G){if(!G.stack)return!1;var c=G.stack.trim().split("\n");c.length&&c[0].endsWith("Error: "+G.message)&&c.shift();c.length&&c[c.length-1].includes("at window.onerror (")&&c.pop();if(!c.length)return!0;if(G.message==="Script error.")return c[0].includes("www.youtube.com")||c.length>=2&&c[0].startsWith("at new")&&c[1].startsWith("at window.onerror");if(G.message==="Unexpected token")return!0;G=_.Q(c);for(c=G.next();!c.done;c=G.next())if(c=c.value,!(c.includes("<anonymous>")||
c.startsWith("load@")||c.startsWith("global code@")||c.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(G){return G.message==="Cannot read property 'experiments'"&&G.stack.includes("/s/player/")},
weight:500},{callback:function(G){return G.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(G){return G.stack.includes("/embed.js")?(G.params&&G.params&&(G.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.v("use_error_suppression"))var G=_.H1("SUPPRESS_CLIENT_ERRORS",!1);else{if(G=_.UH)G=/Chrome\/(\d+)/.exec(_.wb()),G=(G?parseFloat(G[1]):NaN)>=66;G=!(G||_.o3&&_.Dk(65)||_.Y6&&_.Dk(12.1)||ev&&_.Dk(79))}return G},
weight:500}]};var fHr={},BHj=(fHr.initialized={priority:10,callback:function(G){G.injector.addProvider({provide:AnB,useValue:G.root});G.injector.addProvider({provide:Img,useValue:dxf});G.injector.addProvider({provide:RqF,useValue:i4G});var c={};G.injector.addProvider((c.provide=Ztu,c.useFactory=function(I,R){return function(){qbq(I,R)}},c[FA]=[Img,
RqF],c));G.injector.addProvider({provide:Yw,useClass:Yw})}},fHr);var rwu={},jaW=(rwu.initialized={priority:3,callback:function(){var G;if(G=tW0()){G=G.replace("/",".");var c=_.OC();c.set("tz",G);c.save();G=!0}else G=!1;G||(G=_.OC(),G.set("utco",-Math.floor((new Date).getTimezoneOffset())),G.save())}},rwu);var xRW={},tAu=(xRW.initialized={priority:10,callback:function(G){G.injector.resolve(Yw).start();G=_.xa();var c=_.XG("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.XG("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.XG("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.XG("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.ve(_.V7g(),{mainAppWeb:Object.assign({},G,{pageType:c})});_.ve(Enp(),{mainAppWeb:Object.assign({},G,{pageType:c})});
_.ve(JMp(),{mainAppWeb:G});_.ve(WZC(),{mainAppWeb:G});SCi(function(){_.Do(JMp(),"FAILURE");_.Do(WZC(),"FAILURE")});
Ndg();lFO();ibr()}},xRW);var hMg={},dR$=(hMg.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.LC("dl"),_.kL().processSignal("pcl");else{var G=function(){_.LC("dl");_.kL().processSignal("pcl");window.removeEventListener("load",G)};
window.addEventListener("load",G)}}},hMg);var CWd={},H41=(CWd.rendering={priority:0,callback:function(){var G=_.kL();G.parkOrScheduleJob(function(){G.processSignal("eocs")},10,"eor",5E3)}},CWd);var XKF=function(){};
_.u(XKF,Af);
XKF.prototype.resolveCommand=function(G,c){var I,R,Z,K,m,a,O,N;return _.T(function(q){Z=(I=_.D(G,_.wR9))==null?void 0:(R=I.dialog)==null?void 0:R.commentReplyDialogRenderer;if(!Z)throw new _.iW("No dialog in createCommentReplyDialogEndpoint");m=(K=c.form)==null?void 0:K.event;if(!m)throw new _.iW("Event not passed in when resolving command");a=_.Q(m.composedPath());for(O=a.next();!O.done;O=a.next())if(N=O.value,N.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||N.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return N.showReplyDialog(Z),q.return();
_.Vp(q)})};var ywW=function(){};
_.u(ywW,Af);ywW.prototype.resolveCommand=function(G){var c,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return c=_.D(G,LZV),(I=c)!=null&&I.externalChannelId?m.yield((0,_.OsU)("NSzT5"),2):m.return();R=_.g6G;K=(Z=c.forceInstall)!=null?Z:!1;return m.yield(R(c.externalChannelId,K),0)})};var Wn=function(G){this.JSC$19055_pageRequestService=G;this.JSC$19055_prefetchCoordinator=jn7()};
_.u(Wn,Af);Wn.prototype.resolveCommand=function(G){var c=this,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1){I=_.D(G,XRA);if((R=I)==null||!R.taskId)throw Error("Jj");Z=I.taskId;_.s9(m,2);return m.yield(_.Fr0(c.JSC$19055_pageRequestService,G,{},"").then(function(a){if(!a)throw Error("Kj");},function(a){throw Error("Lj`"+a);
}),4)}if(m.nextAddress!=2)return hYu(c.JSC$19055_prefetchCoordinator,Z),_.Pl(m,0);
K=_.M3(m);o8(c.JSC$19055_prefetchCoordinator,Z,K);_.Vp(m)})};
Wn[FA]=[_.MB];var i$=function(G,c){this.innertubeTransportService=G;this.JSC$19059_commandHandler=c};
_.u(i$,Af);i$.prototype.resolveCommand=function(G){var c=this,I,R,Z;return _.T(function(K){if(K.nextAddress==1){I=_.D(G,XQ2);if(I.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||I.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")R=I.boolValue?2:1,_.Jt.getInstance().setState(R,!0,!0);return K.yield(_.CQ(c.innertubeTransportService,G),2)}Z=K.yieldResult;Y2W(c,Z);_.Vp(K)})};
var Y2W=function(G,c){c.actions&&c.actions.forEach(function(I){G.JSC$19059_commandHandler.resolveCommand(I)})};
i$[FA]=[_.UU,_.n4];var fW={},Bn=(fW.addToPlaylistEndpoint=yl(MM),fW.addToToastAction=yl(xT),fW.adsControlFlowOpportunityReceivedCommand=yl(OI),fW.audioTrackSelectActionCommand=yl(HV),fW.backgroundAudioPlaybackCommand=yl(gV),fW.captionLanguageSelectActionCommand=yl(Yf),fW.captionPickerEndpoint=yl(Gd),fW.changeMiniAppPlayStateCommand=yl(V3),fW.changeTimelyActionVisibilityCommand=yl(j0),fW.channelCreationFormEndpoint=yl(sI),fW.clearLocationCommand=yl(pl),fW.clearUrlParamCommand=yl(zG),fW.copyLinkCommand=yl(mP),fW.copyTextEndpoint=
yl(Fy),fW.createCommentReplyDialogEndpoint=W1U(XKF),fW.createPlaylistServiceEndpoint=yl(at),fW.dismissDialogEndpoint=yl(J2),fW.dismissPlayerOverlayCommand=yl(cj),fW.entityUpdateCommand=yl(vV),fW.feedbackEndpoint=yl(UI),fW.getAnswerCommand=yl(ot),fW.getPaymentsClientTokenCommand=yl(Hj),fW.getTranscriptEndpoint=yl(tb),fW.googlePaymentBillingCommand=yl(XE),fW.googlePaymentPurchaseManagerCommand=yl(y8),fW.hideEngagementPanelEndpoint=yl(WV),fW.hideSheetCommand=yl(fl),fW.hideSnackbarCommand=yl(Ez),fW.insertRichSectionCommand=
yl(A2),fW.listMutationCommand=yl($f),fW.logGtmCommand=yl(Ll),fW.notifyDropdownOptionSelectedCommand=yl(EI),fW.openAdAllowlistInstructionCommand=yl(_.e6),fW.openOnePickAddVideoModalCommand=yl(Td),fW.persistSubscriptionsDisplayPreferencesCommand=yl(wh),fW.pingingEndpoint=yl(NM),fW.playlistEditEndpoint=yl(e0),fW.playlistVotingRefreshPopupCommand=yl(Nu),fW.profileCardCommand=yl(TG),fW.refreshPanelEndpoint=yl(BV),fW.saveImageToDeviceEndpoint=yl(nl),fW.scrollToSectionEndpoint=W1U(MBd),fW.seekToVideoTimestampCommand=
yl(It),fW.selectCountryCommand=yl(FE),fW.setCookieCommand=yl(nD),fW.setLocalStorageCommand=yl(Wj),fW.setPrefStorageEntryCommand=yl(DE),fW.setSettingEndpoint=yl(i$),fW.sfvAudioItemPlaybackCommand=yl(Rt),fW.shareImageCommand=yl(Uz),fW.sharingProviderDataCommand=yl(uG),fW.showAudioTrackPickerActionCommand=yl(ZE),fW.showCaptionLanguageSelectActionCommand=yl(KD),fW.showCreatorChatbotEngagementPanelCommand=yl(ywW),fW.showDialogCommand=yl(xf),fW.showEngagementPanelEndpoint=yl(t2),fW.showFullscreenPlayerControlsCommand=
yl(Pj),fW.showSheetCommand=yl(h2),fW.showSnackbarCommand=yl(Jb),fW.showTransientPlayerScrimOverlayCommand=yl(Q8),fW.submitFormWithValidationFlowCommand=yl(kf),fW.talkToRecsDeselectCommand=yl(iG),fW.talkToRecsNextCommand=yl(fD),fW.talkToRecsSelectCommand=yl(Bj),fW.talkToRecsUpdateTextCommand=yl(rh),fW.toggleEngagementPanelCommand=yl(dV),fW.undoFeedbackEndpoint=yl(bZ),fW.updateEngagementPanelContentCommand=yl(Cl),fW.updateUrlParamCommand=yl(hb),fW.updateVideoMetadataCommand=yl(CD),fW.verifyCommand=
yl(sI),fW.webNativeShareCommand=yl(bG),fW.webSubmitFormCommand=yl(lG),fW.ACK_PLAYABLES_3P_DATA_CONSENT=yl(kT),fW.CANCEL_NAVIGATION=yl(sz),fW.COPY_SHARE_URL=yl(LD),fW.MINI_APP_EXIT_DIALOG_SEEN=yl($T),fW.MINI_APP_OPEN_URL=yl(Ab),fW.REQUEST_MINI_APP_FULLSCREEN=yl(S0),fW.RESUME_NAVIGATION=yl(pD),fW.SHARE_PLAYABLE_WITH_HIGH_SCORE=yl(Mu),fW.TELL_US_WHY=yl(uZ),fW);_.v("web_enable_prefetching_videos_on_home")&&(Bn.prefetchWatchCommand=yl(Wn),Bn.registerTasksCommand=yl(u$));
_.v("enable_share_panel_navigation_logging_fix_on_web")&&(Bn.shareEntityServiceEndpoint=yl(rV));_.v("web_use_flow_state_manager")&&(Bn.deleteFlowStepsCommand=yl(Im),Bn.flowNextStepCommand=yl(Rm),Bn.flowPrevStepCommand=yl(Zl),Bn.getFlowCommand=yl(Kl),Bn.updateFlowCommand=yl(PV));_.v("enable_ai_companion")&&(Bn.updateConversationIdCommand=yl(wV),Bn.formDataDecoratorCommand=yl(qM));var QiK=Object.assign({},Bn);var Gcu={},c$1=(Gcu.initialized={priority:10,callback:vib},Gcu);var IwH={},R1u=(IwH.initialized={callback:function(G){var c={},I={};QAr().install((c.document_disposed={callback:function(){_.v("finalize_all_timelines")?Gkf():u8();M2g("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.b2U();var R=G.injector.resolve(Yw);R.intervalId!==void 0&&(R.intervalId&&_.dJ.cancelJob(R.intervalId),R.intervalId=void 0,--R.currentPartitionIndex,R=lUe(R),R>0&&h4B({mainAppWeb:_.xa(),survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));W2K(LJ);At!=null&&
At.flush();KE&&KE.snapshotAndFlush();R=_.Q(K0e.values());for(var Z=R.next();!Z.done;Z=R.next())Z.value.snapshotAndFlush()}},c),(I.flush_logs={callback:function(){_.tg()}},I))}},IwH);var Zjj={},K_F=(Zjj.rendered={priority:0,callback:function(){var G=new lw0;G.increment("STARTED");if(_.H1("LOGGED_IN")&&!_.H1("IS_DBSC",!1)&&_.H1("SERVER_VERSION")!=="test"&&_.H1("SERVER_VERSION")!=="dev"&&!HT0()&&!Cai()){G.increment("EXECUTING");var c=document.createElement("iframe");c.style.display="none";_.RE(c,2,_.dS("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.H1("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(c);G.increment("DONE")}}},
Zjj);var Prd={},QzW=(Prd.rendered={callback:function(){jn7().resume()}},Prd);var mtH={acknowledgeChannelTouStrikeCommand:BU(MV),addToPlaylistServiceEndpoint:BU(EJ),addToPlaylistEndpoint:BU(EJ),addUpcomingEventReminderEndpoint:BU(Gg),browseEndpoint:BU(snu),channelCreationFormEndpoint:BU(kY),channelCreationServiceEndpoint:BU(sk),claimLegacyYoutubeChannelEndpoint:BU(e8),clearSearchHistoryEndpoint:BU(dl),clearWatchHistoryEndpoint:BU(CO),commerceActionCommand:ri(R8),createBackstagePostEndpoint:BU(Pf),createBroadcastCommand:BU(cA),createCommentEndpoint:BU(oY),createCommentReplyEndpoint:BU(DN),
createLiveChatPollEndpoint:BU(IB),createPlaylistServiceEndpoint:BU(JT),crossAccountChannelTransferEndpoint:BU(yT),deleteLiveChatMessageCommand:BU(RB),deletePlaylistEndpoint:BU(WA),deleteVideoEndpoint:BU(Yx),dismissalEndpoint:BU(VT),feedbackEndpoint:BU(zY),flagEndpoint:BU(xx),getAccountSwitcherEndpoint:BU(XJ),verifyCommand:BU(KO),getAccountsListInnertubeEndpoint:BU(YY),getCommentsFromInboxCommand:BU(nZ),getDownloadActionCommand:BU(kx),getFlowCommand:ri(hQ),getKidsBlocklistPickerCommand:BU(tT),getNotificationMenuEndpoint:BU($w$),
getPaymentInstrumentsParamsCommand:BU(a8),getPaymentsClientTokenCommand:ri(R8),getPdgBuyFlowCommand:BU(VH),getReportFormEndpoint:BU(hT),getSearchInVideoCommand:BU(HA),getAnswerCommand:BU(CZ),getSurveyCommand:BU(gY),getTranscriptEndpoint:BU(cn),getPostVideoPreviewEndpoint:BU(mM),decorateMessageEndpoint:BU(QT),likeEndpoint:BU(LO),liveChatActionEndpoint:BU(QH),liveChatEndpoint:BU(PA),liveChatItemContextMenuEndpoint:BU(ZR),liveChatPurchaseMessageEndpoint:BU(mf),liveChatReplayEndpoint:BU(KZ),manageLiveChatUserEndpoint:BU(Tg),
metadataUpdateCommand:BU(wY),moderateLiveChatEndpoint:BU(OJ),modifyChannelNotificationPreferenceEndpoint:BU(UJ),notificationOptOutEndpoint:BU(ug),openSuperStickerBuyFlowCommand:BU(aB),performCommentActionEndpoint:BU(FJ),playlistEditEndpoint:BU(fZ),playlistEditorEndpoint:BU(ig),recordNotificationInteractionsEndpoint:BU(bg),reelWatchEndpoint:BU(BA),refreshPanelEndpoint:BU(LZ),removeUpcomingEventReminderEndpoint:BU(eU),resolveLocationCommand:BU(q5),revealBusinessEmailCommand:BU(NV),searchEndpoint:BU(_.SeW),
sendLiveChatMessageEndpoint:BU(N5),sendLiveChatVoteEndpoint:BU(lg),setSettingEndpoint:BU(AQ),shareEntityServiceEndpoint:ri(pO),sharingProviderDataCommand:BU(yH),showEngagementPanelEndpoint:BU(AT),showMoreDrawerCommand:BU(SU),showSheetCommand:BU(pZ),showDialogCommand:BU($x),subscribeEndpoint:BU($Y),transcriptSubmitCaptionCorrectionCommand:BU(GL),undoFeedbackEndpoint:BU(JQ),unsubscribeEndpoint:BU(S8),updateBackstagePostEndpoint:BU(TY),updateCommentEndpoint:BU(uc),updateCommentReplyEndpoint:BU(Uk),updateCommentsSettingsEndpoint:BU(bc),
updateCreatorChannelInnertubeCommand:BU(qV),updateKidsBlacklistEndpoint:BU(dY),updateEngagementPanelContentCommand:BU(M5),updatePdgFeatureEnablementCommand:BU(zg),updatedMetadataEndpoint:BU(F7),validateChannelHandleCommand:BU(wl),updateChannelPageSettingsEndpoint:BU(lc),verifyAgeEndpoint:BU(tQ),watchEndpoint:ri(cf),whitelistEditEndpoint:BU(I8),ypcCancelRecurrenceEndpoint:BU(ZB),ypcCompleteTransactionEndpoint:BU(KW),ypcFixInstrumentEndpoint:BU(Qv),ypcGetCartEndpoint:BU(Pn),ypcGetOffersEndpoint:BU(mh),
ypcHandleTransactionEndpoint:ri(TL),ypcLogWalletAnalyticDataEndpoint:BU(Oj),ypcOffersEndpoint:BU(ee),ypcPauseSubscriptionCommand:BU(N1),ypcRedeemCodeEndpoint:BU(l$),ypcResumeSubscriptionCommand:BU(q1),ypcUpdateFopEndpoint:BU(Qv)},r9={},awW=(r9.GET_ACCOUNT_MENU=BU(gl),r9.GET_NOTIFICATIONS_MENU=BU(AK7),r9.GET_NOTIFICATIONS_INBOX=BU(vA),r9.GET_UNSEEN_NOTIFICATION_COUNT=BU(oB),r9.GET_USER_MENTION_SUGGESTIONS=BU(aY),r9.LOAD_GUIDE=BU(LrW),r9.SUBMIT_FEEDBACK=BU(Ek),r9),je={},TJr=(je.CONTINUATION_REQUEST_TYPE_BROWSE=
BU(Ok),je.CONTINUATION_REQUEST_TYPE_SEARCH=BU(X7),je.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=BU(y3),je.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=BU(Hf),je.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=BU(vf),je.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=BU(nO),je.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=BU(jU),je.CONTINUATION_REQUEST_TYPE_GET_PANEL=BU(sJ),je),Ojd={player:ri(cf),watchNext:BU(Xy)},e1u={player:ri(cf),reelItemWatch:BU(BA),reelWatchSequence:BU(rY)},NJd={watchEndpoint:ri(IY)},lwu=
{commandEndpointMap:mtH,signalEndpointMap:awW,continuationEndpointMap:TJr,watchEndpointMap:Ojd,reelWatchEndpointMap:e1u,streamingEndpointMap:NJd};var qoF,wl0,F_G;_.n$0=((wl0=(qoF=window).matchMedia)==null?void 0:(F_G=wl0.call(qoF,"(prefers-reduced-motion: reduce)"))==null?void 0:F_G.matches)||!document.startViewTransition;var v$j={},Dtu={disableAllTransitions:_.n$0,ignoredErrors:(v$j.DOCUMENT_HIDDEN=!0,v$j.WINDOW_SIZE_CHANGED=!0,v$j.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,v$j),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var o$G=_.I3("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),uaG=function(G){var c=this;this.viewTransitionCoordinator=
G;this.disableTransitionsForUltraHigh=_.v("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=Ut0();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.oa("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.v("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.v("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.v("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.oa("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.v("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.dJ.addJob(function(){c.registerRootElement();if(c.isAnyTransitionEnabled){var I=
_.DH("web_page_transition_exit_ms"),R=_.DH("web_page_transition_wait_ms"),Z=_.DH("web_page_transition_enter_fast_ms"),K=_.DH("web_page_transition_watch_exit_ms"),m=_.DH("web_page_transition_watch_wait_ms"),a=_.DH("web_page_transition_watch_enter_ms"),O=_.DH("web_page_transition_watch_next_exit_ms"),N=_.DH("web_page_transition_watch_next_wait_ms"),q=_.DH("web_page_transition_watch_next_enter_fast_ms"),w=_.DH("web_page_transition_enter_ms"),F=_.DH("web_page_transition_watch_next_enter_ms");c.enableFasterTransitions&&
c.isUltraHighBucketDevice&&(w=Z,F=q);isNaN(I)&&isNaN(R)&&isNaN(w)&&isNaN(K)&&isNaN(m)&&isNaN(a)&&isNaN(O)&&isNaN(N)&&isNaN(F)||!(I=tBb(o$G,I,R,w,K,m,a,O,N,F))||(R=document.createElement("style"),R.textContent=bT0(I),document.head.appendChild(R))}},8)},Ut0=function(){var G=_.Rq.navigator.deviceMemory;
return G>=8||G===void 0?!0:!1};
uaG.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var G={};this.viewTransitionCoordinator.registerElement(document.documentElement,(G.slide="root-slide",G["lockup-to-watch"]="root-lockup-to-watch",G["learning-journey"]="root-learning-journey",G))}};
_.cRV=function(G,c){G.isLockupToWatchTransitionEnabled&&G.isLockupThumbnailRegistrationEnabled&&(G.registeredLockupThumbnail?G.lockupThumbnailRegisteredFromWatchEndpoint?_.Ck(new _.iW("Lockup thumbnail registration order is incorrect.")):_.Ck(new _.iW("Lockup thumbnail already registered.")):(G.registeredLockupThumbnail=c,_.bj7(G,c)))};
_.bj7=function(G,c){var I={};G.viewTransitionCoordinator.registerElement(c,(I["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",I),!0)};
uaG[FA]=[Oh7];var DvU={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var Uvp=["videoPrimaryInfoRenderer","title"],uQB=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var kcj;kcj=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.szW=_.W(function(G){G=_.YW(G,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var c=G.data,I=G.playlistData,R=G.expanded,Z=G.onExpandClick,K=G.isReadyToResume,m=function(){var q;return!((q=I())==null||!q.contents)},a=function(){var q=I();
return q&&q.totalVideos&&q.currentIndex!==void 0?q.currentIndex+1+" / "+q.totalVideos:""};
G=_.Nx(function(){_.x8(_.wH().resolve(_.tA));return!1});
var O=_.Nx(function(){m()&&Z&&Z()}),N={};
return _.e("ytd-miniplayer-info-bar",{class:_.O3("ytdMiniplayerInfoBarHost",(N.ytdMiniplayerInfoBarHasPlaylistData=m,N)),"on:click":O},_.e("div",{class:"ytdMiniplayerInfoBarContent"},_.e("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":G},_.e(_.ul,{text:function(){var q=c();var w=I();if(w==null?0:w.contents){var F;q=(F=_.ZiT(w))==null?void 0:F.title}else q=q==null?void 0:q.miniplayerTitle;return knb(q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.e("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.e(_.l,{cond:K,then:function(){return _.e(S5K,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:kcj})}}),_.e("h1",null,_.e(_.ul,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var q=c();var w=I();q=K()?{simpleText:_.mJ("CONTINUE_WATCHING",void 0,"Continue watching")}:(w==null?0:w.contents)?w.titleText:q==null?void 0:q.miniplayerSubtitle;return knb(q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.e(_.l,{cond:function(){return!!a()&&!K()},
then:function(){return _.e("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.e("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.e("span",null,a))}}))),_.e(_.l,{cond:m,
then:function(){return _.e("div",{class:"ytdMiniplayerInfoBarExpand"},_.e(_.fx,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(q){Z&&(Z(),q.stopPropagation())}}},
iconName:function(){return R()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ag");var L_g;L_g=_.W(function(G){return _.e("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.e(_.fx,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:G.onTap}},
iconName:"yt-icons:close"}))},"Bg");
_.A$g=_.W(function(G){G=_.YW(G,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var c=G.size,I=G.playabilityStatus,R=G.isDisabled,Z=G.isPictureInPicture,K=_.mX("div");G=_.Q(_.ks(void 0,void 0,"w4RAU"));var m=G.next().value,a=G.next().value;G=_.o1(_.T$);var O=!1,N=function(){return c().height<=0};
_.xs(function(){var n=c(),U=N(),k=m();k&&!U&&k.setInternalSize(n.width,n.height)},"BHFc2b");
_.xc(function(){var n,U,k;return _.T(function(p){if(p.nextAddress==1){n=_.wH().resolve(_.tA);U=n.getPlayerElement();if(!n.isMiniplayerActive()||!U||!K.value)return p.return();U.appendTo(K.value);return p.yield(U.getPlayerPromise(),2)}k=p.yieldResult;Z()||k.setSizeStyle(!1,!0);a(k);_.Vp(p)})});
_.ty(function(){q()});
_.xs(function(){var n=m();if(n)if(R()){var U=n.getPlayerState();(O=U===-1||U===1||U===3)&&n.pauseVideo()}else q()},"Invykd");
var q=function(){if(O){O=!1;var n;(n=m())==null||n.playVideo()}},w=_.Nx(function(){_.x8(_.wH().resolve(_.tA))}),F={};
return _.e("ytd-miniplayer-player-container",{class:_.O3("ytdMiniplayerPlayerContainerHost",(F.ytdMiniplayerPlayerContainerHidden=N,F.ytdMiniplayerPlayerContainerHostShortsPip=G,F)),style:_.wi({width:function(){return c().width+"px"},
height:function(){return c().height+"px"}})},_.e("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:K}),_.e(_.l,{cond:function(){return!!I()&&!_.xAU(I())},
then:function(){return _.e(IT1,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var n;return((n=I())==null?void 0:n.errorScreen)||null},
status:function(){var n;return((n=I())==null?void 0:n.status)||null}})}}),_.e(_.l,{cond:R,
then:function(){return _.e("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":w},_.e(L_g,{onTap:function(){_.wH().resolve(_.tA).close()}}))}}))},"Fg");_.$t0=_.W(function(G){var c=G.toastData;var I=_.mX("ytd-miniplayer-toast");G=_.Q(_.Gz(function(){return!!c()}));
var R=G.next().value,Z=G.next().value;G=_.Q(_.ks(!1,void 0,"BvfNQe"));var K=G.next().value,m=G.next().value,a=function(){var q;return _.HY((q=c())==null?void 0:q.data.title)};
_.tI(function(){_.qe.requestAvailability();c()&&Z(!1)});
var O,N;_.xs(function(){R()&&(_.Xl(I.value,"iron-announce",{text:c().label+" "+a()}),O&&_.dJ.cancelJob(O),O=_.dJ.addLowPriorityJob(function(){m(!0)},2500))},"no1dZb");
_.xs(function(){K()&&(N&&_.dJ.cancelJob(N),N=_.dJ.addLowPriorityJob(function(){Z(!1);m(!1)},300))},"G3yPNe");
G={};return _.e("ytd-miniplayer-toast",{el:I,class:_.O3("ytdMiniplayerToastHost",(G.ytdMiniplayerToastOpening=function(){return R()},G.ytdMiniplayerToastClosing=function(){return K()},G))},_.e(_.l,{cond:function(){var q;
return(q=c())==null?void 0:q.data},
then:function(q){return _.e(ft0,{className:"ytdMiniplayerToastThumbnail",data:q,width:78})}}),_.e("div",{class:"ytdMiniplayerToastInfo"},_.e("div",{class:"ytdMiniplayerToastLabel"},function(){var q;
return(q=c())==null?void 0:q.label}),_.e("div",{class:"ytdMiniplayerToastTitle"},a)))},"Ig");var Eir;var izg=null;var plg=_.W(function(G){var c=G.progressState;var I=G.multiMarkersPlayerBarRenderer;var R=G.progressBarWidth;var Z=function(){return jVi(I())},K=function(){return heq(c())},m=function(){return R()*(c().playedTime/c().videoDuration)};
return _.e("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.e(_.fh,{each:Z},function(a,O){return _.e(SoW,{modifiedProps:K,chapters:Z,index:O,playedProgressWidth:m,backgroundGradientPosition:function(){var N=K(),q=Z(),w=O(),F=m();return(N.playedTime-jX(_.D(q[w],rG)))/N.playedTime*F}})}))},"Jg"),SoW=_.W(function(G){var c=G.modifiedProps;
var I=G.chapters;var R=G.index;var Z=G.playedProgressWidth;var K=G.backgroundGradientPosition;G={};G=_.O3("ytChapteredProgressBarChapteredPlayerBarChapter",(G.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return m().isScrubbing},G.ytChapteredProgressBarHoveredMacroMarker=function(){return m().scrubberHovering},G.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return m().videoPosition==="seen"},G));
var m=function(){return dvf(c(),I(),R())},a=function(){var O=c();
var N=I(),q=R();if(dvf(O,N,q).videoPosition!=="active")O=0;else{var w=jX(_.D(N[q],rG));O=(O.playedTime-w)/((jX(_.D(N[q+1],rG))||O.videoDuration)-w)}return O};
return _.e("div",{class:G,style:_.wi({width:function(){var O=c(),N=I(),q=R(),w=_.D(N[q],rG);N=_.D(N[q+1],rG);return(N?jX(N)-jX(w):O.videoDuration-jX(w))/O.videoDuration*100+"%"},
"background-color":function(){a:{var O=m();switch(O.videoPosition){case "pending":O=O.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":O=O.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:O=""}}return O},
"background-size":function(){return(CCC(m())?Z():"")+"px"},
"background-position-x":function(){return(CCC(m())?K():"")+"px"}})},_.e("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var O=c(),N=I(),q=R();if(dvf(O,N,q).videoPosition==="seen")var w=0;else w=jX(_.D(N[q],rG)),N=jX(_.D(N[q+1],rG))||O.videoDuration,O=O.videoDuration*O.percentLoaded,w=N<=O?1:w>=O?0:(O-w)/(N-w);return"width: "+w*100+"%"}}),_.e("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.wi({width:function(){return a()*100+"%"},
"background-size":function(){return(CCC(m(),a())?Z():"")+"px"},
"background-position-x":function(){return(CCC(m(),a())?K():"")+"px"}})}))},"Kg");var MvW=function(G,c){c=c===void 0?XeB:c;var I,R=[],Z,K=!1;return function(){var m=_.Hy.apply(0,arguments);if(K&&I===this&&c(m,R))return Z;Z=G.apply(this,m);K=!0;I=this;R=m;return Z}}(function(G){var c=G.heatMarkers,I=G.minHeightDp===void 0?0:G.minHeightDp,R=G.maxHeightDp===void 0?60:G.maxHeightDp;
var Z=Z===void 0?!1:Z;var K=1E3/c.length;G=[];G.push({x:0,y:100});for(var m=0;m<c.length;m++){var a=void 0,O=((a=_.D(c[m],cJ0))==null?void 0:a.heatMarkerIntensityScoreNormalized)||0;a=(m+.5)*K;O=100-_.Be(O*100,I/321*100,R/321*100);m!==0||Z||G.push({x:0,y:O});G.push({x:a,y:O});m===c.length-1&&G.push({x:1E3,y:O})}G.push({x:1E3,y:100});c="";for(I=0;I<G.length;I++)Z=G[I],I===0?Z="M "+Z.x.toFixed(1)+","+Z.y.toFixed(1):(R=rPB(G[I-1],G[I-2],Z),K=rPB(Z,G[I-1],G[I+1],!0),Z=" C "+(R.x.toFixed(1)+","+R.y.toFixed(1)+
" "+K.x.toFixed(1)+","+K.y.toFixed(1)+" "+Z.x.toFixed(1)+","+Z.y.toFixed(1))),c+=Z;return c});var Vv1=_.W(function(G){var c=G.progressBarProps;var I=G.config;var R={};G=_.O3("ytHeatSeekerHost",(R.ytHeatSeekerHighContrast=G.highContrast,R));var Z=function(){return SRA(I().chapterData)};
return _.e("yt-progress-bar-heatseeker",{class:G,style:function(){var K;return"height: 320px; display: "+(c().isDragging&&((K=Z())==null?0:K.heatMarkers)?"block":"none")}},_.e(_.l,{cond:Z,
then:function(K){return _.e(_.l,{cond:function(){return K().heatMarkers},
then:function(){return _.e("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.e("path",{d:function(){return MvW(K())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Lg");var z11=_.W(function(G){var c=G.progressBarProps;var I=G.config;G={};G=_.O3("ytProgressBarLineProgressBarLine",(G.ytProgressBarLineProgressBarLineRounded=function(){return I().rounded},G.ytProgressBarLineProgressBarLineBottomInset=function(){return I().position===2},G));
return _.e("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.e("div",{class:G},_.e("div",{class:"ytProgressBarLineProgressBarBackground"}),_.e("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+c().percentLoaded*100+"%"}}),_.e("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var R=c();return"width: "+(R.videoDuration?_.Be(R.hoveredTime/R.videoDuration,0,1):0)*100+"%"}}),_.e("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+LQp(c())*100+"%"}})))},"Mg");
z11.idomCompat=!0;var E$0=_.W(function(G){var c=G.progressBarProps;var I=G.playheadData;var R=G.interpolateDotPosition;var Z=G.hidePlayhead;G={};var K=_.O3("ytProgressBarPlayheadProgressBarPlayheadDot",(G.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return c().isDragging},G.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!c().isDragging&&Z()},G));
return _.e("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.wi({"margin-left":function(){return AvO(c())*100+"%"},
transform:function(){return"translateX(-"+(R()?AvO(c())*12:6)+"px)"}})},_.e(_.l,{cond:function(){var m;
return(m=_.gD(I)())==null?void 0:m.playheadImage},
then:function(m){var a={};return _.e("div",{class:_.O3("ytProgressBarPlayheadProgressBarPlayheadCustom",(a.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return c().isDragging},a.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!c().isDragging&&Z()},a)),
style:_.wi({"transform-origin":function(){return(R()?AvO(c())*20:10)+"px center"}})},_.e(_.yc,{data:m,
alt:"","aria-hidden":"true"}))},
else:function(){return _.e("div",{class:K,style:_.wi({"transform-origin":function(){return(R()?AvO(c())*12:6)+"px center"}})})}}))},"Ng");
E$0.idomCompat=!0;var tr=function(G,c,I,R,Z,K){this.getProgressBarRect=G;this.updateProgressBarRect=c;this.getFilmstripYPosition=I;this.setFineScrubbingDraggedTime=R;this.updateFilmStripDraggedYDistance=Z;this.resetFilmStripYOffset=K;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.qx(this.onThrottledSeek,100,this)},J$G=function(G,c,I){return function(R){G.handleClick(R,c(),I())}},fw$=function(G,c){return function(I){W_u(G,
I,iju(I),c())}},BJ1=function(G,c){return function(I){W_u(G,I,{x:I.clientX,
y:I.clientY},c())}},jzu=function(G,c,I){return function(R){var Z=c(),K=I();
r$H(G,R,iju(R),Z,K,!0);if(K.onTouchMove)K.onTouchMove(Z)}},tvd=function(G,c,I){return function(R){xt0(G,R,c(),I())}},h1H=function(G,c){return function(){G.handleMouseLeave(c())}},Crr=function(G,c,I){return function(){var R=c(),Z=I();
dtW(G,R,Z);if(Z.onTouchEnd)Z.onTouchEnd(R)}},Hjd=function(G,c,I){return function(){var R=c(),Z=I();
dtW(G,R,Z);if(Z.onTouchEnd)Z.onTouchEnd(R)}},Xld=function(G,c,I){return function(){dtW(G,c(),I())}},y$$=function(G){return function(c){if(c.keyCode===39||c.keyCode===38){var I,R;
(I=G())==null||(R=I.playerApi)==null||R.seekBy(5,void 0,void 0,72)}else if(c.keyCode===37||c.keyCode===40){var Z,K;(Z=G())==null||(K=Z.playerApi)==null||K.seekBy(-5,void 0,void 0,71)}}},g$W=function(G,c,I){return function(R){!I().disableScrubbing&&G.startPosition&&xt0(G,R,c(),I())}},You=function(G,c,I){return function(){if(!I().disableScrubbing)if(G.startPosition){var R=c(),Z=I();
dtW(G,c(),I());if(Z.onTouchEnd)Z.onTouchEnd(R)}else c().setState({isDragging:!1})}},iju=function(G){G=G.touches[0];
return{x:G.clientX,y:G.clientY}},xt0=function(G,c,I,R){if(c.buttons!==1){if(c.movementX||c.movementY)c.preventDefault(),c.stopPropagation(),G=GaG(G,I,c.clientX),I.setState({isHovering:!0,
hoveredTime:G*I.videoDuration})}else cgj(I),r$H(G,c,{x:c.clientX,y:c.clientY},I,R,!1)};
tr.prototype.handleMouseLeave=function(G){cgj(G)};
var cgj=function(G){G.isHovering&&G.setState({isHovering:!1,hoveredTime:0})},W_u=function(G,c,I,R){G.startPosition||(G.startPosition=I,G.updateProgressBarRect(),G.controlsWereVisibleBeforeDragging=R.controlsVisible,c.stopPropagation(),_.v("medium_progress_bar_modification")||c.preventDefault())},r$H=function(G,c,I,R,Z,K){if(G.startPosition)if(K&&Z.isInlinePlayback&&G.startPosition&&!G.hasDraggedTheMinimumDistance&&Math.abs(I.y-G.startPosition.y)>Math.abs(I.x-G.startPosition.x))dtW(G,R,Z);
else if(c.preventDefault(),c.stopPropagation(),R.videoDuration&&(G.startPosition&&!G.hasDraggedTheMinimumDistance&&(G.hasDraggedTheMinimumDistance=Math.abs(I.x-G.startPosition.x)>=1),Z.enableFineScrubbing&&(G.startPosition&&(G.isDraggedForFineScrubbing=-(I.y-G.startPosition.y)>=60),!G.startPosition||I.y>=G.startPosition.y||(R.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:HzU(R.draggedTime,R,Z.chapterData)}),G.setFineScrubbingDraggedTime(R.draggedTime),G.updateFilmStripDraggedYDistance(G.startPosition.y,
I.y,R))),G.hasDraggedTheMinimumDistance)){c=GaG(G,R,I.x);if(G.isDraggedForFineScrubbing){var m;(m=R.playerApi)==null||m.pauseVideo();R.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:R.draggedTime,filmStripXDistance:HzU(c*R.videoDuration,R,Z.chapterData)})}Z.enableFineScrubbing&&(!Z.enableFineScrubbing||G.getFilmstripYPosition(R)<68)||R.setState({draggedTime:c*R.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:G.controlsWereVisibleBeforeDragging});var a;(a=
Z.cancelAutohideControlsFn)==null||a.call(Z)}},dtW=function(G,c,I){var R=I.enableFineScrubbing&&c.fineScrubbingActiveState!=="off";
if(c.isDragging||R){R={isDragging:!1,playedTime:c.draggedTime,controlsVisible:G.controlsWereVisibleBeforeDragging};I.enableFineScrubbing&&c.fineScrubbingActiveState!=="on"&&(G.resetFilmStripYOffset(),R.fineScrubbingActiveState="off");var Z=Z===void 0?izg:Z;var K=_.k0(0);if(K&&Z){var m=Math.round(c.playedTime*1E3),a=Math.round(c.draggedTime*1E3);m>2147483647||a>2147483647||_.xD(K,Z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(m),endMediaTimeMs:String(a),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}c.setState(R);
G.seekThrottle.fire(c.draggedTime,c,7);_.v("mweb_new_progress_bar_play_on_seek")&&G.resumeVideo(c);I.unmuteOnSeek&&(I=c.playerApi,c.volumeMuted&&(I==null||I.unMute()))}else c.setState({controlsVisible:!c.controlsVisible}),(K=I.triggerAutohideControlsAfterDelayFn)==null||K.call(I);G.startPosition=null;G.hasDraggedTheMinimumDistance=!1;G.isDraggedForFineScrubbing=!1;G.controlsWereVisibleBeforeDragging=!1};
tr.prototype.handleClick=function(G,c,I){this.updateProgressBarRect();G.stopPropagation();G=GaG(this,c,G.clientX)*c.videoDuration;c.setState({playedTime:G});if(c.playerState!==2){var R;(R=I.triggerAutohideControlsAfterDelayFn)==null||R.call(I)}this.seekThrottle.fire(G,c,7)};
var GaG=function(G,c,I){G=G.getProgressBarRect(c);return _.Be(0,(I-G.left)/G.width,1)};
tr.prototype.resumeVideo=function(G){if(G.draggedTime<G.videoDuration){var c;(c=G.playerApi)==null||c.playVideo()}};
tr.prototype.onThrottledSeek=function(G,c,I){if(c=c.playerApi){var R;if((R=c.getVideoData())==null?0:R.isLive)R=this.getProgressState(c),G+=(R==null?void 0:R.seekableStart)||0;c.seekTo(G,void 0,void 0,void 0,I)}};
tr.prototype.getProgressState=function(G){var c=G==null?void 0:G.getPresentingPlayerType();return G==null?void 0:G.getProgressState(c)};var Zkr,R_0,Kpd,Qx0,I6u,mb0,a6d,Tju,OkG;Zkr=_.W(function(G){var c=G.progressBarProps;var I=G.config;var R=G.progressBarWidthPx;var Z=G.chapterData;var K=G3q(c,function(){return I().isShortsPage}),m=function(){return!c().isHovering&&!I().isShortsPage};
G={};var a=_.O3("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(G.ytPlayerStoryboardHostMwebShorts=function(){return I().isShortsPage&&!1},G));
return _.e("yt-player-storyboard",null,_.e(_.l,{cond:function(){return c().isDragging||c().isHovering},
then:function(){return _.e(_.l,{cond:K,then:function(O){return _.e(_.l,{cond:m,then:function(){return _.e("div",{class:a,"aria-hidden":"true"},_.e(I6u,{props:c,config:I,isBigboard:!0,chapterData:Z}))},
else:function(){return _.e(R_0,{props:c,frame:O,config:I,progressBarWidthPx:R,chapterData:Z})}})}})}}))},"Og");
_.PBW=_.W(function(G){var c=G.progressBarProps;var I=G3q(c,G.isShortsPage);return _.e("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.e(_.l,{cond:function(){return c().isDragging||c().isHovering},
then:function(){return _.e(_.l,{cond:I,then:function(R){return _.e(Kpd,{frame:R,props:c,isBigboard:!0})}})}}))},"Pg");
R_0=_.W(function(G){var c=G.props;var I=G.frame;var R=G.config;var Z=G.progressBarWidthPx;G=G.chapterData;var K={};K=_.O3("ytPlayerStoryboardHost",(K.ytPlayerStoryboardHostMwebShorts=function(){return R().isShortsPage&&!1},K.ytPlayerStoryboardHostInlinePlayer=function(){return R().isInlinePlayer},K.ytPlayerStoryboardHostFadeIn=function(){return R().useFadeInAnimation},K));
return _.e("div",{class:K,"aria-hidden":"true",style:function(){var m=c(),a=XGr(I()),O=Z();m=yvg(m)/m.videoDuration;var N=O*m,q=a/2+6;a=O-(a/2+6);return"left: "+(N<=q?q/O*100:N>=a?a/O*100:m*100)+"%"}},_.e(_.l,{cond:function(){var m=c();
return!(R().isShortsPage&&m.videoDuration<15)},
then:function(){return _.e(Kpd,{frame:I,props:c,isBigboard:!1})}}),_.e(I6u,{props:c,
config:R,isBigboard:!1,chapterData:G}))},"Qg");
Kpd=_.W(function(G){var c=G.frame;var I=G.props;var R=G.isBigboard;var Z=function(){var a,O;return(O=(a=I().playerApi)==null?void 0:a.getVideoContentRect())!=null?O:{width:0,height:0}},K=function(){return XGr(c())},m=function(){var a=c();
return a?a.height/a.rows:0};
G={};G=_.O3((G.ytPlayerStoryboardBigboardImageWrapper=R,G.ytPlayerStoryboardStoryboardImageWrapper=function(){return!R()},G));
return _.e("div",{class:G,style:function(){return"width: "+(R()?Z().width:K())+"px; height: "+(R()?Z().height:m())+"px;"}},_.e(Qx0,{frame:c,
storyboardWidth:K,storyboardHeight:m,storyboardScale:function(){return(R()?Z().width:K())/K()}}))},"Rg");
Qx0=_.W(function(G){var c=G.frame;var I=G.storyboardWidth;var R=G.storyboardHeight;var Z=G.storyboardScale;var K=function(){var m=c().row,a=c().column,O=I(),N=R(),q=Z();return{left:-a*O*q,top:-m*N*q}};
return _.e("img",{src:function(){return c().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+K().left+"px; top: "+K().top+"px; width: "+c().width*Z()+"px; height: "+c().height*Z()+"px;"}})},"Sg");
I6u=_.W(function(G){var c=G.props;var I=G.config;var R=G.isBigboard;var Z=G.chapterData;G={};G=_.O3("ytPlayerStoryboardMetadata",(G.ytPlayerStoryboardMetadataBigboard=R,G));return _.e("div",{class:G},_.e(_.l,{cond:R,then:function(){return _.e(_.FG,null,_.e(mb0,{props:c,config:I}),_.e(_.l,{cond:function(){a:{var K=c();var m=I(),a=Z(),O;if((m==null?0:m.activeChapter)&&((O=_.D(m==null?void 0:m.activeChapter,rG))==null?0:O.title))K=!0;else{m=_.Q(pGi(a));for(m=m.next();!m.done;m=m.next()){K=(m=_.D(m.value,
RzK))&&giA(K,m);break a}K=!1}}return K},
then:function(){return _.e(a6d,{props:c,config:I,isBigboard:!0,chapterData:Z})}}))},
else:function(){return _.e(_.FG,null,_.e(a6d,{props:c,config:I,isBigboard:!0,chapterData:Z}),_.e(mb0,{props:c,config:I}))}}))},"Tg");
mb0=_.W(function(G){var c=G.props;var I=G.config;G={};G=_.O3("ytPlayerStoryboardTimestamp",(G.ytPlayerStoryboardTimestampShorts=function(){return I().isShortsPage},G.ytPlayerStoryboardTimestampIsHovering=function(){return c().isHovering||I().isShortsPage&&!0},G));
return _.e("div",{class:G},_.e(_.FG,null,function(){return _.YR0(yvg(c()))}))},"Ug");
a6d=_.W(function(G){var c=G.props;var I=G.config;var R=G.isBigboard;var Z=G.chapterData;G={};R=_.O3("ytPlayerStoryboardTitle",(G.ytPlayerStoryboardTitleBigboard=R,G));return _.e("div",{class:R},_.e(_.l,{cond:function(){return!I().isShortsPage},
then:function(){return _.e(Tju,{props:c,activeChapter:function(){return I().activeChapter},
chapterData:Z})}}))},"Vg");
Tju=_.W(function(G){var c=G.props;var I=G.activeChapter;var R=G.chapterData;return _.e(_.FG,null,_.e(_.fh,{each:function(){return pGi(R())},
keyBy:"INDEX"},function(Z){return _.e(_.FG,null,_.e(_.l,{cond:function(){return _.D(Z(),RzK)&&giA(c(),_.D(Z(),RzK))},
then:function(){return _.e(OkG,{timedMarker:function(){return _.D(Z(),RzK)}})}}))}),_.e(_.l,{cond:function(){var Z;
return I()&&((Z=_.D(I(),rG))==null?void 0:Z.title)},
then:function(Z){return _.e(_.ul,{text:Z,noPreWrap:!0})}}))},"Wg");
OkG=_.W(function(G){var c=G.timedMarker;return _.e(_.FG,null,_.e("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.e(_.F6,{icon:function(){return c().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.e(_.ul,{text:function(){return c().label},
noPreWrap:!0}))},"Xg");_.e_d=_.W(function(G){var c=G.progressBarProps;var I=G.playheadData;var R=G.config;G=_.mX("yt-progress-bar");var Z=_.mX("div"),K=_.mX("div"),m=_.Q(_.ks({width:0,left:0},void 0,"XjZjde")),a=m.next().value,O=m.next().value,N=function(){K.value&&O(K.value.getBoundingClientRect())},q=function(){a().width<=0&&N();
return a()};
_.lx("resize",N);var w=new tr(q,function(){},function(){return 0},function(){},function(){},function(){}),F=function(){return c()};
m=_.Q(_.ks(!1,void 0,"uZlOJc"));var n=m.next().value,U=m.next().value;m=_.Nx(function(){U(!0);R().position===2?setTimeout(function(){N()},100):N()});
var k=_.Nx(function(){U(!1);h1H(w,F)()}),p=_.Nx(function(iT){(R().doSeekOnClick||_.v("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&iT instanceof PointerEvent&&iT.pointerType==="mouse")&&J$G(w,F,R)(iT);
return!1}),M=_.Nx(function(iT){fw$(w,F)(iT);
return!1}),z=_.Nx(function(iT){BJ1(w,F)(iT);
return!1}),t=_.Nx(function(iT){jzu(w,F,R)(iT);
return!1}),x=_.Nx(function(iT){tvd(w,F,R)(iT);
return!1}),C=_.Nx(function(){Crr(w,F,R)();
return!1}),H=_.Nx(function(){Hjd(w,F,R)();
return!1}),g=_.Nx(function(){Xld(w,F,R)();
return!1}),QO=_.Nx(function(iT){y$$(F)(iT);
return!1});
_.lx("mousemove",g$W(w,F,R));_.lx("mouseup",You(w,F,R));_.tI(function(){fFf(Z.value);U(!1);N();You(w,F,R)()});
var T8={};T8=_.O3("ytPlayerProgressBarHost",function(){return R().className},(T8.ytPlayerProgressBarHostReadOnly=function(){return R().disableScrubbing},T8.ytPlayerProgressBarHostHidden=function(){return R().hideProgressBar&&!n()},T8.ytPlayerProgressBarHostLowerPlayer=function(){return R().position===0},T8.ytPlayerProgressBarHostBottomEdge=function(){return R().position===1},T8.ytPlayerProgressBarHostBottomInset=function(){return R().position===2},T8.ytPlayerProgressBarHostCustom=function(){return R().position===
3},T8));
var kp={},FB=_.O3("ytPlayerProgressBarBackground",(kp.ytPlayerProgressBarBackgroundHide=function(){return R().position===2&&!n()&&!c().isDragging},kp));
kp={};kp=_.O3("ytPlayerProgressBarDragContainer",(kp.ytPlayerProgressBarDragContainerBottomEdge=function(){return R().position===1},kp));
var oq={};oq=_.O3("ytPlayerProgressBarProgressBar",(oq.ytPlayerProgressBarProgressBarInset=function(){return R().position===2},oq.ytPlayerProgressBarProgressBarInsetMinimized=function(){return R().position===2&&!n()&&!c().isDragging},oq));
var Wr=function(){return Math.floor(LQp(c())*100)};
return _.e("yt-progress-bar",{el:G,class:T8},_.e(_.l,{cond:function(){return R().position===2},
then:function(){return _.e("div",{class:FB})}}),_.e("div",{el:Z,
"on:click":p,"on:touchstart":M,"on:touchmove":t,"on:mouseenter":m,"on:mousedown":z,"on:mouseleave":k,"on:mousemove":x,"on:mouseup":H,"on:touchend":C,"on:touchcancel":g,"on:keydown":QO,class:kp,role:"slider","aria-valuenow":Wr,"aria-valuetext":function(){return Wr()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return c().videoDuration},
draggable:_.v("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.mJ("SEEK_SLIDER")},_.e("div",{el:K,class:oq},_.e(Vv1,{progressBarProps:c,config:R,highContrast:function(){return!!R().isInlinePlayback}}),_.e(_.l,{cond:function(){return R().chapterData&&MzU(R().chapterData)},
then:function(){return _.e(plg,{progressState:c,multiMarkersPlayerBarRenderer:function(){return R().chapterData},
progressBarWidth:function(){return a().width}})},
else:function(){return _.e(z11,{progressBarProps:c,config:R})}}),_.e(E$0,{progressBarProps:c,
playheadData:I,interpolateDotPosition:function(){return R().position!==2},
hidePlayhead:function(){return R().playheadDotBehavior===1&&!n()}}))),_.e(Zkr,{progressBarProps:c,
config:function(){return{activeChapter:tzA(c(),R().chapterData),getProgressBarWidthPx:function(){return q().width},
isShortsPage:!!R().isShortsPage,isInlinePlayer:!!R().isInlinePlayback,useFadeInAnimation:!!R().isInlinePlayback}},
progressBarWidthPx:function(){return a().width},
chapterData:function(){return R().chapterData}}))},"Yg");
_.e_d.idomCompat=!0;Object.assign({},_.Vzg(),{setState:function(){},
domMeasurements:{},appApi:_.sVr(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Nj1;
_.l6u=_.W(function(){var G,c=(G=_.xX(cCg().playerApi))!=null?G:void 0;G=_.Q(_.ks(!1,void 0,"Z9NQ1b"));var I=G.next().value,R=G.next().value;G=_.Q(_.ks(!1,void 0,"HoVJXe"));var Z=G.next().value,K=G.next().value;G=_.Q(_.ks(!1,void 0,"DWCY3"));var m=G.next().value,a=G.next().value;G=_.Q(_.ks(!1,void 0,"g4C2Zd"));var O=G.next().value,N=G.next().value;G=_.Q(_.ks(0,void 0,"lmVfFb"));var q=G.next().value,w=G.next().value;G=_.Q(_.ks(0,void 0,"mFLbzb"));var F=G.next().value,n=G.next().value;G=_.Q(_.ks(!1,void 0,
"hQN4Wb"));var U=G.next().value,k=G.next().value;G=_.Q(_.ks(0,void 0,"WWU0fb"));var p=G.next().value,M=G.next().value;G=_.Q(_.ks(0,void 0,"MJ7LMd"));var z=G.next().value,t=G.next().value;G=_.Q(_.ks("",void 0,"hnomOe"));var x=G.next().value,C=G.next().value;G=_.Q(_.ks(-1,void 0,"ARe3pf"));var H=G.next().value,g=G.next().value,QO=_.SE(function(){var T8={controlsVisible:I(),isOverlayHidden:Z(),shouldWaitToHideControls:m(),isDragging:O(),isHovering:U(),videoDuration:p(),playedTime:z(),videoId:x(),draggedTime:F(),
hoveredTime:q(),playerState:H()};return Object.assign({},_.Vzg(),T8,{domMeasurements:{},setState:function(kp){kp.controlsVisible!==void 0&&R(kp.controlsVisible);kp.isOverlayHidden!==void 0&&K(kp.isOverlayHidden);kp.shouldWaitToHideControls!==void 0&&a(kp.shouldWaitToHideControls);kp.isDragging!==void 0&&N(kp.isDragging);kp.isHovering!==void 0&&k(kp.isHovering);kp.draggedTime!==void 0&&n(kp.draggedTime);kp.hoveredTime!==void 0&&w(kp.hoveredTime);kp.videoDuration!==void 0&&M(kp.videoDuration);kp.playedTime!==
void 0&&t(kp.playedTime);kp.videoId!==void 0&&C(kp.videoId);kp.playerState!==void 0&&g(kp.playerState)},
appApi:_.sVr(),playerApi:c})},void 0,"Au4PIf");
_.xc(function(){c==null||c.addEventListener("onVideoProgress",WQi(QO));c==null||c.addEventListener("onVideoDataChange",Jvr(QO));c==null||c.addEventListener("onStateChange",zeT(QO))});
_.ty(function(){if(c==null?0:c.isReady())c==null||c.removeEventListener("onVideoProgress",WQi(QO)),c==null||c.removeEventListener("onVideoDataChange",Jvr(QO)),c==null||c.removeEventListener("onStateChange",zeT(QO))});
return _.e("desktop-shorts-player-controls",null,_.e(Nj1,{playerControlsProps:QO}))},"$g");
Nj1=_.W(function(G){var c=G.playerControlsProps;return _.e("div",{class:"desktopShortsPlayerControlsHost"},_.e(_.e_d,{progressBarProps:c,config:function(){return{isShortsPage:!0,hideProgressBar:c().videoDuration<30&&c().playerState!==2&&!c().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ah");_.qfW=_.W(function(G){function c(T8){T8!==0||w()?T8>50&&(w()||!n())?(F(!1),U(!0)):T8<=50&&(w()||n())&&(F(!1),U(!1)):F(!0)}
function I(T8,kp){var FB;return _.T(function(oq){if(oq.nextAddress==1)return oq.yield(_.wP(),2);FB=oq.yieldResult;kp&&FB?(FB.unMute(!0),T8&&(Rir(T8,FB.getVolume()),p(FB.getVolume()))):FB&&(FB.mute(!0),T8&&Rir(T8,0));_.Vp(oq)})}
function R(T8){var kp,FB;return _.T(function(oq){if(oq.nextAddress==1)return oq.yield(_.wP(),2);kp=oq.yieldResult;FB=50;kp&&(FB=kp.getVolume(),kp.isMuted()?Rir(T8,0):Rir(T8,FB));p(FB);_.Vp(oq)})}
var Z=G.orientation;G=_.mX("desktop-shorts-volume-controls");var K=_.mX("button"),m=_.Op("input"),a=_.Q(_.ks(!1,void 0,"RuD0I")),O=a.next().value,N=a.next().value,q=_.Q(_.ks(!1,void 0,"YbWwwb"));a=q.next().value;q=q.next().value;var w=a,F=q;q=_.Q(_.ks(!0,void 0,"F7Esub"));a=q.next().value;q=q.next().value;var n=a,U=q;a=_.Q(_.ks(50,void 0,"QFGbod"));var k=a.next().value,p=a.next().value;a=_.SE(function(){var T8=w();return _.v("web_shorts_keyboard_enable_mute_shortcut")?T8?_.mJ("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.mJ("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):T8?_.mJ("UNMUTE_VOLUME",void 0,"Unmute"):_.mJ("MUTE_VOLUME",void 0,"Mute")},void 0,"rhQxrf");
q=_.SE(function(){var T8=w(),kp=n();return{sources:[{clientResource:{imageName:T8?_.v("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":kp?_.v("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.v("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"mluxjf");
var M=_.SE(function(){var T8=k();return w()?T8+"% volume muted":T8+"% volume"},void 0,"QaT2u"),z=_.SE(function(){return Z()==="vertical_down"},void 0,"LkJ9ac");
_.tI(function(){function T8(){N(!0)}
function kp(){N(!1)}
m&&m.value&&(m.value.addEventListener("focus",T8),m.value.addEventListener("focusout",kp),R(m.value).then(function(){c(Number(Z_q(m.value)))}));
K&&K.value&&(K.value.addEventListener("focus",T8),K.value.addEventListener("focusout",kp));_.ty(function(){var FB;m==null||(FB=m.value)==null||FB.removeEventListener("focus",T8);var oq;m==null||(oq=m.value)==null||oq.removeEventListener("focusout",kp);var Wr;K==null||(Wr=K.value)==null||Wr.removeEventListener("focus",T8);var iT;K==null||(iT=K.value)==null||iT.removeEventListener("focusout",kp)})});
var t=_.Nx(function(){if(m&&m.value){var T8=Number(Z_q(m.value));IvB(T8);p(T8);m.value.style.setProperty("--gradient-percent",T8+"%");c(T8)}return!1}),x=_.Nx(function(){m&&m.value&&(I(m.value,w()),F(!w()));
return!1}),C={},H={},g={},QO={};
return _.e("desktop-shorts-volume-controls",{"on:pointerleave":_.Nx(function(){N(!1)}),
"on:pointerenter":_.Nx(function(){N(!0)}),
class:_.O3("ytdDesktopShortsVolumeControlsHost",(C.ytdDesktopShortsVolumeControlsHostVertical=z,C.ytdDesktopShortsVolumeControlsHostModern=_.v("web_shorts_modern_controls"),C.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.v("web_shorts_modern_controls")&&O()},C)),
el:G},_.e(_.l,{cond:function(){return!z()},
then:function(){var T8={};return _.e("div",{class:_.O3("ytdDesktopShortsVolumeControlsBackgroundScrim",(T8.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=O,T8.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.v("web_shorts_modern_controls")&&O()},T8))})}}),_.e("div",{class:_.O3((H.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=z,H))},_.e("button",{"aria-label":a,
title:a,el:K,"on:click":x,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},q?_.e(_.yc,{data:q,alt:a,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.e("div",{class:_.O3("ytdDesktopShortsVolumeControlsSliderContainer",(g.ytdDesktopShortsVolumeControlsSliderContainerExpanded=O,g.ytdDesktopShortsVolumeControlsSliderContainerVertical=z,g.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=z,g.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return O()&&
z()},g))},_.e("input",{"aria-label":_.mJ("VOLUME"),
title:_.mJ("VOLUME"),el:m,"on:input":t,type:"range",class:_.O3("ytdDesktopShortsVolumeControlsNativeSlider",(QO.ytdDesktopShortsVolumeControlsNativeSliderModern=_.v("web_shorts_modern_controls"),QO)),id:"volume-input",role:"slider","aria-valuenow":k,"aria-valuetext":M,"aria-valuemin":0,"aria-valuemax":100})))},"bh");var w_0=_.W(function(G){var c=G.data;var I=G.overlayDensity;G={};return _.e("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.e(_.sN,{data:function(){return c().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(R){var Z=R.data;
return _.e(_.wE,{data:function(){return(I==null?void 0:I())===1?Object.assign({},Z(),{avatar:{avatarViewModel:Object.assign({},_.D(Z().avatar,_.B8),{avatarImageSize:"AVATAR_SIZE_M"})}}):Z()}})}}),_.e(_.sN,{data:function(){return c().avatarStackViewModel}},{avatarStackViewModel:function(R){return _.e(_.Fh,{data:R.data})}}),_.e(_.ul,{className:_.O3("ytReelChannelBarViewModelChannelName",(G.ytReelChannelBarViewModelChannelNameLarge=function(){return(I==null?void 0:I())===1},G)),
text:function(){return c().channelName},
linkInheritColor:!0,userInput:!0}),_.e("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.e(_.sN,{data:function(){return c().subscribeButtonViewModel}},{subscribeButtonViewModel:function(R){var Z=R.data;
return _.e(_.qI,{data:function(){return(I==null?void 0:I())===1?Object.assign({},Z(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Z().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Z()},
isOverlay:!1})},
buttonViewModel:_.BR})),_.e("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.e(_.sN,{data:function(){var R,Z;return(Z=_.D((R=c())==null?void 0:R.sponsorButtonViewModel,q7V))==null?void 0:Z.sponsorButton}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ch");var Fpj=_.W(function(G){var c=function(){var Z;return((Z=G.overlayDensity)==null?void 0:Z.call(G))===1},I=function(){return c()?22:16},R={};
return _.e("yt-reel-multi-format-link-view-model",{class:_.O3("ytReelMultiFormatLinkViewModelHost",(R.ytReelMultiFormatLinkViewModelHostTall=!0,R.ytReelMultiFormatLinkViewModelHostLarge=function(){return c()},R))},_.e(_.Er,{ariaLabel:function(){return G.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return G.data().command}},_.e("h3",{class:function(){return c()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.e(_.l,{cond:function(){return G.data().icon},
then:function(Z){return _.e(_.yc,{data:Z,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:I})}}),_.e(_.ul,{text:function(){return G.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"dh");
Fpj.idomCompat=!0;var n7W=_.W(function(G){var c=G.data;var I=G.overlayDensity;var R=G.extractOverlay;var Z=_.mX("yt-shorts-suggested-action-view-model");G=_.Q(_.ks(!1,void 0,"S60Hzc"));var K=G.next().value,m=G.next().value;G=_.Q(_.ks(!1,void 0,"O76chf"));var a=G.next().value,O=G.next().value,N=function(){return c().isMultiLineSa},q=_.um(bOq,function(){var g,QO;
return(QO=(g=c().toggleableContent)==null?void 0:g.entityKey)!=null?QO:""}),w=function(){var g,QO,T8;
return(T8=c().toggleableContent)!=null&&T8.entityKey?(QO=(g=q())==null?void 0:g.value)!=null?QO:!1:!1},F=function(){var g,QO,T8,kp,FB,oq,Wr,iT,z8,GV,ei;
return c().toggleableContent?w()?(g=c().toggleableContent)==null?void 0:g.toggledData:(QO=c().toggleableContent)==null?void 0:QO.untoggledData:{primaryText:(iT=(T8=c().defaultContent)==null?void 0:T8.primaryText)!=null?iT:c().text,secondaryText:(kp=c().defaultContent)==null?void 0:kp.secondaryText,onTapCommand:(z8=(FB=c().defaultContent)==null?void 0:FB.onTapCommand)!=null?z8:c().onTapCommand,icon:(GV=(oq=c().defaultContent)==null?void 0:oq.icon)!=null?GV:c().icon,image:(ei=(Wr=c().defaultContent)==
null?void 0:Wr.image)!=null?ei:c().image}},n=function(){return N()?c().trailingTapTarget:void 0},U=function(g,QO){return function(){return K()?QO:g}},k=function(){return{leadingSection:U("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(I==null?void 0:I())===1?U("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):U("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:U("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:U("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:U("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:U("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
G={};G=_.O3((G.ytShortsSuggestedActionViewModelStaticHost=function(){return!N()},G.ytShortsSuggestedActionViewModelDynamicHost=N,G.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return N()&&a()},G.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return N()&&!a()},G.ytShortsSuggestedActionViewModelExtractOverlay=function(){return R==null?void 0:R()},G));
_.tI(function(){if(N()){var g=0,QO;if((QO=c().animationParams)==null?0:QO.shouldExpand){var T8,kp;g=((kp=(T8=c().animationParams)==null?void 0:T8.expansionDelaySecs)!=null?kp:0)*1E3}var FB,oq=((FB=c().animationParams)==null?0:FB.shouldExpand)?setTimeout(function(){m(!0)},g):void 0,Wr,iT;
g=((Wr=c().animationParams)==null?0:Wr.visibilityDelaySecs)?((iT=c().animationParams)==null?NaN:iT.visibilityDelaySecs)*1E3:0;var z8=setTimeout(function(){O(!0)},g);
_.ty(function(){oq&&clearTimeout(oq);clearTimeout(z8)})}});
var p=function(g){_.r0(g,Object.assign({},{form:{element:Z.value}}))},M=_.Nx(function(){var g,QO=(g=F())==null?void 0:g.onTapCommand;
QO&&p(QO)}),z=_.Nx(function(){var g,QO;
if(g=(QO=n())==null?void 0:QO.onTapCommand)return p(g),!1}),t=_.wi({"vertical-align":"bottom",
"border-radius":function(){var g;return N()?((g=c().defaultContent)==null?0:g.isCircleImage)?"50%":"4px":"0px"},
width:function(){var g,QO,T8;return N()&&((g=c().defaultContent)==null?0:g.imageSize)?((T8=(QO=c().defaultContent)==null?void 0:QO.imageSize)!=null?T8:24)+"px":null},
height:function(){var g,QO,T8;return N()&&((g=c().defaultContent)==null?0:g.imageSize)?((T8=(QO=c().defaultContent)==null?void 0:QO.imageSize)!=null?T8:24)+"px":null}}),x=function(){return N()?k().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},C=function(){return N()?k().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},H={};
return _.e("yt-shorts-suggested-action-view-model",{class:G,el:Z},_.e("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.e("button",{class:_.O3(function(){return N()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var g;
return(g=c().useFullRoundedBorder)!=null&&g?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!n()&&N()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":N()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var g;
return(g=c().disableFixedHeight)!=null&&g?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(H.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(I==null?void 0:I())===1},H.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return R==null?void 0:R()},H)),
"on:click":M},_.e(_.Jx,{model:{color:4}}),_.e("div",{class:_.O3(function(){return N()?k().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.e(_.l,{cond:function(){var g;
return(g=F())==null?void 0:g.image},
then:function(g){return _.e(_.yc,{data:g,alt:"",className:C,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:t})}}),_.e(_.l,{cond:function(){var g,QO;
return(g=F())==null?void 0:(QO=g.icon)==null?void 0:QO.iconType},
then:function(g){return _.e(_.F6,{icon:g,active:w,className:x})}})),_.e("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.e(_.l,{cond:function(){var g;
return(g=F())==null?void 0:g.primaryText},
then:function(g){var QO={};return _.e("div",{class:_.O3("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(QO.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(I==null?void 0:I())===1},QO))},_.e(_.ul,{text:g}))}}),_.e(_.l,{cond:function(){var g;
return(g=F())==null?void 0:g.secondaryText},
then:function(g){return _.e("div",{class:function(){return k().secondaryText()}},_.e(_.ul,{text:g}))}}))),_.e(_.l,{cond:n,
then:function(g){return _.e("div",{class:_.O3(function(){return k().trailingSection()},function(){var QO,T8;
return(R==null?void 0:R())&&((T8=(QO=k()).trailingSectionExtractOverlay)==null?void 0:T8.call(QO))||""}),
"aria-label":function(){var QO;return(QO=g().a11yLabel)!=null?QO:""},
"on:click":z,role:"button",tabindex:0},_.e(_.Jx,{model:{color:4}}),_.e(_.F6,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"eh");var v7G=_.W(function(G){var c=G.data;var I=G.overlayDensity;var R=_.mX("yt-shorts-video-title-view-model");G=_.Nx(function(m){if(_.EN(_.zf(m),R.value,["A".toString()]))return!1;(m=c().truncatedTextOnTapCommand)&&_.r0(m);return!1});
var Z={},K={};return _.e("yt-shorts-video-title-view-model",{el:R,class:_.O3("ytShortsVideoTitleViewModelHost",(Z.ytShortsVideoTitleViewModelHostClickable=function(){return!!c().truncatedTextOnTapCommand},Z)),
"on:click":G},_.e("h2",{class:_.O3("ytShortsVideoTitleViewModelShortsVideoTitle",(K.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(I==null?void 0:I())===1},K.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.v("enable_shorts_declutter_ui")},K))},_.e(_.ul,{text:function(){return c().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(I==null?void 0:I())===1}})))},"fh");_.Db$=_.W(function(G){var c=G.data;var I=G.overlayDensity;var R=G.extractOverlay;var Z=function(){return(I==null?void 0:I())===1};
return _.e("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.e(_.sN,{data:function(){return c().metadataItems}},{badgeViewModel:function(K){K=K.data;
return _.e("div",{class:_.O3(function(){return Z()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.e(_.Jp,{data:K}))},
playerDisclosureViewModel:function(K){K=K.data;return _.e("div",{class:_.O3(function(){return Z()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.e(_.aJd,{data:K,
extractOverlay:R}))},
shortsSuggestedActionViewModel:function(K){K=K.data;return _.e("div",{class:_.O3(function(){return Z()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.e(n7W,{data:K,
overlayDensity:I,extractOverlay:R}))},
reelChannelBarViewModel:function(K){K=K.data;var m={};return _.e("div",{class:_.O3("ytReelMetapanelViewModelMetapanelItem",(m.ytReelMetapanelViewModelExpansive=function(){return Z()},m))},_.e(w_0,{data:K,
overlayDensity:I}))},
reelMultiFormatLinkViewModel:function(K){K=K.data;var m={};return _.e("div",{class:_.O3("ytReelMetapanelViewModelMetapanelItem",(m.ytReelMetapanelViewModelExpansive=function(){return Z()},m))},_.e(Fpj,{data:K,
overlayDensity:I}))},
shortsVideoTitleViewModel:function(K){K=K.data;var m={};return _.e("div",{class:_.O3("ytReelMetapanelViewModelMetapanelItem",(m.ytReelMetapanelViewModelExpansive=function(){return Z()},m))},_.e(v7G,{data:K,
overlayDensity:I}))},
reelSoundMetadataViewModel:function(K){K=K.data;var m={};return _.e("div",{class:_.O3("ytReelMetapanelViewModelMetapanelItem",(m.ytReelMetapanelViewModelExpansive=function(){return Z()},m))},_.e(_.nc$,{data:K,
overlayDensity:I}))},
toggleButtonViewModel:function(K){K=K.data;var m={};return _.e("div",{class:_.O3("ytReelMetapanelViewModelMetapanelItem",(m.ytReelMetapanelViewModelExpansive=function(){return Z()},m))},_.e(_.m8,{data:K}))}}))},"gh");var o7j=_.W(function(G){var c=_.YW(G,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),I=c.size,R=c.onTap,Z=c.disabled,K=c.tooltipText;return _.e("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.e(_.fx,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:I(),disabled:Z(),tooltipText:K(),onTap:R}},
iconName:G.iconType}))},"hh"),UbW=_.W(function(G){function c(q){q.stopPropagation();
q.code==="ArrowUp"?(q.preventDefault(),mPp(a.value)):q.code==="ArrowDown"?(q.preventDefault(),avr(a.value)):q.code==="KeyM"?Kap():(q.code==="KeyK"||q.code==="Space")&&PAC(O())}
var I=_.YW(G,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});G=I.previousButtonDisabled;var R=I.nextButtonDisabled,Z=I.data,K=I.playabilityStatus,m=I.previewThumbnail,a=_.mX("ytd-shorts-miniplayer-overlay"),O=_.o1(_.rxp),N;_.xc(function(){(N=_.dx(a.value))&&N.addEventListener("keydown",c)});
_.ty(function(){var q;(q=N)==null||q.removeEventListener("keydown",c)});
I=function(){var q,w;var F=_.D((q=Z())==null?void 0:(w=q.reelPlayerOverlayRenderer)==null?void 0:w.buttonBar,OfN);if(F){var n;q=Object.assign({},F,{buttonViewModels:(n=F.buttonViewModels)==null?void 0:n.filter(Qyr)})}else q=void 0;return q};
return _.e("ytd-shorts-miniplayer-overlay",{el:a,class:"ytdShortsMiniplayerOverlayHost"},_.e("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.wi({"background-image":function(){var q=m();return q?'url("'+_.KQ(q.thumbnails)+'")':""}})}),_.e("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.e("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.e(o7j,{iconType:function(){var q=O();
return q===2||q===-1||q===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){PAC(O())},
tooltipText:function(){var q=O();return q===1||q===3?_.mJ("PLAYER_LABEL_PAUSE"):_.mJ("PLAYER_LABEL_PLAY")}}),_.e(_.qfW,{orientation:"horizontal_right"})),_.e("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.e(o7j,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:G,onTap:function(){mPp(a.value)},
tooltipText:_.mJ("PREVIOUS_VIDEO_LABEL")}),_.e(o7j,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:R,onTap:function(){avr(a.value)},
tooltipText:_.mJ("NEXT_VIDEO_LABEL")}),_.v("web_shorts_pip_like_button")?_.e(_.l,{cond:I,then:function(q){return _.e("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.e(_.axB,{data:q,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.e("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.e(_.l,{cond:function(){var q,w;
return _.D((q=Z())==null?void 0:(w=q.reelPlayerOverlayRenderer)==null?void 0:w.metapanel,e7V)},
then:function(q){return _.e("div",{class:_.O3("ytdShortsMiniplayerOverlayInteractive")},_.e(_.Db$,{data:q}))}})),_.e("div",{class:_.O3("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var q;return!((q=Z())==null||!q.adsOverlay)||K()&&!jGr(K())}},_.e("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.e(_.l6u,null)))),_.e(_.l,{cond:function(){var q=Z(),w,F;
q=_.D(q==null?void 0:(w=q.adsOverlay)==null?void 0:(F=w.fulfillmentContent)==null?void 0:F.fulfilledLayout,dX9);return _.D(q==null?void 0:q.renderingContent,Yhk)},
then:function(q){return _.e("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.e(lxB,{data:q}))}}))},"jh");var TO0=_.W(function(){var G=_.Q(_.ks(new _.SB(NaN,NaN),void 0,"hq9Bjf")),c=G.next().value,I=G.next().value;G=_.Q(_.ks(!1,void 0,"Mu3aZc"));var R=G.next().value,Z=G.next().value,K=_.Q(_.ks(!1,void 0,"LGtoFb"));G=K.next().value;var m=K.next().value,a=_.wH().resolve(_.tA).miniplayerPropSignalMap[0],O=a.data,N=a.shortsData,q=a.nextButtonDisabled,w=a.shortsPreviewThumbnail,F=a.previousButtonDisabled,n=a.externalPlaylistData;K=a.toastData;var U=a.playabilityStatus,k=a.isDisabled,p=a.playerVe,M=a.closeVe;
a=_.o1(_.T$);_.QF("yt-pip-window-resized",function(C){I(C)});
_.QF("yt-activate-pip-miniplayer",function(){return _.T(function(C){m(!0);_.Vp(C)})});
var z=function(){var C;return!((C=n())==null||!C.contents)&&R()},t=function(){var C=c(),H=!!O(),g=z();
C=C.clone();H&&(C.height-=76);g&&(C.height-=285);return C},x=function(){Z(!R())};
_.xs(function(){var C=p(),H=_.k0(11),g=_.u6(11);H&&g&&C&&(_.Wd(H,g,C),g=M())&&(_.i8(H,C,[g]),_.Bd(H,[g]))},"fHkmfb");
return _.e("ytd-pip-container",{class:"ytdPipContainerHost"},_.e(_.l,{cond:G,then:function(){return _.e(_.A$g,{isDisabled:k,playabilityStatus:U,size:t,isPictureInPicture:!0})}}),_.e(_.l,{cond:O,
then:function(){return _.e(_.szW,{data:O,expanded:R,onExpandClick:x,playlistData:n})}}),_.e(_.l,{cond:z,
then:function(){return _.e("div",{class:"ytdPipContainerPlaylistPanel"},_.e(_.zfd,{data:n,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.e(_.l,{cond:a,
then:function(){return _.e(UbW,{data:N,nextButtonDisabled:q,previousButtonDisabled:F,playabilityStatus:U,previewThumbnail:w})}}),_.e("div",{class:"ytdPipContainerToast"},_.e(_.$t0,{toastData:K})))},"lh");var hr=function(G,c,I){var R=this;this.pipController=G;this.JSC$19193_clientRoot=c;this.JSC$19193_pageRequestService=I;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=oiT();this.watchPipEnabled=_.v("web_watch_pip");this.shortsPipEnabled=_.v("web_shorts_pip");this.JSC$19193_watchWhileEnabled=_.v("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;_.RM(_.y4(),Jx8,function(Z){R.isSingleOptionSurveyActive=Z});
this.JSC$19193_onPlayerPlayVideo=this.JSC$19193_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);_.KY(_.RD.getInstance(),this.miniplayerServiceActionMap,this.JSC$19193_clientRoot);G.pictureInPictureSupported()&&_.x7("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},VZe,Lp$,z_1,$bu,E7u,Jgd,ReT;
hr.prototype.handleMediaSessionPipActivation=function(){var G=this,c;return _.T(function(I){_.ck().mediaSessionPipActivation=!0;c=_.wH().resolve(_.I9);return c.isOnWatch()&&G.watchPipEnabled?(_.ck().watchPipActivation=!0,_.u4r(G,c.data),I.jumpTo(0)):c.isOnShorts()&&G.shortsPipEnabled?(_.ck().shortsPipActivation=!0,_.bkd(G),I.jumpTo(0)):G.isMiniplayerActive()&&G.watchPipEnabled&&!G.watchWhileMode?I.yield(kad(G),0):I.jumpTo(0)})};
var kad=function(G){var c,I,R,Z;return _.T(function(K){if(K.nextAddress==1)return c=!G.miniplayerToPipMode,I=G.playerElement,R=G.miniplayerData,Z=G.watchResponse,K.yield(G.deactivate(),2);if(K.nextAddress!=3)return c?(_.ck().mediaSessionPipActivation=!0,_.ck().watchPipActivation=!0):_.ck().miniplayerButtonActivation=!0,K.yield(G.activate(I,R,Z),3);G.miniplayerToPipMode=c;_.Vp(K)})};
hr.prototype.onDownloadedVideoDeleted=function(G){var c,I=_.D((c=this.miniplayerData)==null?void 0:c.watchEndpoint,_.fR),R,Z;I&&((R=this.watchResponse)==null?void 0:(Z=R.playerResponse)==null?void 0:Z.offlineState)!==void 0&&(c=I.videoId)&&G&&c===G&&this.close()};
hr.prototype.onShowMiniplayerCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F;return _.T(function(n){switch(n.nextAddress){case 1:return I=_.D(G,ytT),Z=(R=I)==null?void 0:R.miniplayerCommand,K=_.D(Z,_.fR),Z&&K&&!c.active?n.yield(_.TI.getInstance(),2):n.return();case 2:return m=n.yieldResult,n.yield((a=m)==null?void 0:a.get("yt-miniplayer-shown-video-id"),3);case 3:O=n.yieldResult;N=K.videoId;if(!N||O===N)return n.return();q=_.wH().resolve(_.I9);if(q.isOnWatch())return _.Ck(Error("Uj")),n.return();
w={channelItem:{externalId:btoa(N)}};c.readyToResumeVe=_.qj(121253,void 0,void 0,w);_.ck().showMiniplayerCommandActivation=!0;return n.yield(_.Zzk(c,Z,!0),4);case 4:return c.active&&(_.d9(c,{readyToResumeVe:c.readyToResumeVe,isReadyToResume:!0}),c.isReadyToResume=!0),n.yield((F=m)==null?void 0:F.set("yt-miniplayer-shown-video-id",K.videoId),5);case 5:c.readyToResumeVe=void 0,_.Vp(n)}})};
hr.prototype.init=function(G){this.miniplayerEl?_.Ck(new _.iW("MiniplayerService already initialized.")):this.miniplayerEl=G};
hr.prototype.isInitialized=function(){var G=!!this.miniplayerEl;G||_.Ck(new _.iW("MiniplayerService used before initialized."));return G};
_.u4r=function(G,c){if(G.isInitialized()){var I=_.bzA(c.response,c.playerResponse),R=_.wH().resolve(_.I9).getPlayerFromWatch();_.ck().currentEndpoint=I.watchEndpoint||null;G.activate(R,I,c)}};
_.bkd=function(G){if(G.isInitialized()){var c=_.wH().resolve(_.I9).getPlayerFromShorts();G.activate(c)}};
VZe=function(G,c){var I;(I=!G.isInitialized())||(I=_.wH().resolve(_.I9).isOnWatch()&&G.watchPipMode,I=!(G.isMiniplayerActive()&&(_.ck().userActivation||_.ck().lockupActivation||I)));if(I)return!1;sx7(G,c)?_.x8(G):ReT(G,c);return G.watchPipMode?!_.wH().resolve(_.I9).isOnWatch():!0};
hr.prototype.isMiniplayerActive=function(){return this.active};
var sx7=function(G,c){var I;c=(I=_.D(c,_.fR))==null?void 0:I.videoId;var R,Z;G=(Z=_.D((R=G.miniplayerData)==null?void 0:R.watchEndpoint,_.fR))==null?void 0:Z.videoId;return c!=null&&c===G};
hr.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Xl(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ym(this.miniplayerEl,"yt-navigate-home-action"))};
_.Zzk=function(G,c,I,R){I=I===void 0?!1:I;var Z,K,m;return _.T(function(a){switch(a.nextAddress){case 1:if(G.active){a.jumpTo(2);break}Z=_.wH().resolve(_.I9);if(m=(K=G.playerElement)!=null?K:Z.getPlayerFromWatch()){a.jumpTo(3);break}return a.yield(_.wH().resolve(_.a9),4);case 4:m=Z.getPlayerFromWatch();case 3:if(!m){_.Ck(Error("Wj"));a.jumpTo(2);break}return a.yield(G.activate(m,R),2);case 2:return G.active?a.yield(ReT(G,c,I),7):a.return();case 7:setTimeout(function(){var O;(O=G.getPlayerElement())==
null||O.focusOnPlayer()},100),_.Vp(a)}})};
hr.prototype.activate=function(G,c,I){var R=this,Z,K,m,a,O,N,q,w;return _.T(function(F){switch(F.nextAddress){case 1:if(!R.isInitialized())return F.return();if(!G)return _.Ck(Error("Wj")),F.return();if(Lp$(R))return w3k(),F.return();Z=_.ck().mediaSessionPipActivation;K=_.ck().shortsPipActivation;m=_.ck().watchPipActivation;O=(a=_.ck().watchWhileActivation)||m;N=m||K;if(!R.pictureInPictureEnabled()||!N){F.jumpTo(2);break}return F.yield(Agu(R,Z),3);case 3:if(!F.yieldResult)return _.Ck(Error("Vj")),
w3k(),F.return();case 2:return R.setActive(!0),R.watchResponse=I,R.playerElement=G,R.updateMiniplayerData(c),F.yield($bu(R,G),4);case 4:if(!R.active)return _.Ck(new _.iW("miniplayer deactivated during activation")),R.removePlayerListeners(),F.return();Sf$(R);w3k();R.JSC$19193_watchWhileEnabled&&_.p_7(R,a);R.pictureInPictureEnabled()&&R.shortsPipEnabled&&(R.shortsPipMode=K,_.y4().dispatch(Kke(R.shortsPipMode)));R.pictureInPictureEnabled()&&R.watchPipEnabled&&(R.watchPipMode=m,_.kjC(R.handleMediaSessionPipActivation));
R.player&&(q=R.player.getPlayerState(),w=q===1,_.y4().dispatch(qv0(q)),_.gq(R.miniplayerEl,"yt-miniplayer-play-state-changed",[w]),_.ck().isVideoPlaying=w);_.gq(R.miniplayerEl,"yt-miniplayer-endpoint-changed");Mcu(R);_.VcW(R);return R.shortsPipMode||R.watchPipMode?F.yield(_.Y0(R.miniplayerEl,"yt-activate-pip-miniplayer"),6):F.yield(_.Y0(R.miniplayerEl,"yt-activate-miniplayer",[O]),6);case 6:R.watchResponse&&b$q(R.getScreenLayer()),z_1(R),E7u(R,!0),setTimeout(function(){var n;(n=R.getPlayerElement())==
null||n.focusOnPlayer()},100),_.Vp(F)}})};
hr.prototype.updateMiniplayerData=function(G){this.miniplayerData=G;_.d9(this,{data:G})};
_.VcW=function(G){var c,I,R=((c=G.miniplayerData)==null?void 0:(I=c.miniplayerRenderer)==null?void 0:I.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";c=G.watchWhileMode||G.watchPipMode?R&&!_.wH().resolve(_.I9).isOnWatch():R;_.d9(G,{isDisabled:c});var Z,K;I=_.D((Z=G.miniplayerData)==null?void 0:(K=Z.miniplayerRenderer)==null?void 0:K.minimizedEndpoint,_.Ih);c&&I&&_.wH().resolve(_.O6).openSheet({openPopupActionCommand:{openPopupAction:I}},G.miniplayerEl)};
Lp$=function(G){if(_.FtT()||G.isMiniplayerActive())return!0;var c=_.ck().watchPipActivation||_.ck().watchWhileActivation;return _.wH().resolve(_.I9).isOnWatch()&&!c?(_.Ck(new _.iW("miniplayer activated on watch page")),!0):_.ck().watchWhileActivation?G.userDeactivatedWatchWhile||!!document.pictureInPictureElement||umA():!1};
z_1=function(G){if(G.watchResponse&&!Jgd(G)){var c,I=(c=G.watchResponse.playerResponse)==null?void 0:c.trackingParams;I&&(_.d9(G,{expandVe:_.qj(35989),closeVe:_.qj(34699),readyToResumeCloseVe:_.qj(131070),repositionVe:_.qj(226204),resizeVe:_.qj(226205)}),_.d9(G,{playerVe:_.kC(I)}))}};
$bu=function(G,c){return _.T(function(I){if(I.nextAddress==1)return c.preparePlayer(),I.yield(c.getPlayerPromise(),2);G.player=I.yieldResult;G.player&&(G.player.addEventListener("onPlayVideo",G.JSC$19193_onPlayerPlayVideo),G.player.addEventListener("onCloseMiniplayer",G.onPlayerCloseMiniplayer),G.player.addEventListener("onExpandMiniplayer",G.onPlayerExpandMiniplayer),G.player.addEventListener("onStateChange",G.onPlayerStateChange));_.Vp(I)})};
hr.prototype.JSC$19193_onPlayerPlayVideo=function(G){var c=G.sessionData&&"autonav"in G.sessionData,I;G.sessionData&&G.sessionData.itct&&(I=G.sessionData.itct);var R=G.watchEndpoint;c=R&&c?_.ter(R,I):_.YD(G.videoId,G.listId||void 0,I);G.sessionData&&_.x0(_.D(c.commandMetadata,_.Pd).url,G.sessionData);ReT(this,c)};
hr.prototype.onPlayerExpandMiniplayer=function(){_.x8(this)};
hr.prototype.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
hr.prototype.onPlayerStateChange=function(){if(this.player){var G=this.player.getPlayerState(),c=G===1;_.y4().dispatch(qv0(G));_.y4().dispatch(_.n_B(G));_.gq(this.miniplayerEl,"yt-miniplayer-play-state-changed",[c]);_.ck().isVideoPlaying=c;if(G===0){c=!_.Jt.getInstance().isAutoplaySetExplicitly();var I,R,Z,K,m,a,O=(I=this.watchResponse.response)==null?void 0:(R=I.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(K=Z.autoplay)==null?void 0:(m=K.autoplay)==null?void 0:(a=m.autoplayExplicitChoiceDialogRenderer)==
null?void 0:a.confirmDialogRenderer;c&&O&&this.player.setAutonavState(1)}G===0&&this.watchWhileMode&&this.deactivate()}};
var Sf$=function(G){var c=_.wH().resolve(_.u1);c.addEventListener("yt-navigate",_.lO(G,G.onPlaylistNavigate));c.addEventListener("yt-playlist-data-updated",_.lO(G,G.JSC$19193_onPlaylistDataUpdated));G.JSC$19193_onPlaylistDataUpdated()};
hr.prototype.onPlaylistNavigate=function(G,c){var I=this,R,Z,K,m,a,O,N;return _.T(function(q){if(q.nextAddress==1){if(!_.D(c.endpoint,_.fR))return q.return();_.ck().currentEndpoint=c.endpoint;_.gq(I.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.wH().resolve(_.I9).isOnWatch()&&(I.watchWhileMode||I.watchPipMode))return q.return();G.stopPropagation();(K=(Z=_.D((R=c.endpoint)==null?void 0:R.commandMetadata,_.Pd))==null?void 0:Z.url)&&c.tempData&&!_.rx.isEmpty(c.tempData)&&_.x0(K,c.tempData);m={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};a=new nRN(function(){return I.getPlayerElement()},m,{layer:I.getScreenLayer()});
O=function(w){a.processChunk({endpoint:c.endpoint,data:w})};
WpH(I);I.miniplayerFetchRequest=iku(I,c.endpoint,O);_.s9(q,2);return q.yield(I.miniplayerFetchRequest,4)}if(q.nextAddress!=2)return N=q.yieldResult,f6j(I,N),_.Pl(q,0);_.M3(q);_.Vp(q)})};
hr.prototype.JSC$19193_onPlaylistDataUpdated=function(){var G=_.wH().resolve(_.u1).getPlaylistData();this.hasPlaylistData=!!G;_.d9(this,{externalPlaylistData:G||{}})};
hr.prototype.close=function(G){if(this.isInitialized())if(G){if(!((this.watchWhileMode||this.watchPipMode)&&_.wH().resolve(_.I9).isOnWatch()||this.shortsPipMode)){var c;(c=this.getPlayerElement())==null||c.stop()}this.deactivate()}else _.Ah().closeMiniplayer(this.miniplayerEl)};
hr.prototype.deactivate=function(G){var c=this,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1){if(!c.isInitialized()||!c.active)return m.return();c.setActive(!1);WpH(c);(I=!!G&&sx7(c,G))&&c.isSingleOptionSurveyActive&&_.ym(c.miniplayerEl,"yt-show-watch-page-survey",[c.isSingleOptionSurveyActive]);return m.yield(BjG(c),2)}if(m.nextAddress!=3){E7u(c,!1);c.isReadyToResume=!1;c.watchResponse=void 0;c.updateMiniplayerData(void 0);c.shortsPipMode&&(c.shortsPipMode=!1,_.y4().dispatch(Kke(c.shortsPipMode)),
HtG(c.pipController),(R=c.player)==null||R.setInternalSize(NaN,NaN));c.watchPipMode&&(c.watchPipMode=!1,HtG(c.pipController));(Z=c.watchWhileMode)&&_.p_7(c,!1);c.removePlayerListeners();var a=_.wH().resolve(_.u1);a.removeEventListener("yt-navigate",_.lO(c,c.onPlaylistNavigate));a.removeEventListener("yt-playlist-data-updated",_.lO(c,c.JSC$19193_onPlaylistDataUpdated));_.ck().currentEndpoint=null;_.gq(c.miniplayerEl,"yt-miniplayer-endpoint-changed");c.playerElement=null;w3k();return c.shortsPipMode||
c.watchPipMode?m.jumpTo(3):m.yield(_.Y0(c.miniplayerEl,"yt-deactivate-miniplayer",[I,Z]),3)}(K=c.player)==null||K.setInternalSize(NaN,NaN);c.player=null;_.Vp(m)})};
var BjG=function(G){var c;return _.T(function(I){c=_.wH().resolve(_.I9);return G.shortsPipMode?I.yield(c.movePlayerToShorts(G.playerElement),0):I.yield(c.movePlayerToWatch(G.playerElement),0)})};
hr.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19193_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
hr.prototype.setActive=function(G){this.active=G;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"]);_.y4().dispatch(_.R6({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.p_7=function(G,c){G.watchWhileMode=c;_.d9(G,{watchWhile:c})};
E7u=function(G,c){if(!Jgd(G))if(G.shortsPipMode||G.watchPipMode){var I;(I=G.player)==null||I.setDocumentPictureInPicture(c)}else{var R;(R=G.player)==null||R.setMinimized(c)}};
Jgd=function(G){return G.watchWhileMode&&_.v("kevlar_watch_while_counterfactual")};
_.x8=function(G){var c;return _.T(function(I){switch(I.nextAddress){case 1:if(!G.isInitialized())return I.return();_.s9(I,2);return I.yield(G.miniplayerFetchRequest,4);case 4:_.Pl(I,3);break;case 2:_.M3(I);case 3:G.watchResponse&&G.miniplayerData&&G.miniplayerData.watchEndpoint?(c={url:G.watchResponse.url,endpoint:G.miniplayerData.watchEndpoint,data:G.watchResponse,miniplayer:!0},_.Xl(G.miniplayerEl,"yt-navigate-cache",c)):G.miniplayerData&&G.miniplayerData.watchEndpoint&&_.Xl(G.miniplayerEl,"yt-navigate",
{endpoint:G.miniplayerData.watchEndpoint}),_.Vp(I)}})};
ReT=function(G,c,I){var R,Z,K,m;return _.T(function(a){if(a.nextAddress==1){if(sx7(G,c))return a.return();_.ck().currentEndpoint=c;_.gq(G.miniplayerEl,"yt-miniplayer-endpoint-changed");_.gq(G.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.ck().isVideoPlaying=!1;R={clientParams:{miniplayer:!0,autoSaveToQueue:!I}};Z=new nRN(function(){return G.getPlayerElement()},R,{layer:G.getScreenLayer(),
parentLayer:0},void 0,G.readyToResumeVe);K=function(O){var N,q,w=Object.assign({},(N=O.playerResponse)==null?void 0:(q=N.playerConfig)==null?void 0:q.playbackStartConfig,{startPaused:!0}),F;I&&((F=O.playerResponse)==null?0:F.playerConfig)&&(O.playerResponse.playerConfig.playbackStartConfig=w);Z.processChunk({endpoint:c,data:O})};
WpH(G);G.miniplayerFetchRequest=iku(G,c,K);_.s9(a,2);return a.yield(G.miniplayerFetchRequest,4)}if(a.nextAddress!=2)return m=a.yieldResult,f6j(G,m),_.Pl(a,0);_.M3(a);_.Vp(a)})};
hr.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var WpH=function(G){G.miniplayerFetchRequest&&(G.miniplayerFetchRequest.cancel&&G.miniplayerFetchRequest.cancel("Active request obsolete"),G.miniplayerFetchRequest=null)},iku=function(G,c,I){var R,Z=(R=_.D(c.commandMetadata,_.Pd))==null?void 0:R.url,K;
R=!Z||_.Rs("disable_miniplayer_tempdata")?{}:(K=K4U(Z))!=null?K:{};return X0(G.JSC$19193_pageRequestService,c,R,window.location.href,"watch",function(m,a){I(a)},function(m){return m!==G.miniplayerFetchRequest})},f6j=function(G,c){var I;
_.T(function(R){if(!c)return R.return();G.watchResponse=c;z_1(G);Mcu(G);I=_.bzA(c.response,c.playerResponse);if(G.isMiniplayerActive()){c.response&&(G.playerElement.watchNextData=c.response);var Z=_.rx.getValueByKeys.apply(_.rx,[c].concat(_.jn(AS2)));_.rx.getValueByKeys.apply(_.rx,[c].concat(_.jn(Vfe)))&&Z&&_.wH().resolve(_.u1).setAutoplayRenderer(Z);if(Z)if(_.v("kevlar_is_pupi_enabled")){var K,m,a,O,N,q=((K=c.response)==null?0:(m=K.playerOverlays)==null?0:(a=m.playerOverlayRenderer)==null?0:(O=a.autonavToggle)==
null?0:(N=O.autoplaySwitchButtonRenderer)==null?0:N.enabled)?2:1;_.Jt.getInstance().setState(q,!1,!1)}else K=nOC()?2:1,(q=G.player)==null||q.setAutonavState(K);G.updateMiniplayerData(I);_.VcW(G)}_.Vp(R)})},Mcu=function(G){var c,I,R=(c=G.watchResponse)==null?void 0:(I=c.playerResponse)==null?void 0:I.playabilityStatus,Z;
c=R==null?void 0:(Z=R.miniplayer)==null?void 0:Z.miniplayerRenderer;(c==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&c.minimizedEndpoint&&_.Gs(G.miniplayerEl,[c.minimizedEndpoint]);_.d9(G,{playabilityStatus:R})};
hr.prototype.openToast=function(G,c){_.d9(this,{toastData:{data:G,label:c}})};
_.d9=function(G,c){(0,G.miniplayerPropSignalMap[1])(c)};
hr.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var G;return this.playerElement?this.playerElement:(G=_.Q1(this.miniplayerEl).querySelector("#player-container"))==null?void 0:G.firstElementChild};
hr.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Agu=function(G,c){c=c===void 0?!1:c;var I,R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1){if(!G.pictureInPictureSupported()||!eiA()&&!c)return O.return(!1);I=rgG(G);R=I.width;Z=I.height;return O.yield(G.pipController.openWindow({width:R,height:Z}),2)}K=O.yieldResult;m=G.pipController.getWindow();if(!m||!K)return O.return(!1);m.document.body.style.overflow="hidden";a=O_b(m);XXj(G.pipController,function(){jxW(G);a()});
return O.return(!0)})},rgG=function(G){var c=_.ck().shortsPipActivation,I,R;
G=c?.5625:(R=(I=G.player)==null?void 0:I.getVideoAspectRatio())!=null?R:16/9;I=Math.min(window.innerWidth,window.innerHeight)/2;c=c?0:76;return G>1?new _.SB(I,c+I/G):new _.SB(I*G,c+I)},jxW=function(G){var c;
_.T(function(I){c=_.wH().resolve(_.I9);return c.isOnWatch()&&G.watchPipMode||c.isOnShorts()&&G.shortsPipMode?I.yield(G.deactivate(),0):G.miniplayerToPipMode?I.yield(kad(G),0):G.watchPipMode?I.yield(_.x8(G),0):I.jumpTo(0)})};
hr.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Nh.Object.defineProperties(hr.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
hr[FA]=[yyH,AnB,_.MB];var xb$="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(" "),
tcd="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),h_H="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
dbW="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var CBW=function(G,c,I){_.JK.call(this);this.store=G;this.panelController=c;this.pageContentExtractor=I;this.isInitialized=!1};
_.u(CBW,_.JK);
CBW.prototype.init=function(G){var c=this;this.isInitialized||(this.isInitialized=!0,this.environment=G!=null?G:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.Ce.currentPageSubTypeSelector(this.store.getState()),G=_.RM(this.store,_.Ce.currentPageSubTypeSelector,function(I){a:if(_.Hku(c))switch(I){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var R=!0;break a;default:R=!1}else R=!1;R&&c.panelController.hidePanel({identifier:"PAai_companion"});
c.pageSubtype!==I&&(c.pageSubtype=I)}),this.addOnDisposeCallback(G))};
_.mSg=function(G,c){if(_.Hku(G))switch(c){case "watch":var I,R;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(I=_.Fc())==null?void 0:(R=I.getVideoData())==null?void 0:R.video_id};case "search":var Z,K,m;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(K=(Z=G.pageContentExtractor)==null?void 0:VEF(Z))!=null?K:[],entityId:(m=(new URLSearchParams(window.location.search)).get("search_query"))!=null?m:void 0};case "companion-canvas":var a,O;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(O=(a=
G.pageContentExtractor)==null?void 0:VEF(a))!=null?O:[]};default:var N,q;G={videoIds:(q=(N=G.pageContentExtractor)==null?void 0:VEF(N))!=null?q:[]};return _.v("enable_ai_companion_default_page_context")?G:void 0}};
_.Hku=function(G){return G.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
CBW[FA]=[_.Ni,_.Tl,_.qR(zqd)];var X_W=_.W(function(G){return _.e("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.e(_.pr,{text:function(){return G.data().text||""},
wrapCodeBlocks:G.shouldWrapCodeBlock}))},"nh");_.ygd=_.W(function(G){return _.e("yt-ai-companion-attachment-view-model",{el:_.YC(_.im(function(){return G.data().rendererContext})),
class:_.O3("ytAiCompanionAttachmentViewModelHost",G.className)},_.e("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.e(_.l,{cond:function(){return G.data().title},
then:function(c){return _.e("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return c().content}},_.e(_.ul,{text:c}))}}),_.e(_.l,{cond:function(){return _.dP(G.data().trailingTitleIcon)},
then:function(c){return _.e("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.e(_.yc,{data:c,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.e(_.l,{cond:function(){return G.data().description},
then:function(c){return _.e("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.e(_.ul,{text:c}))}}),_.e(_.l,{cond:function(){return G.data().bottomItem},
then:function(c){return _.e("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.e(_.sN,{data:c},{tableViewModel:tYe}))}}))},"oh");_.g7H=_.W(function(G){return _.e("yt-channel-attribution-view-model",{class:_.O3("ytChannelAttributionViewModelHost",G.className)},_.e("div",{class:"ytChannelAttributionViewModelUpper"},_.e(_.sN,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:_.wE}),_.e("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.e(_.ul,{text:function(){return G.data().title}}))),_.e("div",{class:"ytChannelAttributionViewModelBottom"},_.e(_.ul,{text:function(){return G.data().subtitle}})))},"ph");var Yfd=_.W(function(G){var c=_.Q(_.ks(!1,void 0,"MFRKRb")),I=c.next().value,R=c.next().value,Z=function(){return G.data().activeRenderer},K=function(){return G.data().inactiveRenderer};
return _.e("yt-channel-disclosure-view-model",{"on:mouseleave":_.Nx(function(){R(!1)}),
"on:mouseover":_.Nx(function(){R(!0)}),
class:_.O3("ytChannelDisclosureViewModelHost",G.className)},_.e(_.l,{cond:function(){return I()},
then:function(){return _.e(_.sN,{data:Z},{channelAttributionViewModel:_.g7H})},
else:function(){return _.e(_.sN,{data:K},{decoratedAvatarViewModel:_.wE})}}))},"qh");var GP0=null;var ca1={},Iq$=(ca1.initialized={priority:10,callback:function(G){var c=_.wH();c.addProvider({provide:J$i,useClass:gc1});c.addProvider({provide:_.yI7,useFactory:function(){return new W_0}});
c.addProvider({provide:S6,useValue:_.H1("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});c.addProvider({provide:F3r,useValue:5184E6});c.addProvider({provide:rsd,useValue:_.E_()});c.addProvider({provide:lmG,useClass:AbA});c.addProvider({provide:SS,useClass:SS});c.addProvider({provide:_.a9,useFactory:function(){return PSK.promise}});
c.addProvider({provide:_.mWB,useFactory:function(){return _.QcV.promise}});
c.addProvider({provide:f8q,useValue:function(){var O;return((O=_.ZA())==null?void 0:O.getPlayer())||null}});
var I={};c.addProvider((I.provide=_.Fr,I.useFactory=function(O,N){return function(){return aDr(O,N)}},I[FA]=[S6,
F3r],I));I={};c.addProvider((I.provide=_.dQ,I.useClass=pD$,I[FA]=[S6,F3r],I));I={};c.addProvider((I.provide=_.ACr,I.useClass=E9r,I[FA]=[_.dQ],I));c.addProvider({provide:om,useFactory:_.y4});c.addProvider({provide:NB,useFactory:_.y4});c.addProvider({provide:uq1,useFactory:_.y4});c.addProvider({provide:_.FTN,useFactory:function(){var O;return((O=_.ZA())==null?void 0:O.getPlayer())||null}});
c.addProvider({provide:Qnj,useFactory:_.y4});c.addProvider({provide:_.Ni,useFactory:_.y4});c.addProvider({provide:Yg,useValue:_.eC});c.addProvider({provide:Hhd,useClass:cir});c.addProvider({provide:Wzr,useClass:J_F});c.addProvider({provide:R8,useClass:R8});c.addProvider({provide:cf,useClass:cf});c.addProvider({provide:Xy,useClass:Xy});c.addProvider({provide:IY,useClass:IY});c.addProvider({provide:TL,useClass:TL});c.addProvider({provide:hQ,useClass:hQ});c.addProvider({provide:pO,useClass:pO});c.addProvider({provide:_.GY,
useValue:lwu});I={};c.addProvider((I.provide=ILg,I.useFactory=function(O){return O.watchEndpointMap||{}},I[FA]=[_.GY],I));
I={};c.addProvider((I.provide=RYd,I.useFactory=function(O){return O.reelWatchEndpointMap||{}},I[FA]=[_.GY],I));
c.addProvider({provide:_.PQ,useFactory:_.DP});c.addProvider({provide:qu,useFactory:_.OC});I={};c.addProvider((I.provide=TdO,I.useFactory=function(O){return function(N){var q={automatedLogEventSource:5};q=q===void 0?{}:q;var w,F,n=(F=_.D((w=N.endpoint)==null?void 0:w.commandMetadata,_.Pd))==null?void 0:F.rootVe;if(n){var U,k;if(w=N.previousCsn||((k=_.D((U=N.endpoint)==null?void 0:U.commandMetadata,S7B))==null?void 0:k.parentCsn)){var p=p===void 0?{}:p;if(w!==_.k0(p.layer)||n!==nni(p.layer))u3T(w,p.cttAuthInfo,
p.layer||0),wag(w,p.layer||0),U=p.layer||0,_.Ch(FZi(U===void 0?0:U),n);q.parentCsn=w}N.endpoint&&w?GxN(O,N.endpoint,q):_.dt(O,n,void 0,q);var M;((M=N.response)==null?0:M.trackingParams)&&O.graftServerVe(N.response.trackingParams);var z;((z=N.playerResponse)==null?0:z.trackingParams)&&O.graftServerVe(N.playerResponse.trackingParams);var t;((t=N.reelWatchSequenceResponse)==null?0:t.trackingParams)&&O.graftServerVe(N.reelWatchSequenceResponse.trackingParams)}}},I[FA]=[_.PQ],I));
I={};c.addProvider((I.provide=kyG,I.useClass=btW,I[FA]=[Yg,_.Ni],I));I={};c.addProvider((I.provide=Ar,I.useClass=Ar,I[FA]=[_.a9,_.Ni],I));I={};c.addProvider((I.provide=b$,I.useClass=b$,I[FA]=[NB,_.n4],I));c.addProvider({provide:_.Jyg,useClass:YZW});I={};c.addProvider((I.provide=_.Tl,I.useClass=fmH,I[FA]=[_.Jyg,_.qR(_.NI)],I));c.addProvider({provide:_.dh,useClass:i8G});I={};c.addProvider((I.provide=CD,I.useClass=CD,I[FA]=[_.dh,_.a9,_.UU,_.n4],I));c.addProvider({provide:_.O6,useClass:$8});c.addProvider({provide:_.VB$,
useClass:Ec0});c.addProvider({provide:_.eJ,useClass:Esu});_.v("enable_ai_companion")&&(c.addProvider({provide:_.NI,useClass:x8$}),c.addProvider({provide:_.soV,useClass:dmT}),c.addProvider({provide:zqd,useClass:pX7}),c.addProvider({provide:wV,useClass:wV}),c.addProvider({provide:qM,useClass:qM}),c.addProvider({provide:Al0,useValue:Yfd}),c.addProvider({provide:_.$$K,useValue:_.ygd}),c.addProvider({provide:Su2,useValue:X_W}));_.v("enable_ai_chat_controller")&&c.addProvider({provide:_.lZ,useClass:CBW});
I={};c.addProvider((I.provide=_.Oz,I.useClass=gsW,I[FA]=[_.Oz],I));c.addProvider({provide:_.y6,useClass:S9r});c.addProvider({provide:sI,useClass:sI});c.addProvider({provide:gV,useClass:gV});c.addProvider({provide:MM,useClass:MM});I={};c.addProvider((I.provide=TG,I.useClass=TG,I[FA]=[_.n4,_.UU],I));c.addProvider({provide:j6,useClass:ryu});I={};c.addProvider((I.provide=h2,I.useClass=h2,I[FA]=[_.O6,j6],I));I={};c.addProvider((I.provide=fl,I.useClass=fl,I[FA]=[_.O6],I));I={};c.addProvider((I.provide=
UI,I.useClass=UI,I[FA]=[om,Dl,_.n4],I));c.addProvider({provide:Dl,useClass:Tx1});_.v("web_enable_feedback_endpoint_resolver_batch_2")&&(I={},c.addProvider((I.provide=bZ,I.useClass=bZ,I[FA]=[om],I)),I={},c.addProvider((I.provide=uZ,I.useClass=uZ,I[FA]=[Dl],I)));I={};c.addProvider((I.provide=xf,I.useClass=xf,I[FA]=[_.eJ,j6],I));I={};c.addProvider((I.provide=J2,I.useClass=J2,I[FA]=[_.eJ],I));I={};c.addProvider((I.provide=t2,I.useClass=t2,I[FA]=[_.UU,_.Tl],I));I={};c.addProvider((I.provide=rV,I.useClass=
rV,I[FA]=[_.UU,_.PQ],I));c.addProvider({provide:Uz,useClass:Uz});I={};c.addProvider((I.provide=lG,I.useClass=lG,I[FA]=[om],I));c.addProvider({provide:Jb,useClass:Jb});c.addProvider({provide:Ez,useClass:Ez});I={};c.addProvider((I.provide=iG,I.useClass=iG,I[FA]=[om],I));I={};c.addProvider((I.provide=fD,I.useClass=fD,I[FA]=[_.UU,om],I));I={};c.addProvider((I.provide=Bj,I.useClass=Bj,I[FA]=[om],I));I={};c.addProvider((I.provide=rh,I.useClass=rh,I[FA]=[om],I));I={};c.addProvider((I.provide=WV,I.useClass=
WV,I[FA]=[_.Tl],I));I={};c.addProvider((I.provide=LD,I.useClass=LD,I[FA]=[_.PQ],I));I={};c.addProvider((I.provide=V8,I.useClass=V8,I[FA]=[vj],I));I={};c.addProvider((I.provide=zd,I.useClass=zd,I[FA]=[vj],I));c.addProvider({provide:S0,useClass:S0});c.addProvider({provide:pD,useClass:pD});c.addProvider({provide:sz,useClass:sz});I={};c.addProvider((I.provide=dV,I.useClass=dV,I[FA]=[_.Tl,_.n4],I));c.addProvider({provide:$f,useClass:$f});I={};c.addProvider((I.provide=BV,I.useClass=BV,I[FA]=[_.UU,_.Tl],
I));c.addProvider({provide:V3,useClass:V3});I={};c.addProvider((I.provide=e0,I.useClass=e0,I[FA]=[om,_.UU,_.Oz],I));I={};c.addProvider((I.provide=at,I.useClass=at,I[FA]=[_.UU,_.n4],I));c.addProvider({provide:U$i,useValue:qxB});c.addProvider({provide:p4e,useValue:INg});c.addProvider({provide:Td,useClass:Td});I={};c.addProvider((I.provide=mP,I.useClass=mP,I[FA]=[om],I));I={};c.addProvider((I.provide=Nu,I.useClass=Nu,I[FA]=[_.y6,_.n4],I));I={};c.addProvider((I.provide=kf,I.useClass=kf,I[FA]=[_.n4],I));
I={};c.addProvider((I.provide=vV,I.useClass=vV,I[FA]=[NB],I));c.addProvider({provide:Mbr,useFactory:_.jx.getInstance});I={};c.addProvider((I.provide=pl,I.useClass=pl,I[FA]=[S6,Mbr,_.n4],I));c.addProvider({provide:Ll,useClass:Ll});c.addProvider({provide:OI,useClass:OI});c.addProvider({provide:NM,useClass:NM});c.addProvider({provide:_.e6,useClass:_.e6});c.addProvider({provide:tb,useClass:tb});I={};c.addProvider((I.provide=Rt,I.useClass=Rt,I[FA]=[NB],I));I={};c.addProvider((I.provide=HV,I.useClass=HV,
I[FA]=[_.n4],I));I={};c.addProvider((I.provide=ZE,I.useClass=ZE,I[FA]=[_.n4],I));I={};c.addProvider((I.provide=KD,I.useClass=KD,I[FA]=[_.n4],I));_.v("web_enable_prefetching_videos_on_home")&&(c.addProvider({provide:u$,useClass:u$}),c.addProvider({provide:Wn,useClass:Wn}));I={};c.addProvider((I.provide=xT,I.useClass=xT,I[FA]=[_.n4],I));c.addProvider({provide:Fy,useClass:Fy});I={};c.addProvider((I.provide=uG,I.useClass=uG,I[FA]=[_.UU,_.n4],I));I={};c.addProvider((I.provide=nl,I.useClass=nl,I[FA]=[_.n4],
I));I={};c.addProvider((I.provide=i$,I.useClass=i$,I[FA]=[_.UU,_.n4],I));c.addProvider({provide:ywW,useClass:ywW});c.addProvider({provide:Gd,useClass:Gd});I={};c.addProvider((I.provide=Yf,I.useClass=Yf,I[FA]=[NB,_.n4],I));c.addProvider({provide:cj,useClass:cj});I={};c.addProvider((I.provide=XE,I.useClass=XE,I[FA]=[NB,_.n4,_.UU],I));I={};c.addProvider((I.provide=y8,I.useClass=y8,I[FA]=[_.n4],I));I={};c.addProvider((I.provide=Hj,I.useClass=Hj,I[FA]=[_.n4,_.UU],I));I={};c.addProvider((I.provide=ot,I.useClass=
ot,I[FA]=[_.n4,_.UU],I));I={};c.addProvider((I.provide=Q8,I.useClass=Q8,I[FA]=[_.a9],I));I={};c.addProvider((I.provide=Pj,I.useClass=Pj,I[FA]=[_.a9],I));I={};c.addProvider((I.provide=It,I.useClass=It,I[FA]=[_.a9],I));c.addProvider({provide:nD,useClass:nD});c.addProvider({provide:DE,useClass:DE});c.addProvider({provide:Wj,useClass:Wj});c.addProvider({provide:bG,useClass:bG});c.addProvider({provide:FE,useClass:FE});c.addProvider({provide:zG,useClass:zG});c.addProvider({provide:wh,useClass:wh});_.v("kevlar_enable_mss_lazy_load")&&
c.addProvider({provide:_.He,useClass:MA0});c.addProvider({provide:_.RY,useClass:pW});c.addProvider({provide:EP,useFactory:function(){return _.RD.getInstance()}});
c.addProvider({provide:osd,useFactory:oAA});c.addProvider({provide:vj,useFactory:function(){return _.TI.getInstance()}});
c.addProvider({provide:HPV,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});I={};c.addProvider((I.provide=_.k8,I.useClass=_.k8,I[FA]=[_.a9,_.n4,_.PQ,osd,vj,EP,HPV,Yg],I));c.addProvider({provide:_.gQ,useClass:TpV});c.addProvider({provide:_.vMW,useClass:nMd});I={};c.addProvider((I.provide=EI,I.useClass=EI,I[FA]=[_.vMW],I));I={};c.addProvider((I.provide=_.sj,I.useFactory=function(O){return O.upliftCompletionResolver.promise},I[FA]=[kyG],I));
I=_.XG("IS_SHELL_LOAD")?"aa":"eocs";var R=_.XG("IS_SHELL_LOAD")?3:2;_.kL().parkOrScheduleJob(function(){LuW()},R,I);
_.kL().parkOrScheduleJob(function(){_.wH().resolve(Ar).start()},2,"eocs");
_.kL().parkOrScheduleJob(function(){U8u()},2,"eocs");
_.kL().parkOrScheduleJob(function(){_.wH().resolve(b$).start()},2,"eocs");
_.v("kevlar_debug_data_app_registration_ks")||NfU();c.addProvider({provide:_.uf,useValue:new iG$(G.root)});c.addProvider({provide:cN,useValue:new nZB});c.addProvider({provide:_.dNj,useValue:new t_j(G.root)});c.addProvider({provide:_.oI,useValue:new hfu});c.addProvider({provide:_.Hk,useClass:Rv});c.addProvider({provide:yyH,useClass:Se});_.v("kevlar_network_sli_killswitch")||c.addProvider({provide:Kbd,useValue:q1i});c.addProvider({provide:X1g,useFactory:ARC});I={};c.addProvider((I.provide=hpW,I.useFactory=
QVB,I[FA]=[_.sj,om,_.Fr],I));I={};c.addProvider((I.provide=tB7,I.useClass=gh,I[FA]=[hpW],I));c.addProvider({provide:kBj,useClass:o9$});c.addProvider({provide:BxG,useClass:j2u});I=[].concat(_.jn(X6));I.push(_.fQ);I.push(mIV);_.v("enable_share_panel_navigation_logging_fix_on_web")&&I.push(_.bxA);c.addProvider({provide:Mer,useValue:I});c.addProvider({provide:E2r,useClass:f3d});c.addProvider({provide:THW,useClass:PWW});I={};c.addProvider((I.provide=pZ0,I.useClass=ZTG,I[FA]=[NB],I));_.dJ.addLowPriorityJob(function(){EGq()});
I={};c.addProvider((I.provide=pce,I.useFactory=function(O){return function(N){var q,w=(q=_.D(N.commandMetadata,_.Pd))==null?void 0:q.url;if(!w)throw new _.iW("No URL for PBJ Command",N);w=YQO(w,{pbj:"1"});q=vDi(w,{})||{};q=Object.assign({},q,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.H1("STS").toString()});N=_.SA({command:JSON.stringify(N),session_token:_.H1("XSRF_TOKEN")});return O.fetch(w,{method:"POST",headers:q,body:N})}},I[FA]=[THW],I));
c.addProvider({provide:IHd,useFactory:function(){var O={};return O.CSI=SLO(),O.ECATCHER=$dp(),O}});
c.addProvider({provide:b_q,useClass:RMr});I=[];I.push(c.resolve(BxG));R={};R=(R.client_location=_.jx.getInstance(),R.consistency=_.FKq(),R.entities=c.resolve(Wzr),R.response_received_commands=c.resolve(E2r),R.store=c.resolve(_.ACr),R.tokens=c.resolve(BxG),R.service_params=c.resolve(b_q),R);if(_.v("web_shorts_prefetch_service_enabled")){var Z=new JK$(c.resolve(_.dQ));R.shorts_prefetch=Z}R.adblock_detection=c.resolve(pZ0);c.addProvider({provide:_.Kk,useClass:_.Kk});Z=c.resolve(_.GY);var K=[];_.v("PremiumClientSharedConfig__enable_att_context_processor")&&
(c.addProvider({provide:om0,useClass:nmj}),K.push(c.resolve(om0)));if(_.v("owl_pl_await")){var m={};c.addProvider((m.provide=rIW,m.useFactory=function(O){return new f$7(O)},m[FA]=[_.Kk],m));
K.push(c.resolve(rIW))}pAN(Z,c.resolve(THW),c.resolve(Hhd),R,c.resolve(_.dQ),I,K,c.resolve(tB7),c.resolve(kBj));c.addProvider({provide:_.UU,useValue:_.h0.instance});_.v("start_client_gcf")&&c.addProvider({provide:iB,useValue:wY0()});c.addProvider({provide:$8H,useFactory:function(){return new $8H(_.wH().resolve(_.Kk),_.TI.getInstance())}});
_.kL().parkOrScheduleJob(function(){SZd()},1,"eocs");
I={};c.addProvider((I.provide=LW,I.useClass=LW,I[FA]=[_.Fr,_.UU],I));c.addProvider({provide:_.Keu,useFactory:_.Jr.getInstance});_.kL().parkOrScheduleJob(function(){_.wH().resolve(LW).refresh()},0,"eocs");
c.addProvider({provide:_.MB,useClass:TF7});_.v("kevlar_signal_collection_killswitch")||(I={},c.addProvider((I.provide=NNd,I.useClass=NNd,I[FA]=[S6,qu],I)),_.kL().parkOrScheduleJob(function(){_.wH().resolve(NNd).record()},1,"eocs"));
_.v("web_debug_handler_registration_killswitch")||_.kL().parkOrScheduleJob(function(){O2A("DOWNLOAD_PES",DAi);_.v("offline_client_state_export_ks")||O2A("OFFLINE_CLIENT_STATE",FRf)},0,"eocs");
_.v("kevlar_prevent_polymer_dynamic_font_load")&&_.kL().parkOrScheduleJob(function(){var O=[_.D3(v6W),_.D3(DRu)];O=_.Q(O);for(var N=O.next();!N.done;N=O.next()){N=N.value;var q=document.createElement("link");_.la(q,N,"stylesheet");document.head.appendChild(q)}},1,"eocs");
I=G.injector.resolve(_.UU);_.D3W.instance=new _.D3W(I);Hvi(OTr(new vmd(I)));I={};G.injector.addProvider((I.provide=qq,I.useFactory=function(O){(O=O==null?void 0:O.getCurrentPage())?O=O.visibilityObserver:(GP0||(GP0=ny0()),O=GP0);return O},I[FA]=[_.qR(_.I9)],I.skipCache=!0,I));
c.addProvider({provide:_.tA,useClass:hr});c.addProvider({provide:Iv,useClass:DGA});G.injector.addProvider({provide:qzT,useValue:Woj});c.addProvider({provide:KSp,useValue:RJu});c.addProvider({provide:esB,useValue:axO});c.addProvider({provide:_.d0,useValue:oG0});G=c.addProvider;a$g||(a$g=new mEd);G.call(c,{provide:_.M1,useValue:a$g});c.addProvider({provide:_.HI,useValue:_.H1("HTML_DIR")==="rtl"?"rtl":"ltr"});c.addProvider({provide:CaG,useClass:K3G});c.addProvider({provide:_.ek,useClass:uGr});_.wH().addProvider({provide:XMd,
useValue:_.v("enable_web_delhi_icons")?tcd.concat(dbW):xb$.concat(h_H)});c.addProvider({provide:_.zZ$,useClass:_.zZ$});c.addProvider({provide:_.wK$,useValue:new q2u});c.addProvider({provide:Jdr,useClass:zJr});c.addProvider({provide:kT,useClass:kT});c.addProvider({provide:Ab,useClass:Ab});G={};c.addProvider((G.provide=Cl,G.useClass=Cl,G[FA]=[_.UU,_.Tl],G));c.addProvider({provide:hb,useClass:hb});c.addProvider({provide:czH,useClass:cI$});c.addProvider({provide:Mu,useClass:Mu});c.addProvider({provide:Fn0,
useValue:IQp});c.addProvider({provide:_.E1,useClass:EmH});_.v("enable_payments_purchase_manager")&&c.addProvider({provide:kid,useClass:U31});c.addProvider({provide:a3d,useFactory:function(){return function(O){return _.n6j(O)}}});
c.addProvider({provide:_.EM0,useClass:Js$});G={};c.addProvider((G.provide=j0,G.useClass=j0,G[FA]=[_.EM0],G));c.addProvider({provide:$T,useClass:$T});c.addProvider({provide:Xru,useValue:LoW});c.addProvider({provide:B$2,useValue:_.w1W});c.addProvider({provide:ALq,useClass:G2W});c.addProvider({provide:TKd,useValue:Dtu});G={};c.addProvider((G.provide=Oh7,G.useClass=eZ1,G[FA]=[TKd],G));G={};c.addProvider((G.provide=_.mk,G.useClass=uaG,G[FA]=[Oh7],G));G={};c.addProvider((G.provide=_.zL,G.useClass=dEF,G[FA]=
[_.Ni,_.Hk],G));if(_.v("web_explore_hub_on_hover")||_.v("web_client_explore_hub_on_hover"))G={},c.addProvider((G.provide=A2,G.useClass=A2,G[FA]=[_.UU,EP],G));if(_.v("web_enable_renderer_logger")){var a=new gZb;TAi(function(){a.abort()});
c.addProvider({provide:iwg,useValue:new qZ1(a.signal)})}c.addProvider({provide:wfK,useValue:ExU});c.addProvider({provide:vQq,useClass:Wrj});_.v("web_use_flow_state_manager")&&(c.addProvider({provide:_.cV,useClass:iTH}),G={},c.addProvider((G.provide=Im,G.useClass=Im,G[FA]=[_.cV],G)),G={},c.addProvider((G.provide=Rm,G.useClass=Rm,G[FA]=[_.Ni,_.cV],G)),G={},c.addProvider((G.provide=Zl,G.useClass=Zl,G[FA]=[_.Ni,_.cV,_.n4],G)),G={},c.addProvider((G.provide=Kl,G.useClass=Kl,G[FA]=[_.UU,_.n4],G)),G={},c.addProvider((G.provide=
PV,G.useClass=PV,G[FA]=[_.cV,_.n4],G)))}},ca1);var R2d={},ZYu=(R2d.initialized={priority:10,callback:function(){if(!Z4H){sJB();M2g("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.s2(_.Ts(M2g,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.v("log_heartbeat_with_lifecycles")){var G={};M_.instance||(M_.instance=new M_);M_.instance.install((G.document_visible={callback:V2T,priority:10},G.document_hidden={callback:V2T,priority:10},G))}else _.Nb(document,"visibilitychange",V2T);Z4H=!0}(G=_.k0())&&G!=="UNDEFINED_CSN"&&lMr(G)}},R2d);var KXu={},PxW=(KXu.initialized={callback:function(G){var c=_.qj(232091),I=G.injector.resolve(_.PQ);_.CJ(I,c);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?NOp()&&_.XF(I,c):(G=G.injector.resolve(a3d)("refresh_detector"))&&(G.get("first_tab_load")?_.XF(I,c):G.set("first_tab_load","1"))}},KXu);var QDW={},mqF=(QDW.initialized={priority:10,callback:o2O},QDW);var aqF={},TZ$=(aqF.initialized={priority:0,callback:function(){var G=new NJe,c="other";_.UH?c="chrome":_.o3?c="firefox":_.Y6?c="safari":ev&&(c="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(I){G.increment(_.E2(),I,c)}).catch(function(){G.increment(_.E2(),!1,c)}):G.increment(_.E2(),!1,c)}},aqF);var OY$={},e2H=(OY$.rendering={priority:8,callback:UPr},OY$);var NZd={},lq1=(NZd.rendering={priority:10,callback:Wa0},NZd.rendered={callback:JCB},NZd),qpu={},wNF=(qpu.rendering={callback:Wa0},qpu.rendered={callback:JCB},qpu);var FXF=!1,ntF={},vtu=(ntF.initialized={priority:10,callback:function(){FXF||(gdA({didPatch:function(G){G.el&&t2B(G.el,G.props)},
didUnmount:function(G){jOU(G.el)}}),FXF=!0)}},ntF);var Dqu=/^\/shorts\/?$/;_.Ch("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:{}}}}}}});_.v("kevlar_use_common_module_manager_ks")?(_.IwT(new i_8),ekA()):fvU();
(function(){var G=document.querySelector("ytd-app");if(!G)throw Error("Yj");G=new Ej({root:G,injector:_.wH()});G.install(ZYu);var c={};G.install((c.initialized={priority:10,callback:aCO},c));_.v("wp_lat_b")&&(c={},G.install((c.initialized={priority:10,callback:function(){kCT()}},c)));
c={};G.install((c.rendered={priority:0,callback:Pkq},c));c={};G.install((c.rendered={priority:0,callback:function(){_.dJ.addLowPriorityJob(function(){_.Pyu>1&&(Yyf(),Z00())},4E4)}},c));
G.install(dR$);G.install(PxW);G.install(vtu);IF0();G.install(R1u);G.install(BHj);G.install(tAu);G.install(Pe0);G.install(Otg);G.install(c$1);G.install(Iq$);_.v("kevlar_enable_mss_lazy_load")&&G.install(mqF);G.install(jaW);G.install(TZ$);if(!_.XG("IS_SHELL_LOAD")||_.v("kevlar_fetch_initial_data_promise_client")||_.v("sw_nav_preload_pbj")){var I=_.Aw(window.location.href);c=I&&I==="/watch";I=I&&I.match(Dqu);c?G.install(wNF):I?G.install(e2H):G.install(lq1)}else G.install(Wb0);G.install(H41);_.v("web_enable_prefetching_videos_on_home")&&
G.install(QzW);_.v("start_client_gcf")&&G.install(cwu);G.install(cyu);(new lw0).increment("INSTALLED");G.install(K_F);G.install(zMF);G.transition("initialized");Fnr();QOT()})();
_.aI=[[["cDBzN2F1aHJvMHlia2luZCM=","djBrdWowYnB0am40dmFsdWUj"],"YTBubXAwam93cTN1QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQj"]];_.mc=["I2lreTl3aWo3NWE5Z2xvYmFsQ2FsbGJhY2tz","I3NqdDNjY3lqMjdwb25BYm5vcm1hbGl0eURldGVjdGVk","eDNvZ3VhYmZxeHZxb25BZFNraXAj","NmllMW81dmNlc3lwcmF3X3BsYXllcl9yZXNwb25zZSM=","eHNpYjJibmQxbTg0YWRTbG90cyM="];_.p7="I2lreTl3aWo3NWE5Z2xvYmFsQ2FsbGJhY2tz I3NqdDNjY3lqMjdwb25BYm5vcm1hbGl0eURldGVjdGVk eDNvZ3VhYmZxeHZxb25BZFNraXAj NmllMW81dmNlc3lwcmF3X3BsYXllcl9yZXNwb25zZSM= dWdsczM3czNiNjE4d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIw== N2I5bGMyNHV2aTNsYWJfc2FfZWYj eHNpYjJibmQxbTg0YWRTbG90cyM=".split(" ");
_._ModuleManager_initialize=function(G,c){if(!_.rF){if(!_.jT)return;_.IwT(_.jT())}_.rF.setAllModuleInfoString(G,c)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var Jad,WXj;_.z20=function(G){return!!G.getOptions("captions")};
_.Et$=function(G){return(G=G.getOption("captions","track"))?!!G.displayName:!1};
_.g9=function(G,c){_.VY(c,G,function(){return Jad[c]},function(I){Jad[c]=I;
if(!_.v("mweb_player_ve_show_ks")){var R=_.k0(0);R&&I&&_.fC(R,I)}})};
_.Y8=function(G){(G=Jad[G])&&_.XF(_.DP(),G)};
Jad={};var iYu;/*

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
*/
_.SD({_template:function(){if(iYu!==void 0)return iYu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;WXj===void 0&&(WXj=document.createElement("template"));var R=WXj;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return iYu=G},
is:"tp-yt-paper-checkbox",behaviors:[_.Fd0],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.O$(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var G=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),c="px",I=G.match(/[A-Za-z]+$/);I!==null&&(c=I[0]);G=parseFloat(G);I=8/3*G;c==="px"&&(I=Math.floor(I),I%2!==G%2&&I++);this.updateStyles({"--paper-checkbox-ink-size":I+
c})}})},
_computeCheckboxClass:function(G,c){var I="";G&&(I+="checked ");c&&(I+="invalid");return I},
_computeCheckmarkClass:function(G){return G?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.qtV._createRipple.call(this)}});var fqd=new _.vS("radioButtonSurveyOptionRenderer"),BZj=new _.vS("checkboxSurveyOptionRenderer");var raG;var jDF;var xqd=0,GN=function(){var G=_.J.call(this)||this;G.selected=!1;G.isOverlay=!1;G.inputId="toggle-option-"+xqd;xqd++;return G};
_.u(GN,_.J);GN.prototype.onTap=function(){_.Xl(this.hostElement,"ytd-toggle-option-clicked")};
_.r([_.E(),_.h("design:type",String)],GN.prototype,"label",void 0);_.r([_.E(),_.h("design:type",String)],GN.prototype,"inputId",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],GN.prototype,"selected",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],GN.prototype,"isOverlay",void 0);_.r([_.Jc({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.h("design:paramtypes",[])],GN);
_.B(GN,"ytd-toggle-option-renderer",function(){if(jDF!==void 0)return jDF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return jDF=G},{mode:1});var cs=function(){var G=_.J.apply(this,arguments)||this;G.isToggleOption=!1;G.isOverlay=!1;return G};
_.u(cs,_.J);cs.prototype.onTap=function(G){G.preventDefault();this.data&&(G=!this.data.checked,this.set("data.checked",G),_.Xl(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:G,value:this.data.value}))};
_.Nh.Object.defineProperties(cs.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
cs.prototype.onTap=cs.prototype.onTap;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],cs.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],cs.prototype,"isToggleOption",void 0);_.r([_.E(),_.h("design:type",Object)],cs.prototype,"isOverlay",void 0);_.r([_.A("data.responseText"),_.h("design:type",String),_.h("design:paramtypes",[])],cs.prototype,"label",null);
_.r([_.qY("ytd-toggle-option-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],cs.prototype,"onTap",null);_.r([_.Jc({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],cs);
_.B(cs,"ytd-checkbox-survey-option-renderer",function(){if(raG!==void 0)return raG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return raG=G},{mode:1});var tK0;var h2W;var IA=function(){var G=_.J.apply(this,arguments)||this;G.checked=!1;G.isToggleOption=!1;return G};
_.u(IA,_.J);IA.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]))};
IA.prototype.onTap=IA.prototype.onTap;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],IA.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],IA.prototype,"checked",void 0);_.r([_.E(),_.h("design:type",Object)],IA.prototype,"isToggleOption",void 0);_.r([_.qY("ytd-toggle-option-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],IA.prototype,"onTap",null);
_.r([_.Jc({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],IA);
_.B(IA,"ytd-radio-button-survey-option-renderer",function(){if(h2W!==void 0)return h2W;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return h2W=G},{mode:1});var RA=function(){var G=_.J.apply(this,arguments)||this;G.disableAnimation=!1;G.isToggleOption=!0;G.followUpSurveyCommand=null;G.selectedRatingEndpoint=null;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;G.styleOverrideAttribute=!0;G.isDarkMode=!1;G.isSubmitted=!1;G.roundedContainer=!0;G.improveShortsResponseRate=_.v("web_improve_shorts_response_rate");G.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(RA,_.J);_.P=RA.prototype;
_.P.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.P.attached=function(){var G=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(I){var R;if((R=I[0])!=null&&R.isIntersecting){_.nd().reportShown(G.hostElement);var Z;(Z=G.intersectionObserver)==null||Z.unobserve(G.hostElement)}},{rootMargin:"0px",
threshold:.6});var c;(c=this.intersectionObserver)==null||c.observe(this.hostElement)};
_.P.onDarkModeToggledAction=function(G){this.isDarkMode=G};
_.P.dataChanged=function(){var G;if(((G=this.data)==null?void 0:G.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var c;((c=this.data)==null?void 0:c.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var I,R,Z,K;this.darkColorPalette=(I=this.data)==null?void 0:(R=I.inlineContent)==null?void 0:(Z=R.compactVideoRenderer)==null?void 0:(K=Z.thumbnail)==null?
void 0:K.darkColorPalette;var m,a,O,N;this.lightColorPalette=(m=this.data)==null?void 0:(a=m.inlineContent)==null?void 0:(O=a.compactVideoRenderer)==null?void 0:(N=O.thumbnail)==null?void 0:N.lightColorPalette;var q,w;if(((q=this.data)==null?0:(w=q.inlineContent)==null?0:w.compactVideoRenderer)&&this.isShortsStyle){var F,n,U,k;G=_.KQ((F=this.data)==null?void 0:(n=F.inlineContent)==null?void 0:(U=n.compactVideoRenderer)==null?void 0:(k=U.thumbnail)==null?void 0:k.thumbnails);_.eD(this.hostElement,
{"--yt-background-url":"url("+G+")"})}};
_.P.handleRequestCompletion=function(){this.hostElement.hidden&&_.Xl(this.hostElement,"yt-dismissible-item-dismissed")};
_.P.onPopupClosed=function(G){var c;((c=G.detail)==null?void 0:c.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ym(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.P.handleInlineSurveyRatingSelect=function(G,c){var I=this;this.selectedRatingEndpoint=G;this.followUpSurveyCommand=c;this.expanded=!!G;this.getOptionRenderers().forEach(function(R,Z){I.notifyPath("followUpSurveyCommand.followUpOptions."+Z+".checkboxSurveyOptionRenderer.checked");I.set("followUpSurveyCommand.followUpOptions."+Z+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),G=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ym(this.hostElement,"yt-reel-non-video-content-dismissal-command",[G]))};
_.P.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ym(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var G,c=(G=this.data)==null?void 0:G.dismissalEndpoint;c&&this.ytComponentBehavior.resolveCommand(c)}};
_.P.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"))};
_.P.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var G=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{G=this.getOptionRenderers().filter(function(R){return R.checked});
if(G.length===0)return;G=G.map(function(R){return R.responseEndpoint})}var c=[];
G.forEach(function(R,Z){Z!==0&&(R=_.D(R,_.fM))&&R.feedbackToken&&c.push(R.feedbackToken)});
if(G=G[0]){var I={};c.length>0&&(I.extra_feedback_tokens=c);this.ytComponentBehavior.resolveCommand(G,{form:I})}}};
_.P.getOptionRenderers=function(){var G=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(c){G.isSingleSelect=!!_.D(c,fqd);return G.isSingleSelect?_.D(c,fqd):_.D(c,BZj)}):[]};
_.P.handleInlineSurveyOptionSelect=function(G){G=this.optionSelector.indexOf(G);G!==-1&&this.optionSelector.selectIndex(G)};
_.P.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.P.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
_.P.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G=G&&this.maybeGetBackgroundColor(G);this.dismissibleEl.style.backgroundColor=!G||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Sx(G)};
_.Nh.Object.defineProperties(RA.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
RA.prototype.colorPaletteChanged=RA.prototype.colorPaletteChanged;RA.prototype.onPopupClosed=RA.prototype.onPopupClosed;RA.prototype.handleRequestCompletion=RA.prototype.handleRequestCompletion;RA.prototype.dataChanged=RA.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],RA.prototype,"actionHandlerBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],RA.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],RA.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.nH("#follow-up-survey-options"),_.h("design:type",Object)],RA.prototype,"optionSelector",void 0);_.r([_.E(),_.h("design:type",Object)],RA.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],RA.prototype,"disableAnimation",void 0);_.r([_.E(),_.h("design:type",Object)],RA.prototype,"isToggleOption",void 0);_.r([_.E(),_.h("design:type",Object)],RA.prototype,"followUpSurveyCommand",void 0);_.r([_.E(),_.h("design:type",Object)],RA.prototype,"selectedRatingEndpoint",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],RA.prototype,"expanded",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RA.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RA.prototype,"isShortsStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RA.prototype,"styleOverrideAttribute",void 0);_.r([_.E(),_.h("design:type",Boolean)],RA.prototype,"isSingleSelect",void 0);_.r([_.E(),_.h("design:type",Object)],RA.prototype,"isDarkMode",void 0);
_.r([_.E(),_.h("design:type",Object)],RA.prototype,"lightColorPalette",void 0);_.r([_.E(),_.h("design:type",Object)],RA.prototype,"darkColorPalette",void 0);_.r([_.A("selectedRatingEndpoint","isShortsStyle"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],RA.prototype,"isOptionSelected",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RA.prototype,"roundedContainer",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RA.prototype,"improveShortsResponseRate",void 0);_.r([_.nH("#dismissible"),_.h("design:type",HTMLElement)],RA.prototype,"dismissibleEl",void 0);_.r([_.nH("#dismiss-button yt-icon-button"),_.h("design:type",HTMLElement)],RA.prototype,"dismissButtonEl",void 0);_.r([_.nH("#inline-survey-header yt-icon-button"),_.h("design:type",HTMLElement)],RA.prototype,"inlineHeaderDismissButtonEl",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RA.prototype,"dataChanged",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RA.prototype,"handleRequestCompletion",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],RA.prototype,"onPopupClosed",null);
_.r([_.wD("darkColorPalette","lightColorPalette","isDarkMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RA.prototype,"colorPaletteChanged",null);_.r([_.Jc({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],RA);
_.B(RA,"ytd-inline-survey-renderer",function(){if(tK0!==void 0)return tK0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return tK0=G},{mode:1});var dq1=["en-CA","en","es-MX","fr-CA"];_.Cx0=_.W(function(G){var c=_.YW(G,{isOverlay:!1,isModern:!1}),I=c.captionIconType,R=c.onClick;G=c.ariaLabel;var Z=c.ariaPressed,K=c.isOverlay,m=c.isModern;c=_.mX("button",function(N){_.g9(N,127299)});
var a=_.Nx(function(N){_.Y8(127299);R==null||R(N);return!1}),O={};
return _.e("ytm-closed-captioning-button",{class:_.O3("ytmClosedCaptioningButtonHost",(O.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return I()===-1&&K()},O.ytmClosedCaptioningButtonIconDisabled=function(){return I()===-1&&!K()},O))},_.e("button",{el:c,
class:"ytmClosedCaptioningButtonButton",title:G,"aria-label":G,"aria-pressed":Z,"on:click":a},_.e(_.F6,{icon:function(){var N="",q=m();var w=q?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";q=q?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var F=_.OC().get("hl");w=!F||dq1.includes(F)?w:q;q=I();switch(q){case -1:case 0:N=w;break;case 1:N=w+"_FILLED";break;default:_.H0(q)}return N}})))},"rh");
_.Cx0.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.CW=function(G,c,I,R,Z){var K={};c&&(K[c]=I);R?K.errorType=R:Z&&(K.errorReason=Z);_.x7(G,K);_.tg()};
_.Hn=function(G){var c=_.kL();return _.BWB(c,G,1)};
_.SD({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var G=this.query;G&&(this.full||G[0]==="("||(G="("+G+")"),this._mq=window.matchMedia(G),this._add(),this.queryHandler(this._mq))},
queryHandler:function(G){this._setQueryMatches(G.matches)}});var LX7;var AaF;var $qG=function(){};
_.P=$qG.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P._createRipple=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
$qG=_.SD({is:"tp-yt-paper-radio-button",_template:function(){if(AaF!==void 0)return AaF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;LX7===void 0&&(LX7=document.createElement("template"));var R=LX7;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return AaF=G},
behaviors:[_.Fd0],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(){_.O$(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var G=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),c=Math.floor(3*G);c%2!==G%2&&c++;this.updateStyles({"--paper-radio-button-ink-size":c+"px"})}})}});var Sp$;var pN1;_.SD({_template:function(){if(pN1!==void 0)return pN1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Sp$===void 0&&(Sp$=document.createElement("template"));var R=Sp$;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return pN1=G},
is:"tp-yt-paper-radio-group",behaviors:[_.TIT],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(G){var c=this._valueToItem(G);if(!c||!c.hasAttribute("disabled")){if(this.selected){c=this._valueToItem(this.selected);if(this.selected==G)if(this.allowEmptySelection)G="";else{c&&(c.checked=!0);return}c&&
(c.checked=!1)}_.dD.select.apply(this,[G]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(G){this._focusPrevious();G.preventDefault();this._activateFocusedItem()},
_onDownKey:function(G){this._focusNext();G.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(G){_.ake._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(G){_.ake._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.dD._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.RH._resetTabindices.apply(this,arguments);this.items.forEach(function(G){G.removeAttribute("aria-selected")},this)}});var MK$;_.Su("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Xr=function(){return _.J.apply(this,arguments)||this};
_.u(Xr,_.J);_.P=Xr.prototype;_.P.computeHasPrimaryIcon=function(G){return!(!G.icon&&!G.thumbnail)};
_.P.computeHasSecondary=function(G){return!(!G.secondaryIcon&&!G.secondaryNotificationText)};
_.P.computeHideSecondaryString=function(G){return!_.v("disable_hide_empty_secondary_string")&&!G.secondaryNotificationText};
_.P.computeCompactLinkStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.P.computeHasFitHeight=function(G){return G==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.P.isActiveEndpoint=function(G){return(G=this.get("commandMetadata.webCommandMetadata.url",G))?_.Aw(window.location.href)!=="/account_transfer_channel"&&_.Aw(window.location.href)!=="/gaia_link"&&_.Aw(window.location.href)!=="/channel_switcher"||G!=="/account"?_.Aw(window.location.href)===G:!0:!1};
_.P.onTap=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.Gs(this.hostElement,[this.data.serviceEndpoint])};
Xr.prototype.onTap=Xr.prototype.onTap;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Xr.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.h("design:type",Boolean)],Xr.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.h("design:type",String)],Xr.prototype,"compactLinkStyle",void 0);
_.r([_.E({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],Xr.prototype,"icon",void 0);_.r([_.E({computed:"computeIcon_(data.secondaryIcon)"}),_.h("design:type",Object)],Xr.prototype,"secondaryIcon",void 0);_.r([_.E({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Xr.prototype,"hasSecondary",void 0);_.r([_.E({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Xr.prototype,"hideSecondaryString",void 0);
_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xr.prototype,"onTap",null);_.r([_.Jc({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Xr);
_.B(Xr,"ytd-compact-link-renderer",function(){if(MK$!==void 0)return MK$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return MK$=G},{mode:1});var VK7;_.Su("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var yv=function(){var G=_.J.apply(this,arguments)||this;G.role="link";G.tabindex="0";G.actionMap=_.v("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return G};
_.u(yv,_.J);_.P=yv.prototype;_.P.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.iu()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.P.getCurrentTheme=function(){return _.fE()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.iu()};
_.P.onThemeSelected=function(G,c){var I=G||c?G:_.WH(),R=(I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.lCr(_.Aw(window.location.href));_.eW(0,165,G);_.eW(0,174,c);this.prefs.save();R&&_.ym(this.hostElement,"yt-dark-mode-toggled-action",[I]);_.ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.onTap=function(){this.data.serviceEndpoint&&_.Gs(this.hostElement,[this.data.serviceEndpoint])};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
yv.prototype.onTap=yv.prototype.onTap;yv.prototype.dataChanged=yv.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],yv.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.uY),_.h("design:type",Object)],yv.prototype,"paperItemBehaviors",void 0);_.r([_.E(),_.h("design:type",Object)],yv.prototype,"data",void 0);_.r([_.E({value:function(){return _.OC()}}),
_.h("design:type",_.Uh)],yv.prototype,"prefs",void 0);_.r([_.E(),_.h("design:type",Object)],yv.prototype,"label",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],yv.prototype,"role",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],yv.prototype,"tabindex",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yv.prototype,"dataChanged",null);
_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yv.prototype,"onTap",null);_.r([_.Jc({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],yv);
_.PI()(yv,"ytd-toggle-theme-compact-link-renderer",function(){if(VK7===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);VK7=G}G=VK7;return G},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var HYH,XNd,Ypd,Gm$,c8W,I0G,RKd,ZF1,KIW,eK0,Ps,OFu,QfW,Tcd,a0d,mhd,PiW,Nc0,l0j,q$F,wbW,Q7,FIW,nd0,Uh$,aA,DhH,Ol,mi,TN,odu,vdr,uur,bF$,km$,sfF,LIu,A8G,S$j,pb0,MLr,VL0,zKr,Edd,J8$,WI0,iFG,f00,r81,jfd,xhr,hK7,Cir,Xbj,y8d,gd1,Y$u,cOd,IZr,RgG,ZRH,KYH,P6W,QQd,aZH,Nqu,egW,Tqu,lZd,ORG,qQ$,Dyd,v0W,FYu,n0H,ep,o0d,ulu,bRd,kOg,SQ0,pq1,MyH,VyG,zgF,E0j,JOd,WYj,iRu,Bq7,rOj,jQr,xyu,tyF,hgW,dyg,C6G,yOu,sQ0;
_.Z8=function(G){var c=new _.iW("Error accessing DB");return _.uhB().then(function(I){return new Promise(function(R,Z){try{var K=I.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(G);K.onsuccess=function(){var m=K.result;R(m?m.value:null)};
K.onerror=function(){c.params={key:G,source:"onerror"};Z(c)}}catch(m){c.params={key:G,
thrownError:String(m)},Z(c)}})},function(){return null})};
HYH=function(G,c){return _.a6(G.entities,"inlineExpansionEntity",c)};
XNd=function(G,c){return _.a6(G.entities,"flowStateEntity",c)};
_.ya$=function(G,c){if(G&&c){var I=_.bm();I().set(G,c);_.nQ0(I())}};
_.gt$=function(G,c){if(G&&c){var I=_.bm();I().set(G,c);_.nQ0(I())}};
Ypd=function(G,c){return _.a6(G.entities,"contextNoteUserRatingEntityPayload",c)};
Gm$=function(G){return _.Mf(G,function(c){return c.languageCode==="en"})};
c8W=function(G){var c=K2;if(_.Et$(G))G.setOption("captions","stickyLoading",{}),G.setOption("captions","track",{});else{var I=_.Mf(_.s$p(G),function(R){return R.displayName===c});
G.setOption("captions","track",I)}};
I0G=function(G){if(!G)return 0;var c=G.getPresentingPlayerType(),I=G.getVideoData();return I&&I.isLive?(G=G.getProgressState(c),G.seekableEnd-G.seekableStart):G.getDuration(c)};
RKd=function(G,c){for(var I=_.Q(Object.keys(G)),R=I.next();!R.done;R=I.next())if(R=R.value,G[R]!==c[R])return!1;return!0};
ZF1=function(){return document.getElementById("player-control-overlay")};
KIW=function(G){G!==-1&&!_.v("player_controls_log_creation_killswitch")&&ZF1()&&(_.LC("pcu_cs",G),_.LC("pcu_ce"))};
eK0=function(G,c){var I=_.gD(G,{}),R=PiW("top",c),Z=PiW("bottom",c),K=PiW("left",c),m=PiW("right",c);return _.wi({top:function(){return Ps(I().position,R)},
bottom:function(){return Ps(I().position,Z)},
left:function(){return Ps(I().position,K)},
right:function(){return Ps(I().position,m)},
position:function(){return Ps(I().positionType,QfW)},
height:function(){return Ps(I().height,Q7)},
width:function(){return Ps(I().width,Q7)},
"min-width":function(){return Ps(I().minWidth,Q7)},
"min-height":function(){return Ps(I().minHeight,Q7)},
"max-width":function(){return Ps(I().maxWidth,Q7)},
"max-height":function(){return Ps(I().maxHeight,Q7)},
"aspect-ratio":function(){return Ps(I().aspectRatio,String)},
"margin-top":function(){return Ps(I().margin,R)},
"margin-bottom":function(){return Ps(I().margin,Z)},
"margin-left":function(){return Ps(I().margin,K)},
"margin-right":function(){return Ps(I().margin,m)},
"padding-top":function(){return Ps(I().padding,R)},
"padding-bottom":function(){return Ps(I().padding,Z)},
"padding-left":function(){return Ps(I().padding,K)},
"padding-right":function(){return Ps(I().padding,m)},
"flex-direction":function(){return Ps(I().flexDirection,mhd)},
"justify-content":function(){return Ps(I().justifyContent,a0d)},
"align-items":function(){return Ps(I().alignItems,Tcd)},
"flex-grow":function(){return Ps(I().flexGrow,String)},
"flex-shrink":function(){return Ps(I().flexShrink,String)},
"flex-basis":function(){return Ps(I().flexBasis,Q7)},
"align-self":function(){return Ps(I().alignSelf,Tcd)},
"flex-wrap":function(){return Ps(I().flexWrap,OFu)},
"align-content":function(){return Ps(I().alignContent,Tcd)}})};
Ps=function(G,c){return G!==void 0?c(G):void 0};
OFu=function(G){switch(G){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
QfW=function(G){switch(G){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Tcd=function(G){switch(G){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
a0d=function(G){switch(G){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
mhd=function(G){switch(G){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
PiW=function(G,c){var I=c==="rtl";switch(G){case "top":var R=Nc0;break;case "bottom":R=l0j;break;case "left":R=q$F;break;default:R=wbW}return function(Z){return Ps(R(Z,I),Q7)}};
Nc0=function(G){var c=G.top;var I=G.vertical;G=G.all;var R;return(R=c!=null?c:I)!=null?R:G};
l0j=function(G){var c=G.bottom;var I=G.vertical;G=G.all;var R;return(R=c!=null?c:I)!=null?R:G};
q$F=function(G,c){var I=G.left;var R=G.end;var Z=G.start;var K=G.horizontal;G=G.all;var m,a;return(a=(m=I!=null?I:c?R:Z)!=null?m:K)!=null?a:G};
wbW=function(G,c){var I=G.right;var R=G.end;var Z=G.start;var K=G.horizontal;G=G.all;var m,a;return(a=(m=I!=null?I:c?Z:R)!=null?m:K)!=null?a:G};
Q7=function(G){var c=G.value;switch(G.unit){case "YPC_DIMENSION_UNIT_POINT":return c+"px";case "YPC_DIMENSION_UNIT_FRACTION":return c+"%";default:return""+c}};
FIW=function(G){switch(G){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
nd0=function(G){var c=G!=null?G:{};G=c.fontRole;var I=c.fontSize;c=c.fontWeight;if(G!==null&&I!==null)switch(G){case "YPC_FONT_ROLE_DISPLAY":switch(I){case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(I){case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return c===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(I){case "YPC_FONT_SIZE_XL":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Uh$=function(G,c,I){function R(w){return Object.values(w).map(function(F){var n=F.productId;F=F.pricingOptionIndex;return mi(Z(n).pricingOptions,F).pricingOptionId})}
function Z(w){return O().get(w)}
function K(w){w=R(w);I(w)}
function m(w,F){return Array.from(aA(w.pricingOptions)).filter(function(n){n=_.Q(n);n.next();n=n.next().value;return TN(n.pricingGroupAttributes,F)}).map(function(n){return _.Q(n).next().value})}
var a=vdr([G,c],function(w,F){var n=w==null?void 0:w.selectedPricingOptions;w={};var U=!0;if(n&&F.length)for(var k=_.Q(F),p=k.next();!p.done;p=k.next()){p=p.value;var M=DhH(p.pricingOptions,function(x){a:{x=x.pricingOptionId;for(var C=_.Q(n),H=C.next();!H.done;H=C.next())if(H.value===x){x=!0;break a}x=!1}return x});
if(M>=0){U=!1;var z=mi(p.pricingOptions,M),t=void 0;w[p.groupId]={productId:p.productId,pricingOptionIndex:M,pricingGroupAttributes:(t=z)==null?void 0:t.pricingGroupAttributes}}}U&&F.length&&(U=mi(F[0].pricingOptions,0),w[F[0].groupId]={productId:F[0].productId,pricingOptionIndex:0,pricingGroupAttributes:U==null?void 0:U.pricingGroupAttributes});return w}),O=vdr([c],function(w){return new Map(w.map(function(F){return[F.productId,
F]}))}),N=vdr([c],function(w){var F=new Map;
w=_.Q(w);for(var n=w.next();!n.done;n=w.next()){var U=n.value;n=U.groupId;var k=U.productId;U=_.Q(aA(U.pricingOptions));for(var p=U.next();!p.done;p=U.next()){var M=_.Q(p.value);p=M.next().value;M=M.next().value;F.set(M.pricingOptionId,{groupId:n,productId:k,index:p,pricingOption:M,pricingGroupAttributes:M.pricingGroupAttributes})}}return F}),q=vdr([c],function(w){var F=new Map;
w=_.Q(w);for(var n=w.next();!n.done;n=w.next()){var U=n.value;n=U.groupId;var k=U.productId,p=void 0;U=_.Q(aA((p=U.pricingGroups)!=null?p:[]));for(p=U.next();!p.done;p=U.next()){var M=_.Q(p.value);p=M.next().value;M=M.next().value;F.set(M.pricingGroupId,{groupId:n,productId:k,index:p,pricingGroup:M,pricingGroupAttributes:M.pricingGroupAttributes})}}return F});
return{getProductById:Z,isProductSelected:function(w){var F=Z(w);if(!F)return!1;var n;return((n=a()[F.groupId])==null?void 0:n.productId)===w},
getSelectedPricingOptions:function(){return Object.values(a()).map(function(w){var F=w.productId;w=w.pricingOptionIndex;return mi(Z(F).pricingOptions,w)})},
getSelectedPricingGroupAttributesByGroupId:function(w){var F;return(w=(F=a()[w])==null?void 0:F.pricingGroupAttributes)?Array.from(w):void 0},
getSelectedProductByGroupId:function(w){var F;return(w=(F=a()[w])==null?void 0:F.productId)?Z(w):void 0},
onProductSelected:function(w){var F=Z(w);if(F){var n=a(),U;if(((U=n[F.groupId])==null?void 0:U.productId)!==w){var k=(U=(k=n[F.groupId])==null?void 0:k.productId)?Z(U):void 0;var p;U=(p=n[F.groupId])==null?void 0:p.pricingGroupAttributes;var M;p=(M=n[F.groupId])==null?void 0:M.pricingOptionIndex;if(k&&p!==void 0)if(U){M=m(k,U).indexOf(p);if(M===-1)throw Error("Zj`"+p+"`"+k.productId);p=m(F,U);M=M<p.length?p[M]:p.length>0?p[0]:0}else M=p<Ol(F.pricingOptions)?p:0;else M=0;Ol(F.pricingOptions)<=M&&(M=
0);p=mi(F.pricingOptions,M);var z;k={};K(Object.assign({},n,(k[F.groupId]={productId:w,pricingOptionIndex:M,pricingGroupAttributes:(z=p==null?void 0:p.pricingGroupAttributes)!=null?z:[]},k)))}}},
onPricingOptionSelected:function(w){var F=N().get(w);if(F){w=F.groupId;var n=F.productId;F=F.index;var U=a(),k,p;if(((k=U[w])==null?void 0:k.productId)!==n||((p=U[w])==null?void 0:p.pricingOptionIndex)!==F){var M,z;k={};K(Object.assign({},U,(k[w]={productId:n,pricingOptionIndex:F,pricingGroupAttributes:(z=(M=U[w])==null?void 0:M.pricingGroupAttributes)!=null?z:[]},k)))}}},
onPricingGroupSelected:function(w){var F=q().get(w);if(F){w=F.groupId;var n=F.productId,U=F.pricingGroup.pricingGroupAttributes,k=Z(n);if(k){F=a();var p=F[w].pricingGroupAttributes,M;if(((M=F[w])==null?void 0:M.productId)!==n||!TN(odu(p,Ol(U)),U)){M=Array.from(U);for(U=Ol(U);U<Ol(p);U++){var z="",t=!1,x=Array.from(M);x.push(mi(p,U));for(var C=_.Q(k.pricingGroups),H=C.next();!H.done;H=C.next())if(H=H.value,TN(H.pricingGroupAttributes,x)){M.push(mi(p,U));t=!0;break}else z===""&&Ol(H.pricingGroupAttributes)===
x.length&&TN(odu(H.pricingGroupAttributes,M.length),M)&&(z=mi(H.pricingGroupAttributes,U));t||M.push(z)}z=F[w].pricingOptionIndex;U=[];t=new Map;x=0;k=_.Q(aA(k.pricingOptions));for(C=k.next();!C.done;C=k.next())H=_.Q(C.value),C=H.next().value,H=H.next().value,TN(H.pricingGroupAttributes,M)&&U.push(C),TN(H.pricingGroupAttributes,p)&&t.set(C,x++);U.length===0?p=0:(p=t.get(z),p=p!==void 0&&p<U.length?U[p]:U[0]);k={};K(Object.assign({},F,(k[w]={productId:n,pricingOptionIndex:p,pricingGroupAttributes:M},
k)))}}}},
onClearGroupSelected:function(w){var F=a();F[w]&&(F=Object.fromEntries(Object.entries(F).filter(function(n){return _.Q(n).next().value!==w})),K(F))}}};
aA=function(G){return function I(){var R,Z,K,m,a;return _.F0(I,function(O){switch(O.nextAddress){case 1:_.$m(O,2),R=0,Z=_.Q(G),K=Z.next();case 4:if(K.done){O.jumpTo(2);break}m=K.value;a=_.nM;return O.yield([R++,m],7);case 7:a(O.yieldResult);K=Z.next();O.jumpTo(4);break;case 2:_.A_(O),_.pT(O,0)}})}()};
DhH=function(G,c){G=_.Q(aA(G));for(var I=G.next();!I.done;I=G.next()){var R=_.Q(I.value);I=R.next().value;R=R.next().value;if(c(R))return I}return-1};
Ol=function(G){var c=0;for(G=G[Symbol.iterator]();!G.next().done;)++c;return c};
mi=function(G,c){G=_.Q(aA(G));for(var I=G.next();!I.done;I=G.next()){var R=_.Q(I.value);I=R.next().value;R=R.next().value;if(I===c)return R}};
TN=function(G,c){if(!G&&!c)return!0;if(!G||!c)return!1;G=Array.from(G);c=Array.from(c);if(G.length!==c.length)return!1;for(var I=0;I<G.length;I++)if(G[I]!==c[I])return!1;return!0};
odu=function(G,c){c=c===void 0?Infinity:c;var I=[];G=_.Q(aA(G));for(var R=G.next();!R.done;R=G.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;if(R>=c)break;R>=0&&I.push(Z)}return I};
vdr=function(G,c){var I,R;return function(){for(var Z=G.map(function(m){return m()}),K=0;K<Z.length;K++)if(!I||Z[K]!==I[K]){I=Z;
R=c.apply(null,_.jn(Z));break}return R}};
uur=function(G,c,I){var R=[];G=_.Q(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;var K=void 0;((K=c)==null?0:K.length)&&!TN(Z.pricingGroupAttributes,c)||R.push({pricingOption:Z,isSelected:I.includes(Z.pricingOptionId)})}return R};
bF$=function(G,c){return _.a6(G.entities,"pdpStateEntity",c)};
km$=function(G){var c,I;return!!(G.productId&&G.groupId&&((c=G.pricingOptions)==null?0:c.length)&&G.pricingOptions.every(function(R){return R.pricingOptionId})&&((I=G.pricingGroups)==null||!I.length||Array.isArray(G.pricingGroups)&&G.pricingGroups.every(function(R){return R.pricingGroupId&&R.pricingGroupAttributes&&R.pricingGroupAttributes.length>0})))};
sfF=function(G,c,I){return Uh$(G,vdr([c],function(R){return R.filter(km$)}),I)};
LIu=function(G,c){return c.length===0?[G]:[G.slice(0,c[0]),G.slice(c[0])].filter(function(I){return I.length>0})};
A8G=function(G){switch(G){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
S$j=function(G,c,I,R){R=Object.assign({},R);_.MC(R,$hj,{selectedOptionId:G,primaryButtonOverride:I});_.XZ().dispatch(_.Le("flowStateEntity",c,R))};
pb0=function(G,c,I){!_.D(I,$hj)&&G.noPreselect&&c!==""&&G.defaultButtonOverride&&S$j("default",c,G.defaultButtonOverride,I)};
MLr=function(G){switch(G){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
VL0=function(G){switch(G){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
zKr=function(G,c){if(c)return"ytCardViewModelCardSelected";switch(G){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
Edd=function(G,c){c.includes(G)?c=c.filter(function(I){return I!==G}):c.push(G);
return[].concat(_.jn(c))};
J8$=function(G,c){return _.a6(G.entities,"contextNoteFeedEntityPayload",c)};
WI0=function(G,c){switch(G){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return c==null?void 0:c.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return c==null?void 0:c.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return c==null?void 0:c.ratingNotHelpfulText}};
iFG=function(G,c,I){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:I||G.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:G.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:G.deleteDialogTitle}]},dialogMessages:[{runs:[{text:G.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.deleteActionText}]},command:{performCommentActionEndpoint:{action:c}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
f00=function(G,c,I){var R;if(G&&((R=c())==null?0:R.includes(G))){var Z;I((Z=c())==null?void 0:Z.filter(function(K){return K!==G}))}else I([].concat(_.jn(c()||[]),[G]))};
r81=function(G,c){if(G){var I=[];c=_.Q((c==null?void 0:c.checkboxes)||[]);for(var R=c.next();!R.done;R=c.next()){R=_.D(R.value,BcW);var Z=void 0;((Z=R)==null?0:Z.value)&&G.includes(R.key||"")&&I.push(R.value)}return I}};
jfd=function(G){G.style.height="auto";G.style.height=G.scrollHeight+"px"};
xhr=function(G){return[G.syncStep,G.asyncStep].filter(function(c){return c!==void 0})};
hK7=function(G){var c,I,R;if(G=(c=G.structuredContextNoteFormSchema)==null?void 0:(I=c.fieldSchemas)==null?void 0:(R=I.noteBody)==null?void 0:R.validationSchema)for(c=_.Q(xhr(G)),I=c.next();!I.done;I=c.next()){I=I.value.rules;if(!I)break;I=_.Q(I);for(I=I.next();!I.done;I=I.next())return _.D(I.value,_.tLH)}};
Cir=function(G){if(G){G=_.Q(xhr(G));for(var c=G.next();!c.done;c=G.next()){c=c.value.rules;if(!c)break;c=_.Q(c);for(c=c.next();!c.done;c=c.next())return _.D(c.value,dhu)}}};
Xbj=function(G){if(G){G=_.Q(xhr(G));for(var c=G.next();!c.done;c=G.next()){c=c.value.rules;if(!c)break;c=_.Q(c);for(c=c.next();!c.done;c=c.next())return _.D(c.value,HFu)}}};
y8d=function(G){G=/^https?:\/\//.test(G)?G:"http://"+G;try{var c=_.IW(G)}catch(I){return!1}if(c.toString()!==G)return!1;G=c.JSC$10201_domain_.split(".");return G.length>1&&G.every(function(I){return!!I})};
gd1=function(G,c,I,R){var Z;R=(Z=R.structuredContextNoteData)==null?void 0:Z.createCommentEndpoint;if(Z=_.D(R,_.fdV))return Z.commentText=_.Cp(G),Z.videoPositionMention=c,Z.sources=I,R};
Y$u=function(G){return G==null?void 0:G.stringValue};
cOd=function(G,c,I){G=G.map(function(R,Z){return{listItemViewModel:{title:R.title,subtitle:R.subtitle,leadingImage:R.leadingImage,trailingImage:Z===c?GOr:void 0,rendererContext:{commandContext:{onTap:R.onTap}}}}});
return Object.assign({},I&&{header:{panelHeaderViewModel:{title:I}}},{content:{listViewModel:{listItems:G}}})};
IZr=function(G,c){if(G&&c)switch(c){case "SELECTION_TYPE_BOOL":return G.boolValue;case "SELECTION_TYPE_INT":return G.intValue;case "SELECTION_TYPE_STRING":return G.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return G.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return G.timePickerFormatValue}};
RgG=function(G){var c;G=(c=G.options)==null?void 0:c.findIndex(function(I){return I.isSelected});
return G===void 0?-1:G};
ZRH=function(G,c,I){var R=function(){return G().label},Z={},K=_.O3("ytDropdownViewModelLabel",(Z.ytDropdownViewModelLabelError=c,Z));
return _.e(_.l,{cond:function(){return G().label&&!(I()===-1&&G().label&&!G().placeholderText)},
then:function(){return _.e("div",{class:K},_.e(_.ul,{text:R}))}})};
KYH=function(G,c){var I={};I=_.O3("ytDropdownViewModelTitle",(I.ytDropdownViewModelTitlePlaceholder=function(){return c()===-1},I));
return _.e("div",{class:I},_.e(_.ul,{text:function(){var R=G();var Z=c();if(Z===-1)R=R.placeholderText?R.placeholderText:R.label;else{var K,m;R=(K=R.options)==null?void 0:(m=K[Z])==null?void 0:m.title}return R}}))};
P6W=function(G,c){var I=function(){return G().hint};
return _.e(_.FG,null,_.e(_.l,{cond:function(){return I()&&!c()},
then:function(){return _.e("div",{class:_.O3("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.e(_.ul,{text:I,className:"ytDropdownViewModelSupportText"}))}}),_.e(_.l,{cond:c,
then:function(){return _.e("div",{id:"dropdown-view-model-error",role:"alert",class:_.O3("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.e(_.F6,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.e(_.ul,{text:c,className:"ytDropdownViewModelSupportText"}))}}))};
QQd=function(G,c){var I=_.wH().resolve(_.vMW);_.tI(function(){var R=G().id;R&&I!=null&&I.dropdownMap.set(R,c)})};
aZH=function(G){G=_.D(G.scheduleButton,my0);G=_.D(G==null?void 0:G.primaryButton,_.uv);G=_.D(G==null?void 0:G.onTap,_.JN);var c,I,R=((I=_.D(G,_.RP))==null?void 0:I.commands)||[G];I=_.Q(R);for(G=I.next();!G.done&&!(c=_.D(G.value,_.Jhe));G=I.next());var Z;c=(Z=c)==null?void 0:Z.createBroadcastRequest;if(!c)throw Error("fk");return c};
Nqu=function(G,c,I){I=I===void 0?{}:I;var R,Z;return _.T(function(K){if(R=Tqu(c))return K.return(R);(Z=ORG(G,c,I))&&egW(c,Z);return K.return(Z)})};
egW=function(G,c){var I=lZd(G);I&&c.then(function(R){_.wH().resolve(_.dQ).put(I,new _.CI({innertubeResponse:R}))})};
Tqu=function(G){if(G=lZd(G)){var c=_.wH().resolve(_.dQ);if(c.has(G))return c.get(G).then(function(I){return I==null?void 0:_.mG(I)})}return null};
lZd=function(G){var c=_.D(G.endpoint,_.fR);if(c!=null&&c.videoId)return c={videoId:c.videoId},_.v("web_imp_player_mute_params")&&(c.mutedAtStart=G.startPlaybackInMutedState),_.i6("inline_playback",c)};
ORG=function(G,c,I){G=_.CQ(G,c.endpoint,qQ$(c,I)).then(function(R){return R});
return Promise.resolve(G)};
qQ$=function(G,c){c=_.v("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!G.startPlaybackInMutedState},c):Object.assign({},{vis:5,autonav:"1"},c);var I;c={contentPlaybackContext:_.lJ(c,(I=_.D(G.endpoint.commandMetadata,_.Pd))==null?void 0:I.url,window.location.href)};_.v("web_imp_player_mute_params")&&(c.overrideMutedAtStart=!G.startPlaybackInMutedState);return c};
Dyd=function(G,c){var I=window.MutationObserver;I&&(wqH=new I(function(R,Z){R=_.Q(R);for(var K=R.next();!K.done;K=R.next()){K=K.value;var m;if(m=K.type==="childList"&&K.target)a:{m=G;K=FYu(K.target);m=FYu(m);for(var a=null,O=0;O<K.length;O++)if(m.includes(K[O])){if(O===0){m=!1;break a}a=K[O];break}a?(K=n0H(K,a),m=n0H(m,a),m=K<m):m=!1}if(m){c();Z.disconnect();break}}}),(I=v0W())&&wqH.observe(I,{childList:!0,
subtree:!0}))};
v0W=function(){var G=document.getElementsByTagName("ytd-rich-grid-renderer");if(G.length>0)return G[0];G=document.getElementsByTagName("ytd-section-list-renderer");return G.length>0?G[0]:null};
FYu=function(G){for(var c=[];G;)c.push(G),G=G.parentElement;return c};
n0H=function(G,c){var I=Array.from(c.children);c=G.indexOf(c);return c>0?I.indexOf(G[c-1]):-1};
ep=function(G,c,I){I=I===void 0?{}:I;return _.mJ(G,I,c)};
o0d=function(G){switch(G){case "MUSIC":return!0;default:return!1}};
ulu=function(G){if(G=G==null?void 0:G.find(function(R){var Z,K;return((Z=_.D(R,Uyr))==null?void 0:(K=Z.inlinePlaybackBadgeData)==null?void 0:K.replicateAsTimestamp)===!0}))if(G=_.D(G,Uyr),G==null?0:G.icon){var c,I;
if((G=(c=_.muq(G.icon))==null?void 0:(I=c.clientResource)==null?void 0:I.imageName)&&o0d(G))return G}};
bRd=function(G){return G==null?void 0:G.filter(function(c){return c.premiereTrailerBadgeRenderer})};
kOg=function(G){var c,I=G==null?void 0:(c=G.find(function(O){return O.thumbnailOverlayTimeStatusRenderer}))==null?void 0:c.thumbnailOverlayTimeStatusRenderer,R,Z;
if((I==null?0:(R=I.icon)==null?0:R.iconType)&&o0d(I==null?void 0:(Z=I.icon)==null?void 0:Z.iconType)){var K;return{icon:I==null?void 0:(K=I.icon)==null?void 0:K.iconType}}var m;if(c=G==null?void 0:(m=G.find(function(O){return O.thumbnailOverlayBadgeViewModel}))==null?void 0:m.thumbnailOverlayBadgeViewModel)if(m=ulu(c.thumbnailBadges))return{icon:m};
var a;if(G=G==null?void 0:(a=G.find(function(O){return O.thumbnailBottomOverlayViewModel}))==null?void 0:a.thumbnailBottomOverlayViewModel)if(a=ulu(G.badges))return{icon:a};
return{}};
SQ0=function(G,c){var I=new sQ0(function(K){Z(K)},c);
c=_.Q(_.ks(LYF(I),void 0,"D2uee"));var R=c.next().value,Z=c.next().value;_.xs(function(){Promise.resolve().then(function(){var K,m=(K=G())!=null?K:{};I.playerControlsData=m;I.lastSeenPlayerApi=_.xX(m.playerApi);AO0(I)});
_.ty(function(){$yW(I)})},"xfRk8b");
return R};
pq1=function(G){return function(c){var I=G(),R={playerState:c};if(c===1){var Z;(Z=I.playerApi)==null||Z.loadModule("captions")}if(c===0){var K;(K=I.playerApi)==null||K.unloadModule("captions")}c!==-1&&I.setState(R)}};
MyH=function(G){return function(c){G().setState({playbackRate:c})}};
VyG=function(G){return function(c){var I=G(),R=I.playerApi,Z=R==null?void 0:R.getVideoData(),K=(Z==null?void 0:Z.isLive)||!1;Z=Z==null?void 0:Z.video_id;K={videoDuration:I0G(R||void 0),isLive:K,videoId:Z};K.videoId!==I.videoId&&(K=Object.assign({},_.Vzg(R),K));if(c==null?0:c.playertype)K.playerType=c.playertype;if(R){K.captionsAvailable=_.z20(R);c=K;var m;Z=(m=R.getStoryboardLevel(R.getNumberOfStoryboardLevels()-1))==null?void 0:m.intervalMs;c.storyboardInterval=Z?Z/1E3:void 0;K.captionsAvailable&&
(K.captionsEnabled=_.Et$(R))}K.volumeMuted=!(R==null||!R.isMuted());I.setState(K)}};
zgF=function(G){return function(c){var I=G(),R=I.playerApi;if(R){var Z=R.getPresentingPlayerType();c={playedTime:c||0,percentLoaded:R.getVideoLoadedFraction(),playerType:Z};I.playerState===0&&(c.playedTime=I.videoDuration);I.isLive&&(Z=R.getProgressState(Z),c.playedTime-=Z.seekableStart,c.videoDuration=I0G(R));if(I.playerType===1)R=!1;else{var K;if((K=I.uxConfig)==null?0:K.showCuedOverlay){var m;R=!((m=I.playerApi)==null?0:m.getPlayerStateObject(I.playerType).isDomPaused)}else R=!0}R&&delete c.playedTime;
I.setState(c)}}};
E0j=function(G){return function(){var c=G(),I,R,Z,K={volume:(Z=(I=c.playerApi)==null?void 0:I.getVolume())!=null?Z:0,volumeMuted:!((R=c.playerApi)==null||!R.isMuted())};c.setState(K)}};
JOd=function(G){return function(){var c=G(),I=c.playerApi;if(I){var R={captionsAvailable:_.z20(I)};R.captionsAvailable&&(R.captionsEnabled=_.Et$(I));c.setState(R)}}};
WYj=function(G){return{appApi:Object.assign({},_.sVr(),{showCaptionsToggleToast:function(c){var I,R;(R=(I=G()).showCaptionsToggleToast)==null||R.call(I,c)},
openInMiniplayer:function(){var c,I;(I=(c=G()).openInMiniplayer)==null||I.call(c)}})}};
iRu=function(G,c){var I,R,Z;return!!(G==null?0:(I=G.playerResponse)==null?0:(R=I.playerConfig)==null?0:(Z=R.inlinePlaybackConfig)==null?0:Z.showScrubbingControls)&&!(c==null?0:c.hideScrubbingControls)};
_.fZr=function(G){var c=!G.miniplayerIsActive;return[5,2,0].includes(G.miniplayerPlaybackState)||c};
Bq7={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};rOj=function(G){this.onStepChangeCallback=function(){};
this.flowRenderer=G};
rOj.prototype.getCurrentStep=function(){var G=this,c;return((c=this.flowRenderer.steps)!=null?c:[]).map(function(I){return _.D(I,_.KJ)}).find(function(I){return I&&I.stepId===G.currentStepId})};
jQr=function(G,c){var I=c.flowStateEntityKey,R=G.flowStates.get(I);if(R)return R;c=new rOj(c);G.flowStates.set(I,c);return c};
xyu=function(G,c){for(var I=_.Q(G.flowStates.entries()),R=I.next();!R.done;R=I.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;if(Z.flowRenderer.targetId===c){G.flowStates.delete(R);break}}};
tyF=function(G,c){G.onStepChangeCallback=c;G.onStepChangeCallback(G.getCurrentStep())};
hgW=function(G,c){var I=G.getCurrentStep();if(I&&I.stepId===c)return!0;var R;return((R=G.flowRenderer.steps)!=null?R:[]).map(function(Z){return _.D(Z,_.KJ)}).find(function(Z){return Z&&Z.stepId===c})?(G.currentStepId=c,G.onStepChangeCallback(G.getCurrentStep()),!0):!1};
dyg=function(G,c){var I,R,Z,K,m;_.T(function(a){if(!c.length)return a.return([]);I=[];R=_.Q(c);for(Z=R.next();!Z.done;Z=R.next())K=Z.value,(m=G.resolveIcon(K))&&!G.iconCache[m.url]&&I.push(_.sgd(G,m).then(function(){}).catch(function(){}));
return a.return(Promise.all(I))})};
C6G=function(G,c){var I=[];c=(new Set(c)).values();c=_.Q(c);for(var R=c.next();!R.done;R=c.next()){R=R.value;for(var Z=_.Q(Object.values(Bq7)),K=Z.next();!K.done;K=Z.next())I.push({iconName:R,iconStyle:K.value})}dyg(G.iconManager,I)};
_.HR7=function(G,c,I){var R=I!=null?I:G.iconsToFetch;R!=null&&R.length?c!==void 0&&c>=0?_.W_(_.dJ,function(){C6G(G,R)},c):C6G(G,R):Promise.resolve()};
_.XqF=_.e_(function(G,c,I){if(G.nextWireType_!==5)return!1;_.NN(c,I,_.Cy(G.decoder_));return!0},function(G,c,I){c=_.uTU(c);
c!=null&&(_.l5(G,I,5),_.qN(G.encoder_,c))},_.T7V);
yOu=[0,_.Yo,_.XqF,-1];_.g0j=function(){return _.R6({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
sQ0=function(G,c){var I=YQ$,R=this;this.renderFn=G;this.listeners=I;this.context=c;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Z;this.lastSeenPlayerApi=_.xX((Z=this.playerControlsData)==null?void 0:Z.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Vzg(),void 0);_.v("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){LYF(R).setState({playerState:-1});R.resetRecentlyNavigatedJobId&&
_.dJ.cancelJob(R.resetRecentlyNavigatedJobId);R.recentlyNavigated=!0;R.resetRecentlyNavigatedJobId=_.dJ.addJob(function(){R.recentlyNavigated=!1},8,1E4)})};
sQ0.prototype.setState=function(G){if(!_.v("mweb_player_skip_no_op_state_changes")||!RKd(G,this.state))if(this.state=Object.assign({},this.state,G),!_.v("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)G=-1,_.v("player_controls_log_creation_killswitch")||ZF1()||(G=(0,_.Fa)()),_.LC("pcu_s"),_.LC("pcu_se"),_.LC("pcu_rs"),this.renderFn(LYF(this)),_.LC("pcu_re"),KIW(G),_.dJ.addJob(function(){_.LC("pcu_ap")},8)};
var LYF=function(G){if(G.getPlayerApi)var c=_.xX(G.getPlayerApi());else{var I;c=_.xX((I=G.playerControlsData)==null?void 0:I.playerApi)}return Object.assign({},G.state,{setState:G.boundSetState,domMeasurements:{progressBarLineRect:G.progressBarLineRect},playerApi:c,appApi:G.context.appApi,playerContainer:G.context.playerContainer,playerControlContainer:G.context.playerControlContainer,uxConfig:G.context.uxConfig})},AO0=function(G){G.listeners.forEach(function(c){G.eventListenerCleanupFunctions.push(c.register(function(){return LYF(G)},
function(){return G.getData()}))})},$yW=function(G){G.eventListenerCleanupFunctions.forEach(function(c){c()});
G.eventListenerCleanupFunctions.length=0};
sQ0.prototype.getData=function(){return this.playerControlsData};var GsG=[0,_.N0,_.Rb,_.N0,-1,_.Rb,[0,_.Zn,_.P7,-1],_.N0,-1];var cH$=[0,[1,2,3],_.mU,-2];var ISF=[0,_.N0];var Rwg=new _.vS("crowdsourcedContextUserRatingFormFlowState");var ZCd=new _.vS("noteViewModel");var NT=new _.vS("abuseReportFlowState");var KJH=new _.vS("feedbackFormFlowState");var P8d=new _.vS("inputBoxViewModel");_.tLH=new _.vS("lengthValidationRule");var dhu=new _.vS("regexValidationRule");var HFu=new _.vS("selectedValidationRule");var QPW=[0,_.P7,_.N0,_.FC];var m2g=[0,_.Rb,-2,yOu];var aS0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(aS0,_.aR);aS0.prototype.getFeature=function(){return _.iU(this,6)};
aS0.prototype.hasFeature=function(){return _.Ud(_.Ly(this,6))!=null};var TUG=[0,_.P7];var OC0=_.b5(aS0,[0,_.Rb,-2,yOu,_.Rb,_.P7,-1,_.c7,-1,_.P7,-3,_.Sde,_.Zn,m2g,_.P7,-1,GsG,_.c7,_.P7,QPW,[0,[0,_.P7,-2,2,_.P7,-1,[0,_.P7],[0,_.N0,_.P7],[0,_.N0],[0,_.P7],2,[0,_.N0,2,[0,_.N0,-1],[0,_.ab,cH$],1,[0,ISF],1,[0,_.P7]],[0,_.Zn],[0,[1,2],_.T7,[0,_.P7],_.T7,[0,_.P7,_.e1,-1]],[0,_.N0],[0,_.P7,[0,[1,2,3,4],_.T7,[0,[0,_.P7],TUG],_.T7,[0,[0,_.P7],TUG],_.T7,[0,TUG],_.T7,[0,[0,_.P7],TUG]]],[0,_.P7],1,[0,_.P7,_.N0],1,[0,_.P7],[0,_.Zn],[0,_.P7,_.N0,-1,[0,_.P7,-4]],[0,_.P7],[0,_.P7,-2],1,[0,_.P7],[0,
_.Zn],[0,_.Zn,_.P7],1,[0,_.Zn],[0]],_.P7,_.N0,_.Yo,1,_.OF,_.P7,_.N0],_.Rb,_.OF,_.N0,-1,_.Rb]);var ew1=new _.vS("talkToRecsViewModel");var NUG=new _.vS("creatorGoalSetUpFlowDropdownItemViewModel");var lSd=new _.vS("creatorGoalSetUpFlowDropdownViewModel");var Uyr=new _.vS("thumbnailBadgeViewModel");_.qC7=new _.vS("checkboxGroupViewModel");var BcW=new _.vS("checkboxItemViewModel");_.wdW=new _.vS("radioButtonGroupViewModel");var FJd=new _.vS("radioButtonItemViewModel");var my0=new _.vS("panelFooterViewModel");var nD$=new _.vS("ypcCancelRecurrenceCommand");var vDW=new _.vS("cancellationFlowState");var $hj=new _.vS("premiumPurchaseFlowState");var D2u=new _.vS("surveyAnswerCardRenderer");var oDr=new _.vS("showMoreButtonRenderer");var U2g;var uLF,bCg=function(){if(uLF!==void 0)return uLF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;U2g===void 0&&(U2g=document.createElement("template"));var R=U2g;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return uLF=G};var l0=function(){var G=_.J.apply(this,arguments)||this;G.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";G.goalDescription="";G.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";G.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";G.startButtonId="start-button";G.exampleButtonId="example-button";return G};
_.u(l0,_.J);_.P=l0.prototype;_.P.getGoalDropdownItems=function(){var G,c;return(c=_.D((G=this.data)==null?void 0:G.purchaseTargetDropdown,lSd))==null?void 0:c.dropdownItems};
_.P.getTimerDropdownItems=function(){var G,c;return(c=_.D((G=this.data)==null?void 0:G.timerDropdown,lSd))==null?void 0:c.dropdownItems};
_.P.getColorDropdownItems=function(){var G,c;return(c=_.D((G=this.data)==null?void 0:G.colorDropdown,lSd))==null?void 0:c.dropdownItems};
_.P.getDropdownItemText=function(G){var c;return(c=_.D(G,NUG))==null?void 0:c.itemLabel};
_.P.getDropdownItemValue=function(G){G=_.D(G,NUG);return(G==null?void 0:G.timeLimit)||(G==null?void 0:G.purchaseTarget)||(G==null?void 0:G.eligiblePurchaseType)};
_.P.updateFlowState=function(G){_.ym(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:G}])};
_.P.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.P.updateGoalValue=function(G){this.goal=G.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.P.onTextValueChanged=function(G){this.goalDescription=G.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.P.updateTimerValue=function(G){this.timer=G.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.P.updateTierValue=function(G){this.tier=G.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.P.getButtonViewModel=function(G){G=(G==null?void 0:G.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var c,I=_.D((c=this.data)==null?void 0:c.startGoalButton,_.uv);return Object.assign({},I,{state:G})};
_.Nh.Object.defineProperties(l0,{template:{configurable:!0,enumerable:!0,get:function(){return bCg()}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],l0.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],l0.prototype,"goal",void 0);_.r([_.E(),_.h("design:type",Object)],l0.prototype,"goalDescription",void 0);_.r([_.E(),_.h("design:type",Object)],l0.prototype,"timer",void 0);_.r([_.E(),_.h("design:type",Object)],l0.prototype,"tier",void 0);
_.r([_.E(),_.h("design:type",Object)],l0.prototype,"startButtonId",void 0);_.r([_.E(),_.h("design:type",Object)],l0.prototype,"exampleButtonId",void 0);_.r([_.Em({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],l0);_.B(l0,"yt-creator-goal-set-up-flow-view-model",function(){return bCg()},{mode:0});var ksg;var sPF;var LJ0;var AHW=function(){return _.J.apply(this,arguments)||this};
_.u(AHW,_.J);_.r([_.E(),_.h("design:type",Object)],AHW.prototype,"data",void 0);_.r([_.Em({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],AHW);
_.B(AHW,"yt-survey-answer-card-renderer",function(){if(LJ0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;sPF===void 0&&(sPF=document.createElement("template"));var R=sPF;I.call(c,R.content.cloneNode(!0),G.content.firstChild);LJ0=G}G=LJ0;return G},{mode:2});var $2d;var SCG;var qT=function(){return _.J.apply(this,arguments)||this};
_.u(qT,_.J);_.P=qT.prototype;_.P.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.P.selectedItemChanged=function(G){_.ym(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[G.feedbackToken||""]}])};
_.P.surveyAnswerCardRendererClicked=function(G){if(G.target&&_.D(G.model.item,D2u)){var c=G.target;G=_.D(G.model.item,D2u);G.onTapCommand?_.cd(c,[G.onTapCommand],c):this.data.onTapCommand&&_.cd(c,[this.data.onTapCommand],c);this.selectedItemChanged(G)}};
_.P.checkIsCancellationStyle=function(G){return G==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.P.updateSelectedItemFromBinding=function(G){this.selectedItem=G.detail.value};
qT.prototype.onSelectedItemChanged=qT.prototype.onSelectedItemChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qT.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],qT.prototype,"selectedItem",void 0);_.r([_.E({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.h("design:type",Boolean)],qT.prototype,"isCancellationStyle",void 0);
_.r([_.wD("selectedItem"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qT.prototype,"onSelectedItemChanged",null);_.r([_.Em({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],qT);
_.B(qT,"yt-survey-flow-step-renderer",function(){if(SCG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;$2d===void 0&&($2d=document.createElement("template"));var R=$2d;I.call(c,R.content.cloneNode(!0),G.content.firstChild);SCG=G}G=SCG;return G},{mode:2});var wf=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return G};
_.u(wf,_.J);wf.prototype.handleSurveyFlowStepOptionChanged=function(G){this.ytdReduxBehavior.dispatch(_.R6({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:G}));_.ym(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],wf.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],wf.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wf.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],wf);
_.B(wf,"ytd-survey-flow-step-renderer",function(){if(ksg!==void 0)return ksg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ksg=G},{mode:1});_.zw0=_.W(function(G){var c=G.data;var I=G.hideDivider;var R=G.isChannelInfoCard;G={};return _.e("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.e("div",{class:_.O3("yt-profile-identity-info-view-model__frame",(G["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!c().channelBanner},G))},_.e(pdd,{profileIdentityInfoData:c}),_.e("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.e("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.e(_.sN,{data:function(){return c().avatar}},{avatarViewModel:_.qF})),_.e(MWd,{profileIdentityInfoData:c})),_.e(_.l,{cond:function(){return c().channelDescription},
then:function(Z){var K={};return _.e("div",{class:_.O3((K["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(R==null||!R())},K["yt-profile-identity-info-view-model__channel-description"]=function(){return!(R==null?0:R())},K))},Z)}}),_.e(VWH,{profileIdentityInfoData:c}),_.e(_.l,{cond:function(){return!(I==null?0:I())},
then:function(){return _.e("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"sh");
_.zw0.idomCompat=!0;var VWH=_.W(function(G){var c=G.profileIdentityInfoData;return _.e("div",{class:"yt-profile-identity-info-view-model__buttons"},_.e(_.fh,{each:function(){return c().subscribeButton?[c().subscribeButton,c().channelAccess]:[c().channelAccess]}},function(I){return _.e("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.e("div",{class:"yt-profile-identity-info-view-model--button"},_.e(_.sN,{data:function(){return I}},{buttonViewModel:_.BR,
subscribeButtonViewModel:_.qI})))}))},"th"),MWd=_.W(function(G){var c=G.profileIdentityInfoData;
return _.e("div",{class:"yt-profile-identity-info-view-model__trio"},_.e("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.e(ED$,{profileIdentityInfoData:c}),_.e(_.sN,{data:function(){return c().threeDotMenu}},{buttonViewModel:_.BR})),_.e(JH7,{profileIdentityInfoData:c}))},"uh"),ED$=_.W(function(G){var c=G.profileIdentityInfoData;
return _.e("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.e("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return c().channelDisplayName}),_.e(_.l,{cond:function(){return c().verifiedOrOacBadge},
then:function(I){return _.e("div",{class:"yt-profile-identity-info-view-model__badge"},_.e(_.yc,{data:function(){return{thumbnails:[{url:I().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"vh"),pdd=_.W(function(G){var c=G.profileIdentityInfoData;
return _.e("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.e(_.sN,{data:function(){var I=c().channelBanner;if(I)return{imageBannerViewModel:{image:I.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(I){return _.e("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.e(_.Sa,{data:I.data,
isPositionRelative:!0}))}}))},"wh"),JH7=_.W(function(G){var c=G.profileIdentityInfoData;
return _.e("div",{class:"yt-profile-identity-info-view-model__metadata"},_.e("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.e("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return c().channelHandle}),_.e(_.l,{cond:function(){return c().channelPronouns&&c().channelHandle},
then:function(){return _.e("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.e("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return c().channelPronouns})),_.e("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.e("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return c().leftOfBulletInfo}),_.e(_.l,{cond:function(){return c().leftOfBulletInfo&&c().rightOfBulletInfo},
then:function(){return _.e("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.e("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return c().rightOfBulletInfo})))},"xh");var WJW;var iC7=function(){return _.J.apply(this,arguments)||this};
_.u(iC7,_.J);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],iC7.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],iC7.prototype,"data",void 0);_.r([_.Jc({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],iC7);
_.B(iC7,"ytd-channel-history-renderer",function(){if(WJW!==void 0)return WJW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return WJW=G},{mode:1});var fSW;var BU7=function(){return _.J.apply(this,arguments)||this};
_.u(BU7,_.J);_.r([_.E(),_.h("design:type",Object)],BU7.prototype,"data",void 0);_.r([_.Jc({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],BU7);
_.B(BU7,"ytd-feature-enablement-info-renderer",function(){if(fSW!==void 0)return fSW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return fSW=G},{mode:1});var rHd;var jPu;var Fb=function(){var G=_.J.apply(this,arguments)||this;G.textBoxMaxLength=_.v("enable_tvod_campaign_code_integration")?15:12;return G};
_.u(Fb,_.J);_.P=Fb.prototype;_.P.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.P.onSubmit=function(){var G=this.data.serviceEndpoint,c=_.D(G,_.YZ);c&&G&&(c.couponCode=this.userInput,_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}}))};
_.P.validate=function(){var G=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=G&&!this.data.errorMessage;this.showErrorMessage=G&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.v("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.P.computeStyle=function(G){return G};
_.P.computeShowValidationBelowInput=function(G){return G!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.P.updateUserInputFromBinding=function(G){this.userInput=G.currentTarget.value};
_.P.updateShowErrorMessageFromBinding=function(G){this.showErrorMessage=G.detail.value};
_.Nh.Object.defineProperties(Fb.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Fb.prototype.dataChanged=Fb.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Fb.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],Fb.prototype,"userInput",void 0);_.r([_.E(),_.h("design:type",Boolean)],Fb.prototype,"disableApplyButton",void 0);_.r([_.E(),_.h("design:type",Boolean)],Fb.prototype,"hideApplyButton",void 0);
_.r([_.E(),_.h("design:type",Boolean)],Fb.prototype,"hideErrorMessage",void 0);_.r([_.E(),_.h("design:type",Boolean)],Fb.prototype,"showTick",void 0);_.r([_.E(),_.h("design:type",Boolean)],Fb.prototype,"showErrorMessage",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],Fb.prototype,"couponStyle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.h("design:type",Boolean)],Fb.prototype,"showValidationBelowInput",void 0);_.r([_.E(),_.h("design:type",Object)],Fb.prototype,"textBoxMaxLength",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fb.prototype,"dataChanged",null);
_.r([_.A("showTick","showErrorMessage","userInput"),_.h("design:type",String),_.h("design:paramtypes",[])],Fb.prototype,"validationState",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Fb);
_.B(Fb,"ytd-ypc-coupon-renderer",function(){if(jPu!==void 0)return jPu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return jPu=G},{mode:1});var n2=function(){return _.J.apply(this,arguments)||this};
_.u(n2,_.J);n2.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"}}}};
n2.prototype.computeStyle=function(G){return G};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],n2.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],n2.prototype,"buttonStyle",void 0);_.r([_.Jc({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],n2);
_.B(n2,"ytd-flow-bottom-bar-renderer",function(){if(rHd!==void 0)return rHd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return rHd=G},{mode:1});var x2d;var tWd;var hwd;var vs=function(){return _.J.apply(this,arguments)||this};
_.u(vs,_.J);vs.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vs.prototype.focus=function(G){this.title&&_.mp(this.title,G)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],vs.prototype,"data",void 0);_.r([_.nH("#title"),_.h("design:type",HTMLElement)],vs.prototype,"title",void 0);_.r([_.Jc({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],vs);
_.B(vs,"ytd-flow-top-bar-renderer",function(){if(hwd!==void 0)return hwd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return hwd=G},{mode:1});var d2j;var C8r;var HCF;var D8=function(){return _.J.apply(this,arguments)||this};
_.u(D8,_.J);D8.prototype.freeTextValueChanged=function(){_.ym(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
D8.prototype.updateFreeTextValueFromBinding=function(G){this.freeTextValue=G.detail.value};
_.Nh.Object.defineProperties(D8.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(c=(G=this.data)==null?void 0:G.responseMaxLength)!=null?c:500,R;return((R=this.freeTextValue)!=null?R:"").length>=I?"maxed-out":""}}});
D8.prototype.freeTextValueChanged=D8.prototype.freeTextValueChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],D8.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],D8.prototype,"freeTextValue",void 0);_.r([_.nH("#user-input"),_.h("design:type",HTMLTextAreaElement)],D8.prototype,"input",void 0);
_.r([_.A("freeTextValue"),_.h("design:type",Object),_.h("design:paramtypes",[])],D8.prototype,"characterLimitClass",null);_.r([_.wD("freeTextValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],D8.prototype,"freeTextValueChanged",null);_.r([_.Em({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],D8);
_.B(D8,"yt-free-text-input-flow-step-renderer",function(){if(HCF===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;C8r===void 0&&(C8r=document.createElement("template"));var R=C8r;I.call(c,R.content.cloneNode(!0),G.content.firstChild);HCF=G}G=HCF;return G},{mode:2});var oA=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return G};
_.u(oA,_.J);oA.prototype.handleFreeTextFlowStepInputChanged=function(G){_.ym(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],oA.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],oA.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oA.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],oA);
_.B(oA,"ytd-free-text-input-flow-step-renderer",function(){if(d2j!==void 0)return d2j;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return d2j=G},{mode:1});var XdF;var yH7;var gDH=function(){return _.J.apply(this,arguments)||this};
_.u(gDH,_.J);_.r([_.E(),_.h("design:type",Object)],gDH.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],gDH);
_.B(gDH,"ytd-metadata-line-renderer",function(){if(yH7!==void 0)return yH7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return yH7=G},{mode:1});var Ul=function(){return _.J.apply(this,arguments)||this};
_.u(Ul,_.J);Ul.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ul.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ul.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ul.prototype,"isMasthead",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Ul);
_.B(Ul,"ytd-media-product-renderer",function(){if(XdF!==void 0)return XdF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return XdF=G},{mode:1});var YCd;var u0=function(){return _.J.apply(this,arguments)||this};
_.u(u0,_.J);u0.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
u0.prototype.onBillboardImageLoaded=function(){_.Xl(this.hostElement,"yt-refit")};
u0.prototype.onBillboardImageLoaded=u0.prototype.onBillboardImageLoaded;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],u0.prototype,"data",void 0);_.r([_.nH("#billboardImage"),_.h("design:type",Object)],u0.prototype,"billboardImage",void 0);_.r([_.qY("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],u0.prototype,"onBillboardImageLoaded",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],u0);
_.B(u0,"ytd-billboard-masthead-renderer",function(){if(YCd!==void 0)return YCd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return YCd=G},{mode:1});var GvG;var b0=function(){var G=_.J.apply(this,arguments)||this;G.smallSize=!1;return G};
_.u(b0,_.J);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],b0.prototype,"ytComponentBehaviorType",void 0);_.r([_.E(),_.h("design:type",Object)],b0.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],b0.prototype,"smallSize",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],b0);
_.B(b0,"ytd-bullet-formatted-string",function(){if(GvG!==void 0)return GvG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return GvG=G},{mode:1});var cXu;var kk=function(){return _.J.apply(this,arguments)||this};
_.u(kk,_.J);kk.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kk.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],kk);
_.B(kk,"ytd-offer-detail-renderer",function(){if(cXu!==void 0)return cXu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return cXu=G},{mode:1});var IYd;var sl=function(){return _.J.apply(this,arguments)||this};
_.u(sl,_.J);sl.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sl.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],sl);
_.B(sl,"ytd-offer-detail-step-renderer",function(){if(IYd!==void 0)return IYd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return IYd=G},{mode:1});var RR7;var L2=function(){var G=_.J.apply(this,arguments)||this;G.isInOfferModule=!1;return G};
_.u(L2,_.J);_.P=L2.prototype;_.P.computeHasEndpoint=function(){var G;return!((G=this.data)==null||!G.onClickCommand)};
_.P.dataChanged=function(){var G;if((G=this.data)==null?0:G.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.P.detached=function(){var G;if((G=this.data)==null?0:G.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.P.handleClickEvent=function(){var G;if((G=this.data)==null?0:G.onClickCommand){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.onClickCommand)}};
_.P.onContentKeyDown=function(G){G.key==="Enter"?this.handleClickEvent(G):G.key===" "&&G.preventDefault()};
_.P.onContentKeyUp=function(G){G.key===" "&&this.handleClickEvent(G)};
L2.prototype.dataChanged=L2.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],L2.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],L2.prototype,"data",void 0);_.r([_.E({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],L2.prototype,"hasEndpoint",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L2.prototype,"isInOfferModule",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L2.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],L2);
_.B(L2,"ytd-channel-masthead-renderer",function(){if(RR7!==void 0)return RR7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return RR7=G},{mode:1});var Zp1;var AL=function(){var G=_.J.apply(this,arguments)||this;G.thumbnailObjectFit="CONTAIN";G.thumbnailObjectPosition="LEFT";G.isExpanded=!1;return G};
_.u(AL,_.J);_.P=AL.prototype;_.P.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.P.dataChanged=function(){this.resetStates()};
_.P.computeisTapOnOfferInfoContainerEnabled=function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.P.onExpandBtnClick=function(){var G,c=_.D((G=this.data)==null?void 0:G.showMoreButtonRenderer,oDr);c&&_.yI(_.DP(),c.trackingParams);this.isExpanded=!this.isExpanded};
_.P.onOfferInfoClick=function(G){this.isTapOnOfferInfoContainerEnabled&&(_.Gf(_.CE(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.c8(_.CE(G)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.P.onBottomBarClick=function(){this.executeTapCommand()};
_.P.executeTapCommand=function(){var G,c=(G=this.data)==null?void 0:G.tapCommand;c&&this.ytComponentBehavior.resolveCommand(c)};
_.P.resetStates=function(){this.isExpanded=!1};
_.Nh.Object.defineProperties(AL.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var G=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),c,I,R;return((c=this.data)==null?void 0:c.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&G&&!!((I=this.data)==null?0:(R=I.benefits)==null?0:R.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((c=_.D((G=this.data)==null?void 0:G.showMoreButtonRenderer,oDr))==null?void 0:c.showMoreButtonTitle)||((I=this.data)==null?void 0:I.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((c=_.D((G=this.data)==null?void 0:G.showMoreButtonRenderer,oDr))==null?void 0:c.showLessButtonTitle)||((I=this.data)==null?void 0:I.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var G;return(G=this.showLessButtonTitle)!=null?G:""}var c;return(c=this.showMoreButtonTitle)!=null?c:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((c=this.data)==null?0:c.footerTitle)||((I=this.data)==null?0:I.footerSubtitle))}}});
AL.prototype.dataChanged=AL.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],AL.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",String)],AL.prototype,"thumbnailObjectFit",void 0);
_.r([_.E(),_.h("design:type",String)],AL.prototype,"thumbnailObjectPosition",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.h("design:type",Boolean)],AL.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.r([_.E(),_.h("design:type",Object)],AL.prototype,"isExpanded",void 0);_.r([_.E(),_.h("design:type",Object)],AL.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.footerIcon)"}),_.h("design:type",String)],AL.prototype,"icon",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AL.prototype,"dataChanged",null);_.r([_.A("data.thumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AL.prototype,"hasThumbnail",null);_.r([_.A("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AL.prototype,"enableExpandButton",null);
_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AL.prototype,"enableOfferContentIcon",null);_.r([_.A("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],AL.prototype,"showMoreButtonTitle",null);_.r([_.A("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],AL.prototype,"showLessButtonTitle",null);
_.r([_.A("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.h("design:type",String),_.h("design:paramtypes",[])],AL.prototype,"expandedBtnText",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],AL.prototype,"enableBottomBar",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],AL);
_.B(AL,"ytd-offer-card-renderer",function(){if(Zp1!==void 0)return Zp1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Zp1=G},{mode:1});var KxG;var $k=function(){return _.J.apply(this,arguments)||this};
_.u($k,_.J);$k.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"}}}};
$k.prototype.onClick=function(G){if(!_.Gf(G.composedPath()||[],this.hostElement,["A".toString()])){var c,I;if((G=(I=_.D((c=this.data)==null?void 0:c.actionButton,_.vE))==null?void 0:I.command)&&!this.ytComponentBehavior.resolveCommand(G)){var R;(R=_.DP())==null||R.clickCommand(G);_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}})}}};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],$k.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$k.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],$k);
_.B($k,"ytd-offer-content-renderer",function(){if(KxG!==void 0)return KxG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return KxG=G},{mode:1});var PnW;var Sp=function(){return _.J.apply(this,arguments)||this};
_.u(Sp,_.J);Sp.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Nh.Object.defineProperties(Sp.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.title)||!((c=this.data)==null||!c.description)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Sp.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Sp.prototype,"hasHeaderData",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Sp);
_.B(Sp,"ytd-offer-section-renderer",function(){if(PnW!==void 0)return PnW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return PnW=G},{mode:1});var Q6W;var p2=function(){return _.J.apply(this,arguments)||this};
_.u(p2,_.J);
p2.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"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],p2.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],p2);
_.B(p2,"ytd-offer-selection-step-renderer",function(){if(Q6W!==void 0)return Q6W;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Q6W=G},{mode:1});var m9H;var MT=function(){return _.J.apply(this,arguments)||this};
_.u(MT,_.J);MT.prototype.computeStyle=function(G){return G};
MT.prototype.computeImageWidth=function(G){return G==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.r([_.E({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.h("design:type",String)],MT.prototype,"containerStyle",void 0);_.r([_.E({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.h("design:type",String)],MT.prototype,"imageWidth",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],MT.prototype,"data",void 0);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],MT);
_.B(MT,"ytd-confirmation-masthead-renderer",function(){if(m9H!==void 0)return m9H;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return m9H=G},{mode:1});var aYH;var V7=function(){return _.J.apply(this,arguments)||this};
_.u(V7,_.J);V7.prototype.computeStyle=function(G){return G};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],V7.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.h("design:type",String)],V7.prototype,"containerStyle",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],V7);
_.B(V7,"ytd-purchase-complete-detail-renderer",function(){if(aYH!==void 0)return aYH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return aYH=G},{mode:1});var TLd;var zN=function(){var G=_.J.apply(this,arguments)||this;G.scriptsAppended=!1;return G};
_.u(zN,_.J);zN.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"}}}};
zN.prototype.onDataChanged=function(){var G=this.get("data.gtmId");G&&(_.Zs(G,_.H1("GL","")),this.setupConversionTracking())};
zN.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("noscript");G.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(G);this.scriptsAppended=!0}};
zN.prototype.onDataChanged=zN.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zN.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],zN.prototype,"scriptsAppended",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zN.prototype,"onDataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],zN);
_.B(zN,"ytd-purchase-complete-step-renderer",function(){if(TLd!==void 0)return TLd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return TLd=G},{mode:1});var Opg;var El=function(){return _.J.apply(this,arguments)||this};
_.u(El,_.J);El.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],El.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],El);
_.B(El,"ytd-ypc-transaction-error-message-renderer",function(){if(Opg!==void 0)return Opg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Opg=G},{mode:1});var eRu;var NL1;var JL=function(){var G=_.J.apply(this,arguments)||this;G.handlePhoneVerificationSuccess=function(c){if(G.isValidPhoneVerificationCompletionMessageEvent(c)){var I;((I=G.data)==null?0:I.nextStepCommand)&&G.ytComponentBehavior.resolveCommand(G.data.nextStepCommand)}};
return G};
_.u(JL,_.J);JL.prototype.isValidPhoneVerificationCompletionMessageEvent=function(G){if(G.data!=="yt-phone-verification-complete")return!1;G=_.O2(G.origin);return G!==null&&G.includes("youtube.com")};
JL.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
JL.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],JL.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],JL.prototype,"data",void 0);_.r([_.Em({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],JL);
_.B(JL,"yt-feature-enablement-soft-entry-renderer",function(){if(NL1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;eRu===void 0&&(eRu=document.createElement("template"));var R=eRu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);NL1=G}G=NL1;return G},{mode:1});var lYj;var q47;var wYu;var FxW;var nV7=function(){return _.J.apply(this,arguments)||this};
_.u(nV7,_.J);_.r([_.E(),_.h("design:type",Object)],nV7.prototype,"data",void 0);_.r([_.Em({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],nV7);
_.B(nV7,"yt-benefits-item-renderer",function(){if(FxW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;wYu===void 0&&(wYu=document.createElement("template"));var R=wYu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);FxW=G}G=FxW;return G},{mode:2});var vVF;var D9d;var Ws=function(){return _.J.apply(this,arguments)||this};
_.u(Ws,_.J);Ws.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ws.prototype.computeisWithoutPadding=function(){var G;return((G=this.data)==null?void 0:G.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ws.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.h("design:type",Boolean)],Ws.prototype,"isWithoutPadding",void 0);_.r([_.Em({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Ws);
_.B(Ws,"yt-benefits-section-renderer",function(){if(D9d===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;vVF===void 0&&(vVF=document.createElement("template"));var R=vVF;I.call(c,R.content.cloneNode(!0),G.content.firstChild);D9d=G}G=D9d;return G},{mode:2});var i0=function(){return _.J.apply(this,arguments)||this};
_.u(i0,_.J);i0.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
i0.prototype.computeisUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],i0.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.h("design:type",Boolean)],i0.prototype,"isUsingLargeWidth",void 0);_.r([_.Em({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],i0);
_.B(i0,"yt-benefits-flow-step-renderer",function(){if(q47===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;lYj===void 0&&(lYj=document.createElement("template"));var R=lYj;I.call(c,R.content.cloneNode(!0),G.content.firstChild);q47=G}G=q47;return G},{mode:2});var oVF;var U9W;var f2=function(){return _.J.apply(this,arguments)||this};
_.u(f2,_.J);f2.prototype.checkIsUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.r([_.E(),_.h("design:type",Object)],f2.prototype,"data",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.h("design:type",Boolean)],f2.prototype,"isUsingLargeWidth",void 0);_.r([_.Em({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],f2);
_.B(f2,"yt-confirmation-flow-step-renderer",function(){if(U9W===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;oVF===void 0&&(oVF=document.createElement("template"));var R=oVF;I.call(c,R.content.cloneNode(!0),G.content.firstChild);U9W=G}G=U9W;return G},{mode:2});var uf0;var bp0;var kv0=function(){return _.J.apply(this,arguments)||this};
_.u(kv0,_.J);_.r([_.E(),_.h("design:type",Object)],kv0.prototype,"data",void 0);_.r([_.Em({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],kv0);
_.B(kv0,"yt-info-flow-step-renderer",function(){if(bp0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;uf0===void 0&&(uf0=document.createElement("template"));var R=uf0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);bp0=G}G=bp0;return G},{mode:2});var s6F;var Lxg;var AXH=function(){return _.J.apply(this,arguments)||this};
_.u(AXH,_.J);_.r([_.E(),_.h("design:type",Object)],AXH.prototype,"data",void 0);_.r([_.Em({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],AXH);
_.B(AXH,"yt-info-list-flow-step-renderer",function(){if(Lxg===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;s6F===void 0&&(s6F=document.createElement("template"));var R=s6F;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Lxg=G}G=Lxg;return G},{mode:2});var $9$=_.W(function(G){var c=G.data;return _.e("styled-text-view-model",{class:_.O3("ytStyledTextViewModelHost",function(){return nd0(c().fontAttributes)},function(){return FIW(c().color)})},_.e(_.ul,{text:function(){return c().text},
ariaLabel:function(){var I,R,Z;return(Z=(I=c().accessibility)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label)!=null?Z:""}}))},"yh");
$9$.idomCompat=!0;var S4u=_.W(function(G){var c=function(){var Z,K,m,a;return(a=(m=(Z=G.alt)==null?void 0:Z.call(G))!=null?m:(K=G.data().accessibilityData)==null?void 0:K.label)!=null?a:""},I=function(){return G.data().imageWidth},R=function(){return G.data().imageHeight};
return _.e("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.e(_.l,{cond:function(){var Z=G.data();if(Z){var K,m,a;var O=((K=_.wH().resolve(_.qR(_.d0)))==null?0:K())?(m=Z.imageDark)!=null?m:Z.imageLight:(a=Z.imageLight)!=null?a:Z.imageDark}else O=void 0;return O},
then:function(Z){return _.e(_.yc,Object.assign({},G,{data:Z,alt:c,targetWidth:I,targetHeight:R,preserveHeight:!0,preserveWidth:!0}))}}))},"zh");
S4u.idomCompat=!0;var Bs=_.W(function(G){var c=G.data;G=_.gD(function(){return c().slots},[]);
var I=_.gD(function(){return c().layoutProperties},{}),R=_.wH().resolve(_.HI);
return _.e("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:eK0(I,R)},_.e(_.fh,{each:G,keyBy:"INDEX"},function(Z){return _.e("div",{class:"ytContainerLayoutViewModelSlot",style:eK0(function(){return Z().layoutProperties},R)},_.e(_.sN,{data:function(){return Z().contents}},{containerLayoutViewModel:Bs,
badgeViewModel:_.Jp,buttonViewModel:_.BR,styledTextViewModel:$9$,contentPreviewImageViewModel:function(K){return _.e(_.hp,{data:K.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(K){return _.e(S4u,{data:K.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ah");
Bs.idomCompat=!0;var pYu=_.W(function(G){var c=G.data;var I=G.stateFns;var R=function(){var N=c(),q=N.productId;return!(!N.clearGroupId&&!q)},Z=function(){var N=c(),q=N.clearGroupId;
return(N=N.productId)?I().isProductSelected(N):q?I().getSelectedProductByGroupId(q)==null:!1},K=function(N){var q=c(),w=q.clearGroupId;
if(q=q.productId)I().onProductSelected(q),N==null||N.forEach(function(F){_.r0(F)});
else if(w)I().onClearGroupSelected(w)},m=function(){var N=c(),q=N.clearGroupId;
if(N=N.productId){var w;return"group:"+(((w=I().getProductById(N))==null?void 0:w.groupId)||"")}return q?"group:"+q:""},a=_.gD(function(){return c().header},[]),O=_.gD(function(){return c().body},[]);
return _.e("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.e(_.l,{cond:function(){return a().length>0||R()},
then:function(){return _.e("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.e("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.e(_.sN,{data:a},{containerLayoutViewModel:function(N){return _.e("div",{class:"ytPdpCardSectionViewModelContentItem"},_.e(Bs,{data:N.data}))},
styledTextViewModel:function(N){return _.e("div",{class:"ytPdpCardSectionViewModelContentItem"},_.e($9$,{data:N.data}))}})),_.e(_.l,{cond:R,
then:function(){return _.e("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.e(_.kR,{checked:Z,name:m,onChange:function(){K(c().onSelect)}}))}}))}}),_.e(_.l,{cond:function(){return O().length>0},
then:function(){return _.e("div",null,_.e(_.sN,{data:O},{containerLayoutViewModel:function(N){return _.e("div",{class:"ytPdpCardSectionViewModelContentItem"},_.e(Bs,{data:N.data}))}}))}}))},"Bh");
pYu.idomCompat=!0;var MCr=_.W(function(G){var c=G.data;var I=G.stateFns;return _.e("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.e(_.l,{cond:function(){return c().banner},
then:function(R){return _.e("div",{class:"ytPdpCardViewModelBanner"},_.e(_.ul,{text:R}))}}),_.e(_.sN,{data:function(){return c().sections}},{pdpCardSectionViewModel:function(R){R=R.data;
var Z={};return _.e("div",{class:_.O3("ytPdpCardViewModelSectionContainer",(Z.ytPdpCardViewModelShowDividers=function(){return c().showDividers},Z))},_.e(pYu,{data:R,
stateFns:I}))}}))},"Ch");
MCr.idomCompat=!0;var VCF=_.W(function(G){var c=G.data;var I=G.isOverlay;G={};return _.e("pdp-masthead-view-model",{class:_.O3("ytPdpMastheadViewModelHost",(G.ytPdpMastheadViewModelIsOverlay=I,G))},_.e(_.sN,{data:function(){return c().image}},{contentPreviewImageViewModel:_.hp,
themedImageViewModel:function(R){return _.e(S4u,{data:R.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.e(_.l,{cond:function(){return c().title},
then:function(R){return _.e("h1",{class:"ytPdpMastheadViewModelHeading"},_.e(_.ul,{text:R,isOverlay:I}))}}),_.e(_.fh,{each:function(){var R;
return(R=c().finePrint)!=null?R:[]}},function(R){return _.e("div",{class:"ytPdpMastheadViewModelFinePrint"},_.e(_.ul,{text:R,
isOverlay:I}))}))},"Dh");
VCF.idomCompat=!0;var zRF=_.W(function(G){var c=G.data;var I=G.stateFns;var R=function(){return"pdp-pricing-group-selector-"+c().pricingGroupAttributeIds},Z=_.gD(function(){return c().pricingGroupSelectorSectionHeader});
return _.e("pdp-pricing-group-selector-view-model",null,_.e(_.l,{cond:function(){return!!Z()},
then:function(){return _.e(_.sN,{data:Z},{sectionHeaderViewModel:function(K){K=K.data;var m={};return _.e("div",{class:_.O3("ytPdpPricingGroupSelectorViewModelSectionHeader",(m.ytPdpPricingGroupSelectorViewModelFullBleed=!0,m.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,m))},_.e(_.I4,{data:K}))}})}}),_.e("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.e(_.fh,{each:function(){var K=I().getSelectedProductByGroupId(c().groupId);
if(!K)return _.dj(Error("$j`"+c().groupId)),[];var m,a=(m=c().pricingGroupAttributeIds)!=null?m:[],O;if((O=K.pricingGroups)==null||!O.length||!a.length)return[];m=K.pricingGroups.filter(function(F){return a.length?F.pricingGroupAttributes.every(function(n){return a.includes(n)}):!1});
K=[];if(a.length>0){m=[].concat(_.jn(m));O=_.Q(a);for(var N=O.next(),q={};!N.done;q={targetAttrId:void 0},N=O.next())q.targetAttrId=N.value,N=m.findIndex(function(F){return function(n){return n.pricingGroupAttributes.includes(F.targetAttrId)}}(q)),N!==-1&&(K.push(m[N]),m.splice(N,1))}var w=I().getSelectedPricingGroupAttributesByGroupId(c().groupId);
return K.map(function(F){var n=!1;w&&F.pricingGroupAttributes&&(n=TN(F.pricingGroupAttributes,w));return{pricingGroup:F,isSelected:n}})},
keyBy:function(K){return K.pricingGroup.pricingGroupId}},function(K){return _.e("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.e("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.e(_.sN,{data:function(){return K().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Bs})),_.e("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.e(_.kR,{checked:function(){return K().isSelected},
name:R,onClick:function(){var m=K().pricingGroup;I().onPricingGroupSelected(m.pricingGroupId);if(m=_.WI(m.onSelectPricingGroup)){var a;(a=_.wH().resolve(_.n4))==null||a.resolveCommand(m)}}})))})))},"Eh");
zRF.idomCompat=!0;var EVr=_.W(function(G){var c=G.data;var I=G.stateFns;var R=function(){var m=I().getSelectedPricingOptions().map(function(N){return N.pricingOptionId}),a=I().getSelectedProductByGroupId(c().groupId);
if(!a)return _.dj(Error("ak`"+c().groupId)),[];var O=I().getSelectedPricingGroupAttributesByGroupId(c().groupId);return uur(a.pricingOptions,O,m)},Z=_.gD(function(){return c().pricingOptionSelectorSectionHeader}),K=function(){return R().length>1};
return _.e("pdp-pricing-option-selector-view-model",null,_.e(_.l,{cond:function(){return!!Z()&&K()},
then:function(){return _.e(_.sN,{data:Z},{sectionHeaderViewModel:function(m){m=m.data;var a={};return _.e("div",{class:_.O3("ytPdpPricingOptionSelectorViewModelSectionHeader",(a.ytPdpPricingOptionSelectorViewModelFullBleed=!0,a.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,a))},_.e(_.I4,{data:m}))}})}}),_.e(_.l,{cond:K,
then:function(){return _.e("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.e(_.fh,{each:R,keyBy:"INDEX"},function(m){return _.e("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.e("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.e(_.sN,{data:function(){return m().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Bs})),_.e("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.e(_.kR,{checked:function(){return m().isSelected},
onClick:function(){I().onPricingOptionSelected(m().pricingOption.pricingOptionId);var a=m().pricingOption.onSelectPricingOption;if(a=_.WI(a)){var O;(O=_.wH().resolve(_.n4))==null||O.resolveCommand(a)}}})))}))}}))},"Fh");
EVr.idomCompat=!0;var JXW=_.W(function(G){var c=G.data;var I=G.stateFns;return _.e("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.e(_.sN,{data:function(){var R,Z;return(Z=(R=I().getSelectedPricingOptions()[0])==null?void 0:R.primaryButton)!=null?Z:c().emptyStateButton}},{buttonViewModel:_.BR}))},"Gh");
JXW.idomCompat=!0;var Wxj=_.W(function(G){var c=G.stateFns;return _.e("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.e(_.sN,{data:function(){return c().getSelectedPricingOptions().flatMap(function(I){return I.summaryLines}).filter(function(I){return!!I})}},{containerLayoutViewModel:function(I){return _.e("div",{class:"ytPdpSummaryViewModelLineItem"},_.e(Bs,{data:I.data}))}}))},"Hh");
Wxj.idomCompat=!0;var ip7=_.W(function(G){function c(U){var k=m();_.y1(_.Wm("pdpStateEntity",k,{key:k,selectedPricingOptions:U}))}
var I=G.data;var R=G.internalScrolling;var Z=G.stateFnsForTesting;var K=_.gD(function(){return I().allProducts},[]),m=_.gD(function(){return I().pdpStateEntityKey},""),a=_.um(bF$,m),O=_.SE(function(){_.dN(!0);
var U;return(U=Z==null?void 0:Z())!=null?U:sfF(a,K,c)},void 0,"Pzdsic"),N=_.gD(function(){return I().body},[]),q=_.gD(function(){return I().columnBreakHints},[]),w=function(){return I().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},F=function(){return w()||I().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},n=_.SE(function(){var U=_.dP(I().background),k;
if(U==null?0:(k=U.sources)==null?0:k.length){var p=p===void 0?!0:p;U=_.Nhi(void 0,U.sources,void 0,p,p?1E3:void 0,p?void 0:1E3)}else U=null;return U},void 0,"RDPOae");
_.tI(function(){var U=I().onStartCommand;if(U&&(U=_.WI(U))){var k;(k=_.wH().resolve(_.n4))==null||k.resolveCommand(U)}});
G={};return _.e("pdp-view-model",{class:_.O3("ytPdpViewModelHost",(G.ytPdpViewModelHasBackground=function(){return F()||!!n()},G.ytPdpViewModelHasDarkBackground=F,G.ytPdpViewModelHasScrim=w,G.ytPdpViewModelInternalScrolling=R,G.ytPdpViewModelForceSingleColumn=function(){return q().length===0},G)),
style:_.wi({"--pdp-view-model-background":function(){return n()?"url("+n()+")":void 0}})},_.e("div",{class:"ytPdpViewModelColumnContainer"},_.e(_.fh,{each:function(){return LIu(N(),q())},
keyBy:"INDEX"},function(U){return _.e("div",{class:"ytPdpViewModelColumn"},_.e(_.sN,{data:U},{containerLayoutViewModel:function(k){return _.e(rf,null,_.e(Bs,{data:k.data}))},
dividerViewModel:function(k){return _.e(rf,{fullBleed:!0},_.e(_.qM9,{data:k.data}))},
pdpCardViewModel:function(k){return _.e(rf,null,_.e(MCr,{data:k.data,stateFns:O}))},
pdpMastheadViewModel:function(k){return _.e(rf,null,_.e(VCF,{data:k.data,isOverlay:F}))},
pdpPricingGroupSelectorViewModel:function(k){return _.e(rf,null,_.e(zRF,{data:k.data,stateFns:O}))},
pdpPricingOptionSelectorViewModel:function(k){return _.e(rf,null,_.e(EVr,{data:k.data,stateFns:O}))},
pdpPrimaryButtonViewModel:function(k){return _.e(rf,null,_.e(JXW,{data:k.data,stateFns:O}))},
pdpSummaryViewModel:function(k){return _.e(rf,null,_.e(Wxj,{data:k.data,stateFns:O}))},
sectionHeaderViewModel:function(k){return _.e(rf,{fullBleed:!0,noVerticalPadding:!0},_.e(_.I4,{data:k.data}))}}))})))},"Ih");
ip7.idomCompat=!0;var rf=_.W(function(G){var c={};return _.e("div",{class:_.O3("ytPdpViewModelItem",(c.ytPdpViewModelFullBleed=G.fullBleed,c.ytPdpViewModelNoVerticalPadding=G.noVerticalPadding,c))},G.children)},"Jh");_.R1(ip7,"pdp-view-model",{props:{data:_.bl,stateFnsForTesting:_.G9,internalScrolling:_.G9}});var fYj=_.W(function(G){var c=G.data;var I=G.className;var R=_.um(_.Iw,function(){return c().flowStateEntityKey});
return _.e("ytm-premium-purchase-button-renderer",{class:_.O3("ytPremiumPurchaseButtonRendererHost",I)},_.e(_.sN,{data:function(){var Z;return(Z=_.D(R(),$hj))==null?void 0:Z.primaryButtonOverride}},{buttonRenderer:function(Z){return _.e(_.Ey,{data:Z.data,
className:I})},
buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,className:I})}}))},"Kh");
fYj.idomCompat=!0;var BLu=_.W(function(G){var c=G.data;G=G.className;var I=function(){return A8G(c().style)},R=_.O3("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I),Z=_.O3("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I);
return _.e("yt-flow-bottom-bar-renderer",{class:_.O3("yt-flow-bottom-bar-renderer",G,I)},_.e(_.sN,{data:function(){return c().secondaryButton}},{buttonRenderer:function(K){return _.e(_.Ey,{data:K.data,
className:Z})},
buttonViewModel:function(K){return _.e(_.BR,{data:K.data,className:Z})},
premiumPurchaseButtonRenderer:function(K){return _.e(fYj,{data:K.data,className:Z})}}),_.e(_.sN,{data:function(){return c().primaryButton}},{buttonRenderer:function(K){return _.e(_.Ey,{data:K.data,
className:R})},
buttonViewModel:function(K){return _.e(_.BR,{data:K.data,className:R})},
premiumPurchaseButtonRenderer:function(K){return _.e(fYj,{data:K.data,className:R})}}))},"Lh");
BLu.idomCompat=!0;_.R1(BLu,"yt-flow-bottom-bar-renderer",{props:{data:_.bl,className:_.bl}});var rXu=_.W(function(G){var c=_.O3(G.className,"ytOfferSummaryRendererHost");return _.e("yt-offer-summary-renderer",{class:c},_.e("div",{class:"ytOfferSummaryRendererTextContainer"},_.e("div",{class:"ytOfferSummaryRendererEyebrowText"},_.e(_.ul,{text:function(){return G.data().eyebrowText}})),_.e("div",{class:"ytOfferSummaryRendererTitle"},_.e(_.ul,{text:function(){return G.data().title}})),_.e("div",{class:"ytOfferSummaryRendererSubtitle"},_.e(_.ul,{text:function(){return G.data().subtitle}})),_.e("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.e(_.fh,{each:function(){var I;
return(I=G.data().featureListData)!=null?I:[]}},function(I){var R;
return _.e("div",{class:"ytOfferSummaryRendererFeatureList"},_.e(_.F6,{icon:(R=I.icon)==null?void 0:R.iconType,active:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(I.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.e("div",{class:"ytOfferSummaryRendererFeatureListText"},_.e(_.ul,{text:I.text,
className:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.e("div",{class:"ytOfferSummaryRendererDescription"},_.e(_.ul,{text:function(){return G.data().description}}))))},"Mh");_.R1(_.W(function(G){var c={};c=_.O3("ytOfferSummaryFlowStepRendererHost",(c.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=G.shouldDisableHeaderTopMargin,c));return _.e("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:c},_.e("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.e("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.e(_.ul,{text:function(){return G.data().header}})),_.e("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.e(_.ul,{text:function(){return G.data().subtitle}}))),_.e("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.e(_.sN,{data:function(){return G.data().offerSummary}},{offerSummaryRenderer:function(I){return _.e(rXu,{data:I.data,
className:G.flowClassName})}})))},"Nh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.G9,
flowClassName:_.G9,flowStateEntityKey:_.G9,shouldDisableHeaderTopMargin:_.G9}});var j6H=_.W(function(G){var c=G.data;var I=G.className;var R=G.flowStateEntityKey;var Z=G.selectionStepStyle;G=_.Nx(function(O){var N=c(),q=R==null?void 0:R();O.target&&(O.stopPropagation(),O=q||"",q=_.Iw(_.XZ().getState(),O),N=Object.assign({},q,{premiumPurchaseFlowState:{selectedOptionId:N.optionId,primaryButtonOverride:N.primaryButtonOverride}}),_.XZ().dispatch(_.Le("flowStateEntity",O,N)));return!1});
var K=function(){return(R==null?void 0:R())||""},m=_.um(_.Iw,K);
_.tI(function(){var O=c(),N=K(),q=m();O.defaultSelected&&N!==""&&O.primaryButtonOverride&&S$j(O.optionId||"",N,O.primaryButtonOverride,q)});
var a={};return _.e("ytm-option-item-renderer",{"on:click":G,class:_.O3(I,"ytm-option-item-renderer",(a["ytm-option-item-renderer--lp2-style"]=function(){return(Z==null?void 0:Z())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},a))},_.e("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.e("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var O=c(),N=K(),q=m();q=_.D(q,$hj);return(q?(q==null?void 0:q.selectedOptionId)||"":O.defaultSelected&&N!==""?(O==null?void 0:O.optionId)||"":"")===c().optionId},
name:("input"+_.Yb(_.o4)).toString()})),_.e("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.e(_.sN,{data:function(){return c().titleBadge}},{badgeViewModel:function(O){return _.e(_.Jp,{data:O.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.e(_.l,{cond:function(){return c().eyebrowText},
then:function(){return _.e("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.e(_.ul,{text:function(){return c().eyebrowText}}))}}),_.e("div",{class:"ytm-option-item-renderer__option-item-title"},_.e(_.ul,{text:function(){return c().title}})),_.e("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.e(_.ul,{text:function(){return c().subtitle}})),_.e(_.l,{cond:function(){return c().featureListData},
then:function(){return _.e("div",{class:"ytm-option-item-renderer__feature-list-data"},_.e(_.fh,{each:function(){return c().featureListData||[]}},function(O){var N,q=(N=O.icon)==null?void 0:N.iconType;
a:switch(O.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":N="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":N="ytm-option-item-renderer__feature-list-icon-small";break a;default:N="ytm-option-item-renderer__feature-list-icon-default"}return _.e("div",{class:"ytm-option-item-renderer__feature-list"},_.e(_.F6,{icon:q,className:N,active:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.e("div",{class:"ytm-option-item-renderer__feature-list-text"},_.e(_.ul,{text:O.text,
className:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.e("div",{class:"ytm-option-item-renderer__option-item-description"},_.e(_.ul,{text:function(){return c().description}}))))},"Oh");var x9$=_.W(function(G){var c=G.data;var I=G.flowClassName;var R=G.flowStateEntityKey;var Z=G.selectionStepStyle;return _.e("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.e("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.e("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.e(_.ul,{text:function(){return c().title}}),_.e(_.sN,{data:function(){return c().titleBadge}},{badgeViewModel:function(K){return _.e(_.Jp,{data:K.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.e(_.l,{cond:function(){return c().subtitle},
then:function(){return _.e("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.e(_.ul,{text:function(){return c().subtitle}}))}}),_.e(_.l,{cond:function(){return c().featureListData},
then:function(K){return _.e("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.e(_.fh,{each:K},function(m){var a;return _.e("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.e(_.F6,{icon:(a=m.icon)==null?void 0:a.iconType,active:function(){return m.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(m.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.e("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.e(_.ul,{text:m.text,
className:function(){return m.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.e(_.l,{cond:function(){return c().secondaryTitle},
then:function(){return _.e("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.e(_.ul,{text:function(){return c().secondaryTitle}}))}}),_.e(_.fh,{each:function(){return c().sectionDisclaimers||[]}},function(K){return _.e("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.e(_.ul,{text:K}))})),_.e(_.sN,{data:function(){return c().optionItems}},{optionItemRenderer:function(K){return _.e("div",{class:"ytOptionSectionRendererOptionItem"},_.e(j6H,{data:K.data,
className:I,flowStateEntityKey:R,selectionStepStyle:Z}))}}),_.e(_.l,{cond:function(){return c().offerText},
then:function(){return _.e("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.e(_.ul,{text:function(){return c().offerText}}))}}))},"Ph");
x9$.idomCompat=!0;var tCj=_.W(function(G){var c=G.data;var I=G.flowClassName;var R=G.flowStateEntityKey;G=G.isDesktop;var Z=_.mX("div"),K=function(){var q;return(q=c().flowStateEntityKey)!=null?q:R==null?void 0:R()},m=function(){return(K==null?void 0:K())||""},a=function(){return c().style},O=_.um(_.Iw,m);
_.tI(function(){pb0(c(),m(),O());setTimeout(function(){var q;(q=Z.value)==null||q.focus()})});
var N={};return _.e("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.O3("ytm-option-selection-flow-step-renderer",(N["ytm-option-selection-flow-step-renderer--desktop"]=G,N["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return c().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},N))},_.e("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.e("div",{el:Z,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.e(_.ul,{text:function(){return c().header}})),_.e("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.e(_.ul,{text:function(){return c().subtitle}}))),_.e(_.sN,{data:function(){return c().optionItems||[]}},{optionItemRenderer:function(q){return _.e("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.e(j6H,{data:q.data,
className:I,flowStateEntityKey:K,selectionStepStyle:a}))},
optionSectionRenderer:function(q){return _.e("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.e(x9$,{data:q.data,flowClassName:I,flowStateEntityKey:K,selectionStepStyle:a}))}}))},"Qh");
tCj.idomCompat=!0;_.R1(tCj,"yt-option-selection-flow-step-renderer",{props:{data:_.bl,flowClassName:_.bl,flowStateEntityKey:_.bl,isDesktop:_.bl}});_.jp=_.W(function(G){var c=_.YW(G,{type:1,disablePadding:!1,disablePrimaryButton:!1}),I=c.data,R=c.type;G=c.disablePadding;var Z=c.disablePrimaryButton,K=c.onClickPrimaryButton,m=function(){return I().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},a=function(){return{disabled:Z(),
state:Z()?"disabled":"active"}},O=function(){return I().leadingLabel||I().trailingLabel};
c={};return _.e("yt-panel-footer-view-model",{class:_.O3("yt-panel-footer-view-model",(c["yt-panel-footer-view-model--hide-divider"]=function(){return I().shouldHideDivider},c["yt-panel-footer-view-model--disable-padding"]=G,c))},_.e(_.l,{cond:O,
then:function(){var N={},q={};return _.e("div",{class:_.O3("yt-panel-footer-view-model__text-row",(N["yt-panel-footer-view-model--row-bottom-padding"]=function(){var w=I();return!(!w.leadingLabel&&!w.trailingLabel||!w.primaryButton&&!w.secondaryButton)},N))},_.e(_.ul,{text:function(){return I().leadingLabel},
className:_.O3((q["yt-panel-footer-view-model--text-padding"]=O,q))}),_.e(_.ul,{text:function(){return I().trailingLabel}}))}}),_.e(_.l,{cond:m,
then:function(){var N={};return _.e("div",{class:"yt-panel-footer-view-model__button-stack"},_.e("div",{class:_.O3("yt-panel-footer-view-model__primary-button",(N["yt-panel-footer-view-model__button-stack--top-button"]=function(){return I().secondaryButton},N))},_.e(_.sN,{data:function(){return I().primaryButton}},{buttonViewModel:function(q){return _.e(_.BR,{data:q.data,
buttonOverrides:a,onClick:K})}})),_.e(_.sN,{data:function(){return I().secondaryButton}},{buttonViewModel:_.BR}))}}),_.e(_.l,{cond:function(){return!m()},
then:function(){var N={},q={},w={};return _.e("div",{class:_.O3("yt-panel-footer-view-model__button-row",(N["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===R()},N))},_.e("div",{class:_.O3("yt-panel-footer-view-model__button-row--left-button",(q["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===R()},q["yt-panel-footer-view-model__button-row--hidden"]=function(){return!I().secondaryButton||0===R()},q["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===R()},q))},_.e(_.sN,{data:function(){return I().secondaryButton}},{buttonViewModel:_.BR})),_.e("div",{class:_.O3("yt-panel-footer-view-model__primary-button",(w["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===R()||1===R()},w["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===R()},w))},_.e(_.sN,{data:function(){return I().primaryButton}},{buttonViewModel:function(F){return _.e(_.BR,{data:F.data,
buttonOverrides:a,onClick:K})}})))}}))},"Rh");
_.jp.idomCompat=!0;_.hR$=_.W(function(G){G=_.YW(G,{disablePadding:!1});var c=G.data,I=G.disablePadding;G=_.qar(function(){return c().formId},void 0,function(){return c().onSubmitSuccess});
var R=G.submitForm,Z=G.isValid,K=G.isSubmitting;return _.e("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.e(_.sN,{data:function(){return c().panelFooter}},{panelFooterViewModel:function(m){return _.e(_.jp,{data:m.data,
onClickPrimaryButton:function(){R()},
disablePrimaryButton:function(){return!Z()||K()},
disablePadding:I})}}))},"Sh");_.R1(_.hR$,"yt-form-footer-view-model",{props:{data:_.bl,disablePadding:_.bl}});var d91=_.W(function(G){var c=_.v("enable_user_rating_web");return _.e("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.e("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.e(_.l,{cond:function(){var I;return(I=G.data())==null?void 0:I.image},
then:function(I){return _.e(_.yc,{data:I,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.e("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.e(_.ul,{text:function(){var I;
return(I=G.data())==null?void 0:I.title}})),_.e("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.e(_.ul,{text:function(){var I;
return(I=G.data())==null?void 0:I.subtitle}})),_.e(_.l,{cond:function(){return!c},
then:function(){return _.e(_.sN,{data:function(){var I;return(I=G.data())==null?void 0:I.viewTipsButton}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Th");_.R1(d91,"yt-contributor-zero-state-view-model",{props:{data:_.bl}});var Cng=_.W(function(G){var c=function(){var I;return(I=G.data())==null?void 0:I.image};
return _.e("yt-featured-content-item-view-model",{class:_.O3("ytFeaturedContentItemViewModelHost")},_.e("div",{class:_.O3(function(){return c()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.e("div",{class:function(){return c()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.e(_.l,{cond:c,
then:function(){return _.e("div",{class:"ytFeaturedContentItemViewModelImage"},_.e(_.sN,{data:function(){return G.data().image}},{themedImageViewModel:function(I){return _.e(S4u,{data:I.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.e(_.l,{cond:function(){var I;
return!c()&&((I=G.data())==null?void 0:I.iconName)},
then:function(){return _.e("div",{class:"ytFeaturedContentItemViewModelIcon"},_.e(_.F6,{icon:function(){return G.data().iconName}}))}}),_.e("div",{class:"ytFeaturedContentItemViewModelContent"},_.e(_.l,{cond:function(){var I;
return(I=G.data())==null?void 0:I.title},
then:function(){return _.e("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.e(_.ul,{text:function(){return G.data().title}}))}}),_.e(_.l,{cond:function(){var I;
return(I=G.data())==null?void 0:I.body},
then:function(){return _.e("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.e(_.ul,{text:function(){return G.data().body}}))}})))))},"Uh");var Hpd=_.W(function(G){var c=function(){var Z;return MLr((Z=G.data())==null?void 0:Z.titleFontSize)},I=function(){var Z;
return VL0((Z=G.data())==null?void 0:Z.descriptionFontSize)},R=function(){var Z;
return((Z=G.data())==null?void 0:Z.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.e("yt-landing-page-view-model",{class:_.O3("ytLandingPageViewModelHost",G.className)},_.e("div",{class:"ytLandingPageViewModelHeader"},_.e(_.l,{cond:function(){var Z;return(Z=G.data())==null?void 0:Z.bannerImage},
then:function(Z){return _.e("div",{class:"ytLandingPageViewModelHeaderImage"},_.e(_.sN,{data:function(){return Z()}},{imageBannerViewModel:function(K){return _.e(_.Sa,{data:K.data,
isPositionRelative:!0})}}))}}),_.e(_.l,{cond:function(){var Z;
return(Z=G.data())==null?void 0:Z.bannerAnimation},
then:function(Z){return _.e(_.XX,{data:function(){var K=Z();if(K==null?0:K.url){var m;K={path:(m=K==null?void 0:K.url)!=null?m:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(K==null?0:K.payload){var a;K={animationData:JSON.parse((a=K==null?void 0:K.payload)!=null?a:""),autoplay:!0,loop:!0,renderer:"svg"}}else K=void 0;return{animationConfig:K}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.e("div",{class:"ytLandingPageViewModelHeaderTitle"},_.e(_.l,{cond:function(){var Z;
return(Z=G.data())==null?void 0:Z.title},
then:function(Z){return _.e("div",{class:_.O3("ytLandingPageViewModelHeaderTitleContent",c)},_.e(_.ul,{text:function(){return Z()}}))}}),_.e(_.l,{cond:function(){var Z;
return(Z=G.data())==null?void 0:Z.description},
then:function(Z){var K={};return _.e(_.ul,{className:_.O3("ytLandingPageViewModelHeaderTitleDescription",I,(K.ytLandingPageViewModelHeaderTitleDescriptionMargin=R,K)),text:function(){return Z()}})}}))),_.e(_.l,{cond:function(){var Z,K;
return(Z=G.data())==null?void 0:(K=Z.featuredContentList)==null?void 0:K.length},
then:function(){return _.e("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.e(_.sN,{data:function(){return G.data().featuredContentList}},{featuredContentItemViewModel:function(Z){return _.e(Cng,{data:Z.data})}}))}}),_.e(_.l,{cond:function(){var Z,K;
return(Z=G.data())==null?void 0:(K=Z.expandableContentList)==null?void 0:K.length},
then:function(){return _.e("div",{class:"ytLandingPageViewModelFaqSection"},_.e(_.sN,{data:function(){return G.data().expandableContentList}},{faqEntryViewModel:function(Z){return _.e("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.e(_.giN,{data:Z.data}))}}))}}),_.e("div",{class:"ytLandingPageViewModelFooter"},_.e(_.l,{cond:function(){var Z;
return(Z=G.data())==null?void 0:Z.legalCopy},
then:function(Z){return _.e("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.e(_.ul,{text:function(){return Z()}}))}}),_.e(_.l,{cond:function(){var Z;
return(Z=G.data())==null?void 0:Z.actions},
then:function(Z){return _.e("div",null,_.e(_.sN,{data:function(){return Z()}},{flexibleActionsViewModel:function(K){return _.e(_.FK,{data:K.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Vh");_.R1(_.W(function(G){return _.e("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.e("div",{class:"ytLpSectionGroupViewModelContainer"},_.e(_.sN,{data:function(){return G.data().sections}},{landingPageViewModel:function(c){return _.e(Hpd,{data:c.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Wh"),"yt-lp-section-group-view-model",{props:{data:_.bl}});var XYj=_.W(function(G){var c=G.data;var I=G.selectedKey;var R=G.onSelected;var Z=G.groupName;var K=function(){return c().text},m=function(){return c().attributedText},a=function(){return c().subtext},O=function(){return c().attributedSubtext},N=_.e("div",{class:"ytRadioButtonItemViewModelLabel"},_.e(_.l,{cond:K,
then:function(){return _.e("div",null,K)}}),_.e(_.l,{cond:m,
then:function(){return _.e(_.ul,{text:m})}}),_.e(_.l,{cond:a,
then:function(){return _.e("div",{class:"ytRadioButtonItemViewModelSubText"},a)}}),_.e(_.l,{cond:O,
then:function(){return _.e("div",{class:"ytRadioButtonItemViewModelSubText"},_.e(_.ul,{text:O}))}})),q=function(){if(m()){var F;
return(F=m())==null?void 0:F.content}return K()},w=function(){if(O()){var F;
return(F=O())==null?void 0:F.content}return a()};
G={};return _.e("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.e(_.kR,{name:Z,checked:function(){return!(I==null||!I()||c().key!==(I==null?void 0:I()))},
onChange:function(F){R==null||R(F.target,c(),Z==null?void 0:Z())},
labelRenderable:function(){return N},
ariaLabel:function(){return w()?q()+", "+w():q()},
className:_.O3((G.ytRadioButtonItemViewModelSubTitle=function(){return!!c().subtext},G))}))},"Xh");_.yX0=_.W(function(G){var c=G.data;var I=function(){var R;return _.W8((R=c())==null?void 0:R.rendererContext)};
G={};return _.e("content-list-item-view-model",{el:_.YC(_.im(function(){return c().rendererContext})),
class:_.O3("ytContentListItemViewModelHost",(G.ytContentListItemViewModelTappable=I,G)),role:function(){return I()?"listitem":void 0},
tabindex:function(){return I()?0:void 0}},_.e("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.e("div",{class:"ytContentListItemViewModelImageContainer"},_.e(_.l,{cond:function(){return c().image},
then:function(R){return _.e(_.yc,{data:R,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.e(_.sN,{data:function(){var R;
return(R=c())==null?void 0:R.avatar}},{avatarViewModel:_.qF})),_.e("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.e("div",{class:_.O3("ytContentListItemViewModelTitle",function(){a:{switch(c().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var R="ytContentListItemViewModelProminentTitle";
break a}R=void 0}return R})},_.e(_.ul,{text:function(){return c().title}})),_.e("div",{class:"ytContentListItemViewModelMetadata"},_.e(_.sN,{data:function(){return c().metadata}},{contentMetadataViewModel:function(R){return _.e(_.Cb,{data:R.data,
layout:1})}})))),_.e("div",{class:"ytContentListItemViewModelActionButton"},_.e(_.sN,{data:function(){var R;
return(R=c())==null?void 0:R.actionButton}},{buttonViewModel:_.BR,
toggleButtonViewModel:_.m8})))},"Yh");var gVj=_.W(function(G){var c=G.data,I=function(){var Z;return(Z=c())==null?void 0:Z.description},R=function(){var Z;
return(Z=c())==null?void 0:Z.title};
return _.e("ytfc-youth-basic-section-header-view-model",{class:_.O3("ytfcYouthBasicSectionHeaderViewModelHost",G.className)},_.e("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.e(_.sN,{data:function(){var Z;return(Z=c())==null?void 0:Z.avatar}},{avatarViewModel:_.qF}),_.e(_.l,{cond:function(){var Z;
return _.dP((Z=c())==null?void 0:Z.themedImage)},
then:function(Z){return _.e(_.yc,{data:Z,alt:function(){var K,m;return(m=(K=R())==null?void 0:K.content)!=null?m:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.e("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.e(_.l,{cond:R,
then:function(){return _.e(_.ul,{text:R,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.e("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.e(_.sN,{data:function(){var Z;
return(Z=c())==null?void 0:Z.bottomBadge}},{badgeViewModel:function(Z){return _.e("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.e(_.Jp,{data:Z.data}))}}),_.e(_.l,{cond:I,
then:function(){return _.e(_.ul,{text:I,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Zh");var Y4u=_.W(function(G){var c=G.data;return _.e("ytfc-youth-section-body-view-model",{class:_.O3("ytfcYouthSectionBodyViewModelHost",G.className)},_.e(_.sN,{data:function(){var I;return(I=c())==null?void 0:I.topContent}},{avatarStackViewModel:function(I){return _.e(_.Fh,{data:I.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.e(_.ul,{text:function(){var I;
return(I=c())==null?void 0:I.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"$h");var GeF=_.W(function(G){var c=_.Q(_.ks(!1,void 0,"SrK51e")),I=c.next().value,R=c.next().value,Z=function(){return G.data().inlineExpansionEntityKey},K=_.um(HYH,Z),m=function(){if(G.isSelected!==void 0)return G.isSelected();
if(Z()){var O;return(O=K())==null?void 0:O.expanded}return I()};
c={};var a={};return _.e("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Nx(function(){G.isSelected!==void 0||Z()||R(!I())})},_.e("div",{class:"ytInlineExpanderViewModelHeader"},_.e(_.sN,{data:function(){return G.data().headerContent}},{youthBasicSectionHeaderViewModel:gVj}),_.e("div",{class:_.O3("ytInlineExpanderViewModelButton",(c.ytInlineExpanderViewModelButtonExpanded=m,c))},_.e(_.fx,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:m(),accessibilityLabel:m()?_.mJ("SHOW_LESS",void 0,"Show Less"):_.mJ("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.e("div",{class:_.O3("ytInlineExpanderViewModelBody",(a.ytInlineExpanderViewModelBodyExpanded=m,a)),"aria-hidden":function(){return!m()}},_.e("div",{class:"ytInlineExpanderViewModelBodyContent"},_.e(_.sN,{data:function(){return G.data().bodyContent}},{youthSectionBodyViewModel:Y4u}))))},"ai");var ciG=new _.De("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.Ib1=_.W(function(G){var c=function(){return G.data().background},I=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},R=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},Z=_.wH().resolve(_.qR(ciG)),K={};
return _.e("yt-card-view-model",{el:_.YC(_.im(function(){return G.data().rendererContext})),
class:_.O3("ytCardViewModelHost",G.className,(K.ytCardViewModelClickable=function(){return _.JY(G.data().rendererContext)},K))},_.e(_.Hh,{contentId:function(){return G.data().contentId}},function(){var m={};
return _.e("div",{class:_.O3("ytCardViewModelCardViewModelInner",function(){var a;return zKr(G.data().cardStyle,(a=G.isSelected)==null?void 0:a.call(G))},function(){if(G.isSelected===void 0){var a;
a:{switch((a=G.data().cardState)==null?void 0:a.selectionState){case "CARD_SELECTION_STATE_SELECTED":a="ytCardViewModelSelected";break a}a=void 0}return a}})},_.e(_.sN,{data:c},{cinematicContainerViewModel:function(a){return _.e(_.ai0,{data:a.data})}}),_.e("div",{class:"ytCardViewModelContentWrapper"},_.e(_.l,{cond:function(){return!I()},
then:function(){var a={},O={};return _.e("div",{class:"ytCardViewModelTopContentContainer"},_.e("div",{class:_.O3("ytCardViewModelTopContent",(a.ytCardViewModelInnerPadding=function(){return!G.data().disableTopContentPadding&&G.data().topContent},a))},_.e(_.sN,{data:function(){return G.data().topContent}},{contentListItemViewModel:function(N){return _.e(_.yX0,{data:N.data})},
basicContentViewModel:_.bh,linearLayoutViewModel:_.Lr})),_.e("div",{class:_.O3("ytCardViewModelInlineTrailingAction",(O.ytCardViewModelInlineCenterTrailingAction=R,O.ytCardViewModelInlineTrailingActionMargin=function(){return G.data().trailingAction},O))},_.e(_.sN,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(N){return _.e(_.BR,{data:N.data})}})))}}),_.e("div",{class:_.O3((m.ytCardViewModelInnerPadding=function(){return!G.data().disableBodyContentPadding&&G.data().bodyContent},
m))},_.e(_.sN,{data:function(){return G.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.g7H,
contentListItemViewModel:_.yX0,descriptionPreviewViewModel:_.cc,inlineExpanderViewModel:function(a){return _.e(GeF,{data:a.data,isSelected:G.isSelected})},
linearLayoutViewModel:_.Lr,listItemViewModel:_.s8},Z&&{contentSectionViewModel:Z})))),_.e(_.l,{cond:function(){return I()},
then:function(){return _.e("div",{class:"ytCardViewModelOverlayTrailingAction"},_.e(_.sN,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(a){return _.e(_.BR,{data:a.data})}}))}}))}))},"bi");var RSu=_.W(function(G){var c=G.data,I=G.onSelected,R=G.selectedKey,Z=G.groupName;G=G.className;var K=_.Q(_.ks(!1,void 0,"mDtSad")),m=K.next().value,a=K.next().value,O=function(){if(R!==void 0){var N=R();return!(!N||c().key!==N)}return m()};
K=_.Nx(function(N){I?I(N.currentTarget,c(),Z==null?void 0:Z()):a(!m())});
return _.e("yt-selectable-item-view-model",{class:_.O3("ytSelectableItemViewModelHost",G,"ytSelectableItemViewModelContainer"),"on:click":K,"prop:checked":O},_.e(_.sN,{data:function(){return c().content}},{cardViewModel:function(N){return _.e(_.Ib1,{data:N.data,
isSelected:O})}}))},"ci");_.ZEW=_.W(function(G){var c=G.data;var I=G.onSelected;var R=G.selectedKey;var Z=G.groupName;var K=function(){return(Z==null?void 0:Z())||c().key};
return _.e("yt-radio-button-group-view-model",{class:_.O3("ytRadioButtonGroupViewModelHost",G.className)},_.e("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.e(_.sN,{data:function(){return c().radioButtons}},{radioButtonItemViewModel:function(m){return _.e(XYj,{data:m.data,
onSelected:I,selectedKey:R,groupName:K})},
selectableItemViewModel:function(m){return _.e(RSu,{data:m.data,onSelected:I,selectedKey:R,groupName:K})}})))},"di");var Kcj=_.W(function(G){_.tI(function(){if(G.controlledMode()&&G.data().defaultSelected)_.hg(Error("bk"));else{var K;!G.controlledMode()&&((K=G.selected)==null?0:K.call(G))&&_.hg(Error("ck"))}});
var c=_.Q(_.Gz(function(){if(!G.controlledMode())return G.data().defaultSelected})),I=c.next().value,R=c.next().value,Z=function(){if(!G.controlledMode())return I();
var K;return(K=G.selected)==null?void 0:K.call(G)};
return _.e("yt-checkbox-item-view-model",{class:_.O3("ytCheckboxItemViewModelHost",G.className)},_.e(_.s8,{data:function(){var K=G.data(),m=Z();return{title:K.text,subtitle:K.subtext,superlabel:K.superlabel,isSelected:!!m,isDisabled:K.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!G.controlledMode()&&R(!I());var K,m;(m=G.onTap)==null||m.call(G,!!Z(),G.data(),(K=G.groupName)==null?void 0:K.call(G))},
isCompact:G.isCompact}))},"ei");_.Puu=_.W(function(G){var c=G.data;var I=G.controlledMode;var R=G.selectedKeys;var Z=G.onItemTap;var K=G.groupName;var m=function(){return(K==null?void 0:K())||c().key};
_.tI(function(){I()&&c().defaultSelectedKeys?_.hg(Error("dk")):!I()&&(R==null?0:R())&&_.hg(Error("ek"))});
G=_.Q(_.Gz(function(){if(!I())return c().defaultSelectedKeys}));
var a=G.next().value,O=G.next().value,N=function(q,w,F){q=[];!I()&&w.key&&(q=Edd(w.key,a()||[]),O(q));Z==null||Z(w,q,F)};
return _.e("yt-checkbox-group-view-model",{class:_.O3("ytCheckboxGroupViewModelHost")},_.e("fieldset",{class:_.O3("ytCheckboxGroupViewModelFieldset")},_.e("div",{role:"list"},_.e(_.sN,{data:function(){return c().checkboxes}},{checkboxItemViewModel:function(q){var w=q.data;
return _.e(Kcj,{data:w,controlledMode:!0,selected:function(){var F=I()?(R==null?void 0:R())||[]:a()||[],n=w().key;return n?F.includes(n):!1},
onTap:N,groupName:m})}}))))},"fi");var xk=_.W(function(G){var c=_.um(J8$,_.gD(function(){var a;return(a=G.data())==null?void 0:a.noteFeedEntityKey},"")),I=_.um(Ypd,_.gD(function(){var a;
return(a=G.data())==null?void 0:a.userRatingEntityKey},"")),R=_.v("enable_user_rating_web"),Z=function(){var a,O,N;
return((a=c())==null?0:a.contributorNote)?(O=c())==null?void 0:O.contributorNote:(N=G.data())==null?void 0:N.existingNote},K=function(){var a,O;
return!!I()&&!!WI0((a=I())==null?void 0:a.helpfulnessValue,(O=G.data())==null?void 0:O.noteData)};
if(R){var m={};return _.e("yt-note-view-model",{class:_.O3("ytNoteViewModelHostUserRating",(m.ytNoteViewModelHostUserRatingPublishedNote=function(){var a,O,N,q;return((a=G.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPublished)&&!((N=G.data())==null?0:(q=N.noteData)==null?0:q.isUserRatingForm)},m))},_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.e(_.l,{cond:function(){var a,O;
return(a=G.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPinned},
then:function(){return _.e(_.F6,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.e(_.l,{cond:function(){var a,O;return(a=G.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPublished},
then:function(){return _.e(_.F6,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.e(_.sN,{data:function(){var a;
return(a=G.data())==null?void 0:a.metadata}},{contentMetadataViewModel:_.Cb}),_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var a,O;
return(O=_.D((a=G.data())==null?void 0:a.metadata,_.$_9))==null?void 0:O.delimiter}),_.e(_.ul,{text:function(){var a;
return(a=Z())==null?void 0:a.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.e(_.l,{cond:function(){var a,O;return!((a=G.data())==null?0:(O=a.noteData)==null?0:O.isUserRatingForm)},
then:function(){return _.e(_.sN,{data:function(){var a,O,N,q,w,F,n,U=!!((a=G.data())==null?0:(O=a.noteData)==null?0:O.isPinned);a=K();O=(N=G.data())==null?void 0:N.noteData;N=(q=c())==null?void 0:(w=q.contributorNote)==null?void 0:w.deleteAction;q=(F=G.data())==null?void 0:F.overflowButtonNoteWithRatingOnTapOverride;F=(n=G.data())==null?void 0:n.overflowButton;var k;n=(k=_.D(F,_.uv))==null?void 0:k.accessibilityText;return U?iFG(O,N,n):a?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:q,accessibilityText:n}}:F}},{buttonViewModel:function(a){return _.e(_.BR,{data:a.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.e("div",{class:"ytNoteViewModelNoteContent"},_.e(_.ul,{text:function(){var a;
return(a=Z())==null?void 0:a.text}})),_.e(_.l,{cond:function(){var a,O,N,q;
return!((a=G.data())==null?0:(O=a.noteData)==null?0:O.isPinned)&&!((N=G.data())==null?0:(q=N.noteData)==null?0:q.isUserRatingForm)},
then:function(){return _.e(_.l,{cond:K,then:function(){return _.e("div",{class:"ytNoteViewModelUserRatingContainer"},_.e(_.ul,{text:function(){var a,O;return WI0((a=I())==null?void 0:a.helpfulnessValue,(O=G.data())==null?void 0:O.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.e(_.sN,{data:function(){var a;return(a=G.data())==null?void 0:a.userRatingButton}},{buttonViewModel:function(a){return _.e(_.BR,{data:a.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.e(_.l,{cond:function(){var a,O,N,q;
return!((a=G.data())==null?0:(O=a.noteData)==null?0:O.ignoreDivider)&&!((N=G.data())==null?0:(q=N.noteData)==null?0:q.isUserRatingForm)},
then:function(){return _.e("div",{class:"ytNoteViewModelDivider"},_.e(_.sN,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(a){return _.e(_.qM9,{data:a.data})}}))}}))}return _.e("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.e(_.l,{cond:function(){var a,O;return(a=G.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPinned},
then:function(){return _.e(_.F6,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.e(_.l,{cond:function(){var a,O;return(a=G.data())==null?void 0:(O=a.noteData)==null?void 0:O.isPublished},
then:function(){return _.e(_.F6,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.e(_.l,{cond:function(){return R},
then:function(){return _.e(_.sN,{data:function(){var a;return(a=G.data())==null?void 0:a.metadata}},{contentMetadataViewModel:function(a){return _.e(_.Cb,{data:a.data})}})}}),_.e(_.ul,{text:function(){var a,O;
return(a=G.data())==null?void 0:(O=a.noteData)==null?void 0:O.headerText}}),_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.e(_.ul,{text:function(){var a,O;
return(a=G.data())==null?void 0:(O=a.noteData)==null?void 0:O.delimiter}})),_.e(_.ul,{text:function(){var a,O;
return(a=c())==null?void 0:(O=a.contributorNote)==null?void 0:O.publishedTimeText}})),_.e(_.sN,{data:function(){var a,O,N;
return iFG((a=G.data())==null?void 0:a.noteData,(O=c())==null?void 0:(N=O.contributorNote)==null?void 0:N.deleteAction)}},{buttonViewModel:function(a){return _.e(_.BR,{data:a.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.e("div",{class:"ytNoteViewModelNoteContent"},_.e(_.ul,{text:function(){var a,O;
return(a=c())==null?void 0:(O=a.contributorNote)==null?void 0:O.text}})))},"gi");
xk.idomCompat=!0;_.R1(_.W(function(G){var c=_.gD(function(){var z;return(z=G.data())==null?void 0:z.flowStateEntityKey},""),I=_.um(_.Iw,c),R=_.um(J8$,_.gD(function(){var z;
return(z=G.data())==null?void 0:z.noteFeedEntityKey},"")),Z=_.Q(_.Gz(function(){var z;
return(z=_.D(G.data().helpfulnessValue,_.wdW))==null?void 0:z.defaultSelectedKey})),K=Z.next().value,m=Z.next().value;
Z=_.Q(_.Gz(function(){var z,t,x;return(x=_.D((z=_.D(G.data().helpfulnessValue,_.wdW))==null?void 0:(t=z.radioButtons)==null?void 0:t.find(function(C){var H;return((H=_.D(C,FJd))==null?void 0:H.key)===K()}),FJd))==null?void 0:x.value}));
var a=Z.next().value,O=Z.next().value;Z=_.Q(_.Gz(function(){var z;return(z=_.D(G.data().helpfulReasons,_.qC7))==null?void 0:z.defaultSelectedKeys}));
var N=Z.next().value,q=Z.next().value;Z=_.Q(_.Gz(function(){var z;return(z=_.D(G.data().notHelpfulReasons,_.qC7))==null?void 0:z.defaultSelectedKeys}));
var w=Z.next().value,F=Z.next().value,n=function(z,t){m(t.key);O(t.value);q([]);F([])},U=function(){var z,t;
return((z=a())==null?void 0:z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((t=a())==null?void 0:t.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},k=function(){var z,t;
return((z=a())==null?void 0:z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((t=a())==null?void 0:t.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},p=function(z){f00(z.key,N,q)},M=function(z){f00(z.key,w,F)};
_.tI(function(){var z,t,x;_.ya$((z=G.data())==null?void 0:(t=z.userRatingFormSchema)==null?void 0:t.id,{isValid:function(){return!!K()},
formData:function(){var C=a(),H=r81(N(),_.D(G.data().helpfulReasons,_.qC7)),g=r81(w(),_.D(G.data().notHelpfulReasons,_.qC7));C={helpfulnessValue:C==null?void 0:C.noteHelpfulnessValue};if(H){C.helpfulReasons=[];H=_.Q(H);for(var QO=H.next();!QO.done;QO=H.next()){QO=QO.value;var T8=void 0;if((T8=QO)==null?0:T8.noteHelpfulReason)T8=void 0,C.helpfulReasons.push((T8=QO)==null?void 0:T8.noteHelpfulReason)}}if(g)for(C.notHelpfulReasons=[],g=_.Q(g),H=g.next();!H.done;H=g.next())if(H=H.value,QO=void 0,(QO=
H)==null?0:QO.noteNotHelpfulReason)QO=void 0,C.notHelpfulReasons.push((QO=H)==null?void 0:QO.noteNotHelpfulReason);return{userRatingFormData:C}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(x=_.D(I(),Rwg))==null?void 0:x.submitFormParams},onSubmitResult:function(){var C,H=(C=_.D(I(),Rwg))==null?void 0:C.userRatingEntityKey,g;C={key:H,helpfulnessValue:(g=a())==null?void 0:g.noteHelpfulnessValue};H&&_.y1(_.Le("contextNoteUserRatingEntityPayload",H,C));var QO;H=(QO=G.data())==null?void 0:QO.viewNoteFlowStepId;var T8;if((T8=R())==null||!T8.contributorNote){var kp;H=(kp=G.data())==null?void 0:kp.zeroStateFlowStepId}(QO=
Object.assign({},I()))&&H&&(QO.currentStepId=H,QO.stepIdStack=[H],_.y1(_.Le("flowStateEntity",c(),QO)));var FB;(QO=(FB=G.data())==null?void 0:FB.ratingSubmittedSnackbarCommand)&&_.r0(QO)},
disableDuringSubmission:!0})});
return _.e("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.e(_.sN,{data:function(){var z=_.D(I(),Rwg);if(z){var t;var x={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:z==null?void 0:(t=z.note)==null?void 0:t.headerText}]}],delimiter:"\u2022"}},existingNote:z.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else x=void 0;return x}},{noteViewModel:function(z){return _.e("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.e(xk,{data:z.data}))}}),_.e(_.sN,{data:function(){var z;
return(z=G.data())==null?void 0:z.helpfulnessValue}},{radioButtonGroupViewModel:function(z){return _.e("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.e(_.ZEW,{data:z.data,
onSelected:n,selectedKey:K}))}}),_.e(_.l,{cond:U,
then:function(){return _.e("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.e("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.e(_.ul,{text:function(){var z;return(z=G.data())==null?void 0:z.helpfulReasonQuestion}})),_.e(_.sN,{data:function(){var z;
return(z=G.data())==null?void 0:z.helpfulReasons}},{checkboxGroupViewModel:function(z){return _.e(_.Puu,{data:z.data,
onItemTap:p,selectedKeys:N,controlledMode:!0})}}))}}),_.e(_.l,{cond:k,
then:function(){return _.e("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.e("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.e(_.ul,{text:function(){var z;return(z=G.data())==null?void 0:z.notHelpfulReasonQuestion}})),_.e(_.sN,{data:function(){var z;
return(z=G.data())==null?void 0:z.notHelpfulReasons}},{checkboxGroupViewModel:function(z){return _.e(_.Puu,{data:z.data,
onItemTap:M,selectedKeys:w,controlledMode:!0})}}))}}),_.e(_.l,{cond:function(){return!U()&&!k()},
then:function(){return _.e(_.sN,{data:function(){var z;return(z=G.data())==null?void 0:z.helpfulNoteFeatures}},{alertBannerViewModel:function(z){return _.e("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.e(_.o2B,{data:z.data}))}})}}))},"hi"),"yt-note-user-rating-view-model",{props:{data:_.bl}});_.R1(xk,"yt-note-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=_.um(J8$,_.gD(function(){var I;return(I=G.data())==null?void 0:I.noteFeedEntityKey},""));
return _.e("yt-notes-wrapper-view-model",{class:_.O3("ytNotesWrapperViewModelHost")},_.e(_.l,{cond:function(){var I,R,Z;return!((I=G.data())==null||!I.existingNotes)||!((R=G.data())==null||!R.currentNote)&&!((Z=c())==null||!Z.contributorNote)},
then:function(){return _.e(_.FG,null,_.e(_.sN,{data:function(){var I,R,Z,K;return((R=_.D((I=G.data())==null?void 0:I.currentNote,ZCd))==null?0:(Z=R.noteData)==null?0:Z.isPublished)?(K=G.data())==null?void 0:K.currentNote:void 0}},{noteViewModel:function(I){return _.e(xk,{data:I.data})}}),_.e(_.sN,{data:function(){var I;
return(I=G.data())==null?void 0:I.existingNotes}},{noteViewModel:function(I){var R=I.data;
return _.e(_.l,{cond:function(){var Z,K;return(Z=R())==null?void 0:(K=Z.noteData)==null?void 0:K.isPublished},
then:function(){return _.e(xk,{data:R})}})}}),_.e(_.sN,{data:function(){var I,R,Z,K,m;
return((R=_.D((I=G.data())==null?void 0:I.currentNote,ZCd))==null?0:(Z=R.noteData)==null?0:Z.isPublished)||(K=c())==null||!K.contributorNote?void 0:(m=G.data())==null?void 0:m.currentNote}},{noteViewModel:function(I){return _.e(xk,{data:I.data})}}),_.e(_.sN,{data:function(){var I;
return(I=G.data())==null?void 0:I.existingNotes}},{noteViewModel:function(I){var R=I.data;
return _.e(_.l,{cond:function(){var Z,K;return!((Z=R())==null?0:(K=Z.noteData)==null?0:K.isPublished)},
then:function(){return _.e(xk,{data:R})}})}}))},
else:function(){return _.e(_.sN,{data:function(){var I;return(I=G.data())==null?void 0:I.zeroStateData}},{contributorZeroStateViewModel:d91})}}))},"ii"),"yt-notes-wrapper-view-model",{props:{data:_.bl}});var mDj=_.W(function(G){var c=_.YW(G,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0,hasError:!1}),I=c.label,R=c.text,Z=c.placeholder,K=c.hint;G=c.rows;var m=c.overflowStyle,a=c.outline,O=c.disabled,N=c.disableNewLines,q=c.characterLimit,w=c.validation,F=c.onInput,n=c.timePickerData,U=c.hasError,k=_.mX("textarea");c=_.Q(_.Gz(function(){return R()}));
var p=c.next().value,M=c.next().value;c=_.Q(_.ks(!1,void 0,"mpbND"));var z=c.next().value,t=c.next().value,x=function(){t(!0)},C=function(){t(!1)};
_.tI(function(){var GV=k.value,ei=m(),Hr=p();ei==="expand-vertically"&&Hr&&jfd(GV);k.value.addEventListener("focusin",x);k.value.addEventListener("focusout",C)});
_.ty(function(){k.value.removeEventListener("focusin",x);k.value.removeEventListener("focusout",C)});
var H=function(){var GV;return(GV=w())==null?void 0:GV.validate(p())},g=function(){return q()&&!H()&&p().length>q().maxChars},QO=function(){return!!H()||g()||U()};
c=_.Nx(function(GV){if(!GV.currentTarget)return!1;GV=GV.currentTarget;M(GV.value);m()==="expand-vertically"&&jfd(GV);F==null||F(GV.value);return!0});
var T8=_.Nx(function(GV){N()&&GV.key==="Enter"&&GV.preventDefault();return!1}),kp=_.Nx(function(){k.value.focus()}),FB=function(){return Z()||I()},oq={},Wr={},iT={},z8={};
return _.e("textarea-shape",{class:_.O3("ytStandardsTextareaShapeHost",(oq.ytStandardsTextareaShapeTimePicker=function(){var GV;return(GV=n())==null?void 0:GV.useTimePickerStyles},oq))},_.e("div",{class:_.O3("ytStandardsTextareaShapeTextareaContainer",(Wr.ytStandardsTextareaShapeTextareaContainerOutline=a,Wr.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=O,Wr.ytStandardsTextareaShapeTextareaContainerOutlineError=QO,Wr)),
"on:click":kp},_.e("label",{class:_.O3("ytStandardsTextareaShapeLabel",(iT.ytStandardsTextareaShapeLabelFocused=z,iT.ytStandardsTextareaShapeLabelDisabled=O,iT.ytStandardsTextareaShapeLabelError=function(){return QO()&&!O()},iT.ytStandardsTextareaShapeLabelHidden=function(){return!z()&&!p()&&!!FB()},iT))},I),_.e("div",{class:_.O3("ytStandardsTextareaShapePlaceholder",(z8.ytStandardsTextareaShapePlaceholderVisible=function(){return!z()&&!p()},z8)),
"aria-hidden":"true"},FB),_.e("textarea",{el:k,class:"ytStandardsTextareaShapeTextarea",rows:G,disabled:O,placeholder:FB,"prop:value":p,"on:input":c,"on:keydown":T8})),_.e(_.l,{cond:function(){return K()&&!QO()},
then:function(){var GV={};return _.e("div",{class:_.O3("ytStandardsTextareaShapeHint",(GV.ytStandardsTextareaShapeHintDisabled=O,GV))},_.e("div",{class:"ytStandardsTextareaShapeHintHintMessage"},K))}}),_.e(_.l,{cond:H,
then:function(){return _.e(QIW,{disabled:O},_.e("div",{class:"ytStandardsTextareaShapeErrorMessage"},H))}}),_.e(_.l,{cond:q,
then:function(GV){return _.e(_.l,{cond:g,then:function(){return _.e(QIW,{disabled:O},_.e("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return GV().errorMessage}),_.e("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return p().length+"/"+GV().maxChars}))}})}}))},"ji");
mDj.idomCompat={callbacks:{onInput:!0}};var QIW=_.W(function(G){var c={};return _.e("div",{class:_.O3("ytStandardsTextareaShapeError",(c.ytStandardsTextareaShapeErrorDisabled=G.disabled,c)),role:"alert"},_.e(_.F6,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),G.children)},"ki");_.abW=_.W(function(G){var c=G.data;return _.e("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.e(mDj,{text:G.text,label:function(){var I;return(I=c().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=c().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=c().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=c().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=c().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:G.disabled,disableNewLines:function(){var I;return(I=c().displayProperties)==null?void 0:I.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var I;return(I=c().displayProperties)==null?void 0:I.rows}}))},"li");_.Tng=_.W(function(G){var c=G.data;return _.e("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.e(mDj,{text:G.text,label:function(){var I;return(I=c().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=c().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=c().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=c().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=c().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var I;return(I=c().displayProperties)==null?void 0:I.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var I;return(I=c().displayProperties)==null?void 0:I.rows}}))},"mi");var OE7=_.W(function(G){var c=_.Q(_.Gz(function(){var T8,kp;return((T8=G.data().structuredContextNoteFormSchema)==null?0:(kp=T8.initialValues)==null?0:kp.noteBody)?G.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),I=c.next().value,R=c.next().value;
c=_.Q(_.Gz(function(){G.data();return!1}));
var Z=c.next().value,K=c.next().value;c=_.Q(_.Gz(function(){G.data();return!1}));
var m=c.next().value,a=c.next().value;c=_.Q(_.Gz(function(){var T8,kp;return((T8=G.data().structuredContextNoteFormSchema)==null?0:(kp=T8.initialValues)==null?0:kp.timestamp)?G.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var O=c.next().value,N=c.next().value;c=_.Q(_.Gz(function(){G.data();return!1}));
var q=c.next().value,w=c.next().value;c=_.Q(_.Gz(function(){var T8,kp;return((T8=G.data().structuredContextNoteFormSchema)==null?0:(kp=T8.initialValues)==null?0:kp.sources)?[G.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var F=c.next().value,n=c.next().value;c=_.Q(_.Gz(function(){G.data();return!1}));
var U=c.next().value,k=c.next().value;c=_.Q(_.Gz(function(){return!1}));
var p=c.next().value,M=c.next().value;_.tI(function(){var T8;_.gt$((T8=G.data().structuredContextNoteFormSchema)==null?void 0:T8.id,{isSubmitting:p,onSubmit:function(){M(!0);var kp=gd1(I(),O(),F(),G.data()),FB=_.wH().resolve(_.n4);kp&&FB&&FB.resolveCommand(kp,{commandController:{onSuccess:function(){M(!1)}}})},
isValid:function(){return Z()&&!m()&&!q()&&!U()}})});
var z=function(T8){if(T8!==void 0&&(R(T8),!Z()&&T8.length>0&&K(!0),Z())){var kp=hK7(G.data());if(kp){var FB=kp.minLength;kp=kp.maxLength;FB&&T8.length<FB?a(!0):kp&&T8.length>kp?a(!0):a(!1)}}},t=function(T8){if(T8!==void 0){N(T8);
if(T8.length>0){var kp,FB,oq,Wr,iT=Cir((kp=G.data())==null?void 0:(FB=kp.structuredContextNoteFormSchema)==null?void 0:(oq=FB.fieldSchemas)==null?void 0:(Wr=oq.timestamp)==null?void 0:Wr.validationSchema);if(iT&&(kp=iT.regex)&&!(new RegExp(kp)).test(T8)){w(!0);return}}w(!1)}},x=function(T8){if(T8!==void 0){var kp=T8.split(/[ \n]/).map(function(FB){return FB.trim()});
n(kp);if(T8.length>0)for(T8=_.Q(kp),kp=T8.next();!kp.done;kp=T8.next())if(!y8d(kp.value)){k(!0);return}k(!1)}},C=function(){return{validate:function(T8){if(Z()){var kp=hK7(G.data());
if(kp){var FB=kp.minLength;kp=kp.translations;if(FB&&T8.length<FB)return kp==null?void 0:kp.minLengthErrorMessage}}}}},H=function(){var T8=hK7(G.data()),kp=T8==null?void 0:T8.maxLength,FB;
T8=T8==null?void 0:(FB=T8.translations)==null?void 0:FB.maxLengthErrorMessage;if(kp&&T8)return{maxChars:kp,errorMessage:T8}},g=function(){return{validate:function(T8){if(T8){var kp,FB,oq,Wr,iT=Cir((kp=G.data())==null?void 0:(FB=kp.structuredContextNoteFormSchema)==null?void 0:(oq=FB.fieldSchemas)==null?void 0:(Wr=oq.timestamp)==null?void 0:Wr.validationSchema);
if(iT&&(kp=iT.regex,iT=iT.translations,kp&&!(new RegExp(kp)).test(T8)))return iT==null?void 0:iT.regexErrorMessage}}}},QO=function(){return{validate:function(T8){if(T8){var kp,FB,oq,Wr,iT=Xbj((kp=G.data())==null?void 0:(FB=kp.structuredContextNoteFormSchema)==null?void 0:(oq=FB.fieldSchemas)==null?void 0:(Wr=oq.sources)==null?void 0:Wr.validationSchema);
if(iT&&(kp=iT.translations,kp==null?0:kp.selectedErrorMessage))for(T8=T8.split(/[ \n]/).map(function(z8){return z8.trim()}),T8=_.Q(T8),FB=T8.next();!FB.done;FB=T8.next())if(!y8d(FB.value))return T8=void 0,(T8=kp)==null?void 0:T8.selectedErrorMessage}}}};
return _.e("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.e("div",{class:"ytStructuredContextNoteViewModelTextField"},_.e(_.sN,{data:function(){var T8;return(T8=G.data())==null?void 0:T8.noteContents}},{textFormFieldViewModel:function(T8){return _.e(_.Tng,{data:T8.data,
onInput:z,validation:C,characterLimit:H})},
textFieldViewModel:function(T8){return _.e(_.abW,{data:T8.data,onInput:z,validation:C,characterLimit:H})}})),_.e("div",{class:"ytStructuredContextNoteViewModelTextField"},_.e(_.sN,{data:function(){var T8;
return(T8=G.data())==null?void 0:T8.noteTimestamp}},{textFormFieldViewModel:function(T8){return _.e(_.Tng,{data:T8.data,
onInput:t,validation:g})},
textFieldViewModel:function(T8){return _.e(_.abW,{data:T8.data,onInput:t,validation:g})}})),_.e("div",{class:"ytStructuredContextNoteViewModelTextField"},_.e(_.sN,{data:function(){var T8;
return(T8=G.data())==null?void 0:T8.noteSources}},{textFormFieldViewModel:function(T8){return _.e(_.Tng,{data:T8.data,
onInput:x,validation:QO})},
textFieldViewModel:function(T8){return _.e(_.abW,{data:T8.data,onInput:x,validation:QO})}})))},"ni");
OE7.idomCompat=!0;_.R1(OE7,"yt-structured-context-note-view-model",{props:{data:_.bl}});var eS$=_.W(function(G){var c=_.Q(_.Gz(function(){var K;if((K=G.controlled)==null?0:K.call(G))return[];var m;return(((m=G.data())==null?void 0:m.chips)||[]).map(function(a){a=_.D(a,_.bv);if(a==null?0:a.selected)return Y$u(a.chipValue)}).filter(function(a){return a!==void 0})})),I=c.next().value,R=c.next().value,Z=function(K){var m=Y$u(K.chipValue);
if(m!==void 0){var a;if((a=G.controlled)==null?0:a.call(G))return void G.controlled().onTap(m);K=I().includes(m)?[].concat(_.jn(I().filter(function(N){return N!==m}))):[].concat(_.jn(I()),[m]);
R(K);var O;if((O=G.uncontrolled)==null?0:O.call(G))G.uncontrolled().onUpdate(K)}};
return _.e("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.e(_.fh,{each:function(){return G.data().chips||[]}},function(K){return _.e("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.e(_.B32,{data:function(){return _.D(K,_.bv)},
selected:function(){var m;if(m=_.D(K,_.bv)){var a=Y$u(m.chipValue);if(a!==void 0){var O;m=((O=G.controlled)==null?0:O.call(G))?G.controlled().selectedValues.includes(a):I().includes(a)}else m=void 0}else m=!1;return m},
callback:Z}))}))},"oi");var Nnd=_.W(function(G){var c=G.data;var I=function(){var a;return((a=c())==null?void 0:a.flowStateKey)||""},R=_.um(_.Iw,I),Z=function(){var a;
return(a=_.D(R(),KJH))==null?void 0:a.chips},K=function(a){if(a!==void 0){var O=Z()||[];
O=O.find(function(N){return N===a})?O.filter(function(N){return N!==a}):[].concat(_.jn(O),[a]);
O=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.D(R(),KJH),{chips:O})});_.y1(_.Le("flowStateEntity",I(),O))}},m=function(){var a;
return _.D((a=c())==null?void 0:a.inputBox,P8d)};
G=_.W7(function(a){var O=m();O=!(O==null?0:O.maxChars)||a.length<=O.maxChars;a=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.D(R(),KJH),{detail:a}),abuseReportFlowState:Object.assign({},_.D(R(),NT),{navigationEnabled:O})});_.y1(_.Le("flowStateEntity",I(),a))},150);
return _.e("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.e("div",{class:"ytFeedbackFormViewModelChips"},_.e(_.sN,{data:function(){var a;return(a=c())==null?void 0:a.chipSelection}},{chipSelectionFormFieldViewModel:function(a){return _.e(eS$,{data:a.data,
controlled:function(){return{selectedValues:Z()||[],onTap:K}}})}})),_.e("div",{class:"ytFeedbackFormViewModelInputBox"},_.e(mDj,{text:function(){var a;
return(a=_.D(R(),KJH))==null?void 0:a.detail},
placeholder:function(){var a;return((a=m())==null?void 0:a.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var a=m();if(a&&a.maxChars)return{maxChars:a.maxChars,errorMessage:a.maxCharsExceededErrorMessage||""}},
onInput:G})),_.e("div",{class:"ytFeedbackFormViewModelFooterText"},_.e(_.ul,{text:function(){return c().footerText}})))},"pi");
Nnd.idomCompat=!0;_.R1(Nnd,"yt-feedback-form-view-model",{props:{data:_.bl}});var lbW=_.W(function(G){var c=G.data;var I=_.um(XNd,function(){return c().flowStateKey||""}),R=function(){var Z;
_.r0((Z=_.D(I(),NT))==null?void 0:Z.navigationCommand)};
return _.e("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.e("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.e(_.sN,{data:function(){return c().cancelButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:R})}}),_.e(_.sN,{data:function(){var Z;
if(c().navButton){var K=Object;var m=K.assign,a=_.D(c().navButton,_.uv),O=((Z=_.D(I(),NT))==null?0:Z.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",N,q;Z=_.D((N=_.D(I(),NT))==null?void 0:N.navigationCommand,_.JN);N=(q=_.D(Z,_.ID))==null?void 0:q.url;K={buttonViewModel:m.call(K,{},a,{state:O,iconName:N?"OPEN_IN_NEW":""})}}else K=void 0;return K}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:R})}})))},"qi");
lbW.idomCompat=!0;_.R1(lbW,"yt-report-form-bottom-bar-view-model",{props:{data:_.bl}});var qUH=_.W(function(G){var c=G.nextStep;return _.e("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.e("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.e(_.F6,{icon:function(){return c().iconName||""}})),_.e("div",null,_.e(_.ul,{text:function(){return c().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ri"),wHu=_.W(function(G){var c=G.data;
var I,R=(I=_.wH().resolve(_.qR(_.d0)))==null?void 0:I(),Z=_.um(_.Iw,function(){return c().flowStateKey||""});
return _.e("yt-report-form-confirmation-page-view-model",{class:function(){var K;return((K=_.D(Z(),NT))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.e("div",{class:function(){var K;
return((K=_.D(Z(),NT))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.e(_.yc,{data:function(){return R&&c().imageDark?c().imageDark:c().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.e("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.e("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return c().confirmationHeader}),_.e("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.e(_.ul,{text:function(){return c().confirmationText}})),_.e("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.e(_.ul,{text:function(){return c().lawEnforcementText}})),
_.e("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return c().whatToExpectHeader}),_.e(_.l,{cond:function(){return c().nextSteps},
then:function(K){return _.e("div",null,_.e(_.fh,{each:K},function(m){return _.e(qUH,{nextStep:m})}))}}),_.e(_.l,{cond:function(){return c().legalReportText},
then:function(K){return _.e("div",null,_.e(_.ul,{text:K,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"si");
wHu.idomCompat=!0;_.R1(wHu,"yt-report-form-confirmation-page-view-model",{props:{data:_.bl}});var Fcr=_.W(function(G){var c=G.data;var I=function(){var K;return((K=_.D(c().inputBox,P8d))==null?void 0:K.maxChars)||500},R=function(){return c().flowStateKey||""},Z=_.um(_.Iw,R);
G=_.W7(function(K){K=Object.assign({},Z(),{flowFormState:{isValid:K.length<=I()},abuseReportFlowState:{userComments:K,navigationEnabled:!(K.length>I()),isReportFormDirty:!0}});_.XZ().dispatch(_.Wm("flowStateEntity",R(),K))},150);
_.tI(function(){var K=Object.assign({},Z(),{flowFormState:{isValid:!0}});_.XZ().dispatch(_.Wm("flowStateEntity",R(),K))});
return _.e("yt-report-form-details-page-view-model",{class:function(){var K;return((K=_.D(Z(),NT))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.e("h1",{class:function(){var K;
return((K=_.D(Z(),NT))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return c().detailsPageHeader}),_.e("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.e(_.ul,{text:function(){return c().bodyText}})),_.e("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.e(mDj,{label:function(){var K;
return((K=_.D(c().inputBox,P8d))==null?void 0:K.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var K;return{errorMessage:((K=_.D(c().inputBox,P8d))==null?void 0:K.maxCharsExceededErrorMessage)||"",maxChars:I()}},
onInput:G})))},"ti");
Fcr.idomCompat=!0;_.R1(Fcr,"yt-report-form-details-page-view-model",{props:{data:_.bl}});var na$=_.W(function(G){var c=G.data;var I=function(){return c().flowStateKey||""},R=_.um(_.Iw,I),Z=function(){return _.D(R(),NT)};
return _.e("yt-report-form-reason-select-page-view-model",{class:function(){var K;return((K=Z())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.e("h1",{class:function(){var K;
return((K=Z())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return c().pageHeader}),_.e("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.e(_.ul,{text:function(){return c().bodyText}})),_.e("div",{class:function(){var K;
return((K=Z())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.e(_.ZEW,{data:function(){return _.D(c().radioButtonGroup,_.wdW)},
onSelected:function(K,m){K=Object.assign({},R(),{abuseReportFlowState:Object.assign({},Z(),{reasonKey:m.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:m.command})});_.y1(_.Le("flowStateEntity",I(),K))},
selectedKey:function(){var K;return(K=Z())==null?void 0:K.reasonKey},
groupName:"report-form-reason-select-page"})))},"ui");
na$.idomCompat=!0;_.R1(na$,"yt-report-form-reason-select-page-view-model",{props:{data:_.bl}});var vaF=_.W(function(G){var c=G.data;var I,R=(I=_.wH().resolve(_.qR(_.d0)))==null?void 0:I();return _.e("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.e("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.e(_.yc,{data:function(){return R&&c().imageDark?c().imageDark:c().image},
alt:""})),_.e("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.e("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return c().header}),_.e(_.ul,{text:function(){return c().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"vi");
vaF.idomCompat=!0;_.R1(vaF,"yt-report-form-sign-in-page-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=_.o1(_.hhV.talkToRecsStateSelector),R=function(){return c().titleSuperscript},Z=function(){return c().answersShelf},K=function(){return c().videoShelf},m=function(){var g;
return(g=c().textInputPlaceholder)==null?void 0:g.content},a=function(){return c().showOpenTextInput},O=function(){var g;
return(g=c().textInputValue)==null?void 0:g.content},N=function(){return c().isMultiTurnFlow?c().resetButtonViewModel:void 0},q="",w=function(){return c().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
G=_.Q(_.ks("",void 0,"GjDBze"));var F=G.next().value,n=G.next().value;G=_.Q(_.ks(!1,void 0,"cHfsvd"));var U=G.next().value,k=G.next().value,p=function(){return{state:U()||F()?"active":"disabled",disabled:!(U()||F())}};
_.xc(function(){if(a()){O()&&n(O());var g;if(!N()&&((g=I())==null?0:g.stepStates)){var QO;g=Object.keys((QO=I())==null?void 0:QO.stepStates);QO=g[g.length-1];var T8,kp;QO=(T8=I().stepStates[QO])==null?void 0:(kp=T8.userQuery)==null?void 0:kp.userQuery;_.y1(_.g0j());QO&&M(QO)}}});
var M=function(g){var QO=c().onUpdateText;QO&&_.r0(QO,{form:{userQuery:g}});n(g)},z=_.W7(function(g){M(g.target.value.trim())},150),t=_.Nx(function(g){var QO;
q=(QO=g.target.value)==null?void 0:QO.trim();z(g);return!1}),x=_.Nx(function(g){g.key==="Enter"&&(U()||F())&&(M(g.target.value.trim()),H());
return!1}),C=function(g,QO){k(QO);
if(QO){if(c().isMultiTurnFlow&&!q){var T8;M((T8=g==null?void 0:g.text)!=null?T8:"")}c().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&H()}else n(q)},H=function(){var g=_.D(c().nextButtonViewModel,_.uv);
if(g==null?0:g.trackingParams){g=_.kC(g.trackingParams);var QO=_.k0();QO&&g&&_.xD(QO,g,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(g=c().onNextStepCommand)&&_.r0(g)};
G={};return _.e("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.e("div",{class:"ytwTalkToRecsTopCornerButton"},_.e(_.sN,{data:function(){return c().topCornerButton}},{buttonViewModel:_.BR})),_.e("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.e("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.e(_.ul,{text:function(){return c().title}}),_.e(_.l,{cond:R,
then:function(){return _.e("sup",{class:"ytwTalkToRecsSuperScript"},_.e(_.ul,{text:R}))}})),_.e("div",{class:"ytwTalkToRecsSubtitle"},_.e(_.ul,{text:function(){return c().subtitle}})),_.e("div",{class:"ytwTalkToRecsResultsShelf"},_.e(_.l,{cond:Z,
then:function(){return _.e(_.sN,{data:Z},{chipsShelfViewModel:function(g){return _.e("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.e(_.Rc,{data:g.data,callback:C,selectionBehavior:w}))}})}}),_.e(_.l,{cond:K,
then:function(){return _.e(_.sN,{data:K},{horizontalShelfViewModel:function(g){return _.e("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.e(_.$R,{data:g.data,thumbnailAspectRatio:0}))}})}})),_.e("div",{class:_.O3("ytwTalkToRecsRefinementContainer",(G.ytwTalkToRecsBottomMargin=function(){return c().isMultiTurnFlow},G))},_.e(_.l,{cond:a,
then:function(){return _.e("div",{class:"ytwTalkToRecsUserInputBox"},_.e("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:m,value:F,"on:input":t,"on:keyup":x,maxlength:200}))}}),_.e(_.sN,{data:function(){return c().isMultiTurnFlow?c().nextButtonViewModel:void 0}},{buttonViewModel:function(g){return _.e("div",{class:"ytwTalkToRecsFlowControlButtons"},_.e(_.BR,{data:g.data,
buttonOverrides:p}))}}),_.e(_.sN,{data:N},{buttonViewModel:function(g){return _.e("div",{class:"ytwTalkToRecsFlowControlButtons"},_.e(_.BR,{data:g.data,
onClick:function(){var QO=_.D(c().resetButtonViewModel,_.uv);M(F());(QO=QO==null?void 0:QO.onTap)&&_.r0(QO)}}))}}))))},"xi"),"yt-talk-to-recs-view-model",{props:{data:_.bl}});var GOr={sources:[{clientResource:{imageName:"CHECK"}}]};_.DDu=_.W(function(G){var c=_.mX("div");G=_.YW(G,{error:void 0});var I=G.data,R=G.error,Z=G.onSelected;G=G.className;var K=_.Q(_.Gz(function(){return RgG(I())})),m=K.next().value,a=K.next().value;
QQd(I,function(n){a(n);var U,k,p=IZr((U=I().options)==null?void 0:(k=U[n])==null?void 0:k.value,I().type);Z==null||Z(p);c.value.focus()});
K=_.Nx(function(){if(!I().disabled){var n=I(),U=m(),k=c.value;n.options&&(n=cOd(n.options,U,n.label),_.wH().resolve(_.O6).openSheet({viewModel:n},k))}});
var O=_.hx0(),N=function(){return!!R()},q=function(){return!!I().disabled},w={},F={};
return _.e("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.e("div",{class:_.O3("ytDropdownViewModelDropdownContainer",G,(w.ytDropdownViewModelDropdownContainerErrorBorder=N,w.ytDropdownViewModelDropdownContainerDisabled=q,w)),"on:click":K,el:c,role:"combobox",tabindex:0,"on:keydown":O,"aria-invalid":N,"aria-disabled":q,"aria-describedby":function(){return N()?"dropdown-view-model-error":void 0}},_.e("div",{class:"ytDropdownViewModelText"},ZRH(I,N,m),KYH(I,m)),_.e("div",{class:_.O3("ytDropdownViewModelChevronDown",
(F.ytDropdownViewModelChevronDownDisabled=q,F))},_.e(_.F6,{icon:"CHEVRON_DOWN"}))),P6W(I,R))},"yi");_.R1(_.W(function(G){var c=G.data;var I=function(Z){var K=aZH(c());K.videoMetadata||(K.videoMetadata={});K.videoMetadata.sponsorshipsMetadata||(K.videoMetadata.sponsorshipsMetadata={});K.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Z)},R=function(Z){var K=aZH(c());
K.scheduledRedirectMetadata||(K.scheduledRedirectMetadata={});K.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Z)};
return _.e("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.e("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.e("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.e(_.ul,{text:function(){return c().title}}),_.e(_.F6,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.e(_.ul,{text:function(){return c().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.e(_.sN,{data:function(){return c().tierChoices}},{dropdownViewModel:function(Z){return _.e("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.e(_.DDu,{data:Z.data,
onSelected:I}))}}),_.e(_.sN,{data:function(){return c().startTimeChoices}},{dropdownViewModel:function(Z){return _.e("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.e(_.DDu,{data:Z.data,
onSelected:R}))}}),_.e(_.ul,{text:function(){return c().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.e("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.e(_.sN,{data:function(){return c().scheduleButton}},{panelFooterViewModel:_.jp})))},"zi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;G=G.className===void 0?"":G.className;var I=_.um(XNd,function(){return c().flowStateEntityKey||""}),R={};
R=_.O3("ytFlowBottomBarViewModelFlowBottomBarButtons",(R.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},R));
var Z={},K=_.O3("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",R,(Z.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Z.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Z));
Z={};var m=_.O3("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",R,(Z.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Z.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Z));
R={};R=_.O3("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
R));
G=_.O3("ytFlowBottomBarViewModelHost",G);return _.e("yt-flow-bottom-bar-view-model",{class:G},_.e(_.l,{cond:function(){var a;return(a=c())==null?void 0:a.textSection},
then:function(a){return _.e("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.e(_.ul,{text:a}))}}),_.e("div",{class:R},_.e(_.sN,{data:function(){return c().secondaryButton}},{buttonViewModel:function(a){return _.e(_.BR,{data:a.data,
className:m})}}),_.e(_.sN,{data:function(){return c().primaryButton}},{buttonViewModel:function(a){return _.e(_.BR,{data:a.data,
className:K,buttonOverrides:function(){var O;return{disabled:!((O=I())==null||!O.primaryButtonDisabled)}}})}})))},"Ai"),"yt-flow-bottom-bar-view-model",{props:{data:_.bl,
className:_.G9}});var oa1="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),tL=function(){var G=_.J.apply(this,arguments)||this;G.enableScrollingFix=!0;G.bottomBar=!1;G.fitContent=!1;return G};
_.u(tL,_.J);_.P=tL.prototype;_.P.ready=function(){_.v("enable_pdp_icon_prefetch")&&_.HR7(_.wH().resolve(_.zZ$),0,oa1)};
_.P.focus=function(G){this.topBar?_.mp(this.topBar,G):this.paperDialog.focus(G)};
_.P.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19563_scroller&&(this.JSC$19563_scroller.dialogElement=this.paperDialog,this.JSC$19563_scroller.attached&&typeof this.JSC$19563_scroller.attached==="function"&&this.JSC$19563_scroller.attached())};
_.P.onDataChanged=function(){var G;this.fitContent=!((G=this.data)==null||!G.fitContent);var c;this.bottomBar=!((c=this.data)==null||!c.bottomBar)};
_.P.onProgressChanged=function(){var G,c,I=((c=(G=this.data)==null?void 0:G.progress)!=null?c:0)*100;this.progressElement.style.width=I+"%"};
_.P.isProgressHidden=function(){var G;return!((G=this.data)==null?0:G.progress)};
_.P.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(G){return G&&!G.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
tL.prototype.onProgressChanged=tL.prototype.onProgressChanged;tL.prototype.onDataChanged=tL.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tL.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tL.prototype,"enableScrollingFix",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tL.prototype,"bottomBar",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tL.prototype,"fitContent",void 0);_.r([_.nH("#progress"),_.h("design:type",HTMLElement)],tL.prototype,"progressElement",void 0);_.r([_.nH("#scroller"),_.h("design:type",Object)],tL.prototype,"JSC$19563_scroller",void 0);_.r([_.nH("ytd-flow-top-bar-renderer"),_.h("design:type",HTMLElement)],tL.prototype,"topBar",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tL.prototype,"onDataChanged",null);_.r([_.wD("data.progress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tL.prototype,"onProgressChanged",null);_.r([_.Jc({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],tL);
_.B(tL,"ytd-flow-step-renderer",function(){if(tWd!==void 0)return tWd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return tWd=G},{mode:1});var hL=function(G){this.resolveCommand=G;this.steps={}},UDF=function(G,c){c=_.Q(c||[]);
for(var I=c.next();!I.done;I=c.next()){I=I.value;var R=Object.values(I)[0],Z=void 0;if((Z=R)==null?0:Z.stepId)G.steps[R.stepId]=I}},bEW=function(G,c){var I,R,Z,K,m;
return _.T(function(a){if((I=G.state)==null||!I.currentStepId)return a.return(void 0);R=G.getCurrentStep();if(!R)return a.return(uNr(G));if(Z=_.D(R,_.KJ))G.logVEScreen(Z),((K=Z)==null?0:K.onStepStartCommand)&&G.resolveCommand((m=Z)==null?void 0:m.onStepStartCommand,{});Z&&c&&(G.logFlowEvent(Z,c),c.steps&&!c.steps.includes(R)&&c.steps.push(R));return a.return(R)})};
hL.prototype.back=function(){var G;(G=this.state)!=null&&G.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
hL.prototype.handleUpdateFlowCommand=function(G){G.steps&&UDF(this,G.steps);G.entityUpdateCommand&&this.resolveCommand(G.entityUpdateCommand,{});G.flowContinuationCommand&&(G=G.flowContinuationCommand)&&(this.getFlowContinuationCommand=G);this.awaitFlowContinuation&&(G=this.getCurrentStep(),this.awaitFlowContinuation(G),this.awaitFlowContinuation=void 0)};
hL.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var uNr=function(G){return _.T(function(c){return G.getFlowContinuationCommand?c.return(new Promise(function(I){G.awaitFlowContinuation=I;G.getFlowContinuationCommand&&G.resolveCommand(G.getFlowContinuationCommand,{flow_state:G.state})})):c.return(Promise.resolve(void 0))})};
hL.prototype.getCurrentStep=function(){var G;if((G=this.state)!=null&&G.currentStepId)return this.steps[this.state.currentStepId]};
hL.prototype.logVEScreen=function(G){var c;((c=G.screenLoggingData)==null?0:c.screenVeType)&&_.dt(_.DP(),G.screenLoggingData.screenVeType)};
hL.prototype.logFlowEvent=function(G,c){var I,R,Z,K;((I=c.flowLoggingData)==null?0:I.eventNamespace)&&((R=G.flowEventData)==null?0:R.eventType)&&((Z=G.flowEventData)==null?0:Z.eventMetadata)&&((K=c.flowLoggingData)==null?0:K.flowType)&&(G=_.OU(c.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.ex().logFlowEvent(G,c.flowLoggingData.flowType))};
_.Nh.Object.defineProperties(hL.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.state)==null?void 0:G.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.state)!=null&&G.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(c,I){I.key&&I.value&&(c[I.key]=I.value);return c},{})}}});var df=function(){var G=_.J.apply(this,arguments)||this;G.flowState=_.v("web_use_flow_state_manager")?void 0:new hL(function(c,I){I=I===void 0?{}:I;_.NC.instance.resolveCommand(c,{form:{form:I,element:G.hostElement}})});
G.JSC$19574_flowStateManager=_.v("web_use_flow_state_manager")?_.wH().resolve(_.cV):void 0;G.currentTargetId="";G.initialState=!0;G.isLoading=!1;G.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};G.containsTalkToRecs=!1;return G};
_.u(df,_.J);_.P=df.prototype;_.P.onPopupClosed=function(G){if(!G||this.hostElement===G.detail.popupRenderer){if(this.JSC$19574_flowStateManager){var c;((c=this.data)==null?0:c.flowStateEntityKey)&&this.JSC$19574_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.P.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.P.focus=function(G){var c=this;_.xW(function(){var I=_.Q1(c.hostElement).querySelector("ytd-flow-step-renderer");(I==null?0:I.topBar)?I.focus(G):c.topBar&&_.mp(c.topBar,G)},1)};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.P.computeTopBarHidden=function(G){var c;return!((c=_.D(G,_.KJ))==null||!c.topBarOverride)};
_.P.onCurrentFlowChange=function(){if(this.JSC$19574_flowStateManager&&this.data&&this.flow){var G=jQr(this.JSC$19574_flowStateManager,this.data),c;if(G&&((c=this.flow)==null?0:c.currentStepId)){G=hgW(G,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var I;!G&&((I=this.data)==null?0:I.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.P.observeData=function(){var G=this;if(this.JSC$19574_flowStateManager){var c=this.currentTargetId,I,R,Z=(R=(I=this.data)==null?void 0:I.targetId)!=null?R:"";c!==Z&&c&&xyu(this.JSC$19574_flowStateManager,c);this.currentTargetId=Z;this.data&&tyF(jQr(this.JSC$19574_flowStateManager,this.data),function(K){K&&(G.initialState=!1,G.currentFlowStep={flowStepRenderer:K},G.isLoading=!G.currentFlowStep,G.autofocusAndRefit(),G.updateContainsTalkToRecs(),G.logVEScreen(),G.logFlowEvent())})}};
_.P.dataChanged=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1){if(!G.flowState)return R.return();((c=G.data)==null?0:c.steps)&&UDF(G.flowState,G.data.steps);if((I=G.data)==null?0:I.flowContinuationCommand){var Z=G.flowState,K=G.data.flowContinuationCommand;K&&(Z.getFlowContinuationCommand=K)}return R.yield(bEW(G.flowState,G.data),2)}G.currentFlowStep=R.yieldResult;_.Vp(R)})};
_.P.flowChanged=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1){if(!G.flowState||!G.flow)return I.return();G.flowState.state=G.flow;G.isLoading=!0;return I.yield(bEW(G.flowState,G.data),2)}c=I.yieldResult;if(!c||G.flow.isLoading)return I.return();G.currentFlowStep=c;G.initialState=!1;G.isLoading=!1;G.autofocusAndRefit();G.updateContainsTalkToRecs();_.Vp(I)})};
_.P.logVEScreen=function(){var G,c,I=(G=_.D(this.currentFlowStep,_.KJ))==null?void 0:(c=G.screenLoggingData)==null?void 0:c.screenVeType;I&&_.dt(_.wH().resolve(_.PQ),I)};
_.P.logFlowEvent=function(){var G=_.D(this.currentFlowStep,_.KJ),c,I,R,Z,K,m;(this==null?0:(c=this.data)==null?0:(I=c.flowLoggingData)==null?0:I.eventNamespace)&&(this==null?0:(R=this.data)==null?0:(Z=R.flowLoggingData)==null?0:Z.flowType)&&(G==null?0:(K=G.flowEventData)==null?0:K.eventType)&&(G==null?0:(m=G.flowEventData)==null?0:m.eventMetadata)&&(G=_.OU(this.data.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.ex().logFlowEvent(G,this.data.flowLoggingData.flowType))};
_.P.updateContainsTalkToRecs=function(){var G,c=(G=_.D(this.currentFlowStep,_.KJ))==null?void 0:G.content;this.containsTalkToRecs=!!c&&!!_.D(c,ew1)};
_.P.autofocusAndRefit=function(){var G=this,c=_.wH().resolve(_.qR(_.zb)),I=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),R=document.querySelector("yt-report-form-confirmation-page-view-model"),Z=document.querySelector("yt-report-form-details-page-view-model"),K=document.querySelector("yt-report-form-reason-select-page-view-model"),m=document.querySelector("yt-contributor-zero-state-view-model"),
a=document.querySelector("yt-structured-context-note-view-model"),O=document.querySelector("yt-note-view-model");(!I&&c&&c.isKeyBoardInUse()||R||!I&&Z||!I&&K||!I&&(m||a||O))&&_.ax(this.hostElement);_.O$(this,function(){_.Xl(G.hostElement,"yt-refit")})};
_.P.handleUpdateFlowCommand=function(G){this.flowState?this.data&&(G=_.D(G,_.vOK),G.targetId===this.data.targetId&&(G.flowContinuationCommand&&(this.data.flowContinuationCommand=G.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(G),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(G)};
_.P.handleFlowNextStepCommand=function(G){this.JSC$19574_flowStateManager?this.ytComponentBehavior.resolveCommand(G):this.data&&this.flow&&this.flow.key&&(G=_.D(G,_.qAN),G.targetId===this.data.targetId&&(G=G.stepId||"",this.ytdReduxBehavior.dispatch(_.Wm("flowStateEntity",this.flow.key,{currentStepId:G,stepIdStack:(this.flow.stepIdStack||[]).concat(G)}))))};
_.P.handleFlowPrevStepCommand=function(G){if(this.JSC$19574_flowStateManager)this.ytComponentBehavior.resolveCommand(G);else if(this.data&&this.flow&&this.flow.key&&(G=_.D(G,_.wpp),G.targetId===this.data.targetId)){var c=[].concat(_.jn(this.flow.stepIdStack||[]));c.length>1?(c.pop(),this.ytdReduxBehavior.dispatch(_.Wm("flowStateEntity",this.flow.key,{currentStepId:c[c.length-1],stepIdStack:c}))):G.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(G.onFirstStepCommand)}};
_.P.handleYpcCancelRecurrenceCommand=function(G){if(this.data&&this.flow&&this.flow.key&&(G=_.D(G,nD$),G.targetId===this.data.targetId&&G.endpointCommand)){var c=_.D(this.flow,vDW);c&&_.D(G.endpointCommand,_.Sye)&&(_.D(G.endpointCommand,_.Sye).feedbackData=c.surveyFeedback);this.ytComponentBehavior.resolveCommand(G.endpointCommand)}};
_.P.handlePartialUpdateFlowStateEntity=function(G){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Wm("flowStateEntity",this.flow.key,G,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
df.prototype.flowChanged=df.prototype.flowChanged;df.prototype.dataChanged=df.prototype.dataChanged;df.prototype.observeData=df.prototype.observeData;df.prototype.onCurrentFlowChange=df.prototype.onCurrentFlowChange;df.prototype.onPopupClosed=df.prototype.onPopupClosed;_.r([_.L(_.wQ),_.h("design:type",Object)],df.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],df.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],df.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],df.prototype,"initialState",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],df.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Object)],df.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],df.prototype,"currentFlowStep",void 0);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],df.prototype,"onPopupClosed",null);
_.r([_.E({selectorArgs:["data.flowStateEntityKey"],selector:XNd}),_.h("design:type",Object)],df.prototype,"flow",void 0);_.r([_.nH("ytd-flow-top-bar-renderer"),_.h("design:type",HTMLElement)],df.prototype,"topBar",void 0);_.r([_.wD("data","flow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],df.prototype,"onCurrentFlowChange",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],df.prototype,"observeData",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],df.prototype,"dataChanged",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],df.prototype,"containsTalkToRecs",void 0);_.r([_.uO("flow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],df.prototype,"flowChanged",null);_.r([_.Jc({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],df);
_.keH=_.PI()(df,"ytd-flow-root-renderer",function(){if(x2d!==void 0)return x2d;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return x2d=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var sI0;var wqH=null;_.R1(_.W(function(G){return _.e("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.e("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.e(_.ul,{text:function(){return G.data().text}}),_.e("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Bi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.bl}});var Lc1=_.W(function(G){var c=G.playerControlsProps;var I=G.isShortsPage;return _.e("yt-bigboard",null,_.e(_.l,{cond:function(){return c().isDragging},
then:function(){return _.e("div",{class:"ytBigboardStoryboardHost"},_.e(_.PBW,{progressBarProps:c,isShortsPage:I}))}}))},"Ci");
Lc1.idomCompat=!0;_.C2={ACCOUNT_LABEL:ep("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:ep("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:ep("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:ep("AD_BADGE_HINT"),AD_BADGE_TEXT:ep("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:ep("ALL_CHANNELS_LABEL"),AMBIENT_MODE:ep("AMBIENT_MODE"),AMBIENT_MODE_OFF:ep("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:ep("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:ep("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:ep("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:ep("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:ep("APP_UPSELL_TITLE"),AUDIO_TRACK:ep("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:ep("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:ep("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:ep("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:ep("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:ep("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:ep("AUTO_ZOOM","Auto zoom"),BACK:ep("BACK"),CANCEL:ep("CANCEL"),CHANNEL_SWITCHER_LABEL:ep("CHANNEL_SWITCHER_LABEL"),CLOSE:ep("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:ep("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:ep("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:ep("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:ep("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:ep("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:ep("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:ep("COMMENT_MODAL_CONTENT"),CONFIRM_OK:ep("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:ep("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:ep("COPIED_TO_CLIPBOARD"),COPY:ep("COPY"),COPY_DEBUG_INFO:ep("COPY_DEBUG_INFO"),COPY_EMBED_CODE:ep("COPY_EMBED_CODE"),
COPY_LINK_LABEL:ep("COPY_LINK_LABEL"),COPY_VIDEO_URL:ep("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:ep("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:ep("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:ep("DELETE_FROM_DOWNLOADS"),DIALOG:ep("DIALOG"),DONE:ep("DONE"),DOWNLOAD:ep("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:ep("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:ep("FLAG_CONFIRM"),FLAG_CONTENT:ep("FLAG_CONTENT"),FLAG_LABEL:ep("FLAG_LABEL"),FLAG_TITLE:ep("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:ep("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:ep("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:ep("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:ep("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:ep("HIDE_SEARCH_FILTERS_LABEL"),HOME:ep("HOME","Home"),INVALID_RESPONSE_RECEIVED:ep("INVALID_RESPONSE_RECEIVED"),LIBRARY:ep("LIBRARY","Library"),LISTENING:ep("LISTENING"),LOADING:ep("LOADING"),LONG_PRESS_MIC_TO_SPEAK:ep("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:ep("LOOP"),MENU_DESKTOP:ep("MENU_DESKTOP"),
MENU_EXIT:ep("MENU_EXIT"),MENU_FEEDBACK:ep("MENU_FEEDBACK"),MENU_HELP:ep("MENU_HELP"),MENU_IMPRESSUM:ep("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:ep("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:ep("MENU_SETTINGS"),MENU_SIGN_IN:ep("MENU_SIGN_IN"),MENU_TITLE:ep("MENU_TITLE"),MENU_YOUR_DATA:ep("MENU_YOUR_DATA"),MORE_INFO:ep("MORE_INFO"),MORE_OPTIONS:ep("MORE_OPTIONS"),MUTE_VOLUME:ep("MUTE_VOLUME"),NEW_PLAYLIST:ep("NEW_PLAYLIST"),NEXT_VIDEO:ep("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:ep("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:ep("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:ep("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:ep("NOT_FOUND_TITLE"),NO_DOWNLOADS:ep("NO_DOWNLOADS"),NO_MIC_INPUT:ep("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:ep("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:ep("OOPS_MESSAGE"),OPEN_APP:ep("OPEN_APP"),OPEN_YOUTUBE:ep("OPEN_YOUTUBE"),PAUSE:ep("PAUSE"),PLAY:ep("PLAY"),PLAYER_CAPTION:ep("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:ep("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:ep("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:ep("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:ep("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:ep("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:ep("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:ep("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:ep("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:ep("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:ep("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:ep("PLAYER_MINIMIZE"),PLAYER_NEXT:ep("PLAYER_NEXT"),PLAYER_PAUSE:ep("PLAYER_PAUSE"),PLAYER_PLAY:ep("PLAYER_PLAY"),
PLAYER_PREVIOUS:ep("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:ep("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:ep("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:ep("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:ep("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:ep("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:ep("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:ep("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:ep("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:ep("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:ep("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:ep("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:ep("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:ep("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:ep("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:ep("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:ep("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:ep("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:ep("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:ep("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:ep("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:ep("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:ep("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:ep("PLAY_ALL"),PLEASE_FIX_ERRORS:ep("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:ep("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:ep("PREVIOUS_VIDEO"),PRIVACY_POLICY:ep("PRIVACY_POLICY"),RELOAD:ep("RELOAD"),REQUIRED_LABEL:ep("REQUIRED_LABEL"),SAVE_PLAYLIST:ep("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:ep("SCRUB_SLIDE_USER_EDU"),SEARCH:ep("SEARCH","Search"),
SEARCH_APPEND_LABEL:ep("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:ep("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:ep("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:ep("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:ep("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:ep("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:ep("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:ep("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:ep("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:ep("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:ep("SEEK_SLIDER"),SETTINGS_LABEL:ep("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:ep("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:ep("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:ep("SHOW_LESS"),SHOW_MORE:ep("SHOW_MORE"),SHOW_PLAYER_CONTROLS:ep("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:ep("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:ep("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:ep("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:ep("SIGN_IN_ON_WEB"),STABLE_VOLUME:ep("STABLE_VOLUME"),STABLE_VOLUME_OFF:ep("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:ep("STABLE_VOLUME_ON"),STATS_FOR_NERDS:ep("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:ep("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:ep("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:ep("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:ep("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:ep("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:ep("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:ep("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:ep("TIMESTAMP_SECONDS"),TOGGLE_OFF:ep("TOGGLE_OFF"),TOGGLE_ON:ep("TOGGLE_ON"),TRENDING:ep("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:ep("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:ep("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:ep("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:ep("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:ep("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:ep("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:ep("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:ep("VIDEO_LINK_LABEL")};var Ai7=_.W(function(G){var c=G.playerApi;G=_.mX("button",function(R){_.g9(R,36843)});
var I=ep("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.e("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.e("button",{el:G,class:"ytPlayerControlsJumpForwardButtonButton",title:I,"aria-label":I,"on:click":_.Nx(function(){_.Y8(36843);c&&c().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.e("span",null,_.e(_.F6,{icon:"FAST_FORWARD"}))))},"Di");var $DW=_.W(function(G){var c=G.appApi;G=_.mX("button",function(R){_.g9(R,62946)});
var I=ep("OPEN_IN_MINIPLAYER");return _.e("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.e("button",{el:G,class:"ytMiniplayerButtonButton",title:I,"aria-label":I,"on:click":_.Nx(function(){_.Y8(62946);var R,Z;(Z=(R=c()).openInMiniplayer)==null||Z.call(R);return!1})},_.e(_.F6,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Ei");var SUu=_.W(function(G){var c=G.playerApi;G=_.mX("button",function(K){_.g9(K,142812)});
var I=_.Q(_.ks(!1,void 0,"eOMRAb")),R=I.next().value,Z=I.next().value;I=function(){return ep("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(R()?1:2)})};
return _.e("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.e("button",{el:G,class:"ytPlaybackSpeedButtonButton",title:I,"aria-label":I,"on:click":_.Nx(function(){_.Y8(142812);if(c){var K=c(),m=R();K.setPlaybackRate(m?1:2);Z(!R())}return!1})},_.e("span",null,_.e(_.F6,{icon:function(){return R()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Fi");var pH7=_.W(function(G){var c=G.title;var I=G.ariaLabel;var R=G.icon;var Z=G.command;var K=G.visualElementId;G=_.mX("button",function(m){K&&_.g9(m,K())});
return _.e("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.e("button",{el:G,class:"ytdThumbnailOverlayButtonButton",title:c,"aria-label":I,"on:click":_.Nx(function(){K&&_.Y8(K());Z&&_.wH().resolve(_.n4).resolveCommand(Z())})},_.e(_.F6,{icon:R})))},"Gi");var K2="";var MxW=_.W(function(G){var c=G.playerControlsProps,I=G.onClickFn;G=_.SE(function(){var K=c(),m=-1;K.captionsAvailable&&(m=K.captionsEnabled?1:0);return m},void 0,"MZ0Wqe");
var R=_.SE(function(){var K=c();return K.captionsAvailable?_.mJ(K.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.mJ("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),Z=_.SE(function(){var K=c();
K=K.captionsAvailable?K.captionsEnabled:void 0;return K},void 0,"fhuQRe");
return _.e("yt-closed-captions-toggle-button",null,_.e(_.Cx0,{captionIconType:G,ariaLabel:R,ariaPressed:Z,onClick:function(K){var m=c();if(m.captionsAvailable){var a=m.playerApi;if(a){var O=m.playerApi;if(O){var N=K2;if(N){O=O.getOption("captions","track");var q;K2=(q=O?O.displayName:null)!=null?q:N}else _.z20(O)?(N=_.s$p(O),K2=N.length?(q=Gm$(N))?q.displayName:N[0].displayName:""):K2=""}c8W(a);_.v("mweb_disable_set_state_captions_killswitch")&&m.setState({captionsEnabled:!m.captionsEnabled})}}var w,
F;(F=(w=m.appApi).showCaptionsToggleToast)==null||F.call(w,m);I==null||I(K)},
isOverlay:!0}))},"Hi");var Vxr=_.W(function(G){var c=G.data;return _.e("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.e(_.ov,{data:function(){return{type:17,text:_.WSq(c().label)}}}))},"Ii");var zSF=_.W(function(G){var c=_.O3("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return G.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return G.size()==="small"?G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.e("animated-seek-arrows",{class:_.O3("ytPlayerControlsAnimatedSeekArrowsHost")},_.e("span",{class:c}),_.e("span",{class:c}),_.e("span",{class:c}))},"Ji");
zSF.idomCompat=!0;var Ea1=_.W(function(){var G=_.mJ("PLAYER_SECONDS",{seconds_placeholder:"30"}),c=_.Q(_.ks(!1,void 0,"iRJu8c")),I=c.next().value,R=c.next().value,Z=_.Q(_.ks(!1,void 0,"MPnizf"));c=Z.next().value;var K=Z.next().value;Z={};var m=_.O3("jumpForwardOverlayOverlay",(Z.jumpForwardOverlayOverlayHidden=c,Z));_.tI(function(){var a=null,O=null,N=function(){a!==null&&_.E_().cancelJob(a);O!==null&&_.E_().cancelJob(O);K(!0);R(!0);_.mq(_.E_(),function(){K(!1)});
a=_.mq(_.E_(),function(){K(!0);O=_.mq(_.E_(),function(){R(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",N);_.ty(function(){window.removeEventListener("jump-forward-clicked",N)})});
return _.e("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.e(_.l,{cond:I,then:function(){return _.e("div",{class:m},_.e(zSF,{direction:1,size:"large"}),_.e("div",null,G))}}))},"Ki");var Jiu=_.C2.MUTE_VOLUME,Wc7=_.C2.UNMUTE_VOLUME,iEu=_.W(function(G){var c=G.muteIconType;var I=G.onClick;var R=G.useOutlineIcon;var Z=G.useDelhiIcons;G=_.mX("button",function(a){_.g9(a,28662)});
var K=function(){var a=c(),O=R==null?void 0:R(),N=Z==null?void 0:Z(),q="",w="";switch(a){case -1:case 0:q=O?"VOLUME_OFF":N?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";w=Wc7;break;case 1:q=O?"VOLUME_UP_OUTLINE":N?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";w=Jiu;break;case 2:q=O?"VOLUME_DOWN_OUTLINE":N?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";w=Jiu;break;default:_.H0(a)}return{iconName:q,ariaLabel:w}},m=function(){return K().ariaLabel};
return _.e("ytm-mute-button",{class:"ytmMuteButtonHost"},_.e("button",{el:G,class:"ytmMuteButtonButton",title:m,"aria-label":m,"on:click":_.Nx(function(a){_.Y8(28662);I==null||I(a);return!1})},_.e("span",null,_.e(_.F6,{icon:function(){return K().iconName}}))))},"Li");var fbd=_.W(function(G){var c=G.volumeProps;var I=G.onClickFn;var R=G.useOutlineIcon;var Z=G.useDelhiIcons;return _.e("yt-mute-toggle-button",null,_.e(iEu,{muteIconType:function(){var K=c();return K.volumeMuted||K.volume===0?0:K.volume>50?1:2},
onClick:function(K){var m=c().playerApi;m&&(m.isMuted()?m.unMute():m.mute(!1));I==null||I(K)},
useOutlineIcon:function(){return!(R==null||!R())},
useDelhiIcons:function(){return!(Z==null||!Z())}}))},"Mi");
fbd.idomCompat=!0;var BnF=_.W(function(G){var c=G.data;var I=_.mX("ytm-paid-content-overlay-renderer");return _.e("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:I,"on:animationend":_.Nx(function(){I.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.e(_.Er,{command:function(){return c().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.e(_.l,{cond:function(){var R;return(R=c().icon)==null?void 0:R.iconType},
then:function(){return _.e("span",null,_.e(_.F6,{icon:function(){var R;return(R=c().icon)==null?void 0:R.iconType}}))}}),_.e("div",{class:"ytmPaidContentOverlayText"},_.e(_.ul,{text:function(){return c().text}})),_.e(_.l,{cond:function(){return c().navigationEndpoint},
then:function(){return _.e(_.F6,{icon:"CHEVRON_RIGHT"})}})))},"Ni");
BnF.idomCompat=!0;var YQ$=[].concat(_.jn([{register:function(G){var c=E0j(G),I;(I=G().playerApi)==null||I.addEventListener("onVolumeChange",c);return function(){}}},
{register:function(G){var c=JOd(G);G=G().playerApi;G==null||G.addEventListener("captionschanged",c);G==null||G.addEventListener("captionssettingschanged",c);G==null||G.addEventListener("onCaptionsTrackListChanged",c);return function(){}}}]),[{register:function(G){var c=pq1(G),I;
(I=G().playerApi)==null||I.addEventListener("onStateChange",c);return function(){}}},
{register:function(G){var c=MyH(G),I;(I=G().playerApi)==null||I.addEventListener("onPlaybackRateChange",c);return function(){}}},
{register:function(G){var c=VyG(G),I;(I=G().playerApi)==null||I.addEventListener("onVideoDataChange",c);return function(){}}},
{register:function(G){var c=zgF(G),I,R;(I=G())==null||(R=I.playerApi)==null||R.addEventListener("onVideoProgress",c);return function(){}}}]);var rir=_.W(function(G){var c=G.data;var I=function(){return _.mJ("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+c().playbackRate})};
return _.e(_.l,{cond:function(){return c().playbackRate&&c().playbackRate!==1},
then:function(){return _.e("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.e("div",{class:"ytPlaybackRateOverlayOverlay"},_.e(zSF,{direction:1,size:"small"}),_.e("div",{class:"ytPlaybackRateOverlayLabel"},I)))}})},"Pi");var jI$=_.W(function(G){var c=G.data;return _.e("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.e(_.l,{cond:function(){var I,R=(I=c())==null?void 0:I.playerResponse,Z;return R==null?void 0:(Z=R.paidContentOverlay)==null?void 0:Z.paidContentOverlayRenderer},
then:function(I){return _.e(BnF,{data:I})}}))},"Ri"),xDu=_.W(function(G){var c=G.props;
var I=G.data;var R=G.options;var Z=function(){var N,q,w,F;return(N=I())==null?void 0:(q=N.playerResponse)==null?void 0:(w=q.playerConfig)==null?void 0:(F=w.inlinePlaybackConfig)==null?void 0:F.showAudioControls},K=function(){var N,q;
if(Z()&&((N=R())==null?void 0:(q=N.additionalButton)==null?void 0:q.button)!==void 0){var w,F,n;N=(w=I())==null?void 0:(F=w.playerApi)==null?void 0:(n=F.getSize())==null?void 0:n.height;if(!(N===void 0||N<180)){var U,k;return(U=R())==null?void 0:(k=U.additionalButton)==null?void 0:k.button}}},m=function(){var N,q;
return(N=R())==null?void 0:(q=N.additionalButton)==null?void 0:q.thumbnailOverlayButtonRenderers},a=function(){var N,q;
return(N=R())==null?void 0:(q=N.additionalButton)==null?void 0:q.thumbnailOverlayButtonViewModels},O=function(){var N=[_.e(fbd,{volumeProps:c})],q;
((q=R())==null?0:q.hideCaptionsToggleButton)||N.push(_.e(MxW,{playerControlsProps:c}));K()===1&&N.push(_.e(Ai7,{playerApi:function(){return c().playerApi}}));
K()===2&&N.push(_.e($DW,{appApi:function(){return c().appApi}}));
K()===3&&N.push(_.e(SUu,{playerApi:function(){return c().playerApi}}));
q=m();if(K()===4&&q){q=_.Q(q);for(var w=q.next(),F={};!w.done;F={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$49:void 0,command$jscomp$606:void 0},w=q.next()){w=w.value;F.tooltip$jscomp$2=w.tooltip;var n=void 0,U=void 0;F.ariaLabel$jscomp$19=((n=w.accessibility)==null?void 0:(U=n.accessibilityData)==null?void 0:U.label)||F.tooltip$jscomp$2;n=void 0;F.icon$jscomp$49=(n=w.icon)==null?void 0:n.iconType;F.command$jscomp$606=w.command;F.tooltip$jscomp$2&&F.ariaLabel$jscomp$19&&F.icon$jscomp$49&&
N.push(_.e(pH7,{title:function(k){return function(){return k.tooltip$jscomp$2}}(F),
ariaLabel:function(k){return function(){return k.ariaLabel$jscomp$19}}(F),
icon:function(k){return function(){return k.icon$jscomp$49}}(F),
command:function(k){return function(){return k.command$jscomp$606}}(F)}))}}q=a();
if(K()===4&&q)for(q=_.Q(q),w=q.next(),F={};!w.done;F={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$607:void 0,trackingParamsVeType:void 0},w=q.next())w=w.value,F.tooltip$jscomp$3=w.title,F.ariaLabel$jscomp$20=w.accessibilityText||F.tooltip$jscomp$3,F.icon$jscomp$50=w.iconName,F.command$jscomp$607=_.WI(w.onTap),U=n=void 0,F.trackingParamsVeType=((n=w.loggingDirectives)==null?0:n.trackingParams)?(U=OC0(_.Yp(w.loggingDirectives.trackingParams)))==null?void 0:
_.wF(U,2):void 0,F.tooltip$jscomp$3&&F.ariaLabel$jscomp$20&&F.icon$jscomp$50&&N.push(_.e(pH7,{title:function(k){return function(){return k.tooltip$jscomp$3}}(F),
ariaLabel:function(k){return function(){return k.ariaLabel$jscomp$20}}(F),
icon:function(k){return function(){return k.icon$jscomp$50}}(F),
command:function(k){return function(){return k.command$jscomp$607}}(F),
visualElementId:function(k){return function(){return k.trackingParamsVeType}}(F)}));
return N};
return _.e(_.l,{cond:Z,then:function(){return _.e("div",{class:"ytInlinePlayerControlsTopRightControls"},_.e(_.fh,{each:O},function(N){return _.e("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.e("div",{class:"ytInlinePlayerControlsButtonIcon"},N))}))}})},"Si"),dDr=_.W(function(G){var c=G.props;
var I=G.data;var R=G.options;G={};G=_.O3("ytInlinePlayerControlsBottomRightControls",(G.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Z;return iRu(I(),R())&&((Z=R())==null?void 0:Z.insetProgressBar)&&(c().isHovering||c().isDragging)},G));
return _.e("div",{class:G},_.e(tx$,{data:I}),_.e(_.l,{cond:function(){var Z;return!((Z=R())==null?0:Z.hideTimeDisplay)},
then:function(){return _.e(hSW,{props:c,data:I})}}))},"Ti"),tx$=_.W(function(G){var c=G.data;
return _.e(_.sN,{data:function(){var I;return bRd((I=c())==null?void 0:I.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Vxr})},"Ui"),hSW=_.W(function(G){var c=G.props;
var I=G.data;return _.e(_.l,{cond:function(){return c().isLive},
then:function(){return _.e(Cud,{props:c,data:I})},
else:function(){return _.e(HE$,{props:c,data:I})}})},"Vi"),HE$=_.W(function(G){var c=G.props;
var I=G.data;var R=_.SE(function(){var Z;return kOg((Z=I())==null?void 0:Z.thumbnailOverlays)},void 0,"Pf9uIe");
return _.e("div",{class:_.O3("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.C2.PLAYER_TIME_ELAPSED+" "+_.YR0(c().playedTime)}},_.e(_.ov,{data:function(){var Z=_.YR0(c().videoDuration-c().playedTime);
return Object.assign({},{type:17,text:Z},R())}}))},"Wi"),XHd=_.W(function(G){G=G.badgeShapeData;
return _.e("div",{class:_.O3("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.e(_.ov,{data:G}))},"Xi"),Cud=_.W(function(G){var c=G.data;
G=_.SE(function(){if(_.v("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var R,Z=_.Q(((R=c())==null?void 0:R.thumbnailOverlays)||[]);for(R=Z.next();!R.done;R=Z.next()){R=R.value;if(R.thumbnailOverlayTimeStatusRenderer||R.thumbnailOverlayBadgeViewModel)return R;var K=void 0;if((K=R.thumbnailBottomOverlayViewModel)==null?0:K.badges)if(R=R.thumbnailBottomOverlayViewModel.badges.find(function(m){return _.D(m,Uyr)}))return R}}},void 0,"GPGpgc");
var I=_.SE(function(){var R,Z,K,m,a,O;return _.xVU((R=c())==null?void 0:(Z=R.playerApi)==null?void 0:(K=Z.getSize())==null?void 0:K.width,(m=c())==null?void 0:(a=m.playerApi)==null?void 0:(O=a.getSize())==null?void 0:O.height)},void 0,"OeIVKe");
return _.e(_.l,{cond:G,then:function(R){return _.e(_.sN,{data:R},{thumbnailOverlayTimeStatusRenderer:function(Z){var K=Z.data;Z=_.SE(function(){return _.MZi(K(),0)},void 0,"skoDC");
return _.e(XHd,{badgeShapeData:Z})},
thumbnailBadgeViewModel:function(Z){return _.e(_.p5K,{data:Z.data,class:_.O3("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(Z){return _.e(_.WmA,{data:Z.data,thumbnailSize:I})}})},
else:function(){var R={type:18,text:_.C2.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.e(XHd,{badgeShapeData:function(){return R}})}})},"Yi"),yi1=_.W(function(G){var c=G.props;
var I=G.data;var R=G.options;return _.e(_.e_d,{progressBarProps:c,config:function(){var Z,K=_.D((Z=I())==null?void 0:Z.multiMarkersPlayerBar,_.GlN),m;Z=((m=R())==null?0:m.insetProgressBar)?2:1;var a;m=(a=R())==null?void 0:a.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Z,chapterData:K,isInlinePlayback:!0,doSeekOnClick:m,playheadDotBehavior:m?1:0}}})},"Zi");_.R1(_.W(function(G){var c=G.data;var I=G.appApi;var R=G.options;var Z=SQ0(c,WYj(I));G={};I={};return _.e("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.e("div",{class:_.O3("ytInlinePlayerControlsDarkenedOverlay",(G.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Z().isHovering},G))}),_.e(Ea1,null),_.e(rir,{data:Z}),_.e(jI$,{data:c}),_.e(Lc1,{playerControlsProps:Z,
isShortsPage:!1}),_.e("div",{class:_.O3((I.ytInlinePlayerControlsControlsHidden=function(){return Z().isDragging},I))},_.e(xDu,{props:Z,
data:c,options:R}),_.e(dDr,{props:Z,data:c,options:R})),_.e(_.l,{cond:function(){return iRu(c(),R())},
then:function(){return _.e(yi1,{props:Z,data:c,options:R})}}))},"Qi"),"yt-inline-player-controls",{props:{data:_.bl,
appApi:_.G9,options:_.bl}});var Hs=function(){var G=_.J.apply(this,arguments)||this;G.opts=null;G.playerControlsData=null;G.playerControlsAppApi={openInMiniplayer:function(){G.openInMiniplayer()}};
G.playerControlsOptions={};G.noAnimation=!1;G.playbackIntentTriggered=!1;G.positionData=null;G.hidden=!0;G.active=!1;G.playing=!1;G.persistentPanelVisible=!1;G.videoPreviewDataIndex=0;G.JSC$19617_playerPromise=null;G.player=null;G.enableAudioControls=!1;G.hasBeenUnmuted=!1;G.captionsHaveBeenTurnedOff=!1;G.JSC$19617_playerEvents=new Map;G.videoPreviewFetchRequest=null;G.scheduledPreviewEndJobId=null;G.JSC$19617_preventProgressSaveTimer=null;G.watchEndpointStartTimeUpdaterInterval=null;G.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};G.windowOnBlurFn=function(){G.deactivate()};
return G};
_.u(Hs,_.J);_.P=Hs.prototype;
_.P.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.P.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19617_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19617_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19617_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19617_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.lO(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.lO(this,this.onScroll))};
_.P.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.lO(this,this.onScroll))};
_.P.onPageTypeChange=function(){this.deactivate()};
_.P.onWindowResized=function(){this.deactivate()};
_.P.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.P.onCaptionsChanged=function(G){G=!!G.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!G);this.setCaptionSize()};
_.P.setCaptionSize=function(){var G;if(this.active&&!this.captionsHaveBeenTurnedOff&&((G=this.player)==null?0:G.getCaptionWindowContainerId())){var c;(c=this.player)==null||c.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.P.currentPageAllowed=function(){return!this.isWatchPage};
_.P.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.v("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var G=this.positionData,c=G.initialTopPosition,I=G.initialHorizontalPosition;_.eD(this.hostElement,{"--ytd-video-preview-translate-left":G.finalHorizontalPosition-I+"px","--ytd-video-preview-translate-top":G.finalTopPosition-c+"px","--ytd-video-preview-original-top-position":c+
"px","--ytd-video-preview-original-horizontal-position":I+"px","--ytd-video-preview-initial-scale":"scale("+G.initialScale+")","--ytd-video-preview-width":G.videoPreviewWidth+"px","--ytd-video-preview-height":G.videoPreviewHeight+"px"});return!0};
_.P.isOutOfBounds=function(G){var c=G.initialHorizontalPosition+12;G=c+G.videoPreviewWidth>window.innerWidth;return c<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&c<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&c<72||G};
_.P.handleOpenVideoPreviewAction=function(G){var c=this,I;return _.T(function(R){if(!c.currentPageAllowed())return R.return(0);c.opts=G;return(I=c.alignVideoPreviewForAnimation(G.thumbnail))?R.return(c.activate()):R.return(0)})};
_.P.onMouseLeave=function(G){var c,I;(c=this.opts)==null||(I=c.mouseleaveCallback)==null||I.call(c);this.shouldDeactivateOnMouseLeave(G)&&this.deactivate()};
_.P.onScroll=function(){var G,c;((G=this.opts)==null?0:G.isAutoplay)&&((c=this.opts)==null?0:c.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.P.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.dJ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.P.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.P.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Hs.JSC$19616_DEFAULT_CLICK_LOCATION_BEHAVIOR,Hs.JSC$19616_CLICK_LOCATION_ID_MAP)};
_.P.shouldDeactivateOnMouseLeave=function(G){G=G.relatedTarget;if(!G)return!0;var c;return(c=this.opts)!=null&&c.mediaRenderer?!_.m9(this.opts.mediaRenderer).contains(G):!0};
_.P.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.P.onPlaybackStart=function(){var G=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19617_preventProgressSaveTimer=
_.mq(_.dJ,function(){G.resetPreventProgressSaveTimer()},1E4);
var c;if((c=this.opts)==null?0:c.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.mq(_.dJ,function(){G.hasMultipleVideoPreviews()?G.startPlaybackForNextVideo():G.deactivate()},this.opts.videoPreviewDurationMs);
var I;this.player.setGlobalCrop(((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.P.getRoundedCornersSize=function(){var G;if((G=this.opts)==null?0:G.roundedCornersSize){var c;return(c=this.opts)==null?void 0:c.roundedCornersSize}var I;if((I=this.opts)==null?0:I.enableRounding){var R;if(((R=this.opts)==null?void 0:R.thumbnailSize)==="small")return 1;var Z;if(((Z=this.opts)==null?void 0:Z.thumbnailSize)==="medium")return 2;var K;if(((K=this.opts)==null?void 0:K.thumbnailSize)==="large")return 3}return _.v("web_imp_inset_progress_bar")?3:0};
_.P.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.P.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.P.onMediaContainerClick=function(G){this.isShortcutClick(G)||(this.navigateToWatch(G),G.preventDefault(),G.stopPropagation())};
_.P.activate=function(){var G=this,c,I,R,Z,K,m,a,O,N;return _.T(function(q){switch(q.nextAddress){case 1:if(!G.currentPageAllowed())return q.return(0);I=(c=G.videoPreviewData)==null?void 0:c.inlinePlaybackEndpoint;R=_.h0.instance;if(!I||!R)return q.return(0);G.playbackIntentTriggered=!0;((Z=G.opts)==null?0:Z.mediaRenderer)&&((K=G.opts)==null||!K.isAutoplay)&&Dyd(G.opts.mediaRenderer,function(){G.deactivate()});
_.O$(G,function(){G.revealPreviewUi()});
m={};_.v("enable_unknown_lact_fix_on_html5")&&(_.wH().resolve(_.uf),m.lact=_.wj());G.videoPreviewFetchRequest=Nqu(R,G.getInlinePlaybackRequestData(G.videoPreviewData),m);_.s9(q,2);return q.yield(G.videoPreviewFetchRequest,4);case 4:a=q.yieldResult;if(((O=a)==null?void 0:(N=O.playabilityStatus)==null?void 0:N.status)==="OK")return q.return(G.handlePlayerResponse(a));throw Error("gk");case 2:_.M3(q),G.deactivate();case 3:return q.return(1)}})};
_.P.getInlinePlaybackRequestData=function(G){var c,I=_.v("web_imp_player_mute_params")?((c=this.opts)==null?void 0:c.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:G.inlinePlaybackEndpoint,startPlaybackInMutedState:I}};
_.P.handlePlayerResponse=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w,F,n,U,k;return _.T(function(p){if(p.nextAddress==1){I=c.getInlinePlaybackVideoId();if(!(((R=G)==null?0:(Z=R.videoDetails)==null?0:Z.videoId)&&c.currentPageAllowed()&&c.playbackIntentTriggered&&c.opts&&I))return c.deactivate(),p.return(0);if(G.videoDetails.videoId!==I)return p.return(0);c.enableAudioControls=!!((K=G.playerConfig)==null?0:(m=K.inlinePlaybackConfig)==null?0:m.showAudioControls);G.trackingParams=c.getInlinePlaybackTrackingParams();
if(!c.inlinePlayer)return p.return(0);a={};if(N=_.D((O=c.videoPreviewData)==null?void 0:O.inlinePlaybackEndpoint,_.fR))a.watch_endpoint=N;if(c.videoPreviewData){var M,z=(M=_.D(c.videoPreviewData.inlinePlaybackEndpoint,_.fR))==null?void 0:M.startTimeSeconds;z!==void 0&&(G.playerConfig||(G.playerConfig={}),G.playerConfig.playbackStartConfig||(G.playerConfig.playbackStartConfig={}),G.playerConfig.playbackStartConfig.startPosition||(G.playerConfig.playbackStartConfig.startPosition={}),G.playerConfig.playbackStartConfig.startSeconds=
z,G.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(z*1E3))}c.inlinePlayer.loadVideoWithPlayerResponse(G,a);if(c.JSC$19617_playerPromise)return p.jumpTo(2);c.JSC$19617_playerPromise=c.inlinePlayer.getPlayerPromise();return p.yield(c.JSC$19617_playerPromise,3)}p.nextAddress!=2&&(q=p.yieldResult,q.setInlinePreview(!0),w=!_.v("web_imp_theater_bugfix"),q.setSizeStyle(!1,w),c.ytPlayerListenerBehavior.listenToPlayerEvents(q,c.JSC$19617_playerEvents),c.player=q,_.Xl(c.hostElement,
"player-api-ready"));((F=c.opts)==null?0:F.showPlayerControls)&&c.videoPreviewData&&c.player&&(c.playerControlsData={playerResponse:G,isInlinePlayback:!0,thumbnailOverlays:c.videoPreviewData.thumbnailOverlays,playerApi:c.player},c.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!c.unroundCornersForPlayback,additionalButton:c.getAdditionalButtonType(c.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(n=c.opts)==null?void 0:n.hideTimeDisplay,hideScrubbingControls:(U=c.opts)==
null?void 0:U.hideScrubber,hideCaptionsToggleButton:(k=c.opts)==null?void 0:k.hideCaptionsToggleButton});return p.return(2)})};
_.P.revealPreviewUi=function(){var G=this;this.playbackIntentTriggered&&_.byr(this,function(){G.hasThumbnailPositionChangedSinceTriggered()||(G.updateActiveState(!0),G.noAnimation=!1)})};
_.P.hasThumbnailPositionChangedSinceTriggered=function(){var G=this.positionData,c=this.getThumbnailPositionData();return(G==null?void 0:G.initialTopPosition)!==(c==null?void 0:c.initialTopPosition)||(G==null?void 0:G.initialHorizontalPosition)!==(c==null?void 0:c.initialHorizontalPosition)};
_.P.getThumbnailPositionData=function(){var G,c;if((c=this.opts)==null||!c.thumbnail)return null;c=this.opts.thumbnail;var I=((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?!1:!0;var R=c.getBoundingClientRect();G=R.width;c=R.height;var Z=R.top+window.scrollY;R=R.left+window.scrollX;var K=I?Math.ceil(G):G;I=I?Math.ceil(c):c;var m=G/K;G={initialScale:m,initialTopPosition:Z-12*m,finalTopPosition:Z-12-(I-c)/2,initialHorizontalPosition:R-(12+(K-G)/2),finalHorizontalPosition:R-12-(K-G)/
2,videoPreviewWidth:K,videoPreviewHeight:I};return G};
_.P.updateActiveState=function(G){this.active=G;this.ytdReduxBehavior.dispatch(_.R6({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:G}))};
_.P.stopPlayer=function(G){G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(G)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.dJ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.P.deactivate=function(G){G=G===void 0?{}:G;G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;wqH&&(wqH.disconnect(),wqH=null);this.stopPlayer({resetWatchEndpointStartTime:G});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.P.isValidThumbnailOverlayButton=function(G,c){G=G.thumbnailOverlayButtonRenderer;var I;return!!G&&!!G.tooltip&&!((I=G.icon)==null||!I.iconType)&&c.includes(G.icon.iconType)};
_.P.isValidThumbnailOverlayButtonViewModel=function(G,c){var I;G=_.D((I=G.thumbnailOverlayButtonViewModel)==null?void 0:I.overlayButton,_.uv);return!!G&&!!G.title&&!!G.iconName&&c.includes(G.iconName)};
_.P.getAdditionalButtonType=function(G){var c=this;if(_.v("web_imp_fastforward_button"))return{button:1};if(_.v("web_imp_miniplayer_button"))return{button:2};if(_.v("web_imp_playback_speed_button"))return{button:3};var I=["BOX_STACK_3"],R=(G||[]).filter(function(K){return c.isValidThumbnailOverlayButton(K,I)}).map(function(K){return K.thumbnailOverlayButtonRenderer});
if(R.length)return{button:4,thumbnailOverlayButtonRenderers:R};var Z=["BOX_STACK_3"];G=(G||[]).filter(function(K){return c.isValidThumbnailOverlayButtonViewModel(K,Z)}).map(function(K){return _.D(K.thumbnailOverlayButtonViewModel.overlayButton,_.uv)});
if(G.length)return{button:4,thumbnailOverlayButtonViewModels:G}};
_.P.allowCaptions=function(){var G;return!((G=this.opts)==null?0:G.forceCaptionsOff)};
_.P.allowUnmuting=function(){var G;return this.enableAudioControls&&!((G=this.opts)==null?0:G.forceMutedVolume)};
_.P.beginStartTimeUpdater=function(){var G=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.s2(function(){G.updateWatchEndpointStartTime()},1E3)};
_.P.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.P.resetPreventProgressSaveTimer=function(){this.JSC$19617_preventProgressSaveTimer!==null&&(_.dJ.cancelJob(this.JSC$19617_preventProgressSaveTimer),this.JSC$19617_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.P.updateWatchEndpointStartTime=function(G){var c=this.videoPreviewData;if(this.player&&c!=null&&c.inlinePlaybackEndpoint&&!this.JSC$19617_preventProgressSaveTimer){G=G?0:Math.floor(this.player.getCurrentTime());var I=_.D(c.navigationEndpoint,_.fR);I&&(I.startTimeSeconds=G);if(c=_.D(c.inlinePlaybackEndpoint,_.fR))c.startTimeSeconds=G}};
_.P.isShortcutClick=function(G){return!!G&&(G.ctrlKey||G.shiftKey||G.metaKey)};
_.P.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.P.openInMiniplayer=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1){I=(c=G.videoPreviewData)==null?void 0:c.navigationEndpoint;if(!I)return R.return();_.ck().lockupActivation=!0;return R.yield(_.Zzk(_.wH().resolve(_.tA),I),2)}_.ck().userActivation=!0;_.Vp(R)})};
_.P.navigateToWatch=function(G){var c,I=(c=this.videoPreviewData)==null?void 0:c.navigationEndpoint;if(I){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(I,G,!0);else{var R;_.v("web_thumbnail_to_watch_transition")&&((R=this.opts)==null?0:R.thumbnail)&&_.cRV(_.wH().resolve(_.mk),this.opts.thumbnail);_.Xl(this.hostElement,"yt-navigate",{endpoint:I})}this.deactivate()}};
_.P.getInlinePlaybackVideoId=function(){var G,c;return(c=_.D((G=this.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint,_.fR))==null?void 0:c.videoId};
_.P.getInlinePlaybackTrackingParams=function(){var G,c;return(G=this.videoPreviewData)==null?void 0:(c=G.inlinePlaybackEndpoint)==null?void 0:c.clickTrackingParams};
_.P.hasMultipleVideoPreviews=function(){var G;return!!(((G=this.opts)==null?0:G.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.P.startPlaybackForNextVideo=function(){var G;(G=this.opts)!=null&&G.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.Nh.Object.defineProperties(Hs.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.opts)==null?0:G.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.opts)==null||!G.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var G;if(Array.isArray((G=this.opts)==null?void 0:G.videoPreviewData)){var c;return(c=this.opts)==null?void 0:c.videoPreviewData[this.videoPreviewDataIndex]}var I;return(I=this.opts)==null?void 0:I.videoPreviewData}}});
Hs.prototype.onIsAdsVideoChange=Hs.prototype.onIsAdsVideoChange;Hs.prototype.onInlinePreviewIsEnabledChange=Hs.prototype.onInlinePreviewIsEnabledChange;Hs.prototype.optsChanged=Hs.prototype.optsChanged;Hs.prototype.onMouseLeave=Hs.prototype.onMouseLeave;Hs.prototype.onPersistentPanelVisibleChange=Hs.prototype.onPersistentPanelVisibleChange;Hs.JSC$19616_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
Hs.JSC$19616_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"}];_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Hs.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],Hs.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Hs.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Hs.prototype,"componentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],Hs.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.EX.YtSparklesClickLocationBehavior),_.h("design:type",Object)],Hs.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Hs.prototype,"opts",void 0);_.r([_.E(),_.h("design:type",Object)],Hs.prototype,"playerControlsData",void 0);_.r([_.E(),_.h("design:type",Object)],Hs.prototype,"playerControlsAppApi",void 0);
_.r([_.E(),_.h("design:type",Object)],Hs.prototype,"playerControlsOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hs.prototype,"noAnimation",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hs.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hs.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hs.prototype,"playing",void 0);
_.r([_.E({selector:_.BmO}),_.h("design:type",Boolean)],Hs.prototype,"inlinePreviewIsEnabled",void 0);_.r([_.E(),_.h("design:type",String)],Hs.prototype,"pagePath",void 0);_.r([_.E({selector:_.W$O}),_.h("design:type",Boolean)],Hs.prototype,"isWatchPage",void 0);_.r([_.E({selector:_.Ce.persistentPanelVisibleSelector}),_.h("design:type",Object)],Hs.prototype,"persistentPanelVisible",void 0);
_.r([_.A("videoPreviewData"),_.h("design:type",Object),_.h("design:paramtypes",[])],Hs.prototype,"thumbnailData",null);_.r([_.A("opts","active"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hs.prototype,"hidePlayerControls",null);_.r([_.A("opts"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hs.prototype,"isAdsVideo",null);
_.r([_.A("opts"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hs.prototype,"roundedCornersSmall",null);_.r([_.A("opts"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hs.prototype,"roundedCornersMedium",null);_.r([_.A("opts"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hs.prototype,"roundedCornersLarge",null);
_.r([_.A("opts"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hs.prototype,"unroundCornersForPlayback",null);_.r([_.A("opts","videoPreviewDataIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],Hs.prototype,"videoPreviewData",null);_.r([_.E(),_.h("design:type",Object)],Hs.prototype,"videoPreviewDataIndex",void 0);_.r([_.nH("#inline-player"),_.h("design:type",Object)],Hs.prototype,"inlinePlayer",void 0);
_.r([_.wD("persistentPanelVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hs.prototype,"onPersistentPanelVisibleChange",null);_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],Hs.prototype,"onMouseLeave",null);_.r([_.uO("opts"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hs.prototype,"optsChanged",null);
_.r([_.uO("inlinePreviewIsEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hs.prototype,"onInlinePreviewIsEnabledChange",null);_.r([_.wD("isAdsVideo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hs.prototype,"onIsAdsVideoChange",null);_.r([_.Jc({is:"ytd-video-preview",disableElementRegistration:!0})],Hs);
_.B(Hs,"ytd-video-preview",function(){if(sI0!==void 0)return sI0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return sI0=G},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.ar=function(G){return function(c,I){var R=G||I.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(c,I,{get:function(){var Z;return this.$?this.$[R]:(Z=_.FZ(this))==null?void 0:Z.querySelector("#"+R)},
enumerable:!0,configurable:!0})}};_.TA=function(G){G=G===void 0?!1:G;_.JK.call(this);this.pubSub_=new _.p4(G);_.k9(this,this.pubSub_)};
_.eg(_.TA,_.JK);_.TA.prototype.subscribe=function(G,c,I){return this.isDisposed()?0:this.pubSub_.subscribe(G,c,I)};
_.TA.prototype.unsubscribe=function(G,c,I){return this.isDisposed()?!1:this.pubSub_.unsubscribe(G,c,I)};
_.TA.prototype.unsubscribeByKey=function(G){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(G)};
_.TA.prototype.publish=function(G,c){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var wyx=function(){_.CW("ypcRedeemFlowStarted")},Fo5=function(G){_.CW("ypcRedeemFlowFailed",void 0,void 0,void 0,G)},nNN=function(G,c,I){c&&I&&(G.videos.forEach(function(R){R.videoId===c&&(R.itemId=I)}),G.recommendedVideos.forEach(function(R){R.videoId===c&&(R.itemId=I)}))};var vNG;var DNJ;/*

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
*/
_.SD({_template:function(){if(DNJ!==void 0)return DNJ;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;vNG===void 0&&(vNG=document.createElement("template"));var R=vNG;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return DNJ=G},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(G,c){var I=this._resolveSrc(G);I!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",G===""||c?this._setLoading(!1):(this._resolvedSrc=I,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var G=this.$.sizedImgDiv.style,c=this.$.placeholder.style;G.backgroundSize=c.backgroundSize=this.sizing;G.backgroundPosition=c.backgroundPosition=this.sizing?this.position:"";G.backgroundRepeat=c.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(G){G=_.oD(G,this.$.baseURIAnchor.href);G.length>=2&&G[0]==="/"&&G[1]!=="/"&&(G=(location.origin||location.protocol+"//"+location.host)+G);return G}});var oNN;var UNx;_.SD({_template:function(){if(UNx!==void 0)return UNx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;oNN===void 0&&(oNN=document.createElement("template"));var R=oNN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return UNx=G},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(G){return G?"false":"true"},
_headingChanged:function(G){var c=this.getAttribute("heading"),I=this.getAttribute("aria-label");typeof I==="string"&&I!==c||this.setAttribute("aria-label",G)},
_computeHeadingClass:function(G){return G?" over-image":""},
_computeAnimated:function(G){return G}});var uxR=new _.vS("addRendererToItemSectionAction");var bGR;var MQ=function(){return _.J.apply(this,arguments)||this};
_.u(MQ,_.J);MQ.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],MQ.prototype,"rendererBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],MQ.prototype,"dismissibleItemBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],MQ.prototype,"rendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],MQ.prototype,"data",void 0);_.r([_.Jc({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],MQ);
_.B(MQ,"ytd-comment-history-entry-renderer",function(){if(bGR!==void 0)return bGR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return bGR=G},{mode:1});var k6T;_.Su("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Su("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var V9=function(){return _.J.apply(this,arguments)||this};
_.u(V9,_.J);_.P=V9.prototype;_.P.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.P.onTap=function(){this.data.recordClickEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var G=this.data.navigationEndpoint;G&&_.D(G,_.lv)&&_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}})};
_.P.readChanged=function(){var G;_.as(this.hostElement,"unread",!((G=this.data)==null?0:G.read))};
_.P.dataChanged=function(){this.data&&_.as(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.P.computeThumbnailSize=function(){var G;return((G=this.data)==null?0:G.highPriorityNotification)?32:48};
_.P.getEndpointURL=function(G){return G&&!_.D(G,_.lv)?this.componentBehavior.computeHref_(G):null};
_.P.getEndpointData=function(G){return G&&!_.D(G,_.lv)?G:null};
V9.prototype.computeThumbnailSize=V9.prototype.computeThumbnailSize;V9.prototype.dataChanged=V9.prototype.dataChanged;V9.prototype.readChanged=V9.prototype.readChanged;V9.prototype.onKeyUp=V9.prototype.onKeyUp;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],V9.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],V9.prototype,"data",void 0);_.r([_.E({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.h("design:type",Number)],V9.prototype,"thumbnailSize",void 0);_.r([_.qY("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],V9.prototype,"onKeyUp",null);
_.r([_.wD("data.read"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V9.prototype,"readChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V9.prototype,"dataChanged",null);_.r([_.wD("data.highPriorityNotification"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V9.prototype,"computeThumbnailSize",null);
_.r([_.Jc({is:"ytd-notification-renderer",disableElementRegistration:!0})],V9);
_.B(V9,"ytd-notification-renderer",function(){if(k6T!==void 0)return k6T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return k6T=G},{mode:1});var sR_;var zJ=function(){return _.J.apply(this,arguments)||this};
_.u(zJ,_.J);zJ.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"}}}};
zJ.prototype.computeActionButtonClass=function(G){return!G.actionButtons||G.actionButtons.length<=1?"single-button":G.description?"vertical-buttons":"horizontal-buttons"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zJ.prototype,"data",void 0);_.r([_.Jc({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],zJ);
_.B(zJ,"ytd-playlist-show-metadata-renderer",function(){if(sR_!==void 0)return sR_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return sR_=G},{mode:1});var Loo;_.Su("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Es=function(){return _.J.apply(this,arguments)||this};
_.u(Es,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Es.prototype,"data",void 0);_.r([_.Jc({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Es);
_.B(Es,"ytd-purchase-item-renderer",function(){if(Loo!==void 0)return Loo;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Loo=G},{mode:1});var Azo;var $Nx={};$Nx.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(G){if(G)return G.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(G){if(G==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Su("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var JW=function(){return _.J.apply(this,arguments)||this};
_.u(JW,_.J);JW.prototype.onYtNavigate=function(G){var c=this.openPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);c&&(G.stopPropagation(),this.openPopupBehavior.openPopup(c))};
JW.prototype.onYtNavigate=JW.prototype.onYtNavigate;_.r([_.L($Nx.YtSimpleTextSectionBehavior),_.h("design:type",Object)],JW.prototype,"ytSimpleTextSectionBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],JW.prototype,"openPopupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],JW.prototype,"data",void 0);
_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],JW.prototype,"onYtNavigate",null);_.r([_.Jc({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],JW);
_.B(JW,"ytd-simple-text-section-renderer",function(){if(Azo!==void 0)return Azo;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Azo=G},{mode:1});var STS;_.Su("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var pyG=function(){return _.J.apply(this,arguments)||this};
_.u(pyG,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],pyG.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pyG.prototype,"data",void 0);_.r([_.Jc({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],pyG);
_.B(pyG,"ytd-unlimited-page-feature-info-renderer",function(){if(STS!==void 0)return STS;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return STS=G},{mode:1});var M_T;var V_N;var WO=function(){return _.J.apply(this,arguments)||this};
_.u(WO,_.J);WO.prototype.dataChanged=function(){if(this.data){var G=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);G&&(G=_.ZX(G,screen.width),this.hostElement.style.backgroundImage="url("+G+")")}};
WO.prototype.dataChanged=WO.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],WO.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WO.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],WO);
_.B(WO,"ytd-post-redemption-section-renderer",function(){if(V_N!==void 0)return V_N;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return V_N=G},{mode:1});var zfz;var iL=function(){return _.J.apply(this,arguments)||this};
_.u(iL,_.J);iL.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],iL.prototype,"data",void 0);_.r([_.Jc({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],iL);
_.B(iL,"ytd-ypc-post-redemption-renderer",function(){if(zfz!==void 0)return zfz;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return zfz=G},{mode:1});_.Su("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var fv=function(){var G=_.J.apply(this,arguments)||this;G.MIN_CODE_LENGTH=12;G.MAX_CODE_LENGTH=24;return G};
_.u(fv,_.J);_.P=fv.prototype;_.P.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.P.created=function(){this.riskService=new _.JV0;this.loadPaymentThenable=_.i6B(_.H1("YPC_MB_URL"))};
_.P.ready=function(){var G=this;this.code.addEventListener("keypress",function(c){G.onCodeInputKeypress(c)})};
_.P.dataChanged=function(){var G=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(c){c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=I.value,I.type==="attributes"&&I.attributeName==="dark"&&G.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.P.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var G=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+G+")")}};
_.P.computeRedeemButton=function(G){(G=this.get("redeemButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.P.onRedeemButtonTap=function(G){G.stopPropagation();wyx();this.redeemCode()};
_.P.redeemCode=function(){var G=this;this.isLoading=!0;var c=this.riskService.init();_.tE([c,this.loadPaymentThenable]).then(function(){var I=G.data.redeemButton.buttonRenderer.serviceEndpoint,R=_.WEf(),Z=_.KM.payments.business.integration.ClientTokenFactory.createClientToken(_.D(I,_.z4K).countryCode,R);R={c:G.code.value.trim(),rd:window.btoa(R),ctk:Z};I&&_.wH().resolve(_.n4).resolveCommand(I,{form:Object.assign({},R,{element:G.hostElement})})},function(){G.showGenericError();
Fo5("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.yL(Error("Vo"))})};
_.P.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isLoading=!1;var c,I;this.errorMessage=(c=G.detail)==null?void 0:(I=c.data)==null?void 0:I.errorMessage;var R,Z;this.postRedemptionRenderer=(R=G.detail)==null?void 0:(Z=R.data)==null?void 0:Z.renderer;var K,m;if(G=(K=G.detail)==null?void 0:(m=K.data)==null?void 0:m.redirectEndpoint)this.isLoading=!0,_.Xl(this.hostElement,"yt-navigate",{endpoint:G});this.errorMessage?Fo5("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
G)&&_.CW("ypcRedeemFlowSucceeded")};
_.P.onYtServiceRequestError=function(G){G.stopPropagation();this.isLoading=!1;if(G=this.get("detail.error.message",G))this.errorMessage=_.Cp(G);Fo5("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.P.onInvokeInstrumentManagerActionCompleted=function(G){G.stopPropagation();this.redeemCode()};
_.P.onInvokeInstrumentManagerActionError=function(G){G.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",G)){case "instrumentManagerLoadError":this.showGenericError();Fo5("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Fo5("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.CW("ypcRedeemFlowCancelled")}};
_.P.onInput=function(){var G=this;_.tc(this,"onInput",function(){var c=G.code.value.trim();G.redeemButtonDisabled=c.length<G.MIN_CODE_LENGTH||c.length>G.MAX_CODE_LENGTH},200)};
_.P.onCodeInputKeypress=function(G){G.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(wyx(),this.redeemCode())};
_.P.computeImageUrl=function(G){return G?_.ZX(G.thumbnails,600):null};
_.P.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
fv.prototype.onInvokeInstrumentManagerActionError=fv.prototype.onInvokeInstrumentManagerActionError;fv.prototype.onInvokeInstrumentManagerActionCompleted=fv.prototype.onInvokeInstrumentManagerActionCompleted;fv.prototype.onYtServiceRequestError=fv.prototype.onYtServiceRequestError;fv.prototype.onYtServiceRequestCompleted=fv.prototype.onYtServiceRequestCompleted;fv.prototype.dataChanged=fv.prototype.dataChanged;
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],fv.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],fv.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Boolean)],fv.prototype,"redeemButtonDisabled",void 0);
_.r([_.E(),_.h("design:type",Object)],fv.prototype,"errorMessage",void 0);_.r([_.E(),_.h("design:type",Object)],fv.prototype,"postRedemptionRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],fv.prototype,"observer",void 0);_.r([_.nH("#code"),_.h("design:type",HTMLInputElement)],fv.prototype,"code",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fv.prototype,"dataChanged",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fv.prototype,"onYtServiceRequestCompleted",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fv.prototype,"onYtServiceRequestError",null);
_.r([_.qY("yt-invoke-instrument-manager-action-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fv.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.r([_.qY("yt-invoke-instrument-manager-action-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fv.prototype,"onInvokeInstrumentManagerActionError",null);_.r([_.Jc({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],fv);
_.B(fv,"ytd-redeem-code-renderer",function(){if(M_T!==void 0)return M_T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return M_T=G},{mode:1});var EN5;_.Su("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var BO=function(){var G=_.J.apply(this,arguments)||this;G.businessEmailDisplayState="HIDE_SECTION";return G};
_.u(BO,_.J);_.P=BO.prototype;_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.P.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.My(_.kC2),this.businessEmailDisplayState="CAPTCHA"))};
_.P.onYtServiceRequestCompleted=function(G){var c;if((c=G.detail.data)==null?0:c.businessEmail)this.businessEmail=G.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=G.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=G.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.computeEmailHref=function(G){return"mailto:"+G};
_.P.computeSafeUrl=function(G){if(G)return _.dS(G)};
_.P.onBusinessEmailCaptchaSubmit=function(){var G;(G=this.data)!=null&&G.onBusinessEmailRevealClickCommand&&(G=this.JSC$22419_captchaTextarea.value)&&(G={recaptcha_response_token:G,channel_id:this.data.channelId},_.wH().resolve(_.n4).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},G,{element:this.hostElement})}))};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Nh.Object.defineProperties(BO.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.primaryLinks)&&!((c=this.data)==null?0:c.links)&&this.data.primaryLinks.every(function(I){return I.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.primaryLinks)&&!((c=this.data)==null?0:c.links)&&!this.shouldShowNewLinks}}});
BO.prototype.onYtServiceRequestCompleted=BO.prototype.onYtServiceRequestCompleted;BO.prototype.dataChanged=BO.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],BO.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.nH("#g-recaptcha-response"),_.h("design:type",HTMLTextAreaElement)],BO.prototype,"JSC$22419_captchaTextarea",void 0);_.r([_.E(),_.h("design:type",Object)],BO.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],BO.prototype,"businessEmailDisplayState",void 0);_.r([_.E(),_.h("design:type",String)],BO.prototype,"businessEmail",void 0);_.r([_.E(),_.h("design:type",String)],BO.prototype,"businessEmailErrorMessage",void 0);
_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],BO.prototype,"hideDetailsSection",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BO.prototype,"dataChanged",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],BO.prototype,"shouldShowNewLinks",null);_.r([_.A("data","shouldShowLinks"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],BO.prototype,"shouldShowLegacyLinks",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],BO.prototype,"onYtServiceRequestCompleted",null);_.r([_.Jc({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],BO);
_.B(BO,"ytd-channel-about-metadata-renderer",function(){if(EN5!==void 0)return EN5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return EN5=G},{mode:1});var JzR;_.Su("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var r6=function(){return _.J.apply(this,arguments)||this};
_.u(r6,_.J);r6.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],r6.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],r6.prototype,"lockupContainerType",void 0);_.r([_.E(),_.h("design:type",String)],r6.prototype,"thumbnailFixedWidth",void 0);
_.r([_.Jc({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],r6);
_.B(r6,"ytd-channel-featured-content-renderer",function(){if(JzR!==void 0)return JzR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return JzR=G},{mode:1});var Wox;_.Su("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var jQ=function(){var G=_.J.apply(this,arguments)||this;G.roundContainer=!0;G.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");return G};
_.u(jQ,_.J);_.P=jQ.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.dataChanged=function(){this.imageWidth=this.imageHeight=24;var G=this.data;G.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!G.style&&G.image&&G.image.thumbnails.length&&(G=G.image.thumbnails[0],this.imageWidth=G.width||0,this.imageHeight=G.height||0)};
_.P.computeSource=function(G){return G.secondarySource?_.HY(G.secondarySource):_.HY(G.source)};
_.P.computeClarifyStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.P.isLargeStyle=function(G){return G==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.P.computeBackgroundStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.P.computeHasActionButton=function(G){return!!G.actionButton};
_.P.computeHasBottomSection=function(G){return!!G.ctaHasBottomSection};
_.P.computeIsSourceMissing=function(G){return G.ctaHasBottomSection===!1?!0:G&&this.computeSource(G)?!1:!0};
_.P.computeSecondaryEndpoint=function(G){return G.secondaryEndpoint||G.endpoint};
jQ.prototype.dataChanged=jQ.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jQ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],jQ.prototype,"imageWidth",void 0);_.r([_.E(),_.h("design:type",Number)],jQ.prototype,"imageHeight",void 0);
_.r([_.E({computed:"computeSecondaryEndpoint(data)"}),_.h("design:type",Object)],jQ.prototype,"secondaryEndpoint",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.h("design:type",Boolean)],jQ.prototype,"hasActionButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.h("design:type",Boolean)],jQ.prototype,"hasBottomSection",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.h("design:type",Boolean)],jQ.prototype,"missingSource",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],jQ.prototype,"icon",void 0);_.r([_.E({computed:"computeIcon_(data.secondaryIcon)"}),_.h("design:type",String)],jQ.prototype,"secondaryIcon",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.h("design:type",String)],jQ.prototype,"clarifyStyle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.h("design:type",String)],jQ.prototype,"backgroundStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jQ.prototype,"roundContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],jQ.prototype,"amsterdamEnabled",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jQ.prototype,"dataChanged",null);
_.r([_.Jc({is:"ytd-clarification-renderer",disableElementRegistration:!0})],jQ);
_.B(jQ,"ytd-clarification-renderer",function(){if(Wox!==void 0)return Wox;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Wox=G},{mode:1});var iGx;var fJ_;var xG=function(){var G=_.J.apply(this,arguments)||this;G.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");return G};
_.u(xG,_.J);_.P=xG.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P.computeIcon=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.P.computeUseContacts=function(G){return!!G.contacts&&G.contacts.length>0};
_.P.computePhoneContact=function(G){var c,I;return(c=G.contacts)==null?void 0:(I=c.find(function(R){var Z;return(R==null?void 0:(Z=R.icon)==null?void 0:Z.iconType)==="PHONE"}))==null?void 0:I.actionText};
_.P.computeSmsContact=function(G){var c,I;return(c=G.contacts)==null?void 0:(I=c.find(function(R){var Z;return(R==null?void 0:(Z=R.icon)==null?void 0:Z.iconType)==="SMS"}))==null?void 0:I.actionText};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xG.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],xG.prototype,"amsterdamEnabled",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.h("design:type",Boolean)],xG.prototype,"useContacts",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.h("design:type",String)],xG.prototype,"phoneContact",void 0);_.r([_.Jc({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],xG);
_.B(xG,"ytd-single-action-emergency-support-renderer",function(){if(fJ_!==void 0)return fJ_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return fJ_=G},{mode:1});_.Su("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var tW=function(){var G=_.J.apply(this,arguments)||this;G.roundedContainer=!0;G.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");return G};
_.u(tW,_.J);tW.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"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tW.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tW.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],tW.prototype,"amsterdamEnabled",void 0);
_.r([_.Jc({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],tW);
_.B(tW,"ytd-emergency-onebox-renderer",function(){if(iGx!==void 0)return iGx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return iGx=G},{mode:1});var BSJ;_.Su("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var hW=function(){return _.J.apply(this,arguments)||this};
_.u(hW,_.J);hW.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hW.prototype,"data",void 0);_.r([_.Jc({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],hW);
_.B(hW,"ytd-exploratory-results-renderer",function(){if(BSJ!==void 0)return BSJ;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return BSJ=G},{mode:1});var rzT;_.Su("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var d6=function(){var G=_.J.apply(this,arguments)||this;G.messageData=null;return G};
_.u(d6,_.J);_.P=d6.prototype;_.P.onServiceRequestCompleted=function(G,c){G=c.actions||[];c=0;for(var I=G.length;c<I;c++){var R=G[c],Z=void 0,K=void 0;if((Z=_.D(R,_.gA))==null?0:(K=Z.item)==null?0:K.messageRenderer)this.messageData=_.D(R,_.gA).item.messageRenderer}};
_.P.dataChanged=function(){var G=this.data;this.hostElement.hidden=!1;_.as(this.hostElement,"is-channel",G&&!G.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.P.computeThumbnailWidth=function(G){return G?126:56};
_.P.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.P.onSubmitTap=function(){var G=this.data,c=this.selectedResponseIndex;G!==void 0&&c!==void 0&&(G=G.responses[c],G.responseData&&_.wH().resolve(_.n4).resolveCommand(G.responseData,{form:{element:this.hostElement}}))};
_.P.onDismissTap=function(){this.hostElement.hidden=!0;var G=this.data;G!==void 0&&G.dismissalEndpoint&&_.wH().resolve(_.n4).resolveCommand(G.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
d6.prototype.onSelectedResponseIndexChange=d6.prototype.onSelectedResponseIndexChange;d6.prototype.dataChanged=d6.prototype.dataChanged;d6.prototype.onServiceRequestCompleted=d6.prototype.onServiceRequestCompleted;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],d6.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],d6.prototype,"messageData",void 0);
_.r([_.E(),_.h("design:type",Number)],d6.prototype,"selectedResponseIndex",void 0);_.r([_.nH("#submit-button"),_.h("design:type",HTMLButtonElement)],d6.prototype,"submitButton",void 0);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],d6.prototype,"onServiceRequestCompleted",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d6.prototype,"dataChanged",null);
_.r([_.wD("selectedResponseIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d6.prototype,"onSelectedResponseIndexChange",null);_.r([_.Jc({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],d6);
_.B(d6,"ytd-feedback-elicitation-single-question-renderer",function(){if(rzT!==void 0)return rzT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return rzT=G},{mode:1});var jRy;var Cv=function(){return _.J.apply(this,arguments)||this};
_.u(Cv,_.J);Cv.prototype.computeThumbnailWidth=function(G){return G?602:428};
Cv.prototype.updateWideFromBinding=function(G){this.wide=G.detail.value};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Cv.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],Cv.prototype,"wide",void 0);_.r([_.Jc({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Cv);
_.B(Cv,"ytd-newspaper-hero-video-renderer",function(){if(jRy!==void 0)return jRy;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return jRy=G},{mode:1});var xNG;var t_x=function(){return _.J.apply(this,arguments)||this};
_.u(t_x,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],t_x.prototype,"rendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],t_x.prototype,"data",void 0);_.r([_.Jc({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],t_x);
_.B(t_x,"ytd-newspaper-mini-video-renderer",function(){if(xNG!==void 0)return xNG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return xNG=G},{mode:1});var hfR;_.Su("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var HO=function(){return _.J.apply(this,arguments)||this};
_.u(HO,_.J);HO.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"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],HO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],HO.prototype,"data",void 0);_.r([_.Jc({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],HO);
_.B(HO,"ytd-newspaper-renderer",function(){if(hfR!==void 0)return hfR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return hfR=G},{mode:1});var dNx;_.Su("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Xk=function(){var G=_.J.apply(this,arguments)||this;G.isSegment=!1;G.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};G.nextContinuation={continuationType:"playlistVideoListContinuation"};return G};
_.u(Xk,_.J);_.P=Xk.prototype;_.P.created=function(){var G=this;this.JSC$22452_ytReorderableController=new _.nEK(101,function(c){G.handleDrop(c)})};
_.P.attached=function(){_.wH();var G;(G=_.wH().resolve(_.qR(_.Oz)))!=null&&(G.playlistVideoListElement=this.hostElement)};
_.P.detached=function(){var G;(G=_.wH().resolve(_.qR(_.Oz)))!=null&&(G.playlistVideoListElement=void 0);G=_.wH().resolve(_.qR(_.y6));_.v("web_enable_voting_animation")&&G&&(G.parentElem=void 0,G.videos=[],G.continuationsPresent=!1,G.showRefreshPill=!1);_.Gl(this.JSC$22452_ytReorderableController)};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.dataChanged=function(){var G=_.wH().resolve(_.qR(_.y6));if(_.v("web_enable_voting_animation")&&this.data&&G){var c=_.Q1(this.hostElement).querySelector("#contents");c&&(G.parentElem=c);G.addVideos(this.data.contents)}_.Gl(this.JSC$22452_ytReorderableController)};
_.P.onRendererstamperFinished=function(){this.canReorder&&_.vET(this.JSC$22452_ytReorderableController,_.Q1(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.P.onPlaylistReloading=function(){this.isReloading=!0};
_.P.onUpdateSetVideoId=function(G){if(G.detail&&this.data&&this.data.contents){var c=G.detail;G=this.data.contents.findIndex(function(Z){var K;return((K=Z.playlistVideoRenderer)==null?void 0:K.videoId)===c.videoId});
if(!(G<0)&&c.setVideoId&&(this.set("data.contents."+G+".playlistVideoRenderer.setVideoId",c.setVideoId),_.v("web_enable_voting_animation"))){var I;if(G=_.D((I=this.data.contents[G].playlistVideoRenderer)==null?void 0:I.engagementBar,_.RHU)){var R;(R=G.actions)==null||R.forEach(function(Z){if(Z=_.D(Z,_.Z6O))Z.itemId=c.setVideoId})}(I=_.wH().resolve(_.qR(_.y6)))&&nNN(I,c.videoId,c.setVideoId)}}};
_.P.computeContentsClass=function(G){return G?"reloading":""};
_.P.computeIsSortable=function(G,c){return G&&c>0&&!this.isSegment&&!_.v("shorts_in_playlists_web")};
_.P.computeIsEditable=function(G){return G};
_.P.computeCanReorder=function(G){return G};
_.P.handlePlaylistRemoveVideosAction=function(G){if(this.get("playlistRemoveVideosAction.setVideoIds",G)&&this.data&&this.data.contents){G=_.D(G,_.YBk).setVideoIds;for(var c=this.data.contents.length-1;c>=0;){var I=this.data.contents[c].playlistVideoRenderer;I&&I.setVideoId&&G.includes(I.setVideoId)&&this.splice("data.contents",c,1);c--}_.ym(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var G=0;G<this.data.contents.length;G++)this.set("data.contents."+G+".playlistVideoRenderer.index",_.Cp(String(G+1)))};
_.P.handleDrop=function(G){G=G.currDragItem;var c=_.JU(G.parentNode.childNodes,G),I=this.data.contents.splice(Number(_.HY(G.data.index))-1,1)[0];this.data.contents.splice(c,0,I);c=c?this.get("contents."+(c-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();G=this.buildReorderServiceEndpoint(G.data.setVideoId,c);this.ytComponentBehavior.resolveCommand(G)};
_.P.buildReorderServiceEndpoint=function(G,c){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",G),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",c),this.data.onReorderEndpoint):null};
_.P.handleUpdatePlaylistAction=function(G){var c;(G=_.D((c=_.D(G,_.GWV))==null?void 0:c.updatedRenderer,_.IdK))&&this.canReorder!==G.canReorder&&this.set("data.canReorder",G.canReorder);G&&G.contents&&(this.set("data.contents",G.contents),this.isReloading=!1);G&&G.continuations&&this.set("data.continuations",G.continuations)};
_.P.handleAddRendererToItemSectionAction=function(G){var c,I=(c=_.D(G,uxR))==null?void 0:c.renderer,R;I&&((R=_.D(G,uxR))==null?void 0:R.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,I),G=_.wH().resolve(_.qR(_.y6)),_.v("web_enable_voting_animation")&&G&&(I&&(c=_.Iy0(I))&&G.recommendedVideos.push({itemId:c,videoId:_.KEB(I),voteCount:_.PwT(I),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.P.isVotingEnabledOnPlaylist=function(G){if(!G)return!1;G=_.Q(G);for(G=G.next();!G.done;G=G.next()){var c=void 0;return!!_.D((c=G.value.playlistVideoRenderer)==null?void 0:c.engagementBar,_.RHU)}return!1};
_.P.onAppendContinuationItemsActionFinished=function(){var G;this.isVotingEnabledOnPlaylist((G=this.data)==null?void 0:G.contents)&&(this.updateIndices(),G=_.wH().resolve(_.qR(_.y6)),_.v("web_enable_voting_animation")&&G&&this.data&&G.addVideos(this.data.contents))};
_.P.updateVideoData=function(G){if(G.detail&&this.data&&this.data.contents){var c=G.detail;G=c.toIdx;var I=c.itemId,R=c.newVoteCount,Z=c.voteStatus;c=c.hideItem;var K,m,a=(K=this.data)==null?void 0:(m=K.contents)==null?void 0:m.findIndex(function(w){return _.Iy0(w)===I});
if(!(a<0)){K=this.data.contents[a];var O;if((O=K.playlistVideoRenderer)==null?0:O.voteCount)K.playlistVideoRenderer.voteCount=R;var N;if(O=_.D((N=K.playlistVideoRenderer)==null?void 0:N.engagementBar,_.RHU)){var q;(q=O.actions)==null||q.forEach(function(w){(w=_.D(w,_.Z6O))&&w.initialState&&(w.initialState.votes=R,w.initialState.status=Z)})}this.data.contents.splice(a,1);
c||this.data.contents.splice(G,0,K);this.updateIndices()}}};
Xk.prototype.updateVideoData=Xk.prototype.updateVideoData;Xk.prototype.onAppendContinuationItemsActionFinished=Xk.prototype.onAppendContinuationItemsActionFinished;Xk.prototype.onUpdateSetVideoId=Xk.prototype.onUpdateSetVideoId;Xk.prototype.onPlaylistReloading=Xk.prototype.onPlaylistReloading;Xk.prototype.onRendererstamperFinished=Xk.prototype.onRendererstamperFinished;Xk.prototype.dataChanged=Xk.prototype.dataChanged;
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Xk.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.Vn.YtNextContinuationBehavior),_.h("design:type",Object)],Xk.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.L(_.MZ),_.h("design:type",Object)],Xk.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Xk.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Xk.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],Xk.prototype,"isReloading",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Xk.prototype,"isSegment",void 0);
_.r([_.E({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.h("design:type",Boolean)],Xk.prototype,"isSortable",void 0);_.r([_.E({computed:"computeIsEditable(data.isEditable)"}),_.h("design:type",Boolean)],Xk.prototype,"isEditable",void 0);_.r([_.E({computed:"computeCanReorder(data.canReorder)"}),_.h("design:type",Boolean)],Xk.prototype,"canReorder",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xk.prototype,"dataChanged",null);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xk.prototype,"onRendererstamperFinished",null);_.r([_.qY("yt-playlist-reloading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xk.prototype,"onPlaylistReloading",null);
_.r([_.qY("yt-update-set-video-id"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Xk.prototype,"onUpdateSetVideoId",null);_.r([_.qY("yt-append-continuation-items-action-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xk.prototype,"onAppendContinuationItemsActionFinished",null);
_.r([_.qY("yt-update-video-data-voting-animation"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Xk.prototype,"updateVideoData",null);_.r([_.Jc({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Xk);
_.B(Xk,"ytd-playlist-video-list-renderer",function(){if(dNx!==void 0)return dNx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return dNx=G},{mode:_.Qc("kevlar_poly_si_batch_j047")?1:2});var C5S;var y9=function(){return _.J.apply(this,arguments)||this};
_.u(y9,_.J);y9.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"}}}}};
y9.prototype.onTextWrapperTap=function(G){var c=this.data&&this.data.navigationEndpoint;c&&!_.Gf(_.CE(G),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Xl(this.hostElement,"yt-navigate",{endpoint:c})};
y9.prototype.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");G&&G.commandMetadata&&_.D(G.commandMetadata,_.Rh)&&_.D(G.commandMetadata,_.Rh).fireAutomatically&&_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}})};
y9.prototype.dataChanged=y9.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.kw),_.h("design:type",Object)],y9.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],y9.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],y9.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],y9.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],y9.prototype,"leftAligned",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],y9.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-movie-renderer"})],y9);
_.B(y9,"ytd-movie-renderer",function(){if(C5S!==void 0)return C5S;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return C5S=G},{mode:1});var HGG;var g6=function(){var G=_.J.apply(this,arguments)||this;G.rounded=!0;G.pageAttachedTo=void 0;G.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return G};
_.u(g6,_.J);g6.prototype.attached=function(){this.pageAttachedTo=_.wH().resolve(_.I9).getCurrentPage();_.Xl(this.hostElement,"yt-player-attached",this.player)};
g6.prototype.detached=function(){var G;if((G=this.pageAttachedTo)==null?0:G.hostElement)_.Xl(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
g6.prototype.dataChanged=function(){var G;if((G=this.data)==null?0:G.videoId)G={video_id:this.data.videoId,autoplay:!0},!_.v("miniplayer_stop_channel_video_autoplay_killswitch")&&_.wH().resolve(_.tA).isMiniplayerActive()&&(G.pause_at_start=!0,G.autoplay=!1),this.player.loadVideoWithPlayerVars(G)};
g6.prototype.handleSignalActionPausePlayer=function(){_.Ke().pause()};
g6.prototype.dataChanged=g6.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],g6.prototype,"data",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],g6.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],g6.prototype,"rounded",void 0);_.r([_.nH("#player"),_.h("design:type",Object)],g6.prototype,"player",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g6.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],g6);
_.B(g6,"ytd-channel-video-player-renderer",function(){if(HGG!==void 0)return HGG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return HGG=G},{mode:1});var Xy_;var yz6;var gNS;var YG=function(){var G=_.J.apply(this,arguments)||this;G.playing=!1;G.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.XB(G);G.active=!1;return G};
_.u(YG,_.J);_.P=YG.prototype;_.P.detached=function(){this.stop()};
_.P.play=function(){var G=this,c,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return G.active=!0,c=G.get("data.inlinePlaybackEndpoint.watchEndpoint"),I=c.videoId||G.data.videoId,R=c.startTimeSeconds||0,Z=c.playerParams||null,_.v("kevlar_player_update_killswitch")?m.yield(G.playerEl.update({args:{video_id:I,startSeconds:R,player_params:Z}}),2):(G.playerEl.loadVideoWithPlayerVars({video_id:I,startSeconds:R,player_params:Z,autoplay:!0}),m.jumpTo(2));if(m.nextAddress!=4)return m.yield(G.playerEl.getPlayerPromise(),
4);K=m.yieldResult;K.unloadModule("annotations_module");K.addEventListener("onStateChange",function(a){G.onPlayerStateChange(a)});
_.Vp(m)})};
_.P.onPlayerStateChange=function(G){if(this.active)switch(this.playing=G===1,G){case 1:_.Xl(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Xl(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.P.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.P.resize=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return I.yield(G.playerEl.getPlayerPromise(),2);c=I.yieldResult;c.setSize(NaN,NaN);_.Vp(I)})};
_.r([_.E(),_.h("design:type",Object)],YG.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],YG.prototype,"playing",void 0);_.r([_.E(),_.h("design:type",Object)],YG.prototype,"playerId",void 0);_.r([_.nH("#player"),_.h("design:type",Object)],YG.prototype,"playerEl",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],YG);
_.B(YG,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(gNS!==void 0)return gNS;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return gNS=G},{mode:1});var YT_;var Gif;var GH=function(){var G=_.J.apply(this,arguments)||this;G.width=0;return G};
_.u(GH,_.J);_.P=GH.prototype;_.P.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.lO(this,this.onEnded));this.mp4El.addEventListener("error",_.lO(this,this.onError))};
_.P.detached=function(){this.videoEl.removeEventListener("ended",_.lO(this,this.onEnded));this.mp4El.removeEventListener("error",_.lO(this,this.onError))};
_.P.play=function(){var G=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var c=this.videoEl.play();c?c.then(function(){G.handleVideoStartPlaying()}).catch(function(){_.Xl(G.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Xl(this.hostElement,"yt-video-thumbnail-not-playing")};
_.P.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.P.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.P.dataChanged=function(){var G;if((G=this.data)==null?0:G.thumbnailPlaceholder)G=_.ZX(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+G+")";this.stop();this.autoplay&&this.play()};
_.P.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.P.onEnded=function(){this.stop();_.Xl(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.P.onError=function(){_.Xl(this.hostElement,"yt-video-thumbnail-error")};
_.P.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.P.getVideoThumbnail=function(G){if(G&&G.length)return G[0]};
GH.prototype.dataChanged=GH.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],GH.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],GH.prototype,"animatePlaceholderOnEntrance",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],GH.prototype,"autoplay",void 0);_.r([_.E({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.h("design:type",Object)],GH.prototype,"videoThumbnail",void 0);
_.r([_.E(),_.h("design:type",Boolean)],GH.prototype,"loop",void 0);_.r([_.E(),_.h("design:type",Boolean)],GH.prototype,"isVideoPlaying",void 0);_.r([_.E(),_.h("design:type",Object)],GH.prototype,"width",void 0);_.r([_.nH("#mp4"),_.h("design:type",HTMLElement)],GH.prototype,"mp4El",void 0);_.r([_.nH("#placeholder"),_.h("design:type",HTMLElement)],GH.prototype,"placeholderEl",void 0);_.r([_.nH("#video"),_.h("design:type",HTMLVideoElement)],GH.prototype,"videoEl",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GH.prototype,"dataChanged",null);_.r([_.Em({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],GH);
_.B(GH,"yt-video-as-thumbnail-details",function(){if(Gif===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;YT_===void 0&&(YT_=document.createElement("template"));var R=YT_;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Gif=G}G=Gif;return G},{mode:2});var cv=function(){var G=_.J.apply(this,arguments)||this;G.disableGridStateAware=!1;G.animationEnabled=_.v("enable_web_ketchup_hero_animation");G.transitioningOut=!1;G.narrow=!1;G.narrower=!1;G.isCarouselInFeed=!1;G.videoTimeoutJobId=0;G.panelTimeoutJobId=0;G.panelTimeoutJobStartMs=0;G.actionMap={"yt-window-resized":"onWindowResized"};return G};
_.u(cv,_.J);_.P=cv.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.P.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.P.attached=function(){this.onWindowResized()};
_.P.detached=function(){this.clearTimeouts()};
_.P.onWindowResized=function(){this.updateSize()};
_.P.computePanelLayout=function(G){return G&&G.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.playVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.play();var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.play()};
_.P.stopVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.stop();var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.stop()};
_.P.transitionOut=function(){var G=this;this.transitioningOut=!0;return new Promise(function(c){var I=function(){_.Q1(G.hostElement).querySelector("#action-button").removeEventListener("animationend",I);_.dJ.cancelJob(R);c();G.transitioningOut=!1};
var R=_.W_(_.dJ,I,1E3);_.Q1(G.hostElement).querySelector("#action-button").addEventListener("animationend",I);G.player&&(G.player.playing=!1)})};
_.P.computeMetadataOrder=function(G){return G&&G.metadataOrder&&G.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?G.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.P.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.P.computeAvatarSize=function(G){return G&&G.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.P.onContentClick=function(G){if(!_.Gf(_.CE(G),this.hostElement,["A".toString(),"BUTTON".toString()])){var c;if((c=this.data)==null?0:c.navigationEndpoint){var I;this.componentBehavior.resolveCommand((I=this.data)==null?void 0:I.navigationEndpoint)}}};
_.P.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.P.setBackgroundImage=function(G){if(G=this.getBackgroundImageUrl(G))_.Q1(this.hostElement).querySelector("#hero").style.backgroundImage="url("+G+")"};
_.P.setScrimLayer=function(G){var c=this.getScrimLayerColorStops(G);G=((G==null?void 0:G.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(G=180);_.H1("HTML_DIR")==="rtl"&&(G=-G);c&&(_.Q1(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+G+"deg, "+c+")")};
_.P.isNarrower=function(){return this.hostElement.clientWidth<cv.NARROW_VERSION_SIZE};
_.P.getScrimLayerColorStops=function(){var G,c=(G=this.data)==null?void 0:G.scrimColorValues;if(!c)return null;if(c.length===1)return G=_.pE(c[0]),G+" 0%, "+G+" 100%";if(c.length===3){var I=[0,72,98];return c.map(function(R,Z){return _.pE(R)+" "+I[Z]+"%"}).join(",")}return null};
_.P.getBackgroundImageUrl=function(G){return G&&G.largeFormFactorBackgroundThumbnail?_.ZX((G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.P.onPlaying=function(){this.startVideoTimeout()};
_.P.onEnded=function(){this.rotate()};
_.P.startPanelTimeout=function(){var G=this;if(!this.panelTimeoutJobId){var c=this.get("data.minPanelDisplayDurationMs");c&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.W_(_.dJ,function(){G.rotate()},c))}};
_.P.startVideoTimeout=function(){var G=this;if(!this.videoTimeoutJobId){_.dJ.cancelJob(this.panelTimeoutJobId);var c=Date.now()-this.panelTimeoutJobStartMs;c=Math.max(0,this.get("data.minPanelDisplayDurationMs")-c);c=Math.max(this.get("data.minVideoPlayDurationMs")||0,c);this.videoTimeoutJobId=_.W_(_.dJ,function(){G.rotate()},c)}};
_.P.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.dJ.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.dJ.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.P.rotate=function(){this.clearTimeouts();_.Xl(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Nh.Object.defineProperties(cv.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Q1(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Q1(this.hostElement).querySelector("#video")}}});
_.Nh.Object.defineProperties(cv,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
cv.prototype.onEnded=cv.prototype.onEnded;cv.prototype.onPlaying=cv.prototype.onPlaying;cv.prototype.dataChanged=cv.prototype.dataChanged;_.r([_.L(_.Dg),_.h("design:type",Object)],cv.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],cv.prototype,"componentBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],cv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.L(_.N7W),_.h("design:type",Object)],cv.prototype,"ytBooleanLogicBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],cv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],cv.prototype,"disableGridStateAware",void 0);_.r([_.E(),_.h("design:type",Object)],cv.prototype,"data",void 0);_.r([_.E({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.h("design:type",String)],cv.prototype,"panelLayout",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],cv.prototype,"animationEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],cv.prototype,"transitioningOut",void 0);
_.r([_.E({computed:"computeMetadataOrder(data)"}),_.h("design:type",Boolean)],cv.prototype,"metadataOrder",void 0);_.r([_.E({computed:"computeByline(data)"}),_.h("design:type",Object)],cv.prototype,"byline",void 0);_.r([_.E({computed:"computeAvatarSize(data)"}),_.h("design:type",Number)],cv.prototype,"avatarSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],cv.prototype,"narrow",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],cv.prototype,"narrower",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],cv.prototype,"layoutStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],cv.prototype,"isCarouselInFeed",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cv.prototype,"dataChanged",null);_.r([_.qY("yt-default-promo-panel-renderer-playing"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cv.prototype,"onPlaying",null);
_.r([_.qY("yt-default-promo-panel-renderer-ended"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cv.prototype,"onEnded",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],cv);
_.B(cv,"ytd-default-promo-panel-renderer",function(){if(yz6!==void 0)return yz6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return yz6=G},{mode:1});_.Su("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var I$=function(){var G=_.J.apply(this,arguments)||this;G.narrower=!1;G.dotMenuVisible=!1;G.paginationThumbnailsVisible=!1;G.active=!0;G.disableGridStateAware=!1;G.actionMap={"yt-window-resized":"onWindowResized"};return G};
_.u(I$,_.J);_.P=I$.prototype;_.P.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.lO(this,this.onPageTypeChange));this.currentPageSubtype=_.mFb(location.pathname);this.onWindowResized()};
_.P.detached=function(){this.jobId&&_.dJ.cancelJob(this.jobId);this.updateSizeJobId&&_.dJ.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.lO(this,this.onPageTypeChange))};
_.P.onPageTypeChange=function(G){this.active=G.detail.newPageSubtype===this.currentPageSubtype};
_.P.onWindowResized=function(){this.updateSize()};
_.P.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.P.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.P.setCarouselItem=function(G){G>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.dJ.cancelJob(this.jobId);var c=this.getCurrentPanelElement();c&&c.stopVideo();this.currentItemIndex=G%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(c||(c=this.getCurrentPanelElement()),c.playVideo()):this.startRotationJob()};
_.P.scrollThumbnails=function(G){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var c=this.getCurrentPaginationElement();if(c){var I=_.Q1(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?I.style.transform="translateX(0)":(c=c.offsetWidth+8,I.style.transform="translateX(-"+c*(G-Math.ceil(Math.floor(this.overlay.offsetWidth/c)/2)+1)+"px)")}}};
_.P.onDataChanged=function(){var G=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.U_(_.dJ,function(){var c;(c=G.getCurrentPanelElement())==null||c.updateSize();G.updateSize()}))};
_.P.getCurrentPanelElement=function(){return _.Q1(_.Q1(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.P.getCurrentPaginationElement=function(){return _.Q1(_.Q1(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.P.getNavigationClass=function(G,c){return G===c?"selected":""};
_.P.getNavigationDurationStyle=function(G){return"animation-duration:"+(this.get("data.carouselItems."+G+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.P.onNavigationTap=function(G){var c=this,I=G.model.index;I!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){c.setCarouselItem(I)}),this.autorotateActive=!1)};
_.P.onVideoThumbnailEnded=function(){var G=this;if(this.shouldRotate()){var c=this.getCurrentPaginationElement();c&&(c.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){c.classList.remove("finished");G.setNextCarouselItem()}))}};
_.P.onVideoThumbnailError=function(){this.startRotationJob()};
_.P.onVideoNotPlaying=function(){this.startRotationJob()};
_.P.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.P.startRotationJob=function(){var G=this;_.dJ.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.dJ.addLowPriorityJob(function(){G.getCurrentPanelElement().transitionOut().then(function(){G.setNextCarouselItem()})},this.rotationTimeout))};
_.P.computeDotMenuVisible=function(G,c){return!!G&&!!G.carouselItems&&G.carouselItems.length>1&&!G.paginationThumbnails||!!c};
_.P.computePaginationThumbnailsVisible=function(G,c){var I,R;return((R=G==null?void 0:(I=G.paginationThumbnails)==null?void 0:I.length)!=null?R:0)>1&&!c};
_.P.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.computePaginatorAlignment=function(G){return(G==null?void 0:G.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.P.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.P.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.P.isNarrower=function(G){return(G!=null?G:0)<cv.NARROW_VERSION_SIZE};
I$.prototype.activeChanged=I$.prototype.activeChanged;I$.prototype.onVideoNotPlaying=I$.prototype.onVideoNotPlaying;I$.prototype.onVideoThumbnailError=I$.prototype.onVideoThumbnailError;I$.prototype.onVideoThumbnailEnded=I$.prototype.onVideoThumbnailEnded;I$.prototype.onDataChanged=I$.prototype.onDataChanged;_.r([_.L(_.Dg),_.h("design:type",Object)],I$.prototype,"ytdGridStateAwareBehavior",void 0);
_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],I$.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],I$.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],I$.prototype,"currentItem",void 0);
_.r([_.E(),_.h("design:type",Number)],I$.prototype,"currentItemIndex",void 0);_.r([_.E(),_.h("design:type",Number)],I$.prototype,"rotationTimeout",void 0);_.r([_.E(),_.h("design:type",Number)],I$.prototype,"loopCount",void 0);_.r([_.E({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.h("design:type",String)],I$.prototype,"paginatorAlignment",void 0);_.r([_.E(),_.h("design:type",Number)],I$.prototype,"jobId",void 0);
_.r([_.E(),_.h("design:type",Number)],I$.prototype,"updateSizeJobId",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],I$.prototype,"isCarouselInFeed",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],I$.prototype,"narrower",void 0);_.r([_.E({computed:"computeDotMenuVisible(data, narrower)"}),_.h("design:type",Object)],I$.prototype,"dotMenuVisible",void 0);
_.r([_.E({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.h("design:type",Object)],I$.prototype,"paginationThumbnailsVisible",void 0);_.r([_.E({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.h("design:type",String)],I$.prototype,"layoutType",void 0);_.r([_.E({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],I$.prototype,"autorotateActive",void 0);_.r([_.E(),_.h("design:type",Object)],I$.prototype,"active",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],I$.prototype,"disableGridStateAware",void 0);_.r([_.nH("#overlay"),_.h("design:type",HTMLElement)],I$.prototype,"overlay",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I$.prototype,"onDataChanged",null);
_.r([_.qY("yt-video-thumbnail-ended"),_.qY("yt-default-promo-panel-renderer-rotate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I$.prototype,"onVideoThumbnailEnded",null);_.r([_.qY("yt-video-thumbnail-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I$.prototype,"onVideoThumbnailError",null);
_.r([_.qY("yt-video-thumbnail-not-playing"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I$.prototype,"onVideoNotPlaying",null);_.r([_.uO("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I$.prototype,"activeChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],I$);
_.B(I$,"ytd-carousel-item-renderer",function(){if(Xy_!==void 0)return Xy_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Xy_=G},{mode:2});var c_y;var ITG;var RJR;var ZT_;var R$=function(){var G=_.J.apply(this,arguments)||this;G.originalQuery=null;G.originalEndpoint=null;return G};
_.u(R$,_.J);R$.prototype.computeShowOriginalQueryWithoutEndpoint_=function(G,c){return!(!G||c)};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],R$.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],R$.prototype,"correctedText",void 0);_.r([_.E(),_.h("design:type",Object)],R$.prototype,"correctedQuery",void 0);_.r([_.E(),_.h("design:type",Object)],R$.prototype,"correctedEndpoint",void 0);_.r([_.E(),_.h("design:type",Object)],R$.prototype,"originalText",void 0);_.r([_.E(),_.h("design:type",Object)],R$.prototype,"originalQuery",void 0);
_.r([_.E(),_.h("design:type",Object)],R$.prototype,"originalEndpoint",void 0);_.r([_.E({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.h("design:type",Boolean)],R$.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.r([_.Em({is:"yt-search-query-correction",disableElementRegistration:!0})],R$);
_.B(R$,"yt-search-query-correction",function(){if(ZT_===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;RJR===void 0&&(RJR=document.createElement("template"));var R=RJR;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ZT_=G}G=ZT_;return G},{mode:2});_.Su("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var KzR=function(){return _.J.apply(this,arguments)||this};
_.u(KzR,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],KzR.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],KzR.prototype,"data",void 0);_.r([_.Em({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],KzR);
_.B(KzR,"yt-did-you-mean-renderer",function(){if(ITG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;c_y===void 0&&(c_y=document.createElement("template"));var R=c_y;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ITG=G}G=ITG;return G},{mode:2});var Pa5;var QET;_.Su("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var m3T=function(){return _.J.apply(this,arguments)||this};
_.u(m3T,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],m3T.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],m3T.prototype,"data",void 0);_.r([_.Em({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],m3T);
_.B(m3T,"yt-including-results-for-renderer",function(){if(QET===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Pa5===void 0&&(Pa5=document.createElement("template"));var R=Pa5;I.call(c,R.content.cloneNode(!0),G.content.firstChild);QET=G}G=QET;return G},{mode:2});var aTN;var T5x;_.Su("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Zy=function(){return _.J.apply(this,arguments)||this};
_.u(Zy,_.J);Zy.prototype.computeExtraClasses_=function(G,c){var I="";G&&(I+=" "+G.toLowerCase().replace(/_/g,"-"));c&&(I+=" "+c.toLowerCase().replace(/_/g,"-"));return I};
Zy.prototype.computeUrlImg_=function(){var G=this.data;G.image&&(_.Q1(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.ZX(G.image.thumbnails,Number.MAX_VALUE)+")")};
Zy.prototype.computeUrlImg_=Zy.prototype.computeUrlImg_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Zy.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zy.prototype,"computeUrlImg_",null);_.r([_.Em({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Zy);
_.B(Zy,"yt-music-pass-feature-info-renderer",function(){if(T5x===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;aTN===void 0&&(aTN=document.createElement("template"));var R=aTN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);T5x=G}G=T5x;return G},{mode:2});var OT6;var eJx;_.Su("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var N5R=function(){return _.J.apply(this,arguments)||this};
_.u(N5R,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],N5R.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],N5R.prototype,"data",void 0);_.r([_.Em({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],N5R);
_.B(N5R,"yt-no-results-found-showing-results-for-renderer",function(){if(eJx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;OT6===void 0&&(OT6=document.createElement("template"));var R=OT6;I.call(c,R.content.cloneNode(!0),G.content.firstChild);eJx=G}G=eJx;return G},{mode:2});var lTx;var q9J;_.Su("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var wMo=function(){return _.J.apply(this,arguments)||this};
_.u(wMo,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wMo.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wMo.prototype,"data",void 0);_.r([_.Em({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],wMo);
_.B(wMo,"yt-results-without-quotes-renderer",function(){if(q9J===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;lTx===void 0&&(lTx=document.createElement("template"));var R=lTx;I.call(c,R.content.cloneNode(!0),G.content.firstChild);q9J=G}G=q9J;return G},{mode:2});var FzS;var nmx;_.Su("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var vmz=function(){return _.J.apply(this,arguments)||this};
_.u(vmz,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vmz.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],vmz.prototype,"data",void 0);_.r([_.Em({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],vmz);
_.B(vmz,"yt-search-no-results-renderer",function(){if(nmx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;FzS===void 0&&(FzS=document.createElement("template"));var R=FzS;I.call(c,R.content.cloneNode(!0),G.content.firstChild);nmx=G}G=nmx;return G},{mode:2});var D3J;var omf;_.Su("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var U3G=function(){return _.J.apply(this,arguments)||this};
_.u(U3G,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],U3G.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],U3G.prototype,"data",void 0);_.r([_.Em({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],U3G);
_.B(U3G,"yt-showing-results-for-renderer",function(){if(omf===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;D3J===void 0&&(D3J=document.createElement("template"));var R=D3J;I.call(c,R.content.cloneNode(!0),G.content.firstChild);omf=G}G=omf;return G},{mode:2});var ueR;var bTT;var kiT;var sEy;var K6=function(){var G=_.J.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.u(K6,_.J);K6.prototype.toggleAnswer_=function(G){var c=_.HH(G);c&&c.classList.contains("yt-simple-endpoint")||(G.preventDefault(),G.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
K6.prototype.toggleAnswer_=K6.prototype.toggleAnswer_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],K6.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],K6.prototype,"answerExpanded",void 0);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],K6.prototype,"toggleAnswer_",null);
_.r([_.Em({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],K6);
_.B(K6,"yt-generic-faq-question-renderer",function(){if(sEy===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;kiT===void 0&&(kiT=document.createElement("template"));var R=kiT;I.call(c,R.content.cloneNode(!0),G.content.firstChild);sEy=G}G=sEy;return G},{mode:2});_.Su("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Pv=function(){return _.J.apply(this,arguments)||this};
_.u(Pv,_.J);Pv.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Pv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Pv.prototype,"data",void 0);_.r([_.Em({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Pv);
_.B(Pv,"yt-faq-section-renderer",function(){if(bTT===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;ueR===void 0&&(ueR=document.createElement("template"));var R=ueR;I.call(c,R.content.cloneNode(!0),G.content.firstChild);bTT=G}G=bTT;return G},{mode:2});var LzN;var A_S;_.Su("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Qd=function(){return _.J.apply(this,arguments)||this};
_.u(Qd,_.J);
Qd.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Qd.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Qd.prototype,"data",void 0);_.r([_.Em({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Qd);
_.B(Qd,"yt-offer-item-expanded-renderer",function(){if(A_S===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;LzN===void 0&&(LzN=document.createElement("template"));var R=LzN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);A_S=G}G=A_S;return G},{mode:2});var $35;var S96;_.Su("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var mE=function(){return _.J.apply(this,arguments)||this};
_.u(mE,_.J);
mE.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"}}}}};
mE.prototype.computeFullWidthMode=function(G){return!(!G||!G.fullWidthMode)};
mE.prototype.computeBorderlessMode=function(G){return!(!G||!G.borderlessMode)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mE.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.h("design:type",Boolean)],mE.prototype,"fullWidthMode",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.h("design:type",Boolean)],mE.prototype,"borderlessMode",void 0);_.r([_.Em({is:"yt-offer-item-renderer",disableElementRegistration:!0})],mE);
_.B(mE,"yt-offer-item-renderer",function(){if(S96===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;$35===void 0&&($35=document.createElement("template"));var R=$35;I.call(c,R.content.cloneNode(!0),G.content.firstChild);S96=G}G=S96;return G},{mode:2});var pM5;var Mnx;_.Su("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var a$=function(){return _.J.apply(this,arguments)||this};
_.u(a$,_.J);a$.prototype.computeAriaLevel_=function(G){return this.getLevelID_(G)};
a$.prototype.getLevelID_=function(G){return(G=G.match(/[0-9]+$/))&&G.length==1?G[0]:"1"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],a$.prototype,"data",void 0);_.r([_.E({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.h("design:type",String)],a$.prototype,"ariaLevel",void 0);_.r([_.E({value:"heading",reflectToAttribute:!0}),_.h("design:type",String)],a$.prototype,"role",void 0);
_.r([_.E({value:-1,reflectToAttribute:!0}),_.h("design:type",Number)],a$.prototype,"tabindex",void 0);_.r([_.Em({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],a$);
_.B(a$,"yt-subscription-product-header-renderer",function(){if(Mnx===void 0){var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;pM5===void 0&&(pM5=document.createElement("template"));var R=pM5;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Mnx=G}G=Mnx;return G},{mode:2});var VnN;var zJ6;_.Su("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var TH=function(){return _.J.apply(this,arguments)||this};
_.u(TH,_.J);TH.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:_.pQ("menuRenderer"),events:!0}}};
TH.prototype.onStampFinished_=function(){_.Q1(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
TH.prototype.onStampFinished_=TH.prototype.onStampFinished_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],TH.prototype,"data",void 0);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TH.prototype,"onStampFinished_",null);
_.r([_.Em({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],TH);
_.B(TH,"yt-subscription-product-renderer",function(){if(zJ6===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;VnN===void 0&&(VnN=document.createElement("template"));var R=VnN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);zJ6=G}G=zJ6;return G},{mode:2});var Em5;var J_N;_.Su("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Ox=function(){return _.J.apply(this,arguments)||this};
_.u(Ox,_.J);Ox.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ox.prototype.imageScrimColorValuesChanged_=function(){var G,c=(G=this.data)==null?void 0:G.imageScrimColorValues;_.Q1(this.hostElement).querySelector("#scrim").style.backgroundColor=c?_.pE(c[0]):"transparent"};
Ox.prototype.imageScrimColorValuesChanged_=Ox.prototype.imageScrimColorValuesChanged_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ox.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ox.prototype,"data",void 0);
_.r([_.wD("data.imageScrimColorValues"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ox.prototype,"imageScrimColorValuesChanged_",null);_.r([_.Em({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Ox);
_.B(Ox,"yt-subscription-product-upsell-offer-renderer",function(){if(J_N===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Em5===void 0&&(Em5=document.createElement("template"));var R=Em5;I.call(c,R.content.cloneNode(!0),G.content.firstChild);J_N=G}G=J_N;return G},{mode:2});var Wz6;var iT5;var fTG;var B5o;var r_x;var jEG;var eO=function(){return _.J.apply(this,arguments)||this};
_.u(eO,_.J);eO.prototype.onYtServiceRequestError_=function(G){_.Xc(this.hostElement,G.detail.error.message)};
eO.prototype.onYtServiceRequestError_=eO.prototype.onYtServiceRequestError_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],eO.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],eO.prototype,"collapsible",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],eO.prototype,"isManageRed",void 0);
_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],eO.prototype,"onYtServiceRequestError_",null);_.r([_.Em({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],eO);
_.B(eO,"yt-single-ypc-offer-renderer",function(){if(jEG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;r_x===void 0&&(r_x=document.createElement("template"));var R=r_x;I.call(c,R.content.cloneNode(!0),G.content.firstChild);jEG=G}G=jEG;return G},{mode:2});var NK=function(){return _.J.apply(this,arguments)||this};
_.u(NK,_.J);NK.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NK.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],NK.prototype,"isManageRed",void 0);_.r([_.Em({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],NK);
_.B(NK,"yt-single-ypc-offer-list-renderer",function(){if(B5o===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;fTG===void 0&&(fTG=document.createElement("template"));var R=fTG;I.call(c,R.content.cloneNode(!0),G.content.firstChild);B5o=G}G=B5o;return G},{mode:2});var x36;var tnS;_.Su("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var lw=function(){return _.J.apply(this,arguments)||this};
_.u(lw,_.J);lw.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lw.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],lw.prototype,"isManageRed",void 0);_.r([_.Em({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],lw);
_.B(lw,"yt-ypc-offers-list-renderer",function(){if(tnS===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;x36===void 0&&(x36=document.createElement("template"));var R=x36;I.call(c,R.content.cloneNode(!0),G.content.firstChild);tnS=G}G=tnS;return G},{mode:2});_.Su("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var qK=function(){return _.J.apply(this,arguments)||this};
_.u(qK,_.J);
qK.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}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qK.prototype,"data",void 0);_.r([_.Em({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],qK);
_.B(qK,"yt-unlimited-manage-subscription-page-renderer",function(){if(iT5===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Wz6===void 0&&(Wz6=document.createElement("template"));var R=Wz6;I.call(c,R.content.cloneNode(!0),G.content.firstChild);iT5=G}G=iT5;return G},{mode:2});var hJG;var d3x;var wz=function(){return _.J.apply(this,arguments)||this};
_.u(wz,_.J);_.P=wz.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.P.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.onKeypress_=function(G){G.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.P.handleHeaderTap_=function(G){G.preventDefault();G.stopPropagation();this.expandOffers_()};
_.P.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.P.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
wz.prototype.dataChanged_=wz.prototype.dataChanged_;_.r([_.L(_.Ha),_.h("design:type",Object)],wz.prototype,"ironA11yKeysBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wz.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],wz.prototype,"offersVisible_",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wz.prototype,"dataChanged_",null);_.r([_.Em({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],wz);
_.B(wz,"yt-collapsible-ypc-offer-renderer",function(){if(d3x===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;hJG===void 0&&(hJG=document.createElement("template"));var R=hJG;I.call(c,R.content.cloneNode(!0),G.content.firstChild);d3x=G}G=d3x;return G},{mode:2});var Ca_;var HTy;_.Su("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var FD=function(){return _.J.apply(this,arguments)||this};
_.u(FD,_.J);_.P=FD.prototype;_.P.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.P.dataChanged_=function(){if(this.data.backgroundImage){var G=_.ZX(this.data.backgroundImage.thumbnails,screen.width),c=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=c?"linear-gradient(180deg, "+c+"), url("+G+")":"url("+G+")";this.data.gtmId&&_.Zs(this.data.gtmId,_.H1("GL",""))}};
_.P.onYtServiceRequestError_=function(G){_.Xc(this.hostElement,G.detail.error.message)};
_.P.getScrimLayerColorStops_=function(){var G,c,I=(G=this.data.unlimitedHeaderV2Data)==null?void 0:(c=G.unlimitedHeaderV2Data)==null?void 0:c.scrimLayerColors;if(!I)return null;var R=100/I.length;return I.map(function(Z,K){K*=R;return _.pE(Z)+" "+K+"%"}).join(",")};
_.P.computeLogoWithPadding=function(G){var c,I,R;return(G=(c=G.unlimitedLogoImage)==null?void 0:(I=c.thumbnails)==null?void 0:(R=I[0])==null?void 0:R.height)&&G%31===0?!0:!1};
FD.prototype.onYtServiceRequestError_=FD.prototype.onYtServiceRequestError_;FD.prototype.dataChanged_=FD.prototype.dataChanged_;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.r([_.E({computed:"computeLogoWithPadding(data)"}),_.h("design:type",Boolean)],FD.prototype,"logoWithPadding",void 0);
_.r([_.E(),_.h("design:type",Object)],FD.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FD.prototype,"dataChanged_",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],FD.prototype,"onYtServiceRequestError_",null);_.r([_.Em({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],FD);
_.B(FD,"yt-unlimited-page-header-renderer",function(){if(HTy===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Ca_===void 0&&(Ca_=document.createElement("template"));var R=Ca_;I.call(c,R.content.cloneNode(!0),G.content.firstChild);HTy=G}G=HTy;return G},{mode:2});var XMz;var y_S;_.Su("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var n6=function(){return _.J.apply(this,arguments)||this};
_.u(n6,_.J);n6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],n6.prototype,"data",void 0);_.r([_.Em({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],n6);
_.B(n6,"yt-unlimited-user-notification-renderer",function(){if(y_S===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;XMz===void 0&&(XMz=document.createElement("template"));var R=XMz;I.call(c,R.content.cloneNode(!0),G.content.firstChild);y_S=G}G=y_S;return G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var IPF,Zd7,PDg,mCg,aPd,eGH;_.Nr=function(G){var c=G.clientMessageId;var I=G.playerOffsetMs;var R=G.pageContext;G=G.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:c},!!I&&{playerOffsetMs:I},!!R&&{pageContext:R},!!G&&{userInputText:G})}};
_.cNr=function(G,c,I){c=c===void 0?5:c;if(c!==0){var R=typeof G==="function"?G():document.querySelector(G);R?(I==null?0:I.enableSmartFocus)?_.Y2g(R):R.focus():setTimeout(function(){_.cNr(G,c-1,I)},500)}};
IPF=function(G){return String.raw.apply(String,[{raw:G}].concat(_.jn(_.Hy.apply(1,arguments).map(function(c){return c instanceof Array?c.join(""):c}))))};
Zd7=function(G){var c=_.Hy.apply(1,arguments),I=c.length;if(!Array.isArray(G)||!Array.isArray(G.raw)||G.length!==G.raw.length||!_.Xyi&&G===G.raw||!(_.Xyi&&!_.yzV||_.Jz(G))||I+1!==G.length)throw new TypeError("$");return new RGG(Object.freeze({strings:Object.freeze(G),args:Object.freeze(c)}))};
_.Kwd=function(G){return{continuationCommand:{token:G,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
PDg=function(){return _.Hy.apply(0,arguments).flat().filter(function(G){return G}).join(";")};
mCg=function(){return Zd7(QJd,PDg.apply(null,_.jn(_.Hy.apply(0,arguments))))};
aPd=function(G,c){if(_.v("web_enable_chat_autoscroll_to_user_turn")&&G&&c)return G-4+"px"};
_.T0G=function(G,c){return _.a6(G.entities,"youchatPendingResponseEntity",c)};
_.OdW=function(G){return function(c){_.y1(_.Le("youchatPendingResponseEntity",G,{entityKey:G,isPendingResponse:c}))}};
eGH=function(G){G==null||G.addEventListener("DOMLoaded",function(){G.goToAndPlay(G.totalFrames-48,!0)})};
_.lV=function(G){this.__isSoyCss=!0;this.css=IPF.apply(null,[G.strings].concat(_.jn(G.args)))};
_.lV.prototype.toString=function(){return this.css};
var RGG=function(){_.lV.apply(this,arguments)};
_.u(RGG,_.lV);var QJd=_.I3(["",""]);_.N0W=_.W(function(G){var c=_.YW(G,{numberOfChips:5}).numberOfChips;return _.e("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.e(_.fh,{each:function(){return Array(c==null?void 0:c())}},function(){return _.e("div",{class:"ytGhostChipShelfChip"})}))},"$i");var lPu=_.W(function(G){var c=void 0,I=function(){return G.data()},R=function(){return!!_.Mo(_.Sh(I())).optionColor},Z=_.Q(_.ks(-1,void 0,"m6Iyqc")),K=Z.next().value,m=Z.next().value,a=function(F){return K()===F},O=function(F){return I().correctAnswerIndex===F},N=function(){return K()!==-1};
Z=_.Q(_.ks("",void 0,"jvMkLd"));var q=Z.next().value,w=Z.next().value;return _.e("yoututor-quiz-view-model",{class:_.O3("learningQuizComponentHost","learningYoututorQuizHost",G.className),style:_.wi({background:function(){return _.Mo(_.Sh(I())).backgroundColor}})},_.e("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},q),_.e("div",{class:"learningQuizComponentQuizContainer"},_.e("div",{class:"learningQuizComponentQuiz"},_.e("div",{class:"learningQuizComponentQuizContent"},_.e(_.l,{cond:function(){return!!I().aiGeneratedQuizLabel},
then:function(){return _.e("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.e(_.ul,{text:function(){return I().aiGeneratedQuizLabel}}))}}),_.e("div",{class:"learningQuizComponentQuizHeader"},_.e("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.e("div",{class:"learningYoututorQuizText",
style:_.wi({color:function(){return _.Mo(_.Sh(I())).primaryTextColor}})},_.e(_.ul,{text:function(){return I().questionHeaderText}}))))),_.e("div",{role:"group",
class:_.O3("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.e(_.fh,{each:function(){return I().optionsData||[]}},function(F,n){var U={};
return _.e("button",{class:_.O3("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(U.learningQuizComponentQuizHover=function(){return!N()},U.learningQuizComponentQuizOptionWithCustomColor=R,U.learningYoututorQuizOptionSelectedCorrectOutline=function(){return N()&&O(n())},U.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return K()!==I().correctAnswerIndex&&a(n())},U.learningQuizComponentQuizIncorrectShake=function(){return K()!==
I().correctAnswerIndex&&a(n())},U)),
"on:click":_.Nx(function(){_.t0(_.DP(),{data:F});if(N())return!1;m(n());w(O(n())?I().correctAnswerAriaLabel||"":I().incorrectAnswerAriaLabel||"");return!1}),
style:_.wi({background:"transparent"}),"aria-description":function(){return N()?O(n())?I().correctAnswerAriaLabel:I().incorrectAnswerAriaLabel:""},
"aria-disabled":N,el:_.YC(function(k){_.VY(271905,k,c,function(p){c=p})}),
"client-ve-type":271905},_.e("div",{class:"learningQuizComponentQuizOptionContainer"},_.e(_.ul,{text:F.optionText}),_.e(_.l,{cond:function(){var k=n();return N()&&(a(k)||O(k))},
then:function(){var k={};return _.e(_.F6,{className:_.O3("learningYoututorQuizOptionIcon",(k.learningQuizComponentQuizPulse=function(){return K()===I().correctAnswerIndex&&O(n())},k)),
size:24,icon:function(){return O(n())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.e(_.l,{cond:N,
then:function(){return _.e("div",{class:"learningYoututorQuizExplanationContainer"},_.e("div",{class:"learningYoututorQuizExplanationText"},_.e(_.ul,{text:function(){return I().explanationHeaderText}})),_.e(_.ul,{text:function(){return I().optionsData[K()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"aj");
lPu.idomCompat=!0;var qnd=_.W(function(G){var c=G.thumbsUp,I=G.thumbsDown,R=G.rightAlignThumbs;G=_.Q(_.ks(!1,void 0,"OxPsH"));var Z=G.next().value,K=G.next().value;G=_.Q(_.ks(!1,void 0,"V5vWne"));var m=G.next().value,a=G.next().value;G={};return _.e("div",{class:_.O3("ytwThumbsUpDownThumbs",(G.ytwThumbsUpDownRightAlign=function(){return R==null?void 0:R()},G))},_.e(_.m8,{data:c,
onToggle:function(O){K(O);m()&&a(!1)},
buttonShapeOverrides:function(){return{toggled:Z()}}}),_.e(_.m8,{data:I,
onToggle:function(O){a(O);Z()&&K(!1)},
buttonShapeOverrides:function(){return{toggled:m()}}}))},"bj");
qnd.idomCompat=!0;var FwG=_.W(function(G){var c=function(){return G.data().pendingStateEntityKey||""},I=_.um(_.T0G,c),R=function(){var a;
if(!(a=G.disabled())){var O;a=!((O=I())==null||!O.isPendingResponse)}return a},Z=_.Q(_.ks(mCg(""),void 0,"Q6q6y")),K=Z.next().value,m=Z.next().value;
_.xc(function(){requestAnimationFrame(function(){var a=G.data().onShowAnimationMs||0;a=a>0?mCg("--chip-animation-duration: "+a+"ms;"):mCg("");m(a)})});
return _.e("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:K},_.e(_.fh,{each:function(){return G.data().chipData||[]},
keyBy:"REFERENCE"},function(a){return _.e(wIW,{data:a,disabled:R,pendingStateKey:c,onError:G.onError})}))},"dj"),wIW=_.W(function(G){var c=_.Op("button"),I=_.Q(_.ks(!0,void 0,"baSFEf")),R=I.next().value,Z=I.next().value,K=function(){return G.data().text.content},m=function(){return G.data().transparentWhenLoading},a=_.o1(_.Ce.currentPageSubTypeSelector),O=function(){var q;
return(q=_.wH().resolve(_.qR(_.lZ)))==null?void 0:_.mSg(q,a())},N=_.Nx(function(q){var w,F,n,U,k,p,M,z;
return _.T(function(t){switch(t.nextAddress){case 1:q.stopPropagation();if(G.disabled())return t.return();F=String(Math.floor(((w=_.Fc())==null?void 0:w.getCurrentTime())||0)*1E3);n="youchat-"+Date.now();U=function(){_.iD(G.data().onClick||{});var x=_.Kwd(G.data().continuation),C=_.Nr({clientMessageId:n,playerOffsetMs:F,pageContext:O()});return new Promise(function(H,g){_.iD(x,{form:{formData:C},commandController:{onSuccess:function(QO,T8){H(T8)},
onServerError:function(QO,T8){g(T8.error)}}})})};
k=_.OdW(G.pendingStateKey());k(!0);_.cNr("#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");Z(!1);_.s9(t,2);return t.yield(U(),4);case 4:_.Pl(t,3);break;case 2:p=_.M3(t),(z=(M=G).onError)==null||z.call(M,p);case 3:k(!1),_.Vp(t)}})});
return _.e(_.l,{cond:R,then:function(){return _.e("div",{class:"ytwYouChatChipsDataChipWrapper"},_.e("button",{el:c,class:"ytwYouChatChipsDataChip","data-disabled":G.disabled,"data-transparent-loading":m,"on:click":N,tabindex:0},K))}})},"ej");var nCd=_.W(function(G){var c=G.data;var I=G.initiallyExpanded;var R=function(){var N;return(N=c().conversationResourceData)==null?void 0:N.learningGuideData};
G=_.Q(_.Gz(function(){var N;return(N=I==null?void 0:I())!=null?N:!1}));
var Z=G.next().value,K=G.next().value,m=function(){var N,q=_.D((N=R())==null?void 0:N.expandButton,_.uv);q&&_.t0(_.DP(),{data:q});K(!0)},a=_.SE(function(){var N,q;
return(q=(N=R())==null?void 0:N.sections)!=null?q:[]},void 0,"V7sYqc"),O=_.SE(function(){return a().length>4},void 0,"GFFPnd");
G=_.SE(function(){var N;return!Z()&&O()&&(N=R())!=null&&N.expandButton?a().slice(0,4):a()},void 0,"Rbi7Ke");
return _.e("yt-conversation-resource-view-model",{class:_.O3("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.e(_.sN,{data:G},{expandableMetadataViewModel:_.w1W}),_.e(_.l,{cond:function(){return O()&&!Z()},
then:function(){return _.e("div",{id:"showMoreButton"},_.e(_.sN,{data:function(){var N;return(N=R())==null?void 0:N.expandButton}},{buttonViewModel:function(N){return _.e(_.BR,{data:N.data,
onClick:m})}}))}}))},"fj");_.vCW=_.W(function(G){var c=function(){var z;return(z=G.data().text)==null?void 0:z.content},I=function(){var z,t;
return(z=G.data().webData)==null?void 0:(t=z.textResult)==null?void 0:t.content},R=_.wH().resolve(_.HI),Z=_.ne(),K=function(){return G.data().chatResponseStyle},m=function(){return!G.data().transparentBackground},a=function(){return G.data().rightAlignThumbs},O=function(){return G.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||G.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},N=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:O()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:G.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},q=function(){var z;
return G.data().webData||((z=G.data().text)==null?void 0:z.content)||G.data().videoResultsData||G.data().conversationResourceViewModel||G.data().quiz||G.data().yoututorQuiz||G.data().richContent},w=function(){return!!G.data().sectionHeader||q()},F=function(){var z;
return(z=G.data().videoResultsData)==null?void 0:z.videoShelf},n=function(){var z;
return(z=G.data().webData)==null?void 0:z.sourcesShelf},U=function(){return K()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||K()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:G.data().thumbsDownViewModel&&G.data().thumbsUpViewModel},k=function(){return _.D(G.data().thumbsUpViewModel,_.kh)},p=function(){return _.D(G.data().thumbsDownViewModel,_.kh)};
_.xc(function(){requestAnimationFrame(function(){var z;(z=G.shouldAnimateIcon)!=null&&z.call(G)&&eGH(Z.lottieEl)})});
var M={};return _.e("you-chat-item-view-model",{class:_.O3("ytwYouChatItemViewModelYouChatItemViewModel",(M.ytwYouChatItemViewModelColumnLayout=function(){return O()},M)),
style:_.wi({"min-height":function(){var z,t;return aPd((z=G.containerHeight)==null?void 0:z.call(G),(t=G.isLastItem)==null?void 0:t.call(G))}}),
"data-target-id":function(){return G.data().id||""}},_.e(_.l,{cond:function(){return G.data().removeIcon?!1:w()},
then:function(){var z={};return _.e("div",{"aria-hidden":"true"},_.e(_.XX,{className:_.O3("ytwYouChatItemViewModelIcon",(z.ytwYouChatItemViewModelRtl=R==="rtl",z.ytwYouChatItemViewModelHidden=function(){return!(G.data().hideIcon||K()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||K()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:w())},z)),
animationName:"YOUCHAT_ICON",data:N,animationRef:Z}))}}),_.e(_.l,{cond:w,
then:function(){var z={};return _.e("div",{class:_.O3("ytwYouChatItemViewModelHost",(z.ytwYouChatItemViewModelHostNoPadding=function(){return!!G.data().sectionHeader&&!q()},z.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return K()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},z.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return K()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},z.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return K()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
z.ytwYouChatItemViewModelGradientBackground=m,z.ytwYouChatItemViewModelHostAlignStart=function(){return!O()},z.ytwYouChatItemViewModelHostDefaultFlex=function(){return!O()},z)),
role:"alert"},_.e(_.l,{cond:c,then:function(t){return _.e(_.pr,{text:t,wrapCodeBlocks:!0})}}),_.e(_.sN,{data:function(){return G.data().sectionHeader}},{sectionHeaderViewModel:function(t){var x={};
return _.e(_.I4,{data:t.data,className:_.O3("ytwYouChatItemViewModelSectionHeader",(x.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!G.data().sectionHeader&&!q()},x)),
forceSmallLayout:!0})}}),_.e(_.l,{cond:I,
then:function(t){return _.e(_.pr,{text:t,wrapCodeBlocks:!0})}}),_.e(_.l,{cond:F,
then:function(){return _.e("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.e(_.sN,{data:function(){var t;return(t=G.data().videoResultsData)==null?void 0:t.videoShelf}},{horizontalShelfViewModel:function(t){return _.e(_.$R,{data:t.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.e(_.l,{cond:n,
then:function(){return _.e("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.e(_.sN,{data:function(){var t;return(t=G.data().webData)==null?void 0:t.sourcesShelf}},{horizontalShelfViewModel:function(t){return _.e(_.$R,{data:t.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.e(_.sN,{data:function(){return G.data().conversationResourceViewModel}},{conversationResourceViewModel:nCd}),_.e(_.sN,{data:function(){return G.data().quiz}},{learningJourneyQuizViewModel:_.H_i}),_.e(_.sN,{data:function(){return G.data().yoututorQuiz}},{yoututorQuizViewModel:lPu}),_.e(_.sN,{data:function(){return G.data().richContent}},{cardViewModel:_.Ib1,
linearLayoutViewModel:_.Lr}),_.e(_.l,{cond:U,then:function(){return _.e(qnd,{thumbsUp:k,thumbsDown:p,rightAlignThumbs:a})}}))}}),_.e(_.l,{cond:function(){return G.data().chipsData},
then:function(z){return _.e(FwG,{data:z,disabled:G.pending,onError:G.onError})}}))},"hj");
_.vCW.idomCompat={callbacks:{onError:!0,onSend:!0}};_.DCj=_.W(function(G){var c=function(){return G.data().choiceSelectedText},I=function(){return G.data().hasGradientBackground},R={};
return _.e("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.wi({"min-height":function(){var Z,K;return aPd((Z=G.containerHeight)==null?void 0:Z.call(G),(K=G.isLastItem)==null?void 0:K.call(G))}}),
"data-target-id":function(){var Z;return(Z=G.data().itemTargetId)!=null?Z:""}},_.e(_.l,{cond:c,
then:function(){return _.e("div",{class:"ytYouChatUserTurnChoiceSelected"},_.e(_.ul,{text:c}))}}),_.e("div",{class:_.O3("ytYouChatUserTurnUserMessage",(R.ytYouChatUserTurnGradientContainer=I,R.ytYouChatUserTurnDefaultContainer=function(){return!I()},R))},function(){return G.data().text}))},"ij");_.oCF=_.W(function(G){var c=function(){var m;return((m=G.data)==null?void 0:m.call(G).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},I=_.ne(),R=_.wH().resolve(_.HI);
_.xc(function(){requestAnimationFrame(function(){var m;(m=I.lottieEl)==null||m.addEventListener("DOMLoaded",function(){var a;(a=G.onLottieLoaded)==null||a.call(G)})})});
var Z=function(){var m;return(m=G.data)==null?void 0:m.call(G).loadingAnimationA11yLabel},K={};
return _.e("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var m;return((m=G.data)==null?void 0:m.call(G).targetId)||""},
"aria-label":function(){return Z()||""},
role:function(){return Z()?"progressbar":void 0},
style:_.wi({"min-height":function(){var m,a;return aPd((m=G.containerHeight)==null?void 0:m.call(G),(a=G.isLastItem)==null?void 0:a.call(G))}})},_.e(_.XX,{"aria-hidden":"true",
className:_.O3((K.ytChatLoadingViewModelRtl=R==="rtl",K)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:c()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||c()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:c()}}},
animationRef:I}))},"kj");
}catch(e){_._DumpException(e)}
try{
var $EG,SGJ,p1N;$EG=function(G){return _.v("kevlar_watch_cinematics_invisible")||G.fullscreen&&_.v("kevlar_watch_cinematics_invisible_in_fullscreen")||G.theater&&!G.fullscreen&&_.v("kevlar_watch_cinematics_invisible_in_theater")};
SGJ=function(){var G=document.createElement("canvas"),c=G.getContext("2d");if(!c)throw Error("Zo");_.Yq(G,{position:"absolute",width:"100%",height:"100%"});return{element:G,context:c}};
p1N=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.v("kevlar_watch_cinematics_css_blur")};
_.MVx=function(G,c,I){return Math.abs(G-c)<=(I||1E-6)};
_.VVx=function(G,c){return G==c?!0:G&&c?G.width==c.width&&G.height==c.height:!1};_.zZx=new _.vS("notificationActionRenderer");var Ecf=function(G){var c=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Te;this.element.addEventListener("load",function(){c.loaded=!0;c.resolver.resolve(c.element)});
this.element.addEventListener("error",function(){c.failed=!0});
this.element.src=G};var JI6=function(G,c){this.image=G;this.frame=c};
JI6.prototype.drawToCanvas=function(G,c){var I=this.frame.width/this.frame.columns,R=this.frame.height/this.frame.rows,Z=c.offsetX,K=c.offsetY;$EG(c)?(G.fillStyle=c.fullscreen?"#000":"#0f0f0f",G.fillRect(Z,K,(c==null?void 0:c.width)||I,(c==null?void 0:c.height)||R)):G.drawImage(this.image,this.frame.column*I,this.frame.row*R,I,R,Z,K,(c==null?void 0:c.width)||I,(c==null?void 0:c.height)||R)};
var WeJ=function(G){this.color=G};
WeJ.prototype.drawToCanvas=function(G,c){var I=c.offsetX,R=c.offsetY,Z=c.width,K=c.height;G.fillStyle=$EG(c)?c.fullscreen?"#000":"#0f0f0f":this.color;G.fillRect(I,R,Z,K)};var Nd=function(G,c){_.TA.call(this);this.playerApi=c;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.SB(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();ihR(this,G);f$S(this);this.update()};
_.u(Nd,_.TA);Nd.prototype.addEventListeners=function(){var G=this,c=function(){G.update()},I=function(Z){G.paused||(Z.type==="newdata"&&(G.mosaics.clear(),BKR(G),l7(G)),f$S(G),G.update())},R=function(){G.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",c);this.playerApi.addEventListener("onVideoDataChange",I);this.playerApi.addEventListener("onStateChange",R);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoProgress",c);G.playerApi.removeEventListener("onVideoDataChange",I);G.playerApi.removeEventListener("onStateChange",R)})};
var ihR=function(G,c){G.cinematicContainerRenderer!==c&&(G.cinematicContainerRenderer=c,BKR(G),l7(G),G.colorStoreUpdateJobId=_.dJ.addLowPriorityJob(function(){var I;if((I=G.cinematicContainerRenderer.colorStore)!=null&&I.sampledColors){I=Infinity;for(var R=_.Q(G.cinematicContainerRenderer.colorStore.sampledColors),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var K=Number(Z.key);K!==0&&K<I&&(I=K);K=_.pE(Z.value);G.colorStore.set(Z.key,K)}G.colorStoreTimeInterval=I}}))},BKR=function(G){G.colorStoreUpdateJobId&&
(_.dJ.cancelJob(G.colorStoreUpdateJobId),G.colorStoreUpdateJobId=void 0);
G.colorStore.clear();G.currentStoryboardColor=void 0},rIJ=function(G,c){var I;
return(I=G.getStoryboardFrame(c))==null?void 0:I.url};
Nd.prototype.onPlayerStateChange=function(){this.update()};
Nd.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var f$S=function(G){var c=G.getStoryboardFrame(0);c&&(c=new _.SB(c.width/c.columns,c.height/c.rows),_.VVx(G.currentStoryboardSize,c)||(G.currentStoryboardSize=c,G.publish("STORYBOARD_SIZE_CHANGED",G.currentStoryboardSize)))},jgx=function(G,c){G.currentStoryboardIndex=c;
G.pendingStoryboardIndex=NaN;c=G.getStoryboardFrame(G.currentStoryboardIndex);G.currentStoryboard=new JI6(G.mosaics.get(c.url).element,c);G.publish("STORYBOARD_CHANGED",G.currentStoryboard);G.lastUpdateTime=(0,_.Fa)()};
Nd.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var l7=function(G){G.currentStoryboardIndex=NaN;G.pendingStoryboardIndex=NaN;G.currentStoryboard&&(G.currentStoryboard=void 0,G.publish("STORYBOARD_CHANGED",void 0));G.lastUpdateTime=NaN};
Nd.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)l7(this);else{var G=this.playerApi.getPlayerState(1);if(G===-1||G===5||G===0)l7(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Fa)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(G=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){G=""+Math.round(G*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var c=this.colorStore.get(G);c?c!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=c,this.currentStoryboard=new WeJ(c),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Fa)()):(_.Ck(new _.iW("Could not find color for timestamp: "+G,this.cinematicContainerRenderer)),l7(this))}else l7(this);else xET(this,G)}};
var xET=function(G,c){var I=G.getStoryboardFrameIndex(c);if(I!==G.currentStoryboardIndex&&I!==G.pendingStoryboardIndex){c=rIJ(G,I);var R=G.mosaics.get(c);R?R.loaded&&jgx(G,I):(G.pendingStoryboardIndex=I,I=new Ecf(c),G.mosaics.set(c,I),I.resolver.promise.then(function(){if(!G.isDisposed()&&!G.paused&&!isNaN(G.pendingStoryboardIndex)){var Z=rIJ(G,G.pendingStoryboardIndex);if(Z){var K;(K=G.mosaics.get(Z))!=null&&K.loaded&&jgx(G,G.pendingStoryboardIndex)}else l7(G)}}))}};
Nd.prototype.getStoryboardFrameIndex=function(G){var c=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(G,c)};
Nd.prototype.getStoryboardFrame=function(G){var c=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,I,R;return((R=(I=this.playerApi).getStoryboardFrame)==null?void 0:R.call(I,G,c))||null};
Nd.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var wo=function(G,c,I,R){R=R===void 0?!1:R;_.JK.call(this);this.cinematicContainerRenderer=c;this.playerApi=I;this.theater=this.fullscreen=!1;var Z;this.ambientLightThemeEnabled=!R&&!!(c==null?0:(Z=c.config)==null?0:Z.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=R)&&!0;this.container=document.createElement("div");G.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);tVf(this);this.backCanvas=
SGJ();this.frontCanvas=SGJ();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new Nd(c,this.playerApi);_.k9(this,this.storyboardManager);this.addEventListeners();hZS(this)?dEN(this,100+qd(this)*3*2,100+qd(this)*3*2):CVy(this);HhT(this,this.storyboardManager.currentStoryboard)};
_.u(wo,_.JK);
var tVf=function(G){var c=G.playerApi.getVideoAspectRatio();_.Yq(G.container,{"aspect-ratio":""+c,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var I;var R;if((G.fullscreen||G.theater)&&((I=G.cinematicContainerRenderer.config)==null?0:(R=I.watchFullscreenConfig)==null?0:R.colorSourceWidthMultiplier))I=G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var Z;I=(Z=
G.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Z:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var K,m;if((G.fullscreen||G.theater)&&((K=G.cinematicContainerRenderer.config)==null?0:(m=K.watchFullscreenConfig)==null?0:m.colorSourceHeightMultiplier))Z=G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var a;Z=(a=G.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?a:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.Yq(G.innerContainer,
{"aspect-ratio":""+c,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+I+", "+Z+")"});p1N()&&_.Yq(G.innerContainer,"filter","blur("+_.DH("cinematic_watch_css_filter_blur_strength",40)+"px)")};
wo.prototype.setFullscreen=function(G,c){this.fullscreen=G;this.theater=!!c;tVf(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),G=this.storyboardManager.currentStoryboard,X1N(this),G&&yIS(this,G)};
wo.prototype.addEventListeners=function(){var G=this,c=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Z){HhT(G,Z)}),I=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){CVy(G)});
this.addOnDisposeCallback(function(){G.storyboardManager.unsubscribeByKey(c);G.storyboardManager.unsubscribeByKey(I)});
var R=function(){tVf(G)};
this.playerApi.addEventListener("onVideoDataChange",R);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoDataChange",R)})};
var CVy=function(G){if(!hZS(G)){var c=G.storyboardManager.currentStoryboardSize;isNaN(c.width)||isNaN(c.height)||dEN(G,Number(c.width)+qd(G)*3*2,Number(c.height)+qd(G)*3*2)}},dEN=function(G,c,I){G.backCanvas.element.width=c;
G.backCanvas.element.height=I;G.frontCanvas.element.width=c;G.frontCanvas.element.height=I},hZS=function(G){return G.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},HhT=function(G,c,I){I=I===void 0?!1:I;
var R=G.frontCanvas.element.getAnimations()[0];R?(R.pause(),G.backCanvas.context.globalAlpha=Number(getComputedStyle(G.frontCanvas.element).opacity),G.frontCanvas.element.style.opacity="0",R.finish()):G.backCanvas.context.globalAlpha=1;G.backCanvas.context.drawImage(G.frontCanvas.element,0,0,G.backCanvas.element.width,G.backCanvas.element.height);X1N(G);c&&yIS(G,c);c=c?G.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.DH("cinematic_watch_fade_out_duration",500);R=_.DH("cinematic_watch_transition_frame_rate")/
1E3;var Z={};R&&(Z={easing:"steps("+Math.round(c*R)+")"});(I===void 0?0:I)||G.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:c,iterations:1},Z));G.frontCanvas.element.style.opacity="1"},X1N=function(G){var c=G.ambientLightThemeEnabled||G.ambientTheaterModeEnabled,I=G.ambientLightThemeEnabled||G.ambientFullscreenEnabled;
G.frontCanvas.context.fillStyle=G.theater&&c||G.fullscreen&&I?"#000":"#0f0f0f";p1N()||(G.frontCanvas.context.filter="blur(0)");G.frontCanvas.context.fillRect(0,0,G.frontCanvas.element.width,G.frontCanvas.element.height)},yIS=function(G,c){p1N()||(G.frontCanvas.context.filter="blur("+qd(G)+"px)");
G.frontCanvas.context.globalAlpha=G.fullscreen&&G.ambientFullscreenEnabled||G.theater&&G.ambientTheaterModeEnabled?_.DH("cinematic_watch_effect_letterbox_opacity",.4):_.DH("cinematic_watch_effect_opacity",.4);var I={offsetX:qd(G)*3,offsetY:qd(G)*3,theater:G.theater,fullscreen:G.fullscreen};hZS(G)&&(I.width=100,I.height=100);c.drawToCanvas(G.frontCanvas.context,I);G.frontCanvas.context.globalAlpha=1},qd=function(G){var c;
return(c=G.cinematicContainerRenderer.config.blurStrength)!=null?c:5};
wo.prototype.disposeInternal=function(){_.JK.prototype.disposeInternal.call(this);this.container.remove()};
wo.prototype.clear=function(){HhT(this,void 0,!0)};
wo.prototype.pause=function(){this.storyboardManager.pause()};var gcG;gcG=_.J5(function(){var G,c,I=!((c=(G=document.createElement("canvas")).getContext)==null||!c.call(G,"2d")),R;G=!((R=CSS)==null||!R.supports("filter: blur(0)"));R=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Z;return I&&G&&R&&!((Z=CSS)==null||!Z.supports("aspect-ratio: 1 / 1"))});
_.Fp=function(G,c){_.TA.call(this);this.container=G;this.playerApi=c;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=YGN(this);this.update()};
_.u(_.Fp,_.TA);_.Guy=function(G){var c=document.documentElement.hasAttribute("dark");G.isDarkModeEnabled=c;G.update()};
_.cwy=function(G,c){G.settingEnabled=c;G.update()};
_.Fp.prototype.setFullscreen=function(G,c){this.fullscreen=G;this.theater=!!c;this.update()};
_.IHz=function(G,c){G.cinematicContainerRenderer=c;G.cinematicContainerRenderer&&(G.cinematicsVe=_.qj(G.isShorts()?227858:159022),_.CJ(_.DP(),G.cinematicsVe),G.loggingClientData={watchCinematicContainerData:{presentationStyle:G.cinematicContainerRenderer.presentationStyle}});G.update()};
_.Fp.prototype.isShorts=function(){var G,c;return((G=this.cinematicContainerRenderer)==null?void 0:(c=G.config)==null?void 0:c.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Fp.prototype.isAllowed=function(){var G;if(G=gcG()){var c,I,R;G=((I=this.cinematicContainerRenderer)==null?void 0:I.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((R=this.cinematicContainerRenderer)==null||!R.colorStore)||((c=this.cinematicContainerRenderer)==null?void 0:c.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(G)if(_.v("web_cinematics_pausing")){var Z,K;G=this.isDarkModeEnabled||!!((Z=this.cinematicContainerRenderer)==
null?0:(K=Z.config)==null?0:K.enableInLightTheme)}else{var m,a;Z=!!((m=this.cinematicContainerRenderer)==null?0:(a=m.config)==null?0:a.enableInLightTheme)&&(_.H1("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);G=this.isDarkModeEnabled||Z}if(m=G){var O,N;m=!((N=(O=this.prefersReducedMotionQuery)==null?void 0:O.matches)!=null&&N)}return m};
_.RM6=function(G){var c;(c=G.currentCinematicEffect)==null||c.pause()};
_.Z45=function(G){(G=G.currentCinematicEffect)!=null&&(G=G.storyboardManager,G.paused=!1,f$S(G),G.update())};
_.Fp.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var YGN=function(G){if(!_.v("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var c=window.matchMedia("(prefers-reduced-motion: reduce)"),I=function(){G.update()};
c.addListener(I);G.addOnDisposeCallback(function(){c.removeListener(I)});
return c}};
_.Fp.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var G=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new wo(this.container,G,this.playerApi,this.isDarkModeEnabled),_.k9(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var c=this.currentCinematicEffect;c.cinematicContainerRenderer!==
G&&(c.cinematicContainerRenderer=G,ihR(c.storyboardManager,G),tVf(c));G=_.OC();_.eW(0,194,!0);G.save();G=_.k0();this.cinematicsVe&&G&&_.Bd(G,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(G=_.k0(),this.cinematicsVe&&G&&_.rU(G,[this.cinematicsVe],!1,this.loggingClientData),_.TB(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Nh.Object.defineProperties(_.Fp.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var I$T;var RZx;_.SD({_template:function(){if(RZx!==void 0)return RZx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=
G.content,I=c.insertBefore;I$T===void 0&&(I$T=document.createElement("template"));var R=I$T;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return RZx=G},
is:"tp-yt-iron-pages",behaviors:[_.Zu,_.dD],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Yqx;_.GB6=function(){if(_.v("kevlar_home_skeleton")&&!Yqx){var G=document.querySelector("#home-page-skeleton");G&&(_.LC("hgcr"),_.ST(G),Yqx=!0)}};
Yqx=!1;_.gz=new _.vS("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var gmN=function(G){return _.CEC(_.dFO(G&16777215))<.5},Y9o=function(G,c,I){var R=I.minimumRowsOfVideosBetweenSections===void 0?1:I.minimumRowsOfVideosBetweenSections;
return G<(I.minimumRowsOfVideosAtStart===void 0?2:I.minimumRowsOfVideosAtStart)||c!==null&&G-c<=R?!1:!0},GMG=function(G,c){var I=0,R=0;
G=_.Q(G);for(var Z=G.next();!Z.done;Z=G.next()){var K=Z.value;if(K.richItemRenderer)K.richItemRenderer.rowIndex=R,K.richItemRenderer.colIndex=I++,I===c&&(I=0,R++);else if(K.richGroupRenderer&&K.richGroupRenderer.numColumns!==void 0)K.richGroupRenderer.rowIndex=R,K.richGroupRenderer.colIndex=I,I+=K.richGroupRenderer.numColumns,I===c&&(I=0,R++);else if(K.richSectionRenderer){var m=Z=void 0;if(K=_.D((Z=K)==null?void 0:(m=Z.richSectionRenderer)==null?void 0:m.content,_.EnK))K.rowIndex=R++}}},csS=function(G,
c){var I=c.contentElement;
c=c.rendererToTagNameMap;if(I&&c&&c.size!==0){for(var R=new Map,Z=_.Q(I.children),K=Z.next();!K.done;K=Z.next()){K=K.value;var m=K.tagName.toLowerCase(),a=R.get(m);a||(a=[],R.set(m,a));a.push(K)}if(R.size!==0)for(Z=Math.min(G.length,I.children.length),K=new Map,m=0;m<Z;m++){a=Object.keys(G[m])[0];a=c.get(a);if(!a)break;var O=K.get(a);O===void 0&&(O=0,K.set(a,O));var N=R.get(a);if(!N||O>=N.length)break;K.set(a,O+1);a=N[O];O=I.children[m];O!==a&&(_.cU=!0,_.I1.set(a,!0),I.insertBefore(a,O),_.I1.delete(a),
_.cU=!1)}}},I3S=function(G,c,I,R,Z,K,m){R=R===void 0?{}:R;
if(!G||!G.length)return{orderedContent:[]};G=G.slice();var a=[],O=[];Z=null;for(var N=0,q=function(t){O.sort(function(H,g){return g.skippedOnRow-H.skippedOnRow});
for(var x,C=(x=O.shift())==null?void 0:x.content;C;)!C.richSectionRenderer&&t||a.push(C),x=void 0,C=(x=O.shift())==null?void 0:x.content},w=void 0,F=void 0,n=new Set;G.length>0||O.length>0;){for(var U=[],k=c;k>0;){var p=void 0,M=void 0,z=(M=O[0]&&O[0].skippedOnRow<N?(p=O.shift())==null?void 0:p.content:void 0)!=null?M:G.shift();
if(!z)break;if(z.richItemRenderer)p=z.richItemRenderer.targetId,M=void 0,p&&((M=m)==null?0:M.has(p))&&(M=m.get(p),!w||M&&M.timestamp>w.timestamp)&&(w=M,F&&n.add(F),F=p),U.push(z),k--;else if(z.richGroupRenderer&&z.richGroupRenderer.numColumns!==void 0)z.richGroupRenderer.numColumns<=k?(U.push(z),k-=z.richGroupRenderer.numColumns):k===c&&z.richGroupRenderer.numColumns>c?(U.push({richGroupRenderer:Object.assign({},z.richGroupRenderer,{numColumns:c})}),k=0):O.push({content:z,skippedOnRow:N});else if(z.richSectionRenderer)if(Y9o(N,
Z,R)&&k===c){a.push(z);Z=N;N++;continue}else O.push({content:z,skippedOnRow:N});else if(z.continuationItemRenderer){q(!0);a.push(z);k=0;break}if(k===0)a.push.apply(a,_.jn(U));else if(!I&&G.length===0){q(!1);a.push.apply(a,_.jn(U));k=0;break}}N++;w&&(a.push(w.content),N++);F=w=void 0}GMG(a,c);K&&csS(a,K);return{orderedContent:a,pinnedContentNotShownTargetIds:n}},K3_=function(G,c){if(c){var I=_.y4().getState().entities.flowStateEntity,R=Rp_(G),Z=[c];
R&&R!==c&&Z.push(R);var K=!0,m;if(I&&G.flowStateEntityKey&&((m=I[G.flowStateEntityKey])==null?void 0:m.primaryButtonDisabled)!==void 0){var a;K=!((a=I[G.flowStateEntityKey])==null||!a.primaryButtonDisabled)}Z8J(G,R!=null?R:c,Z,K)}},Q2z=function(G){return _.RM(_.y4(),function(c){return c.entities.flowStateEntity},function(c,I){if(G.flowStateEntityKey){var R,Z=c==null?void 0:(R=c[G.flowStateEntityKey])==null?void 0:R.currentStepId,K;
I=I==null?void 0:(K=I[G.flowStateEntityKey])==null?void 0:K.currentStepId;K=_.y4().getState().talkToRecs;if(Z&&Z!==I){var m;c=(c==null?void 0:(m=c[G.flowStateEntityKey])==null?void 0:m.stepIdStack)||Object.keys(K.stepStates);m=!PyR(K==null?void 0:K.stepStates[Z]);Z8J(G,Z,c,m)}}})},a3T=function(G){return _.RM(_.y4(),mSN,function(c){var I=Rp_(G);
if(I){var R=Object.keys(c.stepStates);c=!PyR(c==null?void 0:c.stepStates[I]);Z8J(G,I,R,c)}})},PyR=function(G){var c=Object.keys((G==null?void 0:G.selectionStates)||{}).reduce(function(K,m){return K||(G==null?void 0:G.selectionStates[m].isSelected)},!1),I,R,Z=!!(G==null?0:(I=G.userQuery)==null?0:(R=I.userQuery)==null?0:R.trim());
return c||Z},Rp_=function(G){if(G.flowStateEntityKey){var c,I,R=(c=_.y4().getState().entities.flowStateEntity)==null?void 0:(I=c[G.flowStateEntityKey])==null?void 0:I.currentStepId;
if(R)return R}},Z8J=function(G,c,I,R){_.y4().dispatch(_.Le("flowStateEntity",G.flowStateEntityKey,{currentStepId:c,
stepIdStack:I,key:G.flowStateEntityKey,primaryButtonDisabled:R}))},TxG;var O8f;_.SD({_template:function(){if(O8f!==void 0)return O8f;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
var c=G.content,I=c.insertBefore;TxG===void 0&&(TxG=document.createElement("template"));var R=TxG;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return O8f=G},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var epy=new _.vS("flowRootRenderer");var Nx5=new _.vS("chipsShelfViewModel");var l3N=new _.vS("responsiveContainerConfiguration");_.qqy=new _.vS("engagementPanelSectionListRenderer");var w6G=function(){this.horizontal=!1},F36=function(G,c){G.horizontal=c};
w6G.prototype.position=function(G,c,I,R){R=R===void 0?1:R;G=this.delta(G)*R+c;R=Math.max(c,I);return G>=Math.min(c,I)&&G<=R?G:I};
w6G.prototype.axis=function(G){G=this.direction(G);return G==="up"||G==="down"?"Y":"X"};var vv=function(G,c,I){c=c===void 0?_.YL():c;this.target=G;this.manager=c;this.touchAction=I;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
vv.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(_.jn(this.events)));for(var G=_.Q(this.events),c=G.next();!c.done;c=G.next())this.listen(c.value)}};
vv.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.jn(this.events)));for(var G=_.Q(this.events),c=G.next();!c.done;c=G.next())this.unlisten(c.value)}};
vv.prototype.listen=function(G){this.eventMap[G]&&this.target.addEventListener(G,this.eventMap[G])};
vv.prototype.unlisten=function(G){this.eventMap[G]&&this.target.removeEventListener(G,this.eventMap[G])};var Dy=function(){w6G.apply(this,arguments)};
_.u(Dy,w6G);Dy.prototype.direction=function(G){var c=G.detail;G=c.deltaY;c=c.deltaX;return G&&!this.horizontal?G>0?"down":"up":c&&this.horizontal?c>0?"right":"left":"none"};
Dy.prototype.distance=function(G){return Math.abs(this.delta(G))};
Dy.prototype.delta=function(G){var c=this.direction(G),I=G.detail;G=I.deltaX;I=I.deltaY;return c==="up"||c==="down"?I||0:G||0};
Dy.prototype.velocity=function(G){var c=this.direction(G),I=G.detail;G=I.velocityX;I=I.velocityY;return Math.abs(c==="up"||c==="down"?I||0:G||0)};_.o$=function(G,c,I,R,Z,K){Z=Z===void 0?new Dy:Z;K=K===void 0?_.YL():K;vv.call(this,c,K,R);var m=this;this.element=G;this.target=c;this.config=I;this.input=Z;this.manager=K;this.events=["panstart","panmove","panend"];this.onPanStart=function(){m.config.draggingClass&&m.element.classList.add(m.config.draggingClass);m.config.startAction&&m.config.startAction()};
this.onPanMove=function(a){var O=nMT(m,a);if(O){m.move(a,O);O.fade&&m.fade(a,O);var N=m.input.direction(a);O.moveAction&&O.moveAction(vMo(m,a,O),N)}};
this.onPanEnd=function(a){var O,N,q,w,F,n;return _.T(function(U){if(U.nextAddress==1){m.animationRequestId&&cancelAnimationFrame(m.animationRequestId);m.animationRequestId=void 0;O=nMT(m,a);if(!O)return U.return();N=O;q=N.triggerAction;w=N.fade;F=N.disableFinish;n=N.translateBack;var k=m.input.velocity(a),p=m.input.distance(a),M=m.threshold(O);return k>.3&&p>10||p>M?F?U.jumpTo(6):w?U.yield(DSN(m,a),6):U.yield(oMx(m,a,O),6):n?U.yield(m.translateBack(a),3):U.jumpTo(3)}U.nextAddress!=3&&q&&q();m.config.draggingClass&&
m.element.classList.remove(m.config.draggingClass);m.reset();_.Vp(U)})};
G=Object.keys(I.triggers);this.directions=new Set(G);F36(this.input,this.directions.has("right")||this.directions.has("left"))};
_.u(_.o$,vv);_.o$.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var nMT=function(G,c){c=G.input.direction(c);return G.config.triggers[c]};
_.o$.prototype.move=function(G,c){var I=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var R=I.input.axis(G),Z=I.input.position(G,I.config.startPosition,c.endPosition,c.moveRatio||1);I.element.style.transform="translate"+R+"("+Z+"px)";I.animationRequestId=void 0}))};
var vMo=function(G,c,I){var R=I.moveRatio||1;I=Math.abs(G.config.startPosition-I.endPosition);return Math.min(G.input.distance(c)*R,I)/I};
_.o$.prototype.fade=function(G,c){var I=c.endOpacity;G=vMo(this,G,c);G>0&&(this.element.style.opacity=""+(((I||0)-1)*G+1))};
_.o$.prototype.threshold=function(G){return G.threshold?G.threshold:Math.abs(G.endPosition-this.config.startPosition)/3};
var oMx=function(G,c,I){var R,Z,K,m,a,O,N;return _.T(function(q){if(q.nextAddress==1)return R=G.input.delta(c)+G.config.startPosition,Z=G.input.axis(c),K=I,m=K.endPosition,a=K.transitionEndPosition,N=(O=a)!=null?O:m,q.yield(G.element.animate([{transform:"translate"+Z+"("+R+"px)"},{transform:"translate"+Z+"("+N+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+Z+"("+N+"px)";_.Vp(q)})};
_.o$.prototype.translateBack=function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1){if(!c.element.style.transform)return Z.return();I=c.input.axis(G);R=c.config.startPosition;return Z.yield(c.element.animate([{transform:c.element.style.transform},{transform:"translate"+I+"("+R+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}c.element.style.transform="translate"+I+"("+R+"px)";_.Vp(Z)})};
var DSN=function(G,c){var I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return I=G.input.delta(c)+G.config.startPosition,R=G.input.axis(c),Z=I+70,K=G.element.style.opacity===""?1:G.element.style.opacity,m.yield(G.element.animate([{transform:"translate"+R+"("+I+"px)",opacity:K},{transform:"translate"+R+"("+Z+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+R+"("+Z+"px)";G.element.style.opacity="0";_.Vp(m)})};var Ux=function(){var G=_.D4.apply(this,arguments)||this;G._noAccessors=!0;G.scrollRate=3;G.autoScrollAnimationStart=0;G.autoScrollPaused=!1;G.autoScrollRafId=0;return G};
_.u(Ux,_.D4);_.P=Ux.prototype;_.P.created=function(){var G=this;this.boundAutoScrollHandler=function(c){G.autoScroll(c)}};
_.P.detached=function(){this.hostElement.removeEventListener("mouseout",_.lO(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.lO(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.lO(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.P.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.lO(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.lO(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.lO(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.lO(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.lO(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.lO(this,this.endAutoScroll)),this.endAutoScroll())};
_.P.autoScroll=function(G){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=G);var c;if(c=!this.autoScrollPaused&&this.scrollTarget)c=this.scrollTarget,c=c.scrollHeight-c.scrollTop!==c.clientHeight;c&&(c=1E3/this.scrollRate,G-=this.autoScrollAnimationStart,G>c&&(this.scrollTarget.scrollTop+=Math.ceil(G/c),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.P.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.P.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Ux.prototype.autoScrollEnabledChanged=Ux.prototype.autoScrollEnabledChanged;_.r([_.E(),_.h("design:type",Object)],Ux.prototype,"scrollRate",void 0);_.r([_.E(),_.h("design:type",Object)],Ux.prototype,"scrollTarget",void 0);_.r([_.E(),_.h("design:type",Boolean)],Ux.prototype,"autoScrollEnabled",void 0);_.r([_.wD("autoScrollEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ux.prototype,"autoScrollEnabledChanged",null);_.r([_.Um()],Ux);_.USx=[Ux.prototype];var uUN;var uw=function(){var G=_.J.apply(this,arguments)||this;G.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};G.forceDarkTheme=!1;G.forceLightTheme=!1;G.dynamicTextHeight=94;G.hasOverflowButton=!1;G.isInfeedModernization=!1;return G};
_.u(uw,_.J);_.P=uw.prototype;_.P.computeUrlImg=function(G){if(G)return _.KQ(G.thumbnails)};
_.P.getLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.P.getLogoClassName=function(G){return this.logoWithPadding(G)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.P.logoWithPadding=function(G){var c,I;return(G=(c=G.thumbnails)==null?void 0:(I=c[0])==null?void 0:I.height)&&G%31===0?!0:!1};
_.P.sendImpressionEndpoints=function(G){G.impressionEndpoints&&_.Gs(this.hostElement,G.impressionEndpoints)};
_.P.observeBasicPalette=function(){var G,c,I=(G=this.data)==null?void 0:(c=G.colorData)==null?void 0:c.basicColorPaletteData;I?_.A0(this.hostElement,I):_.A0(this.hostElement,{})};
_.P.observeDataChanged=function(){var G;this.dynamicTextHeight=((G=this.data)==null?0:G.supplementalText)?74:94;var c;this.hasSupplementalText=!((c=this.data)==null||!c.supplementalText);var I,R,Z,K;G=(I=this.data)==null?void 0:(R=I.actionButton)==null?void 0:(Z=R.buttonRenderer)==null?void 0:(K=Z.colorData)==null?void 0:K.basicColorPaletteData;var m,a,O;if(!((m=this.data)==null?0:(a=m.actionButton)==null?0:(O=a.buttonRenderer)==null?0:O.style)&&G){this.computeIsInfeedModernization(this.data)||(G.borderColor=
G.foregroundTitleColor);var N,q;this.set("data.actionButton.buttonRenderer",_.rx.unsafeClone((N=this.data)==null?void 0:(q=N.actionButton)==null?void 0:q.buttonRenderer))}};
_.P.observeDataForCounterfactual=function(){if(_.v("kevlar_banner_cf_extra_logging")){var G;((G=this.data)==null?0:G.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.P.computeSupplementalStyle=function(){var G;if((G=this.data)!=null&&G.supplementalText){var c,I,R;if((c=this.data)==null?0:(I=c.colorData)==null?0:(R=I.basicColorPaletteData)==null?0:R.foregroundActivatedColor)return G=_.Sx(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+G+"; --yt-endpoint-hover-color:"+G+"; --yt-endpoint-visited-color:"+G+"; --yt-formatted-string-bold-font-weight:700;"}};
_.P.computeForcedDarkTheme=function(){var G,c,I,R=(G=this.data)==null?void 0:(c=G.actionButton)==null?void 0:(I=c.buttonRenderer)==null?void 0:I.style,Z,K,m;G=gmN(((Z=this.data)==null?void 0:(K=Z.colorData)==null?void 0:(m=K.basicColorPaletteData)==null?void 0:m.backgroundColor)||0);return R&&G};
_.P.computeForcedLightTheme=function(){var G,c,I,R=(G=this.data)==null?void 0:(c=G.actionButton)==null?void 0:(I=c.buttonRenderer)==null?void 0:I.style,Z,K,m;G=!gmN(((Z=this.data)==null?void 0:(K=Z.colorData)==null?void 0:(m=K.basicColorPaletteData)==null?void 0:m.backgroundColor)||0);return R&&G};
_.P.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.P.computeHasTitle=function(G){return!!G.title};
_.P.computeTitleMaxFontSize=function(G){return this.computeHasOverflowButton(G)?28:64};
_.P.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.P.computeIsInfeedModernization=function(){var G,c,I,R,Z=(G=this.data)==null?void 0:(c=G.actionButton)==null?void 0:(I=c.buttonRenderer)==null?void 0:(R=I.colorData)==null?void 0:R.basicColorPaletteData;return(Z==null?void 0:Z.backgroundColor)===452984831||(Z==null?void 0:Z.backgroundColor)===218103808};
uw.prototype.observeDataForCounterfactual=uw.prototype.observeDataForCounterfactual;uw.prototype.observeDataChanged=uw.prototype.observeDataChanged;uw.prototype.observeBasicPalette=uw.prototype.observeBasicPalette;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],uw.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],uw.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uw.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],uw.prototype,"hasSupplementalText",void 0);_.r([_.E(),_.h("design:type",Object)],uw.prototype,"dismissButtonOverrides",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.h("design:type",Boolean)],uw.prototype,"hasTitle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.h("design:type",Object)],uw.prototype,"forceDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.h("design:type",Object)],uw.prototype,"forceLightTheme",void 0);_.r([_.E(),_.h("design:type",Object)],uw.prototype,"dynamicTextHeight",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.h("design:type",Object)],uw.prototype,"hasOverflowButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.h("design:type",Object)],uw.prototype,"isInfeedModernization",void 0);_.r([_.wD("data.colorData.basicColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uw.prototype,"observeBasicPalette",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uw.prototype,"observeDataChanged",null);_.r([_.wD("data.isVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uw.prototype,"observeDataForCounterfactual",null);_.r([_.Jc({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],uw);
_.B(uw,"ytd-banner-promo-renderer",function(){if(uUN!==void 0)return uUN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden$="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return uUN=G},{mode:1});var b86;var kMf;var s2T;var L35=function(){return _.J.apply(this,arguments)||this};
_.u(L35,_.J);_.r([_.E(),_.h("design:type",Object)],L35.prototype,"data",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],L35.prototype,"ytRendererBehavior",void 0);_.r([_.Jc({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],L35);
_.B(L35,"ytd-hashtag-grid-tile-renderer",function(){if(s2T!==void 0)return s2T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return s2T=G},{mode:1});var bw=function(){return _.J.apply(this,arguments)||this};
_.u(bw,_.J);bw.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
bw.prototype.updateRichGridTrendingHashtagsVisibility=function(){var G,c;if(((G=this.data)==null||!G.isExpanded)&&(c=this.data)!=null&&c.tiles){G=this.data.tiles.length;c=G>this.richGridItemsPerRow?this.richGridItemsPerRow+1:G;var I=Math.ceil(G/c);this.fullyVisibleRows=G%c===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
bw.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
bw.prototype.updateRichGridTrendingHashtagsVisibility=bw.prototype.updateRichGridTrendingHashtagsVisibility;_.r([_.E(),_.h("design:type",Object)],bw.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Number)],bw.prototype,"fullyVisibleRows",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],bw.prototype,"isShowMoreVisible",void 0);_.r([_.E({selector:_.SC,value:0}),_.h("design:type",Number)],bw.prototype,"richGridItemsPerRow",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],bw.prototype,"ytdReduxBehavior",void 0);_.r([_.wD("data","richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bw.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.r([_.Jc({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],bw);
_.B(bw,"ytd-hashtag-grid-shelf-renderer",function(){if(kMf!==void 0)return kMf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return kMf=G},{mode:1});var As_;var $SR;var kl=function(){var G=_.J.apply(this,arguments)||this;G.visibleVideos=[];G.hiddenVideos=[];G.modern=_.v("web_modern_buttons");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(kl,_.J);_.P=kl.prototype;_.P.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.dataChanged=function(){var G=this;this.requestElementsPerRow();var c,I;this.currentColorPalette=this.isDarkTheme?(c=this.data)==null?void 0:c.darkColorData:(I=this.data)==null?void 0:I.lightColorData;var R;if((R=this.currentColorPalette)==null?0:R.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.O$(this,function(){G.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.computeIsFirstFeedItem=function(G){return G};
_.P.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.P.getCurrentLogo=function(G,c){if(G)return c?G.darkLogoImage:G.lightLogoImage};
_.P.computeTitleStyle=function(G){var c;if((c=this.data)!=null&&c.title&&G&&G.textPrimary!==void 0)return"color:"+_.Sx(G.textPrimary)+";"};
_.P.computeSubtitleStyle=function(G){var c;if((c=this.data)!=null&&c.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.Sx(G.textSecondary)+";"};
_.P.computeDismissIconStyle=function(G){if(this.data&&this.data.dismissButton&&G&&G.textPrimary!==void 0)return"--yt-button-color:"+_.Sx(G.textPrimary)+";"};
_.P.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Sx(G.textPrimary)+";--yt-spec-icon-active-other:"+_.Sx(G.textPrimary)+";"};
_.P.computeBackgroundStyle=function(G){if(G&&this.data){var c="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.KQ((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(c+='background-image:url("'+I+'");')}G.backgroundColor!==void 0&&(c+="background-color:"+_.pE(G.backgroundColor)+";");return c}};
_.P.computeButton=function(){var G,c=Object.assign({},_.D((G=this.data)==null?void 0:G.showMoreButton,_.vE));if(this.modern&&c){c.style="STYLE_MONO_OUTLINE";var I;if(G=(I=this.currentColorPalette)==null?void 0:I.textPrimary)c.colorData={basicColorPaletteData:{foregroundTitleColor:G,borderColor:G}}}return c};
_.P.shouldShowBottomButton=function(G,c){return!(G==null?0:G.header)&&!(G==null||!G.primaryButton)&&c<3};
_.P.checkExpanded=function(G){this.isExpanded=G&&G.content?this.hiddenVideos.length===0:!0};
_.P.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.P.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.P.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.P.computeHasSectionHeader=function(G){return!!G.header};
_.P.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var G;if((G=this.data.primaryButton)==null?0:G.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var c;((c=this.data.dismissButton)==null?0:c.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var I,R;((I=this.data)==null?0:(R=I.primaryButton)==null?0:R.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.P.setVisibleVideos=function(G){if(this.data&&this.data.content)if(this.data.content.length){var c=this.data.content.length;this.data.header?G?(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.slimItemsPerRow),c)):(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow),c)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(c,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow),c)):(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow-1),c))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.P.setHasMovieRenderer=function(){var G;if((G=this.data)!=null&&G.content){var c;this.hasMovieRenderer=!!_.D((c=this.data)==null?void 0:c.content[0],_.ts9)}else this.hasMovieRenderer=!1};
_.P.requestElementsPerRow=function(){_.Xl(this.hostElement,"yt-request-elements-per-row")};
_.P.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var G=_.Q(this.hiddenMediaRenderers),c=G.next();!c.done;c=G.next())c.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(G=_.Q1(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&G.focus()}};
_.P.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.P.logoWithPadding=function(G){var c,I,R;return(G=(c=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(I=c.thumbnails)==null?void 0:(R=I[0])==null?void 0:R.height)&&G%31===0?!0:!1};
_.P.onUpdateElementsPerRowAction=function(G,c,I){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G);I&&this.slimItemsPerRow!==I&&(this.slimItemsPerRow=I)};
kl.prototype.slimItemsPerRowChanged=kl.prototype.slimItemsPerRowChanged;kl.prototype.elementsPerRowChanged=kl.prototype.elementsPerRowChanged;kl.prototype.dataChanged=kl.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],kl.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],kl.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],kl.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kl.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],kl.prototype,"currentColorPalette",void 0);_.r([_.E(),_.h("design:type",Array)],kl.prototype,"visibleVideos",void 0);_.r([_.E(),_.h("design:type",Array)],kl.prototype,"hiddenVideos",void 0);
_.r([_.E(),_.h("design:type",Object)],kl.prototype,"primaryButton",void 0);_.r([_.E({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],kl.prototype,"elementsPerRow",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],kl.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],kl.prototype,"isExpanded",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],kl.prototype,"largeTitle",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],kl.prototype,"hasMovieRenderer",void 0);_.r([_.E(),_.h("design:type",Number)],kl.prototype,"slimItemsPerRow",void 0);_.r([_.E(),_.h("design:type",Boolean)],kl.prototype,"showLightVideoMetadata",void 0);_.r([_.E(),_.h("design:type",Boolean)],kl.prototype,"showDarkVideoMetadata",void 0);_.r([_.E(),_.h("design:type",Number)],kl.prototype,"videoMetadataColor",void 0);
_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],kl.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.h("design:type",Boolean)],kl.prototype,"isFirstFeedItem",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.h("design:type",Boolean)],kl.prototype,"hasSectionHeader",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],kl.prototype,"roundedContainer",void 0);_.r([_.vB("#visible-video-container ytd-rich-grid-media"),_.h("design:type",Array)],kl.prototype,"visibleMediaRenderers",void 0);_.r([_.vB("#hidden-video-container ytd-rich-grid-media"),_.h("design:type",Array)],kl.prototype,"hiddenMediaRenderers",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],kl.prototype,"modern",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kl.prototype,"dataChanged",null);_.r([_.wD("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kl.prototype,"elementsPerRowChanged",null);_.r([_.wD("slimItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kl.prototype,"slimItemsPerRowChanged",null);
_.r([_.Jc({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],kl);
_.B(kl,"ytd-brand-video-shelf-renderer",function(){if($SR!==void 0)return $SR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return $SR=G},{mode:1});var Sqf;var sx=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(sx,_.J);_.P=sx.prototype;_.P.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.P.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.P.dataChanged=function(){this.requestElementsPerRow();var G,c;this.currentColorPalette=this.isDarkTheme?(G=this.data)==null?void 0:G.darkColorData:(c=this.data)==null?void 0:c.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.P.computeIsFirstFeedItem=function(G){return G};
_.P.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(G),this.updateButtonPalette())};
_.P.shouldShowThumbnailInMetadata=function(G){return G<=1};
_.P.computeVideoMetadataColor=function(){if(this.data){var G;if((G=this.currentColorPalette)==null?0:G.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.P.computeTitleStyle=function(G){var c;if((c=this.data)!=null&&c.title&&G&&G.textPrimary!==void 0)return"color:"+_.Sx(G.textPrimary)+";"};
_.P.computeSubtitleStyle=function(G){var c;if((c=this.data)!=null&&c.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.Sx(G.textSecondary)+";"};
_.P.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Sx(G.textPrimary)+";--yt-spec-icon-active-other:"+_.Sx(G.textPrimary)+";"};
_.P.computeBackgroundStyle=function(G){if(G&&this.data){var c="";G.backgroundColor!==void 0&&(c+="background-color:"+_.pE(G.backgroundColor)+";");return c}};
_.P.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.P.updateButtonPalette=function(){if(this.data){var G;if((G=this.data.primaryButton)==null?0:G.buttonRenderer){var c;if((c=this.currentColorPalette)==null?0:c.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var I;((I=this.currentColorPalette)==null?0:I.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.P.requestElementsPerRow=function(){_.Xl(this.hostElement,"yt-request-elements-per-row")};
_.P.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.P.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
sx.prototype.elementsPerRowChanged=sx.prototype.elementsPerRowChanged;sx.prototype.dataChanged=sx.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],sx.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],sx.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],sx.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sx.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],sx.prototype,"currentColorPalette",void 0);_.r([_.E(),_.h("design:type",Object)],sx.prototype,"primaryButton",void 0);
_.r([_.E({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],sx.prototype,"elementsPerRow",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],sx.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],sx.prototype,"titleSize",void 0);_.r([_.E(),_.h("design:type",Number)],sx.prototype,"videoMetadataColor",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],sx.prototype,"miniMode",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.h("design:type",Boolean)],sx.prototype,"isFirstFeedItem",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],sx.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.h("design:type",Boolean)],sx.prototype,"hasOverflowButton",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sx.prototype,"dataChanged",null);_.r([_.wD("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sx.prototype,"elementsPerRowChanged",null);_.r([_.Jc({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],sx);
_.B(sx,"ytd-brand-video-singleton-renderer",function(){if(Sqf!==void 0)return Sqf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Sqf=G},{mode:_.Qc("kevlar_poly_si_batch_j070")?1:2});var p6f;var MBT=_.W(function(G){var c=G.data;return _.e(_.yc,{data:function(){return c().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(c().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var I=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":I=88;break a;default:I=88}return I},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return c().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"pn"),zpz=_.W(function(G){var c=G.metadataRow;
var I=G.delimiter;return _.e(_.fh,{each:function(){return c().textParts||[]},
keyBy:"INDEX"},function(R,Z){return _.e(_.FG,null,_.e(_.ul,{text:R,noWrap:!0,userInput:!0}),_.e(VBx,{delimiter:I,max:function(){return c().textParts.length},
index:Z}))})},"qn"),VBx=_.W(function(G){var c=G.delimiter;
var I=G.max;var R=G.index;return _.e(_.l,{cond:function(){return(c==null?void 0:c())&&I()-1>R()},
then:function(){return _.e("span",null,c)}})},"rn"),EMf=_.W(function(G){var c=G.data;
G={};return _.e("yt-profile-page-header-information-view-model",{class:_.O3("profilePageHeaderInformationViewModelHost",(G.profilePageHeaderInformationViewModelMobile=!1,G))},_.e(_.l,{cond:function(){return c().onTap},
then:function(){return _.e(_.Er,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.WI(c().onTap)}},_.e(_.sN,{data:function(){return c().thumbnail}},{profilePageHeaderThumbnailViewModel:MBT}))},
else:function(){return _.e("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.e(_.sN,{data:function(){return c().thumbnail}},{profilePageHeaderThumbnailViewModel:MBT}))}}),_.e("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.e(_.l,{cond:function(){return c().onTap},
then:function(){return _.e(_.sN,{data:function(){return c().title}},{profilePageHeaderTitleViewModel:function(I){var R=I.data;
return _.e(_.Er,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.WI(R().onTap)}},_.e(_.ul,{text:function(){return R().title}}))}})},
else:function(){return _.e(_.sN,{data:function(){return c().title}},{profilePageHeaderTitleViewModel:function(I){var R=I.data;
return _.e(_.ul,{text:function(){return R().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.e(_.sN,{data:function(){return c().metadata}},{profilePageHeaderMetadataViewModel:function(I){var R=I.data;
return _.e(_.l,{cond:function(){return R().metadataRows},
then:function(Z){return _.e("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.e(_.fh,{each:Z,keyBy:"INDEX"},function(K,m){return _.e(_.FG,null,_.e(zpz,{metadataRow:K,delimiter:" \u2022 "}),_.e(VBx,{delimiter:" \u2022 ",max:function(){return Z().length},
index:m}))}))}})}})))},"sn");
EMf.idomCompat=!0;_.R1(EMf,"yt-profile-page-header-information-view-model",{props:{data:_.bl}});var L6=function(){return _.J.apply(this,arguments)||this};
_.u(L6,_.J);L6.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],L6.prototype,"data",void 0);_.r([_.Jc({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],L6);
_.B(L6,"ytd-effect-pivot-header-view-model",function(){if(p6f!==void 0)return p6f;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return p6f=
G},{mode:1});var Jsx;var AV=function(){return _.J.apply(this,arguments)||this};
_.u(AV,_.J);AV.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],AV.prototype,"data",void 0);_.r([_.Jc({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],AV);
_.B(AV,"ytd-source-pivot-header-renderer",function(){if(Jsx!==void 0)return Jsx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Jsx=G},{mode:1});_.R1(_.Ib1,"yt-card-view-model",{props:{data:_.bl,className:_.bl,isSelected:_.bl}});var mSN=_.hhV.talkToRecsStateSelector;_.R1(_.W(function(G){var c=function(){return _.D(G.data().flowRoot,epy)};
_.tI(function(){var I=c(),R=function(){},Z=function(){};
if(I){var K,m,a,O=((a=_.D((K=c())==null?void 0:(m=K.steps)==null?void 0:m[0],_.KJ))==null?void 0:a.stepId)||"";K3_(I,O);R=Q2z(I);Z=a3T(I)}_.ty(function(){var N=c();N&&_.y4().dispatch(_.Le("flowStateEntity",N.flowStateEntityKey));R();R=function(){};
Z();Z=function(){};
_.y1(_.g0j())})});
return _.e("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.e(_.Hh,{contentId:function(){return G.data().contentId}},function(){return _.e("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.e(_.l,{cond:c,
then:function(I){return _.e(_.keH,{data:I})}}))}))},"tn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.bl}});_.R1(_.W(function(){return _.e("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.e("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.e("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.e(_.N0W,null)),_.e(_.KHA,{data:{rows:1},isExploreHub:!0}))},"un"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.R1(_.W(function(G){var c=G.data;var I=G.standardUnitMinWidth;G=_.Q((0,_.az0)(c));var R=G.next().value,Z=G.next().value,K=function(){var a,O=(a=R())==null?void 0:a.contents;return O==null||O.length===0},m=function(){Z(Object.assign({},R(),{contents:[]}))};
return _.e("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.YC(_.wZ({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var a=_.D(c().chipsShelf,Nx5);if(a!=null&&a!=null&&a.autoselectChipOnVisible){var O,N,q=_.D(a==null?void 0:(O=a.contents)==null?void 0:O[(N=a.autoselectedChipIndex)!=null?N:0],_.bv);q&&q.tapCommand&&_.r0(q.tapCommand)}}}))},_.e(_.Hh,{contentId:function(){return c().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.e("div",null,_.e("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.e(_.sN,{data:function(){return c().header}},{sectionHeaderViewModel:function(a){return _.e(_.I4,{data:a.data,
disableHorizontalPadding:!0})}})),_.e("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.e(_.sN,{data:function(){return c().chipsShelf}},{chipsShelfViewModel:function(a){return _.e(_.Rc,{data:a.data,
callback:m,selectionBehavior:1})}})),_.e("div",null,_.e(_.l,{cond:K,
then:function(){return _.e("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.e(_.KHA,{data:{rows:1},isExploreHub:!0}))}}),_.e(_.sN,{data:function(){var a;
return(a=R())==null?void 0:a.contents}},{richShelfRenderer:function(a){return _.e(_.DdA,{data:a.data,
isInnerShelf:!0,standardUnitMinWidth:I})}})))}))},"vn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.bl,
standardUnitMinWidth:_.bl}});var xl=function(){return _.J.apply(this,arguments)||this};
_.u(xl,_.J);
xl.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
xl.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.r([_.L(_.wQ),_.h("design:type",Object)],xl.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],xl.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xl.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Number)],xl.prototype,"standardUnitMinWidth",void 0);_.r([_.Jc({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],xl);
_.B(xl,"ytd-rich-section-renderer",function(){if(As_!==void 0)return As_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return As_=G},{mode:_.Qc("kevlar_poly_si_batch_j029")?
1:2});_.R1(_.zw0,"yt-profile-identity-info-view-model",{props:{data:_.bl,hideDivider:_.bl,isChannelInfoCard:_.bl}});_.R1(_.Fgr,"yt-page-header-view-model",{props:{data:_.bl,noPadding:_.bl,enableBanner:_.bl,cinematicContainerTopbarOffset:_.bl,allowCinematicContainerOverflow:_.bl,displayAsSidebar:_.bl,displayAsPanel:_.bl,alwaysUseMediumTextDescription:_.bl}});var W3y=_.W(function(){return _.e("div",{class:_.O3("ytdGhostGridViewModelGhostCard")},_.e("div",{class:_.O3("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.e("div",{class:_.O3("ytdGhostGridViewModelDetails")},_.e("div",{class:_.O3("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.e("div",{class:_.O3("ytdGhostGridViewModelDetailsTextShell")},_.e("div",{class:_.O3("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.e("div",{class:_.O3("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"xn");_.R1(_.W(function(G){var c=G.data;var I=_.o1(_.SC);return _.e("ytd-ghost-grid-view-model",{class:_.O3("ytdGhostGridViewModelHost")},_.e(_.fh,{each:function(){var R=Array,Z;var K=((Z=c().numRows)!=null?Z:0)*I();return R(K)},
keyBy:"INDEX"},function(){return _.e(W3y,null)}))},"wn"),"ytd-ghost-grid-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=function(){var Z;return(Z=c().numColumns)!=null?Z:2},R=function(){return I()>1?3:2};
G={};return _.e("ytd-rich-grid-group",{class:_.O3("ytdRichGridGroupHost",(G.ytdRichGridGroupHostFirstColumn=function(){return c().colIndex===0},G)),
style:_.wi({"--ytd-rich-grid-group-num-columns":I,"--ytd-rich-grid-items-per-group":R})},_.e("div",{class:"ytdRichGridGroupContents"},_.e(_.sN,{data:function(){var Z;return(Z=c().contents)==null?void 0:Z.slice(0,R())}},{richItemRenderer:function(Z){return _.e(_.nH2,{data:Z.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"yn"),"ytd-rich-grid-group",{props:{data:_.bl}});var tV=function(){var G=_.J.apply(this,arguments)||this;G.resizeOnObserverInit=!1;G.isInlinePreviewDisabled=_.v("web_disable_inline_preview");G.disableStickyFilterBar=!1;G.transparentBackgroundChipsBar=!1;G.hideChipsBar=!1;G.isWatchDefaultLayout=!0;G.continuationShowButton=!1;G.rowReducedHorizontalMargin=!1;G.useCompactList=!1;G.manualDownloadsPresent=!1;G.smartDownloadsPresent=!1;G.isOnline=!1;G.shouldRenderDownloadsBanner=!1;G.shouldRenderDownloadsBannerUpsell=!1;G.hasOptedIntoSmartDownloads=!1;
G.elementsPerRow=4;G.typographyBump=!1;G.slimItemsPerRow=1;G.pageLoadingFromNavigation=!1;G.resizeObserver=null;G.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};G.rendererToTagNameMap=new Map(Object.entries(G.contentMapping()).map(function(c){var I=
_.Q(c);c=I.next().value;I=I.next().value;return[c,I.component]}));
G.insertedContent=new Map;return G};
_.u(tV,_.J);_.P=tV.prototype;_.P.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var G=_.Q(_.Q1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),c=G.next();!c.done;c=G.next())c.value.useCompactList=this.useCompactList};
_.P.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var G=_.Q(_.Q1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),c=G.next();!c.done;c=G.next())c=c.value,c.sizing=this.sizing,c.typographyBump=this.typographyBump};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1},reloadUiContent:{id:"reload-content",mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.lO(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.lO(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22609_throttledOnResize=new _.qx(this.resizeObserved,_.DH("rich_grid_resize_delay_ms",50),this)};
_.P.detached=function(){var G;(G=this.resizeObserver)==null||G.disconnect();document.removeEventListener("yt-page-type-changed",_.lO(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.lO(this,this.onFeedCustomizationScrollUp))};
_.P.insertRichSection=function(G){var c=G.richItemTargetId;G=G.richSectionRendererToInsert;c&&G&&(this.insertedContent.set(c,{content:G,timestamp:Date.now()}),this.reflowContent())};
_.P.computeHasReloadUiContent=function(){return!!this.reloadUiContent};
_.P.computeIsInlinePreviewEnabled=function(G,c,I){return _.v("web_disable_inline_preview")?!1:!I&&_.fZr({miniplayerIsActive:G,miniplayerPlaybackState:c})};
_.P.computeSizing=function(){var G=_.f7T(this.data);if(G||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return G?this.useCompactList?"COMPACT":G:this.miniMode?"COMPACT":"STANDARD"};
_.P.updateItemMinAndMaxWidth=function(){var G=_.DH("rich_grid_max_item_width",500);G>0&&_.eD(this.hostElement,{"--ytd-rich-grid-item-max-width":G+"px"});var c;G=this.getRichItemMinWidth((c=this.hostElement)==null?void 0:c.clientWidth);G>0&&_.eD(this.hostElement,{"--ytd-rich-grid-item-min-width":G+"px"})};
_.P.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.P.resizeObserved=function(){_.gq(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.P.onPageChange=function(){var G=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.gq(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.dJ.addJob(function(){G.pageLoadingFromNavigation=!1;G.setMasthead();G.maybeSetBigYoodle();G.forceRefreshAndLog();G.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.P.dataChanged=function(){var G=this;_.gq(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.O$(this,function(){G.updateRichItemGridPositions();G.contentsElement&&_.eD(G.hostElement,{"--ytd-rich-grid-content-offset-top":G.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.P.initResizeObserver=function(){var G=this;if(window.ResizeObserver){var c;(c=this.resizeObserver)==null||c.disconnect();var I=!1;this.resizeObserver=new ResizeObserver(function(){if(I){var R;(R=G.resizeObserver)==null||R.disconnect();var Z;(Z=G.JSC$22609_throttledOnResize)==null||Z.fire();requestAnimationFrame(function(){var m;(m=G.JSC$22609_throttledOnResize)==null||m.fire();G.initResizeObserver()})}else if(I=!0,G.resizeOnObserverInit){var K;
(K=G.JSC$22609_throttledOnResize)==null||K.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.P.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.gq(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.updateElementsPerRow=function(){_.gq(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.R6({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.R6({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.P.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.P.onRichShelfRendererCollapse=function(G){if(this.shownItems){var c=G.detail;G=this.shownItems.findIndex(function(R){var Z,K;return((K=_.D(R==null?void 0:(Z=R.richSectionRenderer)==null?void 0:Z.content,_.EnK))==null?void 0:K.trackingParams)===c});
var I=G+1;G<0||I>=this.contentsElement.children.length||!this.shownItems[I].richItemRenderer||this.contentsElement.children[I].scrollIntoView({behavior:"smooth",block:"start"})}};
_.P.onSoftReloadPage=function(){this.scrollUpToTop()};
_.P.handleRerenderDownloadsData=function(){_.v("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.P.handlePlaylistRemoveVideosAction=function(G){var c;if(((c=_.D(G,_.YBk))==null?0:c.setVideoIds)&&this.data&&this.data.contents){G=_.D(G,_.YBk).setVideoIds;for(c=this.data.contents.length-1;c>=0;){var I=_.D(this.data.contents[c],_.ZI);(I=I&&_.D(I.content,_.FF))&&I.setVideoId&&G.includes(I.setVideoId)&&this.splice("data.contents",c,1);c--}this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var G=0;G<this.data.contents.length;G++)this.set("data.contents."+G+".richItemRenderer.index",_.Cp(String(G+1)))};
_.P.hasTopRowInlinePlayableVideoWithEndorsement=function(G){var c;return!((c=G.slice(0,this.getItemsPerRow()))==null||!c.some(function(I){var R;I=_.D(I==null?void 0:(R=I.richItemRenderer)==null?void 0:R.content,_.oh);var Z;return(I==null?void 0:I.inlinePlaybackEndpoint)&&(I==null?void 0:(Z=I.thumbnailOverlays)==null?void 0:Z.some(function(K){return K.thumbnailOverlayEndorsementRenderer}))}))};
_.P.refreshGridLayoutNew=function(G,c,I,R){var Z=R.postsPerRow;var K=R.slimItemsPerRow;var m=R.gameCardsPerRow;R=R.miniGameCardsPerRow;var a;if((a=this.data)==null||!a.contents||!this.containerWidth)return!1;var O;if((O=this.data.responsiveContainerConfiguration)==null?0:O.responsiveSize){var N=_.Dmq(this.data.responsiveContainerConfiguration,this.containerWidth,2),q;a=_.tY(Object.assign({},N,{standardUnitMinWidth:(q=this.data)==null?void 0:q.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&N.isCompactList)}else a=_.tY({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(N=this.data)==null?void 0:N.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=a.typographyBump;q=!1;if(G||this.elementsPerRow!==a.numItems||this.postsPerRow!==Z||this.slimItemsPerRow!==K||this.gameCardsPerRow!==
m||this.miniGameCardsPerRow!==R||this.gutter!==a.gutter)q=this.elementsPerRow!==a.numItems,this.elementsPerRow=a.numItems,this.postsPerRow=Z,this.slimItemsPerRow=K,this.gameCardsPerRow=m,this.miniGameCardsPerRow=R,this.gutter=a.gutter,this.itemWidth=a.itemWidth,this.reflowContent(c),_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":a.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(I);this.ytdReduxBehavior.dispatch(_.R6({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:a.maxContainerWidth}));return q};
_.P.refreshGridLayout=function(G,c){var I,R=(I=this.hostElement)==null?void 0:I.clientWidth;this.containerWidth=this.adjustRichGridWidth(R,!0);var Z;if((Z=this.data)==null||!Z.contents||!this.containerWidth)return G&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(G=!0,this.pendingForceReflow=!1);I=this.getRichItemMinWidth(R);var K=this.isShortsPanel?146:194,m=this.getMiniGameCardMinWidth(),a=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.DH("rich_grid_default_max_items_per_row",
6);R=I=this.calcElementsPerRow(I,a);(Z=I<=3&&this.miniModeAllowed())&&(I=this.calcElementsPerRow(240,4));var O=this.calcMaxSlimElementsPerRow(I,a,this.isDefaultGrid);a=this.calcElementsPerRow(K,O);var N=this.calcElementsPerRow(this.isCompactGrid?K:154,O);K=this.calcElementsPerRow(this.isCompactGrid?K:m,O);m=!1;if(this.sizing)return this.refreshGridLayoutNew(G,c,Z,{postsPerRow:R,slimItemsPerRow:a,gameCardsPerRow:N,miniGameCardsPerRow:K});if(G||this.elementsPerRow!==I||this.postsPerRow!==R||this.slimItemsPerRow!==
a||this.gameCardsPerRow!==N||this.miniGameCardsPerRow!==K)m=this.elementsPerRow!==I,this.elementsPerRow=I,this.postsPerRow=R,this.slimItemsPerRow=a,this.gameCardsPerRow=N,this.miniGameCardsPerRow=K,this.reflowContent(c),this.updateElementsPerRow(),_.eD(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)&&_.eD(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Z);_.gq(this.hostElement,"yt-rich-grid-layout-refreshed");return m};
_.P.getRichItemMinWidth=function(G){var c=_.DH("rich_grid_min_item_width",310);if(!_.v("kevlar_disable_min_width_override")){var I,R;c=(R=(I=this.data)==null?void 0:I.minItemWidth)!=null?R:c}return c+_.VFg(G)};
_.P.calcMaxSlimElementsPerRow=function(G,c,I){return(I===void 0?0:I)?G===1?2:G%2===0?G/2*3:G+2:c*2};
_.P.adjustRichGridWidth=function(G,c){var I=_.v("disable_rich_grid_guide_compensation");if(!this.isWatch&&!I){I=_.wH().resolve(_.qR(_.oe));var R=I==null?void 0:I.guideElement;if(!(!I||I.getData()||R!=null&&R.opened||I.getMiniGuideVisible()))if(I.canFitPersistentGuide(G)&&I.getGuideExpandsAutomatically()){var Z,K,m=Number((Z=window.getComputedStyle(this.hostElement))==null?void 0:(K=Z.getPropertyValue("--app-drawer-width"))==null?void 0:K.replace("px",""));G-=m||0}else if(I.canFitMiniGuide(G)){var a;
Z=Number((m=window.getComputedStyle(this.hostElement))==null?void 0:(a=m.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:a.replace("px",""));G-=Z||0}}G>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(G-=c?32:48));return G};
_.P.calcElementsPerRow=function(G,c){var I=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),R=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((I+R)/(G+R))||1,c)};
_.P.reflowContent=function(G){var c=this;if(!this.isReflowing){this.isReflowing=!0;var I,R,Z=!!((I=this.data)==null?0:(R=I.contents)==null?0:R.some(function(a){return _.D(a,_.Zo)}));
I=this.getItemsPerRow();var K;R=(K=this.data)==null?void 0:K.reflowOptions;G&&(_.LC("rgr_s"),_.O$(this,function(){_.LC("rgr_nrf")}));
G={};(K=_.Q1(this.hostElement).querySelector("#contents"))&&(G={contentElement:K,rendererToTagNameMap:this.rendererToTagNameMap});K=(K=this.data.contents)?K.slice():[];Z=I3S(K,I,Z,R,this.getRichGridStyle(),G,this.insertedContent);var m=Z.orderedContent;if(Z=Z.pinnedContentNotShownTargetIds)for(Z=_.Q(Z),I=Z.next();!I.done;I=Z.next())this.insertedContent.delete(I.value);Z=function(){c.shownItems=m;c.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(m),_.O$(this,Z)):Z()}};
_.P.getFirstRowItems=function(G){for(var c=[],I=0;I<G.length;I++){var R=void 0,Z=void 0,K=void 0,m=void 0,a=void 0,O=void 0;if(((R=G[I])==null?void 0:(Z=R.richItemRenderer)==null?void 0:Z.rowIndex)===0||((K=G[I])==null?void 0:(m=K.richGroupRenderer)==null?void 0:m.rowIndex)===0||((a=G[I])==null?void 0:(O=a.richSectionRenderer)==null?void 0:O.rowIndex)===0)c.push(G[I]);else break}return c};
_.P.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.P.resetInsertedContentIfNeeded=function(){(_.v("web_explore_hub_on_hover")||_.v("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.P.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.P.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.P.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.P.terminateVideoPreview=function(){_.gq(this.hostElement,"yt-terminate-video-preview-action")};
_.P.updateRichItemGridPositions=function(){var G={gridData:{gridColumnCount:this.elementsPerRow}},c;((c=this.data)==null?0:c.trackingParams)&&(c=_.k0())&&_.tH(c,_.kC(this.data.trackingParams),G);_.gq(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.miniModeAllowed=function(){return this.isChannelPage};
_.P.getMiniGameCardMinWidth=function(){return 154};
_.P.updateMiniMode=function(G){this.miniMode=this.miniModeAllowed()&&G;this.ytdReduxBehavior.dispatch(_.R6({type:"SET_RICH_GRID_MINI_MODE",payload:G}))};
_.P.isCurrentPage=function(){return location.pathname===this.pagePath};
_.P.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var G=_.wH().resolve(_.I9).getCurrentPage();G&&G.setScrollTop(0)}};
_.P.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.P.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.P.maybeSetBigYoodle=function(){var G,c=(G=this.data)==null?void 0:G.bigYoodle;this.bigYoodleData!==c&&(this.bigYoodleData=c)};
_.P.setMasthead=function(){var G;((G=this.data)==null?0:G.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.P.getRichGridStyle=function(){var G,c;return(c=(G=this.data)==null?void 0:G.style)!=null?c:"RICH_GRID_STYLE_UNKNOWN"};
_.P.onIsShortsGridChange=function(){var G=this.ytdReduxBehavior,c=G.dispatch,I=this.getRichGridStyle();c.call(G,_.R6({type:"SET_RICH_GRID_STYLE",payload:I}))};
_.P.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.Nh.Object.defineProperties(tV.prototype,{reloadUiContent:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.ytContinuationHandlerBehavior)==null?void 0:G.reloadUiContent}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var G=_.wH().resolve(_.I9).getCurrentPage(),c,I,R;return(((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_audio_pivot"||_.v("web_enable_channel_pivot_panel")&&((I=this.data)==null?void 0:I.targetId)==="browse-feedFEsfv_channel_pivot"||_.v("web_enable_effect_pivot_panel")&&((R=this.data)==null?void 0:R.targetId)==="browse-feedFEsfv_effect_pivot")&&(G==null?void 0:G.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.v("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.wH().resolve(_.I9).getCurrentPage())==null?void 0:G.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.wH().resolve(_.I9).getCurrentPage())==null?void 0:G.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.data)==null?0:G.enableContentSpecificAspectRatio)||((c=this.data)==null?0:(I=c.responsiveContainerConfiguration)==null?0:I.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.DH("web_continuation_handler_margin",0):0}}});
tV.prototype.onIsShortsGridChange=tV.prototype.onIsShortsGridChange;tV.prototype.onReloadContinuationFinish=tV.prototype.onReloadContinuationFinish;tV.prototype.reflowContent=tV.prototype.reflowContent;tV.prototype.handleRerenderDownloadsData=tV.prototype.handleRerenderDownloadsData;tV.prototype.onRichShelfRendererCollapse=tV.prototype.onRichShelfRendererCollapse;tV.prototype.onRequestElementsPerRow=tV.prototype.onRequestElementsPerRow;tV.prototype.contentLengthChanged=tV.prototype.contentLengthChanged;
tV.prototype.dataChanged=tV.prototype.dataChanged;tV.prototype.onSizingChange=tV.prototype.onSizingChange;tV.prototype.onUseCompactListChange=tV.prototype.onUseCompactListChange;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Zu),_.h("design:type",Object)],tV.prototype,"ironResizableBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],tV.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],tV.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],tV.prototype,"componentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],tV.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tV.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],tV.prototype,"miniMode",void 0);_.r([_.E({value:[]}),_.h("design:type",Array)],tV.prototype,"shownItems",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],tV.prototype,"isReflowing",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],tV.prototype,"isFilteredFeed",void 0);_.r([_.E({selector:_.ErU}),_.h("design:type",Boolean)],tV.prototype,"guideIsExpanded",void 0);
_.r([_.E({selectorArgs:["entitySelectorType"],selector:function(G,c){if(_.v("kevlar_modern_downloads_page")&&c&&c!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":c=G.entities;var I=_.s4(c),R=_.Lp(c),Z=_.GQ8(G),K=_.Yrb(G),m=_.cGC(G),a=_.kbA(c),O=_.DY(I),N=_.AX(c);return _.Nuq(I,R,a,_.$iT(c),Z,K,O,N,m,_.R7r(G),_.V4(G));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return G=_.s4(G.entities),_.qVr(G);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return G=
_.Ui0(G.entities),_.w9O(G);default:_.Ck(new _.iW("Error: entitySelectorType defined but not matched in selector.",G,c))}}}),
_.h("design:type",Object)],tV.prototype,"entityDrivenRichGridData",void 0);_.r([_.E(),_.h("design:type",Object)],tV.prototype,"resizeOnObserverInit",void 0);_.r([_.E(),_.h("design:type",Object)],tV.prototype,"bigYoodleData",void 0);_.r([_.E(),_.h("design:type",Object)],tV.prototype,"mastheadData",void 0);_.r([_.E(),_.h("design:type",Boolean)],tV.prototype,"isInlinePreviewDisabled",void 0);_.r([_.E(),_.h("design:type",Object)],tV.prototype,"disableStickyFilterBar",void 0);
_.r([_.E(),_.h("design:type",Object)],tV.prototype,"transparentBackgroundChipsBar",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tV.prototype,"hideChipsBar",void 0);_.r([_.E(),_.h("design:type",Object)],tV.prototype,"isWatchDefaultLayout",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tV.prototype,"continuationShowButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tV.prototype,"rowReducedHorizontalMargin",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tV.prototype,"useCompactList",void 0);_.r([_.E({selector:function(G){return _.Lp(G.entities).length>0}}),
_.h("design:type",Object)],tV.prototype,"manualDownloadsPresent",void 0);_.r([_.E({selector:function(G){return _.s4(G.entities).length>0}}),
_.h("design:type",Object)],tV.prototype,"smartDownloadsPresent",void 0);_.r([_.E({selector:_.V4}),_.h("design:type",Object)],tV.prototype,"isOnline",void 0);_.r([_.E({selector:_.Yrb}),_.h("design:type",Object)],tV.prototype,"shouldRenderDownloadsBanner",void 0);_.r([_.E({selector:_.R7r}),_.h("design:type",Object)],tV.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.r([_.E({selector:_.GQ8}),_.h("design:type",Object)],tV.prototype,"hasOptedIntoSmartDownloads",void 0);
_.r([_.wD("useCompactList"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"onUseCompactListChange",null);_.r([_.wD("sizing","typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"onSizingChange",null);_.r([_.E({selector:_.rxp}),_.h("design:type",Number)],tV.prototype,"miniplayerPlaybackState",void 0);_.r([_.E({selector:_.pp}),_.h("design:type",Boolean)],tV.prototype,"miniplayerIsActive",void 0);
_.r([_.E({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.h("design:type",Boolean)],tV.prototype,"isInlinePreviewEnabled",void 0);_.r([_.E({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.h("design:type",String)],tV.prototype,"sizing",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tV.prototype,"elementsPerRow",void 0);
_.r([_.E(),_.h("design:type",Object)],tV.prototype,"typographyBump",void 0);_.r([_.E(),_.h("design:type",Number)],tV.prototype,"itemWidth",void 0);_.r([_.nH("#header"),_.h("design:type",HTMLElement)],tV.prototype,"headerElement",void 0);_.r([_.nH("#contents"),_.h("design:type",HTMLElement)],tV.prototype,"contentsElement",void 0);_.r([_.A("reloadUiContent"),_.h("design:type",Object),_.h("design:paramtypes",[])],tV.prototype,"reloadUiContent",null);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"dataChanged",null);_.r([_.uO("data.contents.length"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"contentLengthChanged",null);_.r([_.qY("yt-request-elements-per-row"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"onRequestElementsPerRow",null);
_.r([_.qY("yt-rich-shelf-renderer-collapse"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],tV.prototype,"onRichShelfRendererCollapse",null);_.r([_.uO("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"handleRerenderDownloadsData",null);
_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],tV.prototype,"entitySelectorType",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"isSub",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"isWatch",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"isShortsPanel",null);_.r([_.E({reflectToAttribute:!0}),_.A("isWatch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"reducedTopMargin",null);_.r([_.E({reflectToAttribute:!0}),_.A("data","isWatch","isWatchDefaultLayout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"noTopMargin",null);
_.r([_.E({reflectToAttribute:!0}),_.A("isInlinePreviewEnabled","shownItems"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"topRowEndorsement",null);_.r([_.A("data.header"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"hideHeader",null);_.r([_.qY("yt-rich-grid-reflow"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],tV.prototype,"reflowContent",null);
_.r([_.qY("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"onReloadContinuationFinish",null);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"isSlimGrid",null);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"isShortsGrid",null);
_.r([_.A("data","isSlimGrid","isShortsGrid"),_.E(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"noRichItemGutterMargins",null);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"isShortsGridSlim",null);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"isCompactGrid",null);
_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"isDefaultGrid",null);_.r([_.A("data.targetId"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"hideChipsBarOnWatch",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tV.prototype,"onIsShortsGridChange",null);
_.r([_.A("data.enableContentSpecificAspectRatio"),_.E(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tV.prototype,"force16By9ThumbnailAspectRatio",null);_.r([_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],tV.prototype,"continuationTriggerOffset",null);_.r([_.Jc({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],tV);
_.B(tV,"ytd-rich-grid-renderer",function(){if(b86!==void 0)return b86;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="contents" hidden="[[computeHasReloadUiContent(reloadUiContent)]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return b86=G},{mode:2});var i8_=_.W(function(G){return _.e("yt-feedback-prompt-view-model",{class:_.O3("ytFeedbackPromptViewModelHost",G.className)},_.e(_.l,{cond:function(){return G.data().text},
then:function(c){return _.e(_.ul,{text:c,className:"ytFeedbackPromptViewModelPrompt"})}}),_.e(_.sN,{data:function(){return G.data().likeButton}},{likeButtonViewModel:function(c){return _.e(_.v$,{data:c.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.e(_.sN,{data:function(){return G.data().dislikeButton}},{dislikeButtonViewModel:_.ni}))},"zn");var f3T=_.W(function(G){var c=_.Q((0,_.eA0)(G.data)).next().value,I=function(){var R,Z;return(Z=(R=c().contents)==null?void 0:R.length)!=null?Z:0};
return _.e("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return G.data().targetId||""},
"aria-busy":function(){var R,Z;return(Z=(R=c().contents)==null?void 0:R.some(function(K){return!!K.chatLoadingViewModel}))!=null?Z:!1}},_.e(_.sN,{data:function(){return G.data().header}},{chipBarViewModel:_.lvK,
sectionHeaderViewModel:_.I4}),_.e(_.sN,{data:function(){return c().contents}},{accordionViewModel:_.YM2,
alertBannerViewModel:_.o2B,chatLoadingViewModel:function(R,Z){return _.e(_.oCF,{data:R.data,containerHeight:G.containerHeight,isLastItem:function(){return Z()===I()-1}})},
chatUserTurnViewModel:function(R,Z){return _.e(_.DCj,{data:R.data,containerHeight:G.containerHeight,isLastItem:function(){return Z()===I()-1}})},
feedbackPromptViewModel:i8_,gridShelfViewModel:function(R){return _.e(_.uh,{data:R.data,shouldUseOwnContainerSize:!0,marginSettings:G.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.hie,linearLayoutViewModel:_.Lr,lockupViewModel:function(R){return _.e(_.Yy,{data:R.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:G.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.I4,videoOverviewViewModel:_.mfW,youChatItemViewModel:function(R,Z){return _.e(_.vCW,{data:R.data,pending:!1,containerHeight:G.containerHeight,isLastItem:function(){return Z()===I()-1}})}}))},"An");_.R1(_.W(function(G){var c=_.Q((0,_.eA0)(G.data)).next().value,I=_.Q(_.Ls()),R=I.next().value;I=I.next().value;var Z=_.YC(I);I=_.Q(_.ks(void 0,void 0,"fqbUqd"));var K=I.next().value,m=I.next().value,a=function(){var O;return _.D((O=G.data().sectionListLayoutConfiguration)==null?void 0:O.layoutConfiguration,l3N)};
_.tI(function(){var O,N=(O=Z.value)==null?void 0:O.clientWidth;O=a()?_.Iz8(N,a()):void 0;m(O)});
I={};return _.e("yt-section-list-renderer",{class:_.O3("ytSectionListRendererHost",G.className,(I.ytSectionListRendererHostOverscrollContain=function(){var O;return(O=G.overscrollContain)==null?void 0:O.call(G)},I)),
el:Z,"data-target-id":function(){return G.data().targetId||""}},_.e(_.sN,{data:function(){return c().contents}},{itemSectionRenderer:function(O){return _.e(f3T,{data:O.data,
containerLayoutConfig:K,marginSettings:G.marginSettings,containerHeight:function(){return R.height()}})}}))},"Bn"),"yt-section-list-renderer",{props:{data:_.bl,
className:_.G9,marginSettings:_.bl,overscrollContain:_.bl}});var Bx_;var rsT;var j2y=function(){return _.J.apply(this,arguments)||this};
_.u(j2y,_.J);_.r([_.E(),_.h("design:type",Object)],j2y.prototype,"data",void 0);_.r([_.Em({is:"yt-alert-renderer",disableElementRegistration:!0})],j2y);
_.B(j2y,"yt-alert-renderer",function(){if(rsT===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Bx_===void 0&&(Bx_=document.createElement("template"));var R=Bx_;I.call(c,R.content.cloneNode(!0),G.content.firstChild);rsT=G}G=rsT;return G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var gaF;gaF=function(G,c,I,R){I||(G?R&&(R.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||R.WINDOW_SIZE_CHANGED&&(c.width!==window.innerWidth||c.height!==window.innerHeight)||R.SAFARI_ABORTED_BY_NEW_TRANSITION&&G instanceof DOMException&&G.name==="AbortError"&&G.message.includes("Old view transition aborted by new view transition"))||_.hg(G):_.hg(Error("xj")))};
_.YU$=function(G,c){c=c===void 0?{}:c;var I,R,Z,K,m,a,O,N,q,w,F,n,U;return _.T(function(k){switch(k.nextAddress){case 1:I=c;R=I.shouldWrap===void 0?!0:I.shouldWrap;Z=I.skipTransitionTimeoutMs===void 0?300:I.skipTransitionTimeoutMs;K=I.beforeTransition;m=I.afterTransition;if(!R||!document.startViewTransition||document.visibilityState==="hidden")return k.return(G());a={width:window.innerWidth,height:window.innerHeight};O=!1;(N=K)==null||N();_.s9(k,2);q=document.startViewTransition(G);w=setTimeout(function(){q.skipTransition();
O=!0},Z);
return k.yield(q.ready,4);case 4:return clearTimeout(w),k.yield(q.finished,5);case 5:clearTimeout(w);(F=m)==null||F();_.Pl(k,0);break;case 2:n=_.M3(k),(U=m)==null||U(),gaF(n,a,O,c.ignoredErrors),_.Vp(k)}})};
_.G1W=function(G,c){var I=_.Fzb(c);I!=="javascript:"&&I!=="data:"&&G.setAttribute("href",c)};
_.Xb=function(){for(var G=Array(36),c=0,I,R=0;R<36;R++)R==8||R==13||R==18||R==23?G[R]="-":R==14?G[R]="4":(c<=2&&(c=33554432+Math.random()*16777216|0),I=c&15,c>>=4,G[R]=_.gqr[R==19?I&3|8:I]);return G.join("")};
_.ccu=function(G,c,I){G.persistentPanelContainerMap.set(I,c)};/*

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 I4W=_.I3(['<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>']),
RX7=_.Ym0(I4W);RX7.setAttribute("style","display: none;");document.head.appendChild(RX7.content);_.y7=_.o$r(function(G){var c=_.$9("DIV");G&&(c.className=G);c.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";G=_.$9("DIV");_.dSN(G,"200px","200px");c.appendChild(G);document.body.appendChild(c);G=c.offsetWidth-c.clientWidth;_.ST(c);return G});var ZHr;var K97;var gf=function(){var G=_.J.apply(this,arguments)||this;G.icon=null;return G};
_.u(gf,_.J);gf.prototype.dismiss=function(){_.Xl(this.hostElement,"yt-live-chat-error-message-dismiss")};
gf.prototype.computeIcon=function(G){return G&&G.iconType?"yt-icons:"+G.iconType.toLowerCase():"yt-icons:close"};
_.r([_.E(),_.h("design:type",Object)],gf.prototype,"data",void 0);_.r([_.E({computed:"computeIcon(data.icon)"}),_.h("design:type",Object)],gf.prototype,"icon",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],gf);
_.B(gf,"yt-live-chat-error-message-renderer",function(){if(K97===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;ZHr===void 0&&(ZHr=document.createElement("template"));var R=ZHr;I.call(c,R.content.cloneNode(!0),G.content.firstChild);K97=G}G=K97;return G},{mode:0});
}catch(e){_._DumpException(e)}
try{
var awo,TJ6,Ojz,e1R,qoN,n$f,v$x,DtR,o$_,Utf,ua_,bjS,kcx,$H,szo,L_N,A$N,$tf,Soo,plN,Mvo,VvG,z1G,J$_,W_R,ijR,fwx,BJG,r$5,jzy,xtf,tvz,h15,dtJ,Cr6,Hjz,XlT,y$x,Ga_,I6y,Zk6,Kpz,PBo,Qxf,g$o,YoR,TjR,Ok_,e_T,NjG,l6R,qfo,w_f,Fpx,mbf;awo=function(G,c){return _.a6(G.entities,"timedMarkersListSyncEntity",c)};
TJ6=function(G,c){return _.a6(G.entities,"liveReactionsDataEntity",c)};
Ojz=function(G,c){G=_.a6(G.entities,"booleanEntity",c);return!(!G||!G.value)};
e1R=function(G,c){var I=_.k0();I&&G&&_.Wd(I,_.kC(G),c)};
_.NJz=function(G){return G.watch.isWatchActive};
_.lwy=function(G){return!_.m1r(G)};
_.AR=function(G){return G.watch.watchScrollTop};
qoN=function(G){return G.watch.isLiveChatCollapsed};
_.wlf=function(){_.v("web_watch_log_theater_mode")&&_.pir("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.F__=function(G,c,I){if(!G.includes("START_TIME_PLACEHOLDER")||!G.includes("END_TIME_PLACEHOLDER"))return G;var R=new Date(0),Z=new Date(0);R.setUTCMilliseconds(c);Z.setUTCMilliseconds(I);return G.replace("START_TIME_PLACEHOLDER",_.tX(R,7)).replace("END_TIME_PLACEHOLDER",_.tX(Z,7))};
n$f=function(G){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:G}}]}}}};
v$x=function(G,c,I){var R=_.v("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;c=Object.assign({},{text:c,hasGradientBackground:I},R&&{itemTargetId:R});R=_.v("web_enable_chat_autoscroll_to_user_turn")&&R?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:R,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:c}],insertByPositionInSection:{sectionTargetId:G,
position:"INSERTION_POSITION_LAST"}}}]},R?{scrollConfig:R}:{})}}};
DtR=function(G,c){return _.a6(G.entities,"booleanEntity",c)};
o$_=function(){return function(G){_.y1(_.Le("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:G}))}};
Utf=function(G){switch(G){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
ua_=function(G,c,I){var R=_.WI(I);G&&c&&R&&G.getPlayerPromise().then(function(Z){_.EkA(R)&&_.tg();(new _.qZ(Z)).executeCommand(R,c);_.v("continue_playback_on_desktop_companion_click")||Z.pauseVideo()})};
bjS=function(G){var c=_.ZA(),I;if(I=_.Yc("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;I=(R=I())==null?void 0:R.layoutId}else I=null;ua_(c,I,G)};
kcx=function(G){var c=_.ZA(),I;if(I=_.Yc("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;I=(R=I())==null?void 0:R.layoutId}else I=null;ua_(c,I,G)};
$H=function(G,c){var I=G<0?"-":"";G=Math.abs(G);var R=Math.floor(G/3600),Z=Math.floor(G)%3600,K=Math.floor(Z/60);Z=Math.floor(Z)%60;var m="";(c===void 0?0:c)&&(m="."+Math.round((G-Math.floor(G))*10));return R>0?I+R+":"+(K<10?"0"+K:""+K)+":"+(Z<10?"0"+Z:""+Z)+m:I+K+":"+(Z<10?"0"+Z:""+Z)+m};
szo=function(G){var c=G.match(/[^0-9:\.]/g);if(c&&c.length>0)return null;G=G.split(":");if(G.length===0||G.length>3)return null;c=1;for(var I=0;G.length>0;){var R=G.pop();if(R===void 0)break;var Z=Number(R);if(R===""||isNaN(Z))return null;I+=Z*c;c*=60}return I};
L_N=function(G,c,I,R){G=Math.max(I,G);c=Math.min(c,R-I);G+c>R?(I=R,G=I-c):I=G+c;return{start:G,end:I}};
A$N=function(G,c,I,R,Z,K){G<I?G=I:G+Z>R&&(G=R-Z);c>R&&(c=R);c=Math.min(G+K,Math.max(G+Z,c));return{start:G,end:c}};
$tf=function(G,c,I,R,Z,K){c>R?c=R:c-Z<I&&(c=I+Z);G<I&&(G=I);G=Math.min(c-Z,Math.max(c-K,G));return{start:G,end:c}};
Soo=function(G){return _.v("web_transcript_cue_id_killswitch")?String(G):"ytd-transcript-renderer_"+G};
plN=function(G){return _.v("web_transcript_cue_id_killswitch")?!0:G.startsWith("ytd-transcript-renderer")};
Mvo=function(G){var c=_.ZA(),I;if(I=_.Yc("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;I=(R=I())==null?void 0:R.layoutId}else I=null;ua_(c,I,G)};
VvG=function(G){G.style.height="auto";G.style.height=Math.min(G.scrollHeight||20,80)+"px"};
z1G=function(){var G;return String(Math.floor(((G=_.Fc())==null?void 0:G.getCurrentTime())||0)*1E3)};
J$_=function(G){if(G.onWelcomeCommand)return _.WI(G.onWelcomeCommand);G=_.D(G.inputComposerViewModel,E$f);if(G==null?0:G.welcomeFeatureContinuation)return _.Kwd(G.welcomeFeatureContinuation)};
W_R=function(G){var c=_.ZA(),I;I=(I=_.Yc("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;ua_(c,I,G)};
ijR=function(G){var c=_.ZA(),I;I=(I=_.Yc("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;ua_(c,I,G)};
fwx=function(G){if(G.simpleText)return[{text:G.simpleText}];var c;return(c=G.runs)!=null?c:[]};
BJG=function(G){var c=G.startEndTimeTemplate,I=G.startTimeUtcMillis;G=G.endTimeUtcMillis;if(c&&I&&G)return _.Cp(_.F__(_.HY(c),Number(I),Number(G)))};
r$5=function(G,c){var I,R,Z=G==null?void 0:(I=G.viewCount)==null?void 0:(R=I.videoViewCountRenderer)==null?void 0:R.shortViewCount;if(!c&&Z)return Z;var K,m;return G==null?void 0:(K=G.viewCount)==null?void 0:(m=K.videoViewCountRenderer)==null?void 0:m.viewCount};
jzy=function(G,c){var I=G==null?void 0:G.relativeDateText;return!c&&I?[I,!0]:[G==null?void 0:G.dateText,!1]};
xtf=function(G,c,I,R,Z){R=R===void 0?"":R;Z=Z===void 0?!1:Z;var K=r$5(G,c),m=_.Q(jzy(G,c)),a=m.next().value;m=m.next().value;c=c?G==null?void 0:G.sponsorsOnlyFirstTimeLongText:G==null?void 0:G.sponsorsOnlyFirstTimeShortText;var O=[];I&&K&&O.push(K);!I&&m||!a||O.push(a);G=[Z?G==null?void 0:G.subtitle:void 0].concat(_.jn(O),[c,G==null?void 0:G.stationName,G==null?void 0:G.rating,G?BJG(G):void 0,G==null?void 0:G.upNextProgramText,G==null?void 0:G.superTitleLink]).filter(function(N){return!!N});
I={runs:[]};for(Z=0;Z<G.length;Z++)I.runs.push.apply(I.runs,_.jn(fwx(G[Z]))),Z<G.length-1&&I.runs.push({text:" "+R+" "});return I};
tvz=function(G){return G.filter(function(c){return!_.D(c,_.dG)})};
h15=function(G){var c,I,R,Z;if(G=G==null?void 0:(c=G.contents)==null?void 0:(I=c.twoColumnWatchNextResults)==null?void 0:(R=I.results)==null?void 0:(Z=R.results)==null?void 0:Z.contents){var K,m;return(m=(K=G.find(function(a){return!!a.videoPrimaryInfoRenderer}))==null?void 0:K.videoPrimaryInfoRenderer)==null?void 0:m.updatedMetadataEndpoint}};
dtJ=function(G,c){var I;return(I=G.sourceConfigs)==null?void 0:I.find(function(R){return R.videoId===c})};
Cr6=function(G){return G==="End of video"||G==="End of playlist"};
Hjz=function(G){var c,I,R,Z;return(c=G.getWatchNextResponse())==null?void 0:(I=c.contents)==null?void 0:(R=I.twoColumnWatchNextResults)==null?void 0:(Z=R.playlist)==null?void 0:Z.playlist};
XlT=function(G){var c,I,R,Z,K,m;return(c=Hjz(G))==null?void 0:(I=c.playlistButtons)==null?void 0:(R=I.menuRenderer)==null?void 0:(Z=R.topLevelButtons)==null?void 0:(K=Z[0])==null?void 0:(m=K.playlistLoopButtonRenderer)==null?void 0:m.playlistLoopStateEntityKey};
y$x=function(G){var c=_.wH().resolve(_.u1),I;return(c=(I=_.D(c.getAutoplayEndpoint(),_.fR))==null?void 0:I.playlistId)&&c===G};
Ga_=function(G,c,I,R,Z){function K(){_.dJ.cancelJob(S2);var m=g$o(c,I/G.getPlaybackRate()),a=m.hours,O=m.minutes;m=(m.seconds*1E3||6E4)/G.getPlaybackRate();G.setVideoTimeLeft(YoR(a,O));R&&G.getPlayerState()!==0&&G.setSleepTimerTimeLeft(YoR(a,O,!0));(a>0||O>0)&&!Z&&(S2=_.SR(_.dJ,K,m))}
_.dJ.cancelJob(S2);S2=_.SR(_.dJ,K)};
I6y=function(G,c,I){function R(){_.dJ.cancelJob(cgx);var Z=g$o(c,I),K=Z.hours;Z=Z.minutes;var m=6E4/G.getPlaybackRate();if(K>0||Z>0)G.setSleepTimerTimeLeft(YoR(K,Z,!0)),cgx=_.SR(_.dJ,R,m)}
_.dJ.cancelJob(cgx);cgx=_.SR(_.dJ,R)};
Zk6=function(G,c){var I=G.getVolume()/(c/500),R=function(Z){_.dJ.cancelJob(R_f);var K=Math.floor(Z-I);G.setVolume(K,!1);K>0&&(R_f=_.SR(_.dJ,function(){R(K)},500))};
_.dJ.cancelJob(R_f);R_f=_.SR(_.dJ,function(){R(G.getVolume())})};
Kpz=function(G,c){_.dJ.cancelJob(R_f);c&&G.syncVolume()};
PBo=function(){var G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.mJ("SLEEP_TIMER_DISRUPTED")}}}}};_.wH().resolve(_.n4).resolveCommand(G)};
Qxf=function(G){return(G.getDuration()-G.getProgressState().current)*1E3};
g$o=function(G,c){G=G+c-(0,_.Fa)();if(G<=0)return{hours:0,minutes:0,seconds:0};var I=new mbf(0,0,0,0,0,0,G);G=I.getHours();c=I.getMinutes();I=I.getSeconds();I!==0&&c++;c!==0&&c%60===0&&(G++,c=0);return{hours:G,minutes:c,seconds:I}};
YoR=function(G,c,I){return G>0&&c>0?I?_.mJ("TIME_LEFT_HOURS_MINUTES",{hours:G.toString(),minutes:c.toString()}):_.mJ("TIME_HOURS_MINUTES",{hours:G.toString(),minutes:c.toString()}):G>0?I?_.aP("TIME_LEFT_HOURS",G):_.aP("TIME_HOURS",G):I?_.mJ("TIME_LEFT_MINUTES",{minutes:c.toString()}):_.mJ("TIME_MINUTES",{minutes:c.toString()})};
TjR=function(G,c){if(G.timelyActions)return G.timelyActions.find(function(I){var R;return((R=_.D(I,a6T))==null?void 0:R.cueRangeId)===c})};
Ok_=function(G){var c=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.$b(G);G.keyMap_.forEach(function(I,R){_.fA(c,R)||this.remove(R)},G)};
e_T=function(G,c){G.reloadContinuationItemsCommandMatcher=c};
NjG=function(G,c){var I;return _.T(function(R){return R.nextAddress==1?c&&G.lastWelcomeContinuationSent!==c?_.Hku(G)?R.yield(G.panelController.isVisible("PAai_companion"),3):R.jumpTo(2):R.return(!1):R.nextAddress==2||(I=R.yieldResult,I)?R.return(!0):R.return(!1)})};
l6R=function(G){var c,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1){if(!G.welcomeOptions)return m.return();c=G.welcomeOptions;I=c.command;R=c.setPending;if(I){var a;var O=(a=_.D(I,_.fQ))==null?void 0:a.token}else O=void 0;Z=O;return m.yield(NjG(G,Z),2)}if(!m.yieldResult)return m.return();G.lastWelcomeContinuationSent=Z;(K=R)==null||K(!0);O="youchat-"+Date.now();a=(a=_.Fc())?String(Math.floor(a.getCurrentTime())*1E3):void 0;_.iD(I,{form:{formData:_.Nr({clientMessageId:O,playerOffsetMs:a,pageContext:_.mSg(G,
G.pageSubtype)})}});_.Vp(m)})};
qfo=function(G,c){_.T(function(I){G.welcomeOptions=c;return I.yield(l6R(G),0)})};
_.p3=function(G,c){G.insertBefore(c,G.childNodes[0]||null)};
w_f=function(G){if(G>=48&&G<=57||G>=96&&G<=106||G>=65&&G<=90||_.vC&&G==0)return!0;switch(G){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.ny;default:return!1}};
Fpx=function(G){if(G.altKey&&!G.ctrlKey||G.metaKey||G.keyCode>=112&&G.keyCode<=123)return!1;if(w_f(G.keyCode))return!0;switch(G.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.ny;default:return G.keyCode<166||G.keyCode>183}};
mbf=function(G,c,I,R,Z,K,m){this.date=typeof G==="number"?new Date(G,c||0,I||1,R||0,Z||0,K||0,m||0):new Date(G&&G.getTime?G.getTime():_.OH())};
_.eg(mbf,_.Xg);_.P=mbf.prototype;_.P.getHours=function(){return this.date.getHours()};
_.P.getMinutes=function(){return this.date.getMinutes()};
_.P.getSeconds=function(){return this.date.getSeconds()};
_.P.getMilliseconds=function(){return this.date.getMilliseconds()};
_.P.getUTCDay=function(){return this.date.getUTCDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.P.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.P.setHours=function(G){this.date.setHours(G)};
_.P.setMinutes=function(G){this.date.setMinutes(G)};
_.P.setSeconds=function(G){this.date.setSeconds(G)};
_.P.setMilliseconds=function(G){this.date.setMilliseconds(G)};
_.P.setUTCHours=function(G){this.date.setUTCHours(G)};
_.P.setUTCMinutes=function(G){this.date.setUTCMinutes(G)};
_.P.setUTCSeconds=function(G){this.date.setUTCSeconds(G)};
_.P.setUTCMilliseconds=function(G){this.date.setUTCMilliseconds(G)};
_.P.add=function(G){_.Xg.prototype.add.call(this,G);G.hours&&this.setUTCHours(this.date.getUTCHours()+G.hours);G.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+G.minutes);G.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+G.seconds)};
_.P.JSC$11496_toIsoString=function(G){var c=_.Xg.prototype.JSC$11496_toIsoString.call(this,G);return G?c+"T"+_.Dn(this.getHours(),2)+":"+_.Dn(this.getMinutes(),2)+":"+_.Dn(this.getSeconds(),2):c+"T"+_.Dn(this.getHours(),2)+_.Dn(this.getMinutes(),2)+_.Dn(this.getSeconds(),2)};
_.P.equals=function(G){return this.getTime()==G.getTime()};
_.P.toString=function(){return this.JSC$11496_toIsoString()};
_.P.clone=function(){var G=new mbf(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.n7o=function(G){return _.R6({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:G}})};var v7_=new _.vS("imageTileRenderer");var Dbx=new _.vS("promotedSparklesWebRenderer");var o7x=new _.vS("adGridCardCollectionViewModel");var Ubo=new _.vS("carouselTitleViewModel");var u46=new _.vS("ctaCarouselItemViewModel");var bkz=new _.vS("textFieldViewModel");_.kaz=new _.vS("engagementPanelHeaderShowNavigationButtonCommand");var sxS=new _.vS("hideEngagementPanelScrimAction");var Lpx=new _.vS("setActivePanelItemAction");var AgR=new _.vS("showEngagementPanelScrimAction");var $by=new _.vS("updateEngagementPanelAction");var Sfx=new _.vS("updateSearchInVideoResultsAction");var p_S=new _.vS("transcriptCueGroupRenderer");var McR=new _.vS("transcriptCueRenderer");var VcJ=new _.vS("transcriptFooterRenderer");var z_G=new _.vS("engagementPanelAdSubtitleRenderer");var E7R=new _.vS("videoDescriptionFantasySectionViewModel");var JgT=new _.vS("deleteClipEngagementPanelCommand");var Wp5=new _.vS("loopCommand");var iky=new _.vS("changeCreatorEndscreenVisibilityCommand");var f6x=new _.vS("liveChatCallForQuestionsRenderer");var Bj_=new _.vS("updateTimedMarkersSyncObserverCommand");var a6T=new _.vS("timelyActionViewModel");var rg_=new _.vS("timelyActionsOverlayViewModel");var jxo=new _.vS("repeatChapterCommand");var xbx=new _.vS("watchPlayerOverflowMenuCommand");var tcz=new _.vS("compositeVideoOverlayRenderer");var h_5=new _.vS("sortFilterSubMenuRenderer");var dbo=new _.vS("switchListItemViewModel");var E$f=new _.vS("inputComposerViewModel");var CBo=new _.vS("transcriptEditSegmentCommand");var HkR=new _.vS("transcriptUpdateSegmentTextCommand");var X_o=new _.vS("transcriptSearchBoxRenderer");var ygT=new _.vS("transcriptSegmentListRenderer");var g75=new _.vS("transcriptSegmentRenderer");_.Yfz=new _.vS("updateDateTextAction");var GPf=new _.vS("updateTitleAction");var caG=new _.vS("updateViewershipAction");var Iqx=new _.vS("relatedChipCommand");var R2T=new _.vS("carouselLockupRenderer");var Md=new _.vS("expandableVideoDescriptionBodyRenderer");var ZYR=new _.vS("videoDescriptionHeaderRenderer");var KXy=new _.vS("videoDescriptionYouchatSectionViewModel");_.Vt=_.DH("kevlar_watch_page_horizontal_margin",24);_.Pxo=_.DH("kevlar_watch_page_columns_top_padding",24);_.QDo=426+_.Vt*2;_.zC=_.DH("kevlar_watch_two_column_width_threshold",1E3);_.mqN=_.Vt*2;_.aqN=_.DH("kevlar_watch_secondary_width",402);_.TZx=_.DH("kevlar_watch_max_player_width",1280);_.OYx=_.DH("kevlar_watch_flexy_metadata_height",136);_.e25=_.mqN+310+_.Vt;_.NZz=_.mqN+360+_.Vt;var lqG={PAUSE_CHAT:18};var qpR;var wNN;var EL=function(){return _.J.apply(this,arguments)||this};
_.u(EL,_.J);EL.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
EL.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var G=_.D(this.data.button,_.uv);G&&(G.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Nh.Object.defineProperties(EL,{template:{configurable:!0,enumerable:!0,get:function(){if(wNN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;qpR===void 0&&(qpR=document.createElement("template"));var R=qpR;I.call(c,R.content.cloneNode(!0),G.content.firstChild);wNN=G}G=wNN;return G}}});
_.r([_.L(_.ll),_.h("design:type",Object)],EL.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({selectorArgs:["data.enabledEntityKey"],selector:Ojz,observer:"onEnabledChange"}),_.h("design:type",Boolean)],EL.prototype,"enabled",void 0);_.r([_.E(),_.h("design:type",Object)],EL.prototype,"data",void 0);_.r([_.Em({is:"yt-disableable-button-view-model",noInjection:!0})],EL);var FXN;var ntN;var vtR=["transVert01","transVert02","transVert03"],DqR="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),JR=function(){var G=_.J.apply(this,arguments)||this;G.emojiManager=_.bd;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};G.reactionBuckets=[];G.noEmojiIdentifier="NO_EMOJI";return G};
_.u(JR,_.J);_.P=JR.prototype;_.P.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.P.desktopFountainEmojiSizePxChanged=function(){_.eD(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.P.createUserReactionAnimation=function(G){this.createEmojiAnimation(G,!0)};
_.P.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var G;((G=this.data)==null?0:G.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Le("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.jn(this.emojiContainer.children)).forEach(function(c){c.remove()})};
_.P.detached=function(){this.cleanupFountain()};
_.P.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var G;this.reactionBuckets=_.rx.unsafeClone((G=this.emojiFountainData)==null?void 0:G.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.P.processEmojiBucket=function(G){var c=this;if(this.reactionBuckets&&!(G>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var I=this.reactionBuckets[G];this.generateEmojiAnimations(I);if(G<this.reactionBuckets.length-1){var R;if(I==null?0:(R=I.duration)==null?0:R.seconds)this.emojiBucketTimerId=setTimeout(function(){c.processEmojiBucket(G+1)},Number(I.duration.seconds)*1E3)}}};
_.P.generateEmojiAnimations=function(G){var c=this,I=this.getRandomEmojiIdFromBucketWithOverride(G);if(I&&I!==this.noEmojiIdentifier){var R=0;G.targetEps?(R=this.linearInterpolateBounded(1,20,100,12,G.emojiSizeIndex||0),this.createEmojiAnimation(I,!1,G.emojiAnimationMs,R),R=this.getEmojiDelayMsFromTargetEps(G.targetEps)):(this.createEmojiAnimation(I),R=this.getEmojiDelayMsFromDistribution(G.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){c.generateEmojiAnimations(G)},R)}};
_.P.getRandomEmojiIdFromBucketWithOverride=function(G){if(!(G&&G.reactionsData&&G.reactionsData.length&&G.totalReactions))return this.noEmojiIdentifier;for(var c=G.totalReactions,I=1,R=_.Q(G.reactionsData),Z=R.next();!Z.done;Z=R.next())Z=Z.value,(Z.reactionWeightOverride||Z.reactionWeightOverride===0)&&Z.reactionCount&&(c-=Z.reactionCount,I-=Z.reactionWeightOverride);R=!0;I<0&&(R=!1,c=G.totalReactions,I=1);if(R&&I>0&&c===0)if(I===1){Z=0;for(var K=_.Q(G.reactionsData),m=K.next();!m.done;m=K.next())m=
m.value,m.reactionCount&&m.reactionCount>0&&Z++;Z=1/Z;K=_.Q(G.reactionsData);for(m=K.next();!m.done;m=K.next())m.value.reactionWeightOverride=Z}else for(Z=1/(1-I),K=_.Q(G.reactionsData),m=K.next();!m.done;m=K.next())m=m.value,m.reactionWeightOverride&&(m.reactionWeightOverride*=Z);Z=Math.random();K=0;m=_.Q(G.reactionsData);for(var a=m.next();!a.done;a=m.next())if(a=a.value,a.reactionCount&&(K=(a.reactionWeightOverride||a.reactionWeightOverride===0)&&R?K+a.reactionWeightOverride:K+I*a.reactionCount/
c,K>Z&&(a.reactionCount--,G.totalReactions--,a=this.reactionItemToEmojiString(a),a!==this.noEmojiIdentifier)))return a;return this.noEmojiIdentifier};
_.P.reactionItemToEmojiString=function(G){if(G.unicodeEmojiId)return G.unicodeEmojiId;if(G.emoteId)return G.emoteId;if(G.videoReactionType)switch(G.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.P.createEmojiAnimation=function(G,c,I,R){c=c===void 0?!1:c;this.lastEmojiRequestedForTesting=G;var Z=G.startsWith("yt-icons:"),K=_.U7(this.emojiManager,G);if(K||Z){var m=document.createElement("emoji");m.classList.add("yt-emoji-fountain-view-model");m.classList.add(vtR[Math.floor(Math.random()*vtR.length)]);var a=document.createElement("div");a.classList.add("yt-emoji-fountain-view-model");a.classList.add("horizontal-container");a.classList.add(DqR[Math.floor(Math.random()*DqR.length)]);c?(I=document.createElement("div"),
I.classList.add("user-reaction-bubble"),I.classList.add("yt-emoji-fountain-view-model"),a.appendChild(I)):(I&&(m.style.animationDuration=I+"ms",a.style.animationDuration=I+"ms"),R&&(m.style.width=R+"px",m.style.height=R+"px"));Z?(Z=document.createElement("yt-icon"),Z.polymerController.icon=G,R&&(Z.style.width=R+"px",Z.style.height=R+"px"),G=Z):G=this.emojiManager.createEmoji(K,!1);G.classList.add("yt-emoji-fountain-view-model");a.appendChild(G);m.appendChild(a);this.emojiContainer.appendChild(m);
m.addEventListener("animationend",function(){m.remove()});
var O,N;if((O=this.data)==null?0:(N=O.loggingDirectives)==null?0:N.trackingParams)c=c?_.qj(183501):_.qj(183500),e1R(this.data.loggingDirectives.trackingParams,c),_.vxT(c);setTimeout(function(){m&&m.remove()},2E3)}};
_.P.getEmojiDelayMsFromDistribution=function(G){return Math.random()*(G||1)*1E3};
_.P.getEmojiDelayMsFromTargetEps=function(G){return Math.random()*2*(1/G)*1E3};
_.P.linearInterpolateBounded=function(G,c,I,R,Z){Z=Math.min(Math.max(Z,G),I);return(c*(I-Z)+R*(Z-G))/(I-G)};
JR.prototype.onEmojiFountainDataEntityUpdate=JR.prototype.onEmojiFountainDataEntityUpdate;JR.prototype.desktopFountainEmojiSizePxChanged=JR.prototype.desktopFountainEmojiSizePxChanged;JR.prototype.isActiveChanged=JR.prototype.isActiveChanged;_.r([_.E(),_.h("design:type",_.op)],JR.prototype,"emojiManager",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],JR.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],JR.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],JR.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(G,c){return _.a6(G.entities,"emojiFountainDataEntity",c)}}),
_.h("design:type",Object)],JR.prototype,"emojiFountainData",void 0);_.r([_.E(),_.h("design:type",Boolean)],JR.prototype,"isActive",void 0);_.r([_.wD("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JR.prototype,"isActiveChanged",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],JR.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",String)],JR.prototype,"lastEmojiRequestedForTesting",void 0);
_.r([_.E({value:function(){return _.DH("desktop_fountain_emoji_size_px",20)}}),
_.h("design:type",Number)],JR.prototype,"desktopFountainEmojiSizePx",void 0);_.r([_.wD("desktopFountainEmojiSizePx"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JR.prototype,"desktopFountainEmojiSizePxChanged",null);_.r([_.nH("#emoji-container"),_.h("design:type",HTMLElement)],JR.prototype,"emojiContainer",void 0);
_.r([_.wD("emojiFountainData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JR.prototype,"onEmojiFountainDataEntityUpdate",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],JR);
_.B(JR,"yt-emoji-fountain-view-model",function(){if(ntN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;FXN===void 0&&(FXN=document.createElement("template"));var R=FXN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ntN=G}G=ntN;return G},{mode:0});var otG;var Uqz;var Wg=function(){return _.J.apply(this,arguments)||this};
_.u(Wg,_.J);Wg.prototype.onChoiceChanged=function(){this.data&&_.eD(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Wg.prototype.onChoiceChanged=Wg.prototype.onChoiceChanged;_.r([_.E(),_.h("design:type",Object)],Wg.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wg.prototype,"onChoiceChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Wg);
_.B(Wg,"yt-live-chat-banner-poll-choice",function(){if(Uqz===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;otG===void 0&&(otG=document.createElement("template"));var R=otG;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Uqz=G}G=Uqz;return G},{mode:0});var udy;var bYS;var i7=function(){var G=_.J.apply(this,arguments)||this;G.modern=_.v("web_button_rework_with_live");G.small=!1;return G};
_.u(i7,_.J);i7.prototype.computeIsSmall=function(){var G;return((G=this.buttonOverrides)==null?void 0:G.size)==="S"};
i7.prototype.computeId=function(){return this.data&&this.data.targetId};
_.r([_.L(_.qi.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],i7.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",String)],i7.prototype,"id",void 0);_.r([_.E(),_.h("design:type",Object)],i7.prototype,"buttonOverrides",void 0);_.r([_.E(),_.h("design:type",Object)],i7.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],i7.prototype,"modern",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.h("design:type",Object)],i7.prototype,"small",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"yt-live-chat-button"})],i7);
_.B(i7,"yt-live-chat-button",function(){if(bYS===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;udy===void 0&&(udy=document.createElement("template"));var R=udy;I.call(c,R.content.cloneNode(!0),G.content.firstChild);bYS=G}G=bYS;return G},{mode:0});var kPS;var sDz;var f3=function(){var G=_.J.apply(this,arguments)||this;G.inCollapsedBanner=!1;G.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};G.questionButtonOverrides={style:"mono",type:"filled"};return G};
_.u(f3,_.J);_.P=f3.prototype;_.P.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.P.onContextMenuButtonClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
_.P.onYtRendererstamperFinished=function(){this.menuButton=_.Q1(this.hostElement).querySelector("#menu-button")};
_.P.dataChanged=function(){var G,c;if((c=_.D((G=this.data)==null?void 0:G.overflowMenuButton,_.vE))==null?0:c.command)this.data.contextMenuEndpoint=_.D(this.data.overflowMenuButton,_.vE).command};
_.P.onButtonClick=function(){var G,c=_.D((G=this.data)==null?void 0:G.askQuestionButton,_.vE);if(c){if(c.trackingParams&&(G=_.kC(c.trackingParams))){var I=_.k0();I&&_.jW(I,G)}_.Xl(this.hostElement,"innertube-command",c.command)}};
f3.prototype.onYtRendererstamperFinished=f3.prototype.onYtRendererstamperFinished;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],f3.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],f3.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E({observer:"dataChanged"}),_.h("design:type",Object)],f3.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],f3.prototype,"inCollapsedBanner",void 0);_.r([_.E(),_.h("design:type",Object)],f3.prototype,"buttonOverrides",void 0);_.r([_.E(),_.h("design:type",Object)],f3.prototype,"questionButtonOverrides",void 0);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],f3.prototype,"onYtRendererstamperFinished",null);
_.r([_.Jc({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],f3);
_.B(f3,"yt-live-chat-call-for-questions-renderer",function(){if(sDz===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;kPS===void 0&&(kPS=document.createElement("template"));var R=kPS;I.call(c,R.content.cloneNode(!0),G.content.firstChild);sDz=G}G=sDz;return G},{mode:0});var LXS={};LXS.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var G=this;window.requestAnimationFrame(function(){G.restoreFocusNode_||(G.restoreFocusNode_=document.activeElement);var c=_.X7A(G.hostElement);c.length&&c[c.length-1].focus()})},
isAttachedChanged_:function(G,c){G?this.focusChild_():c&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(G){this.hidden||_.CE(G).indexOf(this.hostElement)!==-1||(G.stopPropagation(),this.focusChild_())}};var AaN;var $q_;var Bg=function(){return _.J.apply(this,arguments)||this};
_.u(Bg,_.J);Bg.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Bg.prototype.onClick=function(G){G.target!==this.confirmButton&&G.target!==this.cancelButton&&(this.hidden=!0)};
_.r([_.nH("#confirm_button"),_.h("design:type",Object)],Bg.prototype,"confirmButton",void 0);_.r([_.nH("#cancel_button"),_.h("design:type",Object)],Bg.prototype,"cancelButton",void 0);_.r([_.E(),_.h("design:type",Spx)],Bg.prototype,"data",void 0);_.r([_.E({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],Bg.prototype,"hidden",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(LXS.YtLiveChatDialogBehavior),_.h("design:type",Object)],Bg.prototype,"ytLiveChatDialogBehavior",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Bg);
var Spx=_.B(Bg,"yt-live-chat-dialog-renderer",function(){if($q_===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;AaN===void 0&&(AaN=document.createElement("template"));var R=AaN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);$q_=G}G=$q_;return G},{mode:0});var pNG;var MKx,VKS=function(){if(MKx!==void 0)return MKx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;pNG===void 0&&(pNG=document.createElement("template"));var R=pNG;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return MKx=G};var z2f;var Etx;var ro=function(){var G=_.J.apply(this,arguments)||this;G.tooltip=null;G.data=null;G.id="";G.active=!1;G.icon="";G.disabled=!1;G.showTooltip=!1;G.useToggledActiveState=!0;G.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return G};
_.u(ro,_.J);_.P=ro.prototype;
_.P.dataChanged=function(){var G;((G=this.data)==null?0:G.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.Om)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var c;if((c=this.data)==null?0:c.disabled)this.disabled=!0};
_.P.computeId=function(G){return G};
_.P.computeIcon=function(G,c){if(!G)return"";if(this.useToggledActiveState)return"yt-icons:"+G.toLowerCase();var I,R;return c&&((I=this.data)==null?0:(R=I.toggledIcon)==null?0:R.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+G.toLowerCase()};
_.P.logPDGEntryPoint=function(){_.ZbB(_.OU("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.P.immediatelyShowTooltip=function(){var G=_.Q1(this.hostElement).querySelector("#tooltip");G.animationDelay=0;G.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};G.show()};
_.P.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.P.onClick=function(G){var c;((c=this.data)==null?0:c.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),G.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Xl(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.P.computeShowTooltip=function(G,c){return!!(G&&G.tooltip&&c)};
_.P.maybeUpdateTooltipText=function(){var G=this,c;if((c=this.data)==null?0:c.tooltip){var I=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Om)(G.tooltip).textContent=I},250)}};
_.P.handleLiveChatActions=function(G){var c=this;G.length&&(this.id!=="creator"&&this.id!=="product-picker"||G.forEach(function(I){(I=c.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",I))&&I.durationSec===I.fullDurationSec&&c.startBubble(c.colorFromDecimal(I.startBackgroundColor))}))};
_.P.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.P.startBubble=function(G){_.eD(this.hostElement,{"--yt-live-chat-monetization-button-glow":G});this.hostElement.setAttribute("bubble","")};
_.P.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.P.colorFromDecimal=function(G){typeof G==="string"&&(G=Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
ro.prototype.onAnimationEnd=ro.prototype.onAnimationEnd;ro.prototype.disabledChanged=ro.prototype.disabledChanged;ro.prototype.dataChanged=ro.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],ro.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.qi.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],ro.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ro.prototype,"data",void 0);_.r([_.E({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",Object)],ro.prototype,"id",void 0);_.r([_.E({notify:!0,reflectToAttribute:!0}),_.h("design:type",Object)],ro.prototype,"active",void 0);
_.r([_.E({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.h("design:type",Object)],ro.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ro.prototype,"disabled",void 0);_.r([_.E({computed:"computeShowTooltip(data, disabled)"}),_.h("design:type",Object)],ro.prototype,"showTooltip",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],ro.prototype,"useToggledActiveState",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ro.prototype,"dataChanged",null);_.r([_.wD("disabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ro.prototype,"disabledChanged",null);_.r([_.qY("animationend"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],ro.prototype,"onAnimationEnd",null);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],ro);
_.B(ro,"yt-live-chat-icon-toggle-button-renderer",function(){if(Etx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;z2f===void 0&&(z2f=document.createElement("template"));var R=z2f;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Etx=G}G=Etx;return G},{mode:0});var Jaz;var WXx;var j2=function(){return _.J.apply(this,arguments)||this};
_.u(j2,_.J);j2.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r([_.E(),_.h("design:type",Object)],j2.prototype,"data",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],j2);
_.B(j2,"yt-live-chat-message-input-prompt-header-renderer",function(){if(WXx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Jaz===void 0&&(Jaz=document.createElement("template"));var R=Jaz;I.call(c,R.content.cloneNode(!0),G.content.firstChild);WXx=G}G=WXx;return G},{mode:0});var iYy;var fqT;var BZx;var ra_;var jDN;var xqz;var tKf=function(){return _.J.apply(this,arguments)||this};
_.u(tKf,_.J);_.r([_.E(),_.h("design:type",Object)],tKf.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],tKf);
_.B(tKf,"yt-live-chat-message-subtext-renderer",function(){if(xqz===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;jDN===void 0&&(jDN=document.createElement("template"));var R=jDN;I.call(c,R.content.cloneNode(!0),G.content.firstChild);xqz=G}G=xqz;return G},{mode:0});var xH=function(){var G=_.J.apply(this,arguments)||this;G.subtextOnBottom=!1;G.buttonOverrides={style:"mono",type:"tonal"};return G};
_.u(xH,_.J);xH.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xH.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],xH.prototype,"subtextOnBottom",void 0);_.r([_.E(),_.h("design:type",Object)],xH.prototype,"buttonOverrides",void 0);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],xH);
_.B(xH,"yt-live-chat-message-renderer",function(){if(ra_===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;BZx===void 0&&(BZx=document.createElement("template"));var R=BZx;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ra_=G}G=ra_;return G},{mode:0});var h2o;var dqG;var tR=function(){var G=_.J.apply(this,arguments)||this;G.isRemovable=!1;G.hasPrefilledText=!1;G.isInputDirty=!1;G.overCharacterLimit=!1;G.underCharacterLimit=!1;G.showErrorMessage=!1;return G};
_.u(tR,_.J);_.P=tR.prototype;_.P.computeId=function(){return this.data.id};
_.P.computeInputData=function(){return this.data.inputData};
_.P.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.P.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.P.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.P.getLiveChatRichMessageInput=function(){return _.Q1(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.P.clearInput=function(){_.Q1(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.P.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.P.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.P.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.P.handleTextInputCharCountChanged=function(G){G=G.detail&&G.detail.characterCount;G!==void 0&&(this.characterCount=G,G!==0&&(this.isInputDirty=!0))};
_.P.onInputFocusOut=function(){this.isInputDirty=!0};
_.P.onClickCloseButton=function(){_.Xl(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
tR.prototype.handleTextInputCharCountChanged=tR.prototype.handleTextInputCharCountChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tR.prototype,"data",void 0);_.r([_.E({computed:"computeId(data.id)"}),_.h("design:type",String)],tR.prototype,"id",void 0);_.r([_.E({computed:"computeInputData(data.inputData)"}),_.h("design:type",Object)],tR.prototype,"inputData",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.h("design:type",Object)],tR.prototype,"isRemovable",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.h("design:type",Object)],tR.prototype,"hasPrefilledText",void 0);_.r([_.E({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.h("design:type",Number)],tR.prototype,"charactersRemaining",void 0);
_.r([_.E(),_.h("design:type",Number)],tR.prototype,"characterCount",void 0);_.r([_.E(),_.h("design:type",Object)],tR.prototype,"isInputDirty",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.h("design:type",Object)],tR.prototype,"overCharacterLimit",void 0);_.r([_.E({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.h("design:type",Object)],tR.prototype,"underCharacterLimit",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.h("design:type",Object)],tR.prototype,"showErrorMessage",void 0);_.r([_.qY("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],tR.prototype,"handleTextInputCharCountChanged",null);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],tR);
_.B(tR,"yt-live-chat-poll-editor-input",function(){if(dqG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;h2o===void 0&&(h2o=document.createElement("template"));var R=h2o;I.call(c,R.content.cloneNode(!0),G.content.firstChild);dqG=G}G=dqG;return G},{mode:0});var Cxf;var HY5;var XNz={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},hR=function(){var G=_.J.apply(this,arguments)||this;G.modern=_.v("web_button_rework_with_live");G.closeButtonOverrides={iconPosition:"icon-only"};G.startButtonOverrides={style:"mono",type:"filled"};G.addOptionButtonOverrides={style:"mono",type:"text"};return G};
_.u(hR,_.J);_.P=hR.prototype;
_.P.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.P.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var G;_.D((G=this.data)==null?void 0:G.startButton,_.vE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.computeId=function(){return this.data&&this.data.id||""};
_.P.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.P.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.P.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.P.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.P.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var G=0;G<this.pollEditorInfoWithDefaults.minPollOptions;G++)this.addPollOptionData()};
_.P.getIsValidPoll=function(){var G=this;if(!this.pollEditorInfoWithDefaults)return!1;var c=this.pollEditorInfoWithDefaults,I=c.minPollOptionChars,R=c.maxPollOptionChars,Z=c.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>c.maxPollQuestionChars)return!1;c=_.Q1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(c).every(function(K,m){K=K.characterCount;!K&&Z[m]&&(K=G.ytRendererBehavior.getSimpleString(Z[m]).length);return K!==void 0&&K>=I&&K<=R})};
_.P.isValidPollChanged=function(){var G;_.D((G=this.data)==null?void 0:G.startButton,_.vE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.addPollOptionData=function(){var G=this.pollEditorInfoWithDefaults,c=G.maxPollOptionChars,I=G.optionPlaceholderText,R=G.customOptionPlaceholderText,Z=G.pollOptionData;this.currentNumPollOptions>=G.maxPollOptions||(G={liveChatPollOptionInput:{inputData:{placeholder:R[this.currentNumPollOptions]||I,maxCharacterLimit:c},maxCharacterLimit:c,minCharacterLimit:G.minPollOptionChars,hasPrefilledText:!!R[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=G.minPollOptions}},Z.charCountErrorText&&
(G.liveChatPollOptionInput.charCountErrorText=Z.charCountErrorText),Z.charsRemainingAltLabel&&(G.liveChatPollOptionInput.charsRemainingAltLabel=Z.charsRemainingAltLabel),Z.removeOptionAltText&&(G.liveChatPollOptionInput.removeOptionAltText=Z.removeOptionAltText),this.push("pollOptionsData",G),Z=Array.from(_.Q1(_.Q1(this.hostElement).querySelector("#poll-options")).children),Z.forEach(function(K,m){K.polymerController.set("data.id",m)}),_.Q1(Z[Z.length-1]).querySelector("#input").focus())};
_.P.getPollOptionInputValues=function(){var G=this,c=[],I=_.Q1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),R=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(I).forEach(function(Z,K){var m=null;Z=Z.getLiveChatRichMessageInput();var a;(Z==null?0:(a=Z.textSegments)==null?0:a.length)?m=_.ju(Z):R[K]&&(m=G.formattedStringToLiveChatRichMessageInput(R[K]));c.push(m)});
return c};
_.P.requestCreateAndStartPoll=function(G){var c=this.getPollOptionInputValues();if(!c.some(function(R){return!R})){c={optionText:c};
var I=_.Q1(_.Q1(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.liveChatRichMessageInput&&(c.questionText=_.ju(I.liveChatRichMessageInput));_.Gs(this.hostElement,[G,c])}};
_.P.selectedChanged=function(){if(this.selected){var G=_.Q1(_.Q1(this.hostElement).querySelector("#start-button")).firstElementChild;if(G){var c;(c=_.Q1(G).querySelector("#button")||_.m9(G).querySelector("button"))==null||c.focus()}}};
_.P.handleTextInputChanged=function(G){var c;((c=G.target)==null?void 0:c.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=G.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.P.handleStartButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),(G=G.detail.args[1])&&this.requestCreateAndStartPoll(G))};
_.P.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(G){this.createPollRequestInFlight=!1;(G=G.detail&&G.detail.data)&&G.success&&(_.Xl(this.hostElement,"picker-cancelled"),_.ym(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.P.onCloseClick=function(){_.Xl(this.hostElement,"picker-cancelled");_.ym(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.P.handlePollEditorInputClosed=function(G){var c=this.pollOptionsData.findIndex(function(I){return I.liveChatPollOptionInput.id===G.detail.id});
this.splice("pollOptionsData",c,1);this.isValidPoll=this.getIsValidPoll()};
_.P.onPickerCancelled=function(){this.reset()};
_.P.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var G=_.Q1(_.Q1(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.setLiveChatRichMessageInput(null);if(G=_.Q1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){G=_.Q(Array.from(G));for(var c=G.next();!c.done;c=G.next())c.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.P.formattedStringToLiveChatRichMessageInput=function(G){return G.simpleText?{text_segments:[G.simpleText]}:{text_segments:G.runs}};
_.Nh.Object.defineProperties(hR.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(XNz,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
hR.prototype.onPickerCancelled=hR.prototype.onPickerCancelled;hR.prototype.handlePollEditorInputClosed=hR.prototype.handlePollEditorInputClosed;hR.prototype.handleServiceRequestCompleted=hR.prototype.handleServiceRequestCompleted;hR.prototype.handleServiceRequestSent=hR.prototype.handleServiceRequestSent;hR.prototype.handleTextInputChanged=hR.prototype.handleTextInputChanged;hR.prototype.selectedChanged=hR.prototype.selectedChanged;hR.prototype.isValidPollChanged=hR.prototype.isValidPollChanged;
hR.prototype.shouldInitializePollChanged=hR.prototype.shouldInitializePollChanged;hR.prototype.dataChanged=hR.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hR.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],hR.prototype,"modern",void 0);
_.r([_.E(),_.h("design:type",Object)],hR.prototype,"closeButtonOverrides",void 0);_.r([_.E(),_.h("design:type",Object)],hR.prototype,"startButtonOverrides",void 0);_.r([_.E(),_.h("design:type",Object)],hR.prototype,"addOptionButtonOverrides",void 0);_.r([_.E({computed:"computeId(data.id)",reflectToAttribute:!0}),_.h("design:type",String)],hR.prototype,"id",void 0);_.r([_.E({value:function(){return[]}}),
_.h("design:type",Array)],hR.prototype,"pollOptionsData",void 0);_.r([_.A("pollEditorInfoWithDefaults"),_.h("design:type",Object),_.h("design:paramtypes",[])],hR.prototype,"pollQuestionData",null);_.r([_.E({value:0}),_.h("design:type",Number)],hR.prototype,"pollQuestionCharacterCount",void 0);_.r([_.A("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],hR.prototype,"pollQuestionCharactersRemaining",null);
_.r([_.E({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.h("design:type",Boolean)],hR.prototype,"overQuestionCharacterLimit",void 0);_.r([_.A("data.pollEditorInfo"),_.h("design:type",Object),_.h("design:paramtypes",[])],hR.prototype,"pollEditorInfoWithDefaults",null);_.r([_.E({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.h("design:type",Number)],hR.prototype,"currentNumPollOptions",void 0);
_.r([_.E({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.h("design:type",Boolean)],hR.prototype,"hasMaxNumPollOptions",void 0);_.r([_.A("pollEditorInfoWithDefaults","pollOptionsData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],hR.prototype,"shouldInitializePoll",null);_.r([_.E(),_.h("design:type",Object)],hR.prototype,"isValidPoll",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],hR.prototype,"createPollRequestInFlight",void 0);_.r([_.E(),_.h("design:type",Object)],hR.prototype,"selected",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.h("design:type",Boolean)],hR.prototype,"showQuestionErrorMessage",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hR.prototype,"dataChanged",null);_.r([_.wD("shouldInitializePoll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hR.prototype,"shouldInitializePollChanged",null);_.r([_.wD("isValidPoll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hR.prototype,"isValidPollChanged",null);
_.r([_.wD("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hR.prototype,"selectedChanged",null);_.r([_.qY("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],hR.prototype,"handleTextInputChanged",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hR.prototype,"handleServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],hR.prototype,"handleServiceRequestCompleted",null);
_.r([_.qY("yt-live-chat-poll-editor-input-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],hR.prototype,"handlePollEditorInputClosed",null);_.r([_.qY("picker-cancelled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hR.prototype,"onPickerCancelled",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],hR);
_.B(hR,"yt-live-chat-poll-editor-panel-renderer",function(){if(HY5===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Cxf===void 0&&(Cxf=document.createElement("template"));var R=Cxf;I.call(c,R.content.cloneNode(!0),G.content.firstChild);HY5=G}G=HY5;return G},{mode:0});var yax;var gtx;var C3=function(){return _.J.apply(this,arguments)||this};
_.u(C3,_.J);C3.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
C3.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Nh.Object.defineProperties(C3.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var G,c;return(G=this.data)==null?void 0:(c=G.title)==null?void 0:c.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.WI((G=this.data)==null?void 0:G.onTapCommand)}}});
_.r([_.L(_.Cx.YtEndpointBehavior),_.h("design:type",Object)],C3.prototype,"ytEndpointBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],C3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],C3.prototype,"itemId",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],C3.prototype,"hasPromotion",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],C3.prototype,"innertubeCommand",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],C3);
_.B(C3,"yt-live-chat-product-picker-panel-item-view-model",function(){if(gtx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;yax===void 0&&(yax=document.createElement("template"));var R=yax;I.call(c,R.content.cloneNode(!0),G.content.firstChild);gtx=G}G=gtx;return G},{mode:0});var YpT;var Gmx;var Hg=function(){var G=_.J.apply(this,arguments)||this;G.id="product-picker";G.selected=!1;G.closeButtonId="close-button";G.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return G};
_.u(Hg,_.J);_.P=Hg.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var G=_.Q1(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");G.length&&G[0].focus()};
_.P.onCloseBuyFlow=function(){_.Xl(this.hostElement,"picker-cancelled")};
_.P.onCloseClick=function(){_.Xl(this.hostElement,"picker-cancelled");var G;((G=this.data)==null?0:G.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.D(this.data.closeButton,_.uv))};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.Xl(this.hostElement,"picker-cancelled")};
Hg.prototype.observeSelected=Hg.prototype.observeSelected;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Hg.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Hg.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hg.prototype,"id",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Hg.prototype,"selected",void 0);_.r([_.E(),_.h("design:type",Object)],Hg.prototype,"closeButtonId",void 0);_.r([_.wD("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hg.prototype,"observeSelected",null);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Hg);
_.B(Hg,"yt-live-chat-product-picker-panel-view-model",function(){if(Gmx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;YpT===void 0&&(YpT=document.createElement("template"));var R=YpT;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Gmx=G}G=Gmx;return G},{mode:0});var c8o;var I0_;var Xp=function(){var G=_.J.apply(this,arguments)||this;G.iconId="";G.icon="";G.disabled=!1;G.systemIcons=_.v("kevlar_system_icons");return G};
_.u(Xp,_.J);_.P=Xp.prototype;_.P.computeIconId=function(G){return G&&G.icon&&G.icon.iconType?G.icon.iconType.toLowerCase():""};
_.P.computeIcon=function(G){return G&&G.icon&&G.icon.iconType?(G=G.icon.iconType.toLowerCase(),(G.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+G):""};
_.P.computeDisabled=function(G){return!!G};
_.P.computeCommand=function(G,c){return c?void 0:G};
_.P.computeTooltip=function(G,c){return c&&G?G:""};
_.P.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Nh.Object.defineProperties(Xp.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G="",c,I,R;if((c=this.data)==null?0:(I=c.text)==null?0:(R=I.runs)==null?0:R.length)G=this.data.text.runs[0].text||"";else{var Z,K;if((Z=this.data)==null?0:(K=Z.text)==null?0:K.simpleText)G=this.data.text.simpleText}var m,a,O;if((m=this.data)==null?0:(a=m.subtext)==null?0:(O=a.runs)==null?0:O.length)G&&(G+=". "),G+=this.data.subtext.runs[0].text||"";else{var N,q;if((N=this.data)==null?0:(q=N.subtext)==
null?0:q.simpleText)G&&(G+=". "),G+=this.data.subtext.simpleText}return G}}});
_.r([_.L(_.Cx.YtEndpointBehavior),_.h("design:type",Object)],Xp.prototype,"ytEndpointBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Xp.prototype,"data",void 0);_.r([_.E({computed:"computeIconId(data)",reflectToAttribute:!0}),_.h("design:type",Object)],Xp.prototype,"iconId",void 0);
_.r([_.E({computed:"computeIcon(data)",reflectToAttribute:!0}),_.h("design:type",Object)],Xp.prototype,"icon",void 0);_.r([_.E({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.h("design:type",Object)],Xp.prototype,"disabled",void 0);_.r([_.E({computed:"computeCommand(data.command, disabled)"}),_.h("design:type",Object)],Xp.prototype,"command",void 0);_.r([_.E({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.h("design:type",String)],Xp.prototype,"tooltip",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Xp.prototype,"systemIcons",void 0);_.r([_.A("data.text","data.subtext"),_.E(),_.h("design:type",String),_.h("design:paramtypes",[])],Xp.prototype,"ariaLabel",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Xp);
_.B(Xp,"yt-live-chat-product-button-renderer",function(){if(I0_===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;c8o===void 0&&(c8o=document.createElement("template"));var R=c8o;I.call(c,R.content.cloneNode(!0),G.content.firstChild);I0_=G}G=I0_;return G},{mode:0});var RKT;var ZFG;var go=function(){var G=_.J.apply(this,arguments)||this;G.selected=!1;G.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return G};
_.u(go,_.J);_.P=go.prototype;_.P.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.computeId=function(G){return G.id||""};
_.P.onCloseClick=function(){_.Xl(this.hostElement,"picker-cancelled")};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var G=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");G.length&&G[0].focus()};
_.P.onCloseBuyFlow=function(){_.Xl(this.hostElement,"picker-cancelled")};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.Xl(this.hostElement,"picker-cancelled")};
go.prototype.observeSelected=go.prototype.observeSelected;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],go.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],go.prototype,"data",void 0);
_.r([_.E({computed:"computeId(data)",reflectToAttribute:!0}),_.h("design:type",String)],go.prototype,"id",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],go.prototype,"selected",void 0);_.r([_.wD("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],go.prototype,"observeSelected",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],go);
_.B(go,"yt-live-chat-product-picker-renderer",function(){if(ZFG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;RKT===void 0&&(RKT=document.createElement("template"));var R=RKT;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ZFG=G}G=ZFG;return G},{mode:0});var KIJ;var PiJ;var QfJ;var mhT;var YH=function(){return _.J.apply(this,arguments)||this};
_.u(YH,_.J);YH.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()};
YH.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
YH.prototype.created=function(){this.ids={background:_.Xb(),maskOne:_.Xb(),maskTwo:_.Xb(),gradient:_.Xb(),largeBackground:_.Xb(),largeGradientOne:_.Xb(),largeGradientTwo:_.Xb(),largeGradientPath:_.Xb()}};
YH.prototype.maybeLoadAnimationBackground=YH.prototype.maybeLoadAnimationBackground;_.r([_.E({value:!1}),_.h("design:type",Boolean)],YH.prototype,"useLargeBackground",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],YH.prototype,"useAnimationBackground",void 0);_.r([_.E({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.h("design:type",Boolean)],YH.prototype,"useRegularBackground",void 0);
_.r([_.E(),_.h("design:type",Object)],YH.prototype,"ids",void 0);_.r([_.E(),_.h("design:type",Object)],YH.prototype,"lottieAnimation",void 0);_.r([_.nH("#animation-background"),_.h("design:type",HTMLDivElement)],YH.prototype,"animationBackground",void 0);_.r([_.wD("useAnimationBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YH.prototype,"maybeLoadAnimationBackground",null);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],YH);
_.B(YH,"yt-live-interactivity-component-background",function(){if(mhT===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;QfJ===void 0&&(QfJ=document.createElement("template"));var R=QfJ;I.call(c,R.content.cloneNode(!0),G.content.firstChild);mhT=G}G=mhT;return G},{mode:0});var Gn=function(){var G=_.J.apply(this,arguments)||this;G.characterCount=0;G.showInputErrorMessage=!1;G.startQnaRequestInFlight=!1;G.modern=_.v("web_button_rework_with_live");G.buttonOverrides={style:"mono",type:"filled"};G.closeButtonOverrides={iconPosition:"icon-only"};G.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return G};
_.u(Gn,_.J);_.P=Gn.prototype;
_.P.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.P.onCharacterCountChanged=function(G){var c,I,R,Z,K=(I=_.D(this==null?void 0:(c=this.data)==null?void 0:c.creatorCallForQuestions,f6x))==null?void 0:(R=I.inputField)==null?void 0:(Z=R.liveChatTextInputFieldRenderer)==null?void 0:Z.maxCharacterLimit,m,a;K!=null&&(G==null?void 0:(m=G.detail)==null?void 0:m.characterCount)!=null&&_.D(this==null?void 0:(a=this.data)==null?void 0:a.startButton,_.vE)&&(c=G.detail.characterCount>K,this.set("data.startButton.buttonRenderer.isDisabled",G.detail.characterCount===
0||c),this.showInputErrorMessage=c)};
_.P.onCloseClick=function(){_.Xl(this.hostElement,"picker-cancelled");_.ym(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onPickerCancelled=function(){var G=_.Q1(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.setLiveChatRichMessageInput(null)};
_.P.handleOpenQnaStartPanel=function(){var G=_.Q1(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.focus()};
_.P.handleStartButtonAction=function(G){var c=this;if(G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),G=G.detail.args[1])){var I=_.Q1(this.hostElement).querySelector("#qna-creator-text-input-field"),R;(I==null?0:(R=I.liveChatRichMessageInput)==null?0:R.textSegments)&&I.liveChatRichMessageInput.textSegments.length!==0&&(R={rich_message:_.ju(I.liveChatRichMessageInput)},_.Gs(this.hostElement,[G,R]).then(function(){_.Xl(c.hostElement,"picker-cancelled")}))}};
_.P.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(G){var c;G=G==null?void 0:(c=G.detail)==null?void 0:c.data;(G==null?0:G.actions)&&G.actions.length>0?this.startQnaRequestInFlight=!1:_.ym(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Gn.prototype.handleServiceRequestError=Gn.prototype.handleServiceRequestError;Gn.prototype.handleServiceRequestCompleted=Gn.prototype.handleServiceRequestCompleted;Gn.prototype.handleServiceRequestSent=Gn.prototype.handleServiceRequestSent;Gn.prototype.onPickerCancelled=Gn.prototype.onPickerCancelled;Gn.prototype.onCharacterCountChanged=Gn.prototype.onCharacterCountChanged;_.r([_.E(),_.h("design:type",Object)],Gn.prototype,"characterCount",void 0);
_.r([_.E(),_.h("design:type",Object)],Gn.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Gn.prototype,"showInputErrorMessage",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Gn.prototype,"startQnaRequestInFlight",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Gn.prototype,"modern",void 0);_.r([_.E(),_.h("design:type",Object)],Gn.prototype,"buttonOverrides",void 0);
_.r([_.E(),_.h("design:type",Object)],Gn.prototype,"closeButtonOverrides",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],Gn.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.L(_.k4.YtLiveChatItemBehavior),_.h("design:type",_.s7)],Gn.prototype,"ytLiveChatItemBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Gn.prototype,"ytActionHandlerBehavior",void 0);_.r([_.qY("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Gn.prototype,"onCharacterCountChanged",null);_.r([_.qY("picker-cancelled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gn.prototype,"onPickerCancelled",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gn.prototype,"handleServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Gn.prototype,"handleServiceRequestCompleted",null);
_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Gn.prototype,"handleServiceRequestError",null);_.r([_.Jc({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Gn);
_.B(Gn,"yt-live-chat-qna-start-panel-renderer",function(){if(PiJ===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;KIJ===void 0&&(KIJ=document.createElement("template"));var R=KIJ;I.call(c,R.content.cloneNode(!0),G.content.firstChild);PiJ=G}G=PiJ;return G},{mode:0});var a0T;var Tcz;var cG=function(){return _.J.apply(this,arguments)||this};
_.u(cG,_.J);cG.prototype.dismiss=function(){_.Xl(this.hostElement,"yt-live-chat-error-message-dismiss")};
cG.prototype.edit=function(){_.Xl(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.r([_.E(),_.h("design:type",Object)],cG.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],cG);
_.B(cG,"yt-live-chat-text-actions-error-message-renderer",function(){if(Tcz===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;a0T===void 0&&(a0T=document.createElement("template"));var R=a0T;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Tcz=G}G=Tcz;return G},{mode:0});var OFR;var eKf;var Ncf;var l0x;var IV=function(){var G=_.J.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.u(IV,_.J);IV.prototype.sendReaction=function(){var G,c,I=((G=this.data)==null?void 0:G.emojiId)||((c=this.data)==null?void 0:c.emoteId),R;I&&((R=this.data)==null?0:R.shouldTriggerAnimation)&&_.ym(this.hostElement,"yt-create-user-reaction-animation",[I]);var Z;(G=_.WI((Z=this.data)==null?void 0:Z.onTap))&&_.qC(G,this.hostElement);this.showNewnessDot&&_.ym(this.hostElement,"yt-hide-newness-dot")};
IV.prototype.onClick=function(G){(!G||G.clientX||G.clientY)&&this.sendReaction()};
IV.prototype.onKeyDown=function(G){G.key!=="Enter"&&G.key!==" "||G.repeat||this.sendReaction()};
_.Nh.Object.defineProperties(IV.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var G,c;return!!(((G=this.data)==null?0:G.emojiId)||((c=this.data)==null?0:c.emoteId))}}});
_.r([_.E(),_.h("design:type",Object)],IV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],IV.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",Object)],IV.prototype,"newnessDotEligible",void 0);_.r([_.A("data.maybeShowNewnessDot"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],IV.prototype,"showNewnessDot",null);_.r([_.A("data.emojiId","data.emoteId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],IV.prototype,"useYtImage",null);
_.r([_.Em({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],IV);
_.B(IV,"yt-reaction-control-panel-button-view-model",function(){if(l0x===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Ncf===void 0&&(Ncf=document.createElement("template"));var R=Ncf;I.call(c,R.content.cloneNode(!0),G.content.firstChild);l0x=G}G=l0x;return G},{mode:0});var q$N;var wbo;var RV=function(){var G=_.J.apply(this,arguments)||this;G.reactionControlPanelExpanded=!1;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.u(RV,_.J);_.P=RV.prototype;_.P.expandedButtonsChanged=function(){var G,c;_.eD(this.hostElement,{"--expanded-buttons-height":((c=(G=this.expandedButtonsData)==null?void 0:G.length)!=null?c:0)*36+"px"})};
_.P.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.P.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.P.onMouseLeave=function(){var G=this;this.collapseTimer=setTimeout(function(){G.reactionControlPanelExpanded=!1},500)};
_.P.onFocusIn=function(){this.onMouseEnter()};
_.P.onFocusOut=function(){this.onMouseLeave()};
_.P.onCollapsedButtonFocusIn=function(){var G=this;setTimeout(function(){var c;(c=G.expandedButtons.querySelector("button"))==null||c.focus()},100)};
_.P.onCollapsedButtonFocusOut=function(G){G.stopPropagation()};
_.Nh.Object.defineProperties(RV.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var G,c;return _.rx.unsafeClone((G=this.liveReactionsData)==null?void 0:G.emojiButtonData)||((c=this.data)==null?void 0:c.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((G=this.data)==null||!G.maybeShowNewnessDot)}}});
RV.prototype.expandedButtonsChanged=RV.prototype.expandedButtonsChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],RV.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],RV.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RV.prototype,"reactionControlPanelExpanded",void 0);_.r([_.E({selectorArgs:["data.liveReactionsDataEntityKey"],selector:TJ6}),_.h("design:type",Object)],RV.prototype,"liveReactionsData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RV.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",Object)],RV.prototype,"newnessDotEligible",void 0);
_.r([_.A("liveReactionsData","data.expandedButtons"),_.h("design:type",Object),_.h("design:paramtypes",[])],RV.prototype,"expandedButtonsData",null);_.r([_.A("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.E({reflectToAttribute:!0}),_.h("design:type",Object),_.h("design:paramtypes",[])],RV.prototype,"showNewnessDot",null);_.r([_.nH("#expanded-buttons"),_.h("design:type",HTMLElement)],RV.prototype,"expandedButtons",void 0);
_.r([_.wD("expandedButtonsData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RV.prototype,"expandedButtonsChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],RV);
_.B(RV,"yt-reaction-control-panel-view-model",function(){if(wbo===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;q$N===void 0&&(q$N=document.createElement("template"));var R=q$N;I.call(c,R.content.cloneNode(!0),G.content.firstChild);wbo=G}G=wbo;return G},{mode:0});var ZF=new _.gJ("yt-live-chat"),FIJ=Date.parse("2024-7-24"),Kz=function(){var G=_.J.apply(this,arguments)||this;G.emojiManager=_.bd;G.newnessDotEligible=!1;G.newnessDotImpressionCounted=!1;G.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return G};
_.u(Kz,_.J);_.P=Kz.prototype;_.P.emojiCustomizationEnabledChanged=function(){var G;((G=this.data)==null?0:G.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((G=ZF.getCreationTime("emoji-customization-count"))&&G<FIJ&&ZF.set("emoji-customization-count","0"),G=Number(ZF.get("emoji-customization-count"))||0,G<3&&(this.newnessDotEligible=!0,ZF.set("emoji-customization-count",(G+1).toString())),this.newnessDotImpressionCounted=!0)};
_.P.hideNewnessDot=function(){this.newnessDotEligible=!1;ZF.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.P.handleReactionsMute=function(G){var c=_.k0(),I=_.qj(206221),R={checkboxData:{state:G?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};c&&_.jW(c,I,R);this.reactionsMuted=G};
_.P.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.P.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.Nh.Object.defineProperties(Kz.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return(!((G=this.liveReactionsData)==null||!G.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Kz.prototype.liveReactionsSettingChanged=Kz.prototype.liveReactionsSettingChanged;Kz.prototype.emojiCustomizationEnabledChanged=Kz.prototype.emojiCustomizationEnabledChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.ll),_.h("design:type",Object)],Kz.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Kz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Kz.prototype,"data",void 0);_.r([_.E(),_.h("design:type",_.op)],Kz.prototype,"emojiManager",void 0);_.r([_.E(),_.h("design:type",Object)],Kz.prototype,"newnessDotEligible",void 0);_.r([_.E(),_.h("design:type",Object)],Kz.prototype,"newnessDotImpressionCounted",void 0);
_.r([_.E({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Ojz}),_.h("design:type",Boolean)],Kz.prototype,"liveReactionsSetting",void 0);_.r([_.E({selectorArgs:["data.liveReactionsDataEntityKey"],selector:TJ6}),_.h("design:type",Object)],Kz.prototype,"liveReactionsData",void 0);_.r([_.E({value:function(){var G=_.v("enable_lwe_web_mute"),c=ZF.get("allow-reactions");return c===void 0?!1:!c&&G}}),
_.h("design:type",Boolean)],Kz.prototype,"reactionsMuted",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Kz.prototype,"liveReactionsEnabled",null);_.r([_.wD("data.emojiCustomizationEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kz.prototype,"emojiCustomizationEnabledChanged",null);
_.r([_.wD("liveReactionsEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kz.prototype,"liveReactionsSettingChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Kz);
_.B(Kz,"yt-reaction-control-panel-overlay-view-model",function(){if(eKf===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;OFR===void 0&&(OFR=document.createElement("template"));var R=OFR;I.call(c,R.content.cloneNode(!0),G.content.firstChild);eKf=G}G=eKf;return G},{mode:0});var ndf={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(G){var c=this.$.pickers.selected;if(c){_.Q1(this.hostElement).removeAttribute(c+"-open");var I="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(I="#picker-buttons",c==="emoji"&&_.Q1(this.hostElement).querySelector("#emoji-picker-button")&&(I="#emoji-picker-button"));if(I=_.Q1(this.hostElement).querySelector(I).querySelector("#"+c))I.active=!1}I=G;c==G&&(I=null);c!=
G&&_.Q1(this.hostElement).setAttribute(G+"-open","");this.$.pickers.selected=I;_.ym(this.hostElement,"yt-live-chat-picker-changed",[I])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var PG=function(){var G=_.J.apply(this,arguments)||this;G.numSentMessages=0;G.timeoutDurationMs=0;G.timeoutMs=0;G.lastTimeoutTimeMs=0;G.pendingMessageId="";G.hasFiredInitialFocusActions=!1;G.isBeforeFocusEnabled=!0;G.id="";G.characterCount=0;G.maxCharacterLimit=0;G.remainingCharacterCount=0;G.inputExpanded=!1;G.buttonOverrides={iconPosition:"icon-only"};G.inReplyPanel=!1;G.countdownRatio=0;G.isTooltipVisible=!1;G.tooltipTimeout=1E4;G.systemIcons=_.v("kevlar_system_icons");G.tallerEmojiPicker=_.v("live_chat_taller_emoji_picker");
G.sendReplyMessageInFlight=!1;G.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};G.onResize=function(){G.maybeToggleCharacterCount()};
return G};
_.u(PG,_.J);_.P=PG.prototype;
_.P.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.P.attached=function(){window.addEventListener("resize",this.onResize)};
_.P.detached=function(){window.removeEventListener("resize",this.onResize)};
_.P.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.P.sendMessage=function(){var G=this,c,I,R,Z;return _.T(function(K){if(G.sendDisabled)return K.return();G.isTooltipVisible&&_.ym(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(G.data.sendButton&&G.data.sendButton.buttonRenderer){G.input.completeEmojis();c=G.data.sendButton.buttonRenderer.serviceEndpoint;if(!c)return K.return();R=((I=_.D(c,_.pE0))==null?void 0:I.clientIdPrefix)||"";Z={client_message_id:R+String(G.numSentMessages++),rich_message:_.ju(G.input.liveChatRichMessageInput)};
G.pendingMessageId=Z.client_message_id;G.inReplyPanel&&(G.sendReplyMessageInFlight=!0);_.Gs(G.hostElement,[c,Z]);G.input.setLiveChatRichMessageInput(null)}_.Vp(K)})};
_.P.handleSendButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),this.sendMessage())};
_.P.onSendCompleted=function(G,c){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(G=this.get("timeoutDurationUsec",c.data))&&this.handleTimeout(Number(G)/1E3);this.errorMessage=this.get("errorMessage",c.data);this.pendingMessageId=""};
_.P.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}})};
_.P.handlePickerButtonToggle=function(G){G=G.detail.targetId;this.ytPickerBehavior.togglePicker_(G);if(G==="emoji")this.input.focus();else if(G==="qna-start-panel"){var c,I;(c=_.Q1(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(I=c.querySelector("#qna-creator-text-input-field"))==null||I.focus()}};
_.P.onComponentReplaced=function(G){var c,I;G.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((c=G.replacement.liveChatMessageInputRenderer)==null?0:(I=c.headerRenderer)==null?0:I.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.P.onEmojiSelect=function(G){this.input.focus();this.input.insertEmoji(G.detail)};
_.P.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.P.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.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))};
_.P.onOpenPopupAction=function(G,c){var I=this;c===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ym(I.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.P.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.P.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.P.focusChanged=function(){this.maybeToggleCharacterCount()};
_.P.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var G=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",G>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.P.computeId=function(){return this.data&&this.data.targetId||""};
_.P.computeSendDisabled=function(G,c,I,R){G=!!(!G||c&&G>c||R);(c=_.Q1(this.hostElement).querySelector("#send-button"))&&c.children.length&&(c.children[0].disabled=G);return G};
_.P.handleTimeout=function(G){this.timeoutDurationMs=this.timeoutMs=G;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.P.updateTimeout=function(G){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(G-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=G,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.P.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.P.onErrorMessageEdit=function(G){this.input.setLiveChatRichMessageInput(G.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.P.errorMessageChanged=function(){var G=this;_.xW(function(){_.ym(G.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.P.computeAuthorNameColor=function(G){var c;if(_.v("live_chat_author_name_color_usernames")&&(G==null?0:(c=G.authorName)==null?0:c.simpleText))return _.Dab(_.ogp(G.authorName.simpleText));if(_.v("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.Dab(_.aJ(G.authorSeedColorArgb));if(_.v("live_chat_colored_usernames"))return"#cc0000";var I;return _.v("live_chat_simple_color_usernames")&&(G==null?0:(I=G.authorName)==null?0:I.simpleText)&&(G==null?0:G.authorUsernameColorLight)&&
(G==null?0:G.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.aJ(G.authorUsernameColorDark):_.aJ(G.authorUsernameColorLight):""};
_.P.onIsTooltipVisibleChanged=function(){var G=_.Q1(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){G.hidden=!1;G.setAttribute("role","alert")},0):(G.hidden=!0,G.removeAttribute("role"))};
_.P.onFocusedChanged=function(G){this.inputFocused=G.detail.value};
_.Nh.Object.defineProperties(PG.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:(c=G.pickers)==null?void 0:c.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return G?this.ytRendererBehavior.getSimpleString(G):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
PG.prototype.onIsTooltipVisibleChanged=PG.prototype.onIsTooltipVisibleChanged;PG.prototype.errorMessageChanged=PG.prototype.errorMessageChanged;PG.prototype.onErrorMessageEdit=PG.prototype.onErrorMessageEdit;PG.prototype.onErrorMessageDismiss=PG.prototype.onErrorMessageDismiss;PG.prototype.focusChanged=PG.prototype.focusChanged;PG.prototype.characterCountChanged=PG.prototype.characterCountChanged;PG.prototype.onEmojiSelect=PG.prototype.onEmojiSelect;PG.prototype.handlePickerButtonToggle=PG.prototype.handlePickerButtonToggle;
PG.prototype.onSendError=PG.prototype.onSendError;PG.prototype.onSendCompleted=PG.prototype.onSendCompleted;PG.prototype.sendMessage=PG.prototype.sendMessage;PG.prototype.dataChanged=PG.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],PG.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(ndf.YtPickerBehavior),_.h("design:type",Object)],PG.prototype,"ytPickerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.qi.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],PG.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"hasFiredInitialFocusActions",void 0);
_.r([_.E(),_.h("design:type",Object)],PG.prototype,"isBeforeFocusEnabled",void 0);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"data",void 0);_.r([_.E({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",Object)],PG.prototype,"id",void 0);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"characterCount",void 0);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"maxCharacterLimit",void 0);
_.r([_.E(),_.h("design:type",Object)],PG.prototype,"remainingCharacterCount",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],PG.prototype,"inputExpanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],PG.prototype,"inputFocused",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],PG.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.r([_.E(),_.h("design:type",_.$4)],PG.prototype,"participantsManager",void 0);
_.r([_.E(),_.h("design:type",Object)],PG.prototype,"buttonOverrides",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],PG.prototype,"inReplyPanel",void 0);_.r([_.A("characterCount, maxCharacterLimit, countdownActive"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PG.prototype,"sendDisabled",null);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"countdownRatio",void 0);
_.r([_.A("countdownRatio"),_.h("design:type",Number),_.h("design:paramtypes",[])],PG.prototype,"countdownStrokeDashOffset",null);_.r([_.A("countdownRatio"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PG.prototype,"countdownActive",null);_.r([_.A("data.interactionMessage"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PG.prototype,"hasInteractionMessage",null);
_.r([_.A("data.emojiPickerButton"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PG.prototype,"hasEmojiPickerButton",null);_.r([_.A("data, characterCount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PG.prototype,"showAvatar",null);_.r([_.A("data.pickers"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PG.prototype,"hasProductPickerPanelViewModel",null);
_.r([_.E(),_.h("design:type",Object)],PG.prototype,"errorMessage",void 0);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"genericErrorMessage",void 0);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"isTooltipVisible",void 0);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"tooltipTimeout",void 0);_.r([_.A("data.onInitialFocusCommand"),_.h("design:type",String),_.h("design:paramtypes",[])],PG.prototype,"tooltipMessage",null);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],PG.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],PG.prototype,"tallerEmojiPicker",void 0);_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],PG.prototype,"authorNameColor",null);_.r([_.E(),_.h("design:type",Object)],PG.prototype,"sendReplyMessageInFlight",void 0);_.r([_.nH("#input"),_.h("design:type",_.aBA)],PG.prototype,"input",void 0);
_.r([_.nH("#count"),_.h("design:type",HTMLElement)],PG.prototype,"count",void 0);_.r([_.nH("#input-container"),_.h("design:type",HTMLElement)],PG.prototype,"inputContainer",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PG.prototype,"dataChanged",null);_.r([_.qY("yt-live-chat-send-message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],PG.prototype,"sendMessage",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[Event,_.gi]),_.h("design:returntype")],PG.prototype,"onSendCompleted",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PG.prototype,"onSendError",null);
_.r([_.qY("yt-live-chat-icon-toggle-button-renderer-toggle"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],PG.prototype,"handlePickerButtonToggle",null);_.r([_.qY("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],PG.prototype,"onEmojiSelect",null);
_.r([_.wD("characterCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PG.prototype,"characterCountChanged",null);_.r([_.wD("inputFocused"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PG.prototype,"focusChanged",null);_.r([_.qY("yt-live-chat-error-message-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PG.prototype,"onErrorMessageDismiss",null);
_.r([_.qY("yt-live-chat-error-message-edit"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],PG.prototype,"onErrorMessageEdit",null);_.r([_.wD("errorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PG.prototype,"errorMessageChanged",null);_.r([_.wD("isTooltipVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PG.prototype,"onIsTooltipVisibleChanged",null);
_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],PG);
_.B(PG,"yt-live-chat-message-input-renderer",function(){if(fqT===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;iYy===void 0&&(iYy=document.createElement("template"));var R=iYy;I.call(c,R.content.cloneNode(!0),G.content.firstChild);fqT=G}G=fqT;return G},{mode:0});var vd6;var Dh5;var QR=function(){var G=_.J.apply(this,arguments)||this;G.systemIcons=_.v("kevlar_system_icons");G.firedOnClickCommand=!1;G.inReplyPanel=!1;return G};
_.u(QR,_.J);
QR.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"}}}};
QR.prototype.onButtonToggle=function(G){G.target.disabled||this.ytPickerBehavior.togglePicker_(G.detail.targetId)};
QR.prototype.onClick=function(){var G=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 G.firedOnClickCommand=!1},5E3))};
_.Nh.Object.defineProperties(QR.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:(c=G.panels)==null?void 0:c.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}}});
QR.prototype.onButtonToggle=QR.prototype.onButtonToggle;_.r([_.L(ndf.YtPickerBehavior),_.h("design:type",Object)],QR.prototype,"ytPickerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],QR.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],QR.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!1}),_.h("design:type",Object)],QR.prototype,"firedOnClickCommand",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],QR.prototype,"inReplyPanel",void 0);_.r([_.A("data.pickers"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QR.prototype,"hasProductPickerPanelViewModel",null);
_.r([_.qY("yt-live-chat-icon-toggle-button-renderer-toggle"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],QR.prototype,"onButtonToggle",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],QR);
_.B(QR,"yt-live-chat-restricted-participation-renderer",function(){if(Dh5===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;vd6===void 0&&(vd6=document.createElement("template"));var R=vd6;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Dh5=G}G=Dh5;return G},{mode:0});var mQ=function(){var G=_.J.apply(this,arguments)||this;G.genericErrorMessage=_.Cp("Error, try again.");G.inReplyPanel=!1;G.hideBorder=!1;return G};
_.u(mQ,_.J);mQ.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}}}}}};
_.Nh.Object.defineProperties(mQ,{template:{configurable:!0,enumerable:!0,get:function(){return VKS()}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mQ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],mQ.prototype,"genericErrorMessage",void 0);_.r([_.E(),_.h("design:type",Object)],mQ.prototype,"inReplyPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],mQ.prototype,"hideBorder",void 0);
_.r([_.Em({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],mQ);_.B(mQ,"yt-live-chat-engagement-panel-input-renderer",function(){return VKS()},{mode:0});var ody,Uhx;ody=_.qj(115994);Uhx=_.qj(115993);_.aV=function(G,c,I){var R=this;var Z=I.dragDownAction;this.layer=0;this.JSC$23214_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$23214_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var K=_.DP();_.HE(K,ody,this.layer);_.HE(K,Uhx,this.layer);this.dragDownAction=function(){Z();_.t0(K,{visualElement:R.fullscreen?ody:Uhx})};
this.gesture=new _.o$(G,c,this.getConfig(!1),"pandown");this.attach()};
_.aV.prototype.attach=function(){this.gesture.attach()};
_.aV.prototype.detach=function(){this.gesture.detach()};
_.aV.prototype.update=function(G){this.fullscreen=G;var c=this.gesture;G=this.getConfig(G);c.config=G};
_.aV.prototype.getConfig=function(G){return G?this.JSC$23214_watchFullScreenConfig:this.JSC$23214_watchConfig};var uu6={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(G){if(G&&G.length==1&&Array.isArray(G[0].loggingUrls)){G=_.rx.unsafeClone(G[0]);var c=this.macros||{},I=this.getAdModuleClient_();if(!I)return _.IP();G.loggingUrls.forEach(function(R){if(R.baseUrl){var Z=R.baseUrl;var K=c;K=K===void 0?{}:K;Z=I.getOptions().includes("replaceUrlMacros")?_.$mp(I,"replaceUrlMacros",{url:Z,additionalMapping:K}):Z;R.baseUrl=Z}},this);
G=[G]}return _.Gs(this.hostElement,G)},
getAdModuleClient_:function(){var G=_.ZA(this);return G?(G=G.getPlayer())?new _.qZ(G):null:null}}]};var bFx;var kmx;var Tn=function(){return _.J.apply(this,arguments)||this};
_.u(Tn,_.J);Tn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Tn.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Tn);
_.B(Tn,"ytd-compact-tvfilm-entry-point-renderer",function(){if(kmx!==void 0)return kmx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return kmx=G},{mode:1});var sfN;var LIR;var A8_;var OR=function(){return _.J.apply(this,arguments)||this};
_.u(OR,_.J);OR.prototype.ready=function(){this.initializeDefs()};
OR.prototype.initializeDefs=function(){var G=this.meta.byKey("yt-icons"),c=_.Q1(G).querySelector("#star"),I=_.Q1(G).querySelector("#star_half");G=_.Q1(G).querySelector("#star_border");c&&this.defs.appendChild(c.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0))};
OR.prototype.percentChanged=function(){for(var G=this.rating;G.firstChild;)G.removeChild(G.firstChild);var c=Math.round(this.percent/10);G=Math.floor(c/2);c%=2;var I=5-G-c;this.appendStars("star",G,0);this.appendStars("star_half",c,G);this.appendStars("star_border",I,G+c)};
OR.prototype.appendStars=function(G,c,I){for(var R=0;R<c;R++){var Z=(18+this.spacing)*(R+I),K=document.createElementNS("http://www.w3.org/2000/svg","use");_.G1W(K,"#"+G);K.setAttribute("x",""+Z);K.setAttribute("y","0");this.rating.appendChild(K)}};
OR.prototype.percentChanged=OR.prototype.percentChanged;_.r([_.nH("#defs"),_.h("design:type",HTMLElement)],OR.prototype,"defs",void 0);_.r([_.nH("#rating"),_.h("design:type",HTMLElement)],OR.prototype,"rating",void 0);_.r([_.E(),_.h("design:type",Number)],OR.prototype,"percent",void 0);_.r([_.E({value:6}),_.h("design:type",Number)],OR.prototype,"spacing",void 0);_.r([_.E({value:_.Hw.create("iron-meta",{type:"iconset"})}),_.h("design:type",_.GE)],OR.prototype,"meta",void 0);
_.r([_.wD("percent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OR.prototype,"percentChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-ratings"})],OR);
_.B(OR,"ytd-ratings",function(){if(A8_!==void 0)return A8_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return A8_=G},{mode:1});var $hx=function(){return _.J.apply(this,arguments)||this};
_.u($hx,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$hx.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$hx.prototype,"data",void 0);_.r([_.Jc({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],$hx);
_.B($hx,"ytd-offer-review-renderer",function(){if(LIR!==void 0)return LIR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return LIR=G},{mode:1});var ez=function(){var G=_.J.apply(this,arguments)||this;G.badges=[{textBadge:{label:_.Cp("CC")}}];return G};
_.u(ez,_.J);_.P=ez.prototype;_.P.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.P.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(G&&G.commandMetadata&&_.D(G.commandMetadata,_.Rh)&&_.D(G.commandMetadata,_.Rh).fireAutomatically)_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}});else{var c;G&&((c=_.D(G,_.Rh))==null?0:c.fireAutomatically)&&_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}})}};
_.P.isEmptyContent=function(G){return this.isStorefrontEntryPointEmpty(G)&&this.shouldHideOfferModule(G)};
_.P.isStorefrontEntryPointEmpty=function(G){return!G||!G.storefrontEntryPoint};
_.P.shouldHideOfferModule=function(G){return!!G.hideVideoDetails};
_.P.isOfferModuleNavigationInactive=function(G){return!G.navigationEndpoint&&!G.serviceEndpoint};
_.P.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ez.prototype.dataChanged=ez.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ez.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.h("design:type",Boolean)],ez.prototype,"hidden",void 0);
_.r([_.E(),_.h("design:type",Object)],ez.prototype,"badges",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ez.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],ez);
_.B(ez,"ytd-movie-offer-module-renderer",function(){if(sfN!==void 0)return sfN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return sfN=G},{mode:1});var S$x;var pbf=function(){return _.J.apply(this,arguments)||this};
_.u(pbf,_.J);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],pbf.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pbf.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],pbf);
_.B(pbf,"ytd-media-masthead-renderer",function(){if(S$x!==void 0)return S$x;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return S$x=G},{mode:1});var ML6;_.R1(_.Nbr,"course-metadata-view-model",{props:{data:_.G9,isOverlay:_.G9}});var Nv=function(){var G=_.J.apply(this,arguments)||this;G.isMetadataVisible=!1;G.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return G};
_.u(Nv,_.J);_.P=Nv.prototype;
_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.P.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.P.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.P.expanderChanged=function(){var G;if((G=this.data)==null?0:G.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.P.isExpandButtonToggled=function(){var G,c;return(c=_.D((G=this.data)==null?void 0:G.expandMetadataButton,_.kh))==null?void 0:c.isToggled};
_.P.onVisibilityButtonClick=function(){var G;if((G=this.data)==null?0:G.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.P.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Nv.prototype.expanderChanged=Nv.prototype.expanderChanged;Nv.prototype.dataChanged=Nv.prototype.dataChanged;Nv.prototype.descriptionChanged=Nv.prototype.descriptionChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L([_.HR.YtActionHandlerBehavior]),_.h("design:type",Object)],Nv.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Nv.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Nv.prototype,"isMetadataVisible",void 0);_.r([_.nH("#expander"),_.h("design:type",Object)],Nv.prototype,"expander",void 0);_.r([_.wD("data.description"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nv.prototype,"descriptionChanged",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nv.prototype,"dataChanged",null);_.r([_.wD("isMetadataVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nv.prototype,"expanderChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Nv);
_.B(Nv,"ytd-tvfilm-offer-module-renderer",function(){if(ML6!==void 0)return ML6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ML6=G},{mode:2});var VLf;var lC=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return G};
_.u(lC,_.J);lC.prototype.dataChanged=function(){this.hostElement.hidden=!1};
lC.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
lC.prototype.onThumbnailTap=function(G){this.data&&this.data.serviceEndpoint&&(_.wH().resolve(_.n4).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),G.stopPropagation())};
lC.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
lC.prototype.dataChanged=lC.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lC.prototype,"rendererBehaviors",void 0);_.r([_.L([_.HR.YtActionHandlerBehavior]),_.h("design:type",Object)],lC.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lC.prototype,"data",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lC.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],lC);
_.B(lC,"ytd-unlimited-offer-module-renderer",function(){if(VLf!==void 0)return VLf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return VLf=G},{mode:1});var zK6;var Edz;var qv=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return G};
_.u(qv,_.J);qv.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
qv.prototype.handleRelatedChipCommand=function(G){G=_.D(G,Iqx);var c=G.contents;c?_.gq(this.hostElement,"yt-item-section-replace-action",[c,G.targetSectionIdentifier]):_.gq(this.hostElement,"yt-item-section-continuation-action",[G.continuationData,G.targetSectionIdentifier])};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],qv.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qv.prototype,"data",void 0);_.r([_.Em({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],qv);
_.B(qv,"yt-related-chip-cloud-renderer",function(){if(Edz===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;zK6===void 0&&(zK6=document.createElement("template"));var R=zK6;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Edz=G}G=Edz;return G},{mode:2});var wd=function(){var G=_.J.apply(this,arguments)||this;G.isTwoColumns=!0;G.watchFeedBigThumbs=_.v("kevlar_watch_feed_big_thumbs");G.watchFeedBigThumbsOnLockup=_.v("web_watch_next_big_thumbs");G.watchNextGridHideChips=_.v("kevlar_watch_grid_hide_chips");G.eligibleToSwitchToGrid=!0;G.disableShortsShelfHeightOverride=_.v("web_shorts_wn_shelf_ratio_tuning");G.isWatchNextGrid=!1;G.reuseComponents=!_.v("kevlar_watch_grid");G.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return G};
_.u(wd,_.J);_.P=wd.prototype;
_.P.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.v("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.P.getItemsPath=function(){return"data.results"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.P.created=function(){this.ytLazyListBehavior.initialCount=1};
_.P.ready=function(){_.eD(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.P.resultsChanged=function(){if(this.data&&this.data.results){for(var G=this.data.results,c=null,I=null,R=0;R<G.length;R++)G[R].relatedChipCloudRenderer?c=G[R].relatedChipCloudRenderer:G[R].itemSectionRenderer&&(I=G[R].itemSectionRenderer);if(c&&I)for(this.set("data.continuations",[]),G=_.D(c.content,_.u5N).chips,c=0;c<G.length;c++)if(R=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",G[c]),R.loadCached||!R.contents){R.contents=I.contents;break}}};
_.P.dataChanged=function(){var G=this,c;if((c=this.data)!=null&&c.results&&this.hasAllowedInstreamAd(this.playerData)){if(c=this.data.results.filter(function(a){return!!a.promotedSparklesWebRenderer})){for(var I=0;I<c.length;I++){var R=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",c[I]);
if(R)for(var Z=0;Z<R.length;Z++)R[Z]&&R[Z].baseUrl&&_.Rx(R[Z].baseUrl)}this.set("data.results",this.data.results.filter(function(a){return!a.promotedSparklesWebRenderer}))}if(c=this.data.results.filter(function(a){return!!G.getSparklesAd(a)})){c=_.Q(c);
for(Z=c.next();!Z.done;Z=c.next())if(R=I=void 0,Z=(I=this.getSparklesAd(Z.value))==null?void 0:(R=I.errorCommand)==null?void 0:R.loggingUrls)for(I=_.Q(Z),R=I.next();!R.done;R=I.next())(R=R.value)&&R.baseUrl&&_.Rx(R.baseUrl);var K,m;this.set("data.results",(K=this.data)==null?void 0:(m=K.results)==null?void 0:m.filter(function(a){return!a.adSlotRenderer}))}}};
_.P.getSparklesAd=function(G){var c,I;G=_.D((c=G.adSlotRenderer)==null?void 0:(I=c.fulfillmentContent)==null?void 0:I.fulfilledLayout,_.hDp);return _.D(G==null?void 0:G.renderingContent,Dbx)};
_.P.hasAllowedInstreamAd=function(G){G=this.get("adPlacements",G)||[];for(var c=0;c<G.length;c++){var I=this.get("adPlacementRenderer.config.adPlacementConfig",G[c]);if(I&&I.suppressDisplayAd)return!0}return!1};
_.P.computeHideUnlimitedOfferModule=function(G,c){return G&&G.offerModule&&c&&G.offerModule.unlimitedOfferModuleRenderer&&G.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(c)?!0:!1};
_.P.hideUnlimitedOfferModuleChanged=function(){var G=_.Q1(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");G&&(G.hidden=this.hideUnlimitedOfferModule)};
_.P.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var c;(c=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||c.forEach(function(I){I.containerType=G})}};
_.P.computeHideTvfilmOfferModule=function(G,c){var I,R;return!!((G==null?0:(I=G.offerModule)==null?0:(R=I.tvfilmOfferModuleRenderer)==null?0:R.clientShouldSuppressIfCompanionAdDisplayed)&&c&&this.hasCompanionAds(c))};
_.P.hideTvfilmOfferModuleChanged=function(){var G=_.Q1(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");G&&(G.hidden=this.hideTvfilmOfferModule)};
_.P.hasCompanionAds=function(G){G=this.get("adPlacements",G)||[];for(var c=0;c<G.length;c++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",G[c]))return!0;var I=void 0,R=void 0,Z=void 0;if(!_.v("web_watch_top_banner_companion_check_killswitch")&&((I=G[c])==null?0:(R=I.adPlacementRenderer)==null?0:(Z=R.renderer)==null?0:Z.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.P.hasSuppressedResults=function(G){return G==null?!0:G.filter(function(c){return!c.continuationItemRenderer&&!c.compactPromotedVideoRenderer&&!c.promotedSparklesWebRenderer}).length===0};
_.P.computeShowButton=function(G,c){return this.isWatchNextGrid?G:G||this.hasSuppressedResults(c)};
_.P.showButtonChanged=function(){if(this.isWatchNextGrid){var G=_.Q1(this.hostElement).querySelector("ytd-rich-grid-renderer");G&&this.showButton!==null&&(G.continuationShowButton=this.showButton)}else{G=_.Q1(this.hostElement).querySelector("yt-next-continuation");var c=_.Q1(this.hostElement).querySelector("ytd-continuation-item-renderer"),I=_.Q1(this.hostElement).querySelector("ytd-item-section-renderer");G&&(G.showButton=this.showButton);c&&(c.showButton=this.showButton);I&&(I.continuationShowButton=
this.showButton)}};
_.P.continuationTap=function(G){var c;if(((c=this.data)==null?void 0:c.continuations)!=null&&G.target.tagName==="TP-YT-PAPER-BUTTON")for(G=this.data.continuations,c=0;c<G.length;c++)G[c].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(G[c].nextContinuationData||{})};
_.P.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("shown-items-changed",this.shownItems))};
_.Nh.Object.defineProperties(wd.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.shownItems)==null||!G.some(function(c){return!!c.lockupViewModel||c.compactVideoRenderer}))}}});
wd.prototype.shownItemsChangedForBinding=wd.prototype.shownItemsChangedForBinding;wd.prototype.showButtonChanged=wd.prototype.showButtonChanged;wd.prototype.hideTvfilmOfferModuleChanged=wd.prototype.hideTvfilmOfferModuleChanged;wd.prototype.updateLockupContainerTypes=wd.prototype.updateLockupContainerTypes;wd.prototype.hideUnlimitedOfferModuleChanged=wd.prototype.hideUnlimitedOfferModuleChanged;wd.prototype.dataChanged=wd.prototype.dataChanged;wd.prototype.resultsChanged=wd.prototype.resultsChanged;
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],wd.prototype,"ytLazyListBehavior",void 0);_.r([_.L(_.Vn.YtNextContinuationBehavior),_.h("design:type",Object)],wd.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.L(_.MZ),_.h("design:type",Object)],wd.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],wd.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wd.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],wd.prototype,"playerData",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],wd.prototype,"autoFill",void 0);_.r([_.E({value:60}),_.h("design:type",Number)],wd.prototype,"targetFramerate",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wd.prototype,"isTwoColumns",void 0);_.r([_.E(),_.h("design:type",Object)],wd.prototype,"shownItems",void 0);_.r([_.E({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.h("design:type",Boolean)],wd.prototype,"hideUnlimitedOfferModule",void 0);_.r([_.E({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.h("design:type",Boolean)],wd.prototype,"hideTvfilmOfferModule",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wd.prototype,"watchFeedBigThumbs",void 0);_.r([_.E(),_.h("design:type",Object)],wd.prototype,"watchFeedBigThumbsOnLockup",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wd.prototype,"watchNextGridHideChips",void 0);_.r([_.E(),_.h("design:type",Object)],wd.prototype,"eligibleToSwitchToGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wd.prototype,"disableShortsShelfHeightOverride",void 0);
_.r([_.E({selector:_.J0,reflectToAttribute:!0}),_.h("design:type",Object)],wd.prototype,"isGridViewEnabled",void 0);_.r([_.E({selector:_.P$q,reflectToAttribute:!0}),_.h("design:type",Object)],wd.prototype,"isSwatcherooActive",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],wd.prototype,"showMoreButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],wd.prototype,"isWatchNextGrid",void 0);
_.r([_.E({computed:"computeShowButton(showMoreButton, data.results)"}),_.h("design:type",Boolean)],wd.prototype,"showButton",void 0);_.r([_.uO("data.results.*"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wd.prototype,"resultsChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wd.prototype,"dataChanged",null);
_.r([_.wD("hideUnlimitedOfferModule"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wd.prototype,"hideUnlimitedOfferModuleChanged",null);_.r([_.A("isGridViewEnabled","containsLockups","data"),_.E({reflectToAttribute:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],wd.prototype,"lockupContainerType",null);
_.r([_.wD("lockupContainerType","data"),_.h("design:type",Function),_.h("design:paramtypes",[Number]),_.h("design:returntype")],wd.prototype,"updateLockupContainerTypes",null);_.r([_.wD("hideTvfilmOfferModule"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wd.prototype,"hideTvfilmOfferModuleChanged",null);_.r([_.wD("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wd.prototype,"showButtonChanged",null);
_.r([_.wD("shownItems"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wd.prototype,"shownItemsChangedForBinding",null);_.r([_.A("shownItems"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wd.prototype,"containsLockups",null);
_.B(wd,"ytd-watch-next-secondary-results-renderer",function(){if(bFx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);bFx=G}G=bFx;return G},{mode:1});var J8x;var FQ=function(){var G=_.J.apply(this,arguments)||this;G.isCollapsed=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return G};
_.u(FQ,_.J);_.P=FQ.prototype;_.P.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.onDonateTap=function(){var G=this.get("data.donateButton.buttonRenderer.command");if(G){var c=_.k0(),I=this.get("data.donateButton.buttonRenderer.trackingParams");c&&I&&_.jW(c,_.kC(I));this.ytOpenPopupBehavior.openPopup(G)}};
_.P.onShowMore=function(){this.isCollapsed=!1;var G=_.k0(),c=this.get("data.expandButton.buttonRenderer.trackingParams");G&&c&&_.jW(G,_.kC(c))};
_.P.onShowLess=function(){this.isCollapsed=!0};
_.P.dataChanged=function(){_.eD(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.P.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.P.handleUpdate=function(G){if(G=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",G))this.set("data.startLabel",G.startLabel),this.set("data.endLabel",G.endLabel),this.set("data.progress",G.progress),this.set("data.amountRaisedLabel",G.amountRaisedLabel),this.dataChanged()};
_.P.handleOpenPopupAction=function(G){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",G)&&_.ym(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.P.computeHeaderBackgroundUrl=function(G,c){if(G)return c?G.headerBackgroundDarkUrl:G.headerBackgroundUrl};
_.P.isProgressBarVisible=function(G){return!(!G||G.progress===void 0)};
_.P.headerBackgroundClass=function(){return _.H1("HTML_DIR")==="rtl"?"flip":""};
FQ.prototype.dataChanged=FQ.prototype.dataChanged;_.r([_.L(_.dm.YtOpenPopupBehavior),_.h("design:type",Object)],FQ.prototype,"ytOpenPopupBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],FQ.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],FQ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],FQ.prototype,"isCollapsed",void 0);_.r([_.E({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.h("design:type",String)],FQ.prototype,"headerBackgroundUrl",void 0);_.r([_.E(),_.h("design:type",Boolean)],FQ.prototype,"isDarkTheme",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FQ.prototype,"dataChanged",null);
_.r([_.Jc({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],FQ);
_.B(FQ,"ytd-donation-shelf-renderer",function(){if(J8x!==void 0)return J8x;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return J8x=G},{mode:1});var WIf;var iF_=function(){return _.J.apply(this,arguments)||this};
_.u(iF_,_.J);_.r([_.E(),_.h("design:type",Object)],iF_.prototype,"data",void 0);_.r([_.Jc({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],iF_);
_.B(iF_,"ytd-donation-unavailable-renderer",function(){if(WIf!==void 0)return WIf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return WIf=G},{mode:1});var f0f;var nz=function(){return _.J.apply(this,arguments)||this};
_.u(nz,_.J);nz.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],nz.prototype,"data",void 0);_.r([_.Jc({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],nz);
_.B(nz,"ytd-limited-state-message-renderer",function(){if(f0f!==void 0)return f0f;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return f0f=G},{mode:1});var BcJ;var vG=function(){return _.J.apply(this,arguments)||this};
_.u(vG,_.J);vG.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
vG.prototype.onTap=function(G){var c=this.data&&this.data.endpoint;c&&!_.Gf(_.CE(G),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Xl(this.hostElement,"yt-navigate",{endpoint:c})};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],vG.prototype,"data",void 0);_.r([_.Jc({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],vG);
_.B(vG,"ytd-autotagging-metadata-renderer",function(){if(BcJ!==void 0)return BcJ;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return BcJ=G},{mode:1});var r8G;var DF=function(){return _.J.apply(this,arguments)||this};
_.u(DF,_.J);DF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],DF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],DF.prototype,"data",void 0);_.r([_.Jc({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],DF);
_.B(DF,"ytd-autotagging-metadata-row-renderer",function(){if(r8G!==void 0)return r8G;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return r8G=G},{mode:1});var jfT;var xh6;var oV=function(){var G=_.J.apply(this,arguments)||this;G.engagementPanelContent=!1;return G};
_.u(oV,_.J);oV.prototype.computeHasDividerLine=function(G,c){return G&&!c};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.h("design:type",Boolean)],oV.prototype,"hasDividerLine",void 0);_.r([_.E(),_.h("design:type",Object)],oV.prototype,"engagementPanelContent",void 0);
_.r([_.Jc({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],oV);
_.B(oV,"ytd-metadata-row-header-renderer",function(){if(xh6!==void 0)return xh6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return xh6=G},{mode:1});var tL5;var UR=function(){return _.J.apply(this,arguments)||this};
_.u(UR,_.J);UR.prototype.computeHasDividerLine=function(G){return G};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],UR.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.h("design:type",Boolean)],UR.prototype,"hasDividerLine",void 0);_.r([_.Jc({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],UR);
_.B(UR,"ytd-metadata-row-renderer",function(){if(tL5!==void 0)return tL5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return tL5=G},{mode:1});var hKS;var dhy=function(){return _.J.apply(this,arguments)||this};
_.u(dhy,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],dhy.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dhy.prototype,"data",void 0);_.r([_.Jc({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],dhy);
_.B(dhy,"ytd-metadata-with-image-row-renderer",function(){if(hKS!==void 0)return hKS;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return hKS=G},{mode:1});var Ci6;var uC=function(){var G=_.J.apply(this,arguments)||this;G.rounded=!0;G.fixie=!1;G.fullWidth=!1;return G};
_.u(uC,_.J);_.P=uC.prototype;_.P.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onDataChanged=function(){var G=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(c){G.onEndpointLinkKeyPress(c)}))};
_.P.onEndpointLinkKeyPress=function(G){G.target===this.endpointLink&&G.keyCode===13&&_.Xl(this.hostElement,"click")};
_.P.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var G;if((G=this.data)==null?0:G.endpoint)_.cd(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.P.onYtNavigate=function(G){this.endpointHref||(G.stopPropagation(),G.preventDefault())};
_.P.onInformationButtonContainerClick=function(G){G.target.id!=="information-button-container"&&(G.stopPropagation(),G.preventDefault())};
_.P.computeStyle=function(G){return G};
_.P.computeIsThumbnailStyle=function(G){return G==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.P.computeThumbnailWidth=function(G){switch(G){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.P.computeThumbnailObjectFit=function(G){switch(G){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Nh.Object.defineProperties(uC.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
uC.prototype.onYtNavigate=uC.prototype.onYtNavigate;uC.prototype.onClick=uC.prototype.onClick;uC.prototype.onDataChanged=uC.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],uC.prototype,"componentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],uC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],uC.prototype,"componentStyle",void 0);_.r([_.E({computed:"computeIsThumbnailStyle(data.style)"}),_.h("design:type",Boolean)],uC.prototype,"isThumbnailStyle",void 0);_.r([_.E({computed:"computeThumbnailObjectFit(data.style)"}),_.h("design:type",String)],uC.prototype,"thumbnailObjectFit",void 0);
_.r([_.E({computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],uC.prototype,"thumbnailWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uC.prototype,"rounded",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uC.prototype,"fixie",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uC.prototype,"fullWidth",void 0);_.r([_.nH("#endpoint-link"),_.h("design:type",HTMLAnchorElement)],uC.prototype,"endpointLink",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uC.prototype,"onDataChanged",null);_.r([_.A("data.endpoint"),_.h("design:type",Object),_.h("design:paramtypes",[])],uC.prototype,"endpointHref",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],uC.prototype,"onClick",null);
_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uC.prototype,"onYtNavigate",null);_.r([_.Jc({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],uC);
_.B(uC,"ytd-rich-metadata-renderer",function(){if(Ci6!==void 0)return Ci6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ci6=G},{mode:_.Qc("kevlar_poly_si_batch_j075")?1:2});var HFy;var bC=function(){var G=_.J.apply(this,arguments)||this;G.fixie=!1;G.fullWidth=!1;return G};
_.u(bC,_.J);bC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
bC.prototype.computeHasDividerLine=function(G){return G};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.h("design:type",Boolean)],bC.prototype,"hasDividerLine",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],bC.prototype,"fixie",void 0);_.r([_.E(),_.h("design:type",Object)],bC.prototype,"fullWidth",void 0);
_.r([_.Jc({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],bC);
_.B(bC,"ytd-rich-metadata-row-renderer",function(){if(HFy!==void 0)return HFy;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return HFy=G},{mode:1});var ki=function(){var G=_.J.apply(this,arguments)||this;G.engagementPanelContent=!1;G.fixie=!1;G.fullWidth=!1;return G};
_.u(ki,_.J);
ki.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"}}}};
ki.prototype.computeCollapsibleItems=function(G,c,I){return G===void 0||c===void 0||I===void 0||I?[]:G.slice(c)};
ki.prototype.computeAlwaysShownItems=function(G,c){return G&&G.length?G.slice(0,c):[]};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ki.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],ki.prototype,"collapsed",void 0);
_.r([_.E({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.h("design:type",Array)],ki.prototype,"alwaysShownItems",void 0);_.r([_.E({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.h("design:type",Array)],ki.prototype,"collapsibleItems",void 0);_.r([_.E(),_.h("design:type",Object)],ki.prototype,"engagementPanelContent",void 0);_.r([_.E(),_.h("design:type",Object)],ki.prototype,"fixie",void 0);
_.r([_.E(),_.h("design:type",Object)],ki.prototype,"fullWidth",void 0);_.r([_.Jc({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],ki);
_.B(ki,"ytd-metadata-row-container-renderer",function(){if(jfT!==void 0)return jfT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return jfT=G},{mode:1});var Xbx;var sR=function(){var G=_.J.apply(this,arguments)||this;G.currentPageUrl="";G.baseUrl="";G.isHiddenByUser=null;G.hidden=!1;G.showAboveScrim=!1;G.watchNextGrid=_.v("kevlar_watch_grid");G.modernButtons=_.v("web_modern_buttons");G.roundedContainer=!0;G.noBorder=!1;G.roundBackground=!_.v("live_chat_round_background_killswitch");G.overflowHideChat=_.v("live_chat_overflow_hide_chat");G.forceDarkTheme=!1;G.theaterWatchWhile=!1;G.isListeningForPlayerProgress=!1;G.JSC$23285_playerEvents=new Map;G.isFrameReady=
!1;G.player=null;G.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return G};
_.u(sR,_.J);_.P=sR.prototype;_.P.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.gq(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.P.created=function(){var G=this;this.handleIframeEventListener=function(c){G.handleIframeEvent(c)};
this.handleKeyboardEventListener=function(c){G.handleKeyboardEvent(c)};
this.JSC$23285_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23285_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23285_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23285_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23285_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.P.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.P.computeBaseUrl=function(G){var c="/live_chat";this.isChatReplay()&&(c="/live_chat_replay");return _.bK(_.uK(_.Uc(_.IW(G),c),null),"").toString()};
_.P.dataChanged=function(){_.v("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.P.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var G=this.url;if(this.isChatReplay()&&this.player){var c=Math.floor(this.player.getProgressState().current*1E3);G=_.Zm(_.IW(G),"playerOffsetMs",c.toString()).toString()}c=this.chatframe;try{var I=G==="about:blank"?_.gNe:_.dS(G),R=c.contentDocument.location,Z=_.Xx(I);Z!==void 0&&R.replace(Z)}catch(K){c.src=G}}};
_.P.collapsedChanged=function(){_.Xl(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.P.handleIframeEvent=function(G){if(G&&this.baseUrl.startsWith(G.origin)&&G.source===this.chatframe.contentWindow&&_.db(G.data))if(G.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(G);else if(G.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(G.data["yt-show-feedback-dialog"]){var c=_.wH().resolve(_.qR(_.dNj));if(c){var I=G.ports,R;I&&I.length&&(R=function(){I[0].postMessage({})});
G=G.data["yt-show-feedback-dialog"];c.showFeedbackDialog(G.customProductData,G.feedbackContent,R,G.bucket)}}else if(G.data["yt-show-survey"])_.Xl(this.hostElement,"yt-show-survey",G.data["yt-show-survey"]);else if(G.data["yt-purchase-membership"])_.wH().resolve(_.n4).resolveCommand(G.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(G.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(G.data["yt-tunnel-out-live-service-request"]);else if(G.data["yt-user-activity"])_.qb();
else if(G.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(G.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(G.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(G.data["yt-open-popup"]);else if(G.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(G.data["yt-log-flow-logging-event-command"]);else if(G.data["yt-hide-live-chat"])this.onShowHideChat();else G.data["yt-report-moderation-state-log"]&&
this.player&&(c={cpn:this.player.getVideoData().cpn},_.x7("liveChatBeingModerated",c))};
_.P.attachLiveChatResponseVeTrackingParams=function(G){G=_.kC(G);var c=_.k0(),I=_.Yc("liveChatRenderer.trackingParams",this.data);c&&I&&_.Wd(c,_.kC(I),G)};
_.P.handleBuyflowMessages=function(G){var c=G.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,I=G.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,R=G.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.rV0(_.Pe(_.dn),c.replace(/-/g,"+").replace(/_/g,"/"),function(Z){G.ports[0].postMessage({success:!0,buyFlowResponse:Z})},void 0,function(Z){G.ports[0].postMessage({success:!1,
error:Z&&Z.message||"Buyflow rejected without error."})},_.OC().get("hl"),void 0,function(){G.ports[0].postMessage({closed:!0})},I,R)};
_.P.setupPlayerProgressRelay=function(){var G=this;if(!this.isListeningForPlayerProgress){var c=_.Ke();c!=null&&c.getPlayerPromise&&(c.getPlayerPromise().then(function(I){G.playerApiReady(I)}),this.isListeningForPlayerProgress=!0)}};
_.P.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.P.playerApiReady=function(G){this.setPlayer(G)};
_.P.playerProgressHandler=function(){if(this.player){var G=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":G.current})}};
_.P.playerAdStartHandler=function(G){this.postToContentWindow({"yt-player-ad-start":G})};
_.P.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.P.playerStateChangeHandler=function(G){this.postToContentWindow({"yt-player-state-change":G})};
_.P.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23285_playerEvents);G&&(this.player=G,this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23285_playerEvents),_.Xl(this.hostElement,"player-api-ready"))};
_.P.liveChatPageUrl=function(G,c,I,R){return!I||c?"about:blank":I.liveChatRenderer?(c=_.IW(this.currentPageUrl).JSC$10201_queryData_,Ok_(c),G=_.IW(G),c.add("continuation",I.liveChatRenderer.continuations[0].reloadContinuationData.continuation),I=_.iu()==="USER_INTERFACE_THEME_DARK",(R||I)&&c.add("dark_theme","true"),_.uK(G,c),R=_.IW(G.toString()),I=R.JSC$10201_queryData_,"SESSION_INDEX"in _.dK&&(I.add("authuser",_.H1("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.dK&&I.add("pageId",_.H1("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.dK&&I.add("sdc",_.H1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),R.toString()):""};
_.P.isCollapsed=function(G,c){return c!==null?c:this.isChatReplay()||G&&G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!0:G?G.liveChatRenderer?G.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.v("live_chat_hide_premiere_replay_message")||G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.P.isHidden=function(G,c,I){var R=c&&c.conversationBarRenderer&&c.conversationBarRenderer.availabilityMessage,Z=c&&c.liveChatRenderer&&c.liveChatRenderer.showHideButton,K=c&&c.liveChatRenderer&&c.liveChatRenderer.showButton;return I&&G&&!R&&!K||!I&&G&&!R&&!Z?!0:c&&c.liveChatRenderer&&c.liveChatRenderer.initialDisplayState?c.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.P.computeButtonOverride=function(G,c){if(G&&c)return{type:"outline"}};
_.P.setCollapsedState=function(G){_.D(G,_.CYe)&&((this.isHiddenByUser=!!_.D(G,_.CYe).collapsed)||_.ym(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.P.forwardReduxActionToIframe=function(G){this.postToContentWindow({"yt-live-chat-forward-redux-action":G})};
_.P.onLoopRangeChange=function(G){this.showAboveScrim=!(G==null||!G.postId)};
_.P.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.P.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.P.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.P.sendDarkThemePostMessage=function(G){this.postToContentWindow({"yt-live-chat-set-dark-theme":G})};
_.P.onLiveChatBuyFlowCallback=function(G){this.postToContentWindow({"yt-live-chat-buy-flow-callback":G})};
_.P.handleKeyboardEvent=function(G){(0,_.rx.containsValue)(lqG,G.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:G.type,keyCode:G.keyCode}})};
_.P.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.P.postToContentWindow=function(G){if(this.isFrameReady)try{var c=window.location.protocol+"//"+window.location.host,I;(I=this.chatframe)!=null&&I.contentWindow?this.chatframe.contentWindow.postMessage(G,c):_.Ck(new _.iW("Tried posting a message to an iframe with no content window",G))}catch(R){_.hg(R)}};
_.P.shouldHideChatFrame=function(G){return G&&_.v("hide_live_chat_button_when_collapsed")};
_.Nh.Object.defineProperties(sR.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.v("live_chat_overflow_hide_chat")||_.v("web_watch_chat_hide_button_killswitch"))return _.v("live_chat_overflow_hide_chat");var G,c,I,R;return!!((G=this.data)==null?0:(c=G.liveChatRenderer)==null?0:(I=c.header)==null?0:(R=I.liveChatHeaderRenderer)==null?0:R.collapseButton)}}});
sR.prototype.collapsedChanged=sR.prototype.collapsedChanged;sR.prototype.urlChanged=sR.prototype.urlChanged;sR.prototype.dataChanged=sR.prototype.dataChanged;sR.prototype.onShowHideChat=sR.prototype.onShowHideChat;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],sR.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],sR.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],sR.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.L(_.dm.YtOpenPopupBehavior),_.h("design:type",Object)],sR.prototype,"ytOpenPopupBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sR.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],sR.prototype,"currentPageUrl",void 0);
_.r([_.E({computed:"computeBaseUrl(currentPageUrl,data)"}),_.h("design:type",Object)],sR.prototype,"baseUrl",void 0);_.r([_.E({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.h("design:type",String)],sR.prototype,"url",void 0);_.r([_.E(),_.h("design:type",Object)],sR.prototype,"isHiddenByUser",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.h("design:type",Object)],sR.prototype,"hidden",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.h("design:type",Boolean)],sR.prototype,"collapsed",void 0);_.r([_.E({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.h("design:type",Boolean)],sR.prototype,"hideChatFrame",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sR.prototype,"showAboveScrim",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sR.prototype,"watchNextGrid",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],sR.prototype,"modernButtons",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sR.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sR.prototype,"noBorder",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],sR.prototype,"roundBackground",void 0);
_.r([_.E({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.h("design:type",Object)],sR.prototype,"toggleButtonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],sR.prototype,"overflowHideChat",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sR.prototype,"forceDarkTheme",void 0);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],sR.prototype,"enableShowWithoutHideChatButton",null);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sR.prototype,"theaterWatchWhile",void 0);_.r([_.nH("#chatframe"),_.h("design:type",HTMLIFrameElement)],sR.prototype,"chatframe",void 0);_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sR.prototype,"onShowHideChat",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sR.prototype,"dataChanged",null);
_.r([_.wD("url"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sR.prototype,"urlChanged",null);_.r([_.wD("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sR.prototype,"collapsedChanged",null);_.r([_.Jc({is:"ytd-live-chat-frame",disableElementRegistration:!0})],sR);
_.B(sR,"ytd-live-chat-frame",function(){if(Xbx!==void 0)return Xbx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Xbx=G},{mode:1});var y8T;var Lz=function(){var G=_.J.apply(this,arguments)||this;G.modern=_.v("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};return G};
_.u(Lz,_.J);Lz.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=_.Sx(this.data.backgroundColor)))};
Lz.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var G=this.getFormattedStringLoggingDirectives(this.data.headline);G&&this.rendererBehavior.logExplicitClick(G)}};
Lz.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var G=this.getFormattedStringLoggingDirectives(this.data.description);G&&this.rendererBehavior.logExplicitClick(G)}};
Lz.prototype.getFormattedStringLoggingDirectives=function(G){return G&&G.runs&&G.runs.length>0&&G.runs[0]&&G.runs[0].loggingDirectives?G.runs[0].loggingDirectives:null};
Lz.prototype.dataChanged=Lz.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Lz.prototype,"rendererBehavior",void 0);_.r([_.L(uu6.YtMacroReplacementBehavior),_.h("design:type",Object)],Lz.prototype,"macroReplacementBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Lz.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Lz.prototype,"navigationEndpoint",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Lz.prototype,"enableColors",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Lz.prototype,"modern",void 0);_.r([_.E(),_.h("design:type",Object)],Lz.prototype,"buttonOverrides",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lz.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Lz);
_.B(Lz,"ytd-action-basic-immersive-content-renderer",function(){if(y8T!==void 0)return y8T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return y8T=G},{mode:1});var gdG;var Y$R;var Av=function(){return _.J.apply(this,arguments)||this};
_.u(Av,_.J);Av.prototype.dataChanged=function(){var G;((G=this.data)==null?void 0:G.backgroundColor)!==void 0&&_.eD(this.hostElement,{"--bgu-color":_.Sx(this.data.backgroundColor)})};
Av.prototype.onImageTileClick=function(){var G;((G=this.data)==null?0:G.navigationEndpoint)&&_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var c;((c=this.data)==null?0:c.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Nh.Object.defineProperties(Av.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?void 0:G.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var G,c,I;if(((G=this.data)==null?void 0:(c=G.detailsLine)==null?void 0:c.texts)!=null&&((I=this.data)==null?void 0:I.detailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.detailsLine.texts.map(function(Z){return Z.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var G,c,I;if(((G=this.data)==null?void 0:(c=G.optionalDetailsLine)==null?void 0:c.texts)!=null&&((I=this.data)==null?void 0:I.optionalDetailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.optionalDetailsLine.texts.map(function(Z){return Z.text}).join("")}return null}}});
Av.prototype.dataChanged=Av.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Av.prototype,"rendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Av.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Av.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.backgroundColor"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Av.prototype,"hasBackgroundColor",null);
_.r([_.A("data.objectFit"),_.h("design:type",Object),_.h("design:paramtypes",[])],Av.prototype,"getObjectFit",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.tileRenderingStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Av.prototype,"hasTileMetadata",null);_.r([_.A("data.detailsLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],Av.prototype,"getSecondaryDetails",null);
_.r([_.A("data.optionalDetailsLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],Av.prototype,"getOptionalDetails",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Av.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Av);
_.B(Av,"ytd-image-tile-renderer",function(){if(Y$R!==void 0)return Y$R;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Y$R=G},{mode:1});var GO6;var $i=function(){return _.J.apply(this,arguments)||this};
_.u($i,_.J);$i.prototype.getOpenLinkIcon=function(){return _.v("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
$i.prototype.onSitelinkTap=function(){_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.v("kevlar_command_handler_migration_killswitch"))_.cd(this.hostElement,this.data.clickCommands,this.hostElement);else for(var G=_.Q(this.data.clickCommands),c=G.next();!c.done;c=G.next())this.ytComponentBehavior.resolveCommand(c.value)};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],$i.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$i.prototype,"rendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$i.prototype,"data",void 0);_.r([_.Jc({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],$i);
_.B($i,"ytd-sitelink-renderer",function(){if(GO6!==void 0)return GO6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return GO6=G},{mode:1});var Sz=function(){var G=_.J.apply(this,arguments)||this;G.paddingFix=_.v("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.u(Sz,_.J);Sz.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"}}}};
Sz.prototype.dataChanged=function(){var G=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;G.ytMacroReplacementBehavior.sendServiceRequestAction([c])})};
Sz.prototype.shouldHideFooter=function(G){return!(G&&_.v("use_ads_engagement_panel_desktop_footer_cta"))};
_.Nh.Object.defineProperties(Sz.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((c=this.data)==null?void 0:c.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var R;return(R=_.D(I,v7_))==null?void 0:R.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((c=this.data)==null?void 0:c.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var R;return((R=_.D(I,v7_))==null?void 0:R.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Sz.prototype.dataChanged=Sz.prototype.dataChanged;_.r([_.L(uu6.YtMacroReplacementBehavior),_.h("design:type",Object)],Sz.prototype,"ytMacroReplacementBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Sz.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Sz.prototype,"paddingFix",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.imageTileRenderers"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Sz.prototype,"removeBorderFromImageTiles",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.imageTileRenderers"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Sz.prototype,"useFooteredMetadataRenderingStyle",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sz.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Sz);
_.B(Sz,"ytd-action-engagement-panel-content-renderer",function(){if(gdG!==void 0)return gdG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return gdG=G},{mode:1});var cOT;var IZ6=_.W(function(G){var c=G.data;var I=G.customCommandResolver;return _.e("ad-grid-card-image-full-metadata-view-model",{class:function(){var R;return((R=c().interaction)==null?0:R.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.YC(_.wZ({visibilityCallback:function(R){var Z,K=(Z=c().interaction)==null?void 0:Z.onFirstVisible;R&&K&&_.r0(K)},
showOption:_.j4}),_.xZ(function(){return c().interaction},I)),
"aria-label":function(){var R,Z;return(R=c().interaction)==null?void 0:(Z=R.accessibility)==null?void 0:Z.label}},_.e("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.e(_.sN,{data:function(){return c().adImage}},{adImageViewModel:function(R){return _.e(_.Zc,{data:R.data,
customCommandResolver:I})}})),_.e("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.e(_.l,{cond:function(){return c().headline},
then:function(R){return _.e(_.ul,{text:R,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.e(_.l,{cond:function(){return c().detailsLine},
then:function(R){return _.e("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.e(_.sN,{data:R},{adDetailsLineViewModel:function(Z){return _.e(_.yu,{data:Z.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.e(_.l,{cond:function(){return c().secondaryDetailsLine},
then:function(R){return _.e("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.e(_.sN,{data:R},{adDetailsLineViewModel:function(Z){return _.e(_.yu,{data:Z.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Un");var Rg_=_.W(function(G){var c=G.data;var I=G.customCommandResolver;return _.e("ad-grid-card-image-view-model",{class:function(){var R;return((R=c().interaction)==null?0:R.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.YC(_.wZ({visibilityCallback:function(R){var Z,K=(Z=c().interaction)==null?void 0:Z.onFirstVisible;R&&K&&_.r0(K)},
showOption:_.j4}),_.xZ(function(){return c().interaction},I)),
"aria-label":function(){var R,Z;return(R=c().interaction)==null?void 0:(Z=R.accessibility)==null?void 0:Z.label}},_.e(_.sN,{data:function(){return c().adImage}},{adImageViewModel:function(R){return _.e(_.Zc,{data:R.data,
customCommandResolver:I})}}),_.e("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.e(_.sN,{data:function(){return c().adCardBadge}},{adCardBadgeViewModel:_.Rre})))},"Vn");var ZR5=_.W(function(G){var c=G.data;var I=G.customCommandResolver;return _.e("ad-grid-card-text-view-model",{class:function(){var R;return((R=c().interaction)==null?0:R.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.YC(_.wZ({visibilityCallback:function(R){var Z,K=(Z=c().interaction)==null?void 0:Z.onFirstVisible;R&&K&&_.r0(K)},
showOption:_.j4}),_.xZ(function(){return c().interaction},I)),
"aria-label":function(){var R,Z;return(R=c().interaction)==null?void 0:(Z=R.accessibility)==null?void 0:Z.label}},_.e("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.e(_.l,{cond:function(){return c().title},
then:function(R){return _.e(_.ul,{text:R,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.e("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.e(_.fh,{each:function(){var R;
return((R=c())==null?void 0:R.descriptions)||[]},
keyBy:"INDEX"},function(R){return _.e(_.ul,{text:R,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.e("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.e(_.sN,{data:function(){return c().moreInfoButton}},{adButtonViewModel:function(R){return _.e(_.tp,{data:R.data,
customCommandResolver:I})}})))},"Wn");var KY5=_.W(function(G){var c=G.data;var I=G.customCommandResolver;var R=G.adGridCardCollectionStyle;return _.e("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.YC(_.wZ({visibilityCallback:function(Z){var K,m=(K=c().interaction)==null?void 0:K.onFirstVisible;Z&&m&&_.r0(m)},
showOption:_.j4})),style:function(){return"grid-template-columns: repeat("+Utf(R?R():c().style)+", minmax(0, 1fr));"}},_.e(_.sN,{data:function(){var Z;
return(Z=c())==null?void 0:Z.gridCards}},{adGridCardImageViewModel:function(Z){return _.e(Rg_,{data:Z.data,
customCommandResolver:I})},
adGridCardImageFullMetadataViewModel:function(Z){return _.e(IZ6,{data:Z.data,customCommandResolver:I})},
adGridCardTextViewModel:function(Z){return _.e(ZR5,{data:Z.data,customCommandResolver:I})}}))},"Xn");_.R1(_.W(function(G){var c=G.data;return _.e("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.YC(_.wZ({visibilityCallback:function(I){var R,Z=(R=c().interaction)==null?void 0:R.onFirstVisible;I&&Z&&_.r0(Z)},
showOption:_.j4}),_.xZ(function(){return c().interaction},bjS))},_.e("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.e(_.l,{cond:_.oIT("(min-width: "+((0,_.y7)()+_.zC)+"px)"),
then:function(){return _.e(_.sN,{data:function(){return c().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.e(KY5,{data:I.data,
customCommandResolver:bjS})}})},
else:function(){return _.e(_.sN,{data:function(){return c().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.e(KY5,{data:I.data,
customCommandResolver:bjS,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.e("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.e(_.sN,{data:function(){return c().adButton}},{adButtonViewModel:function(I){return _.e(_.tp,{data:I.data,
customCommandResolver:bjS})}})))},"Yn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;return _.e("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.YC(_.wZ({visibilityCallback:function(I){var R,Z=(R=c().interaction)==null?void 0:R.onFirstVisible;I&&Z&&_.r0(Z)},
showOption:_.j4}),_.xZ(function(){return c().interaction},kcx))},_.e("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.e(_.sN,{data:function(){if(_.oIT("(min-width: "+((0,_.y7)()+_.zC)+"px)")())var I=c().adGridCardCollection;
else{I=Object.assign({},_.D(c().adGridCardCollection,o7x));var R;I.gridCards!==void 0&&((R=I.gridCards)==null?void 0:R.length)>1?I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";I={adGridCardCollectionViewModel:I}}return I}},{adGridCardCollectionViewModel:function(I){return _.e(KY5,{data:I.data,
customCommandResolver:kcx})}})),_.e("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.e(_.sN,{data:function(){return c().adButton}},{adButtonViewModel:function(I){return _.e(_.tp,{data:I.data,
customCommandResolver:kcx})}})))},"Zn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.bl}});var pz=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return G};
_.u(pz,_.J);_.P=pz.prototype;_.P.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.P.attached=function(){this.getDataFromPlayerAndRender()};
_.P.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.P.getDataFromPlayerAndRender=function(){var G=this,c=_.ZA(this.hostElement);c&&c.getPlayerPromise().then(function(I){G.getCachedDataAndListen(I)})};
_.P.getCachedDataAndListen=function(G){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=G)};
_.P.resolveCachedActions=function(){var G=_.Yc("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(G=G&&G())&&!_.rx.isEmpty(G)&&this.sendUpdateEngagementPanelAction(G);(G=(G=_.Yc("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&G())&&!_.rx.isEmpty(G)&&this.sendChangeEngagementPanelVisibilityAction(G);(G=(G=_.Yc("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&G())&&!_.rx.isEmpty(G)&&this.sendScrollToEngagementPanelCommand(G)};
_.P.sendUpdateEngagementPanelAction=function(G){var c;_.ym(this.hostElement,"yt-update-engagement-panel-action",[(c=_.rx.get(G,"action"))!=null?c:G])};
_.P.sendChangeEngagementPanelVisibilityAction=function(G){_.ym(this.hostElement,"yt-change-engagement-panel-visibility-action",[G])};
_.P.sendScrollToEngagementPanelCommand=function(G){_.ym(this.hostElement,"yt-scroll-to-engagement-panel-command",[G])};
_.P.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.v("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Ck(Error("ip"))};
pz.prototype.dataChanged=pz.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],pz.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],pz.prototype,"componentBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],pz.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pz.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],pz.prototype,"player",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pz.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],pz);
_.B(pz,"ytd-ads-engagement-panel-content-renderer",function(){if(cOT!==void 0)return cOT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return cOT=G},{mode:1});var P6o;var Mv=function(){var G=_.J.apply(this,arguments)||this;G.player=null;G.JSC$23322_playerEvents=new Map;G.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return G};
_.u(Mv,_.J);_.P=Mv.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.P.created=function(){this.player=null;this.JSC$23322_playerEvents=new Map;this.JSC$23322_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23322_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23322_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23322_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.attached=function(){var G=this,c=_.ZA();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));c&&c.getPlayerPromise().then(function(I){G.setPlayer(I);G.set("isPageLoad",!1)})};
_.P.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23322_playerEvents);this.set("player",G);G&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23322_playerEvents),G.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.P.onLoopRangeChange=function(G){var c=_.wH().resolve(_.qR(_.I9));if((!c||c.isOnWatch())&&this.hostElement.clientHeight){var I;!G&&((I=this.data)==null?0:I.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.P.onVideoProgress=function(G){var c,I,R=((c=this.player)==null?void 0:(I=c.getPresentingPlayerType)==null?void 0:I.call(c))===2;this.isAdPlaying!==R&&this.set("isAdPlaying",R);var Z;if(!R&&(Z=this.player)!=null&&Z.getLoopRange()){I=this.player.getLoopRange();c=I.startTimeMs;I=I.endTimeMs;R=this.player.getProgressState(1).seekableStart;var K;c<R*1E3&&((K=this.data)==null?0:K.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
G=I<G*1E3;var m;((m=this.player)==null?0:m.getLoopRange())&&G&&this.player.seekTo(c/1E3)}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onYtDeleteClipEngagementPanelCommand=function(G){_.D(G,JgT).command&&this.ytComponentBehavior.resolveCommand(_.D(G,JgT).command)};
_.Nh.Object.defineProperties(Mv.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.Cp("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Mv.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Mv.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],Mv.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Mv.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Mv.prototype,"isAdPlaying",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Mv.prototype,"isPageLoad",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Mv.prototype,"isDarkTheme",void 0);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mv.prototype,"voteCount",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mv.prototype,"channelEndpoint",null);_.r([_.A("channelEndpoint"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mv.prototype,"channelHref",null);_.r([_.Jc({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Mv);
_.B(Mv,"ytd-clip-attribution-renderer",function(){if(P6o!==void 0)return P6o;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return P6o=G},{mode:1});var QQz;var VR=function(){var G=_.J.apply(this,arguments)||this;G.player=null;G.JSC$23327_playerEvents=new Map;return G};
_.u(VR,_.J);_.P=VR.prototype;_.P.created=function(){this.player=null;this.JSC$23327_playerEvents=new Map;this.JSC$23327_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23327_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23327_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P.attached=function(){var G=this,c=_.ZA();c&&c.getPlayerPromise().then(function(I){G.setPlayer(I);G.set("isPageLoad",!1)})};
_.P.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23327_playerEvents);this.set("player",G);if(G){this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23327_playerEvents);var c;(G==null?void 0:(c=G.getPresentingPlayerType)==null?void 0:c.call(G))===2&&this.playerAdStartHandler()}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onVideoProgress=function(){var G,c,I=((G=this.player)==null?void 0:(c=G.getPresentingPlayerType)==null?void 0:c.call(G))===2;this.isAdPlaying!==I&&this.set("isAdPlaying",I)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],VR.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],VR.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],VR.prototype,"isAdPlaying",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],VR.prototype,"isPageLoad",void 0);_.r([_.Jc({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],VR);
_.B(VR,"ytd-clip-section-footer-renderer",function(){if(QQz!==void 0)return QQz;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return QQz=G},{mode:1});var myf;var aZ5;var Tqy=function(){return _.J.apply(this,arguments)||this};
_.u(Tqy,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Tqy.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Tqy.prototype,"data",void 0);_.r([_.Jc({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Tqy);
_.B(Tqy,"ytd-clip-ad-state-renderer",function(){if(aZ5!==void 0)return aZ5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return aZ5=G},{mode:1});var OR_;var zn=function(){var G=_.J.apply(this,arguments)||this;G.value="";G.valid=!1;G.userChangedValue=!1;G.disabled=!1;G.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return G};
_.u(zn,_.J);_.P=zn.prototype;_.P.detached=function(){this.userChangedValue=!1};
_.P.handleKeyDown=function(G){if(_.ny)var c=13;else _.Xr0&&_.vC?c=13:c=13;G.keyCode===c&&G.preventDefault()};
_.P.handleInput=function(){var G=_.Q1(this.hostElement).querySelector("#title");if(G){var c=(G.value||"").replace(/\r|\n/g," ");this.set("value",c);G.value=c;this.valid=G.validate();this.userChangedValue=!0}};
_.P.handleBlur=function(){this.valid=_.Q1(this.hostElement).querySelector("#title").validate()};
_.P.onValueChanged=function(){_.Xl(this.hostElement,"title-changed",{title:this.value})};
_.P.onValidChanged=function(){_.Xl(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.P.setInput=function(G,c){var I=_.Q1(this.hostElement).querySelector("#title");I&&(I.value=G,this.handleInput(),c&&(I.invalid=!1,this.valid=!0))};
_.P.onClipCreationDisable=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable=function(){this.set("disabled",!1)};
_.P.onClipCreationVisibilityChange=function(G){var c=this;G.visible?requestAnimationFrame(function(){var I;((I=_.Q1(c.hostElement).querySelector("#title"))==null?void 0:I.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
zn.prototype.onValidChanged=zn.prototype.onValidChanged;zn.prototype.onValueChanged=zn.prototype.onValueChanged;zn.prototype.handleBlur=zn.prototype.handleBlur;zn.prototype.handleInput=zn.prototype.handleInput;zn.prototype.handleKeyDown=zn.prototype.handleKeyDown;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],zn.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],zn.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],zn.prototype,"value",void 0);_.r([_.E(),_.h("design:type",Object)],zn.prototype,"valid",void 0);_.r([_.E(),_.h("design:type",Object)],zn.prototype,"userChangedValue",void 0);_.r([_.E(),_.h("design:type",Object)],zn.prototype,"disabled",void 0);_.r([_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],zn.prototype,"handleKeyDown",null);
_.r([_.qY("input"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zn.prototype,"handleInput",null);_.r([_.qY("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zn.prototype,"handleBlur",null);_.r([_.wD("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zn.prototype,"onValueChanged",null);
_.r([_.wD("valid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zn.prototype,"onValidChanged",null);_.r([_.Jc({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],zn);
_.B(zn,"ytd-clip-creation-text-input-renderer",function(){if(OR_!==void 0)return OR_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return OR_=G},{mode:1});var egJ;var NqR;var lZz;var qQx;var wq5;var ER=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};G.pendingStoryboardImages_={};G.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];G.tickLabelInterval=30;G.mediumTickInterval=5;G.largeTickInterval=15;G.aboveRulerHeight=32;G.rulerHeight=50;G.smallTickHeight=4;G.mediumTickHeight=8;G.largeTickHeight=16;G.mediaListeners_=
{};return G};
_.u(ER,_.J);_.P=ER.prototype;_.P.attached=function(){var G=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(c){c=_.Q(["screen and (min-resolution: "+c+")","screen and (max-resolution: "+c+")"]);for(var I=c.next();!I.done;I=c.next()){I=I.value;var R=window.matchMedia(I);R&&(G.mediaListeners_[I]=G.updatePixelRatio_.bind(G),R.addEventListener?R.addEventListener("change",G.mediaListeners_[I]):R.addListener?R.addListener(G.mediaListeners_[I]):delete G.mediaListeners_[I])}})};
_.P.detached=function(){this.setPlayer(null);for(var G=_.Q(Object.keys(this.mediaListeners_)),c=G.next();!c.done;c=G.next()){var I=c.value;c=this.mediaListeners_[I];(I=window.matchMedia(I))&&(I.removeEventListener?I.removeEventListener("change",c):I.removeListener&&I.removeListener(c))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.P.onVisibilityChangedAction_=function(G){var c=this;G.visible&&!this.player_&&(G=_.ZA())&&G.getPlayerPromise().then(function(I){c.setPlayer(I)})};
_.P.setPlayer=function(G){G&&this.set("player_",G)};
_.P.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.P.setUpCanvas_=function(){var G=this.rulerWidth,c=this.devicePixelRatio_,I=this.visible;this.set("canvasReady_",!1);if(I&&c!==0){I=this.aboveRulerHeight+this.rulerHeight;var R=_.Q1(this.hostElement).querySelector("#ticks");R.width=G*c;R.height=I*c;R.style.width=G+"px";R.style.height=I+"px";R.getContext("2d").scale(c,c);this.set("canvasReady_",!0)}};
_.P.drawRuler_=function(G,c,I,R,Z,K,m,a,O,N,q,w){G&&I&&c&&(G=_.Q1(this.hostElement).querySelector("#ticks"),c=G.getContext("2d"),c.clearRect(0,0,G.width,G.height),c.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),c.lineWidth=2,c.beginPath(),c.moveTo(0,this.aboveRulerHeight),c.lineTo(G.width,this.aboveRulerHeight),c.moveTo(0,G.height),c.lineTo(G.width,G.height),c.stroke(),this.drawRulerTicks_(G,K,Z,R),this.drawStoryboardImages_(G,I,K,Z,R),c.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
c.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(m-K,R,!1),this.rulerHeight),I=this.timeToPixels_(a-K,R,!1),c.fillRect(I,this.aboveRulerHeight,G.width-I,this.rulerHeight),this.drawSpeedLines_(G,K,w))};
_.P.drawRulerTicks_=function(G,c,I,R){var Z=G.getContext("2d");Z.save();Z.lineWidth=1;for(var K=Math.floor(Math.max(0,c-this.tickLabelInterval));K<c+I;K++){Z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var m=(K-c)*R;Z.beginPath();Z.moveTo(m,G.height);var a=this.smallTickHeight;K%this.largeTickInterval===0?a=this.largeTickHeight:K%this.mediumTickInterval===0&&(a=this.mediumTickHeight);Z.lineTo(m,G.height-a);Z.stroke();K%this.tickLabelInterval===0&&(Z.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Z.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Z.fillText($H(K),m+4,12),Z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Z.moveTo(m,0),Z.lineTo(m,this.aboveRulerHeight),Z.stroke())}Z.restore()};
_.P.percentToHex_=function(G){G=Math.round(G*255).toString(16);G.length<2&&(G="0"+G);return G};
_.P.drawSpeedLines_=function(G,c,I){var R=G.getContext("2d");R.save();var Z=Math.min(25,Math.abs(I)-15)/25,K=G.width*.3*Z,m=G.width*-.3,a=G.width*1.3,O=this.aboveRulerHeight;G=G.height;var N=Math.round(4*Z),q=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");q.length<7&&(q="#"+q.substring(1,4).repeat(2));var w=this.percentToHex_(.5+Z/2);w=q+w;q+="00";if(Z>0)for(Z=0;Z<N;Z++){var F=m+Math.random()*(a-m),n=O+Math.random()*(G-O),U=K+c%K,k=R.createLinearGradient(F,n,F+U,n);
I<0?(k.addColorStop(0,w),k.addColorStop(.4,w),k.addColorStop(.9,q)):(k.addColorStop(.1,q),k.addColorStop(.6,w),k.addColorStop(1,w));R.strokeStyle=k;R.lineWidth=1;R.beginPath();R.moveTo(F,n);R.lineTo(F+U,n);R.stroke()}R.restore()};
_.P.getStoryboardForTime_=function(G,c,I){I===void 0&&(I=c.getNumberOfStoryboardLevels()-1);G=c.getStoryboardFrameIndex(G,I);return c.getStoryboardFrame(G,I)};
_.P.drawStoryboardImages_=function(G,c,I,R,Z){if(!this.disabled){G=G.getContext("2d");var K=this.getStoryboardForTime_(0,c);if(K){var m=K.width/K.columns;K=K.height/K.rows;var a=m/K,O=this.rulerHeight*a;O=this.tickLabelInterval*(a<this.tickLabelInterval*Z/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Z/O):Math.round(O/(this.tickLabelInterval*Z)));var N=O*Z,q=this.rulerHeight,w=N/this.rulerHeight,F=Math.floor(Math.max(0,I-O));for(F-=F%O;F<I+R;F+=O){var n=this.getStoryboardForTime_(F,c),U=this.getPreloadedStoryboard_(n.url);
if(U){var k=(F-I)*Z,p=this.aboveRulerHeight,M=n.column*m,z=n.row*K;if(a<w){var t=q/(N/a);n=m;t*=K;z+=(K-t)/2}else n=N/(q*a)*m,t=K,M+=(m-n)/2;G.drawImage(U,M,z,n,t,k,p,N,q)}else this.fetchStoryboardImage_(n)}}}};
_.P.getPreloadedStoryboard_=function(G){return this.storyboardImages_.find(function(c){if(c.src==G)return!0;var I=c.src.indexOf(G);return I!=-1&&I==c.src.length-G.length})};
_.P.fetchStoryboardImage_=function(G){var c=this,I=this.getPreloadedStoryboard_(G.url),R=this.pendingStoryboardImages_[G.url];I||R!==void 0||(I=new Promise(function(Z){var K=new Image(G.width,G.height);K.src=G.url;K.onload=function(){Z(K)};
K.onerror=function(){Z(null)}}),this.pendingStoryboardImages_[G.url]=I,I.then(function(Z){Z&&c.push("storyboardImages_",Z);
return Z}).finally(function(){delete c.pendingStoryboardImages_[G.url]}))};
_.P.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.P.timeToPixels_=function(G,c,I){G*=c;return I===void 0||I?G+"px":G};
_.P.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
ER.prototype.drawRuler_=ER.prototype.drawRuler_;ER.prototype.setUpCanvas_=ER.prototype.setUpCanvas_;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],ER.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],ER.prototype,"start",void 0);_.r([_.E({value:30}),_.h("design:type",Number)],ER.prototype,"end",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],ER.prototype,"visible",void 0);_.r([_.E(),_.h("design:type",Object)],ER.prototype,"player_",void 0);_.r([_.E(),_.h("design:type",Number)],ER.prototype,"tickSpacing",void 0);_.r([_.E(),_.h("design:type",Number)],ER.prototype,"windowSizeSec",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],ER.prototype,"rulerWidth",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],ER.prototype,"rulerShift",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],ER.prototype,"canvasReady_",void 0);_.r([_.E({value:function(){return[]}}),
_.h("design:type",Array)],ER.prototype,"storyboardImages_",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],ER.prototype,"disabled",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],ER.prototype,"forceRender_",void 0);_.r([_.E({value:1}),_.h("design:type",Number)],ER.prototype,"devicePixelRatio_",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],ER.prototype,"windowSpeed",void 0);
_.r([_.wD("visible","devicePixelRatio_","rulerWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ER.prototype,"setUpCanvas_",null);
_.r([_.wD("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")],ER.prototype,"drawRuler_",null);_.r([_.Em({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],ER);
_.B(ER,"yt-clip-creation-scrubber-canvas",function(){if(wq5===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);wq5=G}G=wq5;return G},
{mode:2});var FYR;var n05;var Jv=function(){var G=_.J.apply(this,arguments)||this;G.start=0;G.end=30;G.visible=!1;G.draggingLeft_=!1;G.draggingRight_=!1;G.draggingRuler_=!1;G.draggingWindow_=!1;G.seekableStart=0;G.seekableEnd=0;G.rulerWidth_=0;G.rulerShift_=0;G.windowSlideSpeed=0;G.disabled=!1;G.initialized=!1;G.durationAccessibilityLabel="";G.activeLoopRange_=!1;G.rulerDragMouseStart_=0;G.rulerDragRulerStart_=0;G.rulerDragStartTime_=0;G.rulerDragEndTime_=0;G.dragMouseLastX_=0;G.scrollInterval_=null;G.scrubberVe_=null;G.boundHandlers_=
{};G.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.u(Jv,_.J);_.P=Jv.prototype;
_.P.created=function(){var G=this;this.JSC$23340_playerEvents=new Map;this.JSC$23340_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23340_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23340_playerEvents.set("onStateChange",this.onStateChange_);var c={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(c).forEach(function(I){G.boundHandlers_[I]=c[I].bind(G)})};
_.P.attached=function(){this.activeLoopRange_=!1;_.Q1(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Q1(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.qj(156731)};
_.P.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Q1(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Q1(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.P.onVisibilityChangedAction_=function(G){var c=this;G.visible&&!this.player_&&(G=_.ZA())&&G.getPlayerPromise().then(function(I){c.setPlayer(I)})};
_.P.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23340_playerEvents);G&&(this.set("player_",G),this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23340_playerEvents))};
_.P.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.beginHandleDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=G.clientX,G.target===_.Q1(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():G.target===_.Q1(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.P.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.P.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.P.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.P.beginRulerDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=G.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.P.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.P.beginWindowScroll_=function(){var G=this;this.scrollInterval_=setInterval(function(){var c=G.windowSlideSpeed;if(c=_.MVx(G.start,G.boundedRulerStartLimit_())?c-.1:_.MVx(G.end,G.boundedRulerEndLimit_())?c+.1:0){var I=G.capRulerOffset_(G.rulerShift_+c);I==G.rulerShift_?c=0:(G.set("rulerShift_",I),_.Xl(G.hostElement,"set-fixed-length-range",{start:G.start+c,duration:G.end-G.start}))}G.set("windowSlideSpeed",c)},33)};
_.P.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.P.endDrag_=function(){this.logClick();var G=void 0;this.draggingRight_?G=this.end-1:this.draggingLeft_&&(G=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,G);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.P.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.P.updateRulerSize_=function(){this.set("rulerWidth_",_.Q1(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.P.handleMouseDrag_=function(G){G.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(G):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(G):this.draggingWindow_&&this.handleWindowDrag_(G))};
_.P.handleRulerDrag_=function(G){G=this.pixelsToTime_(G.clientX-this.rulerDragMouseStart_);G=this.capRulerOffset_(this.rulerDragRulerStart_-G);this.set("rulerShift_",G);var c=this.rulerDragStartTime_-(this.rulerDragRulerStart_-G);_.Xl(this.hostElement,"set-fixed-length-range",{start:c,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-G)-c})};
_.P.handleWindowDrag_=function(G){var c=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(c);_.Xl(this.hostElement,"set-fixed-length-range",{start:this.start+G,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.capRulerOffset_=function(G){var c=this.seekableStart-this.pixelsToTime_(16),I=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(c,G),I)};
_.P.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.P.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.P.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.P.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.P.handleWindowHandleDrag_=function(G){var c=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(c);if(this.draggingLeft_){var I=this.start+G;var R=this.end}else this.draggingRight_&&(I=this.start,R=this.end+G);_.Xl(this.hostElement,"set-range",{start:I,end:R,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.onVideoProgress_=function(G){this.disabled||(G=this.timeToPixels_(G-this.rulerShift_,this.tickSpacing_),_.Q1(this.hostElement).querySelector("#playhead").style.transform="translateX("+G+")")};
_.P.onClipCreationDisable_=function(){this.endDrag_()};
_.P.timeToPixels_=function(G,c,I){G*=c;return I===void 0||I?G+"px":G};
_.P.pixelsToTime_=function(G){return G/this.tickSpacing_};
_.P.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.centerRuler_=function(G,c,I){this.set("rulerShift_",this.capRulerOffset_(G+(c-G)/2-I/2))};
_.P.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.P.updateLoopRange_=function(G,c,I,R,Z,K,m){G&&(c&&R&&!I?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(G.pauseVideo(),G.seekTo(Z,!1,void 0,void 0,50)):this.draggingRight_?(G.pauseVideo(),G.seekTo(K-.1,!1,void 0,void 0,50)):(m!==void 0?G.seekTo(m,!0,void 0,void 0,50):(c=G.getCurrentTime(),c<Z||c>K?G.seekTo(Z,!0,void 0,void 0,50):G.seekTo(c,!0,void 0,void 0,50)),G.playVideo()),G.setLoopRange({startTimeMs:Z*1E3,endTimeMs:K*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(G.getCurrentTime())):
this.activeLoopRange_&&(G.setLoopRange(null),this.activeLoopRange_=!1))};
_.P.updateHandles_=function(){_.Q1(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Q1(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.P.updateRuler_=function(){var G=this.end,c=this.start,I=this.draggableStartLimit_(),R=this.draggableEndLimit_();(c<I-.001||G>R+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.computeDurationLabel_=function(G,c){return G?G.replace("$clip_length",parseFloat(c).toFixed(1)):""};
_.P.computeDuration_=function(G,c){return this.isValidTime_(G)&&this.isValidTime_(c)&&G<c?c-G:0};
_.P.isValidTime_=function(G){return isNaN(parseFloat(G))||G<0?!1:this.player_?G>=this.seekableStart&&G<=this.seekableEnd:!0};
_.P.computeWindowSizeSec_=function(G,c,I){return Math.min((G||12E4)/1E3,I-c)};
_.P.computeTickSpacing_=function(G,c){return c?c/G:1};
_.P.onDragStateChanged_=function(){_.Xl(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.P.centerRangeOnTime_=function(G){var c=this.duration;G=L_N(G-c/2,c,this.seekableStart,this.seekableEnd);_.Xl(this.hostElement,"set-fixed-length-range",{start:G.start,duration:G.end-G.start})};
_.P.nearlyLessThan_=function(G,c,I){return G+(I===void 0?1E-6:I)<c};
_.P.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var G=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(G,this.start)||this.nearlyLessThan_(this.end,G))&&this.centerRangeOnTime_(G)}};
_.P.onStateChange_=function(G){this.visible&&!this.disabled&&G==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.P.computeDragState_=function(G,c,I,R){return G?"left":c?"right":I?"ruler":R?"window":"none"};
_.P.logClick=function(){var G=_.k0(),c=_.u6();G&&c&&this.scrubberVe_&&(_.v("combine_ve_grafts")?_.CJ(_.DP(),this.scrubberVe_,c):_.Wd(G,c,this.scrubberVe_),_.jW(G,this.scrubberVe_))};
Jv.prototype.onDragStateChanged_=Jv.prototype.onDragStateChanged_;Jv.prototype.updateRuler_=Jv.prototype.updateRuler_;Jv.prototype.updateHandles_=Jv.prototype.updateHandles_;Jv.prototype.onUpdateLoopRange=Jv.prototype.onUpdateLoopRange;Jv.prototype.onInitializedChanged_=Jv.prototype.onInitializedChanged_;Jv.prototype.onVisibleChanged_=Jv.prototype.onVisibleChanged_;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Jv.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",Object)],Jv.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"start",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"end",void 0);_.r([_.E({computed:"computeDuration_(start, end)"}),_.h("design:type",Number)],Jv.prototype,"duration",void 0);
_.r([_.E(),_.h("design:type",String)],Jv.prototype,"lengthTemplate",void 0);_.r([_.E({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.h("design:type",String)],Jv.prototype,"durationLabel",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"visible",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"player_",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"draggingLeft_",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"draggingRight_",void 0);
_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"draggingRuler_",void 0);_.r([_.E({value:!1}),_.h("design:type",Object)],Jv.prototype,"draggingWindow_",void 0);_.r([_.E({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.h("design:type",Number)],Jv.prototype,"tickSpacing_",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"seekableStart",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"seekableEnd",void 0);
_.r([_.E(),_.h("design:type",Number)],Jv.prototype,"windowSizeMs",void 0);_.r([_.E({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.h("design:type",Number)],Jv.prototype,"windowSizeSec_",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"rulerWidth_",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"rulerShift_",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"windowSlideSpeed",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Jv.prototype,"disabled",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"initialized",void 0);_.r([_.E(),_.h("design:type",Object)],Jv.prototype,"durationAccessibilityLabel",void 0);_.r([_.E({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.h("design:type",String)],Jv.prototype,"dragState",void 0);
_.r([_.wD("visible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jv.prototype,"onVisibleChanged_",null);_.r([_.wD("initialized"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jv.prototype,"onInitializedChanged_",null);_.r([_.wD("player_","visible","disabled","initialized","start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jv.prototype,"onUpdateLoopRange",null);
_.r([_.wD("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jv.prototype,"updateHandles_",null);_.r([_.wD("start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jv.prototype,"updateRuler_",null);
_.r([_.wD("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jv.prototype,"onDragStateChanged_",null);_.r([_.Em({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Jv);
_.B(Jv,"yt-clip-creation-scrubber-view",function(){if(n05===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;FYR===void 0&&(FYR=document.createElement("template"));var R=FYR;I.call(c,R.content.cloneNode(!0),G.content.firstChild);n05=G}G=n05;return G},{mode:2});var WG=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};G.startHighlightTimeout=0;G.endHighlightTimeout=0;return G};
_.u(WG,_.J);_.P=WG.prototype;_.P.attached=function(){var G=this;this.startInput.addEventListener("input",function(c){return G.handleStartInput_(c)});
this.endInput.addEventListener("input",function(c){return G.handleEndInput_(c)});
this.startInput.addEventListener("focusout",function(c){return G.handleStartBlur_(c)});
this.endInput.addEventListener("focusout",function(c){return G.handleEndBlur_(c)})};
_.P.setPlayer=function(G){this.set("player_",G)};
_.P.onSetFixedLengthRange_=function(G){var c=G.detail;G=c.start;var I=c.duration,R=c.startLimit;c=c.endLimit;R||(R=this.seekableStart_);c||(c=this.seekableEnd_);G=L_N(G,I,R,c);this.start=G.start;this.end=G.end};
_.P.onSetRange_=function(G){var c=G.detail;G=c.start;var I=c.end,R=c.startLimit;c=c.endLimit;R||(R=this.seekableStart_);c||(c=this.seekableEnd_);if(G=A$N(G,I,R,c,this.minLengthSec,this.maxLengthSec))this.start=G.start,this.end=G.end};
_.P.updateInputs_=function(){var G=this.end,c=this.start;this.startInput.focused||(this.startInput.value=$H(c,!0));this.endInput.focused||(this.endInput.value=$H(G,!0))};
_.P.handleStartInput_=function(G){G=szo(G.target.value);if(G===null)this.set("startValid",!1);else{var c=this.end,I=A$N(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("endWillUpdate",I.end!==c),this.set("startValid",I.start===G)):this.set("startValid",!1)}};
_.P.handleEndInput_=function(G){G=szo(G.target.value);if(G===null)this.set("endValid",!1);else{var c=this.start,I=$tf(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("startWillUpdate",I.start!==c),this.set("endValid",I.end===G)):this.set("endValid",!1)}};
_.P.handleStartBlur_=function(G){G=szo(G.target.value);G===null?this.startInput.value=$H(this.start,!0):this.forceUpdateInputs_(A$N(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.handleEndBlur_=function(G){G=szo(G.target.value);G===null?this.endInput.value=$H(this.end,!0):this.forceUpdateInputs_($tf(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.forceUpdateInputs_=function(G){G&&(this.start=G.start,this.end=G.end);this.startInput.value=$H(this.start,!0);this.endInput.value=$H(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.P.initializeClipRange_=function(){var G=this.seekableEnd_,c=this.seekableStart_,I=this.visible_,R=this.player_;if(!R||!I||c===null||!G)this.set("initialized",!1);else if(!this.initialized){var Z=R.getCurrentTime(),K=this.getDefaultLengthSec_();I=R.getVideoData();var m=R.getPlayerState()==1,a=I.isLive;K=Math.min(K,G-c);Z=Math.max(0,Z);G=a?$tf(Z-K,Z,c,G,this.minLengthSec,this.maxLengthSec):m?L_N(Z-K/2,K,c,G):L_N(Z,K,c,G);this.start=G.start;this.end=G.end;this.set("initialized",!0);I.isLive&&R.seekTo(G.start);
this.startInput.value=$H(this.start,!0);this.endInput.value=$H(this.end,!0)}};
_.P.onStartChanged_=function(){var G=this;_.Xl(this.hostElement,"start-changed",{start:this.start});var c;isNaN((c=this.oldStart)!=null?c:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){G.set("highlightStart",!1);G.startHighlightTimeout=0;G.oldStart=G.start},3E3))};
_.P.onEndChanged_=function(){var G=this;_.Xl(this.hostElement,"end-changed",{end:this.end});var c;isNaN((c=this.oldEnd)!=null?c:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){G.set("highlightEnd",!1);G.endHighlightTimeout=0;G.oldEnd=G.end},3E3))};
_.P.onVisibilityChangedAction_=function(G){var c=this;this.set("visible_",G.visible);this.visible_&&!this.player_&&(G=_.ZA())&&G.getPlayerPromise().then(function(I){c.setPlayer(I)})};
_.P.computeMinLengthSec_=function(G){return G/1E3||5};
_.P.computeMaxLengthSec_=function(G){return G/1E3||60};
_.P.computeDefaultLengthSec_=function(G){return G/1E3};
_.P.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.P.computeSeekableStart_=function(G,c){return G&&c?G.getProgressState(1).seekableStart:0};
_.P.computeSeekableEnd_=function(G,c){return G&&c?G.getProgressState(1).seekableEnd:0};
_.P.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.P.onDragState_=function(G){this.set("highlightStart",G.detail.startChanging);this.set("highlightEnd",G.detail.endChanging)};
WG.prototype.onDragState_=WG.prototype.onDragState_;WG.prototype.onEndChanged_=WG.prototype.onEndChanged_;WG.prototype.onStartChanged_=WG.prototype.onStartChanged_;WG.prototype.initializeClipRange_=WG.prototype.initializeClipRange_;WG.prototype.updateInputs_=WG.prototype.updateInputs_;WG.prototype.onSetRange_=WG.prototype.onSetRange_;WG.prototype.onSetFixedLengthRange_=WG.prototype.onSetFixedLengthRange_;
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],WG.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],WG.prototype,"data",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],WG.prototype,"start",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],WG.prototype,"startValid",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],WG.prototype,"startWillUpdate",void 0);_.r([_.E({value:30}),_.h("design:type",Number)],WG.prototype,"end",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],WG.prototype,"endValid",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],WG.prototype,"endWillUpdate",void 0);_.r([_.E({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.h("design:type",Number)],WG.prototype,"minLengthSec",void 0);
_.r([_.E({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.h("design:type",Number)],WG.prototype,"maxLengthSec",void 0);_.r([_.E({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.h("design:type",Number)],WG.prototype,"defaultLengthSec",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],WG.prototype,"visible_",void 0);_.r([_.E(),_.h("design:type",Object)],WG.prototype,"player_",void 0);
_.r([_.E({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.h("design:type",Number)],WG.prototype,"seekableStart_",void 0);_.r([_.E({computed:"computeSeekableEnd_(player_, visible_)"}),_.h("design:type",Number)],WG.prototype,"seekableEnd_",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],WG.prototype,"initialized",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],WG.prototype,"disabled",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],WG.prototype,"highlightStart",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],WG.prototype,"highlightEnd",void 0);_.r([_.nH("#start"),_.h("design:type",HTMLInputElement)],WG.prototype,"startInput",void 0);_.r([_.nH("#end"),_.h("design:type",HTMLInputElement)],WG.prototype,"endInput",void 0);
_.r([_.qY("set-fixed-length-range"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],WG.prototype,"onSetFixedLengthRange_",null);_.r([_.qY("set-range"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],WG.prototype,"onSetRange_",null);_.r([_.wD("start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WG.prototype,"updateInputs_",null);
_.r([_.wD("player_","visible_","seekableStart_","seekableEnd_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WG.prototype,"initializeClipRange_",null);_.r([_.wD("start"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WG.prototype,"onStartChanged_",null);_.r([_.wD("end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WG.prototype,"onEndChanged_",null);
_.r([_.qY("clips-drag-state"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],WG.prototype,"onDragState_",null);_.r([_.Em({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],WG);
_.B(WG,"yt-clip-creation-scrubber-renderer",function(){if(qQx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;lZz===void 0&&(lZz=document.createElement("template"));var R=lZz;I.call(c,R.content.cloneNode(!0),G.content.firstChild);qQx=G}G=qQx;return G},{mode:2});var iC=function(){var G=_.J.apply(this,arguments)||this;G.player_=null;G.JSC$23354_playerEvents=new Map;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.u(iC,_.J);_.P=iC.prototype;_.P.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.P.created=function(){this.JSC$23354_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23354_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23354_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23354_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.P.detached=function(){this.setPlayer(null)};
_.P.onVisibilityChangedAction_=function(G){var c=this,I;if((I=this.data)==null?0:I.externalVideoId){var R;this.videoId=(R=this.data)==null?void 0:R.externalVideoId}this.getPlayer().then(function(Z){if(G.visible)c.returnTime=Z.getCurrentTime(),c.isAtLiveHead=Z.getProgressState().isAtLiveHead;else{var K=c.returnTime;c.isAtLiveHead&&(K=Number.POSITIVE_INFINITY);Z.seekTo(K,void 0,void 0,void 0,51)}})};
_.P.getPlayer=function(){var G=this;if(!this.player_){var c=_.ZA();if(c)return c.getPlayerPromise().then(function(I){G.setPlayer(I);return I})}return Promise.resolve(this.player_)};
_.P.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23354_playerEvents);if(G){this.player_=G;var c;((c=this.data)==null?0:c.externalVideoId)||this.set("videoId",G.getVideoData().video_id||"");var I;(G==null?void 0:(I=G.getPresentingPlayerType)==null?void 0:I.call(G))===2&&(this.set("isAdPlaying",!0),_.ym(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23354_playerEvents)}};
_.P.ready=function(){_.Q1(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.P.onTitleChanged_=function(G){this.set("titleValue",G.detail.title)};
_.P.onStartChanged_=function(G){this.set("start",G.detail.start)};
_.P.onEndChanged_=function(G){this.set("end",G.detail.end)};
_.P.onTitleValidChanged_=function(G){this.set("titleValid",G.detail.valid)};
_.P.onStartValidChanged_=function(G){this.set("startValid",G.detail.valid)};
_.P.onEndValidChanged_=function(G){this.set("endValid",G.detail.valid)};
_.P.onVideoDataChange_=function(){var G;if((G=this.data)==null||!G.externalVideoId){var c;this.set("videoId",((c=this.player_)==null?void 0:c.getVideoData().video_id)||"")}};
_.P.computeFormValid_=function(G,c,I,R){return!!(G&&c&&I&&R)};
_.P.computeCancelButton_=function(G,c,I){return G&&_.D(G,_.vE)?{buttonRenderer:Object.assign({},_.D(G,_.vE),{isDisabled:c||I})}:null};
_.P.computeSubmitButton_=function(G,c,I){return G&&_.D(G,_.vE)?{buttonRenderer:Object.assign({},_.D(G,_.vE),{command:void 0,isDisabled:!this.formValid||c||I})}:null};
_.P.computeSubmitCommand_=function(G){return G||null};
_.P.onSubmit_=function(G){var c=this;G.stopPropagation();G.preventDefault();this.submitCommand_&&(G={},G.comment_text=this.titleValue,G.clip_external_video_id=this.videoId,G.clip_offset_ms=parseInt(this.start*1E3,10),G.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Gs(this.hostElement,[this.submitCommand_,G]).then(function(){c.set("isLoading_",!1)},function(){c.set("isLoading_",!1)}))};
_.P.playerAdStartHandler_=function(){_.ym(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler_=function(){_.ym(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.P.onVideoProgress_=function(){var G=this;this.getPlayer().then(function(c){var I,R=(c==null?void 0:(I=c.getPresentingPlayerType)==null?void 0:I.call(c))===2;G.isAdPlaying!==R&&(R?G.playerAdStartHandler_():G.playerAdEndHandler_())})};
iC.prototype.onEndValidChanged_=iC.prototype.onEndValidChanged_;iC.prototype.onStartValidChanged_=iC.prototype.onStartValidChanged_;iC.prototype.onTitleValidChanged_=iC.prototype.onTitleValidChanged_;iC.prototype.onEndChanged_=iC.prototype.onEndChanged_;iC.prototype.onStartChanged_=iC.prototype.onStartChanged_;iC.prototype.onTitleChanged_=iC.prototype.onTitleChanged_;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],iC.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",Object)],iC.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],iC.prototype,"data",void 0);_.r([_.E({value:""}),_.h("design:type",String)],iC.prototype,"titleValue",void 0);
_.r([_.E({value:!1}),_.h("design:type",Boolean)],iC.prototype,"titleValid",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],iC.prototype,"start",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],iC.prototype,"startValid",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],iC.prototype,"end",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],iC.prototype,"endValid",void 0);_.r([_.E({value:""}),_.h("design:type",String)],iC.prototype,"videoId",void 0);
_.r([_.E({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.h("design:type",Boolean)],iC.prototype,"formValid",void 0);_.r([_.E({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.h("design:type",Object)],iC.prototype,"submitButton_",void 0);_.r([_.E({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.h("design:type",Object)],iC.prototype,"submitCommand_",void 0);
_.r([_.E({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.h("design:type",Object)],iC.prototype,"cancelButton_",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],iC.prototype,"isLoading_",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],iC.prototype,"isAdPlaying",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],iC.prototype,"returnTime",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],iC.prototype,"isAtLiveHead",void 0);
_.r([_.qY("title-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iC.prototype,"onTitleChanged_",null);_.r([_.qY("start-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iC.prototype,"onStartChanged_",null);_.r([_.qY("end-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iC.prototype,"onEndChanged_",null);
_.r([_.qY("title-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iC.prototype,"onTitleValidChanged_",null);_.r([_.qY("start-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iC.prototype,"onStartValidChanged_",null);_.r([_.qY("end-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iC.prototype,"onEndValidChanged_",null);
_.r([_.Em({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],iC);
_.B(iC,"yt-clip-creation-renderer",function(){if(NqR===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;egJ===void 0&&(egJ=document.createElement("template"));var R=egJ;I.call(c,R.content.cloneNode(!0),G.content.firstChild);NqR=G}G=NqR;return G},{mode:2});var fz=function(){return _.J.apply(this,arguments)||this};
_.u(fz,_.J);fz.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"}}}};
fz.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(G){return G.hasOwnProperty("clipCreationRenderer")})&&_.ym(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
fz.prototype.onPanelContentVisibleChanged=fz.prototype.onPanelContentVisibleChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.vR.YtVisibilityBehavior),_.h("design:type",Object)],fz.prototype,"ytVisibilityBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],fz.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],fz.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],fz.prototype,"panelContentVisible",void 0);_.r([_.wD("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fz.prototype,"onPanelContentVisibleChanged",null);_.r([_.Jc({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],fz);
_.B(fz,"ytd-clip-section-renderer",function(){if(myf!==void 0)return myf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return myf=G},{mode:1});var v0J;var BG=function(){return _.J.apply(this,arguments)||this};
_.u(BG,_.J);_.P=BG.prototype;
_.P.onKeyDown=function(G){if(this.snippetElements.length!==0&&(G=G.keyCode,G===38||G===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);G===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Be(this.highlightedIndex,-1,this.snippetElements.length);G=this.snippetElements.length;var c=this.highlightedIndex%G;this.highlightedIndex=c*G<0?c+G:c;G=this.snippetElements[this.highlightedIndex];this.highlightSnippet(G);this.ensureVisible(G)}};
_.P.onKeyUp=function(G){var c=this;Fpx(G)&&(G.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.dJ.cancelJob(this.inputTimerId),this.inputTimerId=_.dJ.addLowPriorityJob(function(){c.typedValue&&(c.fetchSnippets(c.typedValue),c.logInputGesture(c.data))},1E3))};
_.P.onClick=function(G){(G=_.j20(G.target,null,"snippet-item"))&&this.selectSnippet(G)};
_.P.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.P.ready=function(){var G=this;this.inputElement.addEventListener("focus",function(){G.snippetsWrapper.style.removeProperty("display")})};
_.P.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.P.getSourceTimelines=function(){if(!this.data)return[];var G=[];if(this.data.searchInVideoSources)for(var c=_.Q(this.data.searchInVideoSources),I=c.next();!I.done;I=c.next())I=I.value,I==="SEARCH_IN_VIDEO_SOURCE_ASR"?G.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):I==="SEARCH_IN_VIDEO_SOURCE_OCR"&&G.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return G};
_.P.fetchSnippets=function(G){var c=_.ym(this.hostElement,"yt-get-current-video-id-action")[0],I=this.getSourceTimelines();G={getSearchInVideoCommand:{externalVideoId:c,query:G!=null?G:"",sourceTimelines:I},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}})};
_.P.filterSnippets=function(G,c){var I=this;if(c){this.filteredSnippets=(0,_.rx.unsafeClone)(G);var R=RegExp(_.E1O(c),"i");this.filteredSnippets=this.filteredSnippets.filter(function(m){return R.test(I.ytRendererBehavior.getSimpleString(m.snippet))});
G=_.Q(this.filteredSnippets);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;var K=this.ytRendererBehavior.getSimpleString(Z.snippet);Z.snippet={runs:[{text:K.substring(0,K.toLowerCase().indexOf(c))},{text:K.substring(K.toLowerCase().indexOf(c),K.toLowerCase().indexOf(c)+c.length),bold:!0},{text:K.substring(K.toLowerCase().indexOf(c)+c.length,K.length)}]}}}else this.filteredSnippets=G};
_.P.onUpdateSearchInVideoResults=function(G){if(!(this.snippets.length>0)){var c,I,R;if((R=(c=_.D(G,Sfx))==null?void 0:(I=c.results)==null?void 0:I.length)!=null&&R){var Z;this.filteredSnippets=this.snippets=((Z=_.D(G,Sfx))==null?void 0:Z.results).map(function(K){var m,a,O;return{startMs:K==null?void 0:(m=K.searchInVideoResultRenderer)==null?void 0:m.startMs,startTimeText:K==null?void 0:(a=K.searchInVideoResultRenderer)==null?void 0:a.startTimeText,snippet:K==null?void 0:(O=K.searchInVideoResultRenderer)==
null?void 0:O.snippet}})}}};
_.P.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.P.highlightSnippet=function(G){G.classList.add("highlighted")};
_.P.removeSnippetHighlight=function(G){G.classList.remove("highlighted")};
_.P.selectSnippet=function(G){this.typedValue=String(G.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(G);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.P.ensureVisible=function(G){var c=this.snippetsWrapper.scrollTop,I=c+this.snippetsWrapper.clientHeight,R=G.offsetTop-this.snippetsWrapper.offsetTop;G=R+G.clientHeight;R<c?this.snippetsWrapper.scrollTop-=c-R:G>I&&(this.snippetsWrapper.scrollTop+=G-I)};
_.P.seekPlayer=function(G){var c,I;return _.T(function(R){if(R.nextAddress==1){if(!G)return R.jumpTo(0);c=Number(G.dataset.startOffset);return R.yield(_.Ke().getPlayerPromise(),3)}I=R.yieldResult;I.seekTo(c/1E3,!0);I.wakeUpControls();_.Vp(R)})};
_.P.logInputGesture=function(G){var c=_.k0();c&&(G==null?0:G.trackingParams)&&_.xD(c,_.kC(G.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.P.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("typed-value-changed",this.typedValue))};
_.P.updateTypedValueFromBinding=function(G){this.typedValue=G.currentTarget.value};
BG.prototype.typedValueChangedForBinding=BG.prototype.typedValueChangedForBinding;BG.prototype.dataChanged=BG.prototype.dataChanged;BG.prototype.panelContentVisibleChanged=BG.prototype.panelContentVisibleChanged;BG.prototype.onClick=BG.prototype.onClick;BG.prototype.onKeyUp=BG.prototype.onKeyUp;BG.prototype.onKeyDown=BG.prototype.onKeyDown;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],BG.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],BG.prototype,"data",void 0);_.r([_.E({value:[]}),_.h("design:type",Array)],BG.prototype,"snippets",void 0);_.r([_.E({value:[]}),_.h("design:type",Array)],BG.prototype,"filteredSnippets",void 0);_.r([_.E({value:[]}),_.h("design:type",Array)],BG.prototype,"snippetElements",void 0);
_.r([_.nH("#siv-input"),_.h("design:type",HTMLElement)],BG.prototype,"inputElement",void 0);_.r([_.nH("#siv-snippets-wrapper"),_.h("design:type",HTMLElement)],BG.prototype,"snippetsWrapper",void 0);_.r([_.E(),_.h("design:type",String)],BG.prototype,"typedValue",void 0);_.r([_.E({value:-1}),_.h("design:type",Number)],BG.prototype,"highlightedIndex",void 0);_.r([_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[_.JE]),_.h("design:returntype")],BG.prototype,"onKeyDown",null);
_.r([_.qY("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[_.JE]),_.h("design:returntype")],BG.prototype,"onKeyUp",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],BG.prototype,"onClick",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],BG.prototype,"panelContentVisible",void 0);
_.r([_.wD("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BG.prototype,"panelContentVisibleChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BG.prototype,"dataChanged",null);_.r([_.wD("typedValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BG.prototype,"typedValueChangedForBinding",null);
_.r([_.Jc({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],BG);
_.B(BG,"ytd-search-in-video-renderer",function(){if(v0J!==void 0)return v0J;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return v0J=G},{mode:1});var Dyz;var rd=function(){return _.J.apply(this,arguments)||this};
_.u(rd,_.J);rd.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
rd.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]]"}}}}}};
rd.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,c,I,R,Z=(c=_.D((G=this.data)==null?void 0:G.onClickCommand,_.iuV))==null?void 0:(I=c.item)==null?void 0:(R=I.notificationTextRenderer)==null?void 0:R.successResponseText;Z&&_.w5g(this.hostElement,Z)}};
_.Nh.Object.defineProperties(rd.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R;return this.isProductPlaceholder&&((G=this.data)==null?void 0:(c=G.hiddenProductOptions)==null?void 0:c.showDropCountdown)&&!!((I=this.data)==null?0:(R=I.hiddenProductOptions)==null?0:R.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var G;return!this.isProductPlaceholder&&!((G=this.data)==null?0:G.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null?0:G.priceReplacementText)&&!((c=this.data)==null||!c.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],rd.prototype,"componentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rd.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],rd.prototype,"useCenterLayoutContainer",null);_.r([_.E({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],rd.prototype,"buttonOverride",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rd.prototype,"isProductPlaceholder",null);
_.r([_.A("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],rd.prototype,"showDropCountdown",null);_.r([_.A("isProductPlaceholder","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rd.prototype,"showBrandName",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rd.prototype,"showPriceReplacementText",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rd.prototype,"showPrice",null);
_.r([_.A("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],rd.prototype,"showMetadata",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],rd);
_.B(rd,"ytd-product-list-item-renderer",function(){if(Dyz!==void 0)return Dyz;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Dyz=G},{mode:1});var o0z;var jz=function(){return _.J.apply(this,arguments)||this};
_.u(jz,_.J);jz.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
jz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
jz.prototype.panelContentVisibleChanged=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return G.playerApi?I.jumpTo(2):I.yield(_.Ke().getPlayerPromise(),3);I.nextAddress!=2&&(G.playerApi=I.yieldResult);(c=G.playerApi)==null||c.productsInVideoVisibilityUpdated(!!G.panelContentVisible);_.Vp(I)})};
jz.prototype.panelContentVisibleChanged=jz.prototype.panelContentVisibleChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],jz.prototype,"panelContentVisible",void 0);_.r([_.E(),_.h("design:type",Object)],jz.prototype,"data",void 0);
_.r([_.wD("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],jz.prototype,"panelContentVisibleChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],jz);
_.B(jz,"ytd-product-list-renderer",function(){if(o0z!==void 0)return o0z;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return o0z=G},{mode:1});var Uy6;var xi=function(){var G=_.J.apply(this,arguments)||this;G.hideTimestamps=!!_.ka("hide-transcript-timestamps");G.currentCueIndex=-1;G.flatCues=[];G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};G.TEST_ONLY={getFlatCues:function(){return G.flatCues}};
return G};
_.u(xi,_.J);_.P=xi.prototype;_.P.hideTimestampsChanged=function(){_.bu("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.dataChanged=function(){var G;if((G=this.data)!=null&&G.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;G=_.Q(this.data.cueGroups);for(var c=G.next();!c.done;c=G.next()){c=_.Q(_.D(c.value,p_S).cues);for(var I=c.next();!I.done;I=c.next())this.flatCues.push(Number(_.D(I.value,McR).startOffsetMs))}}};
_.P.onYtPlayerTimeChanged=function(G){if(!(G<0)){for(var c=this.currentCueIndex,I=c;;){var R=I>=0?this.flatCues[I]/1E3:-1;if(G+.5<R)--I;else if(R=I+1<this.flatCues.length?this.flatCues[I+1]/1E3:Infinity,G+.5>R)I+=1;else break}I!==c&&(c>=0&&((G=this.getCueElement(c))&&G.classList.remove("active"),(c=this.getCueGroupElement(c))&&c.classList.remove("active")),(c=this.getCueElement(I))&&c.classList.add("active"),(c=this.getCueGroupElement(I))&&c.classList.add("active"),this.currentCueIndex=I,this.isHovered||
this.scrollElementToTop(I))}};
_.P.scrollElementToTop=function(G){G=this.getCueElement(G>=3?G-3:0);this.hostElement.scrollTop=Math.min(G.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.getCueElement=function(G){return _.Q1(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[G]+'"]')};
_.P.getCueGroupElement=function(G){return(G=this.getCueElement(G))&&G.parentElement?G.parentElement.parentElement:null};
_.P.onTap=function(G){var c=_.HH(G);G.target.classList.contains("cue")&&this.seekCueElement(c)};
_.P.onKeyPress=function(G){G.keyCode==13&&(G=_.j20(G.target,null,"cue"))&&this.seekCueElement(G)};
_.P.seekCueElement=function(G){G=Number(G.getAttribute("start-offset"));_.ym(this.hostElement,"yt-transcript-player-seek",[G/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
xi.prototype.onMouseLeave=xi.prototype.onMouseLeave;xi.prototype.onMouseEnter=xi.prototype.onMouseEnter;xi.prototype.onKeyPress=xi.prototype.onKeyPress;xi.prototype.onTap=xi.prototype.onTap;xi.prototype.dataChanged=xi.prototype.dataChanged;xi.prototype.hideTimestampsChanged=xi.prototype.hideTimestampsChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],xi.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xi.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],xi.prototype,"hideTimestamps",void 0);_.r([_.E(),_.h("design:type",Boolean)],xi.prototype,"isHovered",void 0);_.r([_.wD("hideTimestamps"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xi.prototype,"hideTimestampsChanged",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xi.prototype,"dataChanged",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],xi.prototype,"onTap",null);_.r([_.qY("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],xi.prototype,"onKeyPress",null);
_.r([_.qY("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xi.prototype,"onMouseEnter",null);_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xi.prototype,"onMouseLeave",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],xi);
_.B(xi,"ytd-transcript-body-renderer",function(){if(Uy6!==void 0)return Uy6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Uy6=G},{mode:1});var ulR;var tv=function(){var G=_.J.apply(this,arguments)||this;G.darkerPanels=_.v("web_watch_darker_panels");return G};
_.u(tv,_.J);tv.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tv.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],tv.prototype,"darkerPanels",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],tv);
_.B(tv,"ytd-transcript-footer-renderer",function(){if(ulR!==void 0)return ulR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ulR=G},{mode:1});var bRT;var kON;var hv=function(){var G=_.J.apply(this,arguments)||this;G.systemIcons=_.v("kevlar_system_icons");G.showClearButton=!1;return G};
_.u(hv,_.J);_.P=hv.prototype;_.P.handleInput=function(G){var c=this;G.target.value.length?_.tc(this,"ytdTranscriptSearchBoxSearch",function(){c.emitSearchEvent(G)},500):(_.scO(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=G.target.value.length>0};
_.P.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.P.handleClick=function(){var G,c=(G=this.data)==null?void 0:G.trackingParams;c&&_.yI(_.DP(),c)};
_.P.handleClear=function(){_.scO(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var G,c,I=(c=_.D((G=this.data)==null?void 0:G.clearButton,_.vE))==null?void 0:c.trackingParams;I&&_.yI(_.DP(),I);this.clear()};
_.P.emitSearchEvent=function(G){_.Xl(this.hostElement,"yt-transcript-search-box-search",{query:G.target.value});var c,I;(G=(I=_.D((c=this.data)==null?void 0:c.searchButton,_.vE))==null?void 0:I.trackingParams)&&_.yI(_.DP(),G)};
_.P.emitClearEvent=function(){_.Xl(this.hostElement,"yt-transcript-search-box-clear")};
_.Nh.Object.defineProperties(hv.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Q1(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hv.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],hv.prototype,"systemIcons",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],hv);
_.B(hv,"ytd-transcript-search-box-renderer",function(){if(kON!==void 0)return kON;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return kON=G},{mode:1});var sQf;var LYN;var dd=function(){return _.J.apply(this,arguments)||this};
_.u(dd,_.J);dd.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var G,c;this.sectionHeaderAriaLabel=(G=this.data)==null?void 0:(c=G.accessibility)==null?void 0:c.accessibilityData.label}};
dd.prototype.fireSelectedEvent=function(G){_.Xl(this.hostElement,"ytd-transcript-section-header",{startMs:G})};
dd.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
dd.prototype.handleKeyPress=function(G){this.data&&G.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Nh.Object.defineProperties(dd.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=(G=this.data)==null?void 0:G.enableTappableTranscriptHeader)!=null?c:!1}}});
dd.prototype.dataChanged=dd.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],dd.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],dd.prototype,"sectionHeaderAriaLabel",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],dd.prototype,"enableTappableTranscriptHeader",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dd.prototype,"dataChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],dd);
_.B(dd,"ytd-transcript-section-header-renderer",function(){if(LYN!==void 0)return LYN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return LYN=G},{mode:1});var AOf;var $yo;var Cz=function(){var G=_.J.apply(this,arguments)||this;G.isEditMode=!1;G.touchCaptionsEnabled=!1;G.deleteCaptionCorrectionPopupCommand=null;G.voteCaptionCorrectionPopupCommand=null;G.roundedContainer=!0;G.mouseOver=!1;G.textChanged=!1;G.messages={suggest_correction:_.mJ("suggest_correction",void 0,"Edit caption"),suggested_caption:_.mJ("suggested_caption",void 0,"Suggested caption"),submit_correction:_.mJ("submit_correction",void 0,"Submit for review"),cancel_correction:_.mJ("cancel_correction",
void 0,"Cancel"),replay_segment:_.mJ("replay_segment",void 0,"Re-play segment"),delete_correction:_.mJ("delete_correction",void 0,"Delete correction")};G.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return G};
_.u(Cz,_.J);_.P=Cz.prototype;_.P.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.P.handleDelete=function(G){if(this.deleteCaptionCorrectionPopupCommand){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);c&&this.ytdOpenPopupBehavior.openPopup(c);G.stopPropagation()}};
_.P.handleSubmit=function(G){if(this.data&&this.data.submitCaptionCorrectionCommand&&(G.stopPropagation(),this.textChanged)){var c;G=(c=_.D(this.data.submitCaptionCorrectionCommand,_.x_0))==null?void 0:c.params;c=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:G,correctionText:String(this.ironTextAreaElement.value),originalText:_.HY(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(c);this.isEditMode=!1}};
_.P.handleUpdateSegmentText=function(G){(G=_.D(G,HkR))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&(G.userCorrection&&(this.editedText=G.userCorrection),G.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.HY(this.data.snippet)),G.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=G.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=G.voteCaptionCorrectionPopupCommand?
G.voteCaptionCorrectionPopupCommand:null,G.accessibility&&(this.segmentAriaLabel=G.accessibility.accessibilityData.label))};
_.P.handleCancel=function(G){this.isEditMode=!1;G.stopPropagation();this.logClientVe(159409)};
_.P.handleEditSegmentCommand=function(G){(G=_.D(G,CBo))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&this.handleEdit()};
_.P.handleEditButtonClick=function(G){this.data&&(this.handleEdit(),G.stopPropagation())};
_.P.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var G;(G=this.ironTextAreaElement.textarea)==null||G.focus();this.logClientVe(159407)}};
_.P.handleMouseEnter=function(){this.mouseOver=!0};
_.P.handleMouseLeave=function(){this.mouseOver=!1};
_.P.handleReplay=function(G){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),G.stopPropagation(),this.logClientVe(159408))};
_.P.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.P.handleKeypress=function(G){this.data&&(this.isEditMode?G.stopPropagation():this.isEnterPress(G)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(G)&&this.logClientVe(138758))};
_.P.handleTextboxClick=function(G){G.stopPropagation()};
_.P.handleTextboxKeydown=function(G){this.isControlEnterPress(G)?this.handleSubmit(G):G.key==="Escape"&&this.handleCancel(G)};
_.P.handleTextboxKeyup=function(){this.textChanged=_.HY(this.latestText)!==String(this.ironTextAreaElement.value)};
_.P.fireSelectedEvent=function(G){_.Xl(this.hostElement,"yt-transcript-segment-selected",{startMs:G})};
_.P.fireReplayEvent=function(G,c){_.Xl(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(G-100,0),endMs:c})};
_.P.fireEditEvent=function(G,c){_.Xl(this.hostElement,"yt-transcript-segment-edit",{startMs:G,endMs:c})};
_.P.isEnterPress=function(G){return G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13?!0:!1};
_.P.isControlEnterPress=function(G){var c=G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13;return(G.ctrlKey||G.metaKey)&&c};
_.P.isCopyPress=function(G){var c=G.ctrlKey;return G.key==="c"&&c};
_.P.logClick=function(){var G,c=(G=this.data)==null?void 0:G.trackingParams;c&&_.yI(_.DP(),c)};
_.P.logClientVe=function(G){_.XF(_.DP(),_.qj(G))};
_.Nh.Object.defineProperties(Cz.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}}});
Cz.prototype.handleMouseLeave=Cz.prototype.handleMouseLeave;Cz.prototype.handleMouseEnter=Cz.prototype.handleMouseEnter;Cz.prototype.dataChanged=Cz.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Cz.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],Cz.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Cz.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Cz.prototype,"isEditMode",void 0);_.r([_.E(),_.h("design:type",Object)],Cz.prototype,"touchCaptionsEnabled",void 0);_.r([_.E(),_.h("design:type",Object)],Cz.prototype,"editedText",void 0);_.r([_.E(),_.h("design:type",Object)],Cz.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.r([_.E(),_.h("design:type",Object)],Cz.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.r([_.E(),_.h("design:type",String)],Cz.prototype,"segmentAriaLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Cz.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Cz.prototype,"mouseOver",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Cz.prototype,"textChanged",void 0);_.r([_.E(),_.h("design:type",Object)],Cz.prototype,"messages",void 0);
_.r([_.nH("#suggestion"),_.h("design:type",Object)],Cz.prototype,"ironTextAreaElement",void 0);_.r([_.A("data","editedText"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cz.prototype,"latestText",null);_.r([_.A("touchCaptionsEnabled","isEditMode"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cz.prototype,"enableEditButton",null);
_.r([_.A("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cz.prototype,"enableUndoButton",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cz.prototype,"dataChanged",null);_.r([_.qY("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cz.prototype,"handleMouseEnter",null);
_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cz.prototype,"handleMouseLeave",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Cz);
_.B(Cz,"ytd-transcript-segment-renderer",function(){if($yo!==void 0)return $yo;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return $yo=G},{mode:1});var HG=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};G.isError=!1;G.darkerPanels=_.v("web_watch_darker_panels");G.useParentMaxHeight=_.v("web_watch_transscript_use_parent_max_height");G.segmentOffsets=[];G.segmentIndex=-1;return G};
_.u(HG,_.J);_.P=HG.prototype;_.P.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.P.segmentsChanged=function(){this.updateOffsets()};
_.P.onYtPlayerTimeChanged=function(G){for(var c=this.segmentIndex,I=c;;){if(I>=0){var R=this.segmentOffsets[I].start;var Z=this.segmentOffsets[I].isAutoScrollable}else R=-1,Z=!0;var K=G+.5;if(!Z){R=I+1<this.segmentOffsets.length?this.segmentOffsets[I+1].start:Infinity;if(K>=R){I+=1;continue}I=-1;break}if(K<R)R=I-1>=0&&this.segmentOffsets[I-1].isAutoScrollable,Z=I===0||R?1:2,I-=Z;else if(Z=I+1<this.segmentOffsets.length&&this.segmentOffsets[I+1].isAutoScrollable?1:2,R=I+Z<this.segmentOffsets.length?
this.segmentOffsets[I+Z].start:Infinity,K>R)I+=Z;else{if(I<0)break;I<this.segmentOffsets.length&&K>this.segmentOffsets[I].end&&(I=-1);break}}if(c!==I){if(c>=0){var m;(m=this.getSegmentElement(c))==null||m.classList.remove("active")}this.segmentIndex=I;if(!(I<0)){var a;(a=this.getSegmentElement(I))==null||a.classList.add("active");this.isHovered||this.scrollElementToTop(I)}}};
_.P.handleSegmentEdit=function(G){G.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=G.target,_.ym(this.hostElement,"yt-transcript-player-edit",[G.detail.startMs/1E3,G.detail.endMs/1E3]))};
_.P.handleSegmentSelected=function(G){_.ym(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.P.handleSegmentReplay=function(G){_.ym(this.hostElement,"yt-transcript-player-replay",[G.detail.startMs/1E3,G.detail.endMs/1E3])};
_.P.handleSectionHeaderSelected=function(G){_.ym(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.onRetryButtonClick=function(){_.Xl(this.hostElement,"transcript-retry-button-click")};
_.P.getSegmentElement=function(G){return _.Q1(this.hostElement).querySelector(":nth-child("+(G+1)+")")};
_.P.scrollElementToTop=function(G){G=this.getSegmentElement(G>=2?G-2:0);this.hostElement.scrollTop=Math.min(G.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(G){var c,I=(c=G.transcriptSegmentRenderer)!=null?c:G.transcriptSectionHeaderRenderer;return{start:Number(I.startMs)/1E3,end:Number(I.endMs)/1E3,isAutoScrollable:G.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.P.clearHighlightedSegments=function(){var G=_.Q1(this.hostElement);G=_.Q(G.querySelectorAll("ytd-transcript-segment-renderer"));for(var c=G.next();!c.done;c=G.next())c.value.classList.remove("active")};
_.Nh.Object.defineProperties(HG.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:G.searchResultSegments)||((c=this.data)==null?void 0:c.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
HG.prototype.onMouseLeave=HG.prototype.onMouseLeave;HG.prototype.onMouseEnter=HG.prototype.onMouseEnter;HG.prototype.handleSectionHeaderSelected=HG.prototype.handleSectionHeaderSelected;HG.prototype.handleSegmentReplay=HG.prototype.handleSegmentReplay;HG.prototype.handleSegmentSelected=HG.prototype.handleSegmentSelected;HG.prototype.handleSegmentEdit=HG.prototype.handleSegmentEdit;HG.prototype.segmentsChanged=HG.prototype.segmentsChanged;
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],HG.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],HG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],HG.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],HG.prototype,"isError",void 0);
_.r([_.E(),_.h("design:type",Object)],HG.prototype,"noResultLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],HG.prototype,"darkerPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],HG.prototype,"useParentMaxHeight",void 0);_.r([_.A("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],HG.prototype,"segments",null);
_.r([_.A("segments","noResultLabel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],HG.prototype,"displayNoResults",null);_.r([_.wD("segments"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HG.prototype,"segmentsChanged",null);_.r([_.qY("yt-transcript-segment-edit"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],HG.prototype,"handleSegmentEdit",null);
_.r([_.qY("yt-transcript-segment-selected"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],HG.prototype,"handleSegmentSelected",null);_.r([_.qY("yt-transcript-segment-replay"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],HG.prototype,"handleSegmentReplay",null);
_.r([_.qY("ytd-transcript-section-header"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],HG.prototype,"handleSectionHeaderSelected",null);_.r([_.qY("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HG.prototype,"onMouseEnter",null);_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HG.prototype,"onMouseLeave",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],HG);
_.B(HG,"ytd-transcript-segment-list-renderer",function(){if(AOf!==void 0)return AOf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return AOf=G},{mode:1});var XQ=function(){var G=_.J.apply(this,arguments)||this;G.hideTimestamps=!!_.ka("hide-transcript-timestamps");G.isLoadingTranscripts=!1;G.darkerPanels=_.v("web_watch_darker_panels");G.isError=!1;G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return G};
_.u(XQ,_.J);_.P=XQ.prototype;_.P.headerChanged=function(){var G,c;this.baseGetTranscriptsCommand=(c=_.D((G=this.data)==null?void 0:G.header,X_o))==null?void 0:c.onTextChangeCommand};
_.P.bodyChanged=function(){var G=this.getBodyRenderer();G&&(G.initialSegments&&(this.initialTranscriptsRenderer=G),G.noResultLabel&&(this.noResultLabel=G.noResultLabel),G.retryLabel&&(this.retryLabel=G.retryLabel))};
_.P.detached=function(){this.clearSearchBoxText()};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.P.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.P.fireSearch=function(G){var c=this;if(G){var I=G.detail.query;if(this.baseGetTranscriptsCommand){var R;G=(R=_.D(this.baseGetTranscriptsCommand,_.jj2))==null?void 0:R.params;var Z;R=_.D((Z=this.data)==null?void 0:Z.footer,VcJ);var K;if((Z=(K=_.D(R==null?void 0:R.languageMenu,h_5))==null?void 0:K.subMenuItems)&&Z.length>0&&(K=Z.find(function(O){return O.selected}))){var m,a;
G=(m=K.continuation)==null?void 0:(a=m.reloadContinuationData)==null?void 0:a.continuation}m=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:G,searchQuery:I}});this.ytComponentBehavior.resolveCommand(m,{commandController:{onServerError:function(){c.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});e_T(this.ytContinuationHandlerBehavior,function(){return I===c.getCurrentSearchBoxText()})}}};
_.P.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.P.onRetryButtonClick=function(){this.isError=!1;var G={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:G}))};
_.P.hideTimestampsChanged=function(){_.bu("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.handleSignalActionCopyTranscript=function(){var G=this,c=this.getBodyRenderer();c&&(c=((c==null?void 0:c.searchResultSegments)||(c==null?void 0:c.initialSegments)||[]).map(function(I){return _.D(I,g75)}).filter(function(I){return!!I}).map(function(I){return{snippet:I.snippet||{runs:[{text:""}]},
startTimeText:I.startTimeText||{simpleText:""}}}).map(function(I){var R=(I.snippet.runs||[]).reduce(function(Z,K){return Z+K.text},"");
return G.hideTimestamps?R:I.startTimeText.simpleText+" "+R}).join("\n"),this.copyToClipboard(c))};
_.P.copyToClipboard=function(G){navigator.clipboard&&navigator.clipboard.writeText(G)};
_.P.getCurrentSearchBoxText=function(){var G;return(G=this.searchBox)==null?void 0:G.value};
_.P.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.P.getBodyRenderer=function(){var G;return _.D((G=this.data)==null?void 0:G.body,ygT)};
_.P.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Nh.Object.defineProperties(XQ.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Q1(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
XQ.prototype.hideTimestampsChanged=XQ.prototype.hideTimestampsChanged;XQ.prototype.searchCleared=XQ.prototype.searchCleared;XQ.prototype.fireSearch=XQ.prototype.fireSearch;XQ.prototype.onReloadContinuationFinish=XQ.prototype.onReloadContinuationFinish;XQ.prototype.bodyChanged=XQ.prototype.bodyChanged;XQ.prototype.headerChanged=XQ.prototype.headerChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],XQ.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],XQ.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],XQ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],XQ.prototype,"hideTimestamps",void 0);
_.r([_.E(),_.h("design:type",Object)],XQ.prototype,"isLoadingTranscripts",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],XQ.prototype,"darkerPanels",void 0);_.r([_.E(),_.h("design:type",Object)],XQ.prototype,"isError",void 0);_.r([_.wD("data.header"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XQ.prototype,"headerChanged",null);
_.r([_.uO("data.body"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XQ.prototype,"bodyChanged",null);_.r([_.qY("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XQ.prototype,"onReloadContinuationFinish",null);_.r([_.qY("yt-transcript-search-box-search"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],XQ.prototype,"fireSearch",null);
_.r([_.qY("yt-transcript-search-box-clear"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XQ.prototype,"searchCleared",null);_.r([_.wD("hideTimestamps"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XQ.prototype,"hideTimestampsChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],XQ);
_.B(XQ,"ytd-transcript-search-panel-renderer",function(){if(sQf!==void 0)return sQf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return sQf=G},{mode:1});var yR=function(){var G=_.J.apply(this,arguments)||this;G.player=null;G.playerPollJobId=0;return G};
_.u(yR,_.J);_.P=yR.prototype;_.P.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.P.onLoadReloadContinuation=function(G){_.v("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:G.target.data.continuation}}):(G={clickTrackingParams:G.target.data.clickTrackingParams,getTranscriptEndpoint:{params:G.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}}))};
_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.P.attached=function(){this.updatePlayerListening()};
_.P.detached=function(){this.updatePlayerListening()};
_.P.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.P.startPlayerListening=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return(c=_.ZA())?I.yield(c.getPlayerPromise(),2):I.return();G.player=I.yieldResult;G.playerPollJobId=_.dJ.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3);
G.player.addEventListener("onCueRangeEnter",function(R){G.onCueRangeEnter(R)});
G.player.addEventListener("onCueRangeExit",function(R){G.onCueRangeExit(R)});
G.player.addEventListener("onStateChange",function(R){G.onPlayerStateChange(R)});
G.player.addEventListener("SEEK_TO",function(R){G.onPlayerSeek(R)});
_.Vp(I)})};
_.P.getPlayerVideoProgress=function(){var G=this;_.dJ.cancelJob(this.playerPollJobId);if(this.player){var c=this.player.getCurrentTime();_.ym(this.hostElement,"yt-player-time-changed",[c])}this.playerPollJobId=_.dJ.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3)};
_.P.stopPlayerListening=function(){this.player=null;_.dJ.cancelJob(this.playerPollJobId)};
_.P.onPlayerStateChange=function(G){G===2&&this.removePendingCue()};
_.P.onPlayerSeek=function(G){var c;if(c=this.pendingReplayCueId)c=this.pendingReplayCueId,c=G===(_.v("web_transcript_cue_id_killswitch")?Number(c):Number(c.split("_")[1]));c||this.removePendingCue()};
_.P.onCueRangeEnter=function(G){plN(G)&&(this.pendingReplayCueId=G)};
_.P.onCueRangeExit=function(G){plN(G)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.P.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.P.onYtTranscriptPlayerSeek=function(G){this.player&&this.player.seekTo(G,!0)};
_.P.onYtTranscriptPlayerReplay=function(G,c){this.player&&(this.player.addCueRange(Soo(G),G,c),this.player.seekTo(G,!0),this.player.playVideo())};
_.P.onYtTranscriptPlayerEdit=function(G,c){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Soo(G),G,c),this.player.seekTo(G,!0))};
yR.prototype.onLoadReloadContinuation=yR.prototype.onLoadReloadContinuation;yR.prototype.panelContentVisibleChanged=yR.prototype.panelContentVisibleChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],yR.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],yR.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yR.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],yR.prototype,"panelContentVisible",void 0);_.r([_.wD("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yR.prototype,"panelContentVisibleChanged",null);
_.r([_.qY("yt-load-reload-continuation"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],yR.prototype,"onLoadReloadContinuation",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],yR);
_.B(yR,"ytd-transcript-renderer",function(){if(bRT!==void 0)return bRT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return bRT=G},{mode:1});var SQf;var pqG;var gd=function(){return _.J.apply(this,arguments)||this};
_.u(gd,_.J);gd.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.cd(this.hostElement,[this.data.clickCommand],this.hostElement))};
gd.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.y7)()+_.zC)+"px)"};
gd.prototype.updateShouldHideFromBinding=function(G){this.shouldHide=G.detail.value};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],gd.prototype,"rendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gd.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],gd.prototype,"shouldHide",void 0);_.r([_.Jc({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],gd);
_.B(gd,"ytd-ad-engagement-panel-banner-renderer",function(){if(pqG!==void 0)return pqG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return pqG=G},{mode:_.Qc("kevlar_poly_si_batch_j070")?1:2});var My5;var Yi=function(){var G=_.J.apply(this,arguments)||this;G.buttonUpdate=_.v("web_modern_buttons");G.adsSemanticText=_.v("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.u(Yi,_.J);Yi.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.r([_.E(),_.h("design:type",Object)],Yi.prototype,"data",void 0);_.r([_.E({computed:"computeHideDefaultAdBadge(data)"}),_.h("design:type",Boolean)],Yi.prototype,"hideDefaultAdBadge",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Yi.prototype,"buttonUpdate",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Yi.prototype,"adsSemanticText",void 0);_.r([_.Jc({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Yi);
_.B(Yi,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(My5!==void 0)return My5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return My5=G},{mode:1});var Vy_;var G3=function(){var G=_.J.apply(this,arguments)||this;G.darkerPanels=_.v("web_watch_darker_panels");G.enableSqueezebackPanels=_.v("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");G.headerClickListener=function(c){G.onHeaderClick(c)};
G.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return G};
_.u(G3,_.J);_.P=G3.prototype;_.P.computeAdsInfoButton=function(){if(_.v("web_modern_buttons")){var G,c;return(c=_.D((G=this.data)==null?void 0:G.subtitleComplex,z_G))==null?void 0:c.adInfoRenderer}};
_.P.updateHeaderClickListener=function(){var G,c,I;((G=this.data)==null?0:G.navigationEndpoint)||((c=this.data)==null?0:c.onClickCommand)||_.D((I=this.data)==null?void 0:I.visibilityButton,_.DI)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.P.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.P.collapsedChanged=function(){var G;(G=this.data)!=null&&G.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.v("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.P.focus=function(G){var c=this;this.titleElement&&_.dJ.addJob(function(){_.mp(c.titleElement,G)},0,500)};
_.P.computeTitleAriaLabel=function(G){var c=[];if(G.title){var I,R;c.push(this.ytRendererBehavior.getSimpleString(G.title)||((I=G.title.accessibility)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label))}G.contextualInfo&&c.push(this.ytRendererBehavior.getSimpleString(G.contextualInfo));return c.join(" ")};
_.P.onHeaderClick=function(G){this.shouldTriggerHeaderClick(G)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.cd(this.hostElement,[this.data.onClickCommand],this.hostElement)):(G=this.getVisibilityToggleButton())&&G.click())};
_.P.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var G=_.D(this.data.visibilityButton,_.vE)||_.D(this.data.visibilityButton,_.DI);G&&this.ytRendererBehavior.logExplicitClick(G)}};
_.P.getVisibilityToggleButton=function(){var G=_.Q1(this.hostElement).querySelector("#visibility-button").firstElementChild;return(G==null?void 0:G.is)==="ytd-toggle-button-renderer"?G:null};
_.P.shouldTriggerHeaderClick=function(G){return!_.Gf(_.CE(G),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.P.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(G){G=_.D(G,_.kaz);this.targetId&&(G==null?void 0:G.targetId)===this.targetId&&(G=G.navigationButton)&&this.set("data.navigationButton",G)};
_.Nh.Object.defineProperties(G3.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!!(((G=this.entity)==null?0:G.isActionButtonHidden)||this.hideActionButton)}}});
G3.prototype.collapsedChanged=G3.prototype.collapsedChanged;G3.prototype.updateHeaderClickListener=G3.prototype.updateHeaderClickListener;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],G3.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],G3.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],G3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],G3.prototype,"targetId",void 0);_.r([_.E(),_.h("design:type",Boolean)],G3.prototype,"collapsed",void 0);_.r([_.E(),_.h("design:type",Boolean)],G3.prototype,"hideActionButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],G3.prototype,"shortsPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],G3.prototype,"liveChatEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],G3.prototype,"learningChatEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"darkerPanels",void 0);_.r([_.nH("#title"),_.h("design:type",HTMLElement)],G3.prototype,"titleElement",void 0);_.r([_.nH("#header"),_.h("design:type",HTMLElement)],G3.prototype,"headerElement",void 0);
_.r([_.E({computed:"computeAdsInfoButton(data)"}),_.h("design:type",Object)],G3.prototype,"adsInfoButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"enableSqueezebackPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"enableAnchoredPanel",void 0);_.r([_.E({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(G,c){return _.a6(G.entities,"engagementPanelTitleHeaderEntity",c)}}),
_.h("design:type",Object)],G3.prototype,"entity",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],G3.prototype,"adsSemanticText",null);_.r([_.wD("data","data.navigationEndpoint","data.onClickCommand"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G3.prototype,"updateHeaderClickListener",null);
_.r([_.uO("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G3.prototype,"collapsedChanged",null);_.r([_.A("entity","hideActionButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],G3.prototype,"isActionButtonHidden",null);_.r([_.Jc({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],G3);
_.B(G3,"ytd-engagement-panel-title-header-renderer",function(){if(Vy_!==void 0)return Vy_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Vy_=G},{mode:1});var zgN;var cZ=function(){return _.J.apply(this,arguments)||this};
_.u(cZ,_.J);cZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],cZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],cZ.prototype,"data",void 0);_.r([_.Jc({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],cZ);
_.B(cZ,"ytd-macro-markers-info-item-renderer",function(){if(zgN!==void 0)return zgN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return zgN=G},{mode:1});var E0x;var Iy=function(G,c,I,R,Z,K){_.JK.call(this);var m=this;this.JSC$23454_containerElement=G;this.hostElement=c;this.supportedSyncItems=I;this.syncEntityKey=R;this.options=Z;this.renderLazyListItems=K;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;JOT(this);WYx(this);this.JSC$23454_scrollAnimation=new _.zT(function(a){G.scrollTop=a});
_.k9(this,this.JSC$23454_scrollAnimation);this.addOnDisposeCallback(function(){iRy(m,!1);m.activeItem&&m.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.u(Iy,_.JK);var JOT=function(G){var c=_.RM(_.wH().resolve(_.Ni),function(I){return I.entities.markersEngagementPanelSyncEntity||{}},function(I,R){var Z;
if(I[G.syncEntityKey]!==R[G.syncEntityKey]&&((Z=I[G.syncEntityKey])==null?void 0:Z.activeItemIndex)!==void 0)if(R=I[G.syncEntityKey].activeItemIndex,I=G.getItemByIndex(R)){if(fZ6(G,I),G.contentVisible)if(G.browsingMode){var K;((K=G.options)==null?void 0:K.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(K=BqS(G),I.offsetTop<G.JSC$23454_containerElement.clientHeight+G.JSC$23454_containerElement.scrollTop&&K&&!G.activeItemBelowSyncPosition&&iRy(G,!1));rOx(G)}else G.scrollToItem(I)}else _.Ck(new _.iW("Could not find "+
G.supportedSyncItems+" sync child to set active.",R,G.JSC$23454_containerElement.querySelectorAll(G.supportedSyncItems).length))});
G.unsubscribeFromTimedMarkersListSyncEntity=c;G.addOnDisposeCallback(c);jQ6(G)},jQ6=function(G){var c=_.wH().resolve(_.Ni);
c=_.DVf(c.getState(),G.syncEntityKey);(c==null?void 0:c.activeItemIndex)!==void 0&&(c=G.getItemByIndex(c.activeItemIndex))&&fZ6(G,c)},WYx=function(G){var c=new _.qx(G.onScroll,50,G);
_.k9(G,c);var I=function(){c.fire()};
G.JSC$23454_containerElement.addEventListener("scroll",I);G.addOnDisposeCallback(function(){G.JSC$23454_containerElement.removeEventListener("scroll",I)})};
Iy.prototype.getItemByIndex=function(G){var c;(c=this.renderLazyListItems)==null||c.call(this,G);c=this.JSC$23454_containerElement.querySelectorAll(this.supportedSyncItems);if(c.length>G)return c[G]};
var fZ6=function(G,c){G.activeItem&&G.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));c.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));G.activeItem=c};
Iy.prototype.scrollToItem=function(G){G=this.getScrollPositionForItem(G);this.JSC$23454_containerElement.scrollTop!==G&&this.JSC$23454_scrollAnimation.start(this.JSC$23454_containerElement.scrollTop,G,300)};
Iy.prototype.getScrollPositionForItem=function(G){if(this.JSC$23454_containerElement.querySelectorAll(this.supportedSyncItems)[0]===G)return 0;var c,I=((c=this.options)==null?0:c.percentOffset)?this.JSC$23454_containerElement.clientHeight*this.options.percentOffset:0;G=_.C8(G).y+this.JSC$23454_containerElement.scrollTop-(_.C8(this.JSC$23454_containerElement).y+I);return Math.max(0,Math.min(G,this.JSC$23454_containerElement.scrollHeight-this.JSC$23454_containerElement.offsetHeight))};
Iy.prototype.onScroll=function(){this.activeItemBelowSyncPosition=BqS(this);if(this.activeItem&&!this.JSC$23454_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23454_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var G;switch((G=this.options)==null?void 0:G.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":xyR(this,!tyN(this));rOx(this);break;default:xyR(this,!0)}}};
var xyR=function(G,c){var I,R;_.T(function(Z){if(Z.nextAddress==1){if(G.browsingMode)return Z.return();G.browsingMode=!0;c&&G.hostElement.classList.add("browsing-mode");G.playerExitBrowsingModeListener=function(){iRy(G,!1)};
return Z.yield(_.wP(),2)}I=Z.yieldResult;(R=I)==null||R.addEventListener("SEEK_TO",G.playerExitBrowsingModeListener);_.Vp(Z)})},iRy=function(G,c){c=c===void 0?!0:c;
G.browsingMode&&(G.browsingMode=!1,G.hostElement.classList.remove("browsing-mode"),c&&G.scrollToItem(G.activeItem),hgo(G))},hgo=function(G){var c,I;
_.T(function(R){if(R.nextAddress==1)return G.playerExitBrowsingModeListener?R.yield(_.wP(),3):R.jumpTo(0);c=R.yieldResult;(I=c)==null||I.removeEventListener("SEEK_TO",G.playerExitBrowsingModeListener);G.playerExitBrowsingModeListener=void 0;_.Vp(R)})},rOx=function(G){var c;
((c=G.options)==null?void 0:c.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(tyN(G)?G.hostElement.classList.remove("browsing-mode"):G.activeItem&&G.hostElement.classList.add("browsing-mode"))},BqS=function(G){if(!G.activeItem)return!1;
var c,I=((c=G.options)==null?0:c.percentOffset)?G.JSC$23454_containerElement.clientHeight*G.options.percentOffset:0;return G.activeItem.offsetTop>=G.JSC$23454_containerElement.scrollTop+I},tyN=function(G){if(!G.activeItem)return!1;
var c=G.activeItem.offsetTop+14<=G.JSC$23454_containerElement.scrollTop+G.JSC$23454_containerElement.clientHeight;return G.activeItem.offsetTop+G.activeItem.clientHeight-14>=G.JSC$23454_containerElement.scrollTop&&c};
Iy.prototype.panelContentVisibleChanged=function(G){(this.contentVisible=G)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var dyN=function(G,c){G.syncEntityKey=c;var I;(I=G.unsubscribeFromTimedMarkersListSyncEntity)==null||I.call(G);JOT(G)},C6_=function(G,c){G.options=c};var Ry=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return G};
_.u(Ry,_.J);_.P=Ry.prototype;_.P.detached=function(){var G;(G=this.scrollController)==null||G.dispose();this.scrollController=void 0};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.P.dataChanged=function(){var G=this;_.O$(this,function(){if(G.scrollController){var c;(c=G.scrollController)==null||iRy(c,!1);var I,R,Z;(R=G.scrollController)==null||dyN(R,(Z=(I=G.data)==null?void 0:I.syncModelEntityKey)!=null?Z:"default-macro-markers-list-renderer-entity-key");var K,m,a;(a=G.scrollController)==null||C6_(a,{percentOffset:(K=G.data)==null?void 0:K.selectedItemAlignmentPercentOffset,floatingPillType:(m=G.data)==null?void 0:m.floatingPillType})}else{var O,N,q,w;G.scrollController=
new Iy(G.contents,G.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(w=(O=G.data)==null?void 0:O.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key",{percentOffset:(N=G.data)==null?void 0:N.selectedItemAlignmentPercentOffset,floatingPillType:(q=G.data)==null?void 0:q.floatingPillType},function(F){G.renderLazyListItems(F)})}G.scrollController.panelContentVisibleChanged(!!G.panelContentVisible)})};
_.P.computeButtonShape=function(){var G=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){G.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.P.renderLazyListItems=function(G){for(var c=this.contents.children,I=0,R=0;R<c.length;R++){var Z=void 0;(Z=c[R].ytLazyListBehavior)==null||Z.fillRemainingListItems();var K=void 0,m=void 0;Z=_.D((K=this.data)==null?void 0:(m=K.contents)==null?void 0:m[R],_.L8K);m=K=void 0;if((K=Z)==null?0:(m=K.contents)==null?0:m.length)I+=Z.contents.length;if(I>=G)break}};
_.P.handleSetActivePanelItemAction=function(G){if((G=_.D(G,Lpx))&&this.panelTargetId===G.panelTargetId){G=G.itemIndex;var c,I,R=(I=(c=this.data)==null?void 0:c.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key",Z;((Z=this.syncEntity)==null?void 0:Z.activeItemIndex)!==G&&this.ytdReduxBehavior.dispatch(_.Le("markersEngagementPanelSyncEntity",R,{key:R,activeItemIndex:G}))}};
_.P.onSyncClick=function(){var G;(G=this.scrollController)==null||iRy(G)};
_.P.panelContentVisibleChanged=function(){var G;(G=this.scrollController)==null||G.panelContentVisibleChanged(!!this.panelContentVisible)};
Ry.prototype.panelContentVisibleChanged=Ry.prototype.panelContentVisibleChanged;Ry.prototype.dataChanged=Ry.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Ry.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],Ry.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ry.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ry.prototype,"useCustomColors",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],Ry.prototype,"panelTargetId",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ry.prototype,"panelContentVisible",void 0);
_.r([_.nH("#contents"),_.h("design:type",HTMLElement)],Ry.prototype,"contents",void 0);_.r([_.E({selectorArgs:["data.syncModelEntityKey"],selector:_.DVf}),_.h("design:type",Object)],Ry.prototype,"syncEntity",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ry.prototype,"dataChanged",null);
_.r([_.wD("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ry.prototype,"panelContentVisibleChanged",null);_.r([_.Jc({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Ry);
_.B(Ry,"ytd-macro-markers-list-renderer",function(){if(E0x!==void 0)return E0x;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return E0x=G},{mode:1});var HRS;var Zv=function(){return _.J.apply(this,arguments)||this};
_.u(Zv,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Zv.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Zv.prototype,"data",void 0);_.r([_.Jc({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Zv);
_.B(Zv,"ytd-error-corrections-section-item-renderer",function(){if(HRS!==void 0)return HRS;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return HRS=G},{mode:1});var XqN;var K_=function(){return _.J.apply(this,arguments)||this};
_.u(K_,_.J);K_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],K_.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],K_.prototype,"data",void 0);_.r([_.Jc({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],K_);
_.B(K_,"ytd-error-corrections-section-renderer",function(){if(XqN!==void 0)return XqN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return XqN=G},{mode:1});var yOy;var PZ=function(){return _.J.apply(this,arguments)||this};
_.u(PZ,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],PZ.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],PZ.prototype,"data",void 0);_.r([_.Jc({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],PZ);
_.B(PZ,"ytd-topic-link-renderer",function(){if(yOy!==void 0)return yOy;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return yOy=G},{mode:1});var g0x;var QS=function(){var G=_.J.apply(this,arguments)||this;G.modernLockupV2=_.v("modernize_structured_description_playlist_lockups_v2");return G};
_.u(QS,_.J);QS.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],QS.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],QS.prototype,"modernLockupV2",void 0);_.r([_.Jc({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],QS);
_.B(QS,"ytd-video-description-course-section-renderer",function(){if(g0x!==void 0)return g0x;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return g0x=G},{mode:1});var YQx;var ma=function(){return _.J.apply(this,arguments)||this};
_.u(ma,_.J);ma.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ma.prototype,"data",void 0);_.r([_.Jc({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],ma);
_.B(ma,"ytd-video-description-files-section-renderer",function(){if(YQx!==void 0)return YQx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return YQx=G},{mode:1});var Gs_;var ay=function(){return _.J.apply(this,arguments)||this};
_.u(ay,_.J);ay.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ay.prototype,"data",void 0);_.r([_.Jc({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],ay);
_.B(ay,"ytd-video-description-gaming-section-renderer",function(){if(Gs_!==void 0)return Gs_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Gs_=G},{mode:1});var cHx;var T3=function(){var G=_.J.apply(this,arguments)||this;G.isExpanded=!1;return G};
_.u(T3,_.J);T3.prototype.computeHasDefaultMetadataEndpoint=function(G){var c;G=G==null?void 0:(c=G.defaultMetadata)==null?void 0:c.runs;return!(!G||G.length!==1||!G[0].navigationEndpoint)};
T3.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Nh.Object.defineProperties(T3.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],T3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],T3.prototype,"isExpanded",void 0);_.r([_.E({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],T3.prototype,"hasDefaultMetadataEndpoint",void 0);
_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],T3.prototype,"isExpandable",null);_.r([_.A("data","isExpandable","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],T3.prototype,"showExpandedMetadata",null);_.r([_.Jc({is:"ytd-info-row-renderer",disableElementRegistration:!0})],T3);
_.B(T3,"ytd-info-row-renderer",function(){if(cHx!==void 0)return cHx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return cHx=G},{mode:1});var ISN;var OM=function(){var G=_.J.apply(this,arguments)||this;G.currentIndex=0;G.supportComponentResize=!0;G.JSC$23483_lastScrollContainerWidth=NaN;return G};
_.u(OM,_.J);_.P=OM.prototype;
_.P.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.P.getItemsPath=function(){return"videoLockups"};
_.P.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.P.onIronResize=function(){this.updateVideoLockupStyles()};
_.P.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.P.updateVideoLockupStyles=function(){var G;this.JSC$23483_scrollContainer!==void 0&&(G=this.videoLockups)!=null&&G.length&&(G=this.JSC$23483_scrollContainer.clientWidth,G!==this.JSC$23483_lastScrollContainerWidth&&(this.JSC$23483_lastScrollContainerWidth=G,_.eD(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(G*.8,415)+"px"}),_.Xl(this.hostElement,"iron-resize")))};
_.Nh.Object.defineProperties(OM.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var G=[],c;if((c=this.data)==null||!c.carouselLockups)return G;c=_.Q(this.data.carouselLockups);for(var I=c.next();!I.done;I=c.next()){I=I.value;var R=void 0;((R=_.D(I,R2T))==null?0:R.videoLockup)&&G.push(_.D(I,R2T).videoLockup)}return G}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoLockups)==null||!G.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var G=[],c;if((c=this.data)==null||!c.carouselLockups)return G;var I;return(I=_.D(this.data.carouselLockups[this.scrollCount],R2T))==null?void 0:I.infoRows}}});
OM.prototype.dataChanged=OM.prototype.dataChanged;OM.prototype.onIronResize=OM.prototype.onIronResize;OM.prototype.hiddenChanged=OM.prototype.hiddenChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],OM.prototype,"componentBehavior",void 0);_.r([_.L(_.WT.YtdHorizontalListBehavior),_.h("design:type",Object)],OM.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],OM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],OM.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],OM.prototype,"inlineStructuredDescription",void 0);_.r([_.E({value:2}),_.h("design:type",Number)],OM.prototype,"initialCount",void 0);_.r([_.E(),_.h("design:type",Object)],OM.prototype,"currentIndex",void 0);
_.r([_.E(),_.h("design:type",Number)],OM.prototype,"scrollCount",void 0);_.r([_.E(),_.h("design:type",Object)],OM.prototype,"supportComponentResize",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],OM.prototype,"contentHidden",void 0);_.r([_.nH("#scroll-container"),_.h("design:type",HTMLDivElement)],OM.prototype,"JSC$23483_scrollContainer",void 0);
_.r([_.wD("contentHidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OM.prototype,"hiddenChanged",null);_.r([_.A("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],OM.prototype,"videoLockups",null);_.r([_.A("videoLockups"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],OM.prototype,"hasVideoLockups",null);
_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OM.prototype,"onIronResize",null);_.r([_.A("data","scrollCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],OM.prototype,"infoRows",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OM.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],OM);
_.B(OM,"ytd-video-description-music-section-renderer",function(){if(ISN!==void 0)return ISN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ISN=G},{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var RwN;var eb=function(){return _.J.apply(this,arguments)||this};
_.u(eb,_.J);eb.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.r([_.E({}),_.h("design:type",Object)],eb.prototype,"data",void 0);_.r([_.Jc({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],eb);
_.B(eb,"ytd-video-description-transcript-section-renderer",function(){if(RwN!==void 0)return RwN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return RwN=G},{mode:1});var ZCT;_.R1(_.W(function(G){var c=_.um(_.uHC,function(){return G.data().firstProviderLinkStatusEntityKey}),I=_.um(_.uHC,function(){return G.data().secondProviderLinkStatusEntityKey}),R=function(){var Z,K;
return((Z=c())==null?void 0:Z.linked)||((K=I())==null?void 0:K.linked)};
return _.e("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.e(_.ul,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return G.data().sectionTitle}}),_.e(_.ul,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return R()?G.data().connectedMessage:G.data().notConnectedMessage}}),_.e(_.l,{cond:R,
then:function(){return _.e(_.sN,{data:function(){return G.data().connectedButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.e(_.l,{cond:function(){return!R()},
then:function(){return _.e(_.sN,{data:function(){return G.data().notConnectedButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"$n"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;return _.e("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.e("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.e(_.ul,{text:function(){return c().sectionTitle}})),_.e("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.e(_.ul,{text:function(){return c().bodyHeader}})),_.e("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.e(_.ul,{text:function(){return c().bodyText}})),_.e(_.l,{cond:function(){return c().attributionText},
then:function(){return _.e("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.e(_.ul,{text:function(){return c().attributionText}}))}}))},"ao"),"how-this-was-made-section-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){return _.e("yt-video-description-youchat-section-view-model",{class:_.O3("ytVideoDescriptionYouchatSectionViewModelHost")},_.e("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.e(_.ul,{text:function(){return G.data().sectionTitle}})),_.e("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.e(_.ul,{text:function(){return G.data().subHeaderText}})),_.e("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.e(_.BR,{data:function(){return _.D(G.data().primaryButton,
_.uv)}})))},"bo"),"yt-video-description-youchat-section-view-model",{props:{data:_.bl}});var NP=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return G};
_.u(NP,_.J);_.P=NP.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.P.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.P.dataChanged=function(){var G,c;this.hasDescriptionOnly=!(((G=this.data)==null?void 0:(c=G.items)==null?void 0:c.length)!==1||!_.D(this.data.items[0],Md))};
_.P.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.P.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.P.autoFocusDescription=function(){var G;((G=_.wH().resolve(_.qR(_.zb)))==null?0:G.isKeyBoardInUse())&&this.description&&_.ax(this.description)};
_.P.resize=function(){if(_.v("kevlar_disable_sd_resize"))this.JSC$23491_cardList&&_.Xl(this.JSC$23491_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Xl(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Xl(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.P.scrollToSection=function(G){if(G=this.getSectionElement(G))_.ym(this.hostElement,"yt-scroll-to-watch-element",[G]),G.focus()};
_.P.getSectionElement=function(G){switch(G){case "infocards-item-section":var c;return(c=this.infocardsSection)!=null?c:null;case "transcript-item-section":var I;return(I=this.transcriptSection)!=null?I:null;case "how-this-was-made-section-item-section":var R;return(R=this.howThisWasMadeSection)!=null?R:null;case "files-item-section":var Z;return(Z=this.filesSection)!=null?Z:null;default:return null}};
_.P.handleSetActiveItemAction=function(G){var c=_.D(G,Lpx),I=c&&(c==null?void 0:c.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23491_cardList;if(c&&I){G=this.currentActiveChapter;var R=this.currentActiveProblem;c=I==null?void 0:I.getItemByIndex(c.itemIndex);var Z=I=!0;c&&(c.active=!0,c.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(I=G!==c,Z=!1,this.currentActiveChapter=c):(c==null?void 0:c.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(I=!1,Z=R!==c,this.currentActiveProblem=c));G&&I&&(G.active=!1);R&&Z&&(R.active=!1)}};
_.Nh.Object.defineProperties(NP.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Rs("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
NP.prototype.onYtExpanderMoreTapped=NP.prototype.onYtExpanderMoreTapped;NP.prototype.onHiddenChanged=NP.prototype.onHiddenChanged;NP.prototype.dataChanged=NP.prototype.dataChanged;NP.prototype.panelContentVisibleChanged=NP.prototype.panelContentVisibleChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],NP.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.Zu),_.h("design:type",Object)],NP.prototype,"ironResizableBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NP.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],NP.prototype,"panelContentVisible",void 0);_.r([_.E(),_.h("design:type",Boolean)],NP.prototype,"hasDescriptionOnly",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],NP.prototype,"inlineStructuredDescription",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],NP.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],NP.prototype,"shortsPanel",void 0);_.r([_.E(),_.h("design:type",Object)],NP.prototype,"videoSummary",void 0);_.r([_.E(),_.h("design:type",Object)],NP.prototype,"merchShelf",void 0);
_.r([_.A("videoSummary"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NP.prototype,"showVideoSummary",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],NP.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],NP.prototype,"watchWhileSdp",void 0);_.r([_.nH("ytd-expandable-video-description-body-renderer"),_.h("design:type",Object)],NP.prototype,"description",void 0);
_.r([_.nH("ytd-horizontal-card-list-renderer"),_.h("design:type",Object)],NP.prototype,"JSC$23491_cardList",void 0);_.r([_.nH("ytd-horizontal-card-list-renderer[center-items]"),_.h("design:type",Object)],NP.prototype,"problemWalkthroughCardList",void 0);_.r([_.nH("ytd-shelf-renderer"),_.h("design:type",Object)],NP.prototype,"shelfSection",void 0);_.r([_.nH("ytd-video-description-music-section-renderer"),_.h("design:type",Object)],NP.prototype,"musicMetadataSection",void 0);
_.r([_.nH("ytd-video-description-infocards-section-renderer"),_.h("design:type",Object)],NP.prototype,"infocardsSection",void 0);_.r([_.nH("ytd-video-description-transcript-section-renderer"),_.h("design:type",Object)],NP.prototype,"transcriptSection",void 0);_.r([_.nH("how-this-was-made-section-view-model"),_.h("design:type",Object)],NP.prototype,"howThisWasMadeSection",void 0);_.r([_.nH("ytd-video-description-files-section-renderer"),_.h("design:type",Object)],NP.prototype,"filesSection",void 0);
_.r([_.wD("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NP.prototype,"panelContentVisibleChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NP.prototype,"dataChanged",null);_.r([_.wD("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NP.prototype,"onHiddenChanged",null);
_.r([_.qY("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NP.prototype,"onYtExpanderMoreTapped",null);_.r([_.Jc({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],NP);
_.B(NP,"ytd-structured-description-content-renderer",function(){if(ZCT!==void 0)return ZCT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ZCT=G},{mode:2});var KJ5;var P8T;var lA=function(){return _.J.apply(this,arguments)||this};
_.u(lA,_.J);lA.prototype.computeAriaLabel=function(G){var c,I;return(G==null?void 0:(c=G.accessibility)==null?void 0:(I=c.accessibilityData)==null?void 0:I.label)||_.mJ("LOADING",void 0,"Loading")};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lA.prototype,"data",void 0);_.r([_.E({computed:"computeAriaLabel(data)"}),_.h("design:type",String)],lA.prototype,"ariaLabel",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],lA);
_.B(lA,"yt-content-loading-renderer",function(){if(P8T===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;KJ5===void 0&&(KJ5=document.createElement("template"));var R=KJ5;I.call(c,R.content.cloneNode(!0),G.content.firstChild);P8T=G}G=P8T;return G},{mode:1});_.R1(_.W(function(G){var c=_.Q(_.ks(!1,void 0,"OZMtVb")),I=c.next().value,R=c.next().value;c=_.Q(_.ks(!1,void 0,"qWERsf"));var Z=c.next().value,K=c.next().value;_.tI(function(){var O=_.D(G.data().collaboratePlaylistCollaborationSetting,dbo);O&&R(O.switchedOnByDefault);var N=_.D(G.data().allowNewCollaboratorsPlaylistCollaborationSetting,dbo);N&&K(N.switchedOnByDefault);if(!O&&!N||!O&&G.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")R(!0),K(!0)});
var m=function(O){R(O);K(O);var N=G.data().playlistCollaborationEntityKey||"";var q=_.XZ().getState();(q=_.a6(q.entities,"playlistCollaborationEntity",N))&&(q==null?void 0:q.isCollaborative)===O||_.XZ().dispatch(_.Le("playlistCollaborationEntity",N,Object.assign({},q,{isCollaborative:O})))},a=function(O){K(O)};
return _.e("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.e("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.e(_.sN,{data:function(){return G.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(O){return _.e(_.Mbi,{data:O.data,
onSwitch:m})}})),_.e(_.l,{cond:I,
then:function(){return _.e(_.FG,null,_.e("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.e(_.sN,{data:function(){return G.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(O){return _.e(_.Mbi,{data:O.data,
onSwitch:a,overrideDisabled:!1})}})),_.e(_.l,{cond:Z,
then:function(){return _.e("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.e(_.sN,{data:function(){return G.data().copyLinkButton}},{buttonViewModel:_.BR}))}}),_.e("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.e(_.sN,{data:function(){return G.data().playlistCollaborators}},{contentListItemViewModel:_.yX0})))}}))},"co"),"playlist-collaboration-view-model",{props:{data:_.bl}});var QPo=_.W(function(G){var c=G.data;var I=G.customCommandResolver;return _.e(_.FG,null,_.e("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.e(_.sN,{data:function(){return c().adAvatar}},{adAvatarViewModel:function(R){return _.e(_.IVK,{data:R.data,
customCommandResolver:I})}})),_.e("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.e(_.l,{cond:function(){return c().headline},
then:function(R){return _.e(_.ul,{text:R,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.e("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.e(_.sN,{data:function(){return c().adBadge}},{adBadgeViewModel:function(R){return _.e(_.Xh,{data:R.data,
hasDot:function(){return c().primaryDetailsLine!==void 0},
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.e(_.sN,{data:function(){return c().primaryDetailsLine}},{adDetailsLineViewModel:function(R){return _.e(_.yu,{data:R.data,
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"eo"),m2N=_.W(function(G){var c=G.data;
var I=G.customCommandResolver;return _.e("ad-avatar-lockup-view-model",{class:function(){var R;return((R=c().interaction)==null?0:R.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.YC(_.wZ({visibilityCallback:function(R){var Z,K=(Z=c().interaction)==null?void 0:Z.onFirstVisible;R&&K&&_.r0(K)},
showOption:_.j4}),_.xZ(function(){return c().interaction},I)),
"aria-label":function(){var R,Z;return(R=c().interaction)==null?void 0:(Z=R.accessibility)==null?void 0:Z.label}},_.e(_.B1,null,_.e(_.W1,{when:function(){return c().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.e(QPo,{data:c,
customCommandResolver:I})}),_.e(_.iV,null,function(){return null})))},"fo");_.R1(_.W(function(G){var c=G.data;var I=G.panelContentVisibility;G=_.wZ({visibilityCallback:function(K){var m,a=(m=c().interaction)==null?void 0:m.onFirstVisible;K&&a&&_.r0(a)},
showOption:_.j4});var R=_.xZ(function(){return c().interaction},Mvo);
_.jE(function(){var K,m;if(m=_.Yc("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var a;m=(a=m())==null?void 0:a.onLayoutVisibleCallback}else m=null;(K=m)==null||K()},"go");
var Z=function(){return I()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.e("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.YC(G,R)},_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.e(_.l,{cond:_.oIT("(min-width: "+((0,_.y7)()+_.zC)+"px) or (max-width: 600px)"),then:function(){return _.e(_.sN,{data:function(){return c().adImage}},{adImageViewModel:function(K){return _.e(_.Zc,{data:K.data,
targetHeight:80,customCommandResolver:Mvo})}})}})),_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.e(_.sN,{data:function(){return c().adAvatarLockup}},{adAvatarLockupViewModel:function(K){return _.e(m2N,{data:K.data,
customCommandResolver:Mvo})}})),_.e(_.l,{cond:Z,
then:function(){return _.e(_.sN,{data:function(){return c().adButton}},{adButtonViewModel:function(K){return _.e(_.tp,{data:K.data,
customCommandResolver:Mvo})}})},
else:function(){return _.e(_.sN,{data:function(){return c().menu}},{buttonViewModel:_.BR})}}),_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.e(_.sN,{data:function(){var K=_.D(c().toggleButton,_.kh);
return{toggleButtonViewModel:Object.assign({},K,{isTogglingDisabled:!0,isToggled:Z()})}}},{toggleButtonViewModel:_.m8})))))},"ho"),"panel-ad-header-image-lockup-view-model",{props:{data:_.bl,
panelContentVisibility:_.bl}});_.R1(_.W(function(G){var c=function(){return _.D(G.data().inputComposerViewModel,E$f)},I=_.o1(_.Ce.currentPageSubTypeSelector),R=_.o1(_.Ce.persistentPanelVisibleSelector),Z=_.Q(_.ks(!1,void 0,"RXGzYc")),K=Z.next().value,m=Z.next().value;
Z=_.Q(_.ks(!1,void 0,"oyonKd"));var a=Z.next().value,O=Z.next().value,N=function(){k(!0);var oq;_.r0(((oq=c())==null?void 0:oq.onSubmitCommand)||{})},q=function(){if(R()&&!a()){var oq;
(oq=_.Fc())==null||oq.removeCueRange("aic-proactive");m(!1);O(!0);N();_.iD(_.Kwd(c().endOfVideoContinuation),{form:{formData:_.Nr({clientMessageId:"youchat-"+Date.now(),pageContext:kp()})},commandController:{onSuccess:function(){k(!1)},
onServerError:function(){_.iD(n$f(t()));k(!1)}}})}},w=function(){var oq=_.Fc();
if(oq&&!K()&&!a()){var Wr=oq.getDuration();Wr>60&&(oq.addCueRange("aic-proactive",Wr-60,Wr-20),m(!0))}},F=function(){var oq;
return((oq=c())==null?void 0:oq.youchatPendingResponseEntityKey)||""},n=_.um(_.T0G,F),U=function(){var oq;
return!((oq=n())==null||!oq.isPendingResponse)},k=function(oq){_.OdW(F())(oq)};
Z=_.Q(_.ks(!0,void 0,"umCoCf"));var p=Z.next().value,M=Z.next().value,z=function(){var oq,Wr;var iT=_.D((Wr=c())==null?void 0:Wr.inputFormField,bkz);return iT==null?void 0:(oq=iT.contentProperties)==null?void 0:oq.placeholderText},t=function(){return c().sectionTargetId||"youchat_messages_section"};
Z=_.Op("yt-chat-input-view-model");var x=_.mX("textarea"),C=_.um(DtR,"chat_input_view_model_state"),H=o$_(),g=function(){var oq;return!((oq=C())==null||!oq.value)},QO=function(){return G.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},T8=function(){var oq;
(oq=_.Fc())==null||oq.removeCueRange("aic-proactive");m(!1);O(!1);var Wr;_.v("enable_navigational_proactive_messages_on_ai_companion")&&((Wr=c())==null?0:Wr.navigationContinuation)&&R()&&(N(),_.iD(_.Kwd(c().navigationContinuation),{form:{formData:_.Nr({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:z1G(),pageContext:kp()})},commandController:{onSuccess:function(){k(!1)},
onServerError:function(){_.iD(n$f(t()));k(!1)}}}))},kp=function(){var oq;
return(oq=_.wH().resolve(_.qR(_.lZ)))==null?void 0:_.mSg(oq,I())};
_.tI(function(){if(_.Rs("enable_ai_chat_controller")){var oq;(oq=_.wH().resolve(_.qR(_.lZ)))==null||oq.init(G.data().environment)}else if(oq=J$_(G.data()),!g()&&oq){var Wr;((Wr=c())==null?0:Wr.setPendingResponseOnWelcome)&&k(!0);_.iD(oq,{form:{formData:_.Nr({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:z1G(),pageContext:kp()})}});H(!0)}var iT=t(),z8=_.wH().resolve(_.qR(_.Hk)),GV=function(){_.kZ.remove(iT);if(_.Rs("enable_ai_chat_controller")){var Hr;(Hr=_.wH().resolve(_.qR(_.lZ)))!=null&&
Hr.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(Hr.lastWelcomeContinuationSent=void 0)}else H(!1)},ei=function(){_.ue(function(){if(QO()&&(T8(iT),I()==="watch")){var Hr=_.Fc();
Hr&&(Hr.addEventListener("onStateChange",w),Hr.addEventListener("onCueRangeEnter",q))}})};
Wr=_.v("enable_ai_companion")?!QO():!0;z8==null||z8.addEventListener("yt-navigate-start",GV,{once:Wr});z8==null||z8.addEventListener("yt-navigate-finish",ei,{once:Wr});_.ty(function(){z8==null||z8.removeEventListener("yt-navigate-start",GV);z8==null||z8.removeEventListener("yt-navigate-finish",ei);var Hr=_.Fc();Hr&&(Hr.removeEventListener("onCueRangeEnter",q),Hr.removeEventListener("onStateChange",w),Hr.removeCueRange("aic-proactive"))})});
_.xs(function(){if(_.Rs("enable_ai_chat_controller")){var oq=J$_(G.data());if(oq){var Wr,iT=((Wr=c())==null?0:Wr.setPendingResponseOnWelcome)?k:void 0,z8;(z8=_.wH().resolve(_.qR(_.lZ)))==null||qfo(z8,{command:oq,setPending:iT})}}},"m4RVte");
var FB=function(){var oq=x.value.value;x.value.value="";VvG(x.value);var Wr,iT=((Wr=c())==null?void 0:Wr.enableGradientColorBg)||!1;Wr=v$x(t(),oq,iT);_.iD(Wr);N();var z8,GV,ei;Wr=(ei=_.WI((z8=G.data())==null?void 0:z8.sendUserQueryCommand))!=null?ei:_.Kwd((GV=c())==null?void 0:GV.continuation);_.iD(Wr,{form:{formData:_.Nr({clientMessageId:"youchat-"+Date.now(),userInputText:oq,playerOffsetMs:z1G(),pageContext:kp()})},commandController:{onSuccess:function(){k(!1)},
onServerError:function(){_.iD(n$f(t()));k(!1)}}})};
return _.e("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:Z},_.e("div",{class:"chatInputViewModelChatInputWrapper"},_.e("form",{class:"chatInputViewModelChatInputForm"},_.e("textarea",{class:"chatInputViewModelChatInput",el:x,"on:keydown":_.Nx(function(oq){var Wr=U()||!1;VvG(x.value);Wr||oq.key!=="Enter"||oq.shiftKey||(oq.preventDefault(),FB());return!1}),
"on:keyup":_.Nx(function(){M(x.value.value.length===0);return!1}),
"aria-label":function(){return U()?G.data().loadingAnimationA11yLabel||"":z()},
placeholder:z,rows:1}),_.e(_.BR,{data:function(){return _.D(G.data().sendButton,_.uv)},
onClick:function(oq){oq.preventDefault();FB();M(x.value.value.length===0)},
buttonOverrides:function(){return{disabled:p()||U()}}})),_.e(_.ul,{className:"chatInputViewModelChatDisclaimer",
text:function(){var oq;return(oq=_.D(G.data().disclaimer,_.AGT))==null?void 0:oq.text}})))},"jo"),"yt-chat-input-view-model",{props:{data:_.bl}});var aSf=["engagement-panel-clip-create","engagement-panel-clip-view"],TU_=0,qP=function(){var G=_.J.apply(this,arguments)||this;var c;G.headerData=(c=G.data)==null?void 0:c.header;G.darkerPanels=_.v("web_watch_darker_panels");G.matchContentTheme=_.v("web_watch_panel_content_match_theme");G.disableAutoFill=!1;G.isFullscreen=!1;G.isTheaterMode=!1;G.liveChatReplyPanel=!1;G.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");G.disableBackdropFilter=_.v("web_disable_backdrop_filter");G.isPersistentPanel=
!1;G.trackEngagementPanelVisibility=_.v("web_watch_track_engagement_panel_visibility");G.overscrollContain=!1;G.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return G};
_.u(qP,_.J);_.P=qP.prototype;
_.P.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(G){var c;return(G==null?void 0:(c=G.webComponentHint)==null?void 0:c.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.P.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var G;if((G=this.hostElement.parentElement)==null?0:G.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.P.detached=function(){this.updateTheaterDisablement()};
_.P.showPanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.dJ.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.P.maybeScrollToItemSection=function(G){var c=this,I,R=G==null?void 0:(I=G.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;R&&_.dJ.addJob(function(){var Z;(Z=c.sectionListRendererElement)==null||Z.scrollToItemSection(R)},8)};
_.P.hidePanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.dJ.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.P.updatePanel=function(G,c,I,R){var Z=this;if((G=G==null?void 0:G.engagementPanelSectionListRenderer)||R){if(G){R=G.header;var K=G.content,m=G.footer;(G=G.targetId)&&this.set("data.targetId",G);R&&this.set("data.header",R);K&&this.set("data.content",K);m&&this.set("data.footer",m)}else R&&(G=R.content,K=R.secondaryHeaderContent,m=R.targetId,R=R.loggingDirectives,m&&this.set("data.targetId",m),G&&this.set("data.content",G),R&&_.v("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
R),K&&(this.secondaryHeaderData=K));this.updateChildVisibilityProperties();if(c){var a;_.v("kevlar_update_panel_focus_scroll_killswitch")||(a={preventScroll:!0});this.focus(a)}_.O$(this,function(){_.Xl(Z.hostElement,"yt-refit");Z.maybeScrollToItemSection(I)})}};
_.P.computeHeaderData=function(){var G,c=(0,_.rx.unsafeClone)((G=this.data)==null?void 0:G.header);if(c){G=new _.vS(Object.keys(c)[0]);var I=_.D(c,G),R=_.D(this.secondaryHeaderData,G);R&&_.MC(c,G,Object.assign({},R,I))}return c};
_.P.getReloadContinuation=function(){var G,c,I,R=_.Q(((G=this.data)==null?void 0:(c=G.content)==null?void 0:(I=c.sectionListRenderer)==null?void 0:I.continuations)||[]);for(G=R.next();!G.done;G=R.next())if(G=G.value,G.reloadContinuationData)return G.reloadContinuationData.continuation};
_.P.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var G;((G=this.data)==null?0:G.targetId)&&(G=this.contentElement.firstElementChild)&&G.setAttribute("panel-target-id",this.data.targetId)};
_.P.forwardPopupClosedToFlowRootRenderer=function(){var G=_.Q1(this.hostElement).querySelector("ytd-flow-root-renderer");if(G&&this.hostElement.closest("ytd-popup-container"))G.onPopupClosed()};
_.P.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var G;if(!aSf.includes((G=this.theaterDisablementPanelIdentifier)!=null?G:""))if(G=_.v("web_watch_imax_theater_mode")&&this.isTheaterMode,G=_.v("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G,_.v("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||G){var c;this.visibility=(c=this.data)==null?void 0:c.visibility;var I;this.trackEngagementPanelVisibility&&((I=this.data)==null?void 0:I.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var R,Z,K,m;this.contentEmpty=!!(((R=this.data)==null?0:(Z=R.content)==null?0:Z.structuredDescriptionContentRenderer)&&Object.keys((K=this.data)==null?void 0:(m=K.content)==null?void 0:
m.structuredDescriptionContentRenderer).length===0);(c=_.wH().resolve(_.Tl))&&c.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.P.isTheaterModeChanged=function(){_.v("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.P.isFullscreenChanged=function(){_.v("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.P.focus=function(G){if(this.header)this.header.focus(G);else{var c;(c=_.Q1(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||c.focus(G)}};
_.P.visibilityChanged=function(){if(!_.v("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var G=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=R||!this.lastVisibility,K,m,a,O=((K=this.data)==null?void 0:(m=K.identifier)==null?void 0:
m.tag)||((a=this.data)==null?void 0:a.panelIdentifier);if(G&&Z){var N;((N=this.data)==null?0:N.onShowCommands)&&_.cd(this.hostElement,this.data.onShowCommands,this.hostElement);O&&_.y4().dispatch(_.R6({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:O}}))}else if(c&&I){var q;((q=this.data)==null?0:q.onHideCommands)&&_.cd(this.hostElement,this.data.onHideCommands,this.hostElement);O&&_.y4().dispatch(_.R6({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:O}}))}G&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*TU_++));_.v("kevlar_watch_focus_on_engagement_panels")&&G&&R&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.P.notifyVisibilityChanged=function(G){var c;_.gq(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,G,(c=this.data)==null?void 0:c.targetId]);if(_.v("autonav_pause_for_comments_ep")){var I;_.Xl(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(I=this.data)==null?void 0:I.targetId})}};
_.P.updateTheaterDisablement=function(){if(!_.v("kevlar_watch_theater_disablement_killswitch")){var G=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&aSf.includes(G)&&!_.v("watch_next_grid_ignore_disallowed_panels")){var c=_.z9(_.y4().getState()),I=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";G!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():I?(this.originalTheaterState===void 0&&(this.originalTheaterState=c,this.theaterDisablementPanelIdentifier=
G),c&&_.ym(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.P.clearTheaterDisablement=function(){_.ym(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.P.updateChildVisibilityProperties=function(){this.hostElement||_.v("kevlar_panel_property_init_killswitch")||this._enableProperties();var G=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=G);var c,I=(c=this.headerElement)==null?void 0:c.firstElementChild;if(I&&!this.adHeaderImageLockupViewModel){c=G==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";I.collapsed=c;I=_.Q1(I).querySelector("#visibility-button");if(!I)return;(I=I.firstElementChild)&&
I.polymerController.is==="ytd-toggle-button-renderer"&&I.polymerController.data.isToggled!==c&&I.polymerController.set("data.isToggled",c)}var R;if(c=(R=this.contentElement)==null?void 0:R.firstElementChild)if(G&&G!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")c.removeAttribute("panel-content-visible");else{c.setAttribute("panel-content-visible","");var Z;(Z=c.markDirty)==null||Z.call(c)}};
_.P.onYtChangeEngagementPanelVisibilityAction=function(G){var c=this,I,R=(I=this.data)==null?void 0:I.targetId,Z,K,m;I=((Z=this.data)==null?void 0:(K=Z.identifier)==null?void 0:K.tag)||((m=this.data)==null?void 0:m.panelIdentifier);var a=_.D(G,_.HqT),O;G=R&&(a==null?void 0:a.targetId)===R||I&&(a==null?void 0:(O=a.panelIdentifier)==null?void 0:O.tag)===I;this.dialog&&G&&(a==null?void 0:a.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(R==="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",I]));!_.v("kevlar_use_engagement_panel_management_component")&&G&&(R=a.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!R?_.dJ.addJob(function(){c.visibility=a.visibility},2,this.hideDelayMs):this.visibility=a.visibility,a.visibility&&this.notifyVisibilityChanged(a.visibility))};
_.P.onYtScrollToEngagementPanelCommand=function(G){var c,I=(c=this.data)==null?void 0:c.targetId,R,Z,K;c=((R=this.data)==null?void 0:(Z=R.identifier)==null?void 0:Z.tag)||((K=this.data)==null?void 0:K.panelIdentifier);G=_.D(G,_.Qj0);var m;(I&&(G==null?void 0:G.targetId)===I||c&&(G==null?void 0:(m=G.panelIdentifier)==null?void 0:m.tag)===c)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ym(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.P.attachVEs=function(G){var c,I;(G==null?0:(c=G.content)==null?0:(I=c.productListRenderer)==null?0:I.trackingParams)&&_.DP().graftServerVe(G.content.productListRenderer.trackingParams);var R,Z;(G==null?0:(R=G.content)==null?0:(Z=R.transcriptRenderer)==null?0:Z.trackingParams)&&_.DP().graftServerVe(G.content.transcriptRenderer.trackingParams)};
_.P.onYtUpdateEngagementPanelAction=function(G){var c,I=(c=this.data)==null?void 0:c.targetId;G=_.D(G,$by);I&&(G==null?void 0:G.targetId)===I&&(this.updatePanel({engagementPanelSectionListRenderer:{header:G==null?void 0:G.header,content:G==null?void 0:G.content}},!1),this.attachVEs(G))};
_.P.onYtShowEngagementPanelScrimAction=function(G){var c,I=(c=this.data)==null?void 0:c.targetId;G=_.D(G,AgR);I&&(G==null?void 0:G.engagementPanelTargetId)===I&&(this.scrimmed=!0)};
_.P.onYtHideEngagementPanelScrimAction=function(G){var c,I=(c=this.data)==null?void 0:c.targetId;G=_.D(G,sxS);I&&(G==null?void 0:G.engagementPanelTargetId)===I&&(this.scrimmed=!1)};
_.P.getIdentifier=function(){var G,c,I;return((G=this.data)==null?void 0:G.panelIdentifier)||((c=this.data)==null?void 0:(I=c.identifier)==null?void 0:I.tag)};
_.P.getSurface=function(){var G,c;return(G=this.data)==null?void 0:(c=G.identifier)==null?void 0:c.surface};
_.Nh.Object.defineProperties(qP.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var G=this.getIdentifier();return G==="engagement-panel-youchat"||G==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
qP.prototype.visibilityChanged=qP.prototype.visibilityChanged;qP.prototype.isFullscreenChanged=qP.prototype.isFullscreenChanged;qP.prototype.isTheaterModeChanged=qP.prototype.isTheaterModeChanged;qP.prototype.dataChanged=qP.prototype.dataChanged;qP.prototype.forwardPopupClosedToFlowRootRenderer=qP.prototype.forwardPopupClosedToFlowRootRenderer;qP.prototype.onYtRendererstamperFinished=qP.prototype.onYtRendererstamperFinished;
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],qP.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],qP.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qP.prototype,"data",void 0);
_.r([_.E({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.h("design:type",Object)],qP.prototype,"headerData",void 0);_.r([_.E(),_.h("design:type",Object)],qP.prototype,"secondaryHeaderData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"visibility",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"contentEmpty",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"scrimmed",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"dialog",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"dropdown",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"darkerPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"matchContentTheme",void 0);_.r([_.E(),_.h("design:type",Object)],qP.prototype,"disableAutoFill",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.v("optimal_reading_width_comments_ep")}),_.h("design:type",Boolean)],qP.prototype,"optimalReadingWidthComments",void 0);_.r([_.E(),_.h("design:type",Number)],qP.prototype,"hideDelayMs",void 0);_.r([_.E({selector:_.E3,reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"isFullscreen",void 0);_.r([_.E({selector:_.z9,reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"isTheaterMode",void 0);
_.r([_.E(),_.h("design:type",Number)],qP.prototype,"showDelayMs",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.targetId"),_.h("design:type",Object),_.h("design:paramtypes",[])],qP.prototype,"targetId",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],qP.prototype,"webSize",null);_.r([_.E(),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],qP.prototype,"hideFooterBorder",null);
_.r([_.E(),_.h("design:type",Object)],qP.prototype,"isWatch",void 0);_.r([_.E(),_.h("design:type",Object)],qP.prototype,"originalTheaterState",void 0);_.r([_.E(),_.h("design:type",Object)],qP.prototype,"theaterDisablementPanelIdentifier",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"isWatchWhilePanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"shortsPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"liveChatEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"learningChatEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"liveChatReplyPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"enableAnchoredPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"disableBackdropFilter",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"isPersistentPanel",void 0);_.r([_.E(),_.h("design:type",Object)],qP.prototype,"trackEngagementPanelVisibility",void 0);_.r([_.E(),_.h("design:type",Object)],qP.prototype,"overscrollContain",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],qP.prototype,"isAiCompanionPanel",null);
_.r([_.nH("#header"),_.h("design:type",HTMLElement)],qP.prototype,"headerElement",void 0);_.r([_.nH("#header > *"),_.h("design:type",HTMLElement)],qP.prototype,"header",void 0);_.r([_.nH("ytd-section-list-renderer"),_.h("design:type",Object)],qP.prototype,"sectionListRendererElement",void 0);_.r([_.nH("panel-ad-header-image-lockup-view-model"),_.h("design:type",HTMLElement)],qP.prototype,"adHeaderImageLockupViewModel",void 0);
_.r([_.nH("#content"),_.h("design:type",HTMLElement)],qP.prototype,"contentElement",void 0);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"onYtRendererstamperFinished",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.r([_.uO("data","isFullscreen","isTheaterMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"dataChanged",null);_.r([_.wD("isTheaterMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"isTheaterModeChanged",null);_.r([_.wD("isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"isFullscreenChanged",null);
_.r([_.wD("visibility"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qP.prototype,"visibilityChanged",null);_.r([_.Jc({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],qP);
_.B(qP,"ytd-engagement-panel-section-list-renderer",function(){if(SQf!==void 0)return SQf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return SQf=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var OCf;var wO=function(){var G=_.J.apply(this,arguments)||this;G.lastRenderedPanelIds=new Set;G.visiblePanels=[];G.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.u(wO,_.J);_.P=wO.prototype;_.P.dataChanged=function(){if(this.data){for(var G=[],c=_.Q(this.data),I=c.next();!I.done;I=c.next()){I=I.value;var R=void 0,Z=void 0,K=(R=I)==null?void 0:(Z=R.engagementPanelSectionListRenderer)==null?void 0:Z.visibility;Z=R=void 0;((R=I)==null?0:(Z=R.engagementPanelSectionListRenderer)==null?0:Z.targetId)&&K!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G.push(I)}this.visiblePanels=G}else this.visiblePanels=[]};
_.P.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.P.withoutVisiblePanelById=function(G){return this.visiblePanels.filter(function(c){var I;return((I=c.engagementPanelSectionListRenderer)==null?void 0:I.targetId)!==G})};
_.P.onYtChangeEngagementPanelVisibilityAction=function(G){var c=this,I=_.D(G,_.HqT);if(this.data&&(I==null?0:I.targetId)&&(I==null?0:I.visibility)){var R,Z=(R=this.data.find(function(m){var a;return((a=m.engagementPanelSectionListRenderer)==null?void 0:a.targetId)===I.targetId}))==null?void 0:R.engagementPanelSectionListRenderer;
if(Z){var K=this.withoutVisiblePanelById(I.targetId);I.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(G=this.data.find(function(m){var a;return((a=m.engagementPanelSectionListRenderer)==null?void 0:a.targetId)===I.targetId}))&&(K=[G].concat(_.jn(K)));
this.hideDelayMs&&I.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&K.length===0?_.dJ.addJob(function(){Z.visibility=I.visibility;c.visiblePanels=K},10,this.hideDelayMs):(Z.visibility=I.visibility,this.visiblePanels=K);
_.gq(this.hostElement,"yt-engagement-panels-visible-changed",[K])}}};
_.P.onRendererstamperFinished=function(){var G=new Set(this.visiblePanels.map(function(c){var I;return(I=c.engagementPanelSectionListRenderer)==null?void 0:I.targetId}));
this.handlePanelVisibilityChange(G,this.lastRenderedPanelIds);this.lastRenderedPanelIds=G};
_.P.handlePanelVisibilityChange=function(G,c){G=G===void 0?new Set:G;c=c===void 0?new Set:c;if(this.data)for(var I=_.Q(this.data),R=I.next();!R.done;R=I.next()){R=R.value;var Z=void 0,K=void 0,m=(Z=R)==null?void 0:(K=Z.engagementPanelSectionListRenderer)==null?void 0:K.targetId;if(m&&(Z=c.has(m),K=G.has(m),m=void 0,!Z&&K?(K=Z=void 0,m=(Z=R)==null?void 0:(K=Z.engagementPanelSectionListRenderer)==null?void 0:K.onShowCommands):Z&&!K&&(K=Z=void 0,m=(Z=R)==null?void 0:(K=Z.engagementPanelSectionListRenderer)==
null?void 0:K.onHideCommands),m))for(R=_.Q(m),m=R.next();!m.done;m=R.next())this.ytComponentBehavior.resolveCommand(m.value)}};
wO.prototype.onRendererstamperFinished=wO.prototype.onRendererstamperFinished;wO.prototype.dataChanged=wO.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],wO.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],wO.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wO.prototype,"lastRenderedPanelIds",void 0);_.r([_.E(),_.h("design:type",Number)],wO.prototype,"hideDelayMs",void 0);_.r([_.E(),_.h("design:type",Array)],wO.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Array)],wO.prototype,"visiblePanels",void 0);_.r([_.E(),_.h("design:type",Boolean)],wO.prototype,"isWatchWhilePanel",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wO.prototype,"dataChanged",null);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wO.prototype,"onRendererstamperFinished",null);_.r([_.Jc({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],wO);
_.B(wO,"ytd-watch-engagement-panels",function(){if(OCf!==void 0)return OCf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return OCf=G},{mode:1});var ewG;var FV=function(){return _.J.apply(this,arguments)||this};
_.u(FV,_.J);FV.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.O9(_.Q1(this.hostElement).querySelector("#text"),_.K3i(_.mSk,this.data.companionLegalText))};
FV.prototype.computeAutoScrollEnabled=function(G,c){return G&&!c};
FV.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
FV.prototype.onToggleTap=function(){this.expanded=!this.expanded};
FV.prototype.expandedChanged=FV.prototype.expandedChanged;FV.prototype.dataChanged=FV.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.USx),_.h("design:type",Object)],FV.prototype,"ytdAutoScrollBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],FV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],FV.prototype,"expanded",void 0);
_.r([_.E({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.h("design:type",Boolean)],FV.prototype,"autoScrollEnabled",void 0);_.r([_.E(),_.h("design:type",String)],FV.prototype,"expanderIcon",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FV.prototype,"dataChanged",null);
_.r([_.wD("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FV.prototype,"expandedChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],FV);
_.B(FV,"ytd-companion-legal-text-renderer",function(){if(ewG!==void 0)return ewG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ewG=G},{mode:1});var NU_;var n_=function(){var G=_.J.apply(this,arguments)||this;G.buttonUpdate=_.v("web_modern_buttons");G.kevlarWatchGrid=_.v("kevlar_watch_grid");G.centerAlignDescription=_.v("action_companion_center_align_description");G.truncateDomain=_.v("action_companion_truncate_domain");G.enableMonoStyle=_.v("enable_default_mono_cta_migration_web_client");return G};
_.u(n_,_.J);_.P=n_.prototype;_.P.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.P.getOnLayoutVisibleCallback=function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.P.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",n_.JSC$23536_DEFAULT_AD_BADGE_RENDERER);var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.P.getButtonRenderer=function(G){return G.actionButton&&_.D(G.actionButton,_.vE)?(delete _.D(G.actionButton,_.vE).navigationEndpoint,_.D(G.actionButton,_.vE)):{}};
_.P.onClick=function(G){var c=this;if((!_.v("web_modern_buttons")||!_.Gf(_.CE(G),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){G=_.ZA();var I=this.getLayoutId();G&&I&&_.v("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(R){(new _.qZ(R)).executeCommand(c.data.navigationEndpoint,I)}):_.v("kevlar_companion_resolve_command_killswitch")?_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ym(this.hostElement,"yt-companion-ad-clicked",["action-companion",I])}};
_.Nh.Object.defineProperties(n_.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.data)==null?0:(c=G.detailsLine)==null?0:(I=c.adRating)==null?0:I.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R;return((G=this.data)==null?0:(c=G.detailsLine)==null?0:(I=c.adRating)==null?0:(R=I.ratingIcon)==null?0:R.iconType)?_.On(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R;return((G=this.data)==null?0:(c=G.detailsLine)==null?0:(I=c.texts)==null?0:(R=I[0])==null?0:R.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?0:(c=G.description)==null?0:c.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var G=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return G?G.indexOf("/default_banner")!==-1:!0}}});
n_.prototype.onClick=n_.prototype.onClick;n_.prototype.dataChanged=n_.prototype.dataChanged;n_.JSC$23536_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.mJ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],n_.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],n_.prototype,"rendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],n_.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],n_.prototype,"buttonUpdate",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],n_.prototype,"kevlarWatchGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],n_.prototype,"centerAlignDescription",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],n_.prototype,"truncateDomain",void 0);
_.r([_.E({computed:"computeButtonOverride(buttonUpdate)"}),_.h("design:type",Object)],n_.prototype,"buttonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],n_.prototype,"enableMonoStyle",void 0);_.r([_.A("data.detailsLine.adRating.ratingText"),_.h("design:type",Object),_.h("design:paramtypes",[])],n_.prototype,"getRating",null);_.r([_.A("getRating"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],n_.prototype,"computeRatingHidden",null);
_.r([_.A("data.detailsLine.adRating.ratingIcon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],n_.prototype,"iconType",null);_.r([_.A("data.detailsLine.texts.0.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],n_.prototype,"getDetailsLine",null);_.r([_.A("getDetailsLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],n_.prototype,"computeDetailsLineHidden",null);
_.r([_.A("data.description.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],n_.prototype,"getDescriptionText",null);_.r([_.A("getDescriptionText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],n_.prototype,"computeDescriptionTextHidden",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],n_.prototype,"interactionLoggingClientData",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],n_.prototype,"hideBanner",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],n_.prototype,"dataChanged",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],n_.prototype,"onClick",null);_.r([_.Jc({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],n_);
_.B(n_,"ytd-action-companion-ad-renderer",function(){if(NU_!==void 0)return NU_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return NU_=G},{mode:_.Qc("kevlar_poly_si_batch_j067")?1:2});var lSz;var qCS;var vZ=function(){var G=_.J.apply(this,arguments)||this;G.buttonUpdate=_.v("web_modern_buttons");G.hideLegacyBanner=_.v("enable_dsa_one_click_ata_translators_infeed_elements");G.adInfoButtonStyle="mono";G.adInfoButtonType="text";G.noDotAdBadge=!0;return G};
_.u(vZ,_.J);_.P=vZ.prototype;_.P.getOnLayoutVisibleCallback=function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.P.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var G=this.data.image.thumbnail.thumbnails[0];this.imageSrc=G.url?_.dS(G.url):void 0;this.imageWidth=G.width||0;this.imageHeight=G.height||0}this.data.clickthroughEndpoint&&_.D(this.data.clickthroughEndpoint,_.ID)&&(G=_.D(this.data.clickthroughEndpoint,_.ID).url,_.v("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
G||"":G?(G=_.dS(G),this.clickThroughUrl=_.By(G)):this.clickThroughUrl=void 0);(G=this.getOnLayoutVisibleCallback())&&G()}};
_.P.onClick=function(G){_.Gf(_.CE(G),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(G)};
_.P.handleClick=function(){var G=this;this.data&&this.data.clickthroughEndpoint&&(_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(c){G.macroReplacementBehavior.sendServiceRequestAction([c])}),_.ym(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.P.onLoad=function(){_.gq(this.hostElement,"yt-refit-popups-action")};
_.Nh.Object.defineProperties(vZ.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
vZ.prototype.onLoad=vZ.prototype.onLoad;vZ.prototype.onClick=vZ.prototype.onClick;vZ.prototype.dataChanged=vZ.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vZ.prototype,"rendererBehavior",void 0);_.r([_.L(uu6.YtMacroReplacementBehavior),_.h("design:type",Object)],vZ.prototype,"macroReplacementBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],vZ.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],vZ.prototype,"buttonUpdate",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],vZ.prototype,"hideLegacyBanner",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],vZ.prototype,"adInfoButtonStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],vZ.prototype,"adInfoButtonType",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vZ.prototype,"macros",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vZ.prototype,"interactionLoggingClientData",null);_.r([_.E(),_.h("design:type",String)],vZ.prototype,"clickThroughUrl",void 0);_.r([_.E(),_.h("design:type",_.Wy)],vZ.prototype,"imageSrc",void 0);_.r([_.E(),_.h("design:type",Number)],vZ.prototype,"imageWidth",void 0);_.r([_.E(),_.h("design:type",Number)],vZ.prototype,"imageHeight",void 0);_.r([_.E(),_.h("design:type",Object)],vZ.prototype,"noDotAdBadge",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vZ.prototype,"dataChanged",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],vZ.prototype,"onClick",null);_.r([_.qY("load"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vZ.prototype,"onLoad",null);_.r([_.Jc({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],vZ);
_.B(vZ,"ytd-image-companion-renderer",function(){if(qCS!==void 0)return qCS;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return qCS=G},{mode:_.Qc("kevlar_poly_si_batch_j067")?1:2});var wdJ;var Dv=function(){return _.J.apply(this,arguments)||this};
_.u(Dv,_.J);_.P=Dv.prototype;_.P.dataChanged=function(){this.set("data.adBadge",Dv.JSC$23545_DEFAULT_AD_BADGE_RENDERER);if(this.data){var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.P.getOnLayoutVisibleCallback=function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.P.onCompanionClicked=function(G){this.data&&(G.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ym(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.P.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var G=_.ZA(),c=this.getLayoutId(),I=this.data.clickToAdvSiteEndpoint;G&&c&&_.v("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(R){(new _.qZ(R)).executeCommand(I,c)}):_.Xl(this.hostElement,"yt-navigate",{endpoint:I})}};
_.P.sendTrackingPings=function(G){if(G&&G.length!==0&&G[0].loggingUrls&&(G=G[0].loggingUrls.map(this.getBaseUrl)))for(var c=0;c<G.length;c++)_.Rx(G[c])};
_.P.getBaseUrl=function(G){return G.baseUrl||""};
_.Nh.Object.defineProperties(Dv.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Yc("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
Dv.prototype.onCompanionClicked=Dv.prototype.onCompanionClicked;Dv.prototype.dataChanged=Dv.prototype.dataChanged;Dv.JSC$23545_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.mJ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Dv.prototype,"data",void 0);_.r([_.nH("#title"),_.h("design:type",HTMLElement)],Dv.prototype,"shopTitle",void 0);
_.r([_.uO("data.impressionEndpoints"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Dv.prototype,"dataChanged",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Dv.prototype,"interactionLoggingClientData",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Dv.prototype,"onCompanionClicked",null);
_.r([_.Jc({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Dv);
_.B(Dv,"ytd-shopping-companion-renderer",function(){if(wdJ!==void 0)return wdJ;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return wdJ=G},{mode:1});_.R1(_.W(function(G){var c=G.data;G=_.wZ({visibilityCallback:function(R){var Z,K=(Z=c().interaction)==null?void 0:Z.onFirstVisible;R&&K&&_.r0(K)},
showOption:_.j4});var I=_.xZ(function(){return c().interaction},W_R);
_.jE(function(){var R,Z;Z=(Z=_.Yc("yt.www.ads.eventcache.getLastCompanionData"))?(Z=Z())&&Z.onLayoutVisibleCallback:null;(R=Z)==null||R()},"ko");
return _.e("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Nx(function(R){_.gq(R.currentTarget,"yt-refit-popups-action")}),
el:_.YC(G,I),"aria-label":function(){var R,Z;return(R=c().interaction)==null?void 0:(Z=R.accessibility)==null?void 0:Z.label}},_.e("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.e(_.sN,{data:function(){return c().adImage}},{adImageViewModel:function(R){return _.e(_.Zc,{data:R.data,
targetHeight:80,customCommandResolver:W_R})}})),_.e("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.e("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.e(_.sN,{data:function(){return c().adBadge}},{adBadgeViewModel:function(R){return _.e(_.Xh,{data:R.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.e("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.e(_.sN,{data:function(){return c().menu}},{buttonViewModel:_.BR}))))},"lo"),"banner-image-layout-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;G=_.wZ({visibilityCallback:function(R){var Z,K=(Z=c().interaction)==null?void 0:Z.onFirstVisible;R&&K&&_.r0(K)},
showOption:_.j4});var I=_.xZ(function(){return c().interaction},ijR);
_.jE(function(){var R,Z;Z=(Z=_.Yc("yt.www.ads.eventcache.getLastCompanionData"))?(Z=Z())&&Z.onLayoutVisibleCallback:null;(R=Z)==null||R()},"mo");
return _.e("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.YC(G,I)},_.e("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.e(_.sN,{data:function(){return c().adImage}},{adImageViewModel:function(R){return _.e(_.Zc,{data:R.data,
targetHeight:80,customCommandResolver:ijR})}})),_.e("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.e("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.e(_.sN,{data:function(){return c().adAvatarLockup}},{adAvatarLockupViewModel:function(R){return _.e(m2N,{data:R.data,
customCommandResolver:ijR})}})),_.e(_.sN,{data:function(){return c().adButton}},{adButtonViewModel:function(R){return _.e(_.tp,{data:R.data,
customCommandResolver:ijR})}}),_.e("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.e(_.sN,{data:function(){return c().menu}},{buttonViewModel:_.BR}))))},"no"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.bl}});var FJT={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 G=_.J.apply(this,arguments)||this;G.updateCompanionDataJobId=0;G.contentVideoId=null;G.player=null;G.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return G};
_.u(oy,_.J);_.P=oy.prototype;_.P.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:FJT}}};
_.P.attached=function(){var G=this,c=_.ZA();c&&c.getPlayerPromise().then(function(I){G.getCachedDataAndListen(I)})};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.P.updateRendererStamper=function(){var G={};if(this.data)for(var c in FJT)if(this.data[c]){G[c]=this.data[c];break}if(this.oneofRenderer!=void 0||Object.keys(G).length)this.oneofRenderer=G};
_.P.getCachedDataAndListen=function(G){var c=this.retrieveCachedCompanionData();c&&Object.keys(c).length&&this.receiveCompanionData(c);this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=G};
_.P.retrieveCachedCompanionData=function(){return _.Rq.yt&&_.Rq.yt.www&&_.Rq.yt.www.ads&&_.Rq.yt.www.ads.eventcache&&_.Rq.yt.www.ads.eventcache.getLastCompanionData?_.Rq.yt.www.ads.eventcache.getLastCompanionData():null};
_.P.receiveCompanionData=function(G){G&&Object.keys(G).length?(this.contentVideoId=G.contentVideoId,this.setCompanionData(G)):this.setCompanionData(G)};
_.P.setCompanionData=function(G){this.cancelPendingCompanionAdJobs();if(G){this.updateCompanionDataJobId=0;for(var c in FJT)FJT.hasOwnProperty(c)&&(this.data[c]=void 0);G.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",G.shoppingCompanionCarouselRenderer):G.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",G.imageCompanionAdRenderer):G.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",G.actionCompanionAdRenderer),_.gq(this.hostElement,
"yt-hide-unlimited-offer-module"),_.gq(this.hostElement,"yt-hide-tvfilm-offer-module")):G.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",G.bannerImageLayoutViewModel):G.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",G.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.P.dataChanged=function(){var G=this,c=_.ZA();c?c.getPlayerPromise().then(function(I){G.contentVideoId&&I.getVideoUrl().includes("v="+G.contentVideoId)||(G.cancelPendingCompanionAdJobs(),G.updateRendererStamper())}):_.Ra(Error("jp"))};
_.P.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.dJ.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.P.handleCompanionAdClicked=function(G,c){this.player.onAdUxClicked(G,c);this.player.pauseVideo()};
oy.prototype.dataChanged=oy.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],oy.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],oy.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],oy.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oy.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],oy.prototype,"oneofRenderer",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oy.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],oy);
_.B(oy,"ytd-companion-slot-renderer",function(){if(lSz!==void 0)return lSz;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return lSz=G},{mode:_.Qc("kevlar_poly_si_batch_j067")?
1:2});var nDx;var UM=function(){return _.J.apply(this,arguments)||this};
_.u(UM,_.J);UM.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
UM.prototype.dataChanged=UM.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],UM.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],UM.prototype,"companionSlotData",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UM.prototype,"dataChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],UM);
_.B(UM,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(nDx!==void 0)return nDx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return nDx=G},{mode:1});var vDJ;var uA=function(){var G=_.J.apply(this,arguments)||this;G.skinnyMode=!1;G.COMPACT_EVENT_COUNT=4;G.onShelfToggleButtonTap=function(){G.logTap(G.data);G.showingMore=!G.showingMore};
G.onShelfToggleButtonFocus=function(){G.showingMore||(G.logTap(G.data),G.showingMore=!0,_.O$(G,function(){var c=G.COMPACT_EVENT_COUNT-1,I;(I=_.Q1(G.hostElement).querySelector("#event-"+c))==null||I.focus()}))};
return G};
_.u(uA,_.J);_.P=uA.prototype;_.P.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.P.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.P.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.lO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.lO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.lO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.lO(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.lO(this.infoTooltip,this.infoTooltip.hide))};
_.P.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.lO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.lO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.lO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.lO(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.lO(this.infoTooltip,this.infoTooltip.hide))};
_.P.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.P.onShowingMoreChanged=function(){var G;this.showingMoreChanged((G=this.showingMore)!=null?G:!1)};
_.P.showingMoreChanged=function(G){var c=this.get("data.events")||[];this.set("restEvents",c.slice(1,G?c.length:this.COMPACT_EVENT_COUNT).map(function(I){return I.ticketEventRenderer}));
c.slice(0,G?c.length:this.COMPACT_EVENT_COUNT).forEach(function(I){var R=_.k0();I=I.ticketEventRenderer.trackingParams;_.u6()&&R&&I&&(I=_.kC(I),R&&_.fC(R,I))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.P.computeAriaLabel=function(G){return G.subtitle1+", "+G.subtitle2};
_.P.logTap=function(G){_.u6()&&this.ytRendererBehavior.logExplicitClick(G)};
_.P.isKeyboardAction=function(G){return this.get("detail.x",G)===0&&this.get("detail.y",G)===0};
_.P.onFirstEventTap=function(G){G.target&&this.handleTap(G.target,this.firstEvent,this.isKeyboardAction(G))};
_.P.onTicketLinkTap=function(G){G.target&&this.handleTap(G.target,G.model.item,this.isKeyboardAction(G))};
_.P.handleTap=function(G,c,I){if(c.buttonCommand)if(c.hasMultipleOffers)Object.assign(_.D(c.buttonCommand,_.Ih),{properties:{source:I?"keyboard":"tap"}}),this.logTap(c),this.popupPositionTarget=G,_.cd(this.hostElement,[c.buttonCommand],this.hostElement);else{var R;if((R=_.D(c.buttonCommand,_.ID))==null?0:R.url)this.logTap(c),_.ZT(window,_.D(c.buttonCommand,_.ID).url)}};
uA.prototype.onShowingMoreChanged=uA.prototype.onShowingMoreChanged;uA.prototype.dataChanged=uA.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uA.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],uA.prototype,"firstEvent",void 0);_.r([_.E(),_.h("design:type",Object)],uA.prototype,"restEvents",void 0);_.r([_.E(),_.h("design:type",String)],uA.prototype,"imageUrl",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],uA.prototype,"showingMore",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],uA.prototype,"canShowMore",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],uA.prototype,"skinnyMode",void 0);_.r([_.E(),_.h("design:type",HTMLElement)],uA.prototype,"popupPositionTarget",void 0);_.r([_.nH("#banner-info-tooltip"),_.h("design:type",Object)],uA.prototype,"infoTooltip",void 0);
_.r([_.nH("#info-container"),_.h("design:type",HTMLElement)],uA.prototype,"infoContainer",void 0);_.r([_.nH("#shelf-toggler"),_.h("design:type",HTMLElement)],uA.prototype,"shelfToggleButton",void 0);_.r([_.nH("#separator"),_.h("design:type",HTMLDivElement)],uA.prototype,"separator",void 0);_.r([_.E(),_.h("design:type",String)],uA.prototype,"shelfTogglerLabelText",void 0);_.r([_.E(),_.h("design:type",String)],uA.prototype,"shelfTogglerIcon",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uA.prototype,"dataChanged",null);_.r([_.uO("showingMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uA.prototype,"onShowingMoreChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],uA);
_.B(uA,"ytd-ticket-shelf-renderer",function(){if(vDJ!==void 0)return vDJ;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return vDJ=G},{mode:1});var D2y;var oD6;var U2N=function(){return _.J.apply(this,arguments)||this};
_.u(U2N,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],U2N.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],U2N.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],U2N);
_.B(U2N,"ytd-comments-entry-point-message-renderer",function(){if(oD6!==void 0)return oD6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return oD6=G},{mode:1});var uLN;var bA=function(){return _.J.apply(this,arguments)||this};
_.u(bA,_.J);_.Nh.Object.defineProperties(bA.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.teaserAvatar)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bA.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],bA.prototype,"hasAvatar",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],bA);
_.B(bA,"ytd-comments-entry-point-teaser-renderer",function(){if(uLN!==void 0)return uLN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return uLN=G},{mode:1});var bCN;var ksN=function(){return _.J.apply(this,arguments)||this};
_.u(ksN,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ksN.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ksN.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],ksN);
_.B(ksN,"ytd-comments-simplebox-renderer",function(){if(bCN!==void 0)return bCN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return bCN=G},{mode:1});var k2=function(){var G=_.J.apply(this,arguments)||this;G.fullHeight=!_.v("comment_teaser_full_height_kill_switch")&&_.v("kevlar_watch_grid");return G};
_.u(k2,_.J);k2.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"}}}};
k2.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
k2.prototype.onTap=function(){var G=this.tapCommand;G&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(G))};
k2.prototype.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.Nh.Object.defineProperties(k2.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.onTap)return this.data.onTap;var c,I;if(((c=this.data)==null?0:c.teaserContent)||((I=this.data)==null?0:I.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
k2.prototype.onKeyUp=k2.prototype.onKeyUp;k2.prototype.onTap=k2.prototype.onTap;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],k2.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],k2.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],k2.prototype,"fullHeight",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],k2.prototype,"tapCommand",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],k2.prototype,"simpleboxPlaceholder",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],k2.prototype,"hasSimpleboxPlaceholder",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],k2.prototype,"simpleboxAvatar",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],k2.prototype,"teaserContent",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],k2.prototype,"hasTeaserContent",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],k2.prototype,"teaserAvatar",null);
_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],k2.prototype,"hasTeaserAvatar",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],k2.prototype,"messageText",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],k2.prototype,"contentRenderer",null);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],k2.prototype,"hasContents",null);
_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],k2.prototype,"hasContentRenderer",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k2.prototype,"onTap",null);_.r([_.qY("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[_.JE]),_.h("design:returntype")],k2.prototype,"onKeyUp",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],k2);
_.B(k2,"ytd-comments-entry-point-header-renderer",function(){if(D2y!==void 0)return D2y;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return D2y=G},{mode:1});var sPN;_.R1(_.ybK,"yt-animated-rolling-number",{props:{numberText:_.bl,numberValue:_.bl,heightPx:_.bl,fontSizeMultiplier:_.bl,shouldAnimate:_.bl,forceRollUp:_.bl}});var LJf=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),AHo={numberText:"",heightPx:2*LJf,shouldAnimate:!1},sM=function(){var G=_.J.apply(this,arguments)||this;G.usingAnimatedComponents=!0;G.wasDetailed=!1;G.JSC$23582_browserSupportsAnimation=_.v("web_supports_animations_api");G.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};G.detailed=!1;G.shouldAnimate=!1;G.viewCountProps=AHo;G.dateTextProps=
AHo;G.metadataBadgesInDescription=_.v("web_metadata_badges_in_description");return G};
_.u(sM,_.J);_.P=sM.prototype;_.P.attached=function(){var G=this;_.wH().resolve(_.dh).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(c){G.set("videoPrimaryInfoRenderer.subtitle",c)})};
_.P.detached=function(){_.wH().resolve(_.dh).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.P.resetAnimationState=function(){this.shouldAnimate=!1};
_.P.updateDynamicMetadata=function(){if(this.JSC$23582_browserSupportsAnimation){if(!this.detailed){var G,c,I,R;var Z=(G=this.videoPrimaryInfoRenderer)==null?void 0:(c=G.viewCount)==null?void 0:(I=c.videoViewCountRenderer)==null?void 0:(R=I.extraShortViewCount)==null?void 0:R.simpleText;var K,m,a,O;var N=(K=this.videoPrimaryInfoRenderer)==null?void 0:(m=K.viewCount)==null?void 0:(a=m.videoViewCountRenderer)==null?void 0:(O=a.shortViewCount)==null?void 0:O.simpleText}if(!N){var q,w,F,n;Z=(q=this.videoPrimaryInfoRenderer)==
null?void 0:(w=q.viewCount)==null?void 0:(F=w.videoViewCountRenderer)==null?void 0:(n=F.unlabeledViewCountValue)==null?void 0:n.simpleText;var U,k,p,M;N=(U=this.videoPrimaryInfoRenderer)==null?void 0:(k=U.viewCount)==null?void 0:(p=k.videoViewCountRenderer)==null?void 0:(M=p.viewCount)==null?void 0:M.simpleText}var z,t,x;G=Number((z=this.videoPrimaryInfoRenderer)==null?void 0:(t=z.viewCount)==null?void 0:(x=t.videoViewCountRenderer)==null?void 0:x.originalViewCount);var C,H;z=(C=this.videoPrimaryInfoRenderer)==
null?void 0:(H=C.relativeDateText)==null?void 0:H.simpleText;var g;C=!((g=this.videoPrimaryInfoRenderer)==null||!g.relativeDateText);if(Z&&N&&G&&(z||!C)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;g=N.split(new RegExp("("+Z+")"));Z=_.Cp(g[0]);var QO;N={numberText:(QO=g[1])!=null?QO:"",numberValue:G,heightPx:2*LJf,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var T8;QO=((T8=g[2])!=null?T8:"")+"  ";this.setViewCount(N,Z,_.Cp(QO));if(!this.detailed&&
C){Z=z.split(/(\d+)/);T8=_.Cp(Z[0]);var kp;QO={numberText:(kp=Z[1])!=null?kp:"",heightPx:2*LJf,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var FB;kp=((FB=Z[2])!=null?FB:"")+"  ";this.setDateText(QO,T8,_.Cp(kp))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.P.setViewCount=function(G,c,I){_.HY(c)!==_.HY(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=c);this.viewCountProps.numberText!==(G==null?void 0:G.numberText)&&(this.viewCountProps=G||AHo);_.HY(I)!==_.HY(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=I)};
_.P.setDateText=function(G,c,I){_.HY(c)!==_.HY(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=c);this.dateTextProps.numberText!==(G==null?void 0:G.numberText)&&(this.dateTextProps=G||AHo);_.HY(I)!==_.HY(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=I)};
_.P.onYtUpdateViewershipAction=function(G){this.videoPrimaryInfoRenderer&&(_.D(G,caG).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.D(G,caG).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.D(G,caG).viewCount)))};
_.P.onYtUpdateDateTextAction=function(G){if(this.videoPrimaryInfoRenderer){G=_.D(G,_.Yfz).dateText;this.shouldAnimate=!0;var c;((c=this.videoPrimaryInfoRenderer)==null?0:c.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",G):this.set("videoPrimaryInfoRenderer.dateText",G)}};
_.Nh.Object.defineProperties(sM.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return xtf(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.HY(xtf(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.HY(this.viewCountPreNumberText),this.viewCountProps.numberText,_.HY(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.HY(this.dateTextPreNumberText),this.dateTextProps.numberText,_.HY(this.dateTextPostNumberText)].join("")}}});
sM.prototype.updateDynamicMetadata=sM.prototype.updateDynamicMetadata;sM.prototype.resetAnimationState=sM.prototype.resetAnimationState;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],sM.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sM.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],sM.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sM.prototype,"videoPrimaryInfoRenderer",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sM.prototype,"detailed",void 0);_.r([_.E(),_.h("design:type",Object)],sM.prototype,"shouldAnimate",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sM.prototype,"viewCountPreNumberText",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sM.prototype,"viewCountProps",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sM.prototype,"viewCountPostNumberText",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sM.prototype,"dateTextPreNumberText",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sM.prototype,"dateTextProps",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sM.prototype,"dateTextPostNumberText",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sM.prototype,"metadataBadgesInDescription",void 0);_.r([_.A("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.h("design:type",Object),_.h("design:paramtypes",[])],sM.prototype,"infoText",null);
_.r([_.A("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.h("design:type",String),_.h("design:paramtypes",[])],sM.prototype,"descriptionInfoTooltipText",null);_.r([_.A("detailed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],sM.prototype,"showDescriptionInfoTooltip",null);
_.r([_.A("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.h("design:type",String),_.h("design:paramtypes",[])],sM.prototype,"animatedViewCountAccessibilityLabel",null);_.r([_.A("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.h("design:type",String),_.h("design:paramtypes",[])],sM.prototype,"animatedDateTextAccessibilityLabel",null);
_.r([_.wD("videoPrimaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sM.prototype,"resetAnimationState",null);_.r([_.wD("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sM.prototype,"updateDynamicMetadata",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-watch-info-text"})],sM);
_.B(sM,"ytd-watch-info-text",function(){if(sPN!==void 0)return sPN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return sPN=G},{mode:1});var $2z;var SC_="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var pdT=_.W(function(G){var c=G.data;var I=G.setTapCommand;_.xs(function(){var R=_.WI(c().onTap);I(R)},"CLm0Xe");
return _.e("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.e(_.sN,{data:function(){return c().avatar}},{avatarViewModel:_.qF}),_.e("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.e("span",null,function(){return c().simpleboxText})))},"po");var MWT=_.W(function(G){return _.e("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.e(_.l,{cond:function(){return _.D(G.data().avatar,_.B8)},
then:function(c){return _.e(_.qF,{data:c,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.e("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.e(_.ul,{text:function(){return G.data().teaserText}})))},"qo");var VW5=_.W(function(G){var c=G.data;var I=G.setTapCommand;_.xs(function(){var R=_.WI(c().onTap);I(R)},"qxjCCd");
return _.e("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.e(_.sN,{data:function(){return c().teasers}},{commentsEntryPointTeaserViewModel:MWT}))},"so");var zwf=_.W(function(G){var c=G.data;var I=G.setTapCommand;_.xs(function(){var R=_.WI(c().onTap);I(R)},"CRZByf");
return _.e("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.e(_.ul,{text:function(){return c().messageText}}))},"uo");var EDx=_.W(function(G){var c=G.data;var I=G.setTapCommand;var R=G.isDisabled;_.xs(function(){var Z=(R==null?0:R())?void 0:_.WI(c().onTap);I(Z)},"GZxRqd");
return _.e("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.e(_.F6,{icon:function(){return c().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.e(_.l,{cond:function(){return c().image},
then:function(Z){return _.e(_.yc,{data:Z,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.e(_.ul,{text:function(){return c().text},
className:function(){return c().image||c().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.e(_.sN,{data:function(){return c().button}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:R==null?void 0:R()}}})}}))},"wo");var JHS=_.W(function(G){var c=G.data;var I=G.itemIndex;var R=G.selectedIndex;var Z=G.indexUpdatedCallback;var K=G.observer;G=G.title;var m=_.mX("yt-carousel-item-view-model",function(w){K&&K().observe(w)}),a=function(w){I()===R()&&Z(w)},O=_.o1(qoN),N=_.o1(_.aBg),q=function(){var w,F,n,U,k;
return((w=c())==null?void 0:w.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!O()||((F=c())==null?void 0:F.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((n=N())==null?void 0:n.includes("PAposts_by_host"))||((U=c())==null?void 0:U.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((k=N())==null?void 0:k.includes("PAyouchat"))};
return _.e("yt-carousel-item-view-model",{el:m,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":G},_.e(_.sN,{data:function(){var w,F;return(F=(w=_.D(c().carouselItem,u46))==null?void 0:w.textCarousel)!=null?F:c().carouselItem}},{textCarouselItemViewModel:function(w){return _.e(EDx,{data:w.data,
setTapCommand:a,isDisabled:q})},
commentTeaserCarouselItemViewModel:function(w){return _.e(VW5,{data:w.data,setTapCommand:a})},
commentInputBoxCarouselItemViewModel:function(w){return _.e(pdT,{data:w.data,setTapCommand:a})},
commentsEntryPointMessageViewModel:function(w){return _.e(zwf,{data:w.data,setTapCommand:a})}}))},"xo");var WJo=_.W(function(G){var c=G.numDots;var I=G.activeIndex;return _.e("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.e(_.fh,{each:function(){return Array.from({length:c()})},
keyBy:"INDEX"},function(R,Z){return _.e("div",{class:function(){var K={};return _.VK("ytCarouselDotsShapeDot",(K.ytCarouselDotsShapeDotActive=Z===I(),K))}})}))},"yo");var iCS=_.W(function(G){var c=G.data;var I=G.handleCarouselNavigation;var R=G.numItems;var Z=G.selectedIndex;var K=function(){return{disabled:Z()===0}},m=function(){return{disabled:Z()===R()-1}};
return _.e("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.e("div",null,_.e("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return c().title}),_.e(_.l,{cond:function(){return c().subtitle},
then:function(a){return _.e("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return c().subtitleAccessibilityText}},a)}})),_.e(_.l,{cond:function(){return R()>1},
then:function(){return _.e("div",{class:"ytCarouselTitleViewModelNavigation"},_.e(WJo,{numDots:R,activeIndex:Z}),_.e(_.l,{cond:function(){return c().previousButton},
then:function(a){return _.e(_.sN,{data:a},{buttonViewModel:function(O){return _.e(_.BR,{data:O.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(-1)},
buttonOverrides:K})}})}}),_.e(_.l,{cond:function(){return c().nextButton},
then:function(a){return _.e(_.sN,{data:a},{buttonViewModel:function(O){return _.e(_.BR,{data:O.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(1)},
buttonOverrides:m})}})}}))}}))},"zo");_.R1(_.W(function(G){var c=G.data;var I,R=_.mX("yt-video-metadata-carousel-view-model"),Z=_.mX("div",function(C){var H=function(){var g=C.offsetWidth*k(),QO=24*(k()-1);F(g+QO)};
H();window.ResizeObserver&&(I=new ResizeObserver(H),I.observe(C))}),K=_.H1("HTML_DIR")==="rtl",m=!1,a=0,O=0;
G=_.Q(_.ks(0,void 0,"M49TDf"));var N=G.next().value,q=G.next().value;G=_.Q(_.ks(0,void 0,"zLIok"));var w=G.next().value,F=G.next().value;G=_.Q(_.ks(!1,void 0,"bhelhc"));var n=G.next().value,U=G.next().value,k=function(){var C,H,g;return(g=(C=c())==null?void 0:(H=C.carouselTitles)==null?void 0:H.length)!=null?g:0},p=function(){Z.value&&Z.value.scrollLeft!==a&&q((K?Z.value.scrollLeft<a:Z.value.scrollLeft>a)?Math.min(N()+1,k()-1):Math.max(N()-1,0))},M;
window.IntersectionObserver&&(M=new IntersectionObserver(function(C){C=_.Q(C);for(var H=C.next();!H.done;H=C.next())if(H.value.isIntersecting){if(m){m=!1;break}p()}else q(O)},{threshold:.2}));
_.xs(function(){if(Z.value){var C=(K?-1:1)*(w()/k()+12)*(n()&&M?O:N());typeof Z.value.scrollTo==="function"?Z.value.scrollTo({left:C,behavior:"smooth"}):Z.value.scrollLeft=C;a=C;O=n()&&M?O:N()}},"s9rbgc");
var z,t=function(C){z=C};
_.ty(function(){var C;(C=I)==null||C.disconnect();var H;(H=M)==null||H.disconnect()});
var x=function(C){C=N()+C;C>=0&&C<k()&&(m=!0,q(C))};
return _.e("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:R,"on:click":_.Nx(function(C){if(_.EN(_.zf(C),R.value,["BUTTON".toString()])||!z)return!1;_.wH().resolve(_.n4).resolveCommand(z,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Nx(function(){U(!0);return!1}),
"on:touchend":_.Nx(function(){M||p();U(!1);return!1}),
hidden:function(){var C,H;return!((C=c())==null?0:(H=C.carouselItems)==null?0:H.length)}},_.e("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.e(_.l,{cond:function(){return c().carouselTitles},
then:function(C){return _.e(_.sN,{data:function(){return C()[n()&&M?O:N()]}},{carouselTitleViewModel:function(H){return _.e(iCS,{data:H.data,
handleCarouselNavigation:x,numItems:k,selectedIndex:N})}})}})),_.e("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Z},_.e("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+w()+"px;"}},_.e(_.l,{cond:function(){return c().carouselItems},
then:function(C){return _.e(_.fh,{each:C},function(H,g){return _.e(_.sN,{data:function(){return H}},{carouselItemViewModel:function(QO){return _.e(JHS,{data:QO.data,
itemIndex:g,selectedIndex:N,indexUpdatedCallback:t,observer:M,title:function(){a:{var T8=g();var kp,FB=(kp=c())==null?void 0:kp.carouselTitles;if(FB&&(T8=FB[T8])){var oq;T8=(oq=_.D(T8,Ubo))==null?void 0:oq.title;break a}T8=void 0}return T8}})}})})}}))))},"Bo"),"yt-video-metadata-carousel-view-model",{props:{data:_.bl}});var fSJ=_.v("web_action_buttons_update_owner_width")?32:12,L_=function(){var G=_.J.apply(this,arguments)||this;G.isHovering=!1;G.enableColorSampling=_.v("web_delhi_colorful_sd");G.metadataBadgesInDescription=_.v("web_metadata_badges_in_description");G.descriptionCollapsed=!0;G.useFadedScrimDescription=_.v("kevlar_enable_faded_scrim_on_description");G.skinnyMode=!1;G.playlist=!1;G.isDark=document.documentElement.hasAttribute("dark");G.disableVideoOwnerOnTap=_.v("swatchie_video_owner_on_tap_ks");G.swatcherooDelayLoad=
_.v("swatcheroo_enable_ghost_cards");G.primaryMenuWidth=0;G.videoId="";G.titleHeadlineXs=_.v("web_watch_typography_title_headline_xs");G.titleHeadlineS=_.v("web_watch_typography_title_headline_s");G.titleHeadlineM=_.v("web_watch_typography_title_headline_m");G.titleHashtagBlackLinkified=_.v("web_title_hashtag_black_linkified");G.titleHashtagGreyLinkified=_.v("web_title_hashtag_grey_linkified");G.actionButtonsUpdateOwnerWidth=_.v("web_action_buttons_update_owner_width");G.shouldForceIconOnly=!1;G.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};G.isFullscreen=!1;G.isTheaterMode=!1;return G};
_.u(L_,_.J);_.P=L_.prototype;_.P.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.P.updateOwnerAndDescriptionPosition=function(){_.v("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.p3(this.bottomRowElement,this.ownerElement)):(_.p3(this.bottomRowElement,this.descriptionElement),_.p3(this.topRowElement,this.ownerElement)))};
_.P.titleOnTap=function(G){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Gf(_.CE(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||this.handleExpandDescriptionCommands()}};
_.P.videoOwnerOnTap=function(G){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Gf(_.CE(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.P.detached=function(){var G=this,c;return _.T(function(I){(c=G.resizeObserver)==null||c.disconnect();_.Vp(I)})};
_.P.maybeAttachResizeObserver=function(){var G=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.qx(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){G.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.P.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var G=this.hostElement.clientWidth,c=Math.max(this.largerItemWrap?400:350,G/2-fSJ);_.v("web_action_buttons_update_owner_width")&&(c=this.ownerElement.clientWidth+fSJ);this.actionsOnSeparateLine=this.primaryMenuWidth>G-c?!0:!1}};
_.P.stripAttributedDescription=function(G){return{content:G.content.replace(/[\r\n]{2,}/g,"\n")}};
_.P.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.v("web_modern_buttons"),forceIconButton:!_.v("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:_.v("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"}}}};
_.P.videoPrimaryInfoRendererChanged=function(){var G;if((G=this.videoPrimaryInfoRenderer)==null?0:G.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.P.videoSecondaryInfoRendererChanged=function(){var G,c;(G=this.descriptionInlineExpander)==null||(c=G.collapse)==null||c.call(G);this.descriptionExpandClientVe=_.qj(110509);this.descriptionCollapseClientVe=_.qj(110510);G=_.k0();c=_.u6();G&&c&&(_.v("combine_ve_grafts")?(_.CJ(_.DP(),this.descriptionExpandClientVe,c),_.CJ(_.DP(),this.descriptionCollapseClientVe,c)):_.i8(G,c,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.P.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.P.updateTopLevelIconsOnly=function(){var G=this;_.v("top_level_update_killswitch")||this.menu&&_.dJ.addLowPriorityJob(function(){G.menu.topLevelIconsOnly=G.skinnyMode},_.DH("swathceroo_delay_flexible_menu_update",100))};
_.P.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.v("web_action_buttons_minimize_subscribe")};
_.P.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.P.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.P.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.P.onYtTextInlineExpanderExpandedChanged=function(){if(!_.v("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var G,c;(c=(G=this.structuredDescriptionContentRendererElement).resize)==null||c.call(G)}};
_.P.onRenderStamperFinished=function(G){(G==null?void 0:G.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.P.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.P.onYtExpanderLessTapped=function(){var G,c=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showLessCommand;c&&this.ytComponentBehavior.resolveCommand(c)};
_.P.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.P.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.P.onDescriptionClick=function(G){if(!_.Gf(_.CE(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.v("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.P.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.P.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.P.logCollapseClick=function(){var G=_.k0();G&&this.descriptionCollapseClientVe&&_.jW(G,this.descriptionCollapseClientVe)};
_.P.logExpandClick=function(){var G=_.k0();G&&this.descriptionExpandClientVe&&_.jW(G,this.descriptionExpandClientVe)};
_.P.collapseDescription=function(){this.descriptionCollapsed=!0};
_.P.scrollToTopOfContainer=function(){_.ym(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.P.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.P.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.P.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.P.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var G,c;(c=(G=this.descriptionInlineExpander).resize)==null||c.call(G)}else _.Ck(new _.iW("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var I;(I=this.menu)==null||I.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.P.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var G,c,I,R,Z=_.v("web_action_buttons_update_owner_width")?(I=(G=_.Q1(this.menu).querySelector("#button-shape"))==null?void 0:G.clientWidth)!=null?I:0:(R=(c=_.Q1(this.menu).querySelector("#button"))==null?void 0:c.clientWidth)!=null?R:0,K,m;G=((m=(K=_.Q1(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:K.clientWidth)!=null?m:0)+8+Z;var a,O;Z=(O=(a=_.Q1(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:a.children.length)!=null?O:2;G<=8*Z||(this.primaryMenuWidth=G)}};
_.P.onYtUpdateTitleAction=function(G){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.D(G,GPf).title)};
_.P.onYtUpdateDescriptionAction=function(G){if(G=_.D(G,_.HIA)){var c,I=!((c=this.videoSecondaryInfoRenderer)==null||!c.attributedDescription);G.isEmpty||!G.description&&!G.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):G.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",G.attributedDescription):G.description&&(I?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Vc(G.description)):this.set("videoSecondaryInfoRenderer.description",G.description))}};
_.P.onYtDarkModeToggledAction=function(G){this.isDark=G};
_.P.registerPanel=function(){if(!_.v("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var G=_.v("web_watch_imax_theater_mode")&&this.isTheaterMode;G=_.v("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G;var c=_.wH().resolve(_.Tl);c&&!G&&c.registerPanel("engagement-panel-structured-description",this)}};
_.P.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.P.parseColorSamplingData=function(){var G;if(_.v("web_delhi_colorful_sd")&&((G=this.structuredDescriptionContentRenderer)==null?0:G.items)&&(G=this.structuredDescriptionContentRenderer.items.find(function(Z){return!!_.D(Z,Md)}))){var c,I;
this.hoverColor={lightTheme:(c=_.D(G,Md))==null?void 0:c.lightThemeColorPalette,darkTheme:(I=_.D(G,Md))==null?void 0:I.darkThemeColorPalette};var R;this.hoverText=(R=_.D(G,Md))==null?void 0:R.colorSampledDescriptionBodyText}};
_.P.updateHoverColor=function(){if(_.v("web_delhi_colorful_sd")){var G=this.hoverColor,c={},I;G=(I=this.isDark?G==null?void 0:G.darkTheme:G==null?void 0:G.lightTheme)!=null?I:{};I=_.Q(SC_);for(var R=I.next();!R.done;R=I.next()){R=R.value;var Z=G[R];c["--yt-saturated-"+_.Qm(R)]=Z?_.pE(Z):"initial"}_.eD(this.hostElement,c)}};
_.P.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.P.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.P.showPanel=function(G){this.expandDescription();var c=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;c.resize();var I,R=G==null?void 0:(I=G.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;R?_.dJ.addJob(function(){c==null||c.scrollToSection(R)},8):this.scrollToTopOfContainer()};
_.P.isVisible=function(){return!this.descriptionCollapsed};
_.P.getReloadContinuation=function(){};
_.P.hidePanel=function(){};
_.P.updatePanel=function(){};
_.Nh.Object.defineProperties(L_.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var G;return _.v("web_delhi_colorful_sd")&&(G=this.structuredDescriptionContentRenderer)!=null&&G.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(c){return!_.D(c,Md)&&!_.D(c,ZYR)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.structuredDescriptionContentRendererComputed)!=null&&G.items){var c;G=_.Q((c=this.structuredDescriptionContentRendererComputed)==null?void 0:c.items);for(c=G.next();!c.done;c=G.next())if(c=_.D(c.value,_.rh9))return c}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoPrimaryInfoRenderer)==null?0:G.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!!((G=this.videoSecondaryInfoRenderer)==null?0:(c=G.owner)==null?0:(I=c.videoOwnerRenderer)==null?0:I.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var G,c;if((G=this.videoSecondaryInfoRenderer)==null?0:(c=G.attributedDescription)==null?0:c.content){var I,R;return(R=this.stripAttributedDescription((I=this.videoSecondaryInfoRenderer)==null?void 0:I.attributedDescription))!=null?R:{runs:[]}}}if(_.v("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Z,K,m,a;return(a=(m=(Z=this.videoSecondaryInfoRenderer)==
null?void 0:Z.description)!=null?m:(K=this.videoSecondaryInfoRenderer)==null?void 0:K.attributedDescription)!=null?a:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.headerRuns)!=null?c:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.commentsEntryPointHeaderRenderer)==null||!G.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoMetadataCarousel)==null||!G.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.DH("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var G,c,I=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(c=G.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0&&!(I.rows.length<=I.collapsedItemCount))return I.rows=I.rows.slice(I.collapsedItemCount),I.collapsedItemCount=0,I}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var G,c,I=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(c=G.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0)return I.rows=I.rows.slice(0,I.collapsedItemCount),I.collapsedItemCount=I.rows.length,I}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var G,c;return!!((G=this.structuredDescriptionContentRendererComputed)==null?0:(c=G.items)==null?0:c.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var G;return(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.videoSecondaryInfoRenderer)==null?0:(c=G.owner)==null?0:(I=c.videoOwnerRenderer)==null?0:I.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R;return!!((G=this.videoPrimaryInfoRenderer)==null?0:(c=G.videoActions)==null?0:(I=c.menuRenderer)==null?0:(R=I.flexibleItems)==null?0:R.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Cd(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Cd(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var G=this;if(_.v("web_title_hashtag_grey_delinkified")){var c,I=_.rx.unsafeClone((c=this.videoPrimaryInfoRenderer)==null?void 0:c.title);(c=I==null?void 0:I.runs)&&c.forEach(function(R){if(R==null?0:R.navigationEndpoint)R.textColor=4284506208,G.isDark&&(R.textColor=4289374890)});
return I}return(I=this.videoPrimaryInfoRenderer)==null?void 0:I.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.v("web_title_hashtag_black_delinkified")||_.v("web_title_hashtag_grey_delinkified")}}});
L_.prototype.updateHoverColor=L_.prototype.updateHoverColor;L_.prototype.parseColorSamplingData=L_.prototype.parseColorSamplingData;L_.prototype.resetDescriptionState=L_.prototype.resetDescriptionState;L_.prototype.registerPanel=L_.prototype.registerPanel;L_.prototype.onYtExpanderLessTapped=L_.prototype.onYtExpanderLessTapped;L_.prototype.onYtExpanderMoreTapped=L_.prototype.onYtExpanderMoreTapped;L_.prototype.onRenderStamperFinished=L_.prototype.onRenderStamperFinished;
L_.prototype.onYtTextInlineExpanderExpandedChanged=L_.prototype.onYtTextInlineExpanderExpandedChanged;L_.prototype.onYtTextInlineExpanderCollapseClicked=L_.prototype.onYtTextInlineExpanderCollapseClicked;L_.prototype.onYtTextInlineExpanderExpandClicked=L_.prototype.onYtTextInlineExpanderExpandClicked;L_.prototype.moveActionsElement=L_.prototype.moveActionsElement;L_.prototype.updateShouldForceIconOnly=L_.prototype.updateShouldForceIconOnly;L_.prototype.updateTopLevelIconsOnly=L_.prototype.updateTopLevelIconsOnly;
L_.prototype.structuredDescriptionContentRendererChanged=L_.prototype.structuredDescriptionContentRendererChanged;L_.prototype.videoSecondaryInfoRendererChanged=L_.prototype.videoSecondaryInfoRendererChanged;L_.prototype.videoPrimaryInfoRendererChanged=L_.prototype.videoPrimaryInfoRendererChanged;L_.prototype.maybeUpdateActionsOnSeparateLine=L_.prototype.maybeUpdateActionsOnSeparateLine;L_.prototype.updateOwnerAndDescriptionPosition=L_.prototype.updateOwnerAndDescriptionPosition;
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],L_.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],L_.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],L_.prototype,"ytdReduxBehavior",void 0);_.r([_.nH("#above-the-fold"),_.h("design:type",HTMLElement)],L_.prototype,"aboveTheFoldContainer",void 0);_.r([_.nH("#menu ytd-menu-renderer"),_.h("design:type",Object)],L_.prototype,"menu",void 0);_.r([_.nH("#description-inline-expander"),_.h("design:type",Object)],L_.prototype,"descriptionInlineExpander",void 0);
_.r([_.nH("#faded-structured-description"),_.h("design:type",Object)],L_.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.r([_.nH("#structured-description"),_.h("design:type",Object)],L_.prototype,"structuredDescriptionContentRendererElement",void 0);_.r([_.nH("#title"),_.h("design:type",HTMLElement)],L_.prototype,"titleElement",void 0);_.r([_.nH("#description"),_.h("design:type",HTMLElement)],L_.prototype,"descriptionElement",void 0);
_.r([_.nH("#description-interaction"),_.h("design:type",Object)],L_.prototype,"descriptionInteraction",void 0);_.r([_.nH("#owner"),_.h("design:type",HTMLElement)],L_.prototype,"ownerElement",void 0);_.r([_.nH("#top-row"),_.h("design:type",HTMLElement)],L_.prototype,"topRowElement",void 0);_.r([_.nH("#bottom-row"),_.h("design:type",HTMLElement)],L_.prototype,"bottomRowElement",void 0);_.r([_.nH("#actions"),_.h("design:type",HTMLElement)],L_.prototype,"actionsElement",void 0);
_.r([_.nH("#bottom-actions"),_.h("design:type",HTMLElement)],L_.prototype,"bottomActionsElement",void 0);_.r([_.nH("#ytd-watch-info-text"),_.h("design:type",Object)],L_.prototype,"watchInfoTextElement",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"videoPrimaryInfoRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"videoSecondaryInfoRenderer",void 0);
_.r([_.E(),_.h("design:type",Object)],L_.prototype,"commentsEntryPointHeaderRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"videoMetadataCarousel",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"structuredDescriptionContentRenderer",void 0);_.r([_.A("structuredDescriptionContentRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"structuredDescriptionContentRendererComputed",null);
_.r([_.E(),_.h("design:type",Object)],L_.prototype,"videoSummary",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"merchShelf",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"infoPanelBelowMetadata",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"hoverColor",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"hoverText",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"isHovering",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"enableColorSampling",void 0);_.r([_.A("structuredDescriptionContentRendererComputed"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"productShelf",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"metadataBadgesInDescription",void 0);_.r([_.A("videoPrimaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"shouldHideBadges",null);
_.r([_.A("productShelf","descriptionCollapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L_.prototype,"shouldShowProductShelf",null);_.r([_.E(),_.h("design:type",Boolean)],L_.prototype,"isWatchFlexy",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"descriptionCollapsed",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],L_.prototype,"useFadedScrimDescription",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"skinnyMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("videoSecondaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"largerItemWrap",null);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"playlist",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"clarifyBox",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"playerAds",void 0);
_.r([_.E(),_.h("design:type",Boolean)],L_.prototype,"isDark",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],L_.prototype,"actionsOnSeparateLine",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"disableVideoOwnerOnTap",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"swatcherooDelayLoad",void 0);_.r([_.E(),_.h("design:type",Boolean)],L_.prototype,"suppressTopLevelMetadataRows",void 0);
_.r([_.E(),_.h("design:type",Object)],L_.prototype,"primaryMenuWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"videoId",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"titleHeadlineXs",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"titleHeadlineS",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"titleHeadlineM",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"titleHashtagBlackLinkified",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"titleHashtagGreyLinkified",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.r([_.E(),_.h("design:type",Object)],L_.prototype,"shouldForceIconOnly",void 0);
_.r([_.uO("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"updateOwnerAndDescriptionPosition",null);_.r([_.uO("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.r([_.A("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"descriptionText",null);_.r([_.A("videoSecondaryInfoRenderer.headerRuns"),_.h("design:type",Array),_.h("design:paramtypes",[])],L_.prototype,"headerRuns",null);
_.r([_.E({value:!1}),_.A("commentsEntryPointHeaderRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"hasTeaser",null);_.r([_.E({value:!1,reflectToAttribute:!0}),_.A("videoMetadataCarousel"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"hasTeaserCarousel",null);_.r([_.E({value:3}),_.A("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"descriptionMaxLines",null);
_.r([_.A("videoSecondaryInfoRenderer.metadataRowContainer"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"collapsibleMetadataRows",null);_.r([_.A("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"alwaysVisibleMetadataRows",null);
_.r([_.A("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L_.prototype,"hasInlineStructuredDescription",null);_.r([_.A("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L_.prototype,"showInlineStructuredDescription",null);
_.r([_.A("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"descriptionExpandCommand",null);_.r([_.A("videoSecondaryInfoRenderer.owner"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"videoOwnerCommand",null);_.r([_.E({reflectToAttribute:!0}),_.A("videoPrimaryInfoRenderer.videoActions"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L_.prototype,"flexMenuEnabled",null);
_.r([_.E({selector:_.E3,reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"isFullscreen",void 0);_.r([_.E({selector:_.z9,reflectToAttribute:!0}),_.h("design:type",Object)],L_.prototype,"isTheaterMode",void 0);_.r([_.A("descriptionText","useFadedScrimDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L_.prototype,"showAttributedStringDescription",null);
_.r([_.A("descriptionText","useFadedScrimDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L_.prototype,"showFormattedStringDescription",null);_.r([_.A("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L_.prototype,"showFadedStructuredDescription",null);
_.r([_.uO("videoPrimaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"videoPrimaryInfoRendererChanged",null);_.r([_.A("videoPrimaryInfoRenderer.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"videoTitle",null);_.r([_.A("videoPrimaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],L_.prototype,"noEndpoints",null);
_.r([_.uO("videoSecondaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"videoSecondaryInfoRendererChanged",null);_.r([_.wD("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"structuredDescriptionContentRendererChanged",null);
_.r([_.wD("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"updateTopLevelIconsOnly",null);_.r([_.wD("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"updateShouldForceIconOnly",null);_.r([_.wD("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"moveActionsElement",null);
_.r([_.qY("yt-text-inline-expander-expand-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"onYtTextInlineExpanderExpandClicked",null);_.r([_.qY("yt-text-inline-expander-collapse-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.r([_.qY("yt-text-inline-expander-expanded-changed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],L_.prototype,"onRenderStamperFinished",null);
_.r([_.qY("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"onYtExpanderMoreTapped",null);_.r([_.qY("yt-expander-less-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"onYtExpanderLessTapped",null);
_.r([_.wD("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"registerPanel",null);_.r([_.wD("videoSecondaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"resetDescriptionState",null);
_.r([_.wD("structuredDescriptionContentRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"parseColorSamplingData",null);_.r([_.wD("hoverColor","isDark"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L_.prototype,"updateHoverColor",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-watch-metadata"})],L_);
_.B(L_,"ytd-watch-metadata",function(){if($2z!==void 0)return $2z;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return $2z=G},{mode:2});_.C86=function(G){_.JK.call(this);this.JSC$23607_watchApi=G;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;BUS(this);rHz(this);jPR(this);x2T(this);tWT(this);hwT(this);d2x(this)};
_.u(_.C86,_.JK);var jPR=function(G){var c=function(){_.v("kevlar_is_pupi_enabled")||AC(G)};
G.JSC$23607_watchApi.getRoot().addEventListener("yt-player-updated",c);G.addOnDisposeCallback(function(){G.JSC$23607_watchApi.getRoot().removeEventListener("yt-player-updated",c)})},tWT=function(G){if(_.v("kevlar_endscreen_auto_theater_mode")){var c=G.JSC$23607_watchApi.subscribeToActiveChanged(function(){HCN(G)},!1);
G.addOnDisposeCallback(c)}},BUS=function(G){var c,I,R,Z,K;
_.T(function(m){if(m.nextAddress==1)return m.yield(G.JSC$23607_watchApi.playerApi,2);c=m.yieldResult;I=function(a){a=!!a;XdN(G)&&(a=a?2:1,_.Jt.getInstance().setState(a,!0,!1))};
R=function(a){a&&_.lwy(_.y4().getState())&&(_.ym(G.JSC$23607_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),G.temporaryTheaterMode=!0)};
Z=function(a){_.v("kevlar_player_update_autonav_on_new_data")&&a.type==="newdata"&&(_.v("kevlar_is_pupi_enabled")||AC(G))};
K=function(a){G.onPlayerStateChange(a)};
_.v("kevlar_endscreen_auto_theater_mode")&&c.addEventListener("onAutonavCancelled",R);c.addEventListener("onAutonavChangeRequest",I);c.addEventListener("onVideoDataChange",Z);c.addEventListener("onStateChange",K);G.addOnDisposeCallback(function(){c.removeEventListener("onAutonavChangeRequest",I);c.removeEventListener("onVideoDataChange",Z);c.removeEventListener("onStateChange",K);_.v("kevlar_endscreen_auto_theater_mode")&&c.removeEventListener("onAutonavCancelled",R)});
_.Vp(m)})},rHz=function(G){G.JSC$23607_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){G.autonavCancelledBySignal=!0;
_.v("kevlar_is_pupi_enabled")||AC(G)});
G.JSC$23607_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(c,I,R){I&&AC(G,R)});
G.JSC$23607_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){XdN(G)&&_.Jt.getInstance().setState(2,!0,!0)});
G.JSC$23607_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){XdN(G)&&_.Jt.getInstance().setState(1,!0,!0)});
G.addOnDisposeCallback(function(){G.JSC$23607_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");G.JSC$23607_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");G.JSC$23607_watchApi.unregisterActionHandler("yt-enable-autoplay-command");G.JSC$23607_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},x2T=function(G){var c=G.JSC$23607_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){d2x(G)}),I=G.JSC$23607_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){hwT(G)});
G.addOnDisposeCallback(function(){G.JSC$23607_watchApi.unsubscribeByKey(c);G.JSC$23607_watchApi.unsubscribeByKey(I)})},d2x=function(G){G.autonavCancelledBySignal=!1;
_.v("kevlar_is_pupi_enabled")||AC(G)},hwT=function(G){var c=G.JSC$23607_watchApi.getWatchNextResponse(),I,R;
var Z=(c=(R=_.D(c==null?void 0:(Z=c.playerOverlays)==null?void 0:(I=Z.playerOverlayRenderer)==null?void 0:I.autonavToggle,_.YX9))==null?void 0:R.enabled)?2:1;_.v("kevlar_is_pupi_enabled")?_.Jt.getInstance().setState(Z,!1,!1):AC(G);_.v("web_persist_server_autonav_state_on_client")&&typeof c==="boolean"&&_.vOp(Z===2)},XdN=function(G){if(G.autonavCancelledBySignal)return!1;
var c,I,R,Z;return!!((c=G.JSC$23607_watchApi.getWatchNextResponse())==null?0:(I=c.contents)==null?0:(R=I.twoColumnWatchNextResults)==null?0:(Z=R.autoplay)==null?0:Z.autoplay)};
_.C86.prototype.onPlayerStateChange=function(G){if(G===0){G=!_.Jt.getInstance().isAutoplaySetExplicitly();var c=this.JSC$23607_watchApi.getWatchNextResponse(),I,R,Z,K;c=_.D(c==null?void 0:(I=c.contents)==null?void 0:(R=I.twoColumnWatchNextResults)==null?void 0:(Z=R.autoplay)==null?void 0:(K=Z.autoplay)==null?void 0:K.autoplayExplicitChoiceDialogRenderer,_.n4N);XdN(this)&&G&&c&&_.NC.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:c},popupType:"DIALOG"}})}else HCN(this)};
var HCN=function(G){G.temporaryTheaterMode&&(G.temporaryTheaterMode=!1,_.ym(G.JSC$23607_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},AC=function(G,c){c=c===void 0?!1:c;
var I;_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23607_watchApi.playerApi,2);I=R.yieldResult;XdN(G)?I.setAutonavState(_.Jt.getInstance().getState(),c):I.setAutonavState(1,c);_.Vp(R)})};var yHS={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.YCT=function(G){_.JK.call(this);var c=this;this.JSC$23612_watchApi=G;var I=this.JSC$23612_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){gD5(c)});
this.addOnDisposeCallback(function(){c.JSC$23612_watchApi.unsubscribeByKey(I)});
gD5(this)};
_.u(_.YCT,_.JK);var gD5=function(G){var c=G.JSC$23612_watchApi.getPlayerResponse(),I=G.JSC$23612_watchApi.getWatchNextResponse();if(!_.xAU(c==null?void 0:c.playabilityStatus,I==null?void 0:I.playerOverlays)){var R;var Z=c==null?void 0:(R=c.playabilityStatus)==null?void 0:R.errorScreen}G.JSC$23612_watchApi.provideRenderingData("ERROR_SCREEN",Z)};var Gv_=_.W(function(G){return _.e("yt-player-grid-renderer",{class:_.O3("ytPlayerGridRendererHost",G.className)},_.e(_.sN,{data:G.data},{lockupViewModel:function(c){return _.e(_.Yy,{data:c.data,useOverlayStyling:!0})}}))},"Co");var cXR=_.W(function(G){var c=G.data;G=_.v("web_watch_video_details_hide_subtitle");var I=_.v("web_watch_video_details_single_line_title"),R=_.Nx(function(){var a=c().onTap;a&&_.wH().resolve(_.n4).resolveCommand(a)}),Z={},K={},m={};
return _.e("yt-player-overlay-video-details-renderer",{class:_.O3("ytPlayerOverlayVideoDetailsRendererHost",(Z.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.v("web_watch_video_details_transparent_background"),Z)),"on:click":R,role:"button"},_.e("h2",{class:_.O3("ytPlayerOverlayVideoDetailsRendererTitle",(K.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return I},K))},_.e(_.ul,{text:function(){return c().title}})),_.e("div",{class:_.O3("ytPlayerOverlayVideoDetailsRendererSubtitle",
(m.ytPlayerOverlayVideoDetailsRendererHideSubtitle=G,m))},_.e(_.ul,{text:function(){return c().subtitle}})))},"Do");var $2={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},IYz=_.W(function(G){var c=G.data;var I=_.o1(_.E3),R=_.v("web_watch_action_bar_resize_buttons"),Z=_.v("web_watch_video_action_dsdvb"),K=_.v("delhi_modern_web_player_icons")&&!_.v("enable_web_delhi_icons");G=_.v("delhi_modern_web_player_disable_frosted_glass");var m=_.v("delhi_modern_web_player_compact_video_actions_controls"),
a=_.v("web_player_quick_action_buttons_icon_only"),O=function(){var q=R&&!I(),w={};m?w.size="S":q&&(w.size="M");a&&(w.iconPosition="icon-only");if(Object.keys(w).length!==0)return w},N={};
return _.e("yt-player-quick-action-buttons",{class:_.O3("ytPlayerQuickActionButtonsHost",(N.ytPlayerQuickActionButtonsHostCompactControls=function(){return!I()||m},N.ytPlayerQuickActionButtonsHostDisableBackdropFilter=G,N))},_.e(_.fh,{each:function(){var q=c();
if(K){q=JSON.parse(JSON.stringify(q));for(var w=_.Q(q),F=w.next();!F.done;F=w.next()){var n=F.value,U=void 0;F=_.D((U=_.D(n,_.hA))==null?void 0:U.toggleButtonViewModel,_.kh);var k=void 0;U=_.D((k=_.D(n,_.dG))==null?void 0:k.toggleButtonViewModel,_.kh);k=_.D(n,_.uv);n=_.D(n,_.kh);if(F)U=_.D(F.defaultButtonViewModel,_.uv),F=_.D(F.toggledButtonViewModel,_.uv),U&&U.iconName&&(U.iconName=$2[U.iconName]),F&&F.iconName&&(F.iconName=$2[F.iconName]);else if(U)F=_.D(U.defaultButtonViewModel,_.uv),U=_.D(U.toggledButtonViewModel,
_.uv),F&&F.iconName&&(F.iconName=$2[F.iconName]),U&&U.iconName&&(U.iconName=$2[U.iconName]);else if(k)k.iconName&&(k.iconName=$2[k.iconName]);else if(n){F=_.D(n.defaultButtonViewModel,_.uv);U=_.D(n.toggledButtonViewModel,_.uv);n=void 0;if((n=F)==null?0:n.iconName)F.iconName=$2[F.iconName];F=void 0;if((F=U)==null?0:F.iconName)U.iconName=$2[U.iconName]}}}Z&&(q=tvz(q));return q}},function(q){return _.e(_.sN,{data:function(){return q}},{buttonViewModel:function(w){return _.e(_.BR,{data:w.data,
buttonOverrides:O})},
likeButtonViewModel:function(w){return _.e(_.v$,{data:w.data,buttonShapeOverrideables:O})},
dislikeButtonViewModel:function(w){return _.e(_.ni,{data:w.data,buttonShapeOverrideables:O})},
toggleButtonViewModel:function(w){return _.e(_.m8,{data:w.data,buttonShapeOverrides:O})}})}))},"Eo");_.ZpG=function(G){_.JK.call(this);var c=this;this.JSC$23618_watchApi=G;G=_.Q(_.ks({},void 0,"OB6c5e"));this.quickActionsViewModel=G.next().value;this.setQuickActionsViewModel=G.next().value;G=_.Q(_.ks({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=G.next().value;this.setPlayerOverlayVideoDetailsRenderer=G.next().value;G=_.Q(_.ks([],void 0,"A7tRk"));this.lockupViewModels=G.next().value;this.setLockupViewModels=G.next().value;var I=this.JSC$23618_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){RRS(c)});
this.addOnDisposeCallback(function(){c.JSC$23618_watchApi.unsubscribeByKey(I)});
RRS(this)};
_.u(_.ZpG,_.JK);
var RRS=function(G){var c,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M;_.T(function(z){if(z.nextAddress==1)return z.yield(G.JSC$23618_watchApi.playerApi,2);c=z.yieldResult;I=G.JSC$23618_watchApi.getWatchNextResponse();K=(R=I)==null?void 0:(Z=R.playerOverlays)==null?void 0:Z.playerOverlayRenderer;a=_.D((m=K)==null?void 0:m.fullscreenQuickActionsBar,_.Yre);(N=(O=G).setQuickActionsViewModel)==null||N.call(O,a||{});a&&Kx_(G,c);F=(q=K)==null?void 0:(w=q.videoDetails)==null?void 0:w.playerOverlayVideoDetailsRenderer;(U=
(n=G).setPlayerOverlayVideoDetailsRenderer)==null||U.call(n,F||{});F&&PnJ(G,c);if(_.v("web_player_use_external_grid_component")){var t=[],x,C,H,g,QO=I==null?void 0:(x=I.contents)==null?void 0:(C=x.twoColumnWatchNextResults)==null?void 0:(H=C.secondaryResults)==null?void 0:(g=H.secondaryResults)==null?void 0:g.results;if(QO)for(x=_.Q(QO),C=x.next();!C.done;C=x.next())if(C=C.value,C.lockupViewModel)t.push(C);else if(H=void 0,(H=C.itemSectionRenderer)==null?0:H.contents)for(C=_.Q(C.itemSectionRenderer.contents),
H=C.next();!H.done;H=C.next())H=H.value,H.lockupViewModel&&t.push(H);k=t;(M=(p=G).setLockupViewModels)==null||M.call(p,k||[]);Q6o(G,c)}_.Vp(z)})},Kx_=function(G,c){if(!G.quickActionButtonsContainer)if(c.setFullscreenQuickActions){G.quickActionButtonsContainer=document.createElement("div");
c.setFullscreenQuickActions(G.quickActionButtonsContainer);var I=function(){return G.quickActionsViewModel().quickActionButtons||[]},R=_.jV(G.quickActionButtonsContainer,function(){return _.e(IYz,{data:I})},"Fo");
G.addOnDisposeCallback(function(){c.setFullscreenQuickActions(void 0);R()})}else _.Ck(new _.iW("setFullscreenQuickActions not defined",{playerApi:Object.keys(c),
isReady:c.isReady(),appState:c.getAppState()}))},PnJ=function(G,c){if(!G.playerOverlayVideoDetailsRendererContainer)if(c.setPlayerOverlayVideoDetailsRenderer){G.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
c.setPlayerOverlayVideoDetailsRenderer(G.playerOverlayVideoDetailsRendererContainer);var I=_.jV(G.playerOverlayVideoDetailsRendererContainer,function(){return _.e(cXR,{data:G.playerOverlayVideoDetailsRenderer})},"Go");
G.addOnDisposeCallback(function(){c.setPlayerOverlayVideoDetailsRenderer(void 0);I()})}else _.Ck(new _.iW("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(c),
isReady:c.isReady(),appState:c.getAppState()}))},Q6o=function(G,c){if(!G.gridRendererContainer)if(c.setFullscreenGrid){G.gridRendererContainer=document.createElement("div");
c.setFullscreenGrid(G.gridRendererContainer);var I=_.jV(G.gridRendererContainer,function(){return _.e(Gv_,{data:G.lockupViewModels})},"Ho");
G.addOnDisposeCallback(function(){c.setFullscreenGrid(void 0);I()})}else _.Ck(new _.iW("setFullscreenGrid not defined",{playerApi:Object.keys(c),
isReady:c.isReady(),appState:c.getAppState()}))};_.Sb=function(G){_.JK.call(this);var c=this;this.JSC$23624_watchApi=G;this.JSC$23624_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;G=_.RM(_.y4(),_.E3,function(I){c.onFullscreenChanged(I)});
this.addOnDisposeCallback(G);G=_.RM(_.y4(),_.AR,function(I){c.onWatchScroll(I)});
this.addOnDisposeCallback(G);_.v("kevlar_watch_while_v2")&&(G=_.RM(_.y4(),_.pp,function(I){m95(c,I)}),this.addOnDisposeCallback(G));
aY5(this);TLT(this);OpN();this.onWatchScroll(_.AR(_.y4().getState()));_.XG("START_IN_FULL_WINDOW_MODE")&&this.JSC$23624_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.u(_.Sb,_.JK);var aY5=function(G){G.JSC$23624_watchApi.registerActionHandler("yt-fullscreen-change-action",function(c){var I=G.JSC$23624_watchApi.isActive();c&&!I||_.y4().dispatch(_.R6({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!c}}))});
G.addOnDisposeCallback(function(){G.JSC$23624_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},TLT=function(G){var c,I;
_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23624_watchApi.playerApi,2);c=R.yieldResult;I=function(){G.onFullerscreenEduClicked()};
c.addEventListener("onFullerscreenEduClicked",I);G.addOnDisposeCallback(function(){c.removeEventListener("onFullerscreenEduClicked",I)});
_.Vp(R)})};
_.Sb.prototype.onFullscreenChanged=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return c.isFullscreen=!!_.hO(),R.yield(c.JSC$23624_watchApi.playerApi,2);I=R.yieldResult;c.JSC$23624_miniplayerActive||I.setFauxFullscreen(c.isFullscreen);if(G&&(c.JSC$23624_watchApi.focusOnPlayer(),!c.fullerscreenEduButtonShownThisPlayback)){c.fullerscreenEduButtonShownThisPlayback=!0;var Z=_.ka("yt-fullerscreen-edu-button-shown-count")||0;_.bu("yt-fullerscreen-edu-button-shown-count",Z+1,31536E3);
c.updateFullerscreenEduButtonSubtleModeState()}_.Vp(R)})};
var m95=function(G,c){var I;_.T(function(R){if(R.nextAddress==1)return G.JSC$23624_miniplayerActive=c,R.yield(G.JSC$23624_watchApi.playerApi,2);I=R.yieldResult;I.setFauxFullscreen(!G.JSC$23624_miniplayerActive&&G.isFullscreen);_.Vp(R)})};
_.Sb.prototype.onWatchScroll=function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1)return _.v("external_fullscreen_with_edu")?Z.yield(c.JSC$23624_watchApi.playerApi,2):Z.return();I=Z.yieldResult;R=G<=0;c.shouldShowFullerscreenEdu!==R&&(c.shouldShowFullerscreenEdu=R,I.updateFullerscreenEduButtonVisibility(!c.shouldShowFullerscreenEdu));_.Vp(Z)})};
_.Sb.prototype.onFullerscreenEduClicked=function(){this.JSC$23624_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var G=_.ka("yt-fullerscreen-edu-button-click-count")||0;_.bu("yt-fullerscreen-edu-button-click-count",G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Sb.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var G=this,c,I,R,Z,K,m;return _.T(function(a){if(a.nextAddress==1)return c=_.ka("yt-fullerscreen-edu-button-click-count")||0,I=_.ka("yt-fullerscreen-edu-button-shown-count")||0,R=_.DH("external_fullscreen_button_click_threshold"),Z=_.DH("external_fullscreen_button_shown_threshold"),K=c>=R||I>=Z,a.yield(G.JSC$23624_watchApi.playerApi,2);m=a.yieldResult;m.updateFullerscreenEduButtonSubtleModeState(K);_.Vp(a)})};
_.Sb.prototype.disposeInternal=function(){_.JK.prototype.disposeInternal.call(this);var G=_.hO();_.v("kevlar_exit_fullscreen_leaving_watch")&&G&&_.dq(G)};
var OpN=function(){if(_.v("web_watch_add_viewport_meta_tag")){var G=document.querySelector("meta[name=viewport]"),c=document.head;c&&!G&&(G=document.createElement("meta"),G.name="viewport",G.content="width=device-width, initial-scale=1.0, viewport-fit=cover",c.appendChild(G))}};_.NLG=function(G){_.JK.call(this);var c=this;this.JSC$23627_watchApi=G;this.jobId=0;this.pendingRequestId=void 0;var I=this.JSC$23627_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eRy(c)});
this.addOnDisposeCallback(function(){c.JSC$23627_watchApi.unsubscribeByKey(I)});
eRy(this)};
_.u(_.NLG,_.JK);var lYx=function(G){_.dJ.cancelJob(G.jobId);G.pendingRequestId=void 0},eRy=function(G){lYx(G);
var c=h15(G.JSC$23627_watchApi.getWatchNextResponse());if(c){var I=250,R,Z=(R=_.D(c,_.g4B))==null?void 0:R.initialDelayMs;_.v("web_watch_updated_metadata_server_initial_delay")&&Z&&(I=Z);G.jobId=_.dJ.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(c)},I)}};
_.NLG.prototype.fetchUpdatedMetadata=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M;return _.T(function(z){switch(z.nextAddress){case 1:c&&(R={continuation:c});if(!_.v("web_get_updated_metadata_fantasy_panel_continuation_params")){z.jumpTo(2);break}Z=_.wH().resolve(_.Tl);K="PAsports_fantasy";return z.yield(Z.isVisible(K,!0),3);case 3:z.yieldResult&&(N=(a=(m=Z).getUpdatePanelContinuationData)==null?void 0:(O=a.call(m,K))==null?void 0:O.updatePanelContinuationRequest)&&(R||(R={}),R.clientParams=
{panelContinuationParams:{panelContinuation:N}});case 2:q=_.wH().resolve(_.UU);if(!q)return _.hg(Error("kp")),z.return();w={};I.pendingRequestId=w;return z.yield(_.CQ(q,G,R),4);case 4:F=z.yieldResult;if(w!==I.pendingRequestId)return z.return();k=(n=F)==null?void 0:(U=n.continuation)==null?void 0:U.timedContinuationData;((p=k)==null?0:p.continuation)&&((M=k)==null?0:M.timeoutMs)&&(I.jobId=_.dJ.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(G,k.continuation)},k.timeoutMs));
_.Vp(z)}})};
_.NLG.prototype.disposeInternal=function(){_.JK.prototype.disposeInternal.call(this);lYx(this)};var q4S=_.W(function(G){var c=_.Nx(function(){var R=G.data().videoId;if(G.active())R=_.YD(R),_.wH().resolve(_.n4).resolveCommand(R);else{var Z=G.playerApi(),K=Z.getAvailableAudioTracks(),m,a,O=(m=G.sourceVideoConfig().audioTracks)==null?void 0:(a=m.find(function(N){return N.isDefaultForSource}))==null?void 0:a.id;
if(K=K.find(function(N){return N.getLanguageInfo().getId()===O}))Z.setAudioTrack(K,!0),Z.setCompositeParam({activeVideoId:R}),G.setActiveSourceId(R)}}),I={};
return _.e("ytw-composite-source-video-overlay",{class:_.O3("ytwCompositeSourceVideoOverlayHost",(I.ytwCompositeSourceVideoOverlayActive=G.active,I.ytwCompositeSourceVideoOverlayInteracting=G.interacting,I)),style:_.wi({left:function(){var R;return((R=G.data().topLeftCornerX)!=null?R:0)*100+"%"},
top:function(){var R;return((R=G.data().topLeftCornerY)!=null?R:0)*100+"%"},
width:function(){var R;return((R=G.data().width)!=null?R:0)*100+"%"},
height:function(){var R;return((R=G.data().height)!=null?R:0)*100+"%"}}),
"on:click":c},_.e("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Io");var wYy=_.W(function(G){var c=_.Q(_.Gz(function(){var m,a=(m=G.data().sources)==null?void 0:m.find(function(O){return O.isActive});
if(a)return a.videoId})),I=c.next().value,R=c.next().value;
c=_.Q(_.ks(!1,void 0,"rmRJ8d"));var Z=c.next().value,K=c.next().value;return _.e("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Nx(function(){K(!0)}),
"on:mouseout":_.Nx(function(){K(!1)})},_.e(_.l,{cond:function(){return G.data().sources},
then:function(m){return _.e(_.fh,{each:m},function(a){return _.e(q4S,{data:a,active:function(){return a.videoId===I()},
setActiveSourceId:R,interacting:Z,playerApi:G.playerApi,sourceVideoConfig:function(){return dtJ(G.compositeVideoConfig(),a.videoId)}})})}}))},"Jo");_.vVN=function(G){_.JK.call(this);this.JSC$23642_watchApi=G;G=_.Q(_.ks({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=G.next().value;this.setCompositeVideoOverlayRenderer=G.next().value;G=_.Q(_.ks({},void 0,"OlaJpc"));this.compositeVideoConfig=G.next().value;this.setCompositeVideoConfig=G.next().value;FxJ(this);nVS(this)};
_.u(_.vVN,_.JK);var FxJ=function(G){var c=G.JSC$23642_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){nVS(G)});
G.addOnDisposeCallback(function(){G.JSC$23642_watchApi.unsubscribeByKey(c)})},D9T=function(G){var c;
return _.T(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23642_watchApi.playerApi,2);c=I.yieldResult;c.setCompositeVideoOverlayRendererComponent(G.container);_.Vp(I)})},oVN=function(G){var c;
return _.T(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23642_watchApi.playerApi,2);c=I.yieldResult;c.setCompositeVideoOverlayRendererComponent(void 0);_.Vp(I)})},U9o=function(G){var c,I;
return _.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23642_watchApi.playerApi,2);c=R.yieldResult;G.container=document.createElement("div");I=_.jV(G.container,function(){return _.e(wYy,{data:G.compositeVideoOverlayRenderer,compositeVideoConfig:G.compositeVideoConfig,playerApi:c})},"Ko");
G.addOnDisposeCallback(I);_.Vp(R)})},nVS=function(G){var c,I,R,Z,K,m,a,O;
_.T(function(N){return N.nextAddress==1?(c=G.JSC$23642_watchApi.getPlayerResponse(),K=_.D((I=c)==null?void 0:(R=I.overlay)==null?void 0:(Z=R.playerControlsOverlayRenderer)==null?void 0:Z.compositeVideoOverlay,tcz),O=(m=c)==null?void 0:(a=m.playerConfig)==null?void 0:a.compositeVideoConfig,K&&G.setCompositeVideoOverlayRenderer(K),O&&G.setCompositeVideoConfig(O),K&&O?G.container?N.jumpTo(6):N.yield(U9o(G),6):uff(G)?N.yield(oVN(G),0):N.jumpTo(0)):uff(G)?N.jumpTo(0):N.yield(D9T(G),0)})},uff=function(G){var c;
return!((c=G.container)==null||!c.parentElement)};
_.vVN.prototype.disposeInternal=function(){uff(this)&&oVN(this);_.JK.prototype.disposeInternal.call(this)};_.AX5=function(G){_.JK.call(this);var c=this;this.JSC$23648_watchApi=G;var I=this.JSC$23648_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var R=c.JSC$23648_watchApi.getPlayerResponse();if(R){var Z,K;if(R=_.D((Z=R.endscreen)==null?void 0:(K=Z.endscreenRenderer)==null?void 0:K.hideButton,_.kh)){var m;(m=c.setEndscreenHideButton)==null||m.call(c,R);bpf(c)}}});
this.addOnDisposeCallback(function(){c.JSC$23648_watchApi.unsubscribeByKey(I)});
G=_.Q(_.ks({},void 0,"ER3tqb"));this.endscreenHideButton=G.next().value;this.setEndscreenHideButton=G.next().value;kvf(this);s6N(this);LxN(this)};
_.u(_.AX5,_.JK);
var bpf=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return G.creatorEndscreenHideButtonContainer?R.return():R.yield(G.JSC$23648_watchApi.playerApi,2);c=R.yieldResult;G.creatorEndscreenHideButtonContainer=document.createElement("div");_.Kt(G.creatorEndscreenHideButtonContainer,!1);c.setCreatorEndscreenHideButton(G.creatorEndscreenHideButtonContainer);I=_.jV(G.creatorEndscreenHideButtonContainer,function(){return _.e(_.m8,{data:G.endscreenHideButton,useOutlinedIcon:!0})},"Lo");
G.addOnDisposeCallback(function(){I();var Z;(Z=c)==null||Z.setCreatorEndscreenHideButton(void 0)});
_.Vp(R)})},kvf=function(G){var c,I;
_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23648_watchApi.playerApi,2);c=R.yieldResult;I=function(){G.creatorEndscreenHideButtonContainer&&_.Kt(G.creatorEndscreenHideButtonContainer,!0)};
c.addEventListener("endscreenelementshown",I);G.addOnDisposeCallback(function(){var Z;(Z=c)==null||Z.removeEventListener("endscreenelementshown",I)});
_.Vp(R)})},s6N=function(G){var c=function(){G.creatorEndscreenHideButtonContainer&&_.Kt(G.creatorEndscreenHideButtonContainer,!1)},I=G.JSC$23648_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",c),R=G.JSC$23648_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",c);
G.addOnDisposeCallback(function(){G.JSC$23648_watchApi.unsubscribeByKey(I);G.JSC$23648_watchApi.unsubscribeByKey(R)})},LxN=function(G){G.JSC$23648_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(c){var I=_.D(c,iky);
G.JSC$23648_watchApi.playerApi.then(function(R){R==null||R.setCreatorEndscreenVisibility(!!I.hide)})});
G.addOnDisposeCallback(function(){G.JSC$23648_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.S4R=function(G){_.JK.call(this);this.JSC$23654_watchApi=G;$9x(this)};
_.u(_.S4R,_.JK);var $9x=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23654_watchApi.playerApi,2);c=R.yieldResult;I=function(Z){_.y4().dispatch(_.R6({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Z}}))};
c.addEventListener("onRetroModeChanged",I);G.addOnDisposeCallback(function(){c.removeEventListener("onRetroModeChanged",I)});
_.Vp(R)})};var cgx=0,S2=0,R_f=0;var pYy;pYy=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.p_=function(G){_.JK.call(this);this.JSC$23659_watchApi=G;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;MC6(this)};
_.u(_.p_,_.JK);
var MC6=function(G){var c,I,R;_.T(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23659_watchApi.playerApi,2);c=Z.yieldResult;if(G.isDisposed())return Z.return();G.sessionStorage=_.n6j("yt-sleep-timer");G.sessionStorage||_.Ck(new _.iW("SessionStorage for Sleep Timer is undefined."));((I=G.sessionStorage)==null?void 0:I.get("yt-sleep-timer"))==="true"&&(PBo(),(R=G.sessionStorage)==null||R.remove("yt-sleep-timer"),c.syncVolume());VCN(G,c);zRN(G,c);EV6(G,c);_.Vp(Z)})},VCN=function(G,c){var I=function(N){G.onSleepTimerSettingsChanged(N,
c)},R=function(N){G.onPlayerStateChange(N,c)},Z=function(){G.onLoopChange(c)},K=function(){G.onCloseMiniplayer(c)},m=function(){Ga_(c,(0,_.Fa)(),Qxf(c),G.selectedOption==="End of video",c.getPlayerState()!==1)},a=function(){G.onSeekComplete(c)},O=function(){_.dJ.cancelJob(S2);
var N=c.getCurrentTime()>=c.getDuration(),q=G.selectedOption==="End of video"||G.selectedOption==="End of playlist"&&!y$x(G.playlistId);N&&q&&JXo(G,c)};
c.addEventListener("onSleepTimerSettingsChanged",I);c.addEventListener("onLoopChange",Z);c.addEventListener("onLoopRangeChange",Z);c.addEventListener("onStateChange",R);c.addEventListener("onCloseMiniplayer",K);c.addEventListener("onSleepTimerFeatureAvailable",m);c.addEventListener("SEEK_COMPLETE",a);c.addEventListener("onAdStart",O);G.addOnDisposeCallback(function(){c.removeEventListener("onSleepTimerSettingsChanged",I);c.removeEventListener("onLoopChange",Z);c.removeEventListener("onLoopRangeChange",
Z);c.removeEventListener("onStateChange",R);c.removeEventListener("onCloseMiniplayer",K);c.removeEventListener("onSleepTimerFeatureAvailable",m);c.removeEventListener("SEEK_COMPLETE",a);c.removeEventListener("onAdStart",O)})},zRN=function(G,c){var I=G.JSC$23659_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var R=c.getVideoData().video_id,Z,K=(Z=Hjz(G.JSC$23659_watchApi))==null?void 0:Z.playlistId;
G.pauseAutonavPlayback&&(c.pauseVideo(),c.syncVolume(),G.pauseAutonavPlayback=!1);if(G.selectedOption==="End of video"&&R!==G.videoId)MP(G,c);else{if(G.selectedOption==="End of playlist"){Z=y$x(G.playlistId);if(K!==G.playlistId){MP(G,c);break a}Z?Z&&Wxx(G,c):ipS(G,c)}G.videoId=R;G.playlistId=K}}});
G.addOnDisposeCallback(function(){G.JSC$23659_watchApi.unsubscribeByKey(I)})},EV6=function(G,c){var I=_.wH().resolve(_.Ni),R=_.RM(I,_.ixb,function(K){K&&G.selectedOption!=="Off"&&MP(G,c)}),Z=G.JSC$23659_watchApi.subscribeToActiveChanged(function(K){var m,a;
return _.T(function(O){if(O.nextAddress==1)return O.yield(_.ck().navigationFinishPromise,2);m=!_.FtT();a=_.wH().resolve(_.tA).isMiniplayerActive();K||!Cr6(G.selectedOption)||a||m||MP(G,c);_.Vp(O)})},!1);
I=_.RM(I,function(K){return K.entities.playlistLoopStateEntity||{}},function(K){K=K===void 0?{}:K;
var m=XlT(G.JSC$23659_watchApi);if(m){var a;((a=K[m])==null?void 0:a.state)==="PLAYLIST_LOOP_STATE_ALL"&&Cr6(G.selectedOption)&&MP(G,c)}});
G.addOnDisposeCallback(R);G.addOnDisposeCallback(I);G.addOnDisposeCallback(Z)};
_.p_.prototype.onSleepTimerSettingsChanged=function(G,c){switch(G){case "Off":this.selectedOption!=="Off"&&MP(this,c);break;case "End of video":case "End of playlist":fYx(this,G,c);break;default:fYx(this,G,c,pYy.get(G))}};
_.p_.prototype.onLoopChange=function(G){(G.getLoopVideo()||G.getLoopRange())&&Cr6(this.selectedOption)&&MP(this,G)};
_.p_.prototype.onCloseMiniplayer=function(G){Cr6(this.selectedOption)&&MP(this,G)};
var fYx=function(G,c,I,R){BLy(G,I);G.selectedOption=c;G.videoId=I.getVideoData().video_id;G.playlistId="";var Z;(Z=G.sessionStorage)==null||Z.set("yt-sleep-timer","true");G.adjustmentsCount++;Ga_(I,(0,_.Fa)(),Qxf(I),G.selectedOption==="End of video");if(G.selectedOption==="End of video")ipS(G,I),rXR(G,I);else if(G.selectedOption==="End of playlist"){rXR(G,I);var K,m;G.playlistId=(m=(K=Hjz(G.JSC$23659_watchApi))==null?void 0:K.playlistId)!=null?m:"";y$x(G.playlistId)||ipS(G,I)}else R&&(G.presetFadeSchedulerId=
_.SR(_.dJ,function(){Zk6(I,15E3)},R-15E3),G.presetPauseSchedulerId=_.SR(_.dJ,function(){JXo(G,I)},R),I6y(I,(0,_.Fa)(),R))},JXo=function(G,c){if(G.JSC$23659_watchApi.isActive()){var I={dismissDialogEndpoint:{}};
var R={commandExecutorCommand:{commands:[I,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};I={buttonViewModel:{title:_.mJ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:I}}};R={buttonViewModel:{title:_.mJ("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:R}}};var Z={dialogHeaderViewModel:{headline:{content:_.mJ("SLEEP_TIMER_ENDED_TITLE")}}},
K={basicContentViewModel:{paragraphs:[{text:{content:_.mJ("SLEEP_TIMER_ENDED_TEXT")}}]}};I={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Z,content:K,footer:{panelFooterViewModel:{primaryButton:I,secondaryButton:R,shouldHideDivider:!0}}}}}}};_.wH().resolve(_.n4).resolveCommand(I,{form:{element:G}})}else PBo();j65(G,!1);x9x(G,c);c.pauseVideo();_.Jt.getInstance().getState()===2&&c.getPlayerState()===5&&(G.pauseAutonavPlayback=!0)},MP=function(G,c){j65(G,!0);
x9x(G,c);PBo()},x9x=function(G,c){BLy(G,c);
G.selectedOption="Off";G.videoId="";G.playlistId="";G.adjustmentsCount=0;var I;(I=G.sessionStorage)==null||I.remove("yt-sleep-timer");_.dJ.cancelJob(cgx);c.resetSleepTimerMenuSettings()},j65=function(G,c){c={timer_length_adjustment_times_during_session:G.adjustmentsCount-1,
is_session_cancelled:c};switch(G.selectedOption){case "Off":c.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":c.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":c.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:c.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",c.option_duration_in_minutes=pYy.get(G.selectedOption)/6E4}_.x7("sleepTimerSessionFinishEvent",c)};
_.p_.prototype.onPlayerStateChange=function(G,c){G===1?Ga_(c,(0,_.Fa)(),Qxf(c),this.selectedOption==="End of video"):G===0?(_.dJ.cancelJob(S2),c.setVideoTimeLeft(YoR(0,0))):G===2&&_.dJ.cancelJob(S2);this.selectedOption==="End of video"?G===0?JXo(this,c):G===2&&Kpz(c):this.selectedOption!=="End of playlist"||y$x(this.playlistId)||(G===0?JXo(this,c):G===2&&Kpz(c))};
_.p_.prototype.onSeekComplete=function(G){G.getPlayerState()===2&&Ga_(G,(0,_.Fa)(),Qxf(G),this.selectedOption==="End of video",!0)};
_.p_.prototype.onCueRangeEnter=function(G,c){G==="sleep-timer-fade-audio"&&Zk6(c,(c.getDuration()-c.getProgressState().current)*1E3)};
_.p_.prototype.onCueRangeExit=function(G,c){G==="sleep-timer-fade-audio"&&c.getPlayerState()!==0&&Kpz(c,!0)};
var ipS=function(G,c){c.addCueRange("sleep-timer-fade-audio",c.getDuration()-15,c.getDuration());c.addEventListener("onCueRangeEnter",function(I){G.onCueRangeEnter(I,c)});
c.addEventListener("onCueRangeExit",function(I){G.onCueRangeExit(I,c)})},Wxx=function(G,c){c.removeCueRange("sleep-timer-fade-audio");
c.removeEventListener("onCueRangeEnter",function(I){G.onCueRangeEnter(I,c)});
c.removeEventListener("onCueRangeExit",function(I){G.onCueRangeExit(I,c)})},BLy=function(G,c){Cr6(G.selectedOption)?Wxx(G,c):(_.dJ.cancelJob(G.presetPauseSchedulerId),_.dJ.cancelJob(G.presetFadeSchedulerId),G.presetPauseSchedulerId=0,G.presetFadeSchedulerId=0);
Kpz(c,!0)},rXR=function(G,c){c.setLoop(!1);
c.setLoopVideo(!1);c.setLoopRange(null);(G=XlT(G.JSC$23659_watchApi))&&_.wH().resolve(_.Ni).dispatch(_.Le("playlistLoopStateEntity",G,{key:G,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Hpz=function(G){_.JK.call(this);var c=this;this.JSC$23662_watchApi=G;_.v("web_watch_force_start_in_theater_mode")&&tCx(this,!0,!1);hRx(this);d9G(this);CnN(this);var I=this.JSC$23662_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.DH("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.VU.get("wide",void 0)==="1"&&_.zu("wide","1",_.DH("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){c.JSC$23662_watchApi.unsubscribeByKey(I)});
G=G.getRoot();if(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-grid")G.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.wlf();_.v("web_watch_log_theater_mode_cookie_state")&&_.VU.get("wide","0")==="1"&&_.pir("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.u(_.Hpz,_.JK);var hRx=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23662_watchApi.playerApi,2);c=R.yieldResult;I=function(Z){tCx(G,!!Z)};
c.addEventListener("SIZE_CLICKED",I);G.addOnDisposeCallback(function(){c.removeEventListener("SIZE_CLICKED",I)});
_.Vp(R)})},d9G=function(G){G.JSC$23662_watchApi.registerActionHandler("yt-toggle-theater-mode",function(c,I){tCx(G,c,I===void 0?!0:I)});
G.addOnDisposeCallback(function(){G.JSC$23662_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Hpz.prototype.getState=function(){return _.z9(_.y4().getState())};
var tCx=function(G,c,I){I=I===void 0?!0:I;var R,Z,K,m=_.v("enable_player_resize_transition")&&!!G.JSC$23662_watchApi.getWatchNextResponse()&&!((R=G.JSC$23662_watchApi.getWatchNextResponse())==null?0:(Z=R.contents)==null?0:(K=Z.twoColumnWatchNextResults)==null?0:K.conversationBar);_.YU$(function(){_.y4().dispatch(_.R6({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:c}}));_.v("theater_mode_scroll_to_top_killswitch")||G.JSC$23662_watchApi.scrollWatchTo(0,!1);_.hO()&&_.v("external_fullscreen")&&_.dq(document.documentElement);
CnN(G);I&&_.zu("wide",c?"1":"0",_.DH("theater_mode_cookie_max_age_seconds",-1));_.ym(G.JSC$23662_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);G.JSC$23662_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:c});c&&_.wlf()},{shouldWrap:m})},CnN=function(G){var c;
_.T(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23662_watchApi.playerApi,2);c=I.yieldResult;c.setSizeStyle(!0,G.getState());_.Vp(I)})};var gVx=function(G){_.JK.call(this);var c=this;this.playerApi=G;this.timeToPanelSyncKeyMap={};var I;if(G==null?0:(I=G.isReady)==null?0:I.call(G)){I=_.RM(_.wH().resolve(_.Ni),function(Z){return Z.entities.timedMarkersListSyncEntity||{}},function(Z,K){Z=Z===void 0?{}:Z;
K=K===void 0?{}:K;for(var m=_.Q(Object.keys(K)),a=m.next();!a.done;a=m.next())a=a.value,Z[a]!==K[a]&&XYx(c,K[a]);K=_.Q(Object.keys(Z));for(m=K.next();!m.done;m=K.next())m=m.value,a=Z[m],c.timeToPanelSyncKeyMap[m]&&yXf(c,a)});
this.addOnDisposeCallback(I);var R=function(Z){c.onCueRangeEnter(Z)};
G.addEventListener("onCueRangeEnter",R);this.addOnDisposeCallback(function(){var Z;(Z=G.removeEventListener)==null||Z.call(G,"onCueRangeEnter",R)})}};
_.u(gVx,_.JK);
var yXf=function(G,c){var I,R;if((I=G.playerApi)==null?0:(R=I.isReady)==null?0:R.call(I)){var Z;if((I=c==null?void 0:(Z=c.timedListData)==null?void 0:Z.sections)&&c!=null&&c.key)for(Z=_.Q(I),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.timedSyncDataList&&I.sectionId)for(R=0;R<I.timedSyncDataList.length;R++){var K=I.timedSyncDataList[R];K.syncItemId&&G.playerApi.addCueRange(I.sectionId+"_"+c.key+"_"+K.syncItemId,Number(K.videoTimeMs)/1E3,R===I.timedSyncDataList.length-1?0x8000000000000:Number(I.timedSyncDataList[R+
1].videoTimeMs)/1E3)}}},XYx=function(G,c){var I,R;
if((I=G.playerApi)==null?0:(R=I.isReady)==null?0:R.call(I)){var Z;if((I=c==null?void 0:(Z=c.timedListData)==null?void 0:Z.sections)&&c!=null&&c.key)for(Z=_.Q(I),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.timedSyncDataList&&I.sectionId){R=_.Q(I.timedSyncDataList);for(var K=R.next();!K.done;K=R.next())K=K.value,K.syncItemId&&G.playerApi.removeCueRange(I.sectionId+"_"+c.key+"_"+K.syncItemId)}}};
gVx.prototype.onCueRangeEnter=function(G){for(var c=_.Q(Object.keys(this.timeToPanelSyncKeyMap)),I=c.next();!I.done;I=c.next()){I=I.value;var R=_.Q(G.split("_"+I+"_")),Z=R.next().value;R=R.next().value;if(Z&&R){G=_.wH().resolve(_.Ni);c=this.timeToPanelSyncKeyMap[I];var K=_.DVf(G.getState(),c);I=Y4R(I,Z,R);if(I===-1)break;I={activeSyncId:R,activeItemIndex:I,activeSectionInfo:{sectionIdentifier:Z}};K?G.dispatch(_.Wm("markersEngagementPanelSyncEntity",c,I)):G.dispatch(_.Le("markersEngagementPanelSyncEntity",
c,Object.assign({},{key:c},I)));break}}};
var Y4R=function(G,c,I){var R=_.wH().resolve(_.Ni),Z,K;G=(Z=awo(R.getState(),G))==null?void 0:(K=Z.timedListData)==null?void 0:K.sections;if(!G)return-1;Z=0;K=_.Q(G);for(G=K.next();!G.done;G=K.next()){G=G.value;R=G.timedSyncDataList||[];if(G.sectionId===c)return c=R.findIndex(function(m){return m.syncItemId===I}),c===-1?c:Z+c;
Z+=R.length}return-1};_.IbG=function(G){_.JK.call(this);var c=this;this.JSC$23675_watchApi=G;this.unresolvedCommands=[];this.JSC$23675_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(I){GeN(c,I)});
this.addOnDisposeCallback(function(){c.JSC$23675_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
ci_(this)};
_.u(_.IbG,_.JK);var ci_=function(G){var c;_.T(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23675_watchApi.playerApi,2);c=I.yieldResult;if(G.isDisposed())return I.return();G.timedSyncObserver=new gVx(c);G.unresolvedCommands.length&&(G.unresolvedCommands.forEach(function(R){return GeN(G,R)}),G.unresolvedCommands=[]);
_.k9(G,G.timedSyncObserver);_.Vp(I)})},GeN=function(G,c){if(G.timedSyncObserver){var I=_.D(c,Bj_);
if(I&&I.timedSyncEntityKey&&I.panelSyncEntityKey){G=G.timedSyncObserver;c=I.timedSyncEntityKey;var R=I.panelSyncEntityKey;I=!!I.isEnabled;I=I===void 0?!0:I;var Z=_.wH().resolve(_.Ni);Z=awo(Z.getState(),c);I?G.timeToPanelSyncKeyMap[c]||(G.timeToPanelSyncKeyMap[c]=R,yXf(G,Z)):(delete G.timeToPanelSyncKeyMap[c],XYx(G,Z))}}else G.unresolvedCommands.push(c)};var RSR=_.W(function(G){var c=G.data,I=G.maybeLogSmartSkipClientData,R=null,Z=null,K=_.v("web_enable_auto_focus_for_timely_action_button"),m=function(){R=document.activeElement},a=function(){c().smartSkipMetadata&&(R=document.activeElement,_.cNr(function(){return Z}))},O=function(q){if(c().smartSkipMetadata&&(!q||q.key!=="Enter")){R&&R.isConnected&&(_.cNr(function(){return R}),R=null);
var w;(w=Z)==null||w.blur()}};
G=_.Nx(function(){I==null||I(!0,c());return!1});
var N=_.YC(_.im(function(){return c().rendererContext},{onTap:function(q,w){w({disableClickTracking:!0})}}),_.wZ({visibilityCallback:function(q){if(K)q?Z&&c().smartSkipMetadata&&(a(),document.addEventListener("focusin",m)):(document.removeEventListener("focusin",m),O());
else if(q){q=_.JY(c().rendererContext);var w=Number(c().maxVisibleDurationMilliseconds),F,n=(F=_.D(c().rendererContext,_.Aq))==null?void 0:F.label;q&&w&&n&&(F={label:n,command:q,durationMs:w},_.wH().resolve(_.zL).enqueue(F))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.xc(function(){if(K){var q;if((Z=(q=N.value)==null?void 0:q.querySelector("button"))&&c().smartSkipMetadata){var w;(w=N.value)==null||w.addEventListener("keydown",O)}}});
_.ty(function(){K&&(Z&&c().smartSkipMetadata&&Z.removeEventListener("keydown",O),document.removeEventListener("focusin",m),O())});
return _.e("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:N,"on:click":G},_.e(_.sN,{data:function(){return c().content}},{buttonViewModel:_.BR}))},"No");var ZEJ=_.W(function(G){var c=G.data,I=G.playerApi,R=_.wH().resolve(_.EM0);G=_.Q(_.Gz(function(){c()}));
var Z=G.next().value,K=G.next().value,m=function(){return TjR(c(),Z())},a=function(N,q){var w,F,n=(w=_.D(q==null?void 0:q.rendererContext,_.oJ))==null?void 0:(F=w.loggingDirectives)==null?void 0:F.trackingParams;
if((q=q==null?void 0:q.smartSkipMetadata)&&q.loggingData&&(F=q.loggingData,q=F.algorithmId,w=F.startMilliseconds,F=F.endMilliseconds,q&&w!==void 0&&F!==void 0)){var U,k;N={smartSkipData:Object.assign({},{versionName:q,startMediaTimeMs:w,endMediaTimeMs:F},N&&{userInteractionMediaTimeMs:(Math.floor(((U=_.ZA())==null?void 0:(k=U.getPlayer())==null?void 0:k.getCurrentTime())||0)*1E3).toString()})};U=_.k0();var p;n&&(p=_.kC(n));U&&p&&_.tH(U,p,N)}},O=function(N,q){var w=TjR(c(),N);
if(w){var F=_.D(w,a6T),n;if(n=q)n=I(),w=_.D(w,a6T),n=w!=null&&w.smartSkipMetadata?!(n==null?0:n.isSameMarkerTypeVisible((w==null?void 0:w.smartSkipMetadata.markerKey)||"")):!0;if(n){var U,k;(F==null?0:(U=F.smartSkipMetadata)==null?0:(k=U.loggingData)==null?0:k.isCounterfactual)||(a(!1,F),K(N))}else q||Z()!==N||K(void 0)}};
_.xs(function(){var N=c().timelyActions;if(N){N=_.Q(N);for(var q=N.next();!q.done;q=N.next()){q=_.D(q.value,a6T);var w=void 0;(w=q)!=null&&w.cueRangeId&&R.timelyActionsMap.set(q.cueRangeId,O)}_.ty(function(){R.timelyActionsMap.clear()})}},"l2RtC");
return _.e("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.e(_.sN,{data:m},{timelyActionViewModel:function(N){return _.e(RSR,{data:N.data,maybeLogSmartSkipClientData:function(){a(!0,_.D(m(),a6T))}})}}))},"Po");_.PuR=function(G){_.JK.call(this);this.JSC$23687_watchApi=G;G=_.Q(_.ks({},void 0,"UN7k5e"));this.timelyActionsOverlay=G.next().value;this.setTimelyActionsOverlay=G.next().value;Kcx(this)};
_.u(_.PuR,_.JK);var Kcx=function(G){var c,I,R,Z;_.T(function(K){if(K.nextAddress==1)return QIo(G),mDx(G),G.timelyActionsContainer=document.createElement("div"),K.yield(G.JSC$23687_watchApi.playerApi,2);c=K.yieldResult;(R=(I=c).insertTimelyActionUi)==null||R.call(I,G.timelyActionsContainer);Z=_.jV(G.timelyActionsContainer,function(){return _.e(ZEJ,{data:G.timelyActionsOverlay,playerApi:c})},"Qo");
G.addOnDisposeCallback(Z);_.Vp(K)})},mDx=function(G){var c=G.JSC$23687_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QIo(G)});
G.addOnDisposeCallback(function(){G.JSC$23687_watchApi.unsubscribeByKey(c)})},QIo=function(G){var c=G.JSC$23687_watchApi.getWatchNextResponse();
if(c){var I,R;if(c=_.D((I=c.playerOverlays)==null?void 0:(R=I.playerOverlayRenderer)==null?void 0:R.timelyActionsOverlayViewModel,rg_)){var Z;(Z=G.setTimelyActionsOverlay)==null||Z.call(G,c)}}};_.TnN=function(G){_.JK.call(this);this.JSC$23691_watchApi=G;abo(this)};
_.u(_.TnN,_.JK);var abo=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23691_watchApi.playerApi,2);c=R.yieldResult;I=function(Z){_.NC.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.D(Z,_.zZx)},popupType:"TOAST"}})};
c.addEventListener("onYtShowToast",I);G.addOnDisposeCallback(function(){c.removeEventListener("onYtShowToast",I)});
_.Vp(R)})};var OES,lbo,vaN,eSx,Nnz,nax,wHR,Fc6,DDy,UDN;OES=!1;_.qU5=function(G){_.JK.call(this);this.JSC$23694_watchApi=G;this.fullscreen=this.theater=!1;eSx(this);Nnz(this);lbo(this)};
_.u(_.qU5,_.JK);lbo=function(G){var c,I,R;_.T(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23694_watchApi.playerApi,2);c=Z.yieldResult;if(G.isDisposed())return Z.return();I=G.JSC$23694_watchApi.getElement("CINEMATICS");if(!I)return Z.return();G.JSC$23694_cinematicController=new _.Fp(I,c);_.k9(G,G.JSC$23694_cinematicController);_.Guy(G.JSC$23694_cinematicController);wHR(G,_.IDB());R=G.JSC$23694_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(K){Fc6(G,K)});
G.addOnDisposeCallback(function(){G.JSC$23694_watchApi.unsubscribeByKey(R)});
nax(G);Fc6(G,G.JSC$23694_cinematicController.isAllowed());vaN(G);DDy(G);_.Vp(Z)})};
vaN=function(G){G.fullscreen=_.E3(_.y4().getState());G.theater=_.z9(_.y4().getState());_.oaG(G,G.fullscreen,G.theater);var c=_.RM(_.y4(),_.E3,function(R){G.fullscreen=R;_.oaG(G,G.fullscreen,G.theater)}),I=_.RM(_.y4(),_.z9,function(R){G.theater=R;
_.oaG(G,G.fullscreen,G.theater)});
G.addOnDisposeCallback(c);G.addOnDisposeCallback(I)};
eSx=function(G){var c=G.JSC$23694_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nax(G)});
G.addOnDisposeCallback(function(){G.JSC$23694_watchApi.unsubscribeByKey(c)})};
Nnz=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23694_watchApi.playerApi,2);c=R.yieldResult;I=function(Z){wHR(G,Z)};
c.addEventListener("cinematicSettingsToggleChange",I);G.addOnDisposeCallback(function(){c.removeEventListener("cinematicSettingsToggleChange",I)});
_.Vp(R)})};
nax=function(G){var c=G.JSC$23694_watchApi.getWatchNextResponse(),I;c=_.D(c==null?void 0:(I=c.pageVisualEffects)==null?void 0:I[0],_.gz);var R;(R=G.JSC$23694_cinematicController)==null||_.IHz(R,c)};
wHR=function(G,c){var I;(I=G.JSC$23694_cinematicController)==null||_.cwy(I,c);UDN(G)};
Fc6=function(G,c){var I;_.T(function(R){if(R.nextAddress==1)return _.v("kevlar_watch_cinematics_invisible")&&(c=!1),R.yield(G.JSC$23694_watchApi.playerApi,2);I=R.yieldResult;I.updateCinematicSettings(c);UDN(G);_.Vp(R)})};
DDy=function(G){var c=_.OC();if(_.v("kevlar_measure_ambient_mode_idle")&&!c.getFlag(192)&&!OES){OES=!0;var I=_.W_(_.dJ,function(){_.wH().resolve(_.wK$).start(1E4)},5E3);
G.addOnDisposeCallback(function(){_.dJ.cancelJob(I);_.wH().resolve(_.wK$).stop()})}};
_.oaG=function(G,c,I){G.fullscreen=c;G.theater=I;var R;(R=G.JSC$23694_cinematicController)==null||R.setFullscreen(G.fullscreen,G.theater);if(_.v("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(G.theater||G.fullscreen){var Z;(Z=G.JSC$23694_cinematicController)==null||_.Z45(Z)}else{var K;(K=G.JSC$23694_cinematicController)==null||_.RM6(K)}};
UDN=function(G){var c;G.JSC$23694_watchApi.getRoot().toggleCinematicsActive(!((c=G.JSC$23694_cinematicController)==null||!c.isEnabled()))};_.sIf=function(G){_.JK.call(this);var c=this;this.JSC$23697_watchApi=G;this.commentsReady=!1;this.setCommentsJobId=0;G=_.RM(_.y4(),_.AR,function(){uN6(c)});
this.addOnDisposeCallback(G);var I=this.JSC$23697_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){bEJ(c)}),R=this.JSC$23697_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){bEJ(c)});
this.addOnDisposeCallback(function(){c.JSC$23697_watchApi.unsubscribeByKey(I);c.JSC$23697_watchApi.unsubscribeByKey(R)});
var Z=function(){_.v("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&ke5(c,"false")};
this.JSC$23697_watchApi.getRoot().addEventListener("yt-page-data-will-update",Z);this.addOnDisposeCallback(function(){c.JSC$23697_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Z)});
bEJ(this)};
_.u(_.sIf,_.JK);var bEJ=function(G){G.commentsReady=!1;_.dJ.cancelJob(G.setCommentsJobId);G.setCommentsJobId=_.W_(_.dJ,function(){uN6(G)},1E3)},uN6=function(G){if(!G.commentsReady){_.LC("cmi");
_.dJ.cancelJob(G.setCommentsJobId);var c,I,R,Z,K=(c=G.JSC$23697_watchApi.getWatchNextResponse())==null?void 0:(I=c.contents)==null?void 0:(R=I.twoColumnWatchNextResults)==null?void 0:(Z=R.results)==null?void 0:Z.results.contents;c=void 0;if(K&&K.length)for(K=_.Q(K),I=K.next();!I.done;I=K.next())if(I=I.value,Z=R=void 0,((R=I)==null?void 0:(Z=R.itemSectionRenderer)==null?void 0:Z.sectionIdentifier)==="comment-item-section"){_.v("web_watch_provide_undefined_comments")?c=I.itemSectionRenderer:G.JSC$23697_watchApi.provideRenderingData("COMMENTS",
I.itemSectionRenderer);ke5(G,"true");break}_.v("web_watch_provide_undefined_comments")&&G.JSC$23697_watchApi.provideRenderingData("COMMENTS",c);G.commentsReady=!0;G.JSC$23697_watchApi.dispatchEvent("yt-watch-comments-ready")}},ke5=function(G,c){var I;
(I=G.JSC$23697_watchApi.getElement("COMMENTS"))==null||I.setAttribute("canScheduleJobs",c)};_.pHS=function(G){_.JK.call(this);var c=this;this.JSC$23700_watchApi=G;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.v("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.v("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.v("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.DH("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)LcG(this);
else{var I=this.JSC$23700_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){AiS(c);VS(c)}),R=this.JSC$23700_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){z3(c);
VS(c)});
this.JSC$23700_watchApi.getRoot().is==="ytd-watch-grid"&&_.v("swatcheroo_pbs_load_grid")&&($DJ(this),SUR(this));this.addOnDisposeCallback(function(){c.JSC$23700_watchApi.unsubscribeByKey(I);c.JSC$23700_watchApi.unsubscribeByKey(R);_.dJ.cancelJob(c.provideRichGridJobId)});
AiS(this);z3(this)}};
_.u(_.pHS,_.JK);var LcG=function(G){var c=G.JSC$23700_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){G.providePlayerJobId=_.U_(_.dJ,function(){AiS(G);VS(G)},G.provideAllDataDelayMs)}),I=G.JSC$23700_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){G.provideWatchNextJobId=_.U_(_.dJ,function(){z3(G);
VS(G)},G.provideAllDataDelayMs)}),R=G.JSC$23700_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){G.provideWatchNextJobId=_.U_(_.dJ,function(){z3(G);
VS(G)},G.provideAllDataDelayMs)});
G.JSC$23700_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.W_(_.dJ,function(){AiS(G);z3(G);VS(G)},100)});
G.JSC$23700_watchApi.addPageDisposeJob(function(){_.dJ.cancelJob(G.provideWatchNextJobId);_.dJ.cancelJob(G.providePlayerJobId)});
G.addOnDisposeCallback(function(){G.JSC$23700_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");G.JSC$23700_watchApi.unsubscribeByKey(c);G.JSC$23700_watchApi.unsubscribeByKey(I);G.JSC$23700_watchApi.unsubscribeByKey(R);_.dJ.cancelJob(G.providePlayerJobId);_.dJ.cancelJob(G.provideWatchNextJobId)});
AiS(G);z3(G)},AiS=function(G){var c=G.JSC$23700_watchApi.getPlayerResponse(),I,R,Z=(R=c==null?void 0:(I=c.playabilityStatus)==null?void 0:I.messageRenderers)!=null?R:[],K,m;
c=(m=c==null?void 0:(K=c.playabilityStatus)==null?void 0:K.messages)!=null?m:[];K=_.Q(c);for(m=K.next();!m.done;m=K.next())Z.push({alertRenderer:{text:_.Cp(m.value),type:"WARNING"}});G.JSC$23700_watchApi.provideRenderingData("ALERTS",Z)},z3=function(G){var c=[],I,R,Z,K=G.JSC$23700_watchApi.getWatchNextResponse(),m,a,O,N,q=K==null?void 0:(m=K.contents)==null?void 0:(a=m.twoColumnWatchNextResults)==null?void 0:(O=a.results)==null?void 0:(N=O.results)==null?void 0:N.contents;
if(q)for(m=_.Q(q),a=m.next();!a.done;a=m.next())if(a=a.value,a.videoPrimaryInfoRenderer)var w=a;else if(a.videoSecondaryInfoRenderer){var F=a;N=O=void 0;a=Object.assign({},(O=a.videoSecondaryInfoRenderer)==null?void 0:(N=O.metadataRowContainer)==null?void 0:N.metadataRowContainerRenderer);if(a.rows&&a.collapsedItemCount!==void 0){a.rows=a.rows.slice(0,a.collapsedItemCount).filter(function(YK){return!!YK.richMetadataRowRenderer});
a.collapsedItemCount=a.rows.length;var n={metadataRowContainerRenderer:a}}}else if(a.merchandiseShelfRenderer)var U=a;else if(a.ticketShelfRenderer)var k=a;else if(a.expandableMetadataRenderer)var p=a;else if(a.itemSectionRenderer)if(O=a.itemSectionRenderer.contents,N=void 0,G.directlyProvideComments&&((N=a.itemSectionRenderer)==null?void 0:N.sectionIdentifier)==="comment-item-section")_.LC("cmi"),G.JSC$23700_watchApi.provideRenderingData("COMMENTS",a.itemSectionRenderer);else if(O)for(a=_.Q(O),O=
a.next();!O.done;O=a.next())if(O=O.value,O.commentsEntryPointHeaderRenderer)var M=O;else if(O.clarificationRenderer||O.infoPanelContainerRenderer||O.infoPanelContentRenderer||O.emergencyOneboxRenderer){c.push(O);var z=z||!!F}else O.limitedStateMessageRenderer?R=O:O.videoMetadataCarouselViewModel&&(Z=O);if(_.v("web_watch_merch_in_sd_when_ticket_shelf_present")&&U&&k){var t=U;U=void 0}if(G.provideWatchNextSecondaryResults){var x,C,H;G.JSC$23700_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
K==null?void 0:(x=K.contents)==null?void 0:(C=x.twoColumnWatchNextResults)==null?void 0:(H=C.secondaryResults)==null?void 0:H.secondaryResults)}if(G.JSC$23700_watchApi.getRoot().is==="ytd-watch-grid"){var g,QO;G.JSC$23700_watchApi.provideRenderingData("LIVE_CHAT",K==null?void 0:(g=K.contents)==null?void 0:(QO=g.twoColumnWatchNextResults)==null?void 0:QO.conversationBar)}var T8,kp,FB,oq;(x=K==null?void 0:(T8=K.contents)==null?void 0:(kp=T8.twoColumnWatchNextResults)==null?void 0:(FB=kp.secondaryResults)==
null?void 0:(oq=FB.secondaryResults)==null?void 0:oq.offerModule)&&(x.donationShelfRenderer||x.donationUnavailableRenderer)&&G.JSC$23700_watchApi.getRoot().is!=="ytd-watch-grid"&&(I=x);T8=G.JSC$23700_watchApi.getPlayerResponse();if(!T8||!_.xAU(T8.playabilityStatus,K==null?void 0:K.playerOverlays)){var Wr;if(K==null?0:(Wr=K.contents)==null?0:Wr.singleColumnWatchNextResults){var iT,z8;var GV=K==null?void 0:(iT=K.contents.singleColumnWatchNextResults.results)==null?void 0:(z8=iT.results)==null?void 0:
z8.contents}else{var ei,Hr,v0,kK;Wr=!!(q==null?0:(ei=q[0])==null?0:(Hr=ei.itemSectionRenderer)==null?0:(v0=Hr.contents)==null?0:(kK=v0[0])==null?0:kK.backgroundPromoRenderer);var pN,bH;ei=!!(K==null?0:(pN=K.contents)==null?0:(bH=pN.twoColumnWatchNextResults)==null?0:bH.secondaryResults);Wr&&!ei&&(GV=q)}}q=c[0];pN=c[1];z&&c.length===1&&(pN=q,q=void 0);G.JSC$23700_watchApi.provideRenderingData("PRIMARY_INFO",w);G.JSC$23700_watchApi.provideRenderingData("SECONDARY_INFO",F);G.JSC$23700_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
M);G.JSC$23700_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Z);G.JSC$23700_watchApi.provideRenderingData("CLARIFICATION",q);G.JSC$23700_watchApi.provideRenderingData("RICH_METADATA",n);G.JSC$23700_watchApi.provideRenderingData("MERCH_SHELF",U);_.v("web_watch_merch_in_sd_when_ticket_shelf_present")&&G.JSC$23700_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",t);G.JSC$23700_watchApi.provideRenderingData("TICKET_SHELF",k);G.JSC$23700_watchApi.provideRenderingData("LIMITED_STATE",R);G.JSC$23700_watchApi.getRoot().is!==
"ytd-watch-grid"&&G.JSC$23700_watchApi.provideRenderingData("DONATION_SHELF",I);G.JSC$23700_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",GV);G.JSC$23700_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",pN);G.JSC$23700_watchApi.provideRenderingData("EXPANDABLE_METADATA",p);if(G.swatcherooProvideAllDataOnScheduledJob){var n1,qf,hU,we,xK,UK;w=K==null?void 0:(n1=K.contents)==null?void 0:(qf=n1.twoColumnWatchNextResults)==null?void 0:(hU=qf.secondaryResults)==null?void 0:(we=hU.secondaryResults)==
null?void 0:(xK=we.results)==null?void 0:(UK=xK[0])==null?void 0:UK.richGridRenderer;G.JSC$23700_watchApi.provideRenderingData("RICH_GRID_RENDERER",w)}};
_.pHS.prototype.hasCompanionAds=function(G){var c,I;return(I=G==null?void 0:(c=G.adPlacements)==null?void 0:c.some(function(R){var Z,K,m,a;return(R==null?void 0:(Z=R.adPlacementRenderer)==null?void 0:(K=Z.renderer)==null?void 0:K.actionCompanionAdRenderer)||(R==null?void 0:(m=R.adPlacementRenderer)==null?void 0:(a=m.renderer)==null?void 0:a.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?I:!1};
var VS=function(G){if(!_.v("swaterdoo_ps_wn_handle_ks")){G.swatcherooProvideAllDataOnScheduledJob||SUR(G,3E3);var c=G.JSC$23700_watchApi.getPlayerResponse(),I,R,Z,K,m,a=(I=G.JSC$23700_watchApi.getWatchNextResponse())==null?void 0:(R=I.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(K=Z.secondaryResults)==null?void 0:(m=K.secondaryResults)==null?void 0:m.offerModule;c=G.hasCompanionAds(c);var O,N;I=(a==null?void 0:(O=a.tvfilmOfferModuleRenderer)==null?void 0:O.clientShouldSuppressIfCompanionAdDisplayed)||
(a==null?void 0:(N=a.unlimitedOfferModuleRenderer)==null?void 0:N.suppressIfCompanionAds);O=c&&I;G.JSC$23700_watchApi.getRoot().is==="ytd-watch-grid"&&G.JSC$23700_watchApi.provideRenderingData("OFFER_MODULE",O?void 0:a)}},SUR=function(G,c){_.v("swatcheroo_pbs_load_grid")&&(G.provideRichGridJobId&&_.dJ.cancelJob(G.provideRichGridJobId),G.provideRichGridJobId=_.U_(_.dJ,function(){G.provideRichGridJobId=0;
var I,R,Z,K,m,a,O,N=(I=G.JSC$23700_watchApi.getWatchNextResponse())==null?void 0:(R=I.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(K=Z.secondaryResults)==null?void 0:(m=K.secondaryResults)==null?void 0:(a=m.results)==null?void 0:(O=a[0])==null?void 0:O.richGridRenderer;N&&G.JSC$23700_watchApi.provideRenderingData("RICH_GRID_RENDERER",N)},c))},$DJ=function(G){var c,I;
_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23700_watchApi.playerApi,2);c=R.yieldResult;I=function(){G.onPlaybackStart()};
c.addEventListener("onPlaybackStartExternal",I);G.addOnDisposeCallback(function(){c.removeEventListener("onPlaybackStartExternal",I)});
_.Vp(R)})};
_.pHS.prototype.onPlaybackStart=function(){SUR(this)};_.Vx6=function(G){_.JK.call(this);var c=this;this.JSC$23712_watchApi=G;G.playerApi.then(function(I){c.player=I});
this.gestures=new _.aV(this.JSC$23712_watchApi.getRoot(),G.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.NJz(_.y4().getState())&&_.AR(_.y4().getState())<=0)if(_.E3(_.y4().getState())){var I;(I=c.player)==null||I.toggleFullscreen()}else _.ym(c.JSC$23712_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Mxo(this)};
_.u(_.Vx6,_.JK);var Mxo=function(G){var c=_.RM(_.y4(),_.E3,function(I){G.onFullscreenChanged(I)});
G.addOnDisposeCallback(c);c=_.RM(_.y4(),_.AR,function(I){G.gestures&&(I>0?G.gestures.detach():G.gestures.attach())});
G.addOnDisposeCallback(c)};
_.Vx6.prototype.onFullscreenChanged=function(G){this.gestures&&this.gestures.update(G)};var zSN;zSN=["PLAYLIST"];_.Jiy=function(G){_.JK.call(this);var c=this;this.JSC$23715_watchApi=G;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(G.subscribeToActiveChanged(function(I){c.onActiveChanged(I)}));
EaG(this)};
_.u(_.Jiy,_.JK);var WcS=function(G){G.pageDisposalDataTypes=Object.values(yHS).filter(function(c){return!zSN.includes(c)})},EaG=function(G){if(_.v("swatcheroo_enable_ghost_cards")||_.v("web_watch_clear_data_on_page_dispose"))WcS(G),G.JSC$23715_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.dJ.cancelJob(G.clearDataJobId);
G.clearDataJobId=0}),G.runPageDisposeJob=function(){var c=_.wH().resolve(_.I9).getDestinationPageType()==="watch";
G.clearDataJobId=_.U_(_.dJ,G.runClearDataJob,c?0:_.DH("web_watch_delay_page_dispose_ms",1E4))},G.runClearDataJob=function(){iER(G)},G.runOnYtNavigateAwayFinish=function(){G.clearDataJobId&&(_.dJ.cancelJob(G.clearDataJobId),G.clearDataJobId=0,iER(G))},document.addEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish),G.JSC$23715_watchApi.addPageDisposeJob(G.runPageDisposeJob),G.addOnDisposeCallback(function(){G.JSC$23715_watchApi.removePageDisposeJob(G.runPageDisposeJob);
G.JSC$23715_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish)})},iER=function(G){G.pageDisposalDataTypes.forEach(function(c){G.JSC$23715_watchApi.provideRenderingData(c,void 0)});
G.clearDataJobId=0};
_.Jiy.prototype.onActiveChanged=function(G){G&&((G=document.querySelector("#watch-page-skeleton"))&&_.ST(G),fbT(this),document.body.removeAttribute("no-y-overflow"),_.XG("IS_SHELL_LOAD")&&_.GB6())};
var fbT=function(G){_.T(function(c){if(c.nextAddress==1)return c.yield(G.JSC$23715_watchApi.playerApi,2);_.Cs();_.Vp(c)})};var BnN;BnN=_.v("kevlar_watch_while_counterfactual")?0:.25;_.txx=function(G){_.JK.call(this);this.JSC$23718_watchApi=G;this.JSC$23718_watchWhileEnabled=_.v("kevlar_watch_while_v2");this.pipEnabled=_.v("web_enable_pip_on_miniplayer");ri6(this);jIx(this);xDy(this)};
_.u(_.txx,_.JK);var ri6=function(G){G.JSC$23718_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){hSJ(G)});
G.addOnDisposeCallback(function(){G.JSC$23718_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},jIx=function(G){var c,I;
_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23718_watchApi.playerApi,2);c=R.yieldResult;I=function(){hSJ(G)};
c.addEventListener("onCollapseMiniplayer",I);G.addOnDisposeCallback(function(){c.removeEventListener("onCollapseMiniplayer",I)});
_.Vp(R)})},xDy=function(G){var c=G.JSC$23718_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&c&&G.JSC$23718_watchWhileEnabled&&(G.playerIntersectionObserver=new IntersectionObserver(function(I){G.handleIntersect(I)},{threshold:[BnN]}),G.playerIntersectionObserver.observe(c),G.addOnDisposeCallback(function(){var I;
(I=G.playerIntersectionObserver)==null||I.disconnect()}))},hSJ=function(G){var c,I,R;
_.T(function(Z){if(Z.nextAddress==1){c=_.wH().resolve(_.I9);I=c.data;R=_.bzA(I.response,I.playerResponse);_.ck().miniplayerButtonActivation=!0;if(G.pipEnabled)return _.ck().watchPipActivation=!0,Z.jumpTo(2);_.wH().resolve(_.tA).collapse();return Z.yield(_.ck().navigationFinishPromise,2)}if(Z.nextAddress!=4)return _.ck().currentEndpoint=R.watchEndpoint||null,Z.yield(_.wH().resolve(_.tA).activate(G.JSC$23718_watchApi.getElement("PLAYER"),R,I),4);_.ck().userActivation=!0;_.Vp(Z)})};
_.txx.prototype.handleIntersect=function(G){dD6(this,G[G.length-1])};
var dD6=function(G,c){G.watchWhileJobId&&_.dJ.cancelJob(G.watchWhileJobId);G.watchWhileJobId=_.dJ.addLowPriorityJob(function(){var I,R;return _.T(function(Z){if(Z.nextAddress==1)return G.watchWhileJobId=void 0,I=_.wH().resolve(_.tA),c.intersectionRatio>BnN?I.isMiniplayerActive()?Z.yield(I.deactivate(),0):Z.jumpTo(0):(R=!I.isMiniplayerActive())?Z.yield(CuT(G),5):Z.jumpTo(4);Z.nextAddress!=4&&(R=Z.yieldResult);if(!R)return Z.jumpTo(0);_.ck().watchWhileActivation=!0;return Z.yield(HEx(G),0)})},100)},
CuT=function(G){return _.T(function(c){return c.nextAddress==1?_.v("kevlar_watch_while_paused")?c.return(!0):c.yield(G.isPlayerPlaying(),2):c.return(c.yieldResult)})};
_.txx.prototype.isPlayerPlaying=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23718_watchApi.playerApi,2);c=I.yieldResult;return I.return(c.getPlayerStateObject().isPlaying)})};
var HEx=function(G){var c,I;return _.T(function(R){c=_.wH().resolve(_.I9).data;I=_.bzA(c.response,c.playerResponse);_.ck().currentEndpoint=I.watchEndpoint||null;return R.yield(_.wH().resolve(_.tA).activate(G.JSC$23718_watchApi.getElement("PLAYER"),I,c),0)})};_.gaN=function(G){_.JK.call(this);this.JSC$23722_watchApi=G;XHT(this);yiG(this)};
_.u(_.gaN,_.JK);var yiG=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23722_watchApi.playerApi,2);c=R.yieldResult;I=function(Z){var K;Z.sessionData&&Z.sessionData.itct&&(K=Z.sessionData.itct);var m=Z.watchEndpoint;if(m&&Z.sessionData&&Z.sessionData.autonav)m=_.ter(m,K);else{var a;m=_.YD(Z.videoId,(a=Z.listId)!=null?a:void 0,K)}K={endpoint:m};Z.sessionData&&(K.tempData=Z.sessionData);G.JSC$23722_watchApi.dispatchEvent("yt-navigate",K)};
c.addEventListener("onPlayVideo",I);G.addOnDisposeCallback(function(){c.removeEventListener("onPlayVideo",I)});
_.Vp(R)})},XHT=function(G){var c=function(I){G.onYtNavigate(I)};
G.JSC$23722_watchApi.getRoot().addEventListener("yt-navigate",c);G.addOnDisposeCallback(function(){G.JSC$23722_watchApi.getRoot().removeEventListener("yt-navigate",c)})};
_.gaN.prototype.onYtNavigate=function(G){var c=this,I,R,Z,K,m,a,O,N,q;return _.T(function(w){if(w.nextAddress==1){if(!((I=G.detail)==null?0:(R=I.endpoint)==null?0:R.watchEndpoint))return w.return();Z=G.detail.endpoint.watchEndpoint;K=c.JSC$23722_watchApi.getWatchNextResponse();a=_.D((m=K)==null?void 0:m.currentVideoEndpoint,_.fR);if(!a)return w.return();if(Z.videoId!==a.videoId||Z.playlistId&&Z.playlistId!==a.playlistId||typeof Z.startTimeSeconds!=="number")return w.jumpTo(0);G.stopPropagation();
(O=_.v("kevlar_watch_while_v2")&&!_.v("kevlar_watch_while_counterfactual"))&&_.wH().resolve(_.tA).isMiniplayerActive()||c.JSC$23722_watchApi.scrollWatchTo(0,!0);return w.yield(c.JSC$23722_watchApi.playerApi,3)}N=w.yieldResult;q=Z.startTimeSeconds;N.seekTo(q,void 0,void 0,void 0,84);N.wakeUpControls();q<N.getDuration()&&N.playVideo();_.Vp(w)})};_.G1o=function(G){_.JK.call(this);var c=this;this.JSC$23725_watchApi=G;var I=this.JSC$23725_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YUx(c)});
this.addOnDisposeCallback(function(){c.JSC$23725_watchApi.unsubscribeByKey(I)});
YUx(this);_.v("enable_ai_companion")&&(G=this.JSC$23725_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.ccu(_.wH().resolve(_.NI),G,"WATCH")};
_.u(_.G1o,_.JK);var YUx=function(G){var c=G.JSC$23725_watchApi.getWatchNextResponse();if(c){var I,R=[].concat(_.jn((I=c==null?void 0:c.engagementPanels)!=null?I:[]));_.v("web_watch_comments_visible_by_default")&&(I=R.find(function(Z){var K;return((K=Z.engagementPanelSectionListRenderer)==null?void 0:K.targetId)==="engagement-panel-comments-section"}),I==null?0:I.engagementPanelSectionListRenderer)&&(I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
R.unshift.apply(R,_.jn(ccy(c)));G.JSC$23725_watchApi.provideRenderingData("ENGAGEMENT_PANELS",R)}},I4o=function(G){var c,I,R,Z=(c=G.engagementPanels)==null?void 0:(I=c.find(function(n){var U;
return((U=n.engagementPanelSectionListRenderer)==null?void 0:U.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(R=I.engagementPanelSectionListRenderer.content)==null?void 0:R.structuredDescriptionContentRenderer,K;
if(_.D(Z==null?void 0:(K=Z.items)==null?void 0:K.find(function(n){return!!_.D(n,KXy)}),KXy))return!0;
var m,a,O,N;if(G=(((m=G.contents)==null?void 0:(a=m.twoColumnWatchNextResults)==null?void 0:(O=a.results)==null?void 0:(N=O.results)==null?void 0:N.contents)||[]).find(function(n){return n.videoPrimaryInfoRenderer})){var q,w,F;
return(((q=G.videoPrimaryInfoRenderer)==null?void 0:(w=q.videoActions)==null?void 0:(F=w.menuRenderer)==null?void 0:F.flexibleItems)||[]).some(function(n){n=_.D(n,_.DHN);if(!n)return!1;var U,k;n=(U=n.topLevelButton)==null?void 0:(k=U.buttonViewModel)==null?void 0:k.onTap;if(!n)return!1;U=_.WI(n);if(!U)return!1;var p;return((p=_.D(U,_.iJ))==null?void 0:p.panelIdentifier)==="PAyouchat"})}return!1},ccy=function(G){var c=[];
if(!_.v("web_watch_inject_placeholder_fantasy_panel_killswitch")){var I,R,Z,K=(I=G.engagementPanels)==null?void 0:(R=I.find(function(a){var O;return((O=a.engagementPanelSectionListRenderer)==null?void 0:O.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Z=R.engagementPanelSectionListRenderer.content)==null?void 0:Z.structuredDescriptionContentRenderer,m;
_.D(K==null?void 0:(m=K.items)==null?void 0:m.find(function(a){return!!_.D(a,E7R)}),E7R)&&(I=_.uDT("PAsports_fantasy"),I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c.push(I))}I4o(G)&&(G=_.uDT("PAyouchat"),G.engagementPanelSectionListRenderer.targetId="PAyouchat",G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c.push(G));
return c};_.ZH6=function(G){_.JK.call(this);this.JSC$23728_watchApi=G;RXS(this)};
_.u(_.ZH6,_.JK);var RXS=function(G){G.JSC$23728_watchApi.registerActionHandler("yt-loop-command",function(c){K9S(G,c)});
G.JSC$23728_watchApi.registerActionHandler("yt-repeat-chapter-command",function(c){POG(G,c)});
G.addOnDisposeCallback(function(){G.JSC$23728_watchApi.unregisterActionHandler("yt-loop-command");G.JSC$23728_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},K9S=function(G,c){var I;
_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23728_watchApi.playerApi,2);I=R.yieldResult;_.D(c,Wp5).loop?(I.setLoopRange({startTimeMs:Number(_.D(c,Wp5).startTimeMs),endTimeMs:Number(_.D(c,Wp5).endTimeMs),postId:_.D(c,Wp5).postId,type:"clips"}),I.playVideo()):I.setLoopRange(null);_.Vp(R)})},POG=function(G,c){var I,R;
_.T(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23728_watchApi.playerApi,2);I=Z.yieldResult;R=_.D(c,jxo).repeat;R==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(I.setLoopRange({startTimeMs:Number(_.D(c,jxo).startTimeMs),endTimeMs:Number(_.D(c,jxo).endTimeMs),type:"repeatChapter"}),I.playVideo()):R==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&I.setLoopRange(null);_.Vp(Z)})};_.mYT=function(G){_.JK.call(this);this.JSC$23733_watchApi=G;Qso(this)};
_.u(_.mYT,_.JK);var Qso=function(G){G.JSC$23733_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(c){a4x(G,c)});
G.addOnDisposeCallback(function(){G.JSC$23733_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},a4x=function(G,c){var I,R,Z,K,m,a,O,N,q,w,F;
_.T(function(n){if(n.nextAddress==1)return n.yield(G.JSC$23733_watchApi.playerApi,2);I=n.yieldResult;if(K=(Z=(R=_.D(c,xbx))==null?void 0:R.highlightedMenuItemKey)!=null?Z:"")(a=(m=I).highlightSettingsMenuItem)==null||a.call(m,K);if(q=(N=(O=_.D(c,xbx))==null?void 0:O.openMenuItemKey)!=null?N:"")(F=(w=I).openSettingsMenuItem)==null||F.call(w,q);_.Vp(n)})};var TDJ=_.mx("/youtube/app/watch/player_state","playerStateEntity");_.EM=function(G){_.JK.call(this);this.JSC$23736_watchApi=G;OHT(this)};
_.u(_.EM,_.JK);var eXy=function(G){switch(G){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},OHT=function(G){var c,I,R,Z,K;
_.T(function(m){if(m.nextAddress==1)return m.yield(G.JSC$23736_watchApi.playerApi,2);c=m.yieldResult;if(G.isDisposed())return m.return();I=function(a){G.onPlayerStateChange(a)};
R=function(a){G.onAdStateChange(a)};
Z=function(){G.onAdSkip()};
K=function(a){G.onVideoDataChange(a)};
c.addEventListener("onStateChange",I);c.addEventListener("onAdStateChange",R);c.addEventListener("onAdSkip",Z);c.addEventListener("onVideoDataChange",K);G.addOnDisposeCallback(function(){c.removeEventListener("onStateChange",I);c.removeEventListener("onAdStateChange",R);c.removeEventListener("onAdSkip",Z);c.removeEventListener("onVideoDataChange",K)});
_.Vp(m)})},NDo=function(G){var c=_.XZ(),I=c.dispatch;
a:switch(G.adsState){case -1:case 0:var R="ADS_STATE_NONE";break a;case 1:case 2:case 3:R="ADS_STATE_PLAYING";break a;default:R="ADS_STATE_UNKNOWN"}I.call(c,_.Le("playerStateEntity",TDJ,{key:TDJ,playerState:eXy(G.playerState),adsState:R,videoId:G.videoId}))};
_.EM.prototype.onPlayerStateChange=function(G){var c=this,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(c.JSC$23736_watchApi.playerApi,2);I=R.yieldResult;if(c.isDisposed())return R.return();c.playerState=G;c.videoId=I.getVideoData().video_id;NDo(c);_.Vp(R)})};
_.EM.prototype.onAdStateChange=function(G){this.adsState=G;NDo(this)};
_.EM.prototype.onAdSkip=function(){this.adsState=0;NDo(this)};
_.EM.prototype.onVideoDataChange=function(G){G.type==="newdata"&&(this.adsState=-1,NDo(this))};_.qmx=function(G){_.JK.call(this);var c=this;this.JSC$23740_watchApi=G;this.enableExternalPlaylistPanelInPlayer=_.v("delhi_web_player_use_external_playlist_panel");_.wH().resolve(_.u1).setPlayer(this.JSC$23740_watchApi.getElement("PLAYER"));G=this.JSC$23740_watchApi.subscribeToActiveChanged(function(I){c.onActiveChanged(I)});
this.addOnDisposeCallback(G);l4x(this)};
_.u(_.qmx,_.JK);var l4x=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return G.enableExternalPlaylistPanelInPlayer?R.yield(G.JSC$23740_watchApi.playerApi,2):R.return();c=R.yieldResult;I=function(){if(G.playlistPanelElement)G.playlistPanelElement.onToggleExpanded()};
c.addEventListener("onToggleExternalPlaylistPanel",I);G.addOnDisposeCallback(function(){c.removeEventListener("onToggleExternalPlaylistPanel",I)});
_.Vp(R)})};
_.qmx.prototype.onActiveChanged=function(G){var c=this,I=_.wH().resolve(_.u1),R=function(){wB5(c)};
G?(this.playlistPanelElement=this.JSC$23740_watchApi.getElement("PLAYLIST_PANEL"))?(I.setPlaylistComponent(this.playlistPanelElement),I.addEventListener("yt-playlist-data-updated",R),this.addOnDisposeCallback(function(){I.removeEventListener("yt-playlist-data-updated",R)}),wB5(this)):_.Ra(Error("lp")):(I.removeEventListener("yt-playlist-data-updated",R),I.cancelVideoSkip())};
var wB5=function(G){var c=_.wH().resolve(_.u1);G.JSC$23740_watchApi.provideRenderingData("PLAYLIST",c.getPlaylistData())};_.JC=function(G){_.JK.call(this);var c=this;this.JSC$23743_watchApi=G;this.onPageScroll=function(){c.scrollThrottle.fire();c.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.qx(this.onThrottledScroll,200,this);_.k9(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.qx(this.onMastheadThrottledScroll,50,this);_.k9(this,this.mastheadScrollThrottle);this.animation=new _.zT(function(I){c.JSC$23743_watchApi.getRoot().setScrollTop(I)});
G=_.RM(_.y4(),_.E3,function(){c.onFullscreenChanged()});
this.addOnDisposeCallback(G);F9_(this);nWN(this);this.onThrottledScroll()};
_.u(_.JC,_.JK);
_.JC.prototype.onFullscreenChanged=function(){var G=this,c=this.JSC$23743_watchApi.getRoot();!this.pageScrollElement&&c.pageScrollElement?(this.pageScrollElement=c.pageScrollElement,c.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){G.pageScrollElement&&G.pageScrollElement.removeEventListener("scroll",G.onPageScroll)})):this.pageScrollElement&&!c.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var F9_=function(G){window.addEventListener("scroll",G.onPageScroll);G.addOnDisposeCallback(function(){window.removeEventListener("scroll",G.onPageScroll)})},nWN=function(G){G.JSC$23743_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(c){a:{var I;
if(I=G.JSC$23743_watchApi.getRoot().contains(c)&&!G.animation.isAnimating()){I=c.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var R,Z,K=(c==null?void 0:(R=c.parentElement)==null?void 0:(Z=R.parentElement)==null?void 0:Z.id)==="fixed-secondary";I=!(I&&K)}if(I){if(_.v("kevlar_watch_scroll_manager_absolute_offset_killswitch"))R=c.offsetTop;else for(R=0,Z=c;Z!==null;)R+=Z.offsetTop,R-=Z.scrollTop,Z=Z.offsetParent;Z=R;R=Z-24;c=Z+c.offsetHeight+24;Z=G.JSC$23743_watchApi.getRoot().getPageScrollingElement();
I=G.JSC$23743_watchApi.getRoot().getScrollTop();K=I+Z.clientHeight-56;if(R<I+56)c=R-56;else if(c>K)c-=Z.clientHeight;else break a;G.scrollWatchTo(Math.max(0,c),!0)}}});
G.addOnDisposeCallback(function(){G.JSC$23743_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.JC.prototype.onThrottledScroll=function(){var G=_.y4(),c=G.dispatch,I=this.JSC$23743_watchApi.getRoot().getScrollTop();c.call(G,_.R6({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:I}}))};
_.JC.prototype.onMastheadThrottledScroll=function(){this.JSC$23743_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23743_watchApi.getRoot().getScrollTop())};
_.JC.prototype.scrollWatchTo=function(G,c){(c===void 0?0:c)?this.animation.start(this.JSC$23743_watchApi.getRoot().getScrollTop(),Math.max(0,G),500):this.JSC$23743_watchApi.getRoot().setScrollTop(G)};_.oWN=function(G){_.JK.call(this);var c=this;this.JSC$23746_watchApi=G;var I=this.JSC$23746_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){vWJ(c)}),R=this.JSC$23746_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){DYS(c)});
this.addOnDisposeCallback(function(){c.JSC$23746_watchApi.unsubscribeByKey(I);c.JSC$23746_watchApi.unsubscribeByKey(R)});
vWJ(this);DYS(this)};
_.u(_.oWN,_.JK);
var vWJ=function(G){var c,I,R,Z=(R=(c=G.JSC$23746_watchApi.getPlayerResponse())==null?void 0:(I=c.videoDetails)==null?void 0:I.title)!=null?R:"";G.JSC$23746_watchApi.dispatchEvent("yt-update-title",Z)},DYS=function(G){var c,I,R,Z,K,m,a,O=(a=((m=(c=G.JSC$23746_watchApi.getWatchNextResponse())==null?void 0:(I=c.contents)==null?void 0:(R=I.twoColumnWatchNextResults)==null?void 0:(Z=R.results)==null?void 0:(K=Z.results)==null?void 0:K.contents)!=null?m:[]).find(function(N){return!!N.videoPrimaryInfoRenderer}))==null?
void 0:a.videoPrimaryInfoRenderer;
(c=_.HY(O==null?void 0:O.title))&&G.JSC$23746_watchApi.dispatchEvent("yt-update-title",c)};_.uZ6=function(G){_.JK.call(this);this.JSC$23749_watchApi=G;UYx(this)};
_.u(_.uZ6,_.JK);var UYx=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$23749_watchApi.playerApi,2);c=R.yieldResult;I=function(){G.onYpcContentRequest()};
c.addEventListener("onYpcContentRequest",I);G.addOnDisposeCallback(function(){c.removeEventListener("onYpcContentRequest",I)});
_.Vp(R)})};
_.uZ6.prototype.onYpcContentRequest=function(){var G,c,I,R,Z,K=(G=this.JSC$23749_watchApi.getWatchNextResponse())==null?void 0:(c=G.contents)==null?void 0:(I=c.twoColumnWatchNextResults)==null?void 0:(R=I.secondaryResults)==null?void 0:(Z=R.secondaryResults)==null?void 0:Z.offerModule,m,a,O,N;G=(N=(O=(a=(m=K==null?void 0:K.episodeOfferModuleRenderer)!=null?m:K==null?void 0:K.movieOfferModuleRenderer)!=null?a:K==null?void 0:K.unlimitedOfferModuleRenderer)!=null?O:K==null?void 0:K.liveOfferModuleRenderer)!=
null?N:K==null?void 0:K.tvfilmOfferModuleRenderer;var q,w,F;K=(F=K==null?void 0:(q=K.tvfilmOfferModuleRenderer)==null?void 0:(w=q.actionButtons)==null?void 0:w.length)!=null?F:0;w=Math.max(K-1,0);var n,U,k;q=(k=G==null?void 0:(n=G.offerButton)==null?void 0:n.buttonRenderer)!=null?k:G==null?void 0:(U=G.actionButtons)==null?void 0:U[w].buttonRenderer;var p,M;(n=(M=(p=q==null?void 0:q.navigationEndpoint)!=null?p:q==null?void 0:q.serviceEndpoint)!=null?M:q==null?void 0:q.command)&&_.NC.instance.resolveCommand(n)};
}catch(e){_._DumpException(e)}
try{
var xYr,BD$,W9u;_.f4F=function(){var G=_.rx.clone(Jcr),c;return(new _.Lk(function(I,R){G.onSuccess=function(Z){_.qCb(Z)?I(new W9u(Z)):R(new _.iHd("Request failed, status="+_.bW(Z),"net.badstatus",Z))};
G.onError=function(Z){R(new _.iHd("Unknown request error","net.unknown",Z))};
G.onTimeout=function(Z){R(new _.iHd("Request timed out","net.timeout",Z))};
c=_.$6("//googleads.g.doubleclick.net/pagead/id",G)})).thenCatch(function(I){if(I instanceof _.tq){var R;
(R=c)==null||R.abort()}return _.$C(I)})};
_.rcF=function(G){a:{var c="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(c="EMBEDDED_PLAYER_MODE_PFL");var I=G.raw_embedded_player_response;if(!I&&(G=G.embedded_player_response))try{I=JSON.parse(G)}catch(Z){break a}if(I)b:for(var R in BD$)if(BD$[R]==I.embeddedPlayerMode){c=BD$[R];break b}}return c==="EMBEDDED_PLAYER_MODE_PFL"};
_.jsu=function(){if(_.v("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.GEp())return Error("wf");var G=_.H1("PLAYER_VARS",{});if(_.rx.get(G,"privembed",!1)=="1")return Error("xf");if(_.rcF(G))return Error("yf")};
xYr=function(G){switch(G){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.H0(G,"unknown result type")}};
_.tD0=function(G,c,I){c=_.I1U[c];I={detected:G===0,source:c.nmB,detectionResult:xYr(G),contentCpn:I};_.x7("biscottiBasedDetection",I);_.TTe.increment(c.nmB,G);c.pdF!==void 0&&_.Ch("CATSTAT",_.Gwr(G,c))};
_.hXd=function(G,c){var I={};I.key=G;I.value=c;return _.uhB().then(function(R){return new Promise(function(Z,K){try{var m=R.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(I);m.onsuccess=function(){Z()};
m.onerror=function(){K()}}catch(a){K(a)}})})};
_.CO$=function(){var G=_.DH("user_engagement_experiments_rate_limit_ms"),c=dY0.get("last-user-engagement-exp-trigger-timestamp");return!c||(0,_.Fa)()>=c+G?(dY0.set("last-user-engagement-exp-trigger-timestamp",(0,_.Fa)()),!0):!1};
_.mT=function(G,c,I,R,Z){c=c===void 0?null:c;I=I===void 0?null:I;R=R===void 0?null:R;Z=Z===void 0?null:Z;G={youThereEventType:G};I&&(G.lactThresholdMs=I.lactThresholdMs,G.mediaPosSec=I.promptDelaySec,G.lactServerRequestMs=I.lactServerRequestMs,G.triggerReason=I.triggerReason);Z!=null&&(G.renderingMediaPosSec=Math.round(Z));c||(c=_.k0());c&&(G.clientScreenNonce=c);R&&(G.clientPlaybackNonce=R);_.x7("youThere",G)};
BD$={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"};W9u=function(G){this.xhr=G};
_.iHd=function(G,c,I){_.G8.call(this,G+", errorCode="+c);this.errorCode=c;this.xhr=I;this.name="PromiseAjaxError"};
_.u(_.iHd,_.G8);var Jcr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var dY0=new _.gJ("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.EWu=function(G){return _.R6({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:G})};
}catch(e){_._DumpException(e)}
try{
var jb,YmR,cN6,IPN,RG_,ZdS,PDN,qnz,wIJ,Fw_,KwT,Gzx,T0_,aPz,DCx;_.gWG=function(){var G=window.location.hash;G.charAt(0)==="#"&&(G=G.charAt(1)==="!"?G.substring(2):G.substring(1));return _.PK(G)};
jb=function(G,c,I){var R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(c(),2);R=Z.yieldResult;I(R,G);_.Vp(Z)})};
YmR=function(){return _.T(function(G){return G.nextAddress==1?G.yield((_.jsu()!==void 0?_.$C(Error("zf")):_.f4F()).then(function(){return 1},function(c){if(c.message==="Biscotti id is disabled")return 3;
_.Ck("Failed fetching bid");return 0}),2):G.return(G.yieldResult)})};
cN6=function(){var G=_.cH("bDl5dnpwNnJ3M2JneXQtaGF2ZW4tZW1iZWQtcGxheWVyIw=="),c=_.cH("czRna2NrMjd5a2JhaWZyYW1lIw==");return document.querySelector(c+Gzx+G)?0:1};
IPN=function(){return _.BrB(_.p7)};
RG_=function(){return _.rJ8()===0?0:_.jvC()};
ZdS=function(){return _.CXB(_.mI8([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
PDN=function(){return _.MJf(KwT)};
_.QJT=function(G){_.T(function(c){switch(c.nextAddress){case 1:return c.yield(jb("b.f_",YmR,G),2);case 2:return c.yield(jb("j.s_",_.S6r,G),3);case 3:return c.yield(jb("r.s_",_.Ljr,G),4);case 4:return c.yield(jb("e.h_",PDN,G),5);case 5:if(!_.v("ab_det_sc_inj")){c.jumpTo(6);break}return c.yield(jb("s.i_",_.iiT,G),6);case 6:if(_.v("ab_deg_unex_thr")){c.jumpTo(8);break}return c.yield(jb("a.o_",_.JJi,G),8);case 8:if(_.v("ks_get_o_pp")){c.jumpTo(10);break}return c.yield(jb("g.o_",_.EeU,G),10);case 10:if(_.v("ks_det_gpbl")){c.jumpTo(12);
break}return c.yield(jb("p.i_",_.zzU,G),12);case 12:return c.yield(jb("f.i_",_.w$8,G),14);case 14:return c.yield(jb("a.b_",_.kl8,G),15);case 15:return c.yield(jb("p.m_",_.vef,G),16);case 16:if(!_.v("ab_det_el_h_v2")){c.jumpTo(17);break}return c.yield(jb("n.h_",ZdS,G),17);case 17:return c.yield(jb("o.p_",IPN,G),19);case 19:return c.yield(jb("e.i_",cN6,G),20);case 20:if(_.v("ab_det_apm"))return c.yield(jb("o.a_",RG_,G),0);c.jumpTo(0)}})};
_.mCN=function(G,c){G={videoId:G};c&&(G.playlistId=c);return G};
_.OdJ=function(){if(_.GEp()){var G=_.H1("PLAYER_VARS",{});if(_.rx.get(G,"privembed",!1)!="1"&&!_.rcF(G)){var c=function(){aPz=!0;"google_ad_status"in window?_.Ch("DCLKSTAT",1):_.Ch("DCLKSTAT",2)};
try{_.My(_.QEd,c)}catch(I){}T0_.push(_.dJ.addLowPriorityJob(function(){if(!(aPz||"google_ad_status"in window)){try{_.hLr(_.QEd.toString(),c)}catch(I){}aPz=!0;_.Ch("DCLKSTAT",3)}},5E3))}}};
_.eG5=function(G,c,I){I=I===void 0?!1:I;var R=Math.max(G.width,_.QDo);if(_.v("kevlar_watch_feed_big_thumbs")&&G.width>=1550-_.y7()&&G.height>=800)R-=_.NZz;else if(G.width>=_.zC){var Z=_.mqN+_.aqN+_.Vt;_.v("kevlar_watch_feed_big_thumbs")&&(Z=_.e25);R-=Z}else R-=_.mqN;R=Math.min(R,_.TZx);Z=240;I&&(Z=380);c<.5624||(!_.v("kevlar_watch_flexy_disable_small_window_sizing")&&(G.height<630&&G.width>=657||G.height>=630&&G.width>=_.zC&&G.width<1327)?Z=360:!_.v("kevlar_watch_flexy_disable_large_window_sizing")&&
G.height>=630&&G.width>=1327&&(Z=480));var K=Math.min(R*c,G.height-(56+_.Pxo+_.OYx));K=Math.max(K,Z);c<1?R=K/c:G.width>=_.zC&&(R=_.eG5(G,.5625,I).width);return new _.SB(Math.round(R),Math.round(K))};
_.N0o=function(G){var c=0;G.indexOf("h")!=-1&&(G=G.split("h"),c=G[0]*60*60,G=G[1]);G.indexOf("m")!=-1&&(G=G.split("m"),c=G[0]*60+c,G=G[1]);G.indexOf("s")!=-1?(G=G.split("s"),c=G[0]*1+c):c=G*1+c;return c};
_.lPR=function(){_.DH("service_worker_push_logged_out_prompt_watches")!=-1&&_.Z8("WatchCount").then(function(G){G>=100||_.hXd("WatchCount",G+1)})};
qnz=function(G){var c=G.externalVideoId||"";return c?G.isShortsEligible?"https://www.youtube.com/shorts/"+c:"https://www.youtube.com/watch?v="+c:""};
wIJ=function(G){var c=[];G.viewCount&&c.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:G.viewCount});G.likeCount&&c.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:G.likeCount});return c};
Fw_=function(G){var c,I,R={"@context":"https://schema.org","@type":"VideoObject",description:_.HY(G.description),duration:"PT"+(G.lengthSeconds||"0")+"S",embedUrl:G.embed?G.embed.iframeUrl:"",name:_.HY(G.title),thumbnailUrl:((c=G.thumbnail)==null?void 0:(I=c.thumbnails)==null?void 0:I.map(function(q){return q&&q.url||""}))||[],
uploadDate:G.publishDate};_.v("mweb_video_schema_id_killswitch")||(R["@id"]=qnz(G));c=wIJ(G);c.length&&(R.interactionStatistic=c);G.category&&(R.genre=G.category);G.ownerChannelName&&(R.author=G.ownerChannelName);G.liveBroadcastDetails&&(R.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:G.liveBroadcastDetails.startTimestamp,endDate:G.liveBroadcastDetails.endTimestamp}]);if(G.learningResource){G=G.learningResource;R["@type"]=["VideoObject","LearningResource"];var Z;if((Z=G.learningResourceType)==
null?0:Z.length)R.learningResourceType=G.learningResourceType[0];var K;if((K=G.educationalAlignment)==null?0:K.length)R.educationalAlignment={"@type":"AlignmentObject",targetName:G.educationalAlignment[0]};var m;if((m=G.educationalLevel)==null?0:m.length){Z=G.educationalLevel[0];var a;if((a=G.educationalLevelCountry)==null?0:a.length)Z+=" ("+G.educationalLevelCountry+")";R.educationalLevel=Z}var O,N;if(((O=G.learningResourceType)==null?0:O.length)&&G.learningResourceType[0]==="Problem walkthrough"&&
((N=G.problemDescriptions)==null?0:N.length))for(R.hasPart=[],a=_.Q(G.problemDescriptions),O=a.next();!O.done;O=a.next())Z=O.value,O=Z.problemDescriptionText,N=Z.startOffset,Z=Z.url,O&&N!==void 0&&Z&&R.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:O,text:O,startOffset:N,url:Z})}return R};
_.nCT=function(G){return _.R6({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:G}})};
KwT=[[["N2J0OTlpdWtqZXRvcHJpbWFyeSM=",null,null],[null,["eWFiNzIwOG04cGw4eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","dHNjMHZzaXVmeGZhc3R5bGUtc2NvcGUj"],null],["I3piNzRqczgzczl0bWFzdGhlYWQtYWQ=",["c2thcW10eDVucjk2eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM="],null],[null,["eTU2ZGd6N2Y5bG1keXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM=","YWRsNjI2cmphcWU4c3R5bGUtc2NvcGUj"],null],[null,["dXFiOXJxNHMxdTNreXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","Y3NubDUwemQwdGc5c3R5bGUtc2NvcGUj"],null],[null,["dHJyOWpudDRmdDVzeXRkLWFkLXNsb3QtcmVuZGVyZXIj"],
null]],[["eWVwOGs4ZHlvdnJvcGxheWVyLWFkcyM=",null,null]],[[null,null,"czRpc2o0dHFvbWgyeXRsci1iYW5uZXItY3RhLXJlbmRlcmVyIw=="]]];Gzx="#";T0_=[];aPz=!1;_.vCo=["engagement-panel-ads"];DCx=new _.vS("updateSentimentBarStateCommand");_.oCN=new _.vS("showSurveyCommand");_.x2=new _.vS("changeMarkersVisibilityCommand");var uPS,bdx,ANR,Lwy,sJx,tC;_.UCG=function(G,c){this.playerProvider_=G;this.actionSenderElement_=c;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.UCG.prototype.reset=function(){uPS(this);this.isUserPredictedAbsent_=!1};
uPS=function(G,c){!G.youThereData_||G.showWarningJob_||c!==void 0&&c||(_.mT("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.k0(),G.youThereData_,G.clientPlaybackNonce_),_.tg());_.dJ.cancelJob(G.showWarningJob_);G.showWarningJob_=0;_.dJ.cancelJob(G.showBlockingWarningJob_);G.showBlockingWarningJob_=0;_.dJ.cancelJob(G.pausePlaybackJob_);G.pausePlaybackJob_=0;G.youThereData_=null;G.clientPlaybackNonce_=void 0;G.inYouThereFlow_=!1};
_.kzz=function(G,c){var I,R,Z;_.T(function(K){if(K.nextAddress==1)return G.reset(),K.yield(G.playerProvider_().getPlayerPromise(),2);I=K.yieldResult;G.clientPlaybackNonce_=I.getVideoData().cpn;G.youThereData_=c.configData.youThereData;if(!G.youThereData_)return K.return();if(G.youThereData_.triggerReason&&G.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.CO$())return _.mT("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.k0(),G.youThereData_,G.clientPlaybackNonce_),K.return();R=G.youThereData_.promptDelaySec;
Z=I.getCurrentTime();G.showWarningJob_=_.dJ.addLowPriorityJob(function(){return _.T(function(m){G.showWarningJob_=0;return m.yield(bdx(G),0)})},Math.max(R-Z,0)*1E3);
_.Vp(K)})};
bdx=function(G){var c,I,R,Z,K,m;return _.T(function(a){if(a.nextAddress==1)return a.yield(G.playerProvider_().getPlayerPromise(),2);if(a.nextAddress!=3)return c=a.yieldResult,I=c.getCurrentTime(),a.yield(sJx(G),3);R=a.yieldResult;if(!R||!G.youThereData_)return a.return();if(_.v("check_user_lact_at_prompt_shown_time_on_web")&&(Z=parseInt(G.youThereData_.lactThresholdMs,10),_.wj()<Z))return _.mT("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.k0(),G.youThereData_,G.clientPlaybackNonce_),a.return();if(G.youThereData_.playbackPauseDelayMs<=
0)return Lwy(G),a.return();!_.v("external_fullscreen")&&(K=_.hO())&&(G.ignoreFullscreenExitUserActivity_=!0,_.dJ.addLowPriorityJob(function(){G.ignoreFullscreenExitUserActivity_=!1},2E3),_.dq(K));
G.youThereData_.showToastWarningPrompt&&(tC(G,G.youThereData_.showWarningActions),G.inYouThereFlow_=!0,_.mT("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.k0(),G.youThereData_,G.clientPlaybackNonce_,I),_.mT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.k0(),G.youThereData_,G.clientPlaybackNonce_,I));m=0;G.youThereData_.blockingPromptDelayMs&&(m=G.youThereData_.blockingPromptDelayMs);G.showBlockingWarningJob_=_.dJ.addLowPriorityJob(function(){return _.T(function(O){G.showBlockingWarningJob_=0;return O.yield(ANR(G),
0)})},m);
_.Vp(a)})};
ANR=function(G){var c,I,R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield(sJx(G),2);c=Z.yieldResult;if(!G.youThereData_)return Z.return();c&&(G.youThereData_.showBlockingWarningAction&&(_.mT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.k0(),G.youThereData_,G.clientPlaybackNonce_),(I=_.D(G.youThereData_.showBlockingWarningAction,_.RP))?tC(G,I.commands):tC(G,[G.youThereData_.showBlockingWarningAction]),G.inYouThereFlow_=!0),R=G.youThereData_.playbackPauseDelayMs,G.pausePlaybackJob_=
_.dJ.addLowPriorityJob(function(){return _.T(function(K){G.pausePlaybackJob_=0;return K.yield(Lwy(G),0)})},R));
_.Vp(Z)})};
Lwy=function(G){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(sJx(G),2);c=I.yieldResult;if(!G.youThereData_)return I.return();c&&(_.mT("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.k0(),G.youThereData_,G.clientPlaybackNonce_),tC(G,G.youThereData_.showPausedActions),G.inYouThereFlow_=!0);_.Vp(I)})};
_.UCG.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var G=_.D(this.youThereData_.userActiveDuringFlowAction,_.RP);G?tC(this,G.commands):tC(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.mT("YOU_THERE_EVENT_TYPE_LACT_RESET",_.k0(),this.youThereData_,this.clientPlaybackNonce_),_.tg());uPS(this,!0)}_.$Cz(this,!1)};
_.Snx=function(G){_.mT("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.k0(),G.youThereData_,G.clientPlaybackNonce_)};
sJx=function(G){var c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(G.playerProvider_().getPlayerPromise(),2);c=R.yieldResult;I=c.getPlayerState();return R.return(I==-1||I==1||I==3)})};
_.$Cz=function(G,c){var I;_.T(function(R){if(R.nextAddress==1){if(G.isUserPredictedAbsent_==c)return R.jumpTo(0);G.isUserPredictedAbsent_=c;return R.yield(G.playerProvider_().getPlayerPromise(),3)}I=R.yieldResult;I.setUserEngagement(c);c&&_.mT("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.k0(),G.youThereData_,G.clientPlaybackNonce_);_.Vp(R)})};
tC=function(G,c){if(_.v("handle_service_request_actions")||_.v("kevlar_youthere_service_endpoint_actions_killswitch"))_.cd(G.actionSenderElement_,c,G.actionSenderElement_);else{c=_.Q(c);for(var I=c.next();!I.done;I=c.next())I=I.value,I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.sendPost?_.Gs(G.actionSenderElement_,[I]):_.cd(G.actionSenderElement_,[I],G.actionSenderElement_)}};var pIN;var Mkf;var hC=function(){var G=_.J.apply(this,arguments)||this;G.systemIcons=_.v("kevlar_system_icons");G.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return G};
_.u(hC,_.J);hC.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var G=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(G=this.data.percentIfLiked||0,this.activated=!0):(G=this.data.percentIfIndifferent||0,this.activated=!1);_.Q1(this.hostElement).querySelector("#like-bar").style.width=G+"%"}};
hC.prototype.handleUpdateSentimentBarStateCommand=function(G){this.data&&this.set("data.likeStatus",_.D(G,DCx).likeStatus)};
hC.prototype.observeLikeStatus=hC.prototype.observeLikeStatus;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],hC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],hC.prototype,"activated",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],hC.prototype,"systemIcons",void 0);_.r([_.wD("data.likeStatus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hC.prototype,"observeLikeStatus",null);_.r([_.Jc({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],hC);
_.B(hC,"ytd-sentiment-bar-renderer",function(){if(Mkf!==void 0)return Mkf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Mkf=G},{mode:1});var VkT;var dO=function(){var G=_.J.apply(this,arguments)||this;G.small=!0;return G};
_.u(dO,_.J);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],dO.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dO.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],dO.prototype,"small",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],dO);
_.B(dO,"ytd-video-view-count-renderer",function(){if(VkT!==void 0)return VkT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return VkT=G},{mode:_.Qc("kevlar_poly_si_batch_j080")?1:2});var C_=function(){var G=_.J.apply(this,arguments)||this;G.infoFormattedStrings=[];G.wrapVideoActions=_.v("kevar_watch_wrap_video_actions");G.hideSentimentBar=_.v("kevlar_watch_hide_sentiment_bar");G.actionMap={};return G};
_.u(C_,_.J);_.P=C_.prototype;_.P.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.v("web_modern_buttons"),forceIconButton:!_.v("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.P.dataChanged=function(){_.v("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.P.computeInfoFormattedStrings=function(G){if(!G)return[];var c=[];G.dateText&&c.push(G.dateText);G.stationName&&c.push(G.stationName);G.rating&&c.push(G.rating);G.startEndTimeTemplate&&G.startTimeUtcMillis&&G.endTimeUtcMillis&&c.push(_.Cp(_.F__(_.HY(G.startEndTimeTemplate),Number(G.startTimeUtcMillis),Number(G.endTimeUtcMillis))));G.upNextProgramText&&c.push(G.upNextProgramText);return c};
_.P.scheduleInitialUpdatedMetadataRequest=function(){var G,c=(G=this.data)==null?void 0:G.updatedMetadataEndpoint;if(c){var I;G=Number((I=_.D(c,_.g4B))==null?void 0:I.initialDelayMs);I=isNaN(G)?250:G;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),I)}};
_.P.setSentimentBarWidth=function(){var G=this;_.O$(this,function(){var c=_.Q1(G.hostElement).querySelector("ytd-menu-renderer");if(c){c=c.topLevelButtons;for(var I=0,R=0;R<c.length;R++){var Z=c[R],K=G.get("toggleButtonSupportedData.toggleButtonIdData.id",Z.data);if(K==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||K==="TOGGLE_BUTTON_ID_TYPE_LIKE")I+=Z.clientWidth+8;else break}I&&(G.sentiment.style.width=I-8+" px")}})};
_.P.fetchUpdatedMetadata=function(G){var c;G&&(c={continuation:G});var I;(G=(I=this.data)==null?void 0:I.updatedMetadataEndpoint)&&_.wH().resolve(_.n4).resolveCommand(G,{form:Object.assign({},c,{element:this.hostElement})})};
_.P.onYtServiceRequestSent=function(G,c){c.endpoint&&_.D(c.endpoint,_.m1)&&(this.hasUpdateSentimentBarStateCommands()&&!_.v("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.D(c.endpoint,_.m1).status),this.setSentimentBarWidth())};
_.P.hasUpdateSentimentBarStateCommands=function(){var G,c,I,R,Z=(R=(G=this.data)==null?void 0:(c=G.videoActions)==null?void 0:(I=c.menuRenderer)==null?void 0:I.topLevelButtons)!=null?R:[];G=_.Q(Z);for(c=G.next();!c.done;c=G.next()){c=c.value;Z=R=I=void 0;var K=(I=c.toggleButtonRenderer)==null?void 0:(R=I.toggleButtonSupportedData)==null?void 0:(Z=R.toggleButtonIdData)==null?void 0:Z.id;if(K==="TOGGLE_BUTTON_ID_TYPE_LIKE"||K==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){R=I=void 0;c=(R=_.D((I=c.toggleButtonRenderer)==
null?void 0:I.defaultServiceEndpoint,_.RP))==null?void 0:R.commands;if(!c)break;c=_.Q(c);for(I=c.next();!I.done;I=c.next())if(_.D(I.value,DCx))return!0}}return!1};
_.P.onYtServiceRequestCompleted=function(G,c){var I;(G=(I=c.data)==null?void 0:I.loggingDirectives)&&_.yRi(_.DP(),G);this.get("continuation.timedContinuationData",c.data)&&this.data&&this.data.updatedMetadataEndpoint&&(c=c.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,c.continuation),c.timeoutMs))};
_.P.computeHasDateText=function(G){return!!G&&!!G.dateText};
_.Nh.Object.defineProperties(C_.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R;return!((R=(G=this.data)==null?void 0:(c=G.videoActions)==null?void 0:(I=c.menuRenderer)==null?void 0:I.flexibleItems)==null||!R.length)}}});
C_.prototype.onYtServiceRequestCompleted=C_.prototype.onYtServiceRequestCompleted;C_.prototype.onYtServiceRequestSent=C_.prototype.onYtServiceRequestSent;C_.prototype.dataChanged=C_.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],C_.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.$r.YtTaskEmitterBehavior),_.h("design:type",Object)],C_.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],C_.prototype,"data",void 0);_.r([_.E({computed:"computeInfoFormattedStrings(data)"}),_.h("design:type",Array)],C_.prototype,"infoFormattedStrings",void 0);
_.r([_.E({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],C_.prototype,"hasDateText",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],C_.prototype,"wrapVideoActions",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],C_.prototype,"hideSentimentBar",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],C_.prototype,"flexMenuEnabled",null);
_.r([_.nH("#sentiment"),_.h("design:type",Object)],C_.prototype,"sentiment",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C_.prototype,"dataChanged",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],C_.prototype,"onYtServiceRequestSent",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],C_.prototype,"onYtServiceRequestCompleted",null);
_.B(C_,"ytd-video-primary-info-renderer",function(){if(pIN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);pIN=G}G=pIN;return G},{mode:1});var zGy;var HZ=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.u(HZ,_.J);_.P=HZ.prototype;_.P.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.P.dataChanged=function(){var G;this.descriptionToggled=!((G=this.data)==null||!G.defaultExpanded);var c;this.collapsed=this.descriptionAlwaysCollapsed||!((c=this.data)==null?0:c.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.qj(110509);this.showLessClientVe=_.qj(110510);G=_.k0();c=_.u6();G&&c&&_.i8(G,c,[this.showMoreClientVe,this.showLessClientVe])};
_.P.onYtExpanderMoreTapped=function(){var G,c=(G=this.data)==null?void 0:G.showMoreCommand;c&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(c);(G=_.k0())&&this.showMoreClientVe&&_.jW(G,this.showMoreClientVe)};
_.P.onYtExpanderLessTapped=function(){var G=_.k0();G&&this.showLessClientVe&&_.jW(G,this.showLessClientVe);var c;(G=(c=this.data)==null?void 0:c.showLessCommand)&&this.componentBehavior.resolveCommand(G)};
_.P.handleUpdateDateTextAction=function(G){this.data&&this.data.dateText&&this.set("data.dateText",_.D(G,_.Yfz).dateText)};
_.P.handleUpdateDescriptionAction=function(G){if(G=_.D(G,_.HIA))G.isEmpty||!G.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Vc(G.description)):this.set("data.description",G.description)};
_.P.onYtChangeEngagementPanelVisibilityAction=function(G){if(_.v("web_structured_description_show_more")||_.v("web_engagement_panel_open_description")){var c,I=(c=_.D(G,_.HqT))==null?void 0:c.targetId,R;G=((R=_.D(G,_.HqT))==null?void 0:R.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";I==="engagement-panel-structured-description"&&G&&(this.descriptionToggled=!0)}};
_.P.updateCollapsedFromBinding=function(G){this.collapsed=G.detail.value};
_.P.updateDescriptionToggledFromBinding=function(G){this.descriptionToggled=G.detail.value};
_.P.updateCanCollapseFromBinding=function(G){this.canCollapse=G.detail.value};
_.Nh.Object.defineProperties(HZ.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer;return!!I&&!!I.rows&&I.rows.length>I.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
HZ.prototype.onYtExpanderLessTapped=HZ.prototype.onYtExpanderLessTapped;HZ.prototype.onYtExpanderMoreTapped=HZ.prototype.onYtExpanderMoreTapped;HZ.prototype.dataChanged=HZ.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],HZ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],HZ.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],HZ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],HZ.prototype,"collapsed",void 0);_.r([_.E(),_.h("design:type",Boolean)],HZ.prototype,"descriptionToggled",void 0);
_.r([_.E(),_.h("design:type",Boolean)],HZ.prototype,"canCollapse",void 0);_.r([_.E(),_.h("design:type",Object)],HZ.prototype,"subscribeButtonData",void 0);_.r([_.E(),_.h("design:type",Number)],HZ.prototype,"descriptionCollapsedHeight",void 0);_.r([_.E(),_.h("design:type",Object)],HZ.prototype,"structuredDescriptionContentRenderer",void 0);_.r([_.E({value:function(){return _.v("web_watch_description_always_collapsed")}}),
_.h("design:type",Boolean)],HZ.prototype,"descriptionAlwaysCollapsed",void 0);_.r([_.nH("#description"),_.h("design:type",HTMLDivElement)],HZ.prototype,"description",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HZ.prototype,"dataChanged",null);_.r([_.qY("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HZ.prototype,"onYtExpanderMoreTapped",null);
_.r([_.qY("yt-expander-less-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HZ.prototype,"onYtExpanderLessTapped",null);_.r([_.A("data.metadataRowContainer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],HZ.prototype,"metadataCollapsible",null);_.r([_.A("data","structuredDescriptionContentRenderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],HZ.prototype,"hasInlineStructuredDescription",null);
_.r([_.A("data.attributedDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],HZ.prototype,"hasAttributedDescription",null);_.r([_.A("hasInlineStructuredDescription","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],HZ.prototype,"loadStructuredDescription",null);_.r([_.A("data","structuredDescriptionContentRenderer","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],HZ.prototype,"showInlineStructuredDescription",null);
_.r([_.A("data","hasInlineStructuredDescription","metadataCollapsible"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],HZ.prototype,"descriptionAlwaysCollapsible",null);
_.B(HZ,"ytd-video-secondary-info-renderer",function(){if(zGy===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden$="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);zGy=G}G=zGy;return G},{mode:2});var EC5;var XV=function(){return _.J.apply(this,arguments)||this};
_.u(XV,_.J);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:_.v("web_modern_buttons"),forceIconButton:!_.v("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
XV.prototype.activate=function(G){G.appendTo(this.player);G.getPlayerPromise().then(function(c){c.setMinimized(!0)});
this.active=!0};
XV.prototype.deactivate=function(){var G=this.player.firstElementChild;G.getPlayerPromise().then(function(c){c.setMinimized(!1)});
this.active=!1;return G};
XV.prototype.onScrollUpTap=function(){var G=_.wH().resolve(_.I9).getCurrentPage();G&&G.setScrollTop(0)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],XV.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],XV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],XV.prototype,"active",void 0);
_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.h("design:type",Boolean)],XV.prototype,"darkLaunch",void 0);_.r([_.nH("#player"),_.h("design:type",HTMLDivElement)],XV.prototype,"player",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],XV);
_.B(XV,"ytd-miniplayer-bar-renderer",function(){if(EC5!==void 0)return EC5;var G=document.createElement("template");_.b(G,'\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');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return EC5=G},{mode:1});_.R1(_.W(function(G){var c=_.mX("script");_.xs(function(){var I;if(I=JSON)I=Fw_(G.data()),I=_.Qp(JSON.stringify(I).replace(/</g,"\\u003C"));var R=G.data(),Z=_.HY(R.title).trim().length===0,K=!R.publishDate||R.publishDate.trim().length===0,m,a,O,N,q=!((m=R.thumbnail)==null?0:(a=m.thumbnails)==null?0:a.length)||!((O=R.thumbnail)==null?0:O.thumbnails[0].url)||((N=R.thumbnail)==null?void 0:N.thumbnails[0].url.trim().length)===0;c.value&&I&&!(Z||K||q)&&_.aE(c.value,I)},"Vy9K7b");
return _.e("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.e("script",{el:c,type:"application/ld+json"}))},"So"),"player-microformat-renderer",{props:{data:_.G9}});
}catch(e){_._DumpException(e)}
try{
var k1z,ssR,Acy;_.bHz=function(G){return G.watch.watchWindowSize};
k1z=function(G,c){var I=document.querySelector(G);I?c(I):setTimeout(function(){k1z(G,c)},1E3)};
ssR=function(G,c,I,R){if(G.isLockupToWatchTransitionEnabled){if(c){var Z={};Z=(Z["watch-next-appears"]="player-watch-next-loaded",Z);Z["lockup-to-watch"]=G.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";G.viewTransitionCoordinator.registerElement(c,Z)}I&&(c={},G.viewTransitionCoordinator.registerElement(I,(c["lockup-to-watch"]="below-lockup-to-watch",c["watch-next-appears"]="below-watch-next-loaded",c)));R&&(I={},G.viewTransitionCoordinator.registerElement(R,
(I["watch-next-appears"]="secondary-watch-next-loaded",I)))}};
_.L95=function(G){return _.R6({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:G}})};
Acy=new _.vS("webWatchNextResponseExtensionData");var Smf=function(G){_.JK.call(this);var c=this;this.JSC$23753_watchApi=G;this.observer=null;var I=this.JSC$23753_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$Yx(c)});
this.addOnDisposeCallback(function(){c.JSC$23753_watchApi.unsubscribeByKey(I);c.observer&&(c.observer.disconnect(),c.observer=null)});
$Yx(this)};
_.u(Smf,_.JK);
var $Yx=function(G){var c,I,R,Z,K;_.T(function(m){if(m.nextAddress==1){G.observer&&(G.observer.disconnect(),G.observer=null);c=G.JSC$23753_watchApi.getWatchNextResponse();if(!c)return m.return();I=_.D(c,Acy);return((R=I)==null?0:R.enableCreatorChatbot)&&I.creatorChannelId?_.v("enable_creator_chatbot_link_out")?m.yield((0,_.OsU)("NSzT5"),6):m.yield((0,_.OsU)("NSzT5"),5):m.jumpTo(0)}if(m.nextAddress!=6)return Z=_.pB5,Z(I.creatorChannelId),k1z("ytd-watch-metadata",function(a){G.observer=new MutationObserver(function(){var O,
N;(O=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(N=O.closest("yt-button-view-model.ytd-menu-renderer"))==null||N.remove()});
G.observer.observe(a,{childList:!0,subtree:!0})}),m.jumpTo(0);
K=_.MDx;K(I.creatorChannelId);_.Vp(m)})};var WZ=function(G){_.JK.call(this);this.JSC$23757_watchApi=G;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;VDf(this)};
_.u(WZ,_.JK);var VDf=function(G){_.T(function(c){if(c.nextAddress==1)return c.yield(zXx(G),2);EWy(G);_.Vp(c)})},zXx=function(G){var c,I,R,Z,K,m,a,O,N;
return _.T(function(q){if(q.nextAddress==1)return q.yield(G.JSC$23757_watchApi.playerApi,2);c=q.yieldResult;G.JSC$23757_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){Jc6(G)});
G.JSC$23757_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){G.isShelfVisible?W9y(G):iA(G)});
I=_.y4().subscribe(function(){G.isTheaterMode=_.z9(_.y4().getState());G.isTheaterMode?iA(G):iHz(G)});
R=G.JSC$23757_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){EWy(G)});
Z=function(w){G.onCueRangeEnter(w)};
c.addEventListener("onCueRangeEnter",Z);K=function(w){G.onCueRangeExit(w)};
c.addEventListener("onCueRangeExit",K);m=function(){G.isSeeking=!0};
c.addEventListener("SEEK_TO",m);a=function(){G.onSeekComplete()};
c.addEventListener("SEEK_COMPLETE",a);O=function(){G.onAdStart()};
c.addEventListener("onAdStart",O);N=function(){G.onAdComplete()};
c.addEventListener("onAdComplete",N);G.addOnDisposeCallback(function(){I();G.JSC$23757_watchApi.unsubscribeByKey(R);c.removeEventListener("onCueRangeEnter",Z);c.removeEventListener("onCueRangeExit",K);c.removeEventListener("SEEK_TO",m);c.removeEventListener("SEEK_COMPLETE",a);c.removeEventListener("onAdStart",O);c.removeEventListener("onAdComplete",N)});
_.Vp(q)})},f4N=function(G){var c,I,R,Z,K,m,a,O,N;
return(K=(c=G.contents)==null?void 0:(I=c.twoColumnWatchNextResults)==null?void 0:(R=I.results)==null?void 0:(Z=R.results)==null?void 0:Z.contents)==null?void 0:(m=K.find(function(q){var w,F,n;return(w=q.itemSectionRenderer)==null?void 0:(F=w.contents)==null?void 0:(n=F[0])==null?void 0:n.shoppingTimelyShelfViewModel}))==null?void 0:(a=m.itemSectionRenderer)==null?void 0:(O=a.contents)==null?void 0:(N=O[0])==null?void 0:N.shoppingTimelyShelfViewModel},EWy=function(G){var c;
_.T(function(I){if(I.nextAddress==1)return(c=G.JSC$23757_watchApi.getWatchNextResponse())?I.yield(Jc6(G),2):I.return();G.shoppingTimelyShelfViewModel=f4N(c);BDx(G);rcN(G);_.Vp(I)})},BDx=function(G){var c,I=(c=G.shoppingTimelyShelfViewModel)==null?void 0:c.offerIdToVariants;
I&&(c=I.filter(function(R){return R.key&&R.value}).map(function(R){return[R.key,
R.value]}),G.variantsMap=new Map(c))},rcN=function(G){var c,I,R,Z,K,m;
_.T(function(a){if(a.nextAddress==1)return(I=(c=G.shoppingTimelyShelfViewModel)==null?void 0:c.cueRanges)?a.yield(G.JSC$23757_watchApi.playerApi,2):a.return();R=a.yieldResult;G.cueRanges=I;Z=_.Q(I);for(K=Z.next();!K.done;K=Z.next())m=K.value,m.startTime!==void 0&&m.endTime!==void 0&&m.id!==void 0&&R.addCueRange("shopping_timely_shelf"+m.id,jsy(m.startTime),jsy(m.endTime));_.Vp(a)})},jsy=function(G){return Number(G.seconds||0)+(G.nanos||0)/1E9};
WZ.prototype.onCueRangeEnter=function(G){if(G.startsWith("shopping_timely_shelf")&&(this.activeCueId=G,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){G=G.substring(21);var c,I,R=(c=this.variantsMap)==null?void 0:(I=c.get(G))==null?void 0:I.shelf;R&&(this.JSC$23757_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",R),W9y(this))}};
WZ.prototype.onCueRangeExit=function(G){G.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||iA(this))};
WZ.prototype.onSeekComplete=function(){this.isSeeking=!1;iHz(this)};
var W9y=function(G){G.shoppingTimelyShelfViewModel&&(G.isShelfVisible=!0,_.RD.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},iA=function(G){G.shoppingTimelyShelfViewModel&&G.isShelfVisible&&(G.isShelfVisible=!1,_.RD.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},Jc6=function(G){var c,I,R,Z,K;
return _.T(function(m){if(m.nextAddress==1)return m.yield(G.JSC$23757_watchApi.playerApi,2);c=m.yieldResult;if(G.cueRanges)for(I=_.Q(G.cueRanges),R=I.next();!R.done;R=I.next())Z=R.value,Z.id&&(K="shopping_timely_shelf"+Z.id,c.removeCueRange(K));G.JSC$23757_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});iA(G);G.shoppingTimelyShelfViewModel=void 0;G.cueRanges=void 0;G.variantsMap=void 0;G.isSeeking=!1;G.activeCueId=void 0;_.Vp(m)})};
WZ.prototype.onAdStart=function(){this.isAdPlaying=!0;iA(this)};
WZ.prototype.onAdComplete=function(){this.isAdPlaying=!1;iHz(this)};
var iHz=function(G){if(G.activeCueId)G.onCueRangeEnter(G.activeCueId);else iA(G)};var COx=function(G){_.JK.call(this);var c=this;this.JSC$23764_watchApi=G;G=_.RM(_.y4(),_.Q8T,function(){xY6(c)});
this.addOnDisposeCallback(G);G=_.RM(_.y4(),_.bHz,function(){xY6(c)});
this.addOnDisposeCallback(G);tDf(this);hXT(this);dYf()};
_.u(COx,_.JK);var tDf=function(G){var c=function(R){_.y4().dispatch(_.n7o(R.matches))},I=window.matchMedia("(max-width: "+(999+_.y7())+"px)");
I.addListener(c);G.addOnDisposeCallback(function(){I.removeListener(c)});
c(I)},hXT=function(G){G.JSC$23764_watchApi.registerActionHandler("yt-window-resized",function(){dYf()});
G.addOnDisposeCallback(function(){G.JSC$23764_watchApi.unregisterActionHandler("yt-window-resized")})},dYf=function(){var G=_.nE();
_.y4().dispatch(_.R6({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:G.width,height:G.height}}}))},xY6=function(G){var c;
_.T(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23764_watchApi.playerApi,2);c=I.yieldResult;c.setSize(NaN,NaN);_.Vp(I)})};var HH6=function(G){_.JK.call(this);var c=_.wH().resolve(_.mk);ssR(c,G.getElement("PLAYER_CONTAINER"),G.getElement("BELOW_THE_PLAYER"),G.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var I=G.getElement("PLAYER_CONTAINER"),R=G.getElement("BELOW_THE_PLAYER"),Z=G.getElement("SECONDARY");c.isLockupToWatchTransitionEnabled&&(I&&_.jR(c.viewTransitionCoordinator,I),R&&_.jR(c.viewTransitionCoordinator,R),Z&&_.jR(c.viewTransitionCoordinator,Z))})};
_.u(HH6,_.JK);_.f_=function(G){_.TA.call(this);var c=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return c.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){c.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.u(_.f_,_.TA);_.P=_.f_.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(G){return this.rootElement.getElement(G)};
_.P.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(G,c){var I=this;if(_.v("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.KY(_.RD.getInstance(),(R[G]=c,R),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),R={},_.KY(_.RD.getInstance(),(R[G]=function(){var Z=_.Hy.apply(0,arguments);return(I.actionHandlers.get(G)||[]).map(function(K){return K.apply(null,_.jn(Z))})},R),this.getRoot())),this.actionHandlers.get(G).push(c)};
_.P.unregisterActionHandler=function(G){if(_.v("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.PN(_.RD.getInstance(),(c[G]=!0,c),this.getRoot())}else(c=this.actionHandlers.get(G))?(c.pop(),c.length===0&&(c={},_.PN(_.RD.getInstance(),(c[G]=!0,c),this.getRoot()),this.actionHandlers.delete(G))):_.Ck(new _.iW("Attempted to unregister an action handler which is not registered.",G))};
_.P.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.S00(this.rootElement.pageDisposeJobs,G)};
_.P.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.rb(this.rootElement.pageDisposeJobs,G)};
_.P.dispatchEvent=function(G,c){_.Xl(this.rootElement,G,c)};
_.P.provideRenderingData=function(G,c){this.rootElement.provideRenderingData(G,c)};
_.P.scrollWatchTo=function(G,c){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(G,c)};
_.P.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.O$(G,function(){if(G&&G.firstElementChild){var c=G.querySelector(".html5-video-player");c&&(_.z5(_.wH().resolve(_.uf)),c.focus())}else _.Ck(Error("mp"))})};
_.P.subscribeToActiveChanged=function(G,c){c=c===void 0?!0:c;var I=_.RM(_.y4(),_.NJz,function(R){G(R)});
c&&G(_.NJz(_.y4().getState()));return I};
_.P.isActive=function(){return _.NJz(_.y4().getState())};
_.P.onAttached=function(){var G=_.v("external_fullscreen");_.v("use_unified_flag_accessor")&&(G=_.wH().resolve(_.yI7).retriever.getFlag(_.E$9));(G||_.XG("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var XBT=function(G){return G.getRoot().is==="ytd-watch-flexy"||G.getRoot().is==="ytd-watch-grid"},BZ=function(G){return G.getRoot().is==="ytd-watch-fixie"};
_.f_.prototype.initPersistentModules=function(){if(BZ(this)||XBT(this)&&_.v("kevlar_watch_flexy_theater_manager")){var G=new _.Hpz(this);_.k9(this,G)}G=new _.Jiy(this);_.k9(this,G);G=new _.Sb(this);_.k9(this,G);G=new _.pHS(this);_.k9(this,G);G=new _.EM(this);_.k9(this,G);G=new _.p_(this);_.k9(this,G);if(BZ(this)||XBT(this)&&_.v("kevlar_watch_flexy_playlist_manager"))G=new _.qmx(this),_.k9(this,G);_.v("web_thumbnail_to_watch_transition")&&(G=new HH6(this),_.k9(this,G))};
_.f_.prototype.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new _.JC(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.gaN(this)),_.v("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new WZ(this)),this.activeModules.push(new _.C86(this)),BZ(this)&&this.activeModules.push(new COx(this)),this.activeModules.push(new _.oWN(this)),this.activeModules.push(new _.txx(this)),(BZ(this)||_.v("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.YCT(this)),this.activeModules.push(new _.ZH6(this)),(BZ(this)||_.v("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.uZ6(this)),(BZ(this)||_.v("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.TnN(this)),_.Rs("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.qU5(this),this.activeModules.push(this.watchCinematicManager)),_.v("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.mYT(this)),_.v("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.Vx6(this)),G=_.v("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.v("kevlar_watch_flexy_comments_manager")&&!G&&this.activeModules.push(new _.sIf(this)),_.v("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.NLG(this)),this.activeModules.push(new _.IbG(this)),this.activeModules.push(new _.G1o(this)),_.v("web_enable_timely_actions")&&this.activeModules.push(new _.PuR(this)),_.v("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.AX5(this)),_.v("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.vVN(this)),_.v("web_fullscreen_components")&&this.activeModules.push(new _.ZpG(this)),_.v("web_player_rtr_ctrls")&&this.activeModules.push(new _.S4R(this)),(_.v("enable_creator_chatbot")||_.v("enable_creator_chatbot_link_out"))&&this.activeModules.push(new Smf(this))):(_.Oe(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.f_.prototype.disposeInternal=function(){_.TA.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Nh.Object.defineProperties(_.f_.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var ILN,Gj,RYT,ZS6,PR6,Qnx,Kr6,mwS;ILN=function(){var G=_.N2();G.info||(G.info={});return G.info};
Gj=function(G){return Math.round(_.FL()+G)};
RYT=function(){var G;if(_.v("csi_use_performance_navigation_timing")){var c,I,R,Z=_.wU==null?void 0:(G=_.wU.getEntriesByType)==null?void 0:(c=G.call(_.wU,"navigation"))==null?void 0:(I=c[0])==null?void 0:(R=I.toJSON)==null?void 0:R.call(I);Z?(Z.requestStart=Gj(Z.requestStart),Z.responseEnd=Gj(Z.responseEnd),Z.redirectStart=Gj(Z.redirectStart),Z.redirectEnd=Gj(Z.redirectEnd),Z.domainLookupEnd=Gj(Z.domainLookupEnd),Z.connectStart=Gj(Z.connectStart),Z.connectEnd=Gj(Z.connectEnd),Z.responseStart=Gj(Z.responseStart),
Z.secureConnectionStart=Gj(Z.secureConnectionStart),Z.domainLookupStart=Gj(Z.domainLookupStart),Z.isPerformanceNavigationTiming=!0,G=Z):G=_.wU.timing}else G=_.v("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.wU.timing)):_.wU.timing;return G};
ZS6=function(){if(_.wU.getEntriesByType){var G=_.wU.getEntriesByType("paint");if(G=_.Mf(G,function(I){return I.name==="first-paint"}))return Gj(G.startTime)}var c;
_.v("csi_use_performance_navigation_timing")?c=_.wU.getEntriesByType("first-paint")[0].startTime:c=_.wU.timing.msFirstPaint;return c?Math.max(0,c):0};
PR6=function(){var G=window.location.protocol,c=_.wU.getEntriesByType("resource");c=_.qO(c,function(I){return I.name.indexOf(G+"//fonts.gstatic.com/s/")===0});
(c=Kr6(c,function(I,R){return R.duration>I.duration?R:I}))&&c.startTime>0&&c.responseEnd>0&&(_.DS("wffs",Gj(c.startTime)),_.DS("wffe",Gj(c.responseEnd)))};
Qnx=function(G,c){G=document.querySelector(G);if(!G)return!1;var I="",R=G.nodeName;R==="SCRIPT"?(I=G.src,I||(I=G.getAttribute("data-timing-href"))&&(I=window.location.protocol+I)):R==="LINK"&&(I=G.href);_.KT(document)&&G.setAttribute("nonce",_.KT(document));return I?(G=_.wU.getEntriesByName(I))&&G[0]&&(G=G[0],I=_.FL(),_.DS("rsf_"+c,I+Math.round(G.fetchStart)),_.DS("rse_"+c,I+Math.round(G.responseEnd)),G.transferSize!==void 0&&G.transferSize===0)?!0:!1:!1};
_.aLo=function(G,c){_.gK(function(){_.q2("").info.actionType=G;c&&_.Ch("TIMING_AFT_KEYS",c);_.Ch("TIMING_ACTION",G);var I=_.tMB(_.H1("TIMING_INFO",{}));Object.keys(I).length>0&&_.oP(I);I={isNavigation:!0,actionType:_.ppg(_.H1("TIMING_ACTION"))};var R=_.H1("PREVIOUS_ACTION");R&&(I.previousAction=_.ppg(R));if(R=_.H1("CLIENT_PROTOCOL"))I.httpProtocol=R;if(R=_.H1("CLIENT_TRANSPORT"))I.transportProtocol=R;(R=_.k0())&&R!=="UNDEFINED_CSN"&&(I.clientScreenNonce=R);R=_.xeb();if(R===1||R===-1)I.isVisible=!0;
R=_.uRb().loadType==="cold";var Z=ILN();R||(R=Z.yt_lt==="cold");if(R){I.loadType="cold";R=ILN();Z=RYT();var K=_.FL(),m=_.H1("CSI_START_TIMESTAMP_MILLIS",0);m>0&&!_.v("embeds_web_enable_csi_start_override_killswitch")&&(K=m);K&&(_.DS("srt",Z.responseStart),R.prerender!==1&&_.Jjp(K));R=ZS6();R>0&&_.DS("fpt",R);R=RYT();R.isPerformanceNavigationTiming&&_.oP({performanceNavigationTiming:!0},void 0);_.DS("nreqs",R.requestStart,void 0);_.DS("nress",R.responseStart,void 0);_.DS("nrese",R.responseEnd,void 0);
R.redirectEnd-R.redirectStart>0&&(_.DS("nrs",R.redirectStart,void 0),_.DS("nre",R.redirectEnd,void 0));R.domainLookupEnd-R.domainLookupStart>0&&(_.DS("ndnss",R.domainLookupStart,void 0),_.DS("ndnse",R.domainLookupEnd,void 0));R.connectEnd-R.connectStart>0&&(_.DS("ntcps",R.connectStart,void 0),_.DS("ntcpe",R.connectEnd,void 0));R.secureConnectionStart>=_.FL()&&R.connectEnd-R.secureConnectionStart>0&&(_.DS("nstcps",R.secureConnectionStart,void 0),_.DS("ntcpe",R.connectEnd,void 0));_.wU&&"getEntriesByType"in
_.wU&&PR6();R=[];if(document.querySelector&&_.wU&&_.wU.getEntriesByName)for(var a in mwS)mwS.hasOwnProperty(a)&&(Z=mwS[a],Qnx(a,Z)&&R.push(Z));if(R.length>0)for(I.resourceInfo=[],a=_.Q(R),R=a.next();!R.done;R=a.next())I.resourceInfo.push({resourceCache:R.value})}_.oP(I);I=_.l8();I.preLoggedGelInfos||(I.preLoggedGelInfos=[]);a=I.preLoggedGelInfos;I=_.kEU();R=void 0;for(Z=0;Z<a.length;Z++)if(K=a[Z],K.loadType){R=K.loadType;break}if(_.uRb().loadType==="cold"&&(I.loadType==="cold"||R==="cold")){R=_.bVf();
Z=_.l8();Z=Z.gelTicks?Z.gelTicks:Z.gelTicks={};for(var O in R)if(!(O in Z))if(typeof R[O]==="number")_.DS(O,_.UC(O));else if(_.v("log_repeated_ytcsi_ticks"))for(K=_.Q(R[O]),m=K.next();!m.done;m=K.next())m=m.value,_.DS(O.slice(1),m);O={};R=!1;a=_.Q(a);for(Z=a.next();!Z.done;Z=a.next())R=Z.value,_.$0(I,R),_.$0(O,R),R=!0;R&&_.oP(O)}_.deT(!0);O=_.H1("TIMING_ACTION");_.Yc("ytglobal.timingready_")&&O&&_.II8()&&_.hu0()&&_.rjO()})()};
Kr6=function(G,c){return Array.prototype.reduce.call(G,c,{duration:0})};
mwS={'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 TFS={};TFS.YtVisibilityRootBehavior=[_.pV9.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.TB(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.H1("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var G=_.H1("INNERTUBE_CLIENT_NAME")!=="WEB";_.v("kevlar_use_vimio_behavior")&&G&&_.YSV()}}];_.co={};_.co.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(G){G.detail.contextProvider=this;G.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
TFS.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.HU();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(G){var c=this;this.pageCount+=1;_.v("kevlar_use_vimio_behavior")&&(_.H1("INNERTUBE_CLIENT_NAME")==="WEB"?_.dJ.addJob(function(){c.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(G)},
loadPage_:function(G){this.data=G},
ytPageBehaviorActiveObserver_:function(G){var c=this;_.v("kevlar_use_vimio_behavior")&&(G?_.H1("INNERTUBE_CLIENT_NAME")==="WEB"?_.dJ.addJob(function(){c.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(G){if(!this.setScrollTopJobId_){var c=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){c.setScrollTopJobId_=0;var I=_.wH().resolve(_.qR(_.uf));I&&_.z5(I);this.getPageScrollingElement().scrollTop=G}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.j1(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var cKf;var Yl=function(){var G=_.J.apply(this,arguments)||this;G.playerListenerConfig=null;G.actionMap={"yt-show-watch-page-survey":"openSurvey"};return G};
_.u(Yl,_.J);_.P=Yl.prototype;_.P.dataChanged=function(){var G=this,c=_.ZA();c&&c.getPlayerPromise().then(function(R){G.maybeRemovePlayerListeners(R)});
var I=this.data&&this.data.survey;I&&((I=(I=I.singleOptionSurveyRenderer||I.checkboxSurveyRenderer||I.multiStageSurveyRenderer)&&I.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(c,I):this.openSurvey())};
_.P.triggerWatchPageSurvey=function(G,c){var I=this,R,Z,K,m,a,O,N,q,w;return _.T(function(F){if(F.nextAddress==1)return G?F.yield(G.getPlayerPromise(),2):F.return();I.player=F.yieldResult;if(!I.player)return F.return();R={};Z=_.Q(c);for(K=Z.next();!K.done;K=Z.next())m=K.value,a=_.Q(I.createEventListenerPair(m)),O=a.next().value,N=a.next().value,q=O,w=N,q&&w&&(R[q]=w,I.ytPlayerListenerBehavior.listenToPlayerEvent(I.player,q,w));I.playerListenerConfig=R;_.Vp(F)})};
_.P.createEventListenerPair=function(G){var c=G.playbackEventTrigger;return c?this.handlePlaybackTrigger(c):(G=G.watchTimeTrigger)?this.handleWatchTimeTrigger(G):[void 0,void 0]};
_.P.handleWatchTimeTrigger=function(G){var c=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var I=G.videoWatchFraction,R=G.watchTimeSec;return R&&I?["onVideoProgress",function(){c.player&&c.isWatchTimeConditionMet(c.player,I,R)&&c.showSurvey()}]:[void 0,
void 0]};
_.P.isWatchTimeConditionMet=function(G,c,I){var R=G.getProgressState(),Z=R.current-this.lastKnownPlaybackPosition;Z<5&&(this.accumulatedMediaTime+=Z);this.lastKnownPlaybackPosition=R.current;R=Math.round(this.accumulatedMediaTime/R.duration*1E3)/1E3;return G.getPresentingPlayerType&&G.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>I||R>c)};
_.P.handlePlaybackTrigger=function(G){var c=this;G=G.playbackEvent;if(G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var I="onStateChange";var R=function(Z){Z===0&&c.showSurvey()}}else G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(I="onVideoProgress",R=function(Z){c.player&&c.player.getPresentingPlayerType&&c.player.getPresentingPlayerType()===1&&Z&&c.showSurvey()}):G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(I="onAdEnd",R=this.showSurvey);
return[I,R]};
_.P.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.P.openSurvey=function(){var G=this,c=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.EWu(!!c));_.dJ.addJob(function(){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:c}})},0,0)};
_.P.maybeRemovePlayerListeners=function(G){if(this.playerListenerConfig){for(var c=_.Q(Object.keys(this.playerListenerConfig)),I=c.next();!I.done;I=c.next())I=I.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(G,I,this.playerListenerConfig[I]);this.playerListenerConfig=null}};
Yl.prototype.dataChanged=Yl.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],Yl.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],Yl.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Yl.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],Yl.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Yl.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Yl.prototype,"playerListenerConfig",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],Yl.prototype,"lastKnownPlaybackPosition",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],Yl.prototype,"accumulatedMediaTime",void 0);_.r([_.E(),_.h("design:type",Object)],Yl.prototype,"player",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yl.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Yl);
_.B(Yl,"ytd-survey-trigger-renderer",function(){if(cKf!==void 0)return cKf;var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return cKf=G},{mode:1});
}catch(e){_._DumpException(e)}
try{
var UC1;_.lF=function(G){var c=document.createElement("link");_.la(c,G,"stylesheet");document.head.appendChild(c)};
_.qr=function(G,c){var I,R;return _.T(function(Z){I=document.createElement("div");I.id=G.id;G.className&&(I.className=G.className);R=G.element;if(!R)throw Error("hk");if(G.location==="prepend")R.prepend(I);else if(G.location==="appendChild")R.appendChild(I);else if(G.location==="after")R.after(I);else throw Error("ik");return Z.return(_.jV(I,c,"mj"))})};
_.w_=function(G){var c;return _.T(function(I){(c=document.getElementById(G))&&c.remove();_.Vp(I)})};
_.Fw=function(G,c){var I=document.querySelector(G);I?c(I):setTimeout(function(){_.Fw(G,c)},1E3)};
_.uP7=function(G,c,I){var R;_.T(function(Z){if(Z.nextAddress==1)return(R=document.getElementById(G))?Z.jumpTo(2):Z.yield(UC1(G,c,I),2);if(R=document.getElementById(G))R.style.display="block";_.Vp(Z)})};
UC1=function(G,c,I){return _.T(function(R){return R.return(new Promise(function(Z){_.Fw("div #panels",function(K){_.qr({element:K,location:"appendChild",id:G,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+I},c);Z()})}))})};_.nw=_.W(function(G){var c=G.text;var I=G.onClick;var R=G.color;var Z=G.backgroundColor;var K=G.buttonSize;var m=G.disabled;var a=G.iconName;var O=G.iconSize;var N=G.className;var q=G.iconClassName;G=G.ariaLabel;var w=_.Nx(function(n){I(n)}),F={};
return _.e("button",{class:_.O3("ytpStandardButtonsHost",(F.ytpStandardButtonsLarge=function(){return(K==null?void 0:K())==="large"},F),N),
"on:click":w,style:_.wi({color:R,"background-color":Z}),disabled:m,"aria-label":G},_.e(_.l,{cond:a,then:function(){return _.e(_.F6,{className:_.O3("ytpStandardButtonsIconContainer",q),icon:a,size:O})}}),c)},"lj");_.bd$=_.W(function(G){var c,I,R={};return _.e("div",{class:_.O3("ytprototypesEngagementPanelComponentHost",(R.ytprototypesEngagementPanelComponentHostMweb=G.isMweb,R),G.className),id:G.id},_.e("div",{class:_.O3("ytprototypesEngagementPanelComponentEngagementPanelHeader",G.headerClassName)},_.e("div",null,G.header()),_.e("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.e("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(c=G.HeaderButton)==null?void 0:c.call(G)),
_.e(_.nw,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var Z;(Z=G.onHide)==null||Z.call(G);var K;if((K=G.preventDefault)==null||!K.call(G))if(Z=G.id(),Z=document.getElementById(Z))Z.style.display="none"}}))),_.e("div",{class:_.O3("ytprototypesEngagementPanelComponentEngagementPanelContent",G.contentClassName),
style:function(){var Z,K;return"height: "+(((Z=G.height)==null?0:Z.call(G))||((K=G.isMweb)==null?0:K.call(G))?"100%":"800px")+";"}},G.content()),_.e("div",null,(I=G.Footer)==null?void 0:I.call(G)))},"nj");
}catch(e){_._DumpException(e)}
try{
var xS_=new _.vS("replaceFeedContentAction");var tBS;var hpo;var dSG=function(){return _.J.apply(this,arguments)||this};
_.u(dSG,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],dSG.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dSG.prototype,"data",void 0);_.r([_.Jc({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],dSG);
_.B(dSG,"ytd-sub-feed-option-renderer",function(){if(hpo!==void 0)return hpo;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return hpo=G},{mode:1});var Cyy;var hV=function(){return _.J.apply(this,arguments)||this};
_.u(hV,_.J);hV.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hV.prototype,"ytRendererStamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],hV.prototype,"data",void 0);_.r([_.Jc({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],hV);
_.B(hV,"ytd-sub-feed-selector-renderer",function(){if(Cyy!==void 0)return Cyy;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Cyy=G},{mode:1});var dz=function(){return _.J.apply(this,arguments)||this};
_.u(dz,_.J);
dz.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}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],dz.prototype,"data",void 0);_.r([_.Jc({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],dz);
_.B(dz,"ytd-browse-feed-actions-renderer",function(){if(tBS!==void 0)return tBS;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return tBS=G},{mode:1});var H8S;var X6f;var C6=function(){return _.J.apply(this,arguments)||this};
_.u(C6,_.J);C6.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],C6.prototype,"data",void 0);_.r([_.Jc({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],C6);
_.B(C6,"ytd-mini-channel-renderer",function(){if(X6f!==void 0)return X6f;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return X6f=G},{mode:1});var ys5;var Hv=function(){return _.J.apply(this,arguments)||this};
_.u(Hv,_.J);Hv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Hv.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Hv);
_.B(Hv,"ytd-vertical-channel-section-renderer",function(){if(ys5!==void 0)return ys5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ys5=G},{mode:1});var XD=function(){return _.J.apply(this,arguments)||this};
_.u(XD,_.J);XD.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],XD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],XD.prototype,"data",void 0);_.r([_.Jc({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],XD);
_.B(XD,"ytd-browse-secondary-contents-renderer",function(){if(H8S!==void 0)return H8S;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return H8S=G},{mode:1});var gM5;var yd=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};G.notActive=!1;G.isConstrainedList=!1;G.marginSettings=0;return G};
_.u(yd,_.J);_.P=yd.prototype;
_.P.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(G){var c;return(G==null?void 0:(c=G.webComponentHint)==null?void 0:c.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.P.getPath=function(G,c){var I="data.tabs.#"+c+".";G.tabs[c].tabRenderer?I+="tabRenderer.":G.tabs[c].expandableTabRenderer&&(I+="expandableTabRenderer.");return I+"content.sectionListRenderer"};
_.P.computeDisplayedContent=function(G){this.unlinkPaths("content");if(G&&G.tabs)for(var c=G.tabs.length,I=0;I<c;I++){var R=G.tabs[I].tabRenderer||G.tabs[I].expandableTabRenderer;if(R.selected&&R.content)return this.linkPaths("content",this.getPath(G,I)),R.content}return null};
_.P.computeHasSecondaryColumnData=function(G){return!!G&&!!G.secondaryContents};
_.P.onRetrieveLocation=function(G,c){c.locationRetrieved(c.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);G.stopPropagation()};
_.P.onYtServiceRequestSent=function(G,c){_.v("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(c)};
_.P.onYtServiceRequestCompleted=function(G,c){_.v("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(c)};
_.P.onReplaceFeedContentAction=function(G){if(!_.v("replace_feed_content_action_killswitch")&&!this.notActive){var c;(G=(c=_.D(G,xS_))==null?void 0:c.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(G)}};
_.P.handleServiceRequestActions=function(G){if(G=G.actions){G=_.Q(G);for(var c=G.next();!c.done;c=G.next()){c=c.value;var I=void 0;((I=_.D(c,xS_))==null?0:I.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.D(c,xS_).items)}}};
yd.prototype.onYtServiceRequestCompleted=yd.prototype.onYtServiceRequestCompleted;yd.prototype.onYtServiceRequestSent=yd.prototype.onYtServiceRequestSent;yd.prototype.onRetrieveLocation=yd.prototype.onRetrieveLocation;_.r([_.L(_.Dg),_.h("design:type",Object)],yd.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],yd.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yd.prototype,"data",void 0);_.r([_.E({computed:"computeDisplayedContent(data)"}),_.h("design:type",Object)],yd.prototype,"content",void 0);
_.r([_.E({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],yd.prototype,"hasSecondaryColumnData",void 0);_.r([_.E({value:function(){return window.outerHeight>1024?3:2}}),
_.h("design:type",Number)],yd.prototype,"initialCount",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],yd.prototype,"pageSubtype",void 0);_.r([_.nH("ytd-section-list-renderer"),_.h("design:type",Object)],yd.prototype,"listRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],yd.prototype,"notActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],yd.prototype,"isConstrainedList",void 0);
_.r([_.E(),_.h("design:type",String)],yd.prototype,"responsiveSizing",void 0);_.r([_.E(),_.h("design:type",Number)],yd.prototype,"marginSettings",void 0);_.r([_.qY("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],yd.prototype,"onRetrieveLocation",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],yd.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],yd.prototype,"onYtServiceRequestCompleted",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],yd);
_.B(yd,"ytd-two-column-browse-results-renderer",function(){if(gM5!==void 0)return gM5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return gM5=G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var JN5=function(G){if((G==null?void 0:G.value)===void 0||G==null||!G.unit)return"initial";a:{switch(G.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var c="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":c="%";break a}c=void 0}return c?""+G.value+c:"initial"};_.R1(_.W(function(G){var c=G.data;G=_.Q(_.ks(!1,void 0,"VotqNe"));var I=G.next().value,R=G.next().value;_.tI(function(){_.RD.getInstance().triggerAction("yt-request-timely-shelf-state")});
var Z=_.SE(function(){var N,q,w=(N=_.D(c().rendererContext,_.oJ))==null?void 0:(q=N.loggingDirectives)==null?void 0:q.trackingParams;if(w)return _.kC(w)},void 0,"AvMXxb");
_.KY(_.RD.getInstance(),{"yt-hide-shopping-timely-shelf":function(){R(!1);var N=_.k0(),q=Z();N&&q&&_.rU(N,[q])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){R(!0);var N=_.k0(),q=Z();N&&q&&_.Bd(N,[q])})}});
var K=function(){var N;return(N=c().image)==null?void 0:N.image},m=function(){var N,q;
return!!((N=K())==null?0:(q=N.sources)==null?0:q.some(function(w){var F;return!!(w==null?0:(F=w.clientResource)==null?0:F.imageName)}))},a=function(){var N;
return((N=c().image)==null?void 0:N.height)||40},O=function(){var N;
return(N=c().image)==null?void 0:N.backgroundColor};
G={};return _.e("yt-shopping-timely-shelf-content-view-model",{el:_.YC(_.im(function(){return c().rendererContext})),
class:_.O3("ytShoppingTimelyShelfContentViewModelHost",(G.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(c().image||c().avatar||c().line1)&&I()},G)),
style:_.wi({"--shopping-timely-shelf-content-padding-top":function(){var N;return JN5((N=c().padding)==null?void 0:N.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var N;return JN5((N=c().padding)==null?void 0:N.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var N;return JN5((N=c().padding)==null?void 0:N.start)},
"--shopping-timely-shelf-content-padding-end":function(){var N;return JN5((N=c().padding)==null?void 0:N.end)},
"--yt-shopping-timely-shelf-background-color":function(){return c().backgroundColor!==void 0?_.pE(c().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var N,q;return((q=(N=c().image)==null?void 0:N.cornerRadius)!=null?q:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return O()!==void 0?_.pE(O()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var N;return(((N=c().image)==null?void 0:N.width)||40)+"px"}})},_.e(_.l,{cond:K,
then:function(N){var q={};return _.e(_.yc,{preserveHeight:!0,preserveWidth:!0,height:a,data:N,alt:"",className:_.O3("ytShoppingTimelyShelfContentViewModelImage",(q.ytShoppingTimelyShelfContentViewModelIcon=m,q))})}}),_.e(_.sN,{data:function(){return c().avatar}},{avatarViewModel:_.qF}),_.e("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.e(_.sN,{data:function(){return c().line1}},{shoppingContentLineViewModel:function(N){return _.e(_.Vw,{data:N.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.e(_.sN,{data:function(){return c().line2}},{shoppingContentLineViewModel:function(N){return _.e(_.Vw,{data:N.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.e("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.e(_.sN,{data:function(){var N;
return(N=c().button)!=null?N:[]}},{buttonViewModel:function(N){var q=N.data;
return _.e(_.BR,{data:q,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(w){q().onTap&&w.stopPropagation()}})}})))},"To"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.bl}});_.WwJ={};
_.WwJ.YtdWatchBehavior=[_.X.YtRendererBehavior,_.LI.YtPlayerListenerBehavior,_.V5.YtRendererstamperBehavior,_.HR.YtActionHandlerBehavior,_.co.YtPageBehavior,_.Cx.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.XG("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.v("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 _.XG("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.v("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.DH("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.DH("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.v("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.v("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.v("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.v("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("swatcheroo_enable_ghost_cards")||_.v("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("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 _.v("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("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 _.v("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.v("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(G,c,I){return G&&(c||!I)},
computeShowGhostRelated_:function(G,c,I){return G&&(c||!I)},
monitorScroll:!0,configureRendererStamper:function(){var G={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.Hn(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Hn(["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"||_.v("swa_prov_panels_ks")?G.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(G.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},G.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return G},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-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 G=this;this.watchController=void 0;this.pageDisposeJobs=[function(){G.showMetadataPlaceholder_()},
function(){_.v("web_watch_dont_clear_comments")||G.clearComments_()},
function(){G.clearPlayerAds_()},
function(){G.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.v("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.v("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.UCG(function(){return _.R9(G)},this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.v("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.EY;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.v("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));_.v("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.lO(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(G){G&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:G}),G.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(G){_.v("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.v("kevlar_watch_while_v2")&&!_.v("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.v("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.Xl(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.v("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(G>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(G){this.initCsi_();this.updatePageData_(G)},
updatePageData_:function(G){var c=this;if(G)if(this.data===G){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)}else this.data=G;this.playlist&&_.b8({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.LC("nw");this.loading=!1;_.W_(_.dJ,function(){c.initDclkstatus_();var R,Z=((R=c.player)==null?void 0:R.getVideoData().cpn)||"";_.QJT(function(K,m){_.tD0(K,m,Z)})})},
onPageLoadWithSameData_:function(){_.v("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var G=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!G);this.set("loadingData.playlistLoading",G&&G!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),G=this.watchNextSkeletonEl_.firstElementChild;G;)G.classList.remove("hidden"),G=G.nextElementSibling;if(_.v("kevlar_watch_frame0_loading_state")){var c,I,R;G=(c=this.loadingData)==null?void 0:(I=c.endpoint)==null?void 0:(R=I.watchEndpoint)==null?void 0:R.videoId;var Z;G&&(Z="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.Q1(this.hostElement).querySelector("#player").style.backgroundImage=Z?"url("+Z+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.Q1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&G&&(G.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var c,I;(I=(c=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(c);var R,Z;(Z=(R=this.watchMetadata).resize)==null||Z.call(R)}_.v("kevlar_watch_frame0_loading_state")&&(_.Q1(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(G){var c=_.Q1(this.hostElement).querySelector(G);c?_.CR(c,!1):_.Ck(new _.iW("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var c=_.Q1(this.hostElement).querySelector(G);c?_.Hq(c):_.Ck(new _.iW("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.v("web_thumbnail_to_watch_transition")&&!_.n$0||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.v("web_thumbnail_to_watch_transition")&&!_.n$0||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(G){var c=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.dJ.addLowPriorityJob(function(){c.onWindowResized_(_.nE(!0))})},
updateTheaterModeState_:function(G){if(!_.v("kevlar_watch_flexy_theater_manager")){G=G||this.fullWindowMode_;if(this.theater!==void 0||G)this.theater=G;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();G&&_.wlf()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var G=this.fullBleedPlayer?_.Q1(this.hostElement).querySelector("#player-full-bleed-container"):_.Q1(this.hostElement).querySelector("#player-container-inner");var c=this.getPlayerContainer(),I=_.v("kevlar_watch_while_v2")||_.v("web_watch_pip");c.parentElement!==G&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.R9(this).appendTo(G,c))},
updateErrorScreenLocation:function(){var G=_.Q1(this.hostElement).querySelector("#error-screen"),c=this.fullBleedPlayer?_.Q1(this.hostElement).querySelector("#player-full-bleed-container"):_.Q1(this.hostElement).querySelector("#player");G.parentElement!==c&&c.appendChild(G)},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.T(function(c){if(c.nextAddress==1)return c.yield(_.wH().resolve(_.tA).deactivate(),2);G.updatePlayerLocation();_.Vp(c)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var c=this.getCinematicsLocationContainer();G.parentElement!==c&&c.appendChild(G)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Q1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Q1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(G,c,I){var R=document.documentElement.hasAttribute("dark"),Z=!R&&this.cinematicLightTheme;return I||G&&R||c&&R||(c||G)&&Z},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G=this,c;(c=this.watchController)==null||c.setWatchNextResponse(this.data);_.v("kevlar_watch_flexy_comments_manager")||this.initComments_();_.v("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.wH().resolve(_.u1).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.v("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.dJ.addLowPriorityJob(function(){_.gq(G.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.v("web_watch_start_chat_in_theater_mode")){var I,R,Z;if((I=this.data)==null?0:(R=I.contents)==null?0:(Z=R.twoColumnWatchNextResults)==null?0:Z.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var K,m;((K=this.data)==null?0:(m=K.contents)==null?0:m.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(G){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(c=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=this.isLiveStreamOffline_(G.playabilityStatus),c&&!G||_.O$(this,function(){_.LC("pbu")}));
this.setPlayerAds_();_.gq(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(G,c){if((_.v("kevlar_watch_while_v2")||_.v("web_watch_pip"))&&this.playerData&&c)return this.playerData.videoDetails},
watchPageActiveChanged_:function(G){_.y4().dispatch(_.L95(this.active));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new _.f_(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.v("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var c=_.R9(this);_.v("kevlar_disable_prepare_player")||
c.preparePlayer();_.v("kevlar_watch_flexy_playlist_manager")||_.wH().resolve(_.u1).setPlayer(c);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();c={"--ytd-watch-flexy-scrollbar-width":_.y7()+"px"};this.is==="ytd-watch-grid"&&(_.y4().dispatch(_.R6({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),c["--ytd-watch-flexy-sidebar-width"]=_.aqN+"px",c["--ytd-watch-grid-horizontal-page-margins"]=_.Vt+"px",c["--ytd-watch-grid-columns-top-margins"]=
_.Pxo+"px",c["--ytd-watch-grid-min-player-height-medium"]="360px");!_.DH("kv_pl_mx_sz_ks")&&_.DH("kevlar_watch_max_player_width")&&(c["--ytd-watch-flexy-max-player-width-wide-screen"]=_.TZx+"px");_.DH("kevlar_watch_flexy_metadata_height")&&(c["--ytd-watch-flexy-space-below-player"]=_.OYx+"px");this.safeUpdateStyles(c);_.v("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.aV(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Q1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var G=_.y7(),c=_.zC+G,I=c;this.fixedPanels&&(c+=_.aqN);var R=657+G;G=1327+G;_.Q1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+c+"px)";_.Q1(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(c+"px) and (max-width: ")+(G+"px)");_.Q1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");
_.Q1(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+I+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var G=_.Q1(this.hostElement).querySelector("#miniplayer-bar").firstChild,c=this.squeezeback&&!_.v("web_watch_squeezeback_player_size_killswitch");return G&&G.active||this.theater||_.v("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||c||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.SB(NaN,NaN):_.eG5(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.eG5(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.TB(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.nE());_.v("browse_skeleton_removal_on_watch_killswitch")||_.XG("IS_SHELL_LOAD")&&_.GB6();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var c=_.R9(this);c.addEventListener("yt-player-updated",_.lO(this,this.onPlayerUpdated_));c.getPlayerPromise().then(function(I){G.playerApiReady_(I)});
_.v("kevlar_watch_flexy_playlist_manager")||(c=_.wH().resolve(_.u1),_.v("kevlar_watch_observe_playlist_navigations_killswitch")&&c.addEventListener("yt-navigate",_.lO(this,this.onYtNavigate_)),c.setPlaylistComponent(_.Q1(this.hostElement).querySelector("#playlist")),c.addEventListener("yt-playlist-data-updated",_.lO(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.dJ.addLowPriorityJob(function(){_.Xl(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.R9(this).removeEventListener("yt-player-updated",_.lO(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.v("kevlar_watch_flexy_playlist_manager")){var G=_.wH().resolve(_.u1);_.v("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.lO(this,this.onYtNavigate_));
G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.lO(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Xl(this.hostElement,"yt-autonav-pause-player",!1);G=_.hO();_.v("kevlar_exit_fullscreen_leaving_watch")&&G&&_.dq(G)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(G){this.player&&this.player.updateVideoData({rvs:G.rvs})},
getPageContents:function(G){return G&&G.contents&&G.contents.twoColumnWatchNextResults&&G.contents.twoColumnWatchNextResults.results&&G.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(G){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G)},
onRetrieveLocation_:function(G,c){c.hasComments?c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):c.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,c){this.player&&(c?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.aLo("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Q1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Q1(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(G){this.player=G;this.setPlayerState(G.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.v("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.v("kevlar_unified_player")||_.v("kevlar_player_new_bootstrap_adoption"))&&_.Cs()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,c){c=c===void 0?!0:c;_.hO()&&_.v("external_fullscreen")&&_.dq(document.documentElement);this.theaterRequested_=G;c&&_.zu("wide",G?"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&&_.Xl(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(G){_.H_(G,typeof this.player),this.player&&_.H_(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.ym(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,c){return this.loading?c:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.Q(G);for(var c=G.next();!c.done;c=G.next())c=c.value,c.youThereRenderer&&_.kzz(this.youThereManager_,c.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var c=this.youThereManager_;_.wj()<G.lowEngagementThresholdMs||_.$Cz(c,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ym(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,c,I){return!!G&&!this.isVideoPlayable_(G,I)&&!c},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,c){if(!G)return!1;var I=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var Z;c=c==null?void 0:(Z=c.playerOverlayRenderer)==null?void 0:Z.gatedActionsOverlayRenderer;return!!I||!!R||!!G||!!c},
hasWatchNextResponseErrorRenderer:function(G){var c=this.getPageContents(G),I,R,Z,K,m;return!(G==null?0:(I=G.contents)==null?0:(R=I.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((Z=c[0])==null?0:(K=Z.itemSectionRenderer)==null?0:(m=K.contents[0])==null?0:m.backgroundPromoRenderer)},
isLiveStreamOffline_:function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(G,c,I){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c),Z=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Z=_.v("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&Z.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var K=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);K==void 0&&(K=!0);!I||this.isVideoPlayable_(G,this.getPlayerOverlays_(c))||
R||Z||!K||_.wH().resolve(_.u1).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.lPR()},
onPlayerFeedbackStartRequest_:function(G){_.ym(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.ym(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,c,I,R,Z,K,m,a,O=((G=this.data)==null?NaN:(c=G.contents)==null?NaN:(I=c.twoColumnWatchNextResults)==null?NaN:(R=I.secondaryResults)==null?NaN:(Z=R.secondaryResults)==null?NaN:(K=Z.offerModule)==null?NaN:(m=K.tvfilmOfferModuleRenderer)==null?NaN:(a=m.actionButtons)==null?NaN:a.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(O>=0?O:0)+".buttonRenderer."];c=_.Q(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=c.next();!I.done;I=c.next())for(I=I.value,R=_.Q(G),Z=R.next();!Z.done;Z=R.next())if(Z="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+Z.value,Z=this.get(Z+"navigationEndpoint",this.data)||this.get(Z+"serviceEndpoint",this.data)||this.get(Z+"command",this.data)){_.qC(Z,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.Xl(this.hostElement,"yt-autonav-pause-player",G)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(G){G()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Xl(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(G)},
setPlayerState:function(G){_.y4().dispatch(_.n_B(G))},
onPlayerSubscribe_:function(G){_.ym(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.ym(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.ym(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:G.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(G){if(G)return G},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(G){return!_.Rs("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.v("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,c,I,R;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(c=G.contents)==null?void 0:(I=c.twoColumnWatchNextResults)==null?void 0:(R=I.secondaryResults)==null?void 0:R.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,c=(G=this.data)==null?void 0:G.engagementPanels;if(c==null?0:c.length){G=null;c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;var R=void 0;if(((R=I.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){G=I;break}}var Z,K,m;G=(Z=G)==null?void 0:(K=Z.engagementPanelSectionListRenderer)==null?void 0:(m=K.content)==null?void 0:m.structuredDescriptionContentRenderer;if(G==null?0:G.items){Z=
[];K=_.Q(G.items);for(m=K.next();!m.done;m=K.next()){m=m.value;if(!_.v("sd_horizontal_list_show_nav_killswitch")){var a=R=I=c=G=void 0,O=void 0,N=(G=m.horizontalCardListRenderer)==null?void 0:(c=G.header)==null?void 0:(I=c.richListHeaderRenderer)==null?void 0:(R=I.navigationButton)==null?void 0:(a=R.buttonRenderer)==null?void 0:(O=a.command)==null?void 0:O.commandExecutorCommand;N&&N.commands&&(N.commands=N.commands.filter(function(q){return!_.D(q,_.kaz)}))}(!m.expandableVideoDescriptionBodyRenderer&&
!m.videoDescriptionHeaderRenderer||_.v("web_delhi_colorful_sd"))&&Z.push(m)}return{items:Z}}}},
constructWarning_:function(G){return{text:_.Cp(G),type:"WARNING"}},
isPlaShelfEnabled_:function(G){if((this.get("adPlacements",G)||[]).length)return!0;G=this.get("playerAds",G)||[];return!(!G.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",G[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var G=this;_.Xl(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var c=this.getScrollTop()>0;this.gestures_&&(c?this.gestures_.detach():this.gestures_.attach());c!==this.showFullerscreenEdu_&&_.v("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=c,_.R9(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Xl(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.dJ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.W_(_.dJ,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.v("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.LC("cmi");_.dJ.cancelJob(this.setCommentsJobId_);var G=this.getPageContents(this.data);if(G&&G.length){G=_.Q(G);for(var c=G.next();!c.done;c=G.next())if(c=c.value,this.get("itemSectionRenderer.sectionIdentifier",c)==="comment-item-section"){this.comments=c.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Xl(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.v("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.v("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.LC("cmc")},
doRemoveComments_:function(){this.comments={};_.v("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.dJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.dJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,c){var I=_.D(c.endpoint,_.fR);I&&(!(c=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==c.videoId||I.playlistId&&I.playlistId!==c.playlistId||I.index!==void 0&&I.index!==c.index||typeof I.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.R9(this).getPlayerPromise().then(function(R){var Z=I.startTimeSeconds;R.seekTo(Z);R.wakeUpControls();Z<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var G=_.gWG();"t"in G&&(G=_.N0o(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=this.getPageContents(G);var c,I;(G=_.HY(G==null?void 0:(c=G[0])==null?void 0:(I=c.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.Xl(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.Xl(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,c,I){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===I&&(I=R.list,_.v("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),R.video_id!==G||I!=c)){var Z;_.v("kevlar_player_watch_endpoint_navigation")?Z=_.ter(_.mCN(G,c)):Z=this.buildWatchEndpoint_(G,c);_.Xl(this.hostElement,"yt-navigate",{endpoint:Z,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(G,c,I){return _.YD(G,c,I)},
initDclkstatus_:function(){_.OdJ()},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var c=G.querySelector("#primary-info"),I=G.querySelector("#secondary-info"),R=G.querySelector("#related");c&&_.Q1(this.hostElement).querySelector("#info-skeleton").appendChild(c);I&&_.Q1(this.hostElement).querySelector("#meta-skeleton").appendChild(I);R&&(_.Q1(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.ST(G)}},
handlePlayerUpdated_:function(){_.R9(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,c){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof c!=="undefined"){var I=this.watchNextSkeletonEl_.children,R=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,I.length);c||(R=0,G=I.length);if(!this.ghostCardsEnabled)for(c=R;c<G;c++)I[c].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.v("external_fullscreen")||_.ym(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var c=_.R9(this);c.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.hO())});
this.updateFullBleedElementLocations();G&&(c.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,c){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!c},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,c){return c&&!!G},
computeResponseHasComments:function(G){var c,I,R,Z,K;return!!(G==null?0:(c=G.contents)==null?0:(I=c.twoColumnWatchNextResults)==null?0:(R=I.results)==null?0:(Z=R.results)==null?0:(K=Z.contents)==null?0:K.some(function(m){var a;return(m==null?void 0:(a=m.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,c,I,R){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&R?!1:!!G&&!!Object.keys(G).length&&!c},
identity:_.E0,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(G){var c=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.R9(this).getPlayerPromise().then(function(I){var R=I.getPlayerState();R!==5&&R!==0&&(I=1/I.getVideoAspectRatio(),c.videoHeightToWidthRatio_!==I&&(c.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(G){var c=this,I=_.v("kevlar_watch_while_v2")||_.v("web_watch_pip"),R=function(){if(c.watchMetadata){var Z,K;(K=(Z=c.watchMetadata).resize)==null||K.call(Z)}_.R9(c).getPlayerPromise().then(function(m){if(_.v("kevlar_set_internal_player_size")){if(!I||!c.isMiniplayerActive()){var a=c.calculateCurrentPlayerSize_();m.setInternalSize(a.width,a.height)}}else m.setSize(NaN,NaN);_.v("kevlar_watch_while")&&c.updateWatchWhileScrollThreshold_()})};
G?R():_.U_(_.dJ,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.D(G,_.oCN).survey)},
onDownloadedVideoDeleted:function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1){if(!c.active||(I=c.playerData)==null||!I.offlineState||c.videoId!==G)return Z.return();(R=c.player)==null||R.stopVideo();_.ck().navigatingAwayFromWatchDeletedVideo=!0;_.qC(_.g3r,c.hostElement);return Z.yield(_.ck().navigationFinishPromise,2)}_.ck().navigatingAwayFromWatchDeletedVideo=!1;_.Vp(Z)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.Be(.5625*this.windowSize_.width,480,this.windowSize_.height-185):G=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==G&&(this.watchWhileScrollThreshold_=G,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var G=_.Q1(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&G){var c=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!G.active&&c&&I>=this.watchWhileScrollThreshold_?(G.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):G.active&&(!c||I<this.watchWhileScrollThreshold_&&!_.hO())&&(G.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var G=_.Q1(this.hostElement).querySelector("#secondary-inner");if(G){var c=_.Q1(this.hostElement).querySelector("#below"),I=_.Q1(this.hostElement).querySelector("#secondary"),R=_.Q1(this.hostElement).querySelector("#comments");R&&I&&c&&(this.defaultTwoColumnLayout?(G.appendChild(R),I.appendChild(G)):(c.appendChild(R),_.p3(c,G)))}}},
isTwoColumnsChanged_:function(G,c){if(G!==!0||c!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(G=_.Q1(this.hostElement).querySelector("#secondary-inner"))){c=_.Q1(this.hostElement).querySelector("#below");var I=_.Q1(this.hostElement).querySelector("#secondary"),R=_.Q1(this.hostElement).querySelector("#comments");R&&I&&c&&(this.isTwoColumns_?(G.appendChild(R),I.appendChild(G)):(c.appendChild(R),_.p3(c,G)))}}else{G=!_.v("web_watch_enable_fs_squeezeback_panels");
c=_.Q1(this.hostElement).querySelector("#panels");var Z=_.Q1(this.hostElement).querySelector("#alerts"),K=_.Q1(this.hostElement).querySelector("#shopping-timely-shelf");I=_.Q1(this.hostElement).querySelector("#playlist");R=_.Q1(this.hostElement).querySelector("#related");var m=_.Q1(this.hostElement).querySelector("#donation-shelf"),a=_.Q1(this.hostElement).querySelector("#comments"),O=_.Q1(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(Z=_.Q1(this.hostElement).querySelector("#secondary-inner"),
G&&(Z.appendChild(c),Z.appendChild(I),this.aiCompanionEnabled&&O&&Z.appendChild(O)),Z.appendChild(m),Z.appendChild(R)):(G&&(_.Cm(c,Z),_.Cm(I,Z),this.aiCompanionEnabled&&O&&_.Cm(O,Z),_.Cm(K,I)),_.Cm(m,Z),a&&_.Cm(R,a));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.v("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.v("web_watch_enable_fs_squeezeback_panels")&&_.v("web_watch_theater_chat")){var G=_.Q1(this.hostElement).querySelector("#chat-container"),c=this.theater&&!this.fullscreen||_.v("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&c?(c=_.Q1(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==c&&c.append(G),this.fixedPanels=!0):(this.fixedPanels=
!1,c=_.Q1(this.hostElement).querySelector("#playlist"),G&&c?_.H7(G,c):_.Ck(new _.iW("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!c})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,c){return _.v("sw_metadata_vis_toggle_ks")?!0:!!G||!!c},
computeForceDarkPanelTheme:function(G){return _.v("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.eD(this.hostElement,G)}catch(c){_.Ck(c)}},
videoHeightToWidthRatioChanged_:function(G,c){c&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(G){this.videoHeightToWidthRatio_=1/G},
computeIsVerticalVideo_:function(G){return G>=1},
computeIsFourThreeToSixteenNineVideo_:function(G){return G<=.7501&&G>=.5624},
computeIsExtraWideVideo_:function(G){return G<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.R9(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.R9(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Snx(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var c=_.ka(G)||0;_.bu(G,c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.ka("yt-fullerscreen-edu-button-click-count")||0,c=_.ka("yt-fullerscreen-edu-button-shown-count")||0,I=_.DH("external_fullscreen_button_shown_threshold"),R=G>=_.DH("external_fullscreen_button_click_threshold")||c>=I;_.R9(this).getPlayerPromise().then(function(Z){Z.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,c){return c},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.wH().resolve(_.u1).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var G=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.dJ.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.dJ.addLowPriorityJob(function(){G.fullHeightPanelPositionUpdateJobId=0;var c=_.Q1(G.hostElement).querySelector("#secondary"),I=_.Q1(G.hostElement).querySelector("#fixed-secondary");c=c.getBoundingClientRect();var R=c.width;G.swatcherooSqueezeback&&
(R+=_.Vt);if(G.swatcherooSqueezeback){var Z=_.Q1(G.hostElement).querySelector("#squeezeback-constraining-container");Z.style.width=R+"px";Z.style.flex="0 0 "+R+"px"}I.style.width=R+"px";I.style.left=c.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.dJ.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.dJ.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var c;!G.isTwoColumns_||G.theater||G.fullscreen?c=460:c=G.calculateNormalPlayerSize_().height;var I=c+"px";_.v("live_chat_taller_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.v("live_chat_medium_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.v("live_chat_scaled_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":c+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":c+"px","--ytd-watch-flexy-comments-panel-max-height":c+"px","--ytd-comments-engagement-panel-content-height":c+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(G){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",G)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.cd(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var c=_.Q1(this.hostElement).querySelector("#engagement-panel-scrim");G?c.addEventListener("tap",_.lO(this,this.onEngagementPanelScrimClick_)):c.removeEventListener("tap",_.lO(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var c=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var I=this.getPageScrollingElement(),R=this.getScrollTop(),Z=R+I.clientHeight-56;if(c<R+56)c-=56;else if(G>Z)c=G-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.v("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.p8().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,c,I){if(this.active&&this.trackEngagementPanelVisibility&&!_.vCo.includes(I)){if(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.gq(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var R=_.wH().resolve(_.Tl);this.visiblePanelIdentifiers_.forEach(function(Z){Z!==I&&R.hidePanel({identifier:Z})})}this.visiblePanelIdentifiers_.add(I)}c!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(G){return G?"":"watch-active-metadata"},
computeNewMetadataClass:function(G){return G?"watch-active-metadata":""},
computeIsSingleColumn:function(G,c){return c&&!G},
computeFullBleedPlayer:function(G,c,I){return _.v("external_fullscreen")&&G||c||I},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,c){return!G&&c},
updatePanelsLocation:function(){if(_.v("web_watch_enable_fs_squeezeback_panels")){var G=_.Q1(this.hostElement).querySelector("#below"),c=_.Q1(this.hostElement).querySelector("#panels"),I=_.Q1(this.hostElement).querySelector("#playlist"),R=_.Q1(this.hostElement).querySelector("#chat-container"),Z=_.Q1(this.hostElement).querySelector("#panels-full-bleed-container"),K=_.Q1(this.hostElement).querySelector("#secondary-inner"),m=_.Q1(this.hostElement).querySelector("#shopping-timely-shelf"),a=_.Q1(this.hostElement).querySelector("#persistent-panel-container");
if(G&&c&&I&&R&&Z&&K&&m&&(this.aiCompanionEnabled?a:1)){var O=this.fullscreen||this.theater&&this.iMaxTheaterMode,N=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;N?(N=_.Q1(this.hostElement).querySelector("#columns"),(R==null?void 0:R.parentElement)!==N&&N.append(R),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):O?Z.appendChild(R):this.isTwoColumns_?_.p3(K,R):_.p3(G,R);O?(Z.appendChild(c),Z.appendChild(I),
this.aiCompanionEnabled&&a&&Z.appendChild(a)):(this.isTwoColumns_?(_.p3(K,c),_.p3(K,I),this.aiCompanionEnabled&&a&&_.p3(K,a)):(_.p3(G,c),_.p3(G,I),this.aiCompanionEnabled&&a&&_.p3(G,a)),_.p3(G,m))}}},
swatcherooUpdatePanelsLocation:function(G,c,I,R,Z,K){if(this.is==="ytd-watch-grid"){c=G&&!c;this.swatcherooSplitScroll&&(c?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.Q1(this.hostElement).querySelector("#panels");var m=_.Q1(this.hostElement).querySelector("#playlist"),a=_.Q1(this.hostElement).querySelector("#persistent-panel-container"),
O=_.Q1(this.hostElement).querySelector("#fixed-secondary"),N=_.Q1(this.hostElement).querySelector("#fixed-below"),q=_.Q1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),w=_.Q1(this.hostElement).querySelector("#chat-container");K&&(G?(O.appendChild(I),this.aiCompanionEnabled&&a&&O.appendChild(a)):(N.appendChild(I),this.aiCompanionEnabled&&a&&N.appendChild(a)));Z?G?O.appendChild(w):N.appendChild(w):_.H7(w,q);R?G?O.appendChild(m):N.appendChild(m):_.H7(m,
q);this.swatcherooSplitScroll&&(G=_.Q1(this.hostElement).querySelector("#secondary"),R=_.Q1(this.hostElement).querySelector("#columns"),Z=_.Q1(this.hostElement).querySelector("#fixed-columns-secondary"),c?Z.appendChild(G):R.appendChild(G))}},
computeMetadataSkinnyMode:function(G,c,I){return this.is!=="ytd-watch-grid"?!1:G?I:c},
computeWatchWhilePanelsActive:function(G,c){return G||c},
computeNoBorderOnChat:function(G){return _.v("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,c){return G&&!c},
computePanelExpanded:function(G,c,I){return G||c||I},
computeSqueezeback:function(G,c,I,R){if(_.v("web_watch_enable_fs_squeezeback_panels")){var Z=this.iMaxTheaterMode&&this.theater,K=this.theater&&!this.iMaxTheaterMode;return(G||c||I)&&(Z||R)||c&&K}},
computeSwatcherooSqueezeback:function(G,c,I){return this.is!=="ytd-watch-grid"||_.v("ww_squeezeback_killswitch")?!1:G&&c&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(G){_.R9(this).getPlayerPromise().then(function(c){var I;(I=c.changeMarkerVisibility)==null||I.call(c,_.D(G,_.x2).isVisible||!1,_.D(G,_.x2).entityKeys||[],_.D(G,_.x2).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.y4().dispatch(_.nCT(G.detail));if(!this.liveChatCollapsed&&this.squeezeback){var c=_.wH().resolve(_.Tl);this.visiblePanelIdentifiers_.forEach(function(I){c.hidePanel({identifier:I})})}},
onSetPlaylistCollapsed:function(G){_.v("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!G)},
provideRenderingData:function(G,c){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=c;break;case "PRIMARY_INFO":_.v("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=c);this.videoPrimaryInfoRendererValue=c==null?void 0:c.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.v("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=c);this.videoSecondaryInfoRendererValue=c==null?void 0:c.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
c;break;case "CLARIFICATION":this.clarifyBoxValue=c;break;case "LIVE_CHAT":this.conversationBar=c;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=c;break;case "PLAYLIST":this.externalPlaylistData_=c!=null?c:{};break;case "MERCH_SHELF":this.merchShelfValue=c==null?void 0:c.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=c;break;case "TICKET_SHELF":this.ticket=c;break;case "OFFER_MODULE":this.offerModule=c;break;case "LIMITED_STATE":this.limitedStateValue=
c;break;case "DONATION_SHELF":this.donation=c;break;case "ALERTS":this.alertsValue=c;break;case "COMMENTS":this.comments=c;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=c;break;case "ENGAGEMENT_PANELS":this.engagementPanels=c;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=c;break;case "RICH_GRID_RENDERER":this.richGridRendererData=c;break;case "EXPANDABLE_METADATA":this.expandableMetadata=c;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
c;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=c;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=c}},
toggleCinematicsActive:function(G){this.cinematicsActive=G},
isMiniplayerActive:function(){return _.wH().resolve(_.tA).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var XBd;_.HHr=function(G){if(!(0,_.uTe)(G))throw Error("K``"+String(G));};
_.ycF=function(G){return G.findIndex(function(c){return XBd.indexOf(c.tagName)>-1})>-1};
_.gW1=function(){var G=_.wH().resolve(_.RY);_.wIi(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(G.isFullscreenEnabled()?_.dq(document.documentElement):_.QHB(document.documentElement))};
XBd=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Oa=new Map;_.Oa.set(32,59972);_.Oa.set(27,50765);_.Oa.set(70,60102);_.Oa.set(76,60221);_.Oa.set(77,60222);_.Oa.set(74,60223);_.Oa.set(84,60224);_.Oa.set(38,61941);_.Oa.set(40,61942);_.Oa.set(73,62521);_.Oa.set(67,62522);_.Oa.set(80,63390);_.Oa.set(78,63397);_.Oa.set(75,59972);_.Oa.set(188,63385);_.Oa.set(190,63384);_.Oa.set(36,63387);
_.Oa.set(35,63386);_.Oa.set(37,63388);_.Oa.set(39,63389);_.Oa.set(79,63423);_.Oa.set(87,63424);_.Oa.set(107,63426);_.Oa.set(109,63425);_.Oa.set(65,63428);_.Oa.set(83,63430);_.Oa.set(68,63429);_.Oa.set(221,63431);_.Oa.set(219,63432);_.Oa.set(97,63439);_.Oa.set(98,63440);_.Oa.set(99,63441);_.Oa.set(100,63442);_.Oa.set(101,63443);_.Oa.set(102,63444);_.Oa.set(103,63445);_.Oa.set(104,63446);_.Oa.set(105,63447);_.e$=new Map;_.e$.set(80,63390);_.e$.set(78,63397);_.e$.set(188,63400);_.e$.set(190,63401);
_.e$.set(191,60765);_.e$.set(13,247917);_.Ymu=new Map;_.Gzj=new Map;
}catch(e){_._DumpException(e)}
try{
var TDW,NDW,l4$,qm$;_.PO1=function(G){return G.ui.guideIsVisibleButNotPersistent};
_.QsW=function(G){return G.ui.tabGesturesIsActive};
_.mYd=function(){var G=_.oa("service_worker_scope");try{return navigator.serviceWorker.getRegistration(G)}catch(c){return Promise.reject(c)}};
_.a4$=function(G){return!(!G||!G.pushManager)};
TDW=function(){return _.mYd().then(_.a4$).catch(function(){return!1})};
_.OHd=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?TDW():Promise.resolve(!1)};
_.eXu=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
NDW=function(){var G,c,I;return _.T(function(R){switch(R.nextAddress){case 1:return R.yield(_.TI.getInstance(),2);case 2:G=R.yieldResult;if(!G){c=void 0;R.jumpTo(3);break}return R.yield(G.get("lmqf"),4);case 4:c=R.yieldResult;case 3:switch((I=c)||(I="SD"),I){case "HD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
l4$=function(G){var c,I,R;return _.T(function(Z){if(Z.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.v("disable_av1_setting")){var K=window.localStorage["yt-player-av1-pref"];K=K==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":K==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else K="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(c=G===K)return Z.jumpTo(2);R=I=G;return Z.yield(NDW(),3)}Z.nextAddress!=2&&(c=R===Z.yieldResult);return Z.return(c)})};var wBH;var F9G=_.gw.IronButtonState,nWF=(0,_.hk)(HTMLElement);
_.SD({_template:function(){if(wBH!==void 0)return wBH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;qm$===void 0&&(qm$=document.createElement("template"));var R=qm$;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return wBH=G},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[F9G,_.X3,_.Yn,_.IH],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(G){var c=(0,_.VF)(this);c.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:G});c.shadowRoot.appendChild(G);return nWF.prototype._attachDom.call(this,G)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var G=this.contentElement;G&&G.selectedItem&&this._setSelectedItem(G.selectedItem)},
get contentElement(){for(var G=_.qy(this.$.content).getDistributedNodes(),c=0,I=G.length;c<I;c++)if(G[c].nodeType===Node.ELEMENT_NODE)return G[c]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(G){this._setSelectedItem(G.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(G){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)===this&&this.open()},
_selectedItemChanged:function(G){var c="";G?c=G.label||G.getAttribute("label")||G.textContent.trim():c="";this.value=c;this._setSelectedItemLabel(c)},
_computeMenuVerticalOffset:function(G,c){return c?c:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",c=this.contentElement;c&&c.setAttribute("aria-expanded",G)}});_.vWW=new _.vS("navigateAction");var DY7=new _.vS("formRenderer");var Yk=function(){var G=_.D4.apply(this,arguments)||this;G.showInput=!1;return G};
_.u(Yk,_.D4);_.P=Yk.prototype;_.P.detached=function(){this.showInput&&window.removeEventListener("click",_.lO(this,this.closeOnOutsideClick_))};
_.P.stopPropagation_=function(G){this.showInput&&G.stopPropagation()};
_.P.closeOnOutsideClick_=function(G){this.closeOnOutsideClickCondition(G)&&(this.showInput=!1,window.removeEventListener("click",_.lO(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.P.closeOnOutsideClickCondition=function(){return!0};
_.P.closeOnOutsideClickHandler=function(){};
_.P.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.lO(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.P.openOnClickHandler=function(){};
_.P.showInputChanged=function(){};
_.P.setShowInput=function(G){this.showInput=G};
Yk.prototype.setShowInput=Yk.prototype.setShowInput;Yk.prototype.showInputChanged=Yk.prototype.showInputChanged;Yk.prototype.openOnClickHandler=Yk.prototype.openOnClickHandler;Yk.prototype.openOnClick_=Yk.prototype.openOnClick_;Yk.prototype.closeOnOutsideClickHandler=Yk.prototype.closeOnOutsideClickHandler;Yk.prototype.closeOnOutsideClickCondition=Yk.prototype.closeOnOutsideClickCondition;Yk.prototype.closeOnOutsideClick_=Yk.prototype.closeOnOutsideClick_;Yk.prototype.stopPropagation_=Yk.prototype.stopPropagation_;
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Yk.prototype,"showInput",void 0);_.r([_.qY("click"),_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Yk.prototype,"stopPropagation_",null);_.r([_.wD("showInput"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],Yk.prototype,"showInputChanged",null);_.r([_.Um()],Yk);_.oWF=[Yk.prototype];var UYj;var uZr;var GA=function(){return _.J.apply(this,arguments)||this};
_.u(GA,_.J);_.P=GA.prototype;_.P.computePreselectedOption=function(G,c){return c===this.itemSelected_?G:void 0};
_.P.dataChanged_=function(){var G=this;this.preselectedSubreason=this.itemSelected_=-1;var c;(c=this.data)!=null&&c.key&&_.O$(this,function(){var I,R=Number((I=G.data)==null?void 0:I.key);!Number.isNaN(R)&&(G.itemSelected_=R,I=(I=(G.data.items||[])[R])&&I.optionSelectableItemRenderer&&I.optionSelectableItemRenderer.preselectedIndex)&&(G.preselectedSubreason=I)})};
_.P.isSubReasonHidden_=function(G,c){return G!=c};
_.P.onTopItemSelected_=function(G,c){for(var I=_.Q1(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),R=0,Z=I.length;R<Z;R++)I[R].select(0);_.ym(this.hostElement,"yt-report-form-update",[c.item.value]);G.stopPropagation()};
_.P.onItemSelected_=function(G,c){_.ym(this.hostElement,"yt-report-form-update",[c.item.value]);G.stopPropagation()};
_.P.getItem_=function(G){return G.serviceItem?G.serviceItem:G.navigationItem?G.navigationItem:G.optionSelectableItemRenderer?G.optionSelectableItemRenderer:null};
_.P.computeText_=function(G){return(G=this.getItem_(G))?this.ytRendererBehavior.getSimpleString(G.text):null};
_.P.validate=function(){return this.itemSelected_!==-1};
_.P.computeAriaLabel_=function(G){var c=_.HY(G.text);(G=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label)&&(c+=". "+G);return c};
_.P.computeItemSelected_=function(G){return G};
_.P.preventSelection_=function(G){G.stopPropagation();this.tooltipTapped=!0};
_.P.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.P.updateItemSelectedFromBinding=function(G){this.itemSelected_=G.detail.value};
_.P.save=function(){var G;this.validate()&&(G=this.data)!=null&&G.items&&(G=this.data.items[this.itemSelected_],G!=null&&G.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(G.optionSelectableItemRenderer.submitEndpoint)||_.Gs(this.hostElement,[G.optionSelectableItemRenderer.submitEndpoint])))};
GA.prototype.onPaperRippleTransitionEnd_=GA.prototype.onPaperRippleTransitionEnd_;GA.prototype.dataChanged_=GA.prototype.dataChanged_;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],GA.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],GA.prototype,"data",void 0);_.r([_.E({value:-1}),_.h("design:type",Number)],GA.prototype,"itemSelected_",void 0);
_.r([_.E({computed:"computeItemSelected_(itemSelected_)"}),_.h("design:type",Number)],GA.prototype,"value",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],GA.prototype,"restoreFocusOnClose",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],GA.prototype,"tooltipTapped",void 0);_.r([_.E({value:-1}),_.h("design:type",Number)],GA.prototype,"preselectedSubreason",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GA.prototype,"dataChanged_",null);_.r([_.qY("transitionend"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GA.prototype,"onPaperRippleTransitionEnd_",null);_.r([_.Em({is:"yt-options-renderer",disableElementRegistration:!0})],GA);
_.B(GA,"yt-options-renderer",function(){if(uZr===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;UYj===void 0&&(UYj=document.createElement("template"));var R=UYj;I.call(c,R.content.cloneNode(!0),G.content.firstChild);uZr=G}G=uZr;return G},{mode:2});var bHd;var k1d;var ssu;var L9H;var Acu;var $Y$;var cP=function(){return _.J.apply(this,arguments)||this};
_.u(cP,_.J);cP.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
cP.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
cP.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.Y0(this.hostElement,"yt-share-panel-can-select-contact-action"))G&&G.detail&&(G.detail.x||G.detail.y)&&_.Q1(this.hostElement).querySelector("#target").blur(),(G=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),G={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:G?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ym(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.r([_.E({observer:"onDataChanged"}),_.h("design:type",Object)],cP.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.h("design:type",String)],cP.prototype,"componentTitle",void 0);_.r([_.nH("#thumbnail"),_.h("design:type",Object)],cP.prototype,"thumbnail",void 0);_.r([_.Em({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],cP);
_.B(cP,"yt-enrolled-contact-renderer",function(){if($Y$===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Acu===void 0&&(Acu=document.createElement("template"));var R=Acu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);$Y$=G}G=$Y$;return G},{mode:2});var Sm0;var pBH;var Ir=function(){return _.J.apply(this,arguments)||this};
_.u(Ir,_.J);Ir.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Ir.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Ir.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.Y0(this.hostElement,"yt-share-panel-can-select-contact-action"))G&&G.detail&&(G.detail.x||G.detail.y)&&_.Q1(this.hostElement).querySelector("#target").blur(),(G=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),G={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:G?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ym(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.r([_.E({observer:"onDataChanged"}),_.h("design:type",Object)],Ir.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.h("design:type",String)],Ir.prototype,"componentTitle",void 0);_.r([_.nH("#thumbnail"),_.h("design:type",Object)],Ir.prototype,"thumbnail",void 0);_.r([_.Em({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Ir);
_.B(Ir,"yt-suggested-contact-renderer",function(){if(pBH===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Sm0===void 0&&(Sm0=document.createElement("template"));var R=Sm0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);pBH=G}G=pBH;return G},{mode:2});var Rr=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-share-panel-reset-action":"onReset"};return G};
_.u(Rr,_.J);Rr.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"}}}}}};
Rr.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])};
Rr.prototype.onReset=function(){for(var G=_.Q1(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),c=G.length-1;c>=0;c--)G[c].classList.toggle("selected")};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Rr.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({observer:"onDataChanged"}),_.h("design:type",Object)],Rr.prototype,"data",void 0);
_.r([_.Em({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Rr);
_.B(Rr,"yt-contact-section-renderer",function(){if(L9H===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;ssu===void 0&&(ssu=document.createElement("template"));var R=ssu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);L9H=G}G=L9H;return G},{mode:2});var Zj=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return G};
_.u(Zj,_.J);_.P=Zj.prototype;_.P.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.P.onYtRefreshFormCommand=function(G){var c;(G=_.D((c=_.D(G,_.KZK))==null?void 0:c.formRenderer,DY7))&&this.set("data",G)};
_.P.reset=function(){var G=_.Q1(this.hostElement).querySelector("#fields").children;G=_.Q(G);for(var c=G.next();!c.done;c=G.next())c=c.value,c.reset&&c.reset()};
_.P.getForm=function(){var G={},c=_.Q1(this.hostElement).querySelector("#fields").children;c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;if(!I.validate())return null;G[I.data.key]=I.value}return G};
_.P.submitFormFields=function(){if(this.fields)for(var G=_.Q(this.fields),c=G.next();!c.done;c=G.next())c=c.value,c.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?c.save():c.nodeName==="YT-OPTIONS-RENDERER"&&c.save()};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Zj.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Zj.prototype,"data",void 0);_.r([_.vB("#fields > *"),_.h("design:type",Array)],Zj.prototype,"fields",void 0);
_.r([_.Em({is:"yt-form-renderer",disableElementRegistration:!0})],Zj);
_.B(Zj,"yt-form-renderer",function(){if(k1d===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;bHd===void 0&&(bHd=document.createElement("template"));var R=bHd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);k1d=G}G=k1d;return G},{mode:2});var MD$;var Kw=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return G};
_.u(Kw,_.J);Kw.prototype.onCheckboxChange=function(G){this.data&&(G=(this.checked=_.HH(G).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}})};
Kw.prototype.handleUpdateCheckboxCommand=function(G){(G=_.D(G,_.UnT))&&this.data&&this.data.id===G.id&&(this.set("data.disabled",G.disabled),this.set("data.title",G.title))};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Kw.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Kw.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],Kw.prototype,"checked",void 0);_.r([_.Jc({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Kw);
_.B(Kw,"ytd-settings-checkbox-renderer",function(){if(MD$!==void 0)return MD$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return MD$=G},{mode:1});var VD0;var PP=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return G};
_.u(PP,_.J);PP.prototype.dataChanged=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return G.radio.removeAttribute("checked"),!G.data||!G.data.id||G.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.eXu()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(c=G.data&&G.data.id)?I.yield(l4$(G.data.id),4):I.jumpTo(3):(G.set("data.hidden",!0),I.jumpTo(0));I.nextAddress!=3&&(c=I.yieldResult);c&&_.ym(G.hostElement,"yt-select-settings-radio-option",[G.data.id]);_.Vp(I)})};
PP.prototype.onButtonChanged=function(G){_.HH(G).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ym(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
PP.prototype.onSelectOption=function(G){this.data&&this.data.id&&(this.data.id===G?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
PP.prototype.dataChanged=PP.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],PP.prototype,"ytActionHandlerBehavior",void 0);_.r([_.nH("#radio"),_.h("design:type",Object)],PP.prototype,"radio",void 0);_.r([_.E(),_.h("design:type",Object)],PP.prototype,"data",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],PP.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],PP);
_.B(PP,"ytd-settings-radio-option-renderer",function(){if(VD0!==void 0)return VD0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return VD0=G},{mode:1});var zXj;var QE=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return G};
_.u(QE,_.J);
QE.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"}}}};
QE.prototype.handleUpdateTextCommand=function(G){(G=_.D(G,_.u32))&&this.data&&this.data.id===G.id&&this.set("data",G)};
QE.prototype.handleUpdateConnectedAppRendererCommand=function(G){if(_.D(G,_.sjA)&&this.data){var c,I;if(G=(c=_.D(G,_.sjA))==null?void 0:(I=c.newConnectedAppRenderer)==null?void 0:I.connectedAppRenderer)this.data=G}};
QE.prototype.computeConnectedAppStyle=function(G){return G.style?G.style.toLowerCase().replace(/_/g,"-"):""};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],QE.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],QE.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.h("design:type",String)],QE.prototype,"connectedAppStyle",void 0);_.r([_.Jc({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],QE);
_.B(QE,"ytd-connected-app-renderer",function(){if(zXj!==void 0)return zXj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return zXj=G},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.tK("iuT5Oc");

_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("NSzT5");
var G9T=function(){var G;return _.T(function(c){if(c.nextAddress==1)return c.yield(_.wH().resolve(_.a9),2);(G=c.yieldResult)&&G.pauseVideo();_.Vp(c)})};var c06=_.I3(["https://portraits.google.com"]),IXJ=_.I3(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),R8R=_.I3(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),ZQG=_.D3(c06),KqS=_.W(function(G){function c(q){var w;if(q=(w=q.detail)==null?void 0:w.endpoint){w=_.D(q,_.qD);var F;w&&((F=w.browseId)==null?0:F.startsWith("UC"))&&w.browseId!==Z()&&(_.w_("creator-chatbots-panel-persistent"),O.removeEventListener("yt-navigate-start",c))}}
var I=G.usePlayerHeight;var R=G.isPersistentPanel;var Z=G.creatorChannelId;G=_.o1(_.m1r);console.log("isNarrow",G());var K=_.YC(function(q){var w=Z();w=_.D3(IXJ,w);_.RE(q,1,w)}),m=function(){var q,w,F;
return _.T(function(n){return n.nextAddress==1?n.yield(_.wH().resolve(_.a9),2):(q=n.yieldResult)?n.return({video_id:(F=(w=q.getVideoData())==null?void 0:w.video_id)!=null?F:"",timestamp_sec:q.getCurrentTime().toString()}):n.return({})})};
_.lx("message",function(q){var w,F,n,U,k,p;return _.T(function(M){if(M.nextAddress==1){if((w=R)==null?0:w())return M.return();if(q.origin!==ZQG.toString())return console.warn("Received message from untrusted origin:",q.origin),M.return();F=q.data;if(typeof F!=="object"||F===null||!F.action)return M.return();if(F.action==="pause")return M.yield(G9T(),0);if(F.action!=="getYouTubeContext"||!q.source)return M.jumpTo(0);n=q.source;U=n.postMessage;k=JSON;p=k.stringify;return M.yield(m(),7)}U.call(n,p.call(k,
{youTubeContext:M.yieldResult}),{targetOrigin:q.origin});return M.jumpTo(0)})});
var a=function(){var q,w;(q=K.value)==null||(w=q.contentWindow)==null||w.postMessage("ep_closed",ZQG.toString())};
_.lx("yt-page-type-changed",function(){if(R==null?0:R()){var q;((q=_.wH().resolve(_.I9).getCurrentPage())==null?void 0:q.pageSubtype)!=="channels"&&(q=document.getElementById("creator-chatbots-panel-persistent"))&&(q.style.display="none")}});
var O=_.wH().resolve(_.Hk),N;(N=O)==null||N.addEventListener("yt-navigate-start",c);_.ty(function(){var q;(q=O)==null||q.removeEventListener("yt-navigate-start",c)});
N={};return _.e("div",{class:_.O3("ytprotoCreatorChatbotsAppHost",(N.ytprotoCreatorChatbotsAppHostSingleColumn=G,N)),style:_.wi({height:function(){return(I==null?0:I())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.e(_.bd$,{id:function(){return(R==null?0:R())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:a,header:function(){return _.e("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.e("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.e(_.ov,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.e(_.nw,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var q=_.j_("https://portraits.google.com/gallery?ytChannelId="+Z());q&&_.ZT(window,q,"_blank");a()}})},
content:function(){return _.e("iframe",{el:K,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+ZQG.toString()})}}))},"Uo"),PfN=_.W(function(G){var c=G.creatorChannelId;
G=_.o1(_.m1r);var I=_.YC(function(K){var m=c();m=_.D3(R8R,m);_.RE(K,1,m)}),R=_.vI(_.DP(),{veType:281629}),Z={};
return _.e("div",{class:_.O3("ytprotoCreatorChatbotsAppHost",(Z.ytprotoCreatorChatbotsAppHostSingleColumn=G,Z)),style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.e(_.bd$,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.e("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.e("div",
{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.e(_.ov,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.e("iframe",{el:I,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.e("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.e(_.nw,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var K=_.j_("https://portraits.google.com/gallery?ytChannelId="+c());K&&_.ZT(window,K,"_blank");G9T();R&&_.t0(_.DP(),{visualElement:R})},
"client-ve-type":281629}),_.e("div",null,"This will take you to Google Portraits"))}}))},"Vo");var Q1T,mxx,aXR;Q1T=_.I3(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);mxx=_.D3(Q1T);
_.pB5=function(G){G=G===void 0?"":G;_.w_("creator_chatbots-entry-point");_.w_("creator-chatbots-panel");_.lF(mxx);_.Fw("ytd-watch-metadata #top-level-buttons-computed",function(c){document.getElementById("creator_chatbots-entry-point")||(_.qr({element:c,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.e(aXR,{creatorChannelId:G})}),_.uP7("creator-chatbots-panel",function(){return _.e(KqS,{usePlayerHeight:!0,
creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.MDx=function(G){G=G===void 0?"":G;_.w_("creator-chatbots-panel");_.Fw("ytd-watch-metadata #top-level-buttons-computed",function(){_.uP7("creator-chatbots-panel",function(){return _.e(PfN,{creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
aXR=_.W(function(G){var c=G.creatorChannelId;var I=function(){_.uP7("creator-chatbots-panel",function(){return _.e(KqS,{usePlayerHeight:!0,creatorChannelId:c})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.e("div",{class:"ytd-menu-renderer"},_.e(_.fx,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:I}},
icon:function(){return _.e(_.F6,{icon:"SPARK"})}}))},"Wo");
_.g6G=function(G,c){G=G===void 0?"":G;c=c===void 0?!1:c;var I;return _.T(function(R){I=document.getElementById("creator-chatbots-panel-persistent");return!c||I?(!c&&I&&I.style.display==="none"&&(I.style.display="block"),R.jumpTo(0)):R.yield(new Promise(function(Z){_.Fw("ytd-app",function(K){_.qr({element:K,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.e(KqS,
{isPersistentPanel:!0,creatorChannelId:G})});
Z()})}),0)})};
_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("L3n37");
var tkJ=function(G){return G.watch.isLearningJourneyActive},hGT=_.qj(115994),dCR=_.qj(115993),CDS=function(G,c,I){var R=this;
var Z=I.dragDownAction;this.layer=0;this.JSC$23832_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$23832_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var K=_.DP();_.HE(K,hGT,this.layer);_.HE(K,dCR,this.layer);this.dragDownAction=function(){Z();_.t0(K,{visualElement:R.fullscreen?hGT:dCR})};
this.gesture=new _.o$(G,c,this.getConfig(!1),"pandown");this.attach()};
CDS.prototype.attach=function(){this.gesture.attach()};
CDS.prototype.detach=function(){this.gesture.detach()};
CDS.prototype.update=function(G){this.fullscreen=G;var c=this.gesture;G=this.getConfig(G);c.config=G};
CDS.prototype.getConfig=function(G){return G?this.JSC$23832_watchFullScreenConfig:this.JSC$23832_watchConfig};var Hd5=function(G){_.TA.call(this);var c=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return c.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){c.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.u(Hd5,_.TA);_.P=Hd5.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(G){return this.rootElement.getElement(G)};
_.P.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(G,c){var I=this;if(_.v("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.KY(_.RD.getInstance(),(R[G]=c,R),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),R={},_.KY(_.RD.getInstance(),(R[G]=function(){var Z=_.Hy.apply(0,arguments);return(I.actionHandlers.get(G)||[]).map(function(K){return K.apply(null,_.jn(Z))})},R),this.getRoot())),this.actionHandlers.get(G).push(c)};
_.P.unregisterActionHandler=function(G){if(_.v("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.PN(_.RD.getInstance(),(c[G]=!0,c),this.getRoot())}else(c=this.actionHandlers.get(G))?(c.pop(),c.length===0&&(c={},_.PN(_.RD.getInstance(),(c[G]=!0,c),this.getRoot()),this.actionHandlers.delete(G))):_.Ck(new _.iW("Attempted to unregister an action handler which is not registered.",G))};
_.P.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.S00(this.rootElement.pageDisposeJobs,G)};
_.P.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.rb(this.rootElement.pageDisposeJobs,G)};
_.P.dispatchEvent=function(G,c){_.Xl(this.rootElement,G,c)};
_.P.provideRenderingData=function(G,c){this.rootElement.provideRenderingData(G,c)};
_.P.scrollWatchTo=function(G,c){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(G,c)};
_.P.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.O$(G,function(){if(G&&G.firstElementChild){var c=G.querySelector(".html5-video-player");c&&(_.z5(_.wH().resolve(_.uf)),c.focus())}else _.Ck(Error("mp"))})};
var XIy=function(G){var c=!!G.rootElement.theater,I=!!G.rootElement.fullscreen,R;(R=G.watchCinematicManager)==null||_.oaG(R,I,c)};
_.P=Hd5.prototype;_.P.subscribeToActiveChanged=function(G,c){c=c===void 0?!0:c;var I=_.RM(_.y4(),tkJ,function(R){G(R)});
c&&G(tkJ(_.y4().getState()));return I};
_.P.isActive=function(){return tkJ(_.y4().getState())};
_.P.onAttached=function(){var G=_.v("external_fullscreen");_.v("use_unified_flag_accessor")&&(G=_.wH().resolve(_.yI7).retriever.getFlag(_.E$9));(G||_.XG("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.P.initPersistentModules=function(){if(_.v("kevlar_watch_flexy_theater_manager")){var G=new _.Hpz(this);_.k9(this,G)}G=new _.Jiy(this);_.k9(this,G);G=new _.Sb(this);_.k9(this,G);G=new _.pHS(this);_.k9(this,G);G=new _.EM(this);_.k9(this,G);G=new _.p_(this);_.k9(this,G);_.v("kevlar_watch_flexy_playlist_manager")&&(G=new _.qmx(this),_.k9(this,G))};
_.P.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new _.JC(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.gaN(this)),this.activeModules.push(new _.C86(this)),this.activeModules.push(new _.oWN(this)),this.activeModules.push(new _.txx(this)),_.v("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.YCT(this)),this.activeModules.push(new _.ZH6(this)),_.v("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.uZ6(this)),
_.v("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.TnN(this)),_.Rs("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.qU5(this),this.activeModules.push(this.watchCinematicManager),XIy(this)),_.v("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.mYT(this)),_.v("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Vx6(this)),G=_.v("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.v("kevlar_watch_flexy_comments_manager")&&
!G&&this.activeModules.push(new _.sIf(this)),_.v("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.NLG(this)),this.activeModules.push(new _.IbG(this)),this.activeModules.push(new _.G1o(this)),_.v("web_enable_timely_actions")&&this.activeModules.push(new _.PuR(this)),_.v("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.AX5(this)),_.v("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.vVN(this)),_.v("web_fullscreen_components")&&
this.activeModules.push(new _.ZpG(this)),_.v("web_player_rtr_ctrls")&&this.activeModules.push(new _.S4R(this))):(_.Oe(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.P.disposeInternal=function(){_.TA.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Nh.Object.defineProperties(Hd5.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var yN_={},gCz=["learning-journey-engagement-panel","PAlearning_chat"];
yN_.YtdLearningJourneyWatchBehavior=[_.X.YtRendererBehavior,_.LI.YtPlayerListenerBehavior,_.V5.YtRendererstamperBehavior,_.HR.YtActionHandlerBehavior,_.co.YtPageBehavior,_.Cx.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.XG("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.v("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 _.XG("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 _.v("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.v("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.DH("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.DH("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.Rs("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_rounded_player_large")||_.v("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.v("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.v("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("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 _.v("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.Hn(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Hn(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var G=this;this.watchController=void 0;this.pageDisposeJobs=[function(){G.showMetadataPlaceholder_()},
function(){_.v("web_watch_dont_clear_comments")||G.clearComments_()},
function(){G.clearPlayerAds_()},
function(){G.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.v("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.v("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.UCG(function(){return _.R9(G)},
this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.v("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
_.v("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.EY;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;_.v("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.v("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));_.v("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.lO(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(G){G&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:G}),G.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(G){_.v("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.v("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.v("kevlar_watch_while_v2")&&!_.v("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.v("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.Xl(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.v("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(G>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(G){this.initCsi_();this.updatePageData_(G)},
updatePageData_:function(G){var c=this;if(G)if(this.data===G){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)}else this.data=G;this.playlist&&_.b8({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.LC("nw");this.loading=!1;_.W_(_.dJ,function(){c.initDclkstatus_();var R,Z=((R=c.player)==null?void 0:R.getVideoData().cpn)||"";_.QJT(function(K,m){_.tD0(K,m,Z)})})},
onPageLoadWithSameData_:function(){_.v("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var G=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!G);this.set("loadingData.playlistLoading",G&&G!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),G=this.watchNextSkeletonEl_.firstElementChild;G;)G.classList.remove("hidden"),G=G.nextElementSibling;var c,I,R;G=(c=this.loadingData)==null?void 0:(I=c.endpoint)==null?void 0:(R=I.watchEndpoint)==null?void 0:R.videoId;var Z;G&&(Z="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.Q1(this.hostElement).querySelector("#player").style.backgroundImage=Z?"url("+Z+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.Q1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&G&&(G.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var c,I;(I=(c=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(c);var R,Z;(Z=(R=this.watchMetadata).resize)==null||Z.call(R)}_.Q1(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(G){var c=_.Q1(this.hostElement).querySelector(G);c?_.CR(c,!1):_.Ck(new _.iW("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var c=_.Q1(this.hostElement).querySelector(G);c?_.Hq(c):_.Ck(new _.iW("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(G){var c=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.dJ.addLowPriorityJob(function(){c.onWindowResized_(_.nE(!0))})},
updateTheaterModeState_:function(G){if(!_.v("kevlar_watch_flexy_theater_manager")){G=G||this.fullWindowMode_;if(this.theater!==void 0||G)this.theater=G;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();G&&_.wlf()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var G=this.theater;_.v("external_fullscreen")&&this.fullscreen&&(G=!0);G=G?_.Q1(this.hostElement).querySelector("#player-full-bleed-container"):_.Q1(this.hostElement).querySelector("#player-container-inner");var c=this.getPlayerContainer(),I=_.v("kevlar_watch_while_v2")||_.v("web_watch_pip");c.parentElement!==G&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.R9(this).appendTo(G,c),G.appendChild(_.Q1(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.T(function(c){if(c.nextAddress==1)return c.yield(_.wH().resolve(_.tA).deactivate(),2);G.updatePlayerLocation();_.Vp(c)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var c=this.getCinematicsLocationContainer();G.parentElement!==c&&c.appendChild(G);var I;(I=this.watchController)==null||XIy(I)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Q1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Q1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(G,c){var I=document.documentElement.hasAttribute("dark"),R=!I&&this.cinematicLightTheme;return G&&I||c&&I||(c||G)&&R},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data);_.v("kevlar_watch_flexy_comments_manager")||this.initComments_();_.v("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.wH().resolve(_.u1).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.v("web_watch_start_chat_in_theater_mode")){var c,
I,R;if((c=this.data)==null?0:(I=c.contents)==null?0:(R=I.twoColumnWatchNextResults)==null?0:R.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Z,K;((Z=this.data)==null?0:(K=Z.contents)==null?0:K.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(G){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(c=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=this.isLiveStreamOffline_(G.playabilityStatus),c&&!G||_.O$(this,function(){_.LC("pbu")}));
this.setPlayerAds_();_.gq(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(G){_.y4().dispatch(_.R6({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new Hd5(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.v("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var c=_.R9(this);_.v("kevlar_disable_prepare_player")||c.preparePlayer();_.v("kevlar_watch_flexy_playlist_manager")||_.wH().resolve(_.u1).setPlayer(c);this.updatePageMediaQueries();c={"--ytd-watch-flexy-scrollbar-width":_.y7()+
"px"};!_.DH("kv_pl_mx_sz_ks")&&_.DH("kevlar_watch_max_player_width")&&(c["--ytd-watch-flexy-max-player-width-wide-screen"]=_.TZx+"px");_.DH("kevlar_watch_flexy_metadata_height")&&(c["--ytd-watch-flexy-space-below-player"]=_.OYx+"px");this.safeUpdateStyles(c);_.v("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new CDS(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
_.v("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Q1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var G=_.y7(),c=_.zC+G,I=c;this.fixedPanels&&(c+=_.aqN);var R=657+G;G=1327+G;_.Q1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+c+"px)";_.Q1(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(c+"px) and (max-width: ")+(G+"px)");_.Q1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");
_.Q1(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var G=_.Q1(this.hostElement).querySelector("#miniplayer-bar").firstChild;return G&&G.active||this.theater||_.v("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.SB(NaN,NaN):_.eG5(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.eG5(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.TB(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.nE());_.v("browse_skeleton_removal_on_watch_killswitch")||_.XG("IS_SHELL_LOAD")&&_.GB6();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var c=_.R9(this);c.addEventListener("yt-player-updated",_.lO(this,this.onPlayerUpdated_));c.getPlayerPromise().then(function(I){G.playerApiReady_(I)});
_.v("kevlar_watch_flexy_playlist_manager")||(c=_.wH().resolve(_.u1),_.v("kevlar_watch_observe_playlist_navigations_killswitch")&&c.addEventListener("yt-navigate",_.lO(this,this.onYtNavigate_)),c.setPlaylistComponent(_.Q1(this.hostElement).querySelector("#playlist")),c.addEventListener("yt-playlist-data-updated",_.lO(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.dJ.addLowPriorityJob(function(){_.Xl(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.R9(this).removeEventListener("yt-player-updated",_.lO(this,this.onPlayerUpdated_));if(!_.v("kevlar_watch_flexy_playlist_manager")){var G=_.wH().resolve(_.u1);_.v("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.lO(this,this.onYtNavigate_));G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.lO(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.v("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Xl(this.hostElement,"yt-autonav-pause-player",!1);G=_.hO();_.v("kevlar_exit_fullscreen_leaving_watch")&&G&&_.dq(G)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(G){this.player&&this.player.updateVideoData({rvs:G.rvs})},
getPageContents:function(G){return G&&G.contents&&G.contents.twoColumnWatchNextResults&&G.contents.twoColumnWatchNextResults.results&&G.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(G){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G)},
onRetrieveLocation_:function(G,c){c.hasComments?c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):c.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,c){this.player&&(c?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.aLo("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Q1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Q1(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(G){this.player=G;this.setPlayerState(G.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.v("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.v("kevlar_unified_player")||_.v("kevlar_player_new_bootstrap_adoption"))&&_.Cs()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,c){c=c===void 0?!0:c;_.hO()&&_.v("external_fullscreen")&&_.dq(document.documentElement);this.theaterRequested_=G;c&&_.zu("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.v("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&&_.Xl(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(G){_.H_(G,typeof this.player),this.player&&_.H_(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.ym(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,c){return this.loading?c:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.Q(G);for(var c=G.next();!c.done;c=G.next())c=c.value,c.youThereRenderer&&_.kzz(this.youThereManager_,c.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var c=this.youThereManager_;_.wj()<G.lowEngagementThresholdMs||_.$Cz(c,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ym(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,c,I){return!!G&&!this.isVideoPlayable_(G,I)&&!c},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,c){if(!G)return!1;var I=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var Z;c=c==null?void 0:(Z=c.playerOverlayRenderer)==null?void 0:Z.gatedActionsOverlayRenderer;return!!I||!!R||!!G||!!c},
hasWatchNextResponseErrorRenderer:function(G){var c=this.getPageContents(G),I,R,Z,K,m;return!(G==null?0:(I=G.contents)==null?0:(R=I.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((Z=c[0])==null?0:(K=Z.itemSectionRenderer)==null?0:(m=K.contents[0])==null?0:m.backgroundPromoRenderer)},
isLiveStreamOffline_:function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(G,c,I){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c),Z=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Z=_.v("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&Z.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var K=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);K==void 0&&(K=!0);!I||this.isVideoPlayable_(G,this.getPlayerOverlays_(c))||
R||Z||!K||_.wH().resolve(_.u1).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.lPR()},
onPlayerFeedbackStartRequest_:function(G){_.ym(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.ym(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,c,I,R,Z,K,m,a,O=((G=this.data)==null?NaN:(c=G.contents)==null?NaN:(I=c.twoColumnWatchNextResults)==null?NaN:(R=I.secondaryResults)==null?NaN:(Z=R.secondaryResults)==null?NaN:(K=Z.offerModule)==null?NaN:(m=K.tvfilmOfferModuleRenderer)==null?NaN:(a=m.actionButtons)==null?NaN:a.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(O>=0?O:0)+".buttonRenderer."];c=_.Q(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=c.next();!I.done;I=c.next())for(I=I.value,R=_.Q(G),Z=R.next();!Z.done;Z=R.next())if(Z="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+Z.value,Z=this.get(Z+"navigationEndpoint",this.data)||this.get(Z+"serviceEndpoint",this.data)||this.get(Z+"command",this.data)){_.qC(Z,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.Xl(this.hostElement,"yt-autonav-pause-player",G)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(G){G()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Xl(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(G)},
setPlayerState:function(G){_.y4().dispatch(_.n_B(G))},
onPlayerSubscribe_:function(G){_.ym(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.ym(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.ym(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:G.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(G){if(G)return G},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(G){return!_.Rs("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return _.v("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,c,I,R;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(c=G.contents)==null?void 0:(I=c.twoColumnWatchNextResults)==null?void 0:(R=I.secondaryResults)==null?void 0:R.secondaryResults}},
setRichGridRendererData:function(G){this.richGridRendererData=G},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,c=(G=this.data)==null?void 0:G.engagementPanels;if(c==null?0:c.length){G=null;c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;var R=void 0;if(((R=I.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){G=I;break}}var Z,K,m;G=(Z=G)==null?void 0:(K=Z.engagementPanelSectionListRenderer)==null?void 0:(m=K.content)==null?void 0:m.structuredDescriptionContentRenderer;if(G==null?0:G.items){Z=
[];K=_.Q(G.items);for(m=K.next();!m.done;m=K.next()){m=m.value;if(!_.v("sd_horizontal_list_show_nav_killswitch")){var a=R=I=c=G=void 0,O=void 0,N=(G=m.horizontalCardListRenderer)==null?void 0:(c=G.header)==null?void 0:(I=c.richListHeaderRenderer)==null?void 0:(R=I.navigationButton)==null?void 0:(a=R.buttonRenderer)==null?void 0:(O=a.command)==null?void 0:O.commandExecutorCommand;N&&N.commands&&(N.commands=N.commands.filter(function(q){return!_.D(q,_.kaz)}))}m.expandableVideoDescriptionBodyRenderer||
m.videoDescriptionHeaderRenderer||Z.push(m)}return{items:Z}}}},
constructWarning_:function(G){return{text:_.Cp(G),type:"WARNING"}},
isPlaShelfEnabled_:function(G){if((this.get("adPlacements",G)||[]).length)return!0;G=this.get("playerAds",G)||[];return!(!G.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",G[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var G=this;_.Xl(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var c=this.getScrollTop()>0;this.gestures_&&(c?this.gestures_.detach():this.gestures_.attach());c!==this.showFullerscreenEdu_&&_.v("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=c,_.R9(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Xl(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.dJ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.W_(_.dJ,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.v("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.LC("cmi");_.dJ.cancelJob(this.setCommentsJobId_);var G=this.getPageContents(this.data);if(G&&G.length){G=_.Q(G);for(var c=G.next();!c.done;c=G.next())if(c=c.value,this.get("itemSectionRenderer.sectionIdentifier",c)==="comment-item-section"){this.comments=c.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Xl(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.v("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.v("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.LC("cmc")},
doRemoveComments_:function(){this.comments={};_.v("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.dJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.dJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,c){var I=_.D(c.endpoint,_.fR);I&&(!(c=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==c.videoId||I.playlistId&&I.playlistId!==c.playlistId||I.index!==void 0&&I.index!==c.index||typeof I.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.R9(this).getPlayerPromise().then(function(R){var Z=I.startTimeSeconds;R.seekTo(Z);R.wakeUpControls();Z<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var G=_.gWG();"t"in G&&(G=_.N0o(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=this.getPageContents(G);var c,I;(G=_.HY(G==null?void 0:(c=G[0])==null?void 0:(I=c.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.Xl(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.Xl(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,c,I){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===I&&(I=R.list,_.v("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),R.video_id!==G||I!=c)){var Z;_.v("kevlar_player_watch_endpoint_navigation")?Z=_.ter(_.mCN(G,c)):Z=this.buildWatchEndpoint_(G,c);_.Xl(this.hostElement,"yt-navigate",{endpoint:Z,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(G,c,I){return _.YD(G,c,I)},
initDclkstatus_:function(){_.OdJ()},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var c=G.querySelector("#primary-info"),I=G.querySelector("#secondary-info"),R=G.querySelector("#related");c&&_.Q1(this.hostElement).querySelector("#info-skeleton").appendChild(c);I&&_.Q1(this.hostElement).querySelector("#meta-skeleton").appendChild(I);R&&(_.Q1(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.ST(G)}},
handlePlayerUpdated_:function(){_.R9(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,c){if(this.watchNextSkeletonEl_&&typeof c!=="undefined"){var I=this.watchNextSkeletonEl_.children,R=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,I.length);c||(R=0,G=I.length);for(c=R;c<G;c++)I[c].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.v("external_fullscreen")||_.ym(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var c=_.R9(this);c.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.hO())});
this.updateFullBleedElementLocations();G&&(c.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,c){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!c},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,c){return c&&!!G},
computeResponseHasComments:function(G){var c,I,R,Z,K;return!!(G==null?0:(c=G.contents)==null?0:(I=c.twoColumnWatchNextResults)==null?0:(R=I.results)==null?0:(Z=R.results)==null?0:(K=Z.contents)==null?0:K.some(function(m){var a;return(m==null?void 0:(a=m.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,c){this.responseHasComments=this.computeResponseHasComments(this.data);return!!G&&!!Object.keys(G).length&&!c},
identity:_.E0,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.v("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(G){var c=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.R9(this).getPlayerPromise().then(function(I){var R=I.getPlayerState();R!==5&&R!==0&&(I=1/I.getVideoAspectRatio(),c.videoHeightToWidthRatio_!==I&&(c.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(G){var c=this,I=_.v("kevlar_watch_while_v2")||_.v("web_watch_pip"),R=function(){if(c.watchMetadata){var Z,K;(K=(Z=c.watchMetadata).resize)==null||K.call(Z)}_.R9(c).getPlayerPromise().then(function(m){if(_.v("kevlar_set_internal_player_size")){if(!I||!c.isMiniplayerActive()){var a=c.calculateCurrentPlayerSize_();m.setInternalSize(a.width,a.height)}}else m.setSize(NaN,NaN);_.v("kevlar_watch_while")&&c.updateWatchWhileScrollThreshold_()})};
G?R():_.U_(_.dJ,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.D(G,_.oCN).survey)},
onDownloadedVideoDeleted:function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1){if(!c.active||(I=c.playerData)==null||!I.offlineState||c.videoId!==G)return Z.return();(R=c.player)==null||R.stopVideo();_.ck().navigatingAwayFromWatchDeletedVideo=!0;_.qC(_.g3r,c.hostElement);return Z.yield(_.ck().navigationFinishPromise,2)}_.ck().navigatingAwayFromWatchDeletedVideo=!1;_.Vp(Z)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.Be(.5625*this.windowSize_.width,480,this.windowSize_.height-185):G=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==G&&(this.watchWhileScrollThreshold_=G,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var G=_.Q1(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&G){var c=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!G.active&&c&&I>=this.watchWhileScrollThreshold_?(G.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):G.active&&(!c||I<this.watchWhileScrollThreshold_&&!_.hO())&&(G.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(G,c){if(G!==!0||c!==void 0){G=!_.v("live_chat_over_engagement_panels");c=_.Q1(this.hostElement).querySelector("#chat-container");var I=_.Q1(this.hostElement).querySelector("#plj-sidebar"),R=_.Q1(this.hostElement).querySelector("#panels"),Z=_.Q1(this.hostElement).querySelector("#plj-panels"),K=_.Q1(this.hostElement).querySelector("#plj-playlist"),m=_.Q1(this.hostElement).querySelector("#alerts"),a=_.Q1(this.hostElement).querySelector("#playlist"),O=_.Q1(this.hostElement).querySelector("#related"),
N=_.Q1(this.hostElement).querySelector("#donation-shelf"),q=_.Q1(this.hostElement).querySelector("#comments");this.isTwoColumns_?(m=_.Q1(this.hostElement).querySelector("#secondary-inner"),m.appendChild(I),I.appendChild(K),K.appendChild(a),I.appendChild(Z),G&&m.appendChild(R),_.v("web_watch_theater_chat")||m.appendChild(c),G||m.appendChild(R),m.appendChild(N),m.appendChild(O)):(G&&_.Cm(R,m),_.Cm(a,m),_.v("web_watch_theater_chat")||_.Cm(c,m),G||_.Cm(R,m),_.Cm(N,m),q&&(Z&&_.Cm(Z,q),_.Cm(O,q)));_.v("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.v("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.v("web_watch_theater_chat")){var G=_.Q1(this.hostElement).querySelector("#chat-container"),c=this.theater&&!this.fullscreen||_.v("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&c?_.v("web_watch_theater_chat_beside_player")?(c=_.Q1(this.hostElement).querySelector("#panels-full-bleed-container"),(G==null?void 0:G.parentElement)!==c&&c.append(G),this.panelsBesidePlayer=!0):_.v("web_watch_theater_fixed_chat")&&
(c=_.Q1(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==c&&c.append(G),this.fixedPanels=!0):(_.v("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.v("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),c=_.Q1(this.hostElement).querySelector("#playlist"),G&&c?_.H7(G,c):_.Ck(new _.iW("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!c})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,c){return _.v("sw_metadata_vis_toggle_ks")?!0:!!G||!!c},
computeForceDarkPanelTheme:function(G){return _.v("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.eD(this.hostElement,G)}catch(c){_.Ck(c)}},
videoHeightToWidthRatioChanged_:function(G,c){c&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.v("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(G){this.videoHeightToWidthRatio_=1/G},
computeIsVerticalVideo_:function(G){return G>=1},
computeIsFourThreeToSixteenNineVideo_:function(G){return G<=.7501&&G>=.5624},
computeIsExtraWideVideo_:function(G){return G<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.R9(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.R9(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Snx(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var c=_.ka(G)||0;_.bu(G,c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.ka("yt-fullerscreen-edu-button-click-count")||0,c=_.ka("yt-fullerscreen-edu-button-shown-count")||0,I=_.DH("external_fullscreen_button_shown_threshold"),R=G>=_.DH("external_fullscreen_button_click_threshold")||c>=I;_.R9(this).getPlayerPromise().then(function(Z){Z.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,c){return c},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.wH().resolve(_.u1).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.panelMaxHeightUpdateJob_&&_.dJ.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.dJ.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var c;!G.isTwoColumns_||G.theater||G.fullscreen?c=460:c=G.calculateNormalPlayerSize_().height;var I=c+"px";_.v("live_chat_taller_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.v("live_chat_medium_height")&&
!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.v("live_chat_scaled_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":c+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":c+"px","--ytd-watch-flexy-comments-panel-max-height":c+"px","--ytd-comments-engagement-panel-content-height":c+"px"})})},
onYtShowEngagementPanelScrimAction_:function(G){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",G)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.cd(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var c=_.Q1(this.hostElement).querySelector("#engagement-panel-scrim");G?c.addEventListener("tap",_.lO(this,this.onEngagementPanelScrimClick_)):c.removeEventListener("tap",_.lO(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var c=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var I=this.getPageScrollingElement(),R=this.getScrollTop(),Z=R+I.clientHeight-56;if(c<R+56)c-=56;else if(G>Z)c=G-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.v("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.p8().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,c,I){this.active&&this.trackEngagementPanelVisibility&&!_.vCo.includes(I)&&(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(I),c!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(G){return G?"":"watch-active-metadata"},
computeNewMetadataClass:function(G){return G?"watch-active-metadata":""},
computeFullBleedPlayer:function(G,c){return G||c},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,c){return!G&&c},
computeWatchWhilePanelsActive:function(G,c){return G||c},
computeNoBorderOnChat:function(G){return _.v("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,c){return G&&!c},
computePanelExpanded:function(G,c,I){return G||c||I},
onChangeMarkersVisibility:function(G){_.R9(this).getPlayerPromise().then(function(c){var I;(I=c.changeMarkerVisibility)==null||I.call(c,_.D(G,_.x2).isVisible||!1,_.D(G,_.x2).entityKeys||[],_.D(G,_.x2).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.y4().dispatch(_.nCT(G.detail))},
provideRenderingData:function(G,c){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=c;break;case "PRIMARY_INFO":_.v("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=c);this.videoPrimaryInfoRendererValue=c==null?void 0:c.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.v("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=c);this.videoSecondaryInfoRendererValue=c==null?void 0:c.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
c;break;case "CLARIFICATION":this.clarifyBoxValue=c;break;case "LIVE_CHAT":this.conversationBar=c;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=c;break;case "PLAYLIST":this.externalPlaylistData_=c!=null?c:{};break;case "MERCH_SHELF":this.merchShelfValue=c==null?void 0:c.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=c;break;case "OFFER_MODULE":this.offerModule=c;break;case "LIMITED_STATE":this.limitedStateValue=c;break;case "DONATION_SHELF":this.donation=c;break;
case "ALERTS":this.alertsValue=c;break;case "COMMENTS":this.comments=c;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=c;break;case "ENGAGEMENT_PANELS":this.engagementPanels=c;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=c;break;case "RICH_GRID_RENDERER":this.richGridRendererData=c;break;case "EXPANDABLE_METADATA":this.expandableMetadata=c;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=c}},
toggleCinematicsActive:function(G){this.cinematicsActive=G},
isMiniplayerActive:function(){return _.wH().resolve(_.tA).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(G){return gCz.map(function(c){return G.find(function(I){var R;return(I==null?void 0:(R=I.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===c})}).filter(function(c){return c!==void 0})},
getNonLearningJourneyEngagementPanels:function(G){return G.filter(function(c){var I;return!gCz.includes((c==null?void 0:(I=c.engagementPanelSectionListRenderer)==null?void 0:I.targetId)||"")})}}];var Ynf;var Y2=function(){var G=_.J.apply(this,arguments)||this;G.flexy=!0;G.learningJourney=!0;G.viewTransitionEnabled=_.v("enable_player_resize_transition");G.smallerChatMinHeight=_.v("live_chat_smaller_min_height");G.isDarkTheme=document.documentElement.hasAttribute("dark");G.theaterLargerPlayer=_.v("web_watch_theater_larger_player");G.defaultCollapsePlaylist=_.v("web_watch_default_collapse_playlist");G.enableCanvasLayout=_.v("web_enable_canvas_on_learning_journey");return G};
_.u(Y2,_.J);_.P=Y2.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var G=this,c=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(G){_.v("web_watch_update_narrow_width_killswitch")||_.y4().dispatch(_.n7o(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.P.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.P.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23841_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23841_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Nh.Object.defineProperties(Y2.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(G=_.D(this.data.pageVisualEffects[c],_.gz))return c=void 0,(c=G.config)==null?void 0:c.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.learningJourneyEngagementPanels)==null?void 0:G.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.learningJourneyEngagementPanels)==null?void 0:G.find(function(F){var n;return(F==null?void 0:(n=F.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="learning-journey-engagement-panel"});
if(c){var I,R,Z,K,m,a,O,N,q;if(G=(N=((O=(m=((K=c==null?void 0:(I=c.engagementPanelSectionListRenderer)==null?void 0:(R=I.content)==null?void 0:(Z=R.sectionListRenderer)==null?void 0:Z.contents)!=null?K:[])[0])==null?void 0:(a=m.itemSectionRenderer)==null?void 0:a.contents)!=null?O:[])[0])==null?void 0:(q=N.accordionViewModel)==null?void 0:q.onTitleTap){var w=_.WI(G);if(w)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.NC.instance.resolveCommand(w)}}}}}}});
_.Nh.Object.defineProperties(Y2,{template:{configurable:!0,enumerable:!0,get:function(){if(Ynf===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="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  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);Ynf=G}G=Ynf;return G}}});
Y2.prototype.updateMiniplayerIsActiveValue=Y2.prototype.updateMiniplayerIsActiveValue;Y2.prototype.updateScrollTopValue=Y2.prototype.updateScrollTopValue;Y2.prototype.updateFullscreenValue=Y2.prototype.updateFullscreenValue;Y2.prototype.updateTheaterValue=Y2.prototype.updateTheaterValue;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Y2.prototype,"ytComponentBehavior",void 0);
_.r([_.L(yN_.YtdLearningJourneyWatchBehavior),_.h("design:type",Object)],Y2.prototype,"ytdWatchBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Y2.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Y2.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Y2.prototype,"playerData",void 0);_.r([_.E(),_.h("design:type",Object)],Y2.prototype,"browseData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Y2.prototype,"flexy",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Y2.prototype,"learningJourney",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Y2.prototype,"viewTransitionEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Y2.prototype,"smallerChatMinHeight",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Y2.prototype,"isDarkTheme",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Y2.prototype,"theaterLargerPlayer",void 0);_.r([_.E(),_.h("design:type",Object)],Y2.prototype,"defaultCollapsePlaylist",void 0);_.r([_.E(),_.h("design:type",Object)],Y2.prototype,"enableCanvasLayout",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("playerData","browseData","enableCanvasLayout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Y2.prototype,"showBrowseResponse",null);
_.r([_.E({reflectToAttribute:!0}),_.A("playerData","enableCanvasLayout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Y2.prototype,"showWatchResponse",null);_.r([_.E({selector:_.z9}),_.h("design:type",Object)],Y2.prototype,"theaterValue",void 0);_.r([_.E({selector:_.E3}),_.h("design:type",Object)],Y2.prototype,"fullscreenValue",void 0);_.r([_.E({selector:_.AR}),_.h("design:type",Object)],Y2.prototype,"scrollTopValue",void 0);
_.r([_.E({selector:_.pp}),_.h("design:type",Object)],Y2.prototype,"miniplayerIsActiveValue",void 0);_.r([_.nH("#ytd-plj-player"),_.h("design:type",HTMLElement)],Y2.prototype,"ytdPlayer",void 0);_.r([_.nH("#playlist"),_.h("design:type",HTMLElement)],Y2.prototype,"JSC$23841_ytdPlaylistPanelRenderer",void 0);_.r([_.ar("ytd-comments"),_.h("design:type",HTMLElement)],Y2.prototype,"ytdComments",void 0);_.r([_.nH("#primary"),_.h("design:type",HTMLElement)],Y2.prototype,"primary",void 0);
_.r([_.nH("#secondary"),_.h("design:type",HTMLElement)],Y2.prototype,"secondary",void 0);_.r([_.nH("#player-container"),_.h("design:type",HTMLElement)],Y2.prototype,"playerContainer",void 0);_.r([_.nH("#cinematics"),_.h("design:type",HTMLElement)],Y2.prototype,"JSC$23841_cinematics",void 0);_.r([_.wD("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y2.prototype,"updateTheaterValue",null);
_.r([_.wD("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y2.prototype,"updateFullscreenValue",null);_.r([_.wD("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y2.prototype,"updateScrollTopValue",null);_.r([_.wD("miniplayerIsActiveValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y2.prototype,"updateMiniplayerIsActiveValue",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Y2.prototype,"cinematicLightTheme",null);_.r([_.E({reflectToAttribute:!0}),_.A("learningJourneyEngagementPanels"),_.h("design:type",Object),_.h("design:paramtypes",[])],Y2.prototype,"hasLearningJourneyPanels",null);_.r([_.A("learningJourneyEngagementPanels"),_.h("design:type",Object),_.h("design:paramtypes",[])],Y2.prototype,"backButtonData",null);_.r([_.Jc({is:"ytd-watch-learning-journey"})],Y2);_.F5.registerService(_.DPi,Y2);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("Tm0L3c");
var fPf;var B0x;var rN5=function(){return _.J.apply(this,arguments)||this};
_.u(rN5,_.J);_.r([_.Jc({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],rN5);
_.B(rN5,"ytd-ghost-comments-renderer",function(){if(B0x===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);B0x=G}G=B0x;return G},{mode:1});var jJy;var xC5=function(){return _.J.apply(this,arguments)||this};
_.u(xC5,_.J);_.r([_.Jc({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],xC5);
_.B(xC5,"ytd-ghost-watch-metadata-renderer",function(){if(jJy===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);jJy=G}G=jJy;return G},{mode:1});var gO=function(){var G=_.J.apply(this,arguments)||this;G.ghostGridRenderer={rows:6};G.smallerChatMinHeight=_.v("live_chat_smaller_min_height");G.darkerPanels=_.v("web_watch_darker_panels");G.isDarkTheme=document.documentElement.hasAttribute("dark");return G};
_.u(gO,_.J);_.P=gO.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var G=this,c=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(G){this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.P.updateShownItemsFromBinding=function(G){_.v("swatcheroo_direct_use_rich_grid")||(G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value)};
_.P.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23829_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23829_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Nh.Object.defineProperties(gO.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(G=_.D(this.data.pageVisualEffects[c],_.gz))return c=void 0,(c=G.config)==null?void 0:c.enableInLightTheme;return!1}}});
gO.prototype.updateMiniplayerIsActiveValue=gO.prototype.updateMiniplayerIsActiveValue;gO.prototype.updateScrollTopValue=gO.prototype.updateScrollTopValue;gO.prototype.updateFullscreenValue=gO.prototype.updateFullscreenValue;gO.prototype.updateTheaterValue=gO.prototype.updateTheaterValue;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],gO.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.WwJ.YtdWatchBehavior),_.h("design:type",Object)],gO.prototype,"ytdWatchBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],gO.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gO.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],gO.prototype,"ghostGridRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],gO.prototype,"playerData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],gO.prototype,"smallerChatMinHeight",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],gO.prototype,"darkerPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],gO.prototype,"isDarkTheme",void 0);_.r([_.E({selector:_.z9}),_.h("design:type",Object)],gO.prototype,"theaterValue",void 0);_.r([_.E({selector:_.E3}),_.h("design:type",Object)],gO.prototype,"fullscreenValue",void 0);_.r([_.E({selector:_.AR}),_.h("design:type",Object)],gO.prototype,"scrollTopValue",void 0);
_.r([_.E({selector:_.pp}),_.h("design:type",Object)],gO.prototype,"miniplayerIsActiveValue",void 0);_.r([_.nH("#ytd-player"),_.h("design:type",HTMLElement)],gO.prototype,"ytdPlayer",void 0);_.r([_.nH("#playlist"),_.h("design:type",HTMLElement)],gO.prototype,"JSC$23829_ytdPlaylistPanelRenderer",void 0);_.r([_.nH("#ytd-comments"),_.h("design:type",HTMLElement)],gO.prototype,"ytdComments",void 0);_.r([_.nH("#primary"),_.h("design:type",HTMLElement)],gO.prototype,"primary",void 0);
_.r([_.nH("#secondary"),_.h("design:type",HTMLElement)],gO.prototype,"secondary",void 0);_.r([_.nH("#player-container"),_.h("design:type",HTMLElement)],gO.prototype,"playerContainer",void 0);_.r([_.nH("#cinematics"),_.h("design:type",HTMLElement)],gO.prototype,"JSC$23829_cinematics",void 0);_.r([_.wD("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gO.prototype,"updateTheaterValue",null);
_.r([_.wD("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gO.prototype,"updateFullscreenValue",null);_.r([_.wD("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gO.prototype,"updateScrollTopValue",null);_.r([_.wD("miniplayerIsActiveValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gO.prototype,"updateMiniplayerIsActiveValue",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],gO.prototype,"cinematicLightTheme",null);
_.B(gO,"ytd-watch-grid",function(){if(fPf===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);fPf=G}G=fPf;return G},{mode:2});_.F5.registerService(_.v2q,gO);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("CF909");
var idG;var yS=function(){var G=_.J.apply(this,arguments)||this;G.viewTransitionEnabled=_.v("enable_player_resize_transition");G.smallerChatMinHeight=_.v("live_chat_smaller_min_height");G.isDarkTheme=document.documentElement.hasAttribute("dark");G.defaultCollapsePlaylist=_.v("web_watch_default_collapse_playlist");G.respectAspectRatio=_.v("web_enable_aspect_ratio_fix");G.retroModeReduxValue=!1;G.persistentPanelVisibleValue=!1;return G};
_.u(yS,_.J);_.P=yS.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateRetroModeReduxValue=function(){_.v("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.P.updatePersistentPanelVisibleValue=function(){_.v("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.P.ready=function(){var G=this,c=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(G){_.v("web_watch_update_narrow_width_killswitch")||_.y4().dispatch(_.n7o(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.P.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.P.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23824_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23824_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.Nh.Object.defineProperties(yS.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(G=_.D(this.data.pageVisualEffects[c],_.gz))return c=void 0,(c=G.config)==null?void 0:c.enableInLightTheme;return!1}}});
_.Nh.Object.defineProperties(yS,{template:{configurable:!0,enumerable:!0,get:function(){if(idG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="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="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);idG=G}G=idG;return G}}});
yS.prototype.updatePersistentPanelVisibleValue=yS.prototype.updatePersistentPanelVisibleValue;yS.prototype.updateRetroModeReduxValue=yS.prototype.updateRetroModeReduxValue;yS.prototype.updateScrollTopValue=yS.prototype.updateScrollTopValue;yS.prototype.updateFullscreenValue=yS.prototype.updateFullscreenValue;yS.prototype.updateTheaterValue=yS.prototype.updateTheaterValue;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],yS.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.WwJ.YtdWatchBehavior),_.h("design:type",Object)],yS.prototype,"ytdWatchBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],yS.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yS.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],yS.prototype,"playerData",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],yS.prototype,"viewTransitionEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],yS.prototype,"smallerChatMinHeight",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],yS.prototype,"isDarkTheme",void 0);_.r([_.E(),_.h("design:type",Object)],yS.prototype,"defaultCollapsePlaylist",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],yS.prototype,"respectAspectRatio",void 0);
_.r([_.E({selector:_.z9}),_.h("design:type",Object)],yS.prototype,"theaterValue",void 0);_.r([_.E({selector:_.E3}),_.h("design:type",Object)],yS.prototype,"fullscreenValue",void 0);_.r([_.E({selector:_.AR}),_.h("design:type",Object)],yS.prototype,"scrollTopValue",void 0);_.r([_.E({selector:_.pp}),_.h("design:type",Object)],yS.prototype,"miniplayerIsActive",void 0);_.r([_.E({selector:function(G){return G.watch.isWatchRetroMode}}),
_.h("design:type",Object)],yS.prototype,"retroModeReduxValue",void 0);_.r([_.E({selector:_.Ce.persistentPanelVisibleSelector}),_.h("design:type",Object)],yS.prototype,"persistentPanelVisibleValue",void 0);_.r([_.ar("ytd-player"),_.h("design:type",HTMLElement)],yS.prototype,"ytdPlayer",void 0);_.r([_.nH("#playlist"),_.h("design:type",HTMLElement)],yS.prototype,"JSC$23824_ytdPlaylistPanelRenderer",void 0);_.r([_.ar("ytd-comments"),_.h("design:type",HTMLElement)],yS.prototype,"ytdComments",void 0);
_.r([_.nH("#primary"),_.h("design:type",HTMLElement)],yS.prototype,"primary",void 0);_.r([_.nH("#secondary"),_.h("design:type",HTMLElement)],yS.prototype,"secondary",void 0);_.r([_.nH("#player-container"),_.h("design:type",HTMLElement)],yS.prototype,"playerContainer",void 0);_.r([_.nH("#below"),_.h("design:type",HTMLElement)],yS.prototype,"below",void 0);_.r([_.nH("#cinematics"),_.h("design:type",HTMLElement)],yS.prototype,"JSC$23824_cinematics",void 0);
_.r([_.nH("#persistent-panel-container"),_.h("design:type",HTMLElement)],yS.prototype,"persistentPanelContainer",void 0);_.r([_.wD("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yS.prototype,"updateTheaterValue",null);_.r([_.wD("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yS.prototype,"updateFullscreenValue",null);
_.r([_.wD("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yS.prototype,"updateScrollTopValue",null);_.r([_.wD("retroModeReduxValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yS.prototype,"updateRetroModeReduxValue",null);_.r([_.wD("persistentPanelVisibleValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yS.prototype,"updatePersistentPanelVisibleValue",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],yS.prototype,"cinematicLightTheme",null);_.r([_.Jc({is:"ytd-watch-flexy"})],yS);_.F5.registerService(_.n20,yS);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("nmfa2d");
var ycN;var rO=function(){var G=_.J.apply(this,arguments)||this;G.hidden=!1;G.errorScreen=null;G.playlistData={};return G};
_.u(rO,_.J);_.P=rO.prototype;_.P.getPlayer=function(){return this.ytdPlayer};
_.P.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.Hn(["aa","eocs"])}}};
_.P.onActiveChanged=function(){_.y4().dispatch(_.L95(this.ytPageBehavior.active))};
_.P.playerDataChanged=function(){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData)};
_.P.dataChanged=function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)};
_.P.sizeChanged=function(){var G,c;(c=(G=this.metadata).resize)==null||c.call(G)};
_.P.attached=function(){this.watchController=new _.f_(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.P.detached=function(){_.TB(this.watchController);this.watchController=void 0};
_.P.getPlayerContainer=function(){return this.playerContainer};
_.P.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.P.provideRenderingData=function(G,c){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=c;break;case "ERROR_SCREEN":this.errorScreen=c!=null?c:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=c;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=c;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=c;break;case "RICH_METADATA":this.richMetadataRowContainer=c;break;case "CLARIFICATION":this.clarificationData=c;break;case "PLAYLIST":this.playlistData=
c!=null?c:{};break;case "MERCH_SHELF":this.merchShelf=c;break;case "TICKET_SHELF":this.ticketShelf=c;break;case "LIMITED_STATE":this.limitedState=c;break;case "DONATION_SHELF":this.donationShelf=c;break;case "ALERTS":this.alerts=c}};
_.Nh.Object.defineProperties(rO.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return!this.hidden&&!!((G=this.data)==null?0:(c=G.contents)==null?0:(I=c.twoColumnWatchNextResults)==null?0:I.conversationBar)}}});
rO.prototype.sizeChanged=rO.prototype.sizeChanged;rO.prototype.dataChanged=rO.prototype.dataChanged;rO.prototype.playerDataChanged=rO.prototype.playerDataChanged;rO.prototype.onActiveChanged=rO.prototype.onActiveChanged;_.r([_.L(_.co.YtPageBehavior),_.h("design:type",Object)],rO.prototype,"ytPageBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],rO.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"playerData",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],rO.prototype,"hidden",void 0);_.r([_.nH("#ytd-player"),_.h("design:type",HTMLElement)],rO.prototype,"ytdPlayer",void 0);_.r([_.nH("#player-container"),_.h("design:type",HTMLElement)],rO.prototype,"playerContainer",void 0);_.r([_.nH("#metadata"),_.h("design:type",Object)],rO.prototype,"metadata",void 0);_.r([_.nH("#playlist"),_.h("design:type",HTMLElement)],rO.prototype,"playlistPanel",void 0);
_.r([_.E({selector:_.lwy,reflectToAttribute:!0}),_.h("design:type",Object)],rO.prototype,"fixie",void 0);_.r([_.E({selector:_.m1r,reflectToAttribute:!0}),_.h("design:type",Object)],rO.prototype,"singleColumn",void 0);_.r([_.E({selector:function(G){return _.z9(G)&&!_.E3(G)},
reflectToAttribute:!0}),_.h("design:type",Object)],rO.prototype,"theater",void 0);_.r([_.E({selector:_.E3,reflectToAttribute:!0}),_.h("design:type",Object)],rO.prototype,"fullscreen",void 0);_.r([_.E({selector:_.bHz}),_.h("design:type",Object)],rO.prototype,"windowSize",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"singleColumnContents",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"errorScreen",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"playlistData",void 0);
_.r([_.E(),_.h("design:type",Object)],rO.prototype,"videoPrimaryInfoRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"videoSecondaryInfoRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"richMetadataRowContainer",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"clarificationData",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"commentsEntryPointHeaderRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"ticketShelf",void 0);
_.r([_.E(),_.h("design:type",Object)],rO.prototype,"merchShelf",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"donationShelf",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"limitedState",void 0);_.r([_.E(),_.h("design:type",Object)],rO.prototype,"alerts",void 0);_.r([_.A("playlistData"),_.h("design:type",Object),_.h("design:paramtypes",[])],rO.prototype,"hasPlaylistData",null);
_.r([_.A("data","hidden"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rO.prototype,"hasChat",null);_.r([_.wD("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rO.prototype,"onActiveChanged",null);_.r([_.wD("playerData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rO.prototype,"playerDataChanged",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rO.prototype,"dataChanged",null);_.r([_.wD("windowSize","singleColumn"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rO.prototype,"sizeChanged",null);
_.B(rO,"ytd-watch-fixie",function(){if(ycN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);ycN=G}G=ycN;return G},{mode:1});_.F5.registerService(_.FaC,rO);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("xwEKAe");
var KbT=function(G){G=G.command;var c=_.D(G,_.vH);return{command:G,reelPlayerOverlayRenderer:_.D(c==null?void 0:c.overlay,_.Nyp),thumbnail:c==null?void 0:c.thumbnail,videoId:c.videoId}},PWJ=function(G){G=G.command;
var c=_.D(G,_.wt);return{command:G,reelNonVideoContentRenderer:_.D(c==null?void 0:c.renderer,_.nJ)}},Qa5=function(G){return G.entries?G.entries.map(function(c){return _.D(c==null?void 0:c.command,_.vH)?KbT(c):PWJ(c)}):[]},mRS=function(G){return G.prevEntries?G.prevEntries.map(function(c){return _.D(c==null?void 0:c.command,_.vH)?KbT(c):PWJ(c)}):[]},aH_=function(G){return _.Ta(G)?G.getAttribute("jsname")==="coFSxe":!1},THJ=function(G,c){c.id||(c.id="ow"+_.XB(c));
G.setAttribute("jsowner",c.id);G.__owner=c;var I=_.H6(c,aH_);I&&(_.XqK.has(I)||_.XqK.set(I,[]),_.XqK.get(I).push(G));(I=_.HRe.get(c))||_.HRe.set(c,I=[]);I.includes(G)||I.push(G);c.setAttribute("__IS_OWNER",!0)},O4R=function(){var G=_.L_f(1);
G=_.OZ(G,_.VvA);if(!(_.szg(G)||G[_.AOC]&&!G.__hasBeenSet))return G.value},eMS=function(G){return(G=_.KP0(G))?_.Qt8(G):0},NHR=function(G){return G.shorts.isSmallScreenSqueezeback},lHx=function(G){return G.shorts.isPlaybackStarted},q2R=function(G){var c=_.OC();
if(c.getFlag(202))c=c.getFlag(201);else{var I;c=(G==null?void 0:(I=G.config)==null?void 0:I.settingOnByDefault)!==void 0?G.config.settingOnByDefault:!_.Rs("web_shorts_cinematics_disabled_by_default")}return c},wKx=function(G){var c=_.OC();
_.eW(0,201,G);_.eW(0,202,!0);c.save()},v6o=function(G){var c=_.L_f(2),I=new Set;
_.ty(function(){return void I.forEach(function(R){return void R()})});
return function(R){var Z=_.Ty(c);try{var K=Fb6(n6x(G),R);I.add(K);return function(){K();I.delete(K)}}finally{_.Ty(Z)}}},DRy=function(G){var c=G.children;
var I=G.root;_.xc(function(){var R=v6o(I)(c);_.ty(R)});
return document.createTextNode("")},Fb6=function(G,c){var I=o6T(G);
(G=O4R())&&THJ(I,G);_.sG.setUp();c=_.Q(_.yYi(c,!0));G=c.next().value;var R=c.next().value;c=_.Q(G);for(G=c.next();!G.done;G=c.next())I.appendChild(G.value);_.sG.log(I);_.sG.tearDown();return function(){R();I.remove()}},n6x=function(G){if(typeof G==="string")return G=document.querySelector(G),_.HHr(G),G;
if(_.v1(G)&&G.nodeType===Node.ELEMENT_NODE)return G;if(!G.__value&&!G.__optional){var c=_.SQC.USE_ELEMENT_NOT_ASSIGNED(G.__expectedTagName);G.__hasErrored=!0;throw c;}return G.value},o6T=function(G){var c=document.createElementNS(G.namespaceURI,G.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return G.appendChild(c)},b4G=function(G,c,I,R){if(G)return R=R||G.likeStatus,c?{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="LIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:I},defaultText:R==="LIKE"?G.likeCountWithUnlikeText:G.likeCountText,toggledText:R==="LIKE"?G.likeCountText:G.likeCountWithLikeText,defaultNavigationEndpoint:URy(G,"LIKE"),defaultServiceEndpoint:uAG(G,"LIKE"),toggledServiceEndpoint:uAG(G,"INDIFFERENT"),defaultTooltip:_.HY(G.likeCountTooltipText),toggledTooltip:_.HY(G.likeCountTooltipText),targetId:G.targetId}:{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="DISLIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:I},defaultText:R==="DISLIKE"?G.dislikeCountWithUndislikeText:G.dislikeCountText,toggledText:R==="DISLIKE"?G.dislikeCountText:G.dislikeCountWithDislikeText,defaultNavigationEndpoint:URy(G,"DISLIKE"),defaultServiceEndpoint:uAG(G,"DISLIKE"),toggledServiceEndpoint:uAG(G,"INDIFFERENT"),defaultTooltip:_.HY(G.dislikeCountTooltipText),toggledTooltip:_.HY(G.dislikeCountTooltipText)}},URy=
function(G,c){if(c==="LIKE")return G.likeCommand;
if(c==="DISLIKE")return G.dislikeNavigationEndpoint},uAG=function(G,c){var I;
return(I=G.serviceEndpoints)==null?void 0:I.find(function(R){var Z;return((Z=_.D(R,_.m1))==null?void 0:Z.status)===c})},ku5=function(G,c,I,R){G=c-G;
I=R-I;return Math.sqrt(G*G+I*I)},saz=function(G){var c=G>>8&255,I=G&255;
return"#"+(G>>16&255).toString(16).padStart(2,"0")+c.toString(16).padStart(2,"0")+I.toString(16).padStart(2,"0")},LbT=function(G,c){G&&_.wH().resolve(_.n4).resolveCommand(G,{forceClickLogging:!0,
form:{element:c}})},Aw_=function(){return _.wH().resolve(_.RY).dismissedIndices},$Rz=function(G,c){var I,R,Z,K,m,a,O,N,q;
return _.T(function(w){if(w.nextAddress==1){I=_.wH().resolve(_.GY);K=(R=I)==null?void 0:(Z=R.reelWatchEndpointMap)==null?void 0:Z.reelWatchSequence;a=(m=G.innertubeTransportService)!=null?m:_.wH().resolve(_.UU);if(!K)return w.jumpTo(2);O=K();return(N=O.JSC$14340_getRequest(c,{}))?w.yield(_.UO(a,N.innerTubeRequest,N.input,c.clickTrackingParams,N.config),4):w.jumpTo(2)}return w.nextAddress!=2?(q=w.yieldResult,w.return(q)):w.return(void 0)})},S26=function(G,c,I){var R,Z=(R=_.D(c,_.vH))==null?void 0:
R.videoId;
R=!(!Z||!G.find(function(m){return m.videoId&&m.videoId===Z}));
var K=!!G.find(function(m){var a;return((a=_.D(m.command,_.vH))==null?void 0:a.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
G=!!G.find(function(m){return!!_.D(m.command,_.wt)&&!!_.D(c,_.wt)&&m.command===c});
return I?R||G:R||K||G},pKS=function(G,c,I){var R=[].concat(_.jn(G)),Z=0,K=I?Qa5(I):[];
I=I?mRS(I):[];c&&!S26(G,c.command)&&R.unshift(c);K.length&&!S26(G,K[0].command,!0)&&R.push.apply(R,_.jn(K));c&&I.length&&!S26(G,I[0].command)&&(R.unshift.apply(R,_.jn(I.reverse())),Z=I.length);return{newContentList:R,indexChange:Z}},MAf=function(G){var c;
(c=G.currentCinematicEffect)==null||c.clear()},VAo=function(G){return _.R6({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:G}})},zMN=function(G){return _.R6({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:G}})},E6z=function(G){return _.R6({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:G}})};var n3=function(G,c){if(G instanceof n3)this.array_=G.array_;else{var I;if(I=_.xp(G))a:{for(var R=I=0;R<G.length;R++){if(!_.xp(G[R])||I>0&&G[R].length!=I){I=!1;break a}for(var Z=0;Z<G[R].length;Z++)if(typeof G[R][Z]!=="number"){I=!1;break a}I==0&&(I=G[R].length)}I=I!=0}if(I)this.array_=_.jr(G);else if(G instanceof _.SB)this.array_=JwN(G.height,G.width);else if(typeof G==="number"&&typeof c==="number"&&G>0&&c>0)this.array_=JwN(G,c);else throw Error("$o");}this.size_=new _.SB(this.array_[0].length,
this.array_.length)},Wbf=function(G,c,I){for(var R=0;R<G.getSize().height;R++)for(var Z=0;Z<G.getSize().width;Z++)c.call(I,G.array_[R][Z],R,Z,G)},i4_=function(G,c){var I=new n3(G.getSize());
Wbf(G,function(R,Z,K){I.array_[Z][K]=c.call(void 0,R,Z,K,G)});
return I},JwN=function(G,c){for(var I=[],R=0;R<G;R++){I[R]=[];
for(var Z=0;Z<c;Z++)I[R][Z]=0}return I};
n3.prototype.add=function(G){if(!_.VVx(this.size_,G.getSize()))throw Error("ap");return i4_(this,function(c,I,R){return c+G.array_[I][R]})};
n3.prototype.equals=function(G,c){if(this.size_.width!=G.size_.width||this.size_.height!=G.size_.height)return!1;c=c||0;for(var I=0;I<this.size_.height;I++)for(var R=0;R<this.size_.width;R++)if(!_.MVx(this.array_[I][R],G.array_[I][R],c))return!1;return!0};
n3.prototype.getSize=function(){return this.size_};
var vg=function(G,c,I){return c>=0&&c<G.size_.height&&I>=0&&I<G.size_.width?G.array_[c][I]:null};
n3.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var fH6=function(G,c,I,R){if(!(c>=0&&c<G.size_.height&&I>=0&&I<G.size_.width))throw Error("bp`"+c+"`"+I+"`"+G.size_.height+"`"+G.size_.width);G.array_[c][I]=R};
n3.prototype.multiply=function(G){if(G instanceof n3){if(this.size_.width!=G.getSize().height)throw Error("cp");return BHx(this,G)}if(typeof G==="number")return rwR(this,G);throw Error("dp");};
var BHx=function(G,c){var I=new n3(G.size_.height,c.getSize().width);Wbf(I,function(R,Z,K){for(var m=R=0;m<this.size_.width;m++)R+=vg(this,Z,m)*vg(c,m,K);fH6(I,Z,K,R)},G);
return I},rwR=function(G,c){return i4_(G,function(I){return I*c})};var jaJ=new _.vS("inlineSurveyRenderer");var xRo=new _.vS("interstitialViewModel");var tAR=new _.vS("reelNavigateCommand");var hMN=new _.vS("reelNonVideoContentDismissalCommand");var dRx=new _.vS("showReelsCommentsOverlayCommand");var CWz=new _.vS("videoInteractionPopUpRenderer");var H4G=new _.vS("pollChoiceData");var XKN;var ywo;var g6_;var DQ=function(){var G=_.J.apply(this,arguments)||this;G.ctaVisualElement=null;G.currentCsn=null;return G};
_.u(DQ,_.J);_.P=DQ.prototype;_.P.onDataChanged=function(){this.maybeLogShows()};
_.P.computeButtonShape=function(){var G=this;if(this.data)return{buttonText:_.HY(this.data.text),state:"active",onTap:function(){G.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.P.maybeCreateCtaVe=function(){var G;if((G=this.data)!=null&&G.badgeInteractionLogging){var c;if(G=(c=this.data.badgeInteractionLogging)==null?void 0:c.trackingParams)this.ctaVisualElement=_.kC(G)}};
_.P.maybeLogClicks=function(){this.currentCsn=_.k0(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.jW(this.currentCsn,this.ctaVisualElement)};
_.P.maybeLogShows=function(){this.currentCsn=_.k0(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Bd(this.currentCsn,[this.ctaVisualElement])};
_.P.onTap=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var c;this.ytComponentBehavior.resolveCommand((c=this.data)==null?void 0:c.onClickCommand);this.maybeLogClicks()}};
DQ.prototype.onDataChanged=DQ.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],DQ.prototype,"ytComponentBehavior",void 0);_.r([_.E({}),_.h("design:type",Object)],DQ.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DQ.prototype,"onDataChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],DQ);
_.B(DQ,"ytd-shopping-overlay-badge-renderer",function(){if(g6_!==void 0)return g6_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return g6_=G},{mode:1});var Y2o;var oO=function(){return _.J.apply(this,arguments)||this};
_.u(oO,_.J);oO.prototype.computeShouldButtonBeVertical=function(G,c){return G||c};
oO.prototype.onYtServiceRequestSent=function(G,c){(G=_.D(c.endpoint,_.m1))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Le("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:G.status})):this.handleLikeEndpoint(G))};
oO.prototype.computelikeStatusEntityKey=function(G){return G==null?void 0:G.likeStatusEntityKey};
oO.prototype.handleLikeEndpoint=function(G){G.status==="LIKE"?this.JSC$23007_ytdDislikeToggleButtonRenderer.toggle(!1):G.status==="DISLIKE"?this.JSC$23007_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$23007_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$23007_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Nh.Object.defineProperties(oO.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var G;return b4G(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(G=this.likeStatusEntity)==null?void 0:G.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var G;if(this.data&&((G=this.data)==null||!G.hideDislikeButton)){var c;return b4G(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(c=this.likeStatusEntity)==null?void 0:c.likeStatus)}}}});
oO.prototype.onYtServiceRequestSent=oO.prototype.onYtServiceRequestSent;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],oO.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oO.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],oO.prototype,"vertical",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],oO.prototype,"textTransform",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],oO.prototype,"useShortsIcon",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],oO.prototype,"underIconLabel",void 0);_.r([_.E({value:"left"}),_.h("design:type",String)],oO.prototype,"buttonTooltipPosition",void 0);_.r([_.E(),_.h("design:type",Object)],oO.prototype,"overrides",void 0);
_.r([_.nH("#like-button"),_.h("design:type",Object)],oO.prototype,"JSC$23007_ytdLikeToggleButtonRenderer",void 0);_.r([_.nH("#dislike-button"),_.h("design:type",Object)],oO.prototype,"JSC$23007_ytdDislikeToggleButtonRenderer",void 0);_.r([_.A("data","likeStatusEntity.likeStatus","useShortsIcon"),_.h("design:type",Object),_.h("design:paramtypes",[])],oO.prototype,"likeButton",null);
_.r([_.A("data","likeStatusEntity.likeStatus","useShortsIcon"),_.h("design:type",Object),_.h("design:paramtypes",[])],oO.prototype,"dislikeButton",null);_.r([_.E({computed:"computelikeStatusEntityKey(data)"}),_.h("design:type",String)],oO.prototype,"likeStatusEntityKey",void 0);_.r([_.E({selectorArgs:["likeStatusEntityKey"],selector:_.WU}),_.h("design:type",Object)],oO.prototype,"likeStatusEntity",void 0);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],oO.prototype,"onYtServiceRequestSent",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],oO);
_.PI()(oO,"ytd-like-button-renderer",function(){if(Y2o===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);Y2o=G}G=Y2o;return G},{mode:1});_.R1(_.nc$,"reel-sound-metadata-view-model",{props:{data:_.G9,overlayDensity:_.G9}});_.R1(_.aJd,"player-disclosure-view-model",{props:{data:_.bl,extractOverlay:_.bl}});_.R1(_.mQA,"pivot-button-view-model",{props:{data:_.G9,className:_.G9}});_.R1(_.axB,"reel-action-bar-view-model",{props:{data:_.bl,buttonShapeOverrideables:_.bl}});_.R1(_.Db$,"yt-reel-metapanel-view-model",{props:{data:_.bl,overlayDensity:_.bl,extractOverlay:_.bl}});var GcR=_.W(function(G){var c=G.children;var I=G.region;G=_.Q(_.ks(void 0,void 0,"flxBBc"));var R=G.next().value,Z=G.next().value;G=_.Q(_.ks("0px",void 0,"IAR7k"));var K=G.next().value,m=G.next().value;G=_.Q(_.ks("0px",void 0,"QV4iWb"));var a=G.next().value,O=G.next().value;G=_.Q(_.ks(0,void 0,"Q2oK6b"));var N=G.next().value,q=G.next().value;G=_.Q(_.ks(0,void 0,"hYKowe"));var w=G.next().value,F=G.next().value,n=function(){var t=R();if(t){var x;if(((x=_.Fc())==null?void 0:x.getPlayerState())!==-1){t.style.display=
"inherit";var C;(C=_.Fc())==null||C.removeEventListener("onStateChange",n)}else t.style.display="none";k()}},U=function(){var t;
return(t=_.ZA())==null?void 0:t.querySelector("video")},k=function(){var t=U();
if(t){q(t.getBoundingClientRect().width);F(t.getBoundingClientRect().height);var x;m((t==null?void 0:(x=t.style)==null?void 0:x.left)||"0px");var C;O((t==null?void 0:(C=t.style)==null?void 0:C.top)||"0px")}};
_.xs(function(){var t=R();if(t){var x,C,H;if(((x=_.Fc())==null?void 0:x.getPlayerState())===-1&&Math.round(((H=(C=_.Fc())==null?void 0:C.getVideoAspectRatio())!=null?H:0)*100)!==Math.round(N()/w()*100)){t.style.display="none";var g,QO;F(N()/((QO=(g=_.Fc())==null?void 0:g.getVideoAspectRatio())!=null?QO:1))}}},"N29KDe");
var p=function(){k()},M;
_.xc(function(){k();var t;if(!(I==null?0:(t=I())==null?0:t.transformationMatrix))throw Error("hp");var x;(x=_.Fc())==null||x.addEventListener("onStateChange",n);if(window.ResizeObserver){if(t=U())M=new ResizeObserver(p),M.observe(t)}else window.addEventListener("resize",k);_.ty(function(){var C;(C=_.Fc())==null||C.removeEventListener("onStateChange",n);M?M.disconnect():window.removeEventListener("resize",k)})});
var z=function(){var t,x,C=(x=I==null?void 0:(t=I())==null?void 0:t.transformationMatrix)!=null?x:[];t=N();x=w();for(var H=[],g=0,QO=-1;g<C.length;g++)g%3===0&&(QO++,H[QO]=[]),H[QO].push(C[g]);C=new n3(H);H=new n3([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);H=C.multiply(H);C=new n3([[0,0],[0,0],[0,0],[0,0]]);for(g=0;g<H.getSize().width;g++){QO=vg(H,0,g);var T8=vg(H,1,g);if(QO===null||T8===null)throw Error("gp`"+(g+1).toString());fH6(C,g,0,QO*t);fH6(C,g,1,T8*x)}t=vg(C,0,0);g=vg(C,1,0);x=vg(C,0,1);QO=vg(C,1,1);
if(t===null||g===null||x===null||QO===null)throw Error("ep");H=ku5(t,g,x,QO);T8=vg(C,3,0);C=vg(C,3,1);if(T8===null||C===null)throw Error("fp");C=ku5(t,T8,x,C);QO=(Number((QO*-1).toFixed(2))-Number((x*-1).toFixed(2)))/(Number(g.toFixed(2))-Number(t.toFixed(2)));T8=Math.atan(QO)*180/Math.PI;g=QO===Number.POSITIVE_INFINITY?-90:QO===Number.NEGATIVE_INFINITY?90:Object.is(QO,-0)?180:QO===0?0:QO>0?T8*-1:t<g?T8*-1:Math.abs(T8)+180;return"left:calc("+t+"px + "+K()+"); top:calc("+(x+"px + "+a()+"); width:")+
(H+"px; height:")+(C+"px; transform:rotate(")+(g+"deg);\n        --sticker-width:"+H+";")};
return _.e(DRy,{root:"#sticker-layer"},function(){return _.e("yt-overlay-sticker",{el:_.YC(Z),style:z,class:"ytOverlayStickerHost"},c)})},"Mn");var c$G=_.W(function(G){function c(){var n,U,k,p,M=(U=_.D((n=O())==null?void 0:n.command,_.iuV))==null?void 0:(k=U.item)==null?void 0:(p=k.notificationTextRenderer)==null?void 0:p.successResponseText;if(M)n=_.YV(M),_.ym(R.value,"yt-open-popup-action",[n,R.value]);else if(N())LbT(N(),R.value);else{var z;LbT((z=O())==null?void 0:z.command,R.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var I=G.data;var R=_.mX("svg"),Z=_.Q(_.ks(!1,void 0,"e9onLe"));G=Z.next().value;var K=Z.next().value,m=_.Q(_.ks(!1,void 0,"ptnIQd"));Z=m.next().value;var a=m.next().value,O=function(){var n;return _.D((n=I())==null?void 0:n.popUp,CWz)},N=function(){var n;
return(n=I())==null?void 0:n.command},q=function(){return _.D(N(),_.AY)!==void 0};
m=_.Nx(function(){c();return!1});
var w={},F={};return _.e("svg",{"on:mouseover":_.Nx(function(){q()&&K(!0);a(!0);return!1}),
"on:mouseout":_.Nx(function(){K(!1);a(!1);return!1}),
"on:keydown":_.Nx(function(n){n.key==="Enter"&&c();return!1}),
"on:focus":_.Nx(function(){q()&&K(!0);return!1}),
"on:blur":_.Nx(function(){q()&&K(!1);return!1}),
el:R,tabindex:0,"aria-label":function(){var n;return(n=I())==null?void 0:n.a11yString},
id:"player-overlay-video-interaction-svg",class:_.O3("ytPlayerOverlayInteractionInteractionsSvg",(w.ytPlayerOverlayInteractionInteractionsSvgHover=G,w),(F.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Z,F)),role:"button","on:click":m})},"Pn");_.R1(_.W(function(G){var c=G.data;_.xc(function(){var I;if((I=c())==null?0:I.trackingParams){var R;_.DP().graftServerVe((R=c().trackingParams)!=null?R:"")}});
return _.e("yt-player-overlay-interaction",null,_.e(GcR,{region:function(){var I,R;return(I=c())==null?void 0:(R=I.regions)==null?void 0:R[0]}},_.e(c$G,Object.assign({},G))))},"On"),"yt-player-overlay-interaction",{props:{data:_.bl}});var Iw5=_.W(function(G){var c=G.data;var I=G.index;var R=G.selectedChoice;var Z=function(){var K;return _.D((K=c())==null?void 0:K.renderer,H4G)};
G={};return _.e("yt-overlay-poll-sticker-choice",{class:_.O3("ytOverlayPollStickerChoiceHost"),style:_.wi({"--displayed-percentage":function(){var K,m,a,O;return""+Math.ceil(Number((R==null?void 0:R())===I()?(K=Z())==null?void 0:(m=K.selected)==null?void 0:m.progressBarWidth:(a=Z())==null?void 0:(O=a.unselected)==null?void 0:O.progressBarWidth)*100)}})},_.e("div",{class:_.O3("ytOverlayPollStickerChoicePollChoice",(G.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(R==null?void 0:R())!==
void 0},G.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(R==null?void 0:R())===I()},G))},_.e("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var K;
return((K=Z())==null?void 0:K.text)||""}),_.e("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(R==null?void 0:R())==="undefined")var K="";
else{var m,a,O,N;K=(R==null?void 0:R())===I()?(m=Z())==null?void 0:(a=m.selected)==null?void 0:a.votePercentage:(O=Z())==null?void 0:(N=O.unselected)==null?void 0:N.votePercentage}return K})))},"Qn");var R1y=_.W(function(G){var c=G.data;var I=G.enableDebuggingFeatures;var R=_.o1(function(K){var m,a=((m=c())==null?void 0:m.postPollStateEntityKey)||"";K=_.a6(K.entities,"postPollStateEntity",a);var O;return((O=c())==null?0:O.viewerIsOwner)?Object.assign({},K,{selectedOptionId:-1,voted:!0}):K}),Z=_.wH().resolve(_.n4);
G={};return _.e("yt-overlay-poll-sticker",null,_.e(GcR,{region:function(){var K,m;return(K=c())==null?void 0:(m=K.region)==null?void 0:m.interactionRegion}},_.e("div",{class:_.O3("ytOverlayPollStickerHost",(G.ytOverlayPollStickerDebugStyle=function(){return I==null?void 0:I()},G)),
style:_.wi({"--original-height":function(){var K;return""+(((K=c())==null?void 0:K.mainBodyHeight)||1)},
"--original-width":function(){var K;return""+(((K=c())==null?void 0:K.mainBodyWidth)||1)},
"--scaled-width":function(){var K;return""+(((K=c())==null?void 0:K.mainBodyWidth)||1)},
"--primary-surface":function(){var K,m;return saz(((K=c())==null?void 0:(m=K.theme)==null?void 0:m.primarySurface)||0)},
"--raised-surface":function(){var K,m;return saz(((K=c())==null?void 0:(m=K.theme)==null?void 0:m.raisedSurface)||0)},
"--secondary-surface":function(){var K,m;return saz(((K=c())==null?void 0:(m=K.theme)==null?void 0:m.secondarySurface)||0)},
"--primary-text":function(){var K,m;return saz(((K=c())==null?void 0:(m=K.theme)==null?void 0:m.primaryText)||0)},
"--secondary-text":function(){var K,m;return saz(((K=c())==null?void 0:(m=K.theme)==null?void 0:m.secondaryText)||0)}})},_.e("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return c().questionText}," "),_.e(_.fh,{each:function(){return c().pollChoiceConfigs||[]}},function(K,m){return _.e("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Nx(function(){var a=m(),O;if((O=c())==null||!O.viewerIsOwner){var N,q;O=(N=c())==null?void 0:(q=N.pollChoiceConfigs)==null?void 0:q[a];if(q=(O==null?0:O.renderer)?_.D(O.renderer,H4G):void 0){var w;N=((w=R())==null?void 0:w.selectedOptionId)!==a;var F;if(w=(F=N?q.selectedPollCommand:q.deselectedPollCommand)==null?void 0:F.innertubeCommand){Z.resolveCommand(w);var n,U;_.XZ().dispatch(_.Le("postPollStateEntity",((n=R())==null?void 0:n.key)||"",{key:((U=R())==null?void 0:U.key)||"",selectedOptionId:N?
a:-1,voted:N}))}}}})},_.e(Iw5,{data:K,
index:m,selectedChoice:function(){var a,O;return((a=R())==null?0:a.voted)?(O=R())==null?void 0:O.selectedOptionId:void 0}}))}),_.e("div",{class:"ytOverlayPollStickerVoteCount"},function(){var K,m;
return((K=R())==null?0:K.voted)&&((m=R())==null?void 0:m.selectedOptionId)!==-1?c().postVoteCountText:c().preVoteCountText}))))},"Rn");_.R1(_.W(function(G){var c=G.data;return _.e("yt-stickers-layer",null,_.e(_.fh,{each:function(){var I;return((I=c())==null?void 0:I.stickers)||[]}},function(I){return _.e(_.l,{cond:function(){return _.v("enable_shorts_poll_stickers_web")},
then:function(){return _.e(_.l,{cond:function(){return I==null?void 0:I.pollSticker},
then:function(R){return _.e(R1y,{data:R,enableDebuggingFeatures:function(){var Z;return(Z=c())==null?void 0:Z.enableDebuggingFeatures}})}})}})}))},"Sn"),"yt-stickers-layer",{props:{data:_.bl}});var UL=function(){var G=_.J.apply(this,arguments)||this;G.showScrubber=!1;G.isWatchWhileMode=!1;G.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");G.enablePollStickers=_.v("enable_shorts_poll_stickers_web");G.enableShortsModernControls=_.v("web_shorts_modern_controls");G.anchoredPanelActive=!1;G.enableLivingroomLayout=_.v("reels_enable_livingroom_layout");G.enablePlayerMetadataContainer=_.v("reels_web_enable_metadata_container");G.enableSqueezebackPanels=_.v("web_shorts_enable_squeezeback_panels");
G.useAspectRatio=_.v("web_use_aspect_ratio");G.isSqueezebackActive=!1;G.smallScreenSqueezeback=!1;G.isPlayerStarted=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;G.isOverlay=!1;G.isImmersive=!1;G.isImmersiveHorizontal=!1;G.isFullscreen=!1;G.onWindowResized=function(){var c;G.set("isImmersive",((c=window.getComputedStyle(G.hostElement))==null?void 0:c.getPropertyValue("--immersive-mode-on"))==="1");G.set("isImmersiveHorizontal",G.isImmersive&&G.enableLivingroomLayout&&!G.isWatchWhileMode)};
return G};
_.u(UL,_.J);_.P=UL.prototype;_.P.updateIsOverlay=function(G){this.isOverlay=G.detail.value};
_.P.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.P.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.P.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.P.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.P.onOverlayDensityChange=function(){var G=_.Q1(this.hostElement).querySelector("ytd-info-panel-container-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.extractOverlay))};
_.P.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.P.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.P.ready=function(){(_.v("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.v("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.oa("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.oa("reels_action_justified_content")||"flex-start")};
_.P.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.P.setFakeLoadingButtons=function(){_.v("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.mJ("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.mJ("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.mJ("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.mJ("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.mJ("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.P.setEmptyOverlayMetadata=function(){_.v("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}))};
_.Nh.Object.defineProperties(UL.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoPanel)}}});
UL.prototype.onOverlayDensityChange=UL.prototype.onOverlayDensityChange;UL.prototype.onIsActiveChanged=UL.prototype.onIsActiveChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],UL.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],UL.prototype,"ytdReduxBehavior",void 0);
_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],UL.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],UL.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],UL.prototype,"isActive",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],UL.prototype,"hidden",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],UL.prototype,"useShortsIcon",void 0);
_.r([_.E({value:"left"}),_.h("design:type",String)],UL.prototype,"buttonTooltipPosition",void 0);_.r([_.E({value:_.v("reels_enable_livingroom_layout")?"top":"left"}),_.h("design:type",String)],UL.prototype,"likeButtonTooltipPosition",void 0);_.r([_.E({value:"none"}),_.h("design:type",String)],UL.prototype,"textTransform",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"showScrubber",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"isWatchWhileMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.infoPanel"),_.h("design:type",Object),_.h("design:paramtypes",[])],UL.prototype,"hasInfoPanel",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"enableAnchoredPanel",void 0);_.r([_.E(),_.h("design:type",Object)],UL.prototype,"enablePollStickers",void 0);
_.r([_.E(),_.h("design:type",Object)],UL.prototype,"enableShortsModernControls",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"anchoredPanelActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"enableLivingroomLayout",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],UL.prototype,"enablePlayerMetadataContainer",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"enableSqueezebackPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"useAspectRatio",void 0);_.r([_.E({selector:_.C_i,reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"isSqueezebackActive",void 0);_.r([_.E({selector:NHR,reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"smallScreenSqueezeback",void 0);
_.r([_.E({selector:lHx}),_.h("design:type",Object)],UL.prototype,"isPlayerStarted",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"overlayDensity",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"extractOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"extractActionBar",void 0);_.r([_.E(),_.h("design:type",Object)],UL.prototype,"isOverlay",void 0);
_.r([_.E(),_.h("design:type",Object)],UL.prototype,"isImmersive",void 0);_.r([_.E(),_.h("design:type",Object)],UL.prototype,"isImmersiveHorizontal",void 0);_.r([_.E({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.h("design:type",Boolean)],UL.prototype,"isShortsImmersive",void 0);_.r([_.E({computed:"computeButtonOverride(extractActionBar)"}),_.h("design:type",Object)],UL.prototype,"buttonOverride",void 0);
_.r([_.E({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.h("design:type",Object)],UL.prototype,"actionBarButtonOverride",void 0);_.r([_.E({selector:_.al,reflectToAttribute:!0}),_.h("design:type",Object)],UL.prototype,"isFullscreen",void 0);_.r([_.wD("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UL.prototype,"onIsActiveChanged",null);
_.r([_.wD("extractOverlay"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UL.prototype,"onOverlayDensityChange",null);_.r([_.Jc({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],UL);
_.B(UL,"ytd-reel-player-overlay-renderer",function(){if(ywo!==void 0)return ywo;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\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="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ywo=G},{mode:1});var Zjx;var u7=function(){var G=_.J.apply(this,arguments)||this;G.videoDuration=0;G.playedTime=0;G.isActive=!1;G.JSC$23033_playerEvents=new Map;return G};
_.u(u7,_.J);_.P=u7.prototype;_.P.created=function(){this.JSC$23033_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$23033_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.P.attached=function(){this.getPlayerAndInitializeListeners()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23033_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.lO(this,this.onPageChanged))};
_.P.getPlayerAndInitializeListeners=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return c=_.ZA(),c?I.yield(c.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.lO(G,G.onPageChanged)),I.jumpTo(0));G.player=I.yieldResult;G.initializePlayerListeners();_.Vp(I)})};
_.P.onPageChanged=function(G){var c=this;return _.T(function(I){if(I.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?I.return():I.yield(_.Ke().getPlayerPromise(),2);c.player=I.yieldResult;c.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.lO(c,c.onPageChanged));_.Vp(I)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23033_playerEvents)};
_.P.onVideoDataChange=function(G){var c=this;return _.T(function(I){if(!c.player||G.type!=="newdata")return I.return();c.videoDuration=_.v("web_shorts_use_progress_state_for_gapless")?c.player.getProgressState(G.playertype).seekableEnd:c.player.getDuration(G.playertype);c.playedTime=0;_.Vp(I)})};
_.P.onVideoProgress=function(G){var c=this,I,R;return _.T(function(Z){if(!c.player)return Z.return();I=c.player.getPresentingPlayerType();R=c.player.getPlayerState();c.videoDuration=_.v("web_shorts_use_progress_state_for_gapless")?c.player.getProgressState(I).seekableEnd:c.player.getDuration(I);c.playedTime=R===0?c.videoDuration:G;_.Vp(Z)})};
_.P.getPercentPlayed=function(G,c){return G?_.Be(c/G,0,1):0};
_.Nh.Object.defineProperties(u7.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var G="";return G=this.videoDuration&&this.playedTime?G+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):G+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],u7.prototype,"componentBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],u7.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],u7.prototype,"player",void 0);_.r([_.E(),_.h("design:type",Object)],u7.prototype,"videoDuration",void 0);_.r([_.E(),_.h("design:type",Object)],u7.prototype,"playedTime",void 0);_.r([_.E(),_.h("design:type",Object)],u7.prototype,"isActive",void 0);
_.r([_.A("videoDuration","playedTime"),_.h("design:type",Number),_.h("design:paramtypes",[])],u7.prototype,"percentPlayed",null);_.r([_.A("videoDuration","playedTime"),_.h("design:type",Object),_.h("design:paramtypes",[])],u7.prototype,"percentPlayedStyle",null);_.r([_.A("videoDuration","isActive"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],u7.prototype,"hideProgressBar",null);
_.B(u7,"ytd-progress-bar-line",function(){if(Zjx===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);Zjx=G}G=Zjx;return G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var K_N;_.R1(_.Cx0,"ytm-closed-captioning-button",{props:{captionIconType:_.bl,onClick:_.G9,ariaLabel:_.bl,ariaPressed:_.bl,isOverlay:_.G9,isModern:_.G9}});_.R1(_.qfW,"desktop-shorts-volume-controls",{props:{orientation:_.bl}});var b7=function(){var G=_.J.apply(this,arguments)||this;G.playerState=null;G.isMuted=!1;G.shortsModernControlsEnabled=_.v("web_shorts_modern_controls");G.volumeControlsOrientationState="horizontal_right";G.isOverlay=!0;G.isAdsOverlay=!1;G.captionIconType=-1;G.ariaLabel="";G.overlayDensity=0;G.JSC$23036_playerEvents=new Map;G.onClosedCaptionsButtonClick=function(){G.player&&_.z20(G.player)&&(G.player.toggleSubtitles(),G.updateCaptionIconType())};
return G};
_.u(b7,_.J);_.P=b7.prototype;_.P.created=function(){this.JSC$23036_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$23036_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$23036_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.P.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.qj(28662);this.playPauseButtonClientVE=_.qj(36842);this.fullscreenButtonToggleOffClientVE=_.qj(222256);this.fullscreenButtonToggleOnClientVE=_.qj(222257);var G=_.k0(),c=_.u6();G&&c&&(_.v("combine_ve_grafts")?(_.CJ(_.DP(),this.muteButtonClientVE,c),_.CJ(_.DP(),this.playPauseButtonClientVE,c)):_.i8(G,c,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23036_playerEvents),this.player=null)};
_.P.updateCaptionIconType=function(){var G=-1,c=void 0,I=_.mJ("CLOSED_CAPTIONS_DISABLED");this.player&&_.z20(this.player)&&(_.Et$(this.player)?(c=!0,I=_.mJ("CLOSED_CAPTIONS_ON"),G=1):(c=!1,I=_.mJ("CLOSED_CAPTIONS_OFF"),G=0));this.captionIconType=G;this.ariaPressedState=c;this.ariaLabel=I};
_.P.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.P.getPlayerAndInitializeListeners=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return c=_.ZA(),c?I.yield(c.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.lO(G,G.onPageChanged)),I.jumpTo(0));G.player=I.yieldResult;G.initializePlayerListeners();_.Vp(I)})};
_.P.onPageChanged=function(G){var c=this;return _.T(function(I){if(I.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?I.return():I.yield(_.Ke().getPlayerPromise(),2);c.player=I.yieldResult;c.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.lO(c,c.onPageChanged));_.Vp(I)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23036_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.P.onPlayerStateChange=function(G){this.playerState=G};
_.P.onPlayerVolumeChange=function(G){this.isMuted=G.muted};
_.P.onPlayPauseButtonClick=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(_.Ke().getPlayerPromise(),2);c=R.yieldResult;(I=_.k0())&&G.playPauseButtonClientVE&&_.jW(I,G.playPauseButtonClientVE);c.getPlayerState()!==1?c.playVideo():c.pauseVideo();_.Vp(R)})};
_.P.computePlayPauseIcon=function(G){return G===2||G===-1||G===5?_.v("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.v("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.v("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.P.computeFullscreenLabel=function(G){return G?_.mJ("FULLSCREEN_EXIT_LABEL"):_.mJ("FULLSCREEN_ENTER_LABEL")};
_.P.computePlayPauseLabel=function(G){return G===1||G===3?_.mJ("PLAYER_LABEL_PAUSE"):_.mJ("PLAYER_LABEL_PLAY")};
_.P.onMuteButtonClick=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(_.Ke().getPlayerPromise(),2);c=R.yieldResult;(I=_.k0())&&G.muteButtonClientVE&&_.jW(I,G.muteButtonClientVE);c.isMuted()?c.unMute(!0):c.mute(!0);_.Vp(R)})};
_.P.computeMuteIcon=function(G){return G?"miniplayer:volume-off":"miniplayer:volume-up"};
_.P.computeMuteLabel=function(G){return G?_.mJ("PLAYER_LABEL_UNMUTE"):_.mJ("PLAYER_LABEL_MUTE")};
_.P.onFullscreenButtonClick=function(){var G=_.k0();G&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.jW(G,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.jW(G,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.gW1()};
_.Nh.Object.defineProperties(b7.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var G=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){G.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.v("web_shorts_modern_controls")?"player_full_exit_alt":_.v("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.v("web_shorts_modern_controls")?"player_full_enter_alt":_.v("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],b7.prototype,"componentBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],b7.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],b7.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"player",void 0);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"playerState",void 0);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"isMuted",void 0);
_.r([_.E({computed:"computePlayPauseIcon(playerState)"}),_.h("design:type",String)],b7.prototype,"playPauseIcon",void 0);_.r([_.E({computed:"computeMuteIcon(isMuted)"}),_.h("design:type",String)],b7.prototype,"muteIcon",void 0);_.r([_.E({selector:_.al}),_.h("design:type",Boolean)],b7.prototype,"isFullscreen",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],b7.prototype,"shortsModernControlsEnabled",void 0);
_.r([_.E(),_.h("design:type",Object)],b7.prototype,"volumeControlsOrientationState",void 0);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"isOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],b7.prototype,"isAdsOverlay",void 0);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"captionIconType",void 0);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"ariaLabel",void 0);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"ariaPressedState",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],b7.prototype,"overlayDensity",void 0);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"data",void 0);_.r([_.E({computed:"computeActionBarButtonOverride()"}),_.h("design:type",Object)],b7.prototype,"actionBarButtonOverride",void 0);_.r([_.A("playerState"),_.h("design:type",Object),_.h("design:paramtypes",[])],b7.prototype,"playPauseButtonData",null);
_.r([_.A("isFullscreen"),_.h("design:type",Object),_.h("design:paramtypes",[])],b7.prototype,"fullscreenButtonData",null);_.r([_.E(),_.h("design:type",Object)],b7.prototype,"onClosedCaptionsButtonClick",void 0);_.r([_.A("isFullscreen"),_.h("design:type",String),_.h("design:paramtypes",[])],b7.prototype,"fullscreenIcon",null);
_.B(b7,"ytd-shorts-player-controls",function(){if(K_N===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);K_N=G}G=K_N;return G},{mode:1});var Prz;_.R1(_.Gi0,"yt-interstitial-view-model",{props:{data:_.bl}});var QzJ=_.W(function(G){var c=G.data;return _.e("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.e("h1",{class:"reelWatchBreakViewModelHostTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e("h2",{class:"reelWatchBreakViewModelHostBody"},_.e(_.ul,{text:function(){return c().body},
isOverlay:!0})),_.e(_.sN,{data:function(){return c().buttons}},{buttonViewModel:function(I,R){return _.e("div",{class:function(){return R()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.e(_.BR,{data:I.data}))}}))},"Tn");
QzJ.idomCompat=!0;_.R1(QzJ,"reel-watch-break-view-model",{props:{data:_.bl}});var kH=function(){return _.J.apply(this,arguments)||this};
_.u(kH,_.J);kH.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}}};
_.Nh.Object.defineProperties(kH.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.D((G=this.data)==null?void 0:G.renderer,jaJ)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.D((G=this.data)==null?void 0:G.renderer,xRo)}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],kH.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],kH.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kH.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data.renderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],kH.prototype,"isSurvey",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.renderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],kH.prototype,"isInterstitialViewModel",null);_.r([_.Jc({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],kH);
_.B(kH,"ytd-reel-non-video-content-renderer",function(){if(Prz!==void 0)return Prz;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return Prz=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var mt5;_.R1(_.l6u,"desktop-shorts-player-controls",{});var sL=function(){var G=_.J.apply(this,arguments)||this;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.showPlayerControls=!1;G.showScrubber=!1;G.autoHideJobId=0;G.overlayType=_.oa("web_shorts_expanded_overlay_type");G.panelData=void 0;G.isWatchWhileMode=!1;G.hasError=!1;G.panelShowDelayMs=1;G.scrubberComponent={};G.isFullscreen=!1;G.shouldHideOverlay=!1;G.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");G.enablePersistentAnchoredPanel=_.v("desktop_shorts_v2_persistent_anchored_panel");G.hideWatchWhilePanel=
_.v("web_shorts_hide_watch_while_panel");G.useAspectRatio=_.v("web_use_aspect_ratio");G.enableShortsModernControls=_.v("web_shorts_modern_controls");G.isPersistentPanelActive=!1;G.anchoredPanelActive=!1;G.isShortsPipActive=!1;G.smallScreenSqueezeback=!1;G.enableFlexibleOverlay=_.v("web_enable_flexible_overlay");G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;G.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
G.onWindowResized=function(){_.tc(G,"calculateOverlayDensity",function(){G.calculateOverlayDensity()},100)};
return G};
_.u(sL,_.J);_.P=sL.prototype;_.P.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.P.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.P.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var G=_.wH().resolve(_.Tl);this.isWatchWhileMode&&_.dJ.addJob(function(){G.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.P.handleShowReelsCommentsOverlayCommand=function(G){G=_.D(G,dRx);this.isActive&&(G==null?0:G.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.P.updateEngagementPanelVisibility=function(G,c){G&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:c?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:G}})};
_.P.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.P.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.wH().resolve(_.RY).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.P.handleWatchWhilePanelScrimClick=function(){var G=_.wH().resolve(_.Tl);this.activeWatchWhilePanel&&(G.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.P.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.P.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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.P.handlePlayerClick=function(G){var c=this,I,R;if((R=(I=window).matchMedia)!=null&&R.call(I,"(any-pointer: coarse)").matches||!G)this.showPlayerControls=!0,_.dJ.cancelJob(this.autoHideJobId),this.autoHideJobId=_.W_(_.dJ,function(){c.showPlayerControls=!1},4E3)};
_.P.isFirstReel=function(){return this.index===0};
_.P.handleMouseenter=function(){_.dJ.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.P.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.P.handleScrubberEnter=function(){this.showScrubber=!0};
_.P.handleScrubberLeave=function(){this.showScrubber=!1};
_.P.maybeLogNonDefaultAspectRatio=function(){var G;(G=this.data)!=null&&G.thumbnail&&this.isActive&&.5625!==eMS(this.data.thumbnail)&&_.pir("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.P.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var G=document.querySelector("#shorts-container");if(G){var c=!1,I,R=this.playerContainer.offsetWidth,Z=this.playerContainer.offsetHeight;G=G.offsetWidth/2-R/2;G>=368?(G=1,c=I=!0):G>=72?(G=0,I=!0):(G=2,I=!1);R>=600&&Z>=840?G=1:window.innerWidth<=599&&(G=2,I=c=!1);this.isPersistentPanelActive&&(G=0,c=!1);this.extractActionBar=I;_.v("web_enable_flexible_overlay")&&(this.overlayDensity=G,this.extractOverlay=
c);var K;(K=this.onOverlayDensityChanged)==null||K.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.P.onOverlayDensityChange=function(){var G;(G=this.onOverlayDensityChanged)==null||G.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(G=_.Q1(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))G.set("overlayDensity",this.overlayDensity),G.set("extractOverlay",this.extractOverlay),G.set("extractActionBar",this.extractActionBar);if(G=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))G.overlayDensity=this.overlayDensity,G.extractOverlay=
this.extractOverlay,G.extractActionBar=this.extractActionBar};
_.P.isVideoContent=function(G){_.wH().resolve(_.RY);return!!_.D(G,_.vH)};
_.P.isNonVideoContent=function(G){_.wH().resolve(_.RY);return!!_.D(G,_.wt)};
_.P.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Nh.Object.defineProperties(sL.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var G,c;return _.v("web_enable_format_first")||((G=this.data)==null?void 0:G.adsOverlay)&&_.v("web_enable_format_first_ads_only")||((c=this.data)==null?void 0:c.reelPlayerOverlayRenderer)&&_.v("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.v("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var G;return!this.isActive||!this.isPlayerStarted||(G=this.data)!=null&&G.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?0:G.command)&&this.isVideoContent(this.data.command)){var c,I;if(((c=this.data)==null?0:c.adsOverlay)&&Object.keys((I=this.data)==null?void 0:I.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var R,Z;if(((R=this.data)==null?0:R.reelPlayerOverlayRenderer)&&Object.keys((Z=this.data)==null?void 0:Z.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
sL.prototype.onOverlayDensityChange=sL.prototype.onOverlayDensityChange;sL.prototype.calculateOverlayDensity=sL.prototype.calculateOverlayDensity;sL.prototype.maybeLogNonDefaultAspectRatio=sL.prototype.maybeLogNonDefaultAspectRatio;sL.prototype.onEngagementPanelsChanged=sL.prototype.onEngagementPanelsChanged;sL.prototype.onScrubberDataChange=sL.prototype.onScrubberDataChange;sL.prototype.updateShouldHideOverlay=sL.prototype.updateShouldHideOverlay;
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],sL.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],sL.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sL.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],sL.prototype,"index",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],sL.prototype,"isActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],sL.prototype,"isHiddenInDom",void 0);_.r([_.E(),_.h("design:type",Object)],sL.prototype,"isPlayerPaused",void 0);_.r([_.E({selector:lHx}),_.h("design:type",Object)],sL.prototype,"isPlayerStarted",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"showPlayerControls",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"showScrubber",void 0);_.r([_.E(),_.h("design:type",Object)],sL.prototype,"autoHideJobId",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"overlayType",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],sL.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],sL.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],sL.prototype,"watchWhileEngagementPanels",void 0);_.r([_.E(),_.h("design:type",Object)],sL.prototype,"panelData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"isWatchWhileMode",void 0);_.r([_.E(),_.h("design:type",String)],sL.prototype,"activeWatchWhilePanel",void 0);_.r([_.E(),_.h("design:type",Object)],sL.prototype,"hasError",void 0);_.r([_.E(),_.h("design:type",Object)],sL.prototype,"panelShowDelayMs",void 0);
_.r([_.E(),_.h("design:type",Object)],sL.prototype,"scrubberComponent",void 0);_.r([_.E({selector:_.al,reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"isFullscreen",void 0);_.r([_.E(),_.h("design:type",Object)],sL.prototype,"shouldHideOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"enableAnchoredPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"enablePersistentAnchoredPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"hideWatchWhilePanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"useAspectRatio",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"enableShortsModernControls",void 0);_.r([_.E({selector:_.C_i,reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"isPersistentPanelActive",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"anchoredPanelActive",void 0);_.r([_.E({selector:_.T$,reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"isShortsPipActive",void 0);_.r([_.E({selector:NHR,reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"smallScreenSqueezeback",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.adsOverlay"),_.h("design:type",Object),_.h("design:paramtypes",[])],sL.prototype,"isAdsOverlay",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],sL.prototype,"enableFormatFirst",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"enableFlexibleOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"overlayDensity",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"extractOverlay",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],sL.prototype,"extractActionBar",void 0);_.r([_.E(),_.h("design:type",Function)],sL.prototype,"onOverlayDensityChanged",void 0);_.r([_.E(),_.A("isActive","hasError","isPlayerStarted"),_.h("design:type",Object),_.h("design:paramtypes",[])],sL.prototype,"shouldRenderPlayerElements",null);_.r([_.E(),_.A("isActive","isWatchWhileMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],sL.prototype,"watchWhileOrPersistentActive",null);
_.r([_.wD("isActive","hasError","showingExpandedOverlay"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sL.prototype,"updateShouldHideOverlay",null);_.r([_.E({reflectToAttribute:!0}),_.A("isActive","isPlayerStarted","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],sL.prototype,"shouldRenderScrubber",null);
_.r([_.wD("shouldRenderScrubber"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sL.prototype,"onScrubberDataChange",null);_.r([_.A("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],sL.prototype,"overlayComponent",null);_.r([_.wD("watchWhileEngagementPanels"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sL.prototype,"onEngagementPanelsChanged",null);
_.r([_.nH("#player-container"),_.h("design:type",HTMLElement)],sL.prototype,"playerContainer",void 0);_.r([_.nH("#cinematic-container"),_.h("design:type",HTMLElement)],sL.prototype,"cinematicContainer",void 0);_.r([_.wD("isPersistentPanelActive","data.thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sL.prototype,"maybeLogNonDefaultAspectRatio",null);
_.r([_.wD("isPersistentPanelActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sL.prototype,"calculateOverlayDensity",null);_.r([_.wD("overlayDensity","extractOverlay","extractActionBar"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sL.prototype,"onOverlayDensityChange",null);_.r([_.Jc({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],sL);
_.B(sL,"ytd-reel-video-renderer",function(){if(mt5!==void 0)return mt5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return mt5=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var L3=function(){var G=_.J.apply(this,arguments)||this;G.isPreviousPageShorts=!1;G.index=0;G.delayedActiveIndex=0;G.playablePreviousIndex=null;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.intersectionObserverThreshold=.6;G.fitToVisibleBounds=!1;G.pageSubtype="shorts";G.enablePreviousContinuation=_.v("shorts_in_playlists_web");G.shortsPipEnabled=_.v("web_shorts_pip");G.isDark=document.documentElement.hasAttribute("dark");G.shortsViewTransitions=_.v("web_shorts_view_transitions");G.isFullscreen=!1;G.isShortsPipActive=
!1;G.buttonOverride={iconPosition:"icon-only",size:"XL"};G.anchoredPanelActive=!1;G.isActive=!1;G.smallScreenPersistentPanel=!1;G.isPersistentPanelActive=!1;G.smallScreenSqueezeBack=!1;G.enableScrollIntoViewCenter=_.v("web_scroll_into_view_center");G.formatFirst=_.v("web_enable_format_first")||_.v("web_enable_format_first_ads_only")||_.v("web_enable_format_first_organic_only");G.enableFlexibleOverlay=_.v("web_enable_flexible_overlay");G.extractOverlay=!1;G.useAspectRatio=_.v("web_use_aspect_ratio");
G.enableShortsSequenceRefactorUnify=_.v("web_enable_shorts_sequence_refactor_unify");G.continuationRequestPending=!1;G.carouselContainers=[];G.isShortsInitialized=!1;G.shortsContentList=[];G.hasDataUpdated=!1;G.playerInPosition=!1;G.hidePreviousButtonImmediately=!1;G.showPreviousButtonImmediately=!1;G.endOfNextContinuation=!1;G.currentPlayerIndex=0;G.nextReelVe=_.qj(56921);G.prevReelVe=_.qj(56922);G.loopToggleOffVe=_.qj(198013);G.loopToggleOnVe=_.qj(198014);G.ambientModeToggleVe=_.qj(227860);G.reelPlayerPausedStateRendererVe=
_.qj(141313);G.storedPlaybackSpeed=null;G.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged",
"yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff","yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};G.onOverlayDensityChanged=function(c,I,R,Z){c=G.getActiveReelVideo(c);G.extractOverlay=!!R;c==null||c.setAttribute("overlay-density",String(I));R===void 0||c!=null&&c.toggleAttribute("extract-overlay",
R);Z===void 0||c!=null&&c.toggleAttribute("extract-action-bar",Z)};
return G};
_.u(L3,_.J);_.P=L3.prototype;_.P.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.P.setShortsContentList=function(){var G=this,c=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.jn(this.shortsContentList)):[],I=this.firstShortsData;if(I){var R=this.reelWatchSequenceResponse;if(I=this.shortsController==null?void 0:pKS(c,I,R!=null?R:null)){var Z=I.newContentList,K=I.indexChange;if(Z.length!==c.length){var m;(m=this.intersectionObserver)==null||m.disconnect();_.v("web_shorts_stop_scheduler_on_player_response")?_.U_(_.dJ,function(){G.shortsContentList=Z}):this.shortsContentList=
Z;
K!==0&&(this.index=K,_.U_(_.dJ,function(){var a;(a=G.getActiveReelVideo(K))==null||a.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});G.movePlayerToVideo(K)},100));
_.dJ.addLowPriorityJob(function(){G.observeShorts()},500)}}}};
_.P.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.P.onResize=function(){var G=_.y4(),c=G.dispatch,I=this.calculateIsSmallWidth();c.call(G,_.R6({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:I}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.P.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.P.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var G=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,c=G,I=0;G<250&&(c=G+this.shortsInnerContainer.clientWidth,I=24);_.eD(this.hostElement,{"--ytd-shorts-header-width":c+"px","--ytd-shorts-top-spacing":I+"px"})}};
_.P.isFirstShorts=function(G){return G&&!this.enableShortsSequenceRefactorUnify?this.index===-G.length:this.index===0};
_.P.isActiveReel=function(G,c,I){I&&(c=this.calculatePrevIndex(c,I));return G===c};
_.P.onFullscreenChange=function(){_.v("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.wH().resolve(_.tA).close(!0))};
_.P.engagementPanelsChanged=function(){var G;this.watchWhileEngagementPanels=(G=this.data)==null?void 0:G.engagementPanels};
_.P.unregisterPanels=function(){var G=_.wH().resolve(_.Tl);if(this.watchWhileEngagementPanels)for(var c=_.Q(this.watchWhileEngagementPanels),I=c.next();!I.done;I=c.next()){var R=I.value,Z=void 0,K=void 0;I=(Z=R.engagementPanelSectionListRenderer)==null?void 0:(K=Z.identifier)==null?void 0:K.tag;R=this.getPanelIdentifier(R.engagementPanelSectionListRenderer);G&&(I&&G.panelMap.delete(I),R&&_.v("web_shorts_panel_caching_bugfix")&&(Z=I=void 0,(Z=(I=G).unregisterPanelContent)==null||Z.call(I,R)))}};
_.P.isVideoContent=function(G){return this.isVideoContentCommand(G==null?void 0:G.command)};
_.P.getActiveReelVideo=function(G){return _.Q1(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+G+'"]')};
_.P.calculatePrevIndex=function(G,c){return c?G-((c==null?void 0:c.length)||0):-1};
_.P.onKeydown=function(G){var c=_.CE(G)||[];if(!_.ycF(c))if(G.code==="ArrowUp")G.preventDefault(),this.handlePrevButtonClick();else if(G.code==="ArrowDown")G.preventDefault(),this.handleNextButtonClick();else if(G.code==="KeyM")this.toggleMuteUnmuteVideo();else if(G.code==="KeyK"||G.code==="Space")this.togglePlayPauseVideo();else if((G.code==="KeyA"||G.code==="ArrowLeft")&&_.v("web_shorts_keyboard_enable_seek_shortcuts")){var I;(I=this.player)==null||I.seekBy(-5)}else if((G.code==="KeyD"||G.code===
"ArrowRight")&&_.v("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var R;(R=this.player)==null||R.seekBy(5)}};
_.P.onServiceRequestCompleted=function(G,c){G=c.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,G.continuationEndpoint||G.prevContinuationEndpoint)this.reelWatchSequenceResponse=G}else G.continuationEndpoint&&G.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:G.entries,continuationEndpoint:G.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=G):G.prevContinuationEndpoint&&
G.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:G.prevEntries,prevContinuationEndpoint:G.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.P.handleEngagementPanelVisibilityChanged=function(G,c){var I=_.wH().resolve(_.Tl);if(G&&I){var R=this.getPanelIdentifier(G);if(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==R){I.hidePanel({identifier:this.activePanel});var Z;this.activePanel=((Z=G.identifier)==null?void 0:Z.tag)||G.panelIdentifier}else this.isPersistentPanelActive=!0,_.y4().dispatch(VAo(!0)),this.anchoredPanelActive=!0,this.activePanel=R;else c==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===R&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.y4().dispatch(VAo(!1)))}};
_.P.handlePanelScrimClick=function(){var G=_.wH().resolve(_.Tl);this.activePanel&&(G.hidePanel({identifier:this.activePanel}),_.y4().dispatch(VAo(!1)))};
_.P.getShortsLoopSetting=function(){var G,c,I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:return _.v("kevlar_shorts_auto_advance")?K.yield(_.TI.getInstance(),2):K.return(!0);case 2:return(G=K.yieldResult)?K.yield(G.get("sfvles"),3):K.return(!0);case 3:return I=(c=K.yieldResult)!=null?c:!1,K.yield(G.get("sfvle"),4);case 4:return Z=(R=K.yieldResult)!=null?R:!0,I?K.return(Z):K.return(!0)}})};
_.P.handleSignalActionToggleLoopShortsOff=function(){var G=this,c,I,R;return _.T(function(Z){switch(Z.nextAddress){case 1:if(!G.player)return Z.return();G.player.setLoopVideo(!1);c=_.DP();_.XF(c,G.loopToggleOffVe);return Z.yield(_.TI.getInstance(),2);case 2:return(I=Z.yieldResult)?Z.yield(I.set("sfvle",!1),3):Z.return();case 3:return Z.yield(I.set("sfvles",!0),4);case 4:R=_.OC(),_.eW(0,203,!1),_.eW(0,204,!0),R.save(),_.Vp(Z)}})};
_.P.handleSignalActionToggleLoopShortsOn=function(){var G=this,c,I,R;return _.T(function(Z){switch(Z.nextAddress){case 1:if(!G.player)return Z.return();G.player.setLoopVideo(!0);c=_.DP();_.XF(c,G.loopToggleOnVe);return Z.yield(_.TI.getInstance(),2);case 2:return(I=Z.yieldResult)?Z.yield(I.set("sfvle",!0),3):Z.return();case 3:return Z.yield(I.set("sfvles",!0),4);case 4:R=_.OC(),_.eW(0,203,!0),_.eW(0,204,!0),R.save(),_.Vp(Z)}})};
_.P.handleSignalActionToggleCinematicShortsOn=function(){wKx(!0);var G;(G=this.JSC$23060_cinematicController)==null||_.cwy(G,!0);_.XF(_.DP(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.P.handleSignalActionToggleCinematicShortsOff=function(){wKx(!1);var G;(G=this.JSC$23060_cinematicController)==null||_.cwy(G,!1);_.XF(_.DP(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.P.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.P.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.P.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var G=this.overlayContainer.querySelector("#experiment-overlay");G&&_.dJ.addLowPriorityJob(function(){G.style.display="unset"},100)}else if(this.overlayContainer){var c;
((c=this.playerElement.getPlayer())==null?void 0:c.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.P.getCurrentShort=function(){if(this.currentEndpoint){var G=this.currentEndpoint;if(this.isNonVideoContentCommand(G)){var c=_.D(G,_.wt);return{reelNonVideoContentRenderer:_.D(c==null?void 0:c.renderer,_.nJ),command:G}}if(this.data){var I;c=(I=_.D(this.currentEndpoint,_.vH))==null?void 0:I.thumbnail;var R;I=(R=this.data.overlay)==null?void 0:R.reelPlayerOverlayRenderer;_.wH().resolve(_.RY);G=this.data;var Z,K;R=(Z=G.overlay)==null?void 0:(K=Z.shortsAdsRenderer)==null?void 0:K.adSlots;if(R!==void 0)R.length===
0?(_.H8("Shorts ads returned no ad slots."),G=void 0):(R.length>1&&_.H8("Shorts ads has more than one ad slots."),G=_.D(R[0],_.CbN));else{var m,a;G=_.D((m=G.overlay)==null?void 0:(a=m.shortsAdsRenderer)==null?void 0:a.overlay,_.CbN)}m=G;G=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.D(this.currentEndpoint,_.vH),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var O;return{reelPlayerOverlayRenderer:I,thumbnail:c,command:G,adsOverlay:m,
videoId:(O=_.D(this.currentEndpoint,_.vH))==null?void 0:O.videoId}}}};
_.P.created=function(){var G=this;this.scrollToVideoThrottle=new _.qx(function(c,I){I=I===void 0?"smooth":I;var R;(R=G.getActiveReelVideo(c))==null||R.scrollIntoView({behavior:I,block:"nearest",inline:G.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.wH().resolve(_.RY);this.maybeCreateIntersectionObserver()};
_.P.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.P.attached=function(){var G=this;_.wH().resolve(_.RY).registerRootElement(this);this.pageScrollElement=_.Q1(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.lO(this,this.processResetAction));_.v("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){G.maybeCreateIntersectionObserver();G.scrollToVideoThrottle.fire(G.activeIndex,"instant");G.shortsContainer.style.overflowY=
"scroll"}))};
_.P.updateReelWatchSequenceResponse=function(){var G=this,c;if(_.v("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((c=_.D(this.currentEndpoint,_.vH))==null?0:c.sequenceParams)&&!this.reelWatchSequenceResponse){var I;(I=this.shortsController)==null||$Rz(I,this.currentEndpoint).then(function(R){R&&(G.reelWatchSequenceResponse=R,G.cachedReelWatchSequenceResponse=R,_.dJ.addLowPriorityJob(function(){G.observeShorts()}))})}};
_.P.calculateSqueezebackPanelSize=function(){var G=this,c=window.innerWidth-456-(window.innerHeight-106)*.5625;_.dJ.addLowPriorityJob(function(){c<360?_.y4().dispatch(zMN(!0)):(G.hostElement.style.setProperty("--anchored-panel-width",Math.min(c,480)+"px"),_.y4().dispatch(zMN(!1)))})};
_.P.detached=function(){var G=_.wH().resolve(_.RY);G.rootElement=void 0;var c;(c=G.unsubscribeFromStore)==null||c.call(G);G.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.lO(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.P.onResizeFinished=function(G,c){var I=this,R=new ResizeObserver(function(){I.shortsContainer.style.overflowY="hidden";_.dJ.addLowPriorityJob(function(){c()},100)});
R.observe(G);return R};
_.P.resetDocumentScrollTop=function(){var G,c;if((G=document)==null?0:(c=G.scrollingElement)==null?0:c.scrollTop)document.scrollingElement.scrollTop=0};
_.P.loadPage_=function(G){var c=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),G){var I;if((I=_.D(this.currentEndpoint,_.vH))==null?0:I.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=G;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){c.isPlayerStarted&&
(c.handleOnPlaybackCommand(),c.afterPlayerStarted=function(){})};
this.registerPanel(G)}};
_.P.afterPlayerStarted=function(){};
_.P.handleOnPlaybackCommand=function(){if(_.v("web_shorts_comment_stickers")&&this.isPlayerStarted){var G,c=(G=_.D(this.currentEndpoint,_.vH))==null?void 0:G.onPlaybackCommand;c&&this.ytComponentBehavior.resolveCommand(c)}};
_.P.maybeCreateIntersectionObserver=function(){var G=this,c=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==c){this.intersectionObserverThreshold=c;var I={rootMargin:"0px",threshold:c},R;(R=this.intersectionObserver)==null||R.disconnect();this.intersectionObserver=new IntersectionObserver(function(Z){Z=_.Q(Z);for(var K=Z.next();!K.done;K=Z.next())if(K=K.value,K.intersectionRatio>c){K=Number(K.target.id);if(isNaN(K))break;if(K===G.index)break;
_.YAi();G.loadVideo(K);_.pC("r_vtc")}},I);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.P.observeShorts=function(){var G,c,I,R=this.enableShortsSequenceRefactorUnify?((G=this.shortsContentList)==null?void 0:G.length)||0:(((c=this.shortsProcessedPrevSequence)==null?void 0:c.length)||0)+(((I=this.shortsProcessedSequence)==null?void 0:I.length)||0);if(this.carouselContainers.length<R&&(this.carouselContainers=[].concat(_.jn(_.Q1(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(G=_.Q(this.carouselContainers),c=G.next();!c.done;c=
G.next())c=c.value,I=void 0,(I=this.intersectionObserver)==null||I.observe(c);if(!this.enableShortsSequenceRefactorUnify)for(G=_.Q(this.carouselContainers),c=G.next();!c.done;c=G.next())c=c.value,I=void 0,(I=this.intersectionObserver)==null||I.observe(c)};
_.P.initCsi=function(){_.aLo("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var G={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},c,I;if((c=this.playerData)==null?0:(I=c.cacheMetadata)==null?0:I.isCacheHit)G.isCacheHit=!0;var R;if(c=(R=_.D(this.currentEndpoint,_.vH))==null?void 0:
R.prefetchTaskId)G.prefetchInfo={taskId:c};_.b8(G)};
_.P.isAd=function(){var G,c;return!!((G=_.D(this.currentEndpoint,_.vH))==null?0:(c=G.adClientParams)==null?0:c.isAd)};
_.P.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.P.getPlayerContainer=function(){var G;return(G=_.Q1(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:G.playerContainer};
_.P.onPlayerStateChange=function(G){var c=this;this.isPlayerPaused=G===2;G!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?G===1&&this.index===0&&(this.isPlayerStarted||_.y4().dispatch(E6z(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.y4().dispatch(E6z(!0)));this.player&&!this.player.getLoopVideo()&&_.dJ.addLowPriorityJob(function(){c.getShortsLoopSetting().then(function(I){var R;(R=c.player)==null||R.setLoopVideo(I)})});
this.isPlayerPaused&&_.v("web_shorts_paused_state_logging")&&_.Bd(_.k0(),[this.reelPlayerPausedStateRendererVe])};
_.P.isShortPlayable=function(){if(_.v("kevlar_playable_short_killswitch"))return!0;var G;return(G=this.playerData)!=null&&G.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.P.setNormalPlaybackSpeed=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(G.getPlayer().getPlayerPromise(),2);c=R.yieldResult;I=c.getPlaybackRate();I!==1&&(G.storedPlaybackSpeed=I,c.setPlaybackRate(1));_.Vp(R)})};
_.P.restorePlaybackSpeed=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1)return G.storedPlaybackSpeed===null?I.jumpTo(0):I.yield(G.getPlayer().getPlayerPromise(),3);c=I.yieldResult;c.setPlaybackRate(G.storedPlaybackSpeed);G.storedPlaybackSpeed=null;_.Vp(I)})};
_.P.playerDataChanged=function(){var G=this,c,I,R,Z,K,m,a,O,N;return _.T(function(q){if(q.nextAddress==1){c=G.getPlayer();G.enableShortsSequenceRefactorUnify||(I=G.intersectionObserver)==null||I.disconnect();if(G.playerData){if(((R=G.playerData.videoDetails)==null?void 0:R.videoId)!==((Z=c.getPlayer())==null?void 0:Z.getVideoData().video_id)){K={};if(m=_.D(G.currentEndpoint,_.vH))K.watch_endpoint=m,m.endTimeSeconds&&(K.end=m.endTimeSeconds);c.loadVideoWithPlayerResponse(G.playerData,K)}}else return q.return();
return G.player?q.jumpTo(2):q.yield(c.getPlayerPromise(),3)}q.nextAddress!=2&&(G.player=q.yieldResult,G.JSC$23060_playerStateChangeListener=G.onPlayerStateChange.bind(G),G.player.addEventListener("onStateChange",G.JSC$23060_playerStateChangeListener),_.v("kevlar_client_enable_shorts_player_bootstrap")&&_.Cs(),G.scrollToVideoThrottle.fire(G.index),G.movePlayerToVideo(G.index),_.dJ.addLowPriorityJob(function(){G.getShortsLoopSetting().then(function(w){var F;(F=G.player)==null||F.setLoopVideo(w)})}),
_.QcV.resolve(G.player),G.player.syncVolume(),G.getPlayer().focusOnPlayer());
_.dJ.addLowPriorityJob(function(){G.observeShorts()},100);
a=G.player.getPlayerState(G.player.getPresentingPlayerType());a!==1||G.isPlayerStarted||_.y4().dispatch(E6z(!0));G.updateBackNavContainerWidth();O=_.D(G.currentEndpoint,_.vH);((N=O)==null?0:N.startTimeSeconds)&&G.player.seekTo(O.startTimeSeconds);if(G.JSC$23060_cinematicController||G.cinematicsInitializeJobId)return q.return();G.cinematicsInitializeJobId=_.dJ.addLowPriorityJob(function(){G.initCinematicController();G.cinematicsInitializeJobId=void 0});
_.Vp(q)})};
_.P.onShortUndoDismiss=function(){var G=this,c=Aw_().pop();c!==void 0&&(_.O$(this,function(){G.showCardWithIndex(c)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.P.onShortsDismiss=function(G){if(G=G.detail.reelDismissalActionRenderer)(G=_.D(G.onDismissalCompletionRenderer,_.zZx))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:G}}}),this.scrollAndDismissCard()};
_.P.processReelNonVideoContentDismissalCommand=function(G){var c=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);G=_.D(G,hMN);this.activeDimissalTimeout=setTimeout(function(){c.scrollAndDismissCard()},Number(G==null?void 0:G.delayMs))};
_.P.scrollAndDismissCard=function(){var G=this,c=this.index;Aw_().push(c);_.O$(this,function(){var I=G.getPlayableNextIndex();I!==null&&(G.hideCardWithIndex(c),G.scrollToVideoThrottle.fire(I))})};
_.P.hideCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!0};
_.P.showCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!1};
_.P.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.P.activeChanged=function(G){_.y4().dispatch(_.R6({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:G}}));if(G)document.addEventListener("keydown",_.lO(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var c;(c=this.player)==null||c.sendAbandonmentPing()}var I;(I=this.player)==null||I.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.lO(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.P.graftClientVisualElements=function(){if(this.data){var G=_.DP();_.RI9(G,_.IP({response:this.reelWatchSequenceResponse}));_.CJ(G,this.nextReelVe);_.CJ(G,this.prevReelVe);_.v("kevlar_shorts_auto_advance")&&(_.CJ(G,this.loopToggleOffVe),_.CJ(G,this.loopToggleOnVe));_.CJ(G,this.ambientModeToggleVe);_.Bd(_.k0(),[this.nextReelVe,this.prevReelVe]);_.v("web_shorts_paused_state_logging")&&_.CJ(G,this.reelPlayerPausedStateRendererVe)}};
_.P.graftNvcRenderer=function(){var G,c,I,R,Z,K,m=this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:(c=G[this.index])==null?void 0:c.command:this.index<0?(I=this.shortsProcessedPrevSequence)==null?void 0:(R=I[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:R.command:(Z=this.shortsProcessedSequence)==null?void 0:(K=Z[this.index])==null?void 0:K.command;if(m&&this.isNonVideoContentCommand(m)){G=_.D(m,_.wt);var a,O;(G=(a=_.D(G==null?void 0:G.renderer,_.nJ))==
null?void 0:(O=a.loggingDirectives)==null?void 0:O.trackingParams)&&_.DP().graftServerVe(G)}};
_.P.setActiveIndex=function(){_.wH().resolve(_.RY).setActiveIndex(this.index)};
_.P.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.P.lazyUpdateMiniplayerData=function(){var G=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.dJ.addLowPriorityJob(function(){G.updateMiniplayerData();G.updateMiniplayerDataJobId=void 0}))};
_.P.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.dJ.cancelJob(this.updateMiniplayerDataJobId)};
_.P.updateMiniplayerData=function(){var G,c,I,R=_.wH().resolve(_.tA),Z={shortsData:this.getCurrentShort(),previousButtonDisabled:!((G=this.prevButtonData)==null||!G.isDisabled),nextButtonDisabled:!((c=this.nextButtonData)==null||!c.isDisabled),playabilityStatus:(I=this.playerData)==null?void 0:I.playabilityStatus};_.d9(R,Z)};
_.P.resetPlayerLocation=function(){var G=this.getPlayer();this.initialPlayerContainer&&G.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.P.movePlayerToVideo=function(G,c){var I=this;c=c===void 0?!0:c;var R=this.getActiveReelVideo(G),Z=this.getPlayer();if(R){this.overlayContainer?R.appendChild(this.overlayContainer):(this.overlayContainer=_.Q1(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,R.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Z.appendTo(this.overlayContainer.playerContainer,void 0,!0));var K;(K=this.player)==null||K.setSize(NaN,NaN);this.isActive||_.W_(_.dJ,function(){I.isActive=
!0});
Z.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.v("reels_web_disable_rtr_tick")||_.v("reels_web_use_pbs_first_shorts")&&G===0||_.LC("r_tr");this.currentPlayerIndex=G;R.appendChild(this.errorScreenContainer);var m;(m=this.JSC$23060_cinematicController)==null||_.Z45(m)}else c?_.dJ.addLowPriorityJob(function(){I.movePlayerToVideo(I.index,!1)}):Math.random()<=_.DH("web_shorts_error_logging_threshold")&&_.dj(new _.iW("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:c,
index:G}))};
_.P.enableFormatFirst=function(G){return _.v("web_enable_format_first")||G.adsOverlay&&_.v("web_enable_format_first_ads_only")||G.reelPlayerOverlayRenderer&&_.v("web_enable_format_first_organic_only")};
_.P.getAspectRatio=function(G){if(this.enableFormatFirst(G))return(G==null?0:G.thumbnail)&&eMS(G.thumbnail)?"--ytd-shorts-player-ratio: "+eMS(G.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.P.getBackgroundImage=function(G){if(G!=null&&G.thumbnail)return(G=_.KQ(G.thumbnail.thumbnails))?'background-image:url("'+G+'");':"background-color:black;"};
_.P.onPersistentPanelActiveChanged=function(){var G=this.getCurrentShort();if(G&&this.enableFormatFirst(G)&&(G==null?0:G.thumbnail)&&eMS(G.thumbnail)!==.5625){var c;(c=this.player)==null||c.setSize(NaN,NaN)}};
_.P.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.P.moveCinematicsToVideo=function(){var G=_.Q1(this.hostElement).querySelector("ytd-reel-video-renderer");(G==null?0:G.cinematicContainer)&&G.cinematicContainer!==this.shortsCinematicContainer.parentElement&&G.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.P.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.P.updatePrevButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);G?this.prevButtonData=G=Object.assign({},G,{accessibility:{label:_.mJ("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.mJ("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=G=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.P.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.P.updateNextButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);G&&(this.nextButtonData=G=Object.assign({},G,{accessibility:{label:_.mJ("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.mJ("NEXT_VIDEO_LABEL")||""}))};
_.P.getPlayablePreviousIndex=function(){for(var G,c=this.index-1;c>=-(((G=this.prevShortsSequence)==null?void 0:G.length)||0);c--)if(!Aw_().includes(c))return c;return null};
_.P.getIndexInSequence=function(G,c){return G.findIndex(function(I){var R;return((R=_.D(I.command,_.vH))==null?void 0:R.videoId)===c})};
_.P.handlePrevButtonClick=function(G){var c=this,I,R;return _.T(function(Z){I=c.getPlayablePreviousIndex();if(I===null)return Z.return();c.gestureType=((R=G)==null?void 0:R.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";I===0&&(c.hidePreviousButtonImmediately=!0);if(c.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){c.scrollToVideoThrottle.fire(I,"auto")}),Z.return();
c.scrollToVideoThrottle.fire(I);_.Vp(Z)})};
_.P.getPlayableNextIndex=function(){for(var G,c,I=this.index+1;I<(this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:G.length:((c=this.shortsProcessedSequence)==null?void 0:c.length)||0);I++)if(!Aw_().includes(I))return I;return null};
_.P.handleNextButtonClick=function(G,c){var I=this,R,Z;return _.T(function(K){R=I.getPlayableNextIndex();if(R===null)return K.return();R===1&&(I.showPreviousButtonImmediately=!0);I.gestureType=((Z=G)==null?void 0:Z.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";c&&(I.gestureType=c);if(I.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){I.scrollToVideoThrottle.fire(R,"auto")}),K.return();
I.scrollToVideoThrottle.fire(R);_.Vp(K)})};
_.P.handleReelNavigateCommand=function(G,c,I){(G=_.D(G,tAR))&&c&&G.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(I)};
_.P.loadVideo=function(G,c){var I=this;c=c===void 0?!1:c;if(G!==this.currentPlayerIndex){_.y4().dispatch(E6z(!1));if(this.isAd()&&!c){var R;(R=this.player)==null||R.notifyShortsAdSwipeEvent()}var Z;(Z=this.JSC$23060_cinematicController)==null||_.RM6(Z);var K;(K=this.JSC$23060_cinematicController)==null||MAf(K);R=G>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(R));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var m,a,O,N,q,w;c=this.enableShortsSequenceRefactorUnify?(m=this.shortsContentList)==null?void 0:(a=m[G])==null?void 0:a.command:G<0?(O=this.shortsProcessedPrevSequence)==null?void 0:(N=O[this.shortsProcessedPrevSequence.length+G])==null?void 0:N.command:(q=this.shortsProcessedSequence)==null?void 0:(w=q[G])==null?void 0:w.command;this.index=G;this.gestureType||(this.gestureType=R?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");c&&this.isVideoContentCommand(c)&&(this.ytComponentBehavior.resolveCommand(c,{form:{createScreenConfig:{clickedVisualElement:R?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(c&&this.isNonVideoContentCommand(c)){this.currentEndpoint=c;this.data=void 0;m=_.DP();a=_.D(c,_.wt);var F,n;(a=(F=_.D(a==null?void 0:a.renderer,_.nJ))==null?void 0:(n=F.screenLoggingData)==null?void 0:n.screenVeType)&&_.dt(m,a);
this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(F=this.getActiveReelVideo(G))&&F.appendChild(this.overlayContainer)}var U,k;F=this.enableShortsSequenceRefactorUnify?((U=this.shortsContentList)==null?NaN:U.length)-4<=G:((k=this.reelWatchSequenceResponse)==null?void 0:k.entries)&&G===this.reelWatchSequenceResponse.entries.length-1;var p;if(((p=this.reelWatchSequenceResponse)==null?0:p.continuationEndpoint)&&F){var M,z,t={contentPlaybackContext:_.lJ({},(z=_.D((M=
this.currentEndpoint)==null?void 0:M.commandMetadata,_.Pd))==null?void 0:z.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.dJ.addLowPriorityJob(function(){I.ytComponentBehavior.resolveCommand(I.reelWatchSequenceResponse.continuationEndpoint,{form:t})}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:t})}var x,C;
G=this.enableShortsSequenceRefactorUnify?G===0:G===-(((x=this.reelWatchSequenceResponse)==null?void 0:(C=x.prevEntries)==null?void 0:C.length)||0);var H,g;((H=this.reelWatchSequenceResponse)==null?0:H.prevContinuationEndpoint)&&((g=this.reelWatchSequenceResponse)==null?0:g.prevEntries)&&G&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.P.setMiniplayerPreview=function(G){G=(G===void 0?0:G)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var c,I,R,Z,K=_.wH().resolve(_.tA),m={shortsData:void 0,shortsPreviewThumbnail:G?this.enableShortsSequenceRefactorUnify?(c=this.shortsContentList)==null?void 0:(I=c[G])==null?void 0:I.thumbnail:(R=this.shortsProcessedSequence)==null?void 0:(Z=R[G])==null?void 0:Z.thumbnail:void 0};_.d9(K,m)};
_.P.updateTitle=function(G){var c,I;G=(G==null?0:G.adSlots)?"":(I=G==null?void 0:(c=G.videoDetails)==null?void 0:c.title)!=null?I:"";_.Xl(this.hostElement,"yt-update-title",G)};
_.P.registerPanel=function(G){var c=_.wH().resolve(_.Tl);if(c){G=_.Q(G.engagementPanels||[]);for(var I=G.next();!I.done;I=G.next()){I=I.value;var R=this.getPanelIdentifier(I.engagementPanelSectionListRenderer),Z=void 0,K=void 0;(K=(Z=c).registerPanelContent)==null||K.call(Z,R,I)}}};
_.P.getPanelIdentifier=function(G){var c;return(G==null?void 0:(c=G.identifier)==null?void 0:c.tag)||(G==null?void 0:G.panelIdentifier)||(G==null?void 0:G.targetId)};
_.P.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.y4().dispatch(E6z(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.y4().dispatch(VAo(!1));var G;(G=this.shortsController)!=null&&(G.dismissedIndices=[]);var c;(c=this.shortsController)!=null&&c.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.wH().resolve(_.tA).close(!0)};
_.P.processAppendReelWatchSequenceContinuationEntriesAction=function(G){var c=this,I;(I=this.intersectionObserver)==null||I.disconnect();G=G.appendReelWatchSequenceContinuationEntriesAction;if(G==null?0:G.entries){var R;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.jn(((R=this.reelWatchSequenceResponse)==null?void 0:R.entries)||[]),_.jn(G.entries)),continuationEndpoint:G.continuationEndpoint})}else if(G==null?0:G.prevEntries){var Z;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.jn(((Z=this.reelWatchSequenceResponse)==null?void 0:Z.prevEntries)||[]),_.jn(G.prevEntries)),prevContinuationEndpoint:G.prevContinuationEndpoint});_.dJ.addLowPriorityJob(function(){c.movePlayerToVideo(c.index);c.scrollToVideoThrottle.fire(c.index,"instant")})}else return;
_.dJ.addLowPriorityJob(function(){c.observeShorts()},100)};
_.P.processWatchSequence=function(G){var c=this;return G.map(function(I){I=I.command;if(c.isVideoContentCommand(I)){var R=_.D(I,_.vH);return{reelPlayerOverlayRenderer:_.D(R==null?void 0:R.overlay,_.Nyp),thumbnail:R.thumbnail,command:I}}return c.isNonVideoContentCommand(I)?(R=_.D(I,_.wt),{reelNonVideoContentRenderer:_.D(R==null?void 0:R.renderer,_.nJ),command:I}):{command:I}})};
_.P.calculateIntersectionObserverThreshold=function(){var G=_.Q1(this.hostElement).querySelector("ytd-reel-video-renderer"),c=1;(G==null?0:G.offsetHeight)&&(G==null?0:G.offsetWidth)&&(c=Math.min(G.offsetHeight,this.shortsContainer.offsetHeight)/G.offsetHeight*(Math.min(G.offsetWidth,this.shortsContainer.offsetWidth)/G.offsetWidth));return Math.round(c*.6*10)/10};
_.P.isVideoContentCommand=function(G){_.wH().resolve(_.RY);return!!_.D(G,_.vH)};
_.P.isNonVideoContentCommand=function(G){_.wH().resolve(_.RY);return!!_.D(G,_.wt)};
_.P.initCinematicController=function(){var G=this;if(this.player&&this.shortsCinematicContainer){this.JSC$23060_cinematicController=new _.Fp(this.shortsCinematicContainer,this.player);var c,I=_.D((c=this.data)==null?void 0:c.background,_.gz);_.IHz(this.JSC$23060_cinematicController,I);_.cwy(this.JSC$23060_cinematicController,q2R(I));_.Guy(this.JSC$23060_cinematicController);_.dJ.addLowPriorityJob(function(){G.moveCinematicsToVideo()})}};
_.P.handleMiniplayerNavigateShorts=function(G){G==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():G==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.P.handleSignalActionToggleShortsPictureInPicture=function(){if(_.wH().resolve(_.tA).pictureInPictureSupported()){var G=_.wH().resolve(_.RY);if(_.v("web_shorts_pip")){var c=_.wH().resolve(_.tA);G.isShortsPipActive()?c.deactivate():c.isMiniplayerActive()||(_.ck().shortsPipActivation=!0,_.bkd(c))}}else(G=this.player)==null||G.togglePictureInPicture()};
_.Nh.Object.defineProperties(L3.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.prevEntries)return this.processWatchSequence([].concat(_.jn(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.jn(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var G=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var c;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((c=this.shortsProcessedSequence)==null?void 0:c.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var I;c=_.D((I=this.firstShortsData)==null?void 0:I.command,_.vH);if(c==null||!c.videoId)return this.shortsProcessedSequence;I=this.getIndexInSequence(this.shortsSequence,
c.videoId);if(I!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=I,_.dJ.addLowPriorityJob(function(){G.scrollToVideoThrottle.fire(G.index,"auto");G.movePlayerToVideo(G.index)}));
return[].concat(_.jn(this.shortsSequence))}_.U_(_.dJ,function(){G.observeShorts()},100);
return[this.firstShortsData].concat(_.jn(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var G=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;G&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(G)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var G;return this.index===((G=this.shortsContentList)==null?NaN:G.length)-1}if(this.endOfNextContinuation){var c,I;return this.index===((c=this.reelWatchSequenceResponse)==null?void 0:(I=c.entries)==null?void 0:I.length)}var R;return!((R=this.reelWatchSequenceResponse)==null?0:R.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var G;(G=this.delayedActiveIndexUpdateDebouncer)==null||G.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return this.isShortPlayable()||((c=_.D((G=this.data)==null?void 0:G.watchStatus,_.UH9))==null?void 0:(I=c.style)==null?void 0:I.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var G=this,c=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),I;if((this.data||c)&&(((I=this.data)==null?0:I.engagementPanels)||this.isAd()||c)){c=!1;this.activePanel="shorts-comments-panel";var R;I=_.Q(((R=this.data)==null?void 0:R.engagementPanels)||[]);for(R=I.next();!R.done;R=I.next())if(this.getPanelIdentifier(R.value.engagementPanelSectionListRenderer)===this.activePanel){c=!0;break}if(this.isPersistentPanelActive){var Z=
_.wH().resolve(_.Tl);_.W_(_.dJ,function(){Z.showPanel({identifier:G.activePanel,target:null})},100)}var K;
R=[].concat(_.jn(Object.values(((K=this.data)==null?void 0:K.engagementPanels)||{})));K=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);I=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return K===void 0&&I===void 0||(K==null?0:K.isDisabled)||(I==null?void 0:I.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!c?(c=R==null?void 0:R.findIndex(function(m){var a,O;return((a=m.engagementPanelSectionListRenderer)==null?void 0:(O=a.identifier)==null?void 0:O.tag)==="shorts-comments-panel"}),c===-1||c===void 0||R!=null&&R.splice(c,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.mJ("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.mJ("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:_.mJ("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.mJ("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(_.jn(Object.values(R||
{})))):R}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var G=this,c,I,R;if((c=this.playerData)==null?0:(I=c.playabilityStatus)==null?0:(R=I.errorScreen)==null?0:R.playerInterstitialRenderer)return _.dJ.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.playerData.playabilityStatus.errorScreen;
var Z,K;return((Z=this.data)==null?void 0:Z.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((K=this.data)==null?0:K.watchStatus)&&_.D(this.data.watchStatus,_.rjB)?(_.dJ.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Nh.Object.defineProperties(L3,{template:{configurable:!0,enumerable:!0,get:function(){if(XKN===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <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    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);XKN=G}G=XKN;return G}}});
L3.prototype.onNextButtonDataChange=L3.prototype.onNextButtonDataChange;L3.prototype.onPrevButtonDataChange=L3.prototype.onPrevButtonDataChange;L3.prototype.onPersistentPanelActiveChanged=L3.prototype.onPersistentPanelActiveChanged;L3.prototype.lazyUpdateMiniplayerData=L3.prototype.lazyUpdateMiniplayerData;L3.prototype.onShortsPipActiveChanged=L3.prototype.onShortsPipActiveChanged;L3.prototype.setActiveIndex=L3.prototype.setActiveIndex;L3.prototype.graftNvcRenderer=L3.prototype.graftNvcRenderer;
L3.prototype.graftClientVisualElements=L3.prototype.graftClientVisualElements;L3.prototype.onActiveChanged=L3.prototype.onActiveChanged;L3.prototype.onShortsDismiss=L3.prototype.onShortsDismiss;L3.prototype.onShortUndoDismiss=L3.prototype.onShortUndoDismiss;L3.prototype.playerDataChanged=L3.prototype.playerDataChanged;L3.prototype.afterPlayerStarted=L3.prototype.afterPlayerStarted;L3.prototype.updateReelWatchSequenceResponse=L3.prototype.updateReelWatchSequenceResponse;
L3.prototype.unhideCurrentOverlay=L3.prototype.unhideCurrentOverlay;L3.prototype.onServiceRequestCompleted=L3.prototype.onServiceRequestCompleted;L3.prototype.engagementPanelsChanged=L3.prototype.engagementPanelsChanged;L3.prototype.onFullscreenChange=L3.prototype.onFullscreenChange;L3.prototype.onResize=L3.prototype.onResize;L3.prototype.setShortsContentList=L3.prototype.setShortsContentList;L3.prototype.setFirstShortsData=L3.prototype.setFirstShortsData;
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],L3.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.co.YtPageBehavior),_.h("design:type",Object)],L3.prototype,"ytPageBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],L3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.Zu),_.h("design:type",Object)],L3.prototype,"ironResizableBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],L3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],L3.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],L3.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],L3.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],L3.prototype,"playerData",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"reelWatchSequenceResponse",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"cachedReelWatchSequenceResponse",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"cachedSequenceParams",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"cachedSequenceProvider",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"currentEndpoint",void 0);
_.r([_.E(),_.h("design:type",Object)],L3.prototype,"nextButtonData",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"prevButtonData",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"isPreviousPageShorts",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"index",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"delayedActiveIndex",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"playablePreviousIndex",void 0);
_.r([_.E(),_.h("design:type",Object)],L3.prototype,"player",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"isPlayerPaused",void 0);_.r([_.E({selector:lHx}),_.h("design:type",Object)],L3.prototype,"isPlayerStarted",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"intersectionObserver",void 0);_.r([_.E(),_.h("design:type",Number)],L3.prototype,"cinematicsInitializeJobId",void 0);_.r([_.E(),_.h("design:type",Number)],L3.prototype,"updateMiniplayerDataJobId",void 0);
_.r([_.E(),_.h("design:type",Object)],L3.prototype,"fitToVisibleBounds",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"pageSubtype",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],L3.prototype,"enablePreviousContinuation",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"shortsPipEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"isDark",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"shortsViewTransitions",void 0);_.r([_.E({selector:_.al,reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"isFullscreen",void 0);_.r([_.E({selector:_.T$,reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"isShortsPipActive",void 0);_.r([_.nH("#shorts-inner-container"),_.h("design:type",HTMLElement)],L3.prototype,"shortsInnerContainer",void 0);
_.r([_.nH("#back-nav-button ytd-button-renderer"),_.h("design:type",_.JG)],L3.prototype,"backNavButton",void 0);_.r([_.nH("#shorts-container"),_.h("design:type",HTMLElement)],L3.prototype,"shortsContainer",void 0);_.r([_.ar("error-screen"),_.h("design:type",HTMLElement)],L3.prototype,"errorScreenContainer",void 0);_.r([_.ar("player"),_.h("design:type",Object)],L3.prototype,"playerElement",void 0);
_.r([_.ar("shorts-cinematic-container"),_.h("design:type",HTMLElement)],L3.prototype,"shortsCinematicContainer",void 0);_.r([_.ar("initial-player-container"),_.h("design:type",HTMLElement)],L3.prototype,"initialPlayerContainer",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"buttonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"anchoredPanelActive",void 0);_.r([_.E(),_.h("design:type",String)],L3.prototype,"activePanel",void 0);
_.r([_.E(),_.h("design:type",Object)],L3.prototype,"isActive",void 0);_.r([_.E({selector:NHR,reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"smallScreenPersistentPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"isPersistentPanelActive",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"smallScreenSqueezeBack",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"enableScrollIntoViewCenter",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"formatFirst",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"enableFlexibleOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"extractOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"useAspectRatio",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],L3.prototype,"enableShortsSequenceRefactorUnify",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"continuationRequestPending",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"shortsController",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"panelContainer",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"overlayContainer",void 0);
_.r([_.E(),_.h("design:type",Array)],L3.prototype,"carouselContainers",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"isShortsInitialized",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"firstShortsData",void 0);_.r([_.E(),_.h("design:type",Object)],L3.prototype,"firstShortsDataModel",void 0);_.r([_.E(),_.h("design:type",Array)],L3.prototype,"shortsContentList",void 0);
_.r([_.A("reelWatchSequenceResponse"),_.h("design:type",Object),_.h("design:paramtypes",[])],L3.prototype,"prevShortsSequence",null);_.r([_.A("data","prevShortsSequence"),_.A("data","prevShortsSequence"),_.h("design:type",Object),_.h("design:paramtypes",[])],L3.prototype,"shortsProcessedPrevSequence",null);_.r([_.A("reelWatchSequenceResponse"),_.h("design:type",Object),_.h("design:paramtypes",[])],L3.prototype,"shortsSequence",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"setFirstShortsData",null);_.r([_.wD("reelWatchSequenceResponse","firstShortsData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"setShortsContentList",null);_.r([_.A("data","shortsSequence","firstShortsData"),_.h("design:type",Object),_.h("design:paramtypes",[])],L3.prototype,"shortsProcessedSequence",null);
_.r([_.E({reflectToAttribute:!0}),_.A("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L3.prototype,"isUpArrowHidden",null);_.r([_.E({reflectToAttribute:!0}),_.A("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L3.prototype,"isDownArrowHidden",null);
_.r([_.E(),_.A("index"),_.h("design:type",Number),_.h("design:paramtypes",[])],L3.prototype,"activeIndex",null);_.r([_.A("isShortPlayable","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L3.prototype,"shouldRenderOfflineContent",null);_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"onResize",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],L3.prototype,"anchoredEngagementPanels",null);
_.r([_.E(),_.h("design:type",Object)],L3.prototype,"watchWhileEngagementPanels",void 0);_.r([_.wD("isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"onFullscreenChange",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"engagementPanelsChanged",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],L3.prototype,"onServiceRequestCompleted",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"unhideCurrentOverlay",null);_.r([_.wD("currentEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"updateReelWatchSequenceResponse",null);
_.r([_.wD("isPlayerStarted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"afterPlayerStarted",null);_.r([_.A("playerData","reelWatchSequenceResponse","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],L3.prototype,"errorScreen",null);_.r([_.A("errorScreen"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L3.prototype,"hasError",null);
_.r([_.wD("playerData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],L3.prototype,"playerDataChanged",null);_.r([_.qY("yt-dismissible-item-undo-feedback"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"onShortUndoDismiss",null);_.r([_.qY("yt-disable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],L3.prototype,"onShortsDismiss",null);
_.r([_.uO("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"onActiveChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"graftClientVisualElements",null);_.r([_.wD("currentPlayerIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"graftNvcRenderer",null);
_.r([_.wD("index"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"setActiveIndex",null);_.r([_.wD("isShortsPipActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"onShortsPipActiveChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"lazyUpdateMiniplayerData",null);
_.r([_.E(),_.h("design:type",Object)],L3.prototype,"onOverlayDensityChanged",void 0);_.r([_.wD("isPersistentPanelActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"onPersistentPanelActiveChanged",null);_.r([_.wD("index","data","isUpArrowHidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"onPrevButtonDataChange",null);
_.r([_.wD("index","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L3.prototype,"onNextButtonDataChange",null);_.r([_.Jc({is:"ytd-shorts"})],L3);_.F5.registerService(_.wZq,L3);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("JzFVk");
var ZhG;var KeR;var yq=function(){return _.J.apply(this,arguments)||this};
_.u(yq,_.J);yq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
yq.prototype.computeBlueBottomLink=function(G){return G};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yq.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.bottomIcon)"}),_.h("design:type",String)],yq.prototype,"bottomIcon",void 0);
_.r([_.E({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.h("design:type",Boolean)],yq.prototype,"enableBlueBottomLink",void 0);_.r([_.Jc({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],yq);
_.B(yq,"ytd-web-answer-renderer",function(){if(KeR!==void 0)return KeR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return KeR=G},{mode:_.Qc("kevlar_poly_si_batch_j035")?1:2});var PVT;var g3=function(){var G=_.J.apply(this,arguments)||this;G.hasChipBar=!1;return G};
_.u(g3,_.J);g3.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}}};
g3.prototype.computeHasChipBar=function(G){return!(G==null||!G.chipBar)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],g3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.h("design:type",Object)],g3.prototype,"hasChipBar",void 0);_.r([_.Jc({is:"ytd-search-header-renderer",disableElementRegistration:!0})],g3);
_.B(g3,"ytd-search-header-renderer",function(){if(PVT!==void 0)return PVT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return PVT=G},{mode:1});var QgN;var YA=function(){return _.J.apply(this,arguments)||this};
_.u(YA,_.J);YA.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],YA.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-page-continuation"})],YA);
_.B(YA,"ytd-page-continuation",function(){if(QgN!==void 0)return QgN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return QgN=G},{mode:1});var mET;var a$N;var TKT;var OhS=function(){return _.J.apply(this,arguments)||this};
_.u(OhS,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],OhS.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],OhS.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],OhS);
_.B(OhS,"ytd-watch-card-one-vs-one-event",function(){if(TKT!==void 0)return TKT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return TKT=G},{mode:1});var eZG=function(){return _.J.apply(this,arguments)||this};
_.u(eZG,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],eZG.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],eZG.prototype,"data",void 0);_.r([_.Jc({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],eZG);
_.B(eZG,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(a$N!==void 0)return a$N;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return a$N=G},{mode:1});var NK5;var l$_=function(){return _.J.apply(this,arguments)||this};
_.u(l$_,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],l$_.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],l$_.prototype,"data",void 0);_.r([_.Jc({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],l$_);
_.B(l$_,"ytd-banner-and-box-hero-image-renderer",function(){if(NK5!==void 0)return NK5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return NK5=G},{mode:1});var qG_;var GC=function(){var G=_.J.apply(this,arguments)||this;G.modern=_.v("web_modern_buttons");return G};
_.u(GC,_.J);GC.prototype.computeIcon=function(){var G,c,I=(G=this.data)==null?void 0:(c=G.icon)==null?void 0:c.iconType;if(I)return _.On(I)};
GC.prototype.computeButtonShape=function(){var G;return{buttonText:_.HY((G=this.data)==null?void 0:G.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Nh.Object.defineProperties(GC.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"}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],GC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],GC.prototype,"modern",void 0);_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],GC.prototype,"buttonColor",null);
_.r([_.Jc({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],GC);
_.B(GC,"ytd-call-to-action-button-renderer",function(){if(qG_!==void 0)return qG_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return qG_=G},{mode:1});var w1o;var cg=function(){return _.J.apply(this,arguments)||this};
_.u(cg,_.J);cg.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Q1(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.ZX(this.data.leftThumbnail.thumbnails,216)+")")};
cg.prototype.onLeftThumbnailChanged=cg.prototype.onLeftThumbnailChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],cg.prototype,"data",void 0);_.r([_.wD("data.leftThumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cg.prototype,"onLeftThumbnailChanged",null);_.r([_.Jc({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],cg);
_.B(cg,"ytd-collage-hero-image-renderer",function(){if(w1o!==void 0)return w1o;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return w1o=G},{mode:1});var Fe5;var IO=function(){return _.J.apply(this,arguments)||this};
_.u(IO,_.J);IO.prototype.computeStyle=function(G){return G};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],IO.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],IO.prototype,"componentStyle",void 0);_.r([_.Jc({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],IO);
_.B(IO,"ytd-single-hero-image-renderer",function(){if(Fe5!==void 0)return Fe5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Fe5=G},{mode:1});var ncx;var RO=function(){return _.J.apply(this,arguments)||this};
_.u(RO,_.J);_.P=RO.prototype;
_.P.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.v("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.P.computeSubtitle=function(G){if(this.data){var c;if(this.data.upcomingEventData){G=_.HY(G.subtitle);var I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(c=_.Cp(_.pe(G,I)))}else c=G.subtitle;return c}};
_.P.onHeroTap=function(G){G.preventDefault();var c=this.data&&this.data.navigationEndpoint;!c||!_.Gf(_.CE(G),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Gf(_.CE(G),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.v("kevlar_watchcard_hero_video_renderer_killswitch")?_.Xl(this.hostElement,"yt-navigate",{navigationEndpoint:c}):this.ytComponentBehavior.resolveCommand(c))};
_.P.computeHeroTabIndex=function(G){return G&&G.simpleText?-1:0};
_.P.computeHeroRole=function(G){return G&&G.simpleText?"":"link"};
_.P.computeIsReminderButtonPresent=function(G){return!(!G||!G.reminderButton)};
_.P.computeHideBottomItems=function(G){return!(this.computeIsReminderButtonPresent(G)||G.subtitle)};
_.P.dataChanged=function(){var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),c;((c=_.D(G==null?void 0:G.commandMetadata,_.Rh))==null?0:c.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G)};
RO.prototype.dataChanged=RO.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],RO.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],RO.prototype,"data",void 0);
_.r([_.E({computed:"computeSubtitle(data)"}),_.h("design:type",String)],RO.prototype,"subtitle",void 0);_.r([_.E({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],RO.prototype,"isReminderButtonPresent",void 0);_.r([_.E({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],RO.prototype,"hideBottomItems",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RO.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],RO);
_.B(RO,"ytd-watch-card-hero-video-renderer",function(){if(ncx!==void 0)return ncx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ncx=G},{mode:1});var vco;var ZQ=function(){return _.J.apply(this,arguments)||this};
_.u(ZQ,_.J);_.P=ZQ.prototype;_.P.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.P.computeTitleBadges=function(G){return G?[G]:[]};
_.P.computeHeaderStyle=function(G){return G?G.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.P.computeAvatarAriaLabel=function(G){if(G){var c,I,R,Z;return(Z=(c=G.avatar)==null?void 0:(I=c.accessibility)==null?void 0:(R=I.accessibilityData)==null?void 0:R.label)!=null?Z:_.HY(G==null?void 0:G.title)}};
_.P.computeAvatarHeight=function(G){return G==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.P.computeBadgeRowClass=function(G){return(G==null?0:G[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ZQ.prototype,"data",void 0);_.r([_.E({computed:"computeTitleBadges(data.titleBadge)"}),_.h("design:type",Array)],ZQ.prototype,"titleBadges",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.h("design:type",String)],ZQ.prototype,"headerStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.h("design:type",String)],ZQ.prototype,"badgeRowClass",void 0);_.r([_.Jc({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],ZQ);
_.B(ZQ,"ytd-watch-card-rich-header-renderer",function(){if(vco!==void 0)return vco;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return vco=G},{mode:1});var DE5;var oc_;var K3=function(){return _.J.apply(this,arguments)||this};
_.u(K3,_.J);K3.prototype.onMetadataTap=function(G){var c=this.data&&this.data.navigationEndpoint;c&&!_.Gf(_.CE(G),this.hostElement,["A".toString()])&&_.Xl(this.hostElement,"yt-navigate",{endpoint:c})};
_.Nh.Object.defineProperties(K3.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G;if(this.data.upcomingEventData){var c=_.HY(this.data.subtitle),I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(G=_.Cp(_.pe(c,I)))}else G=this.data.subtitle;return G}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],K3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data.style"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],K3.prototype,"isCondensed",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],K3.prototype,"subtitle",null);
_.r([_.Jc({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],K3);
_.B(K3,"ytd-watch-card-compact-video-renderer",function(){if(oc_!==void 0)return oc_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return oc_=G},{mode:1});var UET;var uG6=function(){return _.J.apply(this,arguments)||this};
_.u(uG6,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uG6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uG6.prototype,"data",void 0);_.r([_.Jc({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],uG6);
_.B(uG6,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(UET!==void 0)return UET;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return UET=G},{mode:1});var Pg=function(){return _.J.apply(this,arguments)||this};
_.u(Pg,_.J);Pg.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}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Pg.prototype,"ytRendererStamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Pg.prototype,"data",void 0);_.r([_.Jc({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Pg);
_.B(Pg,"ytd-vertical-watch-card-list-renderer",function(){if(DE5!==void 0)return DE5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return DE5=G},{mode:1});var bhJ;var Qt=function(){var G=_.J.apply(this,arguments)||this;G.ariaExpanded="false";return G};
_.u(Qt,_.J);_.P=Qt.prototype;_.P.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.P.dataChanged=function(){var G;this.currentSeasonIndex=((G=this.data)==null?void 0:G.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.P.computeEpisodesInfo=function(G,c,I){if(G!==void 0&&c.length===G.length)return G[I]};
_.P.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.P.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.P.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.P.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.P.getUppercaseSimpleString=function(G){return this.ytRendererBehavior.getSimpleString(G).toUpperCase()};
_.P.updateCurrentSeasonIndexFromBinding=function(G){this.currentSeasonIndex=G.detail.value};
Qt.prototype.onIronOverlayClosed=Qt.prototype.onIronOverlayClosed;Qt.prototype.currentSeasonIndexChanged=Qt.prototype.currentSeasonIndexChanged;Qt.prototype.dataChanged=Qt.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Qt.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",String)],Qt.prototype,"label",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],Qt.prototype,"currentSeasonIndex",void 0);_.r([_.E({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.h("design:type",Object)],Qt.prototype,"episodesInfo",void 0);_.r([_.E({value:"false"}),_.h("design:type",Object)],Qt.prototype,"ariaExpanded",void 0);_.r([_.nH("#lists"),_.h("design:type",Object)],Qt.prototype,"lists",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qt.prototype,"dataChanged",null);_.r([_.uO("currentSeasonIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qt.prototype,"currentSeasonIndexChanged",null);_.r([_.qY("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Qt.prototype,"onIronOverlayClosed",null);
_.r([_.Jc({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Qt);
_.B(Qt,"ytd-watch-card-section-dropdown-renderer",function(){if(bhJ!==void 0)return bhJ;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return bhJ=G},{mode:1});var k2T;var mn=function(){var G=_.J.apply(this,arguments)||this;G.isSearch=!1;return G};
_.u(mn,_.J);mn.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}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mn.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],mn.prototype,"isSearch",void 0);_.r([_.Jc({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],mn);
_.B(mn,"ytd-watch-card-section-sequence-renderer",function(){if(k2T!==void 0)return k2T;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return k2T=G},{mode:1});var sgT=_.W(function(G){return _.e("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.e(_.sN,{data:function(){return G.data().ctaButton}},{buttonViewModel:_.BR}),_.e(_.ul,{text:function(){return G.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Gn");
sgT.idomCompat=!0;_.R1(sgT,"ytd-button-banner-view-model",{props:{data:_.bl}});var aO=function(){var G=_.J.apply(this,arguments)||this;G.isSearch=!1;return G};
_.u(aO,_.J);
aO.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"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],aO.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],aO.prototype,"rounded",void 0);_.r([_.E(),_.h("design:type",Object)],aO.prototype,"isSearch",void 0);
_.r([_.Jc({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],aO);
_.B(aO,"ytd-universal-watch-card-renderer",function(){if(mET!==void 0)return mET;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return mET=G},{mode:1});var Le_;_.R1(_.W(function(G){var c=G.data;var I;G=!((I=_.wH().resolve(_.qR(_.d0)))==null||!I());I={};return _.e("overview-message-view-model",{class:_.O3("ytwOverviewMessageViewModelHost",(I.ytwOverviewMessageViewModelDarkBackground=G,I.ytwOverviewMessageViewModelLightBackground=!G,I))},_.e(_.l,{cond:function(){return c().primaryImage},
then:function(R){return _.e(_.yc,{data:R,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.e(_.l,{cond:function(){return c().primaryText},
then:function(){return _.e("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.e(_.ul,{text:function(){return c().primaryText}}))}}),_.e(_.l,{cond:function(){return c().secondaryText},
then:function(){return _.e("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.e(_.ul,{text:function(){return c().secondaryText}}))}}))},"Hn"),"overview-message-view-model",{props:{data:_.bl}});_.R1(_.uBd,"ytd-overview-answer-view-model",{props:{data:_.bl}});var TC=function(){return _.J.apply(this,arguments)||this};
_.u(TC,_.J);TC.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"}}}};
TC.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],TC.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],TC.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],TC.prototype,"isSearch",void 0);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],TC);
_.B(TC,"ytd-secondary-search-container-renderer",function(){if(Le_!==void 0)return Le_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return Le_=G},{mode:1});var AIf;var OL=function(){var G=_.J.apply(this,arguments)||this;G.renderSecondarySearchContainer=!1;G.isSearch=!1;return G};
_.u(OL,_.J);_.P=OL.prototype;_.P.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.P.created=function(){var G=this;this.boundStampSecondarySearchContainerIfFits=function(){G.stampSecondarySearchContainerIfFits()};
_.Ch("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.P.computeIsSearchFrictionPage=function(G){var c,I,R,Z,K;G=G==null?void 0:(c=G.primaryContents)==null?void 0:(I=c.sectionListRenderer)==null?void 0:(R=I.contents)==null?void 0:(Z=R[0])==null?void 0:(K=Z.itemSectionRenderer)==null?void 0:K.contents;if(!G)return!1;c=_.Q(G);for(I=c.next();!I.done;I=c.next())if(R=void 0,(R=I.value)==null?0:R.searchFrictionViewModel)return!0;return!1};
_.P.computeShowSecondaryColumn=function(G,c){return!!(c&&c.secondaryContents&&G)};
_.P.activeChanged=function(){var G=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.lO(this,this.debounceStampSecondarySearchContainerIfFits)),_.xW(function(){G.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.lO(this,this.debounceStampSecondarySearchContainerIfFits))};
_.P.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.P.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.P.debounceStampSecondarySearchContainerIfFits=function(){_.tc(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.P.onRetrieveLocation=function(G,c){c.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);G.stopPropagation()};
_.P.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
OL.prototype.dataChanged=OL.prototype.dataChanged;OL.prototype.onRetrieveLocation=OL.prototype.onRetrieveLocation;OL.prototype.persistentGuideChanged=OL.prototype.persistentGuideChanged;OL.prototype.activeChanged=OL.prototype.activeChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],OL.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.Zu),_.h("design:type",Object)],OL.prototype,"ironResizableBehavior",void 0);_.r([_.E(),_.h("design:type",Boolean)],OL.prototype,"active",void 0);_.r([_.E(),_.h("design:type",Object)],OL.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],OL.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.oa("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],OL.prototype,"biggerThumbsStyle",void 0);_.r([_.E(),_.h("design:type",Object)],OL.prototype,"renderSecondarySearchContainer",void 0);_.r([_.E({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.h("design:type",Boolean)],OL.prototype,"showSecondaryColumn",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.h("design:type",Boolean)],OL.prototype,"isSearchFrictionPage",void 0);
_.r([_.E(),_.h("design:type",Object)],OL.prototype,"isSearch",void 0);_.r([_.wD("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OL.prototype,"activeChanged",null);_.r([_.wD("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OL.prototype,"persistentGuideChanged",null);
_.r([_.qY("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],OL.prototype,"onRetrieveLocation",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OL.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],OL);
_.B(OL,"ytd-two-column-search-results-renderer",function(){if(AIf!==void 0)return AIf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return AIf=G},{mode:1});var e2=function(){var G=_.J.apply(this,arguments)||this;G.hasSearchHeader=!1;G.hasSecondaryContent=!1;G.hasBiggerThumbs=_.v("enable_desktop_search_bigger_thumbs");G.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return G};
_.u(e2,_.J);_.P=e2.prototype;_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.Hn(["aa","eocs"])}}};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.loadPage_=function(G){this.initCsi();G&&(this.data=G,_.Ch("REFINEMENTS_TUPLE",["FromSearchResponse",G.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.ax(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.P.initCsi=function(){_.aLo("results",["ol","cpt"])};
_.P.updateTitle=function(){var G=_.Gy(window.location.href,"q");G||(G=_.Gy(window.location.href,"search_query"));_.Xl(this.hostElement,"yt-update-title",G||"")};
_.P.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.P.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.v("web_srp_data_changed_terminate_imp_killswitch")||_.ym(this.hostElement,"yt-terminate-video-preview-action")};
_.P.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.P.computeHasSearchHeader=function(G){var c;G=G==null?void 0:(c=G.header)==null?void 0:c.searchHeaderRenderer;return!!G&&(!!G.searchFilterButton||!!G.chipBar)};
_.P.computeHasSecondaryContent=function(G){var c,I;return!!(G==null?0:(c=G.contents)==null?0:(I=c.twoColumnSearchResultsRenderer)==null?0:I.secondaryContents)};
_.Nh.Object.defineProperties(e2,{template:{configurable:!0,enumerable:!0,get:function(){if(ZhG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);ZhG=G}G=ZhG;return G}}});
e2.prototype.onReloadContinuationFinish=e2.prototype.onReloadContinuationFinish;e2.prototype.dataChanged=e2.prototype.dataChanged;_.r([_.L(_.co.YtPageBehavior),_.h("design:type",Object)],e2.prototype,"ytPageBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],e2.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],e2.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],e2.prototype,"data",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],e2.prototype,"monitorScroll",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],e2.prototype,"hasSearchHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],e2.prototype,"hasSecondaryContent",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],e2.prototype,"hasBiggerThumbs",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e2.prototype,"dataChanged",null);
_.r([_.qY("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e2.prototype,"onReloadContinuationFinish",null);_.r([_.Jc({is:"ytd-search"})],e2);_.F5.registerService(_.qMC,e2);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("h8y2qb");
var OST=function(G){if(G=_.KP0(G)){var c;(c=G.sources)!=null&&c[0]?(c=_.Qt8(G),c=c<1?"VERTICAL":c>1?"HORIZONTAL":"SQUARE"):c=void 0;return c}},IG=function(G){_.jj.call(this,"upload");
this.opts.query=G},NF_=function(G,c){return _.e(eYN,{data:G,
onYtNavigate:c})},lLx=function(G,c){return _.a6(G.entities,"pageHeaderEntity",c)},wDN=function(G,c){return G.map(function(I){if(I.tabRenderer)return qeN(I.tabRenderer);
if(I.expandableTabRenderer&&c){var R=I.expandableTabRenderer;return{customTabRenderable:function(){return c(R)}}}return{}})},qeN=function(G){return{identifier:G.tabIdentifier,
aTagConfig:_.fd({innertubeCommand:G.endpoint,forceNewState:!0}),title:G.title,selected:G.selected,disabled:G.unselectable,icon:G.icon}},Frf=function(G){return _.R6({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:G})},n9T=function(G){if(!_.P8(document,"gtm-noscript")){var c=document.createElement("noscript");
c.id="gtm-noscript";c.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+G+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(c)}};_.eg(IG,_.jj);IG.prototype.JSC$10243_setLabel=function(G){IG.superClass_.JSC$10243_setLabel.call(this,G);return this};
IG.prototype.addUploadMetadata=function(G,c){IG.superClass_.addUploadMetadata.call(this,G,c);return this};var v9N=function(G){if(G!=="youtubebanner"&&G!=="youtube-channel-banner")throw Error("Wo");IG.call(this,G)};
_.u(v9N,IG);v9N.prototype.JSC$10243_setLabel=function(G){IG.prototype.JSC$10243_setLabel.call(this,G);return this};
v9N.prototype.addUploadMetadata=function(G,c){IG.prototype.addUploadMetadata.call(this,G,c);return this};var Dw_=[_.Zu,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(G){_.qy(G).path[0]!==this&&(this.resetLayout(),G.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var G=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.pq(this._layoutDebouncer,_.AN,G);_.M7(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var G=this;requestAnimationFrame(function(){G.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(G){this.resizerShouldNotify(G)&&this._notifyDescendant(G)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var o9x=[_.eVi,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(G,c){var I=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[G];if(!I)throw new ReferenceError(this._getUndefinedMsg(G));G=this._boundEffect(I,c||{});G.setUp();return G},
_effectsChanged:function(G,c,I){this._tearDownEffects();G&&I&&(G.split(" ").forEach(function(R){var Z;R!==""&&((Z=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[R])?this._effects.push(this._boundEffect(Z,c[R])):console.warn(this._getUndefinedMsg(R)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(G,c){c=c||{};var I=parseFloat(c.startsAt||0),R=parseFloat(c.endsAt||1),Z=R-I,K=function(){};
R=I===0&&R===1?G.run:function(m,a){G.run.call(this,Math.max(0,(m-I)/Z),a)};
return{setUp:G.setUp?G.setUp.bind(this,c):K,run:G.run?R.bind(this):K,tearDown:G.tearDown?G.tearDown.bind(this):K}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(G){G.setUp()!==!1&&this._effectsRunFn.push(G.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(G){G.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(G,c){this._effectsRunFn&&this._effectsRunFn.forEach(function(I){I(G,c)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var G=this._clampedScrollTop;this._updateScrollState(G);this.threshold>0&&this._setThresholdTriggered(G>=this.threshold)}},
_getDOMRef:function(G){console.warn("_getDOMRef","`"+G+"` is undefined")},
_getUndefinedMsg:function(G){return"Scroll effect `"+G+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+G+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Xo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(G){var c={};G=parseFloat(G.scalar);c.background=this._getDOMRef("background");c.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");c.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");c.deltaBg=c.backgroundFrontLayer.offsetHeight-c.background.offsetHeight;c.deltaBg===0?(isNaN(G)&&(G=.8),c.deltaBg=(this._dHeight||0)*G):(isNaN(G)&&(G=
1),c.deltaBg*=G);this._fxParallaxBackground=c},
run:function(G){var c=this._fxParallaxBackground;this.transform("translate3d(0px, "+c.deltaBg*Math.min(1,G)+"px, 0px)",c.backgroundFrontLayer);c.backgroundRearLayer&&this.transform("translate3d(0px, "+c.deltaBg*Math.min(1,G)+"px, 0px)",c.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Uw6;var uON;var bSo=function(){};
_.P=bSo.prototype;_.P._scrollTargetChanged=function(){};
_.P.scroll=function(){};
_.P._isValidScrollTarget=function(){};
_.P._toggleScrollListener=function(){};
_.P.toggleScrollListener=function(){};
_.P.createEffect=function(){};
_.P._effectsChanged=function(){};
_.P._layoutIfDirty=function(){};
_.P._boundEffect=function(){};
_.P._setUpEffect=function(){};
_.P._tearDownEffects=function(){};
_.P._runEffects=function(){};
_.P._scrollHandler=function(){};
_.P._scrollStateChanged=function(){};
_.P._getUndefinedMsg=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P._appResetLayoutHandler=function(){};
_.P.resetLayout=function(){};
_.P._notifyLayoutChanged=function(){};
_.P._notifyDescendantResize=function(){};
_.P._setThresholdTriggered=function(){};
bSo=_.SD({_template:function(){if(uON!==void 0)return uON;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Uw6===void 0&&(Uw6=document.createElement("template"));var R=Uw6;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return uON=G},
is:"tp-yt-app-header",behaviors:[o9x,Dw_],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var G=_.qy(this.$.slot).getDistributedNodes(),c=0,I;I=G[c];c++)if(I.nodeType===Node.ELEMENT_NODE)if(I.hasAttribute("sticky")){this._stickyElRef=I;break}else this._stickyElRef||(this._stickyElRef=I);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var G=this._clampedScrollTop,c=this._height===0||G===0,I=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;c||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();c?this._updateScrollState(G,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=I}},
_updateScrollState:function(G,c){if(this._height!==0){var I=0,R=this._top;var Z=this._maxHeaderTop;var K=G-this._lastScrollTop,m=Math.abs(K),a=G>this._lastScrollTop,O=performance.now();this._mayMove()&&(I=this._clamp(this.reveals?R+K:G,0,Z));G>=this._dHeight&&(I=this.condenses&&!this.fixed?Math.max(this._dHeight,I):I,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&m<100){if(O-this._initTimestamp>300||this._wasScrollingDown!==a)this._initScrollTop=G,this._initTimestamp=O;G>=Z&&
(Math.abs(this._initScrollTop-G)>30||m>10?(a&&G>=Z?I=Z:!a&&G>=this._dHeight&&(I=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((I-R)/(K/(O-this._lastTimestamp)),0,300)+"ms"):I=this._top)}Z=this._dHeight===0?G>0?1:0:I/this._dHeight;c||(this._lastScrollTop=G,this._top=I,this._wasScrollingDown=a,this._lastTimestamp=O);if(c||Z!==this._progress||R!==I||G===0)this._progress=Z,this._runEffects(Z,I),this._transformHeader(I)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(G){this.translate3d(0,-G+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&G>=this._stickyElTop?Math.min(G,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(G,c,I){return Math.min(I,Math.max(c,G))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.qy(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(G){switch(G){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.qy(this).querySelector("[main-title]");case "condensedTitle":return _.qy(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var kBx;var snR;_.SD({_template:function(){if(snR!==void 0)return snR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;kBx===void 0&&(kBx=document.createElement("template"));var R=kBx;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return snR=G},
is:"tp-yt-app-header-layout",behaviors:[Dw_],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.qy(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var G=this.header;if(this.isAttached&&G){this.$.wrapper.classList.remove("initializing");G.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)G.style.left="",G.style.right="";else{var c=this.getBoundingClientRect(),I=document.documentElement.clientWidth-c.right;G.style.left=c.left+"px";G.style.right=I+"px"}c=this.$.contentContainer.style;I=G.offsetHeight;G.fixed&&!G.condenses&&this.hasScrollingRegion?
(c.marginTop=I+"px",c.paddingTop=""):(c.paddingTop=I+"px",c.marginTop="")}}});var LrJ=new _.vS("alertCommand");var AKS=new _.vS("manageLabsStateCommand");var $wx=new _.vS("inlineFormRenderer");var SeJ=new _.vS("playlistSidebarPrimaryInfoRenderer");var pDx=new _.vS("productDetailsThumbnailRenderer"),MT5=new _.vS("productDetailsVariantRenderer"),VTR=new _.vS("productDetailsVariantOptionRenderer"),zYz=new _.vS("productDetailsOffersContainerRenderer"),E96=new _.vS("productDetailsOfferRenderer");var JKx=new _.vS("shoppingFlaggingRenderer");var Wrx=new _.vS("playlistBylineRenderer");var iSz=new _.vS("insertChannelTabCommand");var RG=function(){return _.D4.apply(this,arguments)||this};
_.u(RG,_.D4);_.P=RG.prototype;_.P.activeChanged=function(){if(this.active){var G=_.Q1(this.hostElement).querySelector("#header");G&&_.Xl(G,"iron-resize");window.addEventListener("scroll",_.lO(this,this.onScroll))}else window.removeEventListener("scroll",_.lO(this,this.onScroll)),_.Xl(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.P.guideVisibleChanged=function(){var G=_.Q1(this.hostElement).querySelector("#header");G&&_.Xl(G,"iron-resize")};
_.P.onScroll=function(){var G=this;_.tc(this,"onScroll",function(){var c=_.Q1(G.hostElement).querySelector("#header");c&&c.polymerController&&(c=c.polymerController.getScrollState().progress===1?"standard":"seamed",_.Xl(G.hostElement,"yt-request-panel-mode-change",{mode:c}))},10)};
_.P.tabsChanged=function(){if(this.tabs){for(var G=null,c=0,I=this.tabs.length;c<I;++c){var R=this.tabs[c].tabRenderer;if(R&&R.selected){G=c;break}}this.selected=G}};
_.P.onTabsActivate=function(G){_.Xl(this.hostElement,"yt-navigate",{endpoint:this.tabs[G.detail.selected].tabRenderer.endpoint})};
RG.prototype.tabsChanged=RG.prototype.tabsChanged;RG.prototype.guideVisibleChanged=RG.prototype.guideVisibleChanged;RG.prototype.activeChanged=RG.prototype.activeChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],RG.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.E(),_.h("design:type",Array)],RG.prototype,"tabs",void 0);
_.r([_.E(),_.h("design:type",Object)],RG.prototype,"selected",void 0);_.r([_.E(),_.h("design:type",Boolean)],RG.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],RG.prototype,"disableHeaderFluidWidth",void 0);_.r([_.wD("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RG.prototype,"activeChanged",null);
_.r([_.wD("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RG.prototype,"guideVisibleChanged",null);_.r([_.wD("tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RG.prototype,"tabsChanged",null);_.r([_.Um()],RG);var fLf=[_.X.YtRendererBehavior,_.UX.YtdGuideStateAwareBehavior,RG.prototype];var BFG=2/3,rKS=_.qj(130749),jnS=function(G,c){var I=this;this.element=G;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){I.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:BFG,moveAction:function(R){I.moveAction(R)},
triggerAction:function(){I.element.isReloading=!0;_.t0(_.DP(),{visualElement:rKS});_.NC.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:I.element}})}}}};
_.HE(_.DP(),rKS,this.layer);this.gesture=new _.o$(G,c,this.refreshConfig,"pan-down");this.attach()};
_.P=jnS.prototype;_.P.attach=function(){this.gesture.attach()};
_.P.detach=function(){this.gesture.detach()};
_.P.reset=function(){this.element.close()};
_.P.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.P.moveAction=function(G){this.element.rotation=G*360};var xwN=_.qj(130750),hYy=function(G,c,I,R,Z){var K=this;this.element=G;this.parent=I;this.channelHeader=R;this.ytdReduxDispatch=Z;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){K.tabsStartAtInPx=K.channelHeader.clientHeight-48;var m;(m=K.selectedTab)!=null&&m.title&&(m=_.wH().resolve(_.qR(_.I9)))&&(m=m.getCurrentPage(),K.lastVisitedTabScrollPosition=m.getScrollTop(),K.previousTab&&
((K.lastVisitedTabScrollPosition===void 0?0:K.lastVisitedTabScrollPosition<K.channelHeader.clientHeight-48)?K.scrollPositionForTabs.has(K.selectedTab.title)&&K.scrollPositionForTabs.delete(K.selectedTab.title):K.scrollPositionForTabs.set(K.selectedTab.title,m.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:tTT(),triggerAction:function(){K.navigate(K.previousTab)},
moveAction:function(m,a){K.moveAction(m,a)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-tTT(),triggerAction:function(){K.navigate(K.nextTab)},
moveAction:function(m,a){K.moveAction(m,a)}}}};
_.HE(_.DP(),xwN,this.layer);this.gesture=new _.o$(G,c,this.tabConfig);this.attach()};
_.P=hYy.prototype;_.P.attach=function(){this.gesture.attach()};
_.P.detach=function(){this.gesture.detach()};
_.P.tabsChanged=function(G){if(G){var c=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;G=_.Q(G);for(var I=G.next();!I.done;I=G.next()){I=I.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=I);var R=void 0;if((R=I)==null?0:R.selected)this.previousTab=c,this.selectedTab=I;c=I}c=this.gesture;G=this.getConfig();c.config=G;this.scrollPositionNeedsUpdate=!0}};
_.P.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.P.moveAction=function(G,c){if(!this.tabsElement){var I;this.tabsElement=(I=this.parent.header)==null?void 0:I.tabsElement;c==="right"&&this.previousTab?(I=this.previousTab.endpoint,_.Fr0(_.wH().resolve(_.MB),I,{},"")):c==="left"&&this.nextTab&&(I=this.nextTab.endpoint,_.Fr0(_.wH().resolve(_.MB),I,{},""));if(!this.tabsElement)return}I=this.tabsElement._pos;c==="right"&&(G*=-1);this.tabsElement._positionBar(I.width,I.left*1+I.width*G)};
var tTT=function(){var G,c;return(c=(G=_.wH().resolve(_.I9).getCurrentPage())==null?void 0:G.clientWidth)!=null?c:0};
hYy.prototype.navigate=function(G){this.element.data=void 0;if(G=G==null?void 0:G.endpoint)this.ytdReduxDispatch(Frf(!0)),_.t0(_.DP(),{visualElement:xwN}),_.NC.instance.resolveCommand({navigateAction:{endpoint:G}},{form:{element:this.element}})};var dwG;var CRz;var ZD=function(){return _.J.apply(this,arguments)||this};
_.u(ZD,_.J);ZD.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ZD.prototype,"data",void 0);_.r([_.Jc({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],ZD);
_.B(ZD,"ytd-labs-edit-renderer",function(){if(CRz!==void 0)return CRz;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return CRz=G},{mode:1});var HSR;var Kc=function(){var G=_.J.apply(this,arguments)||this;G.dark=!1;G.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";G.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(Kc,_.J);Kc.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Kc.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.setBackgroundImage(G);this.dark=G};
Kc.prototype.onDarkModeToggledAction=function(G){this.setBackgroundImage(G);this.dark=G};
Kc.prototype.setBackgroundImage=function(G){_.eD(this.hostElement,{"--yt-labs-header-background":"url("+(G?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Kc.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Kc.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Kc.prototype,"dark",void 0);
_.r([_.Jc({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Kc);
_.B(Kc,"ytd-labs-header-renderer",function(){if(HSR!==void 0)return HSR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return HSR=G},{mode:1});var XDN;var Po=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return G};
_.u(Po,_.J);Po.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"}}}}}};
Po.prototype.onYtToggleButton=function(G){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",G.detail.toggled)};
Po.prototype.onManageLabsState=function(G){if(G=_.D(G,AKS))G.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?G.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&G.labsItemId===this.data.labsItemId&&(G.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ym(this.hostElement,"yt-check-labs-opted-in-state").some(function(c){return c})&&this.data.confirmationDialogCommand?_.cd(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.wH().resolve(_.n4).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&G.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.wH().resolve(_.n4).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Po.prototype.onCheckLabsOptedInState=function(){var G=this.get("data.primaryButton.toggleButtonRenderer");return G?G.isToggled:!1};
_.Nh.Object.defineProperties(Po.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Po.prototype.onYtToggleButton=Po.prototype.onYtToggleButton;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Po.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Po.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Po.prototype,"itemStyle",null);_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Po.prototype,"onYtToggleButton",null);_.r([_.Jc({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Po);
_.B(Po,"ytd-labs-item-renderer",function(){if(XDN!==void 0)return XDN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return XDN=G},{mode:1});var yKR;var g9z;var Yez=function(){return _.J.apply(this,arguments)||this};
_.u(Yez,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Yez.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Yez.prototype,"data",void 0);_.r([_.Jc({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Yez);
_.B(Yez,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(g9z!==void 0)return g9z;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return g9z=G},{mode:1});var GyG;var Qq=function(){return _.J.apply(this,arguments)||this};
_.u(Qq,_.J);Qq.prototype.observeSuperchatChip=function(){if(this.data){var G={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.eD(this.hostElement,G)}};
Qq.prototype.colorFromDecimal=function(G){return _.pE(Number(G||0))};
Qq.prototype.observeSuperchatChip=Qq.prototype.observeSuperchatChip;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Qq.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qq.prototype,"observeSuperchatChip",null);_.r([_.Jc({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Qq);
_.B(Qq,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(GyG!==void 0)return GyG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return GyG=G},{mode:1});var mR=function(){return _.J.apply(this,arguments)||this};
_.u(mR,_.J);mR.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"}}}};
_.Nh.Object.defineProperties(mR.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.nI),_.h("design:type",Object)],mR.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mR.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],mR.prototype,"hideMessageBlock",null);
_.r([_.Jc({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],mR);
_.B(mR,"ytd-live-chat-history-entry-renderer",function(){if(yKR!==void 0)return yKR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return yKR=G},{mode:1});var cyy;var ImN=function(){return _.J.apply(this,arguments)||this};
_.u(ImN,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ImN.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ImN.prototype,"data",void 0);_.r([_.Jc({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],ImN);
_.B(ImN,"ytd-channel-options-renderer",function(){if(cyy!==void 0)return cyy;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return cyy=G},{mode:1});var RqN;var aG=function(){return _.J.apply(this,arguments)||this};
_.u(aG,_.J);aG.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],aG.prototype,"data",void 0);_.r([_.Jc({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],aG);
_.B(aG,"ytd-settings-email-item-renderer",function(){if(RqN!==void 0)return RqN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return RqN=G},{mode:1});var Zty;var Tj=function(){return _.J.apply(this,arguments)||this};
_.u(Tj,_.J);Tj.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"}}}};
Tj.prototype.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
Tj.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Nh.Object.defineProperties(Tj.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Tj.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Tj.prototype,"expanded",void 0);_.r([_.A("expanded"),_.h("design:type",String),_.h("design:paramtypes",[])],Tj.prototype,"emailListExpanded",null);
_.r([_.nH("#options"),_.h("design:type",Object)],Tj.prototype,"options",void 0);_.r([_.Jc({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Tj);
_.B(Tj,"ytd-settings-email-list-renderer",function(){if(Zty!==void 0)return Zty;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Zty=G},{mode:1});var Kux;var Ob=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.u(Ob,_.J);Ob.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"}}}};
Ob.prototype.handleSignalActionSubmitForm=function(){var G,c=(G=this.formRenderer)==null?void 0:G.getForm();c&&this.data.serviceEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},c,{element:this.hostElement})})};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Ob.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ob.prototype,"data",void 0);_.r([_.nH("yt-form-renderer"),_.h("design:type",Object)],Ob.prototype,"formRenderer",void 0);
_.r([_.Jc({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Ob);
_.B(Ob,"ytd-settings-gaia-link-renderer",function(){if(Kux!==void 0)return Kux;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Kux=G},{mode:1});var Pef;_.R1(_.bh,"basic-content-view-model",{props:{data:_.G9,className:_.G9}});var el=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return G};
_.u(el,_.J);el.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.eXu()&&this.set("data.hidden",!1)};
el.prototype.onSwitchReady=function(){var G=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.v("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.OHd().then(function(c){c&&(Notification.permission==="default"?G.set("data.hidden",!1):Notification.permission==="granted"&&_.Z8("NotificationsDisabled").then(function(I){I||_.ym(G.hostElement,"yt-toggle-settings-switch",[G.data.id,!I]);G.set("data.hidden",!1)}).catch(function(){}))})})};
el.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
el.prototype.handleUpdateOptionsCommand=function(G){(G=_.D(G,_.b$0))&&this.data&&this.data.id===G.id&&(this.set("data.hidden",G.hidden),G.text!==void 0&&this.set("data.text",G.text),G.clearOptions&&this.set("data.options",[]))};
el.prototype.onSwitchReady=el.prototype.onSwitchReady;el.prototype.dataChanged=el.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],el.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],el.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],el.prototype,"data",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],el.prototype,"dataChanged",null);_.r([_.qY("yt-settings-switch-ready"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],el.prototype,"onSwitchReady",null);_.r([_.Jc({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],el);
_.B(el,"ytd-settings-options-renderer",function(){if(Pef!==void 0)return Pef;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Pef=G},{mode:1});var QWf;var NA=function(){return _.J.apply(this,arguments)||this};
_.u(NA,_.J);NA.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
NA.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
NA.prototype.onYtExpanderMoreTapped=NA.prototype.onYtExpanderMoreTapped;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NA.prototype,"data",void 0);
_.r([_.qY("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NA.prototype,"onYtExpanderMoreTapped",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],NA);
_.B(NA,"ytd-product-details-description-renderer",function(){if(QWf!==void 0)return QWf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return QWf=G},{mode:1});var m8G;var lq=function(){var G=_.J.apply(this,arguments)||this;G.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";G.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";G.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";G.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return G};
_.u(lq,_.J);lq.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Nh.Object.defineProperties(lq.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:(c=G.offerData)==null?void 0:c.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?void 0:G.purchaseButtonRenderers)!==void 0&&((c=this.data)==null?void 0:c.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.formattedFromMerchantText)&&(!((c=this.data)==null||!c.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],lq.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lq.prototype,"data",void 0);
_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],lq.prototype,"shippingIcon",void 0);_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],lq.prototype,"shippingAddressIcon",void 0);_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],lq.prototype,"googleGuaranteeIcon",void 0);
_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],lq.prototype,"returnPolicyIcon",void 0);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lq.prototype,"showAdditionalFees",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lq.prototype,"showMultiPurchaseButtons",null);
_.r([_.A("data","showMultiPurchaseButtons"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lq.prototype,"showPurchaseData",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],lq);
_.B(lq,"ytd-product-details-hero-offer-renderer",function(){if(m8G!==void 0)return m8G;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return m8G=G},{mode:1});var amS;var TNR;var qA=function(){return _.J.apply(this,arguments)||this};
_.u(qA,_.J);_.P=qA.prototype;_.P.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.P.onKeyDown=function(G){G=G.keyCode;G!==13&&G!==32||this.handleSelection()};
_.P.onMouseEnterImage=function(){var G;((G=this.data)==null?void 0:G.thumbnailDetails)!==void 0&&_.gq(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.P.onMouseLeaveImage=function(){_.gq(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.P.handleSelection=function(){this.data&&_.Xl(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Nh.Object.defineProperties(qA.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qA.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],qA.prototype,"isSelected",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],qA);
_.B(qA,"ytd-product-details-thumbnail-renderer",function(){if(TNR!==void 0)return TNR;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return TNR=G},{mode:1});var w3=function(){var G=_.J.apply(this,arguments)||this;var c={};G.actionMap=(c["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",c["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",c);G.selectedThumbnailIndex=0;G.selectItem=function(I){I.target.onKeyDown(I)};
return G};
_.u(w3,_.J);_.P=w3.prototype;_.P.handlePreviewImageSelect=function(G){this.hoverThumbnail=G};
_.P.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.P.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.P.onThumbnailSelected=function(G,c){this.selectedThumbnailIndex=c};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.P.updateOffset=function(){var G=_.Q1(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_()};
_.Nh.Object.defineProperties(w3.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.imageRenderer){var c,I;return((c=this.data)==null?void 0:(I=c.imageRenderer)==null?void 0:I.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var G;if((G=this.data)==null?0:G.imageRenderer){var c;return(c=_.D(this.data.imageRenderer[this.selectedThumbnailIndex],pDx))==null?void 0:c.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var G=this,c,I,R,Z=(R=(c=this.data)==null?void 0:(I=c.imageRenderer)==null?void 0:I.map(function(K,m){return{productDetailsThumbnailRenderer:Object.assign({},_.D(K,pDx),{index:m,isSelected:m===G.selectedThumbnailIndex})}}))!=null?R:[];
return Object.assign({},this.data,{imageRenderer:Z})}}});
w3.prototype.updateOffset=w3.prototype.updateOffset;w3.prototype.dataChanged=w3.prototype.dataChanged;w3.prototype.onThumbnailSelected=w3.prototype.onThumbnailSelected;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.WT.YtdHorizontalListBehavior),_.h("design:type",Object)],w3.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],w3.prototype,"componentBehavior",void 0);_.r([_.L([_.HR.YtActionHandlerBehavior]),_.h("design:type",Object)],w3.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],w3.prototype,"data",void 0);_.r([_.E({value:"$.items.children"}),_.h("design:type",String)],w3.prototype,"itemsPath",void 0);_.r([_.E({value:3}),_.h("design:type",Number)],w3.prototype,"initialCount",void 0);
_.r([_.nH("#items"),_.h("design:type",Object)],w3.prototype,"items",void 0);_.r([_.E(),_.h("design:type",Object)],w3.prototype,"selectedThumbnailIndex",void 0);_.r([_.E(),_.h("design:type",Object)],w3.prototype,"hoverThumbnail",void 0);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],w3.prototype,"showThumbnails",null);
_.r([_.qY("ytd-product-details-thumbnail-renderer-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Number]),_.h("design:returntype")],w3.prototype,"onThumbnailSelected",null);_.r([_.A("data","selectedThumbnailIndex","hoverThumbnail"),_.h("design:type",Object),_.h("design:paramtypes",[])],w3.prototype,"thumbnailDetails",null);_.r([_.A("data","selectedThumbnailIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],w3.prototype,"populatedData",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w3.prototype,"dataChanged",null);_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w3.prototype,"updateOffset",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],w3);
_.B(w3,"ytd-product-details-image-carousel-renderer",function(){if(amS!==void 0)return amS;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return amS=G},{mode:_.Qc("kevlar_poly_si_batch_j079")?1:2});var OtN;var Fm=function(){return _.J.apply(this,arguments)||this};
_.u(Fm,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Fm.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Fm.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Fm);
_.B(Fm,"ytd-product-details-offer-renderer",function(){if(OtN!==void 0)return OtN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return OtN=G},{mode:1});var eqJ;var nc=function(){var G=_.J.apply(this,arguments)||this;G.isOffersHidden=!0;return G};
_.u(nc,_.J);nc.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var G,c=_.D((G=this.data)==null?void 0:G.viewOffersButton,_.vE);c&&this.ytRendererBehavior.logExplicitClick(c)};
nc.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Nh.Object.defineProperties(nc.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R;return(I=_.D((G=this.data)==null?void 0:(c=G.offers)==null?void 0:c[0],E96))==null?void 0:(R=I.offerData)==null?void 0:R.vendorLogoUrl}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],nc.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],nc.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],nc.prototype,"isOffersHidden",void 0);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],nc.prototype,"firstOfferVendorLogoUrl",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],nc);
_.B(nc,"ytd-product-details-offers-container-renderer",function(){if(eqJ!==void 0)return eqJ;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return eqJ=G},{mode:1});var NNT;var lm_;var vo=function(){return _.J.apply(this,arguments)||this};
_.u(vo,_.J);vo.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
vo.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.gq(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
vo.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.gq(this,"ytd-product-details-variant-image-unselect")};
_.Nh.Object.defineProperties(vo.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.data)==null?void 0:G.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((I=this.data)==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var G;if(((G=this.data)==null?void 0:G.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var G,c;return this.isUnavailable?(G=this.data)==null?void 0:G.variantOptionUnavailableAccessibilityLabel:(c=this.data)==null?void 0:c.variantOptionAccessibilityLabel}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],vo.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],vo.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],vo.prototype,"displayType",void 0);
_.r([_.A("displayType","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vo.prototype,"isImageButton",null);_.r([_.A("displayType","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vo.prototype,"isPillButton",null);_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vo.prototype,"isActive",null);
_.r([_.A("data"),_.E({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vo.prototype,"isUnavailable",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"thumbnailDetails",null);_.r([_.A("isUnavailable","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"accessibilityLabel",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],vo);
_.B(vo,"ytd-product-details-variant-option-renderer",function(){if(lm_!==void 0)return lm_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return lm_=G},{mode:1});var qZG;var DD=function(){var G=_.J.apply(this,arguments)||this;G.variantsExpanded=!1;G.hideShowMoreLessVariantButton=!0;G.initialized=!1;G.computeVariantsDebouncer=null;G.computeVariants=function(c){c=c===void 0?!1:c;G.variantsExpanded||G.showOptions()||!c||(G.variantsExpanded=!0);if(G.variantsExpanded){c=_.Q(G.items.children);for(var I=c.next();!I.done;I=c.next())I.value.hidden=!1}G.initialized=!0};
return G};
_.u(DD,_.J);_.P=DD.prototype;_.P.ready=function(){var G=this;setTimeout(function(){G.computeVariants(!0)})};
_.P.showOptions=function(){for(var G=_.Q(this.items.children),c=G.next();!c.done;c=G.next())c.value.hidden=!0;var I=this.container.getBoundingClientRect().width,R=0,Z=G=0;c=!1;for(var K=_.Q(this.items.children),m=K.next();!m.done;m=K.next()){m=m.value;m.hidden=!1;var a=m.getBoundingClientRect().width;if(R+a<I)R+=a;else if(++Z<2)R=a;else break;G+=1;m.hasAttribute("is-active")&&(c=!0)}for(I=G;I<this.items.children.length;I++)this.items.children[I].hidden=!0;this.hideShowMoreLessVariantButton=G===this.items.children.length;
return c};
_.P.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.pq(this.computeVariantsDebouncer,_.vw.after(100),this.computeVariants)};
_.P.onShowMoreLessVariantsButtonClick=function(){var G;(G=this.data)!=null&&G.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.P.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Nh.Object.defineProperties(DD.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.variantOptionRenderers)==null?void 0:c.find(function(K){return _.D(K,VTR).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),R,Z;
return(Z=(R=_.D(I,VTR))==null?void 0:R.name)!=null?Z:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
DD.prototype.debouncedComputeVariants=DD.prototype.debouncedComputeVariants;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],DD.prototype,"componentBehavior",void 0);_.r([_.L(_.Zu),_.h("design:type",Object)],DD.prototype,"ironResizableBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],DD.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],DD.prototype,"variantsExpanded",void 0);_.r([_.E(),_.h("design:type",Object)],DD.prototype,"hideShowMoreLessVariantButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],DD.prototype,"initialized",void 0);_.r([_.nH("#items"),_.h("design:type",HTMLDivElement)],DD.prototype,"items",void 0);_.r([_.nH("#container"),_.h("design:type",HTMLDivElement)],DD.prototype,"container",void 0);
_.r([_.nH("#more-variants-button"),_.h("design:type",HTMLElement)],DD.prototype,"moreVariantsButton",void 0);_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],DD.prototype,"selectedOptionName",null);_.r([_.wD("data","variantsExpanded"),_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DD.prototype,"debouncedComputeVariants",null);
_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],DD.prototype,"displayType",null);_.r([_.A("displayType"),_.h("design:type",Object),_.h("design:paramtypes",[])],DD.prototype,"variantItemsClassname",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],DD);
_.B(DD,"ytd-product-details-variant-renderer",function(){if(qZG!==void 0)return qZG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return qZG=G},{mode:1});var oG=function(){return _.J.apply(this,arguments)||this};
_.u(oG,_.J);
oG.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"}}}};
_.Nh.Object.defineProperties(oG.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(c=_.D((G=this.data)==null?void 0:G.offersContainerRenderer,zYz))==null?void 0:c.offers;return I!==void 0&&(I==null?void 0:I.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((I=(G=this.data)==null?void 0:(c=G.variants)==null?void 0:c.map(function(R){var Z,K;R=(K=(Z=_.D(R,MT5))==null?void 0:Z.variantOptionRenderers)==null?void 0:K.find(function(a){var O;return((O=_.D(a,VTR))==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var m;return(m=_.D(R,VTR))==null?void 0:m.name}).filter(function(R){return typeof R==="string"}))!=null?I:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var G,c,I,R=(c=_.D((G=this.data)==null?void 0:G.shoppingFlaggingRenderer,JKx))==null?void 0:(I=c.reportButton)==null?void 0:I.buttonRenderer;if(R)return{text:R.text,command:R.command,icon:{iconType:"FLAG"},accessibilityData:R.accessibilityData,trackingParams:R.trackingParams,loggingDirectives:R.loggingDirectives}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],oG.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oG.prototype,"data",void 0);_.r([_.nH("#image-carousel-renderer"),_.h("design:type",Object)],oG.prototype,"imageCarouselRenderer",void 0);
_.r([_.nH("#hero-offer-renderer"),_.h("design:type",Object)],oG.prototype,"productDetailsHeroOfferRenderer",void 0);_.r([_.nH("#variants"),_.h("design:type",Object)],oG.prototype,"productDetailsVariantRenderer",void 0);_.r([_.nH("#offers"),_.h("design:type",Object)],oG.prototype,"productDetailsOffersContainerRenderer",void 0);_.r([_.nH("#description-renderer"),_.h("design:type",Object)],oG.prototype,"productDetailsDescriptionRenderer",void 0);
_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oG.prototype,"showPurchaseData",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oG.prototype,"showHeroOfferRenderer",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oG.prototype,"showBrandText",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oG.prototype,"showOffers",null);
_.r([_.A("showOffers","showPurchaseData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oG.prototype,"showBuySeparator",null);_.r([_.A("showOffers","showPurchaseData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],oG.prototype,"showBuyCard",null);_.r([_.A("data"),_.h("design:type",String),_.h("design:paramtypes",[])],oG.prototype,"selectedVariantsText",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],oG.prototype,"shoppingReportingButtonData",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],oG);
_.B(oG,"ytd-product-details-renderer",function(){if(NNT!==void 0)return NNT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return NNT=G},{mode:1});var wXf;var Fuf;var ns6;var Ub=function(){return _.J.apply(this,arguments)||this};
_.u(Ub,_.J);Ub.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Nh.Object.defineProperties(Ub.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ub.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ub.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],Ub.prototype,"formattedAmount",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ub.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data.style"),_.h("design:type",String),_.h("design:paramtypes",[])],Ub.prototype,"vcBalanceWidgetStyle",null);_.r([_.Em({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Ub);
_.B(Ub,"yt-vc-balance-renderer",function(){if(ns6===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Fuf===void 0&&(Fuf=document.createElement("template"));var R=Fuf;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ns6=G}G=ns6;return G},{mode:2});_.Su("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var uq=function(){return _.J.apply(this,arguments)||this};
_.u(uq,_.J);_.Nh.Object.defineProperties(uq.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:""}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],uq.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uq.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.vcBalanceEntityKey"],selector:function(G,c){return _.a6(G.entities,"vcBalanceEntity",c)}}),
_.h("design:type",Object)],uq.prototype,"vcBalanceEntity",void 0);_.r([_.A("vcBalanceEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],uq.prototype,"formattedAmount",null);_.r([_.A("vcBalanceEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],uq.prototype,"vcBalanceAriaLabel",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],uq);
_.B(uq,"ytd-vc-balance-renderer",function(){if(wXf!==void 0)return wXf;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return wXf=G},{mode:1});var vsx;var bq=function(){var G=_.J.apply(this,arguments)||this;G.rotation=0;G.isReloading=!1;return G};
_.u(bq,_.J);bq.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
bq.prototype.reset=function(){this.hostElement.style.opacity=""};
bq.prototype.close=function(){var G=this;return _.T(function(c){if(c.nextAddress==1)return c.yield(G.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.hostElement.style.opacity="0";_.Vp(c)})};
bq.prototype.rotationChanged=bq.prototype.rotationChanged;_.r([_.E(),_.h("design:type",Object)],bq.prototype,"rotation",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],bq.prototype,"isReloading",void 0);_.r([_.nH("#icon"),_.h("design:type",HTMLElement)],bq.prototype,"icon",void 0);_.r([_.wD("rotation"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bq.prototype,"rotationChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-refresh"})],bq);
_.B(bq,"ytd-refresh",function(){if(vsx!==void 0)return vsx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return vsx=G},{mode:1});var D8N;var kA=function(){var G=_.J.apply(this,arguments)||this;G.useRaf=!_.v("web_use_raf_app_header_layout_killswitch");return G};
_.u(kA,_.J);kA.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"}}}};
kA.prototype.dataChanged=function(){if(this.data){var G=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var c=_.ZX(this.data.banner.thumbnails,this.hostElement.clientWidth);c&&(c.indexOf("//")===0&&(c="https:"+c),this.hasBannerArt=!0,_.eD(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+c+")"}))}this.hasBannerArt!==G&&_.Q1(this.hostElement).querySelector("#header").fire("iron-resize")}};
kA.prototype.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
kA.prototype.dataChanged=kA.prototype.dataChanged;_.r([_.L(fLf),_.h("design:type",Object)],kA.prototype,"ytdTabbedHeaderBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Dg),_.h("design:type",Object)],kA.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],kA.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],kA.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kA.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],kA.prototype,"selected",void 0);_.r([_.E(),_.h("design:type",Boolean)],kA.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],kA.prototype,"hasBannerArt",void 0);_.r([_.E(),_.h("design:type",Object)],kA.prototype,"useRaf",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kA.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],kA);
_.B(kA,"ytd-interactive-tabbed-header-renderer",function(){if(D8N!==void 0)return D8N;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return D8N=G},{mode:1});var osz;var sb=function(){return _.J.apply(this,arguments)||this};
_.u(sb,_.J);sb.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sb.prototype.computeActionsAlignment=function(G){return(G==null?void 0:G.actionsAlignment)||""};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sb.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.h("design:type",String)],sb.prototype,"actionsAlignment",void 0);
_.r([_.Jc({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],sb);
_.B(sb,"ytd-page-footer-renderer",function(){if(osz!==void 0)return osz;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return osz=G},{mode:1});var U8y;var uqG;var Lc=function(){var G=_.J.apply(this,arguments)||this;G.isEditing=!1;G.useSlot=!1;G.isMultiline=!1;return G};
_.u(Lc,_.J);_.P=Lc.prototype;_.P.onKeydown=function(G){if(G.keyCode===13&&!this.isMultiline)this.onSave();else if(G.keyCode===27)this.onCancel()};
_.P.computeComponentStyle=function(G){return(G==null?0:G.style)?G.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.P.computeisMultiline=function(G){if(this.multilineOverride!==void 0)return this.multilineOverride;var c,I;return!!(G==null?0:(c=G.formField)==null?0:(I=c.textInputFormFieldRenderer)==null?0:I.isMultiline)};
_.P.computeTextDisplayed=function(G,c){if(G)return G;if(c)return c};
_.P.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.P.onSave=function(){if(this.textForm.validate()){this.textForm.save();var G=this.textForm.value;if(G)this.set("data.textDisplayed",_.Cp(G));else{var c;((c=this.data)==null?0:c.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.AG("inline-form-changed",this.data));this.isEditing=!1}};
_.P.onCancel=function(){var G=_.HY(this.data.textDisplayed);G===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(G);this.isEditing=!1};
Lc.prototype.onKeydown=Lc.prototype.onKeydown;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],Lc.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Lc.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Lc.prototype,"isEditing",void 0);_.r([_.E(),_.h("design:type",Object)],Lc.prototype,"useSlot",void 0);_.r([_.E(),_.h("design:type",Boolean)],Lc.prototype,"multilineOverride",void 0);_.r([_.E(),_.h("design:type",Boolean)],Lc.prototype,"enableOverlayTheme",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.h("design:type",String)],Lc.prototype,"componentStyle",void 0);
_.r([_.E({computed:"computeisMultiline(data)"}),_.h("design:type",Object)],Lc.prototype,"isMultiline",void 0);_.r([_.nH("#text-form"),_.h("design:type",Object)],Lc.prototype,"textForm",void 0);_.r([_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],Lc.prototype,"onKeydown",null);_.r([_.Jc({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Lc);
_.B(Lc,"ytd-inline-form-renderer",function(){if(uqG!==void 0)return uqG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return uqG=G},{mode:1});var bto;var AP=function(){var G=_.J.apply(this,arguments)||this;G.previousSelectValue=void 0;G.selectedItemMessage=void 0;return G};
_.u(AP,_.J);AP.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
AP.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var G,c,I,R,Z=(G=this.data)==null?void 0:(c=G.dropdown)==null?void 0:(I=c.dropdownRenderer)==null?void 0:(R=I.entries)==null?void 0:R.map(function(a){return a.privacyDropdownItemRenderer});
G=_.Q(Z!=null?Z:[]);for(c=G.next();!c.done;c=G.next())if((c=c.value)&&c.int32Value===this.selectedValue){this.selectedItemMessage=c.itemMessage;break}}else this.selectedItemMessage=void 0;var K;(K=this.onValueChanged)==null||K.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var m;(m=this.data)!=null&&m.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
AP.prototype.onValueChangedForSelectedValue=function(G){this.selectedValue=G.detail.value};
AP.prototype.selectedValueChanged=AP.prototype.selectedValueChanged;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],AP.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],AP.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],AP.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],AP.prototype,"theme",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Number)],AP.prototype,"selectedValue",void 0);_.r([_.E(),_.h("design:type",Function)],AP.prototype,"onValueChanged",void 0);
_.r([_.uO("selectedValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AP.prototype,"selectedValueChanged",null);_.r([_.Jc({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],AP);
_.B(AP,"ytd-dropdown-form-field-renderer",function(){if(bto!==void 0)return bto;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return bto=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var ky_;var $A=function(){return _.J.apply(this,arguments)||this};
_.u($A,_.J);_.Nh.Object.defineProperties($A.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var G=[],c=_.Q(this.data||[]),I=c.next();!I.done;I=c.next())(I=_.D(I.value,Wrx))&&G.push(I);return G}}});
_.r([_.E(),_.h("design:type",Array)],$A.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],$A.prototype,"byline",null);_.r([_.Jc({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],$A);
_.B($A,"ytd-playlist-byline-renderer",function(){if(ky_!==void 0)return ky_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ky_=G},{mode:1});var sW6;var Sl=function(){var G=_.J.apply(this,arguments)||this;G.rtlBullet=_.v("web_playlist_stats_rtl_bullet_icon_killswitch");G.modern=_.v("web_modern_buttons");G.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return G};
_.u(Sl,_.J);_.P=Sl.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.P.attached=function(){};
_.P.computeIsCustomThumbnail=function(G){return G?!!G.playlistCustomThumbnailRenderer:!1};
_.P.onYtNavigate=function(G,c){if(c&&c.actions&&c.actions.indexOf("shuffle")>-1){G=_.wH().resolve(_.u1);var I=c.tempData||{};I.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);c.tempData=I;G.isShuffleNextPlaylist=!0}};
_.P.onUpdatePlaylistAction=function(G){var c;G=(c=_.D(G,_.GWV))==null?void 0:c.updatedRenderer;if(c=_.D(G,SeJ))this.data=c};
_.P.computeStyleType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(G){return G==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.P.computeHideThumbnailAria=function(G){if(G==null?0:G.thumbnailOverlays)for(var c=0;c<G.thumbnailOverlays.length;c++){var I=void 0;if((I=G.thumbnailOverlays[c])==null?0:I.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Sl.prototype.onYtNavigate=Sl.prototype.onYtNavigate;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Sl.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Sl.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Sl.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Sl.prototype,"rtlBullet",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.h("design:type",String)],Sl.prototype,"styleType",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],Sl.prototype,"thumbnailWidth",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Sl.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.h("design:type",Boolean)],Sl.prototype,"isCustomThumbnail",void 0);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],Sl.prototype,"onYtNavigate",null);_.r([_.Jc({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Sl);
_.B(Sl,"ytd-playlist-sidebar-primary-info-renderer",function(){if(sW6!==void 0)return sW6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return sW6=G},{mode:1});var LuJ;var pc=function(){return _.J.apply(this,arguments)||this};
_.u(pc,_.J);pc.prototype.computeOwnerVisibility=function(G){return!(!G.videoOwner&&!G.button)};
pc.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pc.prototype,"data",void 0);_.r([_.Jc({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],pc);
_.B(pc,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(LuJ!==void 0)return LuJ;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return LuJ=G},{mode:1});var Ayy;var MA=function(){var G=_.J.apply(this,arguments)||this;G.expanded=!1;G.isCompact=!1;return G};
_.u(MA,_.J);_.P=MA.prototype;_.P.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.P.dataChanged=function(){this.data&&_.O9(_.Q1(this.text),_.K3i(_.mSk,_.HY(this.data.text||null)))};
_.P.computeAutoScrollEnabled=function(G,c){return G&&!c};
_.P.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.P.toggleOnTap=function(){this.expanded=!this.expanded};
MA.prototype.expandedChanged=MA.prototype.expandedChanged;MA.prototype.dataChanged=MA.prototype.dataChanged;_.r([_.L(_.USx),_.h("design:type",Object)],MA.prototype,"ytdAutoScrollBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],MA.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],MA.prototype,"expanded",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],MA.prototype,"isCompact",void 0);_.r([_.E({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.h("design:type",Boolean)],MA.prototype,"autoScrollEnabled",void 0);_.r([_.nH("#text"),_.h("design:type",Object)],MA.prototype,"text",void 0);_.r([_.nH("#expander-icon"),_.h("design:type",Object)],MA.prototype,"expanderIcon",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MA.prototype,"dataChanged",null);_.r([_.wD("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MA.prototype,"expandedChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],MA);
_.B(MA,"ytd-channel-legal-info-renderer",function(){if(Ayy!==void 0)return Ayy;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ayy=G},{mode:1});var $85;var SZT=_.mJ("DOWNLOAD",{},"Download"),pXS=_.mJ("DOWNLOADING",{},"Downloading"),MET=_.mJ("DOWNLOADED",{},"Downloaded"),Vq=function(){var G=_.J.apply(this,arguments)||this;G.downloadProgress=0;G.isDownloadComplete=!1;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.u(Vq,_.J);_.P=Vq.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var G;(G=this.data)!=null&&G.tooltip||(G=_.JX(_.y4().getState(),this.playlistId),this.updateButtonState(G))};
_.P.computePlaylistId=function(G){return G};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(G){if(this.data&&(this.data.tooltip!==pXS||!_.vY(G))){this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=SZT;var c="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":G=MET;c="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":G=pXS;c="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";
break;default:G=SZT,c="OFFLINE_DOWNLOAD",I="ACTION_ADD"}var R=Object.assign({},this.data);R.tooltip=G;R.accessibilityData={accessibilityData:{label:G}};R.icon={iconType:c};R.size="SIZE_DEFAULT";_.D(R.command,_.UN)&&(_.D(R.command,_.UN).action=I);this.set("data",R)}};
_.P.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var G="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?G="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?G="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?G="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?G="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?G="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(G="OFFLINE_PIN",this.isDownloadComplete=!0);var c;G!==((c=this.data.icon)==null?void 0:c.iconType)&&(c=Object.assign({},this.data),c.tooltip=pXS,c.accessibilityData={accessibilityData:{label:pXS}},c.icon={iconType:G},_.D(c.command,_.UN)&&(_.D(c.command,_.UN).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",c))}};
Vq.prototype.updateProgress=Vq.prototype.updateProgress;Vq.prototype.onTransferStateChanged=Vq.prototype.onTransferStateChanged;Vq.prototype.dataChanged=Vq.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Vq.prototype,"ytdReduxBehavior",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Vq.prototype,"forceIconButton",void 0);
_.r([_.E({value:!0}),_.h("design:type",Boolean)],Vq.prototype,"forceIconOnly",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Vq.prototype,"overrides",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Vq.prototype,"buttonTooltipPosition",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Vq.prototype,"styleActionButton",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Vq.prototype,"disableTextTransform",void 0);
_.r([_.E({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.h("design:type",String)],Vq.prototype,"playlistId",void 0);_.r([_.E(),_.h("design:type",Object)],Vq.prototype,"data",void 0);_.r([_.E({selector:_.Hxb,selectorArgs:["playlistId"]}),_.h("design:type",Object)],Vq.prototype,"downloadProgress",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Vq.prototype,"isDownloadComplete",void 0);
_.r([_.E({selector:_.JX,selectorArgs:["playlistId"]}),_.h("design:type",String)],Vq.prototype,"transferState",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],Vq.prototype,"showTooltips",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],Vq.prototype,"sendCommandWhenDisabled",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Vq.prototype,"disabled",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Vq.prototype,"dataChanged",null);_.r([_.uO("transferState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Vq.prototype,"onTransferStateChanged",null);_.r([_.uO("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Vq.prototype,"updateProgress",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Vq);
_.B(Vq,"ytd-download-playlist-button-renderer",function(){if($85!==void 0)return $85;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return $85=G},{mode:1});var VEN;_.R1(_.VY2,"thumbnail-overlay-button-view-model",{props:{data:_.bl,lockupExperiments:_.bl}});var zj=function(){var G=_.J.apply(this,arguments)||this;G.isSquare=!1;G.isVertical=!1;return G};
_.u(zj,_.J);zj.prototype.computeIsSquare=function(G){return G!=null&&G.thumbnail?OST(G.thumbnail)==="SQUARE":!1};
zj.prototype.computeIsVertical=function(G){return G!=null&&G.thumbnail?OST(G.thumbnail)==="VERTICAL":!1};
zj.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.h("design:type",Object)],zj.prototype,"isSquare",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.h("design:type",Object)],zj.prototype,"isVertical",void 0);
_.r([_.E(),_.h("design:type",Object)],zj.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],zj);
_.B(zj,"ytd-hero-playlist-thumbnail-renderer",function(){if(VEN!==void 0)return VEN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return VEN=G},{mode:1});var Eb=function(){var G=_.J.apply(this,arguments)||this;G.isDarkTheme=!1;G.isUltraWide=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return G};
_.u(Eb,_.J);_.P=Eb.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.wH();var G;(G=_.wH().resolve(_.qR(_.Oz)))!=null&&(G.headerElement=this.hostElement)};
_.P.detached=function(){var G;(G=_.wH().resolve(_.qR(_.Oz)))!=null&&(G.headerElement=void 0)};
_.P.onUpdateHeader=function(G){(G=G.detail)&&this.set("data",G)};
_.P.computeTextDisplayed=function(G){if(G)return G.textDisplayed?G.textDisplayed:G.placeholder};
_.P.gradientColorToLinearGradientStop=function(G){var c=this.isDarkTheme?G.darkThemeColor:G.lightThemeColor;return c?_.pE(c)+" "+((G==null?void 0:G.startLocation)||0)*100+"%":"transparent"};
_.P.onWindowResize=function(){var G;((G=this.data)==null?0:G.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.P.onIronResize=function(G){this.isUltraWide=!G.detail.value};
_.P.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.P.onUpdatePlaylistName=function(G){var c=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},G.detail.value));_.O$(this,function(){var I;(I=c.editableTitle)==null||I.resize()})};
_.P.onUpdatePlaylistDescription=function(G){var c=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},G.detail.value));_.O$(this,function(){var I;(I=c.editableDescriptionInlineExpander)==null||I.resize()})};
_.P.getCinematicData=function(G){return _.D(G==null?void 0:G.cinematicContainer,_.gz)};
_.Nh.Object.defineProperties(Eb.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.getCinematicData(this.data))==null?void 0:G.config;return(G=this.isDarkTheme?c==null?void 0:c.darkThemeBackgroundColor:c==null?void 0:c.lightThemeBackgroundColor)?"background-color:"+_.Sx(G)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var G;return _.D((G=this.data)==null?void 0:G.descriptionForm,$wx)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var G=this,c,I,R;return"background:linear-gradient(to bottom, "+(((R=(c=this.getCinematicData(this.data))==null?void 0:(I=c.gradientColorConfig)==null?void 0:I.map(function(Z){return G.gradientColorToLinearGradientStop(Z)}))==null?void 0:R.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var G;return _.HY((G=this.data)==null?void 0:G.descriptionTapText)}}});
Eb.prototype.onUpdateHeader=Eb.prototype.onUpdateHeader;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Eb.prototype,"actionHandlerBehavior",void 0);_.r([_.nH("#description-inline-expander"),_.h("design:type",Object)],Eb.prototype,"descriptionInlineExpander",void 0);
_.r([_.nH("#editable-description-inline-expander"),_.h("design:type",Object)],Eb.prototype,"editableDescriptionInlineExpander",void 0);_.r([_.E(),_.h("design:type",Object)],Eb.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Eb.prototype,"isUltraWide",void 0);_.r([_.nH("#editable-title-display"),_.h("design:type",Object)],Eb.prototype,"editableTitle",void 0);_.r([_.A("isUltraWide"),_.h("design:type",Object),_.h("design:paramtypes",[])],Eb.prototype,"maxDescriptionLines",null);
_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Eb.prototype,"noCinematicData",null);_.r([_.qY("yt-new-playlist-header"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Eb.prototype,"onUpdateHeader",null);_.r([_.A("data","isDarkTheme"),_.h("design:type",Object),_.h("design:paramtypes",[])],Eb.prototype,"backgroundStyle",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Eb.prototype,"descriptionFormData",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Eb.prototype,"getDropdownTheme",null);_.r([_.A("data","isDarkTheme"),_.h("design:type",String),_.h("design:paramtypes",[])],Eb.prototype,"gradientStyle",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Eb.prototype,"descriptionTapText",null);
_.r([_.Jc({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Eb);
_.B(Eb,"ytd-playlist-header-renderer",function(){if(U8y!==void 0)return U8y;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return U8y=G},{mode:_.Qc("kevlar_poly_si_batch_j078")?1:2});var zqT;var Esy;var JP=function(){return _.J.apply(this,arguments)||this};
_.u(JP,_.J);JP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],JP.prototype,"data",void 0);_.r([_.Jc({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],JP);
_.B(JP,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Esy!==void 0)return Esy;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Esy=G},{mode:1});var Wo=function(){return _.J.apply(this,arguments)||this};
_.u(Wo,_.J);
Wo.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}}}}};
Wo.prototype.computeUsePremiumShowStyle=function(G){if(!G||!G.items)return!1;for(var c=0;c<G.items.length;c++)if(_.D(G.items[c],SeJ)){var I=void 0;return((I=_.D(G.items[c],SeJ))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Wo.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.h("design:type",Boolean)],Wo.prototype,"usePremiumShowStyle",void 0);
_.r([_.Jc({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Wo);
_.B(Wo,"ytd-playlist-sidebar-renderer",function(){if(zqT!==void 0)return zqT;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return zqT=G},{mode:1});var JyN;var Wuy;var it5=function(G,c,I,R,Z,K,m,a){this.minWidth=G;this.minHeight=c;this.recommendedWidth=I;this.recommendedHeight=R;this.JSC$22831_maxFileSize=Z;this.title=K;this.bannerGalleryTitle=m;this.channelId=a;this.picker_=null;G=_.l1p("yt-banner");c=G.addView;I=(new v9N("youtubebanner")).addUploadMetadata("silo_id","19");I.opts.ytMaxFileSize=this.JSC$22831_maxFileSize;R=this.recommendedHeight;I.opts.ytRecWidth=this.recommendedWidth;I.opts.ytRecHeight=R;c.call(G,I);G.addView(new _.hm);c=G.addView;I=new _.hm;
I.opts.type="ytbanner";c.call(G,I.JSC$10243_setLabel(this.bannerGalleryTitle));c=G.setTitle(this.title).setSize(1E3);c.urlParamMap_.set("thumbs","orig");I=this.minWidth;R=this.minHeight;if(isNaN(I)||isNaN(R))throw Error("gb`"+I+"`"+R);c.urlParamMap_.set("minSize",I+"x"+R);c.urlParamMap_.set("cropMode","ytcb");this.builder_=G};
it5.prototype.open=function(){var G=this;return new _.Lk(function(c,I){_.Cx9(G.builder_,function(R){R.action=="picked"?c(R):R.action=="cancel"&&I(Error("Yo"))});
G.picker_&&G.picker_.dispose();G.picker_=G.builder_.build();G.picker_.setVisible(!0)})};
it5.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var fm5=function(G){this.channelId=G};
fm5.prototype.upload=function(G){var c="";G.viewToken&&(c=G.viewToken[2].type);var I=G.docs[0];G=I.crop;c={channel_id:this.channelId,fife_url:I.thumbnails[0].url,photo_id:I.id,is_gallery_image:c=="ytbanner"};G&&(c.crop_top=G.top,c.crop_right=G.right,c.crop_bottom=G.bottom,c.crop_left=G.left);return _.wOr("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:c})};var iq=function(){var G=_.J.apply(this,arguments)||this;G.ariaLabel=null;return G};
_.u(iq,_.J);_.P=iq.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){this.picker&&this.picker.dispose()};
_.P.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.P.computeAriaLabel=function(G){return G};
_.P.onTap=function(){var G=this,c;if((c=this.data)==null||!c.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new it5(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 I;(I=this.picker)==null||I.open().then(function(R){G.handleBannerPicked(R)},function(){})}};
_.P.handleBannerPicked=function(G){var c=this;this.uploader||(this.uploader=new fm5(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(G).then(function(I){c.handleBannerUploadSucceeded(I)},function(I){c.handleBannerUploadFailed(I)})};
_.P.handleBannerUploadSucceeded=function(G){G&&G.errors?this.handleBannerUploadFailed(G):(_.Xl(this.hostElement,"yt-banner-updated",G),this.message=null)};
_.P.handleBannerUploadFailed=function(G){this.message=G&&G.errors&&G.errors.length?G.errors[0]:null};
iq.prototype.dataChanged=iq.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],iq.prototype,"componentBehavior",void 0);_.r([_.L(_.Pp),_.h("design:type",Object)],iq.prototype,"ironButtonState",void 0);_.r([_.E(),_.h("design:type",Object)],iq.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.h("design:type",Object)],iq.prototype,"ariaLabel",void 0);
_.r([_.E(),_.h("design:type",Object)],iq.prototype,"message",void 0);_.r([_.E(),_.h("design:type",Object)],iq.prototype,"picker",void 0);_.r([_.E(),_.h("design:type",Object)],iq.prototype,"uploader",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iq.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],iq);
_.B(iq,"ytd-channel-banner-editor-renderer",function(){if(Wuy!==void 0)return Wuy;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Wuy=G},{mode:1});var BN6;var ryR=_.I3(["#"]),fc=function(){return _.J.apply(this,arguments)||this};
_.u(fc,_.J);fc.prototype.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G,!0)||_.q9i(ryR)};
fc.prototype.dataChanged=function(){var G=this.data;G&&G.targetId&&_.yV(_.gg(),G.targetId,this.moreIcon)};
fc.prototype.dataChanged=fc.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],fc.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],fc.prototype,"data",void 0);_.r([_.nH("#more-icon"),_.h("design:type",Object)],fc.prototype,"moreIcon",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fc.prototype,"dataChanged",null);
_.r([_.Jc({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],fc);
_.B(fc,"ytd-channel-tagline-renderer",function(){if(BN6!==void 0)return BN6;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return BN6=G},{mode:1});var jWo;var Bo=function(){return _.J.apply(this,arguments)||this};
_.u(Bo,_.J);_.P=Bo.prototype;_.P.ready=function(){var G=this;_.Q1(this.hostElement).querySelector("#form").addEventListener("submit",function(c){G.onSubmit(c)})};
_.P.onDataChanged=function(){var G;((G=this.data)==null?0:G.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.P.onIconButtonKeydown=function(G){G.keyCode===13&&this.iconButton.click()};
_.P.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.P.openOnClickHandler=function(){this.input.focus()};
_.P.onSubmit=function(G){G.preventDefault();return!1};
_.P.submitOnEnterKeyUp=function(G){var c;if(G.keyCode===13&&((c=this.data)==null?0:c.expandedText)){G=this.data.endpoint;c=_.rx.unsafeClone(G);var I;((I=_.D(c==null?void 0:c.commandMetadata,_.Pd))==null?0:I.url)?(_.D(c.commandMetadata,_.Pd).url=_.gj(_.D(c.commandMetadata,_.Pd).url,"query",this.data.expandedText),_.D(c,_.qD)&&(_.D(c,_.qD).query=this.data.expandedText),_.Xl(this.hostElement,"yt-navigate",{endpoint:c,tempData:{disableCache:!0}})):(I=new _.iW("Error: Trying to navigate to an endpoint without url",
G),_.hg(I))}};
_.P.updateDataExpandedTextFromBinding=function(G){this.set("data.expandedText",G.detail.value)};
_.Nh.Object.defineProperties(Bo.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Bo.prototype.onDataChanged=Bo.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.oWF),_.h("design:type",Object)],Bo.prototype,"ytdExpandableInputBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Bo.prototype,"data",void 0);_.r([_.nH("#input"),_.h("design:type",Object)],Bo.prototype,"input",void 0);_.r([_.nH("#icon-button"),_.h("design:type",HTMLElement)],Bo.prototype,"iconButton",void 0);
_.r([_.E(),_.h("design:type",String),_.h("design:paramtypes",[])],Bo.prototype,"searchIcon",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bo.prototype,"onDataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Bo);
var eYN=_.PI()(Bo,"ytd-expandable-tab-renderer",function(){if(jWo===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);jWo=G}G=jWo;return G},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var x8x;var r3=function(){var G=_.J.apply(this,arguments)||this;G.avatarSize=80;G.ariaLabel=_.mJ("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return G};
_.u(r3,_.J);r3.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
r3.prototype.computeHref=function(G){var c;return((c=_.D(G,_.ID))==null?0:c.url)?this.componentBehavior.computeHref_(G):null};
r3.prototype.onTap=function(){var G,c;(G=this.data)==null||!G.editAvatarServiceEndpoint||((c=_.D(this.data.editAvatarServiceEndpoint,_.ID))==null?0:c.url)||_.wH().resolve(_.n4).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.r([_.L(_.Pp),_.h("design:type",Object)],r3.prototype,"ironButtonState",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],r3.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],r3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],r3.prototype,"avatarSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],r3.prototype,"ariaLabel",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],r3);
_.B(r3,"ytd-channel-avatar-editor",function(){if(x8x!==void 0)return x8x;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return x8x=G},{mode:1});var tE5=_.W(function(G){var c=G.data;var I=G.noPadding;var R=G.enableBanner;var Z=G.cinematicContainerTopbarOffset;var K=G.allowCinematicContainerOverflow;var m=G.displayAsSidebar;G=G.className;_.xs(function(){c().tagManagerId&&(_.Zs(c().tagManagerId,_.H1("GL")),n9T(c().tagManagerId))},"vUc8md");
var a=_.um(lLx,function(){return c().pageHeaderEntityKey});
return _.e("yt-page-header-renderer",{class:_.O3("pageHeaderRendererHost",G)},_.e(_.sN,{data:function(){var O;return((O=a())==null?0:O.header)?a().header:(m==null?0:m())&&c().sidebarContent?c().sidebarContent:c().content}},{pageHeaderViewModel:function(O){return _.e(_.Fgr,{data:O.data,
noPadding:I,enableBanner:R,cinematicContainerTopbarOffset:Z,allowCinematicContainerOverflow:K,displayAsSidebar:function(){return(m==null?void 0:m())&&c().enableSidebarView}})}}))},"Dn");
tE5.idomCompat=!0;_.R1(tE5,"yt-page-header-renderer",{props:{data:_.bl,noPadding:_.bl,enableBanner:_.bl,cinematicContainerTopbarOffset:_.bl,allowCinematicContainerOverflow:_.bl,displayAsSidebar:_.bl,className:_.bl}});_.R1(_.Sa,"yt-image-banner-view-model",{props:{data:_.bl,isPositionRelative:_.bl}});_.R1(_.JU0,"yt-tab-group-shape",{props:{shape:_.bl}});var hqx=_.Ce.persistentPanelVisibleSelector,jl=function(){var G=_.J.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(c){return NF_(c,function(){return void G.onSearchNavigate()})};
G.isRichGrid=!1;G.isConstrainedList=!1;G.richGridMiniMode=!1;G.richGridStyle="RICH_GRID_STYLE_UNKNOWN";G.isRichGridShorts=!1;G.responsiveSizing="COMPACT";G.disableGridStateAware=!1;G.useRaf=!_.v("web_use_raf_app_header_layout_killswitch");G.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return G};
_.u(jl,_.J);_.P=jl.prototype;_.P.computeHeaderDisabled=function(G,c){return c||!G||this.tabsHidden};
_.P.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.P.computeIsRichGridShorts=function(G){return G==="RICH_GRID_STYLE_SHORTS_GRID"||G==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.P.computeImageBannerViewModel=function(){var G,c;return _.D((c=_.D((G=this.data)==null?void 0:G.content,_.pTT))==null?void 0:c.banner,_.bIi)};
_.P.computeHasCinematicContainer=function(){var G,c;return!((c=_.D((G=this.data)==null?void 0:G.content,_.pTT))==null||!c.background)};
_.P.handleHeaderResize=function(){var G=_.Q1(this.hostElement).querySelector("#header");G&&_.Xl(G,"iron-resize")};
_.P.handleInsertTabCommand=function(G){var c=_.D(G,iSz);c&&(c.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===c.tabIdentifier})||this.splice("tabs",c.tabIndex||-1,0,c.tab))};
_.P.handleRefreshChannelTabAction=function(G){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===G&&_.Xl(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.P.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.P.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.P.observerRichGridSlimItemsPerRow=function(){_.eD(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.P.updateCssVars=function(){this.richGridItemsPerRow&&_.eD(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.DH("rich_grid_max_item_width",500))+16)-16+"px"})};
_.P.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.eD(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.P.onDataChanged=function(){this.handleHeaderResize()};
_.P.onWindowResize=function(){this.handleHeaderResize()};
_.P.onFocusedChanged=function(G){(G=_.HH(G))&&G.is==="tp-yt-paper-tab"&&G.hasRipple()&&(G.getRipple().holdDown=!G.pointerDown&&G.focused)};
_.P.updateSelectedFromBinding=function(G){this.ytdTabbedHeaderBehavior.selected=G.detail.value};
_.P.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Nh.Object.defineProperties(jl.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:wDN(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.imageBannerViewModel)==null?void 0:G.style)==="IMAGE_BANNER_STYLE_INSET"}}});
jl.prototype.onDataChanged=jl.prototype.onDataChanged;jl.prototype.updateCssVarsForResponsiveGrid=jl.prototype.updateCssVarsForResponsiveGrid;jl.prototype.updateCssVars=jl.prototype.updateCssVars;jl.prototype.observerRichGridSlimItemsPerRow=jl.prototype.observerRichGridSlimItemsPerRow;jl.prototype.observerRichGridItemsPerRow=jl.prototype.observerRichGridItemsPerRow;jl.prototype.persistentPanelVisibleChanged=jl.prototype.persistentPanelVisibleChanged;
_.r([_.L(_.Dg),_.h("design:type",Object)],jl.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.L(fLf),_.h("design:type",Object)],jl.prototype,"ytdTabbedHeaderBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],jl.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],jl.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],jl.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],jl.prototype,"ytdReduxBehavior",void 0);_.r([_.nH("#tabs"),_.h("design:type",Object)],jl.prototype,"tabsElement",void 0);_.r([_.E(),_.h("design:type",Array)],jl.prototype,"tabs",void 0);_.r([_.E(),_.h("design:type",Object)],jl.prototype,"expandableCustomTabRenderable",void 0);
_.r([_.A("tabs.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],jl.prototype,"tabGroupShape",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jl.prototype,"isRichGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jl.prototype,"isConstrainedList",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Object)],jl.prototype,"richGridMiniMode",void 0);_.r([_.E({selector:function(G){return G.ui.richGridStyle}}),
_.h("design:type",Object)],jl.prototype,"richGridStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.h("design:type",Object)],jl.prototype,"isRichGridShorts",void 0);_.r([_.E({selector:_.SC}),_.h("design:type",Number)],jl.prototype,"richGridItemsPerRow",void 0);_.r([_.E({selector:function(G){return G.ui.richGridContainerWidth}}),
_.h("design:type",Number)],jl.prototype,"richGridContainerWidth",void 0);_.r([_.E({selector:_.z$g}),_.h("design:type",Number)],jl.prototype,"richGridSlimItemsPerRow",void 0);_.r([_.E(),_.h("design:type",Object)],jl.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jl.prototype,"responsiveSizing",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],jl.prototype,"disableGridStateAware",void 0);
_.r([_.E({computed:"computeImageBannerViewModel(data)"}),_.h("design:type",Object)],jl.prototype,"imageBannerViewModel",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.h("design:type",Boolean)],jl.prototype,"hasCinematicContainer",void 0);_.r([_.E({selector:_.PO1,reflectToAttribute:!0}),_.h("design:type",Boolean)],jl.prototype,"guideIsVisibleButNotPersistent",void 0);
_.r([_.E({selector:hqx}),_.h("design:type",Boolean)],jl.prototype,"persistentPanelVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("imageBannerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],jl.prototype,"hasBanner",null);_.r([_.E({reflectToAttribute:!0}),_.A("imageBannerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],jl.prototype,"hasInsetBanner",null);_.r([_.E(),_.h("design:type",Object)],jl.prototype,"useRaf",void 0);
_.r([_.E({computed:"computeTabsHidden(tabs)",value:!0}),_.h("design:type",Boolean)],jl.prototype,"tabsHidden",void 0);_.r([_.wD("persistentPanelVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jl.prototype,"persistentPanelVisibleChanged",null);_.r([_.wD("richGridItemsPerRow","isRichGrid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jl.prototype,"observerRichGridItemsPerRow",null);
_.r([_.wD("richGridSlimItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jl.prototype,"observerRichGridSlimItemsPerRow",null);_.r([_.wD("richGridItemsPerRow","richGridMiniMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jl.prototype,"updateCssVars",null);
_.r([_.wD("richGridContainerWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jl.prototype,"updateCssVarsForResponsiveGrid",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jl.prototype,"onDataChanged",null);_.r([_.Jc({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],jl);
_.B(jl,"ytd-tabbed-page-header",function(){if(JyN!==void 0)return JyN;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return JyN=G},{mode:1});var d8z;var xA=function(){return _.J.apply(this,arguments)||this};
_.u(xA,_.J);xA.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Nh.Object.defineProperties(xA.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var G,c;return this.componentBehavior.computeIcon_(((c=_.D((G=this.data)==null?void 0:G.badge,_.JMK))==null?void 0:c.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=_.D((G=this.data)==null?void 0:G.badge,_.JMK))==null?void 0:c.label}}});
xA.prototype.observerRichGridItemsPerRow=xA.prototype.observerRichGridItemsPerRow;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],xA.prototype,"componentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],xA.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.$V}),_.h("design:type",Boolean)],xA.prototype,"richGridMiniMode",void 0);
_.r([_.E({selector:_.SC}),_.h("design:type",Number)],xA.prototype,"richGridItemsPerRow",void 0);_.r([_.E(),_.h("design:type",Object)],xA.prototype,"data",void 0);_.r([_.wD("richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xA.prototype,"observerRichGridItemsPerRow",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xA.prototype,"badgeIconName",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xA.prototype,"badgeLabel",null);_.r([_.Jc({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],xA);
_.B(xA,"ytd-member-hub-profile-renderer",function(){if(d8z!==void 0)return d8z;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return d8z=G},{mode:1});var Ce_;var tP=function(){return _.J.apply(this,arguments)||this};
_.u(tP,_.J);tP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],tP.prototype,"data",void 0);_.r([_.Jc({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],tP);
_.B(tP,"ytd-settings-sidebar-renderer",function(){if(Ce_!==void 0)return Ce_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ce_=G},{mode:1});var Ht_;var hP=function(){var G=_.J.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(c){return NF_(c,function(){return void G.onSearchNavigate()})};
return G};
_.u(hP,_.J);hP.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
hP.prototype.onSearchNavigate=function(){this.selected=void 0};
hP.prototype.onTabsChange=function(){var G,c=(G=this.tabs)==null?void 0:G.findIndex(function(I){var R;return I==null?void 0:(R=I.tabRenderer)==null?void 0:R.selected});
c!==void 0&&(this.selected=c)};
hP.prototype.onTabsActive=function(G){if(this.tabs!==void 0){var c,I;(G=(c=this.tabs[G.detail.selected])==null?void 0:(I=c.tabRenderer)==null?void 0:I.endpoint)&&_.Xl(this.hostElement,"yt-navigate",{endpoint:G})}};
_.Nh.Object.defineProperties(hP.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:wDN(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
hP.prototype.onTabsChange=hP.prototype.onTabsChange;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Dg),_.h("design:type",Object)],hP.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],hP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],hP.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Array)],hP.prototype,"tabs",void 0);_.r([_.E(),_.h("design:type",Number)],hP.prototype,"selected",void 0);_.r([_.A("tabs.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],hP.prototype,"tabGroupShape",null);_.r([_.E(),_.h("design:type",Object)],hP.prototype,"expandableCustomTabRenderable",void 0);
_.r([_.A("tabs"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],hP.prototype,"tabsEnabled",null);_.r([_.uO("tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hP.prototype,"onTabsChange",null);_.r([_.Jc({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],hP);
_.B(hP,"ytd-topic-channel-details-renderer",function(){if(Ht_!==void 0)return Ht_;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Ht_=G},{mode:1});var XXx;var d3=function(){var G=_.J.apply(this,arguments)||this;G.disableGridStateAware=!1;return G};
_.u(d3,_.J);d3.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]]"}}}}}};
d3.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
d3.prototype.updateCssVars=function(){_.eD(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.DH("rich_grid_max_item_width",500))+16)-16+"px"})};
d3.prototype.updateCssVars=d3.prototype.updateCssVars;d3.prototype.activeChanged=d3.prototype.activeChanged;_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],d3.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],d3.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],d3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Array)],d3.prototype,"tabs",void 0);_.r([_.E(),_.h("design:type",Boolean)],d3.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],d3.prototype,"disableGridStateAware",void 0);
_.r([_.E({selector:_.SC}),_.h("design:type",Number)],d3.prototype,"richGridItemsPerRow",void 0);_.r([_.E({selector:_.$V}),_.h("design:type",Boolean)],d3.prototype,"richGridMiniMode",void 0);_.r([_.nH("ytd-carousel-item-renderer"),_.h("design:type",Object)],d3.prototype,"carousel",void 0);_.r([_.wD("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d3.prototype,"activeChanged",null);
_.r([_.wD("richGridItemsPerRow","richGridMiniMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d3.prototype,"updateCssVars",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],d3);
_.B(d3,"ytd-carousel-header-renderer",function(){if(XXx!==void 0)return XXx;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return XXx=G},{mode:1});var yy5;var gso=_.I3(["https://www.google-analytics.com/analytics.js"]),Cc=function(){var G=_.J.apply(this,arguments)||this;G.scriptAnalyticsAdded=!1;return G};
_.u(Cc,_.J);Cc.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var G,c=(G=this.data)==null?void 0:G.tagManagerId;c&&(_.Zs(c,_.H1("GL")),n9T(c))};
Cc.prototype.sendGoogleAnalyticsPageview=function(G){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var I=_.Hy.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(I)};
var c=window.ga;c("set","page",window.location.pathname);c.l=+new Date;c("set","forceSSL",!0);c("create",G,"'auto'");c("send","pageview")};
Cc.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var G=_.$9("SCRIPT");G.name="ga-analytics";var c=_.D3(gso);_.Ti(G,c);G.async=!0;_.Q1(this.hostElement).appendChild(G)};
Cc.prototype.dataChanged=Cc.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],Cc.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cc.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Cc);
_.B(Cc,"ytd-channel-metadata-renderer",function(){if(yy5!==void 0)return yy5;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return yy5=G},{mode:1});var YZJ;var G2J;var Ho=function(){var G=_.J.apply(this,arguments)||this;G.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);G.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return G};
_.u(Ho,_.J);_.P=Ho.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.P.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.P.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.computeAlertStyle_=function(G){return G};
_.P.observerElementsPerRow=function(){this.elementsPerRow&&_.eD(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.P.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.P.requestElementsPerRow=function(){_.Xl(this.hostElement,"yt-request-elements-per-row")};
Ho.prototype.onIsVisibleChanged_=Ho.prototype.onIsVisibleChanged_;Ho.prototype.observerElementsPerRow=Ho.prototype.observerElementsPerRow;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Ho.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Ho.prototype,"data",void 0);_.r([_.E({value:6,reflectToAttribute:!0}),_.h("design:type",Number)],Ho.prototype,"elementsPerRow",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ho.prototype,"wrapButtons",void 0);_.r([_.E({value:_.H1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.h("design:type",Boolean)],Ho.prototype,"isMusic",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.h("design:type",String)],Ho.prototype,"alertStyle",void 0);_.r([_.E({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.h("design:type",Function)],Ho.prototype,"dismissBoundButtonTap_",void 0);_.r([_.E({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.h("design:type",Function)],Ho.prototype,"acceptBoundButtonTap_",void 0);_.r([_.wD("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ho.prototype,"observerElementsPerRow",null);_.r([_.wD("data.isVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ho.prototype,"onIsVisibleChanged_",null);_.r([_.Em({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Ho);
_.B(Ho,"yt-alert-with-actions-renderer",function(){if(G2J===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;YZJ===void 0&&(YZJ=document.createElement("template"));var R=YZJ;I.call(c,R.content.cloneNode(!0),G.content.firstChild);G2J=G}G=G2J;return G},{mode:2});var cIx=_.W(function(G){var c={};return _.e(_.ul,{text:G.text,className:_.O3("ytPersonalGreetingViewModelHeadline",(c.ytPersonalGreetingViewModelHeadlineSmall=G.isSmallHeadline,c))})},"Fn");_.R1(_.W(function(G){var c=_.im(function(){var F;return(F=G.data())==null?void 0:F.rendererContext},void 0,void 0,void 0,!0),I=function(){return G.data().canvasPromoData},R=function(){var F;
return(F=G.data().bannerHeight)!=null?F:56},Z=_.Q(_.Ls({throttleMs:100})),K=Z.next().value;
Z=Z.next().value;var m=_.Q(_.Ls({throttleMs:100})),a=m.next().value;m=m.next().value;var O=_.Q(_.Ls({throttleMs:100})),N=O.next().value;O=O.next().value;var q=function(){return a.width()-K.width()>1},w=function(){return R()===48};
return _.e("yt-personal-greeting-view-model",{el:_.YC(c,Z),"aria-hidden":q,class:_.O3(G.className,"ytPersonalGreetingViewModelHost"),style:_.wi({height:(0,_.U8)(function(){return q()?0:R()})})},_.e(_.l,{cond:function(){return G.data().avatar&&!(N.width()+(G.data().avatar?48:0)-K.width()>1)},
then:function(){return _.e(_.sN,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:function(F){return _.e(_.wE,{data:F.data,
className:_.O3("ytPersonalGreetingViewModelAvatar")})}})}}),_.e("h1",null,_.e(cIx,{text:function(){var F;
return(I==null?void 0:(F=I())==null?void 0:F.headline)||(N.width()+(G.data().avatar?48:0)-K.width()>1?G.data().shorterGreeting:G.data().greeting)},
isSmallHeadline:w})),_.e("span",{el:_.YC(O),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.e(cIx,{text:function(){return G.data().greeting},
isSmallHeadline:w})),_.e("span",{el:_.YC(m),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.e(cIx,{text:function(){return G.data().shorterGreeting},
isSmallHeadline:w})))},"En"),"yt-personal-greeting-view-model",{props:{data:_.bl,
className:_.bl}});var Xm=function(){var G=_.J.apply(this,arguments)||this;G.hidden=!1;G.isConstrainedList=!1;G.responsiveSizing="COMPACT";G.attachedPlayers=_.v("kevlar_channel_trailer_multi_attach")?[]:void 0;G.player=null;G.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return G};
_.u(Xm,_.J);_.P=Xm.prototype;
_.P.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.P.created=function(){var G=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){G.disposeMastheadAd()}]};
_.P.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new jnS(this.refresh,this.contents))};
_.P.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.P.activeChanged=function(){var G=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=G)};
_.P.tabsChanged=function(){var G=this,c,I;if(this.pageSubtype==="channels"||_.v("kevlar_tab_gestures_for_tabbed_header_data")&&((c=this.data)==null?0:(I=c.header)==null?0:I.carouselHeaderRenderer))this.tabGestures=new hYy(this.contents,this.contents,this.hostElement,this.header,function(m){G.ytdReduxBehavior.dispatch(m)});
var R,Z,K;c=(R=this.data)==null?void 0:(Z=R.contents)==null?void 0:(K=Z.twoColumnBrowseResultsRenderer)==null?void 0:K.tabs;this.tabGestures&&this.tabGestures.tabsChanged(c)};
_.P.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.P.engagementPanelsChanged=function(){var G=_.wH().resolve(_.Tl);if(G){if(this.engagementPanels)for(var c=_.Q(this.engagementPanels),I=c.next();!I.done;I=c.next()){var R=void 0;(I=(R=I.value.identifier)==null?void 0:R.tag)&&G.panelMap.delete(I)}this.engagementPanels=[];var Z;c=_.Q(((Z=this.data)==null?void 0:Z.panels)||[]);for(Z=c.next();!Z.done;Z=c.next()){Z=_.D(Z.value,_.qqy);var K=I=void 0,m=void 0,a=void 0;if(R=((I=Z)==null?void 0:I.targetId)||((K=Z)==null?void 0:K.panelIdentifier)||((m=Z)==
null?void 0:(a=m.identifier)==null?void 0:a.tag))K=I=void 0,(K=(I=G).registerPanelContent)==null||K.call(I,R,{engagementPanelSectionListRenderer:Z}),this.engagementPanels.push(Z)}}};
_.P.onStampFinished=function(){var G=this;_.O$(this,function(){if(G.tabGestures){var c=G.tabGestures;if(c.scrollPositionNeedsUpdate){var I=_.wH().resolve(_.qR(_.I9)),R;if((R=c.selectedTab)!=null&&R.title&&I&&(R=I.getCurrentPage())){if(c.scrollPositionForTabs.has(c.selectedTab.title)){var Z,K;I=(K=(Z=I.getCurrentPage())==null?void 0:Z.clientHeight)!=null?K:0;Z=c.scrollPositionForTabs.get(c.selectedTab.title);R.setScrollTop(Z);I>Z+100&&(c.scrollPositionNeedsUpdate=!1)}else R.setScrollTop(Math.min(c.lastVisitedTabScrollPosition!==
void 0?c.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,c.tabsStartAtInPx)),c.scrollPositionNeedsUpdate=!1;c.ytdReduxDispatch(Frf(!1))}}}})};
_.P.loadPage_=function(G){this.initCsi();G&&(this.data=G);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.P.getTitle=function(G){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",G))return this.get("microformat.microformatDataRenderer.title",G);if(this.get("header.feedTabbedHeaderRenderer.title",G))return _.HY(this.get("header.feedTabbedHeaderRenderer.title",G));if(this.get("header.interactiveTabbedHeaderRenderer.title",G))return this.get("header.interactiveTabbedHeaderRenderer.title",G);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
G))return _.HY(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",G));var c,I;return(G==null?0:(c=G.header)==null?0:(I=c.pageHeaderRenderer)==null?0:I.pageTitle)?G.header.pageHeaderRenderer.pageTitle:""};
_.P.updateTitle=function(G){_.Xl(this.hostElement,"yt-update-title",this.getTitle(G))};
_.P.initCsi=function(){_.aLo(this.pageSubtype||"browse",["ol","cpt"])};
_.P.getPlayer=function(){if(_.v("kevlar_channel_trailer_multi_attach")){for(var G=_.Q(this.attachedPlayers),c=G.next();!c.done;c=G.next())if(c=c.value,c.isConnected||_.Y9(this.hostElement,c))return c;return null}return this.player};
_.P.getPlayerContainer=function(){return null};
_.P.onPlayerAttached=function(G,c){_.v("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(c):this.player=c};
_.P.onPlayerDetached=function(G,c){_.v("kevlar_channel_trailer_multi_attach")?(G=this.attachedPlayers.indexOf(c),G<0||this.attachedPlayers.splice(G,1)):this.player=null};
_.P.getServiceTrackingParams=function(){var G,c;return((G=this.data)==null?void 0:(c=G.responseContext)==null?void 0:c.serviceTrackingParams)||[]};
_.P.setMastheadAd=function(G){G&&G.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=G&&G.mastheadAd};
_.P.dataChanged=function(){var G=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.GB6();_.O$(this,function(){_.gq(G.hostElement,"ytd-update-grid-state-action")})};
_.P.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.P.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(c){return!!c.alertWithActionsRenderer})}};
_.P.computeGreetingData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(c){return!!c.personalGreetingViewModel})}};
_.P.computeHasMemberHubProfileRenderer=function(G){var c;return!!(G==null?0:(c=G.header)==null?0:c.memberHubProfileRenderer)};
_.P.handleAlertCommand=function(G){this.get("alertCommand.alert.alertWithActionsRenderer",G)&&(G=_.D(G,LrJ),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",G.alert))};
_.P.handleYtPlaylistDeletionRedirect=function(G){G=this.get("playlistDeletionRedirectCommand.redirectEndpoint",G);_.Xl(this.hostElement,"yt-navigate",{endpoint:G})};
_.P.computeFluidWidth=function(G,c,I){if(c==="mini_app"||I)return!0;var R,Z,K;G=G==null?void 0:(R=G.contents)==null?void 0:(Z=R.twoColumnBrowseResultsRenderer)==null?void 0:(K=Z.tabs)==null?void 0:K.find(function(O){var N;return O==null?void 0:(N=O.tabRenderer)==null?void 0:N.selected});
if(!G)return!1;var m,a;return!!((m=G.tabRenderer)==null?0:(a=m.content)==null?0:a.richGridRenderer)&&!["channel","channels","playables"].includes(c)};
_.P.computeHeaderFluidWidth=function(G){return G==="hashtag-landing-page"};
_.P.computeHasSidebar=function(G){var c;return!!(G.sidebar||((c=G.header)==null?0:c.playlistHeaderRenderer))};
_.P.computeHasPageHeaderSidebar=function(G){var c,I;return!!((c=G.header)==null?0:(I=c.pageHeaderRenderer)==null?0:I.enableSidebarView)};
_.P.computeUseUnifiedShowPageLayout=function(G){if(!G||this.pageSubtype!=="show"||!G.sidebar||!G.sidebar.playlistSidebarRenderer)return!1;G=G.sidebar.playlistSidebarRenderer;if(!G.items)return!1;for(var c=0;c<G.items.length;c++)if(_.D(G.items[c],SeJ)){var I=void 0;return((I=_.D(G.items[c],SeJ))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.P.computeIsConstrainedList=function(G){return _.v("web_enable_constrained_list_subscriptions_channels")&&G==="subscriptions-channels"};
_.P.computeResponsiveSizing=function(G){return G==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Nh.Object.defineProperties(Xm.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var G,c;return((G=this.data)==null?0:(c=G.header)==null?0:c.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var G,c;if(!((G=this.data)==null?0:(c=G.sidebar)==null?0:c.playlistSidebarRenderer))return!1;var I;return(I=this.data)!=null&&I.header?!1:!0}}});
_.Nh.Object.defineProperties(Xm,{template:{configurable:!0,enumerable:!0,get:function(){if(dwG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);dwG=G}G=dwG;return G}}});
Xm.prototype.dataChanged=Xm.prototype.dataChanged;Xm.prototype.onPlayerDetached=Xm.prototype.onPlayerDetached;Xm.prototype.onPlayerAttached=Xm.prototype.onPlayerAttached;Xm.prototype.onStampFinished=Xm.prototype.onStampFinished;Xm.prototype.engagementPanelsChanged=Xm.prototype.engagementPanelsChanged;Xm.prototype.scrollAtTopChanged=Xm.prototype.scrollAtTopChanged;Xm.prototype.tabsChanged=Xm.prototype.tabsChanged;Xm.prototype.activeChanged=Xm.prototype.activeChanged;
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Xm.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],Xm.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Xm.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.co.YtPageBehavior),_.h("design:type",Object)],Xm.prototype,"ytPageBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Xm.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Xm.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Xm.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Xm.prototype,"hidden",void 0);
_.r([_.E(),_.h("design:type",Object)],Xm.prototype,"mastheadAdData",void 0);_.r([_.E({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.h("design:type",Object)],Xm.prototype,"alertBannerData",void 0);_.r([_.E({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.h("design:type",Object)],Xm.prototype,"greetingData",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],Xm.prototype,"pageSubtype",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.h("design:type",Boolean)],Xm.prototype,"hasMemberHubProfileRenderer",void 0);_.r([_.E({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Xm.prototype,"hasSidebar",void 0);_.r([_.E({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Xm.prototype,"hasPageHeaderSidebar",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Xm.prototype,"roundedContainer",void 0);_.r([_.E({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Xm.prototype,"useUnifiedShowPageLayout",void 0);_.r([_.E({computed:"computeIsConstrainedList(pageSubtype)"}),_.h("design:type",Object)],Xm.prototype,"isConstrainedList",void 0);
_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Xm.prototype,"usePlaylistHeaderRenderer",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Xm.prototype,"useOldPlaylistSidebarRenderer",null);_.r([_.E({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.h("design:type",Boolean)],Xm.prototype,"fluidWidth",void 0);_.r([_.E({selector:function(G){return G.ui.scrollAtTop}}),
_.h("design:type",Boolean)],Xm.prototype,"scrollAtTop",void 0);_.r([_.E({selector:_.QsW}),_.h("design:type",Boolean)],Xm.prototype,"tabGesturesIsActive",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.h("design:type",Boolean)],Xm.prototype,"disableHeaderFluidWidth",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.h("design:type",String)],Xm.prototype,"responsiveSizing",void 0);
_.r([_.nH("ytd-two-column-browse-results-renderer"),_.h("design:type",HTMLElement)],Xm.prototype,"contents",void 0);_.r([_.nH("#header"),_.h("design:type",HTMLElement)],Xm.prototype,"header",void 0);_.r([_.nH("ytd-refresh"),_.h("design:type",Object)],Xm.prototype,"refresh",void 0);_.r([_.wD("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xm.prototype,"activeChanged",null);
_.r([_.wD("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xm.prototype,"tabsChanged",null);_.r([_.wD("scrollAtTop"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xm.prototype,"scrollAtTopChanged",null);_.r([_.E(),_.h("design:type",Object)],Xm.prototype,"engagementPanels",void 0);
_.r([_.wD("data.panels"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xm.prototype,"engagementPanelsChanged",null);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xm.prototype,"onStampFinished",null);_.r([_.qY("yt-player-attached"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Element]),_.h("design:returntype")],Xm.prototype,"onPlayerAttached",null);
_.r([_.qY("yt-player-detached"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Element]),_.h("design:returntype")],Xm.prototype,"onPlayerDetached",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xm.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-browse"})],Xm);_.F5.registerService(_.lv0,Xm);
_.hK();
}catch(e){_._DumpException(e)}
try{
_.tK("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 vP,kzd,sJj,Lwu,ANu,$Cd,Sn$,pIF,Mk0,Vkd,zGu,ECH,JNH,WwW,fP0,B0$,jJu,xCH,tkW,dCu,CD7,HdH,XIu,Dj,gCd,Yn0,G9d,c0r,IXW,R8u,ZQ1,mx$,TiF,Q1d,id1,OQu,e8d,NiW,lX7,q3u,wU0,Fq0,DxW,o5d,bQg,k9d,Lqu,$xj,S3W,pU$,Vur,E5G,J0u,WqH,iQF,fXF,Bi7,r0F,j1d,xx$,tuW,h80,dxg,XUW,y0j,g5j,Y3u,GfG,cYg,IAj,Rm$,K7g,PmG,Q9r,mj1,aAd,TPG,Oeg,emW,NPF,lA1,qNu,w8u,F7g,nZj,vZ0,DjF,oZj,Ujd,ucu,be7,kfd,s9u,L7d,AYH,uF,$ju,SNH,EZ$,tRr,HeG,X8F,cqH,Rku,G$$,gZ7,T8j,N8u,vP$,yYW,qgd,Osd,I2u,oP$,bs1,LLF,k$r,slF,AqW,Mhu,SgF,VhG,zkG,pmj,$o1,
EPu,Lw,rqu,jl1,xoW,A1,th0,hkF,dor,Yg$,GFu,$Q,S$,Ior,cAG,RUd,ZM$,KG1,PJ0,pw,lo$,Mr,q_F,weG,FGH,VE,u01,vX$,UBr,bM7,DBg,swg,oXj,$Bd,LGW,AAW,S_u,MXW,peG,JAd,BG0,WP,iF,iMH,jw$,fod,rAr,fw,r_,j$,xQ,Oyu,c77,lkF,qHW,wCd,FVG,vo$,Xe$,yAW,d_,Y_7,t1,h1,Go0,no7,eVG,gXG,HP,pCr,Vgg,zVg,Mg0,LVj,J7g,fkd,ko7,uYH,byu,j37,s31,g_,iyg,A7H,WV7,SHg,UOd,$Ou,tgj,hVu,dO$,HyG,y7d,goj,YHg,G7G,Inu,c5u,Zmj,KUu,Qbd,m00,T1u,OmF,edW,N1r,ln1,qFg,FU$,w77,nq0,oqW,U0u,uIj,ci,bmj,k77,sb7,LU7,A5H,$0r,SFW,p7F,M1r,V1G,zdG,J5r,WUu,im7,fn$,
jbF,t1G,hdW,CIu,d0r,HmW,X7W,y51,gqu,GRu,cE7,Irr,RbH,ZU7,KdF,PtW,QKH,mUd,arH,T4F,lrF,qtr,eb7,N4j,OUj,wLG,vzH,Fdu,nzr,UUr,DUd,oz0,uCW,bUG,kRW,sKd,AEg,$U0,St0,Mo0,VoW,Ezd,Wdd,fru,rEW,xU$,hb$,Ct$,XLW,Yt7,cmr,IhW,Rnd,KDW,Z9W,QNu,mp$,ahF,T27,Ro,O9$,end,N2W,kpg,LDu,Am1,Mju,Pi,Vj1,zn1,EbF,WDu,JmH,i9H,fhu,B2$,rm0,jN$,p8d,xpd,tjG,B4G,hnG,dp$,A0$,CKG,H9u,Xzj,ymg,gbG,YcW;
vP=function(G){if(!G)return"browse";var c=G.page,I=G.url,R,Z,K,m=(R=G.response)==null?void 0:(Z=R.responseContext)==null?void 0:(K=Z.webResponseContextExtensionData)==null?void 0:K.pageTheme;if(m)c=m.toLowerCase().replace(/_/g,"-");else if(c!=="watch"&&c!=="learning_journey_watch"){var a,O;if((c==="browse"||c==="settings")&&((a=G.response)==null?0:(O=a.sidebar)==null?0:O.settingsSidebarRenderer))c="WEB_PAGE_TYPE_SETTINGS";else{var N,q;c==="browse"&&((N=G.response)==null?0:(q=N.metadata)==null?0:q.channelMetadataRenderer)?
c="channel":I&&(c=_.mFb(I)||c)}}return c};
kzd=function(){return new Promise(function(G){var c=window;c.attmp!==void 0?G(c.attmp):(c.attmq===void 0&&(c.attmq=[]),c.attmq.push(function(I){G(I)}))})};
sJj=function(){var G=_.Yc("yt.aba.att");return G?G:_.GG.instance!==void 0?_.GG.instance.cKZ.bind(_.GG.instance):null};
Lwu=function(G,c){var I,R;return _.T(function(Z){return Z.nextAddress==1?_.v("attmusi")&&_.v("attmusi_ue")?Z.yield(kzd(),3):Z.jumpTo(2):Z.nextAddress!=2?(I=Z.yieldResult,Z.return(I.s(G,c,6E4))):(R=sJj())?Z.return(R(G,c,6E4)):Z.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
ANu=function(G,c,I,R,Z){c=c===void 0?[]:c;Z=Z?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Z}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Gv(G),dialogMessages:c.map(function(K){return _.Gv(K)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Gv(I),serviceEndpoint:Z}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Gv(R)}}}}}};
$Cd=function(G,c,I){I=I===void 0?!1:I;var R=_.ck(),Z=!!_.Ah().queueProxy,K,m,a;G=G==null?void 0:(K=G.response)==null?void 0:(m=K.currentVideoEndpoint)==null?void 0:(a=m.watchEndpoint)==null?void 0:a.playlistId;if((Z||G)&&!_.v("web_watch_disable_playlist_auto_miniplayer"))return I&&(R.playlistWatchPageActivation=!0),!0;switch(vP(c)){case "yts-products":return I&&(R.productDetailsPageActivation=!0),!0;case "mini_app":return I&&(R.miniAppPageActivation=!0),!0;case "playables":return I&&(R.playablesDestPageActivation=
!0),!0;case "companion-canvas":return I&&(R.companionCanvasActivation=!0),!0;default:return!1}};
Sn$=function(G){G=_.QqC(G);G.length>0&&G[0].focus()};
pIF=function(G,c,I){for(var R=typeof G==="string"?G.split(""):G,Z=G.length-1;Z>=0;--Z)Z in R&&c.call(I,R[Z],Z,G)};
Mk0=function(G,c){c=_.AUp(G,c);c>=0&&_.prr(G,c)};
Vkd=function(G){return Array.prototype.concat.apply([],arguments)};
zGu=function(G){var c=0;c=c===void 0?0:c;if(!_.Ru(G))throw _.c0("uint64");var I=typeof G;switch(c){case 512:switch(I){case "string":return _.Vi8(G);case "bigint":return String((0,_.w7)(64,G));default:return _.p08(G)}case 1024:switch(I){case "string":return _.z9B(G);case "bigint":return _.Je((0,_.w7)(64,G));default:return _.Mif(G)}case 0:switch(I){case "string":return _.Vi8(G);case "bigint":return _.Je((0,_.w7)(64,G));default:return _.SKq(G)}default:return _.H0(c,"Unknown format requested type for int64")}};
ECH=function(G,c,I){if(c)return _.Fj(G);var R;return(R=_.Ud(G))!=null?R:I?"":void 0};
JNH=function(G){G!=null&&(G=G.JSC$8989_value_||"",G=typeof G==="string"?G:new Uint8Array(G));return G};
WwW=function(G,c){if(/-[a-z]/.test(c))return null;if(_.o9B&&G.dataset){if(_.vpO()&&!(c in G.dataset))return null;G=G.dataset[c];return G===void 0?null:G}return G.getAttribute("data-"+_.Qm(c))};
fP0=function(){var G=id1;_.Yc("yt.ads.biscotti.getId_")||_.lr("yt.ads.biscotti.getId_",G)};
B0$=function(G){_.lr("yt.ads.biscotti.lastId_",G)};
jJu=function(){var G={};for(_.tw=new rNH(G.handleError===void 0?_.dj:G.handleError,G.logEvent===void 0?_.x7:G.logEvent);_.hw.length>0;)switch(G=_.hw.shift(),G.type){case "ERROR":_.tw.logError(G.payload);break;case "EVENT":_.tw.logEvent(G.eventType,G.payload)}};
xCH=function(G,c,I){return _.Fxi(function(R){return I?R.userIdentifier!==void 0&&!G.includes(R.userIdentifier)&&I.includes(R.publicName):R.userIdentifier!==void 0&&!G.includes(R.userIdentifier)},c)};
tkW=function(G){var c,I;return _.T(function(R){if(R.nextAddress==1)return c=_.Jw("YtIdbMeta hasAnyMeta other"),R.yield(_.Fxi(function(Z){return Z.userIdentifier!==void 0&&Z.userIdentifier!==c},G),2);
I=R.yieldResult;return R.return(I.length>0)})};
dCu=function(G,c){hGd||(hGd=_.dJ.addLowPriorityJob(function(){var I,R,Z,K,m;return _.T(function(a){switch(a.nextAddress){case 1:return a.yield(_.qt(),2);case 2:I=a.yieldResult;if(!I)return a.return();R=!0;_.s9(a,3);return a.yield(xCH(G,I,c),5);case 5:Z=a.yieldResult;if(!Z.length){R=!1;a.jumpTo(6);break}K=Z[0];return a.yield(_.QN(K.actualName),7);case 7:return a.yield(_.Tc(K.actualName,I),6);case 6:_.Pl(a,4);break;case 3:m=_.M3(a),_.dH(m),R=!1;case 4:_.dJ.cancelJob(hGd),hGd=0,R&&dCu(G,c),_.Vp(a)}})}))};
CD7=function(){var G;return _.T(function(c){return c.nextAddress==1?c.yield(_.qt(),2):(G=c.yieldResult)?c.return(tkW(G)):c.return(!1)})};
HdH=function(G){var c=100;c=c===void 0?500:c;var I,R,Z,K,m,a;return _.T(function(O){return O.nextAddress==1?(I=_.H1("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[I,(0,_.Fa)()-2592E6],Z=[I,(0,_.Fa)()],K=IDBKeyRange.bound(R,Z),O.yield(_.xY8(G),2)):O.nextAddress!=3?(m=O.yieldResult,a=[],O.yield(_.az(m,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(N){a.length=0;return _.nj(N.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:K,direction:"prev"},function(q){if(q.getValue()&&a.length<
c)return a.push(q.getValue()),q.delete().then(function(){return q.continue()})})}),3)):O.return(a)})};
XIu=function(){var G;return _.T(function(c){if(c.nextAddress==1)return c.yield(_.qt(),2);G=c.yieldResult;if(!G||!_.WK()&&!_.v("nwl_init_require_datasync_id_killswitch")||!_.aPU())return c.jumpTo(0);_.Odi=!0;_.T0r.isNwlInitialized=_.Odi;return c.yield(_.x9B().awaitInitialization(),0)})};
Dj=function(G,c){_.ANq[G]=!0;var I=_.F4();I&&I.publish.apply(I,arguments);_.ANq[G]=!1};
gCd=function(){if(_.K9b()&&!yNG){var G=function(I){I=I.data;if(I.op==="serializedGelBatch"){var R=_.$xB.get(I.key);R&&(_.pUO(I.serializedBatch,R.client,R.resolve,R.networklessOptions,R.isIsolated,R.useVSSEndpoint,R.dangerousLogToVisitorSession,R.requestsOutstanding),_.$xB.delete(I.key))}},c=_.ZH8();
c&&(c.addEventListener("message",G),c.onerror=function(){_.$xB.clear()});
yNG=!0}};
Yn0=function(){this.relativeTimeStart_=_.OH()};
G9d=function(G,c){G!=null&&this.append.apply(this,arguments)};
c0r=function(){return _.Sy("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
IXW=function(G,c,I){I=I===void 0?!1:I;var R,Z,K,m,a;return _.T(function(O){switch(O.nextAddress){case 1:_.zu("SOCS",G,34128E3,"youtube.com",!0);if(_.o3)return Z=fetch(c,{method:"POST",mode:_.JO(c),credentials:_.EQ(c),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),K=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.JO("/upgrade_visitor_cookie?eom=1"),credentials:_.EQ("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),O.yield(Promise.all([Z,K]).then(function(N){return N[1]}),5);
fetch(c,{method:"POST",mode:_.JO(c),credentials:_.EQ(c),cache:"no-store",headers:{"Content-Type":"text/plain"}});return O.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.JO("/upgrade_visitor_cookie?eom=1"),credentials:_.EQ("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:R=O.yieldResult;O.jumpTo(3);break;case 5:R=m=O.yieldResult;case 3:if(!R.ok)throw Error("uf");return O.yield(R.text(),7);case 7:a=O.yieldResult,
!a.includes('"state_switch":true')&&!I||a.includes("skip_reload_for_test")||window.location.reload(),_.Vp(O)}})};
R8u=function(G){return _.T(function(c){return c.nextAddress==1?c.yield(IXW(G.socsCookie,G.savePreferenceUrl,!0),2):c.return()})};
ZQ1=function(G){return _.T(function(c){return c.nextAddress==1?c.yield(IXW(G.socsCookie,G.savePreferenceUrl),2):c.return()})};
mx$=function(G){G=G.xhr.responseText;if(!_.KA(G,")]}'"))throw new Kq7;G=JSON.parse(G.substr(4));if((G.type||1)>1)throw new Kq7;G=G.id;B0$(G);PfF=_.S5(G);Q1d(18E5,2);return G};
TiF=function(G,c){c=new aXu(c);B0$("");PfF=_.CE9(c);G>0&&Q1d(12E4,G-1);throw c;};
Q1d=function(G,c){_.k6(function(){_.f4F().then(mx$,function(I){return TiF(c,I)}).thenCatch(_.EF)},G)};
id1=function(){var G=_.jsu();if(G!==void 0)return _.$C(G);PfF||(PfF=_.f4F().then(mx$).thenCatch(function(c){return TiF(2,c)}));
return PfF};
OQu=function(){var G=document;return _.Mf(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(c){return"on"+c.toLowerCase()in G})};
e8d=function(G){G.addEventListener("click",function(c){var I=c.target;I&&I.getAttribute("href")&&(I=I.getAttribute("href"),_.ZT(window,I,"_blank"),c.preventDefault(),c.stopImmediatePropagation())})};
NiW=function(G){var c,I,R,Z=(R=(I=((c=G.mainDownloadsListEntity)!=null?c:{})[_.sT8])==null?void 0:I.refresh)!=null?R:"",K;G=(K=G.refresh)==null?void 0:K[Z];Z=G!=null?G:{};return(Z==null?0:Z.refreshTime)?Number(Z==null?void 0:Z.refreshTime):0};
lX7=function(G,c){var I=_.bn(G);return c.every(function(R){var Z;R=R==null?void 0:(Z=R.playbackDataEntity)==null?void 0:Z.key;if(!R)return!1;Z=_.mx(_.Kp(R).entityId,"mainVideoEntity");return!!I[Z]})};
q3u=function(G){G=_.o6(G.entities);return _.Bgb(G).length};
wU0=function(G,c){if(c){var I;G=(I=_.a6(G.entities,"downloadQualityPickerEntity",c))!=null?I:void 0}else G=void 0;return G};
Fq0=function(G){var c=document.getElementsByTagName("ytd-enforcement-message-view-model");c.length===0||getComputedStyle(c[0]).display==="none"?G(0,"p.h_"):G(1,"p.h_")};
DxW=function(){n5$=0;var G=[_.nE(!0)];v5g&&_.gq(v5g,"yt-window-resized",G)};
o5d=function(){n5$||(n5$=_.dJ.addLowPriorityJob(DxW,200))};
bQg=function(){Ux$=0;u6W=_.UST(document);var G=[u6W];v5g&&_.gq(v5g,"yt-window-scrolled",G)};
k9d=function(){Ux$||(Ux$=_.dJ.addLowPriorityJob(bQg,200))};
Lqu=function(G){G=G===void 0?null:G;s17.push(_.Nb(window,"resize",o5d));s17.push(_.Nb(window,"scroll",k9d));G&&(v5g=G)};
$xj=function(){var G=_.uu.getLocalStorage();G&&A0$(G,G.mechanism.__iterator__(!0))};
S3W=function(G){_.T(function(c){if(c.nextAddress==1)return c.yield(G.delete("yt-appshell-assets"),2);_.Vp(c)})};
pU$=function(G){return _.m_((0,_.gRV)(),G)};
Vur=function(){var G;_.T(function(c){return c.nextAddress==1?c.yield(or.getInstance(),2):(G=c.yieldResult)?c.yield(Muu(G),0):c.jumpTo(0)})};
E5G=function(){var G;_.T(function(c){return c.nextAddress==1?c.yield(Ua.getInstance(),2):(G=c.yieldResult)?c.yield(z8F(G),0):c.jumpTo(0)})};
J0u=function(G){S3W(G);Vur();E5G()};
WqH=function(G){var c,I;return _.T(function(R){if(R.nextAddress==1)return R.yield(_.Syb(G),2);if(c=R.yieldResult){var Z;a:{if(c.headers&&(Z=c.headers.get("date"))&&(Z=Date.parse(Z),!isNaN(Z))){Z=Math.round((0,_.Fa)()-Z);break a}Z=-1}I=Z;if(I>-1)return R.return(I)}return R.return(-1)})};
iQF=function(){var G=_.Rq.caches,c=_.XG("IS_SHELL_LOAD"),I,R;_.T(function(Z){if(Z.nextAddress==1)return I=-1,c?Z.yield(WqH(G),3):(R=_.FL(),I=Math.round((0,_.Fa)()-R),Z.jumpTo(2));Z.nextAddress!=2&&(I=Z.yieldResult);I>=0&&I<2147483648&&_.b8({appInstallDataAgeMs:I});_.Vp(Z)})};
fXF=function(G){var c=_.IW(_.Rq.location.href),I={};"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(R){var Z=c.JSC$10201_queryData_.getValues(R);if(Z==null?0:Z.length)I[R]=Z});
return _.o2(G,new Map(Object.entries(I)))};
Bi7=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
r0F=function(G){if(_.Hbg()){var c=Object.keys(window.localStorage);c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;var R=Bi7(I);R===void 0||G.includes(R)||self.localStorage.removeItem(I)}}};
j1d=function(){if(!_.Hbg())return!1;var G=_.Jw(),c=Object.keys(window.localStorage);c=_.Q(c);for(var I=c.next();!I.done;I=c.next())if(I=Bi7(I.value),I!==void 0&&I!==G)return!0;return!1};
xx$=function(G){return _.hXd("NotificationsDisabled",G)};
tuW=function(){return Notification.permission!="granted"?Promise.resolve():_.mYd().then(function(G){return G?G.pushManager.getSubscription().then(function(c){if(c)return Promise.resolve();c={userVisibleOnly:!0,applicationServerKey:_.Yp("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return G.pushManager.subscribe(c).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
h80=function(G){return _.mYd().then(function(c){if(!c||!c.active)return Promise.reject(new _.iW("serviceworker.postMessage",G,c));try{return c.active.postMessage(G),Promise.resolve()}catch(I){return Promise.reject(I)}})};
dxg=function(){h80({type:"notifications_register",data:_.H1("ID_TOKEN")})};
XUW=function(){var G={isWide:_.VU.get("wide","0")==="1"},c=_.OC();if(c=c.getFlag(165)||c.getFlag(174))G.theme=_.iu(!0);if(_.NXB()){var I=_.WH()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G.systemTheme=I}!c&&_.v("parent_tools_enable_app_settings")&&_.QU(window.location.href).theme!==void 0&&(G.theme=_.iu());if((c=CfW)?!_.rx.equals(c,G):G)c={currentValue:G},HQd&&(c.timeSinceLastSnapshotSecs=Math.round(((0,_.Fa)()-HQd)/1E3)),CfW&&(c.previousValue=CfW),_.x7("appSettingsCaptured",c),CfW=
G,HQd=(0,_.Fa)()};
y0j=function(){if(!_.XG("LOGGED_IN"))return Promise.resolve(!1);var G=_.oa("service_worker_push_force_notification_prompt_tag");return G?_.Z8("PromptTags").then(function(c){if(!c)return!0;var I=[];try{I=JSON.parse(c)}catch(R){return!1}return I&&I.indexOf(G)==-1}):Promise.resolve(!1)};
g5j=function(){var G=_.DH("service_worker_push_prompt_delay_microseconds");return G?_.Z8("PromptTime").then(function(c){return Promise.resolve(Date.now()-G>(c||0))}):Promise.resolve(!0)};
Y3u=function(){var G=_.DH("service_worker_push_logged_out_prompt_watches");return G==-1?Promise.resolve(!1):_.Z8("WatchCount").then(function(c){return c>=G})};
GfG=function(){var G=_.P8(document,"yt-push-prompt-modal-bg");G&&_.ST(G)};
cYg=function(){return _.DH("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Z8("PromptCount").then(function(G){G||(G=0);return Promise.resolve(G<_.DH("service_worker_push_prompt_cap"))})};
IAj=function(G){return _.XG("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.XG("LOGGED_IN")&&(G===void 0?0:G)?y0j().then(function(c){if(c)return!0;c=[cYg(),g5j()];_.XG("LOGGED_IN")||c.push(Y3u());return Promise.all(c).then(function(I){return I.every(function(R){return R})})}):Promise.resolve(!1)};
Rm$=function(){_.Z8("PromptCount").then(function(G){return _.hXd("PromptCount",G+1)}).then(function(){return _.hXd("PromptTime",Date.now())}).then(function(){var G=_.oa("service_worker_push_force_notification_prompt_tag");
if(G)return _.Z8("PromptTags").then(function(c){var I=[];if(c)try{I=JSON.parse(c)}catch(R){return!1}I||(I=[]);I.push(G);return _.hXd("PromptTags",JSON.stringify(I))})})};
K7g=function(){Zed||GfG()};
PmG=function(G){G.style.zIndex=2147483648;G.style.pointerEvents="auto";G.style.backgroundColor="rgba(0, 0, 0, 0.6)";G.style.width="100%";G.style.height="100vh";G.style.position="absolute";G.style.top="0";G.style.left="0";G.style.border="none"};
Q9r=function(){var G=_.P8(document,"yt-push-prompt-modal-bg");Zed=_.v("service_worker_push_prompt_modal_ignore_click");G?PmG(G):(G=_.xq("div",{id:"yt-push-prompt-modal-bg"}),PmG(G),document.body.appendChild(G),_.uPb(document,"click",K7g))};
mj1=function(){var G=arguments;_.v("service_worker_push_prompt_modal_enable")&&Q9r();return Notification.requestPermission().then(function(c){GfG();var I=document.getElementById("ticker");I&&(I.className=I.classList.remove("show"));if(c=="granted")return tuW().then(function(){xx$(!1);dxg();return Promise.resolve(!0)});
c=="denied"&&dxg();return Promise.resolve(!1)}).catch(function(){GfG();
return Promise.reject.apply(Promise,_.jn(G))})};
aAd=function(G){G=G===void 0?!1:G;var c=_.nvp().client;if(c&&c.browserVersion){var I=c.browserVersion,R=c.browserName=="CHROME"&&_.lT(I,"50.0.0")<0;c=c.browserName=="OPERA"&&_.lT(I,"42.0.0")<0;if(R||c)return Promise.resolve()}return _.OHd().then(function(Z){if(!Z)return Promise.resolve();Z=tuW().then(function(){return h80({type:"notifications_check_registration",data:_.H1("ID_TOKEN")})});
return Notification.permission!="default"?Z.catch(function(){}):Z.then(function(){return IAj(G)}).then(function(K){if(K)return Rm$(),mj1().then(function(){})}).catch(function(){})})};
TPG=function(G){return _.a4$(G)?aAd():Promise.resolve()};
Oeg=function(G){var c=G.installing||G.waiting;return G.active||!c?Promise.resolve(G):new Promise(function(I){var R=function(Z){Z=Z.target;if(Z.state==="activated"||Z.state==="redundant")c.removeEventListener("statechange",R),I(G)};
c.addEventListener("statechange",R)})};
emW=function(){var G=new _.M7A("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.ve(G,{mainAppWeb:_.xa()});var c=_.ngT;_.v("service_worker_forward_exp_params")&&(c=fXF(c));try{var I=_.ovA(c).catch(function(){_.Do(G,"FAILURE");return new Promise(function(){})});
_.v("service_worker_push_enabled")&&I.then(function(R){_.Do(G,"SUCCESS");return R}).then(Oeg).then(TPG)}catch(R){if(_.Do(G,"FAILURE"),R.name!=="SecurityError")throw R;
}};
NPF=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&emW()};
lA1=function(G,c){var I={};c&&(I.serializedYpcFamilyCreateLoggingParams=c);_.x7(G,I);_.tg()};
qNu=function(G,c){var I={};I.serializedYpcRefundFlowLoggingParams=c;G&&(I.eventType=G);_.x7("ypcRefundFlowEvent",I);_.tg()};
w8u=function(G){G&&_.u_A("transactionFlowSucceeded",G)};
F7g=function(G){G&&_.CW("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
nZj=function(G){var c,I,R,Z,K,m,a;_.T(function(O){if(O.nextAddress==1)return O.yield(_.Pcb(),2);if(O.nextAddress!=3){if(!O.yieldResult)return O.return(!1);c=[];return O.yield(_.a1.keys(),3)}I=O.yieldResult;R=_.Q(I);for(Z=R.next();!Z.done;Z=R.next())K=Z.value,m=_.ZOi(K),a=m.datasyncId,!a||G.includes(a)||c.push(_.a1.delete(K));return O.return(Promise.all(c).then(function(N){return N.some(function(q){return q})}))})};
vZ0=function(){var G,c,I,R,Z,K,m;return _.T(function(a){if(a.nextAddress==1)return a.yield(_.Pcb(),2);if(a.nextAddress!=3){if(!a.yieldResult)return a.return(!1);G=_.Jw("cache contains other");return a.yield(_.a1.keys(),3)}c=a.yieldResult;I=_.Q(c);for(R=I.next();!R.done;R=I.next())if(Z=R.value,K=_.ZOi(Z),(m=K.datasyncId)&&m!==G)return a.return(!0);return a.return(!1)})};
DjF=function(){var G=_.wH().resolve(_.qR(_.FTN));return G?G.getCurrentTime():0};
oZj=function(){var G,c,I,R,Z,K,m,a,O,N,q,w,F,n;return _.T(function(U){switch(U.nextAddress){case 1:G={},c=_.a8p(),I=_.Q(Object.entries(c)),R=I.next();case 4:if(R.done){U.jumpTo(3);break}Z=R.value;K=_.Q(Z);m=K.next().value;a=K.next().value;O=m;N=a;if(!N){U.jumpTo(5);break}return U.yield(N(),8);case 8:G[O]=U.yieldResult;case 5:R=I.next();U.jumpTo(4);break;case 2:q=_.Q(),w=q.next();case 9:if(w.done){U.jumpTo(3);break}F=w.value;n=c[F];if(!n){U.jumpTo(10);break}return U.yield(n(),13);case 13:G[F]=U.yieldResult;
case 10:w=q.next();U.jumpTo(9);break;case 3:return U.return(G)}})};
Ujd=function(){var G;_.T(function(c){if(c.nextAddress==1)return c.yield(oZj(),2);G=c.yieldResult;return c.yield(navigator.clipboard.writeText(JSON.stringify(G,null,2)),0)})};
ucu=function(G,c){return _.a6(G.entities,"superThanksSelectedTierEntity",c)};
be7=function(G,c){return{popup:{searchSuggestionReportDialog:{searchQuery:G,title:_.mJ("SBOX_INAPPROPRIATE_TITLE"),suggestions:c,categoryLabel:_.mJ("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.mJ("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.mJ("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.mJ("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.mJ("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.mJ("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.mJ("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.mJ("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.mJ("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.mJ("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
kfd=function(G){var c,I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t;return _.T(function(x){switch(x.nextAddress){case 1:return x.yield(_.eC(),2);case 2:return(c=x.yieldResult)?x.yield(_.wob(c),3):x.return();case 3:I=x.yieldResult;if(!I)return x.return();Z=((R=I.offlineVideos)==null?void 0:R.length)||0;m=((K=I.offlinePlaylists)==null?void 0:K.length)||0;if(Z===0&&m===0)return x.return();a=0;if(I.offlineVideos)for(O=_.Q(I.offlineVideos),N=O.next();!N.done;N=O.next())q=N.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
q.videoState&&(a+=1);G.offline_videos_count=Z.toString();_.v("kevlar_log_offline_current_network_type_ks")||(G.offline_current_network_type=(w=_.d2B())!=null?w:"CONN_INVALID");_.v("kevlar_log_updated_time_for_smart_downloads")&&(F=_.y4().getState().entities,n=_.AX(F),U=NiW(F),G.offline_smart_downloads_last_sync_time_ms=n.toString(),G.offline_smart_downloads_next_sync_time_ms=U.toString());G.offline_videos_playable=a.toString();G.offline_playlists_count=m.toString();I.offlineVideos&&(k=I.offlineVideos.reduce(function(C,
H){H.downloadedBytes&&(C+=Number(H.downloadedBytes));return C},0).toString())&&(G.offline_used_disk_space_bytes=k);
if(!((p=navigator)==null?0:(M=p.storage)==null?0:M.estimate)){x.jumpTo(4);break}return x.yield(navigator.storage.estimate(),5);case 5:z=x.yieldResult,G.offline_free_disk_space_bytes=(((t=z)==null?void 0:t.quota)||0).toString();case 4:G.offline_client_state=JSON.stringify(I),_.Vp(x)}})};
s9u=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
L7d=function(G){if(_.Wn0()){var c=Object.keys(window.sessionStorage);c=_.Q(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;var R=s9u(I);R===void 0||G.includes(R)||self.sessionStorage.removeItem(I)}}};
AYH=function(){if(!_.Wn0())return!1;var G=_.Jw(),c=Object.keys(window.sessionStorage);c=_.Q(c);for(var I=c.next();!I.done;I=c.next())if(I=s9u(I.value),I!==void 0&&I!==G)return!0;return!1};
uF=function(G,c,I){(_.v("desktop_keyboard_shortcut_usage_log")||I&&_.v("web_shorts_keyboard_shortcut_usage_log"))&&(c?_.e$.get(G):_.Oa.get(G))&&(G=c?_.Gzj.get(G):_.Ymu.get(G))&&_.jW(_.k0(),G)};
$ju=function(G,c){return G.findIndex(function(I){return I.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(c.keyCode):!1};
SNH=function(G,c){c.stack&&(G.stack+="\n"+c.stack);return G};
EZ$=function(G){var c=p8d(G,"Content-Type");if(!c)return null;c=c.toLowerCase();if(c.startsWith("application/json"))return c.startsWith("application/json+protobuf")?new MR1:new _.Mn;if(c.startsWith("application/x-protobuf")){G=p8d(G,"Content-Transfer-Encoding");if(!G)return new VR$;if(G.toLowerCase()=="base64")return new zm7}return null};
tRr=function(G,c,I,R){var Z=new JYr(function(a,O){return W7G.has(O)?a.sentinel==="gal"&&a.event!==void 0:!1},function(a){a.event?(a=ieg(a.event),a=!a||fA1(R,a)?!0:_.$o(G.lastEvent,bF,2,kQ)?!_.$o(a,sa,1,kQ)&&!_.$o(a,bF,2,kQ):!_.$o(a,sa,1,kQ)&&!_.$o(a,bF,3,kQ)):a=!0;
return a});
I=_.o2(G.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",BPW(I)]]));if(G.nestedOrigins!==void 0)for(var K=_.Q(G.nestedOrigins),m=K.next();!m.done;m=K.next())I=_.o2(I,new Map([["origin",m.value]]));return rY7(Z,I,c).then(function(a){a=j9u(a.event);if(_.$o(a,sa,1,kQ)){var O,N=(O=_.jg(a,sa,1,kQ))==null?void 0:_.fy(O,2);N&&R.JSC$19912_logErrorEvent(xj$(N));O=_.jg(a,sa,1,kQ);_.fy(O,2)===4?(a=_.jg(a,sa,1,kQ),a={statusCode:11,statusMessage:_.iU(a,
3)}):(a=_.jg(a,sa,1,kQ),a={statusCode:12,statusMessage:_.iU(a,3)});return a}_.$o(a,bF,3,kQ)?(a=_.jg(a,bF,3,kQ),a={statusCode:1,consentLanguageKeys:_.iU(a,2)}):a={statusCode:1};return a}).catch(function(a){return a.errorCode!==void 0?{statusCode:a.errorCode,
statusMessage:a.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
HeG=function(G){var c={};if(G===void 0||G===null)return c;G.getToken()!==void 0&&hmW(G.getToken())&&hmW(G.getToken()).length>0&&(c.scopes=new Set(hmW(G.getToken())));G.getToken()!==void 0&&dj7(G.getToken())&&dj7(G.getToken()).length>0&&(c.capabilities=new Set(dj7(G.getToken())));_.iU(G,3)!==void 0&&(c.consistencyKey=_.iU(G,3));G.getName()!==void 0&&G.getName()!==""&&(c.linkName=G.getName());_.A7(G,Cmg,4)&&(G=_.Dw(G,Cmg,4),G=Object.assign({},_.iU(G,1)&&{userId:_.iU(G,1)},_.iU(G,2)&&{displayName:_.iU(G,
2)},_.iU(G,3)&&{email:_.iU(G,3)},_.iU(G,5)&&{username:_.iU(G,5)},_.iU(G,4)&&{profilePicture:_.iU(G,4)}),c.profile=G);return c};
X8F=function(G,c){var I=G.flowParams,R;return{serviceId:I.serviceId,sessionId:I.sessionId,currentFlow:G.currentFlow,googleScopesString:c,linkingSessionSerialized:G.session.serialize(),consentLanguageKeys:I.consentLanguageKeys,callerState:G.callerState,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(R=I.partnerConfigMinReadTimestamp)==null?void 0:R.serialize()}};
cqH=function(G){var c=G.googleScopes!==void 0?Array.from(G.googleScopes).join(","):"";yYW(X8F(G,c),G.config.localStorage);c=gZ7(G);return c===null?Promise.resolve(YNu):c.start().then(function(I){var R,Z=(R=I.link)==null?void 0:R.consistencyKey;return I.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&Z!==void 0?(R=G.flowParams,G$$(R.serviceId,R.sessionId,G.googleScopes,Z,R.galService,G.config,I)):I})};
Rku=function(G){var c=gZ7(G);return c===null?Promise.resolve(I2u({statusCode:7,statusMessage:"Failed to create flow object"},G.callerState)):c.complete().then(function(I){var R,Z=(R=I.link)==null?void 0:R.consistencyKey;return I.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&Z!==void 0?(R=G.flowParams,G$$(R.serviceId,R.sessionId,G.googleScopes,Z,R.galService,G.config,I)):I2u(I,G.callerState)},function(I){return I2u({statusCode:12,
statusMessage:"Failed to complete the flow: "+I.message},G.callerState)})};
G$$=function(G,c,I,R,Z,K,m){return Zs7(Z,{serviceId:G,sessionId:c,googleScopes:I,consistencyKey:R}).then(function(){return m},function(a){return Z.deleteLink({serviceId:G,
sessionId:c,accountLinkingEntryPoint:K.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+a.message}},function(O){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+O.message}})})};
gZ7=function(G){switch(G.currentFlow){case 1:var c=G.flowParams;G=_.Dw(G.session,KLu,1);return PPW.createOAuthFlow(c,G);case 2:case 3:return c=G.flowParams,G=_.Dw(G.session,Qld,6),mou.createStreamlinedFlow(c,G);default:return null}};
T8j=function(G,c){G===2&&(G=3);var I=0;a2F.indexOf(G)!==-1&&(I=a2F.indexOf(G)+1);for(G=I;G<a2F.length;G++)if(c.has(a2F[G]))return a2F[G]};
N8u=function(G){var c=G.serviceId;var I=G.sessionId;var R=G.config;var Z=G.galService;var K=G.capabilities;var m=G.scopes;var a=G.loginHint;var O=G.callerState;var N=G.consentLanguageKeys;var q=G.linkName;var w=G.dynamicUrlParameters;var F=G.partnerConfigMinReadTimestamp;G=R.dataUsageNoticeConfig?R.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Z.startLinkingSession({serviceId:c,sessionId:I,capabilities:K,scopes:m,loginHint:a,callerState:O,supportedFlows:Osd(R.supportedFlows),completionUrl:R.completionUrl,
accountLinkingEntryPoint:R.accountLinkingEntryPoint,consentLanguageKeys:N,dataUsageNoticeConfig:G,linkName:q,dynamicUrlParameters:w,partnerConfigMinReadTimestamp:F}).then(function(n){return new ek1(c,I,R,Z,n,void 0,O,N,w,F)})};
vP$=function(G,c,I){var R=(new l2$(c.localStorage)).getSession(G);if(R===null)return Promise.resolve({statusCode:2});qgd(G,c.localStorage);var Z=wm7(R.linkingSessionSerialized),K=R.googleScopesString!==""&&R.googleScopesString!==void 0?new Set(R.googleScopesString.split(",")):void 0,m=R.partnerConfigMinReadTimestampSerialized?FLG(R.partnerConfigMinReadTimestampSerialized):void 0;return nPG(new ek1(G,R.sessionId,c,I,Z,K,R.callerState,R.consentLanguageKeys,R.dynamicUrlParameters,m),R.currentFlow,R.consentLanguageKeys)};
yYW=function(G,c){c=new l2$(c);c.storage!==null&&c.storage.set("SAVED_SESSION",G)};
qgd=function(G,c){c=new l2$(c);if(c.storage!==null){var I=c.storage.get("SAVED_SESSION");I!==void 0&&I.serviceId===G&&c.storage.remove("SAVED_SESSION")}};
Osd=function(G){var c=new Set;G=_.Q(G);for(var I=G.next();!I.done;I=G.next())I=I.value,I!==1&&DoF.has(I)&&c.add(DoF.get(I));return c};
I2u=function(G,c){c!==void 0&&(G.callerState=c);return G};
oP$=function(G){switch(G){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
bs1=function(G){return new Uog(G,new utF(G))};
LLF=function(G,c){c=c===void 0?!1:c;var I=document.createElement("div");G&&(I.style.transform="scaleX(-1)");I.style.backgroundColor=c?"rgba(138,180,248,.24)":"#e8f0fe";I.style.height="4px";I.style.overflow="hidden";I.style.position="absolute";I.style.top="0";I.style.width="100%";I.style.zIndex="1500";I.setAttribute("aria-label","Loading");I.setAttribute("aria-live","polite");G=document.createElement("style");G.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
I.appendChild(G);G=k$r();G.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";G.style.left="-145.166611%";var R=slF(c);R.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";G.appendChild(R);I.appendChild(G);G=k$r();G.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";G.style.left="-54.888891%";c=slF(c);c.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
G.appendChild(c);I.appendChild(G);return I};
k$r=function(){var G=document.createElement("div");G.style.height="100%";G.style.position="absolute";G.style.transformOrigin="top left";G.style.width="100%";return G};
slF=function(G){var c=document.createElement("span");c.style.borderTop=G?"4px solid #669df6":"4px solid #4285f4";c.style.display="inline-block";c.style.position="absolute";c.style.width="100%";return c};
AqW=function(G){return G==null?void 0:_.Sep(G).valueOf()};
Mhu=function(G){var c=document.body,I=!1,R=function(){I||(I=!0,$o1(Z,K),setTimeout(function(){c.removeChild(K);c.removeChild(Z)},150))},Z=SgF(G,getComputedStyle(c).direction==="rtl",R),K=pmj(R);
$o1(Z,K);c.appendChild(K);c.appendChild(Z);window.requestAnimationFrame(function(){K.style.opacity="1";Z.style.opacity="1";Z.style.transform="translate(-50%, -50%) scale(1)";Z.children[0].focus()})};
SgF=function(G,c,I){var R=document.createElement("div");R.style.position="fixed";R.style.alignItems="center";R.style.backgroundColor=G?"rgb(32, 33, 36)":"white";R.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";R.style.display="flex";R.style.flexDirection="column";R.style.justifyContent="center";R.style.left="50%";R.style.top="50%";R.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";R.style.zIndex="2002";document.body.clientWidth>=
660?(R.style.borderRadius="8px",R.style.minHeight="220px",R.style.maxHeight="90%",R.style.maxWidth="90%",R.style.minWidth="540px"):(R.style.height="100%",R.style.width="100%");R.setAttribute("aria-label","Error");R.setAttribute("aria-modal","true");R.setAttribute("role","alertdialog");R.addEventListener("keydown",function(K){K.key==="Escape"&&I()});
c=VhG(G,c,I);R.appendChild(zkG(c));R.appendChild(c);var Z=document.createElement("img");Z.src=G?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";Z.style.height="72px";Z.style.width="72px";Z.style.color="#9aa0a6";Z.setAttribute("alt","");R.appendChild(Z);Z=document.createElement("h1");Z.textContent="Something went wrong.  Try again.";
Z.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Z.style.lineHeight="24px";Z.style.fontSize="16px";Z.style.textAlign="center";Z.style.letterSpacing="0.1px";Z.style.color=G?"rgb(232,234,237)":"#3c4043";R.appendChild(Z);R.appendChild(zkG(c));return R};
VhG=function(G,c,I){var R=document.createElement("button");R.style.backgroundColor="transparent";R.style.border="none";R.style.borderRadius="50%";R.style.cursor="pointer";R.style.outline="none";R.style.padding="12px";R.setAttribute("aria-label","Close dialog");R.style.position="absolute";R.style.top="0";c?R.style.right="0":R.style.left="0";R.addEventListener("focus",function(){R.style.backgroundColor=G?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
R.addEventListener("blur",function(){R.style.backgroundColor="transparent"});
R.addEventListener("mouseenter",function(){R.style.backgroundColor=G?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
R.addEventListener("mouseleave",function(){R.style.backgroundColor="transparent"});
R.addEventListener("click",I);R.addEventListener("keydown",function(Z){Z.key!=="Enter"&&Z.key!=="Space"||I()});
c=document.createElement("img");c.src=G?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";c.style.display="block";c.style.height="24px";c.style.width="24px";c.setAttribute("alt","");R.appendChild(c);return R};
zkG=function(G){var c=document.createElement("div");c.setAttribute("tabindex","0");c.setAttribute("aria-hidden","true");c.addEventListener("focus",function(){return void G.focus()});
return c};
pmj=function(G){var c=document.createElement("div");c.style.backgroundColor="rgba(32,33,36,0.6)";c.style.bottom="0";c.style.left="0";c.style.position="fixed";c.style.right="0";c.style.top="0";c.style.transition=" opacity 150 ms linear";c.style.zIndex="2001";c.addEventListener("click",G);return c};
$o1=function(G,c){c.style.opacity="0";G.style.opacity="0";G.style.transform="translate(-50%, -50%) scale(0.8)"};
EPu=function(G,c){G.sandbox&&G.sandbox.add&&(G.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),G.sandbox.add("allow-downloads"));G.src=c};
Lw=function(G){Jqu.call(this,G)};
rqu=function(G,c){c=c===void 0?!1:c;this.parsedImageUrl_=null;G instanceof WL7||(isu==void 0&&(isu=new f2$),G=isu.parse(G.toString(),c));G=this.parsedImageUrl_=G;G.JSC$20125_parsedOptions_==void 0&&((c=G.getOptions())||(c=""),G.JSC$20125_parsedOptions_=(new B8g).parse(c));Jqu.call(this,G.JSC$20125_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;G=this.parsedImageUrl_;c=G.uri_.JSC$10201_port_;this.JSC$20127_domain_=G.uri_.JSC$10201_domain_+(c?":"+c:"");this.JSC$20127_query_=
this.parsedImageUrl_.uri_.JSC$10201_queryData_.toString()};
jl1=function(G){this.mode=4;this.data=G;this.parsedData=[];G=0;for(var c=this.data.length;G<c;G++){var I=[],R=this.data.charCodeAt(G);R>65536?(I[0]=240|(R&1835008)>>>18,I[1]=128|(R&258048)>>>12,I[2]=128|(R&4032)>>>6,I[3]=128|R&63):R>2048?(I[0]=224|(R&61440)>>>12,I[1]=128|(R&4032)>>>6,I[2]=128|R&63):R>128?(I[0]=192|(R&1984)>>>6,I[1]=128|R&63):I[0]=R;this.parsedData.push(I)}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))};
xoW=function(G){this.typeNumber=0;this.errorCorrectLevel=G===void 0?2:G;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
A1=function(G,c){if(G.length==void 0)throw Error("Qk`"+G.length+"`"+c);for(var I=0;I<G.length&&G[I]==0;)I++;this.num=Array(G.length-I+c);for(c=0;c<G.length-I;c++)this.num[c]=G[c+I]};
th0=function(G,c){this.totalCount=G;this.dataCount=c};
hkF=function(){this.buffer=[];this.length=0};
dor=function(){var G=!1;if(_.uBU()){G=_.wb();var c="";_.sqr()?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(G=c.exec(G))?G[1]:"0.0"):_.Sr()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(G=c.exec(G))&&G[1].replace(/_/g,".")):_.k8f()?(c=/Mac OS X ([0-9_.]+)/,c=(G=c.exec(G))?G[1].replace(/_/g,"."):"10"):_.er(_.wb(),"KaiOS")?(c=/(?:KaiOS)\/(\S+)/i,c=(G=c.exec(G))&&G[1]):_.uBU()?(c=/Android\s+([^\);]+)(\)|;)/,c=(G=c.exec(G))&&G[1]):_.Lg0()&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,c=(G=c.exec(G))&&G[1]);G=
c||""}return G};
Yg$=function(G,c){this.JSC$20150__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(c)for(var I in c)this.JSC$20150__htOption[I]=c[I];this.JSC$20150__htOption.useSVG&&(CPd=Hsj);this.JSC$20150__android=dor();this.JSC$20150__el=G;this._oQRCode=null;this._oDrawing=new CPd(this.JSC$20150__el,this.JSC$20150__htOption);this.JSC$20150__htOption.text&&(G=this.JSC$20150__htOption.text,this._oQRCode=new xoW(this.JSC$20150__htOption.correctLevel),Xm1(this._oQRCode,
G),c=this._oQRCode,yqW(c,!1,gPH(c)),this.JSC$20150__el.title=G,this._oDrawing.draw(this._oQRCode),this.makeImage())};
GFu=function(G,c,I,R,Z){G.save();var K=new Path2D;K.roundRect(c,I,R*7,R*7,R*2);K.roundRect(c+R,I+R,R*5,R*5,R*1.3);K.roundRect(c+2*R,I+2*R,R*3,R*3,R);G.clip(K,"evenodd");G.fillStyle=Z;G.fillRect(0,0,G.canvas.width,G.canvas.height);G.restore()};
$Q=function(G,c){if(typeof G!=="function")throw Error("Tk");return _.Rq.setTimeout(function(){G()},c)};
S$=function(){};
Ior=function(G,c,I,R,Z){(new S$).debug("TestLoadImageWithRetries: "+Z);if(R==0)I(!1);else{var K=Z||0;R--;cAG(G,c,function(m){m?I(!0):_.Rq.setTimeout(function(){Ior(G,c,I,R,K)},K)})}};
cAG=function(G,c,I){var R=new S$;R.debug("TestLoadImage: loading "+G);var Z=new Image;Z.onload=function(){try{R.debug("TestLoadImage: loaded"),RUd(Z),I(!0)}catch(K){}};
Z.onerror=function(){try{R.debug("TestLoadImage: error"),RUd(Z),I(!1)}catch(K){}};
Z.onabort=function(){try{R.debug("TestLoadImage: abort"),RUd(Z),I(!1)}catch(K){}};
Z.ontimeout=function(){try{R.debug("TestLoadImage: timeout"),RUd(Z),I(!1)}catch(K){}};
_.Rq.setTimeout(function(){if(Z.ontimeout)Z.ontimeout()},c);
Z.src=G};
RUd=function(G){G.onload=null;G.onerror=null;G.onabort=null;G.ontimeout=null};
ZM$=function(){this.front_=[];this.back_=[]};
KG1=function(G,c){this.action=G;this.params=c||{}};
PJ0=function(G,c){_.JK.call(this);this.delay_=new _.iR(this.JSC$20276_onTick_,0,this);_.k9(this,this.delay_);this.JSC$20274_interval_=5E3;this.nextTickTime_=0;if(typeof G==="function")c&&(G=(0,_.WD)(G,c));else if(G&&typeof G.handleEvent==="function")G=(0,_.WD)(G.handleEvent,G);else throw Error("ya");this.JSC$20276_listener_=G};
pw=function(G,c,I,R,Z,K,m,a,O,N,q,w,F,n,U){var k=this;I=I===void 0?!1:I;R=R===void 0?function(){return""}:R;
Z=Z===void 0?!1:Z;K=K===void 0?!1:K;m=m===void 0?!1:m;a=a===void 0?function(){return _.IP({})}:a;
O=O===void 0?!1:O;q=q===void 0?!1:q;w=w===void 0?!1:w;F=F===void 0?!1:F;n=n===void 0?!1:n;this.JSC$20277_pathPrefix_=G;this.defaultQueryParams_=c;this.pubsub_=new _.p4;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!U)?U(function(){k.safeReconnect_()}):new PJ0(this.safeReconnect_,this);
this.JSC$20277_channel_=null;this.JSC$20277_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20277_pendingMessages_=[];this.enableAsyncTest_=I;this.JSC$20277_getXsrfToken_=R;this.useAsyncBrowserChannelHandler_=K;this.getAuthorizationHeader_=a;this.getAuthorizationHeaderSync_=N;this.enableCachedUpdateAuthorizationHeader_=m;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.IP();this.enableLoungeTokenRefresh_=Z;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
O;this.disableMdxAuthForNonPlaybackMessages_=q;this.disableMdxAuthForAdMessages_=w;this.enableMdxAuthForConnectionOnly_=F;this.disableMdxAuthForShortsMessages_=n;this.JSC$20277_channelOpenedCounter=new Qwg;this.JSC$20277_channelClosedCounter=new mBr;this.channelMessageSentCounter=new aoG;this.JSC$20277_channelMessageReceivedCounter=new TGj;this.JSC$20277_channelErrorCounter=new OM$;this.pendingMapsOnClosedCounter=new eUG;this.undeliveredMapsOnClosedCounter=new NGd};
lo$=function(G){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;G=G||document.location.href;var c=Number(_.Tu(G)[4]||null)||"";c&&(this.port=":"+c);this.domain=_.O2(G)||"";G=_.wb();G.search("MSIE")>=0&&_.lT(G.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
Mr=function(G){G=G||{};this.name=G.name||"";this.id=G.id||G.screenId||"";this.token=G.token||G.loungeToken||"";this.uuid=G.uuid||G.dialId||"";this.idType=G.screenIdType||"normal";this.secret=G.screenIdSecret||""};
q_F=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(G){var c=Math.random()*16|0;return(G=="x"?c:c&3|8).toString(16)})};
weG=function(G){return _.jB(G,function(c){return{key:c.id,name:c.name}})};
FGH=function(G,c){return _.Mf(G,function(I){return I||c?!I!=!c?!1:I.id==c.id:!0})};
VE=function(G,c){return _.Mf(G,function(I){return nXu(I,c)})};
u01=function(){var G=vX$(),c=DBg();if(oXj()){var I=G,R=_.JUC(I,c);R<0&&_.Vrg(I,-(R+1),0,c)}G=UBr(G);if(G.length==0)try{_.jPq("remote_sid")}catch(Z){}else try{_.zu("remote_sid",G.join(","),-1)}catch(Z){}};
vX$=function(){var G=_.ka("yt-remote-connected-devices")||[];G.sort(_.EpC);return G};
UBr=function(G){if(G.length==0)return[];var c=G[0].indexOf("#"),I=c==-1?G[0]:G[0].substring(0,c);return _.jB(G,function(R,Z){return Z==0?R:R.substring(I.length)})};
bM7=function(G){_.bu("yt-remote-connected-devices",G,86400)};
DBg=function(){if(kFd)return kFd;var G=_.ka("yt-remote-device-id");G||(G=q_F(),_.bu("yt-remote-device-id",G,31536E3));for(var c=vX$(),I=1,R=G;_.fA(c,R);)I++,R=G+"#"+I;return kFd=R};
swg=function(){return _.ka("yt-remote-session-browser-channel")};
oXj=function(){return _.ka("yt-remote-session-screen-id")};
$Bd=function(G){G.length>5&&(G=G.slice(G.length-5));var c=_.jB(LGW(),function(R){return R.loungeToken}),I=_.jB(G,function(R){return R.loungeToken});
_.h4O(I,function(R){return!_.fA(c,R)})&&AAW();
_.bu("yt-remote-local-screens",G,31536E3)};
LGW=function(){return _.ka("yt-remote-local-screens")||[]};
AAW=function(){_.bu("yt-remote-lounge-token-expiration",!0,86400)};
S_u=function(G){G||(_.sU("yt-remote-session-screen-id"),_.sU("yt-remote-session-video-id"));u01();G=vX$();_.rb(G,DBg());bM7(G)};
MXW=function(){peG();return zA?!!zA.get("yt-remote-use-staging-server"):!1};
peG=function(){if(!zA){var G=_.x6();G&&(zA=new _.f4(G))}};
JAd=function(G,c,I,R,Z){I=I===void 0?function(){return""}:I;
var K=function(){return new pw(Ea(G,"/bc"),c,!1,I,R)};
return _.v("enable_mdx_web_channel_desktop")?new VXF(function(){return new zUj(Ea(G,"/wc"),c,I)}):new EXj(K,Z)};
BG0=function(){var G=WGd;iMH();J1.push(G);fod()};
WP=function(G,c){iMH();var I=rAr(G,String(c));J1.length==0?jw$(I):(fod(),_.K4(J1,function(R){R(I)}))};
iF=function(G){WP("CP",G)};
iMH=function(){J1||(J1=_.Yc("yt.mdx.remote.debug.handlers_")||[],_.lr("yt.mdx.remote.debug.handlers_",J1))};
jw$=function(G){var c=(xBj+1)%50;xBj=c;tXG[c]=G;hUg||(hUg=c==49)};
fod=function(){var G=J1;if(tXG[0]){var c=hUg?xBj:-1,I={};do I={record$jscomp$15:void 0},c=(c+1)%50,I.record$jscomp$15=tXG[c],_.K4(G,function(R){return function(Z){Z(R.record$jscomp$15)}}(I));
while(c!=xBj);tXG=Array(50);xBj=-1;hUg=!1}};
rAr=function(G,c){var I=(Date.now()-dBj)/1E3;I.toFixed&&(I=I.toFixed(3));var R=[];R.push("[",I+"s","] ");R.push("[","yt.mdx.remote","] ");R.push(G+": "+c,"\n");return R.join("")};
fw=function(G){_.TA.call(this);this.JSC$20302_logName_=G;this.screens=[]};
r_=function(G){fw.call(this,"LocalScreenService");this.JSC$20309_http_=G;this.loungeTokenRefreshTimer_=NaN;BP(this);this.info("Initializing with "+CJd(this.screens))};
j$=function(G,c){c=c===void 0?!1:c;fw.call(this,"ScreenService");this.JSC$20315_http_=G;this.disableAutomaticScreenCache_=c;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};HM1(this)};
xQ=function(G,c,I){_.TA.call(this);this.JSC$20319_logName_=I;this.JSC$20319_screenService_=G;this.receiver_=c;this.screen_=null};
Oyu=function(G,c,I){I.disableCastApi?t1("Cannot initialize because disabled by Mdx config."):Xe$()?yAW(G,I)&&(gXG(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Y_7(c):(window.__onGCastApiAvailable=function(R,Z){R?Y_7(c):(h1("Failed to load cast API: "+Z),Go0(!1),gXG(!1),_.sU("yt-remote-cast-available"),_.sU("yt-remote-cast-receiver"),c77(),c(!1))},I.loadCastApiSetupScript?_.My(IkF):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
RVW()>=60&&ZyW():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?KV$():RVW()>=89?PUd():(Q3W(),mO1(ak7.map(TIj))))):t1("Cannot initialize because not running Chrome")};
c77=function(){t1("dispose");var G=d_();G&&G.dispose();_.lr("yt.mdx.remote.cloudview.instance_",null);eVG(!1);_.$CU(NI$);NI$.length=0};
lkF=function(){return!!_.ka("yt-remote-cast-installed")};
qHW=function(){var G=_.ka("yt-remote-cast-receiver");return G?G.friendlyName:null};
wCd=function(){t1("clearCurrentReceiver");_.sU("yt-remote-cast-receiver")};
FVG=function(){return lkF()?d_()?d_().getCastSession():(h1("getCastSelector: Cast is not initialized."),null):(h1("getCastSelector: Cast API is not installed!"),null)};
vo$=function(G,c){no7()?d_().setConnectedScreenStatus(G,c):h1("setConnectedScreenStatus called before ready.")};
Xe$=function(){var G=_.wb().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.UH||G};
yAW=function(G,c){var I=!1;d_()||(G=new Cw(G,c),G.subscribe("yt-remote-cast2-availability-change",function(R){_.bu("yt-remote-cast-available",R);Dj("yt-remote-cast2-availability-change",R)}),G.subscribe("yt-remote-cast2-receiver-selected",function(R){t1("onReceiverSelected: "+R.friendlyName);
_.bu("yt-remote-cast-receiver",R);Dj("yt-remote-cast2-receiver-selected",R)}),G.subscribe("yt-remote-cast2-receiver-resumed",function(R){t1("onReceiverResumed: "+R.friendlyName);
_.bu("yt-remote-cast-receiver",R);Dj("yt-remote-cast2-receiver-resumed",R)}),G.subscribe("yt-remote-cast2-session-change",function(R){t1("onSessionChange: "+DOg(R));
R||_.sU("yt-remote-cast-receiver");Dj("yt-remote-cast2-session-change",R)}),_.lr("yt.mdx.remote.cloudview.instance_",G),I=!0);
t1("cloudview.createSingleton_: "+I);return I};
d_=function(){return _.Yc("yt.mdx.remote.cloudview.instance_")};
Y_7=function(G){Go0(!0);gXG(!1);d_().init(!1,function(c){c?(eVG(!0),_.SnO("yt-remote-cast2-api-ready")):(h1("Failed to initialize cast API."),Go0(!1),_.sU("yt-remote-cast-available"),_.sU("yt-remote-cast-receiver"),c77());G(c)})};
t1=function(G){WP("cloudview",G)};
h1=function(G){WP("cloudview",G)};
Go0=function(G){t1("setCastInstalled_ "+G);_.bu("yt-remote-cast-installed",G)};
no7=function(){return!!_.Yc("yt.mdx.remote.cloudview.apiReady_")};
eVG=function(G){t1("setApiReady_ "+G);_.lr("yt.mdx.remote.cloudview.apiReady_",G)};
gXG=function(G){_.lr("yt.mdx.remote.cloudview.initializing_",G)};
HP=function(G){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(G)};
pCr=function(G){peG();if(!zA||!zA.get("yt-remote-disable-remote-module-for-dev")){G=_.H1("MDX_CONFIG")||G;$xj();u01();ooH||(ooH=new lo$(G?G.loungeApiHost:void 0),MXW()&&(ooH.basePath="/api/loungedev"));Xw||(Xw=_.Yc("yt.mdx.remote.deferredProxies_")||[],_.lr("yt.mdx.remote.deferredProxies_",Xw));UOd();var c=uYH();if(!c){var I=new j$(ooH,G?G.disableAutomaticScreenCache||!1:!1);_.lr("yt.mdx.remote.screenService_",I);c=uYH();var R={};G&&(R={appId:G.appId,disableDial:G.disableDial,theme:G.theme,loadCastApiSetupScript:G.loadCastApiSetupScript,
disableCastApi:G.disableCastApi,enableDialLoungeToken:G.enableDialLoungeToken,enableCastLoungeToken:G.enableCastLoungeToken,forceMirroring:G.forceMirroring});_.lr("yt.mdx.remote.enableConnectWithInitialState_",G?G.enableConnectWithInitialState||!1:!1);Oyu(I,function(K){K?byu()&&vo$(byu(),"YouTube TV"):I.subscribe("onlineScreenChange",function(){Dj("yt-remote-receiver-availability-change")})},R)}if(G&&!_.Yc("yt.mdx.remote.initialized_")){_.lr("yt.mdx.remote.initialized_",!0);
ko7("Initializing: "+(0,_.HL)(G));yE.push(_.D6("yt-remote-cast2-api-ready",function(){Dj("yt-remote-api-ready")}));
yE.push(_.D6("yt-remote-cast2-availability-change",function(){Dj("yt-remote-receiver-availability-change")}));
yE.push(_.D6("yt-remote-cast2-receiver-selected",function(){s31();Dj("yt-remote-auto-connect","cast-selector-receiver")}));
yE.push(_.D6("yt-remote-cast2-receiver-resumed",function(){Dj("yt-remote-receiver-resumed","cast-selector-receiver")}));
yE.push(_.D6("yt-remote-cast2-session-change",LVj));yE.push(_.D6("yt-remote-connection-change",function(K){K?vo$(byu(),"YouTube TV"):A7H()||(vo$(null,null),wCd())}));
yE.push(_.D6("yt-remote-cast2-session-failed",function(){Dj("yt-remote-connection-failed")}));
R=$Ou();G.isAuto&&(R.id+="#dial");var Z=G.capabilities||[];Z.length>0&&(R.capabilities=Z);R.name=G.device;R.app=G.app;(G=G.theme)&&(R.theme=G);ko7(" -- with channel params: "+(0,_.HL)(R));R?(_.bu("yt-remote-session-app",R.app),_.bu("yt-remote-session-name",R.name)):(_.sU("yt-remote-session-app"),_.sU("yt-remote-session-name"));_.lr("yt.mdx.remote.channelParams_",R);c.start();byu()||SHg()}}};
Vgg=function(){var G=uYH().instance_.$_gos();var c=Mg0();c&&g_()&&(FGH(G,c)||G.push(c));return weG(G)};
zVg=function(){var G=Vgg(),c=Mg0();c||(c=A7H());return _.Mf(G,function(I){return c&&nXu(c,I.key)?!0:!1})};
Mg0=function(){var G=byu();if(!G)return null;var c=uYH().getScreens();return VE(c,G)};
LVj=function(G){ko7("remote.onCastSessionChange_: "+DOg(G));if(G){var c=Mg0();if(c&&c.id==G.id){if(vo$(c.id,"YouTube TV"),G.idType=="shortLived"&&(G=G.token))Eog&&(Eog.token=G),(c=g_())&&c.setLoungeToken(G)}else c&&J7g(),WV7(G,1)}else g_()&&J7g()};
J7g=function(){no7()?d_().stopSession():h1("stopSession called before API ready.");var G=g_();G&&(G.disconnect(1),iyg(null))};
fkd=function(){var G=g_();return G&&G.getProxyState()!=3?new YQ(g_(),void 0):null};
ko7=function(G){WP("remote",G)};
uYH=function(){if(!BI$){var G=_.Yc("yt.mdx.remote.screenService_");BI$=G?new r7j(G):null}return BI$};
byu=function(){return _.Yc("yt.mdx.remote.currentScreenId_")};
j37=function(G){_.lr("yt.mdx.remote.currentScreenId_",G)};
s31=function(){_.lr("yt.mdx.remote.connectData_",null)};
g_=function(){return _.Yc("yt.mdx.remote.connection_")};
iyg=function(G){var c=g_();s31();G||j37("");_.lr("yt.mdx.remote.connection_",G);Xw&&(_.K4(Xw,function(I){I(G)}),Xw.length=0);
c&&!G?Dj("yt-remote-connection-change",!1):!c&&G&&Dj("yt-remote-connection-change",!0)};
A7H=function(){var G=oXj();if(!G)return null;var c=uYH();if(!c)return null;c=c.getScreens();return VE(c,G)};
WV7=function(G,c){xOd?Eog=G:(j37(G.id),G=new GS(ooH,G,$Ou(),_.Yc("yt.mdx.remote.enableConnectWithInitialState_")||!1),G.connect(c,_.Yc("yt.mdx.remote.connectData_")),G.subscribe("beforeDisconnect",function(I){Dj("yt-remote-before-disconnect",I)}),G.subscribe("beforeDispose",function(){g_()&&iyg(null)}),G.subscribe("browserChannelAuthError",function(){var I=Mg0();
I&&I.idType=="shortLived"&&(no7()?d_().handleBrowserChannelAuthError():h1("refreshLoungeToken called before API ready."))}),iyg(G))};
SHg=function(){var G=A7H();G?(ko7("Resume connection to: "+DOg(G)),WV7(G,0)):(S_u(),wCd(),ko7("Skipping connecting because no session screen found."))};
UOd=function(){var G=$Ou();if(_.rx.isEmpty(G)){G=DBg();var c=_.ka("yt-remote-session-name")||"",I=_.ka("yt-remote-session-app")||"";G={device:"REMOTE_CONTROL",id:G,name:c,app:I,mdxVersion:3};G.authuser=String(_.H1("SESSION_INDEX","0"));(c=_.H1("DELEGATED_SESSION_ID"))&&(G.pageId=String(c));_.lr("yt.mdx.remote.channelParams_",G)}};
$Ou=function(){return _.Yc("yt.mdx.remote.channelParams_")||{}};
tgj=function(){var G,c;return _.T(function(I){if(I.nextAddress==1)return(_.eGT()||_.v("use_new_nwl"))&&_.mCf().isNetworkAvailable()?I.yield(_.qt(),2):I.return();if(I.nextAddress!=3)return(G=I.yieldResult)?I.yield(HdH(G),3):I.return();c=I.yieldResult;if(!c.length)return I.return();c.forEach(function(R){var Z={timestamp:R.timestamp};R=R.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:R.appShellAssetLoadReport,options:Z}:R.clientError?{payloadName:"clientError",payload:R.clientError,
options:Z}:void 0;R&&_.x7(R.payloadName,R.payload,R.options)});
c.length===100&&_.dJ.addLowPriorityJob(tgj);_.Vp(I)})};
hVu=function(G){if(G.playerResponse){if(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(c){return!(!c||!c.mealbarPromoRenderer)}))&&G.mealbarPromoRenderer)return G.mealbarPromoRenderer}else if(G.response&&(G=G.response)&&G.overlay&&G.overlay.mealbarPromoRenderer)return G.overlay.mealbarPromoRenderer};
dO$=function(G){if(G.response){var c=G.response;if(c&&c.overlay&&c.overlay.tooltipRenderer)return c.overlay.tooltipRenderer}if(G.playerResponse&&(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(I){return!(!I||!I.tooltipRenderer)}))&&G.tooltipRenderer))return G.tooltipRenderer};
HyG=function(G){if(!CUF&&(G=G||_.H1("ZWIEBACK_PING_URLS"))&&G.length){CUF=!0;for(var c=0;c<G.length;c++)_.Rx(G[c])}};
y7d=function(G){if(_.rx.get(_.H1("PLAYER_VARS",{}),"privembed",!1)!="1"){G&&fP0();try{XCW().then(function(){},function(){}),_.k6(y7d,18E5)}catch(c){_.yL(c)}}};
goj=function(){var G=_.OC(),c=G.getFlag(119),I=window.devicePixelRatio>1;document.body&&_.aN(document.body,"exp-invert-logo")&&(I&&!_.aN(document.body,"inverted-hdpi")?_.g0(document.body,"inverted-hdpi"):!I&&_.aN(document.body,"inverted-hdpi")&&_.XP(document.body,"inverted-hdpi"));c!=I&&(_.eW(0,119,I),G.save())};
YHg=function(G){return G.filter(function(c){return"ypcGetCartEndpoint"in c||"ypcFixInstrumentEndpoint"in c})};
G7G=function(G){return G.filter(function(c){return!_.D(c,_.M4A)})};
Inu=function(G,c){var I,R,Z,K,m,a,O;_.T(function(N){switch(N.nextAddress){case 1:I=_.jx.getInstance();R=_.NC.instance;Z=_.h0.instance;if(!Z)return c5u(G,R,c),N.return();_.s9(N,2);G.onLoadingCommand&&R.resolveCommand(G.onLoadingCommand);return N.yield(I.getCurrentPositionFromGeolocation(),4);case 4:K=N.yieldResult;if(!G.resolveLocationCommand){N.jumpTo(5);break}m=I.createLocationInfo(K);return N.yield(_.CQ(Z,G.resolveLocationCommand,{locationInfo:m}),6);case 6:a=N.yieldResult;if(!a||"error"in a&&a.error||
a.errorMetadata)return c5u(G,R,c),N.return();var q;if(a==null?0:(q=a.onResponseReceivedActions)==null?0:q.length){q=_.Q(a.onResponseReceivedActions);for(var w=q.next();!w.done;w=q.next())R.resolveCommand(w.value)}(_.D(G.onSuccessCommand,_.fR)||_.D(G.onSuccessCommand,_.qD))&&_.Xl(c.hostElement,"yt-navigate",{endpoint:G.onSuccessCommand,reload:!0});case 5:_.Pl(N,0);break;case 2:O=_.M3(N);if(O instanceof GeolocationPositionError&&O.code===GeolocationPositionError.PERMISSION_DENIED)return G.onDeniedCommand&&
R.resolveCommand(G.onDeniedCommand),N.return();c5u(G,R,c);_.Vp(N)}})};
c5u=function(G,c,I){G.onFailureCommand&&(c.resolveCommand(G.onFailureCommand),_.ym(I.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
Zmj=function(G,c){var I=_.D(G,_.cMp);if(I&&c){G=I.videoIds||[I.videoId];var R;c=(R=_.Xl(c,"yt-lockup-requested",{videoIds:G}).detail)==null?void 0:R.returnValue;var Z;I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Z=c?c:G.map(function(K){return{videoId:K,navigationEndpoint:I.videoCommand}}):c&&(Z=c);
Z&&(R=Z.map(function(K){var m=Object,a=m.assign;var O=K.navigationEndpoint;if(!_.D(O,_.vH)){var N=_.D(O,_.fR);if(N){if(delete N.index,delete N.playlistId,N=_.D(O==null?void 0:O.commandMetadata,_.Pd),N==null?0:N.url){var q=N.url;q=_.tO(q,"list");q=_.tO(q,"index");N.url=q}}else O=void 0}return a.call(m,{},K,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:O})}),Rdr(R,I))}};
KUu=function(G){var c=_.Ah();if(G=_.D(G,_.IMK))G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&c.clearQueue(),G.closeMiniplayer&&_.wH().resolve(_.tA).close(!0)};
Qbd=function(G){PIu(_.Ah(),G)};
m00=function(G){var c;(G=(c=_.D(G,_.YBk))==null?void 0:c.setVideoIds)&&G.forEach(function(I){_.HoA(_.Ah(),I)})};
T1u=function(G){ang(_.Ah(),G)};
OmF=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(G){return!1}};
edW=function(G,c){var I=_.u8V(c,{},G,!0);return new Promise(function(R,Z){I.listenOnce("n",function(){Z(Error("El`"+I.JSC$30236_getErrorDescription()))});
I.listenOnce("l",function(){var K=I.getResponseCode();if(K!==200)Z(Error("Fl`"+c+"`"+G.type+"`"+G.size+"`"+K));else try{R(JSON.parse(I.getResponseText()).encryptedBlobId)}catch(m){Z(m)}});
I.run()})};
N1r=function(G){return G.substring(G.indexOf(":")+1,G.indexOf(";"))};
ln1=function(G){return new Promise(function(c,I){var R=new FileReader;R.onloadend=function(){try{var Z=new Uint8Array(R.result);Z.length<8&&I(void 0);var K=Z.subarray(0,8);Z="";for(var m=0;m<K.length;m++)Z+=("0"+K[m].toString(16)).substr(-2);Z.startsWith("ffd8ff")?c("image/jpeg"):Z.startsWith("47494638")?c("image/gif"):Z.startsWith("89504e470d0a1a0a")?c("image/png"):Z.startsWith("424d")?c("image/bmp"):c(void 0)}catch(a){I(a)}};
R.onerror=I;R.readAsArrayBuffer(G)})};
qFg=function(G){return new Promise(function(c,I){var R=new Image;R.crossOrigin="anonymous";R.onload=function(){var Z=document.createElement("canvas");Z.width=R.naturalWidth;Z.height=R.naturalHeight;var K=Z.getContext("2d");if(!K)throw Error("Gl");K.drawImage(R,0,0);K=N1r(G);Z.toBlob(function(m){m?c(m):I()},K)};
R.src=G})};
FU$=function(G,c){var I;if(((I=_.D(G,_.vH))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var R;_.Xl((R=c.hostElement)!=null?R:c,"yt-shorts-reset");_.lLj(_.wH().resolve(_.RY),G).then(function(K){w77(K,c,G)})}else{var Z;
_.Gs((Z=c.hostElement)!=null?Z:c,[G]).then(function(K){K&&w77(K.data,c,G)})}};
w77=function(G,c,I){if(G){var R=_.D(G.replacementEndpoint,_.vH);if(R){G.sequenceContinuation&&(R.sequenceParams=G.sequenceContinuation);var Z;_.Xl((Z=c.hostElement)!=null?Z:c,"yt-navigate",{endpoint:G.replacementEndpoint})}else if((G==null?void 0:G.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(G==null?0:G.watchStatus)&&_.D(G.watchStatus,_.rjB)){var K;_.Xl((K=c.hostElement)!=null?K:c,"yt-navigate",{endpoint:I})}}};
nq0=function(G){var c=_.wH().resolve(_.Ni),I=_.Ce.currentPageTypeSelector(c.getState())||"";c=_.Ce.currentPageSubTypeSelector(c.getState())||"";I=I==="ytd-browse"&&c==="home";return _.v("web_guide_entry_enable_cache_for_non_home_pages")?(G=(G==null?void 0:G.navigationEndpoint)&&_.lu(G.navigationEndpoint)==="home",{disableCache:I&&G}):{disableCache:I}};
oqW=function(G,c,I,R){if(G&&G.length){var Z={};if(c){var K=void 0;I&&(K={commandContext:{onTap:{innertubeCommand:I||{}}}});Z.header={panelHeaderViewModel:{title:_.Vc(c),rendererContext:K}}}c=[];G=_.Q(G);for(I=G.next();!I.done;I=G.next()){K=I.value;I=_.D(K,vq1);K=_.D(K,D07);var m=void 0,a=void 0;if((m=K)==null?0:(a=m.expandableItems)==null?0:a.length)for(K=_.Q(K.expandableItems),m=K.next();!m.done;m=K.next()){m=m.value.guideEntryRenderer;var O=a=void 0;if(((a=m)==null?void 0:(O=a.icon)==null?void 0:
O.iconType)==="VIEW_LIST_CAIRO"){I=m;break}}a=m=void 0;K=((m=I)==null?0:m.formattedTitle)?_.Vc((a=I)==null?void 0:a.formattedTitle):void 0;m=void 0;a=(m=I)==null?void 0:m.isPrimary;if(I&&K&&!a){K={title:K};I.navigationEndpoint&&(K.rendererContext={commandContext:{onTap:{innertubeCommand:I.navigationEndpoint}}});m=[];O=a=void 0;if(((a=I)==null?0:(O=a.thumbnail)==null?0:O.thumbnails)&&I.thumbnail.thumbnails.length>0){a=_.Q(I.thumbnail.thumbnails);for(O=a.next();!O.done;O=a.next())m.push({url:O.value.url});
K.leadingAccessory={avatarViewModel:{image:{sources:m},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(a=void 0,(a=I.icon)==null?0:a.iconType)m.push({clientResource:{imageName:I.icon.iconType||""}}),K.leadingImage={sources:m};a=m=void 0;((m=I)==null?0:(a=m.badges)==null?0:a.liveBroadcasting)?(K.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",K.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},K.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
I.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?K.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":I.count&&(K.trailingLabel={content:I.count.toString()});c.push({listItemViewModel:K})}}c.length!==0?(Z.content={listViewModel:{listItems:c}},R===0&&(Z.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):Z=void 0;if(Z)return c=void 0,R===0&&(c={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:Z}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:c}}}}};
U0u=function(G,c,I,R){if(c!=null&&c.isPrimary){switch(R){case 1:if(c.serviceEndpoint)break;I=oqW(I,c.formattedTitle,c.navigationEndpoint,R);if(!I)break;c.serviceEndpoint=I;c.navigationEndpoint=void 0;break;case 0:!c.mouseEnterEndpoint&&(I=oqW(I,c.formattedTitle,void 0,R))&&(c.mouseEnterEndpoint=I,c.mouseLeaveEndpoint={hideSheetCommand:{}})}G.push({guideEntryRenderer:c})}};
uIj=function(G){if(!G)return!1;try{if(G.host&&G.host.tagName==="YT-FORMATTED-STRING"&&G.host.id==="contenteditable-textarea"||G.nodeType===Node.ELEMENT_NODE&&G.tagName==="YTD-COMMENT-INPUT")return!0}catch(c){return!1}return uIj(G.parentNode)};
ci=function(G){return G?G.tagName==="A"&&G.href&&G.classList.contains("yt-simple-endpoint"):!1};
bmj=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
k77=function(G,c,I){if(!G)return null;var R=ci(G);if(R&&I)return c=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+c);if(R&&!I)return document.createTextNode("");if(bmj(G))return I=G.alt,G=G.dataset.emojiId,!G&&c&&(c=_.eh(c,I))&&c.isCustomEmoji&&(G=c.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(I);R=G.cloneNode(!1);for(var Z=0;Z<G.childNodes.length;++Z){var K=k77(G.childNodes[Z],c,I);K&&R.appendChild(K)}return R};
sb7=function(G){return G?ci(G)?G:sb7(G.lastChild):null};
LU7=function(G){return G?ci(G)?G:LU7(G.firstChild):null};
A5H=function(G){if(!G)return null;for(var c=G.previousSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.previousSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.previousSibling;else break;(c=sb7(c))?G=c:G=(G=G.parentNode)?sb7(G.previousElementSibling):null;return G};
$0r=function(G){if(!G)return null;for(var c=G.nextSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.nextSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.nextSibling;else break;return(c=LU7(c))?c:$0r(G.parentNode)};
SFW=function(G){var c=_.lP(),I=c.JSC$11513_getStartNode();if(!uIj(I.parentNode))return null;c=c.JSC$11513_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var R=_.H6(I,ci);if(R){if(G&&c===0||!G&&c===I.length)return R}else{if(G&&c===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.qo(I.nextElementSibling,"display")==="block"?null:LU7(I.nextElementSibling);if(!G&&c===0)return I?sb7(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(G){if(0<=c&&c<I.childNodes.length)return LU7(I.childNodes[c])}else if(0<
c&&c<=I.childNodes.length)return sb7(I.childNodes[c-1]);return null};
p7F=function(G,c,I){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(I){var R=A5H(G);if(R&&!/^\s+\S/.test(G.wholeText.substr(0,c)))return R}else if((R=$0r(G))&&!/\S\s+/.test(G.wholeText.substr(c,G.wholeText.length)))return R;return G.nodeType===Node.ELEMENT_NODE?I?A5H(G.childNodes[c]):$0r(G.childNodes[c]):p7F(G.parentNode,c,I)};
M1r=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var c="";for(G=G.firstChild;G;G=G.nextSibling)c+=M1r(G);return c;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
V1G=function(G){switch(G){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
zdG=function(G){return G.map(function(c){return{settingsRadioOptionRenderer:{title:_.I6(c.name),asideText:_.I6(c.approximateSize),id:V1G(c.format)}}})};
J5r=function(G){if(G&&G.length!==0)return G.filter(Eqj()).map(function(c){return{settingsRadioOptionRenderer:{title:c.name,asideText:c.approximateSize,id:V1G(c.formatType)}}})};
WUu=function(G){if(G)return G.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
im7=function(G,c){G=new Set(G!=null?G:[]);if(G.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(G.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(G.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(G.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(G.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(c)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
fn$=function(G){var c=G.indexOf("(");return c!==-1?G.substring(c+1,G.length-1):G};
_.r5H=function(G,c,I,R,Z){I||(I=B1F);var K;(K=_.D(I.commandMetadata,_.Pd))!=null&&K.url||(I=Error("Ll`"+JSON.stringify(I)),_.hg(I),I=B1F);I=_.rx.unsafeClone(I);K=_.gj(_.D(I.commandMetadata,_.Pd).url,"search_query",G);_.Gy(location.href,"sv")==="1"&&(_.D(I,_.wn).params="EgOAAgE%3D",K=_.gj(K,"sv","1"));_.D(I,_.wn)&&(_.D(I,_.wn).query=G);K=K.replace(/%20/g,"+");_.D(I.commandMetadata,_.Pd).url=K;Z=_.v("desktop_enable_entity_suggest")?{entityMid:Z}:{};_.wH().resolve(_.n4).resolveCommand(I,{form:{tempData:Object.assign({},
{gs_l:c,oq:R!=null?R:G},Z),isFromShorts:_.G$()==="shorts"}})};
jbF=function(G){switch(G){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
t1G=function(G,c,I,R,Z,K){var m=_.rx.clone(x0u);m.locale=_.H1("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;m.report={description:Z||"<empty>"};Z=_.H1("SBOX_SETTINGS",{});c=c.join(",");var a=Date.now();G={choice_cc:R,choice_id_cc:I,choices_sc:c,gl:Z.REQUEST_DOMAIN,hl:Z.REQUEST_LANGUAGE,query:G,time:a};K&&(G.choice_additional_comment_cc=K);_.A42(m,G)};
hdW=function(G){var c=new Map;c.set("authuser",_.H1("SESSION_INDEX","0"));return _.o2(G,c)};
CIu=function(G){var c;return _.T(function(I){switch(I.nextAddress){case 1:if(!G||!d0r(G))return I.return(null);c=null;switch(_.H1("INNERTUBE_CLIENT_NAME")){case "WEB":return I.jumpTo(2);case "WEB_REMIX":c=G.getPlayer()}I.jumpTo(3);break;case 2:return I.yield(G.getPlayerPromise(),4);case 4:c=I.yieldResult;I.jumpTo(3);break;case 3:return I.return(c)}})};
d0r=function(G){return["ytd-player","ytmusic-player"].includes(String(G.tagName||"").toLowerCase())};
HmW=function(G){G=Math.round(G);return G%2?G-1:G};
X7W=function(G){G=Math.round(G);return G%2===0?G-1:G};
y51=function(G){var c=["h","m","s"],I=_.jr(c);I.reverse();var R={};G=(G.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(m){var a=(m.match(/[hms]/)||[""])[0];return a?(R[a]=parseInt(m.match(/\d+/)[0],10),!1):!0});
for(G.reverse();G.length&&I.length;){var Z=I.shift();Z in R||(R[Z]=parseInt(G.shift(),10))}if(G.length||R.s>59||R.m>59||R.h>9)return null;var K="";c.forEach(function(m){R[m]&&(K+=""+R[m]+m)});
return K||null};
gqu=function(G){var c,I,R;if(G=(c=G.createPlaylistDialogFormSchema)==null?void 0:(I=c.fieldSchemas)==null?void 0:(R=I.title)==null?void 0:R.validationSchema)for(c=[G.syncStep,G.asyncStep].filter(function(Z){return Z!==void 0}),c=_.Q(c),I=c.next();!I.done;I=c.next()){I=I.value.rules;
if(!I)break;I=_.Q(I);for(I=I.next();!I.done;I=I.next())return _.D(I.value,_.tLH)}};
GRu=function(G){var c,I,R;if(G=(c=G.createPlaylistDialogFormSchema)==null?void 0:(I=c.fieldSchemas)==null?void 0:(R=I.visibility)==null?void 0:R.validationSchema)for(c=[G.syncStep,G.asyncStep].filter(function(Z){return Z!==void 0}),c=_.Q(c),I=c.next();!I.done;I=c.next()){I=I.value.rules;
if(!I)break;I=_.Q(I);for(R=I.next();!R.done;R=I.next())if(R=_.D(R.value,YFG))return c=void 0,(c=R.translations)==null?void 0:c.visibilityNotValidErrorMessage}};
cE7=function(){var G,c;return(c=(G=_.wH().resolve(_.qR(_.d0)))==null?void 0:G())!=null?c:!1};
Irr=function(G){var c=21;if(!G)return c;c+=G.headerTitle?27:0;c+=G.headerTitle&&G.hasHeaderActionHeader?4:0;return c+=G.headerTitle&&G.headerSubtitle?16:0};
RbH=function(G){var c=0;if(!G)return c;c+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton?48:0;c+=G.footerTrailingLabel||G.footerLeadingLabel?30:0;return c+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton||!G.footerTrailingLabel&&!G.footerLeadingLabel?0:12};
ZU7=function(G){var c=new _.p4,I=G;return{subscribe:function(R){c.subscribe("changed",R)},
dispatch:function(R,Z){var K=I;if(R==="Touch Start")I=Object.assign({},K,{isAnimating:!1,initialY:Z.event.touches[0].clientY});else if(R==="Touch Move"){R=Z.contentScrollable?-1*(K.initialY-24):0;var m,a=(m=Z.headerDivHeight)!=null?m:Irr(Z.header),O;m=(O=Z.footerDivHeight)!=null?O:RbH(Z.footer);O=Math.min(Z.fullContentWrapperHeight,Z.heightMap[Z.contentWrapperId]+a-m);I=Object.assign({},K,{currentY:Math.max(R,Z.event.touches[0].clientY-K.initialY),maxHeightForContentWrapper:Math.min(O,Math.max(0,
(K.isFullScreen?O:Z.contentWrapperHeight)-K.currentY))})}else I=R==="Snap To Full Screen"?Object.assign({},K,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Z.maxHeight}):R==="Snap To Neutral Position"?Object.assign({},K,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Z.maxHeight}):R==="Close Sheet"?Object.assign({},K,{isAnimating:!0,currentY:Z.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Z.maxHeight}):K;c.publish("changed",I)}}};
KdF=function(){_.wH().resolve(_.O6).closeSheet()};
PtW=function(G){var c,I,R,Z,K,m,a,O,N,q,w;return{headerTitle:(c=G.headerTitle)==null?void 0:c.call(G),headerSubtitle:(I=G.headerSubtitle)==null?void 0:I.call(G),headerActionHeader:G.headerActionHeader,footerPrimaryButton:G.footerPrimaryButton,footerSecondaryButton:G.footerSecondaryButton,footerButtonType:(R=G.footerButtonType)==null?void 0:R.call(G),footerLeadingLabel:(Z=G.footerLeadingLabel)==null?void 0:Z.call(G),footerTrailingLabel:(K=G.footerTrailingLabel)==null?void 0:K.call(G),shouldShowIcons:(m=
G.shouldShowIcons)==null?void 0:m.call(G),skipContentClick:(a=G.skipContentClick)==null?void 0:a.call(G),additionalClassName:(O=G.additionalClassName)==null?void 0:O.call(G),onClosedCallback:G.onClosedCallback,focusOnClose:(N=G.focusOnClose)==null?void 0:N.call(G),isDisabled:(q=G.isDisabled)==null?void 0:q.call(G),disabledCommand:(w=G.disabledCommand)==null?void 0:w.call(G),headerFn:G.headerFn,contentFn:G.contentFn,footerFn:G.footerFn,hasHeaderFn:G.hasHeaderFn(),hasContentFn:G.hasContentFn(),hasFooterFn:G.hasFooterFn(),
hasFooterPrimaryButton:G.hasFooterPrimaryButton(),hasFooterSecondaryButton:G.hasFooterSecondaryButton(),hasHeaderActionHeader:G.hasHeaderActionHeader()}};
QKH=function(G){switch(G){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
mUd=function(G){switch(G){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
arH=function(G){switch(G){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
T4F=function(G,c,I){c.forEach(function(R){_.yI(_.wH().resolve(_.PQ),R)});
_.ym(G,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",I])};
lrF=function(G,c,I,R){var Z=_.D(I,_.sP).commandLifeCycleConfig;Z&&Z.onStartCommand&&_.cd(G,[Z.onStartCommand],c);_.hq(c);var K=_.h0.instance;K&&_.di(K,I)?_.CQ(K,I,R).then(function(m){if(!m||(m==null?0:m.error))return m=_.D(I,_.sP).serializedTransactionFlowLoggingParams,_.d8(c),_.$C(new Io("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",m));_.d8(c);return{data:m}}).then(function(m){_.d8(c);
OUj(m.data);var a=m.data.command;a&&_.cd(G,[a],c);a=eb7(I,m.data);if(!a){var O=m.data;m=!1;if(O&&O.command&&_.D(O.command,_.RP)){var N;O=((N=_.D(O.command,_.RP))==null?void 0:N.commands)||[];for(N=0;N<O.length;N++)if(_.D(O[N],_.NrT)){m=!0;break}}m||_.Kx('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!a&&Z&&Z.onSuccessCommand?_.cd(G,[Z.onSuccessCommand],c):a&&Z&&Z.onFailureCommand&&_.cd(G,[Z.onFailureCommand],c)},function(){_.d8(c);
Z&&Z.onFailureCommand&&_.cd(G,[Z.onFailureCommand],c);N4j(I)}):_.hg(Error("Xl"),"ERROR")};
qtr=function(G,c,I){var R=[c];I&&R.push(I);return _.Gs(G,R).then(function(Z){var K=_.D(c,_.sP).serializedTransactionFlowLoggingParams,m=Z.data,a=eb7(c,m);a?Z=_.$C(new Io(a,K)):OUj(m);return Z},function(){var Z=_.D(c,_.sP).serializedTransactionFlowLoggingParams;
N4j(c);return _.$C(new Io("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Z))})};
eb7=function(G,c){G=_.D(G,_.sP).serializedTransactionFlowLoggingParams;var I=null;switch(c.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":I="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":I="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":I="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}I?_.hi(I,G):w8u(G);return I};
N4j=function(G){_.hi("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.D(G,_.sP).serializedTransactionFlowLoggingParams)};
OUj=function(G){if(G.trackingParams){var c=_.k0(),I=_.u6();c&&I&&_.Wd(c,I,_.kC(G.trackingParams))}};
wLG=function(G,c,I){var R=_.h0.instance,Z=_.i6B(_.H1("YPC_MB_URL")),K=(new _.JV0).init(),m=_.WEf(),a=_.D(I,_.a5e).languageCode;a===void 0?_.hg(Error("Ji"),"ERROR"):_.tE([K,Z]).then(function(){var O={ctk:_.KM.payments.business.integration.ClientTokenFactory.createClientToken(a,m)};R&&_.di(R,I)?_.CQ(R,I,O).then(function(N){return{data:N}}).then(function(N){_.Xl(c,"yt-service-request-completed",N);
N.code!=="ERROR"&&(N=N.data.command)&&_.cd(G,[N],c)}):_.hg(Error("Xl"),"ERROR")})};
vzH=function(G,c,I,R){var Z=_.h0.instance;Z&&_.di(Z,I)?_.CQ(Z,I,R).then(function(K){return{data:K}}).then(function(K){Fdu(G,c,I,K)},function(){nzr(I)}):(Z=_.wH().resolve(_.qR(_.oI)))&&Z.requestDataForServiceEndpoint(I,R).then(function(K){Fdu(G,c,I,K)},function(){nzr(I)})};
Fdu=function(G,c,I,R){_.Xl(c,"yt-service-request-completed",R);if(R.code&&R.code=="ERROR")nzr(I);else{(R=R.data.commands)&&_.cd(G,R,c);var Z;(G=(Z=_.D(I,_.q62))==null?void 0:Z.serializedYpcPauseFlowLoggingParams)&&G&&_.CW("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",G)}};
nzr=function(G){var c;(G=(c=_.D(G,_.q62))==null?void 0:c.serializedYpcPauseFlowLoggingParams)&&G&&_.CW("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
UUr=function(G,c,I){var R=_.h0.instance;R&&_.di(R,I)?_.CQ(R,I).then(function(Z){return{data:Z}}).then(function(Z){DUd(G,c,I,Z)},function(){oz0(I)}):(R=_.wH().resolve(_.qR(_.oI)))&&R.requestDataForServiceEndpoint(I).then(function(Z){DUd(G,c,I,Z)},function(){oz0(I)})};
DUd=function(G,c,I,R){_.Xl(c,"yt-service-request-completed",R);R.code&&R.code=="ERROR"?oz0(I):((R=R.data.commands)&&_.cd(G,R,c),(G=_.D(I,_.w$V).serializedYpcResumeFlowLoggingParams)&&G&&_.CW("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",G))};
oz0=function(G){(G=_.D(G,_.w$V).serializedYpcResumeFlowLoggingParams)&&G&&_.CW("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
uCW=function(G){G=G===void 0?{}:G;_.wH().resolve(_.dNj).showFeedbackDialog(G.customProductData,G.feedbackContent,G.onFeedbackSubmitted,G.bucket)};
bUG=function(G){G=G===void 0?{}:G;_.wH().resolve(_.dNj).showHelpDialog(G.helpContext,G.articleId,G.productData)};
kRW=function(){bUG()};
sKd=function(){uCW()};
AEg=function(G,c,I){var R,Z,K,m,a,O,N;return _.T(function(q){switch(q.nextAddress){case 1:R=_.D(G,LdH);if((Z=R)==null?0:Z.productId){O={productId:R.productId,bucket:R.bucket,enableAnonymousFeedback:(a=R.enableAnonymousFeedback)!=null?a:!0,allowNonLoggedInFeedback:!0};N={feedbackChoice:I.feedbackChoice};if(!_.v("web_collect_offline_state")){q.jumpTo(8);break}_.s9(q,9);return q.yield(kfd(N),11)}m={bucket:(K=R)==null?void 0:K.bucket};if(!_.v("web_collect_offline_state")){q.jumpTo(4);break}m.customProductData=
{};_.s9(q,5);return q.yield(kfd(m.customProductData),7);case 7:_.Pl(q,4);break;case 5:_.M3(q);case 4:uCW(m);q.jumpTo(0);break;case 11:_.Pl(q,8);break;case 9:_.M3(q);case 8:_.ukB(N),_.UQf("GFEEDBACK",N),R.productId==="5295751"&&(N.client_attestation=Number(_.H1("CATSTAT",0))),R.productId==="5295751"&&(N.client_time=Date.now()/1E3/3600),R.productId==="5295751"&&(N.original_playback_id=_.PhB||""),_.A42(O,N),_.Vp(q)}})};
$U0=function(G){if(G=_.D(G,_.$5b)){var c={bucket:G.bucketIdentifier};G.additionalDatas&&(c.customProductData={},G.additionalDatas.forEach(function(I){if(I=I.userFeedbackEndpointProductSpecificValueData)c.customProductData[I.key]=I.value}));
uCW(c)}};
St0=function(G){var c=_.RD.getInstance();var I=_.mJ("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var R=_.mJ("DELETE",void 0,"Delete"),Z=_.mJ("CANCEL",void 0,"Cancel");I=ANu(I,void 0,R,Z,{signal:"DELETE_ALL_DOWNLOADS"});_.Rk(c,[{openPopupAction:I}],G)};
Mo0=function(){return _.T(function(G){return G.nextAddress==1?G.yield(_.wH().resolve(_.sj),2):G.yield(pL$(),0)})};
VoW=function(G){var c,I;return _.T(function(R){return R.nextAddress==1?(I=(c=_.D(G,_.GP))==null?void 0:c.targetId)?R.yield(_.wH().resolve(_.sj),3):R.jumpTo(0):R.yield(_.wH().resolve(_.k8).deleteVideo(I),0)})};
Ezd=function(G){var c,I;return _.T(function(R){return R.nextAddress==1?(I=(c=_.D(G,_.GP))==null?void 0:c.targetId)?R.yield(_.wH().resolve(_.sj),3):R.jumpTo(0):R.yield(zb7(_.wH().resolve(_.k8),I),0)})};
Wdd=function(G){var c,I;return _.T(function(R){return(I=(c=_.D(G,_.GP))==null?void 0:c.targetId)?R.yield(JEr(I),0):R.jumpTo(0)})};
fru=function(){_.v("kevlar_woffle_refresh_dl_load_killswitch")||iU1()};
rEW=function(){_.v("kevlar_woffle")&&_.BH.instance&&B4G()};
xU$=function(G){var c;if((c=_.D(G,_.o9))==null||!c.videoId)return!1;jKW(_.wH().resolve(_.k8),_.D(G,_.o9),G.clickTrackingParams);return!0};
hb$=function(G){var c;if((c=_.D(G,_.UN))==null||!c.playlistId)return!1;tou(_.wH().resolve(_.k8),_.D(G,_.UN),G.clickTrackingParams);return!0};
Ct$=function(G){var c=_.D(G,_.G5T);(c==null?void 0:c.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(c==null?void 0:c.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||dU7(_.wH().resolve(_.k8),_.D(G,_.G5T))};
XLW=function(G){G=_.D(G,_.$i2);var c;(G==null?0:(c=G.actions)==null?0:c.length)&&HUd(G)};
Yt7=function(G){var c,I;return _.T(function(R){c=_.D(G,yEF);return(I=c)!=null&&I.localWatchHistoryCommandType?R.yield(gz0(c),0):R.return()})};
cmr=function(){return _.T(function(G){return _.v("kevlar_enable_download_to_mobile")?G.yield(Gpr(),0):G.return()})};
IhW=function(G){setTimeout(function(){requestAnimationFrame(G)},80)};
Rnd=function(G){return Object.entries(G).map(function(c){return c.join(":")}).join(";")};
KDW=function(G){var c,I,R;_.T(function(Z){if(Z.nextAddress==1)return Z.yield(Z9W(),2);c=Z.yieldResult;I=_.NC.instance;switch(c){case "granted":R=G.getLocationCommand;break;case "denied":R=G.openDeniedDialogAction;break;case "prompt":R=G.openCollectionDialogAction;break;default:R=G.openCollectionDialogAction}R&&I.resolveCommand(R);_.Vp(Z)})};
Z9W=function(){var G,c;return _.T(function(I){if(I.nextAddress==1)return G="prompt",navigator.permissions?I.yield(navigator.permissions.query({name:"geolocation"}),3):I.jumpTo(2);I.nextAddress!=2&&(c=I.yieldResult,G=c.state);return I.return(G)})};
QNu=function(){_.T(function(G){return G.yield(_.PKF(),0)})};
mp$=function(){var G,c,I;return _.T(function(R){if(R.nextAddress==1)return G=_.wH().resolve(_.UU),G?R.yield(_.CQ(G,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Ck(Error("$l")),R.return(void 0));if(c=R.yieldResult){if(c.errorMetadata)return _.Ck(Error("am`"+c.errorMetadata.status+"`"+c.error)),R.return(void 0);I=c.datasyncIds;_.Pyu=I.length;return R.return(I)}_.Ck(Error("bm"));return R.return(void 0)})};
ahF=function(){mp$().then(function(G){G&&(dCu(G),nZj(G),r0F(G),L7d(G))})};
T27=function(G){_.dJ.addLowPriorityJob(function(){var c,I,R,Z,K;return _.T(function(m){switch(m.nextAddress){case 1:if(_.v("ytidb_clear_optimizations_killswitch")){m.jumpTo(2);break}c=_.Jw("clear");if(c.startsWith("V")&&c.endsWith("||")){var a=[c];dCu(a);nZj(a);r0F(a);L7d(a);return m.return()}I=j1d();R=AYH();return m.yield(vZ0(),3);case 3:return Z=m.yieldResult,m.yield(CD7(),4);case 4:if(K=m.yieldResult,!(I||R||Z||K))return m.return();case 2:G.isNetworkAvailable()?ahF():G.listenOnce("publicytnetworkstatus-online",
ahF),_.Vp(m)}})})};
Ro=function(G){G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Cp(G)}}}};_.NC.instance&&_.NC.instance.resolveCommand(G)};
O9$=function(G){if(G){var c=_.DP();_.dt(c,3854,void 0,{layer:0,parentLayer:4});switch(G){case 1:var I=238708;break;case 2:I=238715;break;case 3:I=238710;break;case 6:I=238709}I&&(G=_.vI(c,{veType:I}))&&_.XF(c,G)}};
end=function(G){if(G){var c=_.DP();_.dt(c,3854,void 0,{layer:0,parentLayer:4});switch(G){case 1:var I=238714;break;case 2:I=238711;break;case 8:I=238709;break;case 7:I=238713;break;case 3:case 4:case 5:I=238712}I&&(G=_.vI(c,{veType:I}))&&_.XF(c,G)}};
N2W=function(G){switch(G.latencyType){case 0:_.sC("consent_primitive_flow");_.LC("cpit",G.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.LC("cpist",G.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.LC("cprtif",G.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.LC("cprtli",G.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.LC("cprt",G.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.LC("cpdt",G.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.LC("cpjct",G.timestampEpochMillis,"consent_primitive_flow")}};
kpg=function(G,c){var I,R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C;return _.T(function(H){switch(H.nextAddress){case 1:_.s9(H,2);(R=(I=_.D(G,lh7))==null?void 0:I.serializedConsentRequest)||(R=(Z=_.D(G,qcG))==null?void 0:Z.serializedConsentRequest);R&&(K=wz7(_.Yp(R)));if(K===void 0)return H.return();m=FDr(K);m.latencyCallback=N2W;c&&nbH(m,function(){c.then(function(g){g.pauseVideo();(new vbd).increment()})});
return((a=_.D(G,lh7))==null?void 0:a.consentAction)==="CONSENT_ACTION_PREWARM"||((O=_.D(G,qcG))==null?void 0:O.consentAction)==="CONSENT_ACTION_PREWARM"?H.yield(Dpr(m),5):H.yield(obH(m),6);case 6:N=H.yieldResult;q=_.py(N,ZU);if(q===1){if(((w=_.jg(N,Upu,1,ZU))==null?void 0:_.fy(w,1))===1||((F=_.jg(N,Upu,1,ZU))==null?void 0:_.fy(F,1))===2||((n=_.jg(N,Upu,1,ZU))==null?void 0:_.fy(n,1))===3)_.D(G,qcG)?Ro(_.mJ("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Ro(_.mJ("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));O9$((U=_.jg(N,Upu,1,ZU))==null?void 0:_.fy(U,1),_.lR(N,unG,3,_.qw()))}else q===2?(((k=b9F(N))==null?void 0:_.fy(k,1))===5?_.D(G,qcG)?Ro(_.mJ("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Ro(_.mJ("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((p=b9F(N))==null?void 0:_.fy(p,1))===1||((M=b9F(N))==null?void 0:_.fy(M,1))===4?
Ro(_.mJ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((z=b9F(N))==null?void 0:_.fy(z,1))===7&&((t=K)==null?void 0:(x=_.Dw(t,K5,4))==null?void 0:_.fy(x,4))!==1&&Ro(_.mJ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),end((C=b9F(N))==null?void 0:_.fy(C,1))):Ro(_.mJ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));H.jumpTo(5);break;case 5:_.Pl(H,0);break;case 2:_.M3(H),Ro(_.mJ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Vp(H)}})};
LDu=function(){if(!sNu.has("Worker")){sNu.set("Worker",!0);var G={api:"BROWSER_API_WEB_WORKER"};G.available="Worker"in window?!0:!1;_.x7("apiTest",G)}};
Am1=function(G){return typeof G==="undefined"?"-1":String(Math.ceil(G/1048576))};
Mju=function(G,c){$pH(new Sc1(_.D(c,pzj).addToken,_.D(c,pzj).commonToken)).then(function(){_.Xl(G,"yt-invoke-instrument-manager-action-completed")},function(I){_.Xl(G,"yt-invoke-instrument-manager-action-error",I)})};
Pi=function(){return _.H1("HTML_DIR")==="rtl"};
Vj1=function(){var G,c;return(c=(G=window).matchMedia)==null?void 0:c.call(G,"(prefers-reduced-motion: reduce)").matches};
zn1=function(G){var c=_.wH().resolve(_.qR(_.mk));if(c&&c.isAnyTransitionEnabled){var I={};c.viewTransitionCoordinator.registerElement(G,(I.slide="miniplayer-page-transition",I["lockup-to-watch"]="miniplayer-page-transition",I["learning-journey"]="miniplayer-page-transition",I))}};
EbF=function(G,c,I){return{horizontalAlignment:G.x+I.width/2<c.width/2?"west":"east",verticalAlignment:G.y+I.height/2<c.height/2?"north":"south"}};
WDu=function(G,c,I,R,Z){Z=Z===void 0?new _.ts(0,0):Z;G=JmH(G,c,I,R,!1);return new _.ts(G.x+Z.x,G.y+Z.y)};
JmH=function(G,c,I,R,Z){Z=(Z===void 0?0:Z)?400:0;return new _.ts(G==="west"?16+(Pi()?Z:0):I.width-R.width-16-(Pi()?0:Z),c==="north"?16:I.height-R.height-16)};
i9H=function(G,c){var I=0;G&&(I+=76);c&&(I+=285);return I};
fhu=function(G){return _.dI(G)};
B2$=function(G){var c=1;G=G.split(":");for(var I=[];c>0&&G.length;)I.push(G.shift()),c--;G.length&&I.push(G.join(":"));return I};
rm0=function(G){var c=new _.LU;return _.xo(c,11,G)};
jN$=function(G){var c={};G=G.getAllResponseHeaders().split("\r\n");for(var I=0;I<G.length;I++)if(!_.mg(G[I])){var R=B2$(G[I]),Z=R[0];R=R[1];if(typeof R==="string"){R=R.trim();var K=c[Z]||[];c[Z]=K;K.push(R)}}return _.rx.map(c,function(m){return m.join(", ")})};
p8d=function(G,c){return G.JSC$9965_xhr_?G.JSC$9965_xhr_.getResponseHeader(c):null};
xpd=function(G,c){if(G.isDisposed())throw Error("Ea");G.p7.us("n");var I=_.Yz(G.p7,function(){return G.w68([c.yR,c.tJ0,c.waa,c.hwK])},"n");
G.p7.grg(I.length);G.p7.nC();return I};
tjG=function(G,c,I){Array.isArray(I)||(I=[String(I)]);_.SfB(G.JSC$10201_queryData_,c,I);return G};
B4G=function(){var G=_.BH.instance;_.T(function(c){return G.deferredInstallPrompt?c.yield(G.deferredInstallPrompt.prompt(),0):c.jumpTo(0)})};
hnG=function(G,c,I){if(_.xp(G))_.K4(G,c,I);else for(G=_.jP0(G);;){var R=G.next();if(R.done)break;c.call(I,R.value,void 0,G)}};
dp$=function(G,c){var I=[];hnG(c,function(R){try{var Z=_.ui.prototype.getWrapper.call(this,R,!0)}catch(K){if(K=="Storage: Invalid value was encountered")return;throw K;}Z===void 0?I.push(R):_.rHe(Z)&&I.push(R)},G);
return I};
A0$=function(G,c){dp$(G,c).forEach(function(I){_.ui.prototype.remove.call(this,I)},G)};
CKG=function(G){var c=_.nV;c._minimumZ=Math.max(c._minimumZ,G)};
H9u=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];Xzj=function(G,c){_.TB(G.vm);G.vm=c};
ymg=function(G,c,I,R){G.setState(5);var Z=!!G.dPo&&H9u.includes(_.O2(G.dPo)||"");try{var K=new _.Gp({program:c,globalName:I,mgK:{disable:!_.v("att_web_record_metrics")||!_.v("att_skip_metrics_for_cookieless_domains_ks")&&Z,un:"aGIf"}});K.zKM.then(function(){G.setState(6);R&&R(c)});
Xzj(G,K)}catch(m){G.setState(7),m instanceof Error&&_.Ck(m)}};
gbG=function(G,c,I,R,Z,K){var m=m===void 0?"trayride":m;I?(G.setState(2),_.My(_.BD(I),function(){if(window[m])ymg(G,R,m,Z);else{G.setState(3);var a=_.dng(I),O=document.getElementById(a);O&&(_.MkC(a),O.parentNode.removeChild(O));_.Ck(new _.iW("BL:ULB",I))}},K)):c?(K=_.$9("SCRIPT"),c instanceof _.PM?_.aE(K,c):K.textContent=c,K.nonce=_.KT(document),document.head.appendChild(K),document.head.removeChild(K),window[m]?ymg(G,R,m,Z):(G.setState(4),_.Ck(new _.iW("BL:ULBJ")))):_.Ck(new _.iW("BL:ULV"))};
YcW=function(){this.state=1;this.vm=null;this.dPo=void 0};
_.P=YcW.prototype;_.P.initialize=function(G,c,I,R){this.dPo=R;if(G.program){var Z;R=(Z=G.interpreterUrl)!=null?Z:null;if(G.interpreterSafeScript)Z=_.G1g(G.interpreterSafeScript);else{var K;Z=(K=G.interpreterScript)!=null?K:null}G.interpreterSafeUrl&&(R=_.Cj(G.interpreterSafeUrl).toString());gbG(this,Z,R,G.program,c,I)}else _.Ck(Error("sf"))};
_.P.isInitialized=function(){return!!this.vm};
_.P.getState=function(){return this.state};
_.P.isLoading=function(){return this.state===2};
_.P.invoke=function(G){G=G===void 0?{}:G;var c;this.vm?c=xpd(this.vm,{yR:G}):c=null;return c};
_.P.dispose=function(){Xzj(this,null);this.setState(8)};
_.P.setState=function(G){this.state=G};
var G0$=function(G,c){return G.vm.snapshot(c)},c4G=function(G,c){var I=_.DH("botguard_async_snapshot_timeout_ms",3E3);
c=c===void 0?{}:c;I=I===void 0?3E3:I;return G.vm?new Promise(function(R,Z){var K=!1,m=_.dJ.addJob(function(){K=!0;Z(Error("tf"))},1,I);
G.vm?G0$(G,{yR:c}).then(function(a){_.dJ.cancelJob(m);K||R(a)}).catch(function(a){_.dJ.cancelJob(m);
K||Z(a)}):(_.dJ.cancelJob(m),R(null))}):Promise.resolve(null)},Ied=["att/log"],B1F;
B1F={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var RD$={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},Zu1=function(G,c){return _.q9(G,{mode:"readwrite",enableRetries:!0},function(I){return _.kIA(I,c,"settingEntity")})},Kld=function(G,c,I){return _.q9(G,{mode:"readonly",
enableRetries:!0},function(R){return _.BRk(R,c,I)})},PbG=function(G){if(!G.storage)return!1;
a:{if(G.storage){try{var c=G.storage.get("TLPQtimestamp")}catch(I){}G=Number(c);if(!isNaN(G))break a}G=void 0}return G?Date.now()-G<864E5:!1},Q57=function(G){if(G.storage){try{var c=G.storage.get("TLPQindex")}catch(I){}G=Number(c);
if(!isNaN(G))return G}},mXr=function(G,c){G.queueProxy&&c.forEach(function(I){if(I.videoId&&I.trackingParams&&G.queueProxy instanceof _.DG){var R=_.k0();
G.queueProxy.attributionData.set(I.videoId,{enqueueingVe:_.kC(I.trackingParams).getAsJson(),enqueueingCsn:R?R:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Fa)()).toString()})}})},aej=function(G){var c=_.br9(G);
c!=G.currentSnapState_&&(G.currentSnapState_=c,G.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Qo=function(G){this.JSC$13390_networkManager_=G;
this.partCallbacks_=[]};
Qo.prototype.getCacheKeyForEndpoint=function(G){return _.NEb(G,!1)};
Qo.prototype.onPartsCallback_=function(G){this.partCallbacks_.forEach(function(c){G&&c(G)})};
var mv=function(G,c,I){Qo.call(this,G);this.player_=c;this.autoplayData_=I};
_.u(mv,Qo);mv.prototype.getCacheKeyForEndpoint=function(G){return _.NEb(G,!!this.autoplayData_)};
mv.prototype.getTempData=function(G,c){c=c.timeBeforeNextVideo;G={itct:G.clickTrackingParams,lact:_.wj(),pbis:c,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(G.autonav=1);return G};
mv.prototype.getXhrParams=function(G){return Object.assign({pbj:"prefetch"},G)};
mv.prototype.getParams=function(G){G={frags:G.fragmentsRequested.join(",")};_.v("kevlar_droppable_prefetchable_requests")&&(G.prefetch=1);return G};
var TaH=function(G){G.playerEvents_.forEach(function(c){G.player.removeEventListener(c.eventName,c.callback)});
G.playerEvents_.length=0},Ou7=function(G,c,I){this.player=G;
this.JSC$13400_taskManager=c;this.prefetchDelay=I;this.completionResolver_=null;this.playerEvents_=[]};
Ou7.prototype.start=function(){var G=this;this.completionResolver_=_.HU();_.hE(this.completionResolver_.promise,function(){TaH(G);G.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var eDr=function(G,c,I){G.player.addEventListener(c,I);G.playerEvents_.push({eventName:c,callback:I})},Nar={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},leW={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},qhW=function(G,c,I){Ou7.call(this,G,c,I);this.cueId_="playbackTrigger-"+Math.random()};
_.u(qhW,Ou7);
qhW.prototype.prepareTrigger=function(G){var c=this,I=this.player.getDuration(),R=this.player.getVideoData(),Z=R.isLive&&R.hasProgressBarBoundaries;if(Z&&R.progressBarEndPositionUtcTimeMillis){var K=R.progressBarEndPositionUtcTimeMillis/1E3;isNaN(K)||(I=K)}var m=0;this.prefetchDelay>=0?Z?R.progressBarStartPositionUtcTimeMillis&&(R=R.progressBarStartPositionUtcTimeMillis/1E3,isNaN(R)||(m=R+this.prefetchDelay)):m=this.prefetchDelay:m=I+this.prefetchDelay;Z?this.player.addUtcCueRange(this.cueId_,m,I):
this.player.addCueRange(this.cueId_,m,I);_.hE(G.promise,function(){c.player.removeCueRange(c.cueId_)});
eDr(this,"onCueRangeEnter",function(a){a==c.cueId_&&G.resolve(I-m)})};
var wSG=function(G,c){G.fragmentConfiguration_[c].requiredKeys.every(function(I){return!!G.prefetchedData_[I]})&&(G.validatedFragments_.push(c),c=G.missingFragments_.indexOf(c),c!==-1&&G.missingFragments_.splice(c,1))},FlH=function(G){G.prefetchedFragments_.forEach(function(c){wSG(G,c)})},n1u=function(G,c,I){this.pageFragments_=G;
this.prefetchedFragments_=c;this.fragmentConfiguration_=leW;this.prefetchedData_=I;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;FlH(this)},v1W=function(){},DXF=function(G){this.JSC$13414_playlistManager_=G};
_.u(DXF,v1W);DXF.prototype.getPrefetchEndpoint=function(){return this.JSC$13414_playlistManager_.getAutoplayEndpoint()};
var o1$=function(G){this.autonavEndpoints_=G};
_.u(o1$,v1W);o1$.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var UXu=function(G,c,I,R,Z){this.autonavEndpoints=G;this.foregroundTrigger=c;this.backgroundTrigger=I;this.pageType=R;this.isInPlaylist=Z},u8r=function(G,c){if(G.webPrefetchData&&G.webPrefetchData.navigationEndpoints&&G.webPrefetchData.navigationEndpoints.length){G=G.webPrefetchData.navigationEndpoints;
var I=_.D(G[0],_.fR);if(I.watchEndpointSupportedPrefetchConfig&&I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var R=I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;I=R.playbackRelativeSecondsPrefetchCondition;I=typeof I==="number"&&Math.abs(I)<c.videoDuration?I:void 0;R=R.countdownUiRelativeSecondsPrefetchCondition;R=typeof R!=="number"||_.v("prefetch_job_config_cleanup_ks")&&c.inPlaylist?void 0:R;if(typeof R==="number")return new UXu(G,c.makeUpNextTrigger(R),c.makePlaybackTrigger(R),
"watch",c.inPlaylist);if(typeof I==="number")return new UXu(G,c.makePlaybackTrigger(I),null,"watch",c.inPlaylist)}}},bu$=function(G){return G.prefetchJobConfig_.backgroundTrigger?_.gK(_.xeb)()==0?G.prefetchJobConfig_.backgroundTrigger:G.prefetchJobConfig_.foregroundTrigger:G.prefetchJobConfig_.foregroundTrigger},k0$=function(G){_.BL(document,"visibilitychange",G.onVisibilityChange_,!1,G)},ao=function(G){Qo.call(this,G)};
_.u(ao,Qo);ao.prototype.getCacheKeyForEndpoint=function(G){return Qo.prototype.getCacheKeyForEndpoint.call(this,G)};
ao.prototype.getTempData=function(){return{}};
ao.prototype.getXhrParams=function(G){return G};
ao.prototype.getParams=function(){return{}};
var s5G=function(G,c,I){var R=G.prefetchDelay*1E3;if(Math.abs(R)>c)I.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Z=R,K=c-R;R<0&&(Z=c+R,K=Math.abs(R));var m=G.JSC$13400_taskManager.addJob(function(){I.resolve(K/1E3)},10,Z);
I.promise.thenCatch(function(){G.JSC$13400_taskManager.cancelJob(m)})}},LlF=function(G,c,I){Ou7.call(this,G,c,I)};
_.u(LlF,Ou7);LlF.prototype.prepareTrigger=function(G){var c=this;eDr(this,"onAutonavCoundownStarted",function(I){s5G(c,I,G)})};
var A4H=function(G){G.pendingPrefetchJob_&&(G.pendingPrefetchJob_.cancel(),G.pendingPrefetchJob_=null)},$XW=function(G,c,I){if(!G.triggeredTargets.has(c)){var R=_.j40(G,c);
R.action=I;_.rBe(G,c,R)}},ShG=function(G){_.Sz9();
_.ctr("cpt")&&_.Ck(Error("lh"));_.Rq.requestAnimationFrame(function(){_.Rq.setTimeout(function(){_.LC("cpt");var c=_.M2("vpl"),I=_.M2("cpt");c&&I&&_.LC("ol",Math.max(c,I))})});
try{_.LC("fr_s"),G()}catch(c){_.hg(c)}_.Rq.requestAnimationFrame(function(){_.LC("bcp")})},pSW=function(G,c){G.serviceEndpointHandlers.push(c)},MIH=function(G,c){c=G.pendingPages_.indexOf(c);
c>-1&&G.pendingPages_.splice(c,1)},VI$=function(G,c){var I=_.ZwV.indexOf(c);
I>-1&&_.ZwV.splice(I,1);G.targetPage_==c?(G.abort(),_.PFT(G)):MIH(G,c)},zDu=function(G,c,I,R){c={challenge:c};
I&&(c.webResponse=I);return _.UO(G.innertubeTransportService,c,_.gL(Ied),R)},E1$=function(G,c,I){if(!c.challenge)throw Error("ri");
if(c.botguardData&&c.botguardData.program){var R=new YcW;R.initialize(c.botguardData,function(){c4G(R,{atr_challenge:c.challenge}).then(function(Z){if(!Z)throw Error("si");return zDu(G,c.challenge,Z,I)}).catch(function(Z){_.Ck(Z);
return zDu(G,c.challenge,void 0,I)})},void 0)}else zDu(G,c.challenge,void 0,I)},J47=function(G,c,I){var R={};
c.ids&&(R.ids=[].concat(_.jn(c.ids)));c.engagementType&&(R.engagementType=c.engagementType);return _.UO(G.innertubeTransportService,R,_.gL(_.REe),I).then(function(Z){if(!Z)throw new _.iW("GetAttestationChallenge returned falsy");E1$(G,Z,I)}).thenCatch(function(Z){_.hg(Z)})},Wl1=function(G,c,I){return new _.Lk(function(R,Z){var K;
return _.T(function(m){if(m.nextAddress==1){var a=m.yield,O=c.engagementType,N=c.ids,q={};N=_.Q(N!=null?N:[]);for(var w=N.next();!w.done;w=N.next())w=w.value,w.encryptedVideoId?q.encryptedVideoId=w.encryptedVideoId:w.externalChannelId?q.externalChannelId=w.externalChannelId:w.commentId?q.commentId=w.commentId:w.externalOwnerId?q.externalOwnerId=w.externalOwnerId:w.artistId?q.artistId=w.artistId:w.playlistId?q.playlistId=w.playlistId:w.externalPostId?q.externalPostId=w.externalPostId:w.shareId&&(q.shareId=
w.shareId);return a.call(m,Lwu(O,q),2)}K=m.yieldResult;if(!K.challenge)return _.Ck(Error("ti")),J47(G,c,I).then(R,Z),m.return();a=K;O={challenge:a.challenge};O.webResponse=a.webResponse;O.engagementType=c.engagementType;O.ids=c.ids;_.UO(G.innertubeTransportService,O,_.gL(Ied),I).then(R,Z);_.Vp(m)})})},ang=function(G,c){var I,R,Z,K;
_.T(function(m){if(m.nextAddress==1){I=_.D(c,_.Z$e);if(!(I&&I.listId&&G.response&&G.response.playingVideoId)||G.listId!==I.listId)return m.return();G.index===void 0&&(G.index=0);return m.yield(_.scB(G.JSC$13253_playlistNetworkManager,I.listId,G.index,G.response.playingVideoId),2)}R=m.yieldResult;if(!R)return m.return();Z=R.playlistId;K=R.playlistPanelRenderer;G.setPlaylistData(Z,K,R.autoplayRenderer);_.Vp(m)})},iur=function(G,c,I){var R=G.getParams(I),Z=_.aA0(c,R),K=G.getTempData(c,I);
K.endpoint=JSON.stringify(c);_.v("enable_unknown_lact_fix_on_html5")&&(_.wH().resolve(_.uf),K.lact=_.wj());var m={headers:{"X-YouTube-STS":_.H1("STS"),"x-youtube-csoc":1}};_.x0(Z,K);return new _.Lk(function(a,O){var N=G.getXhrParams(R),q;_.v("kevlar_cache_on_ttl_player")&&(q=_.wH().resolve(_.MB));q&&_.OSd(q,c)?_.Fr0(q,c,K,window.location.href).then(function(w){w?a(w):O()},O):_.GLN(G.JSC$13390_networkManager_,c,N,G.onPartsCallback_.bind(G),m).then(function(w){w?a(w):O()},O)})},fer=function(G,c){G.triggerPromise_=
c.start();
G.triggerPromise_.then(function(I){var R=G.prefetchEndpointProvider_.getPrefetchEndpoint();if(R){var Z=Nar[G.prefetchJobConfig_.pageType].prefetchedFragments;G.prefetchRequestPromise_=iur(G.JSC$13426_networkPrefetchRequest_,R,{fragmentsRequested:Z,timeBeforeNextVideo:I});G.prefetchResponseCacheKey_=G.JSC$13426_networkPrefetchRequest_.getCacheKeyForEndpoint(R);k0$(G);G.prefetchRequestPromise_.then(function(K){G.storePrefetchedDataCallback_(G.prefetchResponseCacheKey_,K);if(_.v("web_prefetch_preload_video")&&
Z.length===1&&Z[0]==="pl"&&K&&!K.playerAds&&!K.adPlacements){var m=_.D(R,_.vH),a=m!=null,O={raw_player_response:K,watch_endpoint:m};(K=_.wH().resolve(a?_.mWB:_.a9))&&R&&K.then(function(N){a&&_.v("web_queue_preload_video")?(O.prefer_gapless=!0,N.queueNextVideo(O)):N.preloadVideoByPlayerVars(O)})}})}})},TS=function(G,c,I,R){this.prefetchEndpointProvider_=G;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=c;this.prefetchJobConfig_=I;this.JSC$13426_networkPrefetchRequest_=R;this.prefetchResponseCacheKey_=null};
TS.prototype.enqueue=function(){this.triggerPromise_||(fer(this,bu$(this)),_.Ld(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
TS.prototype.resolve=function(){this.cancel()};
TS.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.");k0$(this)};
TS.prototype.onVisibilityChange_=function(){var G=this;_.gK(_.xeb)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){G.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||fer(this,bu$(this))};
var Bag=function(G,c,I,R,Z){c&&(c==null?0:c.videoId)&&I&&I.entries&&_.v("kevlar_enable_shorts_prefetch_in_sequence")&&(A4H(G),c=I.entries.map(function(K){var m;return(m=_.D(K.command,_.vH))==null?void 0:m.videoId}).indexOf(c.videoId),I=I.entries[c+1],I!=null&&I.command&&!_.D(I==null?void 0:I.command,_.wt)&&(R=new UXu([I.command],new qhW(R,_.dJ,1),null,"shorts",!1),G.pendingPrefetchJob_=new TS(new o1$(R.autonavEndpoints),function(){return!1},R,new ao(Z)),G.pendingPrefetchJob_.enqueue()))},r4F=function(G,
c,I,R,Z,K){var m=_.Jt.getInstance();
if(!_.v("block_all_player_prefetch_requests")){A4H(G);var a=!!I.getPlaylistId(),O=I.getVideoData().isLive&&I.getVideoData().hasProgressBarBoundaries;if((m.getState()==2||a||O)&&(!I.getVideoData().isLive||O)){m={inPlaylist:a,videoDuration:I.getDuration(),makeUpNextTrigger:function(q){return new LlF(I,_.dJ,q)},
makePlaybackTrigger:function(q){return new qhW(I,_.dJ,q)}};
var N=u8r(c,m);N&&(G.pendingPrefetchJob_=new TS(N.isInPlaylist?new DXF(Z):new o1$(N.autonavEndpoints),function(q,w){w=new n1u(Nar[N.pageType].pageFragments,Nar[N.pageType].prefetchedFragments,w);return _.MaK(w)?(G.prefetchCache_.set(q,w),!0):!1},N,new mv(R,I,K,Z)),G.pendingPrefetchJob_.enqueue())}}},j5g=function(){var G=_.Ah();
G.signals.parkOrScheduleJob(function(){var c=G.storage;if(c.storage)if(PbG(c)){var I=c.getPlaylistId();c=Q57(c);I=!!I&&c!==void 0}else c.clear(),I=!1;else I=!1;if(I){I=G.JSC$13253_pageManager.isOnWatch();a:{var R=G.storage;if(R.storage&&PbG(R)&&(c=R.getPlaylistId(),R=Q57(R),c&&R!==void 0)){I={recoverPlaylistCommand:{listId:c,index:R,openMiniplayer:!I,openListPanel:I,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}I=void 0}I&&_.Rk(G.JSC$13253_actionRouter,[I],null)}},0,"ma")},xXu=function(G,c,I,
R,Z,K){var m=_.qj(7111);
_.CJ(G.JSC$18773_screenManager,m,K?_.kC(K):void 0);_.XF(G.JSC$18773_screenManager,m,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:R,offlineId:c,offlineabilityFormatType:I,isDefaultFormatType:Z==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Z}})},tI1=function(G,c,I,R,Z){var K,m,a,O,N;
return _.T(function(q){if(q.nextAddress==1)return q.yield(G.JSC$18773_playerApiPromise,2);K=q.yieldResult;xXu(G,c,I,"OFFLINE_OBJECT_TYPE_PLAYLIST",R,Z);if(a=_.Coe[G.entityTypeMap.listEntityType])N={},m=(N[a]={maximumDownloadQuality:(O=I)!=null?O:void 0},N);return q.yield(K.queueOfflineAction(c,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",m),0)})},hDW=function(G,c){var I,R,Z,K;
return _.T(function(m){if(m.nextAddress==1)return m.yield(G.JSC$18773_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3){I=m.yieldResult;if(!I)return _.Ck(new _.iW("PES is undefined")),m.return();R=_.mx(c,"downloadStatusEntity");return m.yield(Kld(I,R,"downloadStatusEntity"),3)}Z=m.yieldResult;return m.return((K=Z)==null?void 0:K.downloadState)})},dX0=function(G,c,I,R,Z){var K,m,a,O,N,q;
return _.T(function(w){switch(w.nextAddress){case 1:return w.yield(G.JSC$18773_playerApiPromise,2);case 2:K=w.yieldResult;xXu(G,c,I,"OFFLINE_OBJECT_TYPE_VIDEO",R,Z);if(a=_.Coe[G.entityTypeMap.singleEntityType])N={},m=(N[a]={maximumDownloadQuality:(O=I)!=null?O:void 0},N);return w.yield(hDW(G,c),3);case 3:q=w.yieldResult;if(q!=="DOWNLOAD_STATE_USER_DELETED"){w.jumpTo(4);break}return w.yield(G.deleteVideo(c),4);case 4:return w.yield(K.queueOfflineAction(c,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
m),0)}})},Cb1=function(G,c,I,R,Z){return _.T(function(K){return K.nextAddress==1?K.yield(G.deleteVideo(c,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):K.yield(dX0(G,c,I,R,Z),0)})},Hur=function(G,c,I){var R,Z;
return _.T(function(K){if(K.nextAddress==1)return K.yield(G.JSC$18773_playerApiPromise,2);R=K.yieldResult;Z=_.mx(c,"mainVideoDownloadStateEntity");return K.yield(R.updateDownloadState(Z,I),0)})},JEr=function(G){var c=_.wH().resolve(_.k8);
return _.T(function(I){if(I.nextAddress==1)return c.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&c.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?I.jumpTo(2):I.yield(c.resumeVideoDownload(G),2);if(I.nextAddress!=4)return I.yield(Hur(c,G,c.previousDownloadStateForVideo[G]),4);delete c.previousDownloadStateForVideo[G];_.Vp(I)})},zb7=function(G,c){var I;
return _.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$18773_playerApiPromise,2);I=R.yieldResult;return R.yield(I.queueOfflineAction(c,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},pL$=function(){var G=_.wH().resolve(_.k8),c,I;
return _.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$18773_playerApiPromise,2);if(R.nextAddress!=3)return c=R.yieldResult,I={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},R.yield(c.queueOfflineAction("!*$_ALL_ENTITIES_!*$",G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",I),3);var Z=G.JSC$18773_commandHandler,K=Z.resolveCommand,m=_.mJ("DELETING_ALL",void 0,"Downloads are being deleted");K.call(Z,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Gv(m)}},
popupType:"TOAST"}});_.Vp(R)})},XSj=function(G,c){var I,R,Z,K,m,a;
return _.T(function(O){if(O.nextAddress==1)return O.yield(G.JSC$18773_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return I=O.yieldResult,I?O.yield(Kld(I,_.kV,"downloadsPageViewConfigurationEntity"),3):(_.Ck(new _.iW("PES is undefined")),O.return());Z=(R=O.yieldResult)!=null?R:{};a=(m=(K=Z)==null?void 0:K.downloadsUpsellBannerVisibility)!=null?m:{};return a.visibleWithConnection?O.yield(c.refreshAllStaleEntities(0),0):O.jumpTo(0)})},y4F=function(G){var c,I;
return _.T(function(R){if(R.nextAddress==1)return R.yield(G.JSC$18773_prefStorage,2);c=R.yieldResult;return R.return((I=c)==null?void 0:I.get("sdois"))})},g1W=function(G){var c,I,R,Z,K,m;
return _.T(function(a){if(a.nextAddress==1)return a.yield(G.JSC$18773_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3){c=a.yieldResult;if(!c)return _.Ck(new _.iW("PES is undefined")),a.return();I=_.mx("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return a.yield(Kld(c,I,"settingEntity"),3)}R=a.yieldResult;return a.return((m=(Z=R)==null?void 0:(K=Z.settingOptionValue)==null?void 0:K.boolValue)!=null?m:!1)})},Yhg=function(G,c){var I,R,Z,K;
return _.T(function(m){switch(m.nextAddress){case 1:return((I=c)==null?void 0:I.formatType)===void 0?m.return():m.yield(G.JSC$18773_prefStorage,2);case 2:R=m.yieldResult;if(R===void 0)return m.return();if(((Z=c)==null?void 0:Z.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return m.yield(R.set("lmqf",c.formatType),8);if(((K=c)==null?void 0:K.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){m.jumpTo(0);break}return m.yield(R.set("lmqf",c.formatType),6);case 6:return m.yield(R.set("lmqflst",
Math.floor((0,_.Fa)())),0);case 8:return m.yield(R.remove("lmqflst"),0)}})},GZH=function(G){var c,I;
return _.T(function(R){switch(R.nextAddress){case 1:return R.yield(G.JSC$18773_prefStorage,2);case 2:c=R.yieldResult;if(!c){R.jumpTo(3);break}return R.yield(c.get("lmqflst"),4);case 4:if(I=R.yieldResult,I!==void 0)return R.return(I);case 3:return R.return(0)}})},ck$=function(G){var c,I,R;
return _.T(function(Z){return Z.nextAddress==1?Z.yield(G.JSC$18773_prefStorage,2):Z.nextAddress!=3?(c=Z.yieldResult,Z.yield((I=c)==null?void 0:I.get("ldtmes"),3)):Z.return((R=Z.yieldResult)!=null?R:!1)})},Gpr=function(){var G=_.wH().resolve(_.k8),c;
return _.T(function(I){if(I.nextAddress==1)return I.yield(G.JSC$18773_prefStorage,2);c=I.yieldResult;return c===void 0?I.return():I.yield(c.set("ldtmes",!0),0)})},I9F=function(G){var c,I;
return _.T(function(R){switch(R.nextAddress){case 1:return R.yield(G.JSC$18773_prefStorage,2);case 2:c=R.yieldResult;if(c===void 0){R.jumpTo(3);break}return R.yield(c.get("lmqf"),4);case 4:if(I=R.yieldResult,I!==void 0)return R.return(I);case 3:return R.return("SD")}})},tou=function(G,c,I){var R,Z,K,m,a,O,N,q;
_.T(function(w){switch(w.nextAddress){case 1:return w.yield(Yhg(G,(R=c)==null?void 0:R.actionParams),2);case 2:Z=c.playlistId;if(!Z)return w.return();if(c.action==="ACTION_ADD")return((m=c.actionParams)==null?0:m.formatType)?w.yield(tI1(G,Z,c.actionParams.formatType,(q=c.actionParams)==null?void 0:q.settingsAction,I),0):w.yield(G.offlineWebClientEligibility,14);if(c.action==="ACTION_REMOVE_WITH_PROMPT"){var F=G.JSC$18773_commandHandler,n=F.resolveCommand,U=_.H1("INNERTUBE_CLIENT_NAME");var k=U===
"WEB_REMIX"?_.mJ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.mJ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var p=U==="WEB_REMIX"?[_.mJ("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];U=U==="WEB_REMIX"?_.mJ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.mJ("DELETE",void 0,"Delete");var M=_.mJ("CANCEL",void 0,"Cancel");k=ANu(k,p,U,M,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Z});n.call(F,{openPopupAction:k});return w.return()}if(c.action===
"ACTION_REMOVE")return w.yield(zb7(G,Z),0);if(c.action!=="ACTION_SYNC"){w.jumpTo(0);break}return w.yield(G.JSC$18773_playerApiPromise,9);case 9:return K=w.yieldResult,w.yield(K.queueOfflineAction(Z,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return a=w.yieldResult,w.yield(I9F(G),15);case 15:return O=w.yieldResult,w.yield(GZH(G),16);case 16:N=w.yieldResult,c.onAddCommand&&G.JSC$18773_commandHandler.resolveCommand(c.onAddCommand,{form:{preferredFormatType:O,
offlineWebClientEligibility:a,lastOfflineQualitySettingsSavedMs:N.toString()}}),w.jumpTo(0)}})},jKW=function(G,c,I){var R,Z,K,m,a,O,N,q,w,F,n,U,k,p,M,z,t,x,C,H;
_.T(function(g){switch(g.nextAddress){case 1:return g.yield(Yhg(G,(R=c)==null?void 0:R.actionParams),2);case 2:Z=c.videoId;if(!Z)return g.return();if(c.action==="ACTION_REMOVE_WITH_PROMPT"){var QO=G.JSC$18773_commandHandler,T8=QO.resolveCommand,kp=_.H1("INNERTUBE_CLIENT_NAME");var FB=kp==="WEB_REMIX"?_.mJ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.mJ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var oq=kp==="WEB_REMIX"?[_.mJ("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];kp=kp==="WEB_REMIX"?_.mJ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.mJ("DELETE",void 0,"Delete");var Wr=_.mJ("CANCEL",void 0,"Cancel");FB=ANu(FB,oq,kp,Wr,{signal:"DELETE_DOWNLOAD",targetId:Z});T8.call(QO,{openPopupAction:FB});return g.return()}if(c.action==="ACTION_ADD")return((z=c.actionParams)==null?0:z.formatType)?g.yield(dX0(G,Z,c.actionParams.formatType,(H=c.actionParams)==null?void 0:H.settingsAction,I),0):g.yield(G.offlineWebClientEligibility,
28);if(c.action==="ACTION_RETRY")return g.yield(I9F(G),24);if(c.action==="ACTION_PAUSE")return g.yield(G.pauseVideoDownload(Z),0);if(c.action==="ACTION_RESUME")return g.yield(G.resumeVideoDownload(Z),0);if(c.action==="ACTION_REMOVE")return g.yield(hDW(G,Z),18);if(!_.v("kevlar_enable_download_to_mobile")){g.jumpTo(0);break}K=_.D(c.onAddCommand,_.Y5);a=(m=K)==null?void 0:m.isCrossDeviceDownload;if(!c.onAddCommand||!a){g.jumpTo(0);break}O="HD";return g.yield(GZH(G),16);case 16:return N=g.yieldResult,
g.yield(ck$(G),17);case 17:q=g.yieldResult;G.JSC$18773_commandHandler.resolveCommand(c.onAddCommand,{form:{preferredFormatType:O,lastOfflineQualitySettingsSavedMs:N.toString(),downloadToMobileEduShown:q}});g.jumpTo(0);break;case 18:return w=g.yieldResult,G.previousDownloadStateForVideo[Z]=(F=w)!=null?F:"DOWNLOAD_STATE_UNKNOWN",g.yield(Hur(G,Z,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(G.previousDownloadStateForVideo[Z]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&G.previousDownloadStateForVideo[Z]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){g.jumpTo(20);break}return g.yield(G.pauseVideoDownload(Z),20);case 20:QO=_.mJ("DELETED_VIDEO",void 0,"Video deleted from downloads.");T8=_.mJ("UNDO_ACTION",void 0,"Undo");FB=_.mJ("CLOSE",void 0,"Close");n={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Gv(QO),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Gv(T8),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Z}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:QO+" "+T8}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Z}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:FB}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};G.JSC$18773_commandHandler.resolveCommand(n);
g.jumpTo(0);break;case 24:U=g.yieldResult;U==="UNKNOWN_FORMAT_TYPE"&&(U="SD");k="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((p=c.actionParams)==null?0:p.formatType)U=c.actionParams.formatType,k=(M=c.actionParams)==null?void 0:M.settingsAction;return g.yield(Cb1(G,Z,U,k,I),25);case 25:return g.return();case 28:return t=g.yieldResult,g.yield(I9F(G),29);case 29:return x=g.yieldResult,g.yield(GZH(G),30);case 30:C=g.yieldResult,c.onAddCommand&&G.JSC$18773_commandHandler.resolveCommand(c.onAddCommand,
{form:{preferredFormatType:x,offlineWebClientEligibility:t,lastOfflineQualitySettingsSavedMs:C.toString()}}),g.jumpTo(0)}})},Rld=function(G,c){var I,R,Z,K,m,a,O;
return _.T(function(N){if(N.nextAddress==1)return N.yield(G.JSC$18773_persistentStorePromiseAccessor(),2);I=N.yieldResult;if(!I)return _.Ck(new _.iW("PES is undefined")),N.return();if((R=c)==null||!R.settingItemId)return N.return();Z=c;K=Z.settingItemId;m=Z.boolValue;a=_.mx(K,"settingEntity");O={key:a,settingOptionValue:{boolValue:m}};return N.yield(Zu1(I,O),0)})},ZqW=function(G,c){var I,R,Z,K,m,a,O;
return _.T(function(N){switch(N.nextAddress){case 1:return N.yield(G.JSC$18773_prefStorage,2);case 2:return I=N.yieldResult,R=_.OC(),N.yield(G.JSC$18773_persistentStorePromiseAccessor(),3);case 3:return Z=N.yieldResult,I?Z?N.yield(I.get("sdois"),4):(_.Ck(new _.iW("PES is undefined")),N.return()):(_.Ck(new _.iW("prefStorage is undefined")),N.return());case 4:K=N.yieldResult;a=(m=c)==null?void 0:m.boolValue;a===void 0||_.v("kevlar_set_sd_enabled_flag_killswitch")||_.eW(0,197,!0);K===void 0&&a===void 0&&
(a=!1);if(a===void 0){N.jumpTo(0);break}return N.yield(I.set("sdois",a),6);case 6:return _.v("kevlar_set_sd_enabled_flag_killswitch")||(_.eW(0,196,a),R.save()),O={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:a},N.yield(Rld(G,O),0)}})},KB0=function(G,c,I){var R,Z,K,m,a;
return _.T(function(O){switch(O.nextAddress){case 1:return O.yield(y4F(G),2);case 2:return R=O.yieldResult,O.yield(ZqW(G,I),3);case 3:return O.yield(y4F(G),4);case 4:return Z=O.yieldResult,K=Z!==R,O.yield(g1W(G),5);case 5:m=O.yieldResult&&!_.v("kevlar_modern_downloads_page");if((a=!Z&&!m)||K)return O.yield(c.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);O.jumpTo(0)}})},iU1=function(){var G=_.wH().resolve(_.k8),
c;
_.T(function(I){switch(I.nextAddress){case 1:return I.yield(G.JSC$18773_playerApiPromise,2);case 2:c=I.yieldResult;if(!_.v("kevlar_force_refresh_smart_downloads")){I.jumpTo(3);break}return I.yield(c.refreshAllStaleEntities(0),4);case 4:return I.return();case 3:return I.yield(c.refreshAllStaleEntities(),5);case 5:return I.yield(KB0(G,c),6);case 6:if(_.v("enable_download_pep_for_premium_countries_web"))return I.yield(XSj(G,c),0);I.jumpTo(0)}})},dU7=function(G,c){var I,R;
_.T(function(Z){switch(Z.nextAddress){case 1:return Z.yield(G.JSC$18773_playerApiPromise,2);case 2:I=Z.yieldResult;switch((R=c)==null?void 0:R.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Z.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Z.jumpTo(4)}Z.jumpTo(0);break;case 3:return Z.yield(KB0(G,I,c),6);case 6:Z.jumpTo(0);break;case 4:return Z.yield(Rld(G,c),7);case 7:Z.jumpTo(0)}})},P3W=function(G,c){var I,R,Z;
return _.T(function(K){if(K.nextAddress==1)return K.yield(G.JSC$18773_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3){I=K.yieldResult;if(!I)return _.Ck(new _.iW("PES is undefined")),K.return(!1);if(!c)return K.return(!1);R=_.mx(c,"mainVideoEntity");return K.yield(Kld(I,R,"mainVideoEntity"),3)}Z=K.yieldResult;return K.return(Z!==void 0)})},HUd=function(G){var c=_.wH().resolve(_.k8),I,R,Z,K,m,a,O,N,q,w,F;
_.T(function(n){switch(n.nextAddress){case 1:return n.yield(c.JSC$18773_playerApiPromise,2);case 2:I=n.yieldResult;Z=(R=G)==null?void 0:R.actions;if(!Z)return n.return();K=_.Q(Z);m=K.next();case 3:if(m.done){n.jumpTo(0);break}a=m.value;N=O=void 0;if(!(((O=a)==null?0:O.entityKey)&&((N=a)==null?0:N.actionType))){n.jumpTo(4);break}q=_.Kp(a.entityKey);w=q.entityId;F=q.entityType;return n.yield(I.queueOfflineAction(w,F,a.actionType),4);case 4:m=K.next(),n.jumpTo(3)}})},Qkr=function(G,c){var I,R,Z,K,m;
return _.T(function(a){if(a.nextAddress==1)return a.yield(G.JSC$18773_prefStorage,2);if(a.nextAddress!=3)return(I=a.yieldResult)?a.yield(I.get("psi"),3):a.return();R=a.yieldResult;m={isPaused:c,lastSyncTimestamp:(K=(Z=R)==null?void 0:Z.lastSyncTimestamp)!=null?K:"0"};return a.yield(I.set("psi",m),0)})},gz0=function(G){var c=_.wH().resolve(_.k8),I,R,Z,K,m,a,O,N;
return _.T(function(q){switch(q.nextAddress){case 1:return q.yield(c.JSC$18773_playerApiPromise,2);case 2:I=q.yieldResult;Z=((R=G)==null?void 0:R.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((a=G)==null?void 0:a.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":K="!*$_ALL_ENTITIES_!*$";m="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return q.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return q.jumpTo(4)}q.jumpTo(5);break;case 3:return q.yield(Qkr(c,Z),6);case 6:q.jumpTo(5);break;case 4:return q.yield(P3W(c,(O=G)==null?void 0:O.videoId),7);case 7:q.yieldResult&&(K=(N=G)==null?void 0:N.videoId,m="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");q.jumpTo(5);break;case 5:if(K&&m)return q.yield(I.queueOfflineAction(K,"videoPlaybackPositionEntity",m),0);q.jumpTo(0)}})},m7u=function(G,c,I){G.hasRegisteredHoverCallbacks=!0;
G.hoverEnterCallback=c!=null?c:void 0;G.hoverLeaveCallback=I!=null?I:void 0},a97=function(G,c){var I;
c!==1||((I=G.currentPersistentToast)==null?0:I.isOpened())?G.openToast():G.currentPersistentToast=void 0},TBH=function(G,c){var I;
return(I=G.transitionTasksMap.get(c))!=null?I:[]},OqH=function(G,c){var I=[];
G.elementTasksMap.forEach(function(R){(R=R.get(c))&&I.push(R)});
return I},el$=function(G,c,I,R,Z){Z=Z===void 0?{}:Z;
var K=c.defaultViewTransitionOptions;return Object.assign({},K,Z,{beforeTransition:function(){R.forEach(function(N){N.beforeTransition()});
var m;(m=K.beforeTransition)==null||m.call(K);var a,O;(O=(a=Z).beforeTransition)==null||O.call(a);I.forEach(function(N){N.beforeTransition()})},
afterTransition:function(){R.forEach(function(N){N.afterTransition()});
var m;(m=K.afterTransition)==null||m.call(K);var a,O;(O=(a=Z).afterTransition)==null||O.call(a);I.forEach(function(N){N.afterTransition()})},
ignoredErrors:G.config.ignoredErrors})},NBj=function(G,c,I){G.transitionTasksMap.has(c)?G.transitionTasksMap.get(c).push(I):(G=new _.iW("Transition task registered for unknown transition type",c),_.hg(G))},l9g=function(G,c,I){if(G.transitionTasksMap.has(c)){var R=G.transitionTasksMap.get(c).filter(function(Z){return Z!==I});
G.transitionTasksMap.set(c,R)}},qBd=function(G,c){var I=TBH(G,c);
I=_.Q(I);for(var R=I.next();!R.done;R=I.next())R=R.value,R.runOnce&&l9g(G,c,R);G.elementTasksMap.forEach(function(Z,K){Z.forEach(function(m,a){m.runOnce&&c===a&&(Z.delete(a),Z.size===0&&G.elementTasksMap.delete(K))})})},wwW=function(G,c,I){var R,Z,K,m,a,O,N,q,w;
_.T(function(F){if(F.nextAddress==1){if(G.config.disableAllTransitions)return F.return(c());if((R=I)==null||!R.transitionType)return F.return(_.YU$(c,Object.assign({},(Z=I)==null?void 0:Z.viewTransitionOptions,{ignoredErrors:G.config.ignoredErrors})));K=I;m=K.transitionType;a=K.viewTransitionOptions;O=G.config.transitionConfigs.get(m);if(!O)return F.return(c());N=TBH(G,m);q=OqH(G,m);w=_.YU$(c,el$(G,O,N,q,a));return F.yield(w,2)}qBd(G,m);_.Vp(F)})},FBG=function(){var G,c,I,R;
return _.T(function(Z){if(Z.nextAddress==1)return G=navigator,(c=G.storage)!=null&&c.persisted?Z.yield((I=G.storage)==null?void 0:I.persisted(),2):Z.return("PERSISTED_STATE_NOT_SUPPORTED");R=Z.yieldResult;return Z.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},nS7=function(){var G,c,I,R;
return _.T(function(Z){if(Z.nextAddress==1)return G=navigator,(c=G.storage)!=null&&c.persist?Z.yield((I=G.storage)==null?void 0:I.persist(),2):Z.return("PERSISTED_STATE_NOT_SUPPORTED");R=Z.yieldResult;return Z.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},vS1=function(){var G,c;
return _.T(function(I){switch(I.nextAddress){case 1:return G="PERSISTED_STATE_NOT_SUPPORTED",_.s9(I,2),I.yield(FBG(),4);case 4:G=I.yieldResult;if(G!=="PERSISTED_STATE_NOT_GRANTED"){I.jumpTo(5);break}return I.yield(nS7(),6);case 6:G=I.yieldResult;case 5:_.Pl(I,3);break;case 2:c=_.M3(I),c instanceof Error&&_.hg(c);case 3:return _.x7("persistentStorageStateChecked",{persistedState:G}),I.return(G)}})},D7g=function(G,c){var I=[],R=!1;
c=_.Q(c);for(var Z=c.next();!Z.done;Z=c.next()){Z=G.moduleRegistry[Z.value];var K=void 0,m=void 0;((K=Z)==null?0:K.isFetching)&&((m=Z)==null?0:m.resolver)?(I.push(Z.resolver.promise),R=!0):(Z=new _.Te,Z.resolve(void 0),I.push(Z.promise))}return R?Promise.all(I):void 0},oSj=function(G,c,I){if(G.isAnyTransitionEnabled){var R={beforeTransition:function(){I(!0);
c.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){c.style.viewTransitionName&&(c.style.viewTransitionName="",I(!1))}};
NBj(G.viewTransitionCoordinator,"slide",R);NBj(G.viewTransitionCoordinator,"lockup-to-watch",R);NBj(G.viewTransitionCoordinator,"watch-next-appears",R);NBj(G.viewTransitionCoordinator,"learning-journey",R)}},U7W=function(G,c){G.isBrowseTransitionEnabled?wwW(G.viewTransitionCoordinator,c,{transitionType:"slide"}):(c(),Promise.resolve())},ug0=function(G,c){G.isLockupToWatchTransitionEnabled?wwW(G.viewTransitionCoordinator,c,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){G.registeredLockupThumbnail=void 0;G.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(c(),Promise.resolve())},bqG=function(G,c){G.isLockupToWatchTransitionEnabled?wwW(G.viewTransitionCoordinator,c,{transitionType:"watch-next-appears"}):(c(),Promise.resolve())},kZ$=function(G,c){G.isLearningJourneyTransitionEnabled?wwW(G.viewTransitionCoordinator,c,{transitionType:"learning-journey"}):(c(),Promise.resolve())},skd=function(G,c,I){if(G.isInitialized()){var R=
vP(I),Z=R==="watch";
R=R==="shorts";var K=vP(c)==="watch";if(Z)K||(G.backgroundPageData=c),G.watchPipMode&&K||G.deactivate(I.endpoint);else if(R){if(vP(c)!=="shorts"){var m;(m=G.getPlayerElement())==null||m.pause()}}else K&&!G.watchPipMode&&($Cd(c,I,!0)?(G.watchWhileMode&&_.p_7(G,!1),_.u4r(G,c)):G.isMiniplayerActive()&&G.watchWhileMode&&G.deactivate());K&&_.VcW(G);G.shortsPipMode&&!R&&(window.focus(),G.deactivate());if(G.pictureInPictureEnabled())if(R&&G.shortsPipEnabled||Z&&G.watchPipEnabled)_.kjC(G.handleMediaSessionPipActivation);
else if(!G.isMiniplayerActive()&&(G.shortsPipEnabled||G.watchPipEnabled)&&window.documentPictureInPicture&&_.LA()&&_.Ufr("Chromium")>=120){G=_.bcg().mediaSession;try{G.setActionHandler("enterpictureinpicture",null)}catch(a){}}}},LBG=function(G,c){var I,R;
_.T(function(Z){if(Z.nextAddress==1){if(!G||!G.navigationEndpoint)return Z.return();_.ck().lockupActivation=!0;var K;c?K=_.Cp(_.mJ("QUEUE",void 0,"Queue")):K=G.longBylineText;R=(I=K)&&G.title?{miniplayerTitle:G.title,miniplayerSubtitle:I,playlistData:null}:void 0;return Z.yield(_.Zzk(_.wH().resolve(_.tA),G.navigationEndpoint,!0,R),2)}_.ck().userActivation=!0;_.Vp(Z)})},PIu=function(G,c){var I,R,Z,K,m,a;
_.T(function(O){if(O.nextAddress==1){I=_.D(c,_.RLN);if(!I||!I.listId)return O.return();G.index=I.index||G.index||0;R=G.response&&G.response.playingVideoId||void 0;return O.yield(_.scB(G.JSC$13253_playlistNetworkManager,I.listId,G.index,R),2)}Z=O.yieldResult;if(!Z)return O.return();K=Z.playlistId;m=Z.playlistPanelRenderer;!G.queueProxy&&K&&m&&K.startsWith("TLPQ")&&(G.queueProxy=new _.DG(G.JSC$13253_playlistNetworkManager,K,G.setPlaylistData.bind(G),G.clearQueue.bind(G),_.Rz0(m),G.storage));if(I.openMiniplayer&&
(a=_.ZiT(m))&&!G.JSC$13253_pageManager.isOnWatch()){var N=a,q=I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";G.isMiniplayerActive()?G.openToast(N):LBG(N,q)}G.setPlaylistData(K,m,Z.autoplayRenderer);_.Vp(O)})},Rdr=function(G,c){var I=_.Ah();
I.index===void 0&&(I.index=0);I.temporaryItems.push.apply(I.temporaryItems,_.jn(G));if((c.videoId||c.videoIds)&&I.index!==void 0&&c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!I.queueProxy){var R=[];if(I.response){var Z=_.wH().resolve(_.tA).isMiniplayerActive();if(I.response.playlistPanelRenderer&&I.response.playlistId&&!I.response.playlistId.startsWith("TLPQ")){if(I.JSC$13253_pageManager.isOnWatch()||Z)R=_.Rz0(I.response.playlistPanelRenderer)}else I.response.playingVideoId&&!c.openMiniplayer?
R.push(I.response.playingVideoId):Z&&I.response.playingVideoId&&c.openMiniplayer&&R.push(I.response.playingVideoId)}I.queueProxy=new _.DG(I.JSC$13253_playlistNetworkManager,"",I.setPlaylistData.bind(I),I.clearQueue.bind(I),R,I.storage);I.queueProxy.JSC$13199_setCurrentIndex(I.index)}I.queueProxy.addVideos(c.videoIds||[c.videoId],c)}mXr(I,G);I.response&&_.$L(I,_.Ss(I,I.response.autoplayRenderer));I.JSC$13253_pageManager.isOnWatch()?I.isMiniplayerActive()&&I.openToast(G[0]):(G=G[0],c=c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
I.isMiniplayerActive()?I.openToast(G):LBG(G,c))},Ak0=function(G){var c=_.Gr(G);
if(c=="object"||c=="array"){if(typeof G.clone==="function")return G.clone();if(typeof Map!=="undefined"&&G instanceof Map)return new Map(G);if(typeof Set!=="undefined"&&G instanceof Set)return new Set(G);c=c=="array"?[]:{};for(var I in G)c[I]=Ak0(G[I]);return c}return G},Ow=function(G,c){return _.Dkr(_.Ly(G,c,void 0,_.sH))},eZ=function(G,c){return _.au(_.Ly(G,c,void 0,_.sH))},NG=function(G,c){return _.iNT(_.Ly(G,c,void 0,_.sH))},lN=function(G,c){return _.Ly(G,c,void 0,_.sH,_.ge)},$7g=_.e_(function(G,
c,I,R){if(_.lU)return _.HGA(G,c,I,R);
if(G.nextWireType_!==0)return!1;_.oR(c,I,R,_.DJ(G.decoder_,_.ji));return!0},_.nG,_.y2),SBF=_.e_(function(G,c,I){if(_.lU)return _.gNb(G,c,I);
if(G.nextWireType_!==1)return!1;var R=G.decoder_;G=_.Cy(R);R=_.Cy(R);G=_.B0(G,R);_.NN(c,I,G);return!0},_.fJr,_.N7A),pwu=_.e_(function(G,c,I){if(G.nextWireType_!==2)return!1;
G=_.yee(G);_.NN(c,I,G===_.Si()?void 0:G);return!0},_.t_B,_.wu2),Md$=_.STb(function(G,c,I){if(G.nextWireType_!==0&&G.nextWireType_!==2)return!1;
c=_.cy(c,c[_.P0]|0,I);G.nextWireType_==2?_.gKN(G,fhu,c):c.push(_.dI(G.decoder_));return!0},function(G,c,I){c=_.$NO(_.au,c,!0);
if(c!=null&&c.length){I=_.Z1B(G,I);for(var R=0;R<c.length;R++)_.Jzq(G.encoder_,c[R]);_.KWi(G,I)}},_.FW0),Vd1=_.e_(function(G,c,I,R){if(G.nextWireType_!==0)return!1;
_.oR(c,I,R,_.dI(G.decoder_));return!0},_.dNB,_.FW0),zl7=function(G){return G.previousElementSibling!==void 0?G.previousElementSibling:_.$S0(G.previousSibling,!1)},ES$=function(G,c){var I=[];
for(c=c||0;c<G.length;c+=2)_.n9K(G[c],G[c+1],I);return I.join("&")},Jku=function(G,c){var I=arguments.length==2?ES$(arguments[1],0):ES$(arguments,1);
return _.Fr9(G,I)},FLG=_.sT(_.iP),WB$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(WB$,_.aR);WB$.prototype.getTypeName=function(){return _.iU(this,1).split("/").pop()};
WB$.prototype.getValue=function(){var G=_.Ly(this,2);if(Array.isArray(G)||G instanceof _.aR)throw Error("W");return _.Sg(this,2)};
var iq1=[0,2,_.P7],Qwg=function(){var G=_.PH();this.JSC$10086_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.vD("channel_type"))};
Qwg.prototype.increment=function(G){this.JSC$10086_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",G)};
var mBr=function(){var G=_.PH();this.JSC$10089_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.vD("channel_type"))};
mBr.prototype.increment=function(G){this.JSC$10089_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",G)};
var TGj=function(){var G=_.PH();this.JSC$10092_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.vD("channel_type"))};
TGj.prototype.increment=function(G){this.JSC$10092_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",G)};
var aoG=function(){var G=_.PH();this.JSC$10095_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
aoG.prototype.increment=function(){this.JSC$10095_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var OM$=function(){var G=_.PH();this.JSC$10098_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.vD("channel_type"),_.vD("error_type"))};
OM$.prototype.increment=function(G,c){this.JSC$10098_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",G,c)};
var eUG=function(){var G=_.PH();this.JSC$10101_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
eUG.prototype.increment=function(){this.JSC$10101_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var NGd=function(){var G=_.PH();this.JSC$10104_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
NGd.prototype.increment=function(){this.JSC$10104_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var vbd=function(){var G=_.PH();this.JSC$10110_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
vbd.prototype.increment=function(){this.JSC$10110_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var f9d=function(G){return G.getCount&&typeof G.getCount=="function"?G.getCount():_.xp(G)||typeof G==="string"?G.length:_.rx.getCount(G)},BB1=function(G,c){if(typeof G.every=="function")return G.every(c,void 0);
if(_.xp(G)||typeof G==="string")return Array.prototype.every.call(G,c,void 0);for(var I=_.o7T(G),R=_.n9(G),Z=R.length,K=0;K<Z;K++)if(!c.call(void 0,R[K],I&&I[K],G))return!1;return!0},rk$=function(G,c,I,R){var Z=new _.Bq(null);
G&&_.vz(Z,G);c&&_.Dh(Z,c);I&&_.oN(Z,I);R&&_.Uc(Z,R);return Z},jkj=function(){var G=_.Y6&&_.lT(_.Ede,10)>=0,c;
if(c=_.Ip0)c=_.lT(_.zKV,10)>=0;var I=_.UH&&_.lT(_.Ede,85)>=0;return _.ny||G||c||I},x71=function(G){var c=_.gM2(G);
return c&&jkj()?-G.scrollLeft:c&&_.gF(G,"overflowX")!="visible"?G.scrollWidth-G.clientWidth-G.scrollLeft:G.scrollLeft},td$=function(G,c){c=Math.max(c,0);
_.gM2(G)?jkj()?G.scrollLeft=-c:G.scrollLeft=G.scrollWidth-c-G.clientWidth:G.scrollLeft=c},hGd=0,yNG=!1;
Yn0.prototype.set=function(G){this.relativeTimeStart_=G};
Yn0.prototype.reset=function(){this.set(_.OH())};
Yn0.prototype.get=function(){return this.relativeTimeStart_};
var hld=null,d7H=function(){hld||(hld=new Yn0)},C37=function(){hld||(hld=new Yn0)};
_.eg(C37,d7H);_.P=G9d.prototype;_.P.JSC$11522_buffer_="";_.P.set=function(G){this.JSC$11522_buffer_=""+G};
_.P.append=function(G,c,I){this.JSC$11522_buffer_+=String(G);if(c!=null)for(var R=1;R<arguments.length;R++)this.JSC$11522_buffer_+=arguments[R];return this};
_.P.clear=function(){this.JSC$11522_buffer_=""};
_.P.getLength=function(){return this.JSC$11522_buffer_.length};
_.P.toString=function(){return this.JSC$11522_buffer_};
var Hqj=!1,aXu=function(G){_.G8.call(this,G.message||G.description||G.name);this.isMissing=G instanceof Kq7;this.isTimeout=G instanceof _.iHd&&G.errorCode=="net.timeout";this.isCanceled=G instanceof _.tq};
_.u(aXu,_.G8);aXu.prototype.name="BiscottiError";var Kq7=function(){_.G8.call(this,"Biscotti ID is missing from server")};
_.u(Kq7,_.G8);Kq7.prototype.name="BiscottiMissingError";var PfF=null,XCW=function(){try{var G=_.Yc("yt.ads.biscotti.getId_");return G?G():id1()}catch(c){return _.$C(c)}},XwG=function(G,c){return _.R6({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:G,command:c}})},yk7=function(G){return _.R6({type:"SET_GUIDE_IS_EXPANDED",
payload:G})},gSd=function(G){return _.R6({type:"SET_ONLINE_STATUS",
payload:G})},YBg=function(G,c){return _.R6({type:"SET_TRANSCRIPTION_STATE",
payload:{high:G,low:c}})},GWr=function(G){return _.R6({type:"SET_OVERLAY_STATE",
payload:G})},cMW=0,IMF=function(G,c,I){var R=this;
this.priority=c;this.delay=I;this.jobId=0;this.completionCallback=_.EF;this.wrappedJob=function(){G();R.completionCallback()};
this.id=++cMW};
IMF.prototype.enqueue=function(G){this.completionCallback=G;this.jobId=_.dJ.addJob(this.wrappedJob,this.priority,this.delay)};
var qG=function(){_.ub.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.u(qG,_.ub);qG.prototype.addJob=function(G,c,I){G=new IMF(G,c,I);this.taskIdToTask.set(G.id,G);this.isActive?RL1(this,G):this.suspendedTasks.add(G);return G.id};
var RL1=function(G,c){G.scheduledTasks.add(c);c.enqueue(function(){G.scheduledTasks.delete(c)})};
qG.prototype.cancelJob=function(G){(G=this.taskIdToTask.get(G))&&(this.scheduledTasks.delete(G)?_.dJ.cancelJob(G.jobId):this.suspendedTasks.delete(G))};
qG.prototype.pause=function(){var G=this;this.isActive=!1;this.scheduledTasks.forEach(function(c){_.dJ.cancelJob(c.jobId);G.suspendedTasks.add(c)});
this.scheduledTasks.clear()};
qG.prototype.start=function(){var G=this;this.isActive=!0;this.suspendedTasks.forEach(function(c){RL1(G,c)});
this.suspendedTasks.clear()};
qG.prototype.reset=function(){this.scheduledTasks.forEach(function(G){_.dJ.cancelJob(G.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Z$d=function(G,c){this.JSC$13379_networkService_=G;this.pageRequestPromise=c};
Z$d.prototype.fetchData=function(G){KZd(this,this.JSC$13379_networkService_.fetchData(G))};
Z$d.prototype.postData=function(G,c){KZd(this,this.JSC$13379_networkService_.postData(G,c))};
Z$d.prototype.requestDataForServiceEndpoint=function(G,c){KZd(this,this.JSC$13379_networkService_.requestDataForServiceEndpoint(G,c))};
var KZd=function(G,c){c.then(G.pageRequestPromise.onSuccess,G.pageRequestPromise.onFailure,G.pageRequestPromise)};
Z$d.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var P9G=function(G){this.buildNetworkRequest_=G;this.pendingRequests_=new Set};
P9G.prototype.reset=function(){this.pendingRequests_.forEach(function(G){G.cancel()});
this.pendingRequests_.clear()};
P9G.prototype.fetchData=function(G){var c=Qju(this);c.fetchData(G);return c.pageRequestPromise};
P9G.prototype.postData=function(G,c){var I=Qju(this);I.postData(G,c);return I.pageRequestPromise};
P9G.prototype.requestDataForServiceEndpoint=function(G,c){var I=Qju(this);I.requestDataForServiceEndpoint(G,c);return I.pageRequestPromise};
var Qju=function(G){var c=G.buildNetworkRequest_();G.pendingRequests_.add(c);var I=function(){G.pendingRequests_.delete(c)};
c.pageRequestPromise.then(I,I);return c},mnj=function(G){var c=new qG;
this.JSC$13386_networkService_=G;this.JSC$13386_taskManager_=c;this.JSC$13386_networkManager_=new P9G(this.networkRequestFactory_.bind(this))};
_.P=mnj.prototype;_.P.networkRequestFactory_=function(){return new Z$d(this.JSC$13386_networkService_,new _.dg(this.JSC$13386_taskManager_))};
_.P.reset=function(){this.JSC$13386_taskManager_.reset();this.JSC$13386_networkManager_.reset()};
_.P.start=function(){this.JSC$13386_taskManager_.start()};
_.P.pause=function(){this.JSC$13386_taskManager_.pause()};
_.P.getTaskManager=function(){return this.JSC$13386_taskManager_};
_.P.getNetworkManager=function(){return this.JSC$13386_networkManager_};
var u6W=null,s17=[],n5$=0,Ux$=0,v5g=null,Ua=function(G){this.token=G};
Ua.getInstance=function(){var G;return _.T(function(c){if(c.nextAddress==1)return c.yield(_.qt(),2);G=c.yieldResult;if(!G)return c.return();Ua.instance||(Ua.instance=new Ua(G));return c.return(Ua.instance)})};
var z8F=function(G){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(pU$(G.token),2);c=I.yieldResult;return I.return(c.clear("resource-manifest-assets"))})},or=function(G){this.token=G};
or.getInstance=function(){var G;return _.T(function(c){if(c.nextAddress==1)return c.yield(_.qt(),2);G=c.yieldResult;if(!G)return c.return();or.instance||(or.instance=new or(G));return c.return(or.instance)})};
var Muu=function(G){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(pU$(G.token),2);c=I.yieldResult;return I.yield(c.clear("auth"),0)})},aMG=!1,CfW=null,HQd=void 0,Zed=!1,Twg=function(G){_.G8.call(this,G)};
_.u(Twg,_.gJp);var RVW=function(){var G=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return G?parseInt(G[1],10):0},O$g=function(G){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+G)!=-1||document.currentScript.src.indexOf("&"+G)!=-1)},eLj=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},mO1=function(G){G.length?Nw$(G.shift(),function(){mO1(G)}):KV$()},TIj=function(G){return"chrome-extension://"+G+"/cast_sender.js"},Nw$=function(G,
c,I){var R=document.createElement("script");
R.onerror=c;I&&(R.onload=I);_.Ti(R,_.BD(G));(document.head||document.documentElement).appendChild(R)},lMG=function(){var G=RVW(),c=[];
if(G>1){var I=G-1;c.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js");c.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js")}return c},KV$=function(){var G=eLj();
G&&G(!1,"No cast extension found")},Q3W=function(){if(qYW){var G=2,c=eLj(),I=function(){G--;
G==0&&c&&c(!0)};
window.__onGCastApiAvailable=I;Nw$("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",KV$,I)}},ZyW=function(){Q3W();
var G=lMG();G.push("//www.gstatic.com/eureka/clank/cast_sender.js");mO1(G)},PUd=function(){Q3W();
var G=lMG();G.push.apply(G,_.jn(ak7.map(TIj)));G.push("//www.gstatic.com/eureka/clank/cast_sender.js");mO1(G)},qYW=O$g("loadCastFramework")||O$g("loadCastApplicationFramework"),ak7=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var waW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(waW,_.aR);var FZW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(FZW,_.aR);var nnW=function(){var G=new FZW;return _.t7(G,1,3)};var wp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(wp,_.aR);var Cmg=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Cmg,_.aR);var vn0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(vn0,_.aR);vn0.prototype.getToken=function(){return _.iU(this,1)};
vn0.prototype.setToken=function(G){return _.Xt(this,1,G)};
var hmW=function(G){return _.Xj(G,3,_.Ud,_.qw())},dj7=function(G){return _.Xj(G,6,_.Ud,_.qw())};var FH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(FH,_.aR);FH.prototype.getToken=function(){return _.Dw(this,vn0,2)};
FH.prototype.setToken=function(G){return _.Az(this,2,G)};
FH.prototype.getName=function(){return _.iU(this,6)};
var Dn0=_.sT(FH);var on7=function(G,c,I){this.requestMessage=G;this.methodDescriptor=c;this.metadata=I};
on7.prototype.getMetadata=function(){return this.metadata};var Unj=function(G,c){c=c===void 0?{}:c;this.responseMessage=G;this.metadata=c;this.status=null};
Unj.prototype.getMetadata=function(){return this.metadata};
Unj.prototype.getStatus=function(){return this.status};var n5=function(G,c,I,R,Z){this.name=G;this.methodType="unary";this.requestType=c;this.responseType=I;this.requestSerializeFn=R;this.responseDeserializeFn=Z},u3H=function(G,c,I){I=I===void 0?{}:I;
return new on7(c,G,I)};
n5.prototype.getName=function(){return this.name};var vi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(vi,_.aR);vi.prototype.getHeader=function(){return _.Dw(this,wp,1)};
vi.prototype.setHeader=function(G){return _.Az(this,1,G)};
vi.prototype.hasHeader=function(){return _.A7(this,wp,1)};var b$u=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(b$u,_.aR);var kWW=new n5("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",vi,b$u,function(G){return G.serialize()},_.sT(b$u));var DU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(DU,_.aR);DU.prototype.getHeader=function(){return _.Dw(this,wp,1)};
DU.prototype.setHeader=function(G){return _.Az(this,1,G)};
DU.prototype.hasHeader=function(){return _.A7(this,wp,1)};var sjW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(sjW,_.aR);var LZr=new n5("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",DU,sjW,function(G){return G.serialize()},_.sT(sjW));var oo=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(oo,_.aR);oo.prototype.getHeader=function(){return _.Dw(this,wp,1)};
oo.prototype.setHeader=function(G){return _.Az(this,1,G)};
oo.prototype.hasHeader=function(){return _.A7(this,wp,1)};var AMH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(AMH,_.aR);AMH.prototype.getValues=function(G){return _.WAV(this,1,G)};var $nr=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u($nr,_.aR);$nr.prototype.getLink=function(){return _.Dw(this,FH,1)};var SYd=new n5("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",oo,$nr,function(G){return G.serialize()},_.sT($nr));var Uw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Uw,_.aR);Uw.prototype.getHeader=function(){return _.Dw(this,wp,1)};
Uw.prototype.setHeader=function(G){return _.Az(this,1,G)};
Uw.prototype.hasHeader=function(){return _.A7(this,wp,1)};var pa0=new n5("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Uw,FH,function(G){return G.serialize()},Dn0);var M71=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(M71,_.aR);var V7W=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(V7W,_.aR);V7W.prototype.getUrl=function(){return _.iU(this,2)};
V7W.prototype.setUrl=function(G){return _.Xt(this,2,G)};var zLu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(zLu,_.aR);var EnF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(EnF,_.aR);var JMF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(JMF,_.aR);var Qld=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Qld,_.aR);var KLu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(KLu,_.aR);var WZ0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(WZ0,_.aR);var wm7=_.sT(WZ0);var i$W=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(i$W,_.aR);var fMW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(fMW,_.aR);_.P=fMW.prototype;_.P.getHeader=function(){return _.Dw(this,wp,1)};
_.P.setHeader=function(G){return _.Az(this,1,G)};
_.P.hasHeader=function(){return _.A7(this,wp,1)};
_.P.getCompletionUrl=function(){return _.iU(this,6)};
_.P.getDeviceId=function(){return _.iU(this,11)};var Bwu=new n5("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",fMW,WZ0,function(G){return G.serialize()},wm7);var rMW=new Set(["SAPISIDHASH","APISIDHASH"]);var jjH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(jjH,_.aR);jjH.prototype.getMessage=function(){return _.iU(this,2)};
var xn$=_.sT(jjH);var hLu=function(G,c){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=G.nodeReadableStream;this.grpcResponseDeserializeFn=c;this.xhr=G.xhr;this.xhrNodeReadableStream&&t7W(this)},YY7=function(G,c){var I=new dnW;
_.Ld(G.xhr,"complete",function(){if(G.xhr.isSuccess()){var R=G.xhr.getResponseText();var Z;if(Z=c)Z=G.xhr,Z.JSC$9965_xhr_&&Z.isComplete()?(Z=Z.JSC$9965_xhr_.getResponseHeader("Content-Type"),Z=Z===null?void 0:Z):Z=void 0,Z=Z==="text/plain";if(Z){if(!atob)throw Error("jk");R=atob(R)}try{var K=G.grpcResponseDeserializeFn(R)}catch(a){C9H(G,SNH(new _.CU(13,"Error when deserializing response data; error: "+a+(", response: "+R)),I));return}R=_.Fb8(G.xhr.getStatus());H$j(G,XaW(G));R===0?yMW(G,K):C9H(G,SNH(new _.CU(R,
"Xhr succeeded but the status code is not 200"),I))}else{R=G.xhr.getResponseText();K=XaW(G);if(R){var m=gnu(G,R);R=m.code;Z=m.details;m=m.metadata}else R=2,Z="Rpc failed due to xhr error. uri: "+String(G.xhr.JSC$9965_lastUri_)+", error code: "+(G.xhr.JSC$9965_lastErrorCode_+", error: ")+G.xhr.getLastError(),m=K;H$j(G,K);C9H(G,SNH(new _.CU(R,Z,m),I))}})},t7W=function(G){G.xhrNodeReadableStream.on("data",function(c){if("1"in c){var I=c["1"];
try{var R=G.grpcResponseDeserializeFn(I)}catch(Z){C9H(G,new _.CU(13,"Error when deserializing response data; error: "+Z+(", response: "+I)))}R&&yMW(G,R)}if("2"in c)for(c=gnu(G,c["2"]),I=0;I<G.onStatusCallbacks.length;I++)G.onStatusCallbacks[I](c)});
G.xhrNodeReadableStream.on("end",function(){H$j(G,XaW(G));for(var c=0;c<G.onEndCallbacks.length;c++)G.onEndCallbacks[c]()});
G.xhrNodeReadableStream.on("error",function(){if(G.onErrorCallbacks.length!==0){var c=G.xhr.JSC$9965_lastErrorCode_;c!==0||G.xhr.isSuccess()||(c=6);var I=-1;switch(c){case 0:var R=2;break;case 7:R=10;break;case 8:R=4;break;case 6:I=G.xhr.getStatus();R=_.Fb8(I);break;default:R=14}H$j(G,XaW(G));c=_.yIe(c)+", error: "+G.xhr.getLastError();I!==-1&&(c+=", http status code: "+I);C9H(G,new _.CU(R,c))}})},XaW=function(G){var c={},I=jN$(G.xhr);
Object.keys(I).forEach(function(R){c[R]=I[R]});
return c},gnu=function(G,c){var I=2,R={};
try{var Z=xn$(c);I=_.wF(Z,1);var K=Z.getMessage();_.lR(Z,WB$,3,_.qw()).length&&(R["grpc-web-status-details-bin"]=c)}catch(m){G.xhr&&G.xhr.getStatus()===404?(I=5,K="Not Found: "+String(G.xhr.JSC$9965_lastUri_)):(I=14,K="Unable to parse RpcStatus: "+m)}return{code:I,details:K,metadata:R}};
hLu.prototype.on=function(G,c){G==="data"?this.onDataCallbacks.push(c):G==="metadata"?this.onMetadataCallbacks.push(c):G==="status"?this.onStatusCallbacks.push(c):G==="end"?this.onEndCallbacks.push(c):G==="error"&&this.onErrorCallbacks.push(c);return this};
var GEF=function(G,c){c=G.indexOf(c);c>-1&&G.splice(c,1)};
hLu.prototype.removeListener=function(G,c){G==="data"?GEF(this.onDataCallbacks,c):G==="metadata"?GEF(this.onMetadataCallbacks,c):G==="status"?GEF(this.onStatusCallbacks,c):G==="end"?GEF(this.onEndCallbacks,c):G==="error"&&GEF(this.onErrorCallbacks,c);return this};
hLu.prototype.cancel=function(){this.xhr.abort()};
var yMW=function(G,c){for(var I=0;I<G.onDataCallbacks.length;I++)G.onDataCallbacks[I](c)},H$j=function(G,c){for(var I=0;I<G.onMetadataCallbacks.length;I++)G.onMetadataCallbacks[I](c)},C9H=function(G,c){for(var I=0;I<G.onErrorCallbacks.length;I++)G.onErrorCallbacks[I](c)},dnW=function(){var G=Error.call(this);
this.message=G.message;"stack"in G&&(this.stack=G.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(dnW,Error);var cjH=function(G){this.JSC$19847_worker_=G.worker||null;this.JSC$19847_streamBinaryChunks_=G.streamBinaryChunks||!1;this.JSC$19847_credentialsMode_=void 0};
_.eg(cjH,_.v6g);cjH.prototype.createInstance=function(){var G=new uN(this.JSC$19847_worker_,this.JSC$19847_streamBinaryChunks_);this.JSC$19847_credentialsMode_&&G.setCredentialsMode(this.JSC$19847_credentialsMode_);return G};
cjH.prototype.setCredentialsMode=function(G){this.JSC$19847_credentialsMode_=G};
var uN=function(G,c){_.r4.call(this);this.JSC$19851_worker_=G;this.JSC$19851_streamBinaryChunks_=c;this.JSC$19851_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19851_responseHeaders_=null;this.JSC$19851_method_="GET";this.JSC$19851_url_="";this.inProgress_=!1;this.JSC$19851_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.eg(uN,_.r4);uN.prototype.open=function(G,c){if(this.readyState!=0)throw this.abort(),Error("kk");this.JSC$19851_method_=G;this.JSC$19851_url_=c;this.readyState=1;Iuu(this)};
uN.prototype.send=function(G){if(this.readyState!=1)throw this.abort(),Error("lk");if(this.abortController_.signal.aborted)throw this.abort(),Error("mk");this.inProgress_=!0;var c={headers:this.requestHeaders_,method:this.JSC$19851_method_,credentials:this.JSC$19851_credentialsMode_,cache:void 0,signal:this.abortController_.signal};G&&(c.body=G);(this.JSC$19851_worker_||_.Rq).fetch(new Request(this.JSC$19851_url_,c)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
uN.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Ru1(this));this.readyState=0};
uN.prototype.handleResponse_=function(G){if(this.inProgress_&&(this.fetchResponse_=G,this.JSC$19851_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19851_responseHeaders_=G.headers,this.readyState=2,Iuu(this)),this.inProgress_&&(this.readyState=3,Iuu(this),this.inProgress_)))if(this.responseType==="arraybuffer")G.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Rq.ReadableStream!==
"undefined"&&"body"in G){this.currentReader_=G.body.getReader();if(this.JSC$19851_streamBinaryChunks_){if(this.responseType)throw Error("nk");this.response=[]}else this.response=this.responseText="",this.JSC$19851_textDecoder_=new TextDecoder;ZVd(this)}else G.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var ZVd=function(G){G.currentReader_.read().then(G.handleDataFromStream_.bind(G)).catch(G.handleSendFailure_.bind(G))};
uN.prototype.handleDataFromStream_=function(G){if(this.inProgress_){if(this.JSC$19851_streamBinaryChunks_&&G.value)this.response.push(G.value);else if(!this.JSC$19851_streamBinaryChunks_){var c=G.value?G.value:new Uint8Array(0);if(c=this.JSC$19851_textDecoder_.decode(c,{stream:!G.done}))this.response=this.responseText+=c}G.done?Ru1(this):Iuu(this);this.readyState==3&&ZVd(this)}};
uN.prototype.handleResponseText_=function(G){this.inProgress_&&(this.response=this.responseText=G,Ru1(this))};
uN.prototype.handleResponseArrayBuffer_=function(G){this.inProgress_&&(this.response=G,Ru1(this))};
uN.prototype.handleSendFailure_=function(){this.inProgress_&&Ru1(this)};
var Ru1=function(G){G.readyState=4;G.fetchResponse_=null;G.currentReader_=null;G.JSC$19851_textDecoder_=null;Iuu(G)};
uN.prototype.setRequestHeader=function(G,c){this.requestHeaders_.append(G,c)};
uN.prototype.getResponseHeader=function(G){return this.JSC$19851_responseHeaders_?this.JSC$19851_responseHeaders_.get(G.toLowerCase())||"":""};
uN.prototype.getAllResponseHeaders=function(){if(!this.JSC$19851_responseHeaders_)return"";for(var G=[],c=this.JSC$19851_responseHeaders_.entries(),I=c.next();!I.done;)I=I.value,G.push(I[0]+": "+I[1]),I=c.next();return G.join("\r\n")};
uN.prototype.setCredentialsMode=function(G){this.JSC$19851_credentialsMode_=G};
var Iuu=function(G){G.onreadystatechange&&G.onreadystatechange.call(G)};
Object.defineProperty(uN.prototype,"withCredentials",{get:function(){return this.JSC$19851_credentialsMode_==="include"},
set:function(G){this.setCredentialsMode(G?"include":"same-origin")}});var K4d=function(G){var c="";_.rx.forEach(G,function(I,R){c+=R;c+=":";c+=I;c+="\r\n"});
return c},PYG=function(G,c,I){if(_.rx.isEmpty(I))return G;
I=K4d(I);if(typeof G==="string")return _.KU(G,_.ZH(c),I);_.Zm(G,c,I);return G};var QHj=function(){this.isInputValid_=!0;this.JSC$19857_streamPos_=0;this.leftoverInput_=""};
QHj.prototype.isInputValid=function(){return this.isInputValid_};
QHj.prototype.decode=function(G){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ok`"+this.JSC$19857_streamPos_+"`stream already broken`"+G);this.leftoverInput_+=G;G=Math.floor(this.leftoverInput_.length/4);if(G==0)return null;try{var c=_.ivi(this.leftoverInput_.slice(0,G*4))}catch(I){throw c=this.leftoverInput_,G=I.message,this.isInputValid_=!1,Error("ok`"+this.JSC$19857_streamPos_+"`"+G+"`"+c);}this.JSC$19857_streamPos_+=G*4;this.leftoverInput_=this.leftoverInput_.slice(G*4);return c};var VR$=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19860_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
VR$.prototype.isInputValid=function(){return this.state_!=3};
var meG=function(G,c,I,R){G.state_=3;G.errorMessage_="The stream is broken @"+G.JSC$19860_streamPos_+"/"+I+". Error: "+R+". With input:\n"+c;throw Error(G.errorMessage_);};
VR$.prototype.acceptsBinaryInput=function(){return!0};
VR$.prototype.parse=function(G){function c(O){O&128&&meG(K,m,a,"invalid tag");(O&7)!=2&&meG(K,m,a,"invalid wire type");K.tag_=O>>>3;K.tag_!=1&&K.tag_!=2&&K.tag_!=15&&meG(K,m,a,"unexpected tag");K.state_=1;K.length_=0;K.countLengthBytes_=0}
function I(O){K.countLengthBytes_++;K.countLengthBytes_==5&&O&240&&meG(K,m,a,"message length too long");K.length_|=(O&127)<<(K.countLengthBytes_-1)*7;O&128||(K.state_=2,K.countMessageBytes_=0,typeof Uint8Array!=="undefined"?K.messageBuffer_=new Uint8Array(K.length_):K.messageBuffer_=Array(K.length_),K.length_==0&&Z())}
function R(O){K.messageBuffer_[K.countMessageBytes_++]=O;K.countMessageBytes_==K.length_&&Z()}
function Z(){if(K.tag_<15){var O={};O[K.tag_]=K.messageBuffer_;K.result_.push(O)}K.state_=0}
for(var K=this,m=G instanceof Array?G:new Uint8Array(G),a=0;a<m.length;){switch(K.state_){case 3:meG(K,m,a,"stream already broken");break;case 0:c(m[a]);break;case 1:I(m[a]);break;case 2:R(m[a]);break;default:throw Error("pk`"+K.state_);}K.JSC$19860_streamPos_++;a++}G=K.result_;K.result_=[];return G.length>0?G:null};var zm7=function(){this.errorMessage_=null;this.JSC$19863_streamPos_=0;this.base64Decoder_=new QHj;this.pbParser_=new VR$};
zm7.prototype.isInputValid=function(){return this.errorMessage_===null};
var auG=function(G,c,I){G.errorMessage_="The stream is broken @"+G.JSC$19863_streamPos_+". Error: "+I+". With input:\n"+c;throw Error(G.errorMessage_);};
zm7.prototype.acceptsBinaryInput=function(){return!1};
zm7.prototype.parse=function(G){this.errorMessage_!==null&&auG(this,G,"stream already broken");var c=null;try{var I=this.base64Decoder_.decode(G);c=I===null?null:this.pbParser_.parse(I)}catch(R){auG(this,G,R.message)}this.JSC$19863_streamPos_+=G.length;return c};var MR1=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19866_streamPos_=0;this.result_=[];this.statusParsed_=!1};
MR1.prototype.isInputValid=function(){return this.errorMessage_===null};
MR1.prototype.acceptsBinaryInput=function(){return!1};
MR1.prototype.parse=function(G){function c(O){K.state_=6;K.errorMessage_="The stream is broken @"+K.JSC$19866_streamPos_+"/"+m+". Error: "+O+". With input:\n";throw Error(K.errorMessage_);}
function I(){K.jsonStreamParser_=new _.Mn({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function R(O){if(O)for(var N=0;N<O.length;N++){var q={};q[1]=O[N];K.result_.push(q)}}
function Z(O){if(O){(K.statusParsed_||O.length>1)&&c("extra status: "+O);K.statusParsed_=!0;var N={};N[2]=O[0];K.result_.push(N)}}
for(var K=this,m=0;m<G.length;){var a;if(a=K.state_!==2){a:{for(;m<G.length;){if(!_.p$(G[m])){a=!0;break a}m++;K.JSC$19866_streamPos_++}a=!1}a=!a}if(a)return null;switch(K.state_){case 6:c("stream already broken");break;case 0:G[m]==="["?(K.state_=1,m++,K.JSC$19866_streamPos_++):c("unexpected input token");break;case 1:G[m]==="["?(K.state_=2,I()):G[m]===","||G.slice(m,m+5)=="null,"?K.state_=3:G[m]==="]"?(K.state_=5,m++,K.JSC$19866_streamPos_++):c("unexpected input token");break;case 2:a=K.jsonStreamParser_.parse(G.substring(m));
R(a);K.jsonStreamParser_.done()?(K.state_=3,a=K.jsonStreamParser_.JSC$11649_buffer_,K.JSC$19866_streamPos_+=G.length-m-a.length,G=a,m=0):(K.JSC$19866_streamPos_+=G.length-m,m=G.length);break;case 3:G[m]===","||G.slice(m,m+5)=="null,"?(K.state_=4,I(),K.jsonStreamParser_.parse("["),m+=G[m]===","?1:5,K.JSC$19866_streamPos_++):G[m]==="]"&&(K.state_=5,m++,K.JSC$19866_streamPos_++);break;case 4:a=K.jsonStreamParser_.parse(G.substring(m));Z(a);K.jsonStreamParser_.done()?(K.state_=5,a=K.jsonStreamParser_.JSC$11649_buffer_,
K.JSC$19866_streamPos_+=G.length-m-a.length,G=a,m=0):(K.JSC$19866_streamPos_+=G.length-m,m=G.length);break;case 5:c("extra input after stream end")}}return K.result_.length>0?(G=K.result_,K.result_=[],G):null};var TAW=function(G){this.JSC$19869_xhr_=G;this.JSC$19869_parser_=null;this.status_=this.JSC$19869_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19869_textDecoder_=null;this.JSC$19869_eventHandler_=new _.D0(this);this.JSC$19869_eventHandler_.listen(this.JSC$19869_xhr_,"readystatechange",this.JSC$19871_readyStateChangeHandler_)},bN=function(G,c){G.status_!=c&&(G.status_=c,G.statusHandler_&&G.statusHandler_())},OVH=function(G){G.JSC$19869_eventHandler_.removeAll();
if(G.JSC$19869_xhr_){var c=G.JSC$19869_xhr_;G.JSC$19869_xhr_=null;c.abort();c.dispose()}};
TAW.prototype.getStatus=function(){return this.status_};
TAW.prototype.JSC$19871_readyStateChangeHandler_=function(G){G=G.target;try{if(G==this.JSC$19869_xhr_)a:{var c=_.yM(this.JSC$19869_xhr_),I=this.JSC$19869_xhr_.JSC$9965_lastErrorCode_,R=this.JSC$19869_xhr_.getStatus(),Z=this.JSC$19869_xhr_.getResponseText();G=[];if(this.JSC$19869_xhr_.getResponse()instanceof Array){var K=this.JSC$19869_xhr_.getResponse();K.length>0&&K[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,G=K)}if(!(c<3||c==3&&!Z&&G.length==0))if(R=R==200||R==206,c==4&&(I==8?bN(this,
7):I==7?bN(this,8):R||bN(this,3)),this.JSC$19869_parser_||(this.JSC$19869_parser_=EZ$(this.JSC$19869_xhr_),this.JSC$19869_parser_==null&&bN(this,5)),this.status_>2)OVH(this);else{if(G.length>this.JSC$19869_pos_){var m=G.length;I=[];try{if(this.JSC$19869_parser_.acceptsBinaryInput())for(var a=0;a<m;a++){var O=this.JSC$19869_parser_.parse(Array.from(G[a]));O&&(I=I.concat(O))}else{O="";if(!this.JSC$19869_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("qk");this.JSC$19869_textDecoder_=
new TextDecoder}for(a=0;a<m;a++)O+=this.JSC$19869_textDecoder_.decode(G[a],{stream:c==4&&a==m-1});I=this.JSC$19869_parser_.parse(O)}G.splice(0,m);I&&this.dataHandler_(I)}catch(q){bN(this,5);OVH(this);break a}}else if(Z.length>this.JSC$19869_pos_){a=Z.slice(this.JSC$19869_pos_);this.JSC$19869_pos_=Z.length;try{var N=this.JSC$19869_parser_.parse(a);N!=null&&this.dataHandler_&&this.dataHandler_(N)}catch(q){bN(this,5);OVH(this);break a}}c==4?(Z.length!=0||this.hasStreamingResponseData_?bN(this,2):bN(this,
4),OVH(this)):bN(this,1)}}}catch(q){bN(this,6),OVH(this)}};var euF=function(G){G=this.xhrReader_=G;var c=(0,_.WD)(this.onData_,this);G.dataHandler_=c;G=this.xhrReader_;c=(0,_.WD)(this.onStatusChange_,this);G.statusHandler_=c;this.JSC$19873_callbackMap_={};this.callbackOnceMap_={}};
_.P=euF.prototype;_.P.on=function(G,c){var I=this.JSC$19873_callbackMap_[G];I||(I=[],this.JSC$19873_callbackMap_[G]=I);I.push(c);return this};
_.P.addListener=function(G,c){this.on(G,c);return this};
_.P.removeListener=function(G,c){var I=this.JSC$19873_callbackMap_[G];I&&_.rb(I,c);(G=this.callbackOnceMap_[G])&&_.rb(G,c);return this};
_.P.once=function(G,c){var I=this.callbackOnceMap_[G];I||(I=[],this.callbackOnceMap_[G]=I);I.push(c);return this};
_.P.onData_=function(G){var c=this.JSC$19873_callbackMap_.data;c&&NAF(G,c);(c=this.callbackOnceMap_.data)&&NAF(G,c);this.callbackOnceMap_.data=[]};
var NAF=function(G,c){for(var I={},R=0;R<G.length;I={message$jscomp$1008:void 0},R++)I.message$jscomp$1008=G[R],c.forEach(function(Z){return function(K){try{K(Z.message$jscomp$1008)}catch(m){}}}(I))};
euF.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:luW(this,"readable");break;case 5:case 6:case 4:case 7:case 3:luW(this,"error");break;case 8:luW(this,"close");break;case 2:luW(this,"end")}};
var luW=function(G,c){var I=G.JSC$19873_callbackMap_[c];I&&I.forEach(function(R){try{R()}catch(Z){}});
(I=G.callbackOnceMap_[c])&&I.forEach(function(R){R()});
G.callbackOnceMap_[c]=[]};var qA1=function(){var G={format:"jspb"};G=G===void 0?{}:G;this.suppressCorsPreflight=G.suppressCorsPreflight||_.Yc("suppressCorsPreflight",G)||!1;this.withCredentials=G.withCredentials||_.Yc("withCredentials",G)||!1;this.streamInterceptors=G.streamInterceptors||[];this.unaryInterceptors=G.unaryInterceptors||[];this.workerScope=G.workerScope;this.chunkedServerStreaming=G.useFetchDownloadStreams||!1},nO0=function(G,c,I,R,Z,K){K=K===void 0?{}:K;
var m=c.substring(0,c.length-Z.name.length),a,O=(a=K)==null?void 0:a.signal;return wpW(function(N){return new Promise(function(q,w){if(O==null?0:O.aborted){var F=new _.CU(1,"Aborted");F.cause=O.reason;w(F)}else{var n={},U=F4r(G,N,m);U.on("error",function(k){return void w(k)});
U.on("metadata",function(k){n=k});
U.on("data",function(k){var p=n;p=p===void 0?{}:p;q(new Unj(k,p))});
O&&O.addEventListener("abort",function(){U.cancel();var k=new _.CU(1,"Aborted");k.cause=O.reason;w(k)})}})},G.unaryInterceptors).call(G,u3H(Z,I,R)).then(function(N){return N.responseMessage})},vOF=function(G,c,I,R,Z,K){K=K===void 0?{}:K;
return nO0(G,c,I,R,Z,K)};
qA1.prototype.serverStreaming=function(G,c,I,R){var Z=this,K=G.substring(0,G.length-R.name.length);return Der(function(m){var a=m.methodDescriptor,O=m.getMetadata(),N=oOH(Z,!1);O=Ue$(Z,O,N,K+a.getName());var q=uR7(N,a.responseDeserializeFn,!0);m=a.requestSerializeFn(m.requestMessage);N.send(O,"POST",m);return q},this.streamInterceptors).call(this,u3H(R,c,I))};
var F4r=function(G,c,I){var R=c.methodDescriptor,Z=c.getMetadata(),K=oOH(G,!0);G=Ue$(G,Z,K,I+R.getName());I=uR7(K,R.responseDeserializeFn,!1);YY7(I,Z["X-Goog-Encode-Response-If-Executable"]==="base64");c=R.requestSerializeFn(c.requestMessage);K.send(G,"POST",c);return I},oOH=function(G,c){c=G.chunkedServerStreaming&&!c;
return G.workerScope||c?new _.XC(new cjH({worker:G.workerScope,streamBinaryChunks:c})):new _.XC},Ue$=function(G,c,I,R){c["Content-Type"]="application/json+protobuf";
c["X-User-Agent"]="grpc-web-javascript/0.1";var Z=c.Authorization;if(Z&&rMW.has(Z.split(" ")[0])||G.withCredentials)I.JSC$9965_withCredentials_=!0;if(G.suppressCorsPreflight)R=PYG(R,"$httpHeaders",c);else for(G=_.Q(Object.keys(c)),Z=G.next();!Z.done;Z=G.next())Z=Z.value,I.headers.set(Z,c[Z]);return R},uR7=function(G,c,I){if(I){I=new TAW(G);
var R=new euF(I)}return new hLu({xhr:G,nodeReadableStream:R},c)},Der=function(G,c){return c.reduce(function(I,R){return function(Z){return R.intercept(Z,I)}},G)},wpW=function(G,c){return c.reduce(function(I,R){return function(Z){return R.intercept(Z,I)}},G)};var bVg=function(G){this.client_=new qA1;this.hostname_=G==void 0?G:G.replace(/\/+$/,"")};
_.P=bVg.prototype;_.P.JSC$19891_depositGoogleCredential=function(G,c,I){return vOF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",G,c||{},LZr,I)};
_.P.deleteLink=function(G,c,I){return vOF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",G,c||{},kWW,I)};
_.P.JSC$19891_finishOAuth=function(G,c,I){return vOF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",G,c||{},SYd,I)};
_.P.getLink=function(G,c,I){return vOF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",G,c||{},pa0,I)};
_.P.startLinkingSession=function(G,c,I){return vOF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",G,c||{},Bwu,I)};var kEd=[0,_.Km,1,Md$,[0,_.ab,[0,_.Qz,-1]],[0,pwu],[0,_.lI,-1],[0,pwu]];var sHj=function(){this.storage=new Map},Aj0=function(G,c,I,R,Z){if(!G.storage.has(c))return null;
G=_.Q(G.storage.get(c));for(c=G.next();!c.done;c=G.next())if(c=c.value,!Z||c.linkName===Z)if(I&&c.scopes&&L4u(c.scopes,I)||R&&c.capabilities&&L4u(c.capabilities,R))return c;return null},$eG=function(G,c,I){if(!I)G.storage.delete(c);
else if(G.storage.has(c)){var R=G.storage.get(c).filter(function(Z){return Z.linkName!==I});
R.length>0?G.storage.set(c,R):G.storage.delete(c)}},L4u=function(G,c){c=_.Q(c);
for(var I=c.next();!I.done;I=c.next())if(!G.has(I.value))return!1;return!0};var SAW=function(){var G=_.H1("LINK_GAL_DOMAIN");this.alsDomain1p=_.H1("LINK_GAL_DOMAIN");this.alsDomain3p=G;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},ppW=function(G,c){G.apiKey=c;
return G};
SAW.prototype.build=function(){var G={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("rk");G.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("sk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("tk");G.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(G.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)G.apiKey=
this.apiKey,G.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("uk");G.oauthToken=this.oauthToken;G.alsDomain=this.alsDomain3p}G.clientXd3=this.clientXd3;G.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(G.authUser=this.authUser);this.bucket!==void 0&&(G.bucket=this.bucket);this.completionUrl!==void 0&&(G.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(G.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(G.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(G.locale=this.locale);this.localStorage!==void 0&&(G.localStorage=this.localStorage);G.loggerType=this.loggerType;G.clientEnvironment=this.clientEnvironment;G.colorScheme=this.colorScheme;G.showCloseOption=this.showCloseOption;return G};var bF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(bF,_.aR);var MM7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(MM7,_.aR);var VMH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(VMH,_.aR);var sa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(sa,_.aR);var zuH=function(G){return _.fy(G,1)};var EOj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(EOj,_.aR);var j9u=_.sT(EOj),kQ=[1,2,3,4,5];var ieg=function(G){try{return j9u(G)}catch(c){return null}},JjF=function(){},fA1=function(G,c){switch(_.py(c,kQ)){case 4:return(c=_.jg(c,VMH,4,kQ))&&G.logStateTransition(_.fy(c,1)),!0;
case 5:return(c=_.jg(c,MM7,5,kQ))&&G.logInternalEvent(_.fy(c,1)),!0}return!1},xj$=function(G){switch(G){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.H0(G)}};var JYr=function(G,c){var I=this;this.validator=G;this.messageListener=c;this.dismissCallback=function(){W4G(I,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19920_receiveMessage=function(R){R.type==="message"&&(R=R.event_,R!==null&&(new URL(I.iframe.src)).origin===R.origin&&I.validator(R.data,R.origin)&&!I.messageListener(R.data)&&(I.JSC$19920_resolveCb!==void 0&&I.JSC$19920_resolveCb(R.data),iVF(I)))}},rY7=function(G,c,I){G.uiHandler!==void 0&&W4G(G,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(R,Z){G.JSC$19920_resolveCb=R;G.JSC$19920_rejectCb=Z;G.iframe=document.createElement("iframe");_.IE(G.iframe,c);G.uiHandler=I.displayContent(G.iframe,G.dismissCallback);_.Ld(window,"message",G.JSC$19920_receiveMessage,!1,G)})},W4G=function(G,c){G.JSC$19920_rejectCb!==void 0&&G.JSC$19920_rejectCb(c);
iVF(G)},iVF=function(G){G.uiHandler!==void 0&&G.uiHandler.hideContent();
_.BL(window,"message",G.JSC$19920_receiveMessage,!1,G);G.JSC$19920_resolveCb=void 0;G.JSC$19920_rejectCb=void 0;G.uiHandler=void 0;G.iframe=void 0};var fuF=function(G){if(G===2){var c;G=((c=window)==null?0:c.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return G},BPW=function(G){G=fuF(G);
switch(G){case 0:return"light";case 1:return"dark";default:_.H0(G)}};var W7G=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),BAG=function(G,c){this.JSC$19932_linkingSession=G;this.noticeConfig=c;this.displayInfoMap=new Map;var I=new Map;if(_.A7(this.JSC$19932_linkingSession,zLu,7))for(G=_.Dw(this.JSC$19932_linkingSession,zLu,7),G=_.lR(G,V7W,1,_.qw()),G=_.Q(G),c=G.next();!c.done;c=G.next())c=c.value,I.set(_.fy(c,1),_.VAg(_.Dw(c,_.xQ0,3)));if(I.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){c=this.noticeConfig.enabledDataUsageNoticeUis;G=c.has(0)?I.get(1):void 0;c=c.has(1)?I.get(2):void 0;I=G!==void 0&&c!==void 0?I.get(3):void 0;var R=this.noticeConfig.nestedOrigins;var Z=new EOj;var K=new bF;Z=_.$N(Z,2,kQ,K);K=new EOj;var m=new bF;K=_.$N(K,3,kQ,m);m=[];G!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:G,lastEvent:Z,nestedOrigins:R}]),m.push({trustedUrl:G,lastEvent:Z,nestedOrigins:R}));c!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:c,lastEvent:K,nestedOrigins:R}]),m.push({trustedUrl:c,lastEvent:K,nestedOrigins:R}));I!==void 0?this.displayInfoMap.set(3,[{trustedUrl:I,lastEvent:K,nestedOrigins:R}]):this.displayInfoMap.set(3,m)}};var rj$=function(G){var c=new sHj;this.galService=G;this.galCache=c};
rj$.prototype.getLink=function(G){var c=G.serviceId;var I=G.scopes;var R=G.capabilities;var Z=G.linkName;var K=this,m;return _.T(function(a){if(R!==void 0&&I!==void 0)throw Error("vk");m=Aj0(K.galCache,c,I,R,Z);return m!==null?a.return(m):a.return(K.galService.getLink({serviceId:c,sessionId:Math.floor(Math.random()*2147483648),scopes:I,capabilities:R,linkName:Z}).then(function(O){O=HeG(O);var N=K.galCache;N.storage.has(c)?N.storage.get(c).push(O):N.storage.set(c,[O]);return O}))})};
rj$.prototype.deleteLink=function(G,c,I){var R=this;return _.T(function(Z){$eG(R.galCache,G,I);return Z.return(R.galService.deleteLink({serviceId:G,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:c,linkName:I}).then(function(){return!0}))})};var xe7=function(G,c){var I=this;this.validator=G;this.msgHandler=c;this.closedPopupTimeout=this.JSC$19954_rejectCb=this.JSC$19954_resolveCb=this.popup=null;this.JSC$19954_receiveMessage=function(R){if(R!==null&&(R=R.event_,R.source===I.popup)){var Z=R.data;if(I.validator(Z,R.origin)){var K;(K=I.msgHandler)!=null&&K.call(I,Z)||(I.JSC$19954_resolveCb!==null&&I.JSC$19954_resolveCb(Z),jHd(I))}}}};
xe7.prototype.open=function(G,c){var I=this;this.popup!==null&&tMj(this);return new Promise(function(R,Z){I.JSC$19954_resolveCb=R;I.JSC$19954_rejectCb=Z;I.popup=_.ZT(window,G,"",c);_.Ld(window,"message",I.JSC$19954_receiveMessage,!1,I);hud(I)})};
var tMj=function(G,c){G.JSC$19954_rejectCb!==null&&G.JSC$19954_rejectCb(c);jHd(G)},jHd=function(G){G.closedPopupTimeout&&(G.closedPopupTimeout.cancel(),G.closedPopupTimeout=null);
G.popup&&G.popup.close();_.BL(window,"message",G.JSC$19954_receiveMessage,!1,G);G.popup=null;G.JSC$19954_resolveCb=null;G.JSC$19954_rejectCb=null},hud=function(G){G.closedPopupTimeout=_.hZe(100).then(function(){G.popup?G.popup.closed?deH(G):hud(G):tMj(G,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},deH=function(G){G.closedPopupTimeout=_.hZe(100).then(function(){tMj(G,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var CYd=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),HVH=function(G,c,I,R,Z,K,m,a,O,N){var q=this;this.serviceId=G;this.sessionId=c;this.galService=I;this.oauthDetails=R;this.galLogger=Z;this.interactionMode=K;this.redirectServiceUrl=m;this.consentLanguageKeys=a;this.dynamicUrlParameters=O;this.partnerConfigMinReadTimestamp=N;this.started=!1;this.JSC$19960_dataValidator=function(w,
F){var n=CYd.has(F);n||q.redirectServiceUrl===void 0||(n=q.redirectServiceUrl===F);return n?w.sentinel==="gdi":!1}};
HVH.prototype.complete=function(){var G=this,c;return _.T(function(I){if(G.interactionMode!==1)return I.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));c=PPW.getRedirectStateFromUri();return c===null?I.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):I.return(Xpj(G,c))})};
HVH.prototype.start=function(){var G=this,c;return _.T(function(I){if(G.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.iU(G.oauthDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(G.interactionMode===1)return PPW.setLocation(_.iU(G.oauthDetails,1)),I.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));G.started=!0;G.galLogger.logStateTransition(5);
c=PPW.getPostMessagePopup(G.JSC$19960_dataValidator);return I.return(c.open(_.iU(G.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(R){G.started=!1;var Z=G.galLogger;if((R==null?void 0:R.error)!==void 0)throw Z.logInternalEvent(59),Error("wk");if((R==null?void 0:R.redirect_state)===void 0)throw Z.logInternalEvent(131),Error("xk");return Xpj(G,R.redirect_state)}).catch(function(R){G.started=
!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Xpj=function(G,c){return _.T(function(I){return I.return(yj$(G.galService,{serviceId:G.serviceId,sessionId:G.sessionId,dynamicUrlParameters:G.dynamicUrlParameters,redirectState:c,consentLanguageKeys:G.consentLanguageKeys,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp}).then(function(R){var Z={statusCode:1,link:HeG(R.getLink())};JNH(_.Sg(R,3))!==void 0&&(Z.callerState=JNH(_.Sg(R,3)));_.Jd8(R,4,AMH,ECH).size>0&&(Z.redirectUriParams=new Map(Array.from(_.Jd8(R,4,AMH,ECH).entries()).map(function(K){var m=
_.Q(K);K=m.next().value;var a=m.next().value;m=[];var O=m.concat;a=_.Xj(a,1,_.Ud,_.qw());return[K,O.call(m,_.jn(a))]})));
G.galLogger.logInternalEvent(134);return Z}))})},PPW={getPostMessagePopup:function(G){return new xe7(G)},
getRedirectStateFromUri:function(){var G=_.IW(PPW.getLocation()).fragment_;return(new _.sc(G)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(G){_.ki0(window.location,_.dS(G))},
createOAuthFlow:function(G,c){return new HVH(G.serviceId,G.sessionId,G.galService,c,G.galLogger,G.interactionMode,G.redirectServiceUrl,G.consentLanguageKeys,G.dynamicUrlParameters,G.partnerConfigMinReadTimestamp)}};var gOu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(gOu,_.aR);var YAW=_.sT(gOu);var Gkg=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ctu=function(G,c,I,R,Z,K,m,a,O){var N=this;this.serviceId=G;this.sessionId=c;this.galService=I;this.gsiWebFlowDetails=R;this.colorScheme=Z;this.showCloseOption=K;this.galLogger=m;this.interactionMode=a;this.redirectServiceUrl=O;this.started=!1;this.JSC$19973_dataValidator=function(q,w){var F=Gkg.has(w);F||N.redirectServiceUrl===
void 0||(F=N.redirectServiceUrl===w);return F?q.sentinel==="gal":!1};
this.logEventProcessor=function(q){return q.result?(q=ieg(q.result))?fA1(N.galLogger,q):!1:!1}};
ctu.prototype.complete=function(){var G=this,c,I;return _.T(function(R){if(G.interactionMode!==1)return R.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));c=mou.getRedirectStateFromUri();if(c===void 0)return G.galLogger.JSC$19912_logErrorEvent(131),R.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return I=IIr(G,c),R.return(Ryd(G,I))}catch(Z){return R.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
ctu.prototype.start=function(){var G=this,c;return _.T(function(I){if(G.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.iU(G.gsiWebFlowDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(G.interactionMode===1)return mou.setLocation(ZJg(G,_.iU(G.gsiWebFlowDetails,1))),I.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
G.started=!0;c=mou.getPostMessagePopup(G.JSC$19973_dataValidator,G.logEventProcessor);return I.return(c.open(ZJg(G,_.iU(G.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(R){G.started=!1;if((R==null?void 0:R.result)===void 0)throw G.galLogger.JSC$19912_logErrorEvent(131),Error("xk");R=IIr(G,R.result);return Ryd(G,R)}).catch(function(R){G.started=!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var ZJg=function(G,c){G=["result_channel",G.interactionMode===1?"2":"1","color_scheme",BPW(G.colorScheme),"show_close_option",G.showCloseOption];return Jku(c,G)},Ryd=function(G,c){if(c!==null&&_.A7(c,sa,2)){var I,R=c==null?void 0:(I=_.Dw(c,sa,2))==null?void 0:_.fy(I,2);
R&&G.galLogger.JSC$19912_logErrorEvent(xj$(R));return zuH(_.Dw(c,sa,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return G.galService.getLink({serviceId:G.serviceId,sessionId:G.sessionId,consistencyKey:_.iU(c,1)}).then(function(Z){Z=HeG(Z);G.galLogger.logInternalEvent(134);return{statusCode:1,link:Z}})},IIr=function(G,c){c=YAW(c);
if(!_.A7(c,sa,2)&&_.iU(c,1)==="")throw G.galLogger.JSC$19912_logErrorEvent(5),Error("yk");return c},mou={getPostMessagePopup:function(G,c){return new xe7(G,c)},
getRedirectStateFromUri:function(){return _.RW(_.IW(mou.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(G){_.ki0(window.location,_.dS(G))},
createStreamlinedFlow:function(G,c){return new ctu(G.serviceId,G.sessionId,G.galService,c,G.colorScheme,G.showCloseOption,G.galLogger,G.interactionMode,G.redirectServiceUrl)}};var l2$=function(G){this.storage=(G=G?_.x6("GAL"):_.gDT("GAL"))?new _.f4(G):null};
l2$.prototype.getSession=function(G){if(this.storage!==null)try{var c=this.storage.get("SAVED_SESSION");if(c===void 0)return null;if(c.serviceId===G)return c}catch(I){}return null};var K1G=function(){};
_.u(K1G,JjF);K1G.prototype.logStateTransition=function(){};
K1G.prototype.logInternalEvent=function(){};
K1G.prototype.JSC$19912_logErrorEvent=function(){};var Pv0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Pv0,_.aR);Pv0.prototype.getCompletionUrl=function(){return _.iU(this,15)};var kE=function(G,c,I,R,Z,K){this.serviceId=G;this.environment=c;this.sessionId=I;this.colorSchemeSelected=R;this.colorThemeDisplayed=Z;this.JSC$19986_transport=K;this.currentState=1};
_.u(kE,JjF);kE.prototype.logStateTransition=function(G){var c=Qhd(this);c=_.oz(c,3,this.currentState);c=_.oz(c,1,G);this.currentState=G;G=rm0(1);this.dispatch(c,G)};
kE.prototype.logInternalEvent=function(G){G=rm0(G);this.dispatch(Qhd(this),G)};
kE.prototype.JSC$19912_logErrorEvent=function(G){var c=Qhd(this);c=_.oz(c,1,10);G=rm0(G);this.dispatch(c,G)};
var Qhd=function(G){var c=new Pv0;c=_.oz(c,1,G.currentState);c=_.Eq(c,7,G.serviceId);var I,R;var Z=((I=window)==null?0:(R=I.location)==null?0:R.href)?_.IW(window.location.href).JSC$10201_domain_:"NO_PACKAGE_NAME";I=_.Eq(c,8,Z);I=_.oz(I,6,G.environment);I=_.Eq(I,5,"100");I=_.oz(I,11,G.colorSchemeSelected);return _.oz(I,12,G.colorThemeDisplayed)};
kE.prototype.dispatch=function(G,c){c===void 0&&(c=new _.LU);var I=c;G=G.serialize();I=_.Eq(I,8,G);_.Ef(I,12,this.sessionId);this.JSC$19986_transport.dispatch(c)};var mlg=function(G,c){this.loggerType=G;this.sessionIndex=c!=null?c:0},aIu;
mlg.prototype.create=function(G,c,I,R,Z){switch(this.loggerType){case 0:return new K1G;case 1:return aIu||(aIu=(new _.bR(555,this.sessionIndex.toString())).build()),new kE(G,c,I,R,Z,aIu);default:_.H0(this.loggerType,"unknown logger type")}};var a2F=[6,2,3,1],DoF=new Map([[4,1],[1,6],[2,2],[3,3]]),YNu={statusCode:7,statusMessage:"Failed to create flow object"},ek1=function(G,c,I,R,Z,K,m,a,O,N){this.serviceId=G;this.sessionId=c;this.config=I;this.galService=R;this.JSC$19993_linkingSession=Z;this.googleScopes=K;this.callerState=m;this.consentLanguageKeys=a;this.dynamicUrlParameters=O;this.partnerConfigMinReadTimestamp=N;this.currentFlow=0;R=this.JSC$19993_linkingSession;Z=new Set;_.A7(R,KLu,1)&&Z.add(1);_.A7(R,JMF,2)&&_.A7(R,Qld,6)&&Z.add(2);
_.A7(R,EnF,3)&&_.A7(R,Qld,6)&&Z.add(3);_.A7(R,M71,4)&&Z.add(6);this.supportedFlows=Z;R=I.loggerType;Z=I.clientEnvironment;a:{K=I.colorScheme;switch(K){case 0:K=1;break a;case 1:K=2;break a;case 2:K=3;break a;default:_.H0(K)}K=void 0}a:{m=I.colorScheme;m=fuF(m);switch(m){case 0:m=1;break a;case 1:m=2;break a;default:_.H0(m)}m=void 0}this.galLogger=(new mlg(R,I.authUser)).create(G,Z,c,K,m)},ey$=function(G){return new Promise(function(c){var I,R,Z,K,m,a,O,N,q,w;
return _.T(function(F){switch(F.nextAddress){case 1:I=T8j(G.currentFlow,G.supportedFlows),R=!1,Z=new BAG(G.JSC$19993_linkingSession,G.config.dataUsageNoticeConfig);case 2:if(I===void 0){F.jumpTo(4);break}_.s9(F,5);var n=Z,U=I,k=void 0;R?U===1&&(k=n.displayInfoMap.get(2)):U===2||U===3?k=n.displayInfoMap.get(1):U===1&&(k=n.displayInfoMap.get(3));K=k?k:[];m=G.consentLanguageKeys;a=_.Q(K);O=a.next();case 7:if(O.done)return G.currentFlow=I,F.yield(cqH(Ttd(G,m)),11);N=O.value;return F.yield(tRr(N,G.config.dataUsageNoticeConfig.uiAdapter,
G.config.colorScheme,G.galLogger),10);case 10:q=F.yieldResult;if(q.statusCode!==1)return OJF(G),c(I2u({statusCode:q.statusCode,statusMessage:q.statusMessage},G.callerState)),F.return();q.consentLanguageKeys!==void 0&&(m=q.consentLanguageKeys);O=a.next();F.jumpTo(7);break;case 11:w=F.yieldResult;if(w.statusCode!==10)return w.statusCode!==6&&OJF(G),w.statusCode!==1&&G.callerState!==void 0&&(w.callerState=G.callerState),c(w),F.return();_.Pl(F,6);break;case 5:_.M3(F);case 6:I=T8j(G.currentFlow,G.supportedFlows);
R=!0;F.jumpTo(2);break;case 4:OJF(G),c(I2u({statusCode:12,statusMessage:"Linking failed"},G.callerState)),_.Vp(F)}})})},OJF=function(G){qgd(G.serviceId,G.config.localStorage);
G.currentFlow=0},nPG=function(G,c,I){G.currentFlow=c;
return Rku(Ttd(G,I)).then(function(R){return R.statusCode===10&&G.config.interactionMode===1&&T8j(G.currentFlow,G.supportedFlows)!==void 0?ey$(G):R})},Ttd=function(G,c){return{flowParams:{serviceId:G.serviceId,
sessionId:G.sessionId,galService:G.galService,galLogger:G.galLogger,interactionMode:G.config.interactionMode,redirectServiceUrl:G.config.redirectServiceUrl,colorScheme:G.config.colorScheme,consentLanguageKeys:c,dynamicUrlParameters:G.dynamicUrlParameters,showCloseOption:G.config.showCloseOption,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp},currentFlow:G.currentFlow,config:G.config,session:G.JSC$19993_linkingSession,googleScopes:G.googleScopes,callerState:G.callerState}};var Uog=function(G,c){this.config=G;this.galService=c.getService();this.JSC$20006_galRepository=c.JSC$20024_galRepository};
Uog.prototype.getLink=function(G,c){return Nt0(this,G,c)};
var Nt0=function(G,c,I){return G.JSC$20006_galRepository.getLink({serviceId:c,scopes:void 0,capabilities:void 0,linkName:I}).then(function(R){return{statusCode:1,link:R}}).catch(function(R){return{statusCode:oP$(R.code),
statusMessage:R.message}})};
Uog.prototype.deleteLink=function(G,c){return this.JSC$20006_galRepository.deleteLink(G,this.config.accountLinkingEntryPoint,c).then(function(){return{statusCode:1}}).catch(function(I){return{statusCode:oP$(I.code),
statusMessage:I.message}})};
Uog.prototype.startLinkingSession=function(G){var c=G.serviceId;var I=G.sessionId;return N8u({serviceId:c,sessionId:I!==void 0?I:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:G.loginHint,callerState:G.callerState,consentLanguageKeys:G.consentLanguageKeys,linkName:G.linkName,dynamicUrlParameters:G.dynamicUrlParameters,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp})};var sw=function(G,c,I,R,Z,K,m){this.apiKey=c;this.authUser=I;this.oauthToken=R;this.bucket=Z;this.locale=K;this.galSdkEventHandler=m;if(R===void 0){if(c===void 0)throw Error("zk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new bVg(G)};
sw.prototype.deleteLink=function(G){var c=G.serviceId;var I=G.sessionId;var R=G.accountLinkingEntryPoint;var Z=G.linkName;var K=this,m;return _.T(function(a){var O=(new vi).setHeader(K.getHeader(I));var N=lIr({serviceId:c,linkName:Z});O=_.Az(O,2,N);m=_.t7(O,3,R);return a.return(K.makeRequest(K.galServiceClient.deleteLink,m,[1,3],[2,4]))})};
var yj$=function(G,c){var I=c.serviceId;var R=c.sessionId;var Z=c.dynamicUrlParameters;var K=c.redirectState;var m=c.consentLanguageKeys;var a=c.partnerConfigMinReadTimestamp;var O;return _.T(function(N){var q=(new oo).setHeader(G.getHeader(R,Z));q=_.Xt(q,2,I);O=_.Xt(q,4,K);m!==void 0&&_.Xt(O,5,m);a!==void 0&&_.Az(O,6,a);return N.return(G.makeRequest(G.galServiceClient.JSC$19891_finishOAuth,O,[1,3],[2,4]))})};
sw.prototype.getLink=function(G){var c=G.serviceId;var I=G.sessionId;var R=G.scopes;var Z=G.capabilities;var K=G.consistencyKey;var m=G.linkName;var a=this,O;return _.T(function(N){var q=(new Uw).setHeader(a.getHeader(I)),w=lIr({serviceId:c,scopes:R,capabilities:Z,linkName:m});O=_.Az(q,2,w);K!==void 0&&(q=nnW(),q=_.Xt(q,2,K),_.Az(O,3,q));return N.return(a.makeRequest(a.galServiceClient.getLink,O,[1,3],[2,4]))})};
var Zs7=function(G,c){var I=c.serviceId;var R=c.sessionId;var Z=c.googleScopes;var K=c.consistencyKey;var m;return _.T(function(a){var O=(new DU).setHeader(G.getHeader(R));O=_.Xt(O,2,I);var N=Array.from(Z.values());O=_.YF(O,3,N,_.Fj);N=nnW();N=_.Xt(N,2,K);m=_.Az(O,4,N);return a.return(G.makeRequest(G.galServiceClient.JSC$19891_depositGoogleCredential,m,[1,3],[2,4]))})};
sw.prototype.startLinkingSession=function(G){var c=G.serviceId;var I=G.sessionId;var R=G.scopes;var Z=G.capabilities;var K=G.loginHint;var m=G.supportedFlows;var a=G.completionUrl;var O=G.usePingPong;var N=G.twoWayLinking;var q=G.accountLinkingEntryPoint;var w=G.callerState;var F=G.consentLanguageKeys;var n=G.googleScopes;var U=G.dataUsageNoticeConfig;var k=G.linkName;var p=G.dynamicUrlParameters;var M=G.partnerConfigMinReadTimestamp;var z=this,t,x;return _.T(function(C){if(Z!==void 0&&R!==void 0)throw Error("vk");
var H=(new fMW).setHeader(z.getHeader(I,p));t=_.Xt(H,2,c);k!==void 0&&_.Xt(t,14,k);if(Z!==void 0){H=t;var g=Array.from(Z.values());_.YF(H,5,g,_.Fj)}else R!==void 0&&(H=t,g=Array.from(R.values()),_.YF(H,3,g,_.Fj));a!==void 0&&_.Xt(t,6,a);O!==void 0&&_.DZ(t,15,O);m!==void 0&&(H=t,g=Array.from(m.values()),_.YF(H,4,g,_.K1));if(N!==void 0){if(N&&(!n||n.size===0))throw Error("Ak");_.DZ(t,8,N)}q!==void 0&&_.t7(t,9,q);K!==void 0&&_.Xt(t,13,K);w!==void 0&&(H=t,g=(new TextEncoder).encode(w),_.G6(H,12,_.Mk(g,
!1),_.Si()));F!==void 0&&_.Xt(t,16,F);M!==void 0&&_.Az(t,18,M);if(U!==void 0&&U.size>0||n!==void 0&&n.size>0)x=new i$W,n!==void 0&&n.size>0&&(H=x,g=Array.from(n.values()),_.YF(H,1,g,_.Fj)),U!==void 0&&(U.has(0)&&_.xgr(x,2,_.K1,1,_.Pu),U.has(1)&&_.xgr(x,2,_.K1,2,_.Pu)),_.Az(t,17,x);return C.return(z.makeRequest(z.galServiceClient.startLinkingSession,t,[1],[2]))})};
sw.prototype.getMetadata=function(){var G=this,c,I;return _.T(function(R){c={};G.useFpa?(c["X-Goog-Api-Key"]=G.apiKey,c["X-Goog-AuthUser"]=G.authUser!==void 0?G.authUser.toString():"0",(I=_.uZ8([]))&&(c.Authorization=I)):c.Authorization="Bearer "+G.oauthToken;G.locale&&(c["accept-language"]=G.locale);return R.return(c)})};
sw.prototype.makeRequest=function(G,c,I,R){var Z=this,K;return _.T(function(m){if(m.nextAddress==1)return m.yield(Z.getMetadata(),2);K=m.yieldResult;qPg(Z,I);return m.return(G.bind(Z.galServiceClient)(c,K).finally(function(){qPg(Z,R)}))})};
var qPg=function(G,c){G.galSdkEventHandler!==void 0&&c.forEach(function(I){G.galSdkEventHandler.onEvent(I)})};
sw.prototype.getHeader=function(G,c){var I=new wp;G=_.G6(I,2,_.mW(G),0);G=_.t7(G,5,3);c=_.YF(G,8,c,_.Fj);this.bucket!==void 0&&_.Xt(c,1,this.bucket);return c};
var lIr=function(G){var c=G.serviceId;var I=G.scopes;var R=G.capabilities;G=G.linkName;if(R!==void 0&&I!==void 0)throw Error("vk");var Z=new waW;c=_.Xt(Z,1,c);R!==void 0?(I=Array.from(R.values()),_.YF(c,5,I,_.Fj)):I!==void 0&&(I=Array.from(I.values()),_.YF(c,3,I,_.Fj));G!==void 0&&_.Xt(c,6,G);return c};var utF=function(G){this.galService=new sw(G.alsDomain,G.apiKey,G.authUser,G.oauthToken,G.bucket,G.locale,G.galSdkEventHandler);this.JSC$20024_galRepository=new rj$(this.galService)};
utF.prototype.getService=function(){return this.galService};var wE0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(wE0,_.aR);var F1d=function(G){var c=new wE0;return _.oz(c,1,G)};
wE0.prototype.setErrorMessage=function(G){return _.Eq(this,2,G)};var nhG=[0,_.N0,_.P7,_.N0];var L5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(L5,_.aR);var vhr=[0,[1,2,3],_.T7,[0,_.b1V,_.XqF,-1],_.T7,[0,SBF,-1],_.mU];var DlG=[0,_.Rb,1,_.N0,_.P7,-1,1,_.OF,_.Yo,_.N0,-1,vhr];var ohr=[0,_.N0,[0,_.OF,_.Yo,[0,_.P7]],_.Zn,[0,_.N0,-1]];var K5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(K5,_.aR);var Ulu=[0,_.P7,_.N0,-2,_.Rb,_.N0,_.Rb,_.N0,-2,1,_.Zn];var uFF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(uFF,_.aR);var bJ$=[0,_.Rb];var kkd=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(kkd,_.aR);var shu=[0,_.N0,ohr,bJ$,Ulu,DlG];var wz7=_.b5(kkd,shu);var L1r=[0,kEd];var unG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(unG,_.aR);var At0=[0,[1,3],Vd1,_.N0,Vd1];var Upu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(Upu,_.aR);var $l$=[0,_.N0];var SP0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(SP0,_.aR);var b9F=function(G){return _.jg(G,wE0,2,ZU)},pEu=function(G){var c=new SP0;
return _.$N(c,2,ZU,G)},ZU=[1,
2];var M5g=[0,ZU,_.T7,$l$,_.T7,nhG,_.ab,At0,1,_.N0,L1r];var V5j=[0,1,[0,[1,2,3],_.T7,[0],_.T7,[0,iq1],_.T7,[0,kEd]]];var zyW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(zyW,_.aR);var Jt$=function(G){var c=new zyW;return _.$N(c,3,Eh0,G)},Eh0=[2,
3];var W1d=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(W1d,_.aR);var iJu=function(G,c){return _.Az(G,2,c)},fI1=function(G,c){return _.Az(G,8,c)},Btg=function(G,c){return _.Az(G,3,c)};var rtG=[0,_.N0,M5g,shu,_.FC,[0,[5,6,7],[0,_.N0,-2],[0,_.Rb,_.N0,_.P7],[0,vhr],[0,_.P7,_.N0,-1,_.w4,_.N0],_.T7,[0,[0,_.Rb],_.N0,-1],_.T7,[0,[3,4],_.N0,-1,_.T7,[0,[0,_.N0,_.Zn]],_.T7,[0,[0,[0,[1,2,3],_.T7,[0],_.T7,[0],_.T7,[0]]]]],_.T7,[0,_.N0]],_.FC,-1,[0,Eh0,_.N0,_.T7,$l$,_.T7,nhG,_.ab,At0,[0,kEd],V5j]];var jh0=_.b5(W1d,rtG),xl0=_.kN(rtG);var t5g=function(){_.JK.call(this)};
_.u(t5g,_.JK);t5g.prototype.init=function(){};
new t5g;var hyd=_.I3(["data-"]),dlu=_.I3(["aria-"]),CvH=_.I3(["aria-"]),An=function(G,c){this.isLatencyMeasurementExperiment=G===void 0?!1:G;this.enableDialogA11yFix=c===void 0?!1:c;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.NFi(_.Rq.location.href)},nbH=function(G,c){G.onConsentPrimitiveShownCallback=c},HJu=function(G,c){return G.overriddenIframeLoadTimeout?G.overriddenIframeLoadTimeout:c!==void 0?c:5E3},Dpr=function(G){if(G.prewarmPromise!==void 0)return G.prewarmPromise;
G.prewarmPromise=new Promise(function(c,I){$E(G,1);XEr(G,ytj(G,!0),ghu(G));G.iframe?G.prewarmChannel||YP0(G,G.iframe,c):I(Error("Bk"))});
G.prewarmPromise.finally(function(){G.prewarmPromise=void 0});
return G.prewarmPromise};
An.prototype.showPrimitive=function(){var G=this;if(this.consentPromise!==void 0)return this.consentPromise;var c=Date.now();GIu(this,c);this.consentPromise=new Promise(function(I,R){$E(G,0,c);var Z=G.isDarkTheme();G.isLatencyMeasurementExperiment||G.initialLoadingStrategy===1||G.initialLoadingStrategy===2||(G.loadingBar||(G.loadingBar=LLF(getComputedStyle(document.body).direction==="rtl",Z),G.loadingBar.style.position="fixed",G.loadingBar.style.zIndex="15000"),document.body.appendChild(G.loadingBar));
XEr(G,ytj(G),ghu(G));G.iframe?G.channel||chd(G,G.iframe,I,R):(IGd(G),R(Error("Bk")))});
this.consentPromise.finally(function(){G.consentPromise=void 0});
return this.consentPromise};
var chd=function(G,c,I,R){var Z,K;_.T(function(m){switch(m.nextAddress){case 1:$E(G,3);Z=!1;setTimeout(function(){if(!Z){IGd(G);RF0(G);Z7G(G);var a=F1d(7).setErrorMessage("Timeout connecting to iframe");I(fI1(iJu(new W1d,pEu(a)),Jt$(a)))}},HJu(G,KCW(G)));
if(!G.prewarmPromise){m.jumpTo(2);break}_.s9(m,3);return m.yield(G.prewarmPromise,5);case 5:_.Pl(m,2);break;case 3:_.M3(m),K=F1d(4).setErrorMessage("Error while prewarming."),I(fI1(iJu(new W1d,pEu(K)),Jt$(K)));case 2:G.prewarmChannel&&G.prewarmChannel.send(xl0(Btg(new W1d,G.consentPrimitiveRequest))),G.channel=_.FI({destination:G.win,iframe:c,origin:P1H(G),channelName:"cpw",onEstablished:function(){Z=!0;IGd(G);G.isLatencyMeasurementExperiment||(G.JSC$20053_previousBodyOverflow=document.body.style.overflow,
G.JSC$20053_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,G.JSC$20053_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",G.enableDialogA11yFix&&window.addEventListener("blur",G.focusChangeListener));var a=G.iframe;a.style.bottom="0";a.style.position="fixed";a.style.right="0";a.style.border="none";a.style.left="0";a.style.top=
"0";a.style.zIndex="5000";a.style.pointerEvents="";a.style.visibility="";G.initialLoadingStrategy===2||G.initialLoadingStrategy===3?$E(G,4):$E(G,6);var O;(O=G.onConsentPrimitiveShownCallback)==null||O.call(G)},
onMessage:function(a){a=jh0(a.data);switch(_.fy(a,1)){case 1:RF0(G);var O=AqW(_.Dw(a,_.iP,7));O&&(G.initialLoadingStrategy!==2&&G.initialLoadingStrategy!==3||$E(G,6,O),$E(G,5,O));if(O=AqW(_.Dw(a,_.iP,6)))$E(G,7,O),$E(G,8);var N,q;((N=_.Dw(a,SP0,2))==null?void 0:_.py(N,ZU))!==0&&((q=_.Dw(a,zyW,8))==null?void 0:_.py(q,Eh0))!==0||R(Error("Ck"));I(a);break;case 2:Z7G(G)}}}),_.Vp(m)}})},YP0=function(G,c,I){G.prewarmChannel=_.FI({destination:G.win,
iframe:c,origin:P1H(G),channelName:"pwcp",onEstablished:function(){$E(G,2);I()}})},P1H=function(G){var c=_.z6(G.src).toString();
return c&&c.indexOf("://")<0&&c.indexOf("//")!==0?G.origin:_.NFi(c)},ytj=function(G,c){c=c===void 0?!1:c;
var I,R=new Map([["origin",G.origin],["hl",(I=QMG(G))!=null?I:null]]);c&&R.set("pw","1");c=_.Q([["cpr",G.consentPrimitiveRequest.serialize()]]);for(I=c.next();!I.done;I=c.next()){var Z=_.Q(I.value);I=Z.next().value;Z=Z.next().value;R.set(I,Z)}G.isDarkTheme()&&R.set("color_scheme","dark");return _.o2(G.src,R)},IGd=function(G){G.isLatencyMeasurementExperiment||G.loadingBar&&document.body.removeChild(G.loadingBar)};
An.prototype.getSrc=function(){var G=_.O2(this.origin),c;var I=(c=_.Dw(this.consentPrimitiveRequest,uFF,3))==null?void 0:_.wF(c,1);c="consent.google.com";I=I?"/u/"+encodeURIComponent(I.toString()):"";(G==null?0:G.endsWith("youtube.com"))?c="consent.youtube.com":(G=G==null?void 0:G.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(c="consent.google."+((G[1]?"co.":"")+encodeURIComponent(G[2])));return _.Vx("https://"+c+"/signedin"+I+"/landing")};
var XEr=function(G,c,I){G.iframe||(G.iframe=document.createElement("iframe"),G.iframe.style.width="100%",G.iframe.style.height="100%",I!==112496729&&(G.iframe.style.colorScheme="auto"),G.isLatencyMeasurementExperiment&&(G.iframe.style.display="none"),_.IE(G.iframe,c),G.iframe.setAttribute("jsname","C5o1O"),m4u(G.iframe),document.body.appendChild(G.iframe))},m4u=function(G){G.style.bottom="-200vh";
G.style.position="fixed";G.style.right="-200vw";G.style.border="";G.style.left="";G.style.top="";G.style.zIndex="";G.style.pointerEvents="none";G.style.visibility="hidden"},RF0=function(G){G.iframe&&(G.isLatencyMeasurementExperiment||(G.JSC$20053_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=G.JSC$20053_previousHtmlOverscroll),G.JSC$20053_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=G.JSC$20053_previousBodyOverscroll),G.JSC$20053_previousBodyOverflow!==
void 0&&(document.body.style.overflow=G.JSC$20053_previousBodyOverflow),G.enableDialogA11yFix&&aGW(G,!1)),m4u(G.iframe))};
An.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(aGW(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var aGW=function(G,c){var I,R,Z=(I=G.iframe)==null?void 0:(R=I.parentElement)==null?void 0:R.children;if(Z)for(I=0;I<Z.length;I++)R=Z[I],R!==G.iframe&&(c?(R.hasAttribute("aria-hidden")&&_.N3([_.FU(hyd)],R,"data-old-aria-hidden",R.getAttribute("aria-hidden")),_.N3([_.FU(dlu)],R,"aria-hidden","true")):(R.removeAttribute("aria-hidden"),R.hasAttribute("data-old-aria-hidden")&&(_.N3([_.FU(CvH)],R,"aria-hidden",R.getAttribute("data-old-aria-hidden")),R.removeAttribute("data-old-aria-hidden"))))},$E=function(G,
c,I){var R;
(R=G.latencyCallback)==null||R.call(G,{latencyType:c,timestampEpochMillis:I!=null?I:Date.now()})};var Tgd=function(G,c,I){An.call(this,c,I===void 0?!1:I);this.consentPrimitiveRequest=G;G=QMG(this);_.HHr(G);this.src=this.getSrc();var R;this.initialLoadingStrategy=(R=_.Dw(this.consentPrimitiveRequest,K5,4))==null?void 0:_.fy(R,4)},O7W;
_.u(Tgd,An);var FDr=function(G){var c=_.v("enable_primitive_dialog_aria_hide_siblings");G={request:G,enableDialogA11yFix:c===void 0?!1:c};O7W||(O7W=new Tgd(G.request,G.isLatencyMeasurementExperiment||_.fy(G.request,1)===2,G.enableDialogA11yFix));return O7W},QMG=function(G){var c;
return(c=_.Dw(G.consentPrimitiveRequest,K5,4))==null?void 0:_.iU(c,1)},GIu=function(G,c){if(!_.A7(G.consentPrimitiveRequest,L5,5)){var I=G.consentPrimitiveRequest,R=new L5;
_.Az(I,5,R)}var Z;if((Z=_.Dw(G.consentPrimitiveRequest,L5,5))==null||_.Jei(_.Ly(Z,8))==null){var K;(K=_.Dw(G.consentPrimitiveRequest,L5,5))!=null&&_.Ef(K,8,c)}},ghu=function(G){var c;
return(c=_.Dw(G.consentPrimitiveRequest,L5,5))==null?void 0:_.wF(c,1)};
Tgd.prototype.isDarkTheme=function(){var G;return((G=_.Dw(this.consentPrimitiveRequest,K5,4))==null?void 0:_.fy(G,2))===2};
var KCW=function(G){var c;return((c=_.Dw(G.consentPrimitiveRequest,K5,4))==null?void 0:_.wF(c,5))||void 0},Z7G=function(G){G.channel=void 0;
G.prewarmChannel=void 0;G.iframe&&(document.body.contains(G.iframe)&&document.body.removeChild(G.iframe),G.iframe=void 0);O7W=void 0},obH=function(G){return An.prototype.showPrimitive.call(G).then(function(c){return _.Dw(c,SP0,2)})};for(var SZ={},eFG=(SZ[64]="ma",SZ[73]="ogb",SZ[89]="cr",SZ[21]="test",SZ[0]="unkn",SZ[137]="con",SZ[155]="hl",SZ[78]="yt",SZ[171]="lp",SZ[172]="ap",SZ[177]="amo",SZ[178]="pqe",SZ[74]="gg",SZ[1]="gm",SZ[140]="am",SZ[193]="sc",SZ),Ngd=_.Q(Object.keys(eFG)),lGd=Ngd.next();!lGd.done;lGd=Ngd.next());var qOg=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(qOg,_.aR);var wk1=[0,[2,3,4],_.N0,$7g,Vd1,_.mU];var FCg=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(FCg,_.aR);var nLd=_.b5(FCg,[0,_.lI,_.P7,_.N0,_.P7,_.N0,wk1]);var vLW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(vLW,_.aR);vLW.prototype.getCommand=function(){return _.fy(this,1)};
var D4d=function(){var G=new vLW;return _.t7(G,1,0)};var oLu=_.kN([0,_.lI,_.P7,[0,_.N0,_.P7,-1]]);var U4H=new _.VM("s"),ui$=new _.VM("t"),b7g=new _.VM("u"),kI1=new _.VM("v"),sMF=function(G,c,I){_.zR.call(this,U4H);this.mediaKey=G;this.photoUrl=c;this.photoSource=I};
_.u(sMF,_.zR);var LCd=function(){_.zR.call(this,ui$)};
_.u(LCd,_.zR);var Ah$=function(G){G=G===void 0?!1:G;_.zR.call(this,b7g);this.isError=G};
_.u(Ah$,_.zR);var $4g=function(){_.zR.call(this,kI1)};
_.u($4g,_.zR);var SOF=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,zFd=function(G){if(typeof G=="string"){if(G.charAt(0)==".")return pkj(G.substr(1));if(G.charAt(0)=="["){var c=SOF.exec(G);G=G.indexOf("=")==-1?void 0:c[3];return Msu(c[1],G)}return Vsu(G)}return G},pkj=function(G){return function(c){return c.getAttribute&&_.aN(c,G)}},Msu=function(G,c){return function(I){return c!==void 0?I.getAttribute&&I.getAttribute(G)==c:I.hasAttribute&&I.hasAttribute(G)}},Vsu=function(G){G=G.toUpperCase();
return function(c){return(c=c.tagName)&&c.toUpperCase()==G}},ELj=function(){return!0};var p5=function(G,c){this.JSC$20081_key_=G;this.JSC$20081_value_=c},Jh7=function(G){throw Error("Dk`"+G.JSC$20081_key_);
},WCW=function(G,c){return new TypeError("Ek`"+c+"`"+G.JSC$20081_key_+"`"+G.JSC$20081_value_+"`"+typeof G.JSC$20081_value_)};
p5.prototype.string=function(G){return arguments.length==0?i7u(this):fGW(this,G)};
var fGW=function(G,c){var I;return(I=Bg7(G))!=null?I:c},i7u=function(G){var c=Bg7(G);
c===null&&Jh7(G);return c},Bg7=function(G){var c=G.JSC$20081_value_;
if(c==null)return null;if(typeof c==="string")return c;throw WCW(G,"string");};
p5.prototype.bool=function(G){if(arguments.length==0){var c=this.optionalBool();c===null&&Jh7(this)}else{var I;c=(I=this.optionalBool())!=null?I:G}return c};
p5.prototype.optionalBool=function(){var G=this.JSC$20081_value_;if(G==null)return null;if(typeof G==="boolean")return G;if(typeof G==="string"){G=G.toLowerCase();if(G==="true"||G==="1")return!0;if(G==="false"||G==="0")return!1}throw WCW(this,"boolean");};
p5.prototype.number=function(G){if(arguments.length==0){var c=rh0(this);c===null&&Jh7(this)}else c=jMj(this,G);return c};
var jMj=function(G,c){var I;return(I=rh0(G))!=null?I:c},rh0=function(G){var c=G.JSC$20081_value_;
if(c==null)return null;if(typeof c==="number")return c;if(typeof c==="string"){var I=Number(c);if(!isNaN(I)&&(I!==0||c.trim().length!==0))return I}throw WCW(G,"number");};
p5.prototype.toString=function(){return i7u(this)};
p5.prototype.enum=function(G,c){var I=!0,R=void 0,Z;for(Z in G){var K=G[Z];I&&(I=!1,R=typeof K==="number"?jMj(this,c):fGW(this,c));if(K==R)return R}JSON.stringify(G);return R};
p5.prototype.array=function(G){if(arguments.length==0){var c=x4$(this);c===null&&Jh7(this);return c}c=x4$(this);return c==null?G:c};
var x4$=function(G){var c=G.JSC$20081_value_;if(c==null)return null;Array.isArray(c)||(typeof c!=="string"?c=[c]:(c=c.trim(),c=c==""?[]:c.split(",").map(function(I){return I.trim()})));
return ts0(G,c)},ts0=function(G,c){var I=G.JSC$20081_key_+"[";
return Array.from(c,function(R,Z){return new p5(I+Z+"]",R)})};
p5.prototype.object=function(G){var c=this.JSC$20081_value_;if(c==null)return G===void 0&&Jh7(this),G;if(typeof c==="object"&&c.constructor===Object){G={};var I=this.JSC$20081_key_+".",R;for(R in c)G[R]=new p5(I+R,c[R]);return G}throw WCW(this,"object");};var MG=function(G){this.list_=hF$(G)},hF$=function(G){if(G instanceof MG)G=G.list_;
else if(G[0]instanceof MG){for(var c=new Set,I=0;I<G.length;I++)for(var R=_.Q(G[I].list_),Z=R.next();!Z.done;Z=R.next())c.add(Z.value);G=c}return[].concat(_.jn(G))};
_.P=MG.prototype;_.P.each=function(G,c,I){((I===void 0?0:I)?pIF:_.K4)(this.list_,G,c);return this};
_.P.size=function(){return this.list_.length};
_.P.isEmpty=function(){return this.list_.length===0};
_.P.get=function(G){return this.list_[G]||null};
_.P.el=function(){return this.list_[0]||null};
_.P.map=function(G,c){return _.jB(this.list_,G,c)};
_.P.equals=function(G){return this===G||_.gb(this.list_,G.list_)};
_.P.first=function(){return this.list_.length==0?null:new Vo(this.list_[0])};
_.P.last=function(){return this.list_.length==0?null:new Vo(this.list_[this.list_.length-1])};
_.P.find=function(G){var c=[];this.each(function(I){I=I.querySelectorAll(String(G));for(var R=0;R<I.length;R++)c.push(I[R])});
return new MG(c)};
_.P.parent=function(){var G=[];this.each(function(c){(c=c.parentElement||null)&&!_.fA(G,c)&&G.push(c)});
return new MG(G)};
_.P.children=function(){var G=[];this.each(function(c){c=_.XI(c);for(var I=0;I<c.length;I++)G.push(c[I])});
return new MG(G)};
_.P.filter=function(G){G=_.qO(this.list_,zFd(G));return new MG(G)};
_.P.closest=function(G){var c=[],I=zFd(G),R=function(Z){return _.Ta(Z)&&I(Z)};
this.each(function(Z){(Z=_.H6(Z,R,!0))&&!_.fA(c,Z)&&c.push(Z)});
return new MG(c)};
_.P.next=function(G){return d4j(this,_.Sq9,G)};
_.P.prev=function(G){return d4j(this,zl7,G)};
var d4j=function(G,c,I){var R=[];var Z=I?zFd(I):ELj;G.each(function(K){(K=c(K))&&Z(K)&&R.push(K)});
return new MG(R)};
MG.prototype.setClass=function(G){return this.each(function(c){_.mD(c,G)})};
var C1u=function(G,c){return G.each(function(I){_.g0(I,c)})},H7$=function(G,c){return G.each(function(I){_.XP(I,c)})};
MG.prototype.toggleClass=function(G,c){return c===!0?C1u(this,G):c===!1?H7$(this,G):this.each(function(I){_.aN(I,G)?_.XP(I,G):_.g0(I,G)})};
MG.prototype.setText=function(G){return this.each(function(c){_.yz(c,G)})};
var Xkr=function(G){G.each(function(c){c.removeAttribute("aria-hidden")})};
MG.prototype.getStyle=function(G){if(this.list_.length>0){var c=this.list_[0],I=c.style[_.mY(G)];return typeof I!=="undefined"?I:c.style[_.xSi(c,G)]||""}};
MG.prototype.getData=function(G){if(this.list_.length===0)return new p5(G,null);var c=WwW(this.list_[0],G);return new p5(G,c)};
MG.prototype.focus=function(G){try{G?this.el().focus(G):this.el().focus()}catch(c){}return this};
MG.prototype.click=function(){var G=_.dx(this.el());if(G.createEvent){var c=G.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,G.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(c)}else G=G.createEventObject(),G.clientX=0,G.clientY=0,G.screenX=0,G.screenY=0,G.altKey=!1,G.ctrlKey=!1,G.shiftKey=!1,G.button=0,this.el().fireEvent("onclick",G)};
var zS=function(G,c,I,R){function Z(a,O,N){var q=O;O&&O.parentNode&&(q=O.cloneNode(!0));a(q,N)}
R=R===void 0?!1:R;if(G.list_.length==1){var K=G.list_[0],m=function(a){return c(a,K)};
I instanceof MG?I.each(m,void 0,R):Array.isArray(I)?(R?pIF:_.K4)(I,m):m(I);return G}return G.each(function(a){I instanceof MG?I.each(function(O){Z(c,O,a)}):Array.isArray(I)?_.K4(I,function(O){Z(c,O,a)}):Z(c,I,a)})};
_.P=MG.prototype;_.P.append=function(G){return zS(this,function(c,I){c&&I.appendChild(c)},G)};
_.P.appendTo=function(G){(new MG([G])).append(this);return this};
_.P.remove=function(){return zS(this,function(G,c){_.ST(c)},null)};
_.P.empty=function(){return zS(this,function(G,c){_.d1(c)},null)};
_.P.after=function(G,c){return zS(this,function(I,R){I&&_.H7(I,R)},G,!(c===void 0||c))};
_.P.before=function(G){return zS(this,function(c,I){c&&_.Cm(c,I)},G)};
_.P.replaceWith=function(G){return zS(this,function(c,I){c&&_.L32(c,I)},G)};
_.P.toggle=function(G){return this.each(function(c){_.Kt(c,G)})};
_.P.show=function(){return this.toggle(!0)};
_.P.hide=function(){return this.toggle(!1)};
_.P.trigger=function(G,c,I,R){return yhd(this,G,c,I,R)};
var yhd=function(G,c,I,R,Z){return G.each(function(K){_.bjb(_.dx(K)).triggerWizEventInternal(K,c,I,R,Z)})},Vo=function(G,c){G instanceof MG&&(c=G.list_,G=null);
this.list_=hF$(G!=null?[G]:c)};
_.eg(Vo,MG);_.P=Vo.prototype;_.P.children=function(){return new MG(Array.prototype.slice.call(_.XI(this.list_[0])))};
_.P.each=function(G,c){G.call(c,this.list_[0],0);return this};
_.P.size=function(){return 1};
_.P.el=function(){return this.list_[0]};
_.P.first=function(){return this};var Ew=function(G,c){c=c===void 0?window:c;this.hostId=G;this.win=c;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$20092_previousHtmlOverscroll=this.JSC$20092_previousBodyOverscroll=this.JSC$20092_previousBodyOverflow="";this.eventTarget=new _.r4;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},Gbd=function(G){var c=
gLu(gLu(gLu(new YOH(78),"po"),"hppp"),"hhc");
c.authUser=Number(_.H1("SESSION_INDEX","0"));c.colorScheme=G;return c};
Ew.prototype.getOrigin=function(){return this.origin?this.origin:_.oN(_.Dh(_.vz(new _.Bq,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
Ew.prototype.getTargetOrigin=function(){return _.oN(_.Dh(_.vz(new _.Bq,this.scheme),this.domain),this.port)};
Ew.prototype.preloadIframe=function(G){var c=this;if(this.iframeLoadPromise===void 0){var I=document.createElement("iframe");this.iframe=I;EPu(I,G);this.iframeLoadPromise=new Promise(function(R,Z){var K=!1,m=function(a){a.stopPropagation();I.removeEventListener("error",m);I.removeEventListener("securitypolicyviolation",m);Z(Error("Fk",{cause:a}))};
I.addEventListener("error",m);I.addEventListener("securitypolicyviolation",m);setTimeout(function(){K||Z(Error("Gk"))},3E4);
cx0(c,I,function(){K=!0;I.removeEventListener("error",m);I.removeEventListener("securitypolicyviolation",m);R()})});
Is7(this);G=this.getTargetOrigin().toString();I.setAttribute("allow","camera "+G+"; display-capture "+G);this.parentElement.appendChild(I)}return this.iframeLoadPromise};
var K$$=function(G,c){var I,R;return _.T(function(Z){if(Z.nextAddress==1)return I=LLF(getComputedStyle(G.parentElement).direction==="rtl"),G.parentElement.appendChild(I),document.activeElement instanceof HTMLElement&&(G.elementToFocusAfterClose=document.activeElement),_.s9(Z,2),Z.yield(G.preloadIframe(c),4);if(Z.nextAddress!=2){G.parentElement.removeChild(I);G.JSC$20092_previousBodyOverflow=G.parentElement.style.overflow;G.JSC$20092_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
G.JSC$20092_previousBodyOverscroll=G.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";G.parentElement.style.overscrollBehavior="contain";G.parentElement.style.overflow="hidden";var K=G.iframe;K.style.bottom="0";K.style.border="none";K.style.height="100%";K.style.left="0";K.style.position=G.iframePosition;K.style.right="0";K.style.top="0";K.style.width="100%";K.style.zIndex="2202";K.setAttribute("aria-hidden","false");K.setAttribute("aria-modal","true");
G.opened=!0;R$u(G);return _.Pl(Z,0)}R=_.M3(Z);G.parentElement.removeChild(I);Mhu(G.isDarkTheme());Zx$(G,!1);throw Error("Hk",{cause:R});})},Zx$=function(G,c){c=c===void 0?!0:c;
G.iframe!==void 0&&(Plr(G),document.documentElement.style.overscrollBehavior=G.JSC$20092_previousHtmlOverscroll,G.parentElement.style.overscrollBehavior=G.JSC$20092_previousBodyOverscroll,G.parentElement.style.overflow=G.JSC$20092_previousBodyOverflow,G.elementToFocusAfterClose!==void 0&&(G.elementToFocusAfterClose.focus(),G.elementToFocusAfterClose=void 0),c?Is7(G):(G.parentElement.removeChild(G.iframe),G.iframe=void 0,G.iframeLoadPromise=void 0,G.mainChannel=void 0),G.opened=!1)},Plr=function(G){G.backgroundElementsAriaHiddenIsNull&&
(Xkr(G.backgroundElementsAriaHiddenIsNull),G.backgroundElementsAriaHiddenIsNull=void 0);
G.backgroundElementsAriaHiddenIsFalse&&(G.backgroundElementsAriaHiddenIsFalse.each(function(c){c.setAttribute("aria-hidden","false")}),G.backgroundElementsAriaHiddenIsFalse=void 0);
G.backgroundElementsWithoutInert&&(G.backgroundElementsWithoutInert.each(function(c){c.removeAttribute("inert")}),G.backgroundElementsWithoutInert=void 0)},R$u=function(G){G.backgroundElementsAriaHiddenIsNull=(new Vo(G.iframe.parentElement)).children().filter(function(c){return c.getAttribute("aria-hidden")===null&&c!==G.iframe});
G.backgroundElementsAriaHiddenIsNull.each(function(c){c.setAttribute("aria-hidden","true")});
G.backgroundElementsAriaHiddenIsFalse=(new Vo(G.iframe.parentElement)).children().filter(function(c){return c.getAttribute("aria-hidden")==="false"&&c!==G.iframe});
G.backgroundElementsAriaHiddenIsFalse.each(function(c){c.setAttribute("aria-hidden","true")});
G.backgroundElementsWithoutInert=(new Vo(G.iframe.parentElement)).children().filter(function(c){return!c.hasAttribute("inert")&&c!==G.iframe});
G.backgroundElementsWithoutInert.each(function(c){c.setAttribute("inert","true")})},Is7=function(G){G=G.iframe;
G.style.bottom="-1000px";G.style.position="fixed";G.style.right="-1000px";G.style.border="";G.style.height="";G.style.left="";G.style.top="";G.style.width="";G.style.zIndex="";G.setAttribute("aria-hidden","true");G.setAttribute("aria-modal","false")};
Ew.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var YOH=function(G,c){Ew.call(this,eFG[G],c);this.options=[];this.style=""};
_.u(YOH,Ew);var QTj=function(G){G.style="youtube";return G},miW=function(G,c){G.eventTarget.listen(b7g,c);
return G},asu=function(G,c){G.eventTarget.listen(U4H,c);
return G},gLu=function(G,c){G.options.push(c);
return G},Tm7=function(G){var c=[G.getOrigin()];
G.ancestorOrigins&&c.push.apply(c,_.jn(G.ancestorOrigins));var I=new _.Bq(G.win.location.href),R=G.startUrl?G.startUrl:G.options.includes("po")?"profile-picture/art":"profile-picture";c=tjG(_.Uc(G.getTargetOrigin(),R),"origin",c);G.startUrl&&_.Zm(c,"startPath",G.startUrl);G.authUser>0&&_.Zm(c,"authuser",G.authUser);G.pageId!==void 0&&_.Zm(c,"pageId",G.pageId);_.Zm(c,"hostId",G.hostId);G.jsMode!==void 0&&_.Zm(c,"jsmode",G.jsMode);G.rectangleRatio!==void 0&&_.Zm(c,"rectangleRatio",G.rectangleRatio);
G.options.length>0&&_.Zm(c,"opts",G.options.join(","));try{for(var Z=_.Q(["utm_source","utm_medium","utm_campaign","utm_content"]),K=Z.next();!K.done;K=Z.next()){var m=K.value;_.RW(I,m)&&_.Zm(c,m,_.RW(I,m))}var a,O=(a=G.hl)!=null?a:_.RW(I,"hl");O!==void 0&&_.Zm(c,"hl",O)}catch(N){if(!(N instanceof URIError))throw N;}G.colorScheme&&_.Zm(c,"theme",G.colorScheme);G.style&&_.Zm(c,"style",G.style);return c},Oxr=function(G,c){G.mainChannel=_.FI({destination:G.win,
iframe:c,origin:G.getTargetOrigin().toString(),channelName:"ow",onMessage:function(I){I=nLd(I.data);if(c===G.iframe)switch(_.fy(I,1)){case 1:G.eventTarget.dispatchEvent(new Ah$);Zx$(G);break;case 2:G.eventTarget.dispatchEvent(new sMF(_.iU(I,4),_.iU(I,2),_.fy(I,5),_.Dw(I,qOg,6)));break;case 0:var R;G.eventTarget.dispatchEvent(new LCd(_.iU(I,2),(R=_.fy(I,3))!=null?R:0));break;case 3:G.eventTarget.dispatchEvent(new Ah$(!0));Zx$(G,!1);break;case 4:G.eventTarget.dispatchEvent(new $4g)}}})},cx0=function(G,
c,I){_.FI({destination:G.win,
iframe:c,origin:_.oN(_.Dh(_.vz(new _.Bq,G.scheme),G.domain),G.port).toString(),channelName:"owi",onMessage:function(R){c===G.iframe&&(I!==void 0&&I(),Oxr(G,c),G.opened&&G.mainChannel.send(oLu(D4d())),R.reply(),cx0(G,c))}})};
YOH.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Ew.prototype.preloadIframe.call(this,Tm7(this).toString()):this.iframeLoadPromise};
YOH.prototype.openPicker=function(G){var c=this;return _.T(function(I){if(I.nextAddress==1)return c.startUrl=G?G:c.options.includes("po")?"profile-picture/art":"profile-picture",I.yield(K$$(c,Tm7(c).toString()),2);if(c.mainChannel){var R=c.mainChannel,Z=R.send;var K=D4d();K=_.Eq(K,2,c.startUrl);Z.call(R,oLu(K))}_.Vp(I)})};var e$H=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(e$H,_.aR);_.P=e$H.prototype;_.P.getSize=function(){return eZ(this,1)};
_.P.setSize=function(G){return _.xo(this,1,G)};
_.P.getWidth=function(){return eZ(this,12)};
_.P.getHeight=function(){return eZ(this,13)};
_.P.setCenterCrop=function(G){return _.DL(this,20,G)};
_.P.getHtml=function(){return _.EH(this,4)};
_.P.getToken=function(){return _.AK(this,24)};
_.P.setToken=function(G){return _.Eq(this,24,G)};
_.P.getBackgroundColor=function(){return eZ(this,87)};
_.P.hasBackgroundColor=function(){return _.au(_.Ly(this,87))!=null};
_.P.getStoryboardLevel=function(){return eZ(this,109)};var Jn=function(G){this.JSC$20100_value_=void 0;this.childNodes_={};if(G){var c=_.o7T(G);G=_.n9(G);for(var I=0;I<c.length;I++)this.set(c[I],G[I])}};
Jn.prototype.set=function(G,c){Nm1(this,G,c,!1)};
Jn.prototype.add=function(G,c){Nm1(this,G,c,!0)};
var Nm1=function(G,c,I,R){for(var Z=0;Z<c.length;Z++){var K=c.charAt(Z);G.childNodes_[K]||(G.childNodes_[K]=new Jn);G=G.childNodes_[K]}if(R&&G.JSC$20100_value_!==void 0)throw Error("Ik`"+c);G.JSC$20100_value_=I},ls1=function(G,c){for(var I=0;I<c.length;I++)if(G=G.childNodes_[c.charAt(I)],!G)return;
return G};
Jn.prototype.get=function(G){return(G=ls1(this,G))?G.JSC$20100_value_:void 0};
Jn.prototype.getValues=function(){var G=[];qrd(this,G);return G};
var qrd=function(G,c){G.JSC$20100_value_!==void 0&&c.push(G.JSC$20100_value_);for(var I in G.childNodes_)qrd(G.childNodes_[I],c)};
Jn.prototype.getKeys=function(G){var c=[];if(G){for(var I=this,R=0;R<G.length;R++){var Z=G.charAt(R);if(!I.childNodes_[Z])return[];I=I.childNodes_[Z]}wR0(I,G,c)}else wR0(this,"",c);return c};
var wR0=function(G,c,I){G.JSC$20100_value_!==void 0&&I.push(c);for(var R in G.childNodes_)wR0(G.childNodes_[R],c+R,I)};
_.P=Jn.prototype;_.P.containsKey=function(G){return this.get(G)!==void 0};
_.P.containsValue=function(G){if(this.JSC$20100_value_===G)return!0;for(var c in this.childNodes_)if(this.childNodes_[c].containsValue(G))return!0;return!1};
_.P.clear=function(){this.childNodes_={};this.JSC$20100_value_=void 0};
_.P.remove=function(G){for(var c=this,I=[],R=0;R<G.length;R++){var Z=G.charAt(R);if(!c.childNodes_[Z])throw Error("Jk`"+G);I.push([c,Z]);c=c.childNodes_[Z]}G=c.JSC$20100_value_;for(delete c.JSC$20100_value_;I.length>0;)if(R=I.pop(),c=R[0],R=R[1],c.childNodes_[R].isEmpty())delete c.childNodes_[R];else break;return G};
_.P.clone=function(){return new Jn(this)};
_.P.getCount=function(){return f9d(this.getValues())};
_.P.isEmpty=function(){return this.JSC$20100_value_===void 0&&_.rx.isEmpty(this.childNodes_)};var B8g=function(){if(!F$H){var G=F$H=new Jn,c;for(c in nru)G.add(c,nru[c])}},F$H,Wi=function(G,c){this.types=G;
this.setters=c},nru={a:new Wi([3,
0],[function(G,c){_.DL(G,21,c)},
function(G,c){_.xo(G,56,c)}]),
al:new Wi([3],[function(G,c){_.DL(G,74,c)}]),
b:new Wi([3,0],[function(G,c){_.DL(G,23,c)},
function(G,c){_.xo(G,38,c)}]),
ba:new Wi([0],[function(G,c){_.xo(G,85,c)}]),
bc:new Wi([0],[function(G,c){_.xo(G,87,c)}]),
br:new Wi([0],[function(G,c){_.xo(G,86,c)}]),
c:new Wi([3,0],[function(G,c){_.DL(G,2,c)},
function(G,c){_.xo(G,39,c)}]),
cc:new Wi([3],[function(G,c){_.DL(G,51,c)}]),
ci:new Wi([3],[function(G,c){_.DL(G,32,c)}]),
ckm:new Wi([3],[function(G,c){_.DL(G,104,c)}]),
cp:new Wi([0],[function(G,c){_.xo(G,92,c)}]),
cr:new Wi([3],[function(G,c){_.DL(G,108,c)}]),
cv:new Wi([0],[function(G,c){_.xo(G,94,c)}]),
d:new Wi([3],[function(G,c){_.DL(G,3,c)}]),
dc:new Wi([5],[function(G,c){_.Eq(G,99,c)}]),
df:new Wi([3],[function(G,c){_.DL(G,80,c)}]),
dv:new Wi([3],[function(G,c){_.DL(G,90,c)}]),
e:new Wi([0],[function(G,c){_.xo(G,15,c)}]),
em:new Wi([0],[function(G,c){_.xo(G,107,c)}]),
f:new Wi([4],[function(G,c){_.Eq(G,16,c)}]),
fg:new Wi([3],[function(G,c){_.DL(G,34,c)}]),
fh:new Wi([3],[function(G,c){_.DL(G,30,c)}]),
fm:new Wi([3],[function(G,c){_.DL(G,84,c)}]),
fo:new Wi([2],[function(G,c){_.Uo(G,79,_.yB(c))}]),
ft:new Wi([3],[function(G,c){_.DL(G,50,c)}]),
fv:new Wi([3],[function(G,c){_.DL(G,31,c)}]),
g:new Wi([3],[function(G,c){_.DL(G,14,c)}]),
gce:new Wi([4],[function(G,c){_.Eq(G,112,c)}]),
gd:new Wi([3],[function(G,c){_.DL(G,83,c)}]),
gm:new Wi([3],[function(G,c){_.DL(G,105,c)}]),
h:new Wi([3,0],[function(G,c){_.DL(G,4,c)},
function(G,c){_.xo(G,13,c)}]),
i:new Wi([3],[function(G,c){_.DL(G,22,c)}]),
ic:new Wi([0],[function(G,c){_.xo(G,71,c)}]),
id:new Wi([3],[function(G,c){_.DL(G,70,c)}]),
il:new Wi([3],[function(G,c){_.DL(G,96,c)}]),
ip:new Wi([3],[function(G,c){_.DL(G,54,c)}]),
iv:new Wi([0],[function(G,c){_.Ef(G,75,c)}]),
j:new Wi([1],[function(G,c){c=c==null?c:zGu(c);_.Uo(G,29,c)}]),
k:new Wi([3,0],[function(G,c){_.DL(G,17,c)},
function(G,c){_.xo(G,42,c)}]),
l:new Wi([0],[function(G,c){_.xo(G,44,c)}]),
lf:new Wi([3],[function(G,c){_.DL(G,65,c)}]),
lo:new Wi([3],[function(G,c){_.DL(G,97,c)}]),
m:new Wi([0],[function(G,c){_.xo(G,63,c)}]),
md:new Wi([3],[function(G,c){_.DL(G,91,c)}]),
mm:new Wi([4],[function(G,c){_.Eq(G,81,c)}]),
mo:new Wi([3],[function(G,c){_.DL(G,73,c)}]),
mp:new Wi([0],[function(G,c){_.xo(G,115,c)}]),
mv:new Wi([3],[function(G,c){_.DL(G,66,c)}]),
n:new Wi([3],[function(G,c){G.setCenterCrop(c)}]),
nc:new Wi([3],[function(G,c){_.DL(G,55,c)}]),
nd:new Wi([3],[function(G,c){_.DL(G,53,c)}]),
ng:new Wi([3],[function(G,c){_.DL(G,95,c)}]),
ngm:new Wi([3],[function(G,c){_.DL(G,106,c)}]),
no:new Wi([3],[function(G,c){_.DL(G,37,c)}]),
ns:new Wi([3],[function(G,c){_.DL(G,40,c)}]),
nt0:new Wi([4],[function(G,c){_.Eq(G,36,c)}]),
ntm:new Wi([3],[function(G,c){_.DL(G,114,c)}]),
nu:new Wi([3],[function(G,c){_.DL(G,46,c)}]),
nw:new Wi([3],[function(G,c){_.DL(G,48,c)}]),
o:new Wi([1,3],[function(G,c){c=c==null?c:zGu(c);_.Uo(G,7,c)},
function(G,c){_.DL(G,27,c)}]),
p:new Wi([3,0],[function(G,c){_.DL(G,19,c)},
function(G,c){_.xo(G,43,c)}]),
pa:new Wi([3],[function(G,c){_.DL(G,61,c)}]),
pc:new Wi([0],[function(G,c){_.xo(G,88,c)}]),
pd:new Wi([3],[function(G,c){_.DL(G,60,c)}]),
pf:new Wi([3],[function(G,c){_.DL(G,67,c)}]),
pg:new Wi([3],[function(G,c){_.DL(G,72,c)}]),
pi:new Wi([2],[function(G,c){_.Uo(G,76,_.yB(c))}]),
pp:new Wi([3],[function(G,c){_.DL(G,52,c)}]),
pt:new Wi([4],[function(G,c){_.Eq(G,111,c)}]),
q:new Wi([4],[function(G,c){_.Eq(G,28,c)}]),
r:new Wi([3,0],[function(G,c){_.DL(G,6,c)},
function(G,c){_.xo(G,26,c)}]),
ra:new Wi([3],[function(G,c){_.DL(G,103,c)}]),
rf:new Wi([3],[function(G,c){_.DL(G,100,c)}]),
rg:new Wi([3],[function(G,c){_.DL(G,59,c)}]),
rh:new Wi([3],[function(G,c){_.DL(G,49,c)}]),
rj:new Wi([3],[function(G,c){_.DL(G,57,c)}]),
ro:new Wi([2],[function(G,c){_.Uo(G,78,_.yB(c))}]),
rp:new Wi([3],[function(G,c){_.DL(G,58,c)}]),
rw:new Wi([3],[function(G,c){_.DL(G,35,c)}]),
rwa:new Wi([3],[function(G,c){_.DL(G,64,c)}]),
rwu:new Wi([3],[function(G,c){_.DL(G,41,c)}]),
s:new Wi([3,0],[function(G,c){_.DL(G,33,c)},
function(G,c){G.setSize(c)}]),
sb:new Wi([0],[function(G,c){_.xo(G,110,c)}]),
sc:new Wi([0],[function(G,c){_.xo(G,89,c)}]),
sg:new Wi([3],[function(G,c){_.DL(G,82,c)}]),
sl:new Wi([0],[function(G,c){_.xo(G,109,c)}]),
sm:new Wi([3],[function(G,c){_.DL(G,93,c)}]),
t:new Wi([4],[function(G,c){G.setToken(c)}]),
tm:new Wi([3],[function(G,c){_.DL(G,113,c)}]),
u:new Wi([3],[function(G,c){_.DL(G,18,c)}]),
ut:new Wi([3],[function(G,c){_.DL(G,45,c)}]),
v:new Wi([0],[function(G,c){_.xo(G,62,c)}]),
vb:new Wi([0],[function(G,c){_.Ef(G,68,c)}]),
vf:new Wi([4],[function(G,c){_.Eq(G,102,c)}]),
vl:new Wi([0],[function(G,c){_.Ef(G,69,c)}]),
vm:new Wi([3],[function(G,c){_.DL(G,98,c)}]),
w:new Wi([0],[function(G,c){_.xo(G,12,c)}]),
x:new Wi([0],[function(G,c){_.xo(G,9,c)}]),
y:new Wi([0],[function(G,c){_.xo(G,10,c)}]),
ya:new Wi([2],[function(G,c){_.Uo(G,77,_.yB(c))}]),
z:new Wi([0],[function(G,c){_.xo(G,11,c)}])};
B8g.prototype.parse=function(G){var c=new e$H,I=new e$H;if(G=="")G=!0;else{G=G.split("-");for(var R=!0,Z=0;Z<G.length;Z++){var K=G[Z];if(K.length==0)R=!1;else{var m=K,a=!1;var O=m;var N=m.charAt(0);N!=N.toLowerCase()&&(a=!0,O=m.charAt(0).toLowerCase()+m.substring(1));var q=F$H;for(N=1;N<=O.length;++N){var w=q,F=O.substring(0,N);if(F.length==0?w.isEmpty():!ls1(w,F))break}O=N==1?null:(O=q.get(O.substring(0,N-1)))?{option:m.substring(0,N-1),value:m.substring(N-1),signed:a,attributes:O}:null;if(O){m=
[];a=[];N=!1;for(q=0;q<O.attributes.types.length;q++){w=O.attributes.types[q];var n=O.value;F=Z;if(O.signed&&w==1)for(var U=n.length;U<12&&F<G.length-1;)n+="-"+G[F+1],U=n.length,++F;else if(w==2)for(;F<G.length-1&&G[F+1].match(/^[\d\.]/);)n+="-"+G[F+1],++F;U=O.attributes.setters[q];n=vrW(this,w)(O.option,n,c,I,U);if(n===null){N=!0;Z=F;break}else m.push(w),a.push(n)}if(!N)for(O=0;O<a.length;O++)q=m[O],n=a[O],DiH(this,q)(K,n);R=R&&N}else R=!1}}G=R}return new or7(c,I,G)};
var Uid=function(G,c,I,R,Z,K){Z(I,c);G=G.charAt(0);K=K(G==G.toUpperCase());Z(R,K)};
_.P=B8g.prototype;_.P.parseAndSetIntOption_=function(G,c,I,R,Z){if(c=="")return 0;isFinite(c)&&(c=String(c));c=typeof c==="string"?/^\s*-?0x/i.test(c)?parseInt(c,16):parseInt(c,10):NaN;if(isNaN(c))return 1;Uid(G,c,I,R,Z,Number);return null};
_.P.logIntParseError_=function(){};
_.P.parseAndSetFloatOption_=function(G,c,I,R,Z){if(c=="")return 0;var K=Number(c);c=K==0&&_.mg(c)?NaN:K;if(isNaN(c))return 1;Uid(G,c,I,R,Z,Number);return null};
_.P.logFloatParseError_=function(){};
_.P.parseAndSetBoolOption_=function(G,c,I,R,Z){if(c!="")return 2;Uid(G,!0,I,R,Z,Boolean);return null};
_.P.logBoolParseError_=function(){};
_.P.parseAndSetStringOption_=function(G,c,I,R,Z){if(c=="")return 0;Uid(G,c,I,R,Z,function(K){return K?"1":""});
return null};
_.P.logStringParseError_=function(){};
_.P.parseAndSetUint64Base64Option_=function(G,c,I,R,Z){if(c=="")return 0;Uid(G,c,I,R,Z,function(K){return K?1:0});
return null};
var vrW=function(G,c){switch(c){case 0:return(0,_.WD)(G.parseAndSetIntOption_,G);case 2:return(0,_.WD)(G.parseAndSetFloatOption_,G);case 3:return(0,_.WD)(G.parseAndSetBoolOption_,G);case 4:return(0,_.WD)(G.parseAndSetStringOption_,G);case 1:return(0,_.WD)(G.parseAndSetUint64Base64Option_,G);default:return function(){}}},DiH=function(G,c){switch(c){case 0:return(0,_.WD)(G.logIntParseError_,G);
case 2:return(0,_.WD)(G.logFloatParseError_,G);case 3:return(0,_.WD)(G.logBoolParseError_,G);case 4:case 1:return(0,_.WD)(G.logStringParseError_,G);default:return function(){}}},or7=function(G,c,I){this.valueProto_=G;
this.signatureFlagProto_=c;this.JSC$20112_valid_=I};
or7.prototype.isValid=function(){return this.JSC$20112_valid_};var Jqu=function(G){this.JSC$20113_parser_=null;this.JSC$20113_components_=[];this.JSC$20113_parsedOptions_=null;uXr(this,G)},bxW=function(G){G.JSC$20113_parser_==null&&(G.JSC$20113_parser_=new B8g);
return G.JSC$20113_parser_},uXr=function(G,c){G.JSC$20113_parsedOptions_=c?typeof c==="string"?bxW(G).parse(c):c:bxW(G).parse("")},iN=function(G,c){return G==c?!1:!0};
_.P=Jqu.prototype;_.P.JSC$20115_setCrop=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,_.EH(I,2),_.EH(c.signatureFlagProto_,2))&&_.DL(I,2,G);return this};
_.P.JSC$20115_setCircleCrop=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,Ow(I,51),Ow(c.signatureFlagProto_,51))&&_.DL(I,51,G);return this};
_.P.JSC$20115_setImageCrop=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,Ow(I,32),Ow(c.signatureFlagProto_,32))&&_.DL(I,32,G);return this};
_.P.JSC$20115_setHeight=function(G){var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,I.getHeight(),c.signatureFlagProto_.getHeight())&&_.xo(I,13,G);return this};
_.P.setCenterCrop=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,_.EH(I,20),_.EH(c.signatureFlagProto_,20))&&I.setCenterCrop(G);return this};
_.P.JSC$20115_setSmartCrop=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,_.EH(I,19),_.EH(c.signatureFlagProto_,19))&&_.DL(I,19,G);return this};
_.P.JSC$20115_setPad=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,Ow(I,60),Ow(c.signatureFlagProto_,60))&&_.DL(I,60,G);return this};
_.P.JSC$20115_setSmartCropUseFace=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,_.EH(I,67),_.EH(c.signatureFlagProto_,67))&&_.DL(I,67,G);return this};
_.P.JSC$20115_setSmartCropNoClip=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,_.EH(I,52),_.EH(c.signatureFlagProto_,52))&&_.DL(I,52,G);return this};
_.P.setSize=function(G){var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,I.getSize(),c.signatureFlagProto_.getSize())&&I.setSize(G);return this};
_.P.setToken=function(G){G=G||void 0;var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,I.getToken(),c.signatureFlagProto_.getToken())&&I.setToken(G);return this};
_.P.JSC$20115_setWidth=function(G){var c=this.JSC$20113_parsedOptions_,I=c.valueProto_;iN(G,I.getWidth(),c.signatureFlagProto_.getWidth())&&_.xo(I,12,G);return this};
_.P.clearOptions=function(){uXr(this,"");return this};
_.P.build=function(){this.JSC$20113_components_.length=0;var G=this.JSC$20113_parsedOptions_,c=G.valueProto_;G=G.signatureFlagProto_;f5(this,"s",c.getSize(),G.getSize());f5(this,"w",c.getWidth(),G.getWidth());Bi(this,"c",_.EH(c,2),_.EH(G,2));Bi(this,"d",_.EH(c,3),_.EH(G,3));f5(this,"h",c.getHeight(),G.getHeight());Bi(this,"s",Ow(c,33),Ow(G,33));Bi(this,"h",c.getHtml(),G.getHtml());Bi(this,"p",_.EH(c,19),_.EH(G,19));Bi(this,"pp",_.EH(c,52),_.EH(G,52));Bi(this,"pf",_.EH(c,67),_.EH(G,67));Bi(this,"n",
_.EH(c,20),_.EH(G,20));f5(this,"r",eZ(c,26),eZ(G,26));Bi(this,"r",_.EH(c,6),_.EH(G,6));Bi(this,"o",Ow(c,27),Ow(G,27));var I=_.zo(c,7,_.sH);rp(this,"o",I,_.zo(G,7,_.sH));I=_.zo(c,29,_.sH);rp(this,"j",I,_.zo(G,29,_.sH));f5(this,"x",eZ(c,9),eZ(G,9));f5(this,"y",eZ(c,10),eZ(G,10));f5(this,"z",eZ(c,11),eZ(G,11));Bi(this,"g",_.EH(c,14),_.EH(G,14));f5(this,"e",eZ(c,15),eZ(G,15));rp(this,"f",_.AK(c,16),_.AK(G,16));Bi(this,"k",Ow(c,17),Ow(G,17));Bi(this,"u",Ow(c,18),!0);Bi(this,"ut",Ow(c,45),!0);Bi(this,"i",
Ow(c,22),!0);Bi(this,"a",Ow(c,21),Ow(G,21));Bi(this,"b",_.EH(c,23),_.EH(G,23));f5(this,"b",eZ(c,38),eZ(G,38));f5(this,"c",eZ(c,39),eZ(G,39),16,8);rp(this,"q",_.AK(c,28),_.AK(G,28));Bi(this,"fh",Ow(c,30),Ow(G,30));Bi(this,"fv",Ow(c,31),Ow(G,31));Bi(this,"fg",_.EH(c,34),_.EH(G,34));Bi(this,"ci",Ow(c,32),Ow(G,32));rp(this,"t",c.getToken(),G.getToken());rp(this,"nt0",_.AK(c,36),_.AK(G,36));Bi(this,"rw",_.EH(c,35),_.EH(G,35));Bi(this,"rwu",_.EH(c,41),_.EH(G,41));Bi(this,"rwa",_.EH(c,64),_.EH(G,64));Bi(this,
"nw",_.EH(c,48),_.EH(G,48));Bi(this,"rh",_.EH(c,49),_.EH(G,49));Bi(this,"no",_.EH(c,37),_.EH(G,37));Bi(this,"ns",Ow(c,40),Ow(G,40));f5(this,"k",eZ(c,42),eZ(G,42));f5(this,"p",eZ(c,43),eZ(G,43));f5(this,"l",eZ(c,44),eZ(G,44));f5(this,"v",eZ(c,62),eZ(G,62));Bi(this,"nu",Ow(c,46),Ow(G,46));Bi(this,"ft",Ow(c,50),Ow(G,50));Bi(this,"cc",Ow(c,51),Ow(G,51));Bi(this,"nd",Ow(c,53),Ow(G,53));Bi(this,"ip",Ow(c,54),Ow(G,54));Bi(this,"nc",Ow(c,55),Ow(G,55));f5(this,"a",eZ(c,56),eZ(G,56));Bi(this,"rj",Ow(c,57),
Ow(G,57));Bi(this,"rp",Ow(c,58),Ow(G,58));Bi(this,"rg",Ow(c,59),Ow(G,59));Bi(this,"pd",Ow(c,60),Ow(G,60));Bi(this,"pa",Ow(c,61),Ow(G,61));f5(this,"m",eZ(c,63),eZ(G,63));f5(this,"vb",NG(c,68),NG(G,68));f5(this,"vl",NG(c,69),NG(G,69));Bi(this,"lf",Ow(c,65),Ow(G,65));Bi(this,"mv",Ow(c,66),Ow(G,66));Bi(this,"id",Ow(c,70),Ow(G,70));f5(this,"ic",eZ(c,71),!0);Bi(this,"pg",_.EH(c,72),_.EH(G,72));Bi(this,"mo",Ow(c,73),Ow(G,73));Bi(this,"al",Ow(c,74),Ow(G,74));f5(this,"iv",NG(c,75),NG(G,75));f5(this,"pi",lN(c,
76),lN(G,76));f5(this,"ya",lN(c,77),lN(G,77));f5(this,"ro",lN(c,78),lN(G,78));f5(this,"fo",lN(c,79),lN(G,79));Bi(this,"df",Ow(c,80),Ow(G,80));rp(this,"mm",_.AK(c,81),_.AK(G,81));Bi(this,"sg",Ow(c,82),Ow(G,82));Bi(this,"gd",Ow(c,83),Ow(G,83));Bi(this,"fm",Ow(c,84),Ow(G,84));f5(this,"ba",eZ(c,85),eZ(G,85));f5(this,"br",eZ(c,86),eZ(G,86));f5(this,"bc",c.getBackgroundColor(),G.getBackgroundColor(),16,8);f5(this,"pc",eZ(c,88),eZ(G,88),16,8);f5(this,"sc",eZ(c,89),eZ(G,89),16,8);Bi(this,"dv",Ow(c,90),Ow(G,
90));Bi(this,"md",Ow(c,91),Ow(G,91));f5(this,"cp",eZ(c,92),eZ(G,92));Bi(this,"sm",Ow(c,93),Ow(G,93));f5(this,"cv",eZ(c,94),eZ(G,94));Bi(this,"ng",Ow(c,95),Ow(G,95));Bi(this,"il",Ow(c,96),Ow(G,96));Bi(this,"lo",Ow(c,97),Ow(G,97));Bi(this,"vm",Ow(c,98),Ow(G,98));rp(this,"dc",_.AK(c,99),_.AK(G,99));Bi(this,"rf",Ow(c,100),Ow(G,100));rp(this,"vf",_.AK(c,102),_.AK(G,102));Bi(this,"ra",_.EH(c,103),_.EH(G,103));Bi(this,"ckm",Ow(c,104),Ow(G,104));Bi(this,"gm",Ow(c,105),Ow(G,105));Bi(this,"ngm",Ow(c,106),Ow(G,
106));f5(this,"em",eZ(c,107),eZ(G,107));Bi(this,"cr",Ow(c,108),Ow(G,108));f5(this,"sl",c.getStoryboardLevel(),G.getStoryboardLevel());f5(this,"sb",eZ(c,110),eZ(G,110));rp(this,"pt",_.AK(c,111),_.AK(G,111));rp(this,"gce",_.AK(c,112),_.AK(G,112));Bi(this,"tm",Ow(c,113),Ow(G,113));Bi(this,"ntm",Ow(c,114),Ow(G,114));f5(this,"mp",eZ(c,115),eZ(G,115));return this.JSC$20113_components_.join("-")};
var f5=function(G,c,I,R,Z,K){if(I!=null){var m=Z==void 0||Z!=10&&Z!=16?10:Z;I=Number(I).toString(m);Z=new G9d;Z.append(m==16?"0x":"");m=Z.append;K==void 0?K="":(K-=I.length,K=K<=0?"":(0,_.q9p)("0",K));m.call(Z,K);Z.append(I);kb1(G,c,Z.toString(),!!Number(R))}},Bi=function(G,c,I,R){I&&kb1(G,c,"",!!R)},rp=function(G,c,I,R){I&&kb1(G,c,String(I),!!Number(R))},kb1=function(G,c,I,R){R&&(c=c.charAt(0).toUpperCase()+c.substring(1));
G.JSC$20113_components_.push(c+I)};_.eg(Lw,Jqu);_.P=Lw.prototype;_.P.JSC$20115_setCrop=function(G){G&&jZ(this);return Lw.superClass_.JSC$20115_setCrop.call(this,G)};
_.P.JSC$20115_setHeight=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return Lw.superClass_.JSC$20115_setHeight.call(this,G)};
_.P.JSC$20115_setImageCrop=function(G){G&&jZ(this);return Lw.superClass_.JSC$20115_setImageCrop.call(this,G)};
_.P.JSC$20115_setCircleCrop=function(G){G&&jZ(this);return Lw.superClass_.JSC$20115_setCircleCrop.call(this,G)};
_.P.setSize=function(G){_.db(G)&&(G=Math.max(G.width,G.height));G=G==null||G<0?void 0:G;G!=null&&(this.JSC$20115_setWidth(),this.JSC$20115_setHeight());return Lw.superClass_.setSize.call(this,G)};
_.P.JSC$20115_setSmartCrop=function(G){G&&jZ(this);return Lw.superClass_.JSC$20115_setSmartCrop.call(this,G)};
_.P.JSC$20115_setSmartCropNoClip=function(G){G&&jZ(this);return Lw.superClass_.JSC$20115_setSmartCropNoClip.call(this,G)};
_.P.JSC$20115_setSmartCropUseFace=function(G){G&&jZ(this);return Lw.superClass_.JSC$20115_setSmartCropUseFace.call(this,G)};
_.P.setCenterCrop=function(G){G&&jZ(this);return Lw.superClass_.setCenterCrop.call(this,G)};
_.P.JSC$20115_setPad=function(G){G&&jZ(this);return Lw.superClass_.JSC$20115_setPad.call(this,G)};
_.P.JSC$20115_setWidth=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return Lw.superClass_.JSC$20115_setWidth.call(this,G)};
var sTr=function(G){G.clearOptions();var c=G.JSC$20113_parsedOptions_,I=c.valueProto_;iN(!0,_.EH(I,3),_.EH(c.signatureFlagProto_,3))&&_.DL(I,3,!0);return G},jZ=function(G){G.setCenterCrop();
G.JSC$20115_setCircleCrop();G.JSC$20115_setCrop();G.JSC$20115_setImageCrop();G.JSC$20115_setPad();G.JSC$20115_setSmartCrop();G.JSC$20115_setSmartCropNoClip();G.JSC$20115_setSmartCropUseFace()};
Lw.prototype.build=function(){var G=this.JSC$20113_parsedOptions_.valueProto_;Ow(G,18)||Ow(G,45)?G.getSize()||this.setSize(0):(G=this.JSC$20113_parsedOptions_.valueProto_,G.getSize()||G.getWidth()||G.getHeight()||(this.setSize(),this.JSC$20115_setHeight(),this.JSC$20115_setWidth(),jZ(this)));return Lw.superClass_.build.call(this)};var L$F=/^[^\/]*\/\//,AxG=function(G,c){c=c===void 0?!1:c;this.original_=G;this.originalPrefix_="";(G=this.original_.match(L$F))&&G[0]?(this.originalPrefix_=G[0],G=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):G="http://"+this.original_;this.uri_=_.IW(G,!0);this.isFreeformUrl_=c;this.JSC$20119_valid_=!0;this.obfuscated_=!1},$iH=function(G,c){G.JSC$20121_pathPrefix_=G.JSC$20121_pathPrefix_?G.JSC$20121_pathPrefix_+("/"+c):c},xE=function(G){if(G.JSC$20121_components_==
void 0){var c=G.uri_.getPath().substring(1);
G.JSC$20121_pathPrefix_=null;if(G.isFreeformUrl_){G.JSC$20121_components_=[];if((c.match(/=/g)||[]).length>1)return G.JSC$20119_valid_=!1,G.JSC$20121_components_;var I=c.indexOf("=");I!=-1?(G.JSC$20121_components_.push(c.substr(0,I)),G.JSC$20121_components_.push(c.substr(I+1))):G.JSC$20121_components_.push(c);return G.JSC$20121_components_}G.JSC$20121_components_=c.split("/");c=G.JSC$20121_components_.length;c>2&&G.JSC$20121_components_[0]=="u"&&($iH(G,G.JSC$20121_components_[0]+"/"+G.JSC$20121_components_[1]),
G.JSC$20121_components_.shift(),G.JSC$20121_components_.shift(),c-=2);if(c==0||c==4||c>7)return G.JSC$20119_valid_=!1,G.JSC$20121_components_;if(c==2)$iH(G,G.JSC$20121_components_[0]);else if(G.JSC$20121_components_[0]=="image")$iH(G,G.JSC$20121_components_[0]);else if(c==7||c==3)return G.JSC$20119_valid_=!1,G.JSC$20121_components_;if(c<=3){G.obfuscated_=!0;c==3&&($iH(G,G.JSC$20121_components_[1]),G.JSC$20121_components_.shift(),--c);--c;I=G.JSC$20121_components_[c];var R=I.indexOf("=");R!=-1&&(G.JSC$20121_components_[c]=
I.substr(0,R),G.JSC$20121_components_.push(I.substr(R+1)))}}return G.JSC$20121_components_};
AxG.prototype.isValid=function(){xE(this);return this.JSC$20119_valid_};
AxG.prototype.isObfuscated=function(){xE(this);return this.obfuscated_};
var SrW=function(G){xE(G);return G.isFreeformUrl_},tn=function(G){xE(G);
G.JSC$20121_pathPrefix_==void 0&&(G.JSC$20121_pathPrefix_=null);return G.JSC$20121_pathPrefix_},pR1=function(G){switch(xE(G).length){case 7:return!0;
case 6:return tn(G)==null;case 5:return!1;case 3:return!0;case 2:return tn(G)==null;case 1:return!1;default:return!1}},hn=function(G,c){if(SrW(G))a:{switch(c){case 7:c=0;
break;case 4:if(!pR1(G)){G=null;break a}c=1;break;default:G=null;break a}G=xE(G)[c]}else if(G.isObfuscated())a:{var I=tn(G)!=null?1:0;switch(c){case 6:c=I;break;case 4:if(!pR1(G)){G=null;break a}c=1+I;break;default:G=null;break a}G=xE(G)[c]}else a:{I=tn(G)!=null?1:0;switch(c){case 0:c=I;break;case 1:c=1+I;break;case 2:c=2+I;break;case 3:c=3+I;break;case 4:if(!pR1(G)){G=null;break a}c=4+I;break;case 5:c=pR1(G)?1:0;c=4+I+c;break;default:G=null;break a}G=xE(G)[c]}return G};
AxG.prototype.getOptions=function(){this.options_==void 0&&(this.options_=hn(this,4));return this.options_};var f2$=function(){};
f2$.prototype.parse=function(G,c){return new WL7(G,c===void 0?!1:c)};
var WL7=function(G,c){AxG.call(this,G,c===void 0?!1:c)};
_.u(WL7,AxG);_.eg(rqu,Lw);var isu;rqu.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
rqu.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var G=rqu.superClass_.build.call(this),c=[];tn(this.parsedImageUrl_)!=null&&c.push(tn(this.parsedImageUrl_));var I=SrW(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var R=this.parsedImageUrl_;R.obfuscatedData_==void 0&&(R.obfuscatedData_=hn(R,6));c.push(R.obfuscatedData_+(G?"="+G:""))}else if(I){R=c.push;var Z=this.parsedImageUrl_;Z.freeformUrlPath_===void 0&&(Z.freeformUrlPath_=
hn(Z,7));R.call(c,Z.freeformUrlPath_);G&&c.push(G)}else R=c.push,Z=this.parsedImageUrl_,Z.obfuscatedGaiaId_==void 0&&(Z.obfuscatedGaiaId_=hn(Z,0)),R.call(c,Z.obfuscatedGaiaId_),R=c.push,Z=this.parsedImageUrl_,Z.photoId_==void 0&&(Z.photoId_=hn(Z,1)),R.call(c,Z.photoId_),R=c.push,Z=this.parsedImageUrl_,Z.imageVersion_==void 0&&(Z.imageVersion_=hn(Z,2)),R.call(c,Z.imageVersion_),R=c.push,Z=this.parsedImageUrl_,Z.signature_==void 0&&(Z.signature_=hn(Z,3)),R.call(c,Z.signature_),G&&c.push(G),G=c.push,
R=this.parsedImageUrl_,R.filename_==void 0&&(R.filename_=hn(R,5)),G.call(c,R.filename_);c=I?c.join("="):c.join("/");c=_.IW(this.protocolPrefix_+this.JSC$20127_domain_+"/"+c+(this.JSC$20127_query_?"?"+this.JSC$20127_query_:"")).toString();c.startsWith("%3a//")&&(c=c.replace("%3a//","://"));return c};var MPd=_.I3(["viewBox"]),VPG=_.I3(["width"]),z$W=_.I3(["height"]),Erd=_.I3(["fill"]),Jxr=_.I3(["id"]),W$$=_.I3(["x"]),ix7=_.I3(["y"]);jl1.prototype.getLength=function(){return this.parsedData.length};
jl1.prototype.write=function(G){for(var c=0,I=this.parsedData.length;c<I;c++)G.put(this.parsedData[c],8)};
var Xm1=function(G,c){var I=new jl1(c);G.dataList.push(I);I=G.errorCorrectLevel;var R=1,Z=encodeURI(c).toString().replace(/%[0-9a-fA-F]{2}/g,"a");c=Z.length+(Z.length!=c?3:0);Z=0;for(var K=dp.length;Z<=K;Z++){var m=0;switch(I){case 1:m=dp[Z][0];break;case 0:m=dp[Z][1];break;case 3:m=dp[Z][2];break;case 2:m=dp[Z][3]}if(c<=m)break;else R++}if(R>dp.length)throw Error("Sk");G.typeNumber=R;G.dataCache=null};
xoW.prototype.isDark=function(G,c){if(G<0||this.moduleCount<=G||c<0||this.moduleCount<=c)throw Error("Kk`"+G+"`"+c);return this.modules[G][c]};
for(var yqW=function(G,c,I){G.moduleCount=G.typeNumber*4+17;G.modules=Array(G.moduleCount);for(var R=0;R<G.moduleCount;R++){G.modules[R]=Array(G.moduleCount);for(var Z=0;Z<G.moduleCount;Z++)G.modules[R][Z]=null}fsd(G,0,0);fsd(G,G.moduleCount-7,0);fsd(G,0,G.moduleCount-7);R=Bm$[G.typeNumber-1];for(Z=0;Z<R.length;Z++)for(var K=0;K<R.length;K++){var m=R[Z],a=R[K];if(G.modules[m][a]==null)for(var O=-2;O<=2;O++)for(var N=-2;N<=2;N++)G.modules[m+O][a+N]=O==-2||O==2||N==-2||N==2||O==0&&N==0?!0:!1}for(R=
8;R<G.moduleCount-8;R++)G.modules[R][6]==null&&(G.modules[R][6]=R%2==0);for(R=8;R<G.moduleCount-8;R++)G.modules[6][R]==null&&(G.modules[6][R]=R%2==0);R=G.errorCorrectLevel<<3|I;for(Z=R<<10;C5(Z)-C5(1335)>=0;)Z^=1335<<C5(Z)-C5(1335);R=(R<<10|Z)^21522;for(Z=0;Z<15;Z++)K=!c&&(R>>Z&1)==1,Z<6?G.modules[Z][8]=K:Z<8?G.modules[Z+1][8]=K:G.modules[G.moduleCount-15+Z][8]=K;for(Z=0;Z<15;Z++)K=!c&&(R>>Z&1)==1,Z<8?G.modules[8][G.moduleCount-Z-1]=K:Z<9?G.modules[8][15-Z-1+1]=K:G.modules[8][15-Z-1]=K;G.modules[G.moduleCount-
8][8]=!c;if(G.typeNumber>=7){R=G.typeNumber;for(Z=R<<12;C5(Z)-C5(7973)>=0;)Z^=7973<<C5(Z)-C5(7973);R=R<<12|Z;for(Z=0;Z<18;Z++)K=!c&&(R>>Z&1)==1,G.modules[Math.floor(Z/3)][Z%3+G.moduleCount-8-3]=K;for(Z=0;Z<18;Z++)K=!c&&(R>>Z&1)==1,G.modules[Z%3+G.moduleCount-8-3][Math.floor(Z/3)]=K}if(G.dataCache==null){Z=G.typeNumber;K=G.dataList;c=G.errorCorrectLevel;R=rxF(Z,c);if(R==void 0)throw Error("Rk`"+Z+"`"+c);m=R.length/3;c=[];for(a=0;a<m;a++){O=R[a*3];N=R[a*3+1];for(var q=R[a*3+2],w=0;w<O;w++)c.push(new th0(N,
q))}R=new hkF;for(m=0;m<K.length;m++)a=K[m],R.put(a.mode,4),R.put(a.getLength(),jTW(a.mode,Z)),a.write(R);for(m=Z=0;m<c.length;m++)Z+=c[m].dataCount;if(R.length>Z*8)throw Error("Lk`"+R.length+"`"+Z*8);for(R.length+4<=Z*8&&R.put(0,4);R.length%8!=0;)xi0(R,!1);for(;!(R.length>=Z*8);){R.put(236,8);if(R.length>=Z*8)break;R.put(17,8)}K=Z=N=0;m=Array(c.length);a=Array(c.length);for(O=0;O<c.length;O++){w=c[O].dataCount;var F=c[O].totalCount-w;Z=Math.max(Z,w);K=Math.max(K,F);m[O]=Array(w);for(q=0;q<m[O].length;q++)m[O][q]=
255&R.buffer[q+N];N+=w;q=F;w=new A1([1],0);for(F=0;F<q;F++)w=w.multiply(new A1([1,tPG(F)],0));q=w;w=(new A1(m[O],q.getLength()-1)).mod(q);a[O]=Array(q.getLength()-1);for(q=0;q<a[O].length;q++)F=q+w.getLength()-a[O].length,a[O][q]=F>=0?w.get(F):0}for(q=R=0;q<c.length;q++)R+=c[q].totalCount;R=Array(R);for(q=N=0;q<Z;q++)for(O=0;O<c.length;O++)q<m[O].length&&(R[N++]=m[O][q]);for(q=0;q<K;q++)for(O=0;O<c.length;O++)q<a[O].length&&(R[N++]=a[O][q]);G.dataCache=R}c=G.dataCache;R=-1;Z=G.moduleCount-1;K=7;m=
0;for(a=G.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(O=0;O<2;O++)G.modules[Z][a-O]==null&&(N=!1,m<c.length&&(N=(c[m]>>>K&1)==1),h$W(I,Z,a-O)&&(N=!N),G.modules[Z][a-O]=N,K--,K==-1&&(m++,K=7));Z+=R;if(Z<0||G.moduleCount<=Z){Z-=R;R=-R;break}}},fsd=function(G,c,I){for(var R=-1;R<=7;R++)if(!(c+R<=-1||G.moduleCount<=c+R))for(var Z=-1;Z<=7;Z++)I+Z<=-1||G.moduleCount<=I+Z||(G.modules[c+R][I+Z]=0<=R&&R<=6&&(Z==0||Z==6)||0<=Z&&Z<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=Z&&Z<=4?!0:!1)},gPH=function(G){for(var c=0,
I=0,R=0;R<8;R++){yqW(G,!0,R);
var Z=G;for(var K=Z.moduleCount,m=0,a=0;a<K;a++)for(var O=0;O<K;O++){for(var N=0,q=Z.isDark(a,O),w=-1;w<=1;w++)if(!(a+w<0||K<=a+w))for(var F=-1;F<=1;F++)O+F<0||K<=O+F||(w!=0||F!=0)&&q==Z.isDark(a+w,O+F)&&N++;N>5&&(m+=3+N-5)}for(a=0;a<K-1;a++)for(O=0;O<K-1;O++)if(N=0,Z.isDark(a,O)&&N++,Z.isDark(a+1,O)&&N++,Z.isDark(a,O+1)&&N++,Z.isDark(a+1,O+1)&&N++,N==0||N==4)m+=3;for(a=0;a<K;a++)for(O=0;O<K-6;O++)Z.isDark(a,O)&&!Z.isDark(a,O+1)&&Z.isDark(a,O+2)&&Z.isDark(a,O+3)&&Z.isDark(a,O+4)&&!Z.isDark(a,O+5)&&
Z.isDark(a,O+6)&&(m+=40);for(O=0;O<K;O++)for(a=0;a<K-6;a++)Z.isDark(a,O)&&!Z.isDark(a+1,O)&&Z.isDark(a+2,O)&&Z.isDark(a+3,O)&&Z.isDark(a+4,O)&&!Z.isDark(a+5,O)&&Z.isDark(a+6,O)&&(m+=40);for(O=N=0;O<K;O++)for(a=0;a<K;a++)Z.isDark(a,O)&&N++;Z=m+=Math.abs(100*N/K/K-50)/5*10;if(R==0||c>Z)c=Z,I=R}return I},Bm$=[[],
[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]],C5=function(G){for(var c=0;G!=0;)c++,G>>>=1;return c},h$W=function(G,c,I){switch(G){case 0:return(c+I)%2==0;
case 1:return c%2==0;case 2:return I%3==0;case 3:return(c+I)%3==0;case 4:return(Math.floor(c/2)+Math.floor(I/3))%2==0;case 5:return c*I%2+c*I%3==0;case 6:return(c*I%2+c*I%3)%2==0;case 7:return(c*I%3+(c+I)%2)%2==0;default:throw Error("Mk`"+G);}},jTW=function(G,c){if(1<=c&&c<10)switch(G){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Nk`"+G);}else if(c<27)switch(G){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Nk`"+G);}else if(c<41)switch(G){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Nk`"+G);}else throw Error("Ok`"+c);},ClW=function(G){if(G<1)throw Error("Pk`"+G);
return diG[G]},tPG=function(G){for(;G<0;)G+=255;
for(;G>=256;)G-=255;return Hi[G]},Hi=Array(256),diG=Array(256),Hx7=0;Hx7<8;Hx7++)Hi[Hx7]=1<<Hx7;
for(var XH=8;XH<256;XH++)Hi[XH]=Hi[XH-4]^Hi[XH-5]^Hi[XH-6]^Hi[XH-8];for(var XRW=0;XRW<255;XRW++)diG[Hi[XRW]]=XRW;A1.prototype.get=function(G){return this.num[G]};
A1.prototype.getLength=function(){return this.num.length};
A1.prototype.multiply=function(G){for(var c=Array(this.getLength()+G.getLength()-1),I=0;I<this.getLength();I++)for(var R=0;R<G.getLength();R++)c[I+R]^=tPG(ClW(this.get(I))+ClW(G.get(R)));return new A1(c,0)};
A1.prototype.mod=function(G){if(this.getLength()-G.getLength()<0)return this;for(var c=ClW(this.get(0))-ClW(G.get(0)),I=Array(this.getLength()),R=0;R<this.getLength();R++)I[R]=this.get(R);for(R=0;R<G.getLength();R++)I[R]^=tPG(ClW(G.get(R))+c);return(new A1(I,0)).mod(G)};
var yxj=[[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]],rxF=function(G,c){switch(c){case 1:return yxj[(G-1)*4];case 0:return yxj[(G-1)*4+1];case 3:return yxj[(G-1)*4+2];case 2:return yxj[(G-1)*4+3]}};
hkF.prototype.get=function(G){return(this.buffer[Math.floor(G/8)]>>>7-G%8&1)==1};
hkF.prototype.put=function(G,c){for(var I=0;I<c;I++)xi0(this,(G>>>c-I-1&1)==1)};
var xi0=function(G,c){var I=Math.floor(G.length/8);G.buffer.length<=I&&G.buffer.push(0);c&&(G.buffer[I]|=128>>>G.length%8);G.length++},dp=[[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]],Hsj=function(){var G=function(c,I){this.JSC$20147__el=c;this.JSC$20147__htOption=I};
G.prototype.draw=function(c){function I(q,w){q=document.createElementNS("http://www.w3.org/2000/svg",q);for(var F in w)w.hasOwnProperty(F)&&(F==="href"?_.G1W(q,w[F]):_.N3([_.FU(MPd),_.FU(VPG),_.FU(z$W),_.FU(Erd),_.FU(Jxr),_.FU(W$$),_.FU(ix7)],q,F,w[F]));return q}
var R=this.JSC$20147__htOption,Z=this.JSC$20147__el,K=c.moduleCount;this.clear();var m=I("svg",{viewBox:"0 0 "+String(K)+" "+String(K),width:"100%",height:"100%",fill:R.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Z.appendChild(m);m.appendChild(I("rect",{fill:R.colorLight,width:"100%",height:"100%"}));m.appendChild(I("rect",{fill:R.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<K;a++)for(var O=0;O<K;O++)if(c.isDark(a,O)){var N=I("use",{x:String(a),y:String(O),href:"#template"});
m.appendChild(N)}};
G.prototype.clear=function(){for(;this.JSC$20147__el.hasChildNodes();)this.JSC$20147__el.removeChild(this.JSC$20147__el.lastChild)};
return G}(),CPd=document.documentElement.tagName.toLowerCase()==="svg"?Hsj:typeof CanvasRenderingContext2D!="undefined"?function(){var G=function(c,I){this._bIsPainted=!1;
dor();this.JSC$20147__htOption=I;this._elCanvas=document.createElement("canvas");this._elCanvas.width=I.width;this._elCanvas.height=I.height;c.appendChild(this._elCanvas);this.JSC$20147__el=c;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$20147__el.appendChild(this._elImage);this._bSupportDataURI=null};
G.prototype._onMakeImage=function(){var c=this._elCanvas.toDataURL("image/png");this._elImage.src=c;this._elImage.style.display="block";this._elCanvas.style.display="none"};
G.prototype._safeSetDataURI=function(c,I){var R=this;R._fFail=I;R._fSuccess=c;R._bSupportDataURI===null?(c=_.$9("IMG"),I=function(){R._bSupportDataURI=!1;R._fFail&&R._fFail.call(R)},c.onabort=I,c.onerror=I,c.onload=function(){R._bSupportDataURI=!0;
R._fSuccess&&R._fSuccess.call(R)},c.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):R._bSupportDataURI===!0&&R._fSuccess?R._fSuccess.call(R):R._bSupportDataURI===!1&&R._fFail&&R._fFail.call(R)};
G.prototype.draw=function(c){var I=this._oContext,R=this.JSC$20147__htOption,Z=c.moduleCount,K=R.width/Z,m=R.height/Z,a=Math.round(K),O=Math.round(m);this._elImage.style.display="none";this.clear();for(var N=0;N<Z;N++)for(var q=0;q<Z;q++){var w=c.isDark(N,q),F=q*K,n=N*m;I.strokeStyle=w?R.colorDark:R.colorLight;I.lineWidth=1;I.fillStyle=w?R.colorDark:R.colorLight;I.fillRect(F,n,K,m);I.strokeRect(Math.floor(F)+.5,Math.floor(n)+.5,a,O);I.strokeRect(Math.ceil(F)-.5,Math.ceil(n)-.5,a,O)}this._bIsPainted=
!0};
G.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
G.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
G.prototype.round=function(c){return c?Math.floor(c*1E3)/1E3:c};
return G}():function(){var G=function(c,I){this.JSC$20147__el=c;
this.JSC$20147__htOption=I};
G.prototype.draw=function(c){for(var I=this.JSC$20147__htOption,R=this.JSC$20147__el,Z=c.moduleCount,K=Math.floor(I.width/Z),m=Math.floor(I.height/Z),a=['<table style="border:0;border-collapse:collapse;">'],O=0;O<Z;O++){a.push("<tr>");for(var N=0;N<Z;N++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+K+"px;height:"+m+"px;background-color:"+(c.isDark(O,N)?I.colorDark:I.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>");c=a.join("");c=_.K3i(_.Q2e,c);_.O9(R,c);
c=R.childNodes[0];Z=(I.width-c.offsetWidth)/2;K=(I.height-c.offsetHeight)/2;Z>0&&K>0&&(c.style.margin=K+"px "+Z+"px")};
G.prototype.clear=function(){this.JSC$20147__el.textContent=""};
return G}();
Yg$.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20150__android||this.JSC$20150__android>=3)&&this._oDrawing.makeImage()};
Yg$.prototype.clear=function(){this._oDrawing.clear()};
_.Rq.QRCode=Yg$;var gru={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Yr7=function(){};
Yr7.prototype.stringify=function(G){return _.Rq.JSON.stringify(G,void 0)};
Yr7.prototype.parse=function(G){return _.Rq.JSON.parse(G,void 0)};var GQr=function(){_.zR.call(this,"z")};
_.eg(GQr,_.zR);var cG0=function(){_.zR.call(this,"y")};
_.eg(cG0,_.zR);var IdF=null,R7G=function(){return IdF=IdF||new _.r4},Zfd=function(G){_.zR.call(this,"serverreachability",G)};
_.eg(Zfd,_.zR);var K8d=function(G){var c=R7G();c.dispatchEvent(new Zfd(c,G))},Pdu=function(G,c){_.zR.call(this,"statevent",G);
this.stat=c};
_.eg(Pdu,_.zR);var yo=function(G){var c=R7G();c.dispatchEvent(new Pdu(c,G))},QpG=function(G,c,I,R){_.zR.call(this,"timingevent",G);
this.size=c;this.rtt=I;this.retries=R};
_.eg(QpG,_.zR);var mHW=function(G,c,I){var R=R7G();R.dispatchEvent(new QpG(R,G,c,I))},adW=function(G,c){if(typeof G!=="function")throw Error("Tk");
return _.Rq.setTimeout(function(){G()},c)};var gp=function(){this.redactEnabled_=!0};
gp.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Tyd=function(G,c,I,R,Z,K){G.info(function(){if(G.redactEnabled_)if(K){var m="";for(var a=K.split("&"),O=0;O<a.length;O++){var N=a[O].split("=");if(N.length>1){var q=N[0];N=N[1];var w=q.split("_");m=w.length>=2&&w[1]=="type"?m+(q+"="+N+"&"):m+(q+"=redacted&")}}}else m=null;else m=K;return"XMLHTTP REQ ("+R+") [attempt "+Z+"]: "+c+"\n"+I+"\n"+m})},Of1=function(G,c,I,R,Z,K,m){G.info(function(){return"XMLHTTP RESP ("+R+") [ attempt "+Z+"]: "+c+"\n"+I+"\n"+K+" "+m})},YE=function(G,c,I,R){G.info(function(){return"XMLHTTP TEXT ("+
c+"): "+e7r(G,I)+(R?" "+R:"")})},NyW=function(G,c){G.info(function(){return"TIMEOUT: "+c})};
gp.prototype.debug=function(){};
gp.prototype.info=function(){};
gp.prototype.warning=function(){};
var e7r=function(G,c){if(!G.redactEnabled_)return c;if(!c)return null;try{var I=JSON.parse(c);if(I)for(var R=0;R<I.length;R++)if(Array.isArray(I[R])){var Z=I[R];if(!(Z.length<2)){var K=Z[1];if(Array.isArray(K)&&!(K.length<1)){var m=K[0];if(m!="noop"&&m!="stop"&&m!="close")for(var a=1;a<K.length;a++)K[a]=""}}}return(0,_.HL)(I)}catch(O){return G.debug("Exception parsing expected JS array - probably was not JS"),c}};var Gt=function(G,c,I,R,Z){this.JSC$20172_channel_=G;this.JSC$20172_channelDebug_=c;this.sid_=I;this.JSC$20172_rid_=R;this.JSC$20172_retryId_=Z||1;this.JSC$20172_eventHandler_=new _.D0(this);this.timeout_=45E3;this.JSC$20172_extraHeaders_=null;this.JSC$20172_successful_=!1;this.JSC$20172_postData_=this.JSC$20172_requestUri_=this.JSC$20172_baseUri_=this.JSC$20172_type_=this.JSC$20172_requestStartTime_=this.JSC$20172_watchDogTimeoutTime_=this.JSC$20172_watchDogTimerId_=null;this.JSC$20172_pendingMessages_=
[];this.JSC$20172_xmlHttp_=null;this.JSC$20172_xmlHttpChunkStart_=0;this.JSC$20172_lastError_=this.JSC$20172_verb_=null;this.JSC$20172_lastStatusCode_=-1;this.JSC$20172_cancelled_=!1;this.JSC$20172_readyStateChangeThrottleMs_=0;this.JSC$20172_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new ldr},ldr=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},q7r=function(G,c){switch(G){case 0:return"Non-200 return code ("+c+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},wQ7={},F8G={};
Gt.prototype.setTimeout=function(G){this.timeout_=G};
var v4H=function(G,c,I){G.JSC$20172_type_=1;G.JSC$20172_baseUri_=_.Am(c.clone());G.JSC$20172_postData_=I;G.decodeChunks_=!0;n41(G,null)},n41=function(G,c){G.JSC$20172_requestStartTime_=Date.now();
DH1(G);G.JSC$20172_requestUri_=G.JSC$20172_baseUri_.clone();tjG(G.JSC$20172_requestUri_,"t",G.JSC$20172_retryId_);G.JSC$20172_xmlHttpChunkStart_=0;var I=G.JSC$20172_channel_.JSC$20191_supportsCrossDomainXhrs_;G.fetchResponseState_=new ldr;G.JSC$20172_xmlHttp_=o4W(G.JSC$20172_channel_,I?c:null,!G.JSC$20172_postData_);G.JSC$20172_readyStateChangeThrottleMs_>0&&(G.JSC$20172_readyStateChangeThrottle_=new _.qx((0,_.WD)(G.JSC$20176_xmlHttpHandler_,G,G.JSC$20172_xmlHttp_),G.JSC$20172_readyStateChangeThrottleMs_));
G.JSC$20172_eventHandler_.listen(G.JSC$20172_xmlHttp_,"readystatechange",G.JSC$20176_readyStateChangeHandler_);c=G.JSC$20172_extraHeaders_?_.rx.clone(G.JSC$20172_extraHeaders_):{};G.JSC$20172_postData_?(G.JSC$20172_verb_||(G.JSC$20172_verb_="POST"),c["Content-Type"]="application/x-www-form-urlencoded",G.JSC$20172_xmlHttp_.send(G.JSC$20172_requestUri_,G.JSC$20172_verb_,G.JSC$20172_postData_,c)):(G.JSC$20172_verb_="GET",G.JSC$20172_xmlHttp_.send(G.JSC$20172_requestUri_,G.JSC$20172_verb_,null,c));K8d(1);
Tyd(G.JSC$20172_channelDebug_,G.JSC$20172_verb_,G.JSC$20172_requestUri_,G.JSC$20172_rid_,G.JSC$20172_retryId_,G.JSC$20172_postData_)};
Gt.prototype.JSC$20176_readyStateChangeHandler_=function(G){G=G.target;var c=this.JSC$20172_readyStateChangeThrottle_;c&&_.yM(G)==3?(this.JSC$20172_channelDebug_.debug("Throttling readystatechange."),c.fire()):this.JSC$20176_xmlHttpHandler_(G)};
Gt.prototype.JSC$20176_xmlHttpHandler_=function(G){try{G==this.JSC$20172_xmlHttp_?UH0(this):this.JSC$20172_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(c){this.JSC$20172_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),u51(this)}finally{}};
var UH0=function(G){var c=_.yM(G.JSC$20172_xmlHttp_),I=G.JSC$20172_xmlHttp_.JSC$9965_lastErrorCode_,R=G.JSC$20172_xmlHttp_.getStatus();if(!(c<3||c==3&&!u51(G))){G.JSC$20172_cancelled_||c!=4||I==7||(I==8||R<=0?K8d(3):K8d(2));bfH(G);var Z=G.JSC$20172_xmlHttp_.getStatus();G.JSC$20172_lastStatusCode_=Z;I=kQd(G);u51(G)||G.JSC$20172_channelDebug_.debug(function(){return"No response text for uri "+G.JSC$20172_requestUri_+" status "+Z});
G.JSC$20172_successful_=Z==200;Of1(G.JSC$20172_channelDebug_,G.JSC$20172_verb_,G.JSC$20172_requestUri_,G.JSC$20172_rid_,G.JSC$20172_retryId_,c,Z);if(G.JSC$20172_successful_){if(G.decodeInitialResponse_&&!G.initialResponseDecoded_)if(R=spG(G))YE(G.JSC$20172_channelDebug_,G.JSC$20172_rid_,R,"Initial handshake response via X-HTTP-Initial-Response"),G.initialResponseDecoded_=!0,L8F(G,R);else{G.JSC$20172_successful_=!1;G.JSC$20172_lastError_=3;yo(12);G.JSC$20172_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
G.JSC$20172_rid_+")");cJ(G);AGj(G);return}G.decodeChunks_?$H1(G,c,I):(YE(G.JSC$20172_channelDebug_,G.JSC$20172_rid_,I,null),L8F(G,I));c==4&&cJ(G);G.JSC$20172_successful_&&!G.JSC$20172_cancelled_&&(c==4?S7$(G.JSC$20172_channel_,G):(G.JSC$20172_successful_=!1,DH1(G)))}else jN$(G.JSC$20172_xmlHttp_),Z==400&&I.indexOf("Unknown SID")>0?(G.JSC$20172_lastError_=3,yo(12),G.JSC$20172_channelDebug_.warning("XMLHTTP Unknown SID ("+G.JSC$20172_rid_+")")):(G.JSC$20172_lastError_=0,yo(13),G.JSC$20172_channelDebug_.warning("XMLHTTP Bad status "+
Z+" ("+G.JSC$20172_rid_+")")),cJ(G),AGj(G)}},spG=function(G){return G.JSC$20172_xmlHttp_&&(G=p8d(G.JSC$20172_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.mg(G)?G:null},kQd=function(G){if(!pQ$(G))return G.JSC$20172_xmlHttp_.getResponseText();
var c=G.JSC$20172_xmlHttp_.getResponse();if(c==="")return"";var I="",R=c.length,Z=_.yM(G.JSC$20172_xmlHttp_)==4;if(!G.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return cJ(G),AGj(G),"";G.fetchResponseState_.textDecoder=new _.Rq.TextDecoder}for(var K=0;K<R;K++)G.fetchResponseState_.responseArrivedForFetch=!0,I+=G.fetchResponseState_.textDecoder.decode(c[K],{stream:!(Z&&K==R-1)});c.length=0;G.fetchResponseState_.responseBuffer+=I;G.JSC$20172_xmlHttpChunkStart_=0;return G.fetchResponseState_.responseBuffer},
u51=function(G){return G.JSC$20172_xmlHttp_?G.fetchResponseState_.responseArrivedForFetch?!0:!(!G.JSC$20172_xmlHttp_.getResponseText()&&!G.JSC$20172_xmlHttp_.getResponse()):!1},pQ$=function(G){return G.JSC$20172_xmlHttp_?G.JSC$20172_verb_=="GET"&&G.JSC$20172_type_!=2&&G.JSC$20172_channel_.usesFetchStreams_:!1},$H1=function(G,c,I){for(var R=!0,Z;!G.JSC$20172_cancelled_&&G.JSC$20172_xmlHttpChunkStart_<I.length;)if(Z=MNg(G,I),Z==F8G){c==4&&(G.JSC$20172_lastError_=4,yo(14),R=!1);
YE(G.JSC$20172_channelDebug_,G.JSC$20172_rid_,null,"[Incomplete Response]");break}else if(Z==wQ7){G.JSC$20172_lastError_=4;yo(15);YE(G.JSC$20172_channelDebug_,G.JSC$20172_rid_,I,"[Invalid Chunk]");R=!1;break}else YE(G.JSC$20172_channelDebug_,G.JSC$20172_rid_,Z,null),L8F(G,Z);pQ$(G)&&G.JSC$20172_xmlHttpChunkStart_!=0&&(G.fetchResponseState_.responseBuffer=G.fetchResponseState_.responseBuffer.slice(G.JSC$20172_xmlHttpChunkStart_),G.JSC$20172_xmlHttpChunkStart_=0);c!=4||I.length!=0||G.fetchResponseState_.responseArrivedForFetch||
(G.JSC$20172_lastError_=1,yo(16),R=!1);G.JSC$20172_successful_=G.JSC$20172_successful_&&R;R?I.length>0&&!G.firstByteReceived_&&(G.firstByteReceived_=!0,c=G.JSC$20172_channel_,c.JSC$20191_backChannelRequest_==G&&c.detectBufferingProxy_&&!c.bpDetectionDone_&&(c.JSC$20191_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+I.length),VNu(c),c.bpDetectionDone_=!0,yo(11))):(YE(G.JSC$20172_channelDebug_,G.JSC$20172_rid_,I,"[Invalid Chunked Response]"),cJ(G),AGj(G))},MNg=function(G,
c){var I=G.JSC$20172_xmlHttpChunkStart_,R=c.indexOf("\n",I);
if(R==-1)return F8G;I=Number(c.substring(I,R));if(isNaN(I))return wQ7;R+=1;if(R+I>c.length)return F8G;c=c.slice(R,R+I);G.JSC$20172_xmlHttpChunkStart_=R+I;return c};
Gt.prototype.cancel=function(){this.JSC$20172_cancelled_=!0;cJ(this)};
var DH1=function(G){G.JSC$20172_watchDogTimeoutTime_=Date.now()+G.timeout_;z7G(G,G.timeout_)},z7G=function(G,c){if(G.JSC$20172_watchDogTimerId_!=null)throw Error("Uk");
G.JSC$20172_watchDogTimerId_=adW((0,_.WD)(G.JSC$20176_onWatchDogTimeout_,G),c)},bfH=function(G){G.JSC$20172_watchDogTimerId_&&(_.Rq.clearTimeout(G.JSC$20172_watchDogTimerId_),G.JSC$20172_watchDogTimerId_=null)};
Gt.prototype.JSC$20176_onWatchDogTimeout_=function(){this.JSC$20172_watchDogTimerId_=null;var G=Date.now();G-this.JSC$20172_watchDogTimeoutTime_>=0?(NyW(this.JSC$20172_channelDebug_,this.JSC$20172_requestUri_),this.JSC$20172_type_!=2&&(K8d(3),yo(17)),cJ(this),this.JSC$20172_lastError_=2,AGj(this)):(this.JSC$20172_channelDebug_.warning("WatchDog timer called too early"),z7G(this,this.JSC$20172_watchDogTimeoutTime_-G))};
var AGj=function(G){G.JSC$20172_channel_.state_==0||G.JSC$20172_cancelled_||S7$(G.JSC$20172_channel_,G)},cJ=function(G){bfH(G);
_.TB(G.JSC$20172_readyStateChangeThrottle_);G.JSC$20172_readyStateChangeThrottle_=null;G.JSC$20172_eventHandler_.removeAll();if(G.JSC$20172_xmlHttp_){var c=G.JSC$20172_xmlHttp_;G.JSC$20172_xmlHttp_=null;c.abort();c.dispose()}};
Gt.prototype.getLastError=function(){return this.JSC$20172_lastError_};
var L8F=function(G,c){try{var I=G.JSC$20172_channel_;if(I.state_!=0&&(I.JSC$20191_backChannelRequest_==G||E4r(I.forwardChannelRequestPool_,G)))if(!G.initialResponseDecoded_&&E4r(I.forwardChannelRequestPool_,G)&&I.state_==3){try{var R=I.wireCodec_.JSC$20186_parser_.parse(c)}catch(a){R=null}if(Array.isArray(R)&&R.length==3){c=R;if(c[0]==0)a:if(I.JSC$20191_channelDebug_.debug("Server claims our backchannel is missing."),I.JSC$20191_backChannelTimerId_)I.JSC$20191_channelDebug_.debug("But we are currently starting the request.");
else{if(I.JSC$20191_backChannelRequest_)if(I.JSC$20191_backChannelRequest_.JSC$20172_requestStartTime_+3E3<G.JSC$20172_requestStartTime_)JGH(I),W87(I);else break a;else I.JSC$20191_channelDebug_.warning("We do not have a BackChannel established");ifu(I);yo(18)}else{I.JSC$20191_lastPostResponseArrayId_=c[1];var Z=I.JSC$20191_lastPostResponseArrayId_-I.JSC$20191_lastArrayId_;if(0<Z){var K=c[2];I.JSC$20191_channelDebug_.debug(K+" bytes (in "+Z+" arrays) are outstanding on the BackChannel");K<37500&&
I.enableStreaming_&&I.JSC$20191_backChannelRetryCount_==0&&!I.JSC$20191_deadBackChannelTimerId_&&(I.JSC$20191_deadBackChannelTimerId_=adW((0,_.WD)(I.JSC$20193_onBackChannelDead_,I),6E3))}}if(fdr(I.forwardChannelRequestPool_)<=1&&I.forwardChannelFlushedCallback_){try{I.forwardChannelFlushedCallback_()}catch(a){}I.forwardChannelFlushedCallback_=void 0}}else I.JSC$20191_channelDebug_.debug("Bad POST response data returned"),IL(I,11)}else if((G.initialResponseDecoded_||I.JSC$20191_backChannelRequest_==
G)&&JGH(I),!_.mg(c)){var m=I.wireCodec_.JSC$20186_parser_.parse(c);I.onInput_(m,G)}K8d(4)}catch(a){}};var Byd=function(G,c){this.JSC$20179_mapId=G;this.map=c;this.context=null};var rGF=function(G){this.maxPoolSizeConfigured_=G||10;_.Rq.PerformanceNavigationTiming?(G=_.Rq.performance.getEntriesByType("navigation"),G=G.length>0&&(G[0].nextHopProtocol=="hq"||G[0].nextHopProtocol=="h2")):G=!!(_.Rq.chrome&&_.Rq.chrome.loadTimes&&_.Rq.chrome.loadTimes()&&_.Rq.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20182_maxSize_=G?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20182_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20182_request_=null;this.JSC$20182_pendingMessages_=
[]},jpd=function(G){return G.JSC$20182_request_?!0:G.requestPool_?G.requestPool_.size>=G.JSC$20182_maxSize_:!1},fdr=function(G){return G.JSC$20182_request_?1:G.requestPool_?G.requestPool_.size:0},E4r=function(G,c){return G.JSC$20182_request_?G.JSC$20182_request_==c:G.requestPool_?G.requestPool_.has(c):!1},xH0=function(G,c){G.requestPool_?G.requestPool_.add(c):G.JSC$20182_request_=c},tN$=function(G,c){G.JSC$20182_request_&&G.JSC$20182_request_==c?G.JSC$20182_request_=null:G.requestPool_&&G.requestPool_.has(c)&&
G.requestPool_.delete(c)};
rGF.prototype.cancel=function(){this.JSC$20182_pendingMessages_=h7F(this);if(this.JSC$20182_request_)this.JSC$20182_request_.cancel(),this.JSC$20182_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var G=_.Q(this.requestPool_.values()),c=G.next();!c.done;c=G.next())c.value.cancel();this.requestPool_.clear()}};
var h7F=function(G){if(G.JSC$20182_request_!=null)return G.JSC$20182_pendingMessages_.concat(G.JSC$20182_request_.JSC$20172_pendingMessages_);if(G.requestPool_!=null&&G.requestPool_.size!==0){var c=G.JSC$20182_pendingMessages_;G=_.Q(G.requestPool_.values());for(var I=G.next();!I.done;I=G.next())c=c.concat(I.value.JSC$20172_pendingMessages_);return c}return _.jr(G.JSC$20182_pendingMessages_)},dH$=function(G,c){G.JSC$20182_pendingMessages_=G.JSC$20182_pendingMessages_.concat(c)};var Cd$=function(G,c){var I=new gp;I.debug("TestLoadImage: loading "+G);if(_.Rq.Image){var R=new Image;R.onload=_.Ts(RL,I,"TestLoadImage: loaded",!0,c,R);R.onerror=_.Ts(RL,I,"TestLoadImage: error",!1,c,R);R.onabort=_.Ts(RL,I,"TestLoadImage: abort",!1,c,R);R.ontimeout=_.Ts(RL,I,"TestLoadImage: timeout",!1,c,R);_.Rq.setTimeout(function(){if(R.ontimeout)R.ontimeout()},1E4);
R.src=G}else c(!1)},HfH=function(G,c){var I=new gp,R=new AbortController,Z=setTimeout(function(){R.abort();
RL(I,"TestPingServer: timeout",!1,c)},1E4);
fetch(G,{signal:R.signal}).then(function(K){clearTimeout(Z);K.ok?RL(I,"TestPingServer: ok",!0,c):RL(I,"TestPingServer: server error",!1,c)}).catch(function(){clearTimeout(Z);
RL(I,"TestPingServer: error",!1,c)})},RL=function(G,c,I,R,Z){try{G.debug(c),Z&&(Z.onload=null,Z.onerror=null,Z.onabort=null,Z.ontimeout=null),R(I)}catch(K){}};var XQH=function(){this.JSC$20186_parser_=new Yr7};var yGu=function(G,c,I){return I&&I.internalChannelParams?I.internalChannelParams[G]||c:c},Z7=function(G){this.serverVersion_=0;
this.JSC$20191_outgoingMaps_=[];this.JSC$20191_channelDebug_=new gp;this.JSC$20191_hostPrefix_=this.JSC$20191_backChannelUri_=this.JSC$20191_forwardChannelUri_=this.JSC$20191_path_=this.JSC$20191_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20191_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20191_extraHeaders_=null;this.JSC$20191_nextMapId_=this.JSC$20191_nextRid_=0;this.JSC$20191_failFast_=yGu("failFast",!1,G);this.enableStreaming_=this.JSC$20191_deadBackChannelTimerId_=
this.JSC$20191_backChannelTimerId_=this.JSC$20191_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20191_lastPostResponseArrayId_=this.JSC$20191_lastArrayId_=-1;this.JSC$20191_backChannelAttemptId_=this.JSC$20191_backChannelRetryCount_=this.JSC$20191_forwardChannelRetryCount_=0;this.JSC$20191_baseRetryDelayMs_=yGu("baseRetryDelayMs",5E3,G);this.JSC$20191_retryDelaySeedMs_=yGu("retryDelaySeedMs",1E4,G);this.JSC$20191_forwardChannelMaxRetries_=
yGu("forwardChannelMaxRetries",2,G);this.JSC$20191_forwardChannelRequestTimeoutMs_=yGu("forwardChannelRequestTimeoutMs",2E4,G);this.JSC$20191_xmlHttpFactory_=G&&G.xmlHttpFactory||void 0;this.networkTestUrl_=G&&G.networkTestUrl||void 0;this.usesFetchStreams_=G&&G.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20191_supportsCrossDomainXhrs_=G&&G.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new rGF(G&&G.concurrentRequestLimit);this.wireCodec_=new XQH;
this.fastHandshake_=G&&G.fastHandshake||!1;this.encodeInitMessageHeaders_=G&&G.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20191_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=G&&G.blockingHandshake||!1;G&&G.disableRedact&&this.JSC$20191_channelDebug_.disableRedact();G&&G.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&G&&G.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;G&&G.longPollingTimeout&&G.longPollingTimeout>0&&(this.longPollingTimeout_=G.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Z7.prototype.JSC$20193_channelVersion_=8;Z7.prototype.state_=1;
Z7.prototype.connect=function(G,c,I,R){this.JSC$20191_channelDebug_.debug("connect()");yo(0);this.JSC$20191_path_=G;this.JSC$20191_extraParams_=c||{};I&&R!==void 0&&(this.JSC$20191_extraParams_.OSID=I,this.JSC$20191_extraParams_.OAID=R);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20191_channelDebug_.debug("connectChannel_()");G=g4$(this,null,this.JSC$20191_path_);this.JSC$20191_channelDebug_.debug("GetForwardChannelUri: "+G);this.JSC$20191_forwardChannelUri_=G;Y7g(this)};
Z7.prototype.disconnect=function(){this.JSC$20191_channelDebug_.debug("disconnect()");G5j(this);if(this.state_==3){var G=this.JSC$20191_nextRid_++,c=this.JSC$20191_forwardChannelUri_.clone();_.Zm(c,"SID",this.sid_);_.Zm(c,"RID",G);_.Zm(c,"TYPE","terminate");cuH(this,c);G=new Gt(this,this.JSC$20191_channelDebug_,this.sid_,G);G.JSC$20172_type_=2;G.JSC$20172_baseUri_=_.Am(c.clone());c=!1;if(_.Rq.navigator&&_.Rq.navigator.sendBeacon)try{c=_.Rq.navigator.sendBeacon(G.JSC$20172_baseUri_.toString(),"")}catch(I){}!c&&
_.Rq.Image&&((new Image).src=G.JSC$20172_baseUri_,c=!0);c||(G.JSC$20172_xmlHttp_=o4W(G.JSC$20172_channel_,null),G.JSC$20172_xmlHttp_.send(G.JSC$20172_baseUri_));G.JSC$20172_requestStartTime_=Date.now();DH1(G)}IgW(this)};
var W87=function(G){G.JSC$20191_backChannelRequest_&&(VNu(G),G.JSC$20191_backChannelRequest_.cancel(),G.JSC$20191_backChannelRequest_=null)},G5j=function(G){W87(G);
G.JSC$20191_backChannelTimerId_&&(_.Rq.clearTimeout(G.JSC$20191_backChannelTimerId_),G.JSC$20191_backChannelTimerId_=null);JGH(G);G.forwardChannelRequestPool_.cancel();G.JSC$20191_forwardChannelTimerId_&&(typeof G.JSC$20191_forwardChannelTimerId_==="number"&&_.Rq.clearTimeout(G.JSC$20191_forwardChannelTimerId_),G.JSC$20191_forwardChannelTimerId_=null)};
Z7.prototype.getState=function(){return this.state_};
var Y7g=function(G){jpd(G.forwardChannelRequestPool_)||G.JSC$20191_forwardChannelTimerId_||(G.JSC$20191_forwardChannelTimerId_=!0,_.xz(G.JSC$20193_onStartForwardChannelTimer_,G),G.JSC$20191_forwardChannelRetryCount_=0)},ZIu=function(G,c){if(fdr(G.forwardChannelRequestPool_)>=G.forwardChannelRequestPool_.JSC$20182_maxSize_-(G.JSC$20191_forwardChannelTimerId_?1:0))return!1;
if(G.JSC$20191_forwardChannelTimerId_)return G.JSC$20191_channelDebug_.debug("Use the retry request that is already scheduled."),G.JSC$20191_outgoingMaps_=c.JSC$20172_pendingMessages_.concat(G.JSC$20191_outgoingMaps_),!0;if(G.state_==1||G.state_==2||G.JSC$20191_forwardChannelRetryCount_>=(G.JSC$20191_failFast_?0:G.JSC$20191_forwardChannelMaxRetries_))return!1;G.JSC$20191_channelDebug_.debug("Going to retry POST");G.JSC$20191_forwardChannelTimerId_=adW((0,_.WD)(G.JSC$20193_onStartForwardChannelTimer_,
G,c),RTj(G,G.JSC$20191_forwardChannelRetryCount_));G.JSC$20191_forwardChannelRetryCount_++;return!0};
Z7.prototype.JSC$20193_onStartForwardChannelTimer_=function(G){if(this.JSC$20191_forwardChannelTimerId_)if(this.JSC$20191_forwardChannelTimerId_=null,this.JSC$20191_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!G){this.JSC$20191_channelDebug_.debug("open_()");this.JSC$20191_nextRid_=Math.floor(Math.random()*1E5);G=this.JSC$20191_nextRid_++;var c=new Gt(this,this.JSC$20191_channelDebug_,"",G),I=this.JSC$20191_extraHeaders_;this.initHeaders_&&(I?(I=_.rx.clone(I),_.rx.extend(I,this.initHeaders_)):
I=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(c.JSC$20172_extraHeaders_=I,I=null);var R;if(this.fastHandshake_)a:{for(var Z=R=0;Z<this.JSC$20191_outgoingMaps_.length;Z++){b:{var K=this.JSC$20191_outgoingMaps_[Z];if("__data__"in K.map&&(K=K.map.__data__,typeof K==="string")){K=K.length;break b}K=void 0}if(K===void 0)break;R+=K;if(R>4096){R=Z;break a}if(R===4096||Z===this.JSC$20191_outgoingMaps_.length-1){R=Z+1;break a}}R=1E3}else R=1E3;R=KOu(this,c,R);
Z=this.JSC$20191_forwardChannelUri_.clone();_.Zm(Z,"RID",G);_.Zm(Z,"CVER",22);this.httpSessionIdParam_&&_.Zm(Z,"X-HTTP-Session-Id",this.httpSessionIdParam_);cuH(this,Z);I&&(this.encodeInitMessageHeaders_?R="headers="+_.ZH(K4d(I))+"&"+R:this.httpHeadersOverwriteParam_&&PYG(Z,this.httpHeadersOverwriteParam_,I));xH0(this.forwardChannelRequestPool_,c);this.blockingHandshake_&&_.Zm(Z,"TYPE","init");this.fastHandshake_?(_.Zm(Z,"$req",R),_.Zm(Z,"SID","null"),c.decodeInitialResponse_=!0,v4H(c,Z,null)):v4H(c,
Z,R);this.state_=2}}else this.state_==3&&(G?Ps0(this,G):this.JSC$20191_outgoingMaps_.length==0?this.JSC$20191_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):jpd(this.forwardChannelRequestPool_)||(Ps0(this),this.JSC$20191_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Ps0=function(G,c){var I;c?I=c.JSC$20172_rid_:I=G.JSC$20191_nextRid_++;var R=G.JSC$20191_forwardChannelUri_.clone();_.Zm(R,"SID",G.sid_);_.Zm(R,"RID",I);_.Zm(R,"AID",G.JSC$20191_lastArrayId_);cuH(G,R);G.httpHeadersOverwriteParam_&&G.JSC$20191_extraHeaders_&&PYG(R,G.httpHeadersOverwriteParam_,G.JSC$20191_extraHeaders_);I=new Gt(G,G.JSC$20191_channelDebug_,G.sid_,I,G.JSC$20191_forwardChannelRetryCount_+1);G.httpHeadersOverwriteParam_===null&&(I.JSC$20172_extraHeaders_=G.JSC$20191_extraHeaders_);
c&&(G.JSC$20191_outgoingMaps_=c.JSC$20172_pendingMessages_.concat(G.JSC$20191_outgoingMaps_));c=KOu(G,I,1E3);I.setTimeout(Math.round(G.JSC$20191_forwardChannelRequestTimeoutMs_*.5)+Math.round(G.JSC$20191_forwardChannelRequestTimeoutMs_*.5*Math.random()));xH0(G.forwardChannelRequestPool_,I);v4H(I,R,c)},cuH=function(G,c){G.JSC$20191_extraParams_&&_.rx.forEach(G.JSC$20191_extraParams_,function(I,R){_.Zm(c,R,I)});
G.handler_&&_.rx.forEach({},function(I,R){_.Zm(c,R,I)})},KOu=function(G,c,I){I=Math.min(G.JSC$20191_outgoingMaps_.length,I);
var R=G.handler_?(0,_.WD)(G.handler_.JSC$20197_badMapError,G.handler_,G):null;a:{for(var Z=G.JSC$20191_outgoingMaps_,K=-1;;){var m=["count="+I];K==-1?I>0?(K=Z[0].JSC$20179_mapId,m.push("ofs="+K)):K=0:m.push("ofs="+K);for(var a=!0,O=0;O<I;O++){var N=Z[O].JSC$20179_mapId,q=Z[O].map;N-=K;if(N<0)K=Math.max(0,Z[O].JSC$20179_mapId-100),a=!1;else try{N="req"+N+"_"||"";try{var w=q instanceof Map?q:Object.entries(q);for(var F=_.Q(w),n=F.next();!n.done;n=F.next()){var U=_.Q(n.value),k=U.next().value,p=U.next().value,
M=p;_.db(p)&&(M=(0,_.HL)(p));m.push(N+k+"="+encodeURIComponent(M))}}catch(z){throw m.push(N+"type="+encodeURIComponent("_badmap")),z;}}catch(z){R&&R(q)}}if(a){w=m.join("&");break a}}w=void 0}G=G.JSC$20191_outgoingMaps_.splice(0,I);c.JSC$20172_pendingMessages_=G;return w},Qeg=function(G){G.JSC$20191_backChannelRequest_||G.JSC$20191_backChannelTimerId_||(G.JSC$20191_backChannelAttemptId_=1,_.xz(G.JSC$20193_onStartBackChannelTimer_,G),G.JSC$20191_backChannelRetryCount_=0)},ifu=function(G){if(G.JSC$20191_backChannelRequest_||
G.JSC$20191_backChannelTimerId_||G.JSC$20191_backChannelRetryCount_>=3)return!1;
G.JSC$20191_channelDebug_.debug("Going to retry GET");G.JSC$20191_backChannelAttemptId_++;G.JSC$20191_backChannelTimerId_=adW((0,_.WD)(G.JSC$20193_onStartBackChannelTimer_,G),RTj(G,G.JSC$20191_backChannelRetryCount_));G.JSC$20191_backChannelRetryCount_++;return!0};
Z7.prototype.JSC$20193_onStartBackChannelTimer_=function(){this.JSC$20191_backChannelTimerId_=null;m_d(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20191_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20191_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20191_backChannelRequest_+" "+this.handshakeRttMs_);else{var G=4*this.handshakeRttMs_;this.JSC$20191_channelDebug_.info("BP detection timer enabled: "+G);this.bpDetectionTimerId_=adW((0,_.WD)(this.onBpDetectionTimer_,
this),G)}};
Z7.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20191_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20191_backChannelRequest_.JSC$20172_xmlHttp_!=null){var G=this.JSC$20191_backChannelRequest_.JSC$20172_xmlHttp_.getResponseText();G&&this.JSC$20191_channelDebug_.warning("Timer should have been cancelled : "+G)}this.JSC$20191_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;yo(10);W87(this);m_d(this)}else this.JSC$20191_channelDebug_.warning("Invalid operation.")};
var VNu=function(G){G.bpDetectionTimerId_!=null&&(G.JSC$20191_channelDebug_.debug("Cancel the BP detection timer."),_.Rq.clearTimeout(G.bpDetectionTimerId_),G.bpDetectionTimerId_=null)},m_d=function(G){G.JSC$20191_channelDebug_.debug("Creating new HttpRequest");
G.JSC$20191_backChannelRequest_=new Gt(G,G.JSC$20191_channelDebug_,G.sid_,"rpc",G.JSC$20191_backChannelAttemptId_);G.httpHeadersOverwriteParam_===null&&(G.JSC$20191_backChannelRequest_.JSC$20172_extraHeaders_=G.JSC$20191_extraHeaders_);G.JSC$20191_backChannelRequest_.JSC$20172_readyStateChangeThrottleMs_=0;var c=G.JSC$20191_backChannelUri_.clone();_.Zm(c,"RID","rpc");_.Zm(c,"SID",G.sid_);_.Zm(c,"AID",G.JSC$20191_lastArrayId_);_.Zm(c,"CI",G.enableStreaming_?"0":"1");!G.enableStreaming_&&G.longPollingTimeout_&&
_.Zm(c,"TO",G.longPollingTimeout_);_.Zm(c,"TYPE","xmlhttp");cuH(G,c);G.httpHeadersOverwriteParam_&&G.JSC$20191_extraHeaders_&&PYG(c,G.httpHeadersOverwriteParam_,G.JSC$20191_extraHeaders_);G.backChannelRequestTimeoutMs_&&G.JSC$20191_backChannelRequest_.setTimeout(G.backChannelRequestTimeoutMs_);var I=G.JSC$20191_backChannelRequest_,R=G.JSC$20191_hostPrefix_;I.JSC$20172_type_=1;I.JSC$20172_baseUri_=_.Am(c.clone());I.JSC$20172_postData_=null;I.decodeChunks_=!0;n41(I,R);G.JSC$20191_channelDebug_.debug("New Request created")};
Z7.prototype.JSC$20193_onBackChannelDead_=function(){this.JSC$20191_deadBackChannelTimerId_!=null&&(this.JSC$20191_deadBackChannelTimerId_=null,W87(this),ifu(this),yo(19))};
var JGH=function(G){G.JSC$20191_deadBackChannelTimerId_!=null&&(_.Rq.clearTimeout(G.JSC$20191_deadBackChannelTimerId_),G.JSC$20191_deadBackChannelTimerId_=null)},S7$=function(G,c){G.JSC$20191_channelDebug_.debug("Request complete");
var I=null;if(G.JSC$20191_backChannelRequest_==c){JGH(G);VNu(G);G.JSC$20191_backChannelRequest_=null;var R=2}else if(E4r(G.forwardChannelRequestPool_,c))I=c.JSC$20172_pendingMessages_,tN$(G.forwardChannelRequestPool_,c),R=1;else return;if(G.state_!=0)if(c.JSC$20172_successful_)R==1?(mHW(c.JSC$20172_postData_?c.JSC$20172_postData_.length:0,Date.now()-c.JSC$20172_requestStartTime_,G.JSC$20191_forwardChannelRetryCount_),Y7g(G)):Qeg(G);else{var Z=c.JSC$20172_lastStatusCode_,K=c.getLastError();if(K==3||
K==0&&Z>0)G.JSC$20191_channelDebug_.debug("Not retrying due to error type"),Z>200&&(G.errorResponseStatusCode_=c.JSC$20172_lastStatusCode_);else{G.JSC$20191_channelDebug_.debug(function(){return"Maybe retrying, last error: "+q7r(K,G.errorResponseStatusCode_)});
if(R==1&&ZIu(G,c)||R==2&&ifu(G))return;G.JSC$20191_channelDebug_.debug("Exceeded max number of retries")}I&&I.length>0&&dH$(G.forwardChannelRequestPool_,I);G.JSC$20191_channelDebug_.debug("Error: HTTP request failed");switch(K){case 1:IL(G,5);break;case 4:IL(G,10);break;case 3:IL(G,6);break;default:IL(G,2)}}},RTj=function(G,c){var I=G.JSC$20191_baseRetryDelayMs_+Math.floor(Math.random()*G.JSC$20191_retryDelaySeedMs_);
G.isActive()||(G.JSC$20191_channelDebug_.debug("Inactive channel"),I*=2);return I*c};
Z7.prototype.onInput_=function(G,c){for(var I=0;I<G.length;I++){var R=G[I],Z=R[0];if(Z<=this.JSC$20191_lastArrayId_)this.JSC$20191_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+Z+", lastArrayId: "+this.JSC$20191_lastArrayId_);else if(Z>this.JSC$20191_lastArrayId_+1&&this.JSC$20191_lastArrayId_>-1&&this.JSC$20191_channelDebug_.warning("Received non-consecutive message with arrayId: "+Z+", lastArrayId: "+this.JSC$20191_lastArrayId_),this.JSC$20191_lastArrayId_=Z,
R=R[1],this.state_==2)if(R[0]=="c"){this.sid_=R[1];this.JSC$20191_hostPrefix_=R[2];Z=R[3];Z!=null&&(this.JSC$20193_channelVersion_=Z,this.JSC$20191_channelDebug_.info("VER="+this.JSC$20193_channelVersion_));Z=R[4];Z!=null&&(this.serverVersion_=Z,this.JSC$20191_channelDebug_.info("SVER="+this.serverVersion_));R=R[5];R!=null&&typeof R==="number"&&R>0&&(this.backChannelRequestTimeoutMs_=R*=1.5,this.JSC$20191_channelDebug_.info("backChannelRequestTimeoutMs_="+R));if(R=c.JSC$20172_xmlHttp_){var K=p8d(R,
"X-Client-Wire-Protocol");K&&(Z=this.forwardChannelRequestPool_,!Z.requestPool_&&(_.aq(K,"spdy")||_.aq(K,"quic")||_.aq(K,"h2"))&&(Z.JSC$20182_maxSize_=Z.maxPoolSizeConfigured_,Z.requestPool_=new Set,Z.JSC$20182_request_&&(xH0(Z,Z.JSC$20182_request_),Z.JSC$20182_request_=null)));this.httpSessionIdParam_&&((R=p8d(R,"X-HTTP-Session-Id"))?(this.httpSessionId_=R,_.Zm(this.JSC$20191_forwardChannelUri_,this.httpSessionIdParam_,R)):this.JSC$20191_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20197_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-c.JSC$20172_requestStartTime_,this.JSC$20191_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));R=c;Z=g4$(this,this.JSC$20191_supportsCrossDomainXhrs_?this.JSC$20191_hostPrefix_:null,this.JSC$20191_path_);this.JSC$20191_channelDebug_.debug("GetBackChannelUri: "+Z);this.JSC$20191_backChannelUri_=Z;R.initialResponseDecoded_?(this.JSC$20191_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
tN$(this.forwardChannelRequestPool_,R),Z=R,(K=this.backChannelRequestTimeoutMs_)&&Z.setTimeout(K),Z.JSC$20172_watchDogTimerId_&&(bfH(Z),DH1(Z)),this.JSC$20191_backChannelRequest_=R):Qeg(this);this.JSC$20191_outgoingMaps_.length>0&&Y7g(this)}else R[0]!="stop"&&R[0]!="close"||IL(this,7);else this.state_==3&&(R[0]=="stop"||R[0]=="close"?R[0]=="stop"?IL(this,7):this.disconnect():R[0]!="noop"&&this.handler_&&this.handler_.JSC$20197_channelHandleArray(R),this.JSC$20191_backChannelRetryCount_=0)}};
var IL=function(G,c){G.JSC$20191_channelDebug_.info("Error code "+c);if(c==2){var I=(0,_.WD)(G.testNetworkCallback_,G),R=G.networkTestUrl_,Z=!R;R=new _.Bq(R||"//www.google.com/images/cleardot.gif");_.Rq.location&&_.Rq.location.protocol=="http"||_.vz(R,"https");_.Am(R);Z?Cd$(R.toString(),I):HfH(R.toString(),I)}else yo(2);G.onError_(c)};
Z7.prototype.testNetworkCallback_=function(G){G?(this.JSC$20191_channelDebug_.info("Successfully pinged google.com"),yo(2)):(this.JSC$20191_channelDebug_.info("Failed to ping google.com"),yo(1))};
Z7.prototype.onError_=function(G){this.JSC$20191_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$20197_channelError(G);IgW(this);G5j(this)};
var IgW=function(G){G.state_=0;G.nonAckedMapsAtChannelClose_=[];if(G.handler_){var c=h7F(G.forwardChannelRequestPool_);if(c.length!=0||G.JSC$20191_outgoingMaps_.length!=0)G.JSC$20191_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+c.length+", outgoing: "+G.JSC$20191_outgoingMaps_.length}),_.tU(G.nonAckedMapsAtChannelClose_,c),_.tU(G.nonAckedMapsAtChannelClose_,G.JSC$20191_outgoingMaps_),G.forwardChannelRequestPool_.JSC$20182_pendingMessages_.length=0,_.jr(G.JSC$20191_outgoingMaps_),
G.JSC$20191_outgoingMaps_.length=0;
G.handler_.JSC$20197_channelClosed()}},agF=function(G){if(G.state_==0)return G.nonAckedMapsAtChannelClose_;
var c=[];_.tU(c,h7F(G.forwardChannelRequestPool_));_.tU(c,G.JSC$20191_outgoingMaps_);return c},g4$=function(G,c,I){var R=_.IW(I);
R.JSC$10201_domain_!=""?(c&&_.Dh(R,c+"."+R.JSC$10201_domain_),_.oN(R,R.JSC$10201_port_)):(R=_.Rq.location,R=rk$(R.protocol,c?c+"."+R.hostname:R.hostname,+R.port,I));c=G.httpSessionIdParam_;I=G.httpSessionId_;c&&I&&_.Zm(R,c,I);_.Zm(R,"VER",G.JSC$20193_channelVersion_);cuH(G,R);return R},o4W=function(G,c,I){if(c&&!G.JSC$20191_supportsCrossDomainXhrs_)throw Error("Vk");
c=G.usesFetchStreams_&&!G.JSC$20191_xmlHttpFactory_?new _.XC(new cjH({streamBinaryChunks:I})):new _.XC(G.JSC$20191_xmlHttpFactory_);c.JSC$9965_withCredentials_=G.JSC$20191_supportsCrossDomainXhrs_;return c};
Z7.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var TQ0=function(){};
_.P=TQ0.prototype;_.P.JSC$20197_channelOpened=function(){};
_.P.JSC$20197_channelHandleArray=function(){};
_.P.JSC$20197_channelError=function(){};
_.P.JSC$20197_channelClosed=function(){};
_.P.isActive=function(){return!0};
_.P.JSC$20197_badMapError=function(){};var OI$=function(){},PJ=function(G,c){_.r4.call(this);
this.JSC$20200_channel_=new Z7(c);this.JSC$20200_url_=G;this.messageUrlParams_=c&&c.messageUrlParams||null;G=c&&c.messageHeaders||null;c&&c.clientProtocolHeaderRequired&&(G?_.rx.set(G,"X-Client-Protocol","webchannel"):G=_.rx.create("X-Client-Protocol","webchannel"));this.JSC$20200_channel_.JSC$20191_extraHeaders_=G;G=c&&c.initMessageHeaders||null;c&&c.messageContentType&&(G?_.rx.set(G,"X-WebChannel-Content-Type",c.messageContentType):G=_.rx.create("X-WebChannel-Content-Type",c.messageContentType));
c&&c.clientProfile&&(G?_.rx.set(G,"X-WebChannel-Client-Profile",c.clientProfile):G=_.rx.create("X-WebChannel-Client-Profile",c.clientProfile));this.JSC$20200_channel_.initHeaders_=G;(G=c&&c.httpHeadersOverwriteParam)&&!_.mg(G)&&(this.JSC$20200_channel_.httpHeadersOverwriteParam_=G);this.supportsCrossDomainXhr_=c&&c.supportsCrossDomainXhr||!1;this.sendRawJson_=c&&c.sendRawJson||!1;(c=c&&c.httpSessionIdParam)&&!_.mg(c)&&(this.JSC$20200_channel_.httpSessionIdParam_=c,_.rx.containsKey(this.messageUrlParams_,
c)&&_.rx.remove(this.messageUrlParams_,c));this.channelHandler_=new KX(this)};
_.eg(PJ,_.r4);PJ.prototype.open=function(){this.JSC$20200_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20200_channel_.JSC$20191_supportsCrossDomainXhrs_=!0);this.JSC$20200_channel_.connect(this.JSC$20200_url_,this.messageUrlParams_||void 0)};
PJ.prototype.close=function(){this.JSC$20200_channel_.disconnect()};
PJ.prototype.send=function(G){var c=this.JSC$20200_channel_;if(typeof G==="string"){var I={};I.__data__=G;G=I}else this.sendRawJson_&&(I={},I.__data__=(0,_.HL)(G),G=I);c.JSC$20191_outgoingMaps_.push(new Byd(c.JSC$20191_nextMapId_++,G));c.state_==3&&Y7g(c)};
PJ.prototype.disposeInternal=function(){this.JSC$20200_channel_.handler_=null;delete this.channelHandler_;this.JSC$20200_channel_.disconnect();delete this.JSC$20200_channel_;PJ.superClass_.disposeInternal.call(this)};
var eTj=function(G){GQr.call(this);G.__headers__&&(this.headers=G.__headers__,this.statusCode=G.__status__,delete G.__headers__,delete G.__status__);var c=G.__sm__;c?this.data=(this.metadataKey=_.rx.getAnyKey(c))?_.rx.get(c,this.metadataKey):c:this.data=G};
_.eg(eTj,GQr);var NQd=function(G){cG0.call(this);this.status=1;this.errorCode=G};
_.eg(NQd,cG0);var KX=function(G){this.JSC$20207_channel_=G};
_.eg(KX,TQ0);KX.prototype.JSC$20197_channelOpened=function(){this.JSC$20207_channel_.dispatchEvent("w")};
KX.prototype.JSC$20197_channelHandleArray=function(G){this.JSC$20207_channel_.dispatchEvent(new eTj(G))};
KX.prototype.JSC$20197_channelError=function(G){this.JSC$20207_channel_.dispatchEvent(new NQd(G))};
KX.prototype.JSC$20197_channelClosed=function(){this.JSC$20207_channel_.dispatchEvent("x")};
var lgr=function(G,c){this.transportChannel_=G;this.JSC$20210_channel_=c},qXW=function(G){return agF(G.JSC$20210_channel_).map(function(c){var I=G.transportChannel_;
c=c.map;"__data__"in c?(c=c.__data__,I=I.sendRawJson_?(0,_.X1k)(c):c):I=c;return I})};
lgr.prototype.commit=function(G){this.JSC$20210_channel_.forwardChannelFlushedCallback_=G};var Qb=function(G){wTH.dispatchEvent(new FO1(wTH,G))},wTH=new _.r4,FO1=function(G,c){_.zR.call(this,"statevent",G);
this.stat=c};
_.u(FO1,_.zR);var m5=function(G,c,I,R,Z){this.JSC$20215_channel_=G;this.JSC$20215_channelDebug_=c;this.sid_=I;this.JSC$20215_rid_=R;this.JSC$20215_retryId_=Z||1;this.timeout_=45E3;this.JSC$20215_eventHandler_=new _.D0(this);this.pollingTimer_=new _.vb;this.pollingTimer_.setInterval(250)};
_.P=m5.prototype;_.P.JSC$20217_extraHeaders_=null;_.P.JSC$20217_successful_=!1;_.P.JSC$20217_watchDogTimerId_=null;_.P.JSC$20217_watchDogTimeoutTime_=null;_.P.JSC$20217_requestStartTime_=null;_.P.JSC$20217_type_=null;_.P.JSC$20217_baseUri_=null;_.P.JSC$20217_requestUri_=null;_.P.JSC$20217_postData_=null;_.P.JSC$20217_xmlHttp_=null;_.P.JSC$20217_xmlHttpChunkStart_=0;_.P.trident_=null;_.P.JSC$20217_verb_=null;_.P.JSC$20217_lastError_=null;_.P.JSC$20217_lastStatusCode_=-1;_.P.sendClose_=!0;
_.P.JSC$20217_cancelled_=!1;_.P.JSC$20217_readyStateChangeThrottleMs_=0;_.P.JSC$20217_readyStateChangeThrottle_=null;var nw7=function(G,c){switch(G){case 0:return"Non-200 return code ("+c+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},vw0={},D_d={};
m5.prototype.setTimeout=function(G){this.timeout_=G};
var U_H=function(G,c,I){G.JSC$20217_type_=1;G.JSC$20217_baseUri_=_.Am(c.clone());G.JSC$20217_postData_=I;G.decodeChunks_=!0;ow$(G,null)},u$7=function(G,c,I,R,Z){G.JSC$20217_type_=1;
G.JSC$20217_baseUri_=_.Am(c.clone());G.JSC$20217_postData_=null;G.decodeChunks_=I;Z&&(G.sendClose_=!1);ow$(G,R)},ow$=function(G,c){G.JSC$20217_requestStartTime_=Date.now();
bIG(G);G.JSC$20217_requestUri_=G.JSC$20217_baseUri_.clone();tjG(G.JSC$20217_requestUri_,"t",G.JSC$20215_retryId_);G.JSC$20217_xmlHttpChunkStart_=0;G.JSC$20217_xmlHttp_=G.JSC$20215_channel_.JSC$20224_createXhrIo(G.JSC$20215_channel_.JSC$20224_shouldUseSecondaryDomains()?c:null);G.JSC$20217_readyStateChangeThrottleMs_>0&&(G.JSC$20217_readyStateChangeThrottle_=new _.qx((0,_.WD)(G.JSC$20217_xmlHttpHandler_,G,G.JSC$20217_xmlHttp_),G.JSC$20217_readyStateChangeThrottleMs_));G.JSC$20215_eventHandler_.listen(G.JSC$20217_xmlHttp_,
"readystatechange",G.JSC$20217_readyStateChangeHandler_);c=G.JSC$20217_extraHeaders_?_.rx.clone(G.JSC$20217_extraHeaders_):{};G.JSC$20217_postData_?(G.JSC$20217_verb_="POST",c["Content-Type"]="application/x-www-form-urlencoded",G.JSC$20217_xmlHttp_.send(G.JSC$20217_requestUri_,G.JSC$20217_verb_,G.JSC$20217_postData_,c)):(G.JSC$20217_verb_="GET",G.sendClose_&&!_.vC&&(c.Connection="close"),G.JSC$20217_xmlHttp_.send(G.JSC$20217_requestUri_,G.JSC$20217_verb_,null,c));G.JSC$20215_channel_.notifyServerReachabilityEvent(1);
c=G.JSC$20215_channelDebug_;var I=G.JSC$20217_postData_;if(I){var R="";I=I.split("&");for(var Z=0;Z<I.length;Z++){var K=I[Z].split("=");if(K.length>1){var m=K[0];K=K[1];var a=m.split("_");R=a.length>=2&&a[1]=="type"?R+(m+"="+K+"&"):R+(m+"=redacted&")}}}else R=null;c.info("XMLHTTP REQ ("+G.JSC$20215_rid_+") [attempt "+G.JSC$20215_retryId_+"]: "+G.JSC$20217_verb_+"\n"+G.JSC$20217_requestUri_+"\n"+R)};
m5.prototype.JSC$20217_readyStateChangeHandler_=function(G){G=G.target;var c=this.JSC$20217_readyStateChangeThrottle_;c&&_.yM(G)==3?(this.JSC$20215_channelDebug_.debug("Throttling readystatechange."),c.fire()):this.JSC$20217_xmlHttpHandler_(G)};
m5.prototype.JSC$20217_xmlHttpHandler_=function(G){try{if(G==this.JSC$20217_xmlHttp_)a:{var c=_.yM(this.JSC$20217_xmlHttp_),I=this.JSC$20217_xmlHttp_.JSC$9965_lastErrorCode_,R=this.JSC$20217_xmlHttp_.getStatus();if(_.vC&&!_.Dk("420+")){if(c<4)break a}else if(c<3||c==3&&!this.JSC$20217_xmlHttp_.getResponseText())break a;this.JSC$20217_cancelled_||c!=4||I==7||(I==8||R<=0?this.JSC$20215_channel_.notifyServerReachabilityEvent(3):this.JSC$20215_channel_.notifyServerReachabilityEvent(2));k5u(this);var Z=
this.JSC$20217_xmlHttp_.getStatus();this.JSC$20217_lastStatusCode_=Z;var K=this.JSC$20217_xmlHttp_.getResponseText();K||this.JSC$20215_channelDebug_.debug("No response text for uri "+this.JSC$20217_requestUri_+" status "+Z);this.JSC$20217_successful_=Z==200;this.JSC$20215_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20215_rid_+") [ attempt "+this.JSC$20215_retryId_+"]: "+this.JSC$20217_verb_+"\n"+this.JSC$20217_requestUri_+"\n"+c+" "+Z);if(this.JSC$20217_successful_){c==4&&seW(this);if(this.decodeChunks_){for(G=
!0;!this.JSC$20217_cancelled_&&this.JSC$20217_xmlHttpChunkStart_<K.length;){var m=LOG(this,K);if(m==D_d){c==4&&(this.JSC$20217_lastError_=4,Qb(15),G=!1);AuW(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,null,"[Incomplete Response]");break}else if(m==vw0){this.JSC$20217_lastError_=4;Qb(16);AuW(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,K,"[Invalid Chunk]");G=!1;break}else AuW(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,m,null),$_0(this,m)}c==4&&K.length==0&&(this.JSC$20217_lastError_=
1,Qb(17),G=!1);this.JSC$20217_successful_=this.JSC$20217_successful_&&G;G||(AuW(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,K,"[Invalid Chunked Response]"),seW(this),SXd(this))}else AuW(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,K,null),$_0(this,K);this.JSC$20217_successful_&&!this.JSC$20217_cancelled_&&(c==4?this.JSC$20215_channel_.JSC$20224_onRequestComplete(this):(this.JSC$20217_successful_=!1,bIG(this)))}else Z==400&&K.indexOf("Unknown SID")>0?(this.JSC$20217_lastError_=3,Qb(13),this.JSC$20215_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20215_rid_+")")):(this.JSC$20217_lastError_=0,Qb(14),this.JSC$20215_channelDebug_.warning("XMLHTTP Bad status "+Z+" ("+this.JSC$20215_rid_+")")),seW(this),SXd(this)}else this.JSC$20215_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(a){this.JSC$20215_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var LOG=function(G,c){var I=G.JSC$20217_xmlHttpChunkStart_,R=c.indexOf("\n",I);if(R==-1)return D_d;I=Number(c.substring(I,R));if(isNaN(I))return vw0;R+=1;if(R+I>c.length)return D_d;c=c.slice(R,R+I);G.JSC$20217_xmlHttpChunkStart_=R+I;return c};
m5.prototype.cancel=function(){this.JSC$20217_cancelled_=!0;seW(this)};
var bIG=function(G){G.JSC$20217_watchDogTimeoutTime_=Date.now()+G.timeout_;pTj(G,G.timeout_)},pTj=function(G,c){if(G.JSC$20217_watchDogTimerId_!=null)throw Error("Uk");
G.JSC$20217_watchDogTimerId_=$Q((0,_.WD)(G.JSC$20217_onWatchDogTimeout_,G),c)},k5u=function(G){G.JSC$20217_watchDogTimerId_&&(_.Rq.clearTimeout(G.JSC$20217_watchDogTimerId_),G.JSC$20217_watchDogTimerId_=null)};
m5.prototype.JSC$20217_onWatchDogTimeout_=function(){this.JSC$20217_watchDogTimerId_=null;var G=Date.now();G-this.JSC$20217_watchDogTimeoutTime_>=0?(this.JSC$20215_channelDebug_.info("TIMEOUT: "+this.JSC$20217_requestUri_),this.JSC$20217_type_!=2&&this.JSC$20215_channel_.notifyServerReachabilityEvent(3),seW(this),this.JSC$20217_lastError_=2,Qb(18),SXd(this)):(this.JSC$20215_channelDebug_.warning("WatchDog timer called too early"),pTj(this,this.JSC$20217_watchDogTimeoutTime_-G))};
var SXd=function(G){G.JSC$20215_channel_.JSC$20224_isClosed()||G.JSC$20217_cancelled_||G.JSC$20215_channel_.JSC$20224_onRequestComplete(G)},seW=function(G){k5u(G);
_.TB(G.JSC$20217_readyStateChangeThrottle_);G.JSC$20217_readyStateChangeThrottle_=null;G.pollingTimer_.stop();G.JSC$20215_eventHandler_.removeAll();if(G.JSC$20217_xmlHttp_){var c=G.JSC$20217_xmlHttp_;G.JSC$20217_xmlHttp_=null;c.abort();c.dispose()}G.trident_&&(G.trident_=null)};
m5.prototype.getLastError=function(){return this.JSC$20217_lastError_};
var $_0=function(G,c){try{G.JSC$20215_channel_.JSC$20224_onRequestData(G,c),G.JSC$20215_channel_.notifyServerReachabilityEvent(4)}catch(I){}};var AuW=function(G,c,I,R){var Z=G.info;a:if(I&&I!="y2f%"){try{var K=JSON.parse(I);if(K)for(var m=0;m<K.length;m++)if(Array.isArray(K[m])){var a=K[m];if(!(a.length<2)){var O=a[1];if(Array.isArray(O)&&!(O.length<1)){var N=O[0];if(N!="noop"&&N!="stop")for(var q=1;q<O.length;q++)O[q]=""}}}var w=(0,_.HL)(K);break a}catch(F){G.debug("Exception parsing expected JS array - probably was not JS");w=I;break a}w=void 0}else w=I;Z.call(G,"XMLHTTP TEXT ("+c+"): "+w+(R?" "+R:""))};
S$.prototype.debug=function(G){this.info(G)};
S$.prototype.info=function(){};
S$.prototype.warning=function(){};var MHu=function(G,c){this.JSC$20222_channel_=G;this.JSC$20222_channelDebug_=c;this.JSC$20222_parser_=new Yr7};
_.P=MHu.prototype;_.P.JSC$20224_extraHeaders_=null;_.P.JSC$20224_request_=null;_.P.receivedIntermediateResult_=!1;_.P.JSC$20224_path_=null;_.P.state_=null;_.P.JSC$20224_lastStatusCode_=-1;_.P.JSC$20224_hostPrefix_=null;_.P.blockedPrefix_=null;
_.P.connect=function(G){this.JSC$20224_path_=G;G=VHH(this.JSC$20222_channel_,this.JSC$20224_path_);Qb(3);Date.now();var c=this.JSC$20222_channel_.firstTestResults_;c!=null?(this.JSC$20224_hostPrefix_=c[0],(this.blockedPrefix_=c[1])?(this.state_=1,zT$(this)):(this.state_=2,Ewr(this))):(tjG(G,"MODE","init"),this.JSC$20224_request_=new m5(this,this.JSC$20222_channelDebug_),this.JSC$20224_request_.JSC$20217_extraHeaders_=this.JSC$20224_extraHeaders_,u$7(this.JSC$20224_request_,G,!1,null,!0),this.state_=
0)};
var zT$=function(G){var c=JuH(G.JSC$20222_channel_,G.blockedPrefix_,"/mail/images/cleardot.gif");_.Am(c);Ior(c.toString(),5E3,(0,_.WD)(G.checkBlockedCallback_,G),3,2E3);G.notifyServerReachabilityEvent(1)};
MHu.prototype.checkBlockedCallback_=function(G){if(G)this.state_=2,Ewr(this);else{Qb(4);var c=this.JSC$20222_channel_;c.JSC$20225_channelDebug_.debug("Test Connection Blocked");c.JSC$20229_lastStatusCode_=c.connectionTest_.JSC$20224_lastStatusCode_;aL(c,9)}G&&this.notifyServerReachabilityEvent(2)};
var Ewr=function(G){G.JSC$20222_channelDebug_.debug("TestConnection: starting stage 2");var c=G.JSC$20222_channel_.secondTestResults_;c!=null?(G.JSC$20222_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+c?"Buffered":"Unbuffered"),Qb(5),c?(Qb(11),WO0(G.JSC$20222_channel_,G,!1)):(Qb(12),WO0(G.JSC$20222_channel_,G,!0))):(G.JSC$20224_request_=new m5(G,G.JSC$20222_channelDebug_),G.JSC$20224_request_.JSC$20217_extraHeaders_=G.JSC$20224_extraHeaders_,c=iI1(G.JSC$20222_channel_,
G.JSC$20224_hostPrefix_,G.JSC$20224_path_),Qb(5),tjG(c,"TYPE","xmlhttp"),u$7(G.JSC$20224_request_,c,!1,G.JSC$20224_hostPrefix_,!1))};
_.P=MHu.prototype;_.P.JSC$20224_createXhrIo=function(G){return this.JSC$20222_channel_.JSC$20224_createXhrIo(G)};
_.P.abort=function(){this.JSC$20224_request_&&(this.JSC$20224_request_.cancel(),this.JSC$20224_request_=null);this.JSC$20224_lastStatusCode_=-1};
_.P.JSC$20224_isClosed=function(){return!1};
_.P.JSC$20224_onRequestData=function(G,c){this.JSC$20224_lastStatusCode_=G.JSC$20217_lastStatusCode_;if(this.state_==0)if(this.JSC$20222_channelDebug_.debug("TestConnection: Got data for stage 1"),c){try{var I=this.JSC$20222_parser_.parse(c)}catch(R){fgu(this.JSC$20222_channel_,this);return}this.JSC$20224_hostPrefix_=I[0];this.blockedPrefix_=I[1]}else this.JSC$20222_channelDebug_.debug("TestConnection: Null responseText"),fgu(this.JSC$20222_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Qb(7),Date.now()):c=="11111"?(Qb(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20224_lastStatusCode_=200,this.JSC$20224_request_.cancel(),this.JSC$20222_channelDebug_.debug("Test connection succeeded; using streaming connection"),Qb(12),WO0(this.JSC$20222_channel_,this,!0)):(Qb(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.P.JSC$20224_onRequestComplete=function(){this.JSC$20224_lastStatusCode_=this.JSC$20224_request_.JSC$20217_lastStatusCode_;this.JSC$20224_request_.JSC$20217_successful_?this.state_==0?(this.JSC$20222_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,zT$(this)):(this.state_=2,Ewr(this))):this.state_==2&&(this.JSC$20222_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20222_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Qb(12),WO0(this.JSC$20222_channel_,this,!0)):(this.JSC$20222_channelDebug_.debug("Test connection failed; not using streaming"),Qb(11),WO0(this.JSC$20222_channel_,this,!1))):(this.JSC$20222_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Qb(9):this.state_==2&&Qb(10),fgu(this.JSC$20222_channel_,this,this.JSC$20224_request_.getLastError()))};
_.P.JSC$20224_shouldUseSecondaryDomains=function(){return this.JSC$20222_channel_.JSC$20224_shouldUseSecondaryDomains()};
_.P.isActive=function(){return this.JSC$20222_channel_.isActive()};
_.P.notifyServerReachabilityEvent=function(G){this.JSC$20222_channel_.notifyServerReachabilityEvent(G)};var Tt=function(G,c,I){this.state_=1;this.JSC$20225_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20225_channelDebug_=new S$;this.JSC$20225_parser_=new Yr7;this.firstTestResults_=G||null;this.secondTestResults_=c!=null?c:null;this.asyncTest_=I||!1},BQd=function(G,c){this.JSC$20227_mapId=G;
this.map=c;this.context=null};
_.P=Tt.prototype;_.P.JSC$20229_extraHeaders_=null;_.P.JSC$20229_extraParams_=null;_.P.forwardChannelRequest_=null;_.P.JSC$20229_backChannelRequest_=null;_.P.JSC$20229_path_=null;_.P.JSC$20229_forwardChannelUri_=null;_.P.JSC$20229_backChannelUri_=null;_.P.JSC$20229_hostPrefix_=null;_.P.JSC$20229_nextRid_=0;_.P.JSC$20229_nextMapId_=0;_.P.handler_=null;_.P.JSC$20229_forwardChannelTimerId_=null;_.P.JSC$20229_backChannelTimerId_=null;_.P.JSC$20229_deadBackChannelTimerId_=null;_.P.connectionTest_=null;
_.P.useChunked_=null;_.P.JSC$20229_lastArrayId_=-1;_.P.JSC$20229_lastPostResponseArrayId_=-1;_.P.JSC$20229_lastStatusCode_=-1;_.P.JSC$20229_forwardChannelRetryCount_=0;_.P.JSC$20229_backChannelRetryCount_=0;_.P.JSC$20229_channelVersion_=8;var rug={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},jeH=function(G,c,I,R){_.zR.call(this,"timingevent",G);this.size=c;this.rtt=I;this.retries=R};
_.eg(jeH,_.zR);var x_u=function(G){_.zR.call(this,"serverreachability",G)};
_.eg(x_u,_.zR);Tt.prototype.connect=function(G,c,I,R,Z){this.JSC$20225_channelDebug_.debug("connect()");Qb(0);this.JSC$20229_path_=c;this.JSC$20229_extraParams_=I||{};R&&Z!==void 0&&(this.JSC$20229_extraParams_.OSID=R,this.JSC$20229_extraParams_.OAID=Z);this.asyncTest_?($Q((0,_.WD)(this.connectTest_,this,G),100),tHj(this)):this.connectTest_(G)};
Tt.prototype.disconnect=function(){this.JSC$20225_channelDebug_.debug("disconnect()");hTW(this);if(this.state_==3){var G=this.JSC$20229_nextRid_++,c=this.JSC$20229_forwardChannelUri_.clone();_.Zm(c,"SID",this.sid_);_.Zm(c,"RID",G);_.Zm(c,"TYPE","terminate");d_0(this,c);G=new m5(this,this.JSC$20225_channelDebug_,this.sid_,G);G.JSC$20217_type_=2;G.JSC$20217_baseUri_=_.Am(c.clone());(new Image).src=G.JSC$20217_baseUri_.toString();G.JSC$20217_requestStartTime_=Date.now();bIG(G)}Csu(this)};
Tt.prototype.connectTest_=function(G){this.JSC$20225_channelDebug_.debug("connectTest_()");this.connectionTest_=new MHu(this,this.JSC$20225_channelDebug_);this.connectionTest_.JSC$20224_extraHeaders_=this.JSC$20229_extraHeaders_;this.connectionTest_.JSC$20222_parser_=this.JSC$20225_parser_;this.connectionTest_.connect(G)};
var tHj=function(G){G.JSC$20225_channelDebug_.debug("connectChannel_()");G.JSC$20229_ensureInState_(1,0);G.JSC$20229_forwardChannelUri_=VHH(G,G.JSC$20229_path_);HIW(G)},hTW=function(G){G.connectionTest_&&(G.connectionTest_.abort(),G.connectionTest_=null);
G.JSC$20229_backChannelRequest_&&(G.JSC$20229_backChannelRequest_.cancel(),G.JSC$20229_backChannelRequest_=null);G.JSC$20229_backChannelTimerId_&&(_.Rq.clearTimeout(G.JSC$20229_backChannelTimerId_),G.JSC$20229_backChannelTimerId_=null);XTF(G);G.forwardChannelRequest_&&(G.forwardChannelRequest_.cancel(),G.forwardChannelRequest_=null);G.JSC$20229_forwardChannelTimerId_&&(_.Rq.clearTimeout(G.JSC$20229_forwardChannelTimerId_),G.JSC$20229_forwardChannelTimerId_=null)},yud=function(G,c){if(G.state_==0)throw Error("Xk");
G.JSC$20225_outgoingMaps_.length==1E3&&G.JSC$20225_parser_.stringify(c);G.JSC$20225_outgoingMaps_.push(new BQd(G.JSC$20229_nextMapId_++,c));G.state_!=2&&G.state_!=3||HIW(G)};
Tt.prototype.JSC$20224_isClosed=function(){return this.state_==0};
Tt.prototype.getState=function(){return this.state_};
var HIW=function(G){G.forwardChannelRequest_||G.JSC$20229_forwardChannelTimerId_||(G.JSC$20229_forwardChannelTimerId_=$Q((0,_.WD)(G.JSC$20229_onStartForwardChannelTimer_,G),0),G.JSC$20229_forwardChannelRetryCount_=0)};
Tt.prototype.JSC$20229_onStartForwardChannelTimer_=function(G){this.JSC$20229_forwardChannelTimerId_=null;gwG(this,G)};
var gwG=function(G,c){G.JSC$20225_channelDebug_.debug("startForwardChannel_");if(G.state_==1){if(!c){G.JSC$20225_channelDebug_.debug("open_()");G.JSC$20229_nextRid_=Math.floor(Math.random()*1E5);c=G.JSC$20229_nextRid_++;var I=new m5(G,G.JSC$20225_channelDebug_,"",c);I.JSC$20217_extraHeaders_=G.JSC$20229_extraHeaders_;var R=YX0(G),Z=G.JSC$20229_forwardChannelUri_.clone();_.Zm(Z,"RID",c);_.Zm(Z,"CVER","1");d_0(G,Z);U_H(I,Z,R);G.forwardChannelRequest_=I;G.state_=2}}else G.state_==3&&(c?Gl1(G,c):G.JSC$20225_outgoingMaps_.length==
0?G.JSC$20225_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):G.forwardChannelRequest_||(Gl1(G),G.JSC$20225_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Gl1=function(G,c){if(c)if(G.JSC$20229_channelVersion_>6){G.JSC$20225_outgoingMaps_=G.pendingMaps_.concat(G.JSC$20225_outgoingMaps_);
G.pendingMaps_.length=0;var I=G.JSC$20229_nextRid_-1;c=YX0(G)}else I=c.JSC$20215_rid_,c=c.JSC$20217_postData_;else I=G.JSC$20229_nextRid_++,c=YX0(G);var R=G.JSC$20229_forwardChannelUri_.clone();_.Zm(R,"SID",G.sid_);_.Zm(R,"RID",I);_.Zm(R,"AID",G.JSC$20229_lastArrayId_);d_0(G,R);I=new m5(G,G.JSC$20225_channelDebug_,G.sid_,I,G.JSC$20229_forwardChannelRetryCount_+1);I.JSC$20217_extraHeaders_=G.JSC$20229_extraHeaders_;I.setTimeout(1E4+Math.round(1E4*Math.random()));G.forwardChannelRequest_=I;U_H(I,R,
c)},d_0=function(G,c){G.handler_&&(G=G.handler_.JSC$20236_getAdditionalParams())&&_.rx.forEach(G,function(I,R){_.Zm(c,R,I)})},YX0=function(G){var c=Math.min(G.JSC$20225_outgoingMaps_.length,1E3),I=["count="+c];
if(G.JSC$20229_channelVersion_>6&&c>0){var R=G.JSC$20225_outgoingMaps_[0].JSC$20227_mapId;I.push("ofs="+R)}else R=0;for(var Z={},K=0;K<c;Z={mapId$jscomp$3:void 0},K++){Z.mapId$jscomp$3=G.JSC$20225_outgoingMaps_[K].JSC$20227_mapId;var m=G.JSC$20225_outgoingMaps_[K].map;Z.mapId$jscomp$3=G.JSC$20229_channelVersion_<=6?K:Z.mapId$jscomp$3-R;try{_.rx.forEach(m,function(a){return function(O,N){I.push("req"+a.mapId$jscomp$3+"_"+N+"="+encodeURIComponent(O))}}(Z))}catch(a){I.push("req"+Z.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}G.pendingMaps_=G.pendingMaps_.concat(G.JSC$20225_outgoingMaps_.splice(0,c));
return I.join("&")},cJu=function(G){G.JSC$20229_backChannelRequest_||G.JSC$20229_backChannelTimerId_||(G.JSC$20229_backChannelAttemptId_=1,G.JSC$20229_backChannelTimerId_=$Q((0,_.WD)(G.JSC$20229_onStartBackChannelTimer_,G),0),G.JSC$20229_backChannelRetryCount_=0)},Rzd=function(G){if(G.JSC$20229_backChannelRequest_||G.JSC$20229_backChannelTimerId_||G.JSC$20229_backChannelRetryCount_>=3)return!1;
G.JSC$20225_channelDebug_.debug("Going to retry GET");G.JSC$20229_backChannelAttemptId_++;G.JSC$20229_backChannelTimerId_=$Q((0,_.WD)(G.JSC$20229_onStartBackChannelTimer_,G),I5F(G,G.JSC$20229_backChannelRetryCount_));G.JSC$20229_backChannelRetryCount_++;return!0};
Tt.prototype.JSC$20229_onStartBackChannelTimer_=function(){this.JSC$20229_backChannelTimerId_=null;this.JSC$20225_channelDebug_.debug("Creating new HttpRequest");this.JSC$20229_backChannelRequest_=new m5(this,this.JSC$20225_channelDebug_,this.sid_,"rpc",this.JSC$20229_backChannelAttemptId_);this.JSC$20229_backChannelRequest_.JSC$20217_extraHeaders_=this.JSC$20229_extraHeaders_;this.JSC$20229_backChannelRequest_.JSC$20217_readyStateChangeThrottleMs_=0;var G=this.JSC$20229_backChannelUri_.clone();_.Zm(G,
"RID","rpc");_.Zm(G,"SID",this.sid_);_.Zm(G,"CI",this.useChunked_?"0":"1");_.Zm(G,"AID",this.JSC$20229_lastArrayId_);d_0(this,G);_.Zm(G,"TYPE","xmlhttp");u$7(this.JSC$20229_backChannelRequest_,G,!0,this.JSC$20229_hostPrefix_,!1);this.JSC$20225_channelDebug_.debug("New Request created")};
var WO0=function(G,c,I){G.JSC$20225_channelDebug_.debug("Test Connection Finished");G.useChunked_=G.secondTestResults_==null?I:!G.secondTestResults_;G.JSC$20229_lastStatusCode_=c.JSC$20224_lastStatusCode_;G.asyncTest_||tHj(G)},fgu=function(G,c){G.JSC$20225_channelDebug_.debug("Test Connection Failed");
G.JSC$20229_lastStatusCode_=c.JSC$20224_lastStatusCode_;aL(G,2)};
Tt.prototype.JSC$20224_onRequestData=function(G,c){if(this.state_!=0&&(this.JSC$20229_backChannelRequest_==G||this.forwardChannelRequest_==G))if(this.JSC$20229_lastStatusCode_=G.JSC$20217_lastStatusCode_,this.forwardChannelRequest_==G&&this.state_==3)if(this.JSC$20229_channelVersion_>7){try{var I=this.JSC$20225_parser_.parse(c)}catch(R){I=null}if(Array.isArray(I)&&I.length==3)if(c=I,c[0]==0)a:if(this.JSC$20225_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20229_backChannelTimerId_)this.JSC$20225_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20229_backChannelRequest_)if(this.JSC$20229_backChannelRequest_.JSC$20217_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20217_requestStartTime_)XTF(this),this.JSC$20229_backChannelRequest_.cancel(),this.JSC$20229_backChannelRequest_=null;else break a;else this.JSC$20225_channelDebug_.warning("We do not have a BackChannel established");Rzd(this);Qb(19)}else this.JSC$20229_lastPostResponseArrayId_=c[1],G=this.JSC$20229_lastPostResponseArrayId_-this.JSC$20229_lastArrayId_,0<
G&&(c=c[2],this.JSC$20225_channelDebug_.debug(c+" bytes (in "+G+" arrays) are outstanding on the BackChannel"),c<37500&&this.useChunked_&&this.JSC$20229_backChannelRetryCount_==0&&!this.JSC$20229_deadBackChannelTimerId_&&(this.JSC$20229_deadBackChannelTimerId_=$Q((0,_.WD)(this.JSC$20229_onBackChannelDead_,this),6E3)));else this.JSC$20225_channelDebug_.debug("Bad POST response data returned"),aL(this,11)}else c!="y2f%"&&(this.JSC$20225_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
aL(this,11));else this.JSC$20229_backChannelRequest_==G&&XTF(this),_.mg(c)||(G=this.JSC$20225_parser_.parse(c),this.onInput_(G))};
Tt.prototype.JSC$20229_onBackChannelDead_=function(){this.JSC$20229_deadBackChannelTimerId_!=null&&(this.JSC$20229_deadBackChannelTimerId_=null,this.JSC$20229_backChannelRequest_.cancel(),this.JSC$20229_backChannelRequest_=null,Rzd(this),Qb(20))};
var XTF=function(G){G.JSC$20229_deadBackChannelTimerId_!=null&&(_.Rq.clearTimeout(G.JSC$20229_deadBackChannelTimerId_),G.JSC$20229_deadBackChannelTimerId_=null)};
Tt.prototype.JSC$20224_onRequestComplete=function(G){this.JSC$20225_channelDebug_.debug("Request complete");if(this.JSC$20229_backChannelRequest_==G){XTF(this);this.JSC$20229_backChannelRequest_=null;var c=2}else if(this.forwardChannelRequest_==G)this.forwardChannelRequest_=null,c=1;else return;this.JSC$20229_lastStatusCode_=G.JSC$20217_lastStatusCode_;if(this.state_!=0)if(G.JSC$20217_successful_)if(c==1){c=G.JSC$20217_postData_?G.JSC$20217_postData_.length:0;G=Date.now()-G.JSC$20217_requestStartTime_;
var I=wTH;I.dispatchEvent(new jeH(I,c,G,this.JSC$20229_forwardChannelRetryCount_));HIW(this);this.handler_&&this.handler_.JSC$20236_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else cJu(this);else{I=G.getLastError();if(I==3||I==7||I==0&&this.JSC$20229_lastStatusCode_>0)this.JSC$20225_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20225_channelDebug_.debug("Maybe retrying, last error: "+nw7(I,this.JSC$20229_lastStatusCode_));var R;if(R=c==1)this.forwardChannelRequest_||
this.JSC$20229_forwardChannelTimerId_||this.state_==1||this.JSC$20229_forwardChannelRetryCount_>=2?R=!1:(this.JSC$20225_channelDebug_.debug("Going to retry POST"),this.JSC$20229_forwardChannelTimerId_=$Q((0,_.WD)(this.JSC$20229_onStartForwardChannelTimer_,this,G),I5F(this,this.JSC$20229_forwardChannelRetryCount_)),this.JSC$20229_forwardChannelRetryCount_++,R=!0);if(R||c==2&&Rzd(this))return;this.JSC$20225_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20225_channelDebug_.debug("Error: HTTP request failed");
switch(I){case 1:aL(this,5);break;case 4:aL(this,10);break;case 3:aL(this,6);break;case 7:aL(this,12);break;default:aL(this,2)}}};
var I5F=function(G,c){var I=5E3+Math.floor(Math.random()*1E4);G.isActive()||(G.JSC$20225_channelDebug_.debug("Inactive channel"),I*=2);return I*c};
Tt.prototype.onInput_=function(G){for(var c=0;c<G.length;c++){var I=G[c];this.JSC$20229_lastArrayId_=I[0];I=I[1];this.state_==2?I[0]=="c"?(this.sid_=I[1],this.JSC$20229_hostPrefix_=I[2],I=I[3],I!=null?this.JSC$20229_channelVersion_=I:this.JSC$20229_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20236_channelOpened(),this.JSC$20229_backChannelUri_=iI1(this,this.JSC$20229_hostPrefix_,this.JSC$20229_path_),cJu(this)):I[0]=="stop"&&aL(this,7):this.state_==3&&(I[0]=="stop"?aL(this,7):
I[0]!="noop"&&this.handler_&&this.handler_.JSC$20236_channelHandleArray(I),this.JSC$20229_backChannelRetryCount_=0)}};
Tt.prototype.JSC$20229_ensureInState_=function(G){if(!_.fA(arguments,this.state_))throw Error("Yk`"+this.state_);};
var aL=function(G,c){G.JSC$20225_channelDebug_.info("Error code "+c);if(c==2||c==9){var I=null;G.handler_&&(I=null);var R=(0,_.WD)(G.testGoogleComCallback_,G);I||(I=new _.Bq("//www.google.com/images/cleardot.gif"),_.Am(I));cAG(I.toString(),1E4,R)}else Qb(2);G.onError_(c)};
Tt.prototype.testGoogleComCallback_=function(G){G?(this.JSC$20225_channelDebug_.info("Successfully pinged google.com"),Qb(2)):(this.JSC$20225_channelDebug_.info("Failed to ping google.com"),Qb(1),this.onError_(8))};
Tt.prototype.onError_=function(G){this.JSC$20225_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$20236_channelError(G);Csu(this);hTW(this)};
var Csu=function(G){G.state_=0;G.JSC$20229_lastStatusCode_=-1;if(G.handler_)if(G.pendingMaps_.length==0&&G.JSC$20225_outgoingMaps_.length==0)G.handler_.JSC$20236_channelClosed();else{G.JSC$20225_channelDebug_.debug("Number of undelivered maps, pending: "+G.pendingMaps_.length+", outgoing: "+G.JSC$20225_outgoingMaps_.length);var c=_.jr(G.pendingMaps_),I=_.jr(G.JSC$20225_outgoingMaps_);G.pendingMaps_.length=0;G.JSC$20225_outgoingMaps_.length=0;G.handler_.JSC$20236_channelClosed(c,I)}},VHH=function(G,
c){c=JuH(G,null,c);
G.JSC$20225_channelDebug_.debug("GetForwardChannelUri: "+c);return c},iI1=function(G,c,I){c=JuH(G,G.JSC$20224_shouldUseSecondaryDomains()?c:null,I);
G.JSC$20225_channelDebug_.debug("GetBackChannelUri: "+c);return c},JuH=function(G,c,I){var R=_.IW(I);
if(R.JSC$10201_domain_!="")c&&_.Dh(R,c+"."+R.JSC$10201_domain_),_.oN(R,R.JSC$10201_port_);else{var Z=window.location;R=rk$(Z.protocol,c?c+"."+Z.hostname:Z.hostname,+Z.port,I)}G.JSC$20229_extraParams_&&_.rx.forEach(G.JSC$20229_extraParams_,function(K,m){_.Zm(R,m,K)});
_.Zm(R,"VER",G.JSC$20229_channelVersion_);d_0(G,R);return R};
Tt.prototype.JSC$20224_createXhrIo=function(G){if(G)throw Error("Vk");G=new _.XC;G.JSC$9965_withCredentials_=!1;return G};
Tt.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Tt.prototype.notifyServerReachabilityEvent=function(G){var c=wTH;c.dispatchEvent(new x_u(c,G))};
Tt.prototype.JSC$20224_shouldUseSecondaryDomains=function(){return!1};
new C37;var ZiH=function(){};
_.P=ZiH.prototype;_.P.JSC$20236_channelOpened=function(){};
_.P.JSC$20236_channelHandleArray=function(){};
_.P.JSC$20236_channelSuccess=function(){};
_.P.JSC$20236_channelError=function(){};
_.P.JSC$20236_channelClosed=function(){};
_.P.JSC$20236_getAdditionalParams=function(){return{}};
_.P.isActive=function(){return!0};var Kjg=function(G){G.front_.length===0&&(G.front_=G.back_,G.front_.reverse(),G.back_=[])};
_.P=ZM$.prototype;_.P.enqueue=function(G){this.back_.push(G)};
_.P.peek=function(){Kjg(this);return _.pA(this.front_)};
_.P.getCount=function(){return this.front_.length+this.back_.length};
_.P.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.P.clear=function(){this.front_=[];this.back_=[]};
_.P.contains=function(G){return _.fA(this.front_,G)||_.fA(this.back_,G)};
_.P.remove=function(G){var c=this.front_;var I=Array.prototype.lastIndexOf.call(c,G,c.length-1);I>=0?(_.prr(c,I),c=!0):c=!1;return c||_.rb(this.back_,G)};
_.P.getValues=function(){for(var G=[],c=this.front_.length-1;c>=0;--c)G.push(this.front_[c]);c=this.back_.length;for(var I=0;I<c;++I)G.push(this.back_[I]);return G};var O5=function(G){this.JSC$20240_map_=new _.EY;this.size=0;G&&this.addAll(G)},PXd=function(G){var c=typeof G;
return c=="object"&&G||c=="function"?"o"+_.XB(G):c.charAt(0)+G};
_.P=O5.prototype;_.P.getCount=function(){return this.JSC$20240_map_.size};
_.P.add=function(G){this.JSC$20240_map_.set(PXd(G),G);this.size=this.JSC$20240_map_.size};
_.P.addAll=function(G){G=_.n9(G);for(var c=G.length,I=0;I<c;I++)this.add(G[I]);this.size=this.JSC$20240_map_.size};
_.P.removeAll=function(G){G=_.n9(G);for(var c=G.length,I=0;I<c;I++)this.remove(G[I]);this.size=this.JSC$20240_map_.size};
_.P.delete=function(G){G=this.JSC$20240_map_.remove(PXd(G));this.size=this.JSC$20240_map_.size;return G};
_.P.remove=function(G){return this.delete(G)};
_.P.clear=function(){this.JSC$20240_map_.clear();this.size=0};
_.P.isEmpty=function(){return this.JSC$20240_map_.size===0};
_.P.has=function(G){return this.JSC$20240_map_.containsKey(PXd(G))};
_.P.contains=function(G){return this.JSC$20240_map_.containsKey(PXd(G))};
_.P.getValues=function(){return this.JSC$20240_map_.getValues()};
_.P.values=function(){return this.JSC$20240_map_.values()};
_.P.clone=function(){return new O5(this)};
_.P.equals=function(G){return this.getCount()==f9d(G)&&Qvd(this,G)};
var Qvd=function(G,c){var I=f9d(c);if(G.getCount()>I)return!1;!(c instanceof O5)&&I>5&&(c=new O5(c));return BB1(G,function(R){var Z=c;return Z.contains&&typeof Z.contains=="function"?Z.contains(R):Z.containsValue&&typeof Z.containsValue=="function"?Z.containsValue(R):_.xp(Z)||typeof Z==="string"?_.fA(Z,R):_.rx.containsValue(Z,R)})};
O5.prototype.__iterator__=function(){return this.JSC$20240_map_.__iterator__(!1)};
O5.prototype[Symbol.iterator]=function(){return this.values()};var mIr={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(G){return(this._clampValue(G)-this.min)/(this.max-this.min)},
_clampValue:function(G){return Math.min(this.max,Math.max(this.min,this._calcStep(G)))},
_calcStep:function(G){G=parseFloat(G);if(!this.step)return G;G=Math.round((G-this.min)/this.step);return this.step<1?G/(1/this.step)+this.min:G*this.step+this.min},
_validateValue:function(){var G=this._clampValue(this.value);this.value=this.oldValue=isNaN(G)?this.oldValue:G;return this.value!==G},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var a57;var Trd;_.SD({_template:function(){if(Trd!==void 0)return Trd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;a57===void 0&&(a57=document.createElement("template"));var R=a57;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return Trd=G},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.O$(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(G){G.keyCode===27&&(G.preventDefault(),this.close())},
_track:function(G){if(!this.persistent&&!this.disableSwipe)switch(G.preventDefault(),G.detail.state){case "start":this._trackStart(G);break;case "track":this._trackMove(G);break;case "end":this._trackEnd(G)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var G=this.$.contentContainer.getBoundingClientRect();this._savedWidth=G.width;this._translateOffset=this.position==="left"?G.left:G.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(G){this._trackDetails&&(this._translateDrawer(G.detail.dx+this._translateOffset),this._trackDetails.push({dx:G.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(G){if(this._trackDetails){var c=G.detail.dx+this._translateOffset,I=this.getWidth();c=this.position==="left"?c>=0||c<=-I:c<=0||c>=I;if(!c){var R=this._trackDetails;this._trackDetails=null;this._flingDrawer(G,R);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}I/=2;G.detail.dx<-I?this.opened=this.position==="right":G.detail.dx>I&&(this.opened=this.position==="left");c?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(G,c){for(var I=Date.now(),R=I-100,Z,K=0,m=c.length-1;K<=m;){var a=K+m>>1,O=c[a];O.timeStamp>=R?(Z=O,m=a-1):K=a+1}return Z?(G.detail.dx-Z.dx)/(I-Z.timeStamp||1):0},
_flingDrawer:function(G,c){c=this._calculateVelocity(G,c);if(!(Math.abs(c)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;G=G.detail.dx+this._translateOffset;var I=this.getWidth(),R=this.position==="left",Z=c>0;Z?(c=Math.max(c,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(c=Math.min(c,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");c=this._FLING_INITIAL_SLOPE*(!Z&&R?-(G+I):Z&&!R?I-G:-G)/c;this._styleTransitionDuration(c);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,c)}},
_styleTransitionDuration:function(G){this.style.transitionDuration=G+"ms";this.$.contentContainer.style.transitionDuration=G+"ms";this.$.scrim.style.transitionDuration=G+"ms"},
_styleTransitionTimingFunction:function(G){this.$.contentContainer.style.transitionTimingFunction=G;this.$.scrim.style.transitionTimingFunction=G},
_translateDrawer:function(G){var c=this.getWidth();this.position==="left"?(G=Math.max(-c,Math.min(G,0)),this.$.scrim.style.opacity=1+G/c):(G=Math.max(0,Math.min(G,c)),this.$.scrim.style.opacity=1-G/c);this.translate3d(G+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var G=this._drawerState;G===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;G!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),G!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var G=_.qy(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');G.length>0?(this._firstTabStop=G[0],this._lastTabStop=G[G.length-1]):
this._lastTabStop=this._firstTabStop=null;(G=this.getAttribute("tabindex"))&&parseInt(G,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(G){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||G.keyCode!==9||(G.shiftKey?this._firstTabStop&&_.qy(G).localTarget===this._firstTabStop&&(G.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.qy(G).localTarget===this._lastTabStop&&(G.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(G,c){this.toggleClass("visible",G&&!c,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 OiH;var ezd;_.SD({_template:function(){if(ezd!==void 0)return ezd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;OiH===void 0&&(OiH=document.createElement("template"));var R=OiH;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return ezd=G},
is:"tp-yt-paper-progress",behaviors:[mIr],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(G){this.toggleClass("indeterminate",G,this.$.primaryProgress)},
_transformProgress:function(G,c){G.style.transform=G.style.webkitTransform="scaleX("+c/100+")"},
_mainRatioChanged:function(G){this._transformProgress(this.$.primaryProgress,G)},
_progressChanged:function(G,c,I,R,Z){G=this._clampValue(G);c=this._clampValue(c);var K=this._calcRatio(G)*100,m=this._calcRatio(c)*100;this._setSecondaryRatio(K);this._transformProgress(this.$.secondaryProgress,K);this._transformProgress(this.$.primaryProgress,m);this.secondaryProgress=G;Z?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",c);this.setAttribute("aria-valuemin",I);this.setAttribute("aria-valuemax",R)},
_disabledChanged:function(G){this.setAttribute("aria-disabled",G?"true":"false")},
_hideSecondaryProgress:function(G){return G===0}});var Nrj;var l5G;var q6H=function(){};
_.P=q6H.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._calcRatio=function(){};
_.P._clampValue=function(){};
_.P._calcStep=function(){};
_.P._validateValue=function(){};
_.P._update=function(){};
_.P._setImmediateValue=function(){};
_.P._setExpand=function(){};
_.P._setDragging=function(){};
_.P._setTransiting=function(){};
_.P._setMarkers=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setRatio=function(){};
q6H=_.SD({_template:function(){if(l5G!==void 0)return l5G;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Nrj===void 0&&(Nrj=document.createElement("template"));var R=Nrj;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return l5G=G},
is:"tp-yt-paper-slider",behaviors:[_.Ha,_.Yn,_.wLi,mIr],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&&_.CY(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(G,c,I){this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",I);this.setAttribute("aria-valuenow",G);this._positionKnob(this._calcRatio(G)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(G){this._setImmediateValue(this._calcStep(this._calcKnobPosition(G)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(G){return(this.max-this.min)*G/100+this.min},
_onTrack:function(G){G.stopPropagation();switch(G.detail.state){case "start":this._trackStart(G);break;case "track":this._trackX(G);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(G){this.dragging||this._trackStart(G);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,G.detail.dx*(this._isRTL?-1:1)));G=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(G);G=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(G+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var G=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;G.transform=G.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(G){this._expandKnob();G.preventDefault();this.focus()},
_bartrack:function(G){this._allowBarEvent(G)&&this._onTrack(G)},
_barclick:function(G){this._w=this.$.sliderBar.offsetWidth;var c=this.$.sliderBar.getBoundingClientRect();c=(G.detail.x-c.left)/this._w*100;this._isRTL&&(c=100-c);var I=this.ratio;this._setTransiting(!0);this._positionKnob(c);I===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
G.preventDefault();this.focus()},
_bardown:function(G){this._allowBarEvent(G)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(G))},
_knobTransitionEnd:function(G){G.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(G,c,I,R){R||this._setMarkers([]);c=Math.round((I-c)/this.step);c>G&&(c=G);if(c<0||!isFinite(c))c=0;this._setMarkers(Array(c))},
_mergeClasses:function(G){return Object.keys(G).filter(function(c){return G[c]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(G){return!this.ignoreBarTouch||G.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(G){this._isRTL?this._incrementKey(G):this._decrementKey(G)},
_rightKey:function(G){this._isRTL?this._decrementKey(G):this._incrementKey(G)},
_incrementKey:function(G){this.disabled||(G.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),G.preventDefault())},
_decrementKey:function(G){this.disabled||(G.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),G.preventDefault())},
_changeValue:function(G){this.value=G.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(G){G.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.qtV._createRipple.call(this)},
_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=G?"":"none",this._ripple.holdDown=G)}});var w$r;var Fj$;var eF=null,neW=function(){};
_.P=neW.prototype;_.P.fit=function(){};
_.P._discoverInfo=function(){};
_.P.resetFit=function(){};
_.P.refit=function(){};
_.P.position=function(){};
_.P.constrain=function(){};
_.P._sizeDimension=function(){};
_.P.__sizeDimension=function(){};
_.P.center=function(){};
_.P.__getNormalizedRect=function(){};
_.P.__getOffscreenArea=function(){};
_.P.__getPosition=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P.toggle=function(){};
_.P.open=function(){};
_.P.close=function(){};
_.P.cancel=function(){};
_.P.invalidateTabbables=function(){};
_.P._ensureSetup=function(){};
_.P._canceledChanged=function(){};
_.P._withBackdropChanged=function(){};
_.P._prepareRenderOpened=function(){};
_.P._finishRenderOpened=function(){};
_.P._finishRenderClosed=function(){};
_.P._preparePositioning=function(){};
_.P._finishPositioning=function(){};
_.P._applyFocus=function(){};
_.P._onCaptureClick=function(){};
_.P._onCaptureFocus=function(){};
_.P._onCaptureEsc=function(){};
_.P._onCaptureTab=function(){};
_.P._onIronResize=function(){};
_.P._onNodesChange=function(){};
_.P.__ensureFirstLastFocusables=function(){};
_.P.__openedChanged=function(){};
_.P.__deraf=function(){};
_.P.__updateScrollObservers=function(){};
_.P.__addScrollListeners=function(){};
_.P.__removeScrollListeners=function(){};
_.P.__isValidScrollAction=function(){};
_.P.__onCaptureScroll=function(){};
_.P.__saveScrollPosition=function(){};
_.P.__restoreScrollPosition=function(){};
_.P._setCanceled=function(){};
neW=_.SD({_template:function(){if(Fj$!==void 0)return Fj$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;w$r===void 0&&(w$r=document.createElement("template"));var R=w$r;I.call(c,R.content.cloneNode(!0),G.content.firstChild);return Fj$=G},
is:"tp-yt-paper-toast",behaviors:[_.Du],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(){_.Hw._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.qe.requestAvailability()},
show:function(G){typeof G=="string"&&(G={text:G});for(var c in G)c.indexOf("_")===0?_.Hw._warn('The property "'+c+'" is private and was not set.'):c in this?this[c]=G[c]:_.Hw._warn('The property "'+c+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(G){G&&G.target===this&&G.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(eF&&eF!==this&&eF.close(),eF=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):eF===this&&(eF=null);_.vp._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(G){this.positionTarget=G},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var veg=new _.vS("disablePersonalizationAction");var lh7=new _.vS("showDmaConsentFlowCommand");var qcG=new _.vS("showMmgNoticeCommand");var DIW=new _.vS("saveConsentAction");var oe1=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.iH(G)};
_.u(oe1,_.aR);var UIu=_.c_r(oe1);var uKd=new _.vS("updateTopbarAvatarAction");var biG=new _.vS("channelHandleValidationResultRenderer");var klr=new _.vS("generateHandleFromNameResultRenderer");var svF=new _.vS("channelHandleInputRenderer");var LjG=new _.vS("copyLinkRenderer");var AJd=new _.vS("timedCommand");var $I0=new _.vS("clearCookieAction");var S6G=new _.vS("getMultiPageMenuAction");var p$G=new _.vS("addToGuideSectionAction"),MJg=new _.vS("removeFromGuideSectionAction");var VJg=new _.vS("updateNotificationsUnseenCountAction");var zzd=new _.vS("resetChannelUnreadCountCommand");var Eed=new _.vS("resetSubscriptionsUnreadDotCommand");var JJW=new _.vS("selectLanguageCommand");var LdH=new _.vS("sendFeedbackAction");var Wju=new _.vS("uploadImageToScottyCommand");var iiH=new _.vS("registerPromoCommand");var f5H=new _.vS("setPushNotificationsEnabledCommand");var Brj=new _.vS("desktopTopbarRenderer");var rJr=new _.vS("surveyFollowUpRenderer");var jv0=new _.vS("handlesClaimingRadioOptionRenderer");var xIu=new _.vS("hotkeyDialogRenderer");var tJW=new _.vS("modifyReportFormCommand");var hz$=new _.vS("accountLinkCommand");var dIH=new _.vS("accountUnlinkCommand");var CXj=new _.vS("logAccountLinkingEventCommand");var D07=new _.vS("guideCollapsibleEntryRenderer");var Hid=new _.vS("guideDownloadsEntryRenderer");var vq1=new _.vS("guideEntryRenderer");var X$F=new _.vS("getLocationCommand");var yJW=new _.vS("locationCollectionCommand");var gej=new _.vS("storiesItemViewModel");var Y6F=new _.vS("addToRemoteQueueAction");var GwG=new _.vS("insertInRemoteQueueAction");var cp1=new _.vS("removeFromRemoteQueueAction");var I1d=new _.vS("notificationRenderer");var yEF=new _.vS("localWatchHistoryCommand");var R4g=new _.vS("pdgBuyFlowHeaderRenderer");var Zbj=new _.vS("pdgColorSliderRenderer");var K2G=new _.vS("pdgCommentOptionRenderer");var PE1=new _.vS("pdgCommentPreviewRenderer");var QUu=new _.vS("superVodSelectableItemButtonRenderer");var mF7=new _.vS("switchButtonRenderer");var XW$=new _.vS("upsellDialogRenderer");var yZj=new _.vS("feedbackQuestionRenderer"),gB7=new _.vS("feedbackOptionRenderer");var YSr=new _.vS("sponsorshipsTierRenderer"),Gx1=new _.vS("sponsorshipsPromotionChannelRenderer");var cDd=new _.vS("simpleSurveyMessageRenderer");var pzj=new _.vS("invokeInstrumentManagerAction");var IOd=new _.vS("logYpcFlowDismissCommand");var RI0=new _.vS("logYpcFlowStartCommand");var ZP$=new _.vS("unlimitedCreateFamilyEndpoint");var KtH=new _.vS("iconBadgeRenderer");var YFG=new _.vS("collaborativePlaylistVisibilityValidationRule");var Poj=function(G){_.zR.call(this,"channelMessage");this.message=G};
_.u(Poj,_.zR);var QiF=function(G){_.zR.call(this,"channelError");this.error=G};
_.u(QiF,_.zR);var mJr={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},aOW={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},TR1={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},OPF={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},eI1={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Nz=function(G){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.EY;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;G&&(this.id=G.id||G.name,this.name=G.name,this.clientName=G.clientName?G.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=G.app,this.type=G.type||"REMOTE_CONTROL",this.username=G.user||"",this.avatar=G.userAvatarUri||"",this.obfuscatedGaiaId=G.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=G.ownerObfuscatedGaiaId||"",this.castUserId=G.castUserId||"",this.theme=G.theme||"u",NRW(this,G.capabilities||""),lO0(this,
G.compatibleSenderThemes||""),qDW(this,G.experiments||""),this.remoteControllerUrl=G.remoteControllerUrl||"",this.localChannelEncryptionKey=G.localChannelEncryptionKey||"",this.deviceContext=G.deviceContext,this.brand=G.brand||"",this.model=G.model||"",this.year=G.year||0,this.os=G.os||"",this.osVersion=G.osVersion||"",this.chipset=G.chipset||"",this.mdxDialServerType=G.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=G.pairingType||"unknown",G=G.deviceInfo)&&(G=JSON.parse(G),this.brand=
G.brand||"",this.model=G.model||"",this.year=G.year||0,this.os=G.os||"",this.osVersion=G.osVersion||"",this.chipset=G.chipset||"",this.clientName=G.clientName?G.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=G.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Nz.prototype.copy=function(){var G={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(G.brand=this.brand);
this.model&&(G.model=this.model);this.year&&(G.year=this.year);this.os&&(G.os=this.os);this.osVersion&&(G.osVersion=this.osVersion);this.chipset&&(G.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(G.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(G.mdxDialServerType=this.mdxDialServerType);G=new Nz(G);G.connected=this.connected;G.remoteControllerUrl=this.remoteControllerUrl;G.localChannelEncryptionKey=this.localChannelEncryptionKey;G.deviceContext=
this.deviceContext;G.castUserId=this.castUserId;return G};
Nz.prototype.equals=function(G){return G?this.id==G.id:!1};
var NRW=function(G,c){G.capabilities.clear();_.qO(c.split(","),_.Ts(_.rx.contains,mJr)).forEach(function(I){G.capabilities.add(I)})},lO0=function(G,c){G.compatibleSenderThemes.clear();
_.qO(c.split(","),_.Ts(_.rx.contains,aOW)).forEach(function(I){G.compatibleSenderThemes.add(I)})},qDW=function(G,c){G.experiments.clear();
c.split(",").forEach(function(I){G.experiments.add(I)})};_.eg(PJ0,_.JK);_.P=PJ0.prototype;_.P.JSC$20276_onTick_=function(){this.JSC$20274_interval_=Math.min(3E5,this.JSC$20274_interval_*2);this.JSC$20276_listener_();this.nextTickTime_&&this.start()};
_.P.start=function(){var G=this.JSC$20274_interval_+15E3*Math.random(),c=this.delay_;c.isActive()||c.start(G);this.nextTickTime_=Date.now()+G};
_.P.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.P.isActive=function(){return this.delay_.isActive()};
_.P.reset=function(){this.delay_.stop();this.JSC$20274_interval_=5E3};_.eg(pw,ZiH);_.P=pw.prototype;_.P.subscribe=function(G,c,I){return this.pubsub_.subscribe(G,c,I)};
_.P.unsubscribe=function(G,c,I){return this.pubsub_.unsubscribe(G,c,I)};
_.P.unsubscribeByKey=function(G){return this.pubsub_.unsubscribeByKey(G)};
_.P.publish=function(G,c){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.P.dispose=function(){this.JSC$20277_disposed_||(this.JSC$20277_disposed_=!0,_.TB(this.pubsub_),this.disconnect(),_.TB(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20277_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.IP({})})};
_.P.isDisposed=function(){return this.JSC$20277_disposed_};
_.P.connect=function(G,c,I){var R=this,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1)return _.$m(O,2),R.useAsyncBrowserChannelHandler_?O.yield(R.connectPromise_,2):O.jumpTo(2);_.A_(O);if(R.JSC$20277_disposed_||R.JSC$20277_channel_&&R.JSC$20277_channel_.getState()==2&&!R.isInitialReconnectTimer_)return O.return();R.sCookie_="";R.isInitialReconnectTimer_||R.reconnectTimer_.stop();R.connectionParams_=G||null;R.connectUi_=c||0;Z=R.JSC$20277_pathPrefix_+"/test";K=R.JSC$20277_pathPrefix_+"/bind";m=
new Tt(I?I.firstTestResults:null,I?I.secondTestResults:null,R.enableAsyncTest_);if(a=R.JSC$20277_channel_)a.handler_=null;m.handler_=R;R.JSC$20277_channel_=m;if(R.useAsyncBrowserChannelHandler_)return R.connectPromise_=w3g(R).then(function(){return Ftj(R,Z,K,a,I)}),O.return(R.connectPromise_.then(function(){R.connectPromise_=_.IP()}));
Ftj(R,Z,K,a,I);return _.pT(O,0)})};
var Ftj=function(G,c,I,R,Z){njW(G);if(G.JSC$20277_channel_){var K=_.H1("ID_TOKEN"),m=G.JSC$20277_channel_.JSC$20229_extraHeaders_||{};K?m["x-youtube-identity-token"]=K:delete m["x-youtube-identity-token"];G.JSC$20277_channel_.JSC$20229_extraHeaders_=m}vjd(G);R?(R.getState(),G.JSC$20277_channel_.connect(c,I,G.defaultQueryParams_,R.sid_,R.JSC$20229_lastArrayId_)):Z?G.JSC$20277_channel_.connect(c,I,G.defaultQueryParams_,Z.sessionId,Z.arrayId):G.JSC$20277_channel_.connect(c,I,G.defaultQueryParams_);G.isInitialReconnectTimer_&&
!G.reconnectTimer_.isActive()&&G.reconnectTimer_.start()};
pw.prototype.disconnect=function(G){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.IP())}finally{this.disconnectUi_=G||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),njW(this),this.JSC$20277_channel_&&(this.JSC$20277_channel_.getState()==3&&gwG(this.JSC$20277_channel_),this.JSC$20277_channel_.disconnect()),this.disconnectUi_=0}};
pw.prototype.sendMessage=function(G,c){var I=this,R;return _.T(function(Z){switch(Z.nextAddress){case 1:_.$m(Z,2);if(!I.useAsyncBrowserChannelHandler_){Z.jumpTo(2);break}return Z.yield(I.connectPromise_,2);case 2:_.A_(Z);if(I.JSC$20277_disposed_)return Z.return();R={_sc:G};c&&_.rx.extend(R,c);if(I.reconnectTimer_.isActive()||(I.JSC$20277_channel_?I.JSC$20277_channel_.getState():0)==2){I.JSC$20277_pendingMessages_.push(R);Z.jumpTo(6);break}if(!I.isChannelOpened()){Z.jumpTo(6);break}_.$m(Z,8);if(!I.useAsyncBrowserChannelHandler_||
DJd(I,G)){Z.jumpTo(8);break}return Z.yield(w3g(I),8);case 8:_.A_(Z,0,0,1);I.isChannelOpened()&&(DJd(I,G)||vjd(I),njW(I),yud(I.JSC$20277_channel_,R));_.pT(Z,6,1);break;case 6:_.pT(Z,0)}})};
var DJd=function(G,c){return G.enableMdxAuthForConnectionOnly_?!0:G.disableMdxAuthForAdMessages_?Object.values(TR1).includes(c):G.disableMdxAuthForNonPlaybackMessages_?!Object.values(OPF).includes(c):G.disableMdxAuthForShortsMessages_?Object.values(eI1).includes(c):!1};
pw.prototype.JSC$20236_channelOpened=function(){this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.TB(this.reconnectTimer_),this.reconnectTimer_=new PJ0(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20277_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)ojd(this);else{var G=this.JSC$20277_pendingMessages_;this.JSC$20277_pendingMessages_=[];var c=G.length;vjd(this);UJg(this,
G,c);uMu(this)}else uMu(this)};
var ojd=function(G){var c,I;_.T(function(R){if(R.nextAddress==1)return _.$m(R,2),R.yield(w3g(G),2);_.A_(R);c=G.JSC$20277_pendingMessages_;G.JSC$20277_pendingMessages_=[];I=c.length;UJg(G,c,I);uMu(G);return _.pT(R,0)})},UJg=function(G,c,I){for(var R=0;R<I;++R)yud(G.JSC$20277_channel_,c[R]);
uMu(G)},uMu=function(G){G.publish("handlerOpened");
G.JSC$20277_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.P=pw.prototype;_.P.JSC$20236_channelError=function(G){var c=G==2&&this.JSC$20277_channel_.JSC$20229_lastStatusCode_==401;G==4||c||this.reconnectTimer_.start();this.publish("handlerError",G,c);c=Object.keys(rug).find(function(I){return rug[I]===G});
this.JSC$20277_channelErrorCounter.increment("BROWSER_CHANNEL",c!=null?c:"UNKNOWN")};
_.P.JSC$20236_channelClosed=function(G,c){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(c)for(var I=c.length,R=0;R<I;++R){var Z=c[R].map;Z&&this.JSC$20277_pendingMessages_.push(Z)}this.JSC$20277_channelClosedCounter.increment("BROWSER_CHANNEL");G&&this.pendingMapsOnClosedCounter.JSC$10101_streamzService.JSC$9956_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",G.length);c&&this.undeliveredMapsOnClosedCounter.JSC$10104_streamzService.JSC$9956_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
c.length)};
_.P.JSC$20236_channelSuccess=function(G,c){c!=null&&G!=null&&this.channelMessageSentCounter.increment()};
_.P.JSC$20236_getAdditionalParams=function(){var G={v:2};this.sCookie_&&(G.gsessionid=this.sCookie_);this.connectUi_!=0&&(G.ui=""+this.connectUi_);this.disconnectUi_!=0&&(G.ui=""+this.disconnectUi_);this.connectionParams_&&_.rx.extend(G,this.connectionParams_);return G};
_.P.JSC$20236_channelHandleArray=function(G){G[0]=="S"?this.sCookie_=G[1]:G[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20277_channel_.disconnect()):this.publish("handlerMessage",new KG1(G[0],G[1]));this.JSC$20277_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.P.isChannelOpened=function(){return!!this.JSC$20277_channel_&&this.JSC$20277_channel_.getState()==3};
var njW=function(G){if(G.JSC$20277_channel_){var c=G.JSC$20277_getXsrfToken_(),I=G.JSC$20277_channel_.JSC$20229_extraHeaders_||{};c?I["x-youtube-lounge-xsrf-token"]=c:delete I["x-youtube-lounge-xsrf-token"];G.JSC$20277_channel_.JSC$20229_extraHeaders_=I}},w3g=function(G){if(G.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.IP();
if(!G.enableCachedUpdateAuthorizationHeader_)return bPW(G);G.updateAuthorizationHeaderPromise_===null&&(G.updateAuthorizationHeaderPromise_=bPW(G));return G.updateAuthorizationHeaderPromise_},bPW=function(G){return _.hE(G.getAuthorizationHeader_().then(function(c){kxj(G,c)}).thenCatch(function(){}),function(){G.updateAuthorizationHeaderPromise_=null})},kxj=function(G,c){if(G.JSC$20277_channel_){var I=G.JSC$20277_channel_.JSC$20229_extraHeaders_||{};
c&&Object.keys(c).length>0?I=Object.assign({},I,c):delete I.Authorization;G.JSC$20277_channel_.JSC$20229_extraHeaders_=I}},vjd=function(G){G.getAuthorizationHeaderSync_&&!G.useAsyncBrowserChannelHandler_&&kxj(G,G.getAuthorizationHeaderSync_())};
_.P=pw.prototype;_.P.setLoungeToken=function(G){(this.defaultQueryParams_.loungeIdToken=G)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20277_channel_){var c=this.JSC$20277_channel_.JSC$20229_extraHeaders_||{};G?c["X-YouTube-LoungeId-Token"]=G:delete c["X-YouTube-LoungeId-Token"];this.JSC$20277_channel_.JSC$20229_extraHeaders_=c}};
_.P.getDeviceId=function(){return this.defaultQueryParams_.id};
_.P.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var G=this.reconnectTimer_;G.delay_.fire();G.start()};
_.P.safeReconnect_=function(){var G=this.JSC$20277_channel_,c=0;G.JSC$20229_backChannelRequest_&&c++;G.forwardChannelRequest_&&c++;c==0&&this.connect(this.connectionParams_,this.connectUi_)};var Ea=function(G,c){var I=G.basePath;G.supportCors&&(I=G.scheme+"://"+G.domain+G.port+G.basePath);return _.aa(I+c,{})};
lo$.prototype.sendRequest=function(G,c,I,R,Z,K,m){G={format:K?"RAW":"JSON",method:G,context:this,timeout:5E3,withCredentials:!!m,onSuccess:_.Ts(this.JSC$20283_onSuccess_,R,!K),onError:_.Ts(this.onError_,Z),onTimeout:_.Ts(this.JSC$20283_onTimeout_,Z)};I&&(G.postParams=I,G.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.$6(c,G)};
lo$.prototype.JSC$20283_onSuccess_=function(G,c,I,R){c?G(R):G({text:I.responseText})};
lo$.prototype.onError_=function(G,c){G(Error("Zk`"+c.status))};
lo$.prototype.JSC$20283_onTimeout_=function(G){G(Error("$k"))};var nXu=function(G,c){return!!c&&(G.id==c||G.uuid==c)},si7=function(G){return{name:G.name,
screenId:G.id,loungeToken:G.token,dialId:G.uuid,screenIdType:G.idType,screenIdSecret:G.secret}},Ltd=function(G){return new Mr(G)},ADu=function(G){return Array.isArray(G)?_.jB(G,Ltd):[]},DOg=function(G){if(!G)return"null";
var c=G.token?".."+G.token.slice(-6):"-",I=G.uuid?".."+G.uuid.slice(-6):"-",R=G.secret?".."+G.secret.slice(-6):"-";return'{name:"'+G.name+'",id:'+G.id.substr(0,6)+"..,token:"+(c+",uuid:"+I+",idType:"+G.idType+",secret:")+(R+"}")},CJd=function(G){return Array.isArray(G)?"["+_.jB(G,DOg).join(",")+"]":"null"};var kFd="",zA=null;var EXj=function(G,c){_.r4.call(this);var I=this;this.handler=G();this.handler.subscribe("handlerOpened",this.JSC$20290_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(R,Z){I.onError(Z)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=c};
_.u(EXj,_.r4);_.P=EXj.prototype;_.P.connect=function(G,c,I){this.handler.connect(G,c,I)};
_.P.disconnect=function(G){this.handler.disconnect(G)};
_.P.reconnect=function(){this.handler.reconnect()};
_.P.getDeviceId=function(){return this.handler.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.P.JSC$20290_onOpened=function(){this.dispatchEvent("channelOpened");var G=this.handler,c=this.currentScreenId;_.bu("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!G.JSC$20277_channel_.useChunked_,sessionId:G.JSC$20277_channel_.sid_,arrayId:G.JSC$20277_channel_.JSC$20229_lastArrayId_});_.bu("yt-remote-session-screen-id",c);G=vX$();c=DBg();_.fA(G,c)||G.push(c);bM7(G);u01()};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(G){this.dispatchEvent(new Poj(G))};
_.P.onError=function(G){this.dispatchEvent(new QiF(G?1:0))};
_.P.sendMessage=function(G,c){this.handler.sendMessage(G,c)};
_.P.setLoungeToken=function(G){this.handler.setLoungeToken(G)};
_.P.dispose=function(){this.handler.dispose()};var zUj=function(G,c,I){var R=this;I=I===void 0?function(){return""}:I;
var Z=Z===void 0?new OI$:Z;var K=K===void 0?new _.p4:K;this.pathPrefix=G;this.defaultQueryParams=c;this.getXsrfToken=I;this.JSC$20293_pubsub=K;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new PJ0(function(){var m;((m=R.channel)==null?void 0:fdr((new lgr(m,m.JSC$20200_channel_)).JSC$20210_channel_.forwardChannelRequestPool_))===0&&R.connect(R.connectionParams,R.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20293_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20293_channelOpenedCounter=new Qwg;this.JSC$20293_channelClosedCounter=new mBr;this.JSC$20293_channelMessageReceivedCounter=new TGj;this.JSC$20293_channelErrorCounter=new OM$};
zUj.prototype.connect=function(G,c){G=G===void 0?{}:G;c=c===void 0?0:c;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=G,this.connectUi=c,$Jd(this),(G=_.H1("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=G:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new PJ(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,SDW(this))};
var SDW=function(G){_.Ld(G.channel,"w",function(){G.channelState=3;G.reconnectTimer.reset();G.connectionParams=null;G.connectUi=0;for(var c=_.Q(G.nonAckedMessagesOnChannelClosed),I=c.next();!I.done;I=c.next())I=I.value,G.channel&&G.channel.send(I);G.nonAckedMessagesOnChannelClosed=[];G.publish("webChannelOpened");G.JSC$20293_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Ld(G.channel,"x",function(){G.channelState=0;G.reconnectTimer.isActive()||G.publish("webChannelClosed");var c,I=(c=G.channel)==null?void 0:qXW(new lgr(c,c.JSC$20200_channel_));I&&(G.nonAckedMessagesOnChannelClosed=[].concat(_.jn(I)));G.JSC$20293_channelClosedCounter.increment("WEB_CHANNEL")});
_.Ld(G.channel,"z",function(c){var I=c.data;I[0]==="gracefulReconnect"?(G.reconnectTimer.start(),G.channel&&G.channel.close()):G.publish("webChannelMessage",new KG1(I[0],I[1]));G.lastStatusCode=c.statusCode;G.JSC$20293_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Ld(G.channel,"y",function(){G.lastStatusCode===401||G.reconnectTimer.start();G.publish("webChannelError");G.JSC$20293_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.P=zUj.prototype;_.P.disconnect=function(G){this.disconnectUi=G===void 0?0:G;this.reconnectTimer.stop();$Jd(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.P.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var G=this.reconnectTimer;G.delay_.fire();G.start()};
_.P.sendMessage=function(G,c){this.channel&&($Jd(this),G=Object.assign({},{_sc:G},c),this.channel.send(G))};
_.P.setLoungeToken=function(G){G||this.reconnectTimer.stop();G?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=G:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var $Jd=function(G){var c=G.getXsrfToken();c?G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=c:delete G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.P=zUj.prototype;_.P.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.P.publish=function(G){return this.JSC$20293_pubsub.publish.apply(this.JSC$20293_pubsub,[G].concat(_.jn(_.Hy.apply(1,arguments))))};
_.P.subscribe=function(G,c,I){return this.JSC$20293_pubsub.subscribe(G,c,I)};
_.P.unsubscribe=function(G,c,I){return this.JSC$20293_pubsub.unsubscribe(G,c,I)};
_.P.unsubscribeByKey=function(G){return this.JSC$20293_pubsub.unsubscribeByKey(G)};
_.P.dispose=function(){this.JSC$20293_disposed||(this.JSC$20293_disposed=!0,_.TB(this.JSC$20293_pubsub),this.disconnect(),_.TB(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.P.isDisposed=function(){return this.JSC$20293_disposed};var VXF=function(G){_.r4.call(this);this.webChannelService=G();this.webChannelService.subscribe("webChannelOpened",this.JSC$20301_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.u(VXF,_.r4);_.P=VXF.prototype;_.P.connect=function(G,c){this.webChannelService.connect(G,c)};
_.P.disconnect=function(G){this.webChannelService.disconnect(G)};
_.P.reconnect=function(){this.webChannelService.reconnect()};
_.P.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.P.JSC$20301_onOpened=function(){this.dispatchEvent("channelOpened")};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(G){this.dispatchEvent(new Poj(G))};
_.P.onError=function(){this.dispatchEvent(new QiF(this.webChannelService.lastStatusCode===401?1:0))};
_.P.sendMessage=function(G,c){this.webChannelService.sendMessage(G,c)};
_.P.setLoungeToken=function(G){this.webChannelService.setLoungeToken(G)};
_.P.dispose=function(){this.webChannelService.dispose()};var dBj=Date.now(),J1=null,tXG=Array(50),xBj=-1,hUg=!1;_.eg(fw,_.TA);fw.prototype.getScreens=function(){return this.screens};
fw.prototype.contains=function(G){return!!FGH(this.screens,G)};
fw.prototype.get=function(G){return G?VE(this.screens,G):null};
var p30=function(G,c){var I=G.get(c.uuid)||G.get(c.id);if(I)return G=I.name,I.id=c.id||I.id,I.name=c.name,I.token=c.token,I.uuid=c.uuid||I.uuid,I.name!=G;G.screens.push(c);return!0},Mwj=function(G,c){var I=G.screens.length!=c.length;
G.screens=_.qO(G.screens,function(K){return!!FGH(c,K)});
for(var R=c.length,Z=0;Z<R;Z++)I=p30(G,c[Z])||I;return I},Vw0=function(G,c){var I=G.screens.length;
G.screens=_.qO(G.screens,function(R){return!(R||c?!R!=!c?0:R.id==c.id:1)});
return G.screens.length<I};
fw.prototype.info=function(G){WP(this.JSC$20302_logName_,G)};var zIg=function(G,c,I,R,Z){_.TA.call(this);this.JSC$20305_http_=G;this.pairingCode_=c;this.deviceId_=I;this.friendlyName_=R;this.enableShortLivedLoungeToken_=Z;this.pollIndex_=0;this.JSC$20305_xhr_=null;this.JSC$20305_timer_=NaN};
_.u(zIg,_.TA);_.P=zIg.prototype;_.P.start=function(){!this.JSC$20305_xhr_&&isNaN(this.JSC$20305_timer_)&&this.poll_()};
_.P.stop=function(){this.JSC$20305_xhr_&&(this.JSC$20305_xhr_.abort(),this.JSC$20305_xhr_=null);isNaN(this.JSC$20305_timer_)||(_.L4(this.JSC$20305_timer_),this.JSC$20305_timer_=NaN)};
_.P.disposeInternal=function(){this.stop();_.TA.prototype.disposeInternal.call(this)};
_.P.poll_=function(){this.JSC$20305_timer_=NaN;this.JSC$20305_xhr_=_.$6(Ea(this.JSC$20305_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.WD)(this.JSC$20307_onSuccess_,this),onError:(0,_.WD)(this.onError_,this),onTimeout:(0,_.WD)(this.JSC$20307_onTimeout_,this)})};
_.P.JSC$20307_onSuccess_=function(G,c){this.JSC$20305_xhr_=null;G=c.screen||{};G.dialId=this.deviceId_;G.name=this.friendlyName_;c=-1;this.enableShortLivedLoungeToken_&&G.shortLivedLoungeToken&&G.shortLivedLoungeToken.value&&G.shortLivedLoungeToken.refreshIntervalMs&&(G.screenIdType="shortLived",G.loungeToken=G.shortLivedLoungeToken.value,c=G.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Mr(G),c)};
_.P.onError_=function(G){this.JSC$20305_xhr_=null;G.status&&G.status==404?this.pollIndex_>=Eju.length?this.publish("pairingFailed",Error("al")):(G=Eju[this.pollIndex_],this.JSC$20305_timer_=_.k6((0,_.WD)(this.poll_,this),G),this.pollIndex_++):this.publish("pairingFailed",Error("bl`"+G.status))};
_.P.JSC$20307_onTimeout_=function(){this.JSC$20305_xhr_=null;this.publish("pairingFailed",Error("cl"))};
var Eju=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.eg(r_,fw);_.P=r_.prototype;_.P.start=function(){BP(this)&&this.publish("screenChange");!_.ka("yt-remote-lounge-token-expiration")&&JDG(this);_.L4(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.k6((0,_.WD)(this.start,this),1E4)};
_.P.add=function(G,c){BP(this);p30(this,G);Wt7(this,!1);this.publish("screenChange");c(G);G.token||JDG(this)};
_.P.remove=function(G,c){var I=BP(this);Vw0(this,G)&&(Wt7(this,!1),I=!0);c(G);I&&this.publish("screenChange")};
_.P.updateName=function(G,c,I,R){var Z=BP(this),K=this.get(G.id);K?(K.name!=c&&(K.name=c,Wt7(this,!1),Z=!0),I(G)):R(Error("dl"));Z&&this.publish("screenChange")};
_.P.disposeInternal=function(){_.L4(this.loungeTokenRefreshTimer_);r_.superClass_.disposeInternal.call(this)};
var JDG=function(G){if(G.screens.length){var c=_.jB(G.screens,function(R){return R.id}),I=Ea(G.JSC$20309_http_,"/pairing/get_lounge_token_batch");
G.JSC$20309_http_.sendRequest("POST",I,{screen_ids:c.join(",")},(0,_.WD)(G.handleLoungeTokens_,G),(0,_.WD)(G.handleLoungeTokenError_,G))}};
r_.prototype.handleLoungeTokens_=function(G){BP(this);var c=this.screens.length;G=G&&G.screens||[];for(var I=G.length,R=0;R<I;++R){var Z=G[R],K=this.get(Z.screenId);K&&(K.token=Z.loungeToken,--c)}Wt7(this,!c);c&&WP(this.JSC$20302_logName_,"Missed "+c+" lounge tokens.")};
r_.prototype.handleLoungeTokenError_=function(G){WP(this.JSC$20302_logName_,"Requesting lounge tokens failed: "+G)};
var BP=function(G){if(_.v("deprecate_pair_servlet_enabled"))return Mwj(G,[]);var c=ADu(LGW());c=_.qO(c,function(I){return!I.uuid});
return Mwj(G,c)},Wt7=function(G,c){$Bd(_.jB(G.screens,si7));
c&&AAW()};var l4=function(G,c){_.TA.call(this);this.getScreensToCheck_=c;c=(c=_.ka("yt-remote-online-screen-ids")||"")?c.split(","):[];for(var I={},R=this.getScreensToCheck_(),Z=R.length,K=0;K<Z;++K){var m=R[K].id;I[m]=_.fA(c,m)}this.screenIdSet_=I;this.JSC$20312_http_=G;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;iPW("Initialized with "+(0,_.HL)(this.screenIdSet_))};
_.u(l4,_.TA);l4.prototype.isOnline=function(G){return!!this.screenIdSet_[G]};
l4.prototype.start=function(){var G=parseInt(_.ka("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.OH()-144E5<G?0:G)?fOF(this):(this.fastCheckEndTime_=_.OH()+3E5,_.bu("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
l4.prototype.isEmpty=function(){return _.rx.isEmpty(this.screenIdSet_)};
l4.prototype.update=function(){iPW("Updating availability on schedule.");var G=this.getScreensToCheck_(),c=_.rx.filter(this.screenIdSet_,function(I,R){return I&&!!VE(G,R)},this);
BRg(this,c)};
var rDu=function(G,c,I){var R=Ea(G.JSC$20312_http_,"/pairing/get_screen_availability");G.JSC$20312_http_.sendRequest("POST",R,{lounge_token:c.token},(0,_.WD)(function(Z){Z=Z.screens||[];for(var K=Z.length,m=0;m<K;++m)if(Z[m].loungeToken==c.token){I(Z[m].status=="online");return}I(!1)},G),(0,_.WD)(function(){I(!1)},G))};
l4.prototype.disposeInternal=function(){_.L4(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.TA.prototype.disposeInternal.call(this)};
var BRg=function(G,c){a:if(_.rx.getCount(c)!=_.rx.getCount(G.screenIdSet_))var I=!1;else{I=_.rx.getKeys(c);for(var R=I.length,Z=0;Z<R;++Z)if(!G.screenIdSet_[I[Z]]){I=!1;break a}I=!0}I||(iPW("Updated online screens: "+(0,_.HL)(G.screenIdSet_)),G.screenIdSet_=c,G.publish("screenChange"));jiG(G)},fOF=function(G){isNaN(G.refreshTimer_)||_.L4(G.refreshTimer_);
G.refreshTimer_=_.k6((0,_.WD)(G.requestScreenAvailability_,G),G.fastCheckEndTime_>0&&G.fastCheckEndTime_<_.OH()?2E4:1E4)};
l4.prototype.requestScreenAvailability_=function(){_.L4(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var G=xJr(this);if(_.rx.getCount(G)){var c=Ea(this.JSC$20312_http_,"/pairing/get_screen_availability"),I={lounge_token:_.rx.getKeys(G).join(",")};this.currentRequest_=this.JSC$20312_http_.sendRequest("POST",c,I,(0,_.WD)(this.onScreenAvailability_,this,G),(0,_.WD)(this.onScreenAvailabilityError_,this))}else BRg(this,{}),fOF(this)};
l4.prototype.onScreenAvailability_=function(G,c){this.currentRequest_=null;var I=_.rx.getKeys(xJr(this));if(_.gb(I,_.rx.getKeys(G))){c=c.screens||[];I={};for(var R=c.length,Z=0;Z<R;++Z)I[G[c[Z].loungeToken]]=c[Z].status=="online";BRg(this,I);fOF(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
l4.prototype.onScreenAvailabilityError_=function(G){this.warn_("Screen availability failed: "+G);this.currentRequest_=null;fOF(this)};
var iPW=function(G){WP("OnlineScreenService",G)};
l4.prototype.warn_=function(G){WP("OnlineScreenService",G)};
var xJr=function(G){var c={};_.K4(G.getScreensToCheck_(),function(I){I.token?c[I.token]=I.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return c},jiG=function(G){G=_.rx.getKeys(_.rx.filter(G.screenIdSet_,function(c){return c}));
G.sort(_.EpC);G.length?_.bu("yt-remote-online-screen-ids",G.join(","),60):_.sU("yt-remote-online-screen-ids")};_.eg(j$,fw);_.P=j$.prototype;_.P.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.P.add=function(G,c,I){this.localScreenService_.add(G,c,I)};
_.P.remove=function(G,c,I){this.localScreenService_.remove(G,c,I);this.onlineScreenService_.update()};
_.P.updateName=function(G,c,I,R){this.localScreenService_.contains(G)?this.localScreenService_.updateName(G,c,I,R):(G="Updating name of unknown screen: "+G.name,WP(this.JSC$20302_logName_,G),R(Error(G)))};
_.P.getScreens=function(G){return G?this.screens:Vkd(this.screens,_.qO(this.automaticScreens_,function(c){return!this.contains(c)},this))};
_.P.JSC$20317_getOnlineScreens=function(){return _.qO(this.getScreens(!0),function(G){return this.onlineScreenService_.isOnline(G.id)},this)};
var hIH=function(G,c,I,R,Z,K){G.info("getAutomaticScreenByIds "+I+" / "+c);I||(I=G.deviceToScreenId_[c]);var m=G.getScreens(),a=I?VE(m,I):null;I&&(G.disableAutomaticScreenCache_||a)||(a=VE(m,c));if(a){a.uuid=c;var O=qz(G,a);rDu(G.onlineScreenService_,O,function(N){Z(N?O:null)})}else I?tw0(G,I,(0,_.WD)(function(N){var q=qz(this,new Mr({name:R,
screenId:I,loungeToken:N,dialId:c||""}));rDu(this.onlineScreenService_,q,function(w){Z(w?q:null)})},G),K):Z(null)};
j$.prototype.JSC$20317_getScreenByPollingPairingCode=function(G,c,I,R,Z,K){var m=this;this.info("getDialScreenByPairingCode "+G+" / "+c);var a=new zIg(this.JSC$20315_http_,G,c,I,R);a.subscribe("pairingComplete",function(O,N){_.TB(a);Z(qz(m,O),N)});
a.subscribe("pairingFailed",function(O){_.TB(a);K(O)});
a.start();return(0,_.WD)(a.stop,a)};
var dJG=function(G,c){for(var I=G.screens.length,R=0;R<I;++R)if(G.screens[R].name==c)return G.screens[R];return null};
j$.prototype.JSC$20317_getScreenByPairingCode=function(G,c,I,R){_.$6(Ea(this.JSC$20315_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:G},timeout:5E3,onSuccess:(0,_.WD)(function(Z,K){Z=new Mr(K.screen||{});if(!Z.name||dJG(this,Z.name)){a:{K=Z.name;for(var m=2,a=c(K,m);dJG(this,a);){m++;if(m>20)break a;a=c(K,m)}K=a}Z.name=K}I(qz(this,Z))},this),
onError:(0,_.WD)(function(Z){R(Error("el`"+Z.status))},this),
onTimeout:(0,_.WD)(function(){R(Error("fl"))},this)})};
var Cod=function(G,c,I){rDu(G.onlineScreenService_,c,I)};
j$.prototype.disposeInternal=function(){_.TB(this.localScreenService_);_.TB(this.onlineScreenService_);j$.superClass_.disposeInternal.call(this)};
var tw0=function(G,c,I,R){G.info("requestLoungeToken_ for "+c);var Z={postParams:{screen_ids:c},method:"POST",context:G,onSuccess:function(K,m){K=m&&m.screens||[];K[0]&&K[0].screenId==c?I(K[0].loungeToken):R(Error("gl"))},
onError:function(){R(Error("hl"))}};
_.$6(Ea(G.JSC$20315_http_,"/pairing/get_lounge_token_batch"),Z)},HPr=function(G){G.screens=G.localScreenService_.getScreens();
for(var c=_.rx.transpose(G.deviceToScreenId_),I=G.screens.length,R=0;R<I;++R){var Z=G.screens[R];Z.uuid=c[Z.id]||""}G.info("Updated manual screens: "+CJd(G.screens))};
j$.prototype.handleScreenChange_=function(){HPr(this);this.publish("screenChange");this.onlineScreenService_.update()};
var HM1=function(G){X3W(G);G.localScreenService_=new r_(G.JSC$20315_http_);G.localScreenService_.subscribe("screenChange",(0,_.WD)(G.handleScreenChange_,G));HPr(G);G.disableAutomaticScreenCache_||(G.automaticScreens_=ADu(_.ka("yt-remote-automatic-screen-cache")||[]));X3W(G);G.info("Initializing automatic screens: "+CJd(G.automaticScreens_));G.onlineScreenService_=new l4(G.JSC$20315_http_,(0,_.WD)(G.getScreens,G,!0));G.onlineScreenService_.subscribe("screenChange",(0,_.WD)(function(){this.publish("onlineScreenChange")},
G))},qz=function(G,c){var I=G.get(c.id);
I?(I.uuid=c.uuid,c=I):((I=VE(G.automaticScreens_,c.uuid))?(I.id=c.id,I.token=c.token,c=I):G.automaticScreens_.push(c),G.disableAutomaticScreenCache_||yD1(G));X3W(G);G.deviceToScreenId_[c.uuid]=c.id;_.bu("yt-remote-device-id-map",G.deviceToScreenId_,31536E3);return c},yD1=function(G){G=_.qO(G.automaticScreens_,function(c){return c.idType!="shortLived"});
_.bu("yt-remote-automatic-screen-cache",_.jB(G,si7))},X3W=function(G){G.deviceToScreenId_=_.ka("yt-remote-device-id-map")||{}};
j$.prototype.dispose=j$.prototype.dispose;_.eg(xQ,_.TA);var wk=function(G,c){G.screen_=c;G.publish("sessionScreen",G.screen_)},gjW=function(G,c){G.screen_&&(G.screen_.token=c,qz(G.JSC$20319_screenService_,G.screen_));
G.publish("sessionScreen",G.screen_)};
xQ.prototype.onSessionStopped=function(G){this.isDisposed()||(G&&(Fv(this,""+G),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
xQ.prototype.info=function(G){WP(this.JSC$20319_logName_,G)};
var Fv=function(G,c){WP(G.JSC$20319_logName_,c)};
xQ.prototype.JSC$20321_getCastSession=function(){return null};
xQ.prototype.setDisplayStatus=function(G){var c=this.receiver_;G?(c.displayStatus=new chrome.cast.ReceiverDisplayStatus(G,[]),c.displayStatus.showStop=!0):c.displayStatus=null;chrome.cast.setReceiverDisplayStatus(c,(0,_.WD)(function(){this.info("Updated receiver status for "+c.friendlyName+": "+G)},this),(0,_.WD)(function(){Fv(this,"Failed to update receiver status for: "+c.friendlyName)},this))};
xQ.prototype.disposeInternal=function(){this.setDisplayStatus("");xQ.superClass_.disposeInternal.call(this)};var nX=function(G,c,I){xQ.call(this,G,c,"CastSession");var R=this;this.config_=I;this.JSC$20324_session_=null;this.JSC$20324_boundSessionUpdate_=(0,_.WD)(this.JSC$20326_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.WD)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.k6(function(){YDu(R,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20324_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20324_isInitLoungeToken_=!1;this.JSC$20324_lastLoungeTokenRefreshError_="unknown"};
_.u(nX,xQ);_.P=nX.prototype;
_.P.setCastSession=function(G){if(this.JSC$20324_session_){if(this.JSC$20324_session_==G)return;Fv(this,"Overriding cast session with new session object");Ghg(this);this.JSC$20324_isInitLoungeToken_=!1;this.JSC$20324_lastLoungeTokenRefreshError_="unknown";this.JSC$20324_session_.removeUpdateListener(this.JSC$20324_boundSessionUpdate_);this.JSC$20324_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20324_session_=G;this.JSC$20324_session_.addUpdateListener(this.JSC$20324_boundSessionUpdate_);this.JSC$20324_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);cSF(this,"getMdxSessionStatus")};
_.P.launchWithParams=function(G){this.info("launchWithParams no-op for Cast: "+(0,_.HL)(G))};
_.P.stop=function(){if(this.JSC$20324_session_)this.JSC$20324_session_.stop((0,_.WD)(function(){this.onSessionStopped()},this),(0,_.WD)(function(){this.onSessionStopped(Error("il"))},this));
else this.onSessionStopped(Error("jl"))};
_.P.setDisplayStatus=function(){};
_.P.disposeInternal=function(){this.info("disposeInternal");Ghg(this);this.JSC$20324_session_&&(this.JSC$20324_session_.removeUpdateListener(this.JSC$20324_boundSessionUpdate_),this.JSC$20324_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20324_session_=null;xQ.prototype.disposeInternal.call(this)};
var Rvu=function(G,c){_.L4(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0;c==0?IKF(G):G.getLoungeTokenTimeoutKey_=_.k6(function(){IKF(G)},c)},IKF=function(G){cSF(G,"getLoungeToken");
_.L4(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=_.k6(function(){Zoj(G,null)},3E4)},cSF=function(G,c){G.info("sendYoutubeMessage_: "+c+" "+(0,_.HL)(void 0));
var I={};I.type=c;G.JSC$20324_session_?G.JSC$20324_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",I,function(){},(0,_.WD)(function(){Fv(this,"Failed to send message: "+c+".")},G)):Fv(G,"Sending yt message without session: "+(0,_.HL)(I))};
nX.prototype.onYoutubeMessage_=function(G,c){if(!this.isDisposed())if(c)if(c=(0,_.vq)(c),_.db(c))switch(G=""+c.type,c=c.data||{},this.info("onYoutubeMessage_: "+G+" "+(0,_.HL)(c)),G){case "mdxSessionStatus":YDu(this,c);break;case "loungeToken":Zoj(this,c);break;default:Fv(this,"Unknown youtube message: "+G)}else Fv(this,"Unable to parse message.");else Fv(this,"No data in message.")};
var Kkd=function(G,c){if(c)G.info("onConnectedScreenId_: Received screenId: "+c),G.screen_&&G.screen_.id==c||G.getScreen_(c,function(I){wk(G,I)},function(){return G.onSessionStopped()},5);
else G.onSessionStopped(Error("kl"))},Qcr=function(G,c,I){G.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(c));
var R=new Mr(c);PSF(G,R,function(Z){Z?(G.JSC$20324_isInitLoungeToken_=!0,qz(G.JSC$20319_screenService_,R),wk(G,R),G.JSC$20324_lastLoungeTokenRefreshError_="unknown",Rvu(G,I)):(_.yL(Error("ll`"+JSON.stringify(c))),G.onSessionStopped())},5)},YDu=function(G,c){_.L4(G.sessionStatusTimeoutKey_);
G.sessionStatusTimeoutKey_=0;if(c)G.config_.enableCastLoungeToken&&c.loungeToken?c.deviceId?G.screen_&&G.screen_.uuid==c.deviceId||(c.loungeTokenRefreshIntervalMs?Qcr(G,{name:G.receiver_.friendlyName,screenId:c.screenId,loungeToken:c.loungeToken,dialId:c.deviceId,screenIdType:"shortLived"},c.loungeTokenRefreshIntervalMs):(_.yL(Error("nl`"+JSON.stringify(c))),Kkd(G,c.screenId))):(_.yL(Error("ml`"+JSON.stringify(c))),Kkd(G,c.screenId)):Kkd(G,c.screenId);else G.onSessionStopped(Error("kl"))},Zoj=function(G,
c){_.L4(G.onLoungeTokenTimeoutKey_);
G.onLoungeTokenTimeoutKey_=0;var I=null;if(c)if(c.loungeToken){var R;((R=G.screen_)==null?void 0:R.token)==c.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";else I="noLoungeTokenResponse";I?(G.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(c)+", error: "+I)),G.JSC$20324_lastLoungeTokenRefreshError_=I,Rvu(G,3E4)):(gjW(G,c.loungeToken),G.JSC$20324_isInitLoungeToken_=!1,G.JSC$20324_lastLoungeTokenRefreshError_="unknown",Rvu(G,c.loungeTokenRefreshIntervalMs))};
nX.prototype.getScreen_=function(G,c,I,R){_.L4(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;hIH(this.JSC$20319_screenService_,this.receiver_.label,G,this.receiver_.friendlyName,(0,_.WD)(function(Z){Z?c(Z):R>=0?(Fv(this,"Screen "+G+" appears to be offline. "+R+" retries left."),this.getScreenTimeoutKey_=_.k6((0,_.WD)(this.getScreen_,this,G,c,I,R-1),300)):I(Error("ol"))},this),I)};
var PSF=function(G,c,I,R){_.L4(G.JSC$20324_checkScreenAvailabilityTimeoutKey_);G.JSC$20324_checkScreenAvailabilityTimeoutKey_=0;Cod(G.JSC$20319_screenService_,c,function(Z){Z||R<0?I(Z):G.JSC$20324_checkScreenAvailabilityTimeoutKey_=_.k6(function(){PSF(G,c,I,R-1)},300)})};
nX.prototype.JSC$20321_getCastSession=function(){return this.JSC$20324_session_};
nX.prototype.JSC$20326_onSessionUpdate_=function(G){this.isDisposed()||G||(Fv(this,"Cast session died."),this.onSessionStopped())};
var Ghg=function(G){_.L4(G.getScreenTimeoutKey_);G.getScreenTimeoutKey_=0;_.L4(G.JSC$20324_checkScreenAvailabilityTimeoutKey_);G.JSC$20324_checkScreenAvailabilityTimeoutKey_=0;_.L4(G.sessionStatusTimeoutKey_);G.sessionStatusTimeoutKey_=0;_.L4(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=0;_.L4(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0};var vJ=function(G,c,I,R){xQ.call(this,G,c,"DialSession");this.config_=R;this.JSC$20328_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20328_theme_=I;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20328_deferredLaunchDeadlineTimer_=NaN;this.JSC$20328_boundSessionUpdate_=(0,_.WD)(this.JSC$20330_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20328_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20328_isInitLoungeToken_=!1;this.JSC$20328_lastLoungeTokenRefreshError_="unknown"};
_.u(vJ,xQ);vJ.prototype.setCastSession=function(G){this.JSC$20328_session_=G;this.JSC$20328_session_.addUpdateListener(this.JSC$20328_boundSessionUpdate_)};
vJ.prototype.launchWithParams=function(G){this.connectData_=G;this.deferredLaunch_()};
vJ.prototype.stop=function(){mW$(this);if(this.JSC$20328_session_)this.JSC$20328_session_.stop((0,_.WD)(this.onSessionStopped,this,null),(0,_.WD)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
vJ.prototype.disposeInternal=function(){mW$(this);this.JSC$20328_session_&&this.JSC$20328_session_.removeUpdateListener(this.JSC$20328_boundSessionUpdate_);this.JSC$20328_session_=null;xQ.prototype.disposeInternal.call(this)};
var aKG=function(G){var c;return!!(G.config_.enableDialLoungeToken&&((c=G.JSC$20328_session_)==null?0:c.getDialAppInfo))},Oou=function(G){G.cancelPolling_=G.JSC$20319_screenService_.JSC$20317_getScreenByPollingPairingCode(G.reversePairingCode_,G.receiver_.label,G.receiver_.friendlyName,aKG(G),function(c,I){G.cancelPolling_=function(){};
G.JSC$20328_isInitLoungeToken_=!0;wk(G,c);c.idType=="shortLived"&&I>0&&TWF(G,I)},function(c){G.cancelPolling_=function(){};
G.onSessionStopped(c)})};
vJ.prototype.JSC$20330_onSessionUpdate_=function(G){this.isDisposed()||G||(Fv(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var ev1=function(G){var c={};c.pairingCode=G.reversePairingCode_;c.theme=G.JSC$20328_theme_;MXW()&&(c.env_useStageMdx=1);return _.SA(c)},NWj=function(G){return new Promise(function(c){G.reversePairingCode_=q_F();
if(G.connectData_){var I=new chrome.cast.DialLaunchResponse(!0,ev1(G));c(I);Oou(G)}else G.deferredLaunch_=function(){_.L4(G.JSC$20328_deferredLaunchDeadlineTimer_);G.deferredLaunch_=function(){};
G.JSC$20328_deferredLaunchDeadlineTimer_=NaN;var R=new chrome.cast.DialLaunchResponse(!0,ev1(G));c(R);Oou(G)},G.JSC$20328_deferredLaunchDeadlineTimer_=_.k6(function(){G.deferredLaunch_()},100)})},qvu=function(G,c,I){G.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(c));
var R=new Mr(c);return(new Promise(function(Z){lK7(G,R,function(K){K?(G.JSC$20328_isInitLoungeToken_=!0,qz(G.JSC$20319_screenService_,R),wk(G,R),TWF(G,I)):_.yL(Error("ql`"+JSON.stringify(c)));Z(K)},5)})).then(function(Z){return Z?new chrome.cast.DialLaunchResponse(!1):NWj(G)})},w2F=function(G,c){var I=G.launchData_.receiver.label,R=G.receiver_.friendlyName;
return(new Promise(function(Z){hIH(G.JSC$20319_screenService_,I,c,R,function(K){K&&K.token&&wk(G,K);Z(K)},function(K){Fv(G,"Failed to get DIAL screen: "+K);
Z(null)})})).then(function(Z){return Z&&Z.token?new chrome.cast.DialLaunchResponse(!1):NWj(G)})},lK7=function(G,c,I,R){_.L4(G.JSC$20328_checkScreenAvailabilityTimeoutKey_);
G.JSC$20328_checkScreenAvailabilityTimeoutKey_=0;Cod(G.JSC$20319_screenService_,c,function(Z){Z||R<0?I(Z):G.JSC$20328_checkScreenAvailabilityTimeoutKey_=_.k6(function(){lK7(G,c,I,R-1)},300)})},TWF=function(G,c){G.info("getDialAppInfoWithTimeout_ "+c);
aKG(G)&&(_.L4(G.getDialAppInfoTimeoutKey_),G.getDialAppInfoTimeoutKey_=0,c==0?Fk$(G):G.getDialAppInfoTimeoutKey_=_.k6(function(){Fk$(G)},c))},Fk$=function(G){aKG(G)&&G.JSC$20328_session_.getDialAppInfo(function(c){G.info("getDialAppInfo dialLaunchData: "+JSON.stringify(c));
c=c.extraData||{};var I=null;if(c.loungeToken){var R;((R=G.screen_)==null?void 0:R.token)==c.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";I?(G.JSC$20328_lastLoungeTokenRefreshError_=I,TWF(G,3E4)):(G.JSC$20328_isInitLoungeToken_=!1,G.JSC$20328_lastLoungeTokenRefreshError_="unknown",gjW(G,c.loungeToken),TWF(G,c.loungeTokenRefreshIntervalMs))},function(c){G.info("getDialAppInfo error: "+c);
G.JSC$20328_lastLoungeTokenRefreshError_="noLoungeTokenResponse";TWF(G,3E4)})},mW$=function(G){_.L4(G.JSC$20328_checkScreenAvailabilityTimeoutKey_);
G.JSC$20328_checkScreenAvailabilityTimeoutKey_=0;_.L4(G.getDialAppInfoTimeoutKey_);G.getDialAppInfoTimeoutKey_=0;G.cancelPolling_();G.cancelPolling_=function(){};
_.L4(G.JSC$20328_deferredLaunchDeadlineTimer_)};var D7=function(G,c){xQ.call(this,G,c,"ManualSession");this.JSC$20332_deferredLaunchDeadlineTimer_=_.k6((0,_.WD)(this.launchWithParams,this,null),150)};
_.u(D7,xQ);D7.prototype.stop=function(){this.onSessionStopped()};
D7.prototype.setCastSession=function(){};
D7.prototype.launchWithParams=function(){_.L4(this.JSC$20332_deferredLaunchDeadlineTimer_);this.JSC$20332_deferredLaunchDeadlineTimer_=NaN;var G=VE(this.JSC$20319_screenService_.getScreens(),this.receiver_.label);if(G)wk(this,G);else this.onSessionStopped(Error("rl"))};
D7.prototype.disposeInternal=function(){_.L4(this.JSC$20332_deferredLaunchDeadlineTimer_);this.JSC$20332_deferredLaunchDeadlineTimer_=NaN;xQ.prototype.disposeInternal.call(this)};var Cw=function(G,c){_.TA.call(this);this.config_=c;this.JSC$20335_screenService_=G;this.JSC$20335_appId_=c.appId||"233637DE";this.JSC$20335_theme_=c.theme||"cl";this.disableDial_=c.disableCastApi||!1;this.forceMirroring_=c.forceMirroring||!1;this.JSC$20335_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.WD)(this.onReceiverAction_,this)};
_.u(Cw,_.TA);
Cw.prototype.init=function(G,c){chrome.cast.timeout.requestSession=3E4;var I=new chrome.cast.SessionRequest(this.JSC$20335_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.v("desktop_enable_cast_connect")&&(I.androidReceiverCompatible=!0);this.disableDial_||(I.dialRequest=new chrome.cast.DialRequest("YouTube"));var R=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;G=G||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Z=(0,_.WD)(this.onReceiverUpdated_,
this);I=new chrome.cast.ApiConfig(I,(0,_.WD)(this.onSessionEstablished_,this),Z,R,G);I.customDialLaunchCallback=(0,_.WD)(this.onDialLaunchRequested_,this);chrome.cast.initialize(I,(0,_.WD)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),BG0(),this.JSC$20335_screenService_.subscribe("onlineScreenChange",(0,_.WD)(this.JSC$20337_onScreenChange_,this)),this.customReceivers_=n_$(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.WD)(function(K){this.warn_("Failed to set initial custom receivers: "+(0,_.HL)(K))},this)),this.publish("yt-remote-cast2-availability-change",v_W(this)),c(!0))},this),(0,_.WD)(function(K){this.warn_("Failed to initialize API: "+(0,_.HL)(K));
c(!1)},this))};
Cw.prototype.setConnectedScreenStatus=function(G,c){oL("Setting connected screen ID: "+G+" -> "+c);if(this.JSC$20335_session_){var I=this.JSC$20335_session_.screen_;if(!G||I&&I.id!=G)oL("Unsetting old screen status: "+this.JSC$20335_session_.receiver_.friendlyName),U5(this,null)}if(G&&c){if(!this.JSC$20335_session_){G=VE(this.JSC$20335_screenService_.getScreens(),G);if(!G){oL("setConnectedScreenStatus: Unknown screen.");return}if(G.idType=="shortLived"){oL("setConnectedScreenStatus: Screen with id type to be short lived.");
return}I=DWr(this,G);I||(oL("setConnectedScreenStatus: Connected receiver not custom..."),I=new chrome.cast.Receiver(G.uuid?G.uuid:G.id,G.name),I.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(I),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.WD)(function(R){this.warn_("Failed to set initial custom receivers: "+(0,_.HL)(R))},this)));
oL("setConnectedScreenStatus: new active receiver: "+I.friendlyName);U5(this,new D7(this.JSC$20335_screenService_,I),!0)}this.JSC$20335_session_.setDisplayStatus(c)}else oL("setConnectedScreenStatus: no screen.")};
var DWr=function(G,c){return c?_.Mf(G.customReceivers_,function(I){return nXu(c,I.label)},G):null};
Cw.prototype.setLaunchParams=function(G){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20335_session_?this.JSC$20335_session_.launchWithParams(G):this.warn_("Setting connection data without a session")};
Cw.prototype.JSC$20337_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20335_session_?(this.JSC$20335_session_.stop(),U5(this,null)):oL("Stopping non-existing session")};
Cw.prototype.requestSession=function(){chrome.cast.requestSession((0,_.WD)(this.onSessionEstablished_,this),(0,_.WD)(this.onSessionRequestFailed_,this))};
Cw.prototype.disposeInternal=function(){this.JSC$20335_screenService_.unsubscribe("onlineScreenChange",(0,_.WD)(this.JSC$20337_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.rb(_.Yc("yt.mdx.remote.debug.handlers_")||[],WGd);_.TB(this.JSC$20335_session_);_.TA.prototype.disposeInternal.call(this)};
var oL=function(G){WP("Controller",G)};
Cw.prototype.warn_=function(G){WP("Controller",G)};
var WGd=function(G){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(G)},v_W=function(G){return G.hasCastReceiver_||!!G.customReceivers_.length||!!G.JSC$20335_session_},U5=function(G,c,I){c!=G.JSC$20335_session_&&(_.TB(G.JSC$20335_session_),(G.JSC$20335_session_=c)?(I?G.publish("yt-remote-cast2-receiver-resumed",c.receiver_):G.publish("yt-remote-cast2-receiver-selected",c.receiver_),c.subscribe("sessionScreen",(0,_.WD)(G.onSessionScreen_,G,c)),c.subscribe("sessionFailed",
function(){return o_j(G,c)}),c.screen_?G.publish("yt-remote-cast2-session-change",c.screen_):I&&G.JSC$20335_session_.launchWithParams(null)):G.publish("yt-remote-cast2-session-change",null))},o_j=function(G,c){G.JSC$20335_session_==c&&G.publish("yt-remote-cast2-session-failed")};
_.P=Cw.prototype;_.P.onSessionScreen_=function(G,c){this.JSC$20335_session_==G&&(c||U5(this,null),this.publish("yt-remote-cast2-session-change",c))};
_.P.onReceiverAction_=function(G,c){if(!this.isDisposed())if(G)switch(G.friendlyName=chrome.cast.unescape(G.friendlyName),oL("onReceiverAction_ "+G.label+" / "+G.friendlyName+"-- "+c),c){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20335_session_)if(this.JSC$20335_session_.receiver_.label!=G.label)oL("onReceiverAction_: Stopping active receiver: "+this.JSC$20335_session_.receiver_.friendlyName),this.JSC$20335_session_.stop();else{oL("onReceiverAction_: Casting to active receiver.");this.JSC$20335_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20335_session_.screen_);break}switch(G.receiverType){case chrome.cast.ReceiverType.CUSTOM:U5(this,new D7(this.JSC$20335_screenService_,G));break;case chrome.cast.ReceiverType.DIAL:U5(this,new vJ(this.JSC$20335_screenService_,G,this.JSC$20335_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:U5(this,new nX(this.JSC$20335_screenService_,G,this.config_));break;default:this.warn_("Unknown receiver type: "+G.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20335_session_&&
this.JSC$20335_session_.receiver_.label==G.label?this.JSC$20335_session_.stop():this.warn_("Stopping receiver w/o session: "+G.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.P.onDialLaunchRequested_=function(G){if(this.isDisposed())return Promise.reject(Error("sl"));var c=G.receiver;c.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+c.friendlyName),c.receiverType=chrome.cast.ReceiverType.DIAL);var I=this.JSC$20335_session_?this.JSC$20335_session_.receiver_:null;if(!I||I.label!=c.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+c.friendlyName),Promise.reject(Error("tl"));if(I&&I.label==c.label&&I.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20335_session_.screen_)return oL("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20335_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+I.receiverType+'" to "dial" for '+c.friendlyName);U5(this,new vJ(this.JSC$20335_screenService_,c,this.JSC$20335_theme_,this.config_))}c=this.JSC$20335_session_;c.launchData_=G;c.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(G=c.launchData_.extraData||{},I=G.screenId||null,aKG(c)&&G.loungeToken?G.loungeTokenRefreshIntervalMs?G=qvu(c,{name:c.receiver_.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:c.launchData_.receiver.label,screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(_.yL(Error("pl`"+JSON.stringify(G))),G=w2F(c,I)):G=w2F(c,I)):G=NWj(c);return G};
_.P.onSessionEstablished_=function(G){var c=this;if(!this.isDisposed()&&!this.forceMirroring_){oL("New cast session ID: "+G.sessionId);var I=G.receiver;if(I.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20335_session_)if(I.receiverType==chrome.cast.ReceiverType.CAST)oL("Got resumed cast session before resumed mdx connection."),I.friendlyName=chrome.cast.unescape(I.friendlyName),U5(this,new nX(this.JSC$20335_screenService_,I,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var R=this.JSC$20335_session_.receiver_,Z=VE(this.JSC$20335_screenService_.getScreens(),R.label);Z&&nXu(Z,I.label)&&R.receiverType!=chrome.cast.ReceiverType.CAST&&I.receiverType==chrome.cast.ReceiverType.CAST&&(oL("onSessionEstablished_: manual to cast session change "+I.friendlyName),_.TB(this.JSC$20335_session_),this.JSC$20335_session_=new nX(this.JSC$20335_screenService_,I,this.config_),this.JSC$20335_session_.subscribe("sessionScreen",(0,_.WD)(this.onSessionScreen_,this,this.JSC$20335_session_)),
this.JSC$20335_session_.subscribe("sessionFailed",function(){return o_j(c,c.JSC$20335_session_)}),this.JSC$20335_session_.launchWithParams(null));
this.JSC$20335_session_.setCastSession(G)}}};
_.P.JSC$20337_getCastSession=function(){return this.JSC$20335_session_?this.JSC$20335_session_.JSC$20321_getCastSession():null};
_.P.onSessionRequestFailed_=function(G){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.HL)(G)),G.code!=chrome.cast.ErrorCode.CANCEL&&U5(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.P.onReceiverUpdated_=function(G){oL("Receiver availability updated: "+G);if(!this.isDisposed()){var c=v_W(this);this.hasCastReceiver_=G==chrome.cast.ReceiverAvailability.AVAILABLE;v_W(this)!=c&&this.publish("yt-remote-cast2-availability-change",v_W(this))}};
var n_$=function(G){var c=G.JSC$20335_screenService_.JSC$20317_getOnlineScreens(),I=G.JSC$20335_session_&&G.JSC$20335_session_.receiver_;G=_.jB(c,function(R){I&&nXu(R,I.label)&&(I=null);var Z=R.uuid?R.uuid:R.id,K=DWr(this,R);K?(K.label=Z,K.friendlyName=R.name):(K=new chrome.cast.Receiver(Z,R.name),K.receiverType=chrome.cast.ReceiverType.CUSTOM);return K},G);
I&&(I.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(I=new chrome.cast.Receiver(I.label,I.friendlyName),I.receiverType=chrome.cast.ReceiverType.CUSTOM),G.push(I));return G};
Cw.prototype.JSC$20337_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=n_$(this),oL("Updating custom receivers: "+(0,_.HL)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.WD)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",v_W(this)))};
Cw.prototype.setLaunchParams=Cw.prototype.setLaunchParams;Cw.prototype.setConnectedScreenStatus=Cw.prototype.setConnectedScreenStatus;Cw.prototype.stopSession=Cw.prototype.JSC$20337_stopSession;Cw.prototype.getCastSession=Cw.prototype.JSC$20337_getCastSession;Cw.prototype.requestSession=Cw.prototype.requestSession;Cw.prototype.init=Cw.prototype.init;Cw.prototype.dispose=Cw.prototype.dispose;var UWj=_.I3(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),NI$=[],IkF=_.D3(UWj);var uS1=function(G){G.audioTrackId=null;G.trackData=null;G.playerState=-1;G.hasPrevious=!1;G.hasNext=!1;G.playerTime_=0;G.playerTimeAt_=_.OH();G.seekableStart_=0;G.seekableEnd_=0;G.duration_=0;G.loadedTime=0;G.liveIngestionTime_=NaN;G.isLive_=!1};
_.P=HP.prototype;
_.P.reset=function(G){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;G&&(this.index=G.index,this.listId=G.listId,this.videoId=G.videoId,this.playerState=G.playerState,this.volume=G.volume,this.muted=G.muted,this.audioTrackId=G.audioTrackId,this.trackData=G.trackData,this.hasPrevious=G.hasPrevious,this.hasNext=G.hasNext,this.playerTime_=G.playerTime,this.playerTimeAt_=G.playerTimeAt,this.seekableStart_=G.seekableStart,this.seekableEnd_=G.seekableEnd,this.duration_=G.duration,this.loadedTime=
G.loadedTime,this.liveIngestionTime_=G.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.P.stopPlayer=function(){this.index=-1;this.videoId="";uS1(this)};
_.P.isPlaying=function(){return this.playerState==1};
_.P.isBuffering=function(){return this.playerState==3};
_.P.isAdPlaying=function(){return this.playerState==1081};
var u4=function(G,c){G.playerTime_=c;G.playerTimeAt_=_.OH()},boj=function(G){switch(G.playerState){case 1:case 1081:return(_.OH()-G.playerTimeAt_)/1E3+G.playerTime_;
case -1E3:return 0}return G.playerTime_};
HP.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.OH()-this.playerTimeAt_)/1E3:0):this.duration_};
var khW=function(G,c,I){var R=G.videoId;G.videoId=c;G.index=I;c!=R&&uS1(G)},sc$=function(G){var c={};
c.index=G.index;c.listId=G.listId;c.videoId=G.videoId;c.playerState=G.playerState;c.volume=G.volume;c.muted=G.muted;c.audioTrackId=G.audioTrackId;c.trackData=_.rx.unsafeClone(G.trackData);c.hasPrevious=G.hasPrevious;c.hasNext=G.hasNext;c.playerTime=G.playerTime_;c.playerTimeAt=G.playerTimeAt_;c.seekableStart=G.seekableStart_;c.seekableEnd=G.seekableEnd_;c.duration=G.duration_;c.loadedTime=G.loadedTime;c.liveIngestionTime=G.liveIngestionTime_;return c};
HP.prototype.clone=function(){return new HP(sc$(this))};var YQ=function(G,c){_.TA.call(this);var I=this;this.state_=0;this.connection_=G;this.contextSubscriptions_=[];this.actionQueue_=new ZM$;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.WD)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.WD)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.WD)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.WD)(this.onCloudviewAvailabilityChange_,this);var R=0;G?(R=G.getProxyState(),
R!=3&&(G.subscribe("proxyStateChange",this.setState_,this),Lku(this))):R=3;R!=0&&(c?this.setState_(R):_.k6(function(){I.setState_(R)},0));
(G=FVG())&&ASH(this,G);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.u(YQ,_.TA);YQ.prototype.getState=function(){return this.state_};
YQ.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
YQ.prototype.reconnect=function(){this.connection_.reconnect()};
var b4=function(G){return new HP(G.connection_.getPlayerContextData())};
_.P=YQ.prototype;_.P.play=function(){kU(this)?(this.castMedia_?this.castMedia_.play(null,_.EF,$WW(this,"play")):s5(this,"play"),Svu(this,1,boj(b4(this))),this.publish("remotePlayerChange")):LX(this,this.play)};
_.P.pause=function(){kU(this)?(this.castMedia_?this.castMedia_.pause(null,_.EF,$WW(this,"pause")):s5(this,"pause"),Svu(this,2,boj(b4(this))),this.publish("remotePlayerChange")):LX(this,this.pause)};
_.P.seekTo=function(G){if(kU(this)){if(this.castMedia_){var c=b4(this),I=new chrome.cast.media.SeekRequest;I.currentTime=G;c.isPlaying()||c.isBuffering()?I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(I,_.EF,$WW(this,"seekTo",{newTime:G}))}else s5(this,"seekTo",{newTime:G});Svu(this,3,G);this.publish("remotePlayerChange")}else LX(this,_.Ts(this.seekTo,G))};
_.P.stop=function(){if(kU(this)){this.castMedia_?this.castMedia_.stop(null,_.EF,$WW(this,"stopVideo")):s5(this,"stopVideo");var G=b4(this);G.stopPlayer();A9(this,G);this.publish("remotePlayerChange")}else LX(this,this.stop)};
_.P.setVolume=function(G,c){if(kU(this)){var I=b4(this);if(this.castSession_){if(I.volume!=G){var R=Math.round(G)/100;this.castSession_.setReceiverVolumeLevel(R,(0,_.WD)(function(){iF("set receiver volume: "+R)},this),(0,_.WD)(function(){this.warn_("failed to set receiver volume.")},this))}I.muted!=c&&this.castSession_.setReceiverMuted(c,(0,_.WD)(function(){iF("set receiver muted: "+c)},this),(0,_.WD)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Z={volume:G,
muted:c};I.volume!=-1&&(Z.delta=G-I.volume);s5(this,"setVolume",Z)}I.muted=c;I.volume=G;A9(this,I)}else LX(this,_.Ts(this.setVolume,G,c))};
_.P.setAudioTrack=function(G,c){kU(this)?(c=c.getLanguageInfo().getId(),s5(this,"setAudioTrack",{videoId:G,audioTrackId:c}),G=b4(this),G.audioTrackId=c,A9(this,G)):LX(this,_.Ts(this.setAudioTrack,G,c))};
_.P.addVideo=function(G){kU(this)?s5(this,"addVideo",{videoId:G}):LX(this,_.Ts(this.addVideo,G))};
_.P.addPlaylist=function(G){kU(this)?s5(this,"addVideos",{listId:G}):LX(this,_.Ts(this.addPlaylist,G))};
_.P.addVideos=function(G){G.length==0?this.warn_("Ignore add videos request due to empty list"):kU(this)?s5(this,"addVideos",{videoIds:G.join(",")}):LX(this,_.Ts(this.addVideos,G))};
_.P.JSC$20347_removeVideo=function(G){kU(this)?s5(this,"removeVideo",{videoId:G}):LX(this,_.Ts(this.JSC$20347_removeVideo,G))};
_.P.JSC$20347_insertVideo=function(G){kU(this)?s5(this,"insertVideo",{videoId:G}):LX(this,_.Ts(this.JSC$20347_insertVideo,G))};
_.P.playVideo=function(G,c,I,R,Z,K,m){R=R===void 0?null:R;Z=Z===void 0?null:Z;K=K===void 0?null:K;m=m===void 0?null:m;var a=b4(this),O={videoId:G};I!==void 0&&(O.currentIndex=I);khW(a,G,I||0);c!==void 0&&(u4(a,c),O.currentTime=c);R&&(O.listId=R);Z&&(O.playerParams=Z);K&&(O.clickTrackingParams=K);m&&(O.locationInfo=(0,_.HL)(m));s5(this,"setPlaylist",O);R||A9(this,a)};
_.P.nextVideo=function(G,c){if(kU(this)){if(G&&c){var I=b4(this);khW(I,G,c);A9(this,I)}s5(this,"next")}else LX(this,_.Ts(this.nextVideo,G,c))};
_.P.clearPlaylist=function(){if(kU(this)){s5(this,"clearPlaylist");var G=b4(this);G.reset();A9(this,G);this.publish("remotePlayerChange")}else LX(this,this.clearPlaylist)};
_.P.dispose=function(){if(this.state_!=3){var G=this.state_;this.state_=3;this.publish("proxyStateChange",G,this.state_)}_.TA.prototype.dispose.call(this)};
_.P.disposeInternal=function(){p2$(this);this.connection_=null;this.actionQueue_.clear();ASH(this,null);_.TA.prototype.disposeInternal.call(this)};
var Lku=function(G){_.K4("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(c){this.contextSubscriptions_.push(this.connection_.subscribe(c,_.Ts(this.onProxyEvent_,c),this))},G)},p2$=function(G){_.K4(G.contextSubscriptions_,function(c){this.connection_.unsubscribeByKey(c)},G);
G.contextSubscriptions_.length=0},kU=function(G){return G.getState()==1},LX=function(G,c){G.actionQueue_.getCount()<50&&G.actionQueue_.enqueue(c)},Svu=function(G,c,I){var R=b4(G);
u4(R,I);R.playerState!=-1E3&&(R.playerState=c);A9(G,R)},s5=function(G,c,I){G.connection_.sendMessage(c,I)},A9=function(G,c){p2$(G);
G.connection_.setPlayerContextData(sc$(c));Lku(G)};
YQ.prototype.setState_=function(G){if((G!=this.state_||G==2)&&this.state_!=3&&G!=0){var c=this.state_;this.state_=G;this.publish("proxyStateChange",c,G);if(G==1)for(;!this.actionQueue_.isEmpty();)G=this.actionQueue_,Kjg(G),G.front_.pop().apply(this);else G==3&&this.dispose()}};
YQ.prototype.onProxyEvent_=function(G,c){this.publish(G,c)};
var ASH=function(G,c){G.castSession_&&(G.castSession_.removeUpdateListener(G.boundCastStatusListener_),G.castSession_.removeMediaListener(G.boundCastMediaListener_),G.onCastMediaChange_(null));G.castSession_=c;if(G.castSession_&&(iF("Setting cast session: "+G.castSession_.sessionId),G.castSession_.addUpdateListener(G.boundCastStatusListener_),G.castSession_.addMediaListener(G.boundCastMediaListener_),G.castSession_.media.length))G.onCastMediaChange_(G.castSession_.media[0])};
YQ.prototype.onCastStatusUpdate_=function(G){if(!G)this.onCastMediaChange_(null),ASH(this,null);else if(this.castSession_.receiver.volume){G=this.castSession_.receiver.volume;var c=b4(this),I=Math.round(100*G.level||0);if(c.volume!=I||c.muted!=G.muted)iF("Cast volume update: "+G.level+(G.muted?" muted":"")),c.volume=I,c.muted=!!G.muted,A9(this,c)}};
YQ.prototype.onCastMediaChange_=function(G){iF("Cast media: "+!!G);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=G)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Mfg(this),this.publish("remotePlayerChange")};
var Mfg=function(G){var c=G.castMedia_.media,I=G.castMedia_.customData;if(c&&I){var R=b4(G);c.contentId!=R.videoId&&iF("Cast changing video to: "+c.contentId);R.videoId=c.contentId;R.playerState=I.playerState;u4(R,G.castMedia_.getEstimatedTime());A9(G,R)}else iF("No cast media video. Ignoring state update.")};
YQ.prototype.onCastMediaUpdate_=function(G){if(G)Mfg(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
YQ.prototype.onCloudviewAvailabilityChange_=function(){var G=FVG();G&&ASH(this,G)};
YQ.prototype.warn_=function(G){WP("CP",G)};
var $WW=function(G,c,I){return(0,_.WD)(function(R){this.warn_("Failed to "+c+" with cast v2 channel. Error code: "+R.code);R.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+c+" using MDx browser channel."),s5(this,c,I))},G)};var GS=function(G,c,I,R){R=R===void 0?!1:R;_.TA.call(this);var Z=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$20352_http_=G;this.enableConnectWithInitialState_=R;this.listeners_.push(_.Nb(window,"beforeunload",function(){Z.JSC$20355_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new HP;this.currentScreenId_=c.id;this.currentScreenIdType_=c.idType;this.channelService=JAd(this.JSC$20352_http_,I,this.JSC$20355_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Vfd(Z)});
this.channelService.listen("channelClosed",function(){$U("Channel closed");isNaN(Z.connectTimerId_)?S_u(!0):S_u();Z.dispose()});
this.channelService.listen("channelError",function(K){S_u();isNaN(Z.getReconnectTimeout_())?(K==1&&Z.currentScreenIdType_=="shortLived"&&Z.publish("browserChannelAuthError",K),$U("Channel error: "+K+" without reconnection"),Z.dispose()):(Z.reconnecting_=!0,$U("Channel error: "+K+" with reconnection in "+Z.getReconnectTimeout_()+" ms"),zvF(Z,2))});
this.channelService.listen("channelMessage",function(K){E_G(Z,K)});
this.channelService.setLoungeToken(c.token);this.subscribe("remoteQueueChange",function(){var K=Z.playerContext_.videoId;oXj()&&_.bu("yt-remote-session-video-id",K)})};
_.u(GS,_.TA);
GS.prototype.connect=function(G,c){if(c){var I=c.listId,R=c.videoId,Z=c.videoIds,K=c.playerParams,m=c.clickTrackingParams,a=c.index,O={videoId:R},N=c.currentTime,q=c.locationInfo;c=c.loopMode;N!==void 0&&(O.currentTime=N<=5?0:N);K&&(O.playerParams=K);q&&(O.locationInfo=q);m&&(O.clickTrackingParams=m);I&&(O.listId=I);Z&&Z.length>0&&(O.videoIds=Z.join(","));a!==void 0&&(O.currentIndex=a);this.enableConnectWithInitialState_&&(O.loopMode=c||"LOOP_MODE_OFF");I&&(this.playerContext_.listId=I);this.playerContext_.videoId=
R;this.playerContext_.index=a||0;this.playerContext_.state=3;u4(this.playerContext_,N);this.autoplayMode_="UNSUPPORTED";I=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";$U("Connecting with "+I+" and params: "+(0,_.HL)(O));this.channelService.connect({method:I,params:(0,_.HL)(O)},G,swg())}else $U("Connecting without params"),this.channelService.connect({},G,swg());JS7(this)};
GS.prototype.setLoungeToken=function(G){this.channelService.setLoungeToken(G)};
GS.prototype.dispose=function(){this.isDisposed()||(_.lr("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),zvF(this,3));_.TA.prototype.dispose.call(this)};
GS.prototype.disposeInternal=function(){Wk1(this);io0(this);fKg(this);_.L4(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.L4(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.UCA(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.TA.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var BW$=function(G){return _.Mf(G.connectedDevices_,function(c){return c.type=="LOUNGE_SCREEN"})},$U=function(G){WP("conn",G)},zvF=function(G,c){G.publish("proxyStateChange",c)},JS7=function(G){G.connectTimerId_=_.k6(function(){$U("Connecting timeout");
G.JSC$20355_disconnect_(1)},2E4)},Wk1=function(G){_.L4(G.connectTimerId_);
G.connectTimerId_=NaN},fKg=function(G){_.L4(G.reconnectedCheckScreenTimeout_);
G.reconnectedCheckScreenTimeout_=NaN},jcd=function(G){io0(G);
G.playingSyncTimerId_=_.k6(function(){rSj(G,"getNowPlaying")},2E4)},io0=function(G){_.L4(G.playingSyncTimerId_);
G.playingSyncTimerId_=NaN},Vfd=function(G){$U("Channel opened");
G.reconnecting_&&(G.reconnecting_=!1,fKg(G),G.reconnectedCheckScreenTimeout_=_.k6(function(){$U("Timing out waiting for a screen.");G.JSC$20355_disconnect_(1)},15E3))},tfg=function(G,c){var I=null;
if(c){var R=BW$(G);R&&(I={clientName:R.clientName,deviceMake:R.brand,deviceModel:R.model,osVersion:R.osVersion})}_.lr("yt.mdx.remote.remoteClient_",I);c&&(Wk1(G),fKg(G));I=G.channelService.isChannelOpened()&&isNaN(G.connectTimerId_);c==I?c&&(zvF(G,1),rSj(G,"getSubtitlesTrack")):c?(G.getOtherConnectedRemoteId_()&&G.playerContext_.reset(),zvF(G,1),rSj(G,"getNowPlaying"),xWg(G)):G.JSC$20355_disconnect_(1)},hv7=function(G,c){var I=c.params.videoId;
delete c.params.videoId;I==G.playerContext_.videoId&&(_.rx.isEmpty(c.params)?G.playerContext_.trackData=null:G.playerContext_.trackData=c.params,G.publish("remotePlayerChange"))},dW0=function(G,c,I){var R=c.params.videoId||c.params.video_id,Z=parseInt(c.params.currentIndex,10);
G.playerContext_.listId=c.params.listId||G.playerContext_.listId;khW(G.playerContext_,R,Z);G.publish("remoteQueueChange",I)},CS$=function(G,c){c.params=c.params||{};
dW0(G,c,"NOW_PLAYING_MAY_CHANGE");G.onStateChange_(c);G.publish("autoplayDismissed")};
GS.prototype.onStateChange_=function(G){var c=parseInt(G.params.currentTime||G.params.current_time,10);u4(this.playerContext_,isNaN(c)?0:c);c=parseInt(G.params.state,10);c=isNaN(c)?-1:c;c==-1&&this.playerContext_.playerState==-1E3&&(c=-1E3);this.playerContext_.playerState=c;c=Number(G.params.loadedTime);this.playerContext_.loadedTime=isNaN(c)?0:c;c=Number(G.params.duration);this.playerContext_.duration_=isNaN(c)?0:c;c=this.playerContext_;var I=Number(G.params.liveIngestionTime);c.liveIngestionTime_=
I;c.isLive_=isNaN(I)?!1:!0;c=this.playerContext_;I=Number(G.params.seekableStartTime);G=Number(G.params.seekableEndTime);c.seekableStart_=isNaN(I)?0:I;c.seekableEnd_=isNaN(G)?0:G;this.playerContext_.playerState==1?jcd(this):io0(this);this.publish("remotePlayerChange")};
GS.prototype.onAdStateChange_=function(G){if(this.playerContext_.playerState!=-1E3){var c=1085;switch(parseInt(G.params.adState,10)){case 1:c=1081;break;case 2:c=1084;break;case 0:c=1083}this.playerContext_.playerState=c;G=parseInt(G.params.currentTime,10);u4(this.playerContext_,isNaN(G)?0:G);this.publish("remotePlayerChange")}};
var HoW=function(G,c){var I=c.params.muted=="true";G.playerContext_.volume=parseInt(c.params.volume,10);G.playerContext_.muted=I;G.publish("remotePlayerChange")},X27=function(G,c){G.autoplayVideoId_=c.params.videoId;
G.publish("nowAutoplaying",parseInt(c.params.timeout,10))},ySj=function(G,c){G.autoplayVideoId_=c.params.videoId||null;
G.publish("autoplayUpNext",G.autoplayVideoId_)},g_j=function(G,c){G.autoplayMode_=c.params.autoplayMode;
G.publish("autoplayModeChange",G.autoplayMode_);G.autoplayMode_=="DISABLED"&&G.publish("autoplayDismissed")},Yv1=function(G,c){var I=c.params.hasNext=="true";
G.playerContext_.hasPrevious=c.params.hasPrevious=="true";G.playerContext_.hasNext=I;G.publish("previousNextChange")};
GS.prototype.isCapabilitySupportedOnConnectedDevices_=function(G){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var c=_.Q(this.connectedDevices_),I=c.next();!I.done;I=c.next())if(!I.value.capabilities.has(G))return!1;return!0};
var E_G=function(G,c){c=c.message;c.params?$U("Received: action="+c.action+", params="+(0,_.HL)(c.params)):$U("Received: action="+c.action+" {}");switch(c.action){case "loungeStatus":c=(0,_.vq)(c.params.devices);G.connectedDevices_=_.jB(c,function(R){return new Nz(R)});
c=!!_.Mf(G.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
tfg(G,c);c=G.isCapabilitySupportedOnConnectedDevices_("mlm");G.publish("multiStateLoopEnabled",c);break;case "loungeScreenDisconnected":Mk0(G.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
tfg(G,!1);break;case "remoteConnected":var I=new Nz((0,_.vq)(c.params.device));_.Mf(G.connectedDevices_,function(R){return R.equals(I)})||_.S00(G.connectedDevices_,I);
break;case "remoteDisconnected":I=new Nz((0,_.vq)(c.params.device));Mk0(G.connectedDevices_,function(R){return R.equals(I)});
break;case "gracefulDisconnect":break;case "playlistModified":dW0(G,c,"QUEUE_MODIFIED");break;case "nowPlaying":CS$(G,c);break;case "onStateChange":G.onStateChange_(c);break;case "onAdStateChange":G.onAdStateChange_(c);break;case "onVolumeChanged":HoW(G,c);break;case "onSubtitlesTrackChanged":hv7(G,c);break;case "nowAutoplaying":X27(G,c);break;case "autoplayDismissed":G.publish("autoplayDismissed");break;case "autoplayUpNext":ySj(G,c);break;case "onAutoplayModeChanged":g_j(G,c);break;case "onHasPreviousNextChanged":Yv1(G,
c);break;case "requestAssistedSignIn":G.publish("assistedSignInRequested",c.params.authCode);break;case "onLoopModeChanged":G.publish("loopModeChange",c.params.loopMode);break;default:$U("Unrecognized action: "+c.action)}};
_.P=GS.prototype;_.P.getProxyState_=function(){var G=3;this.isDisposed()||(G=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(G=1):G=2);return G};
_.P.JSC$20355_disconnect_=function(G){$U("Disconnecting with "+G);_.lr("yt.mdx.remote.remoteClient_",null);Wk1(this);this.publish("beforeDisconnect",G);G==1&&S_u();this.channelService.disconnect(G);this.dispose()};
_.P.getPlayerContextData_=function(){var G=this.playerContext_;this.clientVideoId_&&(G=this.playerContext_.clone(),khW(G,this.clientVideoId_,G.index));return sc$(G)};
_.P.setPlayerContextData_=function(G){var c=this,I=new HP(G);I.videoId&&I.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=I.videoId,_.L4(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.k6(function(){if(c.clientVideoId_){var Z=c.clientVideoId_;c.clientVideoId_=null;c.playerContext_.videoId!=Z&&rSj(c,"getNowPlaying")}},5E3));
var R=[];this.playerContext_.listId==I.listId&&this.playerContext_.videoId==I.videoId&&this.playerContext_.index==I.index||R.push("remoteQueueChange");this.playerContext_.playerState==I.playerState&&this.playerContext_.volume==I.volume&&this.playerContext_.muted==I.muted&&boj(this.playerContext_)==boj(I)&&(0,_.HL)(this.playerContext_.trackData)==(0,_.HL)(I.trackData)||R.push("remotePlayerChange");this.playerContext_.reset(G);_.K4(R,function(Z){this.publish(Z)},this)};
_.P.getOtherConnectedRemoteId_=function(){var G=this.channelService.getDeviceId(),c=_.Mf(this.connectedDevices_,function(I){return I.type=="REMOTE_CONTROL"&&I.id!=G});
return c?c.id:""};
_.P.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.P.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.P.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.P.JSC$20355_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var xWg=function(G){_.L4(G.idleDisconnectTimerId_);G.idleDisconnectTimerId_=_.k6(function(){G.JSC$20355_disconnect_(1)},864E5)},rSj=function(G,c,I){I?$U("Sending: action="+c+", params="+(0,_.HL)(I)):$U("Sending: action="+c);
G.channelService.sendMessage(c,I)};
GS.prototype.sendMessageWithUserAction_=function(G,c){rSj(this,G,c);xWg(this)};
GS.prototype.JSC$20355_getXsrfToken_=function(){var G=_.VU.get("SAPISID","")||_.VU.get("__Secure-1PAPISID",void 0)||"",c=_.VU.get("__Secure-3PAPISID","")||"";if(!G&&!c)return"";G=_.zr(_.zB(G),2);c=_.zr(_.zB(c),2);return _.zr(_.zB(","+G+","+c),2)};
GS.prototype.subscribe=GS.prototype.subscribe;GS.prototype.unsubscribeByKey=GS.prototype.unsubscribeByKey;GS.prototype.getProxyState=GS.prototype.getProxyState_;GS.prototype.disconnect=GS.prototype.JSC$20355_disconnect_;GS.prototype.getPlayerContextData=GS.prototype.getPlayerContextData_;GS.prototype.setPlayerContextData=GS.prototype.setPlayerContextData_;GS.prototype.getOtherConnectedRemoteId=GS.prototype.getOtherConnectedRemoteId_;GS.prototype.getReconnectTimeout=GS.prototype.getReconnectTimeout_;
GS.prototype.getAutoplayMode=GS.prototype.getAutoplayMode_;GS.prototype.getAutoplayVideoId=GS.prototype.getAutoplayVideoId_;GS.prototype.reconnect=GS.prototype.JSC$20355_reconnect_;GS.prototype.sendMessage=GS.prototype.sendMessageWithUserAction_;GS.prototype.getXsrfToken=GS.prototype.JSC$20355_getXsrfToken_;GS.prototype.isCapabilitySupportedOnConnectedDevices=GS.prototype.isCapabilitySupportedOnConnectedDevices_;var r7j=function(G){fw.call(this,"ScreenServiceProxy");this.instance_=G;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.WD)(this.JSC$20358_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.WD)(this.onOnlineScreenChange_,this)))};
_.u(r7j,fw);_.P=r7j.prototype;_.P.getScreens=function(G){return this.instance_.$_gs(G)};
_.P.contains=function(G){return!!this.instance_.$_c(G)};
_.P.get=function(G){return this.instance_.$_g(G)};
_.P.start=function(){this.instance_.$_st()};
_.P.add=function(G,c,I){this.instance_.$_a(G,c,I)};
_.P.remove=function(G,c,I){this.instance_.$_r(G,c,I)};
_.P.updateName=function(G,c,I,R){this.instance_.$_un(G,c,I,R)};
_.P.disposeInternal=function(){for(var G=this.subscriptionKeys_.length,c=0;c<G;++c)this.instance_.$_ubk(this.subscriptionKeys_[c]);this.subscriptionKeys_.length=0;this.instance_=null;fw.prototype.disposeInternal.call(this)};
_.P.JSC$20358_onScreenChange_=function(){this.publish("screenChange")};
_.P.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
j$.prototype.$_st=j$.prototype.start;j$.prototype.$_gspc=j$.prototype.JSC$20317_getScreenByPairingCode;j$.prototype.$_gsppc=j$.prototype.JSC$20317_getScreenByPollingPairingCode;j$.prototype.$_c=j$.prototype.contains;j$.prototype.$_g=j$.prototype.get;j$.prototype.$_a=j$.prototype.add;j$.prototype.$_un=j$.prototype.updateName;j$.prototype.$_r=j$.prototype.remove;j$.prototype.$_gs=j$.prototype.getScreens;j$.prototype.$_gos=j$.prototype.JSC$20317_getOnlineScreens;j$.prototype.$_s=j$.prototype.subscribe;
j$.prototype.$_ubk=j$.prototype.unsubscribeByKey;var Eog=null,xOd=!1,ooH=null,Xw=null,BI$=null,yE=[];var Gq0=new _.gJ("yt-menu"),cBg=function(){},RW7=function(G,c,I){G=c=="right-click"?I.rightClickMenuPopupHint:I.menuPopupHint;
if(!(I_d(c)>10))return c=c||"default",Gq0.set(c+"-impression",I_d(c)+1),G},I_d=function(G){return parseInt(Gq0.get((G||"default")+"-impression")||0,10)};
_.To(cBg);var ZrW=function(){this.contexts_=new WeakMap;this.JSC$20364_networkService_=this.activeContext_=null},K07=function(G,c,I){var R=G.contexts_.get(c);
R||(R=new mnj(G.JSC$20364_networkService_),G.contexts_.set(c,R));G.activeContext_=R;I&&G.activeContext_.reset();G.activeContext_.start();return G.activeContext_};var SF=function(){};
SF.prototype.enqueue=function(){var G=this,c;return _.T(function(I){if(G.isCounterfactual())return(c=G.getCounterfactualData())&&G.shouldLogCounterfactualImpression()&&G.sendImpressionEndpoints(c),I.return();G.doEnqueue();_.Vp(I)})};
SF.prototype.sendImpressionEndpoints=function(G){_.RD.getInstance().triggerOptionalAction("yt-service-request",{},G[0])};var pX=function(G,c){this.renderer=G;this.page=c};
_.u(pX,SF);pX.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
pX.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
pX.prototype.shouldLogCounterfactualImpression=function(){return!0};
pX.prototype.doEnqueue=function(){var G=_.R9(this.page);G&&G.pause();this.renderer.impressionCommand&&_.RD.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Rk(_.RD.getInstance(),[this.renderer.promoCommand],this.page)};var Ph$=function(G,c){this.renderer=G;this.resolver=_.HU();this.JSC$20376_enforcementCounter=new _.v$T;c?this.JSC$20376_playerManager=_.R9(c):this.JSC$20376_playerManager=null;_.ND(1,!0)};
_.u(Ph$,SF);_.P=Ph$.prototype;_.P.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var G=[];this.renderer.impressionEndpoints.forEach(function(c){(c=_.WI(c))&&G.push(c)});
return G}};
_.P.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.P.shouldLogCounterfactualImpression=function(){var G=_.MQ0();G?(this.JSC$20376_enforcementCounter.increment("POPUP"),_.ND(3)):_.ND(2);return G};
_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.doEnqueue=function(){var G=this;_.MQ0()?(this.JSC$20376_enforcementCounter.increment("POPUP"),_.ND(3),Q47(this)):this.JSC$20376_playerManager?(this.resolver.promise.then(function(){Q47(G)}),mc7(this.resolver,this.JSC$20376_playerManager)):_.ND(2)};
var mc7=function(G,c){var I=_.HU();c.getPlayerPromise().then(function(R){I.resolve(R)});
I.promise.then(function(R){R.addEventListener("onAbnormalityDetected",G.resolve);_.hE(G.promise,function(){R.removeEventListener("onAbnormalityDetected",G.resolve)})});
G.promise.thenCatch(function(){I.promise.cancel()})},Q47=function(G){_.ND(3);
var c={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:G.renderer}};c=_.RD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{});Promise.all(c).then(function(){a_$();G.JSC$20376_playerManager&&G.JSC$20376_playerManager.pause()})},a_$=function(){Fq0(function(G,c){_.tD0(G,c);
G===0?_.ND(7):_.ND(4)})};var TT7=function(G,c){this.renderer=G;this.page=c;this.resolver=_.HU()};
_.u(TT7,SF);_.P=TT7.prototype;_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var G=this;this.resolver.promise.then(function(){var I={popup:{mealbarPromoRenderer:G.renderer},popupType:"MEALBAR"};_.RD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:I},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var c=_.R9(this.page);c&&OrH(this.resolver,c)}break;default:this.resolver.resolve()}};
var OrH=function(G,c){var I=_.HU();c.getPlayerPromise().then(function(R){I.resolve(R)});
I.promise.then(function(R){R.addEventListener("onAdEnd",G.resolve);_.hE(G.promise,function(){R.removeEventListener("onAdEnd",G.resolve)})});
G.promise.thenCatch(function(){I.promise.cancel()})};var eWd=function(G,c){this.renderer=G;this.page=c};
_.u(eWd,SF);_.P=eWd.prototype;_.P.cancel=function(){this.JSC$20384_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20384_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20384_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var G=this,c,I;((c=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(I=c.playbackUpsellDialogTriggerConditionData)==null?void 0:I.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20384_downloadedVideosCountSelectorUnsubscriber=_.RM(_.y4(),q3u,function(R,Z){R>Z&&(NT1(G),G.cancel())}):NT1(this)};
var NT1=function(G){var c={popup:{upsellDialogRenderer:G.renderer},popupType:"MODAL"};_.RD.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{});(G=_.R9(G.page))&&G.pause()};var Mz={},l_u=(Mz.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Mz.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Mz.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Mz.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Mz.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Mz.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Mz.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Mz),q8u=function(G,c){this.renderer=G;this.targetManager=
c};
_.u(q8u,SF);_.P=q8u.prototype;_.P.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20391_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20391_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20391_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){if(this.isCounterfactual()){var G;return(G=this.renderer.promoConfig)==null?void 0:G.impressionEndpoints}};
_.P.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var G=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20391_downloadedVideosCountSelectorUnsubscriber=_.RM(_.y4(),q3u,function(c,I){G.renderer.targetId&&c>I&&($XW(G.targetManager,G.renderer.targetId,wcu(G)),G.cancel())});
break;default:$XW(this.targetManager,this.renderer.targetId,wcu(this))}};
var wcu=function(G){var c;if((c=G.renderer.suggestedPosition)==null?0:c.type)var I=l_u[G.renderer.suggestedPosition.type];I||(I="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:G.renderer},popupType:"HINT",position:I}}};var F00=function(){this.previousPage=null},nR1;
F00.prototype.registerPromoCommand=function(G,c){vRd(this,void 0,void 0,_.D(G.roadblock,XW$),void 0,void 0,c)};
var vRd=function(G,c,I,R,Z,K,m){G.previousPage!==m&&G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel();G.previousPage=m;Z?(G.pendingEnforcementPromo&&G.pendingEnforcementPromo.cancel(),G.pendingEnforcementPromo=new Ph$(Z,m),G.pendingEnforcementPromo.enqueue()):K?(G.pendingCommandWrapperPromo=new pX(K,m),G.pendingCommandWrapperPromo.enqueue()):R?(G.pendingRoadblockPromo&&G.pendingRoadblockPromo.cancel(),G.pendingRoadblockPromo=new eWd(R,m),G.pendingRoadblockPromo.enqueue()):c?(G.pendingMealbarPromo&&
G.pendingMealbarPromo.cancel(),G.pendingMealbarPromo=new TT7(c,m),G.pendingMealbarPromo.enqueue()):I&&(G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel(),G.pendingTooltipPromo=new q8u(I,_.gg()),G.pendingTooltipPromo.enqueue())},DcW=function(){nR1||(nR1=new F00);
return nR1};var CUF=!1;var Sc1=function(G,c){var I=_.H1("SESSION_INDEX");this.actionToken_=G;this.commonToken_=c;this.sessionIndex_=I},$pH=function(G){var c=_.HU(),I=_.Yc("payments.business.integration.bootstrap"),R=_.Yc("payments.business.integration"),Z=R.Style.create().withMaterialDesignStyle(),K=R.mashupMode.popup("instrument-manager");
I.asMashupMode(K).usingUserIndex(G.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Z).inStandaloneContext(R.standaloneContextAuthId.forUserId()).instrumentManager(G.actionToken_,G.commonToken_.length>0?G.commonToken_:void 0,function(m){var a=m.instrumentId;a?c.resolve(a):(a=_.Yc("payments.business.integration.scenario.InstrumentManager"),c.reject(m.errorCode&&m.errorCode===a.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(m){_.yL(m);
c.reject("instrumentManagerLoadError")});
return c.promise};var Io=function(G,c,I){this.payloadName="transactionFlowFailed";this.payload={errorType:G,serializedTransactionFlowLoggingParams:c,isUserDismiss:I===void 0?!1:I}};
_.lr("yt.ypc.shared.YpcTransactionFlowError",Io);var Vb=function(){return _.D4.apply(this,arguments)||this};
_.u(Vb,_.D4);Vb.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Vb.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Vb.prototype.onErrorMessageDismiss=Vb.prototype.onErrorMessageDismiss;_.r([_.E({readOnly:!0,observer:"errorRendererChanged"}),_.h("design:type",Object)],Vb.prototype,"errorRenderer",void 0);_.r([_.qY("yt-live-chat-error-message-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Vb.prototype,"onErrorMessageDismiss",null);_.r([_.Um()],Vb);var oR1=[Vb.prototype];var Ucd;var uzH;var br0=new _.gJ("yt-live-chat"),kq0=new Map;kq0.set("timestamp_toggle","show-timestamps");kq0.set("reactions_toggle","allow-reactions");var zt=function(){return _.J.apply(this,arguments)||this};
_.u(zt,_.J);_.P=zt.prototype;_.P.menuItemIdentifierChanged=function(){var G;(G=this.data)!=null&&G.menuItemIdentifier&&(G=kq0.get(this.data.menuItemIdentifier))&&(_.v("enable_lwe_web_mute")?(G=br0.get(G),this.isToggled=!(G===void 0?!this.data.isToggled:!G)):this.isToggled=br0.get(G))};
_.P.onFocus=function(){this.toggleButton.focus()};
_.P.onTap=function(){var G=this.data.command;G&&this.componentBehavior.resolveCommand(G)};
_.P.computeText=function(G,c,I){return this.componentBehavior.getSimpleString(G?I:c)};
_.P.computeIcon=function(G,c,I){return(G=G?I:c)&&G.iconType?_.On(G.iconType):""};
zt.prototype.onTap=zt.prototype.onTap;zt.prototype.onFocus=zt.prototype.onFocus;zt.prototype.menuItemIdentifierChanged=zt.prototype.menuItemIdentifierChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],zt.prototype,"componentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zt.prototype,"data",void 0);
_.r([_.E({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.h("design:type",String)],zt.prototype,"icon",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],zt.prototype,"isToggled",void 0);_.r([_.nH("tp-yt-paper-toggle-button"),_.h("design:type",Object)],zt.prototype,"toggleButton",void 0);_.r([_.wD("data.menuItemIdentifier"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zt.prototype,"menuItemIdentifierChanged",null);
_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zt.prototype,"onFocus",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zt.prototype,"onTap",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],zt);
_.B(zt,"yt-live-chat-toggle-renderer",function(){if(uzH===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Ucd===void 0&&(Ucd=document.createElement("template"));var R=Ucd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);uzH=G}G=uzH;return G},{mode:0});var s41=new _.De("NAVIGATION_PROGRESS_TOKEN");var L0d={},ABr={},$cH=(ABr[yJW.name]=!0,ABr),E5=function(){var G=_.D4.apply(this,arguments)||this;G._noAccessors=!0;G.tabGesturesIsActive=!1;G.actionRouterIsRoot=!0;G.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};G.pageTitle="";G.titleSuffix="YouTube";G.unseenNotificationCount=
0;G.hasNavigated=!1;G.hasSetScrollTopForNavigation=!1;G.pagePreparer=null;G.zwiebackInitJobId=0;G.dataUpdatePromise=null;G.loadDepsPromise=_.IP();G.hasPendingNavigation=!1;G.pendingPlayerOnResponseReceivedActions=[];return G};
_.u(E5,_.D4);E5.prototype.attached=function(){S8g(this);document.addEventListener("yt-navigate-cache",_.lO(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var G=J9();G.init();G.dispatchElement=this.hostElement};
var S8g=function(G,c){c=c===void 0?0:c;var I=_.wH().resolve(_.qR(_.Hk));if(I)pc7(G,I);else{if(c>=5)throw Error("ul");setTimeout(function(){S8g(G,c+1)},0)}},pc7=function(G,c){c.addEventListener("yt-navigate-start",_.lO(G,G.onYtNavigateStart));
c.addEventListener("yt-navigate-finish",_.lO(G,G.onYtNavigateFinish));c.addEventListener("yt-navigate-error",_.lO(G,G.onYtNavigateError));c.addEventListener("yt-page-data-fetched",_.lO(G,G.onYtPageDataFetched))};
_.P=E5.prototype;_.P.detached=function(){var G=_.wH().resolve(_.Hk);G.removeEventListener("yt-navigate-start",_.lO(this,this.onYtNavigateStart));G.removeEventListener("yt-navigate-finish",_.lO(this,this.onYtNavigateFinish));G.removeEventListener("yt-navigate-error",_.lO(this,this.onYtNavigateError));G.removeEventListener("yt-page-data-fetched",_.lO(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.lO(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.P.setPageOffset=function(G,c){G?_.ym(this.hostElement,"yt-set-page-offset",[G,c]):_.hg(Error("vl"))};
_.P.setPageOffsetForNavigation=function(G,c){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(G,c))};
_.P.onYtNavigateSetPageOffset=function(G,c){this.setPageOffsetForNavigation(c.page,c.offset)};
_.P.getPageOffset=function(){var G=_.Q1(this.hostElement).querySelector("#page-manager").getCurrentPage(),c=0;G&&(c=_.ym(this.hostElement,"yt-get-page-offset",[G])[0]);return c};
_.P.onYtHistoryPop=function(G,c){if(_.XG("DISABLE_WARM_LOADS"))G.preventDefault(),window.location.reload();else{var I=_.wH().resolve(_.Hk);I.hasPendingNavigation()&&G.preventDefault();I.cancelPendingNavigation();_.gq(this.hostElement,"yt-pending-navigation-cancelled");c.errorMsg&&(G=c.errorMsg.split(" - "),c=Error(G[0]),G.length==2&&G[1]&&(_.H_(c,G[1]),_.Ck(c)),window.location.reload())}};
_.P.onYtHistoryLoad=function(G,c){var I=this;if(_.XG("DISABLE_WARM_LOADS"))window.location.reload();else{(G=c.endpoint)&&Object.keys(G).length||(G=null);var R=c.historyEntry,Z=_.wH().resolve(_.Hk),K=_.wH().resolve(_.I9),m=null;R&&R.rootData&&(m=R.rootData);var a=m&&Mad(m);!m||a||m.filler?G?(Z.navigate(G,!0),VaH(this,G)):(c.legacyBorder||a||(c.JSC$30933_savedComponentState==null&&m==null?_.Ck(new _.iW("Incomplete history entry",c.forward)):_.dj(new _.iW("Malformed history entry",c.JSC$30933_savedComponentState,
c.forward,m))),window.location.reload()):(_.YAi({isHot:!0}),_.b8({webInfo:{navigationReason:"h"}}),_.b2U(),_.LC("srt"),_.LC("pdc"),this.cancelPendingTasks(),zWW(this,c.forward,m),m.player&&(m.player.loaded=!1),VaH(this,G),_.rnK(Z,G||{},m,2,{},!1,c).then(function(){I.setPageOffset(K.getCurrentPage(),R.scrollTop||0)}))}};
_.P.initHistoryManager=function(G){if(!this.hasNavigated){this.hasNavigated=!0;var c=_.Q1(this.hostElement).querySelector("#page-manager").getCurrentData();G=isNaN(G)?this.getPageOffset():G;var I=_.wH().resolve(_.Hk).currentEndpoint;this.replaceState(I,c,G)}};
_.P.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.P.onYtNavigateStart=function(G,c){this.cancelPendingTasks();c.noProgressBar||(G=_.wH().resolve(_.qR(s41)))&&G.start();G=this.hasPendingNavigation?null:this.data;var I=_.wH().resolve(_.I9),R,Z,K;_.v("kevlar_use_vimio_behavior")&&!((R=c.endpoint)==null?0:(Z=R.commandMetadata)==null?0:(K=Z.webCommandMetadata)==null?0:K.ignoreNavigation)&&(R=I.getCurrentPage())&&R.disconnectVisibilityRoot();I.prepareForNavigation(c.pageType,c.endpoint);_.v("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.px(1,
"pcl"),_.Mi(this.pagePreparer,I.preparePage.bind(I,c.pageType,c.endpoint)));R=this.getPageOffset();this.initHistoryManager(R);c.reload||this.hasPendingNavigation?(c.pageType==="shorts"&&c.reload&&_.Xl(this.hostElement,"yt-shorts-reset"),this.replaceState(c.endpoint,G,R)):(G==null?void 0:G.page)==="watch"&&c.pageType==="watch"&&_.v("kevlar_replace_watch_to_watch_history_state")?this.replaceState(c.endpoint,G,R):(G==null?void 0:G.page)!=="shorts"||c.pageType!=="shorts"||c.endpoint.reelWatchEndpoint.sequenceParams||
_.v("short_to_short_back_nav_killswitch")?c.type!="navigate-back"&&c.type!="navigate-forward"&&(c.pageType==="shorts"&&_.Xl(this.hostElement,"yt-shorts-reset"),this.saveAndPush(c.url,c.endpoint,G,R)):this.replaceState(c.endpoint,G,0);this.hasPendingNavigation=!0};
var ERW=function(G){G.hasPendingNavigation=!1;(G=_.wH().resolve(_.qR(s41)))&&G.finish()};
E5.prototype.onYtNavigateError=function(G,c){ERW(this);G=this.get("endpoint.commandMetadata.webCommandMetadata.url",c);var I=_.QU(window.location.href);G&&!I.pbjreload&&(c=c.navigationErrorReason||"10",_.v("kevlar_parent_on_pbjreload")&&(I={csn:_.k0()},this.get("data.endpoint.clickTrackingParams")&&(I.itct=this.data.endpoint.clickTrackingParams),_.x0(G,I)),_.Ji(_.mb(G,{pbjreload:c})))};
E5.prototype.onYtNavigateCache=function(G,c){var I=this,R=c.url,Z=c.endpoint,K=c.data;G=!!c.miniplayer;c=!!c.skipHistory;if(R&&Z&&K){var m=this.getPageOffset(),a=this.data||null;c||this.saveAndPush(R,Z,a,m);R=_.rnK(_.wH().resolve(_.Hk),Z,K,G?4:3,{},G);G&&R.then(function(){I.dataUpdatePromise&&I.dataUpdatePromise.then(function(){var O=_.wH().resolve(_.I9);I.setPageOffset(O.getCurrentPage(),0)})})}};
E5.prototype.onYtNavigateFinish=function(G,c){var I=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){JB1(I,c.fromHistory)})};
var JB1=function(G,c){ERW(G);if(G.pendingPlayerOnResponseReceivedActions){for(var I=_.Q(G.pendingPlayerOnResponseReceivedActions),R=I.next();!R.done;R=I.next())_.qC(R.value,G.hostElement);G.pendingPlayerOnResponseReceivedActions=[]}I=_.wH().resolve(_.I9);c||!G.hasNavigated||_.v("web_disable_scroll_on_navigate_finish")||((c=I.getCurrentPage())?c.is==="ytd-shorts"||G.tabGesturesIsActive||G.setPageOffsetForNavigation(c,0):_.Ck(Error("wl")));_.xW(function(){_.xW(function(){_.LC("pda")})})};
E5.prototype.onYtNavigate=function(G){if(!G.detail.endpoint){var c=new _.iW("Error: Missing yt-navigate endpoint from target:",G.target,G.target.nodeName);_.hg(c)}if(c=_.v("cold_missing_history"))c=J9(),c.init(!1),c=!(c.browserHistory.boundHistoryReplaceState&&c.browserHistory.boundHistoryPushState);if(c){_.Ch("DISABLE_WARM_LOADS",!0);c=new _.iW("Failed to initialize history manager",this.getDebugString());var I=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
I?_.Ck(c):_.hg(c)}c=G.detail.endpoint;var R,Z;_.v("debug_forward_web_query_parameters")&&((R=c.commandMetadata)==null?0:(Z=R.webCommandMetadata)==null?0:Z.url)&&(c=JSON.parse(JSON.stringify(c)),c.commandMetadata.webCommandMetadata.url=_.uLp(c.commandMetadata.webCommandMetadata.url,window.location.search));G={type:0,command:c,form:{params:G.detail.params,tempData:G.detail.tempData||{},requestType:G.detail.type,createScreenConfig:G.detail.createScreenConfig,reload:G.detail.reload?G.detail.reload:!1,
requestForm:G.detail}};_.v("kevlar_yt_navigate_command_handler")?(R=_.wH().resolve(_.n4),G.form.skipDefaultElement=!0,R.resolveCommand(c,{form:G.form})):this.handleNavigate(G)};
E5.prototype.handleNavigate=function(G){this.hasSetScrollTopForNavigation=!1;var c=_.wH().resolve(_.Hk),I=G.form||{};c.navigate(G.command,I.reload,I.params,I.tempData,I.requestType,I.createScreenConfig,I.ignoreConfirmation,I.requestForm)&&VaH(this,G.command,I.tempData)};
E5.prototype.onYtPageDataFetched=function(G,c){try{_.Sz9().reset();this.data=c.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.wH().resolve(_.I9).updatePageData(this.data);var I=this.get("playerResponse.onResponseReceivedActions",this.data);I&&(I=W0W(this,I));I&&_.cd(this.hostElement,I,this.hostElement);var R=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),Z=this.get("response.responseContext.consistencyTokenJar",this.data);if(R||Z){var K=_.FKq(),m=(0,_.rx.getValues)(K.tokenJars);R&&K.replace(m,R);Z&&K.replace(m,Z)}}catch(a){_.hg(a)}};
var VaH=function(G,c,I){try{G.onYtEndpointChangeHandler(c,I)}catch(R){_.hg(R)}};
_.P=E5.prototype;_.P.onYtEndpointChangeHandler=function(){};
_.P.setPageTitle=function(G){G=(this.pageTitle=G)?G+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+G};
_.P.onYtUpdateTitle=function(G,c){this.setPageTitle(c)};
_.P.setUnseenNotificationCount=function(G){this.unseenNotificationCount=G;this.setPageTitle(this.pageTitle)};
_.P.handleUpdateNotificationsUnseenCountAction=function(G){_.D(G,VJg)&&((G=_.D(G,VJg).unseenCount)?this.setUnseenNotificationCount(G):this.setUnseenNotificationCount(0))};
_.P.handleClearCookieAction=function(G){var c;(G=(c=_.D(G,$I0))==null?void 0:c.cookieName)&&_.jPq(G)};
_.P.onYtUpdateUnseenNotificationCount=function(G,c){this.setUnseenNotificationCount(c)};
_.P.loadData=function(G){var c=this;this.loadDepsPromise.then(function(){var I=_.wH().resolve(_.qR(_.Hk));I||_.hg(Error("xl"));if(G&&G.response){if(!G.endpoint){var R=_.zO(window.document.location.href)||"/",Z="";if(R==="/"||R.startsWith("/?"))Z="WEB_PAGE_TYPE_BROWSE";G.endpoint={commandMetadata:{webCommandMetadata:{url:R,webPageType:Z,rootVe:3854}}}}_.rnK(I,G.endpoint,G,5,{})}else G.endpoint?I.navigate(G.endpoint):I.navigate(_.IM);_.dJ.cancelJob(c.zwiebackInitJobId);c.zwiebackInitJobId=_.dJ.addLowPriorityJob(HyG)})};
var J9=function(){return _.wH().resolve(_.gQ)};
E5.prototype.getDebugString=function(){return J9().getDebugString()};
E5.prototype.getThirdPartyManipulationSuspected=function(){return J9().getThirdPartyManipulationSuspected()};
E5.prototype.replaceState=function(G,c,I){J9().saveAndReplace(G,c,I)};
E5.prototype.saveAndPush=function(G,c,I,R){J9().saveAndPush(G,c,I,R)};
var Mad=function(G){return _.D(G.endpoint,_.fR)||_.D(G.endpoint,_.vH)?!0:!G||isNaN(G.expirationTime)?!1:(0,_.Fa)()>G.expirationTime},zWW=function(G,c,I){var R=G.get("response.trackingParams",I),Z=_.u6(),K=_.k0();
if(R&&Z&&K&&(R=G.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",I),!R&&I.rootVe&&(R=I.rootVe),Z=c?"forwardButton":"backButton",c=G.get("playerResponse.topbar.desktopTopbarRenderer."+Z+".buttonRenderer.command.clickTrackingParams",G.data),G=G.get("response.topbar.desktopTopbarRenderer."+Z+".buttonRenderer.command.clickTrackingParams",G.data),c=(G=c||G)?_.kC(G):void 0,G=_.DP(),Z=[_.IP(I)],_.dt(G,R,c,{dataPromises:Z,csnToClone:I.csn}),I.graftedVes))for(I=
_.Q(I.graftedVes),R=I.next();!R.done;R=I.next())_.CJ(G,R.value)};
E5.prototype.onStoreGraftedVeAction=function(G){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(G)):_.Ck(Error("yl"))};
var W0W=function(G,c){return c.filter(function(I){for(var R in I)if($cH[R])return G.pendingPlayerOnResponseReceivedActions.push(I),!0;return!1})};
_.Nh.Object.defineProperties(E5.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
E5.prototype.onStoreGraftedVeAction=E5.prototype.onStoreGraftedVeAction;E5.prototype.loadData=E5.prototype.loadData;E5.prototype.onYtUpdateUnseenNotificationCount=E5.prototype.onYtUpdateUnseenNotificationCount;E5.prototype.handleClearCookieAction=E5.prototype.handleClearCookieAction;E5.prototype.handleUpdateNotificationsUnseenCountAction=E5.prototype.handleUpdateNotificationsUnseenCountAction;E5.prototype.setUnseenNotificationCount=E5.prototype.setUnseenNotificationCount;
E5.prototype.onYtUpdateTitle=E5.prototype.onYtUpdateTitle;E5.prototype.setPageTitle=E5.prototype.setPageTitle;E5.prototype.onYtEndpointChangeHandler=E5.prototype.onYtEndpointChangeHandler;E5.prototype.onYtPageDataFetched=E5.prototype.onYtPageDataFetched;E5.prototype.handleNavigate=E5.prototype.handleNavigate;E5.prototype.onYtNavigate=E5.prototype.onYtNavigate;E5.prototype.onYtNavigateFinish=E5.prototype.onYtNavigateFinish;E5.prototype.onYtNavigateCache=E5.prototype.onYtNavigateCache;
E5.prototype.onYtNavigateError=E5.prototype.onYtNavigateError;E5.prototype.onYtNavigateStart=E5.prototype.onYtNavigateStart;E5.prototype.cancelPendingTasks=E5.prototype.cancelPendingTasks;E5.prototype.initHistoryManager=E5.prototype.initHistoryManager;E5.prototype.onYtHistoryLoad=E5.prototype.onYtHistoryLoad;E5.prototype.onYtHistoryPop=E5.prototype.onYtHistoryPop;E5.prototype.onYtNavigateSetPageOffset=E5.prototype.onYtNavigateSetPageOffset;E5.prototype.setPageOffset=E5.prototype.setPageOffset;
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],E5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],E5.prototype,"data",void 0);_.r([_.qY("yt-navigate-set-page-offset"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],E5.prototype,"onYtNavigateSetPageOffset",null);
_.r([_.qY("yt-history-pop"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],E5.prototype,"onYtHistoryPop",null);_.r([_.qY("yt-history-load"),_.h("design:type",Function),_.h("design:paramtypes",[Event,_.Z50]),_.h("design:returntype")],E5.prototype,"onYtHistoryLoad",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],E5.prototype,"onYtNavigate",null);
_.r([_.qY("yt-update-title"),_.h("design:type",Function),_.h("design:paramtypes",[Event,String]),_.h("design:returntype")],E5.prototype,"onYtUpdateTitle",null);_.r([_.qY("yt-update-unseen-notification-count"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Number]),_.h("design:returntype")],E5.prototype,"onYtUpdateUnseenNotificationCount",null);_.r([_.Um()],E5);L0d.YtdAppBehavior=[_.HR.YtActionHandlerBehavior,E5.prototype];var WJ=function(){var G=_.D4.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.u(WJ,_.D4);WJ.prototype.ready=function(){var G=this;_.Q1(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){G.onChange_()})};
WJ.prototype.dataChanged_=function(){_.Q1(this.hostElement).querySelector("#checkbox").checked=!1};
WJ.prototype.onChange_=function(){var G=_.Q1(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Xl(this.hostElement,"yt-dismissal-reason-"+G,this.data.feedbackToken)};
WJ.prototype.dataChanged_=WJ.prototype.dataChanged_;_.r([_.E(),_.h("design:type",Object)],WJ.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WJ.prototype,"dataChanged_",null);_.r([_.Um()],WJ);var irG=[WJ.prototype];var i4=function(){var G=_.D4.apply(this,arguments)||this;G.timeoutJobId=0;G.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return G};
_.u(i4,_.D4);i4.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
i4.prototype.startTimeout=function(){var G=this,c=this.data&&this.data.displayDurationSeconds;c&&!this.timeoutJobId&&(this.timeoutJobId=_.W_(_.dJ,function(){_.ym(G.hostElement,"yt-close-popup-action",[G.is]);G.timeoutJobId=0},c*1E3))};
i4.prototype.cancelTimeout=function(){_.dJ.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
i4.prototype.ytdHatsSurveyBehaviorDataChanged=i4.prototype.ytdHatsSurveyBehaviorDataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],i4.prototype,"ytActionHandlerBehavior",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],i4.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.r([_.Um()],i4);var f_H=[_.HR.YtActionHandlerBehavior,i4.prototype];var BT1=function(G,c){var I;return((I=G.prefixMapping)==null?0:I[c])?G.prefixMapping[c]:G.SHARED_RENDERERS_.hasOwnProperty(c)?"yt":G.prefix},fX={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}};fX.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.v("kevlar_mealbar_above_player"),modern:!0,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"}};
fX.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};fX.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};fX.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
fX.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)"}};
fX.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};
fX.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};
fX.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};
fX.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.v("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
fX.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"}};fX.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};fX.TOAST={component:null,properties:{}};var rB7=new function(G,c,I){this.supportedPopups=G;this.navigationEndpointPopupMap=c;this.popupTypeMap=I;this.supportedPopups=G;this.navigationEndpointPopupMap=c;this.popupTypeMap=I}({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:_.v("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"}),j4u=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,
upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20442_popupConfig=fX;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 xcr=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.q_.getInstance()},BJ=function(G,c){var I=G.pageNameToElement.get(c);
if(!I){switch(c){case "watch":var R=_.v("web_watch_force_learning_journey_for_testing")?_.SP("ytd-watch-learning-journey"):_.v("kevlar_watch_fixie")?_.SP("ytd-watch-fixie"):_.v("kevlar_watch_grid")?_.SP("ytd-watch-grid"):_.SP("ytd-watch-flexy");break;case "learning_journey_watch":R=_.SP("ytd-watch-learning-journey");break;case "shorts":R=_.SP("ytd-shorts");break;case "search":R=_.SP("ytd-search");break;case "channel":R=_.SP("ytd-browse");R.pageSubtype="channels";break;case "trending":R=_.SP("ytd-browse");
R.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":R=
_.SP("ytd-browse");R.pageSubtype=c;break;case "browse":R=_.SP("ytd-browse");break;default:_.Ck(new _.iW("Error getting page element for type",c))}I=R;G.pageNameToElement.set(c,I)}return I};
xcr.prototype.preparePage=function(G,c,I){I&&(G=_.lu(I)||G);if(G!=="watch"&&G!=="learning_journey_watch"){var R=this.elementPoolPopulator,Z=G;Z!=R.targetPage_&&R.pendingPages_.indexOf(Z)>-1&&(R.targetPage_&&(R.pendingPages_.unshift(R.targetPage_),R.abort()),MIH(R,Z),_.KTk(R,Z))}if((R=BJ(this,G))||!_.D(I,_.ID)){R.isAttached||R===c||(R.hidden=!0);if(!R.data&&(G!=="watch"&&G!=="learning_journey_watch"||!_.v("swatcheroo_page_pool_dont_provide_filler_data"))){var K;if(G=(K=_.H1("FILLER_DATA",{})[G])==
null?void 0:K.response)R.data=G}return R}};var tau=function(G){this.JSC$32915_clientRoot=G;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Zmj,"yt-end-playlist-command":KUu,"yt-recover-playlist-command":Qbd,"yt-refresh-playlist-command":T1u,"yt-playlist-remove-videos-action":m00};_.KY(_.RD.getInstance(),this.playlistHandlerActionMap,this.JSC$32915_clientRoot);j5g()},hWr;var rk=function(G,c,I){this.apiKey=G;this.endpoint=c;this.confidenceThreshold=I===void 0?.5:I;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=c==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||c==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
c==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||c==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new OI$};
_.P=rk.prototype;
_.P.start=function(G){if(this.state===0)if(this.isOnline()){G.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=G.supportsHttpHeadersOverwriteParam);G.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=G.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.sC("voice_assistant");_.SW("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=G.languageCode||"en-US";this.supportsCrossDomainXhr=G.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=G.youtubeAssistantRequest||null;this.listeningHandler=G.listeningHandler||this.listeningHandler;this.audioDetectedHandler=G.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=G.stopHandler||this.stopHandler;this.completeHandler=G.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=G.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=G.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
G.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=G.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=G.accessToken;this.additionalHeaders=G.additionalHeaders||{};var c;this.prefetchResponseTimeoutMs=(c=G.prefetchResponseTimeoutMs)!=null?c:this.prefetchResponseTimeoutMs;dc1(this);this.startAudio();ChW(this)}else this.errorHandler("OFFLINE")};
_.P.stop=function(G){var c=G===void 0?{}:G;G=c.logCancel===void 0?!0:c.logCancel;var I=c.logMicClosed===void 0?!0:c.logMicClosed;var R=c.handleError===void 0?!0:c.handleError;c=c.handleStop===void 0?!0:c.handleStop;this.state!==0&&(G&&jF("voz_cx"),xU(this,{logMicClosed:I,handleStop:c}),R&&this.errorHandler("ABORTED"))};
_.P.getState=function(){return this.state};
_.P.isSupported=function(){return!0};
_.P.stopAudio=function(G){(G===void 0||G)&&jF("voz_mf")};
_.P.startAudio=function(){jF("voz_vp");return _.IP(null)};
var Hr$=function(G,c){G.channelOpen&&(G.state!==2&&(G.state=2,jF("voz_ss"),G.listeningHandler()),c=new Uint8Array(c),c='{ "audioIn": "'+_.zr(c)+'" }',G.channel.send(c))},xU=function(G,c){var I=c===void 0?{}:c;
c=I.logMicClosed===void 0?!0:I.logMicClosed;I=I.handleStop===void 0?!0:I.handleStop;G.vozEndOfDataTimeout>-1&&(clearTimeout(G.vozEndOfDataTimeout),G.vozEndOfDataTimeout=-1);Xc0(G);G.stopAudio(c);G.channel&&(G.channelOpen=!1,G.manuallyClosedChannel=!0,G.channel.close(),G.channel=void 0);G.transcribedSpeechResults=[];G.state=0;I&&G.stopHandler()},dc1=function(G){var c={httpHeadersOverwriteParam:G.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},G.additionalHeaders,G.accessToken&&G.isUsingVoz?{Authorization:"Bearer "+G.accessToken}:{"x-goog-api-key":G.apiKey}),supportsCrossDomainXhr:G.supportsCrossDomainXhr};G.channel=new PJ(G.endpoint,c);G.channel.open();_.Ld(G.channel,"w",function(){var I=G.channel,R=I.send,Z=G.isUsingVoz?"PLACEHOLDER":"example";Z={config:{dialogStateIn:{languageCode:G.languageCode},deviceConfig:{deviceId:Z,deviceModelId:Z},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!G.isUsingVoz)Z.config.requestType=4;else if(G.isUsingVoz&&G.youtubeAssistantRequest){var K=JSON.stringify(G.youtubeAssistantRequest);Z.config.internalIn={youtubeAssistantS3InputJson:K}}R.call(I,Z);G.channelOpen=!0;G.manuallyClosedChannel=!1});
_.Ld(G.channel,"x",function(){G.manuallyClosedChannel||(G.channelOpen=!1,G.channel=void 0,xU(G))});
_.Ld(G.channel,"z",function(I){if(I.data){Xc0(G);for(var R=0;R<I.data.length;R++){var Z=G,K=I.data[R],m=K.speechResults;if(m)a:{var a=[];K=[];var O=!1;m=_.Q(m);for(var N=m.next();!N.done;N=m.next()){N=N.value;if(N.noSpeech){xU(Z);Z.errorHandler("NO_SPEECH");break a}N.transcript!==void 0&&N.stability!==void 0&&(N.stability<Z.confidenceThreshold&&(O=!0),O?K.push(N.transcript):a.push(N.transcript))}if(a.length!==0||K.length!==0)a=a.join(" "),K=K.join(" "),Z.receivedEndOfUtterance&&!Z.isUsingVoz?Z.isUsingVoz||
Z.completeHandler([a,K]):(O=Z,m=a,N=K,jF("voz_sf"),O.transcriptionUpdateHandler(m,N),O.transcribedSpeechResults=[m,N]),Z.receivedEndOfUtterance&&(jF("voz_eou"),Z.transcriptionCompleteHandler([a,K]),Z.isUsingVoz&&(Z.prefetchResponseTimeoutMs===0?xU(Z,{logMicClosed:!1,handleStop:!0}):Z.prefetchResponseTimeoutMs>0&&yB$(Z)))}else Z.isUsingVoz&&(K==null?0:K.internalOut)?(K=JSON.parse(K.internalOut.youtubeAssistantS3OutputJson),K.userHasOptedInToVaa||K.vaaConsent?Z.vaaConsentUpdateHandler(!!K.userHasOptedInToVaa,
!!K.vaaConsent):(gRr(Z),K&&(a=Z.transcribedSpeechResults,jF("voz_rqf"),Z.completeHandler(a,K)))):K.eventType==="END_OF_UTTERANCE"?Z.receivedEndOfUtterance=!0:(jF("voz_err"),Z.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Ck(Error("zl")))}}});
_.Ld(G.channel,"y",function(I){xU(G);switch(I.status){case 1:I="WEBCHANNEL_NETWORK_ERROR";break;case 2:I="WEBCHANNEL_SERVER_ERROR";break;default:I="WEBCHANNEL_UNKNOWN_ERROR"}G.errorHandler(I);G.logError(Error(I))})};
rk.prototype.logError=function(G){_.hg(G)};
rk.prototype.isOnline=function(){return!0};
var yB$=function(G){gRr(G);G.prefetchResponseSetTimeoutId=setTimeout(function(){xU(G,{logMicClosed:!1,handleStop:!0})},G.prefetchResponseTimeoutMs)},gRr=function(G){G.prefetchResponseSetTimeoutId>-1&&(clearTimeout(G.prefetchResponseSetTimeoutId),G.prefetchResponseSetTimeoutId=-1)},ChW=function(G){Xc0(G);
G.noResponseReceivedTimeout=window.setTimeout(function(){xU(G);G.errorHandler("NO_SPEECH")},11E3)},Xc0=function(G){G.noResponseReceivedTimeout>-1&&(window.clearTimeout(G.noResponseReceivedTimeout),G.noResponseReceivedTimeout=-1)},jF=function(G){_.LC(G,void 0,"voice_assistant")};var t9=function(){rk.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.u(t9,rk);t9.prototype.isSupported=function(){return OmF()};
t9.prototype.startAudio=function(){var G=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.$C(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(R){Y8F(G,R)};
this.processor.connect(this.audioContext.destination);var c=function(R){G.stream=R;if(!G.audioContext)return _.IP(null);R=G.audioContext.createMediaStreamSource(R);G.processor&&R.connect(G.processor);return _.IP(null)},I={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?c(this.stream):(I=navigator.mediaDevices.getUserMedia(I))?I.then(c).catch(function(R){xU(G);R.name&&R.name==="NotAllowedError"?G.errorHandler("NO_MICROPHONE_PERMISSION"):(G.errorHandler("AUDIO_ERROR"),G.logError(R));return _.$C(null)}):(xU(this),this.errorHandler("AUDIO_ERROR"),_.Ck(Error("Al")));
return rk.prototype.startAudio.call(this)};
t9.prototype.stopAudio=function(G){G=G===void 0?!0:G;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(c){c.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;rk.prototype.stopAudio.call(this,G)};
t9.prototype.isOnline=function(){return navigator.onLine};
var Y8F=function(G,c){if(G.audioContext)if(window.OfflineAudioContext){var I=G.audioContext.sampleRate,R=c.inputBuffer.getChannelData(0);c=new window.OfflineAudioContext(1,R.length,16E3);for(var Z=c.createBuffer(1,R.length,I),K=Z.getChannelData(0),m=0,a=0;a<R.length;a++)K[a]=R[a],m+=K[a]*K[a];!G.audioDetected&&Math.sqrt(m/R.length)>.01&&(G.audioDetected=!0,G.audioDetectedHandler());R=c.createBufferSource();R.buffer=Z;R.connect(c.destination);R.start(0);c.oncomplete=function(O){O=O.renderedBuffer.getChannelData(0);
for(var N=Math.floor(16384E3/I),q=new Int16Array(N),w=0;w<N;++w)q[w]=Math.max(-1,Math.min(1,O[w]))*32767;Hr$(G,q.buffer)};
c.startRendering()}else GTW(G,c)},GTW=function(G,c){var I=G.audioContext.sampleRate,R=c.inputBuffer.getChannelData(0),Z=Math.floor((I+8E3)/16E3);
I=R.length/Z;c=new Float32Array(I);for(var K=0;K<I;++K)c[K]=R[K*Z];R=new Int16Array(I);for(Z=0;Z<I;++Z)R[Z]=Math.max(-1,Math.min(1,c[Z]))*32767;Hr$(G,R.buffer)};var cFu={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var IaF=function(){this.JSC$20507_audioEnabled=!0;this.audioFeedbackHolder={}};
IaF.prototype.isPlaying=function(G){return G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>2};
var RaW=function(G){for(var c=_.Q(Object.values(cFu)),I=c.next();!I.done;I=c.next())I=I.value,G.audioFeedbackHolder[I]=new Audio,G.audioFeedbackHolder[I].src="/s/search/audio/"+I+".mp3",G.audioFeedbackHolder[I].load()},h9=function(G,c){if(G.JSC$20507_audioEnabled!==!1&&c in G.audioFeedbackHolder){for(var I=_.Q(Object.values(G.audioFeedbackHolder)),R=I.next();!R.done;R=I.next())R=R.value,G.isPlaying(R)&&R.pause();
G.audioFeedbackHolder[c].currentTime=0;G.audioFeedbackHolder[c].play().catch(function(){})}};var ZL7=function(G,c){var I=this;this.store=G;this.service=c;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){I.setState("offline");I.stop()};
this.audioPlayer=new IaF;var R;(R=this.audioPlayer)==null||RaW(R)};
_.P=ZL7.prototype;_.P.getService=function(){return this.service};
_.P.isEnabled=function(){return!!this.service};
_.P.isSupported=function(){var G;return(G=this.service)==null?void 0:G.isSupported()};
_.P.start=function(){var G=this,c,I,R,Z,K,m,a,O,N,q,w,F,n;return _.T(function(U){switch(U.nextAddress){case 1:G.store.dispatch(YBg("",""));if(!navigator.onLine)return G.setState("offline"),U.return();window.addEventListener("offline",G.handleOfflineEvent);G.stream=null;if(!G.permissionsSupported){U.jumpTo(2);break}_.s9(U,3);return U.yield(K6j(G),5);case 5:c=U.yieldResult;if(!c)return(I=G.audioPlayer)==null||h9(I,"failure"),U.return();G.service.stream=G.stream;G.setState("listening");_.Pl(U,2);break;
case 3:_.M3(U),G.permissionsSupported=!1;case 2:R={context:_.Cnf(_.vl())},R.youtubeAssistantParams={searchParams:{inlineSearchResponse:G.enableInlineSearchResponse}},Z=function(k,p){G.store.dispatch(GWr("transcribing"));G.store.dispatch(YBg(k,p))},K=function(){var k;
(k=G.audioPlayer)==null||h9(k,"open");G.setState("listening")},m=function(){G.setState("transcribing")},a=function(k){G.setErrorState(k)},O=function(k,p){var M;
(M=G.audioPlayer)==null||h9(M,"success");p&&(_.v("kevlar_voice_search_inline_search")&&(G.responseProcessor=_.wH().resolve(_.ACr),G.responseProcessor&&(M=p.navigationAction,k=p.prefetchedSearchResponse,M&&k&&(M=(new _.SeW).JSC$14347_getStoreKey(M),_.ys(G.responseProcessor,k,M)))),G.JSC$20525_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",p))},N=function(){window.removeEventListener("offline",G.handleOfflineEvent)},q=_.RSq(!1),w=q.Authorization!=null,F=G.enableFirstPartyAuth||
G.enableFPAForSignedInUsers&&w?q:{"X-Goog-Visitor-Id":q["X-Goog-Visitor-Id"]},n={completeHandler:O,
errorHandler:a,listeningHandler:K,audioDetectedHandler:m,stopHandler:N,transcriptionUpdateHandler:Z,youtubeAssistantRequest:R,languageCode:PQ7(),additionalHeaders:F,supportsCrossDomainXhr:G.enableFirstPartyAuth||G.enableFPAForSignedInUsers&&w,supportsHttpHeadersOverwriteParam:!G.disableHttpHeadersOverwrite},G.service.start(n),_.Vp(U)}})};
_.P.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.P.reset=function(){this.store.dispatch(_.R6({type:"RESET_VOICE_SEARCH_STATE"}))};
_.P.setState=function(G){this.store.dispatch(GWr(G))};
_.P.setErrorState=function(G){switch(G){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var c;(c=this.audioPlayer)==null||h9(c,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)K6j(this);else{var I;(I=this.audioPlayer)==null||h9(I,"failure");this.setState("permission-denied")}break;case "ABORTED":var R;(R=this.audioPlayer)==null||h9(R,"no_input");break;default:var Z;(Z=this.audioPlayer)==
null||h9(Z,"no_input");this.setState("timeout")}};
var K6j=function(G){var c,I;return _.T(function(R){switch(R.nextAddress){case 1:return R.yield(navigator.permissions.query({name:"microphone"}),2);case 2:c=R.yieldResult;if(c.state==="granted")return R.return(!0);if(c.state==="denied")return G.setState("permission-denied"),R.return(!1);G.setState("permission");I={audio:{sampleSize:16,channelCount:1},video:!1};_.s9(R,3);return R.yield(navigator.mediaDevices.getUserMedia(I),5);case 5:return G.stream=R.yieldResult,R.return(!0);case 3:return _.M3(R),
G.setState("permission-denied"),R.return(!1)}})},PQ7=function(){var G=_.H1("INNERTUBE_CONTEXT_HL"),c=_.H1("INNERTUBE_CONTEXT_GL");
return G.indexOf("-")>-1?G:G+"-"+c};var QdW=function(G,c,I){ZL7.call(this,c,I);this.JSC$20525_actionRouter=G;this.enableInlineSearchResponse=_.v("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.v("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.v("kevlar_voice_search_enable_fpa_signedin_users")},maG;
_.u(QdW,ZL7);
var aaH=function(){if(!maG){var G="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.v("kevlar_voice_search_auth_enabled")||_.v("kevlar_voice_search_use_yt_endpoint")?G="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.v("kevlar_voice_search_use_fp_endpoint")&&(G="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");maG=
new QdW(_.RD.getInstance(),_.y4(),new t9(_.H1("VOZ_API_KEY"),G,.5))}return maG};var TvH=function(G){this.JSC$20529_clientRoot=G;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$20529_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));G=_.Q(this.eventListeners);for(var c=G.next();!c.done;c=G.next()){var I=
_.Q(c.value);c=I.next().value;I=I.next().value;I=_.Q(I);for(var R=I.next();!R.done;R=I.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;c.addEventListener(R,Z)}}_.KY(_.RD.getInstance(),this.autonavPauseActionMap,this.JSC$20529_clientRoot)},OL1,eaG=function(G){return _.v("kevlar_autonav_popup_filtering")?(G=_.HH(G))?G.hasAttribute("prevent-autonav"):!0:!0};
_.P=TvH.prototype;_.P.onIronOverlayOpened=function(G){eaG(G)&&(this.autonavPauseReasons.overlayOpen=!0,dk(this))};
_.P.onIronOverlayClosed=function(G){eaG(G)&&(this.autonavPauseReasons.overlayOpen=!1,dk(this))};
_.P.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;dk(this)};
_.P.onYtAutonavPauseBlur=function(){var G=this;_.dJ.addJob(function(){NvW()||(G.autonavPauseReasons.inputBoxFocus=!1,dk(G))},8,0)};
_.P.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;dk(this)};
_.P.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;dk(this)};
_.P.onYtAutonavPauseScroll=function(){var G=_.wH().resolve(_.I9);G.isOnWatch()&&(G=G.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=G.getBoundingClientRect().top<-200,dk(this))};
_.P.onYtAutonavPauseUserEngagement=function(G){var c=this;if(_.v("user_engagement_enable_autoplay_pause_feature")){var I=Number(G.lowEngagementThresholdMs);isNaN(I)||I<=0||G.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.mT("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.wH().resolve(_.uf),_.wj()<I?_.W_(_.dJ,function(){_.mT("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.CO$()?(this.userEngagementCsn=_.k0(),_.W_(_.dJ,function(){_.mT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
c.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,dk(this)):_.mT("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Pmr(Error("Bl`"+JSON.stringify(G)))};
_.P.onYtAutonavPausePlayer=function(G){this.autonavPauseReasons.requestedByPlayer=!!G.detail;dk(this)};
_.P.onYtAutonavVisibilityChanged=function(){var G=this,c,I,R;return _.T(function(Z){if(Z.nextAddress==1)return(c=_.ZA())?Z.yield(c.getPlayerPromise(),2):Z.return();I=Z.yieldResult;R=I.isMuted()||I.getVolume()===0;G.autonavPauseReasons.backgroundAndMute=NvW()&&R;dk(G);_.Vp(Z)})};
_.P.onYtAutonavPausePlayerEnded=function(){_.wH().resolve(_.uf);var G=144E5;_.v("user_engagement_enable_autoplay_pause_feature")||_.v("is_part_of_any_user_engagement_experiment")||(G=45E5);this.autonavPauseReasons.longIdle=_.wj()>G;laW(this);dk(this)};
_.P.onYtUserActivity=function(){var G=this;this.autonavPauseReasons.userEngagement&&(_.W_(_.dJ,function(){_.mT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",G.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,dk(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.W_(_.dJ,function(){_.mT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",G.userEngagementCsn);_.tg()}),this.autonavPauseReasons.youthereLactExperiment=!1,dk(this));
this.autonavPauseReasons.longIdle&&!_.v("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,dk(this))};
var NvW=function(){var G=window.document.visibilityState;return!(!G||G==="visible")},dk=function(G){for(var c=!1,I=_.Q(Object.values(G.autonavPauseReasons)),R=I.next();!R.done;R=I.next())R=R.value,c=c||R;
c?_.Jt.getInstance().pause(G.autonavPauseReasons):(G=_.Jt.getInstance(),G.autonavState_==3?(G.setState(2,!1,!1),G.autonavPauseReason_=void 0):G.autonavState_==1&&(G.disabledAutonavPauseReason_=void 0))},laW=function(G){var c=!1;
if(_.v("enable_autoplay_pause_by_lact")){_.wH().resolve(_.uf);c=_.DH("autoplay_pause_by_lact_sec")*1E3;var I=_.DH("autoplay_pause_by_lact_sampling_fraction");(c=_.wj()>=c&&Math.random()<I)&&!_.CO$()&&(_.W_(_.dJ,function(){_.mT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),c=!1)}c!==G.autonavPauseReasons.youthereLactExperiment&&(G.autonavPauseReasons.youthereLactExperiment=c)&&(G.userEngagementCsn=_.k0(),_.W_(_.dJ,function(){_.mT("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",G.userEngagementCsn)}));
G.autonavPauseReasons.userEngagement&&_.W_(_.dJ,function(){_.mT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",G.userEngagementCsn)})};
TvH.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.mT("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.tg(),this.autonavPauseReasons.youthereLactExperiment=!1,dk(this));this.autonavPauseReasons.userEngagement&&(_.mT("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,dk(this))};
TvH.prototype.onYtEngagementPanelVisibleChanged=function(G){G.detail&&G.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=G.detail.visible,dk(this))};
TvH.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var q1G=_.Ce.persistentPanelVisibleSelector,CX=function(){var G=_.J.apply(this,arguments)||this;G.miniGuideVisible=!1;G.guideOpened=_.v("disable_initial_guide_state_fix")?!1:G.canFitPersistentGuide(G.initialBodyClientWidth);G.guideUserStateOpened=G.getInitialGuideUserStateOpened();G.isFullscreenShorts=!1;G.miniGuideWidthThreshold=_.DH("kevlar_mini_guide_width_threshold",791);G.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
G.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");G.persistentGuideBlockedPagePathRegex=new RegExp(G.persistentGuideBlockedPagesPatterns.join("|"));G.animationTransitionDuration=0;G.lateDataResolver=_.HU();G.initialGuideDataFetchFailed=!1;G.initialLoad=!0;G.guideRenderers=new Set;G.isMouseOverGuide=!1;G.sessionUserManuallyExpandedGuideState=
!1;G.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return G};
_.u(CX,_.J);_.P=CX.prototype;_.P.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.P.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.P.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.P.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.P.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.P.ready=function(){_.wH().addProvider({provide:_.oe,useValue:this.hostElement})};
_.P.attached=function(){var G=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.lO(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.lO(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.lO(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.lO(this,this.onYtGuideShow));_.O$(this,function(){G.animationTransitionDuration=200})};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.lO(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.lO(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.lO(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.lO(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.lO(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.lO(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.lO(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.P.getData=function(){return this.data};
_.P.load=function(){var G=this,c,I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=G.lateDataResolver.resolve.bind(G),K.return(G.lateDataResolver.promise);if(window.ytInitialGuideData)return c=_.HU(),c.resolve(window.ytInitialGuideData),K.return(c.promise);R=!1;_.s9(K,2);return K.yield(G.fetchGuideData(),4);case 4:I=K.yieldResult;_.Pl(K,3);break;case 2:Z=_.M3(K),Z.message==="Returned error"&&(R=
!0);case 3:if(I)return K.return(I);G.onYtGuideClose();R||(G.initialGuideDataFetchFailed=!0);return K.return(G.lateDataResolver.promise)}})};
_.P.fetchGuideData=function(){var G=this,c,I,R,Z,K,m,a;return _.T(function(O){if(O.nextAddress==1)return c=_.wH(),G.guidePromise||(I=c.resolve(_.UU),G.guidePromise=_.CQ(I,RD$)),O.yield(G.guidePromise,2);if(O.nextAddress!=3)return R=O.yieldResult,Z=c.resolve(_.Fr),O.yield(Z(),3);(K=O.yieldResult)&&((m=R)==null?void 0:(a=m.responseContext)==null?void 0:a.maxAgeSeconds)!==0&&K.put("service:guide:fallback",new _.CI({innertubeResponse:R}));return O.return(R)})};
_.P.initializeGuideDataIfEmpty=function(){var G=this,c,I;return _.T(function(R){if(R.nextAddress==1){if(!G.initialGuideDataFetchFailed||G.data)return R.return();_.s9(R,2);return R.yield(G.fetchGuideData(),4)}if(R.nextAddress!=2)return(c=R.yieldResult)&&G.lateDataResolver.resolve(c),_.Pl(R,0);I=_.M3(R);_.Ck(I);_.Vp(R)})};
_.P.initializeGuideData=function(){var G=this,c,I;return _.T(function(R){switch(R.nextAddress){case 1:return _.ve(c0r(),{mainAppWeb:_.xa()}),_.s9(R,2),R.yield(G.load(),4);case 4:G.data=R.yieldResult;_.Pl(R,3);break;case 2:c=_.M3(R),_.Do(c0r(),"FAILURE"),_.Ck(new _.iW("Guide data not present",{errorMessage:c.message}));case 3:I=G.data&&G.data.items&&G.data.items.length>0?"SUCCESS":"FAILURE",I==="FAILURE"&&_.Ck(new _.iW("Guide data.items empty")),_.Do(c0r(),I),_.Vp(R)}})};
_.P.setGuideData=function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1)return c.disabled?Z.return():c.data?(G.data=c.data,c.guideRenderers.add(G),Z.return()):Z.yield(c.initializeGuideData(),2);c.graftGuideToPage();I=_.XG("IS_HOMEPAGE_COLD")?"eop":void 0;_.v("disable_element_pool_populator")?c.setGuideDataAfterInit(G):(R=new _.px(1,I),_.Mi(R,c.setGuideDataAfterInit.bind(c,G)));_.Vp(Z)})};
_.P.setGuideDataAfterInit=function(G){G.data=this.data;G.markDirty();this.guideRenderers.add(G);_.xW(function(){_.LC("gle")});
_.O$(this,function(){_.LC("gpe")})};
_.P.graftGuideToPage=function(){if(this.data){var G=this.data&&this.data.trackingParams;G&&(G=_.kC(G),_.HE(_.DP(),G))}};
_.P.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.lO(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.P.onDrawerOpenedChanged=function(G,c){!c.value&&this.guideOpened&&(this.guideOpened=!1)};
_.P.onYtGuideToggle=function(G){var c=this.guideOpened;this.guideOpened=!c;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var I=_.OC();_.eW(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;I.save()}this.updateGuideDrawerElementState();if(this.guideElement){var R;this.guideOpened&&((R=G.detail)==null?0:R.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.lO(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.lO(this,this.onAppDrawerTransitioned))}c||this.initializeGuideDataIfEmpty()};
_.P.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.lO(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.ax(this.guideElement)};
_.P.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.lO(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(yk7(this.guideOpened))};
_.P.guidePersistentAndVisibleChanged=function(){_.gq(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.P.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.R6({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.P.miniGuideVisibleChanged=function(){_.gq(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.P.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(yk7(this.guideOpened)),this.initialLoad=!1);_.gq(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.P.activeEndpointChanged=function(){_.gq(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.P.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.P.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.P.cachedClientWidthChanged=function(){this.updateGuideState()};
_.P.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.P.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var G=this.canFitPersistentGuide(this.cachedClientWidth);G?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=G}this.updateGuideDrawerElementState()};
_.P.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.P.getGuideOpened=function(){return this.guideOpened};
_.P.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.P.getActiveEndpoint=function(){return this.activeEndpoint};
_.P.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.P.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.Xl(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.P.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.v("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.P.handleGuideMouseLeave=function(){var G=this;!this.sessionUserManuallyExpandedGuideState&&_.v("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.tc(this,"handleGuideMouseLeave",function(){G.isMouseOverGuide||!G.guideOpened||G.miniGuideVisible||(G.guideOpened=!1,G.updateGuideDrawerElementState())},100))};
_.P.computeGuidePersistentAndVisible=function(){var G=this;_.tc(this,"computeGuidePersistentAndVisible",function(){G.guidePersistentAndVisible=G.guideOpened&&G.guidePersistent;G.guideIsVisibleButNotPersistent=!(!G.guideOpened||G.guidePersistent)})};
_.P.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.P.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.P.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.P.startLoadingWatch=function(){this.closeGuide()};
_.P.startLoadingShorts=function(){_.v("web_hide_guide_on_shorts")&&this.closeGuide()};
_.P.onYtNavigateFinish=function(G,c){if(!_.FY||c){this.activeEndpoint=c.endpoint;this.pageType=c.pageType;this.pageUrl=c.response.url;var I,R;G=(R=_.D((I=c.endpoint)==null?void 0:I.commandMetadata,_.Pd))==null?void 0:R.url;!this.pageUrl&&G&&(this.pageUrl=G);_.v("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.P.getVisibleGuideRenderer=function(){for(var G=_.Q(this.guideRenderers),c=G.next();!c.done;c=G.next())if(c=c.value,this.miniGuideVisible&&c.is==="ytd-mini-guide-renderer"||this.guideOpened&&c.is==="ytd-guide-renderer")return c;return null};
_.P.markGuideRendererDirty=function(G){if(G){typeof G.markDirty==="function"&&G.markDirty();G=_.Q([].concat(_.jn(_.Q1(G).children)));for(var c=G.next();!c.done;c=G.next())this.markGuideRendererDirty(c.value)}};
_.P.persistentGuideEnabled=function(G,c){if(!c||G==="watch"||G==="settings"||G==="shorts"&&this.isFullscreenShorts||_.v("reels_web_disable_persistent_guide_shorts")&&G==="shorts")return!1;var I=_.Aw(c)||"";return _.v("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(R){return I===R}):!this.persistentGuideBlockedPagePathRegex.test(I)};
_.P.canFitPersistentGuide=function(G){var c=_.DH("kevlar_persistent_guide_width_threshold",1312);return c===-1||_.v("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:G>this.calculateGuideThreshold(c)};
_.P.calculateGuideThreshold=function(G){return _.v("enable_ai_companion")?G+(this.persistentPanelVisible?400:0):G};
_.P.canFitMiniGuide=function(G){return this.miniGuideWidthThreshold===-1?!1:G>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.P.onResize=function(){var G=this;_.tc(this,"calculateGuideState",function(){G.onResizeDebounced()})};
_.P.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.P.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.P.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.P.getInitialGuideUserStateOpened=function(){return _.v("web_force_mini_guide_default")?!1:!_.OC().getFlag(109)};
_.Nh.Object.defineProperties(CX.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.H1("initialBodyClientWidth")||window.innerWidth}}});
CX.prototype.onResize=CX.prototype.onResize;CX.prototype.observeForMiniGuideVisible=CX.prototype.observeForMiniGuideVisible;CX.prototype.computeGuidePersistentAndVisible=CX.prototype.computeGuidePersistentAndVisible;CX.prototype.persistentPanelVisibleChanged=CX.prototype.persistentPanelVisibleChanged;CX.prototype.cachedClientWidthChanged=CX.prototype.cachedClientWidthChanged;CX.prototype.resetGuide=CX.prototype.resetGuide;CX.prototype.activeEndpointChanged=CX.prototype.activeEndpointChanged;
CX.prototype.guideOpenedChanged=CX.prototype.guideOpenedChanged;CX.prototype.miniGuideVisibleChanged=CX.prototype.miniGuideVisibleChanged;CX.prototype.guideIsVisibleButNotPersistentChanged=CX.prototype.guideIsVisibleButNotPersistentChanged;CX.prototype.guidePersistentAndVisibleChanged=CX.prototype.guidePersistentAndVisibleChanged;CX.prototype.onGuideElementChanged=CX.prototype.onGuideElementChanged;CX.prototype.onGuidePersistentChanged=CX.prototype.onGuidePersistentChanged;
CX.prototype.onRenderGuideChanged=CX.prototype.onRenderGuideChanged;CX.prototype.onActiveEndpointChanged=CX.prototype.onActiveEndpointChanged;CX.prototype.onMiniGuideVisibleChanged=CX.prototype.onMiniGuideVisibleChanged;CX.prototype.onGuideIsVisibleButNotPersistentChanged=CX.prototype.onGuideIsVisibleButNotPersistentChanged;CX.prototype.onGuidePersistendAndVisibleChanged=CX.prototype.onGuidePersistendAndVisibleChanged;
_.r([_.L(_.Zu),_.h("design:type",Object)],CX.prototype,"ironResizableBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],CX.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],CX.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],CX.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],CX.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Boolean)],CX.prototype,"disabled",void 0);_.r([_.E(),_.h("design:type",Boolean)],CX.prototype,"guidePersistentAndVisible",void 0);_.r([_.wD("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onGuidePersistendAndVisibleChanged",null);_.r([_.E(),_.h("design:type",Boolean)],CX.prototype,"guideIsVisibleButNotPersistent",void 0);
_.r([_.wD("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.r([_.E(),_.h("design:type",Object)],CX.prototype,"miniGuideVisible",void 0);_.r([_.wD("miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onMiniGuideVisibleChanged",null);_.r([_.E(),_.h("design:type",Boolean)],CX.prototype,"forceMiniGuideClose",void 0);
_.r([_.E(),_.h("design:type",Object)],CX.prototype,"activeEndpoint",void 0);_.r([_.wD("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onActiveEndpointChanged",null);_.r([_.E(),_.h("design:type",Boolean)],CX.prototype,"renderGuide",void 0);_.r([_.wD("renderGuide"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onRenderGuideChanged",null);
_.r([_.E({selector:q1G}),_.h("design:type",Boolean)],CX.prototype,"persistentPanelVisible",void 0);_.r([_.E(),_.h("design:type",Object)],CX.prototype,"guideOpened",void 0);_.r([_.E(),_.h("design:type",Boolean)],CX.prototype,"guidePersistent",void 0);_.r([_.wD("guidePersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onGuidePersistentChanged",null);_.r([_.E(),_.h("design:type",Object)],CX.prototype,"guideUserStateOpened",void 0);
_.r([_.E(),_.h("design:type",String)],CX.prototype,"pageUrl",void 0);_.r([_.E(),_.h("design:type",String)],CX.prototype,"pageType",void 0);_.r([_.E(),_.h("design:type",Number)],CX.prototype,"cachedClientWidth",void 0);_.r([_.E(),_.h("design:type",Object)],CX.prototype,"guideElement",void 0);_.r([_.E({selector:_.al}),_.h("design:type",Object)],CX.prototype,"isFullscreenShorts",void 0);
_.r([_.wD("guideElement"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onGuideElementChanged",null);_.r([_.wD("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"guidePersistentAndVisibleChanged",null);
_.r([_.uO("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"guideIsVisibleButNotPersistentChanged",null);_.r([_.wD("miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"miniGuideVisibleChanged",null);_.r([_.uO("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"guideOpenedChanged",null);
_.r([_.wD("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"activeEndpointChanged",null);_.r([_.uO("pageUrl"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"resetGuide",null);_.r([_.uO("cachedClientWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"cachedClientWidthChanged",null);
_.r([_.uO("persistentPanelVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"persistentPanelVisibleChanged",null);_.r([_.wD("guideOpened","guidePersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"computeGuidePersistentAndVisible",null);
_.r([_.uO("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"observeForMiniGuideVisible",null);_.r([_.qY("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"onResize",null);_.r([_.Jc({disableElementRegistration:!0,is:"yt-guide-manager"})],CX);
var wxu=_.B(CX,"yt-guide-manager",void 0,{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var HJ=function(){var G=_.J.apply(this,arguments)||this;G.JSC$20539_keyboardInUse=!1;G.boundHandleCapturedKeydownEvent=function(c){G.handleCapturedKeydownEvent(c)};
return G};
_.u(HJ,_.J);_.P=HJ.prototype;_.P.attached=function(){this.listenToDocument(document)};
_.P.listenToDocument=function(G){G.addEventListener("keydown",_.lO(this,this.onKeyDownEvent));G.addEventListener("keyup",_.lO(this,this.onKeyUpEvent));G.addEventListener("mousedown",_.lO(this,this.onMouseDownEvent));_.v("desktop_keyboard_capture_keydown_killswitch")||G.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.addEventListener("yt-page-data-updated",_.lO(this,this.onPageUpdate))};
_.P.detached=function(){this.unlistenFromDocument(document)};
_.P.unlistenFromDocument=function(G){G.removeEventListener("keydown",_.lO(this,this.onKeyDownEvent));G.removeEventListener("keyup",_.lO(this,this.onKeyUpEvent));G.removeEventListener("mousedown",_.lO(this,this.onMouseDownEvent));_.v("desktop_keyboard_capture_keydown_killswitch")||G.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.removeEventListener("yt-page-data-updated",_.lO(this,this.onPageUpdate))};
_.P.ready=function(){_.wH().addProvider({provide:_.zb,useValue:this})};
_.P.isKeyBoardInUse=function(){return this.JSC$20539_keyboardInUse};
_.P.handleCapturedKeydownEvent=function(G){if(G.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(G)};
_.P.onMouseDownEvent=function(){this.JSC$20539_keyboardInUse=!1};
_.P.onPageUpdate=function(){if(_.v("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.v("web_shorts_keyboard_shortcut_usage_log")){_.Ymu.clear();for(var G=_.Q(_.Oa),c=G.next();!c.done;c=G.next()){var I=_.Q(c.value);c=I.next().value;I=I.next().value;I=_.qj(I);_.Ymu.set(c,I);_.Wd(_.k0(),_.u6(),I)}_.Gzj.clear();G=_.Q(_.e$);for(c=G.next();!c.done;c=G.next())I=_.Q(c.value),c=I.next().value,I=I.next().value,I=_.qj(I),_.Gzj.set(c,I),_.Wd(_.k0(),_.u6(),I);_.i8(_.k0(),_.u6(),[].concat(_.jn(_.Gzj.values()),
_.jn(_.Ymu.values())));_.Bd(_.k0(),[].concat(_.jn(_.Gzj.values()),_.jn(_.Ymu.values())))}};
_.P.onMiniplayerActiveChange=function(){var G;(G=_.wH().resolve(_.tA).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(G.document):this.unlistenFromDocument(G.document))};
_.P.ignoreKeyEvent=function(G){if(G.ctrlKey||G.altKey)if(_.v("kevlar_macro_markers_keyboard_shortcut")){if(G.keyCode!==37&&G.keyCode!==39)return!0}else return!0;var c=_.CE(G)||[];return _.ycF(c)?(_.v("web_button_or_anchor_list_item")&&$ju(c,G)&&(this.JSC$20539_keyboardInUse=!0),!0):G.defaultPrevented?(uF(G.keyCode,G.shiftKey,this.isShortsPage),!0):G.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(G):!1};
_.P.isSpacebarClick=function(G){var c=G||window.event;var I;c.composedPath&&typeof c.composedPath==="function"?I=c.composedPath():I=c.path;I&&I.length?c=I[0]:(c=c||window.event,c=c.target||c.srcElement,c.nodeType==3&&(c=c.parentNode));return c&&G.keyCode===32&&(G=c.tagName==="BUTTON"||c.tagName==="A"||c.tagName==="INPUT",c=(c=c.getAttribute("role"))&&(c==="option"||c==="button"||c.indexOf("menuitem")===0),G||c)?!0:!1};
_.P.onKeyDownEvent=function(G){if(!this.ignoreKeyEvent(G)&&(G.keyCode===191&&(G.shiftKey||G.metaKey?G.repeat!=null&&G.repeat||(this.openHotkeyDialog(),uF(G.keyCode,G.shiftKey,this.isShortsPage)):(this.focusSearchBox(),G.preventDefault())),!G.metaKey)){var c=_.wH().resolve(_.tA);switch(G.keyCode){case 9:this.JSC$20539_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(G);break;case 84:c.pipController.getWindow()&&window.focus();this.toggleTheaterMode(G.keyCode,G.shiftKey);break;case 73:c.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(G.keyCode,G.shiftKey);break;case 70:if(this.isShortsPage){_.gW1();break}this.isMiniplayerActive()?c.pipController.getWindow()&&(c.close(!0),window.focus()):this.passEventToPlayer(G);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(G.keyCode,G.shiftKey):this.closeMiniplayer(G.keyCode,G.shiftKey)||this.passEventToPlayer(G);break;case 13:G.shiftKey&&_.wH().resolve(_.zL).activate(G);break;default:this.passEventToPlayer(G)}}};
_.P.onKeyUpEvent=function(G){if(!this.ignoreKeyEvent(G))if(_.v("web_speedmaster_spacebar_control")&&G.keyCode===32)this.handlePlayerSpaceKey(G,!0);else{var c=this.getPlayerManager();c&&(c=c.getPlayer())&&c.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code)}};
_.P.getPlayerManager=function(){var G=_.ZA(),c=_.wH().resolve(_.qR(_.I9));return G&&c&&c.isOnWatch()?G:null};
_.P.passEventToPlayer=function(G,c){var I=this,R,Z,K,m;return _.T(function(a){if(a.nextAddress==1){if(!_.v("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&I.isMiniplayerActive())R=_.wH().resolve(_.tA).getPlayerElement();else if(I.inlinePreviewIsActive){if(Z=_.gq(I.hostElement,"yt-get-inline-preview-player-action"),(K=Z)==null?0:K[0])R=Z[0]}else R=_.ZA();return R?a.yield(R.getPlayerPromise(),3):a.jumpTo(0)}m=a.yieldResult;c?m.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,
G.key,G.code):m.handleGlobalKeyDown(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code,G.repeat);G.keyCode!==38&&G.keyCode!==40&&uF(G.keyCode,G.shiftKey,I.isShortsPage);_.Vp(a)})};
_.P.focusSearchBox=function(){_.Xl(this.hostElement,"yt-focus-searchbox")};
_.P.openHotkeyDialog=function(){_.Xl(this.hostElement,"yt-open-hotkey-dialog")};
_.P.isMiniplayerActive=function(){return _.wH().resolve(_.tA).isMiniplayerActive()};
_.P.closeMiniplayer=function(G,c){return this.isMiniplayerActive()?(_.wH().resolve(_.tA).close(),uF(G,c,this.isShortsPage),!0):!1};
_.P.toggleTheaterMode=function(G,c){var I=_.z9(_.y4().getState()),R=this.getPlayerManager(),Z=_.v("disable_theater_mode_keyboard")||_.XG("START_IN_FULL_WINDOW_MODE");R&&!Z&&(I=!I,_.hO()&&_.v("external_fullscreen")&&(I=!0),_.ym(this.hostElement,"yt-toggle-theater-mode",[I]),uF(G,c,this.isShortsPage))};
_.P.toggleMiniplayer=function(G,c){var I=this.getPlayerManager();if(this.isMiniplayerActive()){var R;((R=_.wH().resolve(_.qR(_.I9)))==null?0:R.isOnWatch())?_.wH().resolve(_.tA).close(!0):_.x8(_.wH().resolve(_.tA));uF(G,c,this.isShortsPage)}else I&&(_.ym(this.hostElement,"yt-activate-miniplayer-from-watch-action"),uF(G,c,this.isShortsPage))};
_.P.handlePlayerSpaceKey=function(G,c){var I=!!_.ZA()||this.isMiniplayerActive();I=_.v("disable_space_scroll_fix")||I;_.v("global_spacebar_pause")&&!this.isKeyBoardInUse()&&I&&(G.preventDefault(),this.passEventToPlayer(G,c))};
_.P.isPresentingTheaterMode=function(){return _.v("web_watch_enable_tm_esc_key")?_.z9(_.y4().getState())&&!_.hO():!1};
HJ.prototype.onMiniplayerActiveChange=HJ.prototype.onMiniplayerActiveChange;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],HJ.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],HJ.prototype,"ytdReduxBehavior",void 0);_.r([_.E({selector:_.fs0}),_.h("design:type",Boolean)],HJ.prototype,"inlinePreviewIsActive",void 0);_.r([_.E({selector:_.dLU}),_.h("design:type",Boolean)],HJ.prototype,"isShortsPage",void 0);
_.r([_.E({selector:_.pp}),_.h("design:type",Boolean)],HJ.prototype,"miniplayerIsActive",void 0);_.r([_.wD("miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HJ.prototype,"onMiniplayerActiveChange",null);_.r([_.Jc({disableElementRegistration:!0,is:"yt-hotkey-manager"})],HJ);_.B(HJ,"yt-hotkey-manager",void 0,{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var Xv=function(){var G=_.J.apply(this,arguments)||this;G.loopStateEntityKey_=null;G.playlistLoopStateEntity_=null;G.isShuffleNextPlaylist=!1;G.PLAYER_EVENTS_=new Map;G.playerListenersSetup_=!1;G.videoSkipJob_=0;G.canAutoAdvance_=!1;G.playerManager_=null;G.TEST_ONLY={};return G};
_.u(Xv,_.J);_.P=Xv.prototype;_.P.ready=function(){_.wH().addProvider({provide:_.u1,useValue:this.hostElement})};
_.P.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.P.attached=function(){document.addEventListener("yt-navigate-start",_.lO(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.lO(this,this.onYtNavigateFinish_))};
_.P.detached=function(){document.removeEventListener("yt-navigate-start",_.lO(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.lO(this,this.onYtNavigateFinish_))};
_.P.updatePlaylistEventListeners=function(G,c){c&&!this.playerListenersSetup_?(this.playerManager_=G,this.registerPlaylistEventListeners_(G)):!c&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(G))};
_.P.setPlayer=function(G){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=G};
_.P.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.P.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.P.registerPlaylistEventListeners_=function(G){var c=this;G.getPlayerPromise().then(function(I){c.playerListenersSetup_||(c.ytPlayerListenerBehavior.listenToPlayerEvents(I,c.PLAYER_EVENTS_),c.playerListenersSetup_=!0)})};
_.P.removePlaylistEventListeners_=function(G){var c=this;G.getPlayerPromise().then(function(I){c.playerListenersSetup_&&(c.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I,c.PLAYER_EVENTS_),c.playerListenersSetup_=!1)})};
_.P.setPlaylistComponent=function(G){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.lO(this,this.onPlaylistYtNavigate_)),G&&(G.data&&this.playlistComponent.data&&G.data.playlistId==this.playlistComponent.data.playlistId?(G.loopOn=this.playlistComponent.loopOn,G.shuffleOn=this.playlistComponent.shuffleOn):(G.loopOn=!1,G.shuffleOn=!1),this.isShuffleNextPlaylist&&(G.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=G;this.playlistComponent.addEventListener("yt-navigate",
_.lO(this,this.onPlaylistYtNavigate_))};
_.P.setAutoplayRenderer=function(G){this.autoplayData=G};
_.P.setPlaylistData=function(G){this.currentPlaylistData_=G;_.Xl(this.hostElement,"yt-playlist-data-updated");_.rx.isEmpty(G)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(G)};
_.P.setPlayerPlaybackControlData=function(G){this.playerManager_&&this.playerManager_.updatePlayerComponents(G.playlistPanelRenderer)};
_.P.getPlaylistData=function(){return this.currentPlaylistData_};
_.P.getTempData_=function(G,c){if(this.playlistComponent==null)return null;G={};this.playlistComponent.shuffleOn&&(G.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(G.loop_on=this.playlistComponent.loopOn);c&&(G.autonav="1",_.wH().resolve(_.uf),c=_.wj(),c>0&&(G.lact=c),this.playerManager_&&(c=this.playerManager_.getPlayer())&&c.shouldSendVisibilityState()&&(c=c.getVisibilityState(),c!=0&&(G.vis=c)));_.v("enable_unknown_lact_fix_on_html5")&&(_.wH().resolve(_.uf),G.lact=
_.wj());return G};
_.P.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.P.setLoopStateEntityKey_=function(G){var c;this.loopStateEntityKey_=((c=this.getPlaylistLoopData_(G))==null?void 0:c.playlistLoopStateEntityKey)||null};
_.P.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.P.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.P.skipVideo=function(){var G=this,c=_.v("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||c)c=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.SR(_.dJ,function(){G.onPlaylistNext();G.videoSkipJob_=0},c)};
_.P.cancelVideoSkip=function(){this.videoSkipJob_&&(_.dJ.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.P.isInBackground_=function(){var G=window.document.visibilityState;return!(!G||G=="visible")};
_.P.onPlaylistIndex_=function(G){this.playlistComponent&&(G=this.playlistComponent.data.contents[G].playlistPanelVideoRenderer.navigationEndpoint,_.Xl(this.hostElement,"yt-navigate",{endpoint:G,tempData:this.getTempData_(G)}))};
_.P.onPlayerStateChange_=function(G){if(G=G==0&&this.playlistComponent&&this.canAutoAdvance_)G=_.Jt.getInstance(),G=!(G.autonavState_===3?G.autonavPauseReason_&&G.autonavPauseReason_.inputBoxFocus===!0:G.autonavState_===1&&G.disabledAutonavPauseReason_&&G.disabledAutonavPauseReason_.inputBoxFocus===!0);G&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.P.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.P.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.P.navigateToAutoplayWatchEndpoint_=function(G,c,I){var R=this.playlistComponent.data.currentIndex,Z=this.getNumPlayableVideos_();G=="NORMAL"&&c=="autoplayVideo"&&R+1>=Z&&I||!(G=this.getVideoEndpoint_(G,c))||(I=this.getTempData_(G,I),_.Xl(this.hostElement,"yt-navigate",{endpoint:G,tempData:I}))};
_.P.getNumPlayableVideos_=function(){for(var G=0,c=_.Q(this.playlistComponent.data.contents||[]),I=c.next();!I.done;I=c.next())I.value.playlistPanelVideoRenderer&&(G+=1);return G};
_.P.getVideoEndpoint_=function(G,c){if(this.autoplayData&&this.autoplayData.sets)for(var I=0,R=this.autoplayData.sets.length;I<R;I++){var Z=this.autoplayData.sets[I];if(Z.mode==G){if(Z[c])return Z[c];break}}else G=new _.iW("AutoplayData is undefined in playlist manager","Mode: "+G+" endpoint: "+c),_.Ck(G)};
_.P.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.P.onPlaylistYtNavigate_=function(G){if(G.detail.endpoint){G.stopPropagation();var c=G.detail;c.tempData=this.getTempData_(G.detail.endpoint);_.Xl(this.hostElement,"yt-navigate",c)}};
_.P.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.P.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.P.playlistLoopStateEntityChanged_=function(G){var c=this,I,R,Z;return _.T(function(K){if(K.nextAddress==1){if(!G)return K.return();I=G.state==="PLAYLIST_LOOP_STATE_ONE";return c.playerManager_?K.yield(c.playerManager_.getPlayerPromise(),3):K.jumpTo(2)}K.nextAddress!=2&&(R=K.yieldResult,R.setLoopVideo(I));Z=G.state==="PLAYLIST_LOOP_STATE_ALL";c.playlistComponent&&(c.playlistComponent.loopOn=Z);_.Vp(K)})};
_.P.getPlaylistLoopData_=function(G){var c,I;if(G=G==null?void 0:(c=G.playlistButtons)==null?void 0:(I=c.menuRenderer)==null?void 0:I.topLevelButtons)for(c=_.Q(G),I=c.next();!I.done;I=c.next())if(I=I.value,I.playlistLoopButtonRenderer)return I.playlistLoopButtonRenderer};
_.P.getLoopStateCommand_=function(G){var c=this.getPlaylistData(),I;c=((I=this.getPlaylistLoopData_(c))==null?void 0:I.states)||[];var R;G=(R=_.D(c[G?1:2],_.i$A))==null?void 0:R.button;var Z;return(Z=_.D(G,_.vE))==null?void 0:Z.command};
_.P.onPlayerLoopChange_=function(G){this.playlistLoopStateEntity_&&(G?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(G=this.getLoopStateCommand_(G))&&this.ytComponentBehavior.resolveCommand(G)};
_.P.onSleepTimerSettingsChanged_=function(G){this.canAutoAdvance_=G!=="End of video"};
Xv.prototype.onPlaylistLoopStateEntityChanged=Xv.prototype.onPlaylistLoopStateEntityChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Xv.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.LI.YtPlayerListenerBehavior),_.h("design:type",_.Au)],Xv.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Xv.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Xv.prototype,"loopStateEntityKey_",void 0);
_.r([_.E({selectorArgs:["loopStateEntityKey_"],selector:_.QZ.playlistLoopStateEntitySelector}),_.h("design:type",Object)],Xv.prototype,"playlistLoopStateEntity_",void 0);_.r([_.wD("playlistLoopStateEntity_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xv.prototype,"onPlaylistLoopStateEntityChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"yt-playlist-manager"})],Xv);_.B(Xv,"yt-playlist-manager",void 0,{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var F6j,ngj=function(){if(F6j!==void 0)return F6j;var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return F6j=G};var yb=function(){var G=_.J.apply(this,arguments)||this;G.lastCallback=null;G.getAccountLinkPromises={};G.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);G.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return G};
_.u(yb,_.J);_.P=yb.prototype;_.P.getLocation=function(){return window.location.href};
_.P.getCompletionUrl=function(){return _.jy(this.getLocation())};
_.P.containsRedirectState=function(G){return(G=_.zF(_.nkb(G)))?(new URLSearchParams(G)).get("redirect_state")!==null:!1};
_.P.createGalConfig=function(G,c){var I=new SAW;G=I=c?this.getPopupOrRedirectSetting(I,_.H1("LINK_API_KEY"),_.H1("LINK_API_KEY_REDIRECT"),G):ppW(I,_.H1("LINK_API_KEY"));G.authUser=_.H1("SESSION_INDEX")||0;G.supportedFlows=new Set([4]);return G.build()};
_.P.getPopupOrRedirectSetting=function(G,c,I,R){this.isGalInteractionPopupMode(R)?(G.interactionMode=0,G=ppW(G,c)):(G.interactionMode=1,c=this.getCompletionUrl(),G.completionUrl=c,G=ppW(G,I));return G};
_.P.isGalInteractionPopupMode=function(G){if(this.redirectModeProviderAllowlist.has(G))switch(G){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.P.getStatusEntityKeyForProviderId=function(G){return _.mx(G+":all","accountLinkStatusEntity")};
_.P.findNestedPropValue=function(G,c){var I=!1,R=null;JSON.stringify(G,function(Z,K){I||Z!==c||(I=!0,R=K);return I?null:K});
return R};
_.P.findAccountLinkButtonViewModel=function(G,c){var I=null,R=!1;JSON.stringify(G,function(Z,K){R||K.accountLinkStatusEntityKey!==c||K.accountLinkStatusSecondaryEntityKey||(R=!0,I=K);return R?null:K});
return I};
_.P.executeLinkingSuccessOrFailureCommands=function(G,c,I){var R=null,Z;(c==null?0:(Z=c.url)==null?0:Z.includes("account_sharing"))?R=c==null?void 0:c.response:R=c==null?void 0:c.response;(c=this.findAccountLinkButtonViewModel(R,G))?(G=I?this.findNestedPropValue(c,"onSuccessCommand"):this.findNestedPropValue(c,"onFailureCommand"))?_.ZS([G],this.hostElement):_.Ra(Error("Cl")):_.Ra(Error("Dl`"+G))};
_.P.handleInitializeRequest=function(G,c){var I=this,R=bs1(this.createGalConfig(G,!0));this.containsRedirectState(this.getLocation())?vP$(G,R.config,R.galService).then(function(Z){var K=I.getStatusEntityKeyForProviderId(G);if(Z.statusCode===1)c&&I.executeLinkingSuccessOrFailureCommands(K,c,!0),Z=I.getLocation().indexOf("#"),Z!==-1&&window.history.pushState(null,"",I.getLocation().substring(0,Z));else return c&&I.executeLinkingSuccessOrFailureCommands(K,c,!1),Promise.reject(Error(Z.statusMessage))}).catch(function(Z){_.Ck(Z);
_.x7("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Z)}):this.getAccountLinkPromises[G]=R.startLinkingSession({serviceId:G})};
_.P.handleAccountLinkCommand=function(G){_.D(G,hz$)&&this.handleLinkRequest(_.D(G,hz$))};
_.P.handleLinkRequest=function(G){var c=this,I=G.thirdPartyId;if(I)if(this.isGalInteractionPopupMode(I)){var R=function(){c.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onFailureCommand)},Z=function(){c.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onSuccessCommand)};
this.lastCallback=Z;this.getAccountLinkPromises[I].then(function(K){ey$(K).then(function(m){m.statusCode===1?Z():R()})}).catch(function(){R()})}else this.getAccountLinkPromises[I].then(function(K){ey$(K).then(function(m){if(m.statusCode!==1)return Promise.reject(Error(m.statusMessage))})}).catch(function(K){_.Ck(K);
_.x7("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(K)})};
_.P.closeAndFire=function(G,c){_.ym(this.hostElement,"yt-close-popup-action",[G]);c&&_.ZS([c],this.hostElement)};
_.P.handleAccountUnlinkCommand=function(G){_.D(G,dIH)&&this.handleUnlinkRequest(_.D(G,dIH))};
_.P.handleUnlinkRequest=function(G){var c=this,I=G.thirdPartyId;if(I){var R=function(){c.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onFailureCommand)},Z=function(){c.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onSuccessCommand)};
this.lastCallback=Z;var K=bs1(this.createGalConfig(I,!1));this.unlinkUserGal(K,I).then(function(m){m.statusCode===1?Z():R()}).catch(function(){R()})}};
_.P.unlinkUserGal=function(G,c){return G.deleteLink(c)};
_.P.handleLogAccountLinkingEventCommand=function(G){_.v("enable_gel_log_commands")&&_.D(G,CXj)&&(G=_.D(G,CXj).event)&&_.x7("gamingAccountLinkStatusChanged",G)};
_.Nh.Object.defineProperties(yb,{template:{configurable:!0,enumerable:!0,get:function(){return ngj()}}});
_.r([_.L(_.dm.YtOpenPopupBehavior),_.h("design:type",Object)],yb.prototype,"ytOpenPopupBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],yb.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-third-party-manager"})],yb);_.B(yb,"ytd-third-party-manager",function(){return ngj()},{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var vgd,Da7=function(){if(vgd!==void 0)return vgd;var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return vgd=G};var gk=function(){var G=_.J.apply(this,arguments)||this;G.currentPage=void 0;G.renderLoadingStateJobId=0;G.updatePageDataJobId=0;G.pageDisposeJobsets=new WeakMap;G.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};G.shouldApplyLockupToWatchTransition=_.v("web_thumbnail_to_watch_transition");G.shouldApplySlideTransition=_.oa("web_page_transition_type")==="slide"||_.v("enable_plj_landing_page");G.shouldApplyLearningJourneyTransition=_.v("enable_plj_landing_page");G.TEST_ONLY=void 0;return G};
_.u(gk,_.J);_.P=gk.prototype;_.P.ready=function(){var G=_.wH();G.addProvider({provide:_.I9,useValue:this});G.addProvider({provide:_.TSd,useValue:this})};
_.P.created=function(){this.pagePool=new xcr;this.contextSwitcher=new ZrW};
_.P.attached=function(){_.Xl(this.hostElement,"attached");var G=_.wH().resolve(_.qR(_.oI));G&&(this.contextSwitcher.JSC$20364_networkService_=G);this.viewTransitionManager=_.wH().resolve(_.mk)};
_.P.getPageOffset=function(G){return G.getScrollTop()};
_.P.setPageOffset=function(G,c){try{G.setScrollTop(c)}catch(I){}};
_.P.setPageOffsetForNavigation=function(G,c){_.Xl(this.hostElement,"yt-navigate-set-page-offset",{page:G,offset:c===void 0?0:c})};
_.P.pauseActiveContext=function(){var G=this.contextSwitcher;G.activeContext_&&G.activeContext_.pause()};
_.P.getModuleNameForType=function(G){return G==="watch"?_.v("kevlar_watch_fixie")?"watchFixie":_.v("kevlar_watch_grid")?"watchGrid":"watchFlexy":G==="shorts"||G==="search"?G:"browse"};
_.P.attachPage=function(G){var c,I=!_.v("pc_is_attached_ks")&&(G==null?void 0:(c=G.polymerController)==null?void 0:c.isAttached);if(!G.isAttached&&!I)try{_.Q1(this.hostElement).appendChild(G)}catch(Z){var R;_.Ck(new _.iW("Error attaching page element for component",{origin:(R=this.currentPage)==null?void 0:R.is,component:G.is}))}};
_.P.setActivePage=function(G,c){var I=this,R=!1,Z=function(){var K=I.isOnWatch(),m=I.currentPage;if(G)if(G!==I.currentPage){m&&(m.hidden=!0,m.active=!1,m.removeAttribute("role"));I.currentPage=G;var a,O=c!=null?c:_.lu((a=I.data)==null?void 0:a.endpoint);m&&_.Xl(I.hostElement,"yt-page-type-changed",{oldPageType:m.is,newPageType:G.is,newPageSubtype:O});_.XZ().dispatch(_.R6({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:G.is}));_.XZ().dispatch(_.R6({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:O||""}));
G.hidden=!1;I.attachPage(G);G.active=!0;G.setAttribute("role","main");m&&I.setPageOffsetForNavigation(G,0);_.v("kevlar_remove_page_dom_on_switch")&&!K&&m&&_.Q1(I.hostElement).removeChild(m)}else R=!0;else I.handleMissingDestinationPage(m)};
this.shouldRunBrowseTransition(this.currentPage,G)?U7W(this.viewTransitionManager,Z):this.shouldRunLearningJourneyTransition(this.currentPage,G)?kZ$(this.viewTransitionManager,Z):Z();return R};
_.P.handleMissingDestinationPage=function(G){if(this.isColdLoadForUnknownPage(G))_.Ck(new _.iW("Cold load for unknown page"));else{var c;G=new _.iW("Unable to set active page",G?G.is:"unknown origin",(c=this.data)==null?void 0:c.endpoint);_.hg(G)}};
_.P.isColdLoadForUnknownPage=function(G){return!G&&vP(this.data)==="unknown"};
_.P.shouldRunBrowseTransition=function(G,c){return this.shouldApplySlideTransition&&(G==null?void 0:G.is)==="ytd-browse"&&(c==null?void 0:c.is)==="ytd-browse"&&G!==c};
_.P.shouldRunLearningJourneyTransition=function(G,c){return this.shouldApplyLearningJourneyTransition&&(G==null?void 0:G.is)==="ytd-browse"&&((c==null?void 0:c.is)==="ytd-watch-learning-journey"||(c==null?void 0:c.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.P.shouldRunWatchNextLoadedTransition=function(G,c){return this.viewTransitionManager&&G.is==="ytd-watch-flexy"&&c};
_.P.updatePageData=function(G){var c=this,I=this.data;this.updatePageDataJobId&&_.dJ.cancelJob(this.updatePageDataJobId);this.data=G;return new _.Lk(function(R){var Z=function(){G.filler?c.performDataUpdate(G,I):ShG(function(){c.performDataUpdate(G,I)});
var O=_.kL();_.sO(O,"cr")||O.processSignal("cr");R()},K=function(){G&&(G.page==="watch"||_.v("web_shorts_delay_shorts_page_update")&&G.page==="shorts")?c.updatePageDataJobId=_.SR(_.dJ,Z):Z()};
if(_.v("kevlar_enable_mss_page_modules_client")&&G){var m=_.wH().resolve(_.He),a=c.getModuleNameForType(G.page);(m=D7g(m,[a]))?m.then(K):K()}else K()})};
_.P.isDownloadsPage=function(G){var c,I;return(G==null?void 0:(c=G.endpoint)==null?void 0:(I=c.browseEndpoint)==null?void 0:I.browseId)==="FEdownloads"};
_.P.setPlayerSyncInterval=function(G){var c;return _.T(function(I){if(I.nextAddress==1)return I.yield(_.wH().resolve(_.a9),2);c=I.yieldResult;c.setUpPositionSyncInterval(G);_.Vp(I)})};
_.P.performDataUpdate=function(G,c){_.v("kevlar_early_popup_close")||_.ym(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var I=!G.filler;I&&(_.LC("lps"),_.v("config_age_report_killswitch")||iQF());var R=vP(G),Z,K=!1;if(_.v("kevlar_remove_page_dom_on_switch")){var m=c&&vP(c);R===m&&(Z=this.getCurrentPage())}Z||(Z=BJ(this.pagePool,R));I&&VI$(this.pagePool.elementPoolPopulator,R);I&&!this.renderLoadingStateJobId&&(K=this.setActivePage(Z));if(Z){m=R==="watch";var a=
R==="shorts",O=R==="learning_journey_watch";_.v("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Z);if(m||a||O)Z.playerData=G.playerResponse;if(a){G.reelWatchSequenceResponse?Z.reelWatchSequenceResponse=G.reelWatchSequenceResponse:!Z.cachedReelWatchSequenceResponse||Z.reelWatchSequenceResponse||_.v("web_enable_delay_shorts_sequence_call_new")||(Z.reelWatchSequenceResponse=Z.cachedReelWatchSequenceResponse);G.reelWatchSequenceResponse&&(c==null?void 0:c.page)!=="shorts"&&
(Z.cachedReelWatchSequenceResponse=G.reelWatchSequenceResponse);Z.currentEndpoint=G.endpoint;var N;Z.isPreviousPageShorts=!!(c==null?0:(N=c.endpoint)==null?0:N.reelWatchEndpoint)}N=this.isDownloadsPage(G);var q=this.isDownloadsPage(c);N&&!q?this.setPlayerSyncInterval(6E5):!N&&q&&this.setPlayerSyncInterval();_.v("block_all_player_prefetch_requests")||this.preparePrefetchRequest(G,Z,I,m,a,O);skd(_.wH().resolve(_.tA),c,G);if(_.v("enable_ai_companion")){var w;(w=_.wH().resolve(_.qR(_.NI)))==null||_.BNr(w,
this.getPersistentPanelSurface(R))}_.z5(_.wH().resolve(_.uf));_.v("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Z);I?(I=typeof Z.loadPage,I==="function"?(Z.pageContext=K07(this.contextSwitcher,Z,Z.data!==G.response),I=function(){Z.loadPage(G.response)},this.shouldApplySlideTransition&&Z.is==="ytd-browse"&&K&&(R==="learning"||this.isDifferentBrowseId(G==null?void 0:G.endpoint,c==null?void 0:c.endpoint))?U7W(this.viewTransitionManager,I):this.shouldRunWatchNextLoadedTransition(Z,
K)?bqG(this.viewTransitionManager,I):I()):_.dj(new _.iW("b/38014653 ",[R,
Z.is,Z.nodeName,I,Z.isAttached,c&&vP(c),this.hostElement.children.length])),_.LC("pdl")):(Z.hidden=!0,G.response.filler=!0,Z.data=G.response,this.attachPage(Z));_.Xl(this.hostElement,"yt-page-data-updated",{pageType:R})}_.W_(_.dJ,function(){_.v("logging_avoid_blocking_during_navigation")&&_.Vu8().transition("none");var F=DcW(),n=Z;if(G){var U=hVu(G),k=dO$(G),p;a:{if(G.playerResponse){var M=G.playerResponse,z;if((p=M.auxiliaryUi)==null?0:(z=p.messageRenderers)==null?0:z.upsellDialogRenderer){p=M.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(G.response&&(p=G.response,(M=p.overlay)==null?0:M.upsellDialogRenderer)){p=p.overlay.upsellDialogRenderer;break a}p=void 0}var t;var x;z=(t=G.playerResponse)==null?void 0:(x=t.auxiliaryUi)==null?void 0:x.messageRenderers;t=(z==null?void 0:z.enforcementMessageViewModel)||(z==null?void 0:z.bkaEnforcementMessageViewModel);t=(t==null?void 0:t.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?t:void 0;var C;a:{if(G.response&&(x=G.response,(C=x.overlay)==null?0:C.commandWrapperPromoRenderer)){C=
x.overlay.commandWrapperPromoRenderer;break a}C=void 0}vRd(F,U,k,p,t,C,n)}})};
_.P.preparePrefetchRequest=function(G,c,I,R,Z,K){var m,a,O,N,q,w,F,n,U,k,p,M,z,t,x;return _.T(function(C){if(C.nextAddress==1)return!I||!(R||Z||K)||_.v("kevlar_disable_background_prefetch")&&_.gK(_.xeb)()===0?C.return():(m=_.R9(c))?C.yield(m.getPlayerPromise(),2):C.return();a=C.yieldResult;O=_.wH().resolve(_.qR(_.oI));if(!O)return C.return();if(Z)return N=_.Pe(_.C7),Bag(N,(q=G.endpoint)==null?void 0:q.reelWatchEndpoint,c.reelWatchSequenceResponse,a,O),C.return();n=(w=G.response)==null?void 0:(F=w.responseContext)==
null?void 0:F.webResponseContextExtensionData;if(!n)return C.return();z=(U=G.response)==null?void 0:(k=U.contents)==null?void 0:(p=k.twoColumnWatchNextResults)==null?void 0:(M=p.autoplay)==null?void 0:M.autoplay;t=_.wH().resolve(_.u1);x=_.Pe(_.C7);r4F(x,n,a,O,t,z);_.Vp(C)})};
_.P.movePlayerToWatch=function(G){var c=this,I,R;return _.T(function(Z){I=BJ(c.pagePool,"watch");R=I.getPlayerContainer();G.appendTo(R);_.Vp(Z)})};
_.P.movePlayerToShorts=function(G){var c=this,I,R,Z;return _.T(function(K){I=BJ(c.pagePool,"shorts");R=I.getPlayerContainer();(Z=G)==null||Z.appendTo(R,void 0,!0);_.Vp(K)})};
_.P.getPlayerFromWatch=function(){var G=BJ(this.pagePool,"watch");return _.R9(G)};
_.P.getPlayerFromShorts=function(){var G=BJ(this.pagePool,"shorts");return _.R9(G)};
_.P.startLoadingWatch=function(){var G=this,c=BJ(this.pagePool,"watch");this.renderLoadingStateJobId?(_.dJ.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.v("web_watch_transition_enable_start_loading_watch_callsite")?ug0(this.viewTransitionManager,function(){G.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(c,"watch");
if(_.v("enable_ai_companion")){var I;(I=_.wH().resolve(_.qR(_.NI)))==null||_.BNr(I,this.getPersistentPanelSurface("watch"))}};
_.P.startLoadingShorts=function(){var G=BJ(this.pagePool,"shorts");this.setActivePage(G,"shorts")};
_.P.startLoadingLearningJourney=function(){var G=BJ(this.pagePool,"learning_journey_watch");this.setActivePage(G,"learning_journey_watch")};
_.P.getCurrentPage=function(){return this.currentPage};
_.P.getDestinationPageType=function(){return this.destinationPageType};
_.P.getCurrentData=function(){return this.data};
_.P.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.P.isOnShorts=function(){var G;return((G=this.currentPage)==null?void 0:G.is)==="ytd-shorts"};
_.P.isWatchPage=function(G){return!!G&&(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-fixie"||G.is==="ytd-watch-grid")};
_.P.preparePage=function(G,c){var I=this,R=function(){var m=I.pagePool.preparePage(G,I.currentPage,c);m&&I.attachPage(m)},Z=function(m){_.H_(m,c);
_.Ck(m)};
if(_.v("kevlar_enable_mss_page_modules_client")){var K=this.getModuleNameForType(G);if(K=D7g(_.wH().resolve(_.He),[K])){K.then(R.bind(this)).catch(Z.bind(this));return}}try{R()}catch(m){Z(m)}};
_.P.lazyPrepareCriticalPages=function(G,c){G=_.lu(c)||G;_.v("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(G).then(this.maybePrepareWatchPage.bind(this,G)):this.maybePrepareWatchPage(G)};
_.P.maybePrepareWatchPage=function(G){G==="watch"||G==="learning_journey_watch"&&_.v("web_watch_learning_journey_disable_lazy_pages")||_.W_(_.dJ,this.preparePage.bind(this,"watch"))};
_.P.downloadPageModules=function(G){G=this.getModuleNameForType(G);var c=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);c.delete(G);var I=_.wH().resolve(_.He);I.JSC$19037_loadModules(G);return I.JSC$19037_loadModules.apply(I,_.jn(c))};
_.P.renderPageLoadingState=function(G,c){this.preparePage(G,c);var I=BJ(this.pagePool,G);I.loadingData&&(I.loadingData.endpoint=c);I.loading=!0;this.setActivePage(I,G);G!=="watch"&&G!=="learning_journey_watch"||_.Xl(this.hostElement,"yt-guide-close")};
_.P.prepareForNavigation=function(G,c){var I=this;if(this.currentPage&&this.data){var R=_.lu(c)||G;this.destinationPageType=R;vP(this.data)==R&&_.Xl(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((G==="watch"||G==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.dJ.cancelJob(this.renderLoadingStateJobId);_.wH().resolve(_.tA).deactivate(c);_.U_(_.dJ,function(){var K=I.viewTransitionManager,m=I.currentPage;
if(K.isLockupToWatchTransitionEnabled&&K.isLockupThumbnailRegistrationEnabled&&m)if(K.registeredLockupThumbnail)K.lockupThumbnailRegisteredFromWatchEndpoint&&_.Ck(new _.iW("Lockup thumbnail already registered from watch endpoint."));else{a:{var a=_.D(c,_.fR);if(a==null?0:a.videoId){var O="yt-lockup-view-model ."+_.Y5r(a.videoId)+" yt-thumbnail-view-model";m=m.querySelectorAll(O);if(m.length===1){a=m[0];break a}m.length>1?_.Ck(new _.iW("Multiple LockupViewModel thumbnails found for videoId: "+a.videoId+
". Selector: "+O)):_.v("web_thumbnail_to_watch_transition_debug")&&_.Ck(new _.iW("No LockupViewModel thumbnail found for videoId: "+a.videoId+". Selector: "+O))}a=void 0}a&&(K.registeredLockupThumbnail=a,K.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.bj7(K,a))}});
var Z=this.data;this.renderLoadingStateJobId=_.U_(_.dJ,function(){ug0(I.viewTransitionManager,function(){if(I.data!=Z){var K=BJ(I.pagePool,G);I.setActivePage(K)}else I.renderPageLoadingState(G,c);I.renderLoadingStateJobId=0})},150)}};
_.P.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var G=new _.px(1);this.currentPage.pageDisposeJobs.forEach(function(c){_.Mi(G,c)});
this.pageDisposeJobsets.set(this.currentPage,G)}};
_.P.flushPageDisposeJobset=function(G){var c=this.pageDisposeJobsets.get(G);c&&(c.flushJobs(),this.pageDisposeJobsets.delete(G))};
_.P.onYtStopOldPlayer=function(G,c){c=c===void 0?!1:c;var I,R=_.U2("kevlar_new_stop_old_player_logic_pages");if(_.v("kevlar_check_current_page_on_stop_old_player")&&(R.length===0||this.currentPage&&R.includes(this.currentPage.is)))if(this.data&&(I=vP(this.data)),vP(G)===I&&this.currentPage&&vP(this.currentPage.data)!==I)var Z=_.R9(this.currentPage);else I=vP(this.data),Z=BJ(this.pagePool,I),Z=_.R9(Z);else this.data&&(I=vP(this.data),Z=BJ(this.pagePool,I),Z=_.R9(Z));if(Z){R=vP(G);var K=BJ(this.pagePool,
R);K=_.R9(K);if(Z==K)c&&!_.v("kevlar_disable_preemptive_player_reset")&&Z.resetForNewPlayback();else if(c=I==="watch"&&R!=="watch",!c||R==="shorts"||_.FtT()&&!$Cd(this.data,G))G=_.wH().resolve(_.tA),c&&G.isMiniplayerActive()&&G.pipController.getWindow()||Z.stop()}};
_.P.isDifferentBrowseId=function(G,c){G=_.D(G,_.qD);c=_.D(c,_.qD);return(G==null?void 0:G.browseId)!==(c==null?void 0:c.browseId)};
_.P.getPersistentPanelSurface=function(G){switch(G){case "watch":return"WATCH";default:return"APP"}};
_.Nh.Object.defineProperties(gk,{template:{configurable:!0,enumerable:!0,get:function(){return Da7()}}});
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],gk.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-page-manager"})],gk);_.B(gk,"ytd-page-manager",function(){return Da7()},{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var ogF;var YU=function(){var G=_.J.apply(this,arguments)||this;G.useListItemStyles=_.v("web_list_item_style_for_menu_items");G.systemIcons=_.v("kevlar_system_icons");return G};
_.u(YU,_.J);_.P=YU.prototype;_.P.ready=function(){this.hostElement.addEventListener("tap",_.lO(this,this.onEndpointTapExtra))};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var G;(G=_.Q1(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.P.onEndpointTapExtra=function(G){_.Xl(this.hostElement,"iron-activate");var c=this.data.navigationEndpoint;c&&_.D(c,_.$5b)&&(G.stopPropagation(),_.cd(this.hostElement,[c],this.hostElement))};
_.P.computeIcon=function(G){return G&&G.iconType?_.On(G.iconType):""};
_.P.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.v("kevlar_legacy_browsers")&&_.eD(this.hostElement)};
YU.prototype.forceUpdateStylesOnLegacyBrowsers=YU.prototype.forceUpdateStylesOnLegacyBrowsers;YU.prototype.onFocus=YU.prototype.onFocus;_.r([_.L(_.zQ),_.h("design:type",Object)],YU.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.ENH.YtConditionalRendererBehavior),_.h("design:type",Object)],YU.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.L(_.Cx.YtEndpointBehavior),_.h("design:type",Object)],YU.prototype,"ytEndpointBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],YU.prototype,"data",void 0);_.r([_.E({computed:"computeIcon(data.icon)",value:""}),_.h("design:type",String)],YU.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],YU.prototype,"useIcons",void 0);_.r([_.E({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Boolean)],YU.prototype,"hasSeparator",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],YU.prototype,"useListItemStyles",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],YU.prototype,"systemIcons",void 0);_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YU.prototype,"onFocus",null);_.r([_.wD("useIcons","hasSeparator"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YU.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.B(YU,"ytd-menu-navigation-item-renderer",function(){if(ogF===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);ogF=G}G=ogF;return G},{mode:1});var Uaj;var usW=_.Cp(_.mJ("DOWNLOAD",{},"Download")),bLW=_.Cp(_.mJ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),kTr=_.Cp(_.mJ("RETRY",{},"Retry")),sdd=_.Cp(_.mJ("PAUSE_DOWNLOADING",{},"Pause downloading")),L60=_.Cp(_.mJ("RESUME_DOWNLOAD",{},"Resume download")),GD=function(){var G=_.J.apply(this,arguments)||this;G.primaryText=usW;G.primaryIconType="OFFLINE_DOWNLOAD";G.hasSecondaryContent=!1;G.hasSeparator=!1;G.transferState="TRANSFER_STATE_UNKNOWN";G.isVideoDeletedByUser=!1;G.isHidden=!1;G.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return G};
_.u(GD,_.J);_.P=GD.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){this.primaryEntry.focus()};
_.P.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.P.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.P.getRemoveAction=function(){return"ACTION_REMOVE"};
_.P.sendOfflineAction=function(G){var c=this.data.serviceEndpoint;if(c){var I=_.D(c,_.o9);I&&G&&(I.action=G);this.ytComponentBehavior.resolveCommand(c)}};
_.P.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=usW,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=usW;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=kTr;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=bLW;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=L60;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=bLW;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
sdd;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=bLW;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=bLW;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=usW,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.P.showHideButton=function(){var G;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((G=this.playerStateEntity)==null?void 0:G.adsState)==="ADS_STATE_PLAYING"};
_.P.isSecondaryEntryHidden=function(G,c){return G?!0:!c};
_.P.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.P.computePlayerStateEntityKey=function(G){return G};
GD.prototype.showHideButton=GD.prototype.showHideButton;GD.prototype.onTransferStateChange=GD.prototype.onTransferStateChange;GD.prototype.onFocus=GD.prototype.onFocus;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],GD.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],GD.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],GD.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],GD.prototype,"primaryText",void 0);_.r([_.E(),_.h("design:type",String)],GD.prototype,"primaryIconType",void 0);_.r([_.E(),_.h("design:type",String)],GD.prototype,"primaryAction",void 0);_.r([_.E(),_.h("design:type",Object)],GD.prototype,"secondaryText",void 0);_.r([_.E(),_.h("design:type",String)],GD.prototype,"secondaryIconType",void 0);
_.r([_.E(),_.h("design:type",String)],GD.prototype,"secondaryAction",void 0);_.r([_.E(),_.h("design:type",Object)],GD.prototype,"hasSecondaryContent",void 0);_.r([_.E({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Object)],GD.prototype,"hasSeparator",void 0);_.r([_.E({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.h("design:type",String)],GD.prototype,"playerStateEntityKey",void 0);
_.r([_.E({selector:_.eu,selectorArgs:["playerStateEntityKey"]}),_.h("design:type",Object)],GD.prototype,"playerStateEntity",void 0);_.r([_.E({selector:_.E4,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",String)],GD.prototype,"transferState",void 0);_.r([_.E({selector:_.Zf0,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",Object)],GD.prototype,"isVideoDeletedByUser",void 0);
_.r([_.E(),_.h("design:type",Object)],GD.prototype,"isHidden",void 0);_.r([_.E({selector:_.yxB,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",Object)],GD.prototype,"offlineabilityState",void 0);_.r([_.nH("#primary-entry"),_.h("design:type",Object)],GD.prototype,"primaryEntry",void 0);_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GD.prototype,"onFocus",null);
_.r([_.uO("transferState","isVideoDeletedByUser"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GD.prototype,"onTransferStateChange",null);_.r([_.uO("offlineabilityState","playerStateEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GD.prototype,"showHideButton",null);
_.B(GD,"ytd-menu-service-item-download-renderer",function(){if(Uaj===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);Uaj=G}G=Uaj;return G},{mode:1});var AFu;var c5=function(){var G=_.J.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.v("kevlar_system_icons");G.useListItemStyles=_.v("web_list_item_style_for_menu_items");return G};
_.u(c5,_.J);_.P=c5.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var G;(G=_.Q1(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.P.onTap=function(){_.gq(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var G=this.data.serviceEndpoint,c=this.data.command;if(G){var I,R=(I=this.data)==null?void 0:I.trackingParams;I=!!_.D(G,_.bxA);R&&I&&_.y4().dispatch(_.R6({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:R}}));this.ytComponentBehavior.resolveCommand(G)||_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}})}c&&(this.ytComponentBehavior.resolveCommand(c)||_.cd(this.hostElement,
[c],this.hostElement))};
_.P.computeIcon=function(G){return G&&G.iconType?_.On(G.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.v("kevlar_legacy_browsers")&&_.eD(this.hostElement)};
_.P.computeIsSelected=function(){var G;return!((G=this.data)==null||!G.isSelected)};
c5.prototype.forceUpdateStylesOnLegacyBrowsers=c5.prototype.forceUpdateStylesOnLegacyBrowsers;c5.prototype.onTap=c5.prototype.onTap;c5.prototype.onFocus=c5.prototype.onFocus;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],c5.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],c5.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.ENH.YtConditionalRendererBehavior),_.h("design:type",Object)],c5.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],c5.prototype,"data",void 0);_.r([_.E({computed:"computeIcon(data.icon)",value:""}),_.h("design:type",String)],c5.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],c5.prototype,"useIcons",void 0);
_.r([_.E({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Boolean)],c5.prototype,"hasSeparator",void 0);_.r([_.E({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.h("design:type",Boolean)],c5.prototype,"isSelected",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],c5.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],c5.prototype,"useListItemStyles",void 0);
_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c5.prototype,"onFocus",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],c5.prototype,"onTap",null);_.r([_.wD("useIcons","hasSeparator"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c5.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.B(c5,"ytd-menu-service-item-renderer",function(){if(AFu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);AFu=G}G=AFu;return G},{mode:2});var $a7;var IC=function(){return _.J.apply(this,arguments)||this};
_.u(IC,_.J);_.P=IC.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var G=this;_.O$(this,function(){G.postbox.openDialog();G.focus();_.Xl(G.hostElement,"yt-refit")})};
_.P.focus=function(){this.postbox.focus()};
_.P.closePopup=function(){_.ym(this.hostElement,"yt-close-popup-action")};
_.P.onYtCommentboxDismiss=function(){this.closePopup()};
IC.prototype.onYtCommentboxDismiss=IC.prototype.onYtCommentboxDismiss;IC.prototype.onDataChanged=IC.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],IC.prototype,"data",void 0);_.r([_.E({value:function(){return _.mJ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],IC.prototype,"closeButtonAriaLabel",void 0);_.r([_.nH("#postbox"),_.h("design:type",Object)],IC.prototype,"postbox",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IC.prototype,"onDataChanged",null);_.r([_.qY("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IC.prototype,"onYtCommentboxDismiss",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],IC);
_.B(IC,"ytd-backstage-post-dialog-popup-renderer",function(){if($a7!==void 0)return $a7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return $a7=G},{mode:1});var S10;var RC=function(){var G=_.J.apply(this,arguments)||this;G.modernModal=!0;return G};
_.u(RC,_.J);RC.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
RC.prototype.computeShouldHideOldButtons=function(){var G;return!((G=this.data)==null?0:G.button)};
_.Nh.Object.defineProperties(RC.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var G,c;return(G=this.data)==null?void 0:(c=G.button)==null?void 0:c.buttonRenderer}}});
_.r([_.E(),_.h("design:type",Object)],RC.prototype,"data",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],RC.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],RC.prototype,"modernModal",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],RC.prototype,"buttonRendererData",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],RC);
_.B(RC,"ytd-modal-with-title-and-button-renderer",function(){if(S10!==void 0)return S10;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return S10=G},{mode:1});var pxg;var Zt=function(){return _.J.apply(this,arguments)||this};
_.u(Zt,_.J);Zt.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("page-changed",this.page))};
Zt.prototype.pageChangedForBinding=Zt.prototype.pageChangedForBinding;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Zt.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],Zt.prototype,"page",void 0);_.r([_.wD("page"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zt.prototype,"pageChangedForBinding",null);
_.r([_.Jc({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Zt);
_.B(Zt,"ytd-account-item-section-header-renderer",function(){if(pxg!==void 0)return pxg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return pxg=G},{mode:1});var M9r;var Ka=function(){return _.J.apply(this,arguments)||this};
_.u(Ka,_.J);Ka.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"}}}};
Ka.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],Ka.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ka.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!1}),_.h("design:type",Function)],Ka.prototype,"onAccountItemTap",void 0);
_.r([_.Jc({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Ka);
_.B(Ka,"ytd-account-item-section-renderer",function(){if(M9r!==void 0)return M9r;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return M9r=G},{mode:1});var V9d;var zad;var Egr=function(){return _.J.apply(this,arguments)||this};
_.u(Egr,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Egr.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Egr.prototype,"data",void 0);_.r([_.Jc({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Egr);
_.B(Egr,"ytd-accounts-dialog-header-renderer",function(){if(zad!==void 0)return zad;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return zad=G},{mode:1});var JFu;var P5=function(){return _.J.apply(this,arguments)||this};
_.u(P5,_.J);P5.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],P5.prototype,"data",void 0);_.r([_.Jc({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],P5);
_.B(P5,"ytd-google-account-header-renderer",function(){if(JFu!==void 0)return JFu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return JFu=G},{mode:1});var QA=function(){return _.J.apply(this,arguments)||this};
_.u(QA,_.J);QA.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"}}}};
QA.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("page-changed",this.page))};
QA.prototype.pageChangedForBinding=QA.prototype.pageChangedForBinding;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],QA.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],QA.prototype,"page",void 0);
_.r([_.wD("page"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QA.prototype,"pageChangedForBinding",null);_.r([_.Jc({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],QA);
_.PI()(QA,"ytd-account-section-list-renderer",function(){if(V9d===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);V9d=G}G=V9d;return G},{allowedProps:["data"],
mode:1});var W61;var mm=function(){var G=_.J.apply(this,arguments)||this;G.enableHandlesAccountMenuSwitcher=_.v("enable_handles_account_menu_switcher");return G};
_.u(mm,_.J);mm.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
mm.prototype.dataChanged=mm.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mm.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],mm.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.r([_.nH("#avatar"),_.h("design:type",Object)],mm.prototype,"avatar",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mm.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],mm);
_.PI()(mm,"ytd-active-account-header-renderer",function(){if(W61===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);W61=G}G=W61;return G},{allowedProps:["data"],
mode:1});var iLH;var fad;var aC=function(){return _.J.apply(this,arguments)||this};
_.u(aC,_.J);aC.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
aC.prototype.onBackTap=function(){_.Xl(this.hostElement,"yt-menu-back-tapped")};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],aC.prototype,"data",void 0);_.r([_.Jc({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],aC);
_.PI()(aC,"ytd-simple-menu-header-renderer",function(){if(fad===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);fad=G}G=fad;return G},{allowedProps:["data"],
mode:2});var Bv1;var rF1=function(){return _.J.apply(this,arguments)||this};
_.u(rF1,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rF1.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rF1.prototype,"data",void 0);_.r([_.Jc({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],rF1);
_.B(rF1,"ytd-comment-video-thumbnail-header-renderer",function(){if(Bv1!==void 0)return Bv1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Bv1=G},{mode:1});var jdH;var xad=function(){return _.J.apply(this,arguments)||this};
_.u(xad,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xad.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],xad.prototype,"data",void 0);_.r([_.Jc({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],xad);
_.B(xad,"ytd-abuse-type-selector-renderer",function(){if(jdH!==void 0)return jdH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return jdH=G},{mode:1});var t9j;var had=(0,_.tlp)(_.xAe.reportChannelAbuse,{isVideoIdSelectedSelector:function(G,c){return c in G.selectedVideoIds},
additionalContextSelector:function(G){return G.additionalContext},
impersonatedChannelUrlSelector:function(G){return G.impersonatedChannelUrl},
reportChannelAbuseSelector:function(G){return G}});var TD=function(){return _.J.apply(this,arguments)||this};
_.u(TD,_.J);TD.prototype.attached=function(){var G=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){G.additionalContextInput.focusTextInput()})};
TD.prototype.handleAdditionalContextChanged=function(){var G=this;_.tc(this,"ytd-report-channel-additional-context-update",function(){G.ytdReduxBehavior.dispatch(_.R6({type:"ADDITIONAL_CONTEXT_UPDATED",payload:G.additionalContext}))},300)};
TD.prototype.updateAdditionalContextFromBinding=function(G){this.additionalContext=G.detail.value};
TD.prototype.handleAdditionalContextChanged=TD.prototype.handleAdditionalContextChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],TD.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",String)],TD.prototype,"additionalContext",void 0);_.r([_.E({selector:had.additionalContextSelector}),_.h("design:type",String)],TD.prototype,"additionalContextRedux",void 0);_.r([_.E(),_.h("design:type",Object)],TD.prototype,"data",void 0);
_.r([_.nH("yt-text-input-form-field-renderer"),_.h("design:type",Object)],TD.prototype,"additionalContextInput",void 0);_.r([_.wD("additionalContext"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TD.prototype,"handleAdditionalContextChanged",null);_.r([_.Jc({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],TD);
_.B(TD,"ytd-report-channel-modal-additional-context-renderer",function(){if(t9j!==void 0)return t9j;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return t9j=G},{mode:1});var da1;var Oi=function(){var G=_.J.apply(this,arguments)||this;G.nextButtonDisabled=null;G.submitEndpoint=null;G.navigationEndpoint=null;G.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return G};
_.u(Oi,_.J);_.P=Oi.prototype;_.P.computeNextButtonData=function(G,c,I){var R={};c&&(R.navigationEndpoint=c);I&&(R.serviceEndpoint=I);G&&G.buttonRenderer&&_.rx.extend(R,G.buttonRenderer);return R};
_.P.handleReportChannelModalDisableNextButtonAction=function(G){this.setNextButtonIsDisabled(G)};
_.P.handleReportFormEndpointUpdateAction=function(G){this.setNextButtonIsDisabled(!!G.disableSubmitButton);this.resetEndpointData();G.submitEndpoint?this.submitEndpoint=G.submitEndpoint:G.submitNavigationEndpoint&&(this.navigationEndpoint=G.submitNavigationEndpoint)};
_.P.handleSignalActionSubmitForm=function(){var G,c=Object.keys(((G=this.reportChannelAbuseForm)==null?void 0:G.selectedVideoIds)||{}),I;G=((I=this.reportChannelAbuseForm)==null?void 0:I.additionalContext)||"";var R;I=((R=this.reportChannelAbuseForm)==null?void 0:R.impersonatedChannelUrl)||"";var Z;if((Z=this.data)==null?0:Z.submitEndpoint){c={impersonated_channel_url:I,text:G,video_ids:c};var K;_.wH().resolve(_.n4).resolveCommand((K=this.data)==null?void 0:K.submitEndpoint,{form:Object.assign({},
c,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.P.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.P.onYtServiceRequestError=function(G){this.setNextButtonIsDisabled(!1);_.Xc(this.hostElement,G.detail.error.message)};
_.P.setNextButtonIsDisabled=function(G){this.set("data.nextButton.buttonRenderer.isDisabled",G)};
_.P.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Oi.prototype.onYtServiceRequestError=Oi.prototype.onYtServiceRequestError;Oi.prototype.onYtServiceRequestCompleted=Oi.prototype.onYtServiceRequestCompleted;_.r([_.E(),_.h("design:type",Object)],Oi.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Oi.prototype,"nextButtonDisabled",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Oi.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Oi.prototype,"submitEndpoint",void 0);_.r([_.E(),_.h("design:type",Object)],Oi.prototype,"navigationEndpoint",void 0);_.r([_.E({selector:had.reportChannelAbuseSelector}),_.h("design:type",Object)],Oi.prototype,"reportChannelAbuseForm",void 0);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Oi.prototype,"onYtServiceRequestCompleted",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Oi.prototype,"onYtServiceRequestError",null);_.r([_.Jc({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Oi);
_.B(Oi,"ytd-report-channel-modal-footer-renderer",function(){if(da1!==void 0)return da1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return da1=G},{mode:1});var CQu;var e3=function(){var G=_.J.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.closePopup()};
return G};
_.u(e3,_.J);e3.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
e3.prototype.handleDataChanged=function(){_.mp(this.hostElement)};
e3.prototype.closePopup=function(){_.ym(this.hostElement,"yt-close-popup-action")};
e3.prototype.handleDataChanged=e3.prototype.handleDataChanged;_.r([_.E(),_.h("design:type",Object)],e3.prototype,"boundOnTapDismissButton",void 0);_.r([_.E(),_.h("design:type",Object)],e3.prototype,"data",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e3.prototype,"handleDataChanged",null);_.r([_.Jc({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],e3);
_.B(e3,"ytd-report-channel-modal-header-renderer",function(){if(CQu!==void 0)return CQu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return CQu=G},{mode:1});var HLd;var NL=function(){var G=_.J.apply(this,arguments)||this;G.autoValidate=!1;G.invalid=!1;G.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return G};
_.u(NL,_.J);_.P=NL.prototype;_.P.attached=function(){var G=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){G.channelUrlInput.focusTextInput()})};
_.P.disableNextButton=function(G){_.ym(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[G])};
_.P.handleImpersonatedChannelUrlChanged=function(){var G=this;this.disableNextButton(!0);this.invalid=!1;_.tc(this,"ytd-report-channel-impersonated-channel-update",function(){var c=G.impersonatedChannelUrl.trim();G.ytdReduxBehavior.dispatch(_.R6({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:c}));var I;((I=G.data)==null?0:I.submitEndpoint)&&c&&_.wH().resolve(_.n4).resolveCommand(G.data.submitEndpoint,{form:{impersonated_channel_url:c,element:G.hostElement}})},500)};
_.P.handleModifyReportFormCommand=function(G){this.invalid=this.get("modifyReportFormCommand.action",G)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.P.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.P.updateImpersonatedChannelUrlFromBinding=function(G){this.impersonatedChannelUrl=G.detail.value};
NL.prototype.handleImpersonatedChannelUrlChanged=NL.prototype.handleImpersonatedChannelUrlChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],NL.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],NL.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],NL.prototype,"autoValidate",void 0);_.r([_.E(),_.h("design:type",Object)],NL.prototype,"invalid",void 0);
_.r([_.E(),_.h("design:type",String)],NL.prototype,"impersonatedChannelUrl",void 0);_.r([_.E({selector:had.impersonatedChannelUrlSelector}),_.h("design:type",String)],NL.prototype,"impersonatedChannelUrlRedux",void 0);_.r([_.E(),_.h("design:type",Object)],NL.prototype,"data",void 0);_.r([_.nH("#text-input"),_.h("design:type",Object)],NL.prototype,"channelUrlInput",void 0);
_.r([_.wD("impersonatedChannelUrl"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NL.prototype,"handleImpersonatedChannelUrlChanged",null);_.r([_.Jc({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],NL);
_.B(NL,"ytd-report-channel-modal-impersonation-renderer",function(){if(HLd!==void 0)return HLd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return HLd=G},{mode:1});var Xx1;var yFu;var l_=function(){return _.J.apply(this,arguments)||this};
_.u(l_,_.J);l_.prototype.onCheckboxToggled=function(G){var c,I,R=(I=_.D((c=this.data)==null?void 0:c.video,_.oh))==null?void 0:I.videoId;R&&this.ytdReduxBehavior.dispatch(G.target.checked?_.R6({type:"VIDEO_SELECTED",payload:R}):_.R6({type:"VIDEO_UNSELECTED",payload:R}))};
l_.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Nh.Object.defineProperties(l_.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.data)==null?void 0:G.video;if(!c)return{};var I;G=(I=_.D(c,_.oh))==null?void 0:I.navigationEndpoint;if(!G)return c;_.D(G==null?void 0:G.commandMetadata,_.Pd)&&(_.D(G.commandMetadata,_.Pd).ignoreNavigation=!0);return c}}});
_.r([_.E({reflectToAttribute:!0,selector:had.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.h("design:type",Boolean)],l_.prototype,"checked",void 0);_.r([_.E(),_.h("design:type",Object)],l_.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],l_.prototype,"video",null);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],l_.prototype,"ytdReduxBehavior",void 0);_.r([_.Jc({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],l_);
_.B(l_,"ytd-selectable-video-renderer",function(){if(yFu!==void 0)return yFu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return yFu=G},{mode:1});var qL=function(){var G=_.J.apply(this,arguments)||this;G.monitorScroll=!0;return G};
_.u(qL,_.J);qL.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],qL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qL.prototype,"data",void 0);_.r([_.Jc({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],qL);
_.B(qL,"ytd-selectable-video-list-renderer",function(){if(Xx1!==void 0)return Xx1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Xx1=G},{mode:1});var ggW;_.Su("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var ws=function(){return _.J.apply(this,arguments)||this};
_.u(ws,_.J);ws.prototype.onChange=function(G){if(G=_.HH(G).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.v("kevlar_command_handler_migration_killswitch"))_.cd(this.hostElement,G,this.hostElement);else{G=_.Q(G);for(var c=G.next();!c.done;c=G.next())this.ytComponentBehavior.resolveCommand(c.value)}};
ws.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
ws.prototype.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ws.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ws.prototype,"data",void 0);_.r([_.E({computed:"isEnabled(data)"}),_.h("design:type",Boolean)],ws.prototype,"enabled",void 0);_.r([_.Jc({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],ws);
_.B(ws,"ytd-toggle-item-renderer",function(){if(ggW!==void 0)return ggW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ggW=G},{mode:1});var Y1G;var GGH;var c2G;var FW=function(){var G=_.J.apply(this,arguments)||this;G.setVisible=!1;G.boundOnSubmitButtonClick=function(){G.onSubmitButtonClick()};
G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.u(FW,_.J);FW.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}}}}}};
FW.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
FW.prototype.onSubmitButtonClick=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&!_.v("enable_ytc_refunds_submit_form_signal_action")&&_.Gs(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
FW.prototype.handleSignalActionSubmitForm=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&_.Gs(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Nh.Object.defineProperties(FW.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hiddenByDefault)&&!this.setVisible}}});
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],FW.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],FW.prototype,"setVisible",void 0);_.r([_.E(),_.h("design:type",Object)],FW.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],FW.prototype,"surveyFeedbackData",void 0);_.r([_.E(),_.h("design:type",Object)],FW.prototype,"boundOnSubmitButtonClick",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data","setVisible"),_.h("design:type",Object),_.h("design:paramtypes",[])],FW.prototype,"visibilityHidden",null);_.r([_.Em({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],FW);
_.B(FW,"yt-flow-footer-renderer",function(){if(c2G===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;GGH===void 0&&(GGH=document.createElement("template"));var R=GGH;I.call(c,R.content.cloneNode(!0),G.content.firstChild);c2G=G}G=c2G;return G},{mode:2});var Il$=(0,_.tlp)(_.xAe.ypc,{surveyFeedbackDataSelector:function(G){return G.surveyFeedbackData}});var na=function(){return _.J.apply(this,arguments)||this};
_.u(na,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],na.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],na.prototype,"data",void 0);_.r([_.E({selector:Il$.surveyFeedbackDataSelector}),_.h("design:type",Object)],na.prototype,"surveyFeedbackData",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],na);
_.B(na,"ytd-flow-footer-renderer",function(){if(Y1G!==void 0)return Y1G;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Y1G=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var Rcd;var Zld;var v5=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return G};
_.u(v5,_.J);_.P=v5.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.pQ("multiPageMenuSectionItems")}}};
_.P.handleHideEnclosingAction_=function(G){if(this.data&&this.data.items)for(var c=0;c<this.data.items.length;c++){var I=this.data.items[c].notificationRenderer;if(I&&I.notificationId==G.hideEnclosingAction.notificationId){this.splice("data.items",c,1);_.ym(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.P.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.T1(this.hostElement,"hidden",!0)};
_.P.updateMenu_=function(G){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&G&&!G.doNotRefreshInbox){G=this.data.continuations;for(var c=0;c<G.length;c++)if(G[c].invalidationContinuationData){var I=void 0;var R=(I=G[c].invalidationContinuationData)==null?void 0:I.continuation;break}G=_.rx.clone(this.data.continuationUpdateEndpoint||null);G.continuation=R;G.click_tracking_params=this.data.trackingParams;_.Gs(this.hostElement,[G])}};
_.P.onServiceRequestCompleted_=function(G,c){if(this.data&&(G=c.actions)){c=0;for(var I=G.length;c<I;c++){var R=_.D(G[c],_.C3e);if(!R)break;if((R.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||R.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&R.continuationItems&&this.data.items){var Z=this.data.items.length-1;this.data.items[Z].continuationItemRenderer&&(R=["data.items",Z,1].concat(R.continuationItems),this.splice.apply(this,R))}}}};
v5.prototype.onServiceRequestCompleted_=v5.prototype.onServiceRequestCompleted_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],v5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],v5.prototype,"data",void 0);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],v5.prototype,"onServiceRequestCompleted_",null);_.r([_.Em({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],v5);
_.PI()(v5,"yt-multi-page-menu-section-renderer",function(){if(Zld===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Rcd===void 0&&(Rcd=document.createElement("template"));var R=Rcd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Zld=G}G=Zld;return G},{allowedProps:["data"],
mode:2});var KF7;var PZj;var Dt=function(){return _.J.apply(this,arguments)||this};
_.u(Dt,_.J);Dt.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Nh.Object.defineProperties(Dt.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.progress)==null?0:this.data.progress*100}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Dt.prototype,"data",void 0);_.r([_.A("data.progress"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Dt.prototype,"showProgressBar",null);
_.r([_.A("data.progress"),_.h("design:type",Number),_.h("design:paramtypes",[])],Dt.prototype,"progress",null);_.r([_.Em({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Dt);
_.B(Dt,"yt-flow-header-renderer",function(){if(PZj===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;KF7===void 0&&(KF7=document.createElement("template"));var R=KF7;I.call(c,R.content.cloneNode(!0),G.content.firstChild);PZj=G}G=PZj;return G},{mode:2});var Qm0;var mMd;var oC=function(){return _.J.apply(this,arguments)||this};
_.u(oC,_.J);oC.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],oC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],oC.prototype,"data",void 0);_.r([_.Em({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],oC);
_.B(oC,"yt-post-confirmation-flow-step-renderer",function(){if(mMd===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Qm0===void 0&&(Qm0=document.createElement("template"));var R=Qm0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);mMd=G}G=mMd;return G},{mode:2});var alH;var TVj;var Ui=function(){return _.J.apply(this,arguments)||this};
_.u(Ui,_.J);
Ui.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"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ui.prototype,"data",void 0);_.r([_.Em({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ui);
_.B(Ui,"yt-refund-confirmation-flow-step-renderer",function(){if(TVj===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;alH===void 0&&(alH=document.createElement("template"));var R=alH;I.call(c,R.content.cloneNode(!0),G.content.firstChild);TVj=G}G=TVj;return G},{mode:2});var Ol0=_.W(function(G){var c=G.data;return _.e("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.e("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.e(_.yc,{data:function(){return{thumbnails:[{url:c().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.e("div",{class:"profileBadgeViewModelContent"},_.e("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return c().badgeDesc}),_.e(_.l,{cond:function(){return c().badgeSubtitle},
then:function(){return _.e("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return c().badgeSubtitle})}})))},"oj");
Ol0.idomCompat=!0;var ec$=_.W(function(G){var c=G.data;return _.e("yt-comment-interaction-view-model",{el:_.YC(_.im(function(){return c().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.e("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return c().onTapA11yLabel},
"on:keydown":_.tZC(),tabindex:0},_.e("div",{class:"ytCommentInteractionViewModelHeader"},_.e("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return c().headerPrefix},' "',function(){return c().videoTitle}),_.e("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.e("div",{class:"ytCommentInteractionViewModelContent"},_.e("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return c().commentContent}),_.e("div",{class:"ytCommentInteractionViewModelChevron"},
_.e(_.yc,{data:function(){return{thumbnails:[{url:c().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"pj");
ec$.idomCompat=!0;var NVW=_.W(function(G){var c=G.data;return _.e("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.e(_.sN,{data:function(){return c().avatar}},{avatarViewModel:_.qF}),_.e("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return c().channelName}))},"qj");
NVW.idomCompat=!0;var nfH=_.W(function(G){var c=G.data;G={};return _.e("yt-profile-info-view-model",{class:_.O3("ytProfileInfoViewModelHost",(G.ytProfileInfoViewModelWithVideoShelf=function(){return c().videosHorizontalShelf},G))},_.e(ll7,{profileInfo:c}),_.e(_.sN,{data:function(){return c().videosHorizontalShelf}},{horizontalShelfViewModel:function(I){return _.e("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.e(_.$R,{data:I.data}))}}),_.e(_.l,{cond:function(){return c().comments},
then:function(){return _.e(qId,{profileInfo:c})}}),_.e(_.l,{cond:function(){return c().sharedSubscriptionsTitle},
then:function(){return _.e(_.l,{cond:function(){return c().subscriptionsAccessButtonCommand},
then:function(){return _.e(wVu,{profileInfo:c})},
else:function(){return _.e(FFg,{profileInfo:c})}})}}))},"rj");
nfH.idomCompat=!0;var qId=_.W(function(G){var c=G.profileInfo;return _.e("div",{class:"ytProfileInfoViewModelActivity"},_.e("div",{class:"ytProfileInfoViewModelHeader"},_.e("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return c().commentsInteractionTitle})),_.e(_.sN,{data:function(){return c().comments}},{commentInteractionViewModel:function(I){return _.e("div",{class:"ytProfileInfoViewModelActivity"},_.e(ec$,{data:I.data}))}}))},"sj"),wVu=_.W(function(G){var c=G.profileInfo;
return _.e("div",{class:"ytProfileInfoViewModelSubSection"},_.e("div",{class:"ytProfileInfoViewModelSubHeader"},_.e(_.Er,{command:function(){return c().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.e("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return c().sharedSubscriptionsTitle}),_.e("div",null,_.e(_.sN,{data:function(){return c().subscriptionsAccessButton}},{buttonViewModel:_.BR})))),_.e(vf1,{sharedSubscriptions:function(){var I;
return((I=c().sharedSubscriptions)==null?void 0:I.slice(0,5))||[]}}))},"tj"),FFg=_.W(function(G){var c=G.profileInfo;
return _.e("div",{class:"ytProfileInfoViewModelSubSection"},_.e("div",{class:"ytProfileInfoViewModelSubHeader"},_.e("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return c().sharedSubscriptionsTitle})),_.e(vf1,{sharedSubscriptions:function(){var I;
return((I=c().sharedSubscriptions)==null?void 0:I.slice(0,5))||[]}}))},"uj"),vf1=_.W(function(G){return _.e("div",{class:"ytProfileInfoViewModelSubs"},_.e(_.sN,{data:G.sharedSubscriptions},{sharedSubscriptionViewModel:function(c){return _.e("div",{class:"ytProfileInfoViewModelSub"},_.e(NVW,{data:c.data}))}}))},"vj"),ll7=_.W(function(G){var c=G.profileInfo;
return _.e("div",{class:"ytProfileInfoViewModelActivity"},_.e(_.fh,{each:function(){return[c().profileBadgeInfoYtWide,c().profileBadgeInfoChannelWide].filter(function(I){return!!I})},
keyBy:"INDEX"},function(I){return _.e(_.FG,null,_.e("div",{class:"ytProfileInfoViewModelHeader"},_.e("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return I().profileSectionTitle}),_.e("div",{class:"ytProfileInfoViewModelSectionDesc"},_.e("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var R;
return(R=I().commentBadge)==null?void 0:R.commentDesc}),_.e(_.l,{cond:function(){var R;
return(R=I().commentBadge)==null?void 0:R.blackHeartDesc},
then:function(){return _.e("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.e("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.e(_.yc,{data:function(){var R;
return{thumbnails:[{url:(R=I().commentBadge)==null?void 0:R.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.e("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var R;return(R=I().commentBadge)==null?void 0:R.blackHeartDesc}))),_.e("div",{class:"ytProfileInfoViewModelBadge"},_.e(_.fh,{each:function(){return I().badges||[]}},function(R){return _.e(Ol0,{data:R})})))}))},"wj");var DM7=_.W(function(G){var c=G.data;var I=function(){return c().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.e("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.e(_.sN,{data:function(){return c().profileIdentityInfo}},{profileIdentityInfoViewModel:function(R){return _.e(_.zw0,{data:R.data,
hideDivider:I,isChannelInfoCard:I})},
profileInfoViewModel:nfH}),_.e(_.sN,{data:function(){return c().profileInfo}},{profileIdentityInfoViewModel:_.zw0,
profileInfoViewModel:nfH}))},"xj");
DM7.idomCompat=!0;_.R1(DM7,"yt-profile-card-view-model",{props:{data:_.bl}});var u_=function(){var G=_.J.apply(this,arguments)||this;G.enableFocusFix=_.v("music_web_enable_focus_on_setting_menu_fix")&&_.XG("IS_MOBILE_WEB",!1);G.covered=!1;G.hideMenu=!1;G.isCommentNotificationOnProfileCard=!1;G.scrolledByTouch=!1;G.disableBackdropFilter=_.v("web_disable_backdrop_filter");G.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return G};
_.u(u_,_.J);_.P=u_.prototype;
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.P.ready=function(){var G=this;this.JSC$20663_containerElement.addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.P.attributeChanged=function(G,c){G==="menu-style"&&_.ym(this.hostElement,"yt-multi-page-menu-closed-action",[c])};
_.P.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.lO(this,this.focusOnStampFinished))};
_.P.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.lO(this,this.focusOnStampFinished))};
_.P.reset=function(){this.closeJobId&&(_.dJ.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.P.focusOnStampFinished=function(G){G.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.lO(this,this.focusOnStampFinished)),this.doFocus())};
_.P.doFocus=function(){var G=_.X7A(this.sectionsElement);G.length&&G[0].focus()};
_.P.computeMenuStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.P.computeIsCommentNotificationOnProfileCard=function(G){return _.v("enable_profile_cards_on_comments")&&G.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.P.computeHideMenu=function(G,c){return G||!(!c||!c.showLoadingSpinner)};
_.P.onPopupClosed=function(){this.isPopUpOpen=!1;_.ym(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.P.onPopupOpened=function(G,c){this.isPopUpOpen=!0;c.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Xl(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.R6({type:"CHANNEL_REPORT_RESET"})))};
_.P.onYtNavigate=function(G,c){this.shouldCloseOnNavigateEvent(c.endpoint)&&_.ym(this.hostElement,"yt-close-all-popups-action")};
_.P.handleEndpoint=function(G){G=_.D(G,_.lv);!this.isCommentNotificationOnProfileCard&&G&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20663_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.P.handleActions=function(G){for(var c=0,I=G.length;c<I;c++){var R=_.D(G[c],S6G);R&&this.handleGetMultiPageMenuAction(R);(R=_.D(G[c],_.C3e))&&this.handleAppendContinuationItemsAction(R)}};
_.P.onServiceRequestSentOrCompleted=function(G,c){G.detail&&G.detail.endpoint&&this.handleEndpoint(G.detail.endpoint);c.actions&&this.handleActions(c.actions)};
_.P.handleGetMultiPageMenuAction=function(G){var c=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Q1(this.submenuElement).appendChild(c);(G=G.menu.multiPageMenuRenderer)&&this.logSubmenu(G);c.data=G;c.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.P.handleAppendContinuationItemsAction=function(G){if(this.data&&G.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&G.continuationItems&&this.data.sections){var c=this.data.sections.length-1;this.data.sections[c].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),c--);if(this.data.sections[c].multiPageMenuNotificationSectionRenderer&&G.continuationItems){G=_.Q(G==null?void 0:G.continuationItems);for(var I=G.next();!I.done;I=G.next())if(I=I.value,_.D(I,I1d)){var R=
void 0,Z=void 0,K=void 0,m=void 0,a=void 0;((R=this)==null?0:(Z=R.data)==null?0:(K=Z.sections)==null?0:(m=K[c])==null?0:(a=m.multiPageMenuNotificationSectionRenderer)==null?0:a.items)&&this.push("data.sections."+c+".multiPageMenuNotificationSectionRenderer.items",I)}else if(_.D(I,_.WZ9)||_.D(I,_.Zo))this.push("data.sections",I),c++}}};
_.P.logSubmenu=function(G){if(!_.v("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var c=this.ytRendererBehavior.getScreenLayer(),I=_.k0(c),R=_.u6(c);if((G=G.trackingParams)&&I&&R){var Z=_.kC(G);_.v("combine_ve_grafts")?_.DP().graftServerVe(G,R,c):_.Wd(I,R,Z)}}};
_.P.emptySubmenuContainer=function(){for(var G=_.Q1(this.submenuElement);G.firstChild;)G.removeChild(G.firstChild)};
_.P.onMenuBackTap=function(G){_.Xl(this.hostElement,"yt-submenu-closed");G.stopPropagation()};
_.P.onSubmenuClosed=function(G){_.HH(G)!==this.hostElement&&(this.covered=!1,_.Xl(this.hostElement,"yt-refit"),G.stopPropagation())};
_.P.onRetrieveLocation=function(G,c){c.hasComments&&(c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),G.stopPropagation())};
_.P.shouldCloseOnNavigateEvent=function(G){if(!G)return!0;if(_.D(G,_.F$2)||_.D(G,_.nr0)||_.D(G,_.wR9)||_.D(G,_.ID))return!1;var c;return((c=_.D(G==null?void 0:G.commandMetadata,_.Pd))==null?0:c.ignoreNavigation)?!1:!0};
_.P.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.P.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.P.refitAfterRender=function(){var G=this;_.O$(this,function(){_.Xl(G.hostElement,"yt-refit")})};
u_.prototype.refitAfterRender=u_.prototype.refitAfterRender;u_.prototype.onRetrieveLocation=u_.prototype.onRetrieveLocation;u_.prototype.onSubmenuClosed=u_.prototype.onSubmenuClosed;u_.prototype.onMenuBackTap=u_.prototype.onMenuBackTap;u_.prototype.onServiceRequestSentOrCompleted=u_.prototype.onServiceRequestSentOrCompleted;u_.prototype.onYtNavigate=u_.prototype.onYtNavigate;u_.prototype.onPopupOpened=u_.prototype.onPopupOpened;u_.prototype.onPopupClosed=u_.prototype.onPopupClosed;
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],u_.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],u_.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],u_.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],u_.prototype,"enableFocusFix",void 0);_.r([_.E(),_.h("design:type",Object)],u_.prototype,"covered",void 0);_.r([_.E({computed:"computeHideMenu(covered, data)"}),_.h("design:type",Object)],u_.prototype,"hideMenu",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.h("design:type",String)],u_.prototype,"menuStyle",void 0);
_.r([_.E({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.h("design:type",Object)],u_.prototype,"isCommentNotificationOnProfileCard",void 0);_.r([_.E(),_.h("design:type",Boolean)],u_.prototype,"isPopUpOpen",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],u_.prototype,"scrolledByTouch",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],u_.prototype,"disableBackdropFilter",void 0);
_.r([_.nH("#sections"),_.h("design:type",HTMLElement)],u_.prototype,"sectionsElement",void 0);_.r([_.nH("#spinner"),_.h("design:type",HTMLElement)],u_.prototype,"spinnerElement",void 0);_.r([_.nH("#header"),_.h("design:type",HTMLElement)],u_.prototype,"headerElement",void 0);_.r([_.nH("#container"),_.h("design:type",HTMLElement)],u_.prototype,"JSC$20663_containerElement",void 0);_.r([_.nH("#submenu"),_.h("design:type",HTMLElement)],u_.prototype,"submenuElement",void 0);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],u_.prototype,"onPopupClosed",null);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],u_.prototype,"onPopupOpened",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],u_.prototype,"onYtNavigate",null);
_.r([_.qY("yt-service-request-completed"),_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],u_.prototype,"onServiceRequestSentOrCompleted",null);_.r([_.qY("yt-menu-back-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],u_.prototype,"onMenuBackTap",null);
_.r([_.qY("yt-submenu-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],u_.prototype,"onSubmenuClosed",null);_.r([_.qY("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],u_.prototype,"onRetrieveLocation",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],u_.prototype,"refitAfterRender",null);
_.r([_.Jc({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],u_);
_.B(u_,"ytd-multi-page-menu-renderer",function(){if(iLH!==void 0)return iLH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return iLH=G},{mode:1});var ofW;var b_=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return G};
_.u(b_,_.J);_.P=b_.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.computeAccessibility_=function(G){return this.get("accessibility.accessibilityData",G)||null};
_.P.onTap=function(){var G=_.gq(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(G&&G.length===1&&G[0])_.ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var c;if((c=this.data)==null?0:c.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var I;((I=this.data)==null?0:I.menuRequest)&&_.Gs(this.hostElement,[this.data.menuRequest])}}};
_.P.handleTopbarMenuClosedAction=function(G){var c,I;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(G)===((c=this.data)==null?void 0:(I=c.icon)==null?void 0:I.iconType)&&this.toggleIconState(!1)};
_.P.toggleIconState=function(G){_.v("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=G)};
_.P.handleUpdateTopbarAvatarAction=function(G){var c;G=(c=_.D(G,uKd))==null?void 0:c.avatarUrl;var I,R;c=(I=this.data)==null?void 0:(R=I.avatar)==null?void 0:R.thumbnails;G&&c&&(I={thumbnails:[Object.assign({},c[0],{url:G})]},this.set("data.avatar",I))};
_.Nh.Object.defineProperties(b_.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Q1(this.hostElement).querySelector("#button")}}});
b_.prototype.onTap=b_.prototype.onTap;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],b_.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],b_.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.V8A.YtButtonBehavior),_.h("design:type",Object)],b_.prototype,"ytButtonBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],b_.prototype,"data",void 0);
_.r([_.nH("yt-icon-button#button"),_.h("design:type",Object)],b_.prototype,"iconButton",void 0);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],b_.prototype,"onTap",null);_.r([_.Jc({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],b_);
_.PI()(b_,"ytd-topbar-menu-button-renderer",function(){if(ofW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);ofW=G}G=ofW;return G},{allowedProps:["data"],
mode:1});var UMd;var ku=function(){return _.J.apply(this,arguments)||this};
_.u(ku,_.J);ku.prototype.getSelected=function(){return this.reasons.selected};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ku.prototype,"data",void 0);_.r([_.nH("#reasons"),_.h("design:type",Object)],ku.prototype,"reasons",void 0);_.r([_.Jc({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],ku);
_.B(ku,"ytd-ad-feedback-content",function(){if(UMd!==void 0)return UMd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return UMd=G},{mode:1});var uyg;var si=function(){return _.J.apply(this,arguments)||this};
_.u(si,_.J);_.P=si.prototype;_.P.onPopupOpened=function(){_.ym(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.P.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
_.P.computeCancelButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.cancelLabel}};
_.P.onConfirmTap=function(){var G=this.content.getSelected();G!==void 0&&(G=this.data.reasons[G].endpoint)&&(_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}}),_.ym(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.P.sendFeedbackSubmitToastAction=function(){var G;(G=this.data)!=null&&G.completionMessage&&(G=_.YV(this.data.completionMessage),_.ym(this.hostElement,"yt-open-popup-action",[G,this]))};
_.P.onCancelTap=function(){_.ym(this.hostElement,"yt-close-popup-action")};
si.prototype.onPopupOpened=si.prototype.onPopupOpened;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],si.prototype,"data",void 0);_.r([_.nH("#content"),_.h("design:type",Object)],si.prototype,"content",void 0);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],si.prototype,"onPopupOpened",null);
_.r([_.Jc({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],si);
_.B(si,"ytd-ad-feedback-renderer",function(){if(uyg!==void 0)return uyg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return uyg=G},{mode:1});var blu;var kGj=function(){return _.J.apply(this,arguments)||this};
_.u(kGj,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],kGj.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kGj.prototype,"data",void 0);_.r([_.Jc({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],kGj);
_.B(kGj,"ytd-ad-info-dialog-content",function(){if(blu!==void 0)return blu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return blu=G},{mode:1});var smH;var La=function(){return _.J.apply(this,arguments)||this};
_.u(La,_.J);La.prototype.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
La.prototype.onConfirmTap=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
La.prototype.computeShouldShowTitle=function(){var G;return!((G=this.data)==null||!G.title)};
La.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
La.prototype.onPopupClosed=La.prototype.onPopupClosed;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],La.prototype,"data",void 0);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],La.prototype,"onPopupClosed",null);_.r([_.Jc({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],La);
_.B(La,"ytd-ad-info-dialog-renderer",function(){if(smH!==void 0)return smH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return smH=G},{mode:1});var LFg;var Ao=function(){var G=_.J.apply(this,arguments)||this;G.actionButtonClass="action-button";G.dismissButtonId="dismiss-button";G.dialogDismiss=!0;return G};
_.u(Ao,_.J);_.P=Ao.prototype;_.P.computeInPlayer=function(G){return(G==null?void 0:G.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.P.computedLogo=function(){var G,c;return this.isDarkTheme()?(G=this.data)==null?void 0:G.logoDark:(c=this.data)==null?void 0:c.logo};
_.P.computedHeaderImage=function(){var G,c;return this.isDarkTheme()?(G=this.data)==null?void 0:G.headerImageDark:(c=this.data)==null?void 0:c.headerImage};
_.P.computeLogoIconId=function(){var G,c,I,R=(G=this.computedLogo())==null?void 0:(c=G.sources)==null?void 0:(I=c[0])==null?void 0:I.height;return R&&R%31===0?"logo-icon-with-padding":"logo-icon"};
_.P.computeLogoIconHeight=function(){var G,c,I,R=(G=this.computedLogo())==null?void 0:(c=G.sources)==null?void 0:(I=c[0])==null?void 0:I.height;return R&&R%31===0?"31":"24"};
_.P.onPopupClosed=function(){_.wH().resolve(_.e6).dispose()};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.P.onShow=function(){this.inPlayer&&_.ND(6);this.titleElement.focus()};
_.P.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++){var c=_.D(this.data.impressionEndpoints[G],_.JN);c&&this.ytComponentBehavior.resolveCommand(c)}};
_.P.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ym(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Nh.Object.defineProperties(Ao.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var G,c;return!((G=this.data)==null||!G.headerImageDark)&&!((c=this.data)==null||!c.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.secondaryButton)}}});
Ao.prototype.onPopupClosed=Ao.prototype.onPopupClosed;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Ao.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.vR.YtVisibilityBehavior),_.h("design:type",Object)],Ao.prototype,"ytVisibilityBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ao.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],Ao.prototype,"actionButtonClass",void 0);_.r([_.E(),_.h("design:type",Object)],Ao.prototype,"dismissButtonId",void 0);_.r([_.E(),_.h("design:type",Object)],Ao.prototype,"dialogDismiss",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ao.prototype,"hasHeaderImage",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ao.prototype,"hasPremiumButton",null);
_.r([_.E({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.h("design:type",Boolean)],Ao.prototype,"inPlayer",void 0);_.r([_.nH("#dismiss-button"),_.h("design:type",HTMLElement)],Ao.prototype,"dismissButton",void 0);_.r([_.nH("#title"),_.h("design:type",HTMLElement)],Ao.prototype,"titleElement",void 0);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ao.prototype,"onPopupClosed",null);
_.r([_.Jc({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Ao);
_.B(Ao,"ytd-enforcement-message-view-model",function(){if(LFg!==void 0)return LFg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return LFg=G},{mode:1});var A27;var $Mr;var $u=function(){var G=_.J.apply(this,arguments)||this;G.TEST_ONLY={immediateValidation:function(){G.immediateValidation()},
onValidationResponse:function(c){G.onValidationResponse(c)},
onGenerateHandleFromNameResponse:function(c){G.onGenerateHandleFromNameResponse(c)}};
return G};
_.u($u,_.J);_.P=$u.prototype;_.P.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.P.validate=function(){this.immediateValidation()};
_.P.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.P.setHandleInputValue=function(G){this.handleDir=this.getHandleDir(G);this.handleInput.value=G;this.validationState={status:"PENDING"};this.immediateValidation()};
_.P.getHandleDir=function(G){var c=G===""&&!1;return(c=_.NUi.test.call(_.NUi,G))?"rtl":"ltr"};
_.P.onDataChanged=function(){var G,c;this.handleDir=this.getHandleDir((c=(G=this.data)==null?void 0:G.handle)!=null?c:"");var I;this.validationState=((I=this.data)==null?0:I.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var R;((R=this.data)==null?0:R.validateOnInit)&&this.immediateValidation()};
_.P.stopPropagation=function(G){G.stopPropagation()};
_.P.onInput=function(){var G;this.handleDir=this.getHandleDir((G=this.handleInput.value)!=null?G:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.P.onFocusout=function(G){this.handleInput.contains(G.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.P.delayedValidation=function(){var G,c;this.debouncedValidation((c=(G=this.data)==null?void 0:G.validationDelayMs)!=null?c:1E3)};
_.P.immediateValidation=function(){this.debouncedValidation(0)};
_.P.debouncedValidation=function(G){var c=this;_.tc(this,"debouncedValidation",function(){var I,R=c.staticValidation((I=c.handleInput.value)!=null?I:"");if(R!==void 0)c.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:R};else{var Z;if((Z=c.data)!=null&&Z.validateChannelHandleCommand){c.validationState={status:"LOADING"};var K;c.ytComponentBehavior.resolveCommand(c.data.validateChannelHandleCommand,{form:{handle:(K=c.handleInput.value)!=null?K:""},commandController:{onSuccess:function(m,
a){c.onValidationResponse(a)},
onServerError:function(m,a){c.onValidationServerError(a)}}})}else c.handleUnexpectedValidationError(new _.iW("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",c.data))}},G)};
_.P.staticValidation=function(G){var c;if(((c=this.data)==null?void 0:c.channelHandleStaticValidationParams)!==void 0){c=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(G)&&c.validValueRegexpErrorMessage!==void 0)return c.validValueRegexpErrorMessage;if(c.minLength!==void 0&&G.length<c.minLength&&c.minLengthErrorMessage!==void 0)return c.minLengthErrorMessage;if(c.maxLength!==void 0&&G.length>c.maxLength&&c.maxLengthErrorMessage!==void 0)return c.maxLengthErrorMessage}};
_.P.onValidationResponse=function(G){var c=_.D(G.result,biG);c===void 0?this.handleUnexpectedValidationError(new _.iW("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",G)):this.handleValidationResultRenderer(c)};
_.P.onValidationServerError=function(G){this.handleUnexpectedValidationError(new _.iW("ValidateChannelHandle request failed.",G))};
_.P.handleValidationResultRenderer=function(G){if(G.handle===void 0)this.handleUnexpectedValidationError(new _.iW("ChannelHandleValidationResultRenderer does not contain handle.",G));else if(G.handle===this.handleInput.value)switch(G.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:G.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:G.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.iW("Unrecognized ChannelHandleValidationResult",G));break;default:_.H0(G.result)}};
_.P.handleUnexpectedValidationError=function(G){var c;this.validationState={status:"UNKNOWN",handle:(c=this.handleInput.value)!=null?c:""};_.Ck(G)};
_.P.stopEventPropagation=function(G){G.stopPropagation()};
_.P.updateHandleOnChannelNameInputChange=function(G){if(!this.wasEdited){var c,I;this.debouncedGenerateHandleFromName(G,(I=(c=this.data)==null?void 0:c.validationDelayMs)!=null?I:1E3)}};
_.P.debouncedGenerateHandleFromName=function(G,c){var I=this;_.tc(this,"debouncedGenerateHandleFromName",function(){var R;(R=I.data)!=null&&R.validateChannelHandleCommand?I.ytComponentBehavior.resolveCommand(I.data.validateChannelHandleCommand,{form:{name:G},commandController:{onSuccess:function(Z,K){I.onGenerateHandleFromNameResponse(K)},
onServerError:function(Z,K){_.Ck(new _.iW("Error calling GenerateHandleFromName",K))}}}):_.Ck(new _.iW("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",I.data))},c)};
_.P.onGenerateHandleFromNameResponse=function(G){this.wasEdited||((G=_.D(G.result,klr))?this.setHandleInputValue(G.handle):_.Ck(new _.iW("Invalid results when generate handle from name")))};
_.Nh.Object.defineProperties($u.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var G;if(G=this.validationState)G=this.validationState,G=G.status==="OK"||G.status==="UNKNOWN";if(G)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.validationState)==null?void 0:G.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var G,c=(G=this.channelHandleEntity)==null?void 0:G.handleEdit;this.handleDir=this.getHandleDir(c!=null?c:"");return c}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var G,c;if(((G=this.data)==null?void 0:(c=G.channelHandleStaticValidationParams)==null?void 0:c.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
$u.prototype.stopEventPropagation=$u.prototype.stopEventPropagation;$u.prototype.onDataChanged=$u.prototype.onDataChanged;$u.prototype.applyHandleEdit=$u.prototype.applyHandleEdit;$u.prototype.onValueChanged=$u.prototype.onValueChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],$u.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],$u.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$u.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Boolean)],$u.prototype,"wasEdited",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],$u.prototype,"handleDir",void 0);_.r([_.nH("#handle-input"),_.h("design:type",Object)],$u.prototype,"handleInput",void 0);_.r([_.E(),_.A("validationState"),_.h("design:type",Object),_.h("design:paramtypes",[])],$u.prototype,"value",null);
_.r([_.wD("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$u.prototype,"onValueChanged",null);_.r([_.A("validationState"),_.h("design:type",Object),_.h("design:paramtypes",[])],$u.prototype,"errorIndicator",null);_.r([_.E({reflectToAttribute:!0}),_.A("errorIndicator"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$u.prototype,"borderErrorIndicator",null);
_.r([_.E({selectorArgs:["data.channelHandleEntityKey"],selector:function(G,c){return _.a6(G.entities,"channelHandle",c)}}),
_.h("design:type",Object)],$u.prototype,"channelHandleEntity",void 0);_.r([_.A("channelHandleEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],$u.prototype,"handleEdit",null);_.r([_.wD("handleEdit"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$u.prototype,"applyHandleEdit",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$u.prototype,"onDataChanged",null);
_.r([_.A("data.channelHandleStaticValidationParams.validValueRegexp"),_.h("design:type",Object),_.h("design:paramtypes",[])],$u.prototype,"validValueRegexp",null);_.r([_.qY("yt-service-request-sent"),_.qY("yt-service-request-completed"),_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],$u.prototype,"stopEventPropagation",null);_.r([_.Jc({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],$u);
_.B($u,"ytd-channel-handle-input-renderer",function(){if($Mr!==void 0)return $Mr;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return $Mr=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var S3=function(){var G=_.J.apply(this,arguments)||this;G.data=null;G.errorMessage=null;G.isLoading=!0;G.hideContainer=!1;G.enableNewChannelCreationOnIdForAll=_.v("enable_new_channel_creation_for_id4all");G.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};G.testOnly={setErrorMessage:function(c){G.resetErrorState();
G.setErrorState(c)}};
return G};
_.u(S3,_.J);_.P=S3.prototype;_.P.created=function(){this.logScreenVe()};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var G;((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.set("errorMessage",_.Cp(this.zeroStepErrorMessageEntity.value))};
_.P.onCreateTap=function(){var G=this;if(this.data&&this.data.channelCreationEndpoint){var c,I;if(!((c=this.data.createChannelButton)==null?0:(I=c.buttonRenderer)==null?0:I.isDisabled)){var R;if((R=this.nameInput)!=null&&R.value){this.setLoadingState();var Z,K;c=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Z=this.handleInput)==null?void 0:Z.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((K=this.handleInput)==null?void 0:K.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:c,commandController:{onSuccess:function(m,a){G.onChannelCreationEndpointSuccess(a);G.obakeImageSource&&_.x7("channelCreatedWithObakeImage",{imageSourceType:G.obakeImageSource})},
onServerError:function(){G.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.P.endpointRequiresServiceRequestAction=function(G){return!!_.D(G,_.iJ)||!!_.D(G,uKd)};
_.P.isNavigateAction=function(G){var c;return!!_.D(G,_.vWW)||!!_.D((c=_.D(G,AJd))==null?void 0:c.command,_.vWW)};
_.P.isPlaylistAction=function(G){return!!_.D(G,_.ql)||!!_.D(G,_.UP)};
_.P.onChannelCreationEndpointSuccess=function(G){if(G.createChannelError){var c;this.setErrorState((c=G.createChannelError)==null?void 0:c.errorMessage);this.handleInput&&this.handleInput.validate()}else{G.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(G.navigationEndpoint);if(G.actions){c=_.Q(G.actions);for(var I=c.next();!I.done;I=c.next())if(I=I.value,this.endpointRequiresServiceRequestAction(I)&&this.ytComponentBehavior.resolveCommand(I),this.isNavigateAction(I)){var R=void 0;I=_.D((R=
_.D(I,AJd))==null?void 0:R.command,_.vWW);R=void 0;this.isPlaylistAction((R=I)==null?void 0:R.endpoint)&&(_.ym(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),R=void 0,this.ytComponentBehavior.resolveCommand((R=I)==null?void 0:R.endpoint))}}G.actions&&G.actions.some(function(Z){var K;return _.D(Z,_.vWW)||_.D((K=_.D(Z,AJd))==null?void 0:K.command,_.vWW)})||_.ym(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.P.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.P.onCancelTap=function(){var G,c,I;if(!((G=this.data)==null?0:(c=G.cancelButton)==null?0:(I=c.buttonRenderer)==null?0:I.isDisabled)){var R,Z,K;G=(R=this.data)==null?void 0:(Z=R.cancelButton)==null?void 0:(K=Z.buttonRenderer)==null?void 0:K.command;if(!G||!_.D(G,_.Ar8)){var m;this.nameInput&&((m=this.data)==null?0:m.name)&&(this.nameInput.value=this.data.name);var a;this.handleInput&&((a=this.data)==null?0:a.channelHandleInput)&&(this.handleInput.data=_.D(this.data.channelHandleInput,svF));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.P.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.P.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.P.onClearProfilePhotoTap=function(){var G,c,I;((G=this.data)==null?0:(c=G.clearProfilePhotoButton)==null?0:(I=c.buttonRenderer)==null?0:I.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.P.onEditAvatarTap=function(){var G,c,I;((G=this.data)==null?0:(c=G.editAvatarButton)==null?0:(I=c.buttonRenderer)==null?0:I.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.P.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.P.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var G;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((G=this.data)==null?0:G.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.P.setErrorState=function(G){this.resetErrorState();if(G)this.set("errorMessage",G);else{var c;if((c=this.zeroStepErrorMessageEntity)==null?0:c.value)this.set("errorMessage",_.Cp(this.zeroStepErrorMessageEntity.value));else{var I;((I=this.data)==null?0:I.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.P.fetchImageBlobWithAlr=function(G,c){c=c===void 0?5:c;var I=this,R,Z,K,m,a;return _.T(function(O){switch(O.nextAddress){case 1:return O.yield(fetch(G,{method:"GET",mode:"cors"}),2);case 2:R=O.yieldResult;if(R.ok){O.jumpTo(3);break}if(c===0)throw Error();Z=I.addJitter(Math.pow(2,5-c));return O.yield(new Promise(function(N){setTimeout(N,Z*1E3)}),4);
case 4:return O.return(I.fetchImageBlobWithAlr(G,c-1));case 3:if(!R.headers.get("content-type").split(";").some(function(N){return N.trim()==="text/plain"})){O.jumpTo(5);
break}K=I;m=K.fetchImageBlobWithAlr;return O.yield(R.text(),6);case 6:return O.return(m.call(K,O.yieldResult,c-1));case 5:return O.yield(R.blob(),7);case 7:return a=O.yieldResult,O.return(a)}})};
_.P.addJitter=function(G){var c=G*.3*Math.random();Math.random()>.5&&(c*=-1);return G+c};
_.P.openProfilePicturePicker=function(){var G=this,c,I,R,Z,K,m;return _.T(function(a){if(a.nextAddress==1){c=G.data.scottyUploadUrl;if(!c)return a.return();I=document.documentElement.hasAttribute("dark");R=document.body.style.colorScheme;I&&(document.body.style.colorScheme="dark");Z=miW(asu(QTj(Gbd(I?"dark":"light")),function(O){var N,q,w,F,n;return _.T(function(U){if(U.nextAddress==1)return N=_.KU(sTr(new rqu(O.photoUrl,!1)).build(),"alr","yes"),G.obakeImageSource=G.pictureChangeSourceToObakeImageSourceType(O.photoSource),
_.s9(U,2),G.setLoadingState(),U.yield(G.fetchImageBlobWithAlr(N),4);if(U.nextAddress!=2)return q=U.yieldResult,w=new FileReader,w.addEventListener("load",function(){var k,p,M,z,t,x;return _.T(function(C){if(C.nextAddress==1){if(q.size>15728640)return G.setErrorState((k=G.data)==null?void 0:k.imageSizeErrorMessage),_.Ck(Error("Hl")),C.return();if(!w.result)return G.setErrorState((p=G.data)==null?void 0:p.genericImageLoadErrorMessage),_.Ck(Error("Il")),C.return();M=w.result;_.s9(C,2);return C.yield(edW(q,
c),4)}if(C.nextAddress!=2)return z=C.yieldResult,G.handleImageUpdatedAction(M,z),G.resetErrorState(),_.Pl(C,0);t=_.M3(C);G.setErrorState((x=G.data)==null?void 0:x.uploadErrorMessage);if(t instanceof Error)_.hg(t);else{var H=new _.iW(JSON.stringify(t));_.hg(H)}_.Vp(C)})}),w.readAsDataURL(q),_.Pl(U,0);
F=_.M3(U);G.setErrorState((n=G.data)==null?void 0:n.genericImageLoadErrorMessage);F instanceof Error?_.hg(F):_.dj(new _.iW(JSON.stringify(F)));_.Vp(U)})}),function(){G.hideContainer=!1;
document.body.style.colorScheme=R});
_.s9(a,2);return((K=G.data)==null?0:K.shouldViewChannelCreationFormForSupex)?a.yield(Z.openPicker("profile-picture/art-selection"),5):a.yield(Z.openPicker(),5)}if(a.nextAddress!=2)return _.Pl(a,0);_.M3(a);G.setErrorState((m=G.data)==null?void 0:m.selectImageErrorMessage);_.Vp(a)})};
_.P.pictureChangeSourceToObakeImageSourceType=function(G){switch(G){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.P.logScreenVe=function(){_.dt(_.DP(),124448)};
_.P.graftServerVe=function(){var G=_.u6(),c,I,R=(c=this.data)==null?void 0:(I=c.loggingDirectives)==null?void 0:I.trackingParams;R&&G&&(this.channelCreationFormVe=_.DP().graftServerVe(R,G),G={visualElement:this.channelCreationFormVe},_.nd().reportShown(G))};
_.P.isNameChanged=function(G){var c;return((c=this.data)==null?void 0:c.name)!==G};
_.P.isHandleChanged=function(G){var c,I=_.D((c=this.data)==null?void 0:c.channelHandleInput,svF);return I&&G?I.handle!==G:!1};
_.P.handleImageUpdatedAction=function(G,c){this.hideContainer=!1;this.previewDataUrl=G;this.encryptedBlobId=c};
_.P.handleImageSelectionErrorAction=function(G){this.hideContainer=!1;this.setErrorState(G)};
_.P.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.P.showContainer=function(){this.hideContainer=!1};
_.P.maybeWipeZeroStepErrorMessage=function(){var G,c=(G=this.data)==null?void 0:G.zeroStepErrorMessageEntityKey,I;c&&((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.ytdReduxBehavior.dispatch(_.Le("stringEntity",c,{key:c,value:""}))};
_.Nh.Object.defineProperties(S3.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var G;return((G=this.photoThumbnail)==null?0:G.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.descriptionInfo}}});
S3.prototype.dataChanged=S3.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],S3.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],S3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],S3.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],S3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],S3.prototype,"errorMessage",void 0);
_.r([_.E(),_.h("design:type",Object)],S3.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",String)],S3.prototype,"previewDataUrl",void 0);_.r([_.E(),_.h("design:type",Number)],S3.prototype,"obakeImageSource",void 0);_.r([_.E(),_.h("design:type",Object)],S3.prototype,"hideContainer",void 0);_.r([_.nH("#title-input"),_.h("design:type",Object)],S3.prototype,"nameInput",void 0);_.r([_.nH("#handle-input"),_.h("design:type",Object)],S3.prototype,"handleInput",void 0);
_.r([_.E(),_.h("design:type",Boolean)],S3.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.r([_.E({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.OWA}),_.h("design:type",Object)],S3.prototype,"zeroStepErrorMessageEntity",void 0);_.r([_.A("data","data.isDefaultProfilePhoto","previewDataUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],S3.prototype,"photoThumbnail",null);
_.r([_.A("data","data.isDefaultProfilePhoto","photoThumbnail"),_.h("design:type",Object),_.h("design:paramtypes",[])],S3.prototype,"userSetPhotoThumbnailUrl",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],S3.prototype,"hideProfilePhotoButtonLayer",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],S3.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.r([_.uO("data","zeroStepErrorMessageEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S3.prototype,"dataChanged",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.descriptionInfo","zeroStepErrorMessageEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],S3.prototype,"description",null);_.r([_.Jc({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],S3);
_.B(S3,"ytd-channel-creation-dialog-renderer",function(){if(A27!==void 0)return A27;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" 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');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return A27=G},{mode:1});var SIu;var pa=function(){var G=_.J.apply(this,arguments)||this;G.isLoading=!1;G.isDisabled=!1;return G};
_.u(pa,_.J);pa.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
pa.prototype.updateDisabled=function(){var G;this.isDisabled=this.isLoading||((G=this.handleInput)==null?void 0:G.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
pa.prototype.onSaveClick=function(){var G=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var c;((c=this.data)==null?void 0:c.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 I;if((I=G.data)==null?0:I.nextEndpoint){var R;G.ytComponentBehavior.resolveCommand((R=G.data)==null?void 0:R.nextEndpoint)}else G.isLoading=
!1,G.closeDialog()},
onServerError:function(){G.isLoading=!1;G.handleInput.validate();var I;G.errorMessage=(I=G.data)==null?void 0:I.errorMessage}}}))}};
pa.prototype.closeDialog=function(){_.ym(this.hostElement,"yt-close-popup-action",[this.is])};
pa.prototype.updateDisabled=pa.prototype.updateDisabled;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],pa.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pa.prototype,"data",void 0);_.r([_.nH("#handle-input"),_.h("design:type",Object)],pa.prototype,"handleInput",void 0);_.r([_.wD("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pa.prototype,"updateDisabled",null);
_.r([_.Jc({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],pa);
_.B(pa,"ytd-channel-handle-edit-dialog-renderer",function(){if(SIu!==void 0)return SIu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return SIu=G},{mode:1});var pV0;var ML=function(){return _.J.apply(this,arguments)||this};
_.u(ML,_.J);ML.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ML.prototype,"data",void 0);_.r([_.Jc({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],ML);
_.B(ML,"ytd-channel-switcher-footer-renderer",function(){if(pV0!==void 0)return pV0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return pV0=G},{mode:1});var M6G;var V67;var VA=function(){return _.J.apply(this,arguments)||this};
_.u(VA,_.J);VA.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
VA.prototype.onIronChange=VA.prototype.onIronChange;_.r([_.E(),_.h("design:type",Object)],VA.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!1}),_.h("design:type",Function)],VA.prototype,"onDontAskAgainChanged",void 0);_.r([_.nH("#checkbox"),_.h("design:type",Object)],VA.prototype,"checkbox",void 0);_.r([_.qY("iron-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VA.prototype,"onIronChange",null);
_.r([_.Jc({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],VA);
_.B(VA,"ytd-identity-prompt-footer-renderer",function(){if(V67!==void 0)return V67;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return V67=G},{mode:1});var zD=function(){var G=_.J.apply(this,arguments)||this;G.dontAskAgain=!1;G.showPopup=!1;G.boundDontAskAgainChanged=function(c){G.dontAskAgainChanged(c)};
G.boundOnAccountItemTap=function(c){G.onAccountItemTap(c)};
return G};
_.u(zD,_.J);_.P=zD.prototype;
_.P.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.P.ready=function(){var G=this;_.Q1(this.hostElement).querySelector("#container").addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.P.dontAskAgainChanged=function(G){this.dontAskAgain=G};
_.P.onAccountItemTap=function(G){if(G){var c={};this.dontAskAgain&&(c={dont_ask_again:this.dontAskAgain});_.Ji(G,c)}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.P.redirectOnlyAccount=function(G){G.sections&&G.sections.length>0&&(G=_.D(G.sections[0],_.VIB),(G==null?0:G.contents)&&(G==null?void 0:G.contents.length)<=1?(G=_.QU(window.location.href),(G==null?0:G.next)&&_.cHO(G.next)?_.Ji(G.next):_.Ji("/")):this.showPopup=!0)};
zD.prototype.dataChanged=zD.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zD.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!1}),_.h("design:type",Object)],zD.prototype,"dontAskAgain",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],zD.prototype,"showPopup",void 0);_.r([_.E({reflectToAttribute:!1}),_.h("design:type",Object)],zD.prototype,"boundDontAskAgainChanged",void 0);_.r([_.E({reflectToAttribute:!1}),_.h("design:type",Object)],zD.prototype,"boundOnAccountItemTap",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zD.prototype,"dataChanged",null);
_.r([_.Jc({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],zD);
_.B(zD,"ytd-channel-switcher-renderer",function(){if(M6G!==void 0)return M6G;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return M6G=G},{mode:1});var zc0;var Ei=function(){return _.J.apply(this,arguments)||this};
_.u(Ei,_.J);_.Nh.Object.defineProperties(Ei.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.r([_.E(),_.h("design:type",Object)],Ei.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],Ei.prototype,"steps",null);_.r([_.Jc({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Ei);
_.B(Ei,"ytd-channel-transfer-stepper-renderer",function(){if(zc0!==void 0)return zc0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return zc0=G},{mode:1});var Efd;var Jo=function(){var G=_.J.apply(this,arguments)||this;G.data=null;G.isError=!1;G.isLoading=!1;return G};
_.u(Jo,_.J);_.P=Jo.prototype;_.P.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.P.computeProfileName=function(G){return G?G.givenNameValue+" "+G.familyNameValue:""};
_.P.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.P.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
Jo.prototype.onYtServiceRequestError=Jo.prototype.onYtServiceRequestError;Jo.prototype.onYtServiceRequestSent=Jo.prototype.onYtServiceRequestSent;Jo.prototype.dataChanged=Jo.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Jo.prototype,"data",void 0);
_.r([_.E({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.h("design:type",String)],Jo.prototype,"profileName",void 0);_.r([_.E(),_.h("design:type",Object)],Jo.prototype,"isError",void 0);_.r([_.E(),_.h("design:type",Object)],Jo.prototype,"isLoading",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jo.prototype,"dataChanged",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],Jo.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],Jo.prototype,"onYtServiceRequestError",null);_.r([_.Jc({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Jo);
_.B(Jo,"ytd-channel-warm-welcome-cont-renderer",function(){if(Efd!==void 0)return Efd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Efd=G},{mode:1});var J2d;var W5=function(){var G=_.J.apply(this,arguments)||this;G.data=null;return G};
_.u(W5,_.J);W5.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
W5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],W5.prototype,"data",void 0);_.r([_.Jc({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],W5);
_.B(W5,"ytd-channel-warm-welcome-renderer",function(){if(J2d!==void 0)return J2d;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return J2d=G},{mode:1});var WFW;var i_=function(){return _.J.apply(this,arguments)||this};
_.u(i_,_.J);_.Nh.Object.defineProperties(i_.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.authorThumbnail)||{}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],i_.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],i_.prototype,"thumbnailDetails",null);_.r([_.Jc({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],i_);
_.B(i_,"ytd-comment-preview-renderer",function(){if(WFW!==void 0)return WFW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return WFW=G},{mode:1});var ild;var fa=function(){return _.J.apply(this,arguments)||this};
_.u(fa,_.J);fa.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Nh.Object.defineProperties(fa.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.submitButton}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],fa.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],fa.prototype,"submitButton",null);_.r([_.Jc({is:"ytd-notice-renderer",disableElementRegistration:!0})],fa);
_.B(fa,"ytd-notice-renderer",function(){if(ild!==void 0)return ild;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ild=G},{mode:1});var fl$;var B5=function(){return _.J.apply(this,arguments)||this};
_.u(B5,_.J);B5.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],B5.prototype,"data",void 0);_.r([_.Jc({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],B5);
_.B(B5,"ytd-preview-comment-dialog-content",function(){if(fl$!==void 0)return fl$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return fl$=G},{mode:1});var BVG;var rs=function(){return _.J.apply(this,arguments)||this};
_.u(rs,_.J);rs.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
rs.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],rs.prototype,"data",void 0);_.r([_.Jc({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],rs);
_.B(rs,"ytd-preview-comment-dialog-renderer",function(){if(BVG!==void 0)return BVG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return BVG=G},{mode:1});var r2H;var jmj=_.v("web_button_rework")&&_.XG("BUTTON_REWORK")||_.v("web_button_rework_with_live"),j3=function(){var G=_.J.apply(this,arguments)||this;G.closeLabel=_.mJ("CLOSE");G.selectedAmountIndex=1;G.privacyCheckboxValue=!1;G.useAmsterdamStyle=jmj;G.amountPlaceholderIndex=-1;return G};
_.u(j3,_.J);_.P=j3.prototype;_.P.onAmountClick=function(G){this.selectedAmountIndex=_.Q1(this.hostElement).querySelector("#amounts").indexForElement(G.currentTarget)};
_.P.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ym(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.P.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 G;(G=_.ZA())==null||G.getPlayerPromise().then(function(c){c.pauseVideo()})}};
_.P.donationCallback=function(G){G.success?(this.hostElement.hasAttribute("live-chat")&&G.response&&G.response.data&&G.response.data.actions&&_.ym(this.hostElement,"yt-live-chat-open-popup",[G.response.data.actions[0]]),_.ym(this.hostElement,"yt-close-popup-action",[this.is]),_.ym(this.hostElement,"yt-live-chat-close-buy-flow")):G.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(G.errorMessageRenderer)};
_.P.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Q1(this.hostElement).querySelector("#custom-amount-input").focus()};
_.P.updateConfirmationDialogTextWithAmount=function(G){var c=this.getConfirmDialogRuns();c&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(c),"text"],this.getFormattedAmount(G))};
_.P.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.P.getAmountPlaceholderIndex=function(G){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=G.findIndex(function(c){return c.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.P.getFormattedAmount=function(G){var c;return(new _.jC(4,((c=this.data)==null?void 0:c.currencyCode)||"")).format(G)};
_.P.isAmountValid=function(G){if(G==="")return!1;G=Number(G)*1E6;var c=this.get("minAmountMicros",this.data),I=this.get("maxAmountMicros",this.data);return c&&G<c||I&&G>I?!1:!0};
_.P.setInputError=function(){this.shouldShowValidationError?_.Q1(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Q1(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.P.setInitialCheckboxValue=function(){var G;this.privacyCheckboxValue=!((G=this.data)==null||!G.privacyCheckboxInitialState)};
_.P.updateCustomAmountInputFromBinding=function(G){this.customAmountInput=G.detail.value};
_.P.updatePrivacyCheckboxValueFromBinding=function(G){this.privacyCheckboxValue=G.detail.value};
_.Nh.Object.defineProperties(j3.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var G=this,c,I;return((c=this.data)==null?void 0:(I=c.suggestedAmounts)==null?void 0:I.map(function(R,Z){return{buttonRenderer:{style:G.selectedAmountIndex===Z?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:R.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var G=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(G&&this.amountMicros!==null)return Object.assign({},G,{ypcGetCartEndpoint:Object.assign({},G.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var G=this.get("confirmLargeAmount",this.data);if(G&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),G}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.get("donateButton.buttonRenderer",this.data);if(G)return Object.assign({},G,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
j3.prototype.setInitialCheckboxValue=j3.prototype.setInitialCheckboxValue;j3.prototype.setInputError=j3.prototype.setInputError;j3.prototype.setFocusOnCustomAmountInput=j3.prototype.setFocusOnCustomAmountInput;_.r([_.L(oR1),_.h("design:type",Object)],j3.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],j3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],j3.prototype,"closeLabel",void 0);_.r([_.E(),_.h("design:type",Object)],j3.prototype,"selectedAmountIndex",void 0);_.r([_.E(),_.h("design:type",String)],j3.prototype,"customAmountInput",void 0);_.r([_.E(),_.h("design:type",Object)],j3.prototype,"privacyCheckboxValue",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],j3.prototype,"useAmsterdamStyle",void 0);_.r([_.wD("customAmount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j3.prototype,"setFocusOnCustomAmountInput",null);_.r([_.A("data","selectedAmountIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],j3.prototype,"suggestedAmountButtons",null);
_.r([_.A("data","selectedAmountIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],j3.prototype,"isCustomAmountSelected",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],j3.prototype,"showPrivacyCheckbox",null);_.r([_.A("data","selectedAmountIndex","customAmount"),_.h("design:type",Object),_.h("design:paramtypes",[])],j3.prototype,"amountMicros",null);
_.r([_.A("isCustomAmountSelected","customAmountInput"),_.h("design:type",Object),_.h("design:paramtypes",[])],j3.prototype,"customAmount",null);_.r([_.A("customAmount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],j3.prototype,"shouldShowValidationError",null);_.r([_.A("customAmount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],j3.prototype,"isDonateButtonEnabled",null);
_.r([_.A("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.h("design:type",Object),_.h("design:paramtypes",[])],j3.prototype,"donateCommand",null);_.r([_.A("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.h("design:type",Object),_.h("design:paramtypes",[])],j3.prototype,"donateCommandWithConfirmation",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],j3.prototype,"largeDonationThreshold",null);
_.r([_.A("customAmount","donateCommand","amountMicros"),_.h("design:type",Object),_.h("design:paramtypes",[])],j3.prototype,"confirmLargeAmountCommand",null);_.r([_.A("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.h("design:type",Object),_.h("design:paramtypes",[])],j3.prototype,"donateButtonRenderer",null);_.r([_.wD("shouldShowValidationError"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j3.prototype,"setInputError",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j3.prototype,"setInitialCheckboxValue",null);_.r([_.Jc({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],j3);
_.B(j3,"ytd-donation-amount-picker-renderer",function(){if(r2H!==void 0)return r2H;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return r2H=G},{mode:1});var xMG;var t6u=function(){return _.J.apply(this,arguments)||this};
_.u(t6u,_.J);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],t6u.prototype,"ytComponentBehavior",void 0);_.r([_.E({}),_.h("design:type",Object)],t6u.prototype,"data",void 0);_.r([_.Jc({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],t6u);
_.B(t6u,"ytd-donation-post-transaction-content",function(){if(xMG!==void 0)return xMG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return xMG=G},{mode:1});var hcr;var xu=function(){return _.J.apply(this,arguments)||this};
_.u(xu,_.J);xu.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.r([_.E({}),_.h("design:type",Object)],xu.prototype,"data",void 0);_.r([_.Jc({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],xu);
_.B(xu,"ytd-donation-post-transaction-renderer",function(){if(hcr!==void 0)return hcr;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return hcr=G},{mode:1});var dM1;var CZj;var to=function(){return _.J.apply(this,arguments)||this};
_.u(to,_.J);to.prototype.computeIsStreamingProvider=function(G){return!!G.isStreamingShelf};
to.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],to.prototype,"data",void 0);_.r([_.E({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],to.prototype,"isStreamingProvider",void 0);
_.r([_.Jc({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],to);
_.B(to,"ytd-media-provider-renderer",function(){if(CZj!==void 0)return CZj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return CZj=G},{mode:1});var Hlu;var ho=function(){return _.J.apply(this,arguments)||this};
_.u(ho,_.J);ho.prototype.observeLightsourcePalette=function(){var G,c=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;c&&_.A0(this.hostElement,c)};
ho.prototype.observeLightsourcePalette=ho.prototype.observeLightsourcePalette;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ho.prototype,"data",void 0);
_.r([_.wD("data.vibrantsourceColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ho.prototype,"observeLightsourcePalette",null);_.r([_.Jc({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],ho);
_.B(ho,"ytd-streaming-pop-up-dialog",function(){if(Hlu!==void 0)return Hlu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Hlu=G},{mode:1});var ds=function(){return _.J.apply(this,arguments)||this};
_.u(ds,_.J);ds.prototype.onPopupOpened_=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.wH().resolve(_.n4).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ds.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
ds.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"}}}}};
ds.prototype.onPopupOpened_=ds.prototype.onPopupOpened_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.MZ),_.h("design:type",Object)],ds.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ds.prototype,"data",void 0);
_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ds.prototype,"onPopupOpened_",null);_.r([_.Jc({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],ds);
_.B(ds,"ytd-brandconnect-popup-renderer",function(){if(dM1!==void 0)return dM1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return dM1=G},{mode:1});var XVW;var Ca=function(){return _.J.apply(this,arguments)||this};
_.u(Ca,_.J);_.P=Ca.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){for(var G=0;G<this.getOptionRenderers().length;G++)this.notifyPath("data.options."+G+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+G+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.P.updateSubmitButton=function(G){this.set("data.submitButton.buttonRenderer.isDisabled",!G)};
_.P.computeAlt=function(G){return _.HY(G)};
_.P.onDismissTap=function(){_.ym(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.getOptionRenderers=function(G){return(G=G||this.data)&&G.options?G.options.reduce(function(c,I){I.checkboxSurveyOptionRenderer&&c.push(I.checkboxSurveyOptionRenderer);return c},[]):[]};
_.P.onOptionChange=function(G){var c=this,I=!1;if(G.detail.checked)for(var R=this.getOptionRenderers().find(function(a){return a.value===G.detail.value}),Z=this.getOptionRenderers(),K=0;K<Z.length;K++){var m=Z[K];
this.notifyPath("data.options."+K+".checkboxSurveyOptionRenderer.checked");m.checked&&((R==null?0:R.isExclusiveOption)?!m.isExclusiveOption:m.isExclusiveOption)?this.set("data.options."+K+".checkboxSurveyOptionRenderer.checked",!1):m.checked&&(I=!0)}else I=this.getOptionRenderers().some(function(a,O){c.notifyPath("data.options."+O+".checkboxSurveyOptionRenderer.checked");return a.checked});
this.updateSubmitButton(I)};
_.P.onSubmitTap=function(){var G=this.getOptionRenderers().filter(function(K){return K.checked});
if(G.length!==0){var c=G.map(function(K){return K.responseEndpoint});
G=[];for(var I=1;I<c.length;I++){var R=void 0,Z=(R=_.D(c[I],_.fM))==null?void 0:R.feedbackToken;Z&&G.push(Z)}c=[c[0]];G.length&&c.push({extra_feedback_tokens:G});_.Gs(this.hostElement,c);_.ym(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);G=this.data&&this.data.submitActions||[];if(_.v("kevlar_command_handler_migration_killswitch"))_.cd(this.hostElement,G,this.hostElement);else for(G=_.Q(G),c=G.next();!c.done;c=G.next())this.ytComponentBehavior.resolveCommand(c.value)}};
Ca.prototype.onOptionChange=Ca.prototype.onOptionChange;Ca.prototype.dataChanged=Ca.prototype.dataChanged;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],Ca.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Ca.prototype,"ytComponentBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.r([_.L(f_H),_.h("design:type",Object)],Ca.prototype,"ytdHatsSurveyBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ca.prototype,"data",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ca.prototype,"dataChanged",null);
_.r([_.qY("ytd-checkbox-survey-option-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ca.prototype,"onOptionChange",null);_.r([_.Jc({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Ca);
_.B(Ca,"ytd-checkbox-survey-renderer",function(){if(XVW!==void 0)return XVW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return XVW=G},{mode:1});var y2r;var gfu;var H5=function(){return _.J.apply(this,arguments)||this};
_.u(H5,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.r([_.L(irG),_.h("design:type",Object)],H5.prototype,"ytdDismissalReasonBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],H5.prototype,"data",void 0);_.r([_.Jc({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],H5);
_.B(H5,"ytd-dismissal-reason-text-renderer",function(){if(gfu!==void 0)return gfu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return gfu=G},{mode:1});var YIW;var XW=function(){return _.J.apply(this,arguments)||this};
_.u(XW,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.r([_.L(irG),_.h("design:type",Object)],XW.prototype,"ytdDismissalReasonBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],XW.prototype,"data",void 0);_.r([_.Jc({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],XW);
_.B(XW,"ytd-dismissal-reason-video-renderer",function(){if(YIW!==void 0)return YIW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return YIW=G},{mode:1});var yA=function(){return _.J.apply(this,arguments)||this};
_.u(yA,_.J);_.P=yA.prototype;_.P.created=function(){this.selectedFeedbackTokens=new O5};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.P.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.P.onDismissalReasonSelected=function(G,c){_.Xl(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(c);this.hasReasonsSelected=!0};
_.P.onDismissalReasonDeselected=function(G,c){_.Xl(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(c);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.P.onCancelTap=function(){_.ym(this.hostElement,"yt-close-popup-action")};
_.P.onSubmitTap=function(){var G=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(G={feedback_tokens:G},_.wH().resolve(_.n4).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}));_.ym(this.hostElement,"yt-close-popup-action")};
yA.prototype.onDismissalReasonDeselected=yA.prototype.onDismissalReasonDeselected;yA.prototype.onDismissalReasonSelected=yA.prototype.onDismissalReasonSelected;yA.prototype.dataChanged=yA.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yA.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Boolean)],yA.prototype,"hasReasonsSelected",void 0);_.r([_.E(),_.h("design:type",O5)],yA.prototype,"selectedFeedbackTokens",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yA.prototype,"dataChanged",null);_.r([_.qY("yt-dismissal-reason-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],yA.prototype,"onDismissalReasonSelected",null);
_.r([_.qY("yt-dismissal-reason-deselected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],yA.prototype,"onDismissalReasonDeselected",null);_.r([_.Jc({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],yA);
_.B(yA,"ytd-dismissal-follow-up-renderer",function(){if(y2r!==void 0)return y2r;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return y2r=G},{mode:1});var Gdu;var gs=function(){return _.J.apply(this,arguments)||this};
_.u(gs,_.J);_.P=gs.prototype;_.P.onCheckedChange=function(){this.multiselect||_.Xl(this.hostElement,"yt-feedback-single-select-changed");_.Q1(this.hostElement).querySelector("#freeform").focus();_.Xl(this.hostElement,"yt-refit")};
_.P.showTextBox=function(G,c){return G&&c};
_.P.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.P.updateDataCheckedFromBinding=function(G){this.set("data.checked",G.detail.value)};
_.P.updateDataResultTextFromBinding=function(G){this.set("data.resultText",G.detail.value)};
gs.prototype.dataChanged=gs.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gs.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],gs.prototype,"multiselect",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gs.prototype,"dataChanged",null);
_.r([_.Jc({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],gs);
_.B(gs,"ytd-feedback-option-renderer",function(){if(Gdu!==void 0)return Gdu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Gdu=G},{mode:1});var cbu;var Yu=function(){return _.J.apply(this,arguments)||this};
_.u(Yu,_.J);Yu.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Yu.prototype.onSingleSelectCheckedChanged=function(G){G=_.HH(G);for(var c=0;c<this.data.options.length;c++)if(G.data!==_.D(this.data.options[c],gB7)){var I="data.options."+c+".feedbackOptionRenderer.checked";this.notifyPath(I);this.set(I,!1)}};
Yu.prototype.onSingleSelectCheckedChanged=Yu.prototype.onSingleSelectCheckedChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Yu.prototype,"data",void 0);
_.r([_.qY("yt-feedback-single-select-changed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Yu.prototype,"onSingleSelectCheckedChanged",null);_.r([_.Jc({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Yu);
_.B(Yu,"ytd-feedback-question-renderer",function(){if(cbu!==void 0)return cbu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return cbu=G},{mode:1});var IE0;var GK=function(){return _.J.apply(this,arguments)||this};
_.u(GK,_.J);GK.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
GK.prototype.getSelectedFeedbackResults=function(){for(var G={},c=0;c<this.data.questions.length;c++)for(var I=_.D(this.data.questions[c],yZj),R=0;R<I.options.length;R++){var Z=_.D(I.options[R],gB7);Z&&Z.checked&&(G[Z.optionKey]=Z.resultText)}return G};
GK.prototype.onKeyUp=function(){var G=this;_.mq(_.dJ,function(){_.Xl(G.hostElement,"yt-refit")});
_.dJ.start()};
GK.prototype.submitSurvey=function(){var G=this.getSelectedFeedbackResults();Object.keys(G).length>0&&this.data.submitFeedbackEndpoint&&(G={survey_results:G,is_feedback_token_unencrypted:!0},_.wH().resolve(_.n4).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],GK.prototype,"data",void 0);_.r([_.Jc({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],GK);
_.B(GK,"ytd-feedback-survey-renderer",function(){if(IE0!==void 0)return IE0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return IE0=G},{mode:1});var RQG;var ZD0;var c4=function(){return _.J.apply(this,arguments)||this};
_.u(c4,_.J);c4.prototype.computeAlt=function(G){return _.HY(G)};
c4.prototype.submitResponse=function(){var G,c;(G=this.data)!=null&&G.feedbackToken&&((c=this.data)==null?void 0:c.nextStageIndex)!==void 0&&(_.gq(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.gq(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
c4.prototype.onClick=function(){this.submitResponse()};
c4.prototype.onClick=c4.prototype.onClick;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],c4.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],c4.prototype,"vertical",void 0);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c4.prototype,"onClick",null);
_.r([_.Jc({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],c4);
_.B(c4,"ytd-single-select-answer-option-renderer",function(){if(ZD0!==void 0)return ZD0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ZD0=G},{mode:1});var KPd;var IS=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return G};
_.u(IS,_.J);IS.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
IS.prototype.dataChanged=function(){var G,c;this.vertical=((c=(G=this.data)==null?void 0:G.answerOrientation)!=null?c:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
IS.prototype.submitFeedback=function(G){var c;((c=this.data)==null?0:c.responseEndpoint)&&G&&_.Gs(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[G]}])};
IS.prototype.dataChanged=IS.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],IS.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],IS.prototype,"eventForwardingBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],IS.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],IS.prototype,"vertical",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IS.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],IS);
_.B(IS,"ytd-single-select-question-renderer",function(){if(KPd!==void 0)return KPd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return KPd=G},{mode:1});var RS=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return G};
_.u(RS,_.J);_.P=RS.prototype;_.P.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.P.dataChanged=function(){this.jumpToStage(0)};
_.P.jumpToStage=function(G){var c,I;if((c=this.data)==null?0:(I=c.stages)==null?0:I[G])this.currentStage=this.data.stages[G],this.refitAfterRender()};
_.P.computeAlt=function(G){return _.HY(G)};
_.P.computeSimpleMessage=function(G){var c;return(c=_.D(G,cDd))==null?void 0:c.messageText};
_.P.computeHideDismiss=function(G){var c;return(c=_.D(G,rJr))==null?void 0:c.hideParentDismissButton};
_.P.onDismissTap=function(){_.ym(this.hostElement,"yt-close-popup-action");_.D(this.currentStage,cDd)||this.data.dismissalEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.refitAfterRender=function(){var G=this;_.O$(this,function(){_.Xl(G.hostElement,"yt-refit")})};
RS.prototype.dataChanged=RS.prototype.dataChanged;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],RS.prototype,"eventForwardingBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],RS.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L(f_H),_.h("design:type",Object)],RS.prototype,"ytdHatsSurveyBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],RS.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],RS.prototype,"currentStage",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RS.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],RS);
_.B(RS,"ytd-multi-stage-survey-renderer",function(){if(RQG!==void 0)return RQG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return RQG=G},{mode:1});var PGH;var Zf=function(){return _.J.apply(this,arguments)||this};
_.u(Zf,_.J);Zf.prototype.computeAlt=function(G){return _.HY(G)};
Zf.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.wH().resolve(_.n4).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ym(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.EWu(!1)))};
Zf.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Zf.prototype.onTap=Zf.prototype.onTap;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Zf.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Zf.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Zf.prototype,"vertical",void 0);
_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zf.prototype,"onTap",null);_.r([_.Jc({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Zf);
_.B(Zf,"ytd-single-option-survey-option-renderer",function(){if(PGH!==void 0)return PGH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return PGH=G},{mode:1});var Qtr;var KB=function(){return _.J.apply(this,arguments)||this};
_.u(KB,_.J);_.P=KB.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){var G,c;this.vertical=(((G=this.data)==null?void 0:(c=G.surveyOrientation)==null?void 0:c.type)||"HORIZONTAL")==="VERTICAL"};
_.P.computeAlt=function(G){return _.HY(G)};
_.P.onDismissTap=function(){_.ym(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.wH().resolve(_.n4).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.EWu(!1))};
KB.prototype.dataChanged=KB.prototype.dataChanged;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],KB.prototype,"eventForwardingBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(f_H),_.h("design:type",Object)],KB.prototype,"ytdHatsSurveyBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],KB.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],KB.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],KB.prototype,"vertical",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KB.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],KB);
_.B(KB,"ytd-single-option-survey-renderer",function(){if(Qtr!==void 0)return Qtr;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Qtr=G},{mode:1});var muu;var P4=function(){return _.J.apply(this,arguments)||this};
_.u(P4,_.J);P4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
P4.prototype.onDismissTap=function(){_.ym(this.hostElement,"yt-close-popup-action")};
P4.prototype.onNavigate=function(){_.ym(this.hostElement,"yt-close-popup-action")};
P4.prototype.onNavigate=P4.prototype.onNavigate;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],P4.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],P4.prototype,"data",void 0);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P4.prototype,"onNavigate",null);
_.r([_.Jc({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],P4);
_.B(P4,"ytd-survey-follow-up-renderer",function(){if(muu!==void 0)return muu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return muu=G},{mode:1});var aEd;var Thd;var ODH;var Qr=function(){var G=_.J.apply(this,arguments)||this;G.polymer2="Element"in Polymer;return G};
_.u(Qr,_.J);_.P=Qr.prototype;_.P.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.P.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.P.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.P.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("minutes-changed",this.minutes))};
_.P.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("seconds-changed",this.seconds))};
_.P.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.P.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
Qr.prototype.secondsChangedForBinding=Qr.prototype.secondsChangedForBinding;Qr.prototype.minutesChangedForBinding=Qr.prototype.minutesChangedForBinding;Qr.prototype.secondsChanged=Qr.prototype.secondsChanged;_.r([_.E(),_.h("design:type",String)],Qr.prototype,"minutes",void 0);_.r([_.E(),_.h("design:type",String)],Qr.prototype,"seconds",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Qr.prototype,"polymer2",void 0);
_.r([_.nH("#seconds"),_.h("design:type",Object)],Qr.prototype,"secondsEl",void 0);_.r([_.wD("seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qr.prototype,"secondsChanged",null);_.r([_.wD("minutes"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qr.prototype,"minutesChangedForBinding",null);
_.r([_.wD("seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qr.prototype,"secondsChangedForBinding",null);_.r([_.Em({is:"yt-timestamp-input",disableElementRegistration:!0})],Qr);
_.B(Qr,"yt-timestamp-input",function(){if(ODH===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Thd===void 0&&(Thd=document.createElement("template"));var R=Thd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ODH=G}G=ODH;return G},{mode:2});var mS=function(){return _.J.apply(this,arguments)||this};
_.u(mS,_.J);_.P=mS.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20836_scroller.dialogElement=this.hostElement.parentNode};
_.P.dataChanged=function(){var G=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Ke().getPlayerPromise().then(function(c){c=c.getCurrentTime();G.minutes=Math.floor(c/60).toString();G.seconds=(Math.floor(c)%60).toString()})};
_.P.onTapSubmit=function(G){G.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(G={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(G.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(G.minutes=this.minutes,G.seconds=this.seconds),_.wH().resolve(_.n4).resolveCommand(this.serviceEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.P.onYtServiceRequestCompleted=function(G,c){c=c.actions;if(Array.isArray(c))for(var I=0,R=c.length;I<R;I++)_.D(c[I],_.Ih)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(c[I]))};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.P.toggleSubmitButton=function(G){this.set("submitButton.isDisabled",!G)};
_.P.handleInput=function(){var G=this.issueType,c=this.affiliation,I=this.minutes,R=this.seconds;I=!this.showTimestamp||!!I&&!!R;this.toggleSubmitButton(!!this.descriptionText&&!!G&&!!c&&I)};
_.P.computeServiceEndpoint=function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)};
_.P.computeSubmitButton=function(G){(G=this.get("submitButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.P.computeShowTimestamp=function(G){return!!G};
_.P.onValueChangedForIssueType=function(G){this.issueType=G.detail.value};
_.P.onValueChangedForAffiliation=function(G){this.affiliation=G.detail.value};
_.P.updateDescriptionTextFromBinding=function(G){this.descriptionText=G.detail.value};
_.P.updateFullNameTextFromBinding=function(G){this.fullNameText=G.detail.value};
_.P.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.P.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
mS.prototype.handleInput=mS.prototype.handleInput;mS.prototype.onYtServiceRequestError=mS.prototype.onYtServiceRequestError;mS.prototype.onYtServiceRequestCompleted=mS.prototype.onYtServiceRequestCompleted;mS.prototype.onYtServiceRequestSent=mS.prototype.onYtServiceRequestSent;mS.prototype.dataChanged=mS.prototype.dataChanged;_.r([_.L(_.dm.YtOpenPopupBehavior),_.h("design:type",Object)],mS.prototype,"ytOpenPopupBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.r([_.nH("#scroller"),_.h("design:type",Object)],mS.prototype,"JSC$20836_scroller",void 0);_.r([_.nH("#description"),_.h("design:type",HTMLInputElement)],mS.prototype,"description",void 0);_.r([_.nH("#full-name"),_.h("design:type",Object)],mS.prototype,"fullName",void 0);_.r([_.E(),_.h("design:type",Object)],mS.prototype,"data",void 0);
_.r([_.E({computed:"computeShowTimestamp(data.timestampLabel)"}),_.h("design:type",Boolean)],mS.prototype,"showTimestamp",void 0);_.r([_.E({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.h("design:type",Object)],mS.prototype,"serviceEndpoint",void 0);_.r([_.E({computed:"computeSubmitButton(data)"}),_.h("design:type",Object)],mS.prototype,"submitButton",void 0);_.r([_.E(),_.h("design:type",String)],mS.prototype,"descriptionText",void 0);
_.r([_.E(),_.h("design:type",Number)],mS.prototype,"issueType",void 0);_.r([_.E(),_.h("design:type",Number)],mS.prototype,"affiliation",void 0);_.r([_.E(),_.h("design:type",String)],mS.prototype,"fullNameText",void 0);_.r([_.E(),_.h("design:type",String)],mS.prototype,"minutes",void 0);_.r([_.E(),_.h("design:type",String)],mS.prototype,"seconds",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mS.prototype,"dataChanged",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],mS.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],mS.prototype,"onYtServiceRequestCompleted",null);
_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],mS.prototype,"onYtServiceRequestError",null);_.r([_.wD("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mS.prototype,"handleInput",null);_.r([_.Jc({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],mS);
_.B(mS,"ytd-legal-report-details-form-renderer",function(){if(aEd!==void 0)return aEd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return aEd=G},{mode:1});var eQ$;var aS=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return G};
_.u(aS,_.J);aS.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
aS.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var G=this.formRenderer.getForm();G&&this.data.submitEndpoint&&(_.wH().resolve(_.n4).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},G,{element:this.hostElement})}),_.ym(this.hostElement,"yt-close-popup-action"))}};
aS.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ym(this.hostElement,"yt-close-popup-action"))};
aS.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
aS.prototype.onPopupClosed=aS.prototype.onPopupClosed;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],aS.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],aS.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);
_.r([_.nH("yt-form-renderer"),_.h("design:type",Object)],aS.prototype,"formRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],aS.prototype,"data",void 0);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],aS.prototype,"onPopupClosed",null);_.r([_.Jc({is:"ytd-form-popup-content",disableElementRegistration:!0})],aS);
_.B(aS,"ytd-form-popup-content",function(){if(eQ$!==void 0)return eQ$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return eQ$=G},{mode:1});var NhW;var TK=function(){return _.J.apply(this,arguments)||this};
_.u(TK,_.J);TK.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
TK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
TK.prototype.onPopupOpened=function(){_.Xl(this.hostElement,"yt-invalidate-popup-tabbables")};
TK.prototype.onYtServiceRequestCompleted=function(G,c){c.data&&c.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Xl(this.hostElement,"yt-invalidate-popup-tabbables"))};
TK.prototype.onYtServiceRequestCompleted=TK.prototype.onYtServiceRequestCompleted;TK.prototype.onPopupOpened=TK.prototype.onPopupOpened;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],TK.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],TK.prototype,"data",void 0);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TK.prototype,"onPopupOpened",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],TK.prototype,"onYtServiceRequestCompleted",null);_.r([_.Jc({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],TK);
_.B(TK,"ytd-form-popup-renderer",function(){if(NhW!==void 0)return NhW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return NhW=G},{mode:1});var lEr;var Ou=function(){var G=_.J.apply(this,arguments)||this;G.isLoading=!1;return G};
_.u(Ou,_.J);_.P=Ou.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");e8d(this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.isLoading=!0};
_.P.onYtServiceRequestCompleted=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.P.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.cd(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.P.closePopupHandler=function(){this.fireOnCloseActions()};
_.P.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var G=this.get("data.headerImage.thumbnails");G&&(G=_.ZX(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")")}};
_.P.onYtNavigate=function(G){(G=_.HH(G))&&G.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Ou.prototype.onYtNavigate=Ou.prototype.onYtNavigate;Ou.prototype.onHeaderImageChanged=Ou.prototype.onHeaderImageChanged;Ou.prototype.closePopupHandler=Ou.prototype.closePopupHandler;Ou.prototype.onYtServiceRequestCompleted=Ou.prototype.onYtServiceRequestCompleted;Ou.prototype.onYtServiceRequestSent=Ou.prototype.onYtServiceRequestSent;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],Ou.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Ou.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Ou.prototype,"isLoading",void 0);_.r([_.nH("#header"),_.h("design:type",HTMLDivElement)],Ou.prototype,"header",void 0);_.r([_.nH("#confirm-button"),_.h("design:type",_.Rp)],Ou.prototype,"confirmButton",void 0);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ou.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ou.prototype,"onYtServiceRequestCompleted",null);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Ou.prototype,"closePopupHandler",null);_.r([_.wD("data.headerImage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ou.prototype,"onHeaderImageChanged",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ou.prototype,"onYtNavigate",null);
_.r([_.Jc({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Ou);
_.B(Ou,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(lEr!==void 0)return lEr;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return lEr=G},{mode:1});var qzj;var eY=function(){var G=_.J.apply(this,arguments)||this;G.isLoading=!1;return G};
_.u(eY,_.J);_.P=eY.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);e8d(this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.P.onYtServiceRequestError=function(G){_.Xc(this.hostElement,G.detail.error.message)};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ym(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.P.onDataChanged=function(){this.isLoading=!1;var G=this.get("data.headerImage.thumbnails");G&&(G=_.ZX(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")");G=_.k0();var c=_.u6(),I=this.get("data.trackingParams");I&&c&&G&&_.Wd(G,c,_.kC(I))};
_.Nh.Object.defineProperties(eY.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
eY.prototype.onDataChanged=eY.prototype.onDataChanged;eY.prototype.onDomChange=eY.prototype.onDomChange;eY.prototype.onYtServiceRequestError=eY.prototype.onYtServiceRequestError;eY.prototype.onYtServiceRequestCompleted=eY.prototype.onYtServiceRequestCompleted;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],eY.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],eY.prototype,"isLoading",void 0);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],eY.prototype,"hasDescription",null);_.r([_.nH("tp-yt-paper-dialog-scrollable"),_.h("design:type",Object)],eY.prototype,"scrollable",void 0);_.r([_.nH("#header"),_.h("design:type",HTMLElement)],eY.prototype,"header",void 0);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],eY.prototype,"onYtServiceRequestCompleted",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],eY.prototype,"onYtServiceRequestError",null);
_.r([_.qY("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],eY.prototype,"onDomChange",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eY.prototype,"onDataChanged",null);_.r([_.Jc({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],eY);
_.B(eY,"ytd-gaming-account-link-setting-renderer",function(){if(qzj!==void 0)return qzj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return qzj=G},{mode:1});var wj0;var FPu;var N$=function(){var G=_.J.apply(this,arguments)||this;G.isHeader=!1;G.getEndpointForm=function(){return nq0(G.data)};
return G};
_.u(N$,_.J);_.P=N$.prototype;_.P.triggerHintActions=function(){var G=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var c=_.gq(G.hostElement,"yt-get-opened-popups-action");!(c&&c.length===1?c[0]:[]).some(function(I){I=I.openPopupAction.popupType;return I==="SURVEY"||I==="MEALBAR"||I==="HINT"})&&G.data.hintActions&&G.guideOpened&&(_.cd(G.hostElement,G.data.hintActions,G.hostElement),G.data.hintActions=void 0)})};
_.P.getBadgeIconType=function(G){return G&&G.liveBroadcasting?"live":null};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(G){if(this.data.serviceEndpoint){var c;_.v("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.D(this.data.serviceEndpoint,_.vH))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):FU$(this.data.serviceEndpoint,this);G.preventDefault()}else this.data.navigationEndpoint&&!_.Gf(_.CE(G),this.hostElement,["A".toString()])&&_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.P.computeActive=function(G,c){if(!G)return!1;var I=G.navigationEndpoint;G=G.serviceEndpoint;if(!I&&!G||!c)return!1;if(I){G=(G=_.lu(c))&&["subscriptions","filteredsubscriptions"].includes(G);if(_.D(I,_.qD)&&_.D(c,_.qD)&&!G){var R=_.D(I,_.qD).browseId;c=_.D(c,_.qD).browseId;return R!==void 0&&c!==void 0&&(R===c||R==="VLWL"&&c==="FEwatch_later"||R==="FEwatch_later"&&c==="VLWL")}var Z;I=(Z=_.D(I.commandMetadata,_.Pd))==null?void 0:Z.url;c=(R=_.D(c.commandMetadata,_.Pd))==null?void 0:R.url;return!(!I||
!c||I!==c&&I!==_.Aw(c))}return this.isActiveShortsTab(G,c)};
_.P.isActiveShortsTab=function(G,c){c=!!_.D(c,_.vH)||!!_.D(c,_.wt);return(!!_.D(G,_.vH)||!!_.D(G,_.wt))&&c};
_.P.computeIsPrimary=function(G){return!!G};
_.Nh.Object.defineProperties(N$.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&G)return G}}});
N$.prototype.onTap=N$.prototype.onTap;N$.prototype.onUp=N$.prototype.onUp;N$.prototype.onDown=N$.prototype.onDown;N$.prototype.triggerHintActions=N$.prototype.triggerHintActions;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],N$.prototype,"componentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],N$.prototype,"rendererBehavior",void 0);_.r([_.L(_.$r.YtTaskEmitterBehavior),_.h("design:type",Object)],N$.prototype,"taskEmitterBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],N$.prototype,"activeEndpoint",void 0);_.r([_.E(),_.h("design:type",Object)],N$.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],N$.prototype,"guideOpened",void 0);_.r([_.E(),_.h("design:type",String)],N$.prototype,"type",void 0);_.r([_.nH("yt-interaction"),_.h("design:type",Object)],N$.prototype,"interaction",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],N$.prototype,"isHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data","activeEndpoint"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],N$.prototype,"active",null);_.r([_.E({reflectToAttribute:!0}),_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],N$.prototype,"isPrimary",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.count","data.presentationStyle","data.badges.*"),_.h("design:type",String),_.h("design:paramtypes",[])],N$.prototype,"lineEndStyle",null);
_.r([_.A("lineEndStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],N$.prototype,"ariaLabel",null);_.r([_.wD("data.hintActions","guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],N$.prototype,"triggerHintActions",null);_.r([_.qY("down"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],N$.prototype,"onDown",null);
_.r([_.qY("up"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],N$.prototype,"onUp",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],N$.prototype,"onTap",null);_.r([_.Jc({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],N$);
_.B(N$,"ytd-guide-entry-renderer",function(){if(FPu!==void 0)return FPu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return FPu=G},{mode:1});var lz=function(){var G=_.J.apply(this,arguments)||this;G.userToggled=!1;return G};
_.u(lz,_.J);_.P=lz.prototype;_.P.getItemsPath=function(){return"data.expandableItems"};
_.P.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.P.onExpanderItemTapped=function(G){var c=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.v("kevlar_guide_expandable_items_killswitch")&&_.O$(this,function(){_.ax(c.expandableItems)});
G.preventDefault()};
_.P.onCollapserItemTapped=function(G){var c=this;this._setExpanded(!1);this.userToggled=!0;G.preventDefault();this.expandableItems&&!_.v("kevlar_guide_collapsible_items_killswitch")&&_.O$(this,function(){_.mp(c.hostElement)})};
_.P.observeActiveEndpoint=function(){for(var G=this.activeEndpoint,c=this.data,I=this.expandableItems.children,R=0,Z=I.length;R<Z;R++)I[R].activeEndpoint=G;c&&c.autoExpandCommand&&G&&!this.userToggled&&(I=this.data.autoExpandCommand,c=!(!_.D(I,_.qD)||!_.D(G,_.qD)||_.D(I,_.qD).browseId!==_.D(G,_.qD).browseId),G=this.get("commandMetadata.webCommandMetadata.url",G),I=this.get("commandMetadata.webCommandMetadata.url",I),c=c||!!(G&&I&&G.includes(I)),this._setExpanded(c),c&&this.ytLazyListBehavior.fillRemainingListItems())};
lz.prototype.observeActiveEndpoint=lz.prototype.observeActiveEndpoint;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],lz.prototype,"ytLazyListBehavior",void 0);_.r([_.nH("#expandable-items"),_.h("design:type",HTMLElement)],lz.prototype,"expandableItems",void 0);
_.r([_.E(),_.h("design:type",Object)],lz.prototype,"data",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],lz.prototype,"expanded",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],lz.prototype,"initialCount",void 0);_.r([_.E(),_.h("design:type",Object)],lz.prototype,"activeEndpoint",void 0);_.r([_.wD("data","activeEndpoint","canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lz.prototype,"observeActiveEndpoint",null);
_.r([_.Jc({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],lz);
_.B(lz,"ytd-guide-collapsible-entry-renderer",function(){if(wj0!==void 0)return wj0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return wj0=G},{mode:_.Qc("kevlar_poly_si_batch_j079")?1:2});var nTd;var vTu;var q$=function(){var G=_.J.apply(this,arguments)||this;G.allVideosCount=0;G.renderGuideEntry=!1;return G};
_.u(q$,_.J);q$.prototype.observeRenderEntry=function(){var G;this.renderGuideEntry=!((G=this.data)==null||!G.alwaysShow)||!!this.allVideosCount};
q$.prototype.observeRenderEntry=q$.prototype.observeRenderEntry;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],q$.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],q$.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],q$.prototype,"activeEndpoint",void 0);_.r([_.E({selector:_.h$g}),_.h("design:type",Object)],q$.prototype,"allVideosCount",void 0);
_.r([_.E(),_.h("design:type",Object)],q$.prototype,"renderGuideEntry",void 0);_.r([_.uO("allVideosCount","data.alwaysShow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q$.prototype,"observeRenderEntry",null);_.r([_.Jc({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],q$);
_.B(q$,"ytd-guide-downloads-entry-renderer",function(){if(vTu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);vTu=G}G=vTu;return G},{mode:1});var w$=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return G};
_.u(w$,_.J);_.P=w$.prototype;_.P.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.P.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var G=this.sectionItems.children,c=0,I=G.length;c<I;c++)G[c].activeEndpoint=this.activeEndpoint}};
_.P.handleAddToGuideSectionAction=function(G){var c=_.D(G,p$G);if(c&&this.data&&(G=c.items,c=c.handlerData,G&&c&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(c)>-1)){c=0;for(var I=G.length;c<I;c++)G[c].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,G[c])}};
_.P.handleRemoveFromGuideSectionAction=function(G){var c=_.D(G,MJg);c&&this.data&&(G=c.guideEntryId,c=c.handlerData,G&&c&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(c)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(G,this.data.sectionItems),this.removeFromCollapsedSection(G,this.data.sectionItems)))};
_.P.removeFromExpandedSection=function(G,c){G=this.getEntryIndexMatchingId(G,c);G!==-1&&this.splice("data.sectionItems",G,1)};
_.P.removeFromCollapsedSection=function(G,c){var I=c.findIndex(function(R){return!!_.D(R,D07)});
I&&I!==-1&&c[I]&&_.D(c[I],D07)&&(c=_.D(c[I],D07).expandableItems)&&(G=this.getEntryIndexMatchingId(G,c),G!==-1&&this.splice("data.sectionItems."+I+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.P.getEntryIndexMatchingId=function(G,c){var I=this;return c.findIndex(function(R){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===G})};
w$.prototype.activeEndpointChanged=w$.prototype.activeEndpointChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],w$.prototype,"actionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("#section-items"),_.h("design:type",HTMLDivElement)],w$.prototype,"sectionItems",void 0);
_.r([_.nH("#header-entry"),_.h("design:type",Object)],w$.prototype,"headerEntry",void 0);_.r([_.E(),_.h("design:type",Object)],w$.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],w$.prototype,"activeEndpoint",void 0);_.r([_.wD("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w$.prototype,"activeEndpointChanged",null);_.r([_.Jc({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],w$);
_.B(w$,"ytd-guide-collapsible-section-entry-renderer",function(){if(nTd===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);nTd=G}G=nTd;return G},{mode:1});var Duj;var oT$;var Fo=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return G};
_.u(Fo,_.J);_.P=Fo.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.P.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var G=_.gq(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);G&&G.length===1&&G[0]&&_.gq(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.P.handleResetChannelUnreadCountCommand=function(G){var c;(G=(c=_.D(G,zzd))==null?void 0:c.channelId)&&this.data&&this.data.items&&(c=this.getPathToEntryMatchingId(G))&&(this.set(c+".guideEntryRenderer.count",0),this.set(c+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.handleResetSubscriptionsUnreadDotCommand=function(G){var c,I=(c=_.D(G,Eed))==null?void 0:c.targetId,R;I&&(R=this.data)!=null&&R.items&&(G=this.data.items.findIndex(function(Z){var K;return((K=Z.guideEntryRenderer)==null?void 0:K.targetId)===I}),G<0||this.set("data.items."+G+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.getPathToEntryMatchingId=function(G){if(this.data&&this.data.items){var c=this.getEntryIndexMatchingId(G,this.data.items);if(c>-1)return"data.items."+c;for(var I=0;I<this.data.items.length;I++)if(c=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[I]))if(c=this.getEntryIndexMatchingId(G,c),c>-1)return"data.items."+I+".guideCollapsibleEntryRenderer.expandableItems."+c}};
_.P.handleAddToGuideSectionAction=function(G){var c=this;if(_.D(G,p$G)){var I=_.D(G,p$G).items;G=_.D(G,p$G).handlerData;var R,Z;if(I&&G&&((R=this.data)==null?void 0:(Z=R.handlerDatas)==null?void 0:Z.indexOf(G))>-1){I=I.filter(function(m){return(m=c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",m))&&!c.isGuideItemPresent(m)});
var K;if(G==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((K=this.data)==null?0:K.items)&&(R=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),R>-1)){this.splice.apply(this,["data.items",R+1,0].concat(_.jn(I)));return}this.unshift.apply(this,["data.items"].concat(_.jn(I)))}}};
_.P.isGuideItemPresent=function(G){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(G,this.data.items)!==-1)return!0;var c=this.data.items.find(function(I){return!!I.guideCollapsibleEntryRenderer});
if((c==null?0:c.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(G,c.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.P.getEntryIndexMatchingId=function(G,c){var I=this;return c.findIndex(function(R){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===G})};
_.P.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(G,c){var I=this;return c.findIndex(function(R){return I.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===G})};
_.P.handleRemoveFromGuideSectionAction=function(G){if(_.D(G,MJg)){var c=_.D(G,MJg).guideEntryId;G=_.D(G,MJg).handlerData;var I,R;c&&G&&((I=this.data)==null?void 0:(R=I.handlerDatas)==null?void 0:R.indexOf(G))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(c,this.data.items),this.removeFromCollapsedSection(c,this.data.items))}};
_.P.removeFromExpandedSection=function(G,c){G=this.getEntryIndexMatchingId(G,c);G!==-1&&this.splice("data.items",G,1)};
_.P.removeFromCollapsedSection=function(G,c){var I=c.findIndex(function(R){return!!R.guideCollapsibleEntryRenderer});
I!==-1&&(c=c[I].guideCollapsibleEntryRenderer.expandableItems)&&(G=this.getEntryIndexMatchingId(G,c),G!==-1&&this.splice("data.items."+I+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.P.activeEndpointChanged=function(){for(var G=_.Q1(this.hostElement).querySelector("#items").children,c=0,I=G.length;c<I;c++)G[c].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.guideOpenedChanged=function(){for(var G=_.Q1(this.hostElement).querySelector("#items").children,c=0,I=G.length;c<I;c++)G[c].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Fo.prototype.guideOpenedChanged=Fo.prototype.guideOpenedChanged;Fo.prototype.activeEndpointChanged=Fo.prototype.activeEndpointChanged;Fo.prototype.persistentGuideChanged=Fo.prototype.persistentGuideChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Fo.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],Fo.prototype,"ytLazyListBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Fo.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Fo.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Fo.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",String)],Fo.prototype,"type",void 0);_.r([_.E({value:20}),_.h("design:type",Number)],Fo.prototype,"initialCount",void 0);_.r([_.E({value:10}),_.h("design:type",Number)],Fo.prototype,"targetFramerate",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],Fo.prototype,"autoFill",void 0);_.r([_.E({value:50}),_.h("design:type",Number)],Fo.prototype,"renderDelay",void 0);
_.r([_.wD("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fo.prototype,"persistentGuideChanged",null);_.r([_.uO("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fo.prototype,"activeEndpointChanged",null);_.r([_.uO("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fo.prototype,"guideOpenedChanged",null);
_.r([_.Jc({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Fo);
_.B(Fo,"ytd-guide-section-renderer",function(){if(oT$!==void 0)return oT$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return oT$=G},{mode:_.Qc("kevlar_poly_si_batch_j073")?1:2});var Uuj;var nB=function(){return _.J.apply(this,arguments)||this};
_.u(nB,_.J);_.Nh.Object.defineProperties(nB.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],nB.prototype,"rendererBehaviors",void 0);_.r([_.E(),_.h("design:type",Object)],nB.prototype,"data",void 0);_.r([_.E(),_.A("data.signInButton.buttonRenderer.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],nB.prototype,"alignByText",null);_.r([_.Jc({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],nB);
_.B(nB,"ytd-guide-signin-promo-renderer",function(){if(Uuj===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);Uuj=G}G=Uuj;return G},{mode:1});var v4=function(){var G=_.J.apply(this,arguments)||this;G.showFooter=!1;return G};
_.u(v4,_.J);v4.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}}}}};
v4.prototype.attached=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1){c=_.wH().resolve(_.qR(_.oe));if(!c)return I.jumpTo(0);c.setGuideData(G.hostElement);return I.yield(0,3)}G.ytLazyListBehavior.initialCount=2;return I.return()})};
v4.prototype.onMouseExit=function(){_.v("web_guide_hover_expansion")&&_.gq(this.hostElement,"yt-guide-mouseleaved",[])};
v4.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
v4.prototype.dataChanged=v4.prototype.dataChanged;v4.prototype.onMouseExit=v4.prototype.onMouseExit;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],v4.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Ju.YtLazyListBehavior),_.h("design:type",Object)],v4.prototype,"ytLazyListBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],v4.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],v4.prototype,"showFooter",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],v4.prototype,"autoFill",void 0);_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],v4.prototype,"onMouseExit",null);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],v4.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-guide-renderer",disableElementRegistration:!0})],v4);
_.B(v4,"ytd-guide-renderer",function(){if(Duj!==void 0)return Duj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Duj=G},{mode:_.Qc("kevlar_poly_si_batch_j073")?1:2});var uEd;var Df=function(){var G=_.J.apply(this,arguments)||this;G.systemIcons=_.v("kevlar_system_icons");G.frostedGlass=_.v("web_frosted_glass");G.onAllyMenuButtonClick=function(){var c=G.getShowSheetCommand();c&&G.ytComponentBehavior.resolveCommand(c)};
G.getEndpointForm=function(){return nq0(G.data)};
return G};
_.u(Df,_.J);_.P=Df.prototype;_.P.attached=function(){this.JSC$20889_sheetController=_.wH().resolve(_.O6)};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var G;(G=this.JSC$20889_sheetController)==null||m7u(G,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.P.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.P.isSeedlessReelCommand=function(G){var c;return!!G&&((c=_.D(G,_.vH))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.P.isShowSheetCommand=function(G){return!!G&&!!_.D(G,_.AY)};
_.P.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.P.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.P.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(G){if(this.data.serviceEndpoint){if(_.v("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var c;(c=this.JSC$20889_sheetController)==null||m7u(c,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));G.preventDefault();
return}FU$(this.data.serviceEndpoint,this)}G.preventDefault()}else{var I;((I=this.data)==null?0:I.navigationEndpoint)&&!_.Gf(_.CE(G),this.hostElement,["A".toString()])&&_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.P.computeActive=function(G,c){if(!G)return!1;var I=G.navigationEndpoint;G=G.serviceEndpoint;if(!I&&!G||!c)return!1;if(I){G=_.D(I,_.qD);var R=_.D(c,_.qD);if(G&&R)return G.browseId===R.browseId&&G.params===R.params;var Z;I=(Z=_.D(I.commandMetadata,_.Pd))==null?void 0:Z.url;var K;c=(K=_.D(c.commandMetadata,_.Pd))==null?void 0:K.url;return!(!I||!c||I!==c&&I!==_.Aw(c))}return this.isActiveShortsTab(G,c)};
_.P.isActiveShortsTab=function(G,c){c=!!_.D(c,_.vH)||!!_.D(c,_.wt);return(!!_.D(G,_.vH)||!!_.D(G,_.wt))&&c};
_.P.computeTitle=function(G,c){return c?"":_.HY(G)};
_.P.computeEndpoint=function(G){return this.isSeedlessReelCommand(G.serviceEndpoint)?G.serviceEndpoint:G.navigationEndpoint};
_.P.computeAriaLabelTitle=function(G){return _.HY(G)};
_.P.computeAllyShowMenuOnTap=function(G){return this.isShowSheetCommand(G.mouseEnterEndpoint)||this.isShowSheetCommand(G.serviceEndpoint)};
_.Nh.Object.defineProperties(Df.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Df.prototype.onMouseLeave=Df.prototype.onMouseLeave;Df.prototype.onMouseEnter=Df.prototype.onMouseEnter;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Pp),_.h("design:type",Object)],Df.prototype,"ironButtonState",void 0);_.r([_.E(),_.h("design:type",Object)],Df.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],Df.prototype,"activeEndpoint",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Df.prototype,"noLabels",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.h("design:type",Boolean)],Df.prototype,"isActive",void 0);_.r([_.E({computed:"computeEndpoint(data)"}),_.h("design:type",Object)],Df.prototype,"computedEndpoint",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Df.prototype,"systemIcons",void 0);_.r([_.nH("yt-interaction"),_.h("design:type",Object)],Df.prototype,"interaction",void 0);_.r([_.A("isActive"),_.h("design:type",Object),_.h("design:paramtypes",[])],Df.prototype,"ariaSelected",null);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],Df.prototype,"frostedGlass",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.h("design:type",Boolean)],Df.prototype,"allyShowMenuOnTap",void 0);_.r([_.qY("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],Df.prototype,"onMouseEnter",null);_.r([_.qY("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],Df.prototype,"onMouseLeave",null);
_.r([_.Jc({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Df);
_.B(Df,"ytd-mini-guide-entry-renderer",function(){if(uEd!==void 0)return uEd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return uEd=G},{mode:_.Qc("kevlar_poly_si_batch_j063")?1:2});var bDu;var oS=function(){var G=_.J.apply(this,arguments)||this;G.allVideosCount=0;G.noLabels=_.v("kevlar_mini_guide_no_labels");G.frostedGlass=_.v("web_frosted_glass");return G};
_.u(oS,_.J);_.P=oS.prototype;_.P.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.P.onMouseEnter=function(){_.v("web_guide_hover_expansion")&&_.gq(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.P.visibleChanged=function(){if(this.visible&&!this.data){var G=_.wH().resolve(_.qR(_.oe));G&&G.setGuideData(this.hostElement)}};
_.P.dataChanged=function(){var G=_.v("kevlar_guide_menu_on_hover")&&_.v("kevlar_modern_mini_guide"),c=_.v("kevlar_guide_menu_on_click")&&_.v("kevlar_modern_mini_guide"),I;var R=(I=this.data)==null?void 0:I.items;I=this.allVideosCount;var Z=[];G=G?0:c?1:void 0;c=G!==void 0;if(R){for(var K=[],m=_.Q(R),a=m.next();!a.done;a=m.next())if(a=a.value,a.guideSubscriptionsSectionRenderer){var O=void 0;K=((O=a.guideSubscriptionsSectionRenderer)==null?void 0:O.items)||[]}R=_.Q(R);for(m=R.next();!m.done;m=R.next())if(m=
m.value,a=void 0,(a=m.guideSectionRenderer)==null?0:a.items)for(a=void 0,m=_.Q((a=m.guideSectionRenderer)==null?void 0:a.items),a=m.next();!a.done;a=m.next()){a=a.value;var N=void 0,q=void 0;O=a.guideEntryRenderer||_.D((N=a)==null?void 0:(q=N.guideCollapsibleSectionEntryRenderer)==null?void 0:q.headerEntry,vq1);N=[];q=[];var w=void 0;if(((w=O)==null?void 0:w.targetId)==="subscriptions-guide-item")N=K;else{var F=w=void 0;if((w=a)==null?0:(F=w.guideCollapsibleSectionEntryRenderer)==null?0:F.sectionItems)q=
N=a.guideCollapsibleSectionEntryRenderer.sectionItems}U0u(Z,O,c?N:[],G);if(q.length>0)for(a=_.Q(q),O=a.next();!O.done;O=a.next())O=O.value,q=_.D(O,Hid),N=void 0,q=q&&(q.alwaysShow||I)?_.D((N=q)==null?void 0:N.entryRenderer,vq1):_.D(O,vq1),U0u(Z,q,[])}}this.miniGuideItems=Z};
_.P.activeEndpointChanged=function(){for(var G=this.items.children,c=0;c<G.length;c++)G[c].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.registerWithViewTransitionManager=function(){var G=this;_.W_(_.dJ,function(){var c=_.wH().resolve(_.qR(_.mk));if(c&&c.isAnyTransitionEnabled){var I={};c.viewTransitionCoordinator.registerElement(G.hostElement,(I.slide="mini-guide-page-transition",I))}})};
oS.prototype.activeEndpointChanged=oS.prototype.activeEndpointChanged;oS.prototype.dataChanged=oS.prototype.dataChanged;oS.prototype.visibleChanged=oS.prototype.visibleChanged;oS.prototype.onMouseEnter=oS.prototype.onMouseEnter;_.r([_.L(_.wQ),_.h("design:type",Object)],oS.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],oS.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],oS.prototype,"ytComponentBehavior",void 0);_.r([_.nH("#items"),_.h("design:type",Object)],oS.prototype,"items",void 0);_.r([_.E(),_.h("design:type",Object)],oS.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Boolean)],oS.prototype,"visible",void 0);_.r([_.E(),_.h("design:type",Object)],oS.prototype,"miniGuideItems",void 0);_.r([_.E({selector:_.h$g}),_.h("design:type",Object)],oS.prototype,"allVideosCount",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],oS.prototype,"noLabels",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],oS.prototype,"frostedGlass",void 0);
_.r([_.qY("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oS.prototype,"onMouseEnter",null);_.r([_.uO("visible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oS.prototype,"visibleChanged",null);_.r([_.uO("data","allVideosCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oS.prototype,"dataChanged",null);
_.r([_.uO("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oS.prototype,"activeEndpointChanged",null);_.r([_.Jc({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],oS);
_.B(oS,"ytd-mini-guide-renderer",function(){if(bDu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);bDu=G}G=bDu;return G},{mode:1});var kdG;var stH=/^[\x00-\x7F]+$/,Uu=function(){return _.J.apply(this,arguments)||this};
_.u(Uu,_.J);_.Nh.Object.defineProperties(Uu.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var G,c=_.HY((G=this.data)==null?void 0:G.handle);if(c)return _.Cp("@"+c)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.HY(this.displayHandle),c,I=_.HY((c=this.data)==null?void 0:c.handleUrl);if(G&&I)return _.Cp(I+G)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var G=_.HY(this.displayHandle);if(G&&!stH.test(G)){var c;return(c=this.data)==null?void 0:c.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.HY(this.displayHandleUrl),c,I=_.HY((c=this.data)==null?void 0:c.urlInfoText);if(G&&I)return _.Cp(I+" "+G)}}});
_.r([_.E(),_.h("design:type",Object)],Uu.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uu.prototype,"displayHandle",null);_.r([_.A("displayHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uu.prototype,"displayHandleUrl",null);_.r([_.A("displayHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uu.prototype,"warningText",null);
_.r([_.A("displayHandleUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],Uu.prototype,"urlInfoTextWithUrl",null);_.r([_.Jc({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Uu);
_.B(Uu,"ytd-handles-claiming-confirm-dialog-content",function(){if(kdG!==void 0)return kdG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return kdG=G},{mode:1});var LPu;var uz=function(){var G=_.J.apply(this,arguments)||this;G.okButtonOverride={style:"mono",type:"outline",size:"M"};return G};
_.u(uz,_.J);uz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uz.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uz.prototype,"okButtonOverride",void 0);_.r([_.E(),_.h("design:type",Object)],uz.prototype,"data",void 0);_.r([_.Jc({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],uz);
_.B(uz,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(LPu!==void 0)return LPu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return LPu=G},{mode:1});var AbW;var $uj=/^[\x00-\x7F]+$/,bz=function(){var G=_.J.apply(this,arguments)||this;G.isLoading=!1;return G};
_.u(bz,_.J);bz.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var G;this.selectedHandle=(G=this.handleInput)==null?void 0:G.value;this.onSelectedHandleChanged(this.selectedHandle);_.gq(this.hostElement,"yt-refit-popups-action")}};
_.Nh.Object.defineProperties(bz.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Cp("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Cp(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!$uj.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],bz.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],bz.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],bz.prototype,"selectedHandle",void 0);_.r([_.E(),_.h("design:type",Object)],bz.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Function)],bz.prototype,"onSelectedHandleChanged",void 0);_.r([_.nH("#channel-handle-input"),_.h("design:type",Object)],bz.prototype,"handleInput",void 0);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],bz.prototype,"handleUrlPrefix",null);_.r([_.A("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],bz.prototype,"displayHandle",null);_.r([_.A("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],bz.prototype,"displayHandleUrl",null);_.r([_.A("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],bz.prototype,"warningText",null);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.r([_.Jc({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],bz);
_.B(bz,"ytd-handles-claiming-edit-dialog-content",function(){if(AbW!==void 0)return AbW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return AbW=G},{mode:1});var Sz0;var k3=function(){var G=_.J.apply(this,arguments)||this;G.actionButtonOverride={style:"mono",type:"filled",size:"M"};G.cancelButtonOverride={style:"mono",type:"text",size:"M"};G.selectButtonDisabled=!1;G.isLoading=!1;G.hasSelectedHandleEventListener=!1;G.selectedHandleChanged=function(c){G.selectedHandle=c};
return G};
_.u(k3,_.J);_.P=k3.prototype;_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.P.onDataChanged=function(){var G,c;this.selectedHandle=(c=_.D((G=this.data)==null?void 0:G.inputField,svF))==null?void 0:c.handle};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.selectedHandle="";_.ym(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var G=this;if(this.selectedHandle!==void 0){var c;((c=this.data)==null?void 0:c.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.Xc(G.hostElement,_.HY(R.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var Z;if((Z=G.data)==null?0:Z.onChannelUpdateSuccess){I=G.data.onChannelUpdateSuccess;var K,m;if(R=(K=_.D(I,_.Ih))==null?void 0:(m=K.popup)==null?void 0:m.handlesClaimingConfirmDialogRenderer)R.handle=_.Cp(G.selectedHandle);G.ytComponentBehavior.resolveCommand(I);_.ym(G.hostElement,"yt-close-popup-action",[G.is])}else G.isLoading=!1}},
onServerError:function(){var I;G.content&&((I=G.content)==null?0:I.handleInput)&&G.content.handleInput.validate();G.isLoading=!1;_.Xc(G.hostElement,_.mJ("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
k3.prototype.onDataChanged=k3.prototype.onDataChanged;k3.prototype.onSelectedHandleChanged=k3.prototype.onSelectedHandleChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],k3.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],k3.prototype,"actionButtonOverride",void 0);_.r([_.E(),_.h("design:type",Object)],k3.prototype,"cancelButtonOverride",void 0);_.r([_.E(),_.h("design:type",Object)],k3.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",String)],k3.prototype,"selectedHandle",void 0);_.r([_.E(),_.h("design:type",Object)],k3.prototype,"selectButtonDisabled",void 0);_.r([_.E(),_.h("design:type",Object)],k3.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Object)],k3.prototype,"hasSelectedHandleEventListener",void 0);_.r([_.E(),_.h("design:type",Object)],k3.prototype,"handleInput",void 0);
_.r([_.wD("selectedHandle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k3.prototype,"onSelectedHandleChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k3.prototype,"onDataChanged",null);_.r([_.nH("ytd-handles-claiming-edit-dialog-content"),_.h("design:type",Object)],k3.prototype,"content",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Jc({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],k3);
_.B(k3,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Sz0!==void 0)return Sz0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Sz0=G},{mode:1});var pju;var su=function(){return _.J.apply(this,arguments)||this};
_.u(su,_.J);_.Nh.Object.defineProperties(su.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.handle){var c;return _.Cp("@"+_.HY((c=this.data)==null?void 0:c.handle))}}}});
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],su.prototype,"formattedHandle",null);_.r([_.E(),_.h("design:type",Object)],su.prototype,"data",void 0);_.r([_.Jc({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],su);
_.B(su,"ytd-handles-claiming-radio-option-renderer",function(){if(pju!==void 0)return pju;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return pju=G},{mode:1});var M0W;var V0G=/^[\x00-\x7F]+$/,LB=function(){var G=_.J.apply(this,arguments)||this;G.initialRadioIndex="-1";G.isLoading=!1;G.maybeSubmitFeedback=function(){G.feedbackSurveyRenderer.submitSurvey()};
return G};
_.u(LB,_.J);LB.prototype.updateSelectedHandleIndexFromBinding=function(G){this.selectedRadioIndex=+G.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(G)};
LB.prototype.selectedHandleChanged=function(G){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var c;this.selectedHandle=(c=this.handleInput)==null?void 0:c.value;this.onSelectedHandleChanged(G)}};
_.Nh.Object.defineProperties(LB.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var G;return this.ytRendererBehavior.getSimpleString((G=this.data)==null?void 0:G.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Cp("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Cp(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!V0G.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.r([_.E(),_.h("design:type",Object)],LB.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],LB.prototype,"initialRadioIndex",void 0);_.r([_.E(),_.h("design:type",Number)],LB.prototype,"selectedRadioIndex",void 0);_.r([_.E(),_.h("design:type",String)],LB.prototype,"selectedHandle",void 0);_.r([_.E(),_.h("design:type",Object)],LB.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Function)],LB.prototype,"onSelectedHandleChanged",void 0);
_.r([_.E(),_.h("design:type",Function)],LB.prototype,"onSelectedRadioIndexChanged",void 0);_.r([_.nH("#channel-handle-input"),_.h("design:type",Object)],LB.prototype,"handleInput",void 0);_.r([_.nH("ytd-feedback-survey-renderer"),_.h("design:type",Object)],LB.prototype,"feedbackSurveyRenderer",void 0);_.r([_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],LB.prototype,"radioButtonLength",null);
_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],LB.prototype,"handleUrlPrefix",null);_.r([_.A("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],LB.prototype,"displayHandle",null);_.r([_.A("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],LB.prototype,"displayHandleUrl",null);_.r([_.A("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],LB.prototype,"warningText",null);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.r([_.Jc({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],LB);
_.B(LB,"ytd-handles-claiming-select-dialog-content",function(){if(M0W!==void 0)return M0W;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return M0W=G},{mode:1});var zQW;var Al=function(){var G=_.J.apply(this,arguments)||this;G.actionButtonOverride={style:"mono",type:"filled",size:"M"};G.cancelButtonOverride={style:"mono",type:"text",size:"M"};G.initialRadioIndex="-1";G.selectButtonDisabled=!1;G.isLoading=!1;G.selectedRadioIndexChanged=function(c){G.selectedRadioIndex=Number(c.detail.value)};
G.selectedHandleChanged=function(c){G.selectedHandle=c.detail.value};
return G};
_.u(Al,_.J);_.P=Al.prototype;_.P.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.P.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.gq(this.hostElement,"yt-refit-popups-action")};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ym(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var G=this;if(this.selectedHandle!==void 0){var c;((c=this.data)==null?void 0:c.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.Xc(G.hostElement,_.HY(R.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var Z;if((Z=G.data)==null?0:Z.onChannelUpdateSuccess){I=G.data.onChannelUpdateSuccess;R=_.D(I,_.Ih);var K;if(R==null?0:(K=R.popup)==null?0:K.handlesClaimingConfirmDialogRenderer)R.popup.handlesClaimingConfirmDialogRenderer.handle=_.Cp(G.selectedHandle);G.ytComponentBehavior.resolveCommand(I);_.ym(G.hostElement,"yt-close-popup-action",[G.is])}else G.isLoading=!1}},
onServerError:function(){if(G.selectedRadioIndex===G.radioButtonLength){var I;G.content&&((I=G.content)==null?0:I.handleInput)&&G.content.handleInput.validate()}G.isLoading=!1;_.Xc(G.hostElement,_.mJ("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var G,c;this.selectedHandle=(G=this.content)==null?void 0:(c=G.handleInput)==null?void 0:c.value}else this.selectedRadioIndex>=0&&((G=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(G==null?void 0:G.handle):this.selectedHandle=void 0)};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.P.getRadioItem=function(G){if(this.radioButtonLength>G&&G>=0)return _.D(this.data.radioButton[G],jv0)};
_.Nh.Object.defineProperties(Al.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}}});
Al.prototype.onSelectedHandleChanged=Al.prototype.onSelectedHandleChanged;Al.prototype.onSelectedHandleIndexChanged=Al.prototype.onSelectedHandleIndexChanged;Al.prototype.onDataChanged=Al.prototype.onDataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Al.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Al.prototype,"actionButtonOverride",void 0);_.r([_.E(),_.h("design:type",Object)],Al.prototype,"cancelButtonOverride",void 0);
_.r([_.E(),_.h("design:type",Object)],Al.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Al.prototype,"initialRadioIndex",void 0);_.r([_.E(),_.h("design:type",Number)],Al.prototype,"selectedRadioIndex",void 0);_.r([_.E(),_.h("design:type",String)],Al.prototype,"selectedHandle",void 0);_.r([_.E(),_.h("design:type",Object)],Al.prototype,"selectButtonDisabled",void 0);_.r([_.E(),_.h("design:type",Object)],Al.prototype,"isLoading",void 0);
_.r([_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Al.prototype,"radioButtonLength",null);_.r([_.nH("ytd-handles-claiming-select-dialog-content"),_.h("design:type",Object)],Al.prototype,"content",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"onDataChanged",null);
_.r([_.wD("selectedRadioIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"onSelectedHandleIndexChanged",null);_.r([_.wD("selectedHandle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"onSelectedHandleChanged",null);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Jc({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Al);
_.B(Al,"ytd-handles-claiming-select-dialog-renderer",function(){if(zQW!==void 0)return zQW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return zQW=G},{mode:1});var ET$;var JbH;var $3=function(){return _.J.apply(this,arguments)||this};
_.u($3,_.J);$3.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$3.prototype,"data",void 0);_.r([_.Jc({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],$3);
_.B($3,"ytd-hotkey-dialog-section-option-renderer",function(){if(JbH!==void 0)return JbH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return JbH=G},{mode:1});var WPu;var SY=function(){return _.J.apply(this,arguments)||this};
_.u(SY,_.J);SY.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],SY.prototype,"data",void 0);_.r([_.Jc({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],SY);
_.B(SY,"ytd-hotkey-dialog-section-renderer",function(){if(WPu!==void 0)return WPu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return WPu=G},{mode:1});var pB=function(){return _.J.apply(this,arguments)||this};
_.u(pB,_.J);pB.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pB.prototype,"data",void 0);_.r([_.Jc({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],pB);
_.B(pB,"ytd-hotkey-dialog-content",function(){if(ET$!==void 0)return ET$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ET$=G},{mode:1});var iDW;var M$=function(){return _.J.apply(this,arguments)||this};
_.u(M$,_.J);M$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G=document.querySelector("ytd-hotkey-dialog-content #scrollable");G&&(G.dialogElement=this.hostElement.parentElement)};
M$.prototype.onCloseTap=function(){_.ym(this.hostElement,"yt-close-popup-action")};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],M$.prototype,"data",void 0);_.r([_.Jc({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],M$);
_.B(M$,"ytd-hotkey-dialog-renderer",function(){if(iDW!==void 0)return iDW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return iDW=G},{mode:1});var fEW;var Vr=function(){return _.J.apply(this,arguments)||this};
_.u(Vr,_.J);Vr.prototype.onYtServiceRequestError=function(){if(this.blocked){var G;var c=(G=this.data)==null?void 0:G.defaultServiceEndpoint}else{var I;c=(I=this.data)==null?void 0:I.toggledServiceEndpoint}var R;(c=(R=_.D(c,_.xee))==null?void 0:R.onFailureAction)&&this.ytComponentBehavior.resolveCommand(c);this.updateBlockState(!this.blocked)};
Vr.prototype.onYtToggleButton=function(G){this.updateBlockState(G.detail.toggled)};
Vr.prototype.updateBlockState=function(G){if(G!==this.blocked){var c=this.blockedEntityKey;c&&this.ytdReduxBehavior.dispatch(_.Le("blockStateEntity",c,{key:c,blocked:G}));this.set("data.isToggled",G)}};
_.Nh.Object.defineProperties(Vr.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)}}});
Vr.prototype.onYtToggleButton=Vr.prototype.onYtToggleButton;Vr.prototype.onYtServiceRequestError=Vr.prototype.onYtServiceRequestError;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Vr.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Vr.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Vr.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Vr.prototype,"blockedEntityKey",void 0);
_.r([_.E({selectorArgs:["blockedEntityKey"],selector:function(G,c){return _.a6(G.entities,"blockStateEntity",c)}}),
_.h("design:type",Object)],Vr.prototype,"blockStateEntity",void 0);_.r([_.A("data","blockStateEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Vr.prototype,"blocked",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Vr.prototype,"onYtServiceRequestError",null);
_.r([_.qY("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Vr.prototype,"onYtToggleButton",null);_.r([_.Jc({is:"ytd-block-button",disableElementRegistration:!0})],Vr);
_.B(Vr,"ytd-block-button",function(){if(fEW!==void 0)return fEW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return fEW=G},
{mode:1});var Bhj;var rbg;var zK=function(){return _.J.apply(this,arguments)||this};
_.u(zK,_.J);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],zK.prototype,"data",void 0);_.r([_.Jc({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],zK);
_.B(zK,"ytd-kids-blocklist-picker-item-renderer",function(){if(rbg!==void 0)return rbg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return rbg=G},{mode:1});var Eu=function(){return _.J.apply(this,arguments)||this};
_.u(Eu,_.J);Eu.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Eu.prototype,"data",void 0);_.r([_.Jc({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Eu);
_.B(Eu,"ytd-kids-blocklist-picker-content",function(){if(Bhj!==void 0)return Bhj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Bhj=
G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var jtg;var Jl=function(){var G=_.J.apply(this,arguments)||this;G.hasAnyRequestSucceeded=!1;G.hasAnyRequestFailed=!1;G.numPendingRequests=0;return G};
_.u(Jl,_.J);_.P=Jl.prototype;_.P.attached=function(){this.hostElement.setAttribute("dialog","")};
_.P.onDoneButtonTap=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.P.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.P.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.P.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.P.onPopupClosed=function(G){var c,I;if(((c=G.detail)==null?void 0:(I=c.popup)==null?void 0:I.is)==="tp-yt-paper-dialog"){var R;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((R=this.data)==null?0:R.successfulToastActionMessage)&&(G=_.YV(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(G));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Jl.prototype.onPopupClosed=Jl.prototype.onPopupClosed;Jl.prototype.onYtServiceRequestError=Jl.prototype.onYtServiceRequestError;Jl.prototype.onYtServiceRequestCompleted=Jl.prototype.onYtServiceRequestCompleted;Jl.prototype.onYtServiceRequestSent=Jl.prototype.onYtServiceRequestSent;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Jl.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Jl.prototype,"data",void 0);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jl.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jl.prototype,"onYtServiceRequestCompleted",null);
_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jl.prototype,"onYtServiceRequestError",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Jl.prototype,"onPopupClosed",null);_.r([_.Jc({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Jl);
_.B(Jl,"ytd-kids-blocklist-picker-renderer",function(){if(jtg!==void 0)return jtg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return jtg=G},{mode:1});var xug;var t0W;var W4=function(){return _.J.apply(this,arguments)||this};
_.u(W4,_.J);W4.prototype.setTip=function(G){var c=this;this.data&&(this.tip=RW7(cBg.getInstance(),G,this.data),_.O$(this,function(){_.Xl(c.hostElement,"yt-refit")}))};
W4.prototype.clearTip=function(){this.tip=void 0};
W4.prototype.computeHidden=function(G){return!G};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],W4.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.h("design:type",Boolean)],W4.prototype,"hidden",void 0);_.r([_.E(),_.h("design:type",Object)],W4.prototype,"tip",void 0);_.r([_.Jc({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],W4);
_.B(W4,"ytd-menu-popup-tip-renderer",function(){if(t0W!==void 0)return t0W;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);
return t0W=G},{mode:1});var hQH;var iz=function(){var G=_.J.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.v("kevlar_system_icons");return G};
_.u(iz,_.J);_.P=iz.prototype;_.P.onFocus=function(){var G;(G=_.Q1(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.P.onTap=function(){var G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(G&&_.D(G,_.RP))this.componentBehavior.resolveCommand(G),this.updateToggledStateInEntity();else if(G){this.componentBehavior.resolveCommand(G)||_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}});var c;((c=_.D(G,_.KC))==null?void 0:c.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.P.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.P.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.P.updateToggledStateInEntity=function(){var G=this.data.toggleMenuServiceItemEntityKey,c=!this.data.isToggled;G&&this.ytdReduxBehavior.dispatch(_.Le("toggleMenuServiceItemEntity",G,{key:G,isToggled:c}))};
_.P.computeIcon=function(G,c,I){return(G=G?I:c)&&G.iconType?_.On(G.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.isIconActive=function(G){return!_.v("toggle_menu_active_icon_killswitch")&&G};
_.Nh.Object.defineProperties(iz.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.data)==null?0:G.isToggled)?(c=this.data)==null?void 0:c.toggledText:(I=this.data)==null?void 0:I.defaultText}}});
iz.prototype.toggledStateEntityChanged=iz.prototype.toggledStateEntityChanged;iz.prototype.onYtServiceRequestCompleted=iz.prototype.onYtServiceRequestCompleted;iz.prototype.onTap=iz.prototype.onTap;iz.prototype.onFocus=iz.prototype.onFocus;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],iz.prototype,"componentBehavior",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],iz.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],iz.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],iz.prototype,"useIcons",void 0);_.r([_.E({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.h("design:type",String)],iz.prototype,"icon",void 0);
_.r([_.E({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.QZ.toggleMenuServiceItemEntitySelector}),_.h("design:type",Object)],iz.prototype,"toggleMenuServiceItemEntity",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],iz.prototype,"systemIcons",void 0);_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iz.prototype,"onFocus",null);
_.r([_.A("data.isToggled"),_.h("design:type",Object),_.h("design:paramtypes",[])],iz.prototype,"toggleButtonText",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iz.prototype,"onTap",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iz.prototype,"onYtServiceRequestCompleted",null);
_.r([_.wD("toggleMenuServiceItemEntity.isToggled","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iz.prototype,"toggledStateEntityChanged",null);_.r([_.Jc({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],iz);
_.B(iz,"ytd-toggle-menu-service-item-renderer",function(){if(hQH!==void 0)return hQH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return hQH=G},{mode:1});var duH;var fB=function(){return _.J.apply(this,arguments)||this};
_.u(fB,_.J);fB.prototype.onFocus=function(){var G;(G=_.Q1(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.Nh.Object.defineProperties(fB.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.dS(this.data.iconUrl)}}});
fB.prototype.onFocus=fB.prototype.onFocus;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fB.prototype,"rendererBehavior",void 0);_.r([_.L(_.Cx.YtEndpointBehavior),_.h("design:type",Object)],fB.prototype,"ytEndpointBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],fB.prototype,"data",void 0);_.r([_.qY("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fB.prototype,"onFocus",null);
_.r([_.A("data.iconUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],fB.prototype,"imageSource",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],fB);
_.B(fB,"ytd-menu-custom-icon-item-renderer",function(){if(duH!==void 0)return duH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return duH=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});_.R1(_.s8,"yt-list-item-view-model",{props:{data:_.bl,isMenuItem:_.bl,isCompact:_.bl,onTap:_.G9,trailingAccessory:_.G9,hideSelectionTextChevron:_.bl,disabled:_.bl,inPopup:_.bl,disableHorizontalPadding:_.bl,isOverlay:_.bl,isToggled:_.bl,ariaLabel:_.bl,ariaPressed:_.bl,shouldNotFillIcon:_.bl}});var B4=function(){var G=_.J.apply(this,arguments)||this;G.disableBackdropFilter=_.v("web_disable_backdrop_filter");return G};
_.u(B4,_.J);_.P=B4.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.P.computeAriaLabel=function(G){return G};
_.P.onPopupOpened=function(){this.items.selected=0;for(var G=_.Q(_.Q1(this.items).children),c=G.next();!c.done;c=G.next())c.value.popupPositionTarget=this.positionTarget;if(G=this.popupTip||void 0)G.setTip(this.source||""),this.source=void 0;this.veData&&(G=_.k0())&&_.Bd(G,[this.veData])};
_.P.onPopupClosed=function(){var G=this.popupTip||void 0;G&&G.clearTip()};
_.P.onIronActivate=function(G){this.shouldPersist(G)||_.ym(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(G=_.k0())&&_.jW(G,this.veData)};
_.P.shouldPersist=function(G){var c,I;if(((c=G.detail)==null?void 0:c.selected)===void 0||(I=this.data)==null||!I.items)return!1;var R,Z;return!((Z=(R=this.data.items[G.detail.selected])==null?void 0:R.toggleMenuServiceItemRenderer)==null||!Z.persistentOnMenuPopup)};
_.P.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(G){return G.menuNavigationItemRenderer?!!G.menuNavigationItemRenderer.icon:G.menuServiceItemRenderer?!!G.menuServiceItemRenderer.icon:G.menuConditionalServiceItemRenderer?!!G.menuConditionalServiceItemRenderer.icon:G.menuConditionalNavigationItemRenderer?!!G.menuConditionalNavigationItemRenderer.icon:G.toggleMenuServiceItemRenderer?!!G.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
B4.prototype.onPopupClosed=B4.prototype.onPopupClosed;B4.prototype.onPopupOpened=B4.prototype.onPopupOpened;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],B4.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],B4.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],B4.prototype,"veData",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.h("design:type",String)],B4.prototype,"ariaLabel",void 0);_.r([_.E({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],B4.prototype,"useIcons",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],B4.prototype,"disableBackdropFilter",void 0);_.r([_.nH("#items"),_.h("design:type",Object)],B4.prototype,"items",void 0);_.r([_.nH("ytd-menu-popup-tip-renderer"),_.h("design:type",Object)],B4.prototype,"popupTip",void 0);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],B4.prototype,"onPopupOpened",null);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],B4.prototype,"onPopupClosed",null);_.r([_.Jc({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],B4);
_.B(B4,"ytd-menu-popup-renderer",function(){if(xug!==void 0)return xug;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return xug=G},{mode:1});var CGr;var HDj=_.W(function(G){G=_.YW(G,{icon:void 0});var c=G.data;G=G.icon;var I=function(){return c().iconBadgeText},R={},Z=_.O3("yt-spec-icon-badge-shape",function(){a:switch(c().iconBadgeType){case "notification":var K="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":K="yt-spec-icon-badge-shape--type-cart";break a;default:K=""}return K},function(){a:switch(c().iconBadgeStyle){case "overlay":var K="yt-spec-icon-badge-shape--style-overlay";
break a;default:K=""}return K},(R["yt-spec-icon-badge-shape--text-size-small"]=function(){var K=I();
return!!((K==null?0:K.length)&&K.length>2)},R));
return _.e("yt-icon-badge-shape",null,_.e(_.l,{cond:G,then:function(K){return _.e("div",{class:Z},_.e("div",{class:"yt-spec-icon-badge-shape__icon"},_.e(_.F6,{icon:K})),_.e(_.l,{cond:I,then:function(m){return _.e("div",{class:"yt-spec-icon-badge-shape__badge"},m)}}))}}))},"yj");
HDj.idomCompat=!0;_.R1(HDj,"yt-icon-badge-shape",{props:{data:_.bl,icon:_.bl}});var r$=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};G.unseenCount=0;G.isOverlay=!1;return G};
_.u(r$,_.J);_.P=r$.prototype;_.P.attached=function(){var G=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(c){G.onServiceWorkerMessage(c)})};
_.P.onDataChanged=function(){this.isAttached&&!this.JSC$20976_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20976_lastData=this.data};
_.P.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.computeIcon=function(){var G,c;return(G=this.data)==null?void 0:(c=G.icon)==null?void 0:c.iconType};
_.P.onServiceWorkerMessage=function(G){G.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.P.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.D(this.data.updateUnseenCountEndpoint,_.KC)&&_.D(this.data.updateUnseenCountEndpoint,_.KC).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.P.handleUpdateNotificationsUnseenCountAction=function(G){var c=this;G=_.D(G,VJg);G!=null&&G.unseenCount&&G.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(G.unseenCount),_.dJ.addLowPriorityJob(function(){c.data.updateUnseenCountEndpoint&&c.ytComponentBehavior.resolveCommand(c.data.updateUnseenCountEndpoint)},G.timeoutMs))};
_.P.onClick=function(){_.Xl(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var G=_.gq(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),c=this.data.menuRequest;G&&G.length===1&&G[0]?_.ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):c&&this.ytComponentBehavior.resolveCommand(c)};
_.P.handleTopbarMenuClosedAction=function(G){G==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.P.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
_.P.sendUnseenCountRequest=function(G){var c=this;_.W_(_.dJ,function(){c.ytComponentBehavior.resolveCommand(G)})};
_.P.updateCountUI=function(G){this.set("unseenCount",G<9?G:"9+")};
_.Nh.Object.defineProperties(r$.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
r$.prototype.handleUpdateNotificationsUnseenCountAction=r$.prototype.handleUpdateNotificationsUnseenCountAction;r$.prototype.onDataChanged=r$.prototype.onDataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],r$.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.zQ),_.h("design:type",Object)],r$.prototype,"ytdOpenPopupBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],r$.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],r$.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],r$.prototype,"unseenCount",void 0);_.r([_.E(),_.h("design:type",Object)],r$.prototype,"isOverlay",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],r$.prototype,"showTooltips",void 0);_.r([_.nH("yt-icon-button"),_.h("design:type",Object)],r$.prototype,"iconButton",void 0);
_.r([_.A("unseenCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],r$.prototype,"showNotificationCount",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],r$.prototype,"onDataChanged",null);_.r([_.qY("yt-update-notifications-unseen-count-action"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],r$.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.r([_.Jc({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],r$);
_.B(r$,"ytd-notification-topbar-button-renderer",function(){if(CGr!==void 0)return CGr;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return CGr=G},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var XjH;var jY=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return G};
_.u(jY,_.J);jY.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}}}}}};
jY.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
jY.prototype.onDarkModeToggled=function(G){this.dark=G};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],jY.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jY.prototype,"data",void 0);_.r([_.E({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],jY.prototype,"dark",void 0);
_.r([_.Jc({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],jY);
_.B(jY,"yt-pdg-buy-flow-header-renderer",function(){if(XjH!==void 0)return XjH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return XjH=G},{mode:1});var ybd;var gTu;var x3=function(){var G=_.J.apply(this,arguments)||this;G.immediateValue=0;G.isDarkTheme=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(x3,_.J);_.P=x3.prototype;_.P.created=function(){_.qe.requestAvailability()};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.dataChanged=function(){var G=_.Q1(this.hostElement).querySelector("#color-slider");G.immediateValue&&this.updateSliderKnobAndGradientStyles(G.immediateValue);this.data.notches[0].knobColorArgb&&_.eD(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.pE(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.H1("HTML_DIR")==="rtl"&&_.Q1(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.P.onSliderImmediateChange=function(){var G=_.Q1(this.hostElement).querySelector("#color-slider");G.dragging&&(G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue)),this.updateSliderAria())};
_.P.onSliderChange=function(){var G=_.Q1(this.hostElement).querySelector("#color-slider");G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue));this.updateSliderAria()};
_.P.updateSliderAria=function(){var G=_.Q1(this.hostElement).querySelector("#color-slider"),c=_.Q1(this.hostElement).querySelector("#color-slider");c=_.HY(this.data.notches[c.immediateValue].tierValue);_.npp()&&_.Xl(this.hostElement,"iron-announce",{text:c});G.setAttribute("aria-valuetext",c)};
_.P.updateSuperThanksSelectedTierEntity=function(G){if(G!==this.immediateValue){var c,I,R=this==null?void 0:(c=this.data)==null?void 0:(I=c.superThanksSelectedTierEntity)==null?void 0:I.key;R&&R.length>0&&this.ytdReduxBehavior.dispatch(_.Le("superThanksSelectedTierEntity",R,{key:R,index:G}))}};
_.P.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.P.updateSliderKnobAndGradientStyles=function(G){this.immediateValue=G;G=this.data.notches[G];if(G==null?0:G.knobColorArgb)var c={"--ytd-pdg-color-slider-knob-color":_.pE(G.knobColorArgb)};(G==null?0:G.linearGradientCssStyle)&&c!==null&&(c=Object.assign({},c,{"--ytd-pdg-color-slider-active-color":G==null?void 0:G.linearGradientCssStyle}));c!==null&&_.eD(this.hostElement,c)};
x3.prototype.onSliderChange=x3.prototype.onSliderChange;x3.prototype.onSliderImmediateChange=x3.prototype.onSliderImmediateChange;x3.prototype.dataChanged=x3.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],x3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],x3.prototype,"immediateValue",void 0);_.r([_.E(),_.h("design:type",Number)],x3.prototype,"maxMarkers",void 0);
_.r([_.E({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ucu}),_.h("design:type",Object)],x3.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],x3.prototype,"isDarkTheme",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],x3.prototype,"ytdReduxBehavior",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x3.prototype,"dataChanged",null);
_.r([_.qY("immediate-value-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x3.prototype,"onSliderImmediateChange",null);_.r([_.qY("change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x3.prototype,"onSliderChange",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],x3);
_.B(x3,"ytd-pdg-color-slider-renderer",function(){if(gTu!==void 0)return gTu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return gTu=G},{mode:1});var Yzg;var GYW;var tl=null;
_.SD({is:"ytd-comment-input",_template:function(){if(GYW!==void 0)return GYW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return GYW=G},
behaviors:[_.KtT.YtHostElementBehavior,_.Ha,_.wm.YtComponentBehavior,_.V5.YtRendererstamperBehavior,_.qai.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 _.bd}},
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",_.lO(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;_.Jk();this.focus()},
detached:function(){document.removeEventListener("tap",_.lO(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(G){G=G.detail;G=G.isCustomEmoji?G.shortcuts[0]:G.emojiId;var c=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(c,G);this.maybeUpdateTextDirection_();_.Xl(this.hostElement,"input")},
getInputRange_:function(){var G=_.lP();if(G){G=G.getBrowserRangeObject();for(var c=G.commonAncestorContainer;c;){if(c===this.getEditableTextArea_())return G;c=c.parentNode}}G=this.getEditableTextArea_();G=_.mZ(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,c,I){(c=this.emojiManager.createDocumentFragment(c,!0,!1,I===void 0?!0:I))&&c.childNodes.length!==0&&(G.collapsed||G.deleteContents(),I=c.lastChild,G.insertNode(c),_.k9e(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var G=_.lP();if(G){var c=G.JSC$11513_getStartNode(),I=G.JSC$11513_getEndNode();if(uIj(c)&&uIj(I)){var R=G.JSC$11513_getStartOffset(),Z;if(_.o3&&c.nodeType===Node.ELEMENT_NODE&&(Z=_.vMA(c)))_.mZ(Z,0).select();else{Z=ci(c)?c:_.H6(c,ci);var K=ci(I)?I:_.H6(I,ci);if(Z||K)if(G.isCollapsed()){if(c.nodeType===Node.TEXT_NODE){G=!0;R===c.length&&(G=!1);if(tl==="end"||tl==="right")G=!1;c=c.parentNode;G=[].concat(_.jn(c.parentNode.childNodes)).indexOf(c)+(G?0:1);_.mZ(c.parentNode,
G).select()}}else Z?Z.previousSibling&&Z.previousSibling.length>0?_.aj(I,G.JSC$11513_getEndOffset(),Z.previousSibling,Z.previousSibling.length-1).select():(c=document.createTextNode("\u200b"),Z.parentNode.insertBefore(c,Z),_.aj(I,G.JSC$11513_getEndOffset(),c,0).select()):K&&(K.nextSibling&&K.nextSibling.length>0?_.aj(c,G.JSC$11513_getStartOffset(),K.nextSibling,1).select():(I=document.createTextNode("\u200b"),K.parentNode.insertBefore(I,K.nextSibling),_.aj(c,G.JSC$11513_getStartOffset(),I,I.length).select()));
tl=null}}else tl=null}else tl=null},
leftKeyPressed_:function(){tl="left"},
rightKeyPressed_:function(){tl="right"},
endKeyPressed_:function(){tl="end"},
maybeDeleteChip_:function(){var G=SFW(!0);if(G){var c=_.lP(),I=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();_.Rj(I,c,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=SFW(!1);if(G){var c=_.lP(),I=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();_.Rj(I,c,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var c=_.lP();if(c.isCollapsed()){var I=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();var R=p7F(I,c,!0);R&&(_.Rj(I,c,R,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var c=_.lP();if(c.isCollapsed()){var I=c.JSC$11513_getStartNode();c=c.JSC$11513_getStartOffset();var R=p7F(I,c,!1);R&&(_.Rj(I,c,R,R.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onContentClick:function(G){G.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(G){G.defaultPrevented||G.currentTarget.tagName==="YTD-COMMENT-INPUT"&&ci(G.target)&&G.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Q1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Q1(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(G,c){G=k77(G,this.emojiManager,c).cloneNode(!0);for(c=G.firstChild;c;)if(c.nodeType!==1)c=c.nextSibling;else switch(c.tagName){case "BR":var I=_.t5();_.L32(I,c);c=I.nextSibling;break;case "DIV":(I=c.lastChild)&&c.nextSibling&&_.H7(_.t5(),I);c.previousSibling&&(c.previousSibling.nodeType===1||c.previousSibling.nodeType===3&&!c.previousSibling.textContent.endsWith("\n"))&&_.Cm(_.t5(),c);I&&I.nodeName==="BR"&&_.ST(I);I=c;c.hasChildNodes()?(c=c.firstChild,
_.Asi(I)):(c=c.nextSibling,_.ST(I));break;default:c=c.nextSibling}return M1r(G)},
setTextAreaValue:function(G){G||(G="");var c=this.getEditableFormattedString_();c.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});c.text=G},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();tl=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.mZ(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.H1("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),c=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",c)}},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var c=this.getInputRange_();c&&(G=this.emojiInput.retrieveTextBeforeRange(c))}this.insertText_(G,!0);this.updateCharCount_();G=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=G.scrollHeight>G.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var G=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:G})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(G){this.isEmojiButtonDisplayed&&(G.preventDefault(),G.stopImmediatePropagation(),G=G.clipboardData.getData("text/plain"),this.insertText_(G,!1,!1),_.Xl(this.hostElement,"input"))},
insertText_:function(G,c,I){c=c===void 0?!1:c;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(c&&this.emojiInput.offsetStartOfRangeBy(R,G.length),this.insertTextWithEmojis_(R,G,I),bmj(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,G),this.updateSuggestionOffset_(R)))}},
getSimpleString:_.HY,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computePlaceholderText_:function(G){return this.getSimpleString(G)},
computeEditableText_:function(G){return this.getSimpleString(G)},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(G,c){G?this.fire("yt-autonav-pause-focus"):c!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var c=this.getEditableTextArea_();[].concat(_.jn(G.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(R){c.appendChild(document.createTextNode(R))})});
G.preventDefault()},
preventDefault_:function(G){G.preventDefault()},
onSuggestionInsert_:function(G){this.insertTextWithEmojis_(G.detail.range,G.detail.text)},
onEmojiSuggestionClick_:function(G){this.emojiInput.insertSuggestion(G.detail)},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.Q1(this.emojiInput).querySelector("#dropdown")){var c=this.getEditableTextArea_().getBoundingClientRect().bottom,I=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(c-I)+5;c=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-c;_.Q1(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.gJ("yt-post"));return this.localStorage}});var hl=function(){var G=_.J.apply(this,arguments)||this;G.currentCommentOptionIndex=0;G.isEmojiPickerDisplayed=!1;G.emojiManager=_.bd;G.isUgcEmpty=!1;G.userGeneratedCommentChangedHandler=function(){_.Xl(G.hostElement,"ytd-pdg-user-generated-comment-changed");G.isEmojiYtdCommentInputEnabled&&(G.isUgcEmpty=!G.ytdCommentInputEl.getTextAreaValue())};
G.pasteHandler=function(c){c.preventDefault();c.stopImmediatePropagation();var I;if(c=(I=c.clipboardData)==null?void 0:I.getData("text/plain"))I=document.getSelection().getRangeAt(0),I.collapsed||I.deleteContents(),c=document.createTextNode(c),I.insertNode(c),I.selectNodeContents(c),I.collapse(!1),c=window.getSelection(),c.removeAllRanges(),c.addRange(I)};
G.onDocumentClick=function(c){if(G.isEmojiPickerDisplayed){var I,R,Z;!(c.target instanceof Node)||(I=c.composedPath())!=null&&I.includes(G.editableTextEl)||(R=c.composedPath())!=null&&R.includes(G.emojiButtonEl)||(Z=c.composedPath())!=null&&Z.includes(G.emojiPickerEl)||(G.isEmojiPickerDisplayed=!1)}};
return G};
_.u(hl,_.J);_.P=hl.prototype;_.P.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.P.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.P.detached=function(){var G;(G=this.contentEl)==null||G.removeEventListener("input",this.userGeneratedCommentChangedHandler);var c;(c=this.contentEl)==null||c.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.P.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.P.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var G;this.contentEl.textContent=this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.P.reloadEmojis=function(){this.emojiPickerEl&&_.D(this.emojiPicker,_.bJB)&&this.emojiPickerEl.updateEmojiCategories()};
_.P.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.eD(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.P.handleBackgroundColorStyling=function(){var G;if((G=this.currentCommentOption)==null?0:G.commentBackgroundColorArgb){var c;_.eD(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.pE((c=this.currentCommentOption)==null?void 0:c.commentBackgroundColorArgb)})}else _.eD(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.P.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var G;(G=this.contentEl)==null||G.focus()}};
_.P.onEditButtonClick=function(G){var c=document.getSelection();c&&this.contentEl&&(G.stopPropagation(),G.preventDefault(),c.selectAllChildren(this.contentEl),c.collapseToEnd())};
_.P.onContentDrop=function(G){var c=this;if(G.dataTransfer){G=_.Q(G.dataTransfer.items);for(var I=G.next();!I.done;I=G.next())I=I.value,I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(R){var Z;(Z=c.contentEl)==null||Z.appendChild(document.createTextNode(R))})}};
_.P.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.P.getUserGeneratedCommentText=function(){var G,c=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(G=this.contentEl)==null?void 0:G.textContent;return c?c.trim():""};
_.P.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.P.onEmojiSelect=function(G){this.ytdCommentInputEl.onEmojiSelect(G)};
_.Nh.Object.defineProperties(hl.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.currentCommentOption)==null||!G.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(_.D((G=this.currentCommentOption)==null?void 0:G.chipRenderer,_.dii)){var c;return _.D((c=this.currentCommentOption)==null?void 0:c.chipRenderer,_.dii)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var G,c;return((G=this.data)==null?0:G.commentOptionRenderers)?_.D((c=this.data)==null?void 0:c.commentOptionRenderers[this.superThanksSelectedTierEntity.index],K2G):void 0}var I,R;return((I=this.data)==null?0:I.commentOptionRenderers)?_.D((R=this.data)==null?void 0:R.commentOptionRenderers[this.currentCommentOptionIndex],K2G):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var G;return this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var G;return this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=_.D((G=this.data)==null?void 0:G.commentDialog,_.BBN))==null?void 0:c.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=_.D((G=this.data)==null?void 0:G.commentDialog,_.BBN))==null?void 0:c.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=_.D((G=this.data)==null?void 0:G.commentDialog,_.BBN))==null?void 0:c.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(c=_.D((G=this.data)==null?void 0:G.commentDialog,_.BBN))==null?void 0:c.emojiPicker;if(!_.D(I,_.bJB)||!_.D(I,_.bJB).categories)return!1;G=function(K){return K.emojiPickerCategoryRenderer?K.emojiPickerCategoryRenderer.emojiIds&&K.emojiPickerCategoryRenderer.emojiIds.length>0:K.emojiPickerUpsellCategoryRenderer?K.emojiPickerUpsellCategoryRenderer.emojis&&K.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var R,Z;return((R=_.D(I,_.bJB))==null?0:(Z=R.categories)==null?0:Z.find(G))?!0:!1}}});
hl.prototype.onEmojiSelect=hl.prototype.onEmojiSelect;hl.prototype.dataChanged=hl.prototype.dataChanged;hl.prototype.currentCommentOptionChanged=hl.prototype.currentCommentOptionChanged;_.r([_.L(_.wQ),_.h("design:type",Object)],hl.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],hl.prototype,"rendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],hl.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.nH("#content-dom-if"),_.h("design:type",_.MY)],hl.prototype,"contentDomIfEl",void 0);_.r([_.nH("#content-no-emojis"),_.h("design:type",HTMLElement)],hl.prototype,"contentEl",void 0);_.r([_.nH("#container"),_.h("design:type",HTMLElement)],hl.prototype,"containerEl",void 0);_.r([_.nH("#comment-chip-container"),_.h("design:type",HTMLElement)],hl.prototype,"paidCommentChipContainerEl",void 0);_.r([_.nH("#text-input"),_.h("design:type",HTMLElement)],hl.prototype,"editableTextEl",void 0);
_.r([_.nH("#emoji-button"),_.h("design:type",HTMLElement)],hl.prototype,"emojiButtonEl",void 0);_.r([_.nH("#emoji-picker > yt-emoji-picker-renderer"),_.h("design:type",Object)],hl.prototype,"emojiPickerEl",void 0);_.r([_.nH("#text-input > ytd-comment-input"),_.h("design:type",Object)],hl.prototype,"ytdCommentInputEl",void 0);_.r([_.E(),_.h("design:type",Object)],hl.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],hl.prototype,"currentCommentOptionIndex",void 0);
_.r([_.E({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ucu}),_.h("design:type",Object)],hl.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.E(),_.h("design:type",Object)],hl.prototype,"isEmojiPickerDisplayed",void 0);_.r([_.E(),_.h("design:type",Object)],hl.prototype,"emojiManager",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],hl.prototype,"isUgcEmpty",void 0);
_.r([_.wD("currentCommentOption"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hl.prototype,"currentCommentOptionChanged",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hl.prototype,"dataChanged",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],hl.prototype,"isEmojiYtdCommentInputEnabled",null);
_.r([_.A("data.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"title",null);_.r([_.A("data.authorText"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"channelName",null);_.r([_.A("data.commentOptionRenderers","currentCommentOption"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],hl.prototype,"shouldShowPaidCommentChipRenderer",null);
_.r([_.A("data.commentOptionRenderers","currentCommentOption"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"paidCommentChipRenderer",null);_.r([_.A("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"currentCommentOption",null);
_.r([_.A("data.defaultCommentText","superThanksSelectedTierEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"commentText",null);_.r([_.A("data.placeholderText"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"placeholderText",null);_.r([_.A("data.commentDialog.commentDialogRenderer.editableText"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"editableText",null);
_.r([_.A("data.commentDialog.commentDialogRenderer.emojiButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"emojiButton",null);_.r([_.A("data.commentDialog.commentDialogRenderer.emojiPicker"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"emojiPicker",null);
_.r([_.A("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],hl.prototype,"isEmojiButtonDisplayed",null);_.r([_.qY("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],hl.prototype,"onEmojiSelect",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],hl);
_.B(hl,"ytd-pdg-comment-preview-renderer",function(){if(Yzg!==void 0)return Yzg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Yzg=G},{mode:2});var cQj;var d$=function(){var G=_.J.apply(this,arguments)||this;G.selected=!1;return G};
_.u(d$,_.J);_.P=d$.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.P.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.P.dataChanged=function(){this.data&&(_.m9(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.eD(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.pE(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.pE(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.P.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.P.onClick=function(){this.logClick()};
_.P.onKeyboardSelect=function(){_.Xl(this.hostElement,"tap");this.onClick()};
_.P.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
d$.prototype.onClick=d$.prototype.onClick;d$.prototype.selectedChanged=d$.prototype.selectedChanged;d$.prototype.dataChanged=d$.prototype.dataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],d$.prototype,"componentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ha),_.h("design:type",Object)],d$.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.L(_.dD),_.h("design:type",Object)],d$.prototype,"ironSelectableBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],d$.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],d$.prototype,"shownThumbnail",void 0);_.r([_.E(),_.h("design:type",Object)],d$.prototype,"basePriceText",void 0);_.r([_.E(),_.h("design:type",Object)],d$.prototype,"purchaseCommand",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],d$.prototype,"selected",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d$.prototype,"dataChanged",null);_.r([_.wD("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d$.prototype,"selectedChanged",null);_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d$.prototype,"onClick",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],d$);
_.B(d$,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(cQj!==void 0)return cQj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return cQj=G},{mode:1});var CB=function(){var G=_.J.apply(this,arguments)||this;G.selectedItemIndex=0;G.buyButtonDisabled=!1;return G};
_.u(CB,_.J);_.P=CB.prototype;
_.P.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.P.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var G;var c=(G=_.D(this.data.colorSlider,Zbj))==null?void 0:G.notches[this.selectedItemIndex].purchaseCommand}else{var I;c=(I=_.D(this.data.selectableItemButtons[this.selectedItemIndex],QUu))==null?void 0:I.purchaseCommand}if(c){G=_.D(c,_.M4A);G.productData||(G.productData={});var R;G.productData={pdgData:{commentMessageText:(R=this.commentPreviewRenderer)==null?void 0:R.getUserGeneratedCommentText()}};
_.Xl(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(c)}}};
_.P.dataChanged=function(){if(this.data){_.bd.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.hNN(_.bd,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.bd.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var G;this.buyButtonDisabled=!((G=_.D(this.data.commentPreview,PE1))==null||!G.placeholderText);this.updatePriceSelectorStatus();var c;if((c=this.data)==null?0:c.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;G=[];this.data.preloadImages&&(G=this.data.preloadImages);
G=G.map(function(I){return _.ZX(I.thumbnails,1920)});
G=_.Q(G);for(c=G.next();!c.done;c=G.next())(c=c.value)&&_.iWg(c).thenCatch(function(){_.Ck(Error("Jl"))})}};
_.P.superThanksSelectedTierEntityChanged=function(){var G;(this==null?void 0:(G=this.superThanksSelectedTierEntity)==null?void 0:G.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.P.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.P.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Q1(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Q1(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Q1(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Q1(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.P.closeBuyFlow=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.P.onUserGeneratedContentChanged=function(){var G;this.buyButtonDisabled=!((G=this.commentPreviewRenderer)==null?0:G.getUserGeneratedCommentText())};
_.P.updateSelectedItemIndexFromBinding=function(G){this.selectedItemIndex=G.detail.value};
_.Nh.Object.defineProperties(CB.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disclaimerText)}}});
CB.prototype.onUserGeneratedContentChanged=CB.prototype.onUserGeneratedContentChanged;CB.prototype.closeBuyFlow=CB.prototype.closeBuyFlow;CB.prototype.selectedItemIndexChanged=CB.prototype.selectedItemIndexChanged;CB.prototype.superThanksSelectedTierEntityChanged=CB.prototype.superThanksSelectedTierEntityChanged;CB.prototype.dataChanged=CB.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],CB.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],CB.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],CB.prototype,"selectedItemIndex",void 0);_.r([_.E(),_.h("design:type",Boolean)],CB.prototype,"isColorSlider",void 0);
_.r([_.E(),_.h("design:type",Object)],CB.prototype,"buyButtonDisabled",void 0);_.r([_.E({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ucu}),_.h("design:type",Object)],CB.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.nH("ytd-pdg-comment-preview-renderer"),_.h("design:type",Object)],CB.prototype,"commentPreviewRenderer",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],CB.prototype,"ytdReduxBehavior",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CB.prototype,"dataChanged",null);_.r([_.wD("superThanksSelectedTierEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CB.prototype,"superThanksSelectedTierEntityChanged",null);_.r([_.wD("selectedItemIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CB.prototype,"selectedItemIndexChanged",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CB.prototype,"closeBuyFlow",null);_.r([_.qY("ytd-pdg-user-generated-comment-changed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CB.prototype,"onUserGeneratedContentChanged",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],CB.prototype,"isDisclaimerTextShown",null);
_.r([_.Jc({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],CB);
_.B(CB,"yt-super-vod-buy-flow-content-renderer",function(){if(ybd!==void 0)return ybd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ybd=G},{mode:1});var INW;var H4=function(){var G=_.J.apply(this,arguments)||this;G.lottieAnimationRef={};return G};
_.u(H4,_.J);_.P=H4.prototype;_.P.created=function(){_.qe.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.lO(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.P.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Xl(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.P.detached=function(){this.autoCloseJobId&&_.dJ.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.lO(this,this.onPopupIronOverlayOpened))};
_.P.dataChanged=function(){var G=this;this.data&&this.data.autoCloseDelay&&(_.ym(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.mq(_.dJ,function(){G.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.eD(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.P.onDOMLoadedLottie=function(){var G=this,c,I,R=Number((c=this.data)==null?void 0:(I=c.autoCloseDelay)==null?void 0:I.seconds)||0;this.fadeOutJobId=_.mq(_.dJ,function(){G.lottiePlayerEl.classList.add("fadeout")},(R-.25)*1E3);
this.autoCloseJobId=_.mq(_.dJ,function(){G.closePopup()},R*1E3)};
_.P.openPopup=function(){this.ironOverlayBehavior.open()};
_.P.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ym(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.cd(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.wH().resolve(_.n4).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.dJ.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.dJ.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.P.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var G,c;(G=this.lottieAnimationRef)==null||(c=G.lottieEl)==null||c.destroy();G=this.data.lottie;var I,R;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:G.url+"_"+Math.random(),path:G.url,autoplay:!0,loop:(R=(I=G.settings)==null?void 0:I.loop)!=null?R:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Nh.Object.defineProperties(H4.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var G,c;return!!((G=this.data)==null?0:(c=G.lottie)==null?0:c.url)}}});
H4.prototype.maybeInitializeLottie=H4.prototype.maybeInitializeLottie;H4.prototype.dataChanged=H4.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],H4.prototype,"rendererBehavior",void 0);_.r([_.L(_.Du),_.h("design:type",Object)],H4.prototype,"ironOverlayBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],H4.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],H4.prototype,"lottiePlayerProps",void 0);
_.r([_.E(),_.h("design:type",Object)],H4.prototype,"lottieAnimationRef",void 0);_.r([_.nH("ytd-lottie-player"),_.h("design:type",HTMLElement)],H4.prototype,"lottiePlayerEl",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H4.prototype,"dataChanged",null);_.r([_.A("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],H4.prototype,"hasLottieAnimation",null);
_.r([_.wD("data.lottie.url"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H4.prototype,"maybeInitializeLottie",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],H4);
_.B(H4,"ytd-desktop-image-overlay-renderer",function(){if(INW!==void 0)return INW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return INW=G},{mode:1});var RoW;var Xo=function(){return _.J.apply(this,arguments)||this};
_.u(Xo,_.J);_.P=Xo.prototype;_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.lO(this,this.closePopup))};
_.P.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.lO(this,this.closePopup))};
_.P.dataChanged=function(){_.gq(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.D(this.data.header,R4g)&&(this.hasBackgroundBanner=!!_.D(this.data.header,R4g).backgroundBanner)};
_.P.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.lO(this,this.closePopup))};
_.P.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Gs(this.hostElement,[this.data.onCloseCommand])};
Xo.prototype.handleBuyflowSelectionSubmitted=Xo.prototype.handleBuyflowSelectionSubmitted;Xo.prototype.dataChanged=Xo.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Xo.prototype,"data",void 0);
_.r([_.E({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],Xo.prototype,"hasBackgroundBanner",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xo.prototype,"dataChanged",null);_.r([_.qY("yt-pdg-buy-flow-selection-submitted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xo.prototype,"handleBuyflowSelectionSubmitted",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Xo);
_.B(Xo,"ytd-pdg-buy-flow-renderer",function(){if(RoW!==void 0)return RoW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return RoW=G},{mode:1});var ZOW;var yr=function(){var G=_.J.apply(this,arguments)||this;G.isOpen=!1;G.isPlaylistCreated=!1;return G};
_.u(yr,_.J);_.P=yr.prototype;_.P.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.P.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Xl(this.hostElement,"yt-refit")};
_.P.onCreateTap=function(){var G=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Gs(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(c,I){if(!_.v("killswitch_ep_in_create_playlist_response")&&(I==null?0:I.actions))for(c=_.Q(I.actions),I=c.next();!I.done;I=c.next())I=I.value,_.D(I,_.iJ)&&G.ytComponentBehavior.resolveCommand(I)}}]),this.isPlaylistCreated=!0)};
_.P.onKeydown=function(G){if(G.keyCode===13)this.onCreateTap()};
_.P.onServiceRequestCompleted=function(G){G.stopPropagation();_.ym(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.P.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
yr.prototype.onServiceRequestCompleted=yr.prototype.onServiceRequestCompleted;yr.prototype.onKeydown=yr.prototype.onKeydown;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],yr.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yr.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],yr.prototype,"isOpen",void 0);
_.r([_.E(),_.h("design:type",Object)],yr.prototype,"isPlaylistCreated",void 0);_.r([_.E({value:{REQUIRED_LABEL:_.mJ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.mJ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.h("design:type",Object)],yr.prototype,"addToStrings",void 0);_.r([_.E({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.h("design:type",Array)],yr.prototype,"privacyBadge",void 0);
_.r([_.nH("#privacy-input"),_.h("design:type",Object)],yr.prototype,"privacyInput",void 0);_.r([_.nH("#name-input"),_.h("design:type",Object)],yr.prototype,"nameInput",void 0);_.r([_.qY("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],yr.prototype,"onKeydown",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],yr.prototype,"onServiceRequestCompleted",null);
_.r([_.Jc({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],yr);
_.B(yr,"ytd-add-to-playlist-create-renderer",function(){if(ZOW!==void 0)return ZOW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return ZOW=G},{mode:1});var KMd;var Pc7;var g$=function(){var G=_.J.apply(this,arguments)||this;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.u(g$,_.J);g$.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
g$.prototype.onCheckboxChange=function(G){var c=this;this.data&&_.tc(this,"yt-playlist-checkbox-changed",function(){var I=_.HH(G).checked?c.data.addToPlaylistServiceEndpoint:c.data.removeFromPlaylistServiceEndpoint;I&&_.wH().resolve(_.n4).resolveCommand(I,{form:{element:c.hostElement}});_.v("dl_playlist_killswitch")||c.transferState!=="TRANSFER_STATE_UNKNOWN"&&c.transferState!=="TRANSFER_STATE_FAILED"&&c.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:c.data.playlistId,action:"ACTION_SYNC"}})},
100)};
g$.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
g$.prototype.dataChanged=g$.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],g$.prototype,"data",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],g$.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],g$.prototype,"ytComponentBehavior",void 0);_.r([_.nH("#checkbox"),_.h("design:type",HTMLInputElement)],g$.prototype,"checkbox",void 0);
_.r([_.E({selector:_.JX,selectorArgs:["data.playlistId"]}),_.h("design:type",String)],g$.prototype,"transferState",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g$.prototype,"dataChanged",null);_.r([_.Jc({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],g$);
_.B(g$,"ytd-playlist-add-to-option-renderer",function(){if(Pc7!==void 0)return Pc7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Pc7=G},{mode:1});var QY0=_.W(function(G){var c=G.data;return _.e("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.e("div",null,_.e(_.ul,{text:function(){return c().title}})),_.e(_.l,{cond:function(){return c().subtitle},
then:function(I){return _.e("div",{class:"ytdMenuTitleRendererSubtitle"},_.e(_.ul,{text:I}))}}))},"zj");
QY0.idomCompat=!0;_.R1(QY0,"ytd-menu-title-renderer",{props:{data:_.bl}});var Y3=function(){var G=_.J.apply(this,arguments)||this;G.addToStrings={ADD_TO_DROPDOWN_LABEL:_.mJ("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};G.closeButtonAriaLabel=_.mJ("SBOX_INAPPROPRIATE_CANCEL");G.dialog=_.v("desktop_add_to_playlist_renderer_dialog_popup");return G};
_.u(Y3,_.J);_.P=Y3.prototype;_.P.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.P.onPopupOpened=function(){_.as(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.P.onPopupClosed=function(){_.as(this.playlists,"scrollable",!1)};
_.P.computeAriaLabel=function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.Q(this.data.actions);for(var c=G.next();!c.done;c=G.next())if(c=c.value,c.menuTitleRenderer)return _.HY(c.menuTitleRenderer.title)}};
_.P.onTapClose=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Nh.Object.defineProperties(Y3.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.Q(this.data.actions);for(var c=G.next();!c.done;c=G.next())if(c=c.value,c.menuTitleRenderer)return c.menuTitleRenderer}return!1}}});
Y3.prototype.onPopupClosed=Y3.prototype.onPopupClosed;Y3.prototype.onPopupOpened=Y3.prototype.onPopupOpened;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],Y3.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Y3.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Y3.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Y3.prototype,"addToStrings",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.h("design:type",String)],Y3.prototype,"ariaLabel",void 0);_.r([_.E(),_.h("design:type",String)],Y3.prototype,"closeButtonAriaLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],Y3.prototype,"dialog",void 0);
_.r([_.nH("#playlists"),_.h("design:type",HTMLElement)],Y3.prototype,"playlists",void 0);_.r([_.nH("ytd-add-to-playlist-create-renderer"),_.h("design:type",Object)],Y3.prototype,"createRenderer",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Y3.prototype,"menuTitleRenderer",null);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y3.prototype,"onPopupOpened",null);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y3.prototype,"onPopupClosed",null);_.r([_.Jc({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Y3);
_.B(Y3,"ytd-add-to-playlist-renderer",function(){if(KMd!==void 0)return KMd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return KMd=G},{mode:1});var mVW;var G_=function(){var G=_.J.apply(this,arguments)||this;G.isPlaylistEditComplete=!1;G.isCollabEngagementDisabled=!1;G.closeButtonAriaLabel=_.mJ("SBOX_INAPPROPRIATE_CANCEL");G.saveButton={title:_.mJ("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};G.onValueChanged=function(){G.updateSaveButtonState();G.computeCollabEngagementDisabled()};
return G};
_.u(G_,_.J);_.P=G_.prototype;_.P.attached=function(){this.JSC$21030_scroller&&(this.JSC$21030_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21030_scroller.attached&&typeof this.JSC$21030_scroller.attached==="function"&&this.JSC$21030_scroller.attached())};
_.P.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.P.onPopupClosed=function(){this.reset()};
_.P.close=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.P.onClickSave=function(){var G=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var c=[];this.nameInput.value!==null&&c.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&c.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var I=Number(this.privacyInput.value);isNaN(I)||c.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:I})}this.votingInput.value!==null&&(I=this.votingInput.value)&&c.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:I});if(c.length>0){var R;_.D((R=this.data)==null?void 0:R.updateSettingsEndpoint,_.ql).actions=c;var Z;if((Z=this.data)==null?0:Z.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){G.close()}}}),this.isPlaylistEditComplete=!0}}};
_.P.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
_.P.computeEditorData=function(G){var c,I;return G==null?void 0:(c=G.sections)==null?void 0:(I=c[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer};
_.P.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.P.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.P.computeAriaLabel=function(){var G,c,I,R=(G=this.data)==null?void 0:(c=G.sections)==null?void 0:(I=c[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer;return _.HY(R==null?void 0:R.title)};
_.P.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.P.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.P.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.P.isNameChanged=function(){var G,c,I;return(((G=this.editorData)==null?void 0:(c=G.name)==null?void 0:(I=c.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.nameInput.value||"")};
_.P.isDescriptionChanged=function(){var G,c,I;return(((G=this.editorData)==null?void 0:(c=G.description)==null?void 0:(I=c.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.descriptionInput.value||"")};
_.P.isPrivacyChanged=function(){var G,c,I,R,Z,K,m,a;return((m=(G=this.editorData)==null?void 0:(c=G.privacy)==null?void 0:(I=c.dropdownFormFieldRenderer)==null?void 0:(R=I.dropdown)==null?void 0:(Z=R.dropdownRenderer)==null?void 0:(K=Z.entries)==null?void 0:K.find(function(O){var N;return O==null?void 0:(N=O.privacyDropdownItemRenderer)==null?void 0:N.isSelected}))==null?void 0:(a=m.privacyDropdownItemRenderer)==null?void 0:a.int32Value)!==this.privacyInput.value};
_.P.isVotingChanged=function(){var G,c,I,R,Z,K,m,a;return((m=(G=this.editorData)==null?void 0:(c=G.voting)==null?void 0:(I=c.dropdownFormFieldRenderer)==null?void 0:(R=I.dropdown)==null?void 0:(Z=R.dropdownRenderer)==null?void 0:(K=Z.entries)==null?void 0:K.find(function(O){var N;return O==null?void 0:(N=O.privacyDropdownItemRenderer)==null?void 0:N.isSelected}))==null?void 0:(a=m.privacyDropdownItemRenderer)==null?void 0:a.int32Value)!==this.votingInput.value};
G_.prototype.onPopupClosed=G_.prototype.onPopupClosed;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],G_.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],G_.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],G_.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],G_.prototype,"data",void 0);_.r([_.E({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.h("design:type",Array)],G_.prototype,"privacyBadge",void 0);_.r([_.E({computed:"computeEditorData(data)"}),_.h("design:type",Object)],G_.prototype,"editorData",void 0);_.r([_.E(),_.h("design:type",Object)],G_.prototype,"isPlaylistEditComplete",void 0);_.r([_.E(),_.h("design:type",Object)],G_.prototype,"isCollabEngagementDisabled",void 0);
_.r([_.E({value:{REQUIRED_LABEL:_.mJ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.mJ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.h("design:type",Object)],G_.prototype,"addToStrings",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.h("design:type",String)],G_.prototype,"ariaLabel",void 0);_.r([_.E(),_.h("design:type",String)],G_.prototype,"closeButtonAriaLabel",void 0);
_.r([_.E(),_.h("design:type",Object)],G_.prototype,"saveButton",void 0);_.r([_.nH("#name-input"),_.h("design:type",Object)],G_.prototype,"nameInput",void 0);_.r([_.nH("#description-input"),_.h("design:type",Object)],G_.prototype,"descriptionInput",void 0);_.r([_.nH("#privacy-input"),_.h("design:type",Object)],G_.prototype,"privacyInput",void 0);_.r([_.nH("#voting-input"),_.h("design:type",Object)],G_.prototype,"votingInput",void 0);
_.r([_.nH("#scroller"),_.h("design:type",Object)],G_.prototype,"JSC$21030_scroller",void 0);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G_.prototype,"onPopupClosed",null);_.r([_.E(),_.h("design:type",Object)],G_.prototype,"onValueChanged",void 0);_.r([_.Jc({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],G_);
_.B(G_,"ytd-playlist-settings-editor-renderer",function(){if(mVW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);mVW=G}G=mVW;return G},{mode:1});var aNu;_.Su("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var c9=function(){return _.J.apply(this,arguments)||this};
_.u(c9,_.J);_.P=c9.prototype;_.P.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var G=this.get("data.nextButton.buttonRenderer.navigationEndpoint");G&&(this.nextNavigationEndpoint=G,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.P.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var G={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",G)}}};
_.P.onPopupOpened=function(G){G.detail!==this&&G.detail!==this.hostElement||!_.v("enable_premium_voluntary_pause")||_.ym(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.P.onNextButtonTap=function(){var G=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);G&&this.ytdOpenPopupBehavior.openPopup(G)};
_.P.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
c9.prototype.onPopupOpened=c9.prototype.onPopupOpened;c9.prototype.onSelectedResponseIndexChange=c9.prototype.onSelectedResponseIndexChange;c9.prototype.dataChanged=c9.prototype.dataChanged;_.r([_.L(_.zQ),_.h("design:type",Object)],c9.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],c9.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],c9.prototype,"selectedResponseIndex",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c9.prototype,"dataChanged",null);_.r([_.wD("selectedResponseIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c9.prototype,"onSelectedResponseIndexChange",null);
_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],c9.prototype,"onPopupOpened",null);_.r([_.Jc({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],c9);
_.B(c9,"ytd-red-cancel-survey-renderer",function(){if(aNu!==void 0)return aNu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return aNu=G},{mode:1});var Tld;var I_=function(){var G=_.J.apply(this,arguments)||this;G.closeButtonAriaLabel=_.mJ("SBOX_INAPPROPRIATE_CANCEL");return G};
_.u(I_,_.J);I_.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
I_.prototype.onClickClose=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],I_.prototype,"rendererStamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],I_.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],I_.prototype,"closeButtonAriaLabel",void 0);_.r([_.Jc({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],I_);
_.B(I_,"ytd-search-filter-options-dialog-renderer",function(){if(Tld!==void 0)return Tld;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Tld=G},{mode:1});var OO1;var Eqj=function(){return function(G){G=G.availabilityType;return G===void 0||G==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||G==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var R_=function(){var G=_.J.apply(this,arguments)||this;G.qualityOptions=[];G.upsellOptions=[];G.showUpsellSection=!1;G.rememberSettingsChecked=!1;return G};
_.u(R_,_.J);_.P=R_.prototype;_.P.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.P.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.P.updateQualityOptions=function(){if(this.formats===void 0)_.ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var G=[],c=[];this.showUpsellSection=!1;for(var I=_.Q(this.formats),R=I.next();!R.done;R=I.next())(R=R.value)&&(R.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?c.push(R):G.push(R));G.length&&(this.qualityOptions=zdG(G));c.length&&(this.showUpsellSection=!0,this.upsellOptions=zdG(c))}};
_.P.updateRememberString=function(){if(this.downloadQualityPickerEntity)var G=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var c;G=(c=this.data)==null?void 0:c.premiumRememberSettingString}else{var I;G=(I=this.data)==null?void 0:I.rememberSettingString}G=G===void 0?_.mJ("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):G;this.rememberSettingsCheckboxRenderer={title:_.Gv(G),disabled:!1}};
_.P.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Nh.Object.defineProperties(R_.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
R_.prototype.updateRememberString=R_.prototype.updateRememberString;R_.prototype.updateQualityOptions=R_.prototype.updateQualityOptions;R_.prototype.dataChanged=R_.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],R_.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],R_.prototype,"data",void 0);
_.r([_.L(_.wQ),_.h("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Boolean)],R_.prototype,"selectedUpsellQuality",void 0);_.r([_.E({computed:"computeIcon_(data.premiumIcon)",value:""}),_.h("design:type",String)],R_.prototype,"premiumIcon",void 0);_.r([_.E({selector:wU0,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.h("design:type",Object)],R_.prototype,"downloadQualityPickerEntity",void 0);
_.r([_.E(),_.h("design:type",Array)],R_.prototype,"qualityOptions",void 0);_.r([_.E(),_.h("design:type",Array)],R_.prototype,"upsellOptions",void 0);_.r([_.E(),_.h("design:type",Object)],R_.prototype,"showUpsellSection",void 0);_.r([_.E(),_.h("design:type",Object)],R_.prototype,"rememberSettingsCheckboxRenderer",void 0);_.r([_.nH("#remember-settings"),_.h("design:type",HTMLInputElement)],R_.prototype,"rememberSettingsCheckbox",void 0);
_.r([_.E(),_.h("design:type",Object)],R_.prototype,"rememberSettingsChecked",void 0);_.r([_.E(),_.h("design:type",Function)],R_.prototype,"onRememberSettingsCheckedChanged",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],R_.prototype,"dataChanged",null);_.r([_.wD("downloadQualityPickerEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],R_.prototype,"updateQualityOptions",null);
_.r([_.wD("selectedUpsellQuality"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],R_.prototype,"updateRememberString",null);_.r([_.Jc({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],R_);
_.B(R_,"ytd-download-quality-selector-content",function(){if(OO1!==void 0)return OO1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return OO1=G},{mode:1});var eoW;var ZV=function(){var G=_.J.apply(this,arguments)||this;G.selectedUpsellQuality=!1;G.qualityOptions=[];G.useUpsellDismissAlternate=_.v("use_not_now_dl_upsell_dismiss_cta");G.shouldShowAlternateUpsellDimiss=!1;G.rememberSettings=!1;G.rememberSettingsChecked=!1;G.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};G.rememberSettingsCheckedChanged=function(c){G.rememberSettingsChecked=c};
return G};
_.u(ZV,_.J);_.P=ZV.prototype;
_.P.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Gv(_.mJ("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Gv(_.mJ("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Gv(_.mJ("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Gv(_.mJ("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.P.updateQualityOptions=function(){this.formats===void 0?_.ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=zdG(this.formats)};
_.P.onQualityOptionsSelect=function(G){if(this.qualityOptions&&G){G!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var c=_.Q(this.qualityOptions.entries()),I=c.next();!I.done;I=
c.next()){I=_.Q(I.value);var R=I.next().value;I=I.next().value;var Z=void 0,K=void 0;if(((Z=I)==null?void 0:(K=Z.settingsRadioOptionRenderer)==null?void 0:K.id)===G){this.selectedQualityIndex=R;G=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((G=this.formats[R])==null?void 0:G.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.P.onClickSubmit=function(){var G;if((G=this.downloadButtonRenderer)==null||!G.isDisabled){var c,I;G=(I=(c=this.data)==null?void 0:c.onSubmitEndpoint)!=null?I:{};var R,Z;if(this.formats&&(((R=_.D(G,_.o9))==null?0:R.videoId)||((Z=_.D(G,_.UN))==null?0:Z.playlistId))){var K,m,a,O,N,q;c={formatType:(O=(K=this.formats)==null?void 0:(m=K[(a=this.selectedQualityIndex)!=null?a:0])==null?void 0:m.format)!=null?O:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(N=this.getOfflineEndpoint(G))==null?void 0:(q=N.actionParams)==null?void 0:q.settingsAction)};this.getOfflineEndpoint(G).actionParams=c;this.ytComponentBehavior.resolveCommand(G)}_.ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.P.onClickUpsell=function(){var G;if((G=this.upsellButtonRenderer)==null||!G.isDisabled){var c,I;G=(I=(c=this.data)==null?void 0:c.upsellEndpoint)!=null?I:{};this.ytComponentBehavior.resolveCommand(G);_.ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);c="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var R,Z,K,m;c=(m=(R=this.formats)==null?void 0:(Z=R[(K=this.selectedQualityIndex)!=null?K:0])==null?void 0:Z.format)!=null?m:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:c}})}};
_.P.onClickClose=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.P.getOfflineSettingsAction=function(G,c){return G?c===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":c:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.P.getOfflineEndpoint=function(G){return _.D(G,_.o9)?_.D(G,_.o9):_.D(G,_.UN)};
_.Nh.Object.defineProperties(ZV.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Gv(_.mJ("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
ZV.prototype.updateQualityOptions=ZV.prototype.updateQualityOptions;ZV.prototype.dataChanged=ZV.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ZV.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],ZV.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Number)],ZV.prototype,"selectedQualityIndex",void 0);_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"selectedUpsellQuality",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],ZV.prototype,"ytdReduxBehavior",void 0);
_.r([_.E({selector:wU0,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.h("design:type",Object)],ZV.prototype,"downloadQualityPickerEntity",void 0);_.r([_.E(),_.h("design:type",Array)],ZV.prototype,"qualityOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],ZV.prototype,"useUpsellDismissAlternate",void 0);_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"downloadButtonRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"upsellButtonRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"cancelButtonRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"upsellCancelButtonRenderer",void 0);_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"rememberSettings",void 0);_.r([_.E(),_.h("design:type",Object)],ZV.prototype,"rememberSettingsChecked",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZV.prototype,"dataChanged",null);_.r([_.wD("downloadQualityPickerEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZV.prototype,"updateQualityOptions",null);_.r([_.Jc({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],ZV);
_.B(ZV,"ytd-download-quality-selector-renderer",function(){if(eoW!==void 0)return eoW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return eoW=G},{mode:1});var Nlj;var KK=function(){return _.J.apply(this,arguments)||this};
_.u(KK,_.J);KK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
KK.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"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],KK.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.infoIcon)"}),_.h("design:type",Object)],KK.prototype,"infoIcon",void 0);
_.r([_.E({computed:"computeIcon_(data.warningIcon)"}),_.h("design:type",Object)],KK.prototype,"warningIcon",void 0);_.r([_.Jc({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],KK);
_.B(KK,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Nlj!==void 0)return Nlj;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Nlj=G},{mode:1});var lNH;var P9=function(){return _.J.apply(this,arguments)||this};
_.u(P9,_.J);P9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
P9.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"}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],P9.prototype,"data",void 0);_.r([_.Jc({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],P9);
_.B(P9,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(lNH!==void 0)return lNH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return lNH=G},{mode:1});var qk7;var Qj=function(){return _.J.apply(this,arguments)||this};
_.u(Qj,_.J);Qj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Qj.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"}}}}};
Qj.prototype.onServiceRequestSentOrCompleted=function(G,c){c&&c.actions&&c.actions.length>0&&_.ym(this.hostElement,"yt-close-popup-action",[this.is])};
Qj.prototype.onServiceRequestSentOrCompleted=Qj.prototype.onServiceRequestSentOrCompleted;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Qj.prototype,"data",void 0);
_.r([_.qY("yt-service-request-completed"),_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],Qj.prototype,"onServiceRequestSentOrCompleted",null);_.r([_.Jc({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Qj);
_.B(Qj,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(qk7!==void 0)return qk7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return qk7=G},{mode:1});var wfF;var mN=function(){var G=_.J.apply(this,arguments)||this;G.submitButtonDisabled=!0;return G};
_.u(mN,_.J);_.P=mN.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.P.onDataChanged=function(){var G,c,I;if(((G=this.data)==null?void 0:(c=G.confirmButton)==null?void 0:(I=c.buttonRenderer)==null?void 0:I.isDisabled)!==void 0){var R,Z,K;this.submitButtonDisabled=(R=this.data)==null?void 0:(Z=R.confirmButton)==null?void 0:(K=Z.buttonRenderer)==null?void 0:K.isDisabled}};
_.P.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.P.updateSubmitButtonDisabledFromBinding=function(G){this.submitButtonDisabled=G.detail.value};
_.P.updateSubmitButtonDisabledFromConfirmCheckbox=function(G){this.submitButtonDisabled=!G.detail.value};
mN.prototype.onDataChanged=mN.prototype.onDataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mN.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],mN.prototype,"submitButtonDisabled",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mN.prototype,"onDataChanged",null);_.r([_.Jc({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],mN);
_.B(mN,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(wfF!==void 0)return wfF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return wfF=G},{mode:1});var FMd;var a_=function(){return _.J.apply(this,arguments)||this};
_.u(a_,_.J);_.Nh.Object.defineProperties(a_.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G,c,I;return((G=this.data)==null?void 0:G.title)+" "+((c=this.data)==null?void 0:c.metadataPrimary)+" "+((I=this.data)==null?void 0:I.metadataSecondary)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],a_.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],a_.prototype,"data",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],a_.prototype,"ariaLabel",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],a_);
_.B(a_,"ytd-compact-product-list-item-renderer",function(){if(FMd!==void 0)return FMd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return FMd=G},{mode:1});var nYu;var T_=function(){return _.J.apply(this,arguments)||this};
_.u(T_,_.J);T_.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]]"}}}}}};
_.Nh.Object.defineProperties(T_.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],T_.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],T_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],T_.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],T_);
_.B(T_,"ytd-compact-product-list-renderer",function(){if(nYu!==void 0)return nYu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return nYu=G},{mode:1});var vY$;var OV=function(){return _.J.apply(this,arguments)||this};
_.u(OV,_.J);_.P=OV.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.getBackgroundUrl=function(){var G=this.get("data.headerImage.thumbnails");return G?"url("+_.ZX(G,this.hostElement.clientWidth)+")":""};
_.P.onDataChanged=function(){var G=this.getBackgroundUrl();G&&(this.header.style.backgroundImage=G);G=_.k0();var c=_.u6(),I=this.get("data.trackingParams");I&&c&&G&&_.Wd(G,c,_.kC(I));G=_.Q(this.hostElement.querySelectorAll("yt-img-shadow"));for(c=G.next();!c.done;c=G.next())c.value.onShow()};
_.P.onPopupClosed=function(G){_.HH(G).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;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],OV.prototype,"data",void 0);_.r([_.nH("#header"),_.h("design:type",HTMLDivElement)],OV.prototype,"header",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OV.prototype,"onDataChanged",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],OV.prototype,"onPopupClosed",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],OV);
_.B(OV,"ytd-membership-post-cancel-renderer",function(){if(vY$!==void 0)return vY$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return vY$=G},{mode:1});var DVg;var eq=function(){return _.J.apply(this,arguments)||this};
_.u(eq,_.J);eq.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
eq.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],eq.prototype,"data",void 0);_.r([_.nH("ytd-feedback-survey-renderer"),_.h("design:type",Object)],eq.prototype,"feedbackSurveyRenderer",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],eq);
_.B(eq,"ytd-sponsorship-confirm-cancel-content",function(){if(DVg!==void 0)return DVg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return DVg=G},{mode:1});var oY0;var Nm=function(){var G=_.J.apply(this,arguments)||this;G.maybeSubmitFeedback=function(){G.content&&G.content.maybeSubmitFeedback()};
return G};
_.u(Nm,_.J);_.P=Nm.prototype;_.P.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.P.onYtPopupOpened=function(G,c){c===this&&this.data&&this.data.onOpenCommands&&_.cd(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ym(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.P.onYtPopupClosed=function(G,c){(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.cd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.P.onYtServiceRequestError=function(G){_.Xc(this.hostElement,G.detail.error.message)};
_.P.onDataChanged=function(){if(this.isAttached){var G=this.backgroundUrl;G&&(_.Q1(this.hostElement).querySelector("#header").style.backgroundImage=G)}};
_.Nh.Object.defineProperties(Nm.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return G?"url("+_.ZX(G,this.hostElement.clientWidth)+")":""}}});
Nm.prototype.onDataChanged=Nm.prototype.onDataChanged;Nm.prototype.onYtServiceRequestError=Nm.prototype.onYtServiceRequestError;Nm.prototype.onYtServiceRequestCompleted=Nm.prototype.onYtServiceRequestCompleted;Nm.prototype.onYtPopupClosed=Nm.prototype.onYtPopupClosed;Nm.prototype.onYtPopupOpened=Nm.prototype.onYtPopupOpened;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Nm.prototype,"data",void 0);_.r([_.E({value:function(){return _.mJ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],Nm.prototype,"closeButtonAriaLabel",void 0);_.r([_.nH("#scrollable"),_.h("design:type",Object)],Nm.prototype,"scrollable",void 0);_.r([_.nH("ytd-sponsorship-confirm-cancel-content"),_.h("design:type",Object)],Nm.prototype,"content",void 0);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Nm.prototype,"onYtPopupOpened",null);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Nm.prototype,"onYtPopupClosed",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Nm.prototype,"onYtServiceRequestCompleted",null);
_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Nm.prototype,"onYtServiceRequestError",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Nm.prototype,"onDataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Nm);
_.B(Nm,"ytd-sponsorship-confirm-cancel-renderer",function(){if(oY0!==void 0)return oY0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return oY0=G},{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var UVu;var lM=function(){return _.J.apply(this,arguments)||this};
_.u(lM,_.J);lM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lM.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],lM);
_.B(lM,"ytd-sponsorships-celebration-content",function(){if(UVu!==void 0)return UVu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return UVu=
G},{mode:1});var uJ7;var bOu=_.I3(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),qm=function(){var G=_.J.apply(this,arguments)||this;G.scriptsAppended=!1;G.useFullWidthPrimaryButton=!1;G.buttonOverrides={type:"tonal",style:"overlay-dark"};return G};
_.u(qm,_.J);_.P=qm.prototype;_.P.dataChanged=function(){var G;this.useFullWidthPrimaryButton=!((G=this.data)==null||!G.useFullWidthPrimaryButton)};
_.P.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.v("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var G;(G=this.header)==null||G.style.setProperty("background-color",this.backgroundColor);if(G=this.headerImageUrl){var c;(c=this.header)==null||c.style.setProperty("background-image",G)}c=_.k0(4);G=_.u6(4);var I=this.get("data.trackingParams");if(I&&G&&c){var R=_.kC(I);_.Wd(c,G,R);_.v("combine_ve_grafts")?_.DP().graftServerVe(I,G,4):_.Wd(c,G,R)}c=_.Q(this.hostElement.querySelectorAll("yt-img-shadow"));for(G=c.next();!G.done;G=c.next())G.value.onShow();if(c=this.get("data.gtmId"))_.Zs(c,
_.H1("GL","")),this.setupConversionTracking()};
_.P.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("script");_.aE(G,_.Qp(bOu.join("")));document.head.appendChild(G);G=document.createElement("noscript");G.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(G);this.scriptsAppended=!0}};
_.P.onPopupClosed=function(G){if(_.HH(G).localName==="ytd-sponsorships-celebration-renderer"){_.ym(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var c;this.data&&((c=this.data)==null?0:c.dismissCommand)&&_.NC.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Nh.Object.defineProperties(qm.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.pE(G)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return G?"url("+_.ZX(G,this.hostElement.getBoundingClientRect().width)+")":""}}});
qm.prototype.onPopupClosed=qm.prototype.onPopupClosed;qm.prototype.onDataChanged=qm.prototype.onDataChanged;qm.prototype.dataChanged=qm.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qm.prototype,"data",void 0);
_.r([_.nH("#header"),_.h("design:type",HTMLElement)],qm.prototype,"header",void 0);_.r([_.E(),_.h("design:type",Object)],qm.prototype,"scriptsAppended",void 0);_.r([_.E({type:Boolean,reflectToAttribute:!0}),_.h("design:type",Object)],qm.prototype,"useFullWidthPrimaryButton",void 0);_.r([_.E(),_.h("design:type",Object)],qm.prototype,"buttonOverrides",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qm.prototype,"dataChanged",null);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qm.prototype,"onDataChanged",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qm.prototype,"onPopupClosed",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],qm);
_.B(qm,"ytd-sponsorships-celebration-renderer",function(){if(uJ7!==void 0)return uJ7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return uJ7=G},{mode:1});var kY$;var wu=function(){var G=_.J.apply(this,arguments)||this;G.isToggleChecked=!1;return G};
_.u(wu,_.J);wu.prototype.onDataChanged=function(){var G;this.isToggleChecked=((G=this.data)==null?void 0:G.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
wu.prototype.close=function(){var G;((G=this.data)==null?0:G.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
wu.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var G,c=_.D((G=this.data)==null?void 0:G.switchButton,mF7);c&&(this.isToggleChecked&&c.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(c.switchOnInnertubeCommand),!this.isToggleChecked&&c.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(c.switchOffInnertubeCommand))};
wu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wu.prototype.onDataChanged=wu.prototype.onDataChanged;_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],wu.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wu.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],wu.prototype,"isToggleChecked",void 0);_.r([_.E({value:_.mJ("CLOSE")}),_.h("design:type",String)],wu.prototype,"closeButtonAriaLabel",void 0);
_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wu.prototype,"onDataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],wu);
_.B(wu,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(kY$!==void 0)return kY$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return kY$=G},{mode:1});var sYG;var F1=function(){return _.J.apply(this,arguments)||this};
_.u(F1,_.J);_.P=F1.prototype;_.P.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.playerElement.stop()};
_.P.onYtServiceRequestCompleted=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.P.onYtServiceRequestError=function(G){_.Xc(this.hostElement,G.detail.error.message)};
_.P.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.P.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.P.getTier=function(G,c){return!G||!G.tiers||c<0?null:_.D(G.tiers[c],YSr)};
_.P.moreThanOne=function(G){return!!(G&&G.length>1)};
_.P.tierOverviewTap=function(G){var c=this;this.selectedTier=G.model.index;_.O$(this,function(){_.Xl(c.hostElement,"yt-refit")})};
_.P.computeSelectedClass=function(G,c){return this.isSelected(G,c)?"selected":""};
_.P.computeButtonAriaPressed=function(G,c){return this.isSelected(G,c)?"true":"false"};
_.P.isSelected=function(G,c){return G===c};
_.P.onDataChanged=function(){_.Q1(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Q1(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var G=_.Q(this.hostElement.querySelectorAll("yt-img-shadow")),
c=G.next();!c.done;c=G.next())c.value.onShow();var I;this.set("selectedTier",(I=this.get("data.targetTierIndex"))!=null?I:0);var R;(G=(R=this.data)==null?void 0:R.onVisible)&&this.ytComponentBehavior.resolveCommand(G)};
_.P.initializeVe=function(G){var c=_.k0(),I=_.u6(),R=this.get("data.trackingParams");I&&c&&(this.screenLayer=4,c=_.gK(_.OJp)(void 0,69877,{clientScreenNonce:c,visualElement:I},void 0,void 0,void 0),_.LR(c,69877,4),I=_.u6(4),R&&I&&(R=_.kC(R),_.Wd(c,I,R),G&&(this.offerVideoVe=_.qj(74659),_.Wd(c,R,this.offerVideoVe))))};
_.P.setHeaderBackground=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Q1(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.pE(G);if(G=this.getHeaderImage())G=_.ZX(G,screen.width),_.Q1(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+G+")"};
_.P.getHeaderImage=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&G?G:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setupVideoPlayer=function(G){var c=this,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1)return I=c.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),R=c.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.v("kevlar_player_update_killswitch")?c.playerElement.update({args:{autoplay:I,video_id:G,player_params:R}}):c.playerElement.loadVideoWithPlayerVars({autoplay:I,video_id:G,player_params:R}),
m.yield(c.playerElement.getPlayerPromise(),2);Z=m.yieldResult;Z.addEventListener("onStateChange",function(a){c.onPlayerStateChange(a)});
Z.setScreenLayer(c.screenLayer);(K=_.k0(4))&&c.offerVideoVe&&_.fC(K,c.offerVideoVe);I&&(c.pauseOtherPlayers(),c.playerElement.focusOnPlayer(),c.playerElement.getPlayer().hideControls(),_.W_(_.dJ,function(){c.fadeOutHeaderOverlay()},4E3));
_.Vp(m)})};
_.P.onPlayerStateChange=function(G){G===1?this.backgroundPlayerElement&&(G=this.backgroundPlayerElement.player_.getPlayerState(),G!==1&&G!==3||this.backgroundPlayerElement.pause()):G===0&&(_.Q1(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Q1(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.P.fadeOutHeaderOverlay=function(){_.Q1(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.P.onHeaderTap=function(){if(this.offerVideo){_.Q1(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var G;((G=this.playerElement.player_)==null?void 0:G.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(G=_.k0(4))&&this.offerVideoVe&&_.jW(G,this.offerVideoVe)}};
_.P.getBackgroundImageLayerClass=function(G){return G?"background-image-layer-with-video":""};
_.P.getHeaderClass=function(G){return G?"header-with-video":""};
_.P.getHeaderOverlayClass=function(G){return G?"header-overlay-with-video":""};
_.P.getTitleContainerClass=function(G,c){return G?"title-container-with-video":c?"title-container-without-video-flexible":"title-container-without-video"};
_.P.tierTitleDisplayStatus=function(G){return this.moreThanOne(G)?"hide":"show"};
_.P.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.wH().resolve(_.tA).getPlayerElement():this.backgroundPlayerElement=_.ZA();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var G=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=G===1||G===3;this.backgroundPlayerElement.pause()}};
_.P.isMiniplayerActive=function(){return _.wH().resolve(_.tA).isMiniplayerActive()};
_.P.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("selected-tier-changed",this.selectedTier))};
F1.prototype.selectedTierChangedForBinding=F1.prototype.selectedTierChangedForBinding;F1.prototype.onDataChanged=F1.prototype.onDataChanged;F1.prototype.onYtPopupClosed=F1.prototype.onYtPopupClosed;F1.prototype.onYtPopupOpened=F1.prototype.onYtPopupOpened;F1.prototype.onYtServiceRequestError=F1.prototype.onYtServiceRequestError;F1.prototype.onYtServiceRequestCompleted=F1.prototype.onYtServiceRequestCompleted;
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],F1.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],F1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],F1.prototype,"data",void 0);_.r([_.E({value:0}),_.h("design:type",Number)],F1.prototype,"selectedTier",void 0);
_.r([_.E({value:""}),_.h("design:type",String)],F1.prototype,"offerVideo",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],F1.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.r([_.E({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.XB(this)}}),
_.h("design:type",String)],F1.prototype,"playerId",void 0);_.r([_.nH("tp-yt-paper-dialog-scrollable"),_.h("design:type",Object)],F1.prototype,"scrollable",void 0);_.r([_.nH("ytd-sponsorships-tier-renderer"),_.h("design:type",Object)],F1.prototype,"tierRenderer",void 0);_.r([_.nH("#player"),_.h("design:type",Object)],F1.prototype,"playerElement",void 0);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],F1.prototype,"onYtServiceRequestCompleted",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],F1.prototype,"onYtServiceRequestError",null);
_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F1.prototype,"onYtPopupOpened",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F1.prototype,"onYtPopupClosed",null);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F1.prototype,"onDataChanged",null);
_.r([_.wD("selectedTier"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F1.prototype,"selectedTierChangedForBinding",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],F1);
_.B(F1,"ytd-sponsorships-offer-renderer",function(){if(sYG!==void 0)return sYG;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return sYG=G},{mode:_.Qc("kevlar_poly_si_batch_j077")?1:2});var LMd;var nK=function(){var G=_.J.apply(this,arguments)||this;G.buttonOverrides={type:"filled",style:"mono"};return G};
_.u(nK,_.J);nK.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}}}}}};
nK.prototype.backgroundColorChanged=function(){var G,c,I,R=(c=_.D((G=this.data)==null?void 0:G.content,Gx1))==null?void 0:(I=c.backgroundColor)==null?void 0:I.backgroundColor;R&&(G=_.Sx(R),_.Q1(this.hostElement).querySelector("#banner").style.backgroundColor=G,_.Q1(this.hostElement).querySelector("#abstract-art").style.backgroundColor=G)};
nK.prototype.attached=function(){this.JSC$21115_scroller&&(this.JSC$21115_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21115_scroller.attached&&typeof this.JSC$21115_scroller.attached==="function"&&this.JSC$21115_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nK.prototype.backgroundColorChanged=nK.prototype.backgroundColorChanged;_.r([_.E(),_.h("design:type",Object)],nK.prototype,"data",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("#scroller"),_.h("design:type",Object)],nK.prototype,"JSC$21115_scroller",void 0);_.r([_.E(),_.h("design:type",Object)],nK.prototype,"buttonOverrides",void 0);
_.r([_.wD("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nK.prototype,"backgroundColorChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],nK);
_.B(nK,"ytd-sponsorships-promotion-celebration-renderer",function(){if(LMd!==void 0)return LMd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return LMd=G},{mode:_.Qc("kevlar_poly_si_batch_j077")?1:2});var AQd;var $V0;var v9=function(){return _.J.apply(this,arguments)||this};
_.u(v9,_.J);v9.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
v9.prototype.computeIsInitiallyChecked=function(G){return G===1};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],v9.prototype,"data",void 0);_.r([_.nH("#checkbox"),_.h("design:type",Object)],v9.prototype,"checkbox",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],v9);
_.B(v9,"ytd-subscription-toggle-option-renderer",function(){if($V0!==void 0)return $V0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return $V0=G},{mode:1});var DV=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return G};
_.u(DV,_.J);DV.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"}}}};
DV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
DV.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var G=_.Q1(this.hostElement).querySelector("#options").selected;G=this.data.options[G].subscriptionRadioOptionRenderer.serviceEndpoint;var c=_.Q1(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");c&&G&&G.modifyChannelNotificationPreferenceEndpoint&&(c=c.getValue())&&(G.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[c]);_.wH().resolve(_.n4).resolveCommand(G,{form:{element:this.hostElement}});
_.ym(this.hostElement,"yt-close-popup-action")};
_.Nh.Object.defineProperties(DV.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var G=this.data.options,c=0;c<G.length;c++){var I=G[c].subscriptionRadioOptionRenderer;if(I&&I.selected)return c}return null}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],DV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],DV.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],DV.prototype,"eventForwardingBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],DV.prototype,"data",void 0);_.r([_.A("data.options"),_.h("design:type",Object),_.h("design:paramtypes",[])],DV.prototype,"initialIndex",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],DV);
_.B(DV,"ytd-subscription-notification-options-renderer",function(){if(AQd!==void 0)return AQd;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return AQd=G},{mode:1});var Sk1;var pfu=function(){return _.J.apply(this,arguments)||this};
_.u(pfu,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],pfu.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],pfu.prototype,"data",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],pfu);
_.B(pfu,"ytd-tvfilm-offer-groups-renderer",function(){if(Sk1!==void 0)return Sk1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return Sk1=G},{mode:1});var M8d;var o_=function(){return _.J.apply(this,arguments)||this};
_.u(o_,_.J);_.P=o_.prototype;_.P.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.P.computeThumbnailClass=function(G){return G.thumbnailOverlays?G.isShow?"thumbnail-show":"thumbnail-movie":G.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.P.computeCommerceSectionClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.P.computeTitleClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.P.onDataChanged=function(){[].concat(_.jn(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(G){G.onShow()})};
o_.prototype.onDataChanged=o_.prototype.onDataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],o_.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],o_.prototype,"onDataChanged",null);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],o_);
_.B(o_,"ytd-ypc-offers-overlay-renderer",function(){if(M8d!==void 0)return M8d;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return M8d=G},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var V8W;var zoG=function(){this.usedMethods=new Set};
zoG.prototype.add=function(G){this.usedMethods.add(G)};
zoG.prototype.reset=function(){this.usedMethods.clear()};var EYW,JQW;
_.WMu=function(G,c){this.query=G;this.previousSearchQuery=c;this.id=EYW++;if(!JQW){c=_.H1("SBOX_SETTINGS");G="https://"+((c==null?void 0:c.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var I=c==null?void 0:c.REQUEST_LANGUAGE;I&&(G+="&hl="+I);(I=c==null?void 0:c.REQUEST_DOMAIN)&&(G+="&gl="+I);G+="&client=youtube&gs_ri=youtube";(I=c==null?void 0:c.SUGG_EXP_ID)&&(G+="&sugexp="+encodeURIComponent(I));(I=c==null?void 0:c.PSUGGEST_TOKEN)&&(G+="&tok="+I);(c=c==
null?void 0:c.SESSION_INDEX)&&(G+="&authuser="+c);_.v("desktop_enable_visual_suggest")&&(G+="&h=180&w=320&ytvs=1");JQW=G}};
_.iOW=function(G){var c="q="+encodeURIComponent(G.query);G.previousSearchQuery&&(c+="&pq="+encodeURIComponent(G.previousSearchQuery));return c};
_.fNF=function(){var G=_.H1("SBOX_SETTINGS"),c={};if(G==null?0:G.SEND_VISITOR_DATA)c["X-Goog-Visitor-Id"]=G==null?void 0:G.VISITOR_DATA;return c};
_.BlW=function(G){var c=JQW;c+="&gs_id="+G.id.toString(36);c+="&q="+encodeURIComponent(G.query);c+="&cp="+G.query.length;G.previousSearchQuery&&(c+="&pq="+encodeURIComponent(G.previousSearchQuery));(G=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(c+="&video_id="+G);return c};
EYW=0;JQW="";var rQG=_.C2.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,jYW=_.C2.SEARCH_ENTITY_SUGGESTION_MOVIE,xVd=_.C2.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,t8j=_.C2.SEARCH_ENTITY_SUGGESTION_TV_SHOW,hor=function(G,c){this.text=G;this.bold=c},dVW=function(G,c,I){this.input=c;
this.index=I;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=G[0];this.type=G[1];this.subtypes=G[2];var R;this.displayText=WUu((R=G[3])==null?void 0:R.b);var Z;this.ignoredPrefix=WUu((Z=G[3])==null?void 0:Z.a);var K,m;this.hasNewVideo=((K=G[3])==null?void 0:(m=K.zam)==null?void 0:m.toString())==="true"?!0:!1;var a;this.visualSuggestUrl=(a=G[3])==null?void 0:a.zai;var O;this.entityType=WUu((O=G[3])==null?void 0:O.zap);var N;this.entityName=WUu((N=G[3])==null?void 0:N.zao);var q;c=
WUu((q=G[3])==null?void 0:q.zaf);var w;this.entityMid=(w=G[3])==null?void 0:w.zae;q=im7(this.subtypes,this.entityMid);if(c&&q){if(c){w="";switch(q){case "YOUTUBE_ENTITY_TYPE_SONG":w=xVd;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":w=rQG;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":w=t8j;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":w=jYW}q=q==="YOUTUBE_ENTITY_TYPE_SONG"||q==="YOUTUBE_ENTITY_TYPE_ALBUM"?w+" \u2022  \u2022 "+c:c}else q="";this.entitySubtitle=q}var F;this.externalChannelId=(F=G[3])==null?void 0:F.zav;
var n;this.entityThumbnailAttributionUrl=(n=G[3])==null?void 0:n.zaq},HO7=function(G,c){var I=[],R,Z=(R=G.displayText)!=null?R:G.text;
(c==null?0:c.useEntityName)&&Ccj(G)&&G.entityName&&(Z=G.entityName);if(G.type===33)return I.push(new hor(Z,!1)),I;if(Z.length>=G.input.length&&Z.substring(0,G.input.length)===G.input)I.push(new hor(G.input,!1)),I.push(new hor(Z.substring(G.input.length),!0));else{var K=new Set(G.input.split(/\s/)),m=Z.split(/\s/);I=m.map(function(a,O){return new hor(a.trim()+(O===m.length-1?"":" "),!K.has(a))})}return I},Ccj=function(G){var c=!!im7(G.subtypes);
G=!!G.entityMid;return c||G};_.XfW=function(G){this.rawResponse=["",[],{}];this.suggestions=[];try{var c=JSON.parse(fn$(G));if(typeof c==="object"&&c!==null)this.rawResponse=c;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(R){console.log("Suggest: Failed to parse SuggestResponse!");return}var I=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(R,Z){return new dVW(R,I,Z)})};var yQW=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new zoG;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21152_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},gYu,YkW=function(){gYu||(gYu=new yQW);
return gYu};
yQW.prototype.updateSuggestions=function(G){var c=this;this.availableSuggestions.forEach(function(I){c.previousSuggestions[I]=!0});
this.availableSuggestions=G.map(function(I){var R=I.type.toString();I.subtypes.length>0&&(R+="i"+I.subtypes.join("i"),R+="k"+I.suggestionSources.COMPLETE_SERVER.toString());return R})};
var Gg0=function(G,c){var I=Date.now();G.firstEditTime<0&&(G.firstEditTime=I);c&&(G.lastQueryBuildTime=I);G.lastEditTime=I};
yQW.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21152_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var cTF=function(G){var c="";G.availableSuggestions.forEach(function(Z){delete G.previousSuggestions[Z]});
for(var I=_.Q(Object.keys(G.previousSuggestions)),R=I.next();!R.done;R=I.next())R=R.value,G.previousSuggestions[R]&&(c+=(c?"j":"")+R);return c},IRW=function(G,c){var I=[];
c&&(I[1]=c.toString());I[0]="youtube";I[7]=Date.now()-G.startTime;I[6]=G.sessionNumber;G.zeroPrefixSuggestionCount>=0&&(I[33]=G.zeroPrefixSuggestionCount);I[13]=G.outOfSyncResponseCount;if(G.availableSuggestions.length>0){for(var R=c="",Z=0,K=_.Q(G.availableSuggestions),m=K.next();!m.done;m=K.next())m=m.value,m!==R&&(Z>1&&(c+="l"+Z),c+=(R?"j":"")+m,Z=0,R=m),Z+=1;Z>1&&(c+="l"+Z);I[3]=c}I[35]=cTF(G);G.selectedSuggestionIndex>=0&&(I[2]=G.selectedSuggestionIndex);var a;if(c=(a=_.H1("SBOX_SETTINGS"))==
null?void 0:a.SUGG_EXP_ID)I[19]=G.normalize(c),a=0,G.experimentTriggeredBeforeFinal&&(a|=1),G.experimentTriggeredFinal&&(a|=2),I[20]=a;I[26]=Array.from(G.inputMethodsTracker.usedMethods).join("j");if(G.JSC$21152_totalRoundTripTime>0){I[15]=G.JSC$21152_totalRoundTripTime;I[14]=G.maxRoundTripTime;a=[];for(Z=c=0;Z<10;Z++)R=G.roundTripTimeHistogram[Z],R===0?c++:(c>1?a.push(Z+"-"+R):c===1?a.push("0j"+R):a.push(R.toString()),c=0);a=a.join("j");I[16]=a}G.zeroPrefixRoundTripTime>0&&(I[36]=G.zeroPrefixRoundTripTime);
G.lastQueryBuildTime>0&&(I[18]=G.lastQueryBuildTime-G.startTime);G.firstEditTime>0&&(I[4]=G.firstEditTime-G.startTime);G.lastEditTime>0&&(I[5]=G.lastEditTime-G.startTime);return I.join(".")};
yQW.prototype.normalize=function(G){return G.replaceAll(".","-")};
var RNr=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var UV=function(){var G=_.J.apply(this,arguments)||this;G.microphoneSpinnerActive=!1;G.noAnimations=!1;G.boundExitClick=function(){G.onExitButtonClick()};
G.speechOverlayClassName="";G.isLevelAnimating=!1;G.playCloseDialogAudioFeedback=!0;G.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return G};
_.u(UV,_.J);_.P=UV.prototype;_.P.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=aaH()};
_.P.dataChanged=function(){this.logDialog()};
_.P.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var G;(G=this.manager.audioPlayer)!=null&&(G.JSC$20507_audioEnabled=!1)}this.manager.stop();(G=this.manager.audioPlayer)!=null&&(G.JSC$20507_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.P.handleSpeechQueryCompleteAction=function(G){var c=G.navigationAction;c&&(G.trackingParams&&_.DP().graftServerVe(G.trackingParams,this.dialogVe,5),_.Xl(this.hostElement,"yt-navigate",{endpoint:c,tempData:this.getNavigationParams(c),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.P.onExitButtonClick=function(){this.closeDialog()};
_.P.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var G;if((G=this.manager)!=null){var c;(c=G.audioPlayer)==null||h9(c,"failure");G.setState("microphone-off");G.stop()}}else(G=this.manager)==null||G.start()};
_.P.transcriptionChanged=function(){var G,c;(((G=this.transcription)==null?0:G.low)||((c=this.transcription)==null?0:c.high))&&this.setState("transcribing",this.transcription)};
_.P.stateChanged=function(){this.setState(this.state,this.transcription)};
_.P.logDialog=function(){var G;(G=this.data)!=null&&G.trackingParams&&(G=_.DP(),_.dt(G,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=G.graftServerVe(this.data.trackingParams,void 0,5))};
_.P.getNavigationParams=function(G){var c={};if(_.v("web_yt_searchbox")){var I=YkW();I.inputMethodsTracker.add(6);I=IRW(I,15);c.gs_l=I;var R;c.oq=((R=_.D(G,_.wn))==null?void 0:R.query)||""}else if(G=window.ytvoicesearchloggingparams){if(G=G())c.oq=G.oq,c.gs_l=G.gs_l}else _.Ra(Error("Kl"));return c};
_.P.closeDialog=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.P.setState=function(G,c){if(this.data){var I=this.data,R={};switch(G){case "listening":R={headerText:I.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "timeout":R={headerText:I.promptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,microphoneAriaLabel:I.promptMicrophoneLabel};break;case "microphone-off":R={headerText:I.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,
microphoneAriaLabel:I.promptMicrophoneLabel};break;case "transcribing":(c==null?0:c.low)||(c==null?0:c.high)?R={transcriptionLow:c==null?void 0:c.low,transcriptionHigh:c==null?void 0:c.high,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel}:R={headerText:I.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "processing":R={headerText:I.loadingHeader,microphoneState:"processing",microphoneAriaLabel:I.microphoneButtonAriaLabel};
break;case "offline":R={headerText:I.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:I.connectionErrorMicrophoneLabel,microphoneAriaLabel:I.connectionErrorMicrophoneLabel};break;case "permission":R={headerText:I.permissionsHeader,bodyLine1:I.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:I.permissionsSubtext};break;case "permission-denied":R={headerText:I.disabledHeader,bodyLine1:I.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:I.disabledSubtext}}R.className=
G;this.speechOverlayState=R;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.P.setMicrophoneState=function(G){var c=this.isLevelAnimating;this.isLevelAnimating=G==="speaking";!c&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=G==="processing"&&!this.noAnimations};
_.P.setClass=function(G){this.speechOverlayClassName&&_.as(this.hostElement,this.speechOverlayClassName,!1);G&&(this.speechOverlayClassName=G,_.as(this.hostElement,G,!0))};
_.P.runLevelAnimation=function(){var G=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var c=1+Math.random()*.75,I=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+I/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+c+")");_.dJ.addJob(function(){G.runLevelAnimation()},3,I)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
UV.prototype.stateChanged=UV.prototype.stateChanged;UV.prototype.transcriptionChanged=UV.prototype.transcriptionChanged;UV.prototype.onPopupClosed=UV.prototype.onPopupClosed;UV.prototype.dataChanged=UV.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],UV.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],UV.prototype,"rendererStamperBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],UV.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],UV.prototype,"eventForwardingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],UV.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],UV.prototype,"speechOverlayState",void 0);
_.r([_.E(),_.h("design:type",Object)],UV.prototype,"microphoneSpinnerActive",void 0);_.r([_.E({type:_.v("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.h("design:type",Object)],UV.prototype,"noAnimations",void 0);_.r([_.E({selector:function(G){var c;return(c=G.voiceSearch)==null?void 0:c.transcription}}),
_.h("design:type",Object)],UV.prototype,"transcription",void 0);_.r([_.E({selector:function(G){var c;return(c=G.voiceSearch)==null?void 0:c.overlay}}),
_.h("design:type",String)],UV.prototype,"state",void 0);_.r([_.E(),_.h("design:type",Object)],UV.prototype,"boundExitClick",void 0);_.r([_.nH("#microphone-levels"),_.h("design:type",HTMLElement)],UV.prototype,"level",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UV.prototype,"dataChanged",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UV.prototype,"onPopupClosed",null);
_.r([_.uO("transcription"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UV.prototype,"transcriptionChanged",null);_.r([_.uO("state"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UV.prototype,"stateChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],UV);
_.B(UV,"ytd-voice-search-dialog-renderer",function(){if(V8W!==void 0)return V8W;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return V8W=G},{mode:1});var ZZ7;var uM=function(){var G=_.J.apply(this,arguments)||this;G.isOverlay=!1;G.hidden=!1;return G};
_.u(uM,_.J);_.P=uM.prototype;_.P.onPopupClosed=function(){this.toggleIconState(!1)};
_.P.computeIcon=function(){var G,c,I;return(c=_.D((G=this.data)==null?void 0:G.icon,KtH))==null?void 0:(I=c.icon)==null?void 0:I.iconType};
_.P.computeIconBadgeShape=function(){var G;return{iconBadgeType:"cart",iconBadgeText:(G=this.iconBadgeEntity)==null?void 0:G.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.onClick=function(){var G;(G=this.data)!=null&&G.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.P.computeHidden=function(G){return!G};
_.P.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
uM.prototype.onPopupClosed=uM.prototype.onPopupClosed;_.r([_.L(_.wQ),_.h("design:type",Object)],uM.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],uM.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],uM.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],uM.prototype,"isOverlay",void 0);
_.r([_.E({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.h("design:type",Object)],uM.prototype,"hidden",void 0);_.r([_.E({selectorArgs:["data.iconBadgeEntityKey"],selector:function(G,c){return _.a6(G.entities,"iconBadgeEntity",c)}}),
_.h("design:type",Object)],uM.prototype,"iconBadgeEntity",void 0);_.r([_.nH("yt-icon-button"),_.h("design:type",HTMLButtonElement)],uM.prototype,"iconButton",void 0);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uM.prototype,"onPopupClosed",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],uM);
_.B(uM,"ytd-icon-badge-topbar-button-renderer",function(){if(ZZ7!==void 0)return ZZ7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return ZZ7=G},{mode:1});var Kf0;var kJ=function(){var G=_.J.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.u(kJ,_.J);kJ.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Nh.Object.defineProperties(kJ.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],kJ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Array)],kJ.prototype,"premiumOptions",void 0);_.r([_.A("premiumOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],kJ.prototype,"hasPremiumOptions",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],kJ);
_.B(kJ,"ytd-offline-promo-content",function(){if(Kf0!==void 0)return Kf0;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return Kf0=G},{mode:1});var PgH;var sV=function(){var G=_.J.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.u(sV,_.J);sV.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G;this.premiumOptions=J5r((G=this.data)==null?void 0:G.formats)};
sV.prototype.onClickSubmit=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var G;(G=_.ZA())==null||G.pause()};
sV.prototype.attached=function(){this.JSC$21172_scroller&&(this.JSC$21172_scroller.dialogElement=this.hostElement.parentNode)};
_.Nh.Object.defineProperties(sV.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
sV.prototype.dataChanged=sV.prototype.dataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],sV.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],sV.prototype,"data",void 0);
_.r([_.E({computed:"computeIcon_(data.headersIcon)",value:""}),_.h("design:type",String)],sV.prototype,"headersIcon",void 0);_.r([_.E(),_.h("design:type",Array)],sV.prototype,"premiumOptions",void 0);_.r([_.nH("#scroller"),_.h("design:type",Object)],sV.prototype,"JSC$21172_scroller",void 0);_.r([_.A("headersIcon"),_.h("design:type",Object),_.h("design:paramtypes",[])],sV.prototype,"showIcon",null);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sV.prototype,"dataChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],sV);
_.B(sV,"ytd-offline-promo-renderer",function(){if(PgH!==void 0)return PgH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return PgH=G},{mode:1});var QB7;var LK=function(){var G=_.J.apply(this,arguments)||this;G.playbackPauseInterval=NaN;G.isLoading=!1;G.hasError=!1;G.dialogClass="";G.youtubeLabel=_.mJ("LOGO_ALT_LABEL",{},"YouTube Home");G.logoName="yt-logos-ext:yt-logo-updated";G.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return G};
_.u(LK,_.J);_.P=LK.prototype;_.P.onDataChange=function(){var G;if(this.showEOMV1Text=!((G=this.data)==null||!G.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.P.attached=function(){this.pausePlayer()};
_.P.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.P.handleLangSelect=function(G){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[G.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.P.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.P.handleSaveConsent=function(G){var c=this;this.showLoadingSpinner();this.showLoadingSpinner();R8u(_.D(G,DIW)).catch(function(I){_.Ck(new _.iW("Something went wrong when save consent "+(I.message?I.message:I)+"."));c.hideLoadingSpinner();c.showErrorMessage()})};
_.P.handleDisablePersonalization=function(G){var c=this;this.showLoadingSpinner();ZQ1(_.D(G,veg)).then(function(){c.dialog.close();c.resumePlayer()}).catch(function(I){_.Ck(new _.iW("Something went wrong when disable personalization "+(I.message?I.message:I)+"."));
c.hideLoadingSpinner();c.showErrorMessage()})};
_.P.showLoadingSpinner=function(){var G=this;this.showSpinnerJobId=_.dJ.addLowPriorityJob(function(){G.isLoading=!0},500)};
_.P.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.dJ.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.P.showErrorMessage=function(){var G=this;this.hasError=!0;_.dJ.addLowPriorityJob(function(){G.hasError=!1},2E3)};
_.P.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.s2(function(){try{var G=_.ZA();G&&G.pause()}catch(c){}},100))};
_.P.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var G=_.ZA();G&&G.play()}catch(c){}};
_.Nh.Object.defineProperties(LK.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var c=["SHIELD","WARNING","BAR_CHART"],I=this.data.eomV1Text.essentialCookieMsg.items,R=0;R<c.length&&R<I.length;R++)G.push({icon:c[R],text:I[R]});return G}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var c=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],I=this.data.eomV1Text.nonEssentialCookieMsg.items,R=0;R<c.length&&R<I.length;R++)G.push({icon:c[R],text:I[R]});return G}}});
LK.prototype.onDataChange=LK.prototype.onDataChange;_.r([_.E(),_.h("design:type",Object)],LK.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],LK.prototype,"showEOMV1Text",void 0);_.r([_.E(),_.h("design:type",Object)],LK.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Object)],LK.prototype,"hasError",void 0);_.r([_.E(),_.h("design:type",Number)],LK.prototype,"showSpinnerJobId",void 0);_.r([_.E(),_.h("design:type",Object)],LK.prototype,"dialogClass",void 0);
_.r([_.nH("#dialog"),_.h("design:type",Object)],LK.prototype,"dialog",void 0);_.r([_.nH("#cb-header"),_.h("design:type",HTMLElement)],LK.prototype,"header",void 0);_.r([_.nH("#lang-select"),_.h("design:type",HTMLElement)],LK.prototype,"langSelect",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],LK.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],LK.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.h("design:type",String)],LK.prototype,"youtubeLabel",void 0);_.r([_.E(),_.h("design:type",Object)],LK.prototype,"logoName",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LK.prototype,"onDataChange",null);_.r([_.A("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],LK.prototype,"eomEssentialCookieMsgItems",null);
_.r([_.A("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],LK.prototype,"eomNonEssentialCookieMsgItems",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],LK);
_.B(LK,"ytd-consent-bump-v2-lightbox",function(){if(QB7!==void 0)return QB7;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return QB7=G},{mode:1});var m5$;var A6=function(){return _.J.apply(this,arguments)||this};
_.u(A6,_.J);A6.prototype.ready=function(){if(!_.E2()||Hqj)var G=!0;else Hqj=!0,G=!1;G||(G=document.querySelector("ytd-app"),G||(G=document.body),this.internalLightBox=_.Q1(G).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.r([_.E(),_.h("design:type",Object)],A6.prototype,"data",void 0);_.r([_.nH("#lightbox"),_.h("design:type",Object)],A6.prototype,"lightBox",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],A6);
_.B(A6,"ytd-consent-bump-v2-renderer",function(){if(m5$!==void 0)return m5$;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return m5$=G},{mode:1});var aRW;var TYd;var OZ$;var $J=function(){return _.J.apply(this,arguments)||this};
_.u($J,_.J);_.P=$J.prototype;_.P.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&a97(this.toastManager,this.toastType)};
_.P.open=function(G){this.toast&&(this.ephemeralAction&&_.wH().resolve(_.zL).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=G!=null?G:0,this.toastManager.enqueue(this.toast,G)):this.toast.open())};
_.P.close=function(G){var c;(c=this.toast)==null||c.close();this.toastManager&&G===1&&a97(this.toastManager,G)};
_.P.refit=function(){var G;(G=this.toast)==null||G.refit()};
_.P.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var G;(G=this.toast)==null||G.close()}};
_.P.setVerticalOffset=function(G){this.toast&&(this.toast.verticalOffset=G,this.toast.fit())};
_.P.computeButtonClass_=function(G){return G?"toast-button":""};
_.P.computeText_=function(G){return _.HY(G)};
_.P.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.AG("toast-opened-changed",this.toastOpened))};
_.P.updateToastOpenedFromBinding=function(G){this.toastOpened=G.detail.value};
_.Nh.Object.defineProperties($J.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var G,c,I=(G=this.data)==null?void 0:(c=G.actionButton)==null?void 0:c.buttonRenderer;return(I==null?void 0:I.command)||(I==null?void 0:I.serviceEndpoint)||(I==null?void 0:I.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var G=[],c;((c=this.data)==null?0:c.responseText)&&G.push(_.HY(this.data.responseText));var I;((I=this.data)==null?0:I.subText)&&G.push(_.HY(this.data.subText));var R,Z;if((R=this.data)==null?0:(Z=R.actionButton)==null?0:Z.buttonRenderer){var K,m;G.push(((K=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(m=K.accessibilityData)==null?void 0:m.label)||_.HY(this.data.actionButton.buttonRenderer.text))}return G.filter(function(a){return a}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var G,c;return(c=(G=this.toast)==null?void 0:G.opened)!=null?c:!1}}});
$J.prototype.toastOpenedChangedForBinding=$J.prototype.toastOpenedChangedForBinding;$J.prototype.toastOpenedChanged=$J.prototype.toastOpenedChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],$J.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],$J.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],$J.prototype,"duration",void 0);
_.r([_.E(),_.h("design:type",Number)],$J.prototype,"toastType",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],$J.prototype,"useCloseButton",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],$J.prototype,"closeToastOnActionButtonClick",void 0);_.r([_.E({value:function(){return _.mJ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],$J.prototype,"closeButtonAriaLabel",void 0);_.r([_.E(),_.h("design:type",Boolean)],$J.prototype,"toastOpened",void 0);_.r([_.E(),_.h("design:type",Boolean)],$J.prototype,"hasOpened",void 0);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],$J.prototype,"command",null);_.r([_.A("labelText","command","duration"),_.h("design:type",Object),_.h("design:paramtypes",[])],$J.prototype,"ephemeralAction",null);
_.r([_.A("ephemeralAction"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$J.prototype,"hasEphemeralAction",null);_.r([_.nH("#toast"),_.h("design:type",Object)],$J.prototype,"toast",void 0);_.r([_.E({value:function(){return{style:"call-to-action-inverse"}}}),
_.h("design:type",Object)],$J.prototype,"buttonOverrides",void 0);_.r([_.E({value:{style:"mono-inverse"}}),_.h("design:type",Object)],$J.prototype,"closeButtonOverrides",void 0);_.r([_.E({value:function(){return _.wH().resolve(_.qR(_.M1))}}),
_.h("design:type",Object)],$J.prototype,"toastManager",void 0);_.r([_.A("data.responseText","data.subText","data.actionButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],$J.prototype,"labelText",null);_.r([_.wD("toastOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$J.prototype,"toastOpenedChanged",null);
_.r([_.wD("toastOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$J.prototype,"toastOpenedChangedForBinding",null);_.r([_.Em({is:"yt-notification-action-renderer",disableElementRegistration:!0})],$J);
_.B($J,"yt-notification-action-renderer",function(){if(OZ$===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;TYd===void 0&&(TYd=document.createElement("template"));var R=TYd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);OZ$=G}G=OZ$;return G},{mode:2});var Sq=function(){var G=_.J.apply(this,arguments)||this;G.duration=4E3;G.downloadingCount=0;G.downloadedCount=0;G.downloadingOnlySmartDownloads=!1;G.sessionTotalDownloads=0;G.sessionDownloaded=0;G.previousSessionsDownloaded=0;G.totalDownloadPercentage=0;G.currentDownloadProgress=0;G.currentDownloadPercentage=0;G.isLeaderTab=!0;G.isFullScreen=!1;G.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};G.boundBeforeUnload=function(c){G.isLeaderTab&&G.downloadingCount>0&&(c.preventDefault(),
c.returnValue=!0)};
return G};
_.u(Sq,_.J);_.P=Sq.prototype;
_.P.open=function(){this.updateDownloadState();if(this.data){var G=this.sessionDownloaded+1,c=this.sessionTotalDownloads>1?_.mJ("VIDEOS_DOWNLOADING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+G+"/"+this.sessionTotalDownloads):_.mJ("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(c=this.sessionTotalDownloads>1?_.mJ("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
G+"/"+this.sessionTotalDownloads):_.mJ("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));G=this.isLeaderTab?_.mJ("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.HY(this.data.responseText)!==c||_.HY(this.data.subText)!==G)this.set("data.responseText",_.Cp(c)),this.set("data.subText",_.Cp(G)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.P.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.P.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.P.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.P.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var G=this.downloadedCount-this.previousSessionsDownloaded;G<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-G);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.P.handleFullscreenChange=function(G){(this.isFullScreen=G)||this.updatePopup()};
Sq.prototype.updateCurrentDownloadProgress=Sq.prototype.updateCurrentDownloadProgress;Sq.prototype.updatePopup=Sq.prototype.updatePopup;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Sq.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],Sq.prototype,"ytEventForwardingBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Sq.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Sq.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],Sq.prototype,"duration",void 0);_.r([_.E({selector:function(G){return _.tsC(G.entities).length}}),
_.h("design:type",Object)],Sq.prototype,"downloadingCount",void 0);_.r([_.E({selector:q3u}),_.h("design:type",Object)],Sq.prototype,"downloadedCount",void 0);_.r([_.E({selector:function(G){var c=_.tsC(G.entities);return lX7(G.entities,c)}}),
_.h("design:type",Object)],Sq.prototype,"downloadingOnlySmartDownloads",void 0);_.r([_.E(),_.h("design:type",Object)],Sq.prototype,"sessionTotalDownloads",void 0);_.r([_.E(),_.h("design:type",Object)],Sq.prototype,"sessionDownloaded",void 0);_.r([_.E(),_.h("design:type",Object)],Sq.prototype,"previousSessionsDownloaded",void 0);_.r([_.E(),_.h("design:type",Object)],Sq.prototype,"totalDownloadPercentage",void 0);
_.r([_.E({selector:function(G){var c;G=(c=_.tsC(G.entities))!=null?c:[];return G.length>0?_.Vsq(G.slice(-1)):0}}),
_.h("design:type",Object)],Sq.prototype,"currentDownloadProgress",void 0);_.r([_.E(),_.h("design:type",Object)],Sq.prototype,"currentDownloadPercentage",void 0);_.r([_.E({selector:_.XRg}),_.h("design:type",Object)],Sq.prototype,"isLeaderTab",void 0);_.r([_.nH("yt-notification-action-renderer"),_.h("design:type",Object)],Sq.prototype,"notificationActionRenderer",void 0);
_.r([_.uO("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sq.prototype,"updatePopup",null);_.r([_.uO("currentDownloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sq.prototype,"updateCurrentDownloadProgress",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Sq);
_.B(Sq,"ytd-video-download-toast-renderer",function(){if(aRW!==void 0)return aRW;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return aRW=G},{mode:1});var eN1;var NYF;var pK=function(){return _.J.apply(this,arguments)||this};
_.u(pK,_.J);pK.prototype.computeIsRedLogo=function(G,c){!G&&c&&(G=c);return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
pK.prototype.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],pK.prototype,"componentBehavior",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.h("design:type",Boolean)],pK.prototype,"isRedLogo",void 0);_.r([_.E({computed:"computeLogoName(data)"}),_.h("design:type",String)],pK.prototype,"logoName",void 0);_.r([_.E({value:{}}),_.h("design:type",Object)],pK.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],pK.prototype,"logoType",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-logo"})],pK);
_.B(pK,"ytd-logo",function(){if(NYF!==void 0)return NYF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return NYF=G},{mode:_.Qc("kevlar_poly_si_batch_j074")?1:2});var Mm=function(){var G=_.J.apply(this,arguments)||this;G.animationRef={};return G};
_.u(Mm,_.J);_.P=Mm.prototype;_.P.attached=function(){document.addEventListener("yt-navigate-finish",_.lO(this,this.logYoodle))};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.lO(this,this.logYoodle))};
_.P.logYoodle=function(){var G,c;if((G=this.data)==null?0:(c=G.loggingDirectives)==null?0:c.trackingParams)this.ytRendererBehavior.markDirty(),_.DP().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.P.computeHideImg=function(G,c){return!!G||!!c};
_.P.computeHideYtdLogo=function(G,c){return!G||!!c};
_.P.computeHideLottie=function(G){return!G};
_.P.computeIsRedLogo=function(G){return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
_.P.renderLogoEntity=function(){var G=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),c=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),I=this.getLogoTitleText(this.data),R=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==G&&(this.url=G);this.animatedUrl!==c&&(this.animatedUrl=c);this.logoTitleText!==I&&(this.logoTitleText=I);this.lottieUrl!==R&&(this.lottieUrl=R,this.lottiePlayerProps=this.computeLottiePlayerProps(R))};
_.P.getSanitizedThumbnail=function(G){return G&&G.thumbnails?_.HDB(G.thumbnails,122)||"":""};
_.P.getThumbnailUrl=function(G,c){if(!c)return"";var I,R;G=G?(I=c.darkThemeLogo)==null?void 0:I.thumbnail:(R=c.lightThemeLogo)==null?void 0:R.thumbnail;return this.getSanitizedThumbnail(G)};
_.P.getAnimatedThumbnailUrl=function(G,c){return c?this.getSanitizedThumbnail(G?c.darkThemeAnimatedLogo:c.lightThemeAnimatedLogo):""};
_.P.getLogoTitleText=function(G){if(G)return _.HY(G.tooltipText)};
_.P.computeLogoIcon=function(G,c){if(c){var I,R;return G?(I=c.darkThemeLogo)==null?void 0:I.icon:(R=c.lightThemeLogo)==null?void 0:R.icon}};
_.P.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.P.getLottieUrl=function(G,c){var I,R,Z,K;return G?c==null?void 0:(I=c.darkThemeLogo)==null?void 0:(R=I.lottieAnimation)==null?void 0:R.url:c==null?void 0:(Z=c.lightThemeLogo)==null?void 0:(K=Z.lottieAnimation)==null?void 0:K.url};
_.P.computeLottiePlayerProps=function(G){if(G){var c;if((c=this.animationRef)==null?0:c.lottieEl){var I;(I=this.animationRef)==null||I.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:G,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.P.onLottieError=function(){this.data&&this.lottieUrl&&_.Xl(this.hostElement,"yoodle-error")};
_.P.onImgError=function(){this.data&&!this.lottieUrl&&_.Xl(this.hostElement,"yoodle-error")};
Mm.prototype.playAnimation=Mm.prototype.playAnimation;Mm.prototype.renderLogoEntity=Mm.prototype.renderLogoEntity;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Mm.prototype,"data",void 0);_.r([_.E({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.h("design:type",Boolean)],Mm.prototype,"hideImg",void 0);
_.r([_.E({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.h("design:type",Boolean)],Mm.prototype,"hideYtdLogo",void 0);_.r([_.E({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.h("design:type",Boolean)],Mm.prototype,"hideLottie",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.h("design:type",Boolean)],Mm.prototype,"isRedLogo",void 0);
_.r([_.E(),_.h("design:type",Boolean)],Mm.prototype,"useDarkThemeYoodle",void 0);_.r([_.E(),_.h("design:type",String)],Mm.prototype,"url",void 0);_.r([_.E(),_.h("design:type",String)],Mm.prototype,"animatedUrl",void 0);_.r([_.E(),_.h("design:type",String)],Mm.prototype,"logoTitleText",void 0);_.r([_.E({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.h("design:type",Object)],Mm.prototype,"logoIcon",void 0);_.r([_.E(),_.h("design:type",Object)],Mm.prototype,"logoType",void 0);
_.r([_.E(),_.h("design:type",String)],Mm.prototype,"lottieUrl",void 0);_.r([_.E(),_.h("design:type",Object)],Mm.prototype,"lottiePlayerProps",void 0);_.r([_.E(),_.h("design:type",Object)],Mm.prototype,"animationRef",void 0);_.r([_.wD("data"),_.wD("useDarkThemeYoodle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mm.prototype,"renderLogoEntity",null);
_.r([_.qY("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Mm.prototype,"playAnimation",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Mm);
_.B(Mm,"ytd-yoodle-renderer",function(){if(eN1!==void 0)return eN1;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return eN1=G},{mode:_.Qc("kevlar_poly_si_batch_j074")?1:2});var lRu;var qJF;var wAg=_.Ce.currentPageTypeSelector,Ffu=_.Ce.currentPageSubTypeSelector,Vj=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return G};
_.u(Vj,_.J);_.P=Vj.prototype;_.P.onYoodleError=function(){_.v("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.P.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.P.computeTitle=function(G,c,I){return I&&(c==null?0:c.tooltipText)?_.HY(c.tooltipText):_.HY(G)};
_.P.computeAriaLabel=function(G,c,I){return I&&(c==null?0:c.tooltipText)?_.HY(G):""};
_.P.computeShowYoodle=function(G,c,I){return!G||!c&&!!I&&!_.rx.isEmpty(I)};
_.P.onNavigateHomeAction=function(){if(_.v("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G;(G=_.Q1(this.hostElement).querySelector(".yt-simple-endpoint"))==null||G.click()}};
_.P.computeLogoHref=function(G,c,I){var R;(I==null?0:I.onTapCommand)?R=this.componentBehavior.computeHref_(I.onTapCommand):G&&(R=this.componentBehavior.computeHref_(G));return R?R:c};
_.P.computeCommand=function(G,c){return(c==null?void 0:c.onTapCommand)||G};
_.P.getEndpointForm=function(){if(_.v("kevlar_topbar_disable_cache_only_home")){var G=_.wH().resolve(_.Ni),c=wAg(G.getState())||"";G=Ffu(G.getState())||"";return{disableCache:c==="ytd-browse"&&G==="home"}}return{disableCache:!0}};
Vj.prototype.onYoodleError=Vj.prototype.onYoodleError;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Vj.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],Vj.prototype,"componentBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],Vj.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Vj.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],Vj.prototype,"countryCode",void 0);_.r([_.E({selectorArgs:["data.overrideEntityKey"],selector:function(G,c){return _.a6(G.entities,"logoEntity",c)}}),
_.h("design:type",Object)],Vj.prototype,"logoEntity",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.h("design:type",Boolean)],Vj.prototype,"showYoodle",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Vj.prototype,"yoodleError",void 0);_.r([_.E({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.h("design:type",String)],Vj.prototype,"titleText",void 0);
_.r([_.E({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.h("design:type",String)],Vj.prototype,"ariaLabelText",void 0);_.r([_.E({value:"/"}),_.h("design:type",String)],Vj.prototype,"defaultEndpointUrl",void 0);_.r([_.E({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.h("design:type",String)],Vj.prototype,"endpointUrl",void 0);
_.r([_.E({computed:"computeCommand(data.endpoint, logoEntity)"}),_.h("design:type",String)],Vj.prototype,"command",void 0);_.r([_.E(),_.h("design:type",Object)],Vj.prototype,"logoType",void 0);_.r([_.E({}),_.h("design:type",Boolean)],Vj.prototype,"useDarkThemeYoodle",void 0);_.r([_.qY("yoodle-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Vj.prototype,"onYoodleError",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Vj);
_.B(Vj,"ytd-topbar-logo-renderer",function(){if(qJF!==void 0)return qJF;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return qJF=G},{mode:_.Qc("kevlar_poly_si_batch_j027")?1:2});var nxg=0;var vxH=_.C2.SEARCH_APPEND_LABEL,D5G=_.C2.SUGGESTION_NEW_VIDEOS_TEXT,oxj=_.C2.SUGGESTION_THUMBNAIL_LABEL,U5u=_.C2.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,u71=_.W(function(G){function c(IR){var vu,xF;return _.T(function(eT){if(eT.nextAddress==1)return vu=new Request(IR),_.s9(eT,2),eT.yield(fetch(vu,{credentials:"include"}),4);if(eT.nextAddress!=2)return qf(!0),_.Pl(eT,0);xF=_.M3(eT);_.Ck(xF);_.Vp(eT)})}
var I=G.isHighlighted;var R=G.suggestion;var Z=G.onClickCallback;var K=G.onHoverUpdateCallback;var m=G.labels;var a=G.queryBuilderFunction;var O=G.onRemoveCallback;var N=G.suggestionIndex;var q=G.generateUniqueId;var w=G.highlightedId;var F=G.useScrollMargin;var n=G.isKeyboardMode;var U=null,k=null,p=null,M=_.mX("div"),z=_.mX("span");G=_.Q(_.ks(!1,void 0,"LafNkf"));var t=G.next().value,x=G.next().value,C=_.Op("a",function(IR){IR&&_.VY(237477,IR,k,function(vu){k=vu})}),H=_.Op("button",function(IR){IR&&
_.VY(237477,IR,k,function(vu){k=vu})}),g=_.Op("div",function(IR){IR&&_.VY(281939,IR,p,function(vu){p=vu})}),QO=_.Nx(function(IR){if((IR==null?void 0:IR.button)===2)return IR.preventDefault(),!1;
var vu=_.k0();vu&&U&&_.xD(vu,U,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var xF;Z(IR,R().text,R().index,R().entityMid,IR==null?void 0:(xF=IR.detail)==null?void 0:xF.wasSelectedByKeyboard);return!1}),T8=function(){return R().type===35},kp=function(){return _.v("desktop_enable_single_suggestion_highlight")},FB=function(){return _.DH("desktop_suggestions_panel_row_height")||0},oq=function(){var IR;
return _.v("desktop_enable_new_video_metadata")&&((IR=R())==null?void 0:IR.hasNewVideo)===!0},Wr=function(){return _.v("desktop_enable_visual_suggest")},iT=function(){return _.v("desktop_enable_entity_suggest")&&Ccj(R())},z8=function(){return R().entitySubtitle},GV=function(){return kp()?(I==null?void 0:I())||xK()&&!(n==null?0:n()):(I==null?void 0:I())||xK()},ei=function(){var IR=_.H1("SBOX_SETTINGS");
return T8()&&!(IR==null?0:IR.HIDE_REMOVE_LINK)},Hr=function(){return HO7(R(),{useEntityName:iT()})},v0,kK=!((v0=_.wH().resolve(_.qR(_.d0)))==null||!v0()),pN=function(){return T8()?_.v("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},bH=function(){return m==null?void 0:m().SUGGESTION_DISMISS_LABEL},n1=function(){return m==null?void 0:m().SUGGESTION_DISMISSED_LABEL};
G=_.Q(_.ks(!1,void 0,"JyfUlf"));v0=G.next().value;var qf=G.next().value;G=_.Q(_.ks(!1,void 0,"QKfAGe"));var hU=G.next().value,we=G.next().value,xK=hU,UK=_.Nx(function(){a(z.value.innerText);return!1}),YK=_.Nx(function(IR){IR.preventDefault();
return!1}),en=_.Nx(function(IR){var vu=R().text,xF=_.H1("SBOX_SETTINGS"),eT="https://"+(xF.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
eT+="&delq="+encodeURIComponent(vu);(vu=xF==null?void 0:xF.PSUGGEST_TOKEN)&&(eT+="&tok="+vu);(xF=xF==null?void 0:xF.SESSION_INDEX)&&(eT+="&authuser="+xF);c(eT);IR.preventDefault();(IR=_.k0())&&k&&_.xD(IR,k,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");O(N==null?void 0:N());return!1}),de=_.Nx(function(){if(kp()&&(n==null?0:n()))return!1;
we(!0);K(!0);return!1}),qk=_.Nx(function(){we(!1);
K(!1);return!1}),FT=_.Nx(function(){x(!0);
return!1}),ZW=_.Nx(function(){x(!1);
return!1}),yO=_.Nx(function(IR){IR.preventDefault();
if(R().entityThumbnailAttributionUrl){p&&_.XF(_.DP(),p);var vu=R().entityThumbnailAttributionUrl;IR=R().entityName;var xF={dismissDialogEndpoint:{}};vu={commandExecutorCommand:{commands:[xF,{urlEndpoint:{url:vu,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:vu}}}]}};xF={buttonViewModel:{title:_.mJ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:xF}}};vu={buttonViewModel:{title:_.mJ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:vu}}};IR={dialogHeaderViewModel:{headline:{content:IR!=null?IR:_.mJ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var eT={basicContentViewModel:{paragraphs:[{text:{content:_.mJ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};IR={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:IR,footer:{panelFooterViewModel:{primaryButton:vu,
secondaryButton:xF,shouldHideDivider:!0}},content:eT}}}}};_.wH().resolve(_.n4).resolveCommand(IR)}return!1});
G=_.Q(_.ks("",void 0,"MvIBn"));var Iu=G.next().value,wS=G.next().value;_.xc(function(){ei()&&wS(q==null?void 0:q(N==null?void 0:N()));M.value&&_.VY(12453,M.value,U,function(IR){U=IR})});
return _.e(_.l,{cond:v0,then:function(){var IR={};return _.e("div",{class:_.O3("ytSuggestionComponentRemovedText",(IR.ytSuggestionComponentLargerRemovedText=function(){return Wr()},IR)),
style:function(){return FB()>0?"height: "+FB()+"px;":""},
role:"button"},n1)},
else:function(){var IR={},vu={};return _.e("div",{class:_.O3("ytSuggestionComponentSuggestion",(IR.ytSuggestionComponentSuggestionHover=function(){return!kp()},IR.ytSuggestionComponentHighlighted=GV,IR.ytSuggestionComponentPersonalizedSuggestion=T8,IR.ytSuggestionComponentMweb=!1,IR.ytSuggestionComponentLargerSuggestion=function(){return oq()||Wr()},IR.ytSuggestionComponentThumbnailSuggestion=function(){return Wr()},IR.ytSuggestionComponentRoundedSuggestion=function(){return _.v("desktop_enable_scrollable_suggestions_panel")&&
_.v("desktop_enable_suggestions_panel_padding")},IR.ytSuggestionComponentThumbnailPadding=function(){return Wr()&&!T8()},IR)),
style:function(){return FB()>0?"height: "+FB()+"px;":""},
role:"presentation","on:mousedown":QO,"on:mouseover":de,"on:mouseout":qk,el:M},_.e("div",{class:_.O3("ytSuggestionComponentText",(vu.ytSuggestionComponentScrollMargin=F,vu)),"aria-label":function(){return oq()?R().text+" "+D5G:R().text},
id:function(){return q==null?void 0:q(N==null?void 0:N())},
"on:mousedown":QO,role:"option"},_.e(_.l,{cond:function(){return R().type!==33},
then:function(){return _.e(_.F6,{icon:pN,className:"ytSuggestionComponentIcon"})}}),_.e("div",{class:"ytSuggestionComponentLeftContainer"},_.e("span",{el:z,
role:"button",tabindex:0},_.e(_.fh,{each:Hr},function(xF){return xF.bold?_.e("span",{class:"ytSuggestionComponentBold"},xF.text):_.e("span",null,xF.text)})),_.e(_.l,{cond:function(){return iT()&&!!R().entitySubtitle||oq()},
then:function(){return _.e("div",{class:"ytSuggestionComponentMetadataContainer"},_.e(_.l,{cond:function(){return iT()&&!!R().entitySubtitle},
then:function(){return _.e("div",{class:"ytSuggestionComponentEntitySubtitle"},z8)}}),_.e(_.l,{cond:function(){return oq()},
then:function(){return _.e("div",{class:"ytSuggestionComponentNewVideoContainer"},_.e("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.e("div",{class:"ytSuggestionComponentNewVideoText"},D5G))}}))}}))),_.e("div",{class:"ytSuggestionComponentRightContainer"},_.e(_.l,{cond:function(){return Wr()&&R().visualSuggestUrl!==void 0},
then:function(){var xF={};return _.e("div",{class:"ytSuggestionComponentThumbnailContainer"},_.e("img",{"aria-label":oxj,class:_.O3("ytSuggestionComponentVisualSuggestThumbnail",(xF.ytSuggestionComponentCircularFrame=function(){return iT()&&R().subtypes.includes(790)},xF.ytSuggestionComponentEntitySuggestThumbnail=function(){return iT()},xF)),
src:function(){return R().visualSuggestUrl}}),_.e(_.l,{cond:function(){return iT()&&!!R().entityThumbnailAttributionUrl},
then:function(){var eT={};return _.e("span",{title:U5u,role:"tooltip"},_.e("div",{el:g,"on:mouseover":FT,"on:mouseout":ZW,"on:mousedown":yO,class:_.O3("ytSuggestionComponentThumbnailOverlay",(eT.ytSuggestionComponentThumbnailOverlayHidden=function(){return!t()},eT))},_.e(_.F6,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.e(_.B1,null,_.e(_.W1,{when:function(){return Wr()&&ei()}},function(){var xF={};
return _.e("button",{class:_.O3("ytSuggestionComponentRemoveLinkClearButton",(xF.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Iu()&&Iu()===(w==null?void 0:w())},xF.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!GV()},xF)),
el:H,"on:mousedown":en,"aria-label":bH,id:function(){return Iu()}},_.e(_.F6,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.e(_.W1,{when:function(){return!(Wr()&&R().visualSuggestUrl!==void 0)&&ei()}},function(){var xF={};
return _.e("a",{class:_.O3("ytSuggestionComponentRemoveLink",(xF.ytSuggestionComponentRemoveLinkDark=kK,xF.ytSuggestionComponentRemoveLinkSelected=function(){return Iu()&&Iu()===(w==null?void 0:w())},xF)),
el:C,"on:mousedown":en,"aria-label":bH,tabindex:0,role:"button",id:function(){return Iu()}},bH)}),_.e(_.W1,{when:function(){return!1}},function(){return _.e("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":UK,"on:mousedown":YK,role:"button","aria-label":vxH},_.e(_.F6,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Bj");var bZd=_.I3(["//www.google.com/textinputassistant/","/","_tia.js"]),kgr=_.W(function(){return _.e("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.e("button",{class:"ytdTextInputAssistantButton","on:click":_.Nx(function(){YkW().inputMethodsTracker.add(3);var G,c=(G=_.H1("SBOX_SETTINGS"))==null?void 0:G.REQUEST_LANGUAGE;if(c)return _.My(_.D3(bZd,14,c)),!1})},_.e("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Cj");var LfH;_.sBH=function(){this.cache=new Map};
LfH=function(G){for(var c=_.Q(G.cache.entries()),I=c.next();!I.done;I=c.next()){var R=_.Q(I.value);I=R.next().value;R=R.next().value;R.suggestions.some(function(Z){return Z.type===35})&&G.cache.delete(I)}};var ATu=_.C2.SEARCH,$57=_.C2.SEARCH_CLEAR_LABEL,SJu=new _.De("FAKE_SUGGEST_RESPONSE"),pA1=_.W(function(G){function c(){de||(de=setTimeout(function(){FT()},1E3))}
function I($K,sK,d7){if($K.trim()){en=$K;_.Ch("REFINEMENTS_TUPLE",void 0);UK=!0;var xN;sK=IRW(n1,sK);var Dp=(xN=G.searchEndpoint)==null?void 0:xN.call(G);_.r5H($K,sK,Dp,v0.value.value,d7);FT();v0.value.value=$K;v0.value.blur();n1.reset()}}
function R($K){return _.T(function(sK){return sK.return(new Promise(function(d7){var xN=new XMLHttpRequest;xN.open("GET",_.BlW($K),!0);xN.withCredentials=!0;var Dp=_.H1("SBOX_SETTINGS");(Dp==null?0:Dp.SEND_VISITOR_DATA)&&xN.setRequestHeader("X-Goog-Visitor-Id",Dp==null?void 0:Dp.VISITOR_DATA);xN.onload=function(){d7(xN.responseText)};
xN.onerror=function(){_.Ck(Error("Ml"));d7(null)};
setTimeout(function(){xN.abort()},1E4);
xN.send(null)}))})}
function Z($K){var sK,d7,xN,Dp;return _.T(function(gx){switch(gx.nextAddress){case 1:return sK={credentials:"include",headers:_.fNF()},window.AbortController&&(d7=new AbortController,setTimeout(function(){d7.abort("ytsbox-suggest-timeout")},1E4),sK.signal=d7.signal),_.s9(gx,2),gx.yield(fetch(_.BlW($K),sK),4);
case 4:xN=gx.yieldResult.text();_.Pl(gx,3);break;case 2:return Dp=_.M3(gx),Dp!=="ytsbox-abort-last"&&Dp!=="ytsbox-suggest-timeout"&&_.Ck(Dp),gx.return(null);case 3:return gx.return(xN)}})}
function K($K){var sK,d7,xN;return _.T(function(Dp){switch(Dp.nextAddress){case 1:if(sK=_.wH().resolve(_.qR(SJu)))return Dp.return(sK);d7=Date.now();c();return _.v("yt_searchbox_xhr")?Dp.yield(R($K),5):Dp.yield(Z($K),4);case 4:xN=Dp.yieldResult;Dp.jumpTo(3);break;case 5:xN=Dp.yieldResult;case 3:if(xN){de&&(clearTimeout(de),de=null);var gx=n1,D$=d7,tz=$K.query.length===0;D$=Date.now()-D$;tz?gx.zeroPrefixRoundTripTime=D$:(gx.JSC$21152_totalRoundTripTime+=D$,gx.maxRoundTripTime=Math.max(gx.maxRoundTripTime,
D$),tz=Math.floor(D$/100),tz>=RNr.length?++gx.roundTripTimeHistogram[9]:++gx.roundTripTimeHistogram[RNr[tz]])}return Dp.return(xN)}})}
function m($K){var sK,d7,xN;return _.T(function(Dp){if(Dp.nextAddress==1)return(sK=bH.cache.get(_.iOW($K)))?Dp.return(sK):Dp.yield(K($K),2);d7=Dp.yieldResult;if(d7===null)return Dp.return(null);xN=new _.XfW(d7);$K.query.length===0&&xN.suggestions.length===0||bH.cache.set(_.iOW($K),xN);return Dp.return(xN)})}
function a($K){var sK,d7;return _.T(function(xN){if(xN.nextAddress==1){YK=!1;var Dp=en;Dp=_.G$()==="search"?(_.Gy(location.href,"search_query")||_.Gy(location.href,"q"))===Dp:!1;sK=new _.WMu($K,Dp?en:null);return xN.yield(m(sK),2)}d7=xN.yieldResult;if(d7===null)return xN.return();sK.query.length===0&&(n1.zeroPrefixSuggestionCount=d7.suggestions.length);if(sK.id<=qk)return n1.outOfSyncResponseCount++,xN.return();if(document.activeElement!==v0.value)return xN.return();qk=sK.id;var gx=n1,D$=d7.rawResponse[2]||
{};gx.experimentTriggeredBeforeFinal||(gx.experimentTriggeredBeforeFinal=gx.experimentTriggeredFinal);gx.experimentTriggeredFinal=!!D$.e;n1.updateSuggestions(d7.suggestions);p(-1);z8([]);d7.suggestions!==n()&&Ee(d7.suggestions.length);U(d7.suggestions);QO(d7.suggestions.length>0&&d7.suggestions[0].type===33);pN&&(pN.hidden=d7.suggestions.length===0,g()?(pN.style.minWidth="",gx=pN.style,D$=(Dp=n()[0])==null?void 0:Dp.ignoredPrefix,gx.marginLeft=(D$?Math.min(D$.length*6,kK.value.offsetWidth):0).toString()+
"px"):(pN.style.minWidth=kK.value.offsetWidth+"px",pN.style.marginLeft="0"),P6());_.Vp(xN)})}
function O(){if(!UK)return!1;var $K=_.H1("REFINEMENTS_TUPLE");return $K?($K=$K[1].map(function(sK,d7){return new dVW([sK,0,[71]],v0.value.value,d7)}),n()!==$K&&Ee($K.length),z8([]),U($K),n1.updateSuggestions($K),UK=!1,pN.hidden=$K.length===0,YK=$K.length>0,!0):!1}
function N(){var $K=v0.value.value;(typeof $K==="string"||$K instanceof String)&&$K!==""?x(!0):x(!1)}
function q(){if(_.G$()==="search"){var $K=window.location.href;try{var sK=_.Gy($K,"search_query")||_.Gy($K,"q")||""}catch(d7){sK=""}sK&&(v0.value.value=sK,x(!0))}}
var w=_.Q(_.ks([],void 0,"OC8EPc")),F=w.next().value;w=w.next().value;var n=F,U=w;F=_.Q(_.ks(-1,void 0,"t2tVQb"));var k=F.next().value,p=F.next().value;F=_.Q(_.ks(-1,void 0,"v0RZCe"));var M=F.next().value,z=F.next().value;F=_.Q(_.ks(!1,void 0,"rjAnI"));var t=F.next().value,x=F.next().value;F=_.Q(_.ks(!1,void 0,"SyGLvb"));var C=F.next().value,H=F.next().value;w=_.Q(_.ks(!1,void 0,"tL09Cb"));F=w.next().value;w=w.next().value;var g=F,QO=w;w=_.Q(_.ks(!1,void 0,"FlH7mc"));F=w.next().value;var T8=w.next().value;
w=_.Q(_.ks(!1,void 0,"ea3fwe"));var kp=w.next().value,FB=w.next().value;w=_.Q(_.ks(1,void 0,"vSK1xe"));var oq=w.next().value,Wr=w.next().value;w=_.Q(_.ks([],void 0,"ijlw4b"));var iT=w.next().value,z8=w.next().value;w=_.Q(_.ks(!1,void 0,"HcRey"));var GV=w.next().value,ei=w.next().value;w=_.v("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Hr=_.mX("yt-searchbox"),v0=_.mX("input"),kK=_.mX("div"),pN,bH=
new _.sBH,n1=YkW(),qf=_.wH().resolve(_.qR(_.d0)),hU=function(){var $K;return(($K=G.forceDarkMode)==null?void 0:$K.call(G))||!(qf==null||!qf())},we=function(){return _.v("desktop_enable_scrollable_suggestions_panel")},xK="i"+nxg++,UK=!1,YK=!1,en="",de=null,qk=-1,FT=function(){z8([]);
U([]);QO(!1);pN&&(pN.hidden=!0);de&&(clearTimeout(de),de=null);p(-1)},ZW=function($K,sK){$K.preventDefault();
ei(!0);pN&&(pN.hidden=!1);var d7=k();$K=n();var xN=iT();sK=jbF(sK);d7+=sK;for(d7>=$K.length?d7=-1:d7<-1&&(d7=$K.length-1);d7!==-1&&(xN.includes(d7)||d7>=$K.length||d7<0);)d7+=sK,d7>=$K.length&&(d7=-1);p(d7);k()>=0&&(v0.value.value=n()[k()].text,z(0),N(),$K=k(),xN=M(),(xN=document.getElementById(L8[$K][xN]))&&we()&&($K===n().length-1?pN.scrollTop=pN.scrollHeight:xN.scrollIntoView({block:"nearest",inline:"start"})))},yO=_.Nx(function($K){if(!($K.relatedTarget instanceof Element&&$K.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){H(!0);
var sK;(sK=G.focusCallback)==null||sK.call(G,!0);O()||(YK?pN.hidden=!1:(_.Xl(Hr.value,"yt-autonav-pause-focus",{}),a($K.target.value)))}}),Iu=_.Nx(function($K){if(!($K.relatedTarget instanceof Element&&$K.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){H(!1);
var sK;(sK=G.focusCallback)==null||sK.call(G,!1);pN.scrollTop=0;pN.hidden=!0;_.Xl(Hr.value,"yt-autonav-pause-blur",{})}}),wS=function($K){$K=jbF($K);
var sK;((sK=L8[k()])==null?0:sK[M()+$K])&&z(M()+$K)},IR=_.Nx(function($K){var sK=$K.keyCode,d7=$K.target;
ei(!0);switch(sK){case 13:$K.preventDefault();var xN;if((xN=L8[k()])==null?0:xN[M()]){var Dp;(Dp=document.getElementById(L8[k()][M()]))==null||Dp.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}$K=$K.shiftKey?4:3;sK=n1;xN=k();sK.selectedSuggestionIndex=xN;I(d7.value,$K);break;case 27:pN&&(pN.hidden=!0);break;case 40:ZW($K,40);break;case 38:ZW($K,38);break;case 39:wS(39);break;case 37:wS(37);break;case 229:n1.inputMethodsTracker.add(4);break;default:n1.inputMethodsTracker.add(1),
Gg0(n1)}return!1}),vu=_.Nx(function($K){a($K.target.value);
N();we()&&pN&&(pN.scrollTop=0);return!1}),xF=_.Nx(function(){n1.inputMethodsTracker.add(2);
Gg0(n1);return!1});
_.xc(function(){if(pN){n1.reset();if(window.ResizeObserver){var $K=new ResizeObserver(function(){g()||(pN.style.minWidth=kK.value.offsetWidth+"px")});
$K.observe(kK.value);(new ResizeObserver(function(){P6()})).observe(pN);
_.ty(function(){$K.disconnect()})}q();
window.addEventListener("yt-navigate-finish",q);window.addEventListener("yt-focus-searchbox",function(){v0.value.focus()});
var sK;T8((sK=_.H1("SBOX_SETTINGS"))==null?void 0:sK.HAS_ON_SCREEN_KEYBOARD)}else _.hg(new _.iW("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var eT=_.Nx(function($K){$K.preventDefault();I(v0.value.value,12);return!1}),v6=_.Nx(function($K){$K.preventDefault();
var sK,d7;(sK=v0)==null||(d7=sK.value)==null||d7.focus();var xN,Dp;((xN=v0)==null?void 0:(Dp=xN.value)==null?void 0:Dp.value)!==""&&(v0.value.value="",v0.value.dispatchEvent(new Event("input")));return!1}),he=_.Nx(function(){var $K=be7(v0.value.value,n().filter(function(sK){return sK.type!==35}).map(function(sK){return{label:sK.text}}));
_.ym(Hr.value,"yt-open-popup-action",[{openPopupAction:$K},document.body]);return!1}),L1=_.Nx(function(){v0.value.focus();
return!1}),Q$=function($K,sK,d7,xN,Dp){n1.selectedSuggestionIndex=d7;
I(sK,Dp?3:1,xN)},CS=function($K){v0.value.value=$K;
v0.value.dispatchEvent(new Event("input"));n1.inputMethodsTracker.add(5);Gg0(n1,!0)},L8=[[]],MS=function($K){var sK="searchbox-suggestion"+_.Yb(_.o4);
L8[$K].push(sK);return sK},Ee=function($K){if(n()){L8=[[]];
for(var sK=0;sK<$K;sK++)L8.push([])}},P6=function(){if(we()){var $K=pN,sK=$K.scrollTop;
$K=$K.scrollHeight-$K.clientHeight;FB(sK>=$K);sK=Math.abs($K-sK);sK<=40?Wr(1-(40-sK)/40):Wr(1)}},wL=function(){return"opacity: "+oq()*100+"%"},AU=_.Nx(function(){P6();
return!1}),Br=_.Nx(function(){ei(!1);
return!1}),CA,u2={},uH={},ET={},Mg={};
return _.e("yt-searchbox",{class:_.O3("ytSearchboxComponentHost",(u2.ytSearchboxComponentMweb=!1,u2.ytSearchboxComponentDesktop=!0,u2["yt-searchbox-filled-query"]=function(){return t()},u2["ytd-masthead"]=function(){return!C()},u2.ytSearchboxComponentHostDark=hU,u2)),
role:"search",el:Hr,"client-ve-type":10349},_.e("div",{el:kK,"on:click":L1,class:_.O3("ytSearchboxComponentInputBox",(uH.ytSearchboxComponentInputBoxDark=hU,uH.ytSearchboxComponentInputBoxHasFocus=C,uH))},_.e("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":eT},_.e(_.l,{cond:C,then:function(){return _.e("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.e(_.F6,{icon:"SEARCH"}))}}),_.e("input",{el:v0,
class:_.O3("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":xK,"aria-expanded":!((CA=pN)==null?0:CA.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Iu,"on:focus":yO,"on:input":vu,"on:keydown":IR,"on:paste":xF,placeholder:G.placeholderText,"aria-activedescendant":function(){var $K;return($K=L8[k()])==null?void 0:$K[M()]},
"aria-autocomplete":"list",role:"combobox"})),_.e(_.l,{cond:F,then:function(){return _.e("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.e(kgr,null))}}),_.e(_.l,{cond:t,
then:function(){return _.e("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.e("button",{class:"ytSearchboxComponentClearButton","on:click":v6,"aria-label":G.clearButtonAriaLabel||$57},_.e(_.F6,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.e(_.Jx,{model:{}})))}})),_.e("button",{class:_.O3("ytSearchboxComponentSearchButton",(ET.ytSearchboxComponentSearchButtonDark=hU,ET)),
"on:click":eT,"aria-label":ATu,title:G.placeholderText},_.e(_.F6,{icon:"SEARCH"})),_.e(_.l,{cond:function(){if(OmF()&&_.v("mweb_voice_search")&&G.voiceSearchButton)return G.voiceSearchButton()},
then:function($K){var sK={};return _.e("div",{class:_.O3("ytSearchboxComponentVoiceSearchWrapper",(sK.ytSearchboxComponentHideVoiceSearchButton=function(){return t()},sK))},_.e(_.sN,{data:$K},{buttonRenderer:function(d7){return _.e(_.Ey,{data:d7.data,
onButtonClickCallback:function(){}})}}))}}),_.e("div",{el:_.YC(function($K){return void(pN=$K)}),
id:xK,class:_.O3("ytSearchboxComponentSuggestionsContainer",(Mg.ytSearchboxComponentSuggestionsContainerDark=hU,Mg["yt-searchbox-suggestions-container"]=!1,Mg.ytSearchboxComponentSuggestionsContainerScrollable=we(),Mg.ytSearchboxComponentSuggestionsContainerAnimated=w,Mg)),"on:scroll":AU,"on:mousemove":Br,role:"listbox",hidden:!0},_.e(_.fh,{each:n},function($K,sK){return _.e(u71,{suggestion:$K,isHighlighted:function(){return sK()===k()},
onClickCallback:Q$,onHoverUpdateCallback:function(d7){if(_.v("desktop_enable_single_suggestion_highlight")){var xN=sK();d7&&(z(0),p(xN))}},
onRemoveCallback:function(d7){LfH(bH);d7===void 0||d7<0||iT().includes(d7)||z8([].concat(_.jn(iT()),[d7]))},
labels:G.labels,queryBuilderFunction:CS,suggestionIndex:sK,generateUniqueId:MS,highlightedId:function(){var d7;return(d7=L8[k()])==null?void 0:d7[M()]},
useScrollMargin:we(),isKeyboardMode:GV})}),_.e(_.l,{cond:function(){return!g()&&n().find(function($K){return $K.type!==35})&&_.v("searchbox_reporting")},
then:function(){return _.e("button",{class:"ytSearchboxComponentReportButton","on:mousedown":he},_.mJ("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.e(_.l,{cond:function(){return!kp()&&we()},
then:function(){return _.e("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.e("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:wL}))}})))},"Ej");
pA1.idomCompat={callbacks:{focusCallback:!0}};_.R1(pA1,"yt-searchbox",{props:{searchEndpoint:_.bl,placeholderText:_.bl,labels:_.bl,voiceSearchButton:_.bl,focusCallback:_.G9,clearButtonAriaLabel:_.bl,forceDarkMode:_.bl}});var z_=function(){var G=_.J.apply(this,arguments)||this;G.menuButtonTargetId="topbar-guide-menu";G.narrow=!1;G.menuStrings={BACK_ALT_LABEL:_.mJ("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.mJ("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.mJ("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.mJ("SBOX_PLACEHOLDER",void 0,"Search")};G.pageDarkTheme=document.documentElement.hasAttribute("dark");G.watchPageScrollTop=0;G.theater=!1;G.fullscreen=!1;G.disableFrostedGlassDuringViewTransition=
!1;G.desktopUnifiedSearchPanelMode=_.v("desktop_enable_unified_search_panel");G.aiCompanionEnabled=_.v("enable_ai_companion");G.ytSearchboxFocused=!1;G.searchboxLabels=_.H1("SBOX_LABELS");G.topbarIsAboveChipbar=!1;G.isDarkThemeForced=!1;G.areGhostCardsHidden=!1;G.guideKeyboardToggle=!1;G.voiceSearchManager=aaH();G.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};G.setYtSearchboxFocused=function(c){G.ytSearchboxFocused=c};
G.toggleFrostedGlassDuringViewTransition=function(c){G.disableFrostedGlassDuringViewTransition=c};
return G};
_.u(z_,_.J);_.P=z_.prototype;_.P.computeSimpleText=function(G){return _.HY(G)};
_.P.onDarkChanged=function(){for(var G=_.Q(this.buttons||[]),c=G.next();!c.done;c=G.next())c.value.isOverlay=!!this.dark;G=_.Q(this.buttonRenderers||[]);for(c=G.next();!c.done;c=G.next())c.value.overrides=this.computeButtonOverride()};
_.P.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.P.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var G=_.sO(_.kL(),"aa");_.as(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||G||(this.isDarkThemeForced=this.dark=!0);this.logoType?(G=this.hostElement.querySelector("#masthead-logo"))&&(_.v("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.ST(G)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.lO(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.lO(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.P.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.lO(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.lO(this,this.onSetTheaterModeEnabled))};
_.P.dataChanged=function(){var G=this.data;G&&(this.voiceEnabled=G.voiceSearchButton?aaH().isSupported():!1,_.yV(_.gg(),this.menuButtonTargetId,this.guideButton),G.onReceivedActions&&G.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.cd(this.hostElement,G.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&G&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.as(this.hostElement,"dark",!1),_.as(this.hostElement,"theater",!1),(G=
this.hostElement.querySelector("#masthead-logo"))&&(_.v("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.ST(G))))};
_.P.computeCenterHidden=function(){var G;return this.data&&!((G=this.data.searchbox)==null?0:G.fusionSearchboxRenderer)};
_.P.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.as(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.P.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.P.onWatchScroll=function(G){this.watchPageScrollTop=G.detail||0;this.updateMastheadBackgroundOpacity()};
_.P.onFullscreenChangeAction=function(G){G||(this.watchPageScrollTop=0);this.fullscreen=G;this.updateMastheadBackgroundOpacity()};
_.P.onSetTheaterModeEnabled=function(G){this.theater=G.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.P.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.P.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.P.setBackgroundOpacity=function(G){G=this.calculateBackgroundOpacity(G);this.background.style.opacity=""+G};
_.P.calculateBackgroundOpacity=function(G){var c=this.theater?.6:0,I=this.hostElement.clientHeight/2;return Math.min(Math.max(G,0),I)/I*(1-c)+c};
_.P.shouldShowCinematicMastHead=function(){var G=_.v("kevlar_watch_grid")&&!_.v("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(G||this.pageDarkTheme)};
_.P.focusGuide=function(){this.guideButton.focus()};
_.P.onGuideToggleTap=function(){_.Xl(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.P.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.P.onGuideToggleHover=function(){_.Xl(this.hostElement,"yt-guide-hover")};
_.P.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.P.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.P.closeOnOutsideClickCondition=function(G){for(G=_.CE(G);G[0];){var c=G.shift();if(c instanceof Element&&c.id==="kbd")return!1}return!0};
_.P.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.P.pausePlayer=function(){var G;(G=_.ZA())==null||G.pause();this.pauseMiniplayer()};
_.P.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var G;(G=_.wH().resolve(_.tA).getPlayerElement())==null||G.pause()}};
_.P.isMiniplayerActive=function(){return _.wH().resolve(_.tA).isMiniplayerActive()};
_.P.updateNarrowFromBinding=function(G){this.narrow=G.detail.value};
_.P.onYtSendFeedbackAction=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.registerWithViewTransitionManager=function(){oSj(_.wH().resolve(_.mk),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.Nh.Object.defineProperties(z_.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.aiCompanionEnabled&&((G=this.data)==null?0:G.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var G;return(G=this.data)==null?void 0:G.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
z_.prototype.narrowChanged=z_.prototype.narrowChanged;z_.prototype.onWatchPageChange=z_.prototype.onWatchPageChange;z_.prototype.onRendererStamperFinished=z_.prototype.onRendererStamperFinished;z_.prototype.dataChanged=z_.prototype.dataChanged;z_.prototype.onDarkChanged=z_.prototype.onDarkChanged;_.r([_.L(_.Zu),_.h("design:type",Object)],z_.prototype,"ironResizableBehavior",void 0);_.r([_.L(_.oWF),_.h("design:type",Object)],z_.prototype,"ytdExpandableInputBehavior",void 0);
_.r([_.L(_.UX.YtdGuideStateAwareBehavior),_.h("design:type",Object)],z_.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],z_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],z_.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],z_.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wQ),_.h("design:type",Object)],z_.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],z_.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],z_.prototype,"narrow",void 0);_.r([_.E(),_.h("design:type",Object)],z_.prototype,"logoType",void 0);_.r([_.E(),_.h("design:type",Boolean)],z_.prototype,"voiceEnabled",void 0);
_.r([_.E(),_.h("design:type",Object)],z_.prototype,"menuStrings",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],z_.prototype,"dark",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],z_.prototype,"pageDarkTheme",void 0);_.r([_.E(),_.h("design:type",Object)],z_.prototype,"watchPageScrollTop",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.W$O}),_.h("design:type",Boolean)],z_.prototype,"isWatchPage",void 0);
_.r([_.E({reflectToAttribute:!0,selector:_.ixb}),_.h("design:type",Boolean)],z_.prototype,"isShortsPage",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],z_.prototype,"theater",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],z_.prototype,"fullscreen",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.jTg}),_.h("design:type",String)],z_.prototype,"frostedGlassMode",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],z_.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],z_.prototype,"aiCompanionEnabled",void 0);_.r([_.E(),_.h("design:type",Object)],z_.prototype,"ytSearchboxFocused",void 0);_.r([_.vB("#buttons > *"),_.h("design:type",Array)],z_.prototype,"buttons",void 0);_.r([_.vB("ytd-button-renderer"),_.h("design:type",Array)],z_.prototype,"buttonRenderers",void 0);
_.r([_.nH("#background"),_.h("design:type",HTMLDivElement)],z_.prototype,"background",void 0);_.r([_.nH("#guide-button"),_.h("design:type",Object)],z_.prototype,"guideButton",void 0);_.r([_.nH("#logo"),_.h("design:type",Object)],z_.prototype,"logo",void 0);_.r([_.E({computed:"computeButtonOverride(dark)"}),_.h("design:type",Object)],z_.prototype,"buttonOverrides",void 0);
_.r([_.uO("dark"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z_.prototype,"onDarkChanged",null);_.r([_.E({value:function(){return this.onVoiceTap.bind(this)}}),
_.h("design:type",Function)],z_.prototype,"boundOnTapVoiceButton",void 0);_.r([_.E(),_.h("design:type",Object)],z_.prototype,"topbarIsAboveChipbar",void 0);_.r([_.E(),_.h("design:type",String),_.h("design:paramtypes",[])],z_.prototype,"guideIcon",null);_.r([_.A("voiceEnabled"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],z_.prototype,"shouldShowVoiceSearchButton",null);
_.r([_.A("data.aiCompanionButton","aiCompanionEnabled"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],z_.prototype,"shouldShowAiCompanionButton",null);_.r([_.A("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],z_.prototype,"voiceSearchButton",null);_.r([_.A("aiCompanionEnabled"),_.h("design:type",String),_.h("design:paramtypes",[])],z_.prototype,"narrowQuery",null);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z_.prototype,"dataChanged",null);_.r([_.qY("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z_.prototype,"onRendererStamperFinished",null);_.r([_.uO("isWatchPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z_.prototype,"onWatchPageChange",null);
_.r([_.uO("narrow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z_.prototype,"narrowChanged",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-masthead"})],z_);
_.B(z_,"ytd-masthead",function(){if(lRu!==void 0)return lRu;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return lRu=G},{mode:_.Qc("kevlar_poly_si_batch_j036")?1:2});var MUg;var VUW={},zNr={},Exd={},JTH={},WfW=(JTH.OFFLINE=(VUW["publicytnetworkstatus-online"]="BACK_ONLINE",VUW),JTH.ONLINE=(zNr["publicytnetworkstatus-offline"]="OFFLINE",zNr),JTH.BACK_ONLINE=(Exd["publicytnetworkstatus-offline"]="OFFLINE",Exd.TIMER_TRIGGER="ONLINE",Exd),JTH),EV=function(){var G=_.J.apply(this,arguments)||this;G.currentState="ONLINE";G.scheduledJobId=0;G.bannerString="";G.bannerVe=null;G.networkStatusManagerInstance=new _.Kk;return G};
_.u(EV,_.J);_.P=EV.prototype;_.P.attached=function(){var G=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){G.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){G.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.detached=function(){var G=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){G.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){G.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.enterState=function(G){var c=this;this.scheduledJobId&&_.dJ.cancelJob(this.scheduledJobId);G==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):G==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.mJ("NO_INTERNET_CONNECTION",void 0,"No internet connection")):G==="BACK_ONLINE"&&(this.bannerString=_.mJ("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.W_(_.dJ,function(){c.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=G};
_.P.stateChangeHandler=function(G){(G=WfW[this.currentState][G])&&this.enterState(G)};
_.P.logVisibility=function(G){var c=_.k0();this.createBannerVe(G);c&&this.bannerVe&&(G?_.Bd(c,[this.bannerVe]):_.rU(c,[this.bannerVe]))};
_.P.createBannerVe=function(G){!this.bannerVe&&G&&(this.bannerVe=_.qj(37929),_.HE(_.DP(),this.bannerVe))};
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",String)],EV.prototype,"currentState",void 0);_.r([_.E(),_.h("design:type",Object)],EV.prototype,"scheduledJobId",void 0);_.r([_.E(),_.h("design:type",Object)],EV.prototype,"bannerString",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-network-status-banner"})],EV);
_.B(EV,"ytd-network-status-banner",function(){if(MUg!==void 0)return MUg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return MUg=
G},{mode:1});var iZH;var J6=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};G.hidden=!0;G.frostedGlass=_.v("web_frosted_glass");return G};
_.u(J6,_.J);J6.prototype.computeHidden=function(G){return G&&G.status?!1:!0};
J6.prototype.handleUpdatePermissionRoleCommand=function(G){if(G=_.D(G,_.Hxe))if(G=_.D(G.renderer,_.Clp))this.data=G};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],J6.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],J6.prototype,"componentBehavior",void 0);_.r([_.E({value:!0,computed:"computeHidden(data)"}),_.h("design:type",Object)],J6.prototype,"hidden",void 0);_.r([_.E(),_.h("design:type",Object)],J6.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],J6.prototype,"frostedGlass",void 0);
_.r([_.Jc({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],J6);
_.B(J6,"ytd-permission-role-bottom-bar-renderer",function(){if(iZH!==void 0)return iZH;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);return iZH=G},{mode:1});var fRF;var BYg;var x0u={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var W9=function(){return _.J.apply(this,arguments)||this};
_.u(W9,_.J);_.P=W9.prototype;_.P.attached=function(){this.JSC$21270_scroller&&(this.JSC$21270_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21270_scroller.attached&&typeof this.JSC$21270_scroller.attached==="function"&&this.JSC$21270_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(I){I.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var G=_.Q1(this.hostElement);G.querySelector("tp-yt-paper-radio-group").selected="";var c=G.querySelector("#reason-text");c&&(c.value="");G.querySelector("#description-text").value=""}};
_.P.canSubmit=function(G,c){_.Xl(this.hostElement,"yt-invalidate-popup-tabbables");return!(G&&c)};
_.P.onCancel=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.P.onSubmit=function(){var G=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(K){return K.active}).map(function(K){return K.innerText.trim()}),c=this.hostElement.querySelector("tp-yt-paper-radio-group"),I=c.selectedItem,R=I.name;
I=I.innerText.trim();var Z=c.querySelector("#reason-text");c=void 0;Z&&(c=Z.value);(Z=this.descriptionText.value)&&(Z=Z.trim());t1G(this.data.searchQuery,G,R,I,Z,c);_.ym(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.P.sendFormSubmitToast=function(){var G=_.Ge(_.mJ("SBOX_INAPPROPRIATE_TOAST"));_.ym(this.hostElement,"yt-open-popup-action",[G,this])};
_.P.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(G){return G.active})};
_.P.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
W9.prototype.onIronSelect=W9.prototype.onIronSelect;W9.prototype.onIronChange=W9.prototype.onIronChange;W9.prototype.dataChanged=W9.prototype.dataChanged;_.r([_.E(),_.h("design:type",Object)],W9.prototype,"data",void 0);_.r([_.E({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.h("design:type",Boolean)],W9.prototype,"submitDisabled",void 0);_.r([_.E(),_.h("design:type",Boolean)],W9.prototype,"suggestionSelected",void 0);
_.r([_.E(),_.h("design:type",Boolean)],W9.prototype,"catagorySelected",void 0);_.r([_.nH("#scroller"),_.h("design:type",Object)],W9.prototype,"JSC$21270_scroller",void 0);_.r([_.nH("#description-text"),_.h("design:type",Object)],W9.prototype,"descriptionText",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],W9.prototype,"dataChanged",null);
_.r([_.qY("iron-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],W9.prototype,"onIronChange",null);_.r([_.qY("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],W9.prototype,"onIronSelect",null);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],W9);
_.B(W9,"ytd-search-suggestion-report-dialog",function(){if(BYg!==void 0)return BYg;var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return BYg=G},{mode:1});var iM=function(G){var c=G.openPopupAction;var I=G.target;var R=G.container;var Z=G.popupContainerConfig;var K=G.getElement;G=G.removeWhenClosed===void 0?!1:G.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=c;this.target=I;this.container=R;this.popupContainerConfig=Z;this.getElement=K;this.JSC$21276_popupConfig=this.popupContainerConfig.JSC$20442_popupConfig[this.openPopupAction.popupType];this.rendererName=(c=this.getName())?_.emg(c,BT1(this.popupContainerConfig,
c)):"";_.v("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=G);this.createPopup()};
iM.prototype.updatePopup=function(G){this.openPopupAction=G;this.JSC$21276_popupConfig=this.popupContainerConfig.JSC$20442_popupConfig[this.openPopupAction.popupType];rT$(this);_.v("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
iM.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var tUj=function(G,c,I){(c=c&&G.JSC$21276_popupConfig.narrowProperties?G.JSC$21276_popupConfig.narrowProperties:G.JSC$21276_popupConfig.properties)&&I!==void 0&&(c.isAriaModal=I);jBd(G,c);G.isRtl()&&jBd(G,G.JSC$21276_popupConfig.rtlProperties);x57(G)};
iM.prototype.createPopup=function(){var G=this.JSC$21276_popupConfig.component;if(this.popupContent=hN1(this,this.rendererName)){if(G){this.popup=hN1(this,G);var c=this.popupContent;_.v("web_enable_wrapper_for_cow_component_in_popup")&&(c=document.createElement("div"),c.appendChild(this.popupContent));_.v("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21276_popupConfig.slotName&&c.setAttribute("slot",this.JSC$21276_popupConfig.slotName);G=this.popup;var I=this.container.tagName.toLowerCase();
_.Rs("desktop_web_boolean_flag_with_counterfactual_study");var R=_.yJ(c);_.Q7p(_.Ya(G),_.Z4(c,I,R));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.v("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Q1(this.container).appendChild(this.popup)}};
var rT$=function(G){var c,I,R=(c=G.openPopupAction.accessibilityData)==null?void 0:(I=c.accessibilityData)==null?void 0:I.label;R&&(G.popup.ariaLabel=R);var Z;((Z=G.popupContent.polymerController)!=null?Z:G.popupContent).data=(0,_.rx.unsafeClone)(G.openPopupAction.popup[G.getName()]);G.popupContent.duration=d5d(G);G.popupContent.positionType=G.openPopupAction.position;var K=G.openPopupAction.properties;K&&Object.keys(K).forEach(function(m){G.popupContent[m]=K[m]})},jBd=function(G,c){if(c)for(var I=
_.Q(Object.keys(c)),R=I.next();!R.done;R=I.next())R=R.value,G.popup[R]=c[R]},x57=function(G){if(G.openPopupAction.position){var c=G.JSC$21276_popupConfig.positionalProperties&&G.JSC$21276_popupConfig.positionalProperties[G.openPopupAction.position],I=G.JSC$21276_popupConfig.rtlPositionalProperties&&G.JSC$21276_popupConfig.rtlPositionalProperties[G.openPopupAction.position];
c=G.isRtl()&&I?I:c;c.shiftedHorizontalOffset&&(I=G.popup.style.display,G.popup.style.display="block",G.popupContent&&G.popup.positionTarget&&G.popupContent.clientWidth>G.popup.positionTarget.clientWidth&&(c.horizontalOffset=G.popup.positionTarget.clientWidth/2-c.shiftedHorizontalOffset),G.popup.style.display=I);jBd(G,c)}},Cg1=function(G,c,I){if(c){for(var R=_.Q(Object.keys(c)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,G.popup.style[Z]=c[Z];
if(I)for(c=_.Q(Object.keys(I)),R=c.next();!R.done;R=c.next())R=R.value,G.popup.style[R]=I[R]}};
iM.prototype.getName=function(){return _.hI(this.openPopupAction.popup,"renderer")||_.hI(this.openPopupAction.popup,"dialog")||_.hI(this.openPopupAction.popup,"model")||void 0};
var d5d=function(G){G=G.openPopupAction.durationHintMs;return G===0?G:Math.max(4E3,G||4E3)};
iM.prototype.isRtl=function(){return _.H1("HTML_DIR")==="rtl"};
var hN1=function(G,c){G=G.getElement(c,G.target);G==null&&_.Ck(new _.iW("popup getElement returned null",c));return G};var HZj={};
HZj.YtPopupContainerBehavior=[_.wm.YtComponentBehavior,_.HR.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.CR(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Hq(this.hostElement)},
closePopup:function(G){var c=this.createCacheKey(void 0,G);this.popups_[c]&&this.handleClosePopupAction_(void 0,G)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.dJ.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.dJ.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(G){G.opened&&G.keepBelowPlayer&&this.ensurePopupBelowPlayer(G)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var G in this.popups_){var c=this.popups_[G];if(c.popup.scrollAction==="refit"){var I=c.popup.positionTarget.getBoundingClientRect(),R=c.popup;I=I.top;var Z=c;if(!Z.naturalHeight){Z.popup.hidden=!1;Z.popup.style.position="fixed";Z.popup.style.top="0px";Z.popup.style.left="0px";var K=Z.popup.getBoundingClientRect();Z.naturalHeight=K.bottom-K.top;Z.popup.refit()}R.hidden=!(I>=Z.naturalHeight+60);c.popupContent.clientHeight===0&&c.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(G){this.popupContainerConfig=G},
handleOpenPopupAction:function(G,c){var I=G.openPopupAction,R=_.wH().resolve(_.qR(_.M1))&&I.popupType==="TOAST";R&&!I.uniqueId&&(I.uniqueId=_.Xb());if(!_.v("popup_container_parent_target_killswitch")){var Z;c=(Z=this.getParentTarget(c))!=null?Z:c}var K=this.ensurePopup_(I,c);return new _.Lk(function(m){K.then(function(a){if(!a)return m();this.maybeCreateNarrowMediaQuery_();var O=this.createCacheKey(a.rendererName,a.openPopupAction.uniqueId);if(I.showOncePerUniqueId){if(this.shownPopupKeys_.has(O))return m();
this.shownPopupKeys_.add(O)}O=this.popups_[O];var N=!(!O||!O.openPopupAction.beReused);N=!!I.reusePopup||N;if(a.popup.opened&&!N){R&&!a.openPopupAction.replacePopup||this.handleClosePopupAction_(a.rendererName,a.openPopupAction.uniqueId);N=I.popupType==="DIALOG"&&!_.v("popup_container_dialog_reopen_killswitch");if(!R&&!N&&O&&O.target==c&&!a.openPopupAction.replacePopup)return m();_.O$(a.popup,function(){this.completeOpenPopupAction_(I,c,a);m()}.bind(this))}else a.popup.opened?a.updatePopup(I):this.completeOpenPopupAction_(I,
c,a),m()}.bind(this))}.bind(this))},
getParentTarget:function(G){if(G&&G instanceof HTMLElement)for(var c=_.Q(Object.entries(this.popups_)),I=c.next();!I.done;I=c.next())if(I=_.Q(I.value),I.next(),I=I.next().value,this.popupClosesOnClick(I)&&I.popup.contains(G))return I.target},
popupClosesOnClick:function(G){return G.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(G.rendererName.toUpperCase())},
completeOpenPopupAction_:function(G,c,I){I.updatePopup(G);var R=this.narrowMediaQuery_.queryMatches,Z=this.isAriaModal;G=this.expandToFullWidth;I.target=c;var K;c=((K=I.target.polymerController)!=null?K:I.target).popupPositionTarget||I.target;I.JSC$21276_popupConfig.targetContainer&&(c=I.container);I.popup.positionTarget=c;I.popupContent.positionTarget=c;x57(I);I.JSC$21276_popupConfig.forceFocus&&(I.popupContent.style.outline="none");I.popupContent.tabIndex=-1;I.JSC$21276_popupConfig.narrowProperties&&
(I.popup.style.position="static");I.JSC$21276_popupConfig.preventAutonav&&I.popup.setAttribute("prevent-autonav",!0);I.JSC$21276_popupConfig.forceCloseOnOutsideClick&&I.popup.setAttribute("force-close-on-outside-click",!0);tUj(I,R,Z);K={};K.width=G?"100%":"";Cg1(I,I.JSC$21276_popupConfig.styles,K);I.isRtl()&&Cg1(I,I.JSC$21276_popupConfig.rtlStyles,K);if(!I.openPopupAction.shouldStopParentSignal){var m;G=(m=I.target.polymerController)!=null?m:I.target;(I.popupContent.startForwardingEvents||I.popupContainerConfig.forwardingEnabledPopups.has(I.rendererName))&&
G.parentComponent!==I.popupContent&&I.popupContent!==I.target&&I.target!==document.body&&(I.popupContent.startForwardingEvents?I.popupContent.startForwardingEvents(I.popupContainerConfig.forwardedEvents,I.target):(I.JSC$21276_eventForwarder||(I.JSC$21276_eventForwarder=new _.wG(I.popupContent)),I.JSC$21276_eventForwarder.start(I.popupContainerConfig.forwardedEvents,I.target)))}I=I.popup;I.addEventListener("iron-overlay-opened",_.lO(this,this.onPopupIronOverlayOpened_));I.addEventListener("iron-overlay-closed",
_.lO(this,this.onPopupIronOverlayClosed_));I.addEventListener("iron-overlay-canceled",_.lO(this,this.onPopupIronOverlayCanceled_));I.addEventListener("yt-refit",_.lO(this,this.refitPopup_));I.addEventListener("yt-invalidate-popup-tabbables",_.lO(this,this.handleInvalidatePopupTabbables_));I.open()},
getPopupDurationMs_:function(G){return G.durationHintMs===0?G.durationHintMs:Math.max(4E3,G.durationHintMs||4E3)},
handleClosePopupAction_:function(G,c){var I=_.v("web_popup_cache_key_killswitch")||!!c;if(G||I){var R=this.createCacheKey(G,c);G=(G=this.popups_[R])&&G.popup}else G=_.YFi(_.nV);if(G&&G.close){if(c=_.wH().resolve(_.qR(_.zb)))G.restoreFocusOnClose=c.isKeyBoardInUse();G.close();this.removePopup_(G,R)}},
handleClosePopupCommand_:function(G){G.closePopupCommand&&G.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,G.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(G){var c={},I;for(I in this.popups_)if(c={key$jscomp$1232:c.key$jscomp$1232},c.key$jscomp$1232=I,!G||!G.some(function(K){return function(m){return m==K.key$jscomp$1232}}(c))){var R=this.popups_[c.key$jscomp$1232],Z=R.popup;
_.wH().resolve(_.qR(_.M1))&&R.openPopupAction.popupType==="TOAST"||(Z&&Z.close&&Z.close(),this.removePopup_(Z,c.key$jscomp$1232))}},
handleClosePopupsAction_:function(G){G.forEach(function(c){var I=this.popups_[c];I&&((I=I.popup)&&I.close&&I.close(),this.removePopup_(I,c))}.bind(this))},
handleGetPopupOpenedAction_:function(G,c){return(c=this.createCacheKey(G,c))&&this.popups_[c]?this.popups_[G].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var G=[],c;for(c in this.popups_){var I=this.popups_[c];I.popup.opened&&G.push(I)}return G},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(G,c){_.v("ytpopup_disable_default_html_caching")&&G&&G.removeWhenClosed&&(_.Q1(this.hostElement).removeChild(G),c&&this.popups_[c]&&delete this.popups_[c])},
shouldReusePopup_:function(G){return!(!G||!G.reusePopup)||!(!G||!G.beReused)},
ensurePopup_:function(G,c){this.maybeCreateNarrowMediaQuery_();var I=_.hI(G.popup,"renderer")||_.hI(G.popup,"dialog")||_.hI(G.popup,"model");if(!I)return _.IP();I=_.emg(I,BT1(this.popupContainerConfig,I));return _.IP(this.getAndMaybeCreatePopup_(G,I,c))},
getAndMaybeCreatePopup_:function(G,c,I){var R=this.createCacheKey(c,G.uniqueId);if(this.popups_[R])return this.popups_[R];G=new iM({openPopupAction:G,target:I,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(c)});return this.popups_[R]=G},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(G){return _.v("ytpopup_disable_default_html_caching")?_.v("ytpopup_disable_cache_allowlist")?G&&this.doNotCacheList_.includes(G):G&&G.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.lO(this,this.openPopupQueryMatchesChanged_)),_.Q1(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(G){G=G.detail.value;for(var c in this.popups_)tUj(this.popups_[c],G)},
onPopupIronOverlayClosed_:function(G){var c=G.currentTarget,I=_.LyU(c);I=I.length>0?I[0]:c;if(I.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){G.detail.popup=c;G.detail.popupRenderer=I;var R,Z={context:{openingElement:((R=this.popups_[(I==null?void 0:I.is)||""])==null?void 0:R.target)||void 0}};Object.assign(Z,G.detail);var K;_.Xl((K=I.hostElement)!=null?K:I,"yt-popup-closed",Z);c.removeEventListener("yt-refit",_.lO(this,this.refitPopup_));c.removeEventListener("yt-invalidate-popup-tabbables",
_.lO(this,this.handleInvalidatePopupTabbables_));c.removeEventListener("iron-overlay-canceled",_.lO(this,this.onPopupIronOverlayCanceled_));c.removeEventListener("iron-overlay-closed",_.lO(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(c)}},
onPopupIronOverlayCanceled_:function(G,c){var I=G.currentTarget,R=_.LyU(I);R=R.length>0?R[0]:I;if(R.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){var Z;_.Xl((Z=R.hostElement)!=null?Z:R,"yt-popup-canceled",G.detail);Z=c?_.CE(c):null;(!c||["click","tap"].includes(c.type))&&!I.hasAttribute("force-close-on-outside-click")&&I.positionTarget&&Z&&Z.includes(I.positionTarget)&&G.preventDefault();I.restoreFocusOnClose=_.Ha.keyboardEventMatchesKeys(c,"esc")}},
onPopupIronOverlayOpened_:function(G){G=G.currentTarget;var c=_.LyU(G);c=c.length>0?c[0]:G;var I,R;_.Xl((I=c.hostElement)!=null?I:c,"yt-popup-opened",(R=c.hostElement)!=null?R:c);G.keepBelowPlayer&&(this.ensurePopupBelowPlayer(G,!0),this.dynamicallyPositionedElements_.add(G));I=_.wH().resolve(_.qR(_.zb));R=!!c.querySelector("#toast");I&&I.isKeyBoardInUse()&&!R&&(typeof c.focusFirstItem==="function"?c.focusFirstItem():(c=_.X7A(G),c.length&&c[0].focus()));G.removeEventListener("iron-overlay-opened",
_.lO(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(G){G=G.currentTarget;G.refit&&G.refit()},
refitPopups_:function(){for(var G in this.popups_)this.popups_[G].refit()},
handleInvalidatePopupTabbables_:function(G){G=G.currentTarget;G.invalidateTabbables&&G.invalidateTabbables()},
createCacheKey:function(G,c){return _.v("web_popup_cache_key_killswitch")?c?G+"#"+c:G:c?"#"+c:G},
openSheet:function(G,c){var I=G==null?void 0:G.openPopupActionCommand;if(!I&&(G==null?0:G.viewModel)){if(G.sheetPosition)a:switch(G.sheetPosition){case "SHEET_POSITION_RIGHT":I="OPEN_POPUP_POSITION_RIGHT";break a;default:I="OPEN_POPUP_POSITION_UNKNOWN"}else I=void 0;I={openPopupAction:{popup:{sheetViewModel:G.viewModel},popupType:"CONTEXTUAL_SHEET",position:I}}}if(I){var R;this.expandToFullWidth=(R=G==null?void 0:G.expandToFullWidth)!=null?R:!1;this.handleOpenPopupAction(I,c)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var G=this;return _.T(function(c){return c.return(G.handleGetOpenedPopupsAction_().filter(function(I){var R;return((R=I.openPopupAction)==null?void 0:R.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(G,c,I){if(_.v("web_dialog_utils_killswitch")){var R=G==null?void 0:G.openPopupActionCommand,Z=(I==null?0:I.ariaLabel)?{accessibilityData:{accessibilityData:{label:I.ariaLabel}}}:void 0;!R&&(G==null?0:G.viewModel)&&(R={openPopupAction:Object.assign({},{popup:{dialogViewModel:G.viewModel},popupType:(I==null?0:I.isModal)?"MODAL":"DIALOG"},Z&&Z)});R&&this.handleOpenPopupAction(R,c)}else{if(Z=G==null?void 0:G.viewModel){var K=I=I===void 0?{}:I;I=K.ariaLabel;Z={popup:{dialogViewModel:Z},
popupType:K.isModal?"MODAL":"DIALOG"};K={accessibilityData:{label:I}};I&&(Z.accessibilityData=K);Z={openPopupAction:Z}}else Z=void 0;if(Z=(R=Z)!=null?R:G==null?void 0:G.openPopupActionCommand)this.isAriaModal=_.v("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Z,c)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var G=this;return _.T(function(c){return c.return(G.handleGetOpenedPopupsAction_().filter(function(I){var R;return((R=I.openPopupAction)==null?void 0:R.popupType)==="DIALOG"}).length>0)})}}];var XA0;var yTF;var gx1=_.I3(["about:blank"]),fK=function(){var G=_.J.apply(this,arguments)||this;G.isMuted=!1;G.pageLoadTimeoutId=void 0;G.enableA11yFocusFix=_.v("enable_a11y_focus_fix_for_mac_panel_on_desktop");G.moveFocusToContent=function(){G.iframe.focus()};
return G};
_.u(fK,_.J);_.P=fK.prototype;_.P.dataChanged=function(){var G=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var c=this.data.url,I=_.Cj(c);_.v("enable_yt_ata_iframe_authuser")?(I=_.Cj(c),_.IE(this.iframe,hdW(I))):_.IE(this.iframe,I);this.pageLoadTimeoutId=_.W_(_.E_(),function(){return void G.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.FI({destination:window,iframe:this.iframe,origin:_.NFi(I.toString()),channelName:"ataiframe",onMessage:_.DNp(oe1,function(R){UIu(R.data)?(R=_.Xj(R.data,1,_.Pu,_.qw()),R.length!==1?_.Ck(Error("Nl")):(R=R[0],R===3?(G.isMuted=!0,G.logStateChanged({adMuteRequested:!0})):R===1&&G.close())):_.Ck(Error("Ol"))}),
onEstablished:function(){G.cancelPageLoadTimeout();G.logStateChanged({pageLoadSucceeded:!0})}})}};
_.P.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.E_().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.P.logStateChanged=function(G){var c;if((c=this.data)==null?0:c.trackingParams)G={adsClientData:{aboutThisAdData:G}},_.DP().stateChanged(this.data.trackingParams,G)};
_.P.close=function(){_.ym(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.handlesPopupClosed=function(G,c){var I=this,R,Z;return _.T(function(K){if(K.nextAddress==1)return _.H1("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ym(I.hostElement,"on-about-this-ad-popup-closed",[I.isMuted,c]),K.jumpTo(0)):G&&d0r(G)?K.yield(CIu(G),4):(I.isMuted&&_.ym(I.hostElement,"yt-mute-ad-action",[I.is,I]),K.jumpTo(0));if(R=K.yieldResult){var m=Z=new _.qZ(R),a=I.isMuted;m.getOptions().includes("onAboutThisAdPopupClosed")?_.$mp(m,"onAboutThisAdPopupClosed",{isMuted:a,layoutId:c}):_.H8("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Vp(K)})};
_.P.onPopupClosed=function(G){var c=this,I,R;return _.T(function(Z){I=_.D3(gx1);_.IE(c.iframe,I);c.cancelPageLoadTimeout();if(!c.data)return Z.jumpTo(0);c.ytRendererBehavior.markDirty();R=G.detail.context.openingElement;return Z.yield(c.handlesPopupClosed(R,c.data.layoutId),0)})};
_.P.detached=function(){this.cancelPageLoadTimeout()};
_.P.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fK.prototype.onPopupClosed=fK.prototype.onPopupClosed;fK.prototype.dataChanged=fK.prototype.dataChanged;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.r([_.nH("#iframe"),_.h("design:type",HTMLIFrameElement)],fK.prototype,"iframe",void 0);_.r([_.E(),_.h("design:type",Object)],fK.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fK.prototype,"dataChanged",null);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype",Promise)],fK.prototype,"onPopupClosed",null);_.r([_.Em({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],fK);
_.B(fK,"yt-about-this-ad-renderer",function(){if(yTF===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;XA0===void 0&&(XA0=document.createElement("template"));var R=XA0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);yTF=G}G=yTF;return G},{mode:2});var YJr;var GL1;var crj=function(G){var c=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.maxFileSizeMB=G;Object.setPrototypeOf(this,crj.prototype)};
_.u(crj,Error);var IBg=function(G,c){var I=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=I.message;"stack"in I&&(this.stack=I.stack);this.minWidth=G;this.minHeight=c;Object.setPrototypeOf(this,IBg.prototype)};
_.u(IBg,Error);var RPd=function(G){this.requirements=G;this.JSC$21304_maxFileSize=G.maxFileSizeMB*1024*1024},ZWW=function(G,c){if(c.size>G.JSC$21304_maxFileSize)throw new crj(G.requirements.maxFileSizeMB);
};var KhF=function(G,c){this.canvas=G;this.imageEditorBuilder=c};
KhF.prototype.addEventListeners=function(G){var c=function(Z){P$u(G,Z)};
this.JSC$21310_mouseDownEvent=c;var I=function(Z){Q8H(G,Z)};
this.JSC$21310_mouseMoveEvent=I;var R=function(){m1G(G)};
this.JSC$21310_mouseUpEvent=R;this.canvas.addEventListener("mousedown",c);this.canvas.addEventListener("mousemove",I);document.addEventListener("mouseup",R)};
KhF.prototype.removeEventListeners=function(){this.JSC$21310_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21310_mouseDownEvent);this.JSC$21310_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21310_mouseMoveEvent);this.JSC$21310_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21310_mouseUpEvent)};
var aBW=function(G,c){G.removeEventListeners();return new Promise(function(I){var R=new Image;R.crossOrigin="anonymous";R.onload=function(){var Z=G.imageEditorBuilder(G.canvas,R);G.addEventListeners(Z);I(Z)};
R.src=c})},B9=function(G,c,I,R,Z,K,m,a){this.canvas=G;
this.image=c;this.requiredRatio=I;this.minImageCropDimension=R;this.minOutputImageResolution=Z;this.component=K;this.styleFocusedCorner=a===void 0?!0:a;this.action=2;this.focusedCorner=this.resizeCorner=0;G=this.canvas.getContext("2d");if(!G)throw Error("Pl");this.ctx=G;this.canvasMargin=m!=null?m:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;m=this.image;G=this.canvasInnerWidth/m.width;m.height*G>912&&(G=m.width/m.height*912/m.width);m=G;this.scaledImageWidth=this.canvas.width%2?
X7W(this.image.width*m):HmW(this.image.width*m);this.scaledImageHeight=Math.round(this.image.height*m);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21313_overlayMarginBottom=this.JSC$21313_overlayMarginTop=this.canvasMargin;this.JSC$21313_overlayMarginRight=this.JSC$21313_overlayMarginLeft=this.horizontalMargin;this.JSC$21313_overlayWidth=this.scaledImageWidth;this.JSC$21313_overlayHeight=this.scaledImageHeight;
G=this.image.width/this.image.height;G>this.requiredRatio?(this.JSC$21313_overlayWidth=this.canvas.width%2?X7W(this.scaledImageHeight*this.requiredRatio):HmW(this.scaledImageHeight*this.requiredRatio),this.JSC$21313_overlayMarginRight=this.JSC$21313_overlayMarginLeft=(this.canvas.width-this.JSC$21313_overlayWidth)/2):G<this.requiredRatio&&(this.JSC$21313_overlayHeight=this.canvas.height%2?X7W(this.scaledImageWidth/this.requiredRatio):HmW(this.scaledImageWidth/this.requiredRatio),this.JSC$21313_overlayMarginBottom=
this.JSC$21313_overlayMarginTop=(this.canvas.height-this.JSC$21313_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*m,this.scaledImageWidth);T9d(this)};
B9.prototype.getContext=function(){return this.ctx};
var P$u=function(G,c){c={x:Math.round(c.pageX-G.canvas.getBoundingClientRect().left),y:Math.round(c.pageY-G.canvas.getBoundingClientRect().top)};G.dragStart=c;OW1(G,c)!==0?(G.action=1,ePg(G,c),G.resizeCorner=OW1(G,c)):c.x>G.JSC$21313_overlayMarginLeft&&c.x<G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth&&c.y>G.JSC$21313_overlayMarginTop&&c.y<G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight&&(G.action=0)},N9u=function(G,c){switch(c){case 1:return{x:G.JSC$21313_overlayMarginLeft,
y:G.JSC$21313_overlayMarginTop};case 2:return{x:G.JSC$21313_overlayMarginLeft,y:G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight};case 3:return{x:G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth,y:G.JSC$21313_overlayMarginTop};case 4:return{x:G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth,y:G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight};default:throw Error("Ql");}},qjj=function(G,c){if(G.focusedCorner!==0){G.dragStart=N9u(G,G.focusedCorner);
G.action=1;G.resizeCorner=G.focusedCorner;var I=G.dragStart.x,R=G.dragStart.y;switch(c){case 0:G.focusedCorner===1||G.focusedCorner===4?(I-=10,R-=10):(I-=10,R+=10);break;case 1:G.focusedCorner===1||G.focusedCorner===4?(I+=10,R+=10):(I+=10,R-=10);break;case 2:I=G.focusedCorner===1||G.focusedCorner===4?I-10:I+10;R-=10;break;case 3:I=G.focusedCorner===1||G.focusedCorner===4?I+10:I-10;R+=10;break;default:throw Error("Rl");}lB7(G,{x:I,y:R});T9d(G);G.action=2;G.dragStart=void 0}},Q8H=function(G,c){c={x:Math.round(c.pageX-
G.canvas.getBoundingClientRect().left),
y:Math.round(c.pageY-G.canvas.getBoundingClientRect().top)};ePg(G,c);switch(G.action){case 1:lB7(G,c);break;case 0:G.dragStart&&(G.JSC$21313_overlayMarginLeft=Math.max(G.horizontalMargin,Math.min(G.JSC$21313_overlayMarginLeft-(G.dragStart.x-c.x),G.horizontalMargin+G.scaledImageWidth-G.JSC$21313_overlayWidth)),G.JSC$21313_overlayMarginRight=G.canvas.width-G.JSC$21313_overlayMarginLeft-G.JSC$21313_overlayWidth,G.JSC$21313_overlayMarginTop=Math.max(G.canvasMargin,Math.min(G.JSC$21313_overlayMarginTop-
(G.dragStart.y-c.y),G.scaledImageHeight-G.JSC$21313_overlayHeight+G.canvasMargin)),G.JSC$21313_overlayMarginBottom=G.canvas.height-(G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight));break;default:return}T9d(G);G.dragStart=c},m1G=function(G){G.action=2;
G.dragStart=void 0;document.body.style.cursor="auto"},ePg=function(G,c){switch(OW1(G,c)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:G.action!==1&&(document.body.style.cursor="auto")}},OW1=function(G,c){var I=G.JSC$21313_overlayMarginLeft-5,R=G.JSC$21313_overlayMarginTop-5,Z=G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth-5;
G=G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight-5;return wnF(c,{x:I,y:R})?1:wnF(c,{x:Z,y:R})?3:wnF(c,{x:I,y:G})?2:wnF(c,{x:Z,y:G})?4:0},wnF=function(G,c){return G.x>=c.x&&G.x<=c.x+10&&G.y>=c.y&&G.y<=c.y+10},lB7=function(G,c){if(G.dragStart)switch(G.resizeCorner){case 2:Math.abs((G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth-c.x)/(c.y-G.JSC$21313_overlayMarginTop))>=G.requiredRatio?Fhg(G,c.x):n8F(G,c.y);
break;case 1:Math.abs((G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth-c.x)/(G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight-c.y))>=G.requiredRatio?v8u(G,c.x):n8F(G,c.y);break;case 4:Math.abs((c.x-G.JSC$21313_overlayMarginLeft)/(c.y-G.JSC$21313_overlayMarginTop))>=G.requiredRatio?Fhg(G,c.x):D11(G,c.y);break;case 3:Math.abs((c.x-G.JSC$21313_overlayMarginLeft)/(G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight-c.y))>=G.requiredRatio?v8u(G,c.x):D11(G,c.y);break;default:throw Error("Sl");
}},Fhg=function(G,c){var I=G.JSC$21313_overlayMarginTop;
G.JSC$21313_overlayMarginBottom=o8H(G,c);G.JSC$21313_overlayHeight=G.canvas.height-G.JSC$21313_overlayMarginBottom-I;G.JSC$21313_overlayWidth=Math.round(G.JSC$21313_overlayHeight*G.requiredRatio);U1g(G)},v8u=function(G,c){var I=G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight;
G.JSC$21313_overlayMarginTop=o8H(G,c);G.JSC$21313_overlayHeight=I-G.JSC$21313_overlayMarginTop;G.JSC$21313_overlayWidth=Math.round(G.JSC$21313_overlayHeight*G.requiredRatio);U1g(G)},U1g=function(G){switch(G.resizeCorner){case 2:case 1:G.JSC$21313_overlayMarginLeft=G.canvas.width-G.JSC$21313_overlayMarginRight-G.JSC$21313_overlayWidth;
break;case 4:case 3:G.JSC$21313_overlayMarginRight=G.canvas.width-G.JSC$21313_overlayMarginLeft-G.JSC$21313_overlayWidth;break;default:throw Error("Sl");}},n8F=function(G,c){var I=G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth;
G.JSC$21313_overlayMarginLeft=ur$(G,c);G.JSC$21313_overlayWidth=I-G.JSC$21313_overlayMarginLeft;G.JSC$21313_overlayHeight=Math.round(G.JSC$21313_overlayWidth/G.requiredRatio);bWu(G)},D11=function(G,c){var I=G.JSC$21313_overlayMarginLeft;
G.JSC$21313_overlayMarginRight=ur$(G,c);G.JSC$21313_overlayWidth=G.canvas.width-G.JSC$21313_overlayMarginRight-I;G.JSC$21313_overlayHeight=Math.round(G.JSC$21313_overlayWidth/G.requiredRatio);bWu(G)},bWu=function(G){switch(G.resizeCorner){case 2:case 4:G.JSC$21313_overlayMarginBottom=G.canvas.height-G.JSC$21313_overlayMarginTop-G.JSC$21313_overlayHeight;
break;case 1:case 3:G.JSC$21313_overlayMarginTop=G.canvas.height-G.JSC$21313_overlayMarginBottom-G.JSC$21313_overlayHeight;break;default:throw Error("Sl");}},o8H=function(G,c){switch(G.resizeCorner){case 2:c=G.canvas.height-(G.JSC$21313_overlayMarginTop+kLu(G,c));
break;case 4:c=G.canvas.height-(G.JSC$21313_overlayMarginTop+s87(G,c));break;case 1:c=G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight-kLu(G,c);break;case 3:c=G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight-s87(G,c);break;default:throw Error("Sl");}return Math.max(c,G.canvasMargin)},kLu=function(G,c){c=G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth-Math.max(c,G.horizontalMargin);
c=c<0?G.JSC$21313_overlayWidth:Math.max(c,G.minOverlayWidth);return Math.round(c/G.requiredRatio)},s87=function(G,c){c=G.canvas.width-Math.max(G.canvas.width-c,G.horizontalMargin)-G.JSC$21313_overlayMarginLeft;
c=c<0?G.JSC$21313_overlayWidth:Math.max(c,G.minOverlayWidth);return Math.round(c/G.requiredRatio)},ur$=function(G,c){switch(G.resizeCorner){case 2:c=G.canvas.width-G.JSC$21313_overlayMarginRight-Lh1(G,c);
break;case 4:c=G.canvas.width-G.JSC$21313_overlayMarginLeft-Lh1(G,c);break;case 1:c=G.canvas.width-G.JSC$21313_overlayMarginRight-Arr(G,c);break;case 3:c=G.canvas.width-G.JSC$21313_overlayMarginLeft-Arr(G,c);break;default:throw Error("Sl");}return Math.max(c,G.horizontalMargin)},Lh1=function(G,c){c=G.canvas.height-Math.max(G.canvas.height-c,G.canvasMargin)-G.JSC$21313_overlayMarginTop;
return c<0?G.JSC$21313_overlayWidth:Math.max(Math.round(c*G.requiredRatio),G.minOverlayWidth)},Arr=function(G,c){c=G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight-Math.max(c,G.canvasMargin);
return c<0?G.JSC$21313_overlayWidth:Math.max(Math.round(c*G.requiredRatio),G.minOverlayWidth)},T9d=function(G){G.ctx.clearRect(0,0,G.canvas.width,G.canvas.height);
G.ctx.drawImage(G.image,0,0,G.image.width,G.image.height,G.horizontalMargin,G.canvasMargin,G.canvas.width-2*G.horizontalMargin,G.scaledImageHeight);G.ctx.fillStyle="rgba(0, 0, 0, 0.7)";G.ctx.fillRect(G.horizontalMargin,G.JSC$21313_overlayMarginTop,G.JSC$21313_overlayMarginLeft-G.horizontalMargin,G.JSC$21313_overlayHeight);G.ctx.fillRect(G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth,G.JSC$21313_overlayMarginTop,G.JSC$21313_overlayMarginRight-G.horizontalMargin,G.JSC$21313_overlayHeight);G.ctx.fillRect(G.horizontalMargin,
G.canvasMargin,G.scaledImageWidth,G.JSC$21313_overlayMarginTop-G.canvasMargin);G.ctx.fillRect(G.horizontalMargin,G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight,G.scaledImageWidth,G.JSC$21313_overlayMarginBottom-G.canvasMargin);G.drawOverlay();G.component&&_.Xl(G.component,"image-updated")};
B9.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21313_overlayMarginLeft,this.JSC$21313_overlayMarginTop,this.JSC$21313_overlayWidth,this.JSC$21313_overlayHeight);$1u(this)};
var $1u=function(G){var c=G.JSC$21313_overlayMarginLeft-5,I=G.JSC$21313_overlayMarginTop-5,R=G.JSC$21313_overlayMarginLeft+G.JSC$21313_overlayWidth-5,Z=G.JSC$21313_overlayMarginTop+G.JSC$21313_overlayHeight-5;G.ctx.fillStyle="#FFF";G.ctx.fillRect(c,I,10,10);G.ctx.strokeRect(c,I,10,10);G.ctx.fillRect(R,I,10,10);G.ctx.strokeRect(R,I,10,10);G.ctx.fillRect(c,Z,10,10);G.ctx.strokeRect(c,Z,10,10);G.ctx.fillRect(R,Z,10,10);G.ctx.strokeRect(R,Z,10,10);if(G.focusedCorner!==0&&G.styleFocusedCorner){G.ctx.lineWidth=
4;G.ctx.strokeStyle="#3EA6FF";switch(G.focusedCorner){case 1:--c;--I;break;case 2:--c;I=Z-1;break;case 3:c=R-1;--I;break;case 4:c=R-1;I=Z-1;break;default:return}G.ctx.strokeRect(c,I,12,12)}};
B9.prototype.crop=function(G,c){c=c===void 0?!0:c;var I=this.image.width/this.scaledImageWidth,R=document.createElement("canvas"),Z=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],K=this.JSC$21313_overlayWidth*I,m=this.JSC$21313_overlayHeight*I;R.width=Math.max(K,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);R.height=Math.max(m,Z);G&&(R.width=Math.min(R.width,R.height),R.height=Math.min(R.width,R.height));
G=R.getContext("2d");if(!G)throw Error("Gl");Z=(this.JSC$21313_overlayMarginLeft-this.horizontalMargin)*I;I*=this.JSC$21313_overlayMarginTop-this.canvasMargin;c||(G.fillStyle="white",G.fillRect(0,0,R.width,R.height));G.drawImage(this.image,Z,I,K,m,0,0,R.width,R.height);return R};var SjG=function(G,c,I,R,Z){B9.call(this,G,c,I,R,void 0,Z,8,!1)};
_.u(SjG,B9);SjG.prototype.drawOverlay=function(){var G=this.getContext(),c=this.JSC$21313_overlayWidth,I=this.JSC$21313_overlayHeight,R=this.JSC$21313_overlayMarginTop,Z=this.JSC$21313_overlayMarginLeft;G.lineWidth=2;G.strokeStyle="#3EA6FF";G.beginPath();G.arc(Z+c/2,R+I/2,c/2,0,2*Math.PI);G.stroke();G.strokeRect(Z,R,c,I);$1u(this)};
var pnH={maxFileSizeMB:15,minWidth:98,minHeight:98},MeG=["image/png","image/jpeg","image/gif"],ru=function(){var G=_.J.apply(this,arguments)||this;G.fileSelectorFocusListener=null;G.errorMessage=null;G.isLoading=!0;G.hideContainer=!0;G.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return G};
_.u(ru,_.J);_.P=ru.prototype;_.P.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.P.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.P.computePlaylistThumbnail=function(G){return G==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.P.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ym(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.P.setErrorState=function(G){this.resetErrorState();G&&(this.errorMessage=G)};
_.P.showPopup=function(){var G=this;this.hideContainer=!1;_.W_(_.dJ,function(){_.Xl(G.hostElement,"yt-refit")});
this.isLoading=!1};
_.P.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.P.closePopup=function(){this.resetFileSelector();_.ym(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onCancelTap=function(){this.isPlaylistThumbnail||_.ym(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.P.openFileSelector=function(){var G=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.W_(_.dJ,function(){setTimeout(function(){if(!G.fileSelector.files||G.fileSelector.files.length===0)G.onCancelTap();G.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(c){c instanceof Error?_.hg(c):_.dj(new _.iW(JSON.stringify(c)))}};
_.P.handleFileSelection=function(){var G=this,c,I,R,Z,K,m;return _.T(function(a){switch(a.nextAddress){case 1:_.s9(a,2);if(!G.fileSelector.files||!G.imageEditorCanvas)return G.onCancelTap(),a.return();c=G.fileSelector.files[0];ZWW(G.imageChecker,c);_.s9(a,4);return a.yield(ln1(c),6);case 6:G.mimeType=a.yieldResult;_.Pl(a,5,2);break;case 4:_.M3(a,2),_.ym(G.hostElement,"yt-image-selection-error-action",[(I=G.data)==null?void 0:I.genericImageLoadErrorMessage]),G.onCancelTap();case 5:R=new FileReader;
R.addEventListener("load",function(){var O,N;return _.T(function(q){if(q.nextAddress==1){if(!R.result)return _.Ck(Error("Il")),q.return();O=R.result;N=new Image;N.src=O;N.onload=function(){try{var w=G.imageChecker;if(N.width<w.requirements.minWidth||N.height<w.requirements.minHeight)throw new IBg(w.requirements.minWidth,w.requirements.minHeight);}catch(n){if(n instanceof IBg){var F;_.ym(G.hostElement,"yt-image-selection-error-action",[(F=G.data)==null?void 0:F.imageDimensionErrorMessage]);G.logImageDimensionErrorVe()}else n instanceof
Error?_.hg(n):(w=new _.iW(JSON.stringify(n)),_.hg(w));G.onCancelTap()}G.showPopup()};
N.onerror=function(){var w;_.ym(G.hostElement,"yt-image-selection-error-action",[(w=G.data)==null?void 0:w.genericImageLoadErrorMessage]);G.onCancelTap()};
return q.yield(aBW(G.imageEditorCanvas,O),2)}G.imageEditor=q.yieldResult;G.updatePositionOfAllCorners();G.addEventListeners(G.imageEditor);_.Vp(q)})},!1);
R.readAsDataURL(c);_.Pl(a,0);break;case 2:Z=_.M3(a),Z instanceof crj?_.ym(G.hostElement,"yt-image-selection-error-action",[(K=G.data)==null?void 0:K.imageSizeErrorMessage]):(Z instanceof Error?_.hg(Z):_.dj(new _.iW(JSON.stringify(Z))),_.ym(G.hostElement,"yt-image-selection-error-action",[(m=G.data)==null?void 0:m.genericImageLoadErrorMessage])),G.onCancelTap(),_.Vp(a)}})};
_.P.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var G=_.vI(_.DP(),{veType:232707,visualElement:_.qj(232707)});G&&(G={visualElement:G},_.nd().reportShown(G))}};
_.P.handleImageSelectionErrorAction=function(G){this.isPlaylistThumbnail&&_.w5g(this.hostElement,G)};
_.P.convertToImageFormatBundle=function(G){var c=this,I,R,Z;return _.T(function(K){switch(K.nextAddress){case 1:return I=G.toDataURL(c.outputMimeType,1),K.yield(qFg(I),2);case 2:R=K.yieldResult;_.s9(K,3);ZWW(c.imageChecker,R);_.Pl(K,4);break;case 3:Z=_.M3(K);if(!(Z instanceof crj))throw Z;_.Ck(new _.iW("Output size is bigger than input size for image",c.mimeType,c.outputMimeType,R.size));I=G.toDataURL("image/jpeg",.95);return K.yield(qFg(I),6);case 6:R=K.yieldResult;case 4:return K.return({dataUrl:I,
imageFile:R})}})};
_.P.handleUploadImageToScottyCommand=function(G){var c=this,I,R,Z,K,m,a,O,N,q,w;return _.T(function(F){switch(F.nextAddress){case 1:if(!c.imageEditor||!_.D(G,Wju))return F.return();I=_.D(G,Wju).scottyUploadUrl;if(!I){var n=new _.iW("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.hg(n);return F.return()}_.s9(F,2);c.setLoadingState();R=c.imageEditor.crop(!1,!1);return F.yield(c.convertToImageFormatBundle(R),4);case 4:return Z=F.yieldResult,F.yield(edW(Z.imageFile,I),5);
case 5:K=F.yieldResult;((m=c.data)==null?0:m.onUploadEndpoint)?(a=c.buildUploadServiceEndpoint(K),c.ytComponentBehavior.resolveCommand(a),O=_.D(a,_.ql),((N=O)==null?0:N.params)?c.closePopup():c.resetFileSelector()):(_.ym(c.hostElement,"yt-image-updated-action",[Z.dataUrl,K]),c.closePopup());_.Pl(F,0);break;case 2:q=_.M3(F),c.setErrorState((w=c.data)==null?void 0:w.uploadErrorMessage),q instanceof Error?_.hg(q):(n=new _.iW(JSON.stringify(q)),_.hg(n)),_.Vp(F)}})};
_.P.buildUploadServiceEndpoint=function(G){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",G),this.data.onUploadEndpoint):null};
_.P.dataChanged=function(){var G=this,c;return _.T(function(I){if(I.nextAddress==1){if(!G.data||!G.canvasElement)return I.return();G.data.imageRatio&&G.data.minImageCropWidth||_.dj(new _.iW("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));c=function(R,Z){return G.data.imageType==="IMAGE_TYPE_AVATAR"?new SjG(R,Z,G.data.imageRatio,[G.data.minImageCropWidth,G.data.minImageCropWidth/G.data.imageRatio],G.hostElement):new B9(R,Z,G.data.imageRatio,[G.data.minImageCropWidth,
G.data.minImageCropWidth/G.data.imageRatio],void 0,G.hostElement,8,!1)};
G.imageEditorCanvas=new KhF(G.canvasElement,c);return G.data.url?I.yield(aBW(G.imageEditorCanvas,G.data.url),3):(G.hideContainer=!0,G.openFileSelector(),I.jumpTo(0))}G.imageEditor=I.yieldResult;G.showPopup();G.addEventListeners(G.imageEditor);_.Vp(I)})};
_.P.addEventListeners=function(G){this.removeEventListeners();var c=function(Z){P$u(G,Z)};
this.JSC$21321_mouseDownEvent=c;var I=function(Z){Q8H(G,Z)};
this.JSC$21321_mouseMoveEvent=I;var R=function(){m1G(G)};
this.JSC$21321_mouseUpEvent=R;this.topLeftCorner.addEventListener("mousedown",c);this.topLeftCorner.addEventListener("mousemove",I);this.topLeftCorner.addEventListener("mouseup",R);this.topRightCorner.addEventListener("mousedown",c);this.topRightCorner.addEventListener("mousemove",I);this.topRightCorner.addEventListener("mouseup",R);this.bottomLeftCorner.addEventListener("mousedown",c);this.bottomLeftCorner.addEventListener("mousemove",I);this.bottomLeftCorner.addEventListener("mouseup",R);this.bottomRightCorner.addEventListener("mousedown",
c);this.bottomRightCorner.addEventListener("mousemove",I);this.bottomRightCorner.addEventListener("mouseup",R)};
_.P.removeEventListeners=function(){this.JSC$21321_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21321_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21321_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21321_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21321_mouseDownEvent));this.JSC$21321_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21321_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21321_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21321_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21321_mouseMoveEvent));this.JSC$21321_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21321_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21321_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21321_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21321_mouseUpEvent))};
_.P.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var G=document.activeElement;G&&G.shadowRoot&&G.shadowRoot.activeElement;)G=G.shadowRoot.activeElement;switch(G){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.P.updatePositionOfCorner=function(G,c){var I=G.y-c.offsetHeight/2+4;c.style.left=G.x-c.offsetWidth/2+16+"px";c.style.top=I+"px"};
_.P.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var G=_.Q([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),c=G.next();!c.done;c=G.next()){c=c.value;var I=N9u(this.imageEditor,c.corner);this.updatePositionOfCorner(I,c.div)}};
_.P.onLeft=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(qjj(this.imageEditor,0),this.updatePositionOfAllCorners(),G.preventDefault())};
_.P.onRight=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(qjj(this.imageEditor,1),this.updatePositionOfAllCorners(),G.preventDefault())};
_.P.onUp=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(qjj(this.imageEditor,2),this.updatePositionOfAllCorners(),G.preventDefault())};
_.P.onDown=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(qjj(this.imageEditor,3),this.updatePositionOfAllCorners(),G.preventDefault())};
_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Nh.Object.defineProperties(ru.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&MeG.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var G,c,I;((c=this.data)==null?0:c.imageRatio)&&((I=this.data)==null?0:I.minImageCropWidth)?G={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:G=pnH;return new RPd(G)}}});
ru.prototype.updatePositionOfAllCorners=ru.prototype.updatePositionOfAllCorners;ru.prototype.dataChanged=ru.prototype.dataChanged;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],ru.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],ru.prototype,"ytComponentBehavior",void 0);_.r([_.L(_.Ha),_.h("design:type",Object)],ru.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.nH("#canvas"),_.h("design:type",HTMLCanvasElement)],ru.prototype,"canvasElement",void 0);_.r([_.nH("#file-selector"),_.h("design:type",HTMLInputElement)],ru.prototype,"fileSelector",void 0);_.r([_.nH("#top-left-corner"),_.h("design:type",HTMLDivElement)],ru.prototype,"topLeftCorner",void 0);_.r([_.nH("#top-right-corner"),_.h("design:type",HTMLDivElement)],ru.prototype,"topRightCorner",void 0);
_.r([_.nH("#bottom-left-corner"),_.h("design:type",HTMLDivElement)],ru.prototype,"bottomLeftCorner",void 0);_.r([_.nH("#bottom-right-corner"),_.h("design:type",HTMLDivElement)],ru.prototype,"bottomRightCorner",void 0);_.r([_.E(),_.h("design:type",Object)],ru.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],ru.prototype,"errorMessage",void 0);_.r([_.E(),_.h("design:type",Object)],ru.prototype,"isLoading",void 0);_.r([_.E(),_.h("design:type",Object)],ru.prototype,"hideContainer",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.h("design:type",Boolean)],ru.prototype,"isPlaylistThumbnail",void 0);_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],ru.prototype,"dataChanged",null);_.r([_.qY("image-updated"),_.qY("yt-refit"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ru.prototype,"updatePositionOfAllCorners",null);
_.r([_.Em({is:"yt-image-editor-renderer",disableElementRegistration:!0})],ru);
_.B(ru,"yt-image-editor-renderer",function(){if(GL1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;YJr===void 0&&(YJr=document.createElement("template"));var R=YJr;I.call(c,R.content.cloneNode(!0),G.content.firstChild);GL1=G}G=GL1;return G},{mode:2});var Ved;var zPG;var jq=function(){return _.J.apply(this,arguments)||this};
_.u(jq,_.J);jq.prototype.updateMinutesFromBinding=function(G){this.handleMinutesChanged&&this.handleMinutesChanged(G)};
jq.prototype.updateSecondsFromBinding=function(G){this.handleSecondsChanged&&this.handleSecondsChanged(G)};
jq.prototype.updateDescriptionFromBinding=function(G){this.handleDescriptionChanged&&this.handleDescriptionChanged(G)};
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],jq.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],jq.prototype,"data",void 0);_.r([_.E(),_.h("design:type",String)],jq.prototype,"minutes",void 0);_.r([_.E(),_.h("design:type",String)],jq.prototype,"seconds",void 0);_.r([_.E(),_.h("design:type",String)],jq.prototype,"description",void 0);_.r([_.E(),_.h("design:type",Function)],jq.prototype,"handleMinutesChanged",void 0);
_.r([_.E(),_.h("design:type",Function)],jq.prototype,"handleSecondsChanged",void 0);_.r([_.E(),_.h("design:type",Function)],jq.prototype,"handleDescriptionChanged",void 0);_.r([_.E(),_.h("design:type",Number)],jq.prototype,"characterLimit",void 0);_.r([_.E(),_.h("design:type",Number)],jq.prototype,"textNumRows",void 0);_.r([_.Em({is:"yt-report-details-form-content",disableElementRegistration:!0})],jq);
_.B(jq,"yt-report-details-form-content",function(){if(zPG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Ved===void 0&&(Ved=document.createElement("template"));var R=Ved;I.call(c,R.content.cloneNode(!0),G.content.firstChild);zPG=G}G=zPG;return G},{mode:2});var E8r;var Jrd;var xJ=function(){var G=_.J.apply(this,arguments)||this;G.updateMinutesFromBinding=function(c){G.minutes=c.detail.value};
G.updateSecondsFromBinding=function(c){G.seconds=c.detail.value};
G.updateDescriptionFromBinding=function(c){G.description=c.detail.value};
return G};
_.u(xJ,_.J);_.P=xJ.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.P.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.ready=function(){_.Q1(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.P.onSubmitYtAction=function(G){var c=G.detail;c.actionName==="yt-service-request"&&(c=c.args[1],c.flagEndpoint&&(G.stopPropagation(),this.refireAction(c)))};
_.P.refireAction=function(G){var c={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(c.vss_id=this.vssId);_.Gs(this.hostElement,[G,c]);this.submitDisabled=!0};
_.P.dataChanged=function(){var G=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var c=_.ZA();c&&c.getPlayerPromise().then(function(I){var R=I.getOption("cc","track")||I.getOption("captions","track");R&&(G.vssId=R.vss_id);I=I.getCurrentTime();G.minutes=Math.floor(I/60).toString();G.seconds=(Math.floor(I)%60).toString()})};
_.P.updateSubmitButtonState=function(){var G;((G=this.data)==null?0:G.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.P.onYtServiceRequestCompleted=function(){_.ym(this.hostElement,"yt-close-popup-action")};
_.P.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Nh.Object.defineProperties(xJ.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.textNumRows)||4}}});
xJ.prototype.onYtServiceRequestError=xJ.prototype.onYtServiceRequestError;xJ.prototype.onYtServiceRequestCompleted=xJ.prototype.onYtServiceRequestCompleted;xJ.prototype.updateSubmitButtonState=xJ.prototype.updateSubmitButtonState;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);
_.r([_.E({observer:"dataChanged"}),_.h("design:type",Object)],xJ.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Boolean)],xJ.prototype,"submitDisabled",void 0);_.r([_.E(),_.h("design:type",String)],xJ.prototype,"minutes",void 0);_.r([_.E(),_.h("design:type",String)],xJ.prototype,"seconds",void 0);_.r([_.E(),_.h("design:type",String)],xJ.prototype,"description",void 0);_.r([_.E(),_.h("design:type",String)],xJ.prototype,"vssId",void 0);
_.r([_.E({value:_.H1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.h("design:type",Boolean)],xJ.prototype,"isMusic",void 0);_.r([_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],xJ.prototype,"characterLimit",null);_.r([_.A("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],xJ.prototype,"textNumRows",null);
_.r([_.uO("minutes","seconds","description","submitDisabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xJ.prototype,"updateSubmitButtonState",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xJ.prototype,"onYtServiceRequestCompleted",null);
_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xJ.prototype,"onYtServiceRequestError",null);_.r([_.Em({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],xJ);
_.B(xJ,"yt-report-details-form-renderer",function(){if(Jrd===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;E8r===void 0&&(E8r=document.createElement("template"));var R=E8r;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Jrd=G}G=Jrd;return G});var Whu;var iWW;var fBG;var B9r;var t6=function(){return _.J.apply(this,arguments)||this};
_.u(t6,_.J);
t6.prototype.onCheckedChanged_=function(){if(this.data){var G=_.Q1(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ym(this.hostElement,"yt-additional-detail-checkbox-update",[G]):this.data.identifier==="yt-hide-user-checkbox"?_.ym(this.hostElement,"yt-hide-user-checkbox-update",[G]):G&&this.data.enableCommand?_.ym(this.hostElement,"yt-modify-report-form-command",[_.D(this.data.enableCommand,tJW)]):!G&&this.data.disableCommand&&_.ym(this.hostElement,
"yt-modify-report-form-command",[_.D(this.data.enableCommand,tJW)])}};
t6.prototype.onLabelTap_=function(G){G.target.tagName!="A"&&(_.Q1(this.hostElement).querySelector("#checkbox").checked=!_.Q1(this.hostElement).querySelector("#checkbox").checked)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],t6.prototype,"data",void 0);_.r([_.Em({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],t6);
_.B(t6,"yt-boolean-form-field-v2-renderer",function(){if(B9r===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;fBG===void 0&&(fBG=document.createElement("template"));var R=fBG;I.call(c,R.content.cloneNode(!0),G.content.firstChild);B9r=G}G=B9r;return G});var h6=function(){var G=_.J.apply(this,arguments)||this;G.canShowAdditionalDetailCheckbox=!1;G.canShowCheckbox=!1;G.keepDropdownFocusedAfterSelection=!0;return G};
_.u(h6,_.J);h6.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}}}}};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],h6.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],h6.prototype,"canShowAdditionalDetailCheckbox",void 0);_.r([_.E(),_.h("design:type",Object)],h6.prototype,"canShowCheckbox",void 0);_.r([_.E(),_.h("design:type",Object)],h6.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.r([_.Em({is:"yt-report-form-modal-content",disableElementRegistration:!0})],h6);
_.B(h6,"yt-report-form-modal-content",function(){if(iWW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Whu===void 0&&(Whu=document.createElement("template"));var R=Whu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);iWW=G}G=iWW;return G},{mode:2});var rru;var j8F;var du=function(){var G=_.J.apply(this,arguments)||this;G.submitting=!1;G.submitButtonDisabled=!0;G.command=null;G.canShowCheckbox=!1;G.canShowAdditionalDetailCheckbox=!1;G.canShowNextButton=!1;G.additionalDetailCheckboxChecked=!1;G.refitJob=0;G.keepDropdownFocusedAfterSelection=!0;G.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return G};
_.u(du,_.J);_.P=du.prototype;_.P.created=function(){this.refitJob=0};
_.P.attached=function(){this.JSC$21344_scroller&&(this.JSC$21344_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21344_scroller.attached&&typeof this.JSC$21344_scroller.attached==="function"&&this.JSC$21344_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(G){G&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,G.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),G.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.P.onYtPopupOpened=function(){var G=_.ZA();G&&G.getPlayerPromise().then(function(c){c.pauseVideo()})};
_.P.onYtNavigate=function(G){_.D(G.detail.endpoint,_.qBe)&&(G.stopPropagation(),this.hideReportForm=!0)};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.P.onYtServiceRequestCompleted=function(G,c){var I=c.actions;if(I){if(I.length===1&&_.D(I[0],_.RP)){var R;I=((R=_.D(I[0],_.RP))==null?void 0:R.commands)||[]}R=0;for(var Z=I.length;R<Z;R++)_.D(I[R],_.Ih)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(I[R]))}if(c.data&&(G=this.get("feedbackResponses",c.data)))for(c=0;c<G.length;c++)if(G[c].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.P._onDescendantIronResize=function(G){G.stopPropagation();return!1};
_.P.handleReportFormEndpointUpdateAction=function(G){if(G.submitEndpoint){var c=this.command=G.submitEndpoint;c=_.D(c,_.NAK);if(c==null?0:c.additionalDetailCheckboxChecked)c.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else G.submitNavigationEndpoint?(this.command=G.submitNavigationEndpoint,this.toggleSubmitButton(!1)):G.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:G.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;G.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",G));this.refit()};
_.P.handleConfirmDialogCloseAction=function(G){G.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.P.submitButtonDisabledChanged=function(){var G=this.hostElement.parentElement;G&&G.invalidateTabbables&&G.invalidateTabbables()};
_.P.handleModifyReportFormCommand=function(G){G=this.get("action",G);G==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:G==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:G==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:G==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:G==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:G==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.P.updateDialogStyling=function(){var G,c,I,R,Z,K=((Z=(G=this.data)==null?void 0:(c=G.optionsSupportedRenderers)==null?void 0:(I=c.optionsRenderer)==null?void 0:(R=I.items)==null?void 0:R.length)!=null?Z:0)<=2?0:240;_.eD(this.hostElement,{"--yt-report-form-modal-renderer-min-width":K+"px"})};
_.P.toggleSubmitButton=function(G){this.submitButtonDisabled=!G;this.submitButtonDisabled=G};
_.P.computeSubmitButtonData=function(G,c){var I={};_.D(c,_.qBe)?I.navigationEndpoint=c:I.command=c||void 0;G&&G.buttonRenderer&&_.rx.extend(I,G.buttonRenderer);return I};
_.P.computeNextButtonData=function(G,c){var I={};if(!G||!G.buttonRenderer)return I;_.rx.extend(I,G.buttonRenderer);if(!c)return I;if(_.D(c,_.qBe))I.navigationEndpoint=Ak0(c);else if(I.command=Ak0(c),G=_.D(I.command,_.NAK))G.legalCheckboxChecked=!0;return I};
_.P.computeShowNextButton=function(G,c,I){return!!G&&c&&I};
_.P.refit=function(){var G=this;this.refitJob||(this.refitJob=_.dJ.addLowPriorityJob(function(){_.Xl(G.hostElement,"yt-refit");G.refitJob=0}))};
_.P.handleAdditionalDetailCheckboxUpdateAction=function(G){this.additionalDetailCheckboxChecked=G;_.D(this.command,_.NAK).additionalDetailCheckboxChecked=G};
_.Nh.Object.defineProperties(du,{template:{configurable:!0,enumerable:!0,get:function(){if(j8F===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;rru===void 0&&(rru=document.createElement("template"));var R=rru;I.call(c,R.content.cloneNode(!0),G.content.firstChild);j8F=G}G=j8F;return G}}});
du.prototype.onYtServiceRequestError=du.prototype.onYtServiceRequestError;du.prototype.onYtServiceRequestCompleted=du.prototype.onYtServiceRequestCompleted;du.prototype.onYtServiceRequestSent=du.prototype.onYtServiceRequestSent;du.prototype.onYtNavigate=du.prototype.onYtNavigate;du.prototype.onYtPopupOpened=du.prototype.onYtPopupOpened;_.r([_.L(_.dm.YtOpenPopupBehavior),_.h("design:type",Object)],du.prototype,"openPopupBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],du.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],du.prototype,"eventForwardingBehavior",void 0);_.r([_.L(_.Zu),_.h("design:type",Object)],du.prototype,"ironResizableBehavior",void 0);_.r([_.E({observer:"dataChanged"}),_.h("design:type",Object)],du.prototype,"data",void 0);
_.r([_.E(),_.h("design:type",Object)],du.prototype,"submitting",void 0);_.r([_.E({observer:"submitButtonDisabledChanged"}),_.h("design:type",Object)],du.prototype,"submitButtonDisabled",void 0);_.r([_.E(),_.h("design:type",Object)],du.prototype,"command",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],du.prototype,"hideReportForm",void 0);_.r([_.E(),_.h("design:type",Object)],du.prototype,"canShowCheckbox",void 0);
_.r([_.E(),_.h("design:type",Object)],du.prototype,"canShowAdditionalDetailCheckbox",void 0);_.r([_.E(),_.h("design:type",Object)],du.prototype,"canShowNextButton",void 0);_.r([_.E(),_.h("design:type",Object)],du.prototype,"additionalDetailCheckboxChecked",void 0);_.r([_.E(),_.h("design:type",Object)],du.prototype,"refitJob",void 0);_.r([_.E(),_.h("design:type",Object)],du.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.r([_.nH("#scroller"),_.h("design:type",Object)],du.prototype,"JSC$21344_scroller",void 0);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],du.prototype,"onYtPopupOpened",null);_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],du.prototype,"onYtNavigate",null);
_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],du.prototype,"onYtServiceRequestSent",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],du.prototype,"onYtServiceRequestCompleted",null);
_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],du.prototype,"onYtServiceRequestError",null);_.r([_.Em({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],du);var x1G;var teu;var CK=function(){return _.J.apply(this,arguments)||this};
_.u(CK,_.J);_.P=CK.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.P.onVisible=function(){var G,c;(c=_.wH().resolve(_.qR(_.zL)))==null||c.enqueue({label:_.HY((G=this.data)==null?void 0:G.messageTitle),elementToFocus:this.hostElement})};
_.P.onThumbnailLoaded=function(){_.Xl(this.hostElement,"yt-refit")};
_.P.onDismissTap=function(){_.ym(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.P.computeAlternateIcon=function(G){return G?G==="BACKSTAGE_ARTWORK"?"backstage:artwork":G:null};
_.P.computeFontFamily=function(G){return G==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.P.computeBackgroundStyle=function(G,c){if(G=this.computeBackgroundImage(G,c))if(G=_.KQ(G.thumbnails))return'background-image: url("'+G+'");'};
_.P.computeHasFullHeightImage=function(G){return!(!(G&&G.thumbnails&&G.thumbnails.length>0)||this.modern)};
_.P.isModernStyle=function(G){return G.style==="STYLE_MODERN"};
_.P.computeIcon=function(G,c){if(G&&G.icon)return c?G.iconDark:G.icon};
_.P.computeBackgroundImage=function(G,c){if(G&&G.backgroundImage)return c?G.backgroundImageDark:G.backgroundImage};
_.P.computeLogo=function(G,c){if(G&&G.logo)return c?G.logoDark:G.logo};
_.P.computeShouldShowModernIcon=function(G,c){return G&&!!c};
_.P.getLogoContainerClassName=function(G){return this.logoWithPadding(G)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.P.getLogoImageId=function(G){return this.logoWithPadding(G)?"mealbar-logo-with-padding":"mealbar-logo"};
_.P.logoWithPadding=function(G){var c,I,R;return(G=(c=this.computeLogo(G,this.isDarkTheme))==null?void 0:(I=c.thumbnails)==null?void 0:(R=I[0])==null?void 0:R.height)&&G%31===0?!0:!1};
CK.prototype.onThumbnailLoaded=CK.prototype.onThumbnailLoaded;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.r([_.E({}),_.h("design:type",Object)],CK.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.h("design:type",Boolean)],CK.prototype,"modern",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],CK.prototype,"isDarkTheme",void 0);
_.r([_.E({computed:"computeIcon(data, isDarkTheme)"}),_.h("design:type",Object)],CK.prototype,"icon",void 0);_.r([_.E({computed:"computeLogo(data, isDarkTheme)"}),_.h("design:type",Object)],CK.prototype,"logo",void 0);_.r([_.E({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.h("design:type",Object)],CK.prototype,"backgroundStyle",void 0);_.r([_.E({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.h("design:type",Object)],CK.prototype,"alternateIcon",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.h("design:type",Boolean)],CK.prototype,"hasFullHeightImage",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.h("design:type",Boolean)],CK.prototype,"useYoutubeSans",void 0);_.r([_.E({computed:"computeShouldShowModernIcon(modern, icon)"}),_.h("design:type",Boolean)],CK.prototype,"shouldShowModernIcon",void 0);
_.r([_.qY("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CK.prototype,"onThumbnailLoaded",null);_.r([_.Em({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],CK);
_.B(CK,"yt-mealbar-promo-renderer",function(){if(teu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;x1G===void 0&&(x1G=document.createElement("template"));var R=x1G;I.call(c,R.content.cloneNode(!0),G.content.firstChild);teu=G}G=teu;return G},{mode:2});var hP$;var d1F;var H9=function(){return _.J.apply(this,arguments)||this};
_.u(H9,_.J);_.P=H9.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.P.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.acceptButton)};
_.P.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.P.observeImpressionEndpoints_=function(){var G=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;_.Gs(G.hostElement,[c])})};
_.P.onTap_=function(){_.ym(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
H9.prototype.observeImpressionEndpoints_=H9.prototype.observeImpressionEndpoints_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],H9.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],H9.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],H9.prototype,"positionType",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.h("design:type",Boolean)],H9.prototype,"hasButtons_",void 0);_.r([_.E({value:function(){return this.onTap_.bind(this)}}),
_.h("design:type",Function)],H9.prototype,"boundOnTap_",void 0);_.r([_.E({value:{style:"mono-inverse"}}),_.h("design:type",Object)],H9.prototype,"buttonOverride",void 0);_.r([_.wD("data.promoConfig.impressionEndpoints"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H9.prototype,"observeImpressionEndpoints_",null);_.r([_.Em({is:"yt-tooltip-renderer",disableElementRegistration:!0})],H9);
_.B(H9,"yt-tooltip-renderer",function(){if(d1F===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;hP$===void 0&&(hP$=document.createElement("template"));var R=hP$;I.call(c,R.content.cloneNode(!0),G.content.firstChild);d1F=G}G=d1F;return G},{mode:2});var C$d;var HW1;var Xnu;var yrj;var X1=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-open-popup-action":"onOpen"};return G};
_.u(X1,_.J);_.P=X1.prototype;_.P.attached=function(){this.onOpen()};
_.P.updateTimeSecs=function(G){this.currentTimeSecs=G};
_.P.computeTimeString=function(G){G=G.toString();var c=Math.floor(Number(G)/3600),I=Math.floor(Number(G)%3600%60);return(c>0?c+":":"")+_.Dn(Math.floor(Number(G)%3600/60),c>0?2:1)+":"+_.Dn(I,2)};
_.P.computeTimeStringA11y=function(G){return _.OfA({seconds:G})};
_.P.getTimeParam=function(){return y51(this.timeString)};
_.P.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var G={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},c;_.yI(_.DP(),(c=this.data)==null?void 0:c.trackingParams,G,7)};
_.P.onChangeStartAtTimestamp=function(){for(var G=this.startAtTimestamp.value.split(":"),c=0,I=1,R=G.length-1;R>=0;R--)c+=Number(G[R])*I,I*=60;this.updateTimeSecs(c);this.setTimestamp()};
_.P.onOpen=function(){var G=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var c=_.ZA();c?c.getPlayerPromise().then(function(I){I=I.getCurrentTime();G.updateTimeSecs(I)}):DjF()&&this.updateTimeSecs(DjF())};
_.P.setTimestamp=function(){var G=Math.floor(this.currentTimeSecs);_.ym(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!G,timestamp:G||""}])};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],X1.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],X1.prototype,"data",void 0);_.r([_.E({value:!1,notify:!0}),_.h("design:type",Boolean)],X1.prototype,"isStartAtChecked",void 0);_.r([_.E(),_.h("design:type",Number)],X1.prototype,"currentTimeSecs",void 0);
_.r([_.E({computed:"computeTimeString(currentTimeSecs)"}),_.h("design:type",String)],X1.prototype,"timeString",void 0);_.r([_.E({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.h("design:type",String)],X1.prototype,"timeStringA11y",void 0);_.r([_.nH("#start-at-timestamp"),_.h("design:type",Object)],X1.prototype,"startAtTimestamp",void 0);_.r([_.Em({is:"yt-start-at-renderer",disableElementRegistration:!0})],X1);
_.B(X1,"yt-start-at-renderer",function(){if(yrj===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;Xnu===void 0&&(Xnu=document.createElement("template"));var R=Xnu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);yrj=G}G=yrj;return G},{mode:2});var g8G={},Yju=(g8G.WEB_REMIX="music.youtube.com",g8G),yj=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return G};
_.u(yj,_.J);_.P=yj.prototype;_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.created=function(){this.embedHost_=Yju[_.H1("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.P.ready=function(){_.Q1(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.P.computeEmbedCode_=function(G,c,I,R,Z){if(!G)return"";var K=G.videoId,m=G.fullListId,a=[];G.attributionId&&a.push("si="+G.attributionId);R||a.push("controls=0");I&&Number(c)>0&&a.push("start="+c);m&&(K="videoseries",a.push("list="+m));I="https://"+(Z?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+K;G.clipId&&(a.push("clip="+G.clipId),a.push("clipt="+G.clipTiming));c=a.length>0?I+"?"+a.join("&amp;"):I;G.encryptedEmbedConfig&&a.push("embed_config="+JSON.stringify({enc:G.encryptedEmbedConfig}));
a=a.length>0?I+"?"+a.join("&amp;"):I;_.v("web_sharing_embed_preview_killswitch")?_.Q1(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(a,G.previewWidth||854,G.previewHeight||480):(_.d1(this.videoPreviewContainer),_.Q1(this.videoPreviewContainer).appendChild(this.buildIframeElement(a)));return this.getEmbedCode_(c,G.width||560,G.height||315)};
_.P.buildIframeElement=function(G){var c=document.createElement("iframe"),I,R;c.width=""+((R=(I=this.data)==null?void 0:I.previewWidth)!=null?R:854);var Z,K;c.height=""+((K=(Z=this.data)==null?void 0:Z.previewHeight)!=null?K:480);_.RE(c,2,G);c.title="YouTube video player";c.frameBorder="0";c.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";c.referrerPolicy="strict-origin-when-cross-origin";c.allowFullscreen=!0;return c};
_.P.computeIsSquareAspectRatio_=function(G){return G.previewHeight&&G.previewWidth?G.previewHeight==G.previewWidth:!1};
_.P.computeShowEmbedOptions_=function(G){return!!G.enablePrivacyModeOptionLabel||!!G.showPlayerControlsOptionLabel};
_.P.getEmbedCode_=function(G,c,I){return'<iframe width="'+c+'" height="'+I+'" src="'+G+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.P.handleSignalActionCopyShareEmbedUrl_=function(){_.Q1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.P.handleSetTimestamp_=function(G){this.startAtTimeStamp_=(this.startAtChecked_=G.isSet)?G.timestamp:0};
_.P.closePanel_=function(){_.ym(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.P.onEmbedCode_=function(){_.Q1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.P.onYtPopupClosed_=function(){_.d1(_.Q1(this.hostElement).querySelector("#video-preview"))};
_.P.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.D(this.data.actionButtons[0],_.vE)&&this.ytRendererBehavior.logExplicitClick(_.D(this.data.actionButtons[0],_.vE))};
yj.prototype.onYtPopupClosed_=yj.prototype.onYtPopupClosed_;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],yj.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],yj.prototype,"data",void 0);
_.r([_.E({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.h("design:type",String)],yj.prototype,"embedCode_",void 0);_.r([_.E({value:!0}),_.h("design:type",Boolean)],yj.prototype,"isPlayerControlsOptionChecked_",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],yj.prototype,"isPrivacyModeOptionChecked_",void 0);_.r([_.E({value:!1,notify:!0}),_.h("design:type",Boolean)],yj.prototype,"startAtChecked_",void 0);
_.r([_.E({value:0}),_.h("design:type",Number)],yj.prototype,"startAtTimeStamp_",void 0);_.r([_.E({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],yj.prototype,"isSquareAspectRatio_",void 0);_.r([_.nH("#video-preview"),_.h("design:type",HTMLElement)],yj.prototype,"videoPreviewContainer",void 0);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yj.prototype,"onYtPopupClosed_",null);
_.r([_.Em({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],yj);
_.B(yj,"yt-sharing-embed-renderer",function(){if(HW1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;C$d===void 0&&(C$d=document.createElement("template"));var R=C$d;I.call(c,R.content.cloneNode(!0),G.content.firstChild);HW1=G}G=HW1;return G},{mode:2});var GNj;var cLg=function(){return _.J.apply(this,arguments)||this};
_.u(cLg,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cLg.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],cLg.prototype,"data",void 0);_.r([_.Em({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],cLg);
_.B(cLg,"yt-sender-id-section-renderer",function(){if(GNj===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);GNj=G}G=
GNj;return G},{mode:1});var I8$;var ROW;var gu=function(){return _.J.apply(this,arguments)||this};
_.u(gu,_.J);gu.prototype.closePopup=function(){_.ym(this.hostElement,"yt-close-popup-action")};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],gu.prototype,"data",void 0);_.r([_.Em({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],gu);
_.B(gu,"yt-community-post-section-renderer",function(){if(ROW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;I8$===void 0&&(I8$=document.createElement("template"));var R=I8$;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ROW=G}G=ROW;return G},{mode:2});var Z2d;var Ki$;var P01;var QAG;var mTu;var a8F;var Tfu=function(){return _.J.apply(this,arguments)||this};
_.u(Tfu,_.J);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Tfu.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Tfu.prototype,"data",void 0);_.r([_.Em({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Tfu);
_.B(Tfu,"yt-share-start-time-with-context-renderer",function(){if(a8F===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;mTu===void 0&&(mTu=document.createElement("template"));var R=mTu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);a8F=G}G=a8F;return G},{mode:2});var YJ=function(){return _.J.apply(this,arguments)||this};
_.u(YJ,_.J);YJ.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],YJ.prototype,"data",void 0);_.r([_.Em({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],YJ);
_.B(YJ,"yt-share-panel-title-v15-renderer",function(){if(QAG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;P01===void 0&&(P01=document.createElement("template"));var R=P01;I.call(c,R.content.cloneNode(!0),G.content.firstChild);QAG=G}G=QAG;return G},{mode:2});var G4=function(){return _.J.apply(this,arguments)||this};
_.u(G4,_.J);G4.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],G4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],G4.prototype,"data",void 0);_.r([_.Em({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],G4);
_.B(G4,"yt-share-panel-header-renderer",function(){if(Ki$===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Z2d===void 0&&(Z2d=document.createElement("template"));var R=Z2d;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Ki$=G}G=Ki$;return G},{mode:2});var O21;var eO7;var Nfd={};Nfd.YtBindingExpressionsBehavior={identity:_.E0,msg:function(G,c){c=c===void 0?{}:c;return _.mJ(G,c,G)},
msgPlural:function(G,c){return _.aP(G,c)},
getMusicIconFromType:function(G){return _.On(G)}};var l81;var qlj;var wsd;var Fi$=document.head,nk7=Fi$.appendChild,vkd;
if(wsd===void 0){var DTF=document.createElement("template");_.b(DTF,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath><mask id="android_messenger__b" width="192" height="192" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h192v192H0z"></path></mask></defs></svg><iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');wsd=
DTF}vkd=wsd;nk7.call(Fi$,vkd.content);var cF=function(){var G=_.J.apply(this,arguments)||this;G.screenLayer=7;return G};
_.u(cF,_.J);cF.prototype.getScreenLayer=function(){return this.screenLayer};
cF.prototype.onTap=function(G){G&&G.detail&&(G.detail.x||G.detail.y)&&_.Q1(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Gs(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(G=this.getScreenLayer(),_.Xl(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:G}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Nh.Object.defineProperties(cF.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()}}});
cF.prototype.onTap=cF.prototype.onTap;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],cF.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],cF.prototype,"data",void 0);_.r([_.A("data.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],cF.prototype,"title",null);
_.r([_.A("data.serviceName"),_.h("design:type",String),_.h("design:paramtypes",[])],cF.prototype,"icon",null);_.r([_.qY("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],cF.prototype,"onTap",null);_.r([_.Em({is:"yt-share-target-renderer",disableElementRegistration:!0})],cF);
_.B(cF,"yt-share-target-renderer",function(){if(qlj===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;l81===void 0&&(l81=document.createElement("template"));var R=l81;I.call(c,R.content.cloneNode(!0),G.content.firstChild);qlj=G}G=qlj;return G},{mode:2});var okF;var UTd;var IZ=function(){var G=_.J.apply(this,arguments)||this;G.SHARE_TARGET_WIDTH=70;G.SHARE_TARGET_MARGIN_RIGHT=8;G.PAGE_SCROLL_SPEED=9;G.actionMap={"yt-share-panel-reset-action":"onReset_"};return G};
_.u(IZ,_.J);_.P=IZ.prototype;_.P.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.P.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Q1(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Q1(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.P.onReset_=function(){if(_.Q1(this.hostElement).querySelector("#list")){var G=_.Q1(this.hostElement).querySelector("#list");var c=_.Q1(this.hostElement).querySelector("#list");var I=c.offsetLeft,R=c.offsetParent;R||_.hpA(c)!="fixed"||(R=_.dx(c).documentElement);if(R){if(_.ny&&!_.Dk(58)){var Z=_.GBV(R);I+=Z.left}else Number(_.e9N)>=8&&!(Number(_.e9N)>=9)&&(Z=_.GBV(R),I-=Z.left);c=_.gM2(R)?R.clientWidth-(I+c.offsetWidth):I}else c=I;td$(G,c);this.updateScrollButtons_()}};
_.P.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.P.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.P.onScrollWheel_=function(G){G.stopPropagation();G.preventDefault();var c=x71(_.Q1(this.hostElement).querySelector("#list"));G=Math.abs(G.deltaX)>Math.abs(G.deltaY)?G.deltaX:G.deltaY;td$(_.Q1(this.hostElement).querySelector("#list"),c+G);this.updateScrollButtons_()};
_.P.smoothScrollByOnePage_=function(G){var c=_.Q1(this.hostElement).querySelector("#list"),I=(Math.floor(c.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,R=x71(c),Z=I*(G?1:-1),K=this.PAGE_SCROLL_SPEED,m=this.updateScrollButtons_.bind(this),a=0,O;(function q(){a+=K;O=a/I*2;td$(c,R+Z*(O<1?O*O:-O*O+4*O-2));a<I?window.requestAnimationFrame(q):m()})()};
_.P.updateScrollButtons_=function(){var G=x71(_.Q1(this.hostElement).querySelector("#list")),c=_.Q1(this.hostElement).querySelector("#list").scrollWidth-_.Q1(this.hostElement).querySelector("#list").clientWidth;_.Q1(this.hostElement).querySelector("#scroll-button-back").hidden=G<=0;_.Q1(this.hostElement).querySelector("#scroll-button-forward").hidden=G>=c};
IZ.prototype.onScrollWheel_=IZ.prototype.onScrollWheel_;IZ.prototype.onDataChanged_=IZ.prototype.onDataChanged_;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],IZ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(Nfd.YtBindingExpressionsBehavior),_.h("design:type",Object)],IZ.prototype,"ytBindingExpressionsBehavior",void 0);
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],IZ.prototype,"data",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IZ.prototype,"onDataChanged_",null);_.r([_.qY("wheel"),_.h("design:type",Function),_.h("design:paramtypes",[WheelEvent]),_.h("design:returntype")],IZ.prototype,"onScrollWheel_",null);
_.r([_.Em({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],IZ);
_.B(IZ,"yt-third-party-share-target-section-renderer",function(){if(UTd===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;okF===void 0&&(okF=document.createElement("template"));var R=okF;I.call(c,R.content.cloneNode(!0),G.content.firstChild);UTd=G}G=UTd;return G},{mode:2});var RZ=function(){return _.J.apply(this,arguments)||this};
_.u(RZ,_.J);RZ.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"}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],RZ.prototype,"data",void 0);_.r([_.Em({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],RZ);
_.B(RZ,"yt-third-party-network-section-renderer",function(){if(eO7===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;O21===void 0&&(O21=document.createElement("template"));var R=O21;I.call(c,R.content.cloneNode(!0),G.content.firstChild);eO7=G}G=eO7;return G},{mode:2});var ubd;_.R1(_.W(function(G){return _.e("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.e("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.e(_.sN,{data:function(){return G.data().firstPartyItems}},{listItemViewModel:_.s8})))},"Fj"),"first-party-network-section-view-model",{props:{data:_.bl}});var b2d=_.I3(["data:image/svg+xml;charset=UTF-8;base64,",""]),Zz=function(){var G=_.J.apply(this,arguments)||this;G.screenLayer=7;G.qrCodeEnabled=_.v("web_enable_sharing_qr_code");G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return G};
_.u(Zz,_.J);_.P=Zz.prototype;_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.P.attached=function(){this.JSC$21396_scroller&&(this.JSC$21396_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21396_scroller.attached&&typeof this.JSC$21396_scroller.attached==="function"&&this.JSC$21396_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.P.onDataChanged=function(){var G=this,c;(c=this.data)!=null&&c.contents&&(this.hostElement.setAttribute("links-only","true"),_.T1(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.O$(this,function(){_.Xl(G.hostElement,"yt-refit");G.focusSharePanelHeader()}))};
_.P.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.P.handleSetTimestamp=function(G){var c=this.shortUrl();G.isSet&&(c=_.KU(c,"t",G.timestamp));this.maybeRenderQrCode(c)};
_.P.shortUrl=function(){var G,c=(G=this.data)==null?void 0:G.contents;if(c)for(G=0;G<c.length;G++){var I=void 0,R=void 0;if((I=c[G])==null?0:(R=I.thirdPartyNetworkSection)==null?0:R.copyLinkContainer){var Z=R=I=void 0;return(Z=_.D((I=c[G])==null?void 0:(R=I.thirdPartyNetworkSection)==null?void 0:R.copyLinkContainer,LjG))==null?void 0:Z.shortUrl}}};
_.P.maybeRenderQrCode=function(G){var c=this,I,R,Z,K,m,a,O,N,q;return _.T(function(w){if(w.nextAddress==1){I=_.Q1(c.hostElement).querySelector("#qr-code");if(!c.qrCodeEnabled||!G)return I&&(I.style.display="none"),w.return();R=_.x5b(_.wH().resolve(_.ek),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Z=document.createElement("div");return typeof R==="function"?(R(Z),w.jumpTo(2)):w.yield(R,3)}w.nextAddress!=2&&(K=w.yieldResult,K(Z));O=(m=Z)==null?void 0:(a=m.firstChild)==null?void 0:a.firstChild;
N=document.createElement("img");q=_.q9i(b2d,btoa(O.outerHTML));N.onload=function(){var F={canvas:I,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:N},n=new xoW;Xm1(n,G);yqW(n,!1,gPH(n));var U=n.modules,k=Object.assign({},gru,F);U=structuredClone(U);F=U.length;var p,M=(p=k.canvas)!=null?p:document.createElement("canvas");p=k.cellSize;n=k.logo;var z,t=(z=k.logoSize)!=null?z:Math.floor(F/4);F%2!==t%2&&t++;var x=k.logoPadding,C=k.backgroundColor;z=F*p;var H=
k.width,g=0;H&&(g=k.padding,g=Math.ceil(g*z/(H-g*2)),M.style.width=H+"px",M.style.height=H+"px");M.width!==z+g*2&&(M.width=z+g*2);M.height!==z+g*2&&(M.height=z+g*2);z=M.getContext("2d");k.autoClear&&z.clearRect(0,0,M.width,M.height);z.fillStyle=C;z.beginPath();z.roundRect(0,0,M.width,M.height,k.borderRadius);z.fill();z.save();z.translate(g,g);if(n)for(M=Math.floor(F-t)/2-x,x=Math.floor(F+t)/2+x,C=M;C<x;C++)for(H=M;H<x;H++)U[C][H]=!1;for(M=0;M<F;M++)for(x=0;x<F;x++)(M<7&&x<7||M<7&&x>=F-7||M>=F-7&&
x<7)&&(U[M][x]=!1);var QO;M=(QO=k.markerColor)!=null?QO:k.color;GFu(z,0,0,p,M);GFu(z,p*(F-7),0,p,M);GFu(z,0,p*(F-7),p,M);switch(k.cellStyle){case 0:QO=U;U=QO.length;M=k.cellSize;z.beginPath();for(x=0;x<U;x++)for(C=0;C<U;C++)QO[x][C]&&z.rect(x*M,C*M,M,M);z.fillStyle=k.color;z.fill();break;case 1:QO=U;U=QO.length;M=k.cellSize;x=M*k.relativeCircleSize;z.fillStyle=k.color;z.beginPath();for(k=0;k<U;k++)for(C=0;C<U;C++)QO[k][C]&&(z.beginPath(),z.ellipse((k+.5)*M,(C+.5)*M,x/2,x/2,0,0,2*Math.PI),z.fill());
z.fill();break;case 2:QO=U;U=QO.length;M=k.cellSize;z.fillStyle=k.color;k=[[1,1],[-1,1],[-1,-1],[1,-1]];z.beginPath();for(x=0;x<U;x++)for(C=0;C<U;C++)if(QO[x][C])z.roundRect(x*M,C*M,M,M,M/2),x+1<U&&QO[x+1][C]&&z.rect(x*M+M/2,C*M,M,M),C+1<U&&QO[x][C+1]&&z.rect(x*M,C*M+M/2,M,M);else{H=x*M+M/2;g=C*M+M/2;for(var T8=0;T8<4;T8++){var kp=_.Q(k[T8]),FB=kp.next().value;kp=kp.next().value;x+FB>=0&&x+FB<U&&C+kp>=0&&C+kp<U&&QO[x+FB][C]&&QO[x][C+kp]&&QO[x+FB][C+kp]&&(FB=T8*Math.PI/2,kp=M/2,z.moveTo(H+kp*Math.cos(FB),
g+kp*Math.sin(FB)),z.arc(H,g,M/2,FB,FB+Math.PI/2,!1),z.lineTo(H+kp*(Math.cos(FB)-Math.sin(FB)),g+kp*(Math.cos(FB)+Math.sin(FB))),z.lineTo(H+kp*Math.cos(FB),g+kp*Math.sin(FB)))}}z.fill()}n&&z.drawImage(n,(F-t)*p/2,(F-t)*p/2,t*p,t*p);z.restore();I.style.removeProperty("display")};
N.src=_.By(q);_.Vp(w)})};
_.P.hasCommunityPostRenderer=function(){var G,c,I,R;return!!((G=this.data)==null?0:(c=G.header)==null?0:(I=c.sharePanelHeaderRenderer)==null?0:(R=I.communityPost)==null?0:R.communityPostSectionRenderer)};
_.P.onTapClose=function(){_.ym(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.P.getScreenLayer=function(){return this.screenLayer};
Zz.prototype.onDataChanged=Zz.prototype.onDataChanged;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Zz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Zz.prototype,"data",void 0);
_.r([_.E({value:_.mJ("SBOX_INAPPROPRIATE_CANCEL")}),_.h("design:type",String)],Zz.prototype,"closeButtonAriaLabel",void 0);_.r([_.nH("yt-share-panel-header-renderer"),_.h("design:type",HTMLElement)],Zz.prototype,"header",void 0);_.r([_.E(),_.h("design:type",Object)],Zz.prototype,"qrCodeEnabled",void 0);_.r([_.nH("#scroller"),_.h("design:type",Object)],Zz.prototype,"JSC$21396_scroller",void 0);
_.r([_.uO("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zz.prototype,"onDataChanged",null);_.r([_.Em({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],Zz);
_.B(Zz,"yt-unified-share-panel-renderer",function(){if(ubd===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);ubd=G}G=ubd;return G},{mode:1});var kN$={};
kN$.YtUnlimitedFamilyInterstitialBehavior=[_.dm.YtOpenPopupBehavior,_.HR.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(G){G=_.j20(_.HH(G),"yt-button-renderer");return G?G.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(G){this.dialogHistory_.push(G)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var G=this.popFromHistory();if(G){var c={openPopupAction:{popupType:"DIALOG",popup:{}}};c.openPopupAction.popup[G.renderer]=G.data;this.showingPreviousDialog_=!0;this.openPopup(c)}},
handleOpenPopupAction_:function(G){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var c=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(R){return!!G.openPopupAction.popup[R]}),I=this.getElementName_();
c&&this.data&&(this.pushToHistory({renderer:I,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(G){if(G=_.D(G,ZP$))this.loading=!0,_.ym(this.hostElement,"yt-open-create-family-dialog",[G,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var G=this.hostElement.nodeName.split("-").slice(1).map(function(c){return""+c[0].toUpperCase()+c.slice(1).toLowerCase()}).join("");
return G[0].toLowerCase()+G.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var sAW;var LiG;var Kn=function(){return _.J.apply(this,arguments)||this};
_.u(Kn,_.J);_.P=Kn.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ym(this.hostElement,"yt-register-create-family-dialog");_.Q1(this.hostElement).querySelector("#thumbnail").onShow()};
_.P.fireOnCloseCommand_=function(){var G;((G=this.data)==null?0:G.onCloseCommand)&&_.cd(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.P.onYtServiceRequestSent_=function(G,c){c&&c.endpoint&&_.D(c.endpoint,_.KC)||(this.loading=!0)};
_.P.onYtServiceRequestCompleted_=function(){var G=this.hostElement.parentElement;G.close&&G.close();this.loading=!1};
_.P.openPopupHandler_=function(G){if(G.detail==this){var c;((c=this.data)==null?0:c.onOpenCommands)&&_.cd(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.P.closePopupHandler_=function(G,c){this.fireOnCloseCommand_();if(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1){var I;((I=this.data)==null?0:I.onDismissCommands)&&_.cd(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.P.dataChanged_=function(){this.loading=!1};
Kn.prototype.dataChanged_=Kn.prototype.dataChanged_;Kn.prototype.closePopupHandler_=Kn.prototype.closePopupHandler_;Kn.prototype.openPopupHandler_=Kn.prototype.openPopupHandler_;Kn.prototype.onYtServiceRequestCompleted_=Kn.prototype.onYtServiceRequestCompleted_;Kn.prototype.onYtServiceRequestSent_=Kn.prototype.onYtServiceRequestSent_;_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],Kn.prototype,"ytEventForwardingBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(kN$.YtUnlimitedFamilyInterstitialBehavior),_.h("design:type",Object)],Kn.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Kn.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Kn.prototype,"loading",void 0);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],Kn.prototype,"onYtServiceRequestSent_",null);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],Kn.prototype,"onYtServiceRequestCompleted_",null);
_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Kn.prototype,"openPopupHandler_",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Kn.prototype,"closePopupHandler_",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kn.prototype,"dataChanged_",null);
_.r([_.Em({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Kn);
_.B(Kn,"yt-unlimited-family-message-interstitial-renderer",function(){if(LiG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;sAW===void 0&&(sAW=document.createElement("template"));var R=sAW;I.call(c,R.content.cloneNode(!0),G.content.firstChild);LiG=G}G=LiG;return G},{mode:2});var ALu;var $Tr;var PF=function(){return _.J.apply(this,arguments)||this};
_.u(PF,_.J);PF.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"}}}};
PF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Q1(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(G){G.onShow()});
_.Q1(this.hostElement).querySelector("#main-thumbnail").onShow()};
PF.prototype.onButtonTap_=function(G){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(G)};
PF.prototype.computeMainThumbnailWidth_=function(G){return G&&G.length!==0?72:96};
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.r([_.L(kN$.YtUnlimitedFamilyInterstitialBehavior),_.h("design:type",Object)],PF.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],PF.prototype,"data",void 0);
_.r([_.E({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.h("design:type",Number)],PF.prototype,"mainThumbnailWidth_",void 0);_.r([_.E({value:function(){return this.onButtonTap_.bind(this)}}),
_.h("design:type",Function)],PF.prototype,"boundButtonTap_",void 0);_.r([_.Em({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],PF);
_.B(PF,"yt-unlimited-family-profile-interstitial-renderer",function(){if($Tr===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;ALu===void 0&&(ALu=document.createElement("template"));var R=ALu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);$Tr=G}G=$Tr;return G},{mode:2});var Sl0;var ps7;var QW=function(){var G=_.J.apply(this,arguments)||this;G.sliderAriaValueText_=null;G.selectedIndex_=0;G.messages={PAUSE_SLIDER:_.mJ("PAUSE_SLIDER",void 0,"Pause Duration")};return G};
_.u(QW,_.J);_.P=QW.prototype;_.P.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.P.onPopupOpened_=function(G){G.detail==this&&_.v("enable_premium_voluntary_pause")&&(_.ym(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.setDialogData=function(G){this.data=G;this.resetSlider_()};
_.P.dataChanged_=function(){this.data&&this.resetSlider_()};
_.P.onSubmitTap_=function(){if(this.data.confirmCommand){var G=this.data.confirmCommand;_.D(G,_.q62)&&_.Gs(this.hostElement,[G,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.P.onExitButtonTap_=function(){_.ym(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.P.closePopupHandler_=function(G,c){(c&&c.canceled===!0||c.canceled===!1&&c.confirmed===!1)&&this.handleOnDismissCommands_()};
_.P.onSliderChange_=function(){this.selectedIndex_=_.Q1(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.P.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.P.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.P.resetSlider_=function(){if(this.data){var G=this.data.defaultEndOptionIndex||0,c=_.Q1(this.hostElement).querySelector("#id-pause-slider");if(c.immediateValue<G)for(;c.immediateValue!=G;)c.increment();else if(G<c.immediateValue)for(;c.immediateValue!=G;)c.decrement();this.selectedIndex_=G;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.P.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.cd(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.cd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.loading=!0};
_.P.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
QW.prototype.onYtServiceRequestCompleted=QW.prototype.onYtServiceRequestCompleted;QW.prototype.onYtServiceRequestSent=QW.prototype.onYtServiceRequestSent;QW.prototype.closePopupHandler_=QW.prototype.closePopupHandler_;QW.prototype.dataChanged_=QW.prototype.dataChanged_;QW.prototype.onPopupOpened_=QW.prototype.onPopupOpened_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],QW.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],QW.prototype,"loading",void 0);_.r([_.E(),_.h("design:type",Number)],QW.prototype,"selectIndexMax_",void 0);_.r([_.E(),_.h("design:type",Object)],QW.prototype,"selectedData_",void 0);
_.r([_.E(),_.h("design:type",Object)],QW.prototype,"sliderAriaValueText_",void 0);_.r([_.E({value:function(){return this.onSubmitTap_.bind(this)}}),
_.h("design:type",Function)],QW.prototype,"onButtonTap_",void 0);_.r([_.E({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.h("design:type",Function)],QW.prototype,"onSecondaryTap_",void 0);_.r([_.E(),_.h("design:type",Object)],QW.prototype,"messages",void 0);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],QW.prototype,"onPopupOpened_",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QW.prototype,"dataChanged_",null);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],QW.prototype,"closePopupHandler_",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],QW.prototype,"onYtServiceRequestSent",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],QW.prototype,"onYtServiceRequestCompleted",null);_.r([_.Em({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],QW);
_.B(QW,"yt-unplugged-pause-membership-dialog-renderer",function(){if(ps7===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Sl0===void 0&&(Sl0=document.createElement("template"));var R=Sl0;I.call(c,R.content.cloneNode(!0),G.content.firstChild);ps7=G}G=ps7;return G},{mode:2});var Mpu;var Vpu;var mH=function(){return _.J.apply(this,arguments)||this};
_.u(mH,_.J);mH.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.pQ("vcBalanceRenderer")}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],mH.prototype,"data",void 0);_.r([_.Em({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],mH);
_.B(mH,"yt-vc-offer-layout-header-renderer",function(){if(Vpu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Mpu===void 0&&(Mpu=document.createElement("template"));var R=Mpu;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Vpu=G}G=Vpu;return G},{mode:2});var zOd;var Ek1;var JLd;var Wiu;var aZ=function(){return _.J.apply(this,arguments)||this};
_.u(aZ,_.J);aZ.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Nh.Object.defineProperties(aZ.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)}}});
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.JeW.YtTappableItemBehavior),_.h("design:type",Object)],aZ.prototype,"ytTappableItemBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],aZ.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.A("data.accessibilityText"),_.h("design:type",String),_.h("design:paramtypes",[])],aZ.prototype,"ariaLabel",null);_.r([_.E({reflectToAttribute:!0}),_.A("data.style"),_.h("design:type",String),_.h("design:paramtypes",[])],aZ.prototype,"vcOfferStyle",null);_.r([_.A("data.style","data.titleText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],aZ.prototype,"showTitleText",null);_.r([_.Em({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],aZ);
_.B(aZ,"yt-vc-offer-renderer",function(){if(Wiu===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;JLd===void 0&&(JLd=document.createElement("template"));var R=JLd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Wiu=G}G=Wiu;return G},{mode:2});var T4=function(){return _.J.apply(this,arguments)||this};
_.u(T4,_.J);T4.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}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],T4.prototype,"data",void 0);_.r([_.Em({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],T4);
_.B(T4,"yt-vc-offer-layout-renderer",function(){if(Ek1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;zOd===void 0&&(zOd=document.createElement("template"));var R=zOd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Ek1=G}G=Ek1;return G},{mode:2});var i2j;var f8u;var BfF;var rLd;var OW=function(){return _.J.apply(this,arguments)||this};
_.u(OW,_.J);OW.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}}}}}};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],OW.prototype,"data",void 0);_.r([_.Em({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],OW);
_.B(OW,"yt-ypc-offers-modal-top-bar-renderer",function(){if(rLd===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;BfF===void 0&&(BfF=document.createElement("template"));var R=BfF;I.call(c,R.content.cloneNode(!0),G.content.firstChild);rLd=G}G=rLd;return G},{mode:2});var em=function(){return _.J.apply(this,arguments)||this};
_.u(em,_.J);em.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"}}}}};
em.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
em.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var G=this.scrollable;G.attached&&typeof G.attached==="function"&&G.attached()};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);_.r([_.nH("#scrollable"),_.h("design:type",Object)],em.prototype,"scrollable",void 0);_.r([_.E(),_.h("design:type",Object)],em.prototype,"data",void 0);_.r([_.Em({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],em);
_.B(em,"yt-ypc-offers-modal-renderer",function(){if(f8u===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;i2j===void 0&&(i2j=document.createElement("template"));var R=i2j;I.call(c,R.content.cloneNode(!0),G.content.firstChild);f8u=G}G=f8u;return G},{mode:2});var jAW;var xT7;var Ns=function(){return _.J.apply(this,arguments)||this};
_.u(Ns,_.J);_.P=Ns.prototype;_.P.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Q1(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.P.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ym(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.P.onYtPopupOpened_=function(G,c){(c==null?void 0:c.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.cd(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.onYtPopupClosed_=function(G,c){this.continueButtonTapped||c&&(c.canceled===!0||c.canceled===!1&&c.confirmed===!1)&&this.data.onDismissCommands&&_.cd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestError_=function(G){this.set("showSpinner",!1);_.Xc(this.hostElement,G.detail.error.message)};
_.P.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.v("enable_ypc_spinners")?_.ym(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Ns.prototype.onYtServiceRequestError_=Ns.prototype.onYtServiceRequestError_;Ns.prototype.onYtPopupClosed_=Ns.prototype.onYtPopupClosed_;Ns.prototype.onYtPopupOpened_=Ns.prototype.onYtPopupOpened_;Ns.prototype.onYtServiceRequestCompleted_=Ns.prototype.onYtServiceRequestCompleted_;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],Ns.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.h("design:type",Object)],Ns.prototype,"data",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Ns.prototype,"showSpinner",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],Ns.prototype,"continueButtonTapped",void 0);_.r([_.E({value:function(){return this.onContinueTapped_.bind(this)}}),
_.h("design:type",Function)],Ns.prototype,"bindOnContinueTapped_",void 0);_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ns.prototype,"onYtServiceRequestCompleted_",null);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Ns.prototype,"onYtPopupOpened_",null);
_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Ns.prototype,"onYtPopupClosed_",null);_.r([_.qY("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ns.prototype,"onYtServiceRequestError_",null);_.r([_.Em({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Ns);
_.B(Ns,"yt-ypc-upgrade-dialog-renderer",function(){if(xT7===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;jAW===void 0&&(jAW=document.createElement("template"));var R=jAW;I.call(c,R.content.cloneNode(!0),G.content.firstChild);xT7=G}G=xT7;return G},{mode:2});var tpr;var hO1;var lp=function(){return _.J.apply(this,arguments)||this};
_.u(lp,_.J);lp.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
lp.prototype.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.confirmButton)};
lp.prototype.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],lp.prototype,"ytEventForwardingBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],lp.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],lp.prototype,"positionType",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.h("design:type",Boolean)],lp.prototype,"hasButtons_",void 0);_.r([_.E({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.h("design:type",Boolean)],lp.prototype,"style_",void 0);_.r([_.Em({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],lp);
_.B(lp,"yt-bubble-hint-renderer",function(){if(hO1===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;tpr===void 0&&(tpr=document.createElement("template"));var R=tpr;I.call(c,R.content.cloneNode(!0),G.content.firstChild);hO1=G}G=hO1;return G},{mode:2});var dTH;var C0H;var qs=function(){var G=_.li.apply(this,arguments)||this;G.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return G};
_.u(qs,_.li);_.P=qs.prototype;_.P.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.P.attached=function(){var G=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){G.$.thumbnail.onShow();G.$["header-image"].onShow()})};
_.P.handleCheckBoxUpdateAction_=function(G){this.canShowCheckboxEnabledConfirmButton=G};
_.P.computeUseOverlayForSpinner_=function(G,c){return!!G&&c};
_.P.computeShowSpinner_=function(G,c){return G||!!c};
_.P.fireOnCloseActions_=function(){var G,c=_.Q(((G=this.data)==null?void 0:G.onClosedActions)||[]);for(G=c.next();!G.done;G=c.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.P.fireOnOpenCommands_=function(G){var c,I=(c=this.data)==null?void 0:c.onOpenCommands;if(I)for(G.stopImmediatePropagation(),G=_.Q(I),c=G.next();!c.done;c=G.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.P.fireOnDismissCommands_=function(G){var c,I=(c=this.data)==null?void 0:c.onDismissCommands;if(I)for(G.stopImmediatePropagation(),G=_.Q(I),c=G.next();!c.done;c=G.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.P.openPopupHandler_=function(G){G.detail==this&&this.fireOnOpenCommands_(G)};
_.P.closePopupHandler_=function(G,c){_.gq(this,"yt-confirm-dialog-close-action",[c]);this.fireOnCloseActions_();(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1)&&this.fireOnDismissCommands_(G)};
_.P.onHeaderImageChanged_=function(){var G;((G=this.data)==null?0:G.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.P.computeHasHeaderImageWidth_=function(G){return G!=void 0};
_.P.computeHasLoadingMessage=function(G){return!!G};
_.P.onHeaderImageWidthChanged_=function(){var G,c=(G=this.data)==null?void 0:G.headerImageWidth;if(c){if(G=1.25*c*2+c,this.$.main.style.width=G+"px",c=this.$.scroller.firstElementChild)c.style.minWidth=G+"px"}else this.$.main.style.width="100%"};
_.P.onThumbnailChanged_=function(){var G;((G=this.data)==null?0:G.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.P.onYtNavigate_=function(G){G=_.HH(G);G instanceof Node&&_.m9(this.$["confirm-button"]).contains(G)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.P.computePrimaryIsCancel_=function(G){return G};
_.P.computeIsCancelButtonHidden_=function(G){return G.skipCancelButton||!G.cancelButton};
_.P.computeIsCheckboxHidden_=function(G){return!G.checkbox};
_.P.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.P.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.P.onYtServiceRequestCompleted_=function(){var G;((G=this.data)==null?0:G.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Nh.Object.defineProperties(qs,{template:{configurable:!0,enumerable:!0,get:function(){if(C0H===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;dTH===void 0&&(dTH=document.createElement("template"));var R=dTH;I.call(c,R.content.cloneNode(!0),G.content.firstChild);C0H=G}G=C0H;return G}}});
qs.prototype.onYtServiceRequestCompleted_=qs.prototype.onYtServiceRequestCompleted_;qs.prototype.onYtServiceRequestSent_=qs.prototype.onYtServiceRequestSent_;qs.prototype.onThumbnailLoaded_=qs.prototype.onThumbnailLoaded_;qs.prototype.onYtNavigate_=qs.prototype.onYtNavigate_;qs.prototype.onThumbnailChanged_=qs.prototype.onThumbnailChanged_;qs.prototype.onHeaderImageWidthChanged_=qs.prototype.onHeaderImageWidthChanged_;qs.prototype.onHeaderImageChanged_=qs.prototype.onHeaderImageChanged_;
qs.prototype.closePopupHandler_=qs.prototype.closePopupHandler_;qs.prototype.openPopupHandler_=qs.prototype.openPopupHandler_;_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],qs.prototype,"ytActionHandlerBehavior",void 0);_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);
_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],qs.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],qs.prototype,"data",void 0);_.r([_.E({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.h("design:type",Boolean)],qs.prototype,"primaryIsCancel",void 0);_.r([_.E({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.h("design:type",Boolean)],qs.prototype,"isCancelButtonHidden",void 0);
_.r([_.E({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.h("design:type",Boolean)],qs.prototype,"isCheckboxHidden",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],qs.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.r([_.E({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.h("design:type",Boolean)],qs.prototype,"useOverlayForSpinner_",void 0);
_.r([_.E({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.h("design:type",Boolean)],qs.prototype,"showSpinner_",void 0);_.r([_.E({value:!1}),_.h("design:type",Boolean)],qs.prototype,"isActionInProgress_",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.h("design:type",Boolean)],qs.prototype,"hasHeaderImageWidth_",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.h("design:type",Boolean)],qs.prototype,"hasLoadingMessage",void 0);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],qs.prototype,"openPopupHandler_",null);_.r([_.qY("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],qs.prototype,"closePopupHandler_",null);
_.r([_.wD("data.headerImage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qs.prototype,"onHeaderImageChanged_",null);_.r([_.wD("data.headerImageWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qs.prototype,"onHeaderImageWidthChanged_",null);_.r([_.wD("data.thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qs.prototype,"onThumbnailChanged_",null);
_.r([_.qY("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qs.prototype,"onYtNavigate_",null);_.r([_.qY("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qs.prototype,"onThumbnailLoaded_",null);_.r([_.qY("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.x5]),_.h("design:returntype")],qs.prototype,"onYtServiceRequestSent_",null);
_.r([_.qY("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.gi]),_.h("design:returntype")],qs.prototype,"onYtServiceRequestCompleted_",null);_.r([_.Em({is:"yt-confirm-dialog-renderer",noInjection:!0})],qs);var H27;var Xsg;var wM=function(){return _.J.apply(this,arguments)||this};
_.u(wM,_.J);wM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Q1(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
wM.prototype.computeConfirmButton_=function(G){var c={text:G.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};G.confirmNavigationEndpoint?c.navigationEndpoint=G.confirmNavigationEndpoint:G.confirmServiceEndpoint&&(c.serviceEndpoint=G.confirmServiceEndpoint);return c};
wM.prototype.computeShowTitle_=function(G){return!(G==null||!G.title)};
_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],wM.prototype,"data",void 0);_.r([_.E({computed:"computeShowTitle_(data)"}),_.h("design:type",Boolean)],wM.prototype,"showTitle",void 0);_.r([_.Em({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],wM);
_.B(wM,"yt-fancy-dismissible-dialog-renderer",function(){if(Xsg===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;H27===void 0&&(H27=document.createElement("template"));var R=H27;I.call(c,R.content.cloneNode(!0),G.content.firstChild);Xsg=G}G=Xsg;return G});var yLW;var gk0;var F2=function(){var G=_.J.apply(this,arguments)||this;G.spinnerActive=!1;return G};
_.u(F2,_.J);F2.prototype.created=function(){CKG(2201)};
F2.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
F2.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
F2.prototype.onIronOverlayClosed=F2.prototype.onIronOverlayClosed;F2.prototype.onIronOverlayOpened=F2.prototype.onIronOverlayOpened;_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.Du),_.h("design:type",Object)],F2.prototype,"tpYtIronOverlayBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],F2.prototype,"data",void 0);_.r([_.E(),_.h("design:type",Object)],F2.prototype,"spinnerActive",void 0);
_.r([_.qY("iron-overlay-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F2.prototype,"onIronOverlayOpened",null);_.r([_.qY("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F2.prototype,"onIronOverlayClosed",null);_.r([_.Em({is:"yt-loading-renderer",disableElementRegistration:!0})],F2);
_.B(F2,"yt-loading-renderer",function(){if(gk0===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;yLW===void 0&&(yLW=document.createElement("template"));var R=yLW;I.call(c,R.content.cloneNode(!0),G.content.firstChild);gk0=G}G=gk0;return G},{mode:2});var Yld;var GAW;var nn=function(){var G=_.J.apply(this,arguments)||this;G.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);G.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);G.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.u(nn,_.J);_.P=nn.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.P.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.P.openPopupHandler_=function(G){G.detail===this.hostElement&&this.hostElement.hidden&&_.ym(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.P.onDismissButtonTap_=function(){var G;this.closeOnDismissButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ym(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.onAcceptButtonTap_=function(){var G;this.closeOnAcceptButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ym(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.computeHasHeader_=function(G){return!!G.headerBackgroundImage};
_.P.computeLayoutStyle_=function(G){return G};
_.P.computePopupSize_=function(G){return G};
_.P.computeIconType_=function(G){return G.dialogIcon&&G.dialogIcon.iconType?G.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":G.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":G.dialogIcon.iconType:""};
_.P.computeIsLogo_=function(G){return!!G.dialogIcon&&!!G.dialogIcon.iconType&&(G.dialogIcon.iconType==="YOUTUBE_LOGO"||G.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||G.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.P.computeHasCustomLogo=function(G){return!(G==null||!G.headerForegroundImage)};
_.P.computeCustomLogo=function(G,c){if(G!=null&&G.headerForegroundImage)return G.headerForegroundImageDark?c?G.headerForegroundImageDark:G.headerForegroundImage:G.headerForegroundImage};
_.P.computeHeaderBackgroundImage=function(G,c){if(G!=null&&G.headerBackgroundImage)return c&&(G==null?0:G.headerBackgroundImageDark)?G.headerBackgroundImageDark:G.headerBackgroundImage};
_.P.shouldShowIconContainer=function(G,c){return G&&!c};
_.P.shouldShowNonYouTubeIcon=function(G,c){return!G&&!c};
_.P.getLogoImageId=function(G){var c,I,R;return(G=(c=this.computeCustomLogo(G,this.isDarkTheme))==null?void 0:(I=c.thumbnails)==null?void 0:(R=I[0])==null?void 0:R.height)&&G%31===0?"custom-logo-with-padding":"custom-logo"};
nn.prototype.openPopupHandler_=nn.prototype.openPopupHandler_;nn.prototype.dataChanged_=nn.prototype.dataChanged_;_.r([_.L(_.V5.YtRendererstamperBehavior),_.h("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.h("design:type",Boolean)],nn.prototype,"isDarkTheme",void 0);
_.r([_.E({computed:"computeCustomLogo(data, isDarkTheme)"}),_.h("design:type",Object)],nn.prototype,"customLogo",void 0);_.r([_.E({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.h("design:type",Object)],nn.prototype,"headerBackgroundImage",void 0);_.r([_.E(),_.h("design:type",Object)],nn.prototype,"data",void 0);_.r([_.E({computed:"computeHasHeader_(data)"}),_.h("design:type",Boolean)],nn.prototype,"hasHeader",void 0);
_.r([_.E({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.h("design:type",Object)],nn.prototype,"layoutStyle",void 0);_.r([_.E({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.h("design:type",Object)],nn.prototype,"popupSize",void 0);_.r([_.E({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],nn.prototype,"hasLogo",void 0);
_.r([_.E({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],nn.prototype,"hasCustomLogo",void 0);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nn.prototype,"dataChanged_",null);_.r([_.qY("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],nn.prototype,"openPopupHandler_",null);
_.r([_.Em({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],nn);
_.B(nn,"yt-upsell-dialog-renderer",function(){if(GAW===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;Yld===void 0&&(Yld=document.createElement("template"));var R=Yld;I.call(c,R.content.cloneNode(!0),G.content.firstChild);GAW=G}G=GAW;return G},{mode:2});var c1u=_.W(function(G){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.e(_.l,{cond:G.title,then:function(c){return _.e("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},c)}}))},"Gj"),Ijd=_.W(function(G){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.e(_.sN,{data:G.closeButton},{buttonViewModel:function(c){return _.e("div",null,_.e(_.BR,{data:c.data}))}}))},"Hj"),R5$=_.W(function(G){var c=G.data;
return _.e(_.FG,null,_.e("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.e("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.e(_.l,{cond:function(){return!!c().image&&!!c().title},
then:function(){return _.e(_.yc,{data:function(){return c().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.e("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.e(_.l,{cond:function(){return c().title},
then:function(I){return _.e("h3",{class:"miniAppGameInfoDialogViewModelTitle"},I)}}),_.e(_.l,{cond:function(){return c().primaryGenre},
then:function(I){return _.e("span",{class:"miniAppGameInfoDialogViewModelGenre"},I)}}))),_.e(_.l,{cond:function(){var I=c().description;
return I&&I.length<=150},
then:function(){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.e("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return c().description}))}}))},"Ij"),Zwr=_.W(function(G){G=G.infoRows;
var c=_.wH().resolve(_.E1),I=_.v("enable_displaying_ppn");return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.e(_.fh,{each:G},function(R){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.e(_.l,{cond:function(){return R.label},
then:function(Z){return _.e("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},Z)}}),_.e(_.l,{cond:function(){return R.attributedLabel},
then:function(Z){return _.e("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.e(_.ul,{text:Z,noPreWrap:!0}))}}),_.e(_.l,{cond:function(){return R.value},
then:function(Z){return _.e("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Z)}}),_.e(_.l,{cond:function(){return R.attributedValue},
then:function(Z){return _.e("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.e(_.ul,{text:Z,noPreWrap:!0}))}}))}),_.e(_.l,{cond:function(){return I&&c.clientData.has("post_play_nonce")},
then:function(){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.e("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.e("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},c.getData("post_play_nonce")))}}))},"Jj"),KTg=_.W(function(G){var c=G.data;
return _.e("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.e(c1u,{title:function(){return c().dialogTitle}}),_.e(R5$,{data:c}),_.e(_.l,{cond:function(){return c().infoRow},
then:function(I){return _.e(Zwr,{infoRows:I})}}),_.e(Ijd,{closeButton:function(){return c().closeButton}}))},"Kj");
KTg.idomCompat=!0;_.R1(KTg,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;return _.e("yt-gulp-triggering-dialog-view-model",{class:_.O3("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.e(_.yc,{data:function(){return c().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.e("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.e("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.e("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e(_.l,{cond:function(){return c().bodyText},
then:function(I){return _.e(_.fh,{each:I},function(R){return _.e("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.e(_.ul,{text:R}))})}})),_.e("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.e(_.sN,{data:function(){return c().dismissButton}},{buttonViewModel:function(I){return _.e("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.e(_.BR,{data:I.data}))}}),_.e(_.sN,{data:function(){return c().actionButton}},{buttonViewModel:function(I){return _.e("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.e(_.BR,{data:I.data}))}}))))},"Lj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.bl}});var PFj=_.W(function(G){var c=G.data;G=_.gD(function(){return c().agreements},[]);
return _.e("installment-agreements-view-model",{class:_.O3("ytInstallmentAgreementsViewModelHost")},_.e(_.fh,{each:G},function(I){return _.e("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.e("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.e(_.ul,{text:I.label})),_.e("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.e(_.sN,{data:function(){return I.openButton}},{buttonViewModel:_.BR})))}))},"Mj");
PFj.idomCompat=!0;var Qrj=_.W(function(G){var c=_.Q(_.Gz(function(){var H,g;return((H=G.data().createPlaylistDialogFormSchema)==null?0:(g=H.initialValues)==null?0:g.title)?G.data().createPlaylistDialogFormSchema.initialValues.title:""})),I=c.next().value,R=c.next().value;
c=_.Q(_.Gz(function(){G.data();return!1}));
var Z=c.next().value,K=c.next().value;c=_.Q(_.Gz(function(){G.data();return!1}));
var m=c.next().value,a=c.next().value;c=_.Q(_.Gz(function(){var H,g;return(H=G.data().createPlaylistDialogFormSchema)==null?void 0:(g=H.initialValues)==null?void 0:g.visibility}));
var O=c.next().value,N=c.next().value;c=_.Q(_.Gz(function(){G.data();return!1}));
var q=c.next().value,w=c.next().value;c=_.Q(_.Gz(function(){var H,g;return(H=G.data().createPlaylistDialogFormSchema)==null?void 0:(g=H.initialValues)==null?void 0:g.isCollaborative}));
var F=c.next().value,n=c.next().value,U=_.mX("div");_.xs(function(){var H=U.value.querySelector("textarea");H&&(H.value=I())},"axFRaf");
_.tI(function(){var H;_.gt$((H=G.data().createPlaylistDialogFormSchema)==null?void 0:H.id,{onSubmit:function(){var g=I();var QO=O(),T8=F(),kp=G.data();g={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:g,privacyStatus:QO,videoIds:kp.videoIds,sourcePlaylistId:kp.sourcePlaylistId,params:T8?kp.createPlaylistParamsCollaborationEnabled:kp.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.wH().resolve(_.n4).resolveCommand(g)},
isValid:function(){return Z()&&!m()&&!q()}})});
var k=function(H){if(H!==void 0&&(R(H),!Z()&&H.length>0&&K(!0),Z())){var g=gqu(G.data());if(g){var QO=g.minLength;g=g.maxLength;QO&&H.length<QO?a(!0):g&&H.length>g?a(!0):a(!1)}}},p=function(){var H=!(!F()||O()!=="PRIVATE");
w(H)},M=function(H){H!==void 0&&(N(H),p())},z=function(){if(q())return GRu(G.data())},t=function(){n(!F());
p()},x=function(){return{validate:function(H){if(Z()){var g=gqu(G.data());
if(g){var QO=g.minLength;g=g.translations;if(QO&&H.length<QO)return g==null?void 0:g.minLengthErrorMessage}}}}},C=function(){var H=gqu(G.data()),g=H==null?void 0:H.maxLength,QO;
H=H==null?void 0:(QO=H.translations)==null?void 0:QO.maxLengthErrorMessage;if(g&&H)return{maxChars:g,errorMessage:H}};
return _.e("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.e("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:U},_.e(_.sN,{data:function(){return G.data().playlistTitle}},{textFormFieldViewModel:function(H){return _.e(_.Tng,{data:H.data,
text:I,onInput:k,validation:x,characterLimit:C})},
textFieldViewModel:function(H){return _.e(_.abW,{data:H.data,text:I,onInput:k,validation:x,characterLimit:C})}})),_.e("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.e(_.sN,{data:function(){return G.data().playlistVisibility}},{dropdownViewModel:function(H){return _.e(_.DDu,{data:H.data,
onSelected:M,error:z})}})),_.e(_.l,{cond:function(){return!!G.data().playlistCollaborate},
then:function(){return _.e("div",null,_.e(_.sN,{data:function(){return G.data().playlistCollaborate}},{switchListItemViewModel:function(H){return _.e(_.Mbi,{data:H.data,
onTap:t})}}))}}))},"Oj");var mr$=_.W(function(G){var c=G.data;return _.e("upsell-offer-table-cell-content-view-model",null,_.e("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.e(_.B1,null,_.e(_.W1,{when:function(){var I;return(I=c().icon)==null?void 0:I.iconType}},function(){return _.e("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.e(_.F6,{icon:function(){var I;
return(I=c().icon)==null?void 0:I.iconType.toString()}}))}),_.e(_.W1,{when:function(){return c().title}},function(){return _.e(_.ul,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return c().title}})}),_.e(_.W1,{when:function(){return c().subtitle}},function(){return _.e(_.ul,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return c().subtitle}})}),_.e(_.W1,{when:function(){return c().infoText}},function(){return _.e(_.ul,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return c().infoText}})}),_.e(_.W1,{when:function(){return c().featureDescription}},function(){return _.e(_.ul,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return c().featureDescription}})}),_.e(_.W1,{when:function(){return c().note}},function(){return _.e(_.ul,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return c().note}})})),_.e(_.l,{cond:function(){var I;
return(I=c().icon)==null?void 0:I.iconAccessibilityText},
then:function(){return _.e("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var I;return(I=c().icon)==null?void 0:I.iconAccessibilityText})}})))},"Pj");
mr$.idomCompat=!0;var aj0=_.W(function(G){var c=G.data;var I=G.cellIndex;var R=G.rowIndex;return _.e("upsell-offer-table-cell-view-model",null,_.e("div",{class:_.O3("ytUpsellOfferTableCellViewModelCellWrapper",function(){return c().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":c().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var Z,K;return"cell-"+((Z=R==null?void 0:R())!=null?Z:0)+"-"+((K=I==null?void 0:I())!=null?K:0)},
role:function(){return c().isFirstRow?"columnHeader":c().isFirstColumn?"rowheader":"gridcell"}},_.e(_.sN,{data:function(){return c().contents}},{upsellOfferTableCellContentViewModel:mr$})))},"Qj");
aj0.idomCompat=!0;var T_u=_.W(function(G){var c=G.data;var I=G.upsellTableIsFirstRow;var R=G.rowIndex;var Z=function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},K=function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.e("ytm-upsell-offer-table-row-view-model",null,_.e("div",{class:function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(R==null?void 0:R())+"-1 cell-"+(R==null?void 0:R())+"-2"}},_.e(_.sN,{data:function(){return c().rowHeaderCell}},{upsellOfferTableCellViewModel:function(m){return _.e("div",{class:Z},_.e(aj0,{data:m.data,
cellIndex:0,rowIndex:R}))}}),_.e("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.e(_.sN,{data:function(){return c().contentCells}},{upsellOfferTableCellViewModel:function(m,a){return _.e("div",{class:K},_.e(aj0,{data:m.data,
cellIndex:function(){return a()+1},
rowIndex:R}))}}))))},"Rj");
T_u.idomCompat=!0;var Ow7=_.W(function(G){var c=G.data;return _.e("ytm-upsell-offer-table-view-model",null,_.e("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.e("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.e(_.sN,{data:function(){return c().rows}},{upsellOfferTableRowViewModel:function(I,R){return _.e(T_u,{data:I.data,
upsellTableIsFirstRow:function(){return R()===0},
rowIndex:R})}}))))},"Sj");
Ow7.idomCompat=!0;var e5u=_.W(function(G){var c=function(){return G.data()},I=_.gD(G.noPadding,!1),R=function(){var K,m;
return(m=(K=c().logo.accessibilityData)==null?void 0:K.label)!=null?m:""},Z={};
return _.e("upsell-view-model",{class:_.O3("ytUpsellViewModelHost",(Z.ytUpsellViewModelHostNoPadding=function(){return I()},Z.ytUpsellViewModelHostWide=function(){return c().offerTable!==void 0},Z))},_.e("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.e(_.l,{cond:function(){return _.dP(c().logo)},
then:function(K){return _.e(_.yc,{data:K,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:R})}})),_.e("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.e(_.ul,{text:function(){return c().title}})),_.e("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.e(_.fh,{each:function(){var K;
return(K=c().subtitles)!=null?K:[]},
keyBy:"INDEX"},function(K){var m={};return _.e("div",{class:_.O3("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(m.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return c().offerTable!==void 0},m))},_.e(_.ul,{text:K}))})),_.e("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.e(_.fh,{each:function(){var K;
return(K=c().benefitInfos)!=null?K:[]},
keyBy:"INDEX"},function(K){return _.e(_.l,{cond:function(){return K().info},
then:function(m){return _.e("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.e(_.F6,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.e(_.ul,{text:m}))}})})),_.e(_.l,{cond:function(){return c().offerTable!==void 0},
then:function(){return _.e("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.e(_.sN,{data:function(){return c().offerTable}},{upsellOfferTableViewModel:function(K){return _.e(Ow7,{data:K.data})}}))}}),_.e("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.e(_.fh,{each:function(){var K;
return(K=c().legalInfos)!=null?K:[]},
keyBy:"INDEX"},function(K){var m={};return _.e("div",{class:_.O3("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(m.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return c().offerTable!==void 0},m))},_.e(_.ul,{text:K}))})))},"Tj");var N_j=_.W(function(G){var c=G.data;G={};G=(G.ytMiniAppScoreChallengeViewModelScoreRadial=!0,G.ytMiniAppScoreChallengeViewModelDarkScoreRadial=cE7(),G);return _.e("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.e("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return c().title}),_.e("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return c().subtitle}),_.e("div",{class:_.VK(G)},_.e("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return c().score})),_.e("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return c().prompt}))},"Uj");var ljj=function(){this.store=_.XZ();this.formId=""};
ljj.prototype.onInit=function(G){G.formId&&(this.formId=G.formId,this.store.dispatch(_.R6({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
ljj.prototype.cleanup=function(){this.store.dispatch(_.R6({type:"RESET_COMMAND_MAP"}))};var qaG=_.W(function(G){function c(a){if(a&&(a=_.D(a,_.$Z)))return Object.assign({},a,{isSelected:K()})}
var I=_.Q(_.Gz(function(){var a,O;return(O=(a=_.D(G.data().option,_.$Z))==null?void 0:a.isSelected)!=null?O:!1})),R=I.next().value,Z=I.next().value,K=R;
_.tI(function(){var a;_.gt$((a=G.data().formSchema)==null?void 0:a.id,{onSubmit:function(){var O=_.wH().resolve(_.n4),N=!!G.data().selectedCommand,q=!!G.data().unselectedCommand;if(K()){if(N)var w=G.data().selectedCommand}else q&&(w=G.data().unselectedCommand);w=_.WI(w);c(G.data().option)&&!w?(O="",!N&&q?O="selected ":N&&!q&&(O="unselected "),N=new _.iW("No "+O+"command found for SelectionListItemFormViewModel"),_.hg(N)):w&&O.resolveCommand(w)},
isValid:function(){return!0}})});
var m=function(){Z(!K())};
_.ty(function(){var a,O,N=(a=G.data())==null?void 0:(O=a.formSchema)==null?void 0:O.id;N&&_.bm()().delete(N)});
return _.e("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.e("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.e(_.ul,{text:function(){return G.data().paragraph}})),_.e(_.l,{cond:function(){return c(G.data().option)},
then:function(a){return _.e(_.s8,{data:a,isCompact:!0,hideSelectionTextChevron:!0,onTap:m,disableHorizontalPadding:!0})}}))},"Vj");var wPW=_.W(function(G){var c=G.data;var I=G.disablePadding;var R=G.className;var Z=_.mX("yt-dialog-header-view-model"),K=function(){var O=c().imageBanner;a:switch(c().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var N="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:N="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:O,style:N,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},m=function(){return c().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
a=function(){return c().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.tI(function(){var O=function(){_.ym(Z.value,"yt-refit-popups-action")},N;
(N=Z.value)==null||N.addEventListener("image-loaded",O);_.ty(function(){var q;(q=Z.value)==null||q.removeEventListener("image-loaded",O)})});
G={};return _.e("yt-dialog-header-view-model",{el:Z,class:_.O3(R,(G.ytDialogHeaderViewModelHost=!0,G.ytDialogHeaderViewModelHostDisablePadding=I,G.ytDialogHeaderViewModelHostCentered=a,G))},_.e(_.l,{cond:function(){return c().imageBanner},
then:function(){var O={};return _.e("div",{class:_.O3(R,(O.ytDialogHeaderViewModelBanner=!0,O.ytDialogHeaderViewModelBannerFullBleed=m,O)),style:_.wi({"max-height":function(){return c().assetContainerMaxHeight!==void 0?c().assetContainerMaxHeight+"px":void 0}})},_.e(_.hp,{data:K,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.e(_.l,{cond:function(){return c().headerBlock},
then:function(){var O={};return _.e("div",{class:_.O3("ytDialogHeaderViewModelHeaderBlock",(O.ytDialogHeaderViewModelHeaderBlockCentered=a,O))},_.e(_.sN,{data:function(){return c().headerBlock}},{contentPreviewImageViewModel:function(N){return _.e(_.hp,{data:N.data,
notifyOnLoaded:!0})}}))}}),_.e(_.l,{cond:function(){return c().customBanner},
then:function(O){var N={};return _.e("div",{class:_.O3("ytDialogHeaderViewModelCustomAssetContainer",(N.ytDialogHeaderViewModelCustomAssetContainerCentered=a,N))},_.e(_.sN,{data:O},{avatarStackViewModel:_.Fh}))}}),_.e(_.l,{cond:function(){return c().headline},
then:function(O){return _.e("h2",null,_.e(_.ul,{text:O,className:"ytDialogHeaderViewModelText"}))}}))},"Wj");
wPW.idomCompat=!0;var FT1=_.W(function(G){var c=_.qar(function(){return G.data().formId}),I=c.submitForm,R=c.isValid;
return _.e("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.e(_.sN,{data:function(){return G.data().panelFooter}},{panelFooterViewModel:function(Z){return _.e(_.jp,{data:Z.data,
disablePadding:!0,disablePrimaryButton:function(){return!R()},
onClickPrimaryButton:function(){I()}})}}))},"Xj");var nQd=_.W(function(G){var c=function(){var I,R;return(R=(I=_.D(G.data().rendererContext,_.Aq))==null?void 0:I.label)!=null?R:""};
return _.e("yt-dialog-image-content-view-model",{class:_.O3("ytDialogImageContentViewModelHost",G.className)},_.e(_.l,{cond:function(){return _.dP(G.data().image)},
then:function(I){var R={};return _.e("div",{style:_.wi((R.width=(0,_.U8)(function(){var Z;return(Z=G.data().imageMaxWidth)!=null?Z:""}),R)),
class:"ytDialogImageContentViewModelImage"},_.e(_.yc,{data:I,alt:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.e(_.ul,{text:function(){return G.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Yj");var oQF=_.W(function(G){var c=_.YW(G,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),I=c.elRefCallback;G=c.Icon;var R=c.Asset,Z=c.assetType,K=c.Title,m=c.LeadingActionHeader,a=c.TrailingActionHeader,O=c.headerPosition,N=c.Content,q=c.buttonLayout,w=c.buttonStyle,F=c.primaryButtonWiz,n=c.secondaryButtonWiz,U=c.contentAlignment,k=c.isFullscreen,p=c.width,M=c.maxHeight,z=c.isHeaderWizDefined,t=c.Header,x=c.isFooterWizDefined,
C=c.Footer;c=_.mX("dialog-layout",function(Wr){I==null||I(Wr)});
var H=F?function(){var Wr={};return F({buttonOverrides:function(){return{style:(w==null?void 0:w())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.O3((Wr["yt-spec-dialog-layout__dialog-layout-button"]=!0,Wr["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(q==null?void 0:q())===0||(q==null?void 0:q())===2},Wr))})}:void 0,g=n?function(){var Wr={};
return n({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.O3((Wr["yt-spec-dialog-layout__dialog-layout-button"]=!0,Wr["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(q==null?void 0:q())===0||(q==null?void 0:q())===2},Wr))})}:void 0,QO=function(){return(!!K||!!m||!!a)&&O()===0},T8={},kp={},FB={},oq={};
return _.e("dialog-layout",{el:c,class:_.O3((T8["yt-spec-dialog-layout"]=!0,T8["yt-spec-dialog-layout--dialog-layout-fullscreen"]=k,T8["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!k()},T8["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return M()===1},T8["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Z==null?void 0:Z())===1},T8)),
style:function(){return(p==null?void 0:p())!==void 0?"width: "+p()+"px;":""}},G?_.e("div",{class:_.O3((kp["yt-spec-dialog-layout__dialog-layout-icon"]=!0,kp["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!R&&O()===1},kp["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return U()===1},kp))},_.e(G,null)):null,_.e(_.l,{cond:z,
then:function(){return t?_.e("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.e(t,null)):null},
else:function(){return _.e(_.FG,null,_.e(_.l,{cond:QO,then:function(){return _.e(vQu,{contentAlignment:U,LeadingActionHeader:m,TrailingActionHeader:a,Title:K,isAboveAsset:!!R})}}),R?_.e("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.e(R,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.e("div",{class:_.O3((FB["yt-spec-dialog-layout__dialog-layout-container"]=!0,FB["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(U==null?void 0:U())===1},
FB["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!K&&!(t&&z())||!!R&&(O==null?void 0:O())===0},FB))},_.e(_.l,{cond:function(){return K&&!t&&(O==null?void 0:O())===1},
then:function(){return _.e(vQu,{contentAlignment:U,LeadingActionHeader:m,TrailingActionHeader:a,Title:K,isAboveAsset:!1})}}),N?_.e("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.e("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.e(N,null))):null,_.e(_.l,{cond:x,
then:function(){return C?_.e("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.e(C,null)):null}}),H||g?_.e(Dru,{footerClasses:_.O3((oq["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,oq["yt-spec-dialog-layout__dialog-layout-footer"]=!0,oq["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(q==null?void 0:q())===2},oq["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(q==null?void 0:q())===1},oq)),
PrimaryButton:H,SecondaryButton:g}):null))},"Zj"),vQu=_.W(function(G){var c=_.YW(G,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),I=c.contentAlignment,R=c.LeadingActionHeader;G=c.Title;var Z=c.TrailingActionHeader,K=c.isAboveAsset,m=c.enableLeadingActionHeader;c={};return _.e("div",{class:_.O3((c["yt-spec-dialog-layout__dialog-header-container"]=!0,c["yt-spec-dialog-layout__dialog-header"]=!0,c["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=K,c["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(I==null?void 0:I())===1&&m()},c))},_.e(_.l,{cond:function(){return m()},
then:function(){return R?_.e("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.e(R,null)):null}}),G?_.e("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.e(G,null)):null,Z?_.e("div",null,_.e(Z,null)):null)},"$j"),Dru=_.W(function(G){var c=G.footerClasses;
var I=G.PrimaryButton;G=G.SecondaryButton;return _.e("div",{class:c},G?_.e(G,null):null,I?_.e(I,null):null)},"ak");var Urd=new _.De("TIME_PICKER_VIEW_MODEL_TOKEN");var uw0=_.W(function(G){var c=G.data;return _.e("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.e("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.e(_.sN,{data:function(){return c().avatar}},{avatarViewModel:_.qF})),_.e("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e(_.ul,{text:function(){return c().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"bk");var bwu=_.W(function(G){return _.e("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.e(_.ul,{text:function(){return G.data().inviteMessage}})),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.e(_.ul,{text:function(){return G.data().attributedAccountSectionHeaderText}})),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.e(_.sN,{data:function(){return G.data().accountAvatar}},{avatarViewModel:_.qF}),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.e(_.ul,{text:function(){return G.data().accountName}}),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.e(_.ul,{text:function(){return G.data().handle}}))),_.e(_.sN,{data:function(){return G.data().trailingButton}},{buttonViewModel:_.BR})),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.e(_.ul,{text:function(){return G.data().termsOfService}})))},"ck");var kA7=_.W(function(G){var c=G.data;return _.e("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.e("div",{class:"ytAccessConfirmationViewModelContent"},_.e(_.sN,{data:function(){var I;return(I=c().avatar)!=null?I:c().dualAvatar}},{dualAvatarViewModel:function(I){return _.e(_.oNg,{data:I.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(I){return _.e(_.wE,{data:I.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.e("h2",{class:"ytAccessConfirmationViewModelTitle"},_.e(_.ul,{text:function(){return c().title}})),_.e(_.ul,{text:function(){return c().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"dk");var srF=_.W(function(G){var c=function(){return G.data().checkboxGroup},I=_.Q(_.Gz(function(){var m;
return(m=_.D(c(),_.qC7))==null?void 0:m.defaultSelectedKeys})),R=I.next().value,Z=I.next().value;
_.xs(function(){var m=G.data().formSchema,a=m==null?void 0:m.submitConfig;m&&a&&_.ya$(m.id,{isValid:function(){var O;return((O=R())!=null?O:[]).length>0},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:R()||[]}}},
submitConfig:a})},"BJejnc");
var K=function(m,a){Z(a)};
return _.e("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.e(_.sN,{data:c},{checkboxGroupViewModel:function(m){return _.e(_.Puu,{data:m.data,onItemTap:K,controlledMode:!1})}}))},"fk");var LTr=_.W(function(G){var c=G.data;var I=void 0;G=_.Q(_.Gz(function(){var q;return((q=_.D(c().content,_.wdW))==null?void 0:q.defaultSelectedKey)||""}));
var R=G.next().value,Z=G.next().value,K,m=function(){Z("");var q;(q=I)==null||q.cleanup()};
_.tI(function(){I=new ljj;window.addEventListener("yt-popup-closed",m)});
_.xs(function(){if(I&&K!==c().formId&&(I.onInit(c()),(K=c().formId)&&R())){var q=I,w={key:R()};w.command&&q.store.dispatch(XwG(K,w.command))}},"bo7oA");
_.ty(function(){window.removeEventListener("yt-popup-closed",m)});
var a=function(q,w,F){w.key&&F&&w.key!==R()&&(Z(w.key),I&&w.command&&I.store.dispatch(XwG(F,w.command)))},O=function(){if(_.D(c().content,_.wdW))return!(R==null?0:R())},N=_.wH().resolve(_.qR(Urd));
return _.e("yt-dialog-view-model",{class:_.O3("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.e(oQF,{Header:function(){return _.e(_.sN,{data:function(){return c().header}},{dialogHeaderViewModel:function(q){return _.e(wPW,{data:q.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!c().header},
Content:function(){return _.e(_.sN,{data:function(){return c().customContent?c().customContent:c().content}},Object.assign({},{basicContentViewModel:_.bh,
createPlaylistDialogFormViewModel:Qrj,collaborativePlaylistInviteMessageViewModel:bwu,preferredLanguageSettingsPanelViewModel:srF,miniAppScoreChallengeViewModel:N_j,radioButtonGroupViewModel:function(q){var w=q.data;return _.e(_.ZEW,{data:w,selectedKey:R,onSelected:a,groupName:function(){return w().formId}})},
selectionListItemFormViewModel:qaG,upsellViewModel:function(q){return _.e(e5u,{data:q.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:uw0,installmentAgreementsViewModel:PFj,accessConfirmationViewModel:kA7,listViewModel:function(q){return _.e(_.BOe,{data:q.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:nQd},N&&{timePickerViewModel:N}))},
Footer:function(){return _.e(_.sN,{data:function(){return c().footer}},{panelFooterViewModel:function(q){return _.e(_.jp,{data:q.data,
disablePadding:!0,disablePrimaryButton:O})},
formPanelFooterViewModel:FT1,formFooterViewModel:function(q){return _.e(_.hR$,{data:q.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!c().footer}}))},"hk");
LTr.idomCompat=!0;_.R1(LTr,"yt-dialog-view-model",{props:{data:_.bl},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var A1W=_.W(function(G){var c=G.data;return _.e("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.e(_.l,{cond:function(){return c().title},
then:function(I){return _.e("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.e(_.ul,{text:I,className:"ytPanelHeaderViewModelTitle"}))}}),_.e(_.l,{cond:function(){return c().subtitle},
then:function(I){return _.e(_.ul,{text:I,className:"ytPanelHeaderViewModelSubtitle"})}}))},"ik"),$r0=_.W(function(G){var c=G.data;
var I=_.h3O(function(){return c().rendererContext});
G={};return _.e("yt-panel-header-view-model",{class:_.O3("ytPanelHeaderViewModelHost",(G.ytPanelHeaderViewModelHostHideDivider=function(){return!!c().shouldHideDivider},G.ytPanelHeaderViewModelHostCompact=function(){return!!c().subtitle},G)),
"aria-label":function(){var R;return(R=I())==null?void 0:R.label}},_.e(_.l,{cond:function(){return _.W8(c().rendererContext)},
then:function(){return _.e(_.uVe,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.JY(c().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.e(A1W,{data:c}))},
else:function(){return _.e(A1W,{data:c})}}),_.e("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.e(_.sN,{data:function(){return c().trailingButtons}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
className:"ytPanelHeaderViewModelButton"})}})))},"jk");
$r0.idomCompat=!0;var Sa0=_.W(function(G){var c=_.Nx(function(K){var m;if((m=G.skipContentClick)==null?0:m.call(G))return!1;G.onContentWrapperClick(K);return!0}),I,R,Z;
return _.e("div",{class:_.O3("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return G.isAnimating()?"transform: translateY("+G.currentY()+"px);transition: 0.2s":""}},(I=G.header)==null?void 0:I.call(G),_.e("div",{id:G.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.wi({"max-height":(0,_.U8)(G.maxHeightForContentWrapper)}),"on:scroll":_.Nx(function(K){return G.onScroll(K),!1}),
"on:touchmove":_.Nx(function(K){return K.stopPropagation(),!1})},_.e("div",{el:_.YC(G.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":c},(R=G.body)==null?void 0:R.call(G))),(Z=G.footer)==null?void 0:Z.call(G))},"kk");
Sa0.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var pP$=_.W(function(G){var c=_.gD(G.leadingLabel),I=_.gD(G.trailingLabel),R=_.gD(G.footerButtonType),Z=function(){return c()||I()||G.hasPrimaryButton()||G.hasSecondaryButton()},K={},m=_.O3("yt-spec-bottom-sheet-layout__primary-button",(K["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return R()===0&&G.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return R()===1&&G.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return R()===2&&G.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return R()===3&&G.hasPrimaryButton()},K));
K={};var a=_.O3("yt-spec-bottom-sheet-layout__secondary-button",(K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return R()===1&&G.hasSecondaryButton()},K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return R()===2&&G.hasSecondaryButton()},K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return R()===3&&G.hasPrimaryButton()},K));
return _.e(_.l,{cond:G.hasFooterOverride,then:function(){var O;return _.e(_.FG,null,(O=G.footerOverride)==null?void 0:O.call(G))},
else:function(){return _.e(_.l,{cond:Z,then:function(){return _.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.e(_.l,{cond:function(){return c()||I()},
then:function(){var O={};return _.e("div",{class:_.O3("yt-spec-bottom-sheet-layout__footer-label-wrapper",(O["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!G.hasPrimaryButton()},O))},_.e(_.l,{cond:c,
then:function(){return _.e("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},c)}}),_.e(_.l,{cond:I,
then:function(){return _.e("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},I)}}))}}),_.e(_.l,{cond:function(){return G.hasPrimaryButton()||G.hasSecondaryButton()},
then:function(){var O={};return _.e("div",{class:_.O3("yt-spec-bottom-sheet-layout__footer-button-wrapper",(O["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.nTK,O))},_.e(_.l,{cond:function(){return G.hasSecondaryButton()&&R()!==0},
then:function(){var N;return _.e("div",{class:a},(N=G.secondaryButton)==null?void 0:N.call(G))}}),_.e(_.l,{cond:G.hasPrimaryButton,
then:function(){var N;return _.e("div",{class:m},(N=G.primaryButton)==null?void 0:N.call(G))}}))}}))}})}})},"lk");
pP$.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var M$u=_.W(function(G){var c=_.gD(G.title),I=_.gD(G.subtitle);return _.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:G.headerId,"on:touchstart":_.Nx(function(R){var Z;(Z=G.touchstart)==null||Z.call(G,R);return!1}),
"on:touchmove":_.Nx(function(R){var Z;(Z=G.touchmove)==null||Z.call(G,R);return!1}),
"on:touchend":_.Nx(function(R){var Z;(Z=G.touchend)==null||Z.call(G,R);return!1})},_.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.e(_.l,{cond:G.hasHeaderOverride,
then:function(){var R;return _.e(_.FG,null,(R=G.headerOverride)==null?void 0:R.call(G))},
else:function(){var R={};return _.e("div",{class:_.O3((R["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,R["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=c,R))},_.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.e(_.l,{cond:c,then:function(){return _.e(_.FG,null,_.e("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},c),_.e(_.l,{cond:I,then:function(){return _.e("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
I)}}))}})),_.e(_.l,{cond:function(){return c()&&G.hasActionHeader()},
then:function(){var Z;return _.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Z=G.actionHeader)==null?void 0:Z.call(G))}}))}}))},"mk");
M$u.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.W(function(G){function c(QO){if(!t&&typeof MutationObserver!=="undefined"){var T8={childList:!0};"MutationObserver"in window&&(t=new MutationObserver(I.bind(void 0,QO)),t.observe(QO,T8))}}
function I(QO){typeof t!=="undefined"&&(x["content-wrapper"]===void 0&&(x["content-wrapper"]=QO.children[0].clientHeight),k(x["content-wrapper"]),U()>p()||M(U()))}
function R(){n(window.innerHeight);U()>p()||M(U());C.isFullScreen[0]()&&U()>p()?H().dispatch("Snap To Full Screen",{maxHeight:z()}):H().dispatch("Snap To Neutral Position",{maxHeight:p()})}
function Z(QO){document.body.style.overscrollBehavior="none";QO.preventDefault();H().dispatch("Touch Start",{event:QO})}
function K(QO){QO.preventDefault();H().dispatch("Touch Move",{event:QO,contentScrollable:U()>p(),fullContentWrapperHeight:z(),contentWrapperHeight:p(),heightMap:x,contentWrapperId:"content-wrapper",header:PtW(G),footer:PtW(G),headerDivHeight:x["bottom-sheet-header"],footerDivHeight:x["bottom-sheet-footer"]})}
function m(){document.body.style.overscrollBehavior="";C.isFullScreen[0]()?C.currentY[0]()>=60?H().dispatch("Snap To Neutral Position",{maxHeight:p()}):H().dispatch("Snap To Full Screen",{maxHeight:z()}):C.currentY[0]()>=60?a():C.currentY[0]()<=-60&&U()>p()?H().dispatch("Snap To Full Screen",{maxHeight:z()}):H().dispatch("Snap To Neutral Position",{maxHeight:p()})}
function a(){H().dispatch("Close Sheet",{clientHeight:F(),maxHeight:0});setTimeout(function(){KdF()},250)}
var O=_.mX("div"),N=_.mX("div"),q=_.Q(_.ks(window.innerHeight,void 0,"CmOsU")),w=q.next().value;q=q.next().value;var F=w,n=q;q=_.Q(_.ks(0,void 0,"p0Flhb"));w=q.next().value;q=q.next().value;var U=w,k=q;q=_.Q(_.Gz(function(){var QO=PtW(G);return.6*F()-Irr(QO)-RbH(QO)}));
w=q.next().value;q=q.next().value;var p=w,M=q,z=function(){var QO=PtW(G),T8=F(),kp=x["bottom-sheet-header"],FB=x["bottom-sheet-footer"];return T8-(QO.hasHeaderFn&&kp!==void 0?kp:Irr(QO))-(QO.hasFooterFn&&FB!==void 0?FB:RbH(QO))-24-24},t=null,x={},C={initialY:_.ks(0,void 0,"sxdESd"),
currentY:_.ks(0,void 0,"GZzqeb"),isAnimating:_.ks(!1,void 0,"vJBupc"),isFullScreen:_.ks(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.Gz(p)},H=function(){var QO=null;return function(){if(!QO){var T8={initialY:C.initialY[0](),currentY:C.currentY[0](),isAnimating:C.isAnimating[0](),isFullScreen:C.isFullScreen[0](),maxHeightForContentWrapper:C.maxHeightForContentWrapper[0]()};QO=ZU7(T8)}return QO}}();
_.tI(function(){window.addEventListener("resize",R);H().subscribe(function(QO){C.initialY[1](QO.initialY);C.currentY[1](QO.currentY);C.isAnimating[1](QO.isAnimating);C.isFullScreen[1](QO.isFullScreen);C.maxHeightForContentWrapper[1](QO.maxHeightForContentWrapper)});
requestAnimationFrame(function(){O.value&&(x["bottom-sheet-header"]=O.value.clientHeight);N.value&&(x["bottom-sheet-footer"]=N.value.clientHeight)})});
_.ty(function(){window.removeEventListener("resize",R);t&&(t.disconnect(),t=null)});
var g=_.O3({"bottom-sheet-content-without-icon":function(){var QO;return!((QO=G.shouldShowIcons)==null?0:QO.call(G))}});
return _.e("bottom-sheet-layout",null,_.e(Sa0,{contentWrapperId:"content-wrapper",isAnimating:function(){return C.isAnimating[0]()},
currentY:function(){return C.currentY[0]()},
maxHeightForContentWrapper:function(){return C.maxHeightForContentWrapper[0]()},
shouldShowIcons:G.shouldShowIcons,skipContentClick:G.skipContentClick,onScroll:function(){var QO=document.getElementById("bottom-sheet-header"),T8=document.getElementById("content-wrapper");if(QO&&T8){var kp={};kp=(kp["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,kp["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,kp);QO.className=T8.scrollTop>1?_.VK(kp):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:KdF,contentWrapperEl:function(QO){c(QO);requestAnimationFrame(function(){I(QO)})},
header:function(){return _.e("div",{el:O},_.e(M$u,{touchstart:Z,touchmove:K,touchend:m,title:G.headerTitle,subtitle:G.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:G.headerFn,hasHeaderOverride:G.hasHeaderFn,actionHeader:G.headerActionHeader,hasActionHeader:G.hasHeaderActionHeader}))},
footer:function(){return _.e("div",{el:N},_.e(pP$,{footerButtonType:G.footerButtonType,leadingLabel:G.footerLeadingLabel,trailingLabel:G.footerTrailingLabel,primaryButton:G.footerPrimaryButton,hasPrimaryButton:G.hasFooterPrimaryButton,secondaryButton:G.footerSecondaryButton,hasSecondaryButton:G.hasFooterSecondaryButton,footerOverride:G.footerFn,hasFooterOverride:G.hasFooterFn}))},
body:function(){return _.e(_.l,{cond:G.hasContentFn,then:function(){var QO;return _.e("div",{class:g},(QO=G.contentFn)==null?void 0:QO.call(G))}})}}))},"nk").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var V$$=_.W(function(G){var c=_.wH().resolve(_.O6);return _.e("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Nx(function(){return void c.closeSheet()})},_.e(_.l,{cond:function(){return!!G.header},
then:function(){return _.e("div",{class:"ytContextualSheetLayoutHeaderContainer"},G.header())}}),_.e(_.l,{cond:function(){return!!G.content},
then:function(){return _.e("div",{class:"ytContextualSheetLayoutContentContainer"},G.content())}}),_.e(_.l,{cond:function(){return!!G.footer},
then:function(){return _.e("div",{class:"ytContextualSheetLayoutFooterContainer"},G.footer())}}))},"ok");
V$$.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var z5F=_.W(function(G){var c=G.data;var I=_.wH().resolve(_.n4),R=_.mX("yt-sheet-view-model",function(Z){if(_.v("web_focus_first_element_sheet")||!_.v("sheet_focus_first_killswitch"))return Z.addEventListener("focus",function(){Sn$(Z)}),function(){Z.removeEventListener("focus",function(){Sn$(Z)})}});
G={};return _.e("yt-sheet-view-model",{"on:mousedown":_.Nx(function(Z){_.v("sheet_focus_first_killswitch")||Z.currentTarget!==Z.target&&Z.preventDefault()}),
"on:focus":_.Nx(function(){_.v("sheet_focus_first_killswitch")||Sn$(R.value)}),
"on:mouseleave":_.Nx(function(){var Z,K=c==null?void 0:(Z=c())==null?void 0:Z.rendererContext,m;(Z=(m=_.D(K,_.fe))==null?void 0:m.onHoverEnd)&&I.resolveCommand(Z)}),
class:_.O3("ytSheetViewModelHost",(G.ytSheetViewModelContextual=!0,G.ytSheetViewModelDisableBackdropFilter=_.v("web_disable_backdrop_filter"),G)),el:R,tabindex:-1},_.e(_.l,{cond:c,then:function(Z){return _.e(V$$,{header:function(){return _.e(_.sN,{data:function(){return Z().header}},{panelHeaderViewModel:$r0})},
content:function(){return _.e(_.sN,{data:function(){return Z().content}},{listViewModel:function(K){return _.e(_.BOe,{data:K.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:e5u,miniAppScoreChallengeViewModel:N_j})},
footer:function(){return _.e(_.sN,{data:function(){return Z().footer}},{panelFooterViewModel:_.jp})}})}}))},"pk");
z5F.idomCompat=!0;_.R1(z5F,"yt-sheet-view-model",{props:{data:_.bl}});var J1u=_.W(function(G){var c=function(){var I;return(I=G.data().enableDebuggingFeatures)!=null?I:!1};
return _.e("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.e(_.fh,{each:function(){var I;return(I=G.data().stickers)!=null?I:[]}},function(I){return _.e(EQ0,{data:function(){return I},
debugMode:c})}))},"qk"),EQ0=_.W(function(G){var c=_.YW(G,{debugMode:!1}).debugMode,I=_.gD(function(){var O;
return(O=G.data().region)==null?void 0:O.w},0),R=_.gD(function(){var O;
return(O=G.data().region)==null?void 0:O.h},0),Z=_.gD(function(){var O;
return(O=G.data().region)==null?void 0:O.x},0),K=_.gD(function(){var O;
return(O=G.data().region)==null?void 0:O.y},0),m=_.Nx(function(){var O=G.data().onTap;
O&&_.r0(O)}),a={};
return _.e("div",{class:_.O3("ytStoriesStickerLayerViewModelSticker",(a.ytStoriesStickerLayerViewModelDebugMode=c,a)),style:_.wi({width:function(){return 100*I()+"%"},
height:function(){return 100*R()+"%"},
left:function(){return 100*Z()+"%"},
top:function(){return 100*K()+"%"},
"flex-direction":function(){return QKH(G.data().flexDirection)},
"justify-content":function(){return mUd(G.data().justifyContent)},
"align-items":function(){return arH(G.data().alignItems)}}),
"on:click":m},_.e(_.sN,{data:function(){return G.data().button||G.data().toggleButton}},{buttonViewModel:function(O){return _.e(_.BR,{data:O.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(O){return _.e(_.m8,{data:O.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"rk");var iwW=_.W(function(G){var c=function(){return G.data()},I={},R=_.Q(_.ks(!1,void 0,"SegA3d")),Z=R.next().value,K=R.next().value,m=_.gD(function(){return c().backgroundColor},0);
R=_.gD(function(){return c().actionButtons},[]);
var a=_.gD(function(){return c().stickerLayer},{}),O=function(){var q,w;
return{animationRef:I,animationConfig:{autoplay:!1,loop:!1,path:(w=(q=c().foregroundAnimation)==null?void 0:q.url)!=null?w:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){K(!0)},
complete:function(){G.navigateToNextItemOnLottieComplete()}}}},N=function(){var q,w,F,n,U,k,p,M;
return{animationConfig:{autoplay:(k=(q=c().backgroundAnimation)==null?void 0:(w=q.settings)==null?void 0:w.autoplay)!=null?k:!1,loop:(p=(F=c().backgroundAnimation)==null?void 0:(n=F.settings)==null?void 0:n.loop)!=null?p:!1,path:(M=(U=c().backgroundAnimation)==null?void 0:U.url)!=null?M:"",name:"stories_item_background_animation"}}};
_.xs(function(){if(G.isVisible()&&Z()){var q;(q=I.lottieEl)==null||q.play();G.animationRef()&&(G.animationRef().lottieEl=I.lottieEl)}else{var w;(w=I.lottieEl)==null||w.stop()}},"MxM2wb");
return _.e("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.wi({"background-color":function(){return _.pE(m())+";"}})},_.e("div",{class:"ytStoriesItemViewModelAssetContent"},_.e(_.l,{cond:function(){return!!c().backgroundAnimation},
then:function(){return _.e(_.XX,{data:N,animationName:function(){return N().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.e(_.l,{cond:function(){return!!c().backgroundImage},
then:function(){return _.e(_.yc,{data:function(){return c().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.e(_.l,{cond:function(){return!!c().foregroundAnimation},
then:function(){return _.e(_.XX,{data:O,animationName:function(){return O().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.e(_.l,{cond:function(){return!!c().foregroundImage},
then:function(){return _.e(_.yc,{data:function(){return c().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.e("div",{class:"ytStoriesItemViewModelTopShadow"}),_.e(_.sN,{data:function(){return a()}},{storiesStickerLayerViewModel:J1u})),_.e("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.wi({"background-color":function(){return _.pE(m())}})},_.e("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.e(_.fh,{each:R},function(q){return _.e(WTj,{data:function(){return q},
pauseAutoNavigation:G.pauseAutoNavigation})}))))},"tk"),fjj={style:"overlay",
type:"outline"},WTj=_.W(function(G){var c={};return _.e("div",{class:_.O3("ytStoriesItemViewModelActionButton",(c.ytStoriesItemViewModelStretchedActionButton=function(){return G.data().size==="STORIES_BUTTON_SIZE_STRETCH"},c)),
"on:click":_.Nx(G.pauseAutoNavigation)},_.e(_.sN,{data:function(){return G.data().button}},{buttonViewModel:function(I){return _.e(_.BR,{data:I.data,
buttonOverrides:fjj})}}))},"uk");var B_u={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.R1(_.W(function(G){var c=function(){var FB;return(FB=G.data().startIndex)!=null?FB:0},I=_.Q(_.Gz(c)),R=I.next().value,Z=I.next().value;
I=_.Q(_.ks(!1,void 0,"sjy7s"));var K=I.next().value,m=I.next().value,a=function(){var FB;return(FB=G.data().storyItems)!=null?FB:[]},O={},N=_.mX("yt-stories-viewer-view-model"),q=function(){return G.data().dismissButton},w=function(){var FB;
return _.WI((FB=_.D(q(),_.uv))==null?void 0:FB.onTap)},F=_.mX("div"),n,U,k=!1,p=function(){var FB;
(FB=n)==null||FB.cancel();n=M(R()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});n.onfinish=function(){var oq=_.D(a()[R()],gej),Wr,iT;oq!=null&&oq.foregroundAnimation&&((oq==null?0:(Wr=oq.foregroundAnimation)==null?0:Wr.url)||(oq==null?0:(iT=oq.foregroundAnimation)==null?0:iT.payload))||(R()!==a().length-1?(Z(R()+1),p()):w()&&_.iD(w()))}},M=function(FB){return F.value.children[FB].children[0]},z=function(){for(var FB=0;FB<R();FB++)M(FB).style.transform=
"scaleX(1)"},t=function(){k||(K()?m(!1):(R()===a().length-1&&w()&&_.iD(w()),M(R()).style.transform="scaleX(1)",R()!==a().length-1&&(Z(R()+1),p())))},x=function(){k||(K()?m(!1):(M(R()).style.transform="scaleX(0)",R()!==0&&Z(R()-1),p()))},C=function(){m(!0)},H=function(){M(R()).style.transform="scaleX(1)";
R()!==a().length-1?(Z(R()+1),p()):w()&&_.iD(w())};
I=function(){k=!1;U=setTimeout(function(){m(!0);k=!0},300)};
var g=function(){clearTimeout(U);k&&K()&&m(!1)};
_.xs(function(){if(K()){var FB;(FB=n)==null||FB.pause();var oq;(oq=O.lottieEl)==null||oq.pause()}else{var Wr;(Wr=n)==null||Wr.play();var iT;(iT=O.lottieEl)==null||iT.play()}},"vAvZob");
_.xs(function(){z();R()===c()&&p()},"uSlfE");
var QO=function(FB){FB.key==="ArrowLeft"?x():FB.key==="ArrowRight"&&t()},T8=function(FB){if(FB.target===N.value){(FB=w())&&_.iD(FB);
clearTimeout(U);var oq;(oq=n)==null||oq.cancel();var Wr;(Wr=O.lottieEl)==null||Wr.stop();window.removeEventListener("keydown",QO);window.removeEventListener("yt-popup-closed",T8)}},kp=function(FB){if(FB.target===N.value){var oq;
(oq=O.lottieEl)==null||oq.play();window.addEventListener("keydown",QO);window.addEventListener("yt-popup-closed",T8)}};
_.tI(function(){z();p();window.addEventListener("yt-popup-opened",kp)});
return _.e("yt-stories-viewer-view-model",{el:N,class:_.O3("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.e("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.e("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Nx(x),"on:mousedown":_.Nx(I),"on:mouseup":_.Nx(g),"on:mouseleave":_.Nx(g)}),_.e("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Nx(t),"on:mousedown":_.Nx(I),"on:mouseup":_.Nx(g),"on:mouseleave":_.Nx(g)})),
_.e("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.e(_.sN,{data:a},{storiesItemViewModel:function(FB,oq){var Wr=FB.data;return _.e(_.l,{cond:function(){return Math.abs(oq()-R())<=1},
then:function(){var iT={};return _.e("div",{class:_.O3("ytStoriesViewerViewModelStoryItem",(iT.ytStoriesViewerViewModelActiveStoryItem=function(){return oq()===R()},iT))},_.e(iwW,{data:Wr,
pauseAutoNavigation:C,navigateToNextItemOnLottieComplete:H,isVisible:function(){return oq()===R()},
animationRef:O}))}})}})),_.e("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:F},_.e(_.fh,{each:a},function(){return _.e("div",{class:"ytStoriesViewerViewModelProgressBar"},_.e("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.e("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.e(_.yc,{data:B_u,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.e("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.e(_.sN,{data:function(){return G.data().muteButton}},{toggleButtonViewModel:function(FB){return _.e(_.m8,{data:FB.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.e(_.sN,{data:q},{buttonViewModel:function(FB){return _.e(_.BR,{data:FB.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"xk"),"yt-stories-viewer-view-model",{props:{data:_.bl}});_.R1(_.W(function(G){var c=G.data;var I=_.mX("yt-gen-ai-feedback-form-view-model"),R=[];return _.e("yt-gen-ai-feedback-form-view-model",{el:I,class:"ytGenAiFeedbackFormViewModelHost"},_.e(_.ul,{text:function(){return c().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.e("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.e(_.sN,{data:function(){return c().feedbackChips}},{toggleButtonViewModel:function(Z){var K=Z.data;
return _.e(_.m8,{data:K,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(m){var a=K();a=_.D(a,_.kh);a=_.D(a==null?void 0:a.defaultButtonViewModel,_.uv).trackingParams;m?R.push(a):(m=R.indexOf(a),m>-1&&R.splice(m,1))}})}})),_.e(_.ul,{text:function(){return c().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.e("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.e(_.sN,{data:function(){return c().submitButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){T4F(I.value,R,c().uniqueId)}})}}),_.e(_.sN,{data:function(){return c().moreFeedbackButton}},{buttonViewModel:function(Z){return _.e(_.BR,{data:Z.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"yk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.bl},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var vF=function(){return _.J.apply(this,arguments)||this};
_.u(vF,_.J);vF.prototype.created=function(){CKG(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(j4u);var G=_.wH().resolve(_.Jyg);G&&(G.container=this.ytPopupContainerBehavior);if(G=_.wH().resolve(_.O6))G.container=this.ytPopupContainerBehavior;if(G=_.wH().resolve(_.eJ)){var c=this.ytPopupContainerBehavior;G.containerWasInjected?_.Ck(Error("rj")):G.container=c}};
vF.prototype.ensurePopupBelowPlayer=function(G,c){var I=_.wH().resolve(_.qR(_.I9));if(!I||!I.isOnWatch()||!_.ZA())return!1;I=I.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.nE().height>I+this.getPopupHeight(G,c)?(G.style.top="auto",G.style.bottom="0px"):(G.style.top=I+"px",G.style.bottom="auto");return!0};
vF.prototype.getPopupHeight=function(G,c){c&&(G.cachedPopupHeight=0);if(!G.cachedPopupHeight){c=0;var I=G.clientHeight,R=window.getComputedStyle(G);c+=parseInt(R.marginTop,10);c+=parseInt(R.marginBottom,10);G.cachedPopupHeight=I+c}return G.cachedPopupHeight};
vF.prototype.getElement=function(G){return document.createElement(G)};
_.r([_.L(HZj.YtPopupContainerBehavior),_.h("design:type",Object)],vF.prototype,"ytPopupContainerBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],vF.prototype,"ytComponentBehavior",void 0);_.r([_.Jc({disableElementRegistration:!0,is:"ytd-popup-container"})],vF);
_.B(vF,"ytd-popup-container",function(){if(fRF!==void 0)return fRF;var G=document.createElement("template");_.b(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);return fRF=G},{mode:1});var r17;var jrF={};jrF.YtLogYpcFlowCommandsBehavior=[_.HR.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(G){_.D(G,RI0)&&(G=_.D(G,RI0))&&(G.serializedTransactionFlowLoggingParams?_.b0T(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&_.CW("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&_.CW("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=G.serializedYpcPauseFlowLoggingParams)&&
_.CW("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams?(G=G.serializedYpcRefundFlowLoggingParams)&&qNu("YPC_EVENT_TYPE_START",G):G.serializedYpcDeactivateFlowLoggingParams?(G=G.serializedYpcDeactivateFlowLoggingParams)&&_.CW("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",G):G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(G=G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.CW("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",G))},
handleLogYpcFlowDismiss_:function(G){_.D(G,IOd)&&(G=_.D(G,IOd),G.serializedTransactionFlowLoggingParams?_.kXr(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&_.CW("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&_.CW("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=
G.serializedYpcPauseFlowLoggingParams)&&_.CW("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams&&(G=G.serializedYpcRefundFlowLoggingParams)&&qNu("YPC_EVENT_TYPE_CANCEL",G))}}];var xr1={};xr1.YtCancelRecurrenceBehavior=[_.wm.YtComponentBehavior,_.N90,{attached:function(){var G=this;pSW(this,function(c,I){return G.ypcCancelRecurrenceHandler(c,I)})},
ypcCancelRecurrenceHandler:function(G,c){var I=this;if(!c||!c.ypcCancelRecurrenceEndpoint)return!1;if(!c.ypcCancelRecurrenceEndpoint.params)return _.yL(Error("Tl")),!0;_.hq(this.hostElement);var R=_.h0.instance,Z=_.wH().resolve(_.qR(_.oI));R&&_.di(R,c)?_.CQ(R,c).then(function(K){I.ypcCancelRecurrenceSuccess_(G,c,{data:K})},function(K){I.ypcCancelRecurrenceFailure_(G,c,K)}).thenCatch(function(){_.yL(Error("Ul"))}):Z?Z.requestDataForServiceEndpoint(c).then(function(K){I.ypcCancelRecurrenceSuccess_(G,
c,K)},function(K){I.ypcCancelRecurrenceFailure_(G,c,K)}).thenCatch(function(){_.yL(Error("Ul"))}):_.yL(Error("Vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(G,c,I){_.d8(this.hostElement);I.data||(I={data:I});I.data&&I.data.actions&&_.cd(this.hostElement,I.data.actions,this.hostElement);I.data.messageRenderer?F7g(c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(c=c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.CW("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",c);_.Xl(G,"yt-service-request-completed",I)},
ypcCancelRecurrenceFailure_:function(G,c,I){_.d8(this.hostElement);F7g(c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Xl(G,"yt-service-request-error",{error:I,params:[G,c]})}}];var t$r=function(G,c){_.G8.call(this,c)};
_.u(t$r,Twg);var h5$={};h5$.YtCompleteTransactionBehavior=[_.wm.YtComponentBehavior,_.N90,{attached:function(){var G=this;pSW(this,function(c,I){return G.ypcCompleteTransactionHandler(c,I)})},
completeTransaction:function(G,c){var I=this;c={payments_payload:window.btoa(c.integratorData),buybucket_params:G.data.buybucketParams,offer_params:G.data.offerParams};var R=_.wH().resolve(_.oI),Z=G.data.completeTransactionEndpoint,K=this.get("ypcCompleteTransactionEndpoint.actions",Z);K&&_.cd(this.hostElement,K,this.hostElement);return(K=_.h0.instance)&&_.di(K,Z)?_.CQ(K,Z,c).then(function(m){return!m||(m==null?0:m.error)?(m=I.get("data.serializedTransactionFlowLoggingParams",G),_.$C(new Io("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
m))):{data:m}}).then(function(m){return I.handleCompleteTransactionSuccess_(m,G)},function(){return I.handleCompleteTransactionFailure_(G)}):R.requestDataForServiceEndpoint(Z,c).then(function(m){return I.handleCompleteTransactionSuccess_(m,G)},function(){return I.handleCompleteTransactionFailure_(G)})},
handleCompleteTransactionSuccess_:function(G,c){G.data||(G={data:G});if(G.data.messageRenderer)return _.$C(new t$r(G.data.messageRenderer));if(G.data.trackingParams){var I=_.k0(),R=_.u6();I&&R&&_.Wd(I,R,_.kC(G.data.trackingParams))}c=this.get("data.serializedTransactionFlowLoggingParams",c);w8u(c);return _.IP(G)},
handleCompleteTransactionFailure_:function(G){G=this.get("data.serializedTransactionFlowLoggingParams",G);_.hi("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G);return _.$C(new Io("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G))},
ypcCompleteTransactionHandler:function(G,c){var I=this;if(!c.ypcCompleteTransactionEndpoint)return!1;if(!c.ypcCompleteTransactionEndpoint.transactionParams)return _.yL(Error("Wl")),!0;c.ypcCompleteTransactionEndpoint&&c.ypcCompleteTransactionEndpoint.gtmData&&_.Kx(c.ypcCompleteTransactionEndpoint.gtmData);var R=_.wH().resolve(_.qR(_.oI));if(R){_.hq(this.hostElement);var Z=_.h0.instance;Z&&_.di(Z,c)?_.CQ(Z,c).then(function(K){return!K||(K==null?0:K.error)?(K=I.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
c),_.$C(new Io("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",K))):{data:K}}).then(function(K){_.Xl(G,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(c,K)},function(){return I.ypcCompleteTransactionFailure_(c)}):R.requestDataForServiceEndpoint(c).then(function(K){_.Xl(G,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(c,K)},function(){return I.ypcCompleteTransactionFailure_(c)})}return!0},
ypcCompleteTransactionSuccess_:function(G,c){_.d8(this.hostElement);c.data||(c={data:c});_.ym(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);c.data.messageRenderer||c.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(G):(_.Kx('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",G));c.data.actions&&(G=YHg(c.data.actions),c=G7G(c.data.actions),G.length&&_.Gs(this.hostElement,
G),c.length&&_.cd(this.hostElement,c,this.hostElement))},
ypcCompleteTransactionFailure_:function(G){_.d8(this.hostElement);_.ym(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",G,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(G,c,I){if(c=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",c))c={serializedTransactionFlowLoggingParams:c},I&&(c.errorType=I),_.x7(G,c),_.tg()}}];var dr0={};dr0.YtEndpointHandlerWithYpcBehavior=[_.N90,_.HR.YtActionHandlerBehavior,[{openWalletDialog:function(G,c,I,R,Z,K,m){var a=this,O=_.HU();c=c.replace(/-/g,"+").replace(/_/g,"/");var N=_.OC().get("hl");_.rV0(_.Pe(_.dn),c,O.resolve,Z,function(q){K&&K();O.reject(q)},N,function(q){return a.onServerBackendAnalyticEvent_(G,I,q)},this.onDialogClose_.bind(this),R,m);
return O.promise},
openFixFlowDialog:function(G,c,I,R){G=G.replace(/-/g,"+").replace(/_/g,"/");_.Pe(_.dn).openFixFlowDialog(G,c,I,R)},
onDialogClose_:function(){_.ym(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(G,c,I){_.Xl(G,"yt-commerce-action-init-done");c&&_.Gs(this.hostElement,[c,{backend_analytics:I}])}}],
_.dm.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(G,c){G=this.get("data.nativeFlowEndpoint",c);c=this.get("data.fallbackEndpoint",c);G?_.Gs(this.hostElement,[G]):c&&_.Xl(this.hostElement,"yt-navigate",{endpoint:c})}}],
xr1.YtCancelRecurrenceBehavior,h5$.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var G=this;pSW(this,function(c,I,R){return G.handleYPCEndpoint(c,I,R)});
this.ypcRegisterActionMapJobId_=_.W_(_.dJ,function(){G.registerActionMap(G.buyFlowActionMap_)})},
detached:function(){var G=this;_.dJ.cancelJob(this.ypcRegisterActionMapJobId_);_.W_(_.dJ,function(){G.unregisterActionMap(G.buyFlowActionMap_)})},
handleYPCEndpoint:function(G,c,I){var R=c.ypcGetCartEndpoint;if(R){_.sC("commerce_transaction");var Z=R.gtmId;Z&&_.Zs(Z);(R=R.gtmData)&&_.Kx(R)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",c)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(G,c),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",c)!=null?(this.handleYPCFixInstrumentEndpoint_(G,c),!0):c.ypcPauseSubscriptionCommand?(vzH(this.hostElement,G,c,I),
!0):c.ypcResumeSubscriptionCommand?(UUr(this.hostElement,G,c),!0):c.getPaymentInstrumentsParamsCommand?(wLG(this.hostElement,G,c),!0):c.ypcHandleTransactionEndpoint?(lrF(this.hostElement,G,c,I),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(G,c){var I=this;_.LC("ttcr",void 0,"commerce_transaction");c=c.ypcGetCartEndpoint;var R=c.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Z=R.encryptedPurchaseParams,K=R.serializedTransactionFlowLoggingParams,m=R.serializedPaymentsClientParams,a=this.createGetCartResponseFromParams_(R,c.offerParams,K);this.changeButtonState(G,!0);_.hE(this.openWalletDialog(G,Z,R.ypcLogWalletAnalyticDataEndpoint,K,function(){I.changeButtonState(G,!1)},function(){I.changeButtonState(G,
!1)},m).then(function(O){return I.handleBuyFlowCompleteCallback_(G,a,O)},function(){return I.handleOnLoadError(a)}).then(function(O){return void I.handlePostPurchaseSuccess_(G,a,O)},function(O){return void I.handlePostPurchaseError_(O)}),function(){I.changeButtonState(G,!1);
G instanceof Element&&_.Xl(G,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(G,c,I){var R=G.completeTransactionEndpoint,Z=G.handleTransactionEndpoint;c={data:{offerParams:window.btoa(c),serializedTransactionFlowLoggingParams:I}};Z?c.data.handleTransactionEndpoint=Z:c.data.completeTransactionEndpoint=R;G.onCartDismissCommand&&(c.data.onCartDismissCommand=G.onCartDismissCommand);return c},
onGetCartServiceRequestCompleted_:function(G,c){var I=this,R=G.target;if(c&&c.data&&c.data.messageRenderer)_.d8(this.hostElement),this.handleMessageRenderer_(c.data.messageRenderer),this.changeButtonState(R,!1);else{var Z=this.get("data.encryptedPurchaseParams",c),K=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",c),m=this.get("data.ypcLogWalletAnalyticDataEndpoint",c),a=this.get("data.serializedPaymentsClientParams",c),O=this.getLoggingParams_(c);if(O||Z||K)G.stopPropagation(),_.LC("ttcr",
void 0,"commerce_transaction"),Z||_.d8(this.hostElement),this.changeButtonState(R,!1),K?_.ym(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.H1("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:K}}},this]):Z&&(this.changeButtonState(R,!0),G=null,G=this.openWalletDialog(R,Z,m,O,function(){_.d8(I.hostElement);I.changeButtonState(R,!1)},function(){_.d8(I.hostElement);
I.changeButtonState(R,!1)},a),_.hE(G.then(function(N){return I.handleBuyFlowCompleteCallback_(R,c,N)},function(){return I.handleOnLoadError(c)}).then(function(N){return I.handlePostPurchaseSuccess_(R,c,N)},function(N){return I.handlePostPurchaseError_(N)}),function(){I.changeButtonState(R,!1);
_.Xl(R,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(G,c){c&&c.endpoint&&c.endpoint.ypcGetCartEndpoint&&!c.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",c.endpoint.ypcGetCartEndpoint)&&_.cd(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",c.endpoint.ypcGetCartEndpoint)],G.target),_.hq(this.hostElement),this.changeButtonState(G.target,!0))},
onServiceRequestError_:function(G,c){if(c&&c.params&&c.params.length){c=_.Q(c.params);for(var I=c.next();!I.done;I=c.next())if((I=I.value)&&I.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)&&_.cd(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)],G.target);_.d8(this.hostElement);this.changeButtonState(G.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(G,c,I){var R=I.integratorData;return R==null||R===""||I.error!=null?(R=this.getLoggingParams_(c),String(I.error)==="-1"?(c.data.onCartDismissCommand&&_.cd(this.hostElement,[c.data.onCartDismissCommand],G),_.$C(new Io("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R,!0))):_.$C(new Io("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R))):c.data.handleTransactionEndpoint?qtr(this.hostElement,c.data.handleTransactionEndpoint,{payments_payload:R,funds_guarantee_callback_client_data:I.integratorClientCallbackData}):
this.completeTransaction(c,I)},
handlePostPurchaseSuccess_:function(G,c,I){c=I.data;var R=!1,Z,K;if(c&&((Z=c.command)==null?0:(K=Z.commandExecutorCommand)==null?0:K.commands)){var m,a;Z=(m=c.command)==null?void 0:(a=m.commandExecutorCommand)==null?void 0:a.commands;for(m=0;m<Z.length;m++)if(_.D(Z[m],_.NrT)){R=!0;break}}R||(c&&c.gtmDatas&&c.gtmDatas.length?_.Kx(c.gtmDatas[0]):_.Kx('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));I.data&&I.data.actions&&(c=YHg(I.data.actions),I=G7G(I.data.actions),c.length&&
_.Gs(this.hostElement,c),I.length&&_.cd(this.hostElement,I,G))},
handlePostPurchaseError_:function(G){G&&G.payload&&G.payload.isUserDismiss||_.hg(Error("Yl"))},
handleOnLoadError:function(G){G=this.getLoggingParams_(G);return _.$C(new Io("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",G))},
getLoggingParams_:function(G){return this.get("data.serializedTransactionFlowLoggingParams",G)},
handleMessageRenderer_:function(G){var c=_.hI(G,"renderer"),I=_.H1("openPopupConfig");c==="confirmDialogRenderer"&&I&&_.ym(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:I.popupTypeMap[c],popup:G}},this])},
handleYPCFixInstrumentEndpoint_:function(G,c){var I=this,R=c.ypcFixInstrumentEndpoint;c=R.encryptedFixInstrumentParameters;this.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(G,!0);this.openFixFlowDialog(c,function(Z,K){I.onFixFlowCompleteCallback_(R,Z,K)},function(){return I.changeButtonState(G,!1)},function(){I.changeButtonState(G,!1);
I.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(G,c,I){var R=_.Yc("payments.business.integration.scenario.FixInstrument");if(c==R.IntegratorCallbackType.ON_COMPLETE){c="FIX_FOP_EVENT_TYPE_CANCEL";var Z=null;I.error!=null?I.error!=R.OnCompleteCallbackError.USER_CANCELLED&&(_.cd(this.hostElement,[G.errorAction],this.hostElement),c="FIX_FOP_EVENT_TYPE_FAILURE",Z="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.cd(this.hostElement,[G.successAction],this.hostElement),c="FIX_FOP_EVENT_TYPE_SUCCESS");_.cd(this.hostElement,[G.onFinishAction],
this.hostElement);this.logFixFopEvent_(G,c,Z)}},
logFixFopEvent_:function(G,c,I){(G=G.serializedFixFopLoggingParams)?(c={eventType:c,serializedFixFopLoggingParams:G},I!=null&&(c.errorType=I),_.x7("fixFopFlow",c),_.tg()):_.hg(Error("Zl"))},
changeButtonState:function(G,c){_.v("enable_ypc_spinners")&&G&&(G.is==="yt-button-renderer"||G.is==="ytd-button-renderer")&&(G.disabled=c)}}];var CFu=function(G){this.JSC$33206_clientRoot=G;this.feedbackCollectorActionMap={"yt-help-dialog-requested":bUG,"yt-feedback-dialog-requested":uCW,"yt-signal-action-help":kRW,"yt-signal-action-send-feedback":sKd,"yt-send-feedback-action":AEg,"yt-user-feedback-endpoint":$U0};_.KY(_.RD.getInstance(),this.feedbackCollectorActionMap,this.JSC$33206_clientRoot)},Hwr;var XPd=function(G){this.JSC$33211_clientRoot=G;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":St0.bind(null,this.JSC$33211_clientRoot),"yt-signal-action-delete-all-downloads":Mo0,"yt-signal-action-delete-download":VoW,"yt-signal-action-delete-playlist-download":Ezd,"yt-signal-action-install-pwa":rEW,"yt-signal-action-refresh-downloads":fru,"yt-offline-video-endpoint":xU$,"yt-offline-playlist-endpoint":hb$,"yt-update-local-app-setting-command":Ct$,"yt-offline-orchestration-action-command":XLW,
"yt-signal-action-undo-delete-download":Wdd,"yt-local-watch-history-command":Yt7,"yt-signal-action-mark-download-to-mobile-edu-shown":cmr};_.KY(_.RD.getInstance(),this.downloadManagerActionMap,this.JSC$33211_clientRoot);_.BH.instance=new _.BH},y1j;var Dz=function(){var G=_.J.apply(this,arguments)||this;G.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};G.remoteApi_=null;return G};
_.u(Dz,_.J);_.P=Dz.prototype;
_.P.ready=function(){_.v("polymer_enable_mdx")&&(pCr({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.v("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.v("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.v("enable_cast_short_lived_lounge_token")}),_.D6("yt-remote-connection-change",this.handleConnectionChange_,this),_.D6("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=fkd())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.P.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.P.handleConnectionChange_=function(G){(this.mdxConnected=G)?(G=zVg(),!G&&lkF()&&qHW()&&(G={key:"cast-selector-receiver",name:qHW()}),G=G.name):G=null;this.receiverName=G;_.TB(this.remoteApi_);(this.remoteApi_=fkd())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.P.handleReceiverAvailabilityChange_=function(){var G=Vgg();lkF()&&_.ka("yt-remote-cast-available")&&G.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=G.length>0};
_.P.handleRemoteQueueChange_=function(){var G=this.currentVideoId_,c=this.currentListId_,I=b4(this.remoteApi_);this.currentVideoId_=I.videoId;this.currentListId_=I.listId;this.currentVideoId_&&_.ym(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.v("polymer_enable_mdx_queue")?this.currentListId_:null,G,c])};
_.P.handleAddToQueueAction_=function(G){G=_.D(G,Y6F);this.remoteApi_&&(G.videoId?this.remoteApi_.addVideo(G.videoId):G.playlistId&&this.remoteApi_.addPlaylist(G.playlistId))};
_.P.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.P.handleInsertInQueueAction_=function(G){G=_.D(G,GwG);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20347_insertVideo(G.videoId)};
_.P.handleRemoveFromQueueAction_=function(G){G=_.D(G,cp1);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20347_removeVideo(G.videoId)};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],Dz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.h("design:type",Object)],Dz.prototype,"appId",void 0);_.r([_.E(),_.h("design:type",Boolean)],Dz.prototype,"mdxConnected",void 0);_.r([_.E(),_.h("design:type",Boolean)],Dz.prototype,"receiverAvailable",void 0);_.r([_.E(),_.h("design:type",Object)],Dz.prototype,"receiverName",void 0);_.r([_.E(),_.h("design:type",Object)],Dz.prototype,"currentVideoId_",void 0);
_.r([_.E(),_.h("design:type",Object)],Dz.prototype,"currentListId_",void 0);_.r([_.Em({is:"yt-mdx-manager",disableElementRegistration:!0})],Dz);_.B(Dz,"yt-mdx-manager",void 0,{mode:2});var gQd;var YaG;var oZ=function(){var G=_.J.apply(this,arguments)||this;G.APP_IDS={ytr:3,ytm:5};G.JSC$21585_timeoutId_=0;G.actionMap={"yt-open-create-family-dialog":"open"};return G};
_.u(oZ,_.J);_.P=oZ.prototype;_.P.created=function(){CKG(2200)};
_.P.detached=function(){this.observer_&&this.observer_.disconnect()};
_.P.open=function(G,c){var I=this,R=G.serializedYpcFamilyCreateLoggingParams;this.JSC$21585_timeoutId_=setTimeout(this.abort_.bind(this,G.postFlowErrorEndpoint,R),3E4);c&&(this.onReadyCallback_=c);var Z=_.Q1(this.hostElement).querySelector("#unicorn-iframe");R&&R&&lA1("ypcFamilyCreateFlowStarted",R);_.NAp("family_creation",function(){var K=_.Yc("gapi.family_creation.render");_.Yc("gapi.config.update")("iframes/family_creation/url",I.getFamilyCreationUrlWithUnicornParams_());var m=3;G.appId&&G.appId in
I.APP_IDS&&(m=I.APP_IDS[G.appId]);m={authUser:_.H1("SESSION_INDEX")||0,clientId:m,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.H1("HL"),initialflow:[4,5,6,7],m:I.isMobile?1:0,onFlowComplete:I.onUnicornFlowComplete_.bind(I,G.postFlowSuccessEndpoint,R),onError:I.onUnicornFlowError_.bind(I,G.postFlowErrorEndpoint,R),onReady:I.onUnicornFlowReady_.bind(I,G.referencePcidParams)};K(Z,m)})};
_.P.close=function(){_.Q1(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.P.onUnicornFlowComplete_=function(G,c){this.close();c&&c&&lA1("ypcFamilyCreateFlowSucceeded",c);_.Xl(this.hostElement,"yt-navigate",{endpoint:G})};
_.P.onUnicornFlowError_=function(G,c){this.close();c&&lA1("ypcFamilyCreateFlowCancelled",c);_.Xl(this.hostElement,"yt-navigate",{endpoint:G})};
_.P.onUnicornFlowReady_=function(G){var c=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();G&&_.Yc("gapi.family_creation.setConfig")(0,G);this.observer_=new MutationObserver(function(){_.Q1(c.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Q1(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Q1(this.hostElement).querySelector("#dialog").open()};
_.P.getFamilyCreationUrlWithUnicornParams_=function(){return _.H1("YTR_FAMILY_CREATION_URL")};
_.P.getCurrentUrl_=function(){return document.location.href};
_.P.abort_=function(G,c){this.clearTimeout_();this.onUnicornFlowError_(G,c)};
_.P.clearTimeout_=function(){clearTimeout(this.JSC$21585_timeoutId_)};
_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],oZ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],oZ.prototype,"isMobile",void 0);_.r([_.E(),_.h("design:type",Object)],oZ.prototype,"onReadyCallback_",void 0);_.r([_.E(),_.h("design:type",Object)],oZ.prototype,"observer_",void 0);_.r([_.Em({is:"yt-create-family-dialog",disableElementRegistration:!0})],oZ);
_.B(oZ,"yt-create-family-dialog",function(){if(YaG===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);var c=G.content,I=c.insertBefore;gQd===void 0&&(gQd=document.createElement("template"));var R=gQd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);YaG=G}G=YaG;return G},{mode:2});var GSd;var cnF;var UW=function(){var G=_.J.apply(this,arguments)||this;G.STEP=1;G.BLOCK_ON=80;G.MIN_PROGESS=0;G.MAX_PROGESS=100;return G};
_.u(UW,_.J);_.P=UW.prototype;_.P.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.P.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.wH().addProvider({provide:s41,useValue:this})};
_.P.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.P.finish=function(){var G=this;this.progress=this.MAX_PROGESS;IhW(function(){G.progress==G.MAX_PROGESS&&(G.hostElement.hidden=!0)})};
_.P.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Nh.Object.defineProperties(UW.prototype,{progress:{configurable:!0,enumerable:!0,set:function(G){this.progress_=G;var c="scaleX("+G/this.MAX_PROGESS+")",I=_.Q1(this.hostElement).querySelector("#progress").style;I.transform=c;I.webkitTransform=c;this.hostElement.setAttribute("aria-valuenow",String(G))},
get:function(){return this.progress_}}});
_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],UW.prototype,"ytComponentBehavior",void 0);_.r([_.Em({is:"yt-page-navigation-progress",disableElementRegistration:!0})],UW);
_.B(UW,"yt-page-navigation-progress",function(){if(cnF===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');G.content.insertBefore(_.d().content.cloneNode(!0),
G.content.firstChild);var c=G.content,I=c.insertBefore;GSd===void 0&&(GSd=document.createElement("template"));var R=GSd;I.call(c,R.content.cloneNode(!0),G.content.firstChild);cnF=G}G=cnF;return G},{mode:2});var IUd={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"},Rx$={"font-size":"12px","font-style":"italic"},Z5u={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.PKF=function(){return _.T(function(G){_.Vp(G)})};var KvH=_.W(function(G){var c=function(){return G.data().subtext},I={};
return _.e("snackbar-view-model",{class:_.O3("snackbarViewModelHost",G.className)},_.e("div",{class:_.O3("snackbarViewModelEngagementBarWrapper",G.className)},_.e(_.l,{cond:function(){return G.data().image},
then:function(R){return _.e(_.yc,{data:R,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.e(_.l,{cond:function(){return G.data().imageContent},
then:function(){return _.e("div",{class:"snackbarViewModelAvatarContainer"},_.e(_.sN,{data:function(){return G.data().imageContent}},{decoratedAvatarViewModel:_.wE}))}}),_.e("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.e("div",{class:_.O3((I.snackbarViewModelTitle=!0,I.snackbarViewModelTitleWithSubtext=c,I))},_.e(_.ul,{text:function(){return G.data().text}})),_.e(_.l,{cond:c,
then:function(){return _.e("div",{class:"snackbarViewModelSubtext"},_.e(_.ul,{text:function(){return c()}}))}})),_.e(_.l,{cond:function(){return G.data().buttons},
then:function(){return _.e("div",{class:"snackbarViewModelButtonClassWrapper"},_.e(_.sN,{data:function(){return G.data().buttons}},{buttonViewModel:function(R){return _.e(_.BR,{data:R.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:G.target})}}))}})))},"zk");_.R1(_.W(function(){function G(z,t,x){U(z);p(x);F("in");q(!0);c(z,t);m=setTimeout(function(){I()},t)}
function c(z,t){var x,C=(x=z.text)==null?void 0:x.content;z=_.JY(z.rendererContext);C&&(t={label:C,command:z,durationMs:t},_.wH().resolve(_.zL).enqueue(t))}
function I(z){F("out");z&&clearTimeout(m)}
function R(){I(!0)}
function Z(z){if(z){var t=z.snackbarViewModel,x=z.durationMs,C=z.target;x||(x=3E3);t&&(z=_.wH().resolve(_.qR(_.M1)))&&z.enqueue({isOpened:N,open:function(){G(t,x,C)},
close:I},0)}}
var K=_.Op("snackbar-container"),m=void 0,a=_.Q(_.ks(!1,void 0,"mDc5N")),O=a.next().value;a=a.next().value;var N=O,q=a;O=_.Q(_.ks("out",void 0,"FpOs5e"));var w=O.next().value,F=O.next().value;O=_.Q(_.ks(void 0,void 0,"jIDRob"));var n=O.next().value,U=O.next().value;O=_.Q(_.ks(void 0,void 0,"kOA3Mb"));var k=O.next().value,p=O.next().value,M=_.Nx(function(){if(w()==="out"){q(!1);U(void 0);p(void 0);var z=_.wH().resolve(_.qR(_.M1));z&&a97(z,0)}});
_.tI(function(){var z=_.wH().resolve(_.qR(_.VB$));z&&(z.showSnackbarFn=Z,z.closeSnackbarFn=R)});
return _.e("snackbar-container",{class:"ytSnackbarContainerHost",el:K},_.e(_.l,{cond:function(){return N()&&!!n()},
then:function(){var z={};return _.e("div",{class:_.O3("ytSnackbarContainerSnackbarContainer",(z.ytSnackbarContainerMobile=!1,z.ytSnackbarContainerPivotBar=function(){var t;return!((t=_.wH().resolve(_.qR(_.zpd)))==null||!t())},z.ytSnackbarContainerOpened=function(){return N()&&w()==="in"},z.ytSnackbarContainerClosed=function(){return N()&&w()==="out"},z)),
"on:animationend":M},_.e(KvH,{data:function(){return n()},
target:function(){return k()}}))}}))},"Ak"),"snackbar-container");_.R1(_.aN0,"yt-tooltip");var PNG=_.nsr.ephemeralActionSelector;_.R1(_.W(function(){var G=_.o1(PNG);return _.e("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var c;return(c=G())==null?void 0:c.announcement})},"Bk"),"yt-ephemeral-actions");var sNu=new Map;var rNH=function(G,c){var I=this;this.handleError=G;this.logEventInternal=c;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){I.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
rNH.prototype.logError=function(G){this.handleError(G)};
rNH.prototype.logEvent=function(G,c){switch(G){case "IDB_DATA_CORRUPTED":_.v("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",c);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",c);break;case "IS_SUPPORTED_COMPLETED":_.v("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",c);break;case "QUOTA_EXCEEDED":Qo0(this,c);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",c);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":G=Object.assign({},c,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",G)}};
var Qo0=function(G,c){_.Jr.getInstance().estimate().then(function(I){I=Object.assign({},c,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Am1(I==null?void 0:I.usage),deviceStorageQuotaMbytes:Am1(I==null?void 0:I.quota)});G.logEventInternal("idbQuotaExceeded",I)})};var mGu=_.W(function(G){var c=_.mX("yt-draggable"),I=G.onDrag,R=G.onDragStart,Z=G.onDragEnd,K=_.YW(G,{allowClicks:!1,dragThreshold:5}),m=K.dragThreshold,a=K.allowClicks;G=K.children;K=K.className;var O=void 0,N=void 0,q=new _.ts(0,0),w=!1;_.tI(function(){O=new _.R5(c.value);N=new _.wc(n);F(O,N);if(a()){_.xhV(O,m());var k;(k=c.value)==null||k.addEventListener("click",U,{capture:!0})}_.ty(function(){var p;(p=O)==null||p.dispose();if(a()){var M;(M=c.value)==null||M.removeEventListener("click",U,{capture:!0})}})});
var F=function(k,p){_.Ld(k,"earlycancel",function(){a()&&(w=!1)});
_.Ld(k,"start",function(M){R==null||R(M);M.defaultPrevented||a()&&(w=!0)});
_.Ld(k,"beforedrag",function(M){O&&N&&(M.preventDefault(),q=new _.ts(M.clientX-O.startX,M.clientY-O.startY),N.start())});
_.Ld(k,"end",function(){p.stop();Z==null||Z();q=new _.ts(0,0)})},n=function(){q&&I(q)},U=function(k){w&&(w=!1,k.stopPropagation(),k.preventDefault())};
return _.e("yt-draggable",{el:c,class:_.O3("ytDraggableComponentHost",K)},G)},"Ck");var aU0=_.W(function(G){var c=_.Q(_.ks(0,void 0,"Qf0tbc")),I=c.next().value,R=c.next().value;c=function(Z){var K={},m={};return _.e(mGu,{className:_.O3("ytdMiniplayerComponentResizer",(K.ytdMiniplayerComponentResizerDisabled=function(){return Z===G.horizontalAlignment()||Z===G.verticalAlignment()},K.ytdMiniplayerComponentResizerNorth=Z==="north",K.ytdMiniplayerComponentResizerEast=Z==="east",K.ytdMiniplayerComponentResizerSouth=Z==="south",K.ytdMiniplayerComponentResizerWest=Z==="west",K)),
onDragStart:function(){R(G.currentMiniplayerSize());if(G.onResizeStart)G.onResizeStart()},
onDrag:function(a){Z!=="north"&&Z!=="west"||a.scale(-1);var O;a=(O=Z==="north"||Z==="south")?a.y:a.x;var N=G.currentAspectRatio();O&&N>=1?a*=N:!O&&N<1&&(a/=N);O=a;G.onResize(I()+O)}},_.e("div",{class:_.O3("ytdMiniplayerComponentResizerCorner",(m.ytdMiniplayerComponentResizerNorthCorner=Z==="north",m.ytdMiniplayerComponentResizerEastCorner=Z==="east",m.ytdMiniplayerComponentResizerSouthCorner=Z==="south",m.ytdMiniplayerComponentResizerWestCorner=Z==="west",m))}))};
return _.e("div",{class:"ytdMiniplayerComponentResizers"},c("north"),c("east"),c("south"),c("west"))},"Dk");var Tpr=16/9;_.R1(_.W(function(){var G=_.mX("ytd-miniplayer"),c=_.Q(_.ks(new _.SB(NaN,NaN),void 0,"NHaFyc")),I=c.next().value,R=c.next().value;c=_.Q(_.ks(!1,void 0,"a0rwG"));var Z=c.next().value,K=c.next().value;c=_.Q(_.ks(!1,void 0,"f1jSeb"));var m=c.next().value,a=c.next().value;c=_.Q(_.ks(!1,void 0,"JojXKc"));var O=c.next().value,N=c.next().value;c=_.Q(_.ks(!1,void 0,"FjS8Db"));var q=c.next().value,w=c.next().value;c=_.Q(_.ks(!1,void 0,"z5WG9e"));var F=c.next().value,n=c.next().value;c=_.Q(_.ks(!1,void 0,"eUzZd"));
var U=c.next().value,k=c.next().value;c=_.Q(_.ks(Tpr,void 0,"XsBIy"));var p=c.next().value,M=c.next().value,z=_.Q(_.ks(!1,void 0,"FJSvse"));c=z.next().value;var t=z.next().value;z=_.Q(_.ks(!1,void 0,"VDUFL"));var x=z.next().value,C=z.next().value;z=_.Q(_.ks(void 0,void 0,"nFeh4b"));var H=z.next().value,g=z.next().value;z=_.Q(_.ks(Pi()?"west":"east",void 0,"T7co7c"));var QO=z.next().value,T8=z.next().value;z=_.Q(_.ks("south",void 0,"QDUsLb"));var kp=z.next().value,FB=z.next().value;z=_.Q(_.ks(400,
void 0,"F7Vdze"));var oq=z.next().value,Wr=z.next().value,iT=_.wH().resolve(_.tA).miniplayerPropSignalMap[0],z8=iT.data,GV=iT.externalPlaylistData;z=iT.toastData;var ei=iT.playabilityStatus,Hr=iT.isReadyToResume,v0=iT.isDisabled,kK=iT.watchWhile,pN=iT.playerVe,bH=iT.expandVe,n1=iT.closeVe,qf=iT.readyToResumeVe,hU=iT.readyToResumeCloseVe,we=iT.repositionVe,xK=iT.resizeVe;iT=_.Q(_.Gz(Hr));var UK=iT.next().value,YK=iT.next().value,en=_.o1(_.Ce.persistentPanelVisibleSelector),de=!1,qk=!1,FT;_.tI(function(){R(_.nE());
G.value.addEventListener("animationend",function(he){he.target===G.value&&(n(!1),k(!1))});
zn1(G.value)});
_.QF("yt-window-resized",function(he){he&&R(he)});
var ZW=function(){FT&&M(FT.getVideoAspectRatio())},yO=function(){if(FT){var he=FT.getPlayerState()===1;
UK()&&he&&YK(!1)}},Iu=function(){var he=bH();
if(he){var L1=_.k0(3);L1&&_.jW(L1,he)}},wS=function(){var he=n1(),L1=hU();
he&&_.jW(_.k0(3),he);Hr()&&L1&&_.jW(_.k0(3),L1)};
_.QF("yt-activate-miniplayer",function(he){var L1;return _.T(function(Q$){if(Q$.nextAddress==1)return Z()?Q$.return():Q$.yield((L1=_.wH().resolve(_.tA).getPlayerElement())==null?void 0:L1.getPlayerPromise(),2);FT=Q$.yieldResult;if(!FT)return Q$.return();!x()&&_.v("kevlar_watch_while_v2")&&(FB(he&&!_.v("kevlar_watch_while_bottom_align")?"north":"south"),T8(Pi()?"west":"east"));var CS=FT;CS.addEventListener("onVideoDataChange",ZW);CS.addEventListener("onStateChange",yO);CS.addEventListener("onExpandMiniplayer",
Iu);CS.addEventListener("onCloseMiniplayer",wS);M(FT.getVideoAspectRatio());K(!0);Vj1()||n(!0);_.Vp(Q$)})});
_.QF("yt-deactivate-miniplayer",function(he,L1){return _.T(function(Q$){if(!Z())return Q$.return();K(!1);YK(!1);k(he);w(!1);a(!1);if(FT){var CS=FT;CS.removeEventListener("onVideoDataChange",ZW);CS.removeEventListener("onStateChange",yO);CS.removeEventListener("onExpandMiniplayer",Iu);CS.removeEventListener("onCloseMiniplayer",wS)}Vj1()||L1?L1&&n(!1):n(!0);_.Vp(Q$)})});
var IR=function(){return!(kK()&&_.v("kevlar_watch_while_modern"))},vu=function(){var he;
return!((he=GV())==null||!he.contents)},xF=function(){var he=oq();
var L1=I();L1=Math.min(Math.min(L1.width,L1.height)-32,720);var Q$=p(),CS=IR(),L8=vu()&&m(),MS=Math.min(he,L1);he=new _.SB(192,CS?116:192);Q$=new _.SB(L8?Tpr:Q$,1);MS=new _.SB(MS,CS?MS-76:MS);MS=Q$.aspectRatio()>MS.aspectRatio()?MS.width/Q$.width:MS.height/Q$.height;Q$=Q$.scale(MS);he.width<=Q$.width&&he.height<=Q$.height||(he=Q$.aspectRatio()<=he.aspectRatio()?he.width/Q$.width:he.height/Q$.height,Q$.scale(he),Q$.width=Math.min(Q$.width,L1),Q$.height=Math.min(Q$.height,L1));return new _.SB(Q$.width,
_.Be(192,Q$.height+i9H(CS,L8),720))},eT=function(){var he=xF(),L1=IR(),Q$=vu()&&m();
return new _.SB(he.width,he.height-i9H(L1,Q$))},v6=function(){var he=function(L1){L1.target===G.value&&q()&&(w(!1),G.value.removeEventListener("transitionend",he))};
Vj1()||(G.value.addEventListener("transitionend",he),w(!0));a(!m())};
_.xs(function(){var he=pN(),L1=_.k0(3),Q$=_.u6(3);if(L1&&Q$&&he){_.Wd(L1,Q$,he);Q$=we();var CS=xK(),L8=bH(),MS=n1(),Ee=hU();L8&&MS&&Ee&&(_.i8(L1,he,[L8,MS,Ee]),_.Bd(L1,[L8,MS]));Q$&&CS&&_.i8(L1,he,[Q$,CS])}},"UBpUDd");
_.xs(function(){var he=qf();if(he){var L1=_.k0(0),Q$=_.u6(0);L1&&Q$&&(_.Wd(L1,Q$,he),_.Bd(L1,[he]))}},"fQpBzb");
iT={};return _.e("ytd-miniplayer",{el:G,class:_.O3("ytdMiniplayerComponentHost",(iT.ytdMiniplayerComponentVisible=function(){return(Z()||F())&&!(kK()&&_.v("kevlar_watch_while_counterfactual"))},iT.ytdMiniplayerComponentAnimatingSnap=O,iT.ytdMiniplayerComponentAnimatingPlaylistExpand=q,iT.ytdMiniplayerComponentAnimatingFade=F,iT),function(){if(F()){var he=kp();
var L1=Z(),Q$=U();he=L1?he==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Q$?he==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":he==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else he="";return he}),
style:_.wi({top:function(){return kp()==="north"?"16px":""},
right:function(){var he=QO(),L1=en();L1=(L1===void 0?0:L1)&&!Pi()?400:0;return he==="east"?16+L1+"px":""},
bottom:function(){return kp()==="south"?"16px":""},
left:function(){var he=QO(),L1=en();L1=(L1===void 0?0:L1)&&Pi()?400:0;return he==="west"?16+L1+"px":""},
width:function(){return xF().width+"px"},
height:function(){return xF().height+"px"},
transform:function(){var he=H();return he?"translate("+he.x+"px, "+he.y+"px)":""}})},_.e("div",{class:"ytdMiniplayerComponentContent"},_.e(mGu,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(he){var L1=WDu(QO(),kp(),I(),xF(),H()),Q$=eT();Math.abs(he.clientY-(L1.y+Q$.height))>15?(t(!0),he=_.k0(3),L1=we(),de||(de=!0,he&&L1&&_.Bd(he,[L1])),he&&L1&&_.jW(he,L1)):he.preventDefault()},
onDrag:function(he){g(he)},
onDragEnd:function(){var he=EbF(WDu(QO(),kp(),I(),xF(),H()),I(),xF()),L1=JmH(QO(),kp(),I(),xF(),en()),Q$=JmH(he.horizontalAlignment,he.verticalAlignment,I(),xF(),en());Q$=new _.ts(Q$.x-L1.x,Q$.y-L1.y);var CS;L1=L1.y+(((CS=H())==null?void 0:CS.y)||0)+xF().height/2;var L8=function(){QO()===he.horizontalAlignment&&kp()===he.verticalAlignment||C(!0);T8(he.horizontalAlignment);FB(he.verticalAlignment);g(void 0)},MS=function(Ee){Ee.target===G.value&&O()&&(N(!1),L8(),G.value.removeEventListener("transitionend",
MS))};
t(!1);kp()==="south"&&L1>I().height?(L8(),_.wH().resolve(_.tA).close()):(G.value.addEventListener("transitionend",MS),N(!0),g(Q$))}},_.e(_.l,{cond:Z,
then:function(){return _.e(_.A$g,{isDisabled:v0,playabilityStatus:ei,size:eT})}}),_.e(_.l,{cond:IR,
then:function(){return _.e(_.szW,{isReadyToResume:UK,data:z8,expanded:m,onExpandClick:v6,playlistData:GV})}}),_.e(_.l,{cond:c,
then:function(){return _.e("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.e(_.l,{cond:function(){return vu()&&m()||q()},
then:function(){return _.e(_.zfd,{className:"ytdMiniplayerComponentPlaylistPanel",data:GV,hideHeaderText:!0,withinMiniplayer:!0})}}),_.e("div",{class:"ytdMiniplayerComponentToast"},_.e(_.$t0,{toastData:z}))),_.e(aU0,{onResize:function(he){Wr(_.Be(192,he,720))},
onResizeStart:function(){var he=_.k0(3),L1=xK();qk||(qk=!0,he&&L1&&_.Bd(he,[L1]));he&&L1&&_.jW(he,L1)},
currentAspectRatio:p,currentMiniplayerSize:oq,horizontalAlignment:QO,verticalAlignment:kp}))},"Gk"),"ytd-miniplayer",{});var O51=_.Ce.persistentPanelVisibleSelector,up=function(){var G=_.J.apply(this,arguments)||this;G.tabGesturesIsActive=!1;G.persistentPanelEnabled=_.v("enable_ai_companion");G.hasDelegation=!1;G.isFrostedGlassInitialized=!1;G.frostedGlassExp=_.v("web_frosted_glass");G.hasPendingWatchNavigation=!1;G.mastheadHiddenFocusWithinKillswitch=_.v("web_masthead_hidden_focus_within_killswitch");G.clientOnlyWizTooltipsEnabled=_.v("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
G.scrollAtTop=!0;G.guideScrollTop=0;G.isTheaterModeSession=_.XG("START_IN_THEATER_MODE");G.iMaxTheaterMode=_.v("web_watch_imax_theater_mode");G.isFullWindowSession=_.XG("START_IN_FULL_WINDOW_MODE");G.hasCreateFamilyDialog=!1;G.mastheadHeight=56;G.networkStatusManager=new _.Kk;G.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction",
"yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};G.dynamicActionMap={"yt-run-attestation-command":function(c){var I=_.D3W.instance,R=_.D(c,_.$Xp);return R?_.v("use_rta_manager_for_async")&&
(_.v("attmusi")&&_.v("attmusi_ue")?window.attmp:sJj())?Wl1(I,R,c.clickTrackingParams):J47(I,R,c.clickTrackingParams):_.$C(Error("qi"))}};
G.isFrostedGlassDisabled=!1;G.isChannelOrPlaylistPage=!1;return G};
_.u(up,_.J);_.P=up.prototype;_.P.created=function(){var G=_.wH();_.v("kevlar_clear_duplicate_pref_cookie")&&_.W_(_.dJ,function(){var c=_.VU.get("PREF");c&&!/f\d=/.test(c)&&(c=_.oa("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=c?"PREF=null;domain="+c+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.v("gzip_gel_with_worker")&&_.a4O();_.v("jspb_serialize_with_worker")&&gCd();_.v("web_worker_availability_check")&&LDu();_.v("nwl_init_killswitch")||XIu().then(function(){_.dJ.addLowPriorityJob(tgj)});
this.pageManagerAttachedPromise=_.HU();this.ytdAppBehavior.loadDepsPromise=_.tE([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.qx(this.onThrottledScroll,200,this);_.v("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);jJu();aMG=!!_.Yc("ytappsettings.initialized");CfW=_.Yc("ytappsettings.previousValue");HQd=_.Yc("ytappsettings.previousSnapshotTime");aMG||(aMG=!0,XUW());y7d();goj();_.Ch("DEFERRED_DETACH",
_.v("kevlar_tuner_should_defer_detach"));_.Ch("REUSE_COMPONENTS",!0);_.Ch("STAMPER_STABLE_LIST",!0);_.Ch("SCHEDULED_LAZY_LIST",!0);_.Ch("openPopupConfig",rB7);_.Ch("useClickHandler",!0);_.v("kevlar_shell_cleanup")&&_.dJ.addLowPriorityJob(J0u.bind(this,_.Rq.caches));_.XG("IS_SHELL_LOAD")&&_.b8({shellStartupDurationMs:Math.round((0,_.Fa)()-_.FL())});T27(this.networkStatusManager);_.v("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Rnd(IUd)),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!",
Rnd(Rx$)),console.log("%cVisit http://go/join-youtube-web to apply today.",Rnd(Z5u)));_.HR7(G.resolve(_.zZ$),1E3)};
_.P.ready=function(){var G=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var c=OQu();c&&!_.v("external_fullscreen_killswitch")&&document.addEventListener(c,this.setFullscreen.bind(this));(c=window.matchMedia("(prefers-color-scheme: dark)"))&&c.addEventListener&&c.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(c=_.wH().resolve(_.qR(_.soV)))c.subscribe("navigation-start",
function(I){I.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!0)}),c.subscribe("navigation-end",function(I){I.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!1)})};
_.P.attached=function(){var G=this;_.kL().processSignal("ci");_.v("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.lJK?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Do(_.V7g(),"SUCCESS");this.updateIconSet();_.CR(this.guideInnerContent,!1);_.gg().initVisibilityObserver();this.guideService.guideElement=this.guide;var c=document.createElement("ytd-miniplayer"),I=_.Q1(this.hostElement).querySelector("#content");
_.Q1(this.hostElement).insertBefore(c,I);_.kL().processSignal("ma");_.wH().resolve(_.tA).init(c);this.persistentPanelEnabled&&_.ccu(_.wH().resolve(_.NI),this.persistentPanelContainer,"APP");_.XG("IS_SHELL_LOAD")&&(I=document.createElement("ytd-network-status-banner"),_.Q1(this.hostElement).insertBefore(I,c));_.v("kevlar_right_click_on_lockups")&&_.nV._onCaptureClick&&document.addEventListener("contextmenu",_.nV._onCaptureClick.bind(_.nV),!0);var R=function(){var Z=_.SP("yt-page-navigation-progress");
_.Q1(G.hostElement).appendChild(Z)};
setTimeout(function(){_.kL().parkOrScheduleJob(R,0,"eocs",16)},0);
_.v("service_worker_push_enabled")&&_.W_(_.dJ,NPF);_.KY(_.RD.getInstance(),this.dynamicActionMap,this.hostElement);_.Xl(this.hostElement,"ytd-app-attached");_.kL().processSignal("aa");Lqu(this.hostElement);_.lr("gapi.load",_.NAp);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.W_(_.dJ,
function(){var Z=document.createElement("ytd-video-preview");_.Q1(_.Q1(G.hostElement).querySelector("#video-preview")).appendChild(Z)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.W_(_.dJ,function(){QNu();G.registerWithViewTransitionManager()});
if(_.fE()&&this.isAppDarkTheme()!==_.WH())this.onDarkModeToggledAction();else c=_.iu()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==c&&(_.v("enable_dark_theme_only_on_shorts")?_.Ji(_.v("enable_dark_theme_only_on_shorts_control")?window.location.href:_.mb(window.location.href,{theme:"dark"})):_.Ck(new _.iW("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(hWr=new tau(this.hostElement)),y1j=new XPd(this.hostElement),Hwr=new CFu(this.hostElement),OL1=new TvH(this.hostElement)};
_.P.getThemeSettingsToLog=function(){var G=_.iu()==="USER_INTERFACE_THEME_DARK";G=_.fE()?_.WH()?"os-dark":"os-light":G?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:G,cookiesEnabled:_.E2()}};
_.P.detached=function(){_.Hq(this.guideInnerContent);_.dJ.cancelJob(n5$);n5$=0;_.dJ.cancelJob(Ux$);Ux$=0;_.UCA(s17);s17.length=0;u6W=_.Obi=null;_.gg().dispose();_.v("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.PN(_.RD.getInstance(),hWr.playlistHandlerActionMap,hWr.JSC$32915_clientRoot);_.PN(_.RD.getInstance(),y1j.downloadManagerActionMap,y1j.JSC$33211_clientRoot);_.PN(_.RD.getInstance(),Hwr.feedbackCollectorActionMap,Hwr.JSC$33206_clientRoot);
for(var G=_.Q(OL1.eventListeners),c=G.next();!c.done;c=G.next()){var I=_.Q(c.value);c=I.next().value;I=I.next().value;I=_.Q(I);for(var R=I.next();!R.done;R=I.next()){var Z=_.Q(R.value);R=Z.next().value;Z=Z.next().value;c.removeEventListener(R,Z)}}_.PN(_.RD.getInstance(),OL1.autonavPauseActionMap,OL1.JSC$20529_clientRoot)};
_.P.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.OC().getFlag(186)};
_.P.computeIsInlinePreviewEnabled=function(G,c,I){return!I&&_.fZr({miniplayerIsActive:G,miniplayerPlaybackState:c})};
_.P.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.R6({type:"SET_FROSTED_GLASS_MODE",payload:!_.v("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.P.computeIsFrostedGlassDisabled=function(G,c,I,R){return G||c||I||R&&_.v("web_frosted_glass_disable_watch")};
_.P.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.v("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.P.computeIsHomePage=function(G,c){if(!G||c==null||!c.endpoint)return!1;var I;return((I=_.D(c.endpoint,_.qD))==null?void 0:I.browseId)==="FEwhat_to_watch"};
_.P.updateIsChannelOrPlaylistPage=function(){if(_.v("web_frosted_glass")){var G,c,I=(c=(G=_.wH().resolve(_.qR(_.I9)))==null?void 0:G.getCurrentPage())==null?void 0:c.pageSubtype;this.isChannelOrPlaylistPage=I?["channel","channels","playlist"].includes(I):!1}};
_.P.scheduleFrostedGlassInitialization=function(){var G=this;_.v("web_frosted_glass")&&_.kL().parkOrScheduleJob(function(){G.isFrostedGlassInitialized=!0},0,_.Hn(["eocs",
"cr"]),300)};
_.P.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.w2K(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.R6({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.R6({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.P.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(gSd(!0))};
_.P.onYtSignalActionRequestPersistentStorage=function(){if(!_.v("request_persistent_storage_killswitch")){var G=_.wH().resolve(_.Keu);G.cachedPersistStatePromise||(G.cachedPersistStatePromise=vS1())}};
_.P.handleYtChannelCreationFormEndpoints=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.P.handleShowEngagementPanelEndpoint=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.P.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(gSd(!1))};
_.P.initIconDefs=function(G,c){var I=document.createElement("iron-iconset-svg");I.name=G;G=document.createElementNS("http://www.w3.org/2000/svg","svg");I.appendChild(G);G.appendChild(c);document.body.appendChild(I);return I};
_.P.onWindowResized=function(){_.ym(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var G=_.js.getInstance();G.documentWidth_=document.body.clientWidth;aej(G)};
_.P.onWindowScrolled=function(){var G=_.wH().resolve(_.I9).getCurrentPage();if(G!=null&&G.getScrollTop){var c=this.ytdReduxBehavior,I=c.dispatch;G=G.getScrollTop()<=0;I.call(c,_.R6({type:"SET_SCROLL_AT_TOP",payload:G}))}};
_.P.guideIsVisibleButNotPersistentSelectorChanged=function(){var G=_.wH().resolve(_.I9).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=G.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
G.setScrollTop(this.guideScrollTop));_.gq(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.P.getCurrentPageScrollableElementType=function(){var G=_.wH().resolve(_.I9).getCurrentPage();if(G&&G.getPageScrollingElement())return G.getPageScrollingElement().nodeName};
_.P.observeGuideVisibility=function(){var G=_.js.getInstance(),c=this.miniGuideVisible;G.guidePersistentAndVisible_=this.guidePersistentAndVisible;G.miniGuideVisible_=c;aej(G)};
_.P.observePersistentPanelVisibility=function(){var G=_.js.getInstance();G.persistentPanelVisible_=this.persistentPanelVisible;aej(G)};
_.P.handleEduDismissAction=function(G){G&&G.eduDismissAction&&(_.ym(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Dcp.getInstance(),_.f7.set(G.eduDismissAction.key+"-dismissed",!0))};
_.P.handleEduImpressionAction=function(G){if(G&&G.eduImpressionAction){var c=_.Dcp.getInstance();G=G.eduImpressionAction.key;c.JSC$13351_eduDisplayedThisLoad_[_.vRK[G].setKey||G]=!0;_.f7.set(G+"-impression",parseInt(_.f7.get(G+"-impression")||0,10)+1)}};
_.P.onYtSignalActionConfirmMentionsEdu=function(){_.ym(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.th.getInstance();_.xL.set("edu-dismissed",!0)};
_.P.onYtSignalActionRecordMentionsEduImpression=function(){_.th.getInstance();var G=_.xL.set,c=parseInt(_.xL.get("edu-impressions"),10);G.call(_.xL,"edu-impressions",(isFinite(c)?c:0)+1)};
_.P.onYtPageManagerAttached=function(G){var c;((c=_.HH(G))==null?void 0:c.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.P.onInvokeInstrumentManagerAction=function(G,c){Mju(c,G)};
_.P.updateIconSet=function(){var G=this.hostElement.querySelector("#masthead");if(G){var c=_.m9(G),I=c.querySelector("g#yt-logo-updated");I&&(G=document.createElementNS("http://www.w3.org/2000/svg","defs"),G.appendChild(I.cloneNode(!0)),(c=c.querySelector("g#yt-logo-red-updated"))&&G.appendChild(c.cloneNode(!0)),this.initIconDefs("yt-logos-ext",G))}};
_.P.updateMastheadData=function(){var G=this,c,I,R,Z,K;return _.T(function(m){if(m.nextAddress==1){c=G.data;I=G.hostElement.querySelector("#masthead");if(!I)return m.return();_.O$(G,function(){I.data=G.topbarData});
if(!G.get("response.topbar",c)||G.get("response.topbar.responseContext.maxAgeSeconds",c)===0)return m.jumpTo(0);if(R=_.wH().resolve(_.Fr))return m.yield(R(),6);Z=_.wH().resolve(_.dQ);return m.yield(Z.put("service:topbar:fallback",new _.CI({innertubeResponse:G.get("response.topbar",c)})),0)}return(K=m.yieldResult)?m.yield(K.put("service:topbar:fallback",new _.CI({innertubeResponse:G.get("response.topbar",c)})),0):m.jumpTo(0)})};
_.P.computeTopbarData=function(G){if(!G)return null;var c;return this.isShortsPage&&this.topbarData&&!_.D((c=G.response)==null?void 0:c.topbar,Brj)?this.topbarData:G.response&&"topbar"in G.response?_.D(G.response.topbar,Brj)||null:null};
_.P.onSetTheaterModeEnabled=function(G,c){this.isTheaterModeSession=c.enabled;this.setTheaterModeStyles(c.enabled)};
_.P.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.P.onDarkModeToggledAction=function(){var G=_.Aw(window.location.href);if(!_.lCr(G)){(G=!!_.QU(window.location.href).themeRefresh)&&_.Ck(new _.iW("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!G){XUW();G={themeRefresh:1};var c=_.wH().resolve(_.I9);if(c.isOnWatch()){var I,R;c=((I=c.getPlayerFromWatch())==null?void 0:(R=I.getPlayer())==null?void 0:R.getCurrentTime())||0;c>=1&&(G.time_continue=Math.floor(c))}_.E2()||_.iu()!=="USER_INTERFACE_THEME_DARK"||(G.theme="dark");_.Ji(_.mb(window.location.href,
G))}_.v("web_appshell_refresh_trigger")&&_.Rq.caches&&this.refreshAppShellResponse();I=_.zO(window.location.href);_.y_(_.wH().resolve(_.gQ),_.tO(I,"theme"))}};
_.P.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.P.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.P.onPlayerFullscreen=function(G){_.hO();this.playerFullscreen=G};
_.P.setRestrictedMode=function(G){var c=_.OC();_.eW(0,58,G);c.save();_.wH().resolve(_.Hk).reload()};
_.P.onPageChanged=function(G){G.detail.newPageType==="ytd-watch-flexy"||G.detail.newPageType==="ytd-watch-fixie"||G.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.JA("WEB_PAGE_TYPE_WATCH")):G.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.JA("WEB_PAGE_TYPE_SHORTS")):G.detail.newPageType==="ytd-browse"&&G.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.JA("WEB_PAGE_TYPE_MINI_APP")):_.v("web_frosted_glass")&&G.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.JA("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.JA("WEB_PAGE_TYPE_UNKNOWN"));G.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.P.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.P.onGuideToggleTap=function(){_.Xl(this.hostElement,"yt-guide-toggle")};
_.P.onGuideToggleHover=function(){_.Xl(this.hostElement,"yt-guide-hover")};
_.P.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setMastheadTheme=function(){var G=_.m9(this.hostElement).querySelector("#masthead");G&&(G.dark=G.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),G.isDarkThemeForced=!1)};
_.P.onRequestPanelModeChange=function(G,c){this.hideHeaderShadow=c.mode!=="seamed"};
_.P.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.P.onDrawerIronSelect=function(G){_.HH(G).id==="guide"&&this.processDrawerIronSelect()};
_.P.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var G="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(G="opened"));_.Xl(this.hostElement,"yt-autonav-pause-guide-"+G)};
_.P.onAddElementToApp=function(G){_.Q1(this.hostElement).appendChild(G.detail)};
_.P.onThrottledScroll=function(){var G=_.wH().resolve(_.I9).getCurrentPage();G&&(this.scrollAtTop=G.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.P.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.P.setFullscreen=function(){if(_.v("external_fullscreen")||!this.isWatchPage){var G=_.v("kevlar_fullerscreen_root_only_killswitch")?!!_.hO():!!_.hO()&&_.hO()===document.documentElement;G=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(G||this.isFullWindowSession);this.fullscreen!==G&&((this.fullscreen=G)&&_.gq(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.y4().dispatch(_.ZoT(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.ym(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.P.setFullscreenLoggingForShorts=function(G){var c,I,R;return _.T(function(Z){if(Z.nextAddress==1)return Z.yield((c=_.ZA())==null?void 0:c.getPlayerPromise(),2);I=Z.yieldResult;(R=I)==null||R.setAppFullscreen(G);_.Vp(Z)})};
_.P.updateMastheadCssHeight=function(){var G=this.mastheadHeight;this.fullscreen&&(G=0);_.eD(this.hostElement,{"--ytd-masthead-height":G+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.P.updateNetworkStatusBannerDisplayStatus=function(){var G="unset";this.fullscreen&&(G="none");_.eD(this.hostElement,{"--ytd-network-status-banner-display":G})};
_.P.updateNetworkStatusBannerCssHeight=function(){var G="unset";this.fullscreen&&(G="0px");_.eD(this.hostElement,{"--ytd-network-status-banner-max-height":G})};
_.P.updateScrollAndMasthead=function(G,c,I,R){this.iMaxTheaterMode||(R=!1);var Z=_.wH().resolve(_.I9).getCurrentPage();G||c||R?(document.body.classList.add("no-scroll"),Z.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.lO(this,this.onScroll)),Z.setScrollTop(0),_.eD(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.y7()+"px"})):I?_.Xl(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Xl(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Z.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.lO(this,this.onScroll)));this.mastheadHidden=G||c||I;this.updateMastheadCssHeight();_.v("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.P.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.P.onYtNavigateAction=function(G){G=this.get("navigateAction.endpoint",G);_.Xl(this.hostElement,"yt-navigate",{endpoint:G})};
_.P.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var G=document.createElement("yt-create-family-dialog");_.Q1(this.hostElement).appendChild(G);this.hasCreateFamilyDialog=!0}};
_.P.onSetPushNotificationsEnabledCommand=function(G){var c=this,I=_.D(G,f5H);I&&typeof I.enabled==="boolean"&&(Notification.permission!=="granted"?mj1().then(function(){Notification.permission==="granted"?(xx$(!I.enabled).then(dxg),I.successAction&&_.Gs(c.hostElement,[I.successAction])):I.failureAction&&_.Gs(c.hostElement,[I.failureAction])}):(xx$(!I.enabled).then(dxg),I.successAction&&_.Gs(this.hostElement,[I.successAction])))};
_.P.onYtSignalActionEnableChromeNotifications=function(){aAd(!0)};
_.P.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.D(this.topbarData.hotkeyDialog,xIu)}}})};
_.P.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.P.onYtEndpointChangeHandler=function(G,c){var I=_.Pe(_.C7);I.pendingPrefetchJob_&&(c=!(!c||c.autonav!="1"),I.pendingPrefetchJob_.resolve(G&&_.e40(G)?_.NEb(G,c):""),I.pendingPrefetchJob_=null);_.ym(this.hostElement,"yt-pause-active-page-context");_.ym(this.hostElement,"ytd-log-youthere-nav");_.ym(this.hostElement,"yt-prepare-page-dispose")};
_.P.handleCommandWithCommandHandler=function(G,c){_.NC.instance.resolveCommand(G,{form:{element:c}})};
_.P.onYtTimedCommand=function(G){var c=this;G=_.D(G,AJd);var I=G.command;I&&_.U_(_.dJ,function(){var R=_.D(I,_.MNk);R?(_.NC.instance.resolveCommand(I),c.maybeLogGetAnswerRequestTick(R)):_.cd(c.hostElement,[I],c.hostElement)},G.timeoutMs||0)};
_.P.maybeLogGetAnswerRequestTick=function(G){G&&G.isFirstRequest&&(_.sC("search_overview_answer"),_.LC("so_rq",void 0,"search_overview_answer"))};
_.P.onYtSignalActionSkipNavigation=function(){var G=_.wH().resolve(_.I9).getCurrentPage();_.ax(G)};
_.P.onYtSignalActionCopyDebugData=function(){Ujd()};
_.P.handleEntityUpdateCommand=function(G){_.ln(_.D(G,_.YYe).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.P.logFlowLoggingEventCommand=function(G){if(G=_.D(G,_.CQq))if(G.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var c=G.flowEventNamespace,I=G.flowEventType,R=G.flowType;R&&c&&I&&_.ZbB(_.OU(c,I,G.flowEventMetadata),R)}else{c=_.ex();I=G.flowEventNamespace;R=G.flowEventType;var Z=G.flowType;Z&&I&&R&&c.logFlowEvent(_.OU(I,R,G.flowEventMetadata),Z,G.flowNonce)}};
_.P.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.P.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.P.onTouchStart=function(){var G=_.YL();_.k0()&&_.t0(G.JSC$13473_screenManager,{visualElement:G.ve})};
_.P.handleSelectLanguageCommand=function(G){if(G=_.D(G,JJW).hl){var c=_.OC();c.set("hl",G);c.save();_.wH().resolve(_.Hk).reload()}};
_.P.handleConfirmDialogEndpoint=function(G){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G)};
_.P.handleOpenPopupNavigationEndpoints=function(G,c){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G,c)};
_.P.handleSaveCommandToSessionStorage=function(G){if(G=_.D(G,_.E1B)){var c=G.key;c&&G.command&&window.sessionStorage.setItem(c,JSON.stringify(G.command))}};
_.P.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(G){G&&G.active&&G.active.postMessage({type:"refresh_shell"})}).catch(function(G){G.name!=="SecurityError"&&_.hg(G)})};
_.P.onDeviceThemeChanged=function(){var G=_.WH();_.eW(_.OC(),185,G);_.OC().save()};
_.P.handleYtRegisterPromoCommand=function(G){if(_.D(G,iiH)){var c=_.wH().resolve(_.I9).getCurrentPage()||this.hostElement;DcW().registerPromoCommand(_.D(G,iiH),c)}};
_.P.onYtNavigateHomeAction=function(){if(!_.v("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G,c,I,R,Z=(R=(G=this.topbarData)==null?void 0:(c=G.logo)==null?void 0:(I=c.topbarLogoRenderer)==null?void 0:I.endpoint)!=null?R:_.IM;this.ytComponentBehavior.resolveCommand(Z)}};
_.P.onYtLocationCollectionCommand=function(G){KDW(_.D(G,yJW))};
_.P.onYtGetLocationCommand=function(G){Inu(_.D(G,X$F),this)};
_.P.updateRenderGuideFromBinding=function(G){this.renderGuide=G.detail.value};
_.P.updateGuidePersistentAndVisibleFromBinding=function(G){this.guidePersistentAndVisible=G.detail.value};
_.P.updateMiniGuideVisibleFromBinding=function(G){this.miniGuideVisible=G.detail.value};
_.P.onThemeSelected=function(G,c){var I=_.OC(),R=G||c?G:_.WH(),Z=(R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.lCr(_.Aw(window.location.href));_.eW(0,165,G);_.eW(0,174,c);I.save();Z&&_.ym(this.hostElement,"yt-dark-mode-toggled-action",[R]);_.ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.getCurrentTheme=function(){return _.fE()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.iu()};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.P.handleShowConsentPrimitive=function(G){var c=this,I,R;return _.T(function(Z){if(Z.nextAddress==1){try{I=(R=_.ZA())==null?void 0:R.getPlayerPromise()}catch(K){}return Z.yield(kpg(G,I),2)}_.ym(c.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Vp(Z)})};
_.P.handleSelectActiveIdentityEndpointInternal=function(G){_.ze();G=_.D(G,_.Hf2);if(G!=null&&G.supportedTokens){G=_.Q(G.supportedTokens);for(var c=G.next();!c.done;c=G.next())c=c.value,c.accountSigninToken&&_.Ji(c.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.P.handleUpdatePermissionRoleCommand=function(G){if(G=_.D(G,_.Hxe)){var c;this.hasDelegation=!((c=_.D(G.renderer,_.Clp))==null||!c.status)}};
_.P.registerWithViewTransitionManager=function(){var G=_.wH().resolve(_.qR(_.mk));if(G){var c,I=(c=this.guide)==null?void 0:c.querySelector("#scrim"),R;c=(R=this.guide)==null?void 0:R.querySelector("#contentContainer");I&&c&&G.isAnyTransitionEnabled&&(R={},G.viewTransitionCoordinator.registerElement(I,(R.slide="app-drawer-scrim-page-transition",R["lockup-to-watch"]="app-drawer-scrim-page-transition",R["learning-journey"]="app-drawer-scrim-page-transition",R)),I={},G.viewTransitionCoordinator.registerElement(c,
(I.slide="app-drawer-container-page-transition",I["lockup-to-watch"]="app-drawer-container-page-transition",I["learning-journey"]="app-drawer-container-page-transition",I)))}};
_.Nh.Object.defineProperties(up.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.v("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Nh.Object.defineProperties(up,{template:{configurable:!0,enumerable:!0,get:function(){if(r17===void 0){var G=document.createElement("template");_.b(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
G.content.insertBefore(_.d().content.cloneNode(!0),G.content.firstChild);r17=G}G=r17;return G}}});
up.prototype.onOpenHotkeyDialog=up.prototype.onOpenHotkeyDialog;up.prototype.setFullscreen=up.prototype.setFullscreen;up.prototype.onAddElementToApp=up.prototype.onAddElementToApp;up.prototype.onDrawerIronSelect=up.prototype.onDrawerIronSelect;up.prototype.onGuideOpenButtonHover=up.prototype.onGuideOpenButtonHover;up.prototype.onRequestPanelModeChange=up.prototype.onRequestPanelModeChange;up.prototype.onPageDataUpdated=up.prototype.onPageDataUpdated;up.prototype.onPageChanged=up.prototype.onPageChanged;
up.prototype.onSetTheaterModeEnabled=up.prototype.onSetTheaterModeEnabled;up.prototype.updateMastheadData=up.prototype.updateMastheadData;up.prototype.onYtPageManagerAttached=up.prototype.onYtPageManagerAttached;up.prototype.observePersistentPanelVisibility=up.prototype.observePersistentPanelVisibility;up.prototype.observeGuideVisibility=up.prototype.observeGuideVisibility;up.prototype.guideIsVisibleButNotPersistentSelectorChanged=up.prototype.guideIsVisibleButNotPersistentSelectorChanged;
up.prototype.isInlinePreviewEnabledChanged=up.prototype.isInlinePreviewEnabledChanged;up.prototype.isWatchPageChanged=up.prototype.isWatchPageChanged;up.prototype.dispatchFrostedGlassMode=up.prototype.dispatchFrostedGlassMode;_.r([_.L(_.wQ),_.h("design:type",Object)],up.prototype,"ytdReduxBehavior",void 0);_.r([_.L(_.Ph.YtEventForwardingBehavior),_.h("design:type",Object)],up.prototype,"ytEventForwardingBehavior",void 0);
_.r([_.L(_.dm.YtOpenPopupBehavior),_.h("design:type",Object)],up.prototype,"ytOpenPopupBehavior",void 0);_.r([_.L(_.HR.YtActionHandlerBehavior),_.h("design:type",Object)],up.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.L({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.RD.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.v("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var G;((G=this.actionRouterNode.hostElement)!=null?G:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var G;((G=this.actionRouterNode.hostElement)!=null?G:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(G){this.actionRouter_.handleAction(G.detail)}}),
_.h("design:type",Object)],up.prototype,"ytActionRouterBehavior",void 0);_.r([_.L(L0d.YtdAppBehavior),_.h("design:type",Object)],up.prototype,"ytdAppBehavior",void 0);_.r([_.L(_.Cx.YtEndpointBehavior),_.h("design:type",Object)],up.prototype,"ytEndpointBehavior",void 0);_.r([_.L(dr0.YtEndpointHandlerWithYpcBehavior),_.h("design:type",Object)],up.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.r([_.L(jrF.YtLogYpcFlowCommandsBehavior),_.h("design:type",Object)],up.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.r([_.L(_.X.YtRendererBehavior),_.h("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.r([_.L(_.wm.YtComponentBehavior),_.h("design:type",Object)],up.prototype,"ytComponentBehavior",void 0);_.r([_.E({selector:_.QsW}),_.h("design:type",Object)],up.prototype,"tabGesturesIsActive",void 0);_.r([_.E(),_.h("design:type",Boolean)],up.prototype,"renderGuide",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"guidePersistentAndVisible",void 0);_.r([_.E({selector:_.PO1}),_.h("design:type",Boolean)],up.prototype,"guideIsVisibleButNotPersistent",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"standalone",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"miniGuideVisible",void 0);
_.r([_.E(),_.h("design:type",Object)],up.prototype,"persistentPanelEnabled",void 0);_.r([_.E({selector:O51,reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"persistentPanelVisible",void 0);_.r([_.E({selector:_.rxp}),_.h("design:type",Number)],up.prototype,"miniplayerPlaybackState",void 0);_.r([_.E({selector:_.pp,reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"miniplayerIsActive",void 0);
_.r([_.E({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.h("design:type",Boolean)],up.prototype,"isInlinePreviewEnabled",void 0);_.r([_.E(),_.h("design:type",Boolean)],up.prototype,"isInlinePreviewDisabled",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.XG("START_IN_FULL_WINDOW_MODE")}}),
_.h("design:type",Boolean)],up.prototype,"mastheadHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"playerFullscreen",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"fullscreen",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"hideHeaderShadow",void 0);
_.r([_.E({value:{GUIDE_ALT_LABEL:_.mJ("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.h("design:type",Object)],up.prototype,"menuStrings",void 0);_.r([_.E({computed:"computeTopbarData(data)"}),_.h("design:type",Object)],up.prototype,"topbarData",void 0);_.r([_.E({selector:_.W$O,reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"isWatchPage",void 0);_.r([_.E({selector:_.ixb,reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"isShortsPage",void 0);
_.r([_.E({selector:function(G){return _.M9(G)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.h("design:type",Boolean)],up.prototype,"isMiniAppPage",void 0);_.r([_.E({selector:function(G){return _.M9(G)==="WEB_PAGE_TYPE_BROWSE"}}),
_.h("design:type",Boolean)],up.prototype,"isBrowsePage",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Boolean)],up.prototype,"scrolling",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],up.prototype,"hasDelegation",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],up.prototype,"guideScrolledByTouch",void 0);_.r([_.E(),_.h("design:type",Object)],up.prototype,"isFrostedGlassInitialized",void 0);
_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],up.prototype,"frostedGlassExp",void 0);_.r([_.E({selector:function(G){return G.ui.chipBarIsSticky}}),
_.h("design:type",Boolean)],up.prototype,"chipBarIsSticky",void 0);_.r([_.E({computed:"computeIsHomePage(isBrowsePage, data)"}),_.h("design:type",Boolean)],up.prototype,"isHomePage",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],up.prototype,"hasPendingWatchNavigation",void 0);_.r([_.E({reflectToAttribute:!0}),_.h("design:type",Object)],up.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.r([_.E(),_.h("design:type",Object)],up.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.r([_.ar("guide"),_.h("design:type",Object)],up.prototype,"guide",void 0);_.r([_.ar("guide-service"),_.h("design:type",wxu)],up.prototype,"guideService",void 0);_.r([_.ar("guide-inner-content"),_.h("design:type",HTMLDivElement)],up.prototype,"guideInnerContent",void 0);_.r([_.nH("#persistent-panel-container"),_.h("design:type",HTMLElement)],up.prototype,"persistentPanelContainer",void 0);
_.r([_.E({selector:_.jTg}),_.h("design:type",String)],up.prototype,"frostedGlassMode",void 0);_.r([_.wD("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"dispatchFrostedGlassMode",null);_.r([_.E({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.h("design:type",Object)],up.prototype,"isFrostedGlassDisabled",void 0);
_.r([_.wD("isWatchPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"isWatchPageChanged",null);_.r([_.A("isHomePage","chipBarIsSticky"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],up.prototype,"applyFrostedGlassToChipBar",null);_.r([_.E(),_.h("design:type",Object)],up.prototype,"isChannelOrPlaylistPage",void 0);
_.r([_.uO("isInlinePreviewEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"isInlinePreviewEnabledChanged",null);_.r([_.wD("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.r([_.wD("guidePersistentAndVisible","miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"observeGuideVisibility",null);_.r([_.wD("persistentPanelVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"observePersistentPanelVisibility",null);
_.r([_.qY("attached"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],up.prototype,"onYtPageManagerAttached",null);_.r([_.wD("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],up.prototype,"updateMastheadData",null);_.r([_.qY("yt-set-theater-mode-enabled"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],up.prototype,"onSetTheaterModeEnabled",null);
_.r([_.qY("yt-page-type-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],up.prototype,"onPageChanged",null);_.r([_.qY("yt-page-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"onPageDataUpdated",null);_.r([_.qY("yt-request-panel-mode-change"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],up.prototype,"onRequestPanelModeChange",null);
_.r([_.qY("yt-guide-hover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"onGuideOpenButtonHover",null);_.r([_.qY("app-drawer-transitioned"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],up.prototype,"onDrawerIronSelect",null);_.r([_.qY("yt-add-element-to-app"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],up.prototype,"onAddElementToApp",null);
_.r([_.qY("yt-set-fullerscreen-styles"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"setFullscreen",null);_.r([_.qY("yt-open-hotkey-dialog"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],up.prototype,"onOpenHotkeyDialog",null);_.r([_.Jc({is:"ytd-app"})],up);_.kL().processSignal("eor");
_.hK();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
